"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1600],{18488:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(85893),i=t(94184),a=t.n(i),l=t(69569),o=t(2884),s=t(24443),c=t(82729),d=t(31666),u=t(11010);function p(){let e=(0,c._)(["\n font-size: 12px;\n margin-bottom: 24px;\n\n @media all and (max-width: 820px) {\n margin-bottom: 8px;\n }\n\n .breadcrumb {\n color: ",";\n text-decoration: none;\n margin-left: 0.4em;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n cursor: pointer;\n\n &--underline {\n text-decoration: underline;\n }\n\n &:first-of-type {\n margin-left: 0;\n }\n\n &:hover {\n color: ",";\n }\n }\n"]);return p=function(){return e},e}function m(){let e=(0,c._)(["\n color: ",";\n font-weight: 700;\n margin-left: .4em;\n"]);return m=function(){return e},e}function g(){let e=(0,c._)(["\n color: ",";\n font-weight: 300;\n margin-left: .4em;\n"]);return g=function(){return e},e}let h=d.Z.p(p(),u.Z.buttonColorDimmed,u.Z.buttonColorDimmedLight),x=d.Z.span(m(),u.Z.buttonColorSecondaryLight),f=d.Z.span(g(),u.Z.buttonColorSecondaryLight);var v=e=>{let{inActives:n=[],showUnderline:t,active:i}=e;return(0,r.jsx)("div",{className:"bread-crumbs-wrapper",children:(0,r.jsxs)(h,{className:"bread-crumbs-container",children:[(0,r.jsx)(s.Z,{route:l.XX,children:(0,r.jsx)("span",{className:a()({breadcrumb:!0,"breadcrumb--underline":t}),children:"".concat((0,o.t)("WEB2_LOCALIZATION_homepage")," >")})}),n.map((e,n)=>(0,r.jsx)(s.Z,{route:e.route,params:e.routeParams,className:a()({breadcrumb:!0,"breadcrumb--underline":t}),children:(0,r.jsx)("span",{className:a()({breadcrumb:!0,"breadcrumb--underline":t}),children:"".concat(e.label," >")})},e.route.key+n)),!!i&&t&&(0,r.jsx)(f,{children:i}),!!i&&!t&&(0,r.jsx)(x,{children:i})]})})}},82712:function(e,n,t){var r=t(85893),i=t(94184),a=t.n(i);n.Z=e=>{let{children:n=null,className:t}=e;return(0,r.jsx)("div",{className:a()({"layout-page-container":!0,[t]:!!t}),children:n})}},54447:function(e,n,t){t.d(n,{Z:function(){return y}});var r=t(56225),i=t(85893);t(67294);var a=t(30053),l=t(48059),o=t(70724),s=t(2884),c=t(74532),d=t(99452),u=t(26555),p=t(57159),m=t(93556),g=t(82729),h=t(31666),x=t(11010);function f(){let e=(0,g._)(["\n display: flex;\n flex-direction: column;\n gap: 2.25rem;\n\n .list-body {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: stretch;\n /* margin: 3em 0; */\n gap: 0.94rem;\n\n &-align-left {\n justify-content: flex-start;\n\n .public-func-retailers-list-element {\n margin-right: 1em;\n }\n }\n }\n\n @media all and (max-width: ",") {\n gap: 16px;\n\n & > .layout-button {\n .button {\n padding: 12px 24px;\n font-size: 14px;\n border-width: 2px;\n\n .button-content {\n font-size: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: unset;\n }\n }\n }\n }\n"]);return f=function(){return e},e}var v=h.Z.div(f(),x.Z.mobileL),y=(0,r.$j)((e,n)=>({state:{market:e.markets.current.data}}))(e=>{let{collection:n,state:t,onLoad:r=e=>new Promise(n=>n(e)),hideButton:g,buttonLink:h,buttonRoute:x,buttonParams:f,enablePagination:y,customButton:b,style:w}=e,P=(0,o.OH)(),Z={seeMoreButton:(0,s.t)("WEB2_NEWSPAPERS_LIST_seeMoreButton")};return(0,i.jsxs)(v,{className:"public-func-selected-deals-list",style:w,children:[(0,i.jsx)(u.Z,{onLoad:e=>r?r(e):new Promise(n=>n(e)),collection:{...n,meta:y?n.meta:null},onMapElement:e=>{var n;return(0,i.jsx)(p.Z,{market:t.market,productId:e.id,productName:e.name,productSlug:e.originSlug,retailerSlug:e.retailer.slug,retailerName:e.retailer.name,image:(0,i.jsx)(m.Z,{alt:"product - ".concat(null==e?void 0:e.name," - ").concat(null==e?void 0:null===(n=e.retailer)||void 0===n?void 0:n.name),src:e.thumbnails.list}),description:e.name,priceOld:e.oldPrice&&a.Z.getItemPrice(e.oldPrice,t.market),price:e.price&&a.Z.getItemPrice(e.price,t.market),parcelPrice:e.parcelPrice&&a.Z.getParcelPrice(e.parcelPrice,e.parcelNumberOfMonths,t.market),parcelNumberOfMonths:e.parcelNumberOfMonths,forAdults:e.forAdults,displayDuration:e.displayDuration,buyNow:e.buyNow},e.id)}}),!g&&(0,i.jsx)(d.ZP,{style:d.AK.Secondary,variant:d.cT.Outline,element:d.vt.Anchor,href:h,route:x,routeParams:f,onClick:()=>(0,c.L)(l.o5.CategoryClick,{category:null==f?void 0:f.topCategorySlug,page_source:P}),children:Z.seeMoreButton}),(null==b?void 0:b.visible)&&(0,i.jsx)(i.Fragment,{children:(null==b?void 0:b.content)||(0,i.jsx)(d.ZP,{style:d.AK.Secondary,variant:d.cT.Outline,onClick:b.onClick,children:Z.seeMoreButton})})]})})},1600:function(e,n,t){t.d(n,{Z:function(){return el}});var r=t(56225),i=t(11163),a=t(14890),l=t(32887),o=t(86463),s=t(77936),c=t(84018),d=t(85893),u=t(67294),p=t(9661),m=t(48059),g=t(69569),h=t(70724),x=t(2884),f=t(74532),v=t(18488),y=t(44017),b=t(78360),w=t(34849),P=t(82712),Z=t(36957),j=t(9029),N=t(94184),C=t.n(N),_=t(27484),T=t.n(_),S=t(30053),I=t(32437),E=t(12410),O=t(13348),A=t(56417),k=t(27732),L=t(72519),D=t(70740),B=t(92397),R=t(24443),z=t(32310),M=t(93556);let U=(e,n)=>(null==e?void 0:e.price)?S.Z.getItemPrice(e.price.toString(),n):null,W=(e,n)=>(null==e?void 0:e.parcelPrice)&&(null==e?void 0:e.parcelNumberOfMonths)?S.Z.getParcelPrice(e.parcelPrice.toString(),e.parcelNumberOfMonths.toString(),n):null;var G=t(82729),q=t(31666),H=t(11010);function F(){let e=(0,G._)(["\n .product-old-price {\n color: ",";\n font-weight: 400;\n font-size: 18px;\n text-decoration: line-through;\n\n @media (max-width: ",") {\n font-size: 14px;\n }\n }\n\n .product-prices {\n .total-price {\n display: flex;\n align-items: baseline;\n justify-content: flex-start;\n gap: 8px;\n\n .product-price {\n color: ",";\n font-size: 28px;\n font-style: normal;\n font-weight: 700;\n\n @media (max-width: ",") {\n font-size: 20px;\n }\n }\n }\n\n .parcel-price {\n .product-parcel-price {\n color: ",";\n font-weight: 700;\n font-size: 1.62em;\n line-height: 80%;\n }\n }\n\n .product-before-price-text {\n color: ",";\n }\n }\n"]);return F=function(){return e},e}let J=q.Z.section(F(),H.Z.secondaryAccentColorLighter,H.Z.mobileL,H.Z.primaryTextColor,H.Z.mobileL,H.Z.secondaryAccentColorLighter,H.Z.primaryTextColor);var Y=e=>{let{product:n,market:t}=e,r={beforePriceText:(0,x.t)("WEB2_PRODUCT_beforePriceText"),beforeParcelPriceText:(0,x.t)("WEB2_PRODUCT_beforeParcelPriceText")},i=()=>(0,u.useMemo)(()=>"WEB2_PRODUCT_beforePriceText"!==r.beforePriceText?r.beforePriceText:null,[]);return(0,d.jsx)(J,{children:(0,d.jsxs)("div",{className:"product-prices",children:[(0,d.jsxs)("div",{className:"total-price",children:[i()?(0,d.jsx)("span",{className:"product-before-price-text",children:i()}):null,(0,d.jsx)("p",{className:"product-price",children:U(n,t)}),n.oldPrice&&(0,d.jsx)("p",{className:"product-old-price",children:S.Z.getItemPrice(n.oldPrice.toString(),t)})]}),n.parcelPrice&&(0,d.jsxs)("div",{className:"parcel-price",children:[(0,d.jsx)("span",{className:"product-before-price-text",children:"WEB2_PRODUCT_beforeParcelPriceText"!==r.beforeParcelPriceText?r.beforeParcelPriceText:null}),(0,d.jsx)("p",{className:"product-parcel-price",children:W(n,t)})]})]})})};function X(){let e=(0,G._)(["\n display: flex;\n margin-bottom: 5em;\n\n .product-info {\n display: flex;\n margin-bottom: 3.75em;\n gap: 30px;\n\n @media (max-width: ",") {\n flex-direction: column;\n margin-bottom: 2em;\n }\n\n .product-image-container {\n border-radius: 8px;\n border: 1px solid ",";\n width: 100%;\n max-width: 267px;\n height: 267px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n @media (max-width: ",") {\n border: none;\n }\n\n @media (max-width: ",") {\n margin: 0 auto;\n max-width: none;\n }\n\n img {\n width: 90%;\n height: 90%;\n object-fit: contain;\n\n &.past {\n filter: grayscale(100%);\n }\n }\n }\n\n .product-details {\n width: 100%;\n .button-wrapper {\n display: flex;\n align-items: center;\n justify-content: start;\n margin-top: 1.5rem;\n width: 100%;\n font-size: 0.875rem;\n height: 48px;\n gap: 16px;\n\n @media (max-width: ",") {\n height: 42px;\n }\n }\n\n @media (max-width: ",") {\n margin-left: 0;\n }\n\n .product-title {\n font-size: 1.75em;\n color: ",";\n font-weight: 700;\n }\n\n .product-subtitle {\n color: ",";\n font-size: 1.125em;\n font-weight: 700;\n }\n\n .product-promoton-ends {\n color: ",";\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n\n time {\n margin-left: 0.4em;\n }\n }\n\n .product-categories {\n display: flex;\n align-items: center;\n gap: 7px;\n margin-bottom: 24px;\n\n @media screen and (max-width: ",") {\n margin-bottom: 12px;\n }\n\n &-title {\n color: ",";\n font-size: 14px;\n font-style: normal;\n font-weight: 700;\n }\n\n .categories-list {\n display: flex;\n color: ",";\n\n &-element {\n &:not(:last-child) {\n margin-right: 0.7em;\n }\n\n .element-name {\n color: ",";\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n text-decoration: none;\n }\n }\n }\n }\n\n .newspaper-button {\n max-width: 200px;\n height: 100%;\n width: 48%;\n\n .newspaper-link {\n height: 100%;\n width: 100%;\n color: ",";\n font-weight: 400;\n border-radius: 100px;\n text-decoration: none;\n display: flex;\n justify-content: center;\n text-align: center;\n gap: 10px;\n align-items: center;\n border: 1px solid ",";\n\n span {\n width: 65%;\n }\n }\n }\n }\n }\n\n .product-description {\n color: ",";\n font-size: 0.9375rem;\n font-style: normal;\n font-weight: 400;\n }\n\n .column-details {\n flex: 3;\n padding-top: 3em;\n\n .retailer-description {\n color: ",";\n line-height: 1.5em;\n }\n }\n\n .column-newspaper {\n flex: 1.5;\n\n img {\n cursor: pointer;\n width: 300px;\n height: 430px;\n padding: 1em;\n object-fit: contain;\n margin-left: auto;\n box-shadow: 0px 8px 12px rgba(39, 53, 66, 0.1);\n\n &.past {\n filter: grayscale(100%);\n }\n }\n\n @media (max-width: ",") {\n display: none;\n }\n }\n\n .adult-content-overlay {\n position: relative;\n width: 100%;\n height: 30em;\n z-index: 1;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: stretch;\n margin-top: 2em;\n }\n"]);return X=function(){return e},e}let K=q.Z.section(X(),H.Z.mobileL,H.Z.secondaryAccentColorLightestx2,H.Z.mobileL,H.Z.mobileL,H.Z.mobileL,H.Z.mobileS,H.Z.primaryTextColor,H.Z.primaryTextColor,H.Z.primaryTextColor,H.Z.mobileL,H.Z.secondaryAccentColorLighter,H.Z.secondaryAccentColorLighter,H.Z.secondaryAccentColorLighter,H.Z.primaryTextColor,H.Z.secondaryAccentColorLighter,H.Z.secondaryAccentColor,H.Z.primaryTextColor,H.Z.tabletL);var V=e=>{var n,t,i;let{visitor:a,current:l,productCategories:o,retailer:s,market:c,currentPageState:p}=e,[m,f]=(0,k.Z)(0,.25),[v,y]=(0,u.useState)(!1),b=(0,O.so)(),w=(0,r.I0)(),P=(0,h.OH)();(0,u.useEffect)(()=>{if(l.newspaperId&&l.retailer.slug&&m&&!v&&(null==l?void 0:l.newspaperTrackers)&&(null==a?void 0:a.id)){var e,n;(0,A.v)({visitorId:null==a?void 0:a.id,newspaperId:l.newspaperId,retailerId:(null==l?void 0:null===(e=l.retailer)||void 0===e?void 0:e.id)||"",retailerName:(null==l?void 0:null===(n=l.retailer)||void 0===n?void 0:n.slug)||"",source:P,trackers:null==l?void 0:l.newspaperTrackers}),y(!0)}},[m,v,null==l?void 0:l.newspaperId,null==a?void 0:a.id]);let Z=()=>{let e=T()();if(l.endAt){let n=T()(l.endAt);return e.isAfter(n)}return!1},j=null,N={categorySlug:null===(n=s.retailerCategory)||void 0===n?void 0:n.slug,retailerSlug:s.slug,retailerName:s.name,npage:null==l?void 0:null===(t=l.newspaperImage)||void 0===t?void 0:t.order};(null===(i=l.newspaper)||void 0===i?void 0:i.newspaperCurrentOrder)?(j=g.CF,N={...N,order:l.newspaper.newspaperCurrentOrder}):(j=g.Bx,N={...N,id:l.newspaperId});let _=e=>{w({type:L.H,payload:e})};return(0,I.F)(b,l.forAdults)?(0,d.jsx)(K,{children:(0,d.jsx)(B.Z,{onClick:()=>_(!0)})}):(0,d.jsxs)(K,{children:[(0,d.jsxs)("div",{className:"column-details",children:[(0,d.jsxs)("div",{className:"product-info",children:[(0,d.jsx)("div",{className:"product-image-container",children:(0,d.jsx)(M.Z,{src:l.imageUrl,alt:l.name||"",className:C()({past:Z()})})}),(0,d.jsxs)("div",{className:"product-details",children:[(0,d.jsx)("h1",{className:"product-title",children:l.name}),(0,d.jsx)("p",{className:"product-subtitle",children:(0,x.t)("WEB2_PRODUCT_subtitle").replace("{{retailerName}}",l.retailer.name)}),(0,d.jsxs)("div",{className:"product-categories",children:[(0,d.jsx)("p",{className:"product-categories-title",children:(0,x.t)("WEB2_PRODUCT_categories")}),(0,d.jsx)("ul",{className:"categories-list",children:o.map(e=>(e=JSON.parse(e),(0,d.jsx)("li",{className:"categories-list-element",children:(0,d.jsx)(R.Z,{route:g.iB,params:{topCategorySlug:e.slug},children:(0,d.jsx)("a",{className:"element-name",children:e.name})})},e.id)))})]}),(0,d.jsx)(Y,{market:c,product:l}),(0,d.jsx)("p",{className:"product-promoton-ends",children:l.endAt&&l.displayDuration?(0,E.xc)(l):""}),l.newspaperId||l.buyNow?(0,d.jsxs)("div",{className:"button-wrapper",children:[l.buyNow?(0,d.jsx)(z.Z,{type:S.z.ITEM_PAGE,buyNow:l.buyNow,market:c,productId:l.id,productName:l.name}):"",l.newspaperId?(0,d.jsx)("div",{className:"newspaper-button",onClick:()=>{w({type:D.i,payload:{...p,[l.newspaperId]:l.newspaperImage.order+1}})},children:(0,d.jsx)(R.Z,{route:j,params:N,children:(0,d.jsxs)("a",{className:"newspaper-link",children:[(0,d.jsx)(M.Z,{src:"/assets/icons/eye-icon.svg",alt:"eye-icon",className:"newspaper-icon"}),(0,d.jsx)("span",{children:(0,x.t)("WEB2_PRODUCT_newspaperLink")})]})})}):""]}):""]})]}),l.description&&(0,d.jsx)("span",{className:"product-description",children:l.description})]}),l.newspaperId&&(0,d.jsx)("div",{className:"column-newspaper",ref:f,onClick:()=>{w({type:D.i,payload:{...p,[l.newspaperId]:l.newspaperImage.order+1}})},children:(0,d.jsx)(R.Z,{route:j,params:N,children:(0,d.jsx)("div",{children:(0,d.jsx)(M.Z,{src:l.newspaperImage.imageUrl,className:C()({past:Z()}),alt:"newspaper image - ".concat(l.name," - ").concat(l.retailer.name)})})})})]})},$=t(42472);function Q(){let e=(0,G._)(["\n margin-bottom: 5em;\n @media all and (max-width: ",") {\n }\n"]);return Q=function(){return e},e}var ee=q.Z.div(Q(),H.Z.tabletS),en=t(54447),et=e=>{let{collection:n}=e,t={...n,elements:n.elements.slice(0,10)};return(0,d.jsxs)(ee,{className:"public-page-home-section-selected-deals",children:[(0,d.jsx)($.Z,{variant:$.t.Orange,children:(0,d.jsx)("h2",{className:"title-heading",children:(0,x.t)("WEB2_PRODUCT_similarProductsTitle")})}),(0,d.jsx)(en.Z,{hideButton:!0,collection:{...t,meta:null}})]})};function er(){let e=(0,G._)(["\n @media all and (max-width: ",") {\n }\n"]);return er=function(){return e},e}var ei=q.Z.div(er(),H.Z.tabletS),ea=e=>{var n,t;let{state:r,actions:a,isLoaded:l}=e,{query:o}=(0,i.useRouter)(),s=null===(n=r.retailer)||void 0===n?void 0:n.data,[c,N]=(0,u.useState)(null),C=null===(t=r.current)||void 0===t?void 0:t.data,_=(0,h.z1)();(0,u.useEffect)(()=>{if(C){var e;(0,f.L)(m.o5.ItemEnter,{item_name:null==C?void 0:C.name,item_category:null==C?void 0:null===(e=C.topCategory)||void 0===e?void 0:e.name,item_price:null==C?void 0:C.price,item_price_crossed:null==C?void 0:C.oldPrice,page_source:(null==o?void 0:o.queryObject)?m.Nl.Search:null==_?void 0:_.source,retailer_name:null==s?void 0:s.slug})}},[C]),(0,u.useEffect)(()=>{if(l)return T();l||a.getSingleRetailer({slug:o.retailerSlug.toString()}).then(e=>a.singleProduct({slug:o.productSlug.toString(),retailerId:e.payload.data.retailer.id}))},[o.productSlug]),(0,u.useEffect)(()=>{if(C&&s){var e,n;T(),(null==C?void 0:null===(e=C.newspaper)||void 0===e?void 0:e.newspaperCurrentOrder)&&a.getCurrentNewspaper({retailerSlug:s.slug,newspaperOrder:null==C?void 0:null===(n=C.newspaper)||void 0===n?void 0:n.newspaperCurrentOrder.toString()}).then(e=>{let n=e.payload.data.newspaper;n&&N(new p.Z(n))})}},[C,s]);let T=()=>{a.listSimilarProducts({id:null==C?void 0:C.id,perPage:10,page:1})},S={productMetaTitleEmpty:(0,x.t)("WEB2_PRODUCT_meta_title",{retailer:"",product:""}),productMetaDescriptionEmpty:(0,x.t)("WEB2_PRODUCT_meta_description",{product:""}),localizationRetailers:(0,x.t)("WEB2_LOCALIZATION_retailers")};if(!C||!s)return(0,d.jsxs)(ei,{className:"public-page-home",children:[(0,d.jsx)(b.Z,{title:S.productMetaTitleEmpty,description:S.productMetaDescriptionEmpty}),(0,d.jsx)(j.Z,{children:(0,d.jsx)(Z.ZP,{})})]});let I={metaTitle:(0,x.t)("WEB2_PRODUCT_meta_title",{retailer:s.name||"",product:C.name||""}),metaDesc:(0,x.t)("WEB2_PRODUCT_meta_description",{product:C.name||""})};return(0,d.jsxs)(ei,{className:"public-page-home",children:[(0,d.jsx)(b.Z,{title:I.metaTitle,description:I.metaDesc}),(0,d.jsx)(j.Z,{children:(0,d.jsx)(P.Z,{children:(0,d.jsxs)(w.Z,{children:[(0,d.jsx)(y.Z,{customStyles:{marginBottom:"2.875em"},type:"desktop",adId:"product-menu"}),(0,d.jsx)(y.Z,{customStyles:{marginBottom:"2.875em"},type:"mobile",adId:"product-menu-mobile"}),(0,d.jsx)(v.Z,{inActives:[{label:S.localizationRetailers,route:g.oP},{label:r.retailer.data.retailerCategory.name,route:g.iB,routeParams:{topCategorySlug:r.retailer.data.retailerCategory.slug}},{label:C.retailer.name,route:g.eg,routeParams:{slug:C.retailer.slug}}],active:C.name}),(0,d.jsx)(V,{visitor:r.visitor,market:r.market,newspaper:c,current:C,currentPageState:r.currentPage,retailer:r.retailer.data,productCategories:c?[...new Set([JSON.stringify(null==c?void 0:c.retailerCategory),JSON.stringify(r.retailer.data.retailerCategory)])]:[JSON.stringify(r.retailer.data.retailerCategory)]}),!!r.similarProducts.elements.length&&(0,d.jsx)("section",{children:(0,d.jsx)(et,{collection:r.similarProducts})})]})})})]})};ea.getInitialProps=l.Y.getInitialPageProps(e=>async n=>{let{query:t,req:r,res:i}=n;if(!r)return{};try{await e.dispatch((0,c.U_)({slug:t.retailerSlug.toString()})).then(async n=>{await e.dispatch((0,s.Zr)({slug:t.productSlug.toString(),retailerId:n.payload.data.retailer.id}))})}catch(e){var a,l;throw i.statusCode=(null==e?void 0:null===(l=e.error)||void 0===l?void 0:null===(a=l.response)||void 0===a?void 0:a.status)||404,Error()}return{isLoaded:!0}});var el=(0,i.withRouter)((0,r.$j)((e,n)=>({state:{visitor:e.visitor.data,market:e.markets.current.data,similarProducts:e.products.similarProducts,newspaperProducts:e.products.listCurrentNewspaper,retailer:e.retailers.current,current:e.products.single,currentPage:e.newspaperViewerStore.mapBy}}),e=>({actions:{getSingleRetailer:(0,a.DE)(c.U_,e),singleProduct:(0,a.DE)(s.Zr,e),listSimilarProducts:(0,a.DE)(s.ML,e),getCurrentNewspaper:(0,a.DE)(o.HS,e)}}))(ea))},77936:function(e,n,t){t.d(n,{GR:function(){return g},H9:function(){return c},M0:function(){return p},ML:function(){return u},Oz:function(){return s},Zc:function(){return m},Zr:function(){return d},pb:function(){return o},wD:function(){return h}});var r=t(33238),i=t(13659),a=t(98400),l=t(16014);let o=e=>(n,t)=>n((0,a.lA)({getState:t,reduxType:e.reduxType||l.IY,method:"GET",path:r.Zy,params:e,ignoreState:e.ignoreState||!1,requestParams:{...e,page:e.page||1,perPage:e.perPage||20}})),s=e=>(n,t)=>n((0,a.lA)({getState:t,reduxType:l.UZ,method:"GET",path:(0,i.n)(r.xG,e),params:e,requestParams:{...e,page:e.page||1,perPage:e.perPage||20}})),c=e=>(n,t)=>n((0,a.lA)({getState:t,method:"GET",path:r.Zy,ignoreState:!0,params:e,requestParams:{...e,page:e.page||1,perPage:e.perPage||20}})),d=e=>(n,t)=>n((0,a.lA)({getState:t,reduxType:l.RP,method:"GET",path:(0,i.n)(r.YC,e),params:e,requestParams:{retailerId:null==e?void 0:e.retailerId}})),u=e=>(n,t)=>n((0,a.lA)({getState:t,reduxType:l.H5,method:"GET",path:(0,i.n)(r.PC,e),params:e})),p=e=>(n,t)=>n((0,a.lA)({getState:t,reduxType:l.Xm,method:"GET",path:(0,i.n)(r.rV,e),params:e,cache:null==e?void 0:e.cache,requestParams:{...e,page:e.page||1,perPage:e.perPage||20}})),m=e=>(n,t)=>n((0,a.lA)({getState:t,reduxType:l.U6,method:"GET",path:(0,i.n)(r.C2,e),params:e,requestParams:{...e,page:e.page||1,perPage:e.perPage||20}})),g=e=>(n,t)=>n((0,a.lA)({getState:t,reduxType:l.LY,method:"GET",path:r.Zy,params:e,ignoreState:e.ignoreState||!1,requestParams:{...e,page:e.page||1,perPage:e.perPage||10}})),h=e=>(n,t)=>n((0,a.lA)({getState:t,reduxType:l.k_,method:"GET",path:(0,i.n)(r.Zu,e),params:e,requestParams:{...e,page:e.page||1,perPage:e.perPage||20}}))},56417:function(e,n,t){t.d(n,{v:function(){return d}});var r=t(9669),i=t.n(r),a=t(48059),l=t(65829),o=t(18975);async function s(){var e;let n=await (0,o.h)();return n&&(null==n?void 0:null===(e=n.find(e=>(null==e?void 0:e.name)==="retailer_leaflet_imp_enabled"))||void 0===e?void 0:e.result)||[]}var c=t(74532);let d=async e=>{var n,t;if((null==e?void 0:e.newspaperId)&&(null==e?void 0:e.retailerId)&&(null==e?void 0:e.retailerName)&&(null==e?void 0:e.visitorId)&&(await s()).includes(e.retailerId)&&Array.isArray(null==e?void 0:e.trackers)&&(null==e?void 0:null===(n=e.trackers)||void 0===n?void 0:n.length)>0){let n=null==e?void 0:null===(t=e.trackers)||void 0===t?void 0:t.filter(e=>{let{impression:n}=e;return null!==n});n.length&&(await i().all(n.map(n=>{let{impression:t}=n;return i().get((0,l.j)(t,void 0,null==e?void 0:e.visitorId))})).catch(()=>{}),(0,c.L)(a.o5.LeafletImpression,{leaflet_id:e.newspaperId,retailer_name:null==e?void 0:e.retailerName,page_source:null==e?void 0:e.source}))}}},27732:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(67294);function i(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,[n,t]=(0,r.useState)(!1),i=(0,r.createRef)(),a=null,l=e=>{if(!e)return!1;let n=e;for(;n;){let e=window.getComputedStyle(n);if("0"===e.opacity||"hidden"===e.visibility||"none"===e.display)return!1;n=n.parentElement}return!0};return(0,r.useEffect)(()=>{let n=i.current;if(!n)return;let r=new IntersectionObserver(e=>{let[r]=e;r.isIntersecting?requestAnimationFrame(()=>(t(l(n)),(a=new MutationObserver(()=>{requestAnimationFrame(()=>{t(l(n))})})).observe(document.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>a.disconnect())):(t(!1),a&&a.disconnect())},{threshold:e});return r.observe(n),()=>{r.disconnect(),a&&a.disconnect()}},[i,e]),[n,i]}}}]);