1try{let 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]="cf6101c2-14bb-4a47-94fe-c7b56201f870",e._sentryDebugIdIdentifier="sentry-dbid-cf6101c2-14bb-4a47-94fe-c7b56201f870")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1923,4984,8628,9429],{9365:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/cart/replace/[type]/[id]",function(){return a(71457)}])},9717:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var l=a(18153),r=a(14232),n=a(77328),o=a.n(n),c=a(89099),i=a(37004);let s=()=>{let e=(0,i.d4)(e=>e.currentCountry),t=(0,i.d4)(e=>e.settings),{domain:a}=e,{currentDomain:l}=t;return{baseUrl:"localhost"===l?"http://localhost:3001":"develop.blalafo.com"===a?"http://".concat(a):"https://".concat(a)}};var d=a(43561),p=a(29182),u=a(94937),C=a(56995),_=a(66479),m=a(44634),h=a(60262),g=a(38670);let k={uk:"uk-PL",en:"en-PL",pl:"pl"},v=e=>{var t;let{imageUrl:a,metaRobotsContent:n,shouldHideCanonical:v,shouldHideMetaRobots:b,querySeoMetas:f}=e,A=(0,c.useRouter)(),{baseUrl:y}=s(),R=(0,d.W)(),Y=(0,i.d4)(e=>e.activeLanguages),S=(0,i.d4)(e=>e.locale),x=(0,i.d4)(e=>e.currentCountry),{translations:T}=(0,r.useContext)(p.q),E=(null==f?void 0:f.title)||"Lalafo",I=(null==f?void 0:f.description)||"",L=null==f?void 0:f.target_price_page,w=(0,C.v)(R),D=((e,t)=>{var a,l;switch(!0){case!!((0,_.A)(x)&&L):let r=(0,h.R)({url:A.asPath}),n=(null==r?void 0:r.queryParams)&&(0,g.ys)({queryParams:null==r?void 0:r.queryParams,parameter:"price[to]"});return null!=(a=(0,m.A)("".concat(null==R?void 0:R.split("?")[0]).concat(n?"?".concat(n):""),{log:{sourceKey:"canonicalUrl",location:"Meta"}}))?a:"";case t>1:return"".concat(e.split("?")[0],"?page=").concat(t);case!!e:return null!=(l=(0,m.A)(e.split("?")[0],{log:{sourceKey:"canonicalUrl",location:"Meta"}}))?l:"";default:return null}})(R,w),B=R.indexOf("lalafo.com.ua")>0?"GX1yQrDW_4TDhgXLL6zxLJ69sxdYgV0ftCLBSRZ9vww":u.jx[x.id],F=u.uz[x.id],N=w?"".concat(T.PAGE," ").concat(w,". ").concat(E):E,P=w?"".concat(T.PAGE," ").concat(w,". ").concat(I):I,W=null==A||null==(t=A.query)?void 0:t.lang,{defaultLang:H}=S,M=W?"/".concat(null==A?void 0:A.asPath.split("/").slice(2).join("/")):null==A?void 0:A.asPath;return(0,l.FD)(o(),{children:[(0,l.Y)("title",{children:N}),(0,l.Y)("meta",{name:"description",content:P}),B&&(0,l.Y)("meta",{name:"google-site-verification",content:B}),F&&(0,l.Y)("meta",{name:"facebook-domain-verification",content:F}),!b&&(0,l.Y)("meta",{name:"robots",content:n||"all"}),f&&Object.keys(f).length>0&&(0,l.FD)(l.FK,{children:[(0,l.Y)("meta",{property:"og:title",content:N}),(0,l.Y)("meta",{property:"og:description",content:P}),(0,l.Y)("meta",{property:"og:site_name",content:"Lalafo"}),(0,l.Y)("meta",{property:"og:url",content:R}),(0,l.Y)("meta",{property:"og:image",content:a||"".concat(y,"/images/lalafo-logo.png")}),(0,l.Y)("meta",{property:"og:type",content:"website"}),(0,l.Y)("meta",{property:"al:ios:url",content:R}),(0,l.Y)("meta",{property:"al:ios:app_store_id",content:"1063347253"}),(0,l.Y)("meta",{property:"al:android:url",content:R}),(0,l.Y)("meta",{property:"al:android:package",content:"com.lalafo"}),D&&!v&&(0,l.Y)("link",{href:D,rel:"canonical"})]}),x.id===u.eq&&(e=>Y&&Y.map(t=>{let a=t.language,r="".concat(y).concat(a===H?"":"/".concat(a)).concat("/"===M?"":M);return r&&e[a]?(0,l.Y)("link",{rel:"alternate",hrefLang:e[a],href:r},null==t?void 0:t.language_id):null}))(k)]})}},14272:e=>{e.exports={LFSkeleton:"LFSkeleton_LFSkeleton__NtWMh",skeletonKeyframes:"LFSkeleton_skeletonKeyframes__wCMGQ"}},22726:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var l=a(37876),r=a(14272),n=a.n(r);let o=e=>{let{height:t=null,circle:a=!1,className:r="",maxWidth:o=null,marginBottom:c=null,borderRadius:i=4}=e,s="LFSkeleton ".concat(n().LFSkeleton," ").concat(r),d={};return null!==o&&null!==t&&a&&(d.borderRadius="50%"),null!==o&&(d.maxWidth=o),null!==t&&(d.height=t),null!==c&&(d.marginBottom=c),null===i||a||(d.borderRadius=i),(0,l.jsx)("span",{className:s,style:{...d},"data-component":"lf-skeleton"})}},43561:(e,t,a)=>{"use strict";a.d(t,{W:()=>n});var l=a(89099),r=a(37004);let n=()=>{let e=(0,l.useRouter)(),t=(0,r.d4)(e=>e.currentCountry);return"https://".concat(t.domain).concat(e.asPath)}},56995:(e,t,a)=>{"use strict";a.d(t,{v:()=>l});let l=e=>{let t=e?e.split("?"):null;return e.includes("page=")&&t&&t[1]?e.split("?")[1].split("&").reduce((e,t)=>
1Math.max(e,t.includes("page=")&&Number(t.replace("page=",""))||0),-1):0}},61298:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var l=a(37876),r=a(77043),n=a(61709),o=a.n(n);let c=e=>{let{title:t,leftButton:a,backButtonClickHandler:n,"data-testid":c}=e;return(0,l.jsxs)("div",{className:o().backButtonWrapper,"data-component":"back-button","data-testid":c,onClick:e=>{if(e.preventDefault(),n)return n()},children:[(0,l.jsx)("button",{type:"button",className:o().backButton,children:a}),t&&(0,l.jsx)(r.A,{size:"14",text:t})]})}},61709:e=>{e.exports={LFParagraph:"LFParagraph_LFParagraph__7Blf1",backButtonWrapper:"BackButton_backButtonWrapper__rnOsI",backButton:"BackButton_backButton__n2t1O"}},71457:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>D,default:()=>B});var l=a(37876),r=a(70889),n=a(18153),o=a(14232),c=a(37004),i=a(89099),s=a(18847),d=a.n(s),p=a(85390),u=a(29182),C=a(82761),_=a(2138),m=a(94937),h=a(27142),g=a(86412),k=a(77043),v=a(88299),b=a(66517),f=a(61298),A=a(88946),y=a(22726),R=a(80757),Y=a.n(R);let S=()=>{let{isDesktopDevice:e}=(0,o.useContext)(u.q);return(0,n.FD)("div",{className:Y().replaceCartSkeletonContainer,"data-component":"replace-cart-skeleton",children:[(0,n.Y)("div",{className:Y().replaceCartSkeletonItem,children:(0,n.FD)("div",{className:Y().replaceCartSkeletonItemContent,children:[(0,n.Y)(y.A,{height:64,borderRadius:12,maxWidth:64}),(0,n.FD)("div",{className:Y().replaceCartSkeletonItemRightBar,children:[(0,n.Y)(y.A,{height:12,marginBottom:12,maxWidth:163}),(0,n.Y)(y.A,{height:12,maxWidth:100})]})]})}),[1,2,3,4,5,6].map(t=>(0,n.FD)("div",{className:Y().replaceCartSkeletonItem,children:[(0,n.FD)("div",{className:Y().replaceCartSkeletonItemContent,children:[(0,n.Y)(y.A,{height:64,borderRadius:12,maxWidth:64}),(0,n.FD)("div",{className:Y().replaceCartSkeletonItemRightBar,children:[(0,n.Y)(y.A,{height:12,marginBottom:12,maxWidth:163}),(0,n.Y)(y.A,{height:12,maxWidth:100})]})]}),(0,n.Y)(y.A,{height:32,borderRadius:50,maxWidth:e?200:900})]},t))]})};var x=a(77539),T=a.n(x);let E=d()(()=>Promise.all([a.e(3002),a.e(6857)]).then(a.bind(a,26857)),{loadableGenerated:{webpack:()=>[26857]},ssr:!1}),I=d()(()=>Promise.all([a.e(2267),a.e(389),a.e(9496),a.e(4012)]).then(a.bind(a,31631)),{loadableGenerated:{webpack:()=>[31631]},ssr:!1}),L=()=>{let e=(0,c.wA)(),t=(0,i.useRouter)(),{redirectToBackUrl:a}=(0,C.A)(),{handleAdClick:l}=(0,_.Z)(),{type:r,id:s}=t.query,d=(0,c.d4)(e=>e.cart.replaceCart),y=(0,c.d4)(e=>{var t;return null==(t=e.cart.replaceCart)?void 0:t.data}),R=(0,c.d4)(e=>e.user),[Y,x]=(0,o.useState)(!1),[L,w]=(0,o.useState)(null),{translations:D,isDesktopDevice:B}=(0,o.useContext)(u.q),F=null==y?void 0:y.item,N=(null==y?void 0:y.replace_with)||[],P=d.status===m.Q0,W=d.status===m._,H=d.status===m.$g&&F,M=!(null==d?void 0:d.showCartEmptyState),j=()=>{a()},O=e=>{let{ad:t}=e;l({ad:t,page:m.QX.REPLACE_CART})},z=e=>{let{ad:t}=e;x(!0),w(t)};return(0,o.useEffect)(()=>{e((0,p.x_)({adId:Number(s),type:String(r)}))},[]),(0,n.FD)("div",{className:T().replaceCartContainer,"data-page":"replace-cart","data-component":"replace-cart",children:[B?(0,n.Y)(f.A,{title:D.BACK,leftButton:(0,n.Y)(v.A,{size:"16"}),backButtonClickHandler:j}):(0,n.Y)(b.A,{title:D.REPLACE_ITEMS_IN_THE_CART,leftButton:(0,n.Y)(v.A,{size:"24"}),leftButtonClickHandler:j}),(P||W)&&(0,n.Y)("div",{className:T().replaceCartContent,children:(0,n.Y)(S,{})}),H&&(0,n.FD)("div",{className:T().replaceCartContent,children:[B&&(0,n.Y)(h.A,{customClass:T().replaceCartTitle,size:"26",text:D.REPLACE_ITEMS_IN_THE_CART,type:"h2",weight:"700"}),(0,n.Y)(g.A,{customClass:T().replaceCartSubTitle,size:"16",weight:"500",text:"".concat(D.ADD_TO_CART,":")}),(0,n.Y)(A.A,{ad:F,adClickHandler:()=>O({ad:F}),type:"cartChange"}),(null==N?void 0:N.length)>0&&M&&(0,n.FD)(n.FK,{children:[(0,n.FD)("div",{className:T().replaceCartChangeItemTitleContainer,children:[(0,n.Y)(g.A,{size:"16",weight:"500",text:"".concat(D.SELECT_THE_ITEM_IN_YOUR_CART_THAT_YOU_WANT_TO_REPLACE,":")}),R.isAuthenticated&&(0,n.Y)(k.A,{customClass:T().replaceCartChangeItemDescription,size:"14",text:D.AFTER_REPLACEMENT_ITEM_WILL_BE_ADDED_TO_THE_FAVORITES,color:"var(--neutralDarkGrey)"})]}),N.map(e=>(0,n.Y)(A.A,{ad:e,type:"cartChange",adClickHandler:()=>O({ad:e}),replaceFromCartHandler:z,isShowReplaceButton:!0},e.id))]}),!M&&(0,n.Y)(E,{ad:F,adClickHandler:O})]}),Y&&M&&F&&L&&(0,n.Y)(I,{adToCart:F,adReplaceWith:L,closeModalClickHandler:()=>{x(!1),w(null)}})]})};var w=a(9717),D=!0;let B=()=>(0,l.jsxs)(r.default,{pageName:m.Jt.REPLACE_CART,mobileBottomBarDisable:!0,containerType:"container-xs",children:[(0,l.jsx)(L,{}),(0,l.jsx)(w.A,{shouldHideMetaRobots:!0})]})},77539:e=>{e.exports={replaceCartContainer:"ReplaceCart_replaceCartContainer__5d1Yp",replaceCartContent:"ReplaceCart_replaceCartContent__J6SFO",replaceCartChangeItemTitleContainer:"ReplaceCart_replaceCartChangeItemTitleContainer__JyGUq",replaceCartChangeItemDescription:"ReplaceCart_replaceCartChangeItemDescription__clcso",replaceCartSubTitle:"ReplaceCart_replaceCartSubTitle__PaVzS",replaceCartTitle:"ReplaceCart_replaceCartTitle__rywqp"}},80757:e=>{e.exports={replaceCartSkeletonContainer:"ReplaceCartSkeleton_replaceCartSkeletonContainer__fKa7u",replaceCartSkeletonItem:"ReplaceCartSkeleton_replaceCartSkeletonItem__oRPnk",replaceCartSkeletonItemContent:"ReplaceCartSkeleton_replaceCartSkeletonItemContent__UoxdM",replaceCartSkeletonItemRightBar:"ReplaceCartSkeleton_replaceCartSkeletonItemRightBar__l1Gbk"}},88299:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var l=a(37876),r=a(14467);let n=e=>{let{color:t,customClass:a,size:n,colorHover:o,onClick:c}=e,i=t||"var(--neutralDarkGrey)",s=n||"20",d=a?"LFIconArrowLeft ".concat(a," ").concat("size-".concat(s)," ").concat(i):"LFIconArrowLeft";return(0,l.jsx)(r.A,{size:s,customClass:d,onClick:c,colorHover:o,children:(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.3242 12.8222C6.89193 12.3681 6.89193 11.6319 7.3242 11.1778L15.8663 2.20434C16.1256 1.93189 16.5461 1.93189 16.8055 2.20434C17.0648 2.4768 17.0648 2.91854 16.8055 3.191L8.41997 12L16.8055 20.809C17.0648 21.0815 17.0648 21.5232 16.8055 21.7957C16.5461 22.0681 16.1256 22.0681 15.8663 21.7957L7.3242 12.8222Z",fill:i})})})}}},e=>{var t=t=>e(e.s=t);
1e.O(0,[4092,1130,9167,9833,889,2267,5028,636,6593,8792],()=>t(9365)),_N_E=e.O()}]); 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5f52a5ff-5f4b-550b-a77c-befcd1dd7ad3")}catch(e){}}(); 3//# debugId=5f52a5ff-5f4b-550b-a77c-befcd1dd7ad3
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.