PageSourceSearch

https://avanti24.pl/_next/static/chunks/pages/produkt/[slug]-7eb8e76707f29ee8.js

js avanti24.pl collected 2026-09-24 11:29:02 UTC 8,199 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[983],{4758:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/produkt/[slug]",function(){return s(2860)}])},2860:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return Z},default:function(){return X}});var l=s(5893),r=s(6010),c=s(6608),n=s(2558),a=s(2417),i=s(6681),o=s(7309),d=s(1303),x=s(7049),p=s(6377),u=s(4036),m=s(1163),f=s(821),h=s(1370),j=s(5826),g=s(2962),v=s(7294),b=s(5155),y=s(2741),N=s(1098),k=s(4430),w=s(7955),P=s(1405),_=s(322),I=s(8874),C=s(7101),O=s(1157);function S(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function T(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{},l=Object.keys(s);"function"===typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(s).filter((function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})))),l.forEach((function(t){S(e,t,s[t])}))}return e}function E(e){var t,s,S,E,z=e.className,Z=(0,m.useRouter)().asPath,X=(E=Z).substring(E.indexOf("_p"),E.length).replace("_p",""),A=(0,v.useState)(!1),H=A[0],U=A[1],B=(0,v.useState)(!1),F=B[0],G=B[1],R=(0,k.a)(),M=R.pvid,D=R.sourceId,Y=R.banditId,L=(0,_.d)(),V=L.isShowing,q=L.toggle,J=(0,f.ZP)("/product-card/".concat(X),u.cY),K=J.data,Q=J.error;(0,v.useEffect)((function(){var e,t=new Date;(0,y.V)(t)&&(null===K||void 0===K||null===(e=K.labels)||void 0===e?void 0:e.includes("blackweek"))?U(!0):U(!1)}),[K]);var W=(0,j.h)(T({slotId:"7",domain:"zakupy.avanti24.pl",frameId:"product-card"},K)),$=(0,v.useMemo)((function(){return!W}),[W]);if(!K||Q)return(0,l.jsx)("div",{className:"h-[100vh]",children:(0,l.jsx)(x.Y,{size:"xl"})});var ee=T({position:0,id:K.id,name:K.title,price:K.price,url:K.url?K.url:"",photos:K.photos},K.cpcRate&&{cpcRate:parseFloat(K.cpcRate)},K.salePrice&&{salePrice:K.salePrice},{campaignId:K.campaignId?K.campaignId:"",partnerName:K.partnerName},Y&&{banditId:Y}),te=(null===(t=K.attributes)||void 0===t||null===(s=t.sklepy)||void 0===s?void 0:s.values[0].name)||"",se=["marketplace"];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.PB,{title:"".concat(K.title," - Avanti24.pl"),canonical:"https://zakupy.avanti24.pl".concat(Z)}),(0,l.jsxs)("div",{className:(0,r.Z)("flex flex-col space-y-[3rem] lg:space-y-[5rem] w-full items-center relative",z),children:[(0,l.jsx)("div",{className:"px-4 w-full mx-auto max-w-screen-xl",children:(0,l.jsxs)("div",{className:"flex flex-col items-start md:flex-row space-y-6 md:space-y-0 md:space-x-12",children:[(0,l.jsxs)("div",{className:"relative md:sticky shrink-0 min-w-[40%] w-full md:w-auto mt-4 md:mt-2 md:top-4",children:[(0,l.jsx)(n.E,{src:null===(S=K.photos)||void 0===S?void 0:S[0],width:580,height:580,alt:K.title,sizes:"(max-width: 40rem) 48vw, 216px",layout:"responsive",objectFit:"contain",priority:!0}),H?(0,l.jsx)(b.t,{price:K.price,salePrice:K.salePrice,className:"scale-150 absolute top-[-2px] left-[-3px]"}):(0,l.jsx)(i.F,{className:"text-base w-14 h-14 rounded-full left-3",price:K.price,salePrice:K.salePrice})]}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(p.X6,{component:"h1",className:"text-gray-800 font-bold text-2xl md:text-3xl lg:text-4xl",children:K.title}),$?null:(0,l.jsxs)("div",{className:"flex flex-col gap-3 mt-3",children:[(0,l.jsxs)("div",{className:"grid gap-2 grid-cols-3 items-stretch justify-items-stretch",children:[(0,l.jsx)("div",{className:"px-4 py-2 border rounded-md inline-flex items-center",children:(0,l.jsx)(o.Z,{className:"mt-2",price:K.price,salePrice:K.salePrice,omnibusPrice:K.omnibusPrice})}),(0,l.jsx)(a.r,{className:"bg-special-1 text-white px-6 py-4 rounded-md inline-flex items-center cursor-pointer",onClick:function(){G((function(e){return!e}))},children:(0,l.jsx)("span",{className:"flex-1 pr-8 text-sm",children:"Historia produktu"})}),(0,l.jsxs)(a.r,{className:"bg-special-1 text-white px-6 py-4 rounded-md flex flex-col items-left cursor-pointer text-sm",onClick:function(){q()},children:[(0,l.jsx)("p",{children:"Ci\u0105gle drogo?"}),(0,l.jsx)("p",{className:"font-bold",children:"Ustaw Alert cenowy!"})]}),(0,l.jsxs)(a.r,{isExternal:!0,className:"bg-special-1 text-white px-6 py-4 rounded-md inline-flex items-center col-span-3",href:W,onClick:function(){(0,N.H)({products:[ee],context:{pvid:M,sourceId:D,banditId:Y,adSlotId:"7"},ga4:[{eventName:"select_promotion",tracker:"marketplaceGA4",clickType:"productCard_click"}],fb:{event:"Purchase",pixel:"marketplace"},gtag:{type:"click"},rtbh:{type:"click"}})},children:[(0,l.jsxs)("span",{className:"flex-1 pr-8 text-lg",children:["Zobacz w sklepie
1:",(0,l.jsx)("br",{}),(0,l.jsx)("strong",{children:te})]}),(0,l.jsx)(c.Mp,{className:"shrink-0 text-xl -mr-3"})]})]}),F&&(0,l.jsx)(C.Z,{id:X,displayAlerts:!0})]}),K.description?(0,l.jsxs)("div",{className:"flex flex-col mt-8",children:[(0,l.jsx)(p.X6,{component:"p",className:"font-bold",children:"Opis produktu"}),(0,l.jsx)("div",{className:"mt-4",dangerouslySetInnerHTML:{__html:K.description}})]}):null,(0,l.jsxs)("div",{className:"flex flex-col mt-12",children:[(0,l.jsx)(p.X6,{component:"p",className:"font-bold",children:"Szczeg\xf3\u0142y produktu"}),(0,l.jsx)("div",{className:"mt-4",children:Object.keys(K.attributes).filter((function(e){if(-1===se.indexOf(e))return e})).map((function(e,t){return(0,l.jsxs)("div",{className:"flex space-x-4 border-t border-gray-200 py-4 text-sm",children:[(0,l.jsx)("div",{className:"text-gray-500 w-2/5 shrink-0",children:K.attributes[e].name}),(0,l.jsx)("div",{className:"flex-1 -my-1 lg:my-0",children:K.attributes[e].values.map((function(t,s){return(0,l.jsxs)(a.r,{href:"/".concat(t.replaceUrl),onClick:function(){(0,N.H)({context:{pvid:M,sourceId:D,banditId:Y,adSlotId:"7"},ga4:[{eventName:"select_content",tracker:"marketplaceGA4",clickType:"productCard_click",slug:"/".concat(t.replaceUrl)}]})},className:"mr-1 block lg:inline py-1 lg:py-0 hover:underline",children:[t.name,s<K.attributes[e].values.length-1?(0,l.jsx)("span",{className:"hidden lg:inline",children:","}):""]},s)}))})]},t)}))})]}),K.intersections?(0,l.jsx)("div",{className:"flex flex-wrap -mx-1 mt-10",children:K.intersections.map((function(e,t){return(0,l.jsx)(a.r,{href:"/".concat(e.replaceUrl),onClick:function(){(0,N.H)({context:{pvid:M,sourceId:D,banditId:Y,adSlotId:"7"},ga4:[{eventName:"select_content",tracker:"marketplaceGA4",clickType:"productCard_click",slug:"/".concat(e.replaceUrl)}]})},className:"p-1",children:(0,l.jsx)("span",{className:"inline-block rounded-full px-3 py-1 bg-gray-100 text-sm text-gray-900 whitespace-nowrap transition-colors hover:bg-sky-100",children:e.name})},t)}))}):null]})]})}),K.sameCategoryProducts?(0,l.jsxs)("div",{className:"w-full max-w-screen-xl mx-auto px-4",children:[(0,l.jsx)(p.X6,{component:"h2",className:"font-heading font-bold text-xl lg:text-2xl text-gray-800",children:"Podobne produkty"}),(0,l.jsx)(w.j,{value:{boxPosition:0,boxType:"ProductCardCategoryCarousel",boxTypePosition:1},children:(0,l.jsx)(d.l,{className:"mt-5",loop:!0,children:K.sameCategoryProducts.map((function(e,t){return(0,l.jsx)("div",{children:(0,l.jsx)(h.x,{details:T({},e,{position:t+1}),context:{preloadImages:5}})},t)}))})})]}):null,K.sameBrandProducts?(0,l.jsxs)("div",{className:"w-full max-w-screen-xl mx-auto px-4 pt-5 mt-10",children:[(0,l.jsxs)(p.X6,{component:"h2",className:"font-heading font-bold text-xl lg:text-2xl text-gray-800",children:["Inne produkty ",te?"od ".concat(te):"z tego sklepu"]}),(0,l.jsx)(w.j,{value:{boxPosition:1,boxType:"ProductCardBrandCarousel",boxTypePosition:1},children:(0,l.jsx)(d.l,{className:"mt-5",loop:!0,children:K.sameBrandProducts.map((function(e,t){return(0,l.jsx)("div",{children:(0,l.jsx)(h.x,{details:T({},e,{position:t+1}),context:{preloadImages:5}})},t)}))})})]}):null]}),(0,l.jsxs)(I.Z,{show:V,toggle:q,children:[(0,l.jsx)(P.Z,{productId:K.id}),(0,l.jsx)(O.Z,{})]})]})}var z=s(1932),Z=!0;function X(){return(0,l.jsxs)("main",{className:"mb-20",children:[(0,l.jsx)(z.Oo,{crumbs:[{name:"Produkt"}]}),(0,l.jsx)(E,{className:"lg:mt-10"})]})}}},function(e){e.O(0,[774,556,154,940,888,179],(function(){return t=4758,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.