1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0849ffef-a1c5-44e7-90f6-e83d2d771d8e",e._sentryDebugIdIdentifier="sentry-dbid-0849ffef-a1c5-44e7-90f6-e83d2d771d8e")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8186],{4472:function(e,t,n){"use strict";var a=n(85893);n(67294),t.Z=function(e){return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:327,height:329,fill:"none",...e,children:[(0,a.jsx)("path",{fill:"#F0F0F0",fillRule:"evenodd",d:"M89.902 125.385c2.829-19.737 11.65-38.805 26.523-54.276 37.75-39.273 100.19-40.506 139.462-2.756 39.273 37.751 40.506 100.191 2.755 139.463-23.261 24.199-55.898 33.956-86.711 29.047a74.158 74.158 0 0 1-8.337 10.392c-28.209 29.346-74.867 30.268-104.214 2.059-29.346-28.209-30.268-74.868-2.059-104.214 9.286-9.66 20.572-16.241 32.58-19.715Z",clipRule:"evenodd"}),(0,a.jsx)("ellipse",{cx:135.089,cy:130.103,fill:"#558E72",rx:45.948,ry:10.882,transform:"rotate(-38.41 135.089 130.103)"}),(0,a.jsx)("path",{fill:"#D2E4D6",fillRule:"evenodd",d:"M170.343 100.61c2.252 2.841-12.041 17.925-31.926 33.691-19.792 15.693-37.663 26.147-40.05 23.442l57.063 71.967h.001c2.49 3.14 20.627-7.096 40.511-22.862 19.885-15.767 33.986-31.093 31.497-34.232a1.229 1.229 0 0 0-.034-.041l-57.062-71.966-.001.001h.001Z",clipRule:"evenodd"}),(0,a.jsx)("ellipse",{cx:135.092,cy:130.102,fill:"#235B42",rx:45.948,ry:6.046,transform:"rotate(-38.41 135.092 130.102)"}),(0,a.jsx)("path",{fill:"#558E72",fillRule:"evenodd",d:"M110.359 172.862c-11.511 9.128-13.107 26.283-3.565 38.318 9.543 12.035 26.61 14.392 38.122 5.265l-7.774-9.805c-6.45 3.024-14.362 1.349-18.98-4.475s-4.445-13.909-.03-19.5l-7.773-9.803ZM170.188 224.781c7.181-4.152 16.269-10.415 25.755-17.936 7.768-6.159 14.654-12.251 20.012-17.576.03.033.058.067.086.102 2.904 3.663-4.922 14.705-17.481 24.662-12.558 9.958-25.093 15.061-27.998 11.398a2.6 2.6 0 0 1-.374-.65Z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"#235B42",d:"M124.216 112.492c1.018 9.069 11.933 5.969 16.594 5.36L99.284 156.95c-5.847-1.536-18.365-6.425-21.657-13.691-4.115-9.082 11.533-2.971 15.16-12.02 3.627-9.048-8.426-16.465-25.576-24.471s-8.818-13.069-12.378-19.505c-3.56-6.436 2.713-16.04 11.566-10.713 8.852 5.326 20.274 3.167 17.02-5.78-3.05-8.383-3.297-23.619 8.987-25.643 14.949-2.464 15.132 22.978 10.254 30.447-2.091 3.201-6.342 25.089 4.798 25.515 11.14.426 10.268-11.275 7.058-16.398-5.813-9.278.819-14.537 5.164-14.896 6.489-.536 9.603 6.273 5.421 12.676-5.036 7.71-2.158 18.685-.885 30.021ZM69.115 60.513c-.239-2.896-2.076-8.847-7.512-9.474-6.795-.785.325 12.087 7.512 9.474Z"}),(0,a.jsx)("path",{fill:"#235B42",d:"M133.674 100.124c2.442-1.576 6.824-6 4.815-11.091-2.51-6.363-10.507 5.984-4.815 11.091ZM78.657 125.682c-1.68-2.372-6.291-6.558-11.29-4.331-6.248 2.784 6.434 10.238 11.29 4.331Z"}),(0,a.jsx)("path",{fill:"#D2E4D6",fillRule:"evenodd",d:"m111.345 174.098-.982-1.238c-11.511 9.128-13.107 26.283-3.565 38.318 9.542 12.035 26.61 14.392 38.122 5.265l-.984-1.24c-11.204 4.012-23.933.957-31.456-8.531-7.524-9.489-7.596-22.579-1.135-32.574Z",clipRule:"evenodd"})]})}},41662:function(e,t,n){"use strict";n.d(t,{d:function(){return w},Z:function(){return x}});var a=n(85893),r=n(67294),i=n(33299),l=n(41202),o=n(84262),s=n(4472),c=n(87708),d=n(29705),u=n(98219),_=n(49167),f=n(93041),m=n(83420),h=n(13350),g=n(50896),v=n(72342),p=n(10037),b=n.n(p);function w(){let{isMobile:e}=(0,_.Z)();return(0,a.jsx)("div",{className:"container container_magazin ".concat(b().base," ").concat(b().base_error),children:(0,a.jsxs)("div",{className:b().base_error_row,children:[e?null:(0,a.jsx)(s.Z,{}),(0,a.jsxs)("div",{className:"".concat(b().base_error_right_section," ").concat(e?b().base_error_right_section_mobile:""),children:[(0,a.jsx)("div",{className:b().items_not_found_title,children:"Oops! Etwas ist schiefgelaufen."}),(0,a.jsx)("div",{className:b().items_not_found_description,children:"Versuche es bitte nocheinmal."})]})]})})}function x(e){let{setFirstTwoBrands:t=()=>{},onArticleClick:n=()=>{},onFeedMaterialClick:s=()=>{},onLoadMoreClick:p=()=>{}}=e,[x,y]=(0,r.useState)(!0),[I,j]=(0,r.useState)(!1),[L,S]=(0,r.useState)([]),[N,K]=(0,r.useState)(1),[E,Z]=(0,r.useState)(1),[A,k]=(0,r.useState)(""),{data:R,status:M}=(0,i.useSession)(),{isMobile:T}=(0,_.Z)(),G="loading"===M,{saveScrollYPosition:B}=(0,h.p2)({scrollYKey:g.FR}),{markRestoreIntent:P,saveArticlesState:D,getRestoredArticlesState:z}=function(){let e=()=>{var e,t;if(null===v.pG||void 0===v.pG?void 0:v.pG.ssr)return null;let n=null===v.pG||void 0===v.pG?void 0:null===(t=v.pG.history)||void 0===t?void 0:null===(e=t.state)||void 0===e?void 0:e.idx;return Number.isInteger(n)?n:null},t=()=>{let t=e();if(null===t){v.KK.removeItem(g.u5);return}v.KK.setItem(g.u5,t.toString())},n=()=>{v.KK.removeItem(g.oV),v.KK.removeItem(g.u5)};return{markRestoreIntent:()=>{v.KK.setItem(g.LR,"1")},saveArticlesState:e=>{let{articles:n,page:a,totalPages:r}=e;v.KK.setItem(g.oV,JSON.stringify({articles:n,page:a,totalPages:r})),t()},getRestoredArticlesState:()=>{var t;let a="1"===v.KK.getItem(g.LR);v.KK.removeItem(g.LR);let r="1"===v.KK.getItem(g.dY);v.KK.removeItem(g.dY);let i=v.KK.getItem(g.u5),l=null!==i?Number(i):Number.NaN,o=e(),s=Number.isInteger(l)&&null!==o,c=v.KK.getItem(g.oV);if(!(a&&r&&(!s||s&&l===o))||!c)return n(),null;let d=JSON.parse(c);return(null==d?void 0:null===(t=d.articles)||void 0===t?void 0:t.length)?d:(n(),null)}}}(),{bookmarkIds:C,isLoading:V,fetchBookmarks:F}=(0,m.Z)({objectType:"post"}),H=(0,r.useRef)(!1),O=()=>{n(),B(),P()};async function X(){y(!0);try{let e=await q({});S(e.data.data),Z(e.data.totalPages),J(e.data.data),e.data.data.length>0&&Y(e.data.data),y(!1)}catch(e){y(!1),k(e),console.error(e)}}(0,r.useEffect)(()=>
1{if(!G&&!H.current){try{var e;let t=z();if((null==t?void 0:null===(e=t.articles)||void 0===e?void 0:e.length)>0){S(t.articles),K(t.page||1),Z(t.totalPages||1),y(!1),J(t.articles),Y(t.articles),H.current=!0;return}}catch(e){console.error("Error restoring articles from sessionStorage:",e)}H.current||(X(),H.current=!0,1!==N&&K(1))}},[G]),(0,r.useEffect)(()=>{if(0!==L.length)try{D({articles:L,page:N,totalPages:E})}catch(e){console.error("Error saving articles to sessionStorage:",e)}},[L,N,E]);let Y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];for(let t=0;t<e.length;t+=1){let l=e[t];if(l.brands.length>0){var a,r,i;let e=null===(i=l.brands[0])||void 0===i?void 0:null===(r=i.category)||void 0===r?void 0:null===(a=r.translated)||void 0===a?void 0:a.name;-1===n.indexOf(e)&&n.push({name:e,postId:l.id})}if(2===n.length)break}t(n)};async function q(e){let t,{pageToLoad:n=1}=e;R&&(t=R.user.customerId);let a=await (0,f.t9)({url:"/api/v2/magazin/get-posts-v2?".concat(n?"&pageToLoad=".concat(n):"").concat(t?"&userKey=".concat(t):""),method:"get",isTokenRequired:!0});return{data:{data:a.data.data,totalPages:Math.ceil(a.data.total/a.data.limit)}}}let Q=async()=>{p(),j(!0);try{let e=N+1;K(e);let t=await q({pageToLoad:e});S([...L,...t.data.data]),J(t.data.data)}catch(e){console.error(e)}j(!1)},J=e=>{(null==e?void 0:e.length)&&F(e.map(e=>e.shopwareId))},U=!!I||N<E,W=(0,r.useMemo)(()=>x?[]:U?L.slice(0,L.length-1):L,[L.length,x,!U]);if(A)return(0,a.jsx)(w,{});let $=(0,a.jsx)("div",{className:b().article,onClick:s,children:(0,a.jsx)("div",{className:"".concat(b().article_c
1ontainer_newsletter_inner," ").concat(T?b().article_container_newsletter_inner_mobile:""),children:(0,a.jsx)(o.Z,{className:b().newsletter})})});return(0,a.jsxs)("div",{className:"".concat(T?"":"container container_magazin"," ").concat(b().base),children:[(0,a.jsx)("div",{className:T?"container container_magazin":"",children:(0,a.jsx)(l.Z,{title:"Unsere neuesten Beitr\xe4ge"})}),(0,a.jsx)("div",{className:b().articles_container,children:x?(0,a.jsx)(c.Z,{}):W.map((e,t)=>{let n=C.includes(e.shopwareId)||!1;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(0===t?b().article_first:""," ").concat(b().article),children:(0,a.jsx)(u.Z,{isBookmarksLoading:V,isBookmarked:n,article:e,isLarge:0===t,onClick:O},e.id)}),T||4!==t?null:$]})})}),U?(0,a.jsx)("div",{className:b().load_more_button_container,children:(0,a.jsx)(d.Z,{className:b().load_more_button,onClick:Q,children:"mehr Beitr\xe4ge anzeigen"})}):null,T?$:null]})}},85469:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});let a={MOBILE:"platform_mobile",WEB:"platform_web"}},62509:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(67294),r=n(11163),i=n(33299),l=n(93041),o=n(83420);function s(e){let{brandName:t=null,keyword:n=null,exclude:s=null,authorId:c=null,limit:d=3,isSearchContext:u=!1}=e,[_,f]=(0,a.useState)(!0),[m,h]=(0,a.useState)(!1),[g,v]=(0,a.useState)([]),[p,b]=(0,a.useState)(1),[w,x]=(0,a.useState)(1),[y,I]=(0,a.useState)(""),[j,L]=(0,a.useState)(!1),S=(0,r.useRouter)(),{data:N,status:K}=(0,i.useSession)(),E="loading"===K,{bookmarkIds:Z,isLoading:A,fetchBookmarks:k}=(0,o.Z)({objectType:"post"});async function R(){f(!0);try{var e;let t=await M({});v(t.data.data),x(t.data.totalPages),G(null===(e=t.data)||void 0===e?void 0:e.data),f(!1)}catch(e){f(!1),I(e),console.error(e)}}async function M(e){let a,{pageToLoad:r=1}=e;N&&(a=N.user.customerId);let i=await (0,l.t9)({url:"/api/v2/magazin/get-posts-v2?".concat(n?"&keyword=".concat(n):"").concat(r?"&pageToLoad=".concat(r):"").concat(t?"&brandName=".concat(t):"","&limit=").concat(d).concat(a?"&userKey=".concat(a):"").concat(s?"&exclude=".concat(s):"").concat(c?"&authorId=".concat(c):""),method:"get",isTokenRequired:!0});return{data:{data:i.data.data,totalPages:Math.ceil(i.data.total/i.data.limit)}}}(0,a.useEffect)(()=>{if(u){R(),1!==p&&b(1);return}E||(!j&&(t||n||s||c)&&(R(),L(!0)),1!==p&&b(1))},[S.asPath,t,n,s,c,j,E,u]);let T=async()=>{h(!0);try{let e=p+1;b(e);let t=await M({pageToLoad:e});v([...g,...t.data.data]),G(t.data.data)}catch(e){console.error(e)}h(!1)},G=e=>{(null==e?void 0:e.length)&&k(e.map(e=>e.shopwareId))};return{bookmarkIds:Z,isBookmarksLoading:A,articles:g,isLoadMoreLoading:m,isInitialRequestLoading:_,error:y,fetchArticles:M,handleLoadMore:T,showLoadMore:!!m||p<w}}},13350:function(e,t,n){"use strict";n.d(t,{p2:function(){return u}});var a=n(67294),r=n(11163),i=n(72342),l=n(77738),o=n(49167);function s(){let{body:e}=document,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}let c=["wheel","touchmove","keydown"];async function d(e){let{scrollY:t,scrollYKey:n,userScroll:a,restoration:r}=e;await (0,l._)(400);let i=400;for(;t>Math.max(s()-window.innerHeight,0)&&i<4e3&&!a.hasScrolled&&!r.cancelled;)await (0,l._)(100),i+=100;a.stopListening(),!r.cancelled&&parseInt(sessionStorage.getItem(n),10)===t&&(sessionStorage.removeItem(n),a.hasScrolled||t>s()||window.scrollTo({left:0,top:t,behavior:"instant"}))}let u=e=>{let{scrollYKey:t,shouldRestore:n=!0}=e,{isMobile:l}=(0,o.Z)(),s=(0,r.useRouter)();return(0,a.useEffect)(()=>{if(!i.pG.ssr&&n)return function(e){var t;let{scrollYKey:n,router:a}=e,r=parseInt(sessionStorage.getItem(n),10);if(Number.isNaN(r))return()=>{};let i=function(){let e={hasScrolled:!1},t=()=>{e.hasScrolled=!0};return c.forEach(e=>window.addEventListener(e,t,{passive:!0})),e.stopListening=()=>c.forEach(e=>window.removeEventListener(e,t)),e}(),l={cancelled:!1},o=()=>{l.cancelled=!0,i.stopListening()};return null==a||null===(t=a.events)||void 0===t||t.on("routeChangeStart",o),d({scrollY:r,scrollYKey:n,userScroll:i,restoration:l}),()=>{var e;o(),null==a||null===(e=a.events)||void 0===e||e.off("routeChangeStart",o)}}({scrollYKey:t,router:s})},[null===i.pG||void 0===i.pG?void 0:i.pG.ssr,n]),{saveScrollYPosition:function(){sessionStorage.setItem(t,(window.scrollY+(l?78:0)).toString())}}}},10037:function(e){e.exports={base:"ArticleList_base__AFUXa",base_error:"ArticleList_base_error__lnW62",base_error_row:"ArticleList_base_error_row__blyJD",base_error_right_section:"ArticleList_base_error_right_section__sQjcI",base_error_right_section_mobile:"ArticleList_base_error_right_section_mobile__PqwxG",articles_container:"ArticleList_articles_container__85Qb_",article:"ArticleList_article__TT9fK",article_first:"ArticleList_article_first__sQbVf",items_not_found_title:"ArticleList_items_not_found_title__ldjXq",items_not_found_description:"ArticleList_items_not_found_description__VaPPX",load_more_button_container:"ArticleList_load_more_button_container__BVX1L",load_more_button_text:"ArticleList_load_more_button_text__QOhl1",load_more_button_container_detail_page:"ArticleList_load_more_button_container_detail_page__kEbEy",load_more_button:"ArticleList_load_more_button__zcX95",article_c
1ontainer_newsletter_inner:"ArticleList_article_container_newsletter_inner__jTITj",article_container_newsletter_inner_mobile:"ArticleList_article_container_newsletter_inner_mobile__0MvX3",newsletter:"ArticleList_newsletter__ImNEd"}}}]);
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.