PageSourceSearch

https://www.oekoreich.com/assets/bba15bd71c22b952aeea.js

js oekoreich.com collected 2026-10-04 16:17:22 UTC 15,007 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkoekoreich=self.webpackChunkoekoreich||[]).push([[753],{14234:(e,t,a)=>{a.d(t,{A:()=>i});var l=a(56562);const s={color1:"#f9c440",color2:"#cc570f",color3:"#7d9e73",color4:"#5b7a89",colorTextDefault:"#000",mapColorLine:"#ccc",mapTextOffsetY:"1.4",className:"LoadMore"};var n=a(64922);const r=e=>{let{onClick:t,hidden:a,disabled:r,isLoading:i,count:o,total:u}=e;return a?null:(0,n.jsx)("div",{className:s.className,children:(0,n.jsxs)("div",{className:s.classNameMore,children:[(0,n.jsxs)("button",{type:"button",disabled:r||i,onClick:t,children:[i&&(0,n.jsx)(l.A,{}),"Mehr"]}),(0,n.jsx)("span",{children:"".concat(o," von ").concat(u)})]})})};r.displayName="LoadMore",r.defaultProps={hidden:!1,disabled:!1};const i=r},40087:(e,t,a)=>{a.d(t,{A:()=>u});var l=a(28794),s=a(4750),n=(a(60665),a(33739)),r=a(85912);var i=a(64922);const o=e=>{let{post:t,mediaQuery:a}=e;return(0,i.jsxs)(n.A,{className:"PostTile",to:"/medium/".concat(t.naturalKey),children:[(0,i.jsxs)("div",{className:"img-cont",children:[(0,i.jsx)("span",{className:t.postType,children:l.ZS[t.postType]}),(0,i.jsx)(r.A,{image:t.image,mediaQuery:a}),null!==t.videoUrl&&(0,i.jsx)("span",{className:"icon-reg-video"})]}),(0,i.jsxs)("div",{className:"cont-cont",children:[(0,i.jsx)("h3",{className:(0,s.xW)(["icon-reg-plus",t.payWall]),children:t.title}),(0,i.jsx)("h4",{children:t.authors.map((e=>"".concat(e.firstname," ").concat(e.lastname))).join(", ")}),(0,i.jsx)("p",{children:t.teaser}),(0,i.jsx)("span",{children:"weiterlesen"})]})]})};o.displayName="PostTile";const u=o},20230:(e,t,a)=>{a.d(t,{E5:()=>o,JA:()=>c,zc:()=>u}),a(4986);var l=a(59159),s=a(68456);function n(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function r(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?n(Object(a),!0).forEach((function(t){i(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function i(e,t,a){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const o=e=>{let{sort:t,query:a,month:n,year:i,pageNumber:o,pageSize:u,postType:c}=e;const d={sort:t};return"string"==typeof a&&(d.query=a),"number"!=typeof n||isNaN(n)||"number"!=typeof i||isNaN(i)||(d.month=(0,s.t$)("month",n+1),d.year=(0,s.a_)("year",i)),"string"==typeof c&&(d.postType=(0,s.Gi)("postTYpe",c)),(0,l.WL)("/public/post/list",{get:r({page:o,size:u},d),maxAge:300})},u=e=>{let{authorUuid:t,pageNumber:a,pageSize:n,sort:r}=e;return(0,l.WL)("/public/post/author/list",{get:{page:a,size:n,authorUuid:(0,s.Gi)("authorUuid",t),sort:(0,s.Gi)("sort",r)},maxAge:300})},c=e=>{let{pageNumber:t,pageSize:a,postNaturalKey:n,sort:r}=e;return(0,l.WL)("/public/post/linked",{maxAge:300,get:{page:t,size:a,postNaturalKey:(0,s.Gi)("postNaturalKey",n),sort:(0,s.Gi)("sort",r)}})}},3769:(e,t,a)=>{a.d(t,{A:()=>i}),a(11021);var l=a(77810),s=a(4750);var n=a(64922);const r=e=>{let{children:t,title:a}=e;const[r,i]=(0,l.useState)(!1),o=(0,l.useCallback)((()=>{i((e=>!e))}),[]);return(0,n.jsxs)("div",{className:"Form-InputHelper",children:[(0,n.jsxs)("button",{type:"button",className:(0,s.xW)(["icon-reg-angle-up",r,"icon-reg-angle-down"]),onClick:o,children:[(0,n.jsx)("span",{className:"icon-reg-info"}),a]}),r&&(0,n.jsx)("div",{className:"Form-InputHelper-content",children:t})]})};r.displayName="form.InputHelper",r.defaultProps={title:"Ausfüll-Tipps"};const i=r},36086:(e,t,a)=>{a.d(t,{A:()=>h}),a(94537),a(91763),a(54365),a(39419),a(79764),a(30789),a(93231),a(51872),a(47007),a(69638),a(4306),a(53578),a(63412),a(29298),a(92775),a(79731),a(11021);var l=a(77810),s=a(4750),n=(a(61334),a(65841)),r=a(75302),i=a(45927),o=a(3769),u=a(92329),c=a(53540);var d=a(64922);const p=e=>{let{className:t,name:a,label:p,HelperContent:h,defaultValue:m,hidden:g,disabled:x,required:y,options:j,createErrorMessage:f,children:b,setValueRef:v,onChange:N}=e;const C=(0,l.useMemo)((()=>j.some((e=>{let{value:t}=e;return t===m}))?m:null),[j,m]),[A,P]=(0,n.gV)(C,[C]),w=(0,l.useCallback)((e=>{let{value:t,ref:a}=e;a.current=t,P(t)}),[P]),L=(0,l.useCallback)((e=>{let{ref:t}=e;return t.current}),[]),V=(0,l.useCallback)((e=>{let{getValue:t}=e;
1const a=t();return y&&null===a?[!1,new i.Hd]:[!0,a]}),[y]),k=(0,r.M)({name:a,required:y,createErrorMessage:f,initialRefValue:A,setValue:w,getValue:L,getIsValid:V,onChange:N}),S=(0,l.useCallback)((e=>{k.setValue(e.target.value)}),[k]),O=(0,l.useCallback)((e=>{e.target.value!==k.getValue()||y||k.setValue(null)}),[k,y]);return"function"==typeof v?v(k.setValue):null!==v&&(v.current=k.setValue),(0,d.jsxs)("div",{className:(0,s.xW)(t,"InputRadioSelect",[c.A.classNameValid,k.isValid,c.A.classNameInvalid]),children:[!g&&null!==p&&(0,d.jsxs)("div",{className:"InputRadioSelect-label",children:[p,y&&(0,d.jsx)("span",{children:"*"})]}),null!==h&&(0,d.jsx)(o.A,{children:(0,d.jsx)(h,{})}),(0,d.jsx)("ul",{children:j.map((e=>{let{value:t,label:a}=e;return(0,d.jsxs)("li",{children:[(0,d.jsx)("input",{type:"radio",id:"".concat(k.id,"-").concat(t),className:c.A.classNameValidated,name:k.name,value:t,hidden:g,disabled:x||k.disabled,checked:A===t,onChange:S,onClick:O}),!g&&(0,d.jsx)("label",{htmlFor:"".concat(k.id,"-").concat(t),children:a})]},t)}))}),!k.isValid&&(0,d.jsx)("div",{className:u.A.classNameValidationError,children:k.validationMessage}),b]})};p.displayName="form.inputs.InputRadioSelect",p.defaultProps={className:null,label:null,HelperContent:null,defaultValue:null,hidden:!1,disabled:!1,required:!1,createErrorMessage:()=>"Der eingegebene Wert ist ungültig.",setValueRef:null,children:null,onChange:null};const h=p},60665:(e,t,a)=>{a.d(t,{L2:()=>o});var l=a(75826),s=a.n(l),n=a(85908);const r={naturalKey:s().string,name:s().string.isRequired},i=(s().exact(r),s().exact({body:s().string,headline:s().string,image:n.NN,seo:s().string,title:s().string}),s().shape({firstname:s().string,lastname:s().string,image:n.NN,uuid:s().string})),o=(s().shape({authors:s().arrayOf(i),image:n.NN,naturalKey:s().string,postType:s().string,published:s().bool,releaseDate:s().string,teaser:s().string,title:s().string,videoUrl:s().string}),s().shape({uuid:s().string,title:s().string,email:s().string,firstname:s().string,lastname:s().string,description:s().string,image:n.NN}))},73510:(e,t,a)=>{a.d(t,{R:()=>s});var l=a(59159);const s=e=>{let{pageNaturalKey:t}=e;return(0,l.WL)("/public/page",{get:{pageNaturalKey:t}})}},46561:(e,t,a)=>{a.d(t,{y:()=>r});var l=a(59159),s=a(99294);const n=100,r=function(){let{pageNumber:e=(0,s.rX)(0),pageSize:t=(0,s.Y4)(n)}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.WL)("/public/user/author/list",{maxAge:300,get:{page:e,size:t}})}},11590:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ne});var l=a(77810),s=a(73510),n=a(59159),r=a(87846),i=a(99304),o=a(53727),u=(a(11021),a(28794)),c=a(80037),d=a(40901),p=a(78476),h=a(94231),m=(a(74900),a(20230)),g=a(56562),x=a(40087),y=a(14234),j=a(17742);var f=a(96904),b=a(99294),v=a(64922);const N=["(max-width: 449px) calc(100vw - 7em)","(max-width: 699px) calc((100vw - 7em) / 2)","(max-width: 799px) calc((100vw - 7em - 150px) / 2)","(max-width: 1099px) calc((100vw - 8.5em - 150px) / 3)","274px"].join(", "),C=e=>{let{query:t,month:a,year:s,postType:n}=e;const{data:r,error:i,isLoading:o,loadNextPage:u}=(0,f.$J)((0,l.useCallback)((e=>{let{size:l,page:r}=e;return(0,m.E5)({pageSize:l,pageNumber:r,sort:"releaseDate,DESC",query:t,month:a,year:s,postType:n})}),[t,a,s,n]),{initialSize:(0,b.Y4)(20)}),c=(0,l.useMemo)((()=>null!==r?r.content.reduce(((e,t)=>{const a=t.releaseDate.substring(0,7);return e.hasOwnProperty(a)?e[a].push(t):e[a]=[t],e}),{}):null),[r]);return o?(0,v.jsx)(g.A,{}):null!==i?(0,v.jsx)(v.Fragment,{children:"Leider ist etwas schief gegangen!"}):null!==t&&0===r.content.length?(0,v.jsx)(v.Fragment,{children:"Nichts gefunden!"}):(0,v.jsxs)("div",{className:"PostList-Posts",children:[Object.keys(c).map((e=>{const t=new Date(e);return(0,v.jsxs)("div",{children:[(0,v.jsx)("div",{className:j.A.classNameDivider,children:(0,v.jsx)("span",{children:(0,v.jsx)("h2",{children:t.toLocaleString("de-DE",{year:"numeric",month:"short"})})})}),(0,v.jsx)("ul",{children:c[e].map((e=>(0,v.jsx)("li",{children:(0,v.jsx)(x.A,{post:e,mediaQuery:N})},e.naturalKey)))})]},e)})),(0,v.jsx)(y.A,{hidden:r.last,isLoading:o,count:r.content.length,total:r.totalElements,onClick:u})]})};C.displayName="PostList.Posts",C.defaultProps={query:null,postType:null};const A=C;var P=a(46561),w=a(33739),L=a(85452);const V=["(max-width: 699px) calc((100vw - 8em) / 2)","calc(150px - 4em)"].join(", "),k=()=>{const{data:e,isLoading:t,error:a}=(0,n.Ez)((0,l.useCallback)((()=>(0,P.y)()),[]));return t?(0,v.jsx)(g.A,{}):null!==a?(0,v.jsx)("div",{children:a.message}):(0,v.jsxs)("div",{className:"PostList-Authors",children:[(0,v.jsx)("h2",{children:"Autor*innen"}),(0,v.jsx)("ul",{children:e.content.map((e=>(0,v.jsx)("li",{children:(0,v.jsx)(w.A,{to:"/autoren/".concat(e.uuid),children:(0,v.jsx)(L.A,{user:e,mediaQuery:V})})},e.uuid)))})]})};k.displayName="pages.PostList.__Content._internal.Authors";const S=k;var O=a(88652);const D=()=>(0,v.jsx)("section",{className:"PostList-Newsletter",children:(0,v.jsxs)("div",{className:"content-container",children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("img",{src:"/assets/images/misc/logo_oekoreich_white.svg",alt:"Logo oekoreich"}),(0,v.jsx)("h2",{children:"Newsletter"})]}),(0,v.jsx)(O.A,{})]})});D.displayName="Landingpage.Newsletter";const T=D,E=2021,M=(new Date).getFullYear(),z=(()=>{const e=[];for(let t=E;t<=M;t++)e.push(t);return e})(),R=[0,1,2,3,4,5,6,7,8,9,10,11],I=(new Date).getMonth(),q=(E!==M?R.map((e=>new Date(E,e))):R.slice(2,I+1).map((e=>new Date(E,e)))).map((e=>
1({label:e.toLocaleString("de-DE",{month:"short"}),value:""+e.getMonth()}))),F=z.map((e=>({label:""+e,value:""+e})));var W=a(52595),K=a(41010),_=a(36086);const H=e=>{let{onChange:t,defaultValue:a}=e;const s=(0,l.useRef)(null!==a?a:{year:null,month:null}),n=(0,l.useRef)(null),r=(0,l.useRef)(null),i=(0,l.useCallback)((e=>{null!==e?null===s.current.month?(s.current.year=e,r.current(q[0].value)):(s.current.year=e,t({year:e,month:s.current.month})):null!==s.current.month?(s.current.month=null,r.current(null)):(s.current.year=null,t(null))}),[t]),o=(0,l.useCallback)((e=>{null!==e?null===s.current.year?(s.current.month=e,n.current(F[0].value)):(s.current.month=e,t({year:s.current.year,month:e})):null!==s.current.year?(s.current.year=null,n.current(null)):(s.current.month=null,t(null))}),[t]);return(0,v.jsx)("div",{className:"PostList-DateFilter",children:(0,v.jsxs)(K.A,{id:"posts-date-filter",onSubmit:W.l,children:[(0,v.jsx)(_.A,{name:"year",options:F,setValueRef:n,defaultValue:a.year,onChange:i}),(0,v.jsx)(_.A,{name:"month",options:q,setValueRef:r,defaultValue:a.month,onChange:o})]})})};H.displayName="PostList.DateFilter",H.defaultProps={defaultValue:null};const Q=H,Y=Object.entries(u.ZS).map((e=>{let[t,a]=e;return{label:a,value:t}})),G=e=>{let{onChange:t,defaultValue:a}=e;return(0,v.jsx)("div",{className:"PostList-PostTypeFilter",children:(0,v.jsx)(K.A,{id:"posts-filter-posttype",onSubmit:W.l,children:(0,v.jsx)(_.A,{name:"posttypes",options:Y,defaultValue:a,onChange:t})})})};G.displayName="PostList.PostTypeFilter",G.defaultProps={defaultValue:null};const U=G,B=[{label:"nach Beitragstyp",value:"postType"},{label:"nach Monaten",value:"date"}],X=e=>{let{onChange:t,defaultValue:a}=e;return(0,v.jsx)("div",{className:"PostList-FilterSwitch",children:(0,v.jsx)(K.A,{id:"posts-filter",onSubmit:W.l,children:(0,v.jsx)(_.A,{name:"types",options:B,defaultValue:a,onChange:t})})})};X.displayName="PostList.FilterSwitch",X.defaultProps={defaultValue:null};const Z=X;a(12710);var $=a(51617),J=a(4750);const ee=e=>{let{id:t,className:a,name:s,value:n,hidden:r,disabled:i,required:o,placeholder:u,trim:c=!1,debounceDelay:d,onChange:p}=e;const h=(0,$.YQ)(p,d),[m,g]=(0,$.gV)(n,[n]),x=(0,l.useCallback)((e=>{let t=e.target.value;c&&(t=t.trim());const a=0===t.length?null:t;g(a),h(a,e)}),[c,h,g]);return(0,v.jsx)("div",{className:(0,J.xW)("XncK6yBLstXLPe6Dj4jA",a,"icon-reg-search"),children:(0,v.jsx)("input",{type:"search",inputMode:"search",id:t,className:"OxHWa8ecQoE4yl0rOlZB",name:s,placeholder:u,value:null===m?"":m,hidden:r,required:o,disabled:i,autoComplete:"off",onChange:x})})};ee.displayName="pages.PostList.__Content._internal.Search";const te=ee,ae=e=>{let{data:t}=e;const a=(0,p.z$)(t.body?t.body:null),[s,n]=(0,l.useState)(null),[r,i]=(0,d.Id)("year"),[o,m]=(0,d.Id)("month"),[g,x]=(0,d.Id)("postType"),[y,j]=(0,l.useState)(r&&o?"date":g?"postType":null),f=(0,l.useCallback)((e=>{null===e&&(x(null),m(null),i(null)),j(e)}),[m,i,x]),b=(0,l.useCallback)((e=>{null===e?(i(null),m(null)):(i(e.year),m(e.month),x(null))}),[m,i,x]),N=(0,l.useCallback)((e=>{null===e?x(null):(i(null),m(null),x(e))}),[m,i,x]);return(0,l.useEffect)((()=>{r&&o?x(null):g?(m(null),i(null)):(x(null),m(null),i(null))}),[]),(0,v.jsxs)("section",{className:"PostList",children:[(0,v.jsx)(h.A,{title:t.title,description:t.seo,image:null!==t.image?(0,c.D)(t.image.resolutions,u.Mw).url:null}),(0,v.jsx)("section",{className:"head",children:(0,v.jsx)(p.Ay,{value:a})}),(0,v.jsxs)("section",{className:"main",children:[(0,v.jsxs)("main",{children:[(0,v.jsx)("h1",{children:t.title}),(0,v.jsxs)("div",{className:"filters",children:[(0,v.jsxs)("div",{className:"first-line",children:[(0,v.jsx)(Z,{defaultValue:y,onChange:f}),(0,v.jsx)(te,{id:"posts-search",name:"posts-search",placeholder:"Nach Beiträgen suchen ...",value:s,debounceDelay:200,onChange:n})]}),"date"===y&&(0,v.jsx)(Q,{defaultValue:{year:r,month:o},onChange:b}),"postType"===y&&(0,v.jsx)(U,{defaultValue:g,onChange:N})]}),(0,v.jsx)(A,{query:s,month:parseInt(o,10),year:parseInt(r,10),postType:g})]}),(0,v.jsx)("aside",{children:(0,v.jsx)(S,{})})]}),(0,v.jsx)("section",{children:(0,v.jsx)(T,{})})]})};ae.displayName="pages.PostList.__Content";const le=ae,se=e=>{const{isLoading:t,data:a,error:u}=(0,n.Ez)((0,l.useCallback)((()=>(0,s.R)({pageNaturalKey:"medium"})),[]));return(0,r.E)(u,(e=>"/".concat(e))),t?(0,v.jsx)(i.A,{}):(0,v.jsx)(o.A,{children:(0,v.jsx)(le,{data:a})})};
1se.displayName="pages.PostList";const ne=se},31326:(e,t,a)=>{e.exports=a.p+"8776ccade701ab273fdb.svg"},35310:(e,t,a)=>{var l=a(53762),s=a(81212),n=a(38468),r=s([].reverse),i=[1,2];l({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.