1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6007],{8686:function(e,t,r){r.d(t,{CartProvider:function(){return c},j:function(){return d}});var a=r(7437),n=r(2265),l=r(9376);let s=(0,n.createContext)(null),i="bs_cart",o=(e,t,r,a)=>{var n,l;return e.productId===t&&(null!==(n=e.size)&&void 0!==n?n:null)===(null!=r?r:null)&&(null!==(l=e.color)&&void 0!==l?l:null)===(null!=a?a:null)};function c(e){let{children:t}=e,[r,c]=(0,n.useState)([]),[d,u]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!1),x=(0,l.usePathname)(),f=(0,n.useRef)(!1),p=(0,n.useRef)(!1),b=(0,n.useCallback)(e=>{if(e){if(!f.current){f.current=!0;try{window.history.pushState({bsCartOpen:!0},""),p.current=!0}catch(e){p.current=!1}u(!0)}}else{if(!f.current)return;if(p.current){p.current=!1;try{window.history.back();return}catch(e){}}f.current=!1,u(!1)}},[]);function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;c(r=>{let a=r.findIndex(t=>{var r;return o(t,e.productId,e.size,null!==(r=e.color)&&void 0!==r?r:null)});if(a>=0){let e=[...r];return e[a]={...e[a],quantity:e[a].quantity+t},e}return[...r,{...e,quantity:t}]}),b(!0);try{fetch("/api/cart/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productId:e.realProductId||e.productId,name:e.name}),keepalive:!0}).catch(()=>{})}catch(e){}}function j(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;c(a=>a.filter(a=>!o(a,e,t,r)))}function g(e,t,r,a){c(n=>n.map(n=>o(n,e,t,r)?{...n,quantity:Math.max(1,a)}:n).filter(e=>e.quantity>0))}function v(){c([])}(0,n.useEffect)(()=>{function e(){f.current&&(f.current=!1,p.current=!1,u(!1))}return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]),(0,n.useEffect)(()=>{f.current&&(f.current=!1,p.current=!1,u(!1))},[x]),(0,n.useEffect)(()=>{try{let e=localStorage.getItem(i);e&&c(JSON.parse(e))}catch(e){}m(!0)},[]),(0,n.useEffect)(()=>{h&&localStorage.setItem(i,JSON.stringify(r))},[r,h]);let k=(0,n.useMemo)(()=>{let e=r.reduce((e,t)=>e+t.quantity,0),t=r.reduce((e,t)=>e+t.price*t.quantity,0);return{items:r,count:e,total:t,add:y,remove:j,setQuantity:g,clear:v,isOpen:d,setOpen:b}},[r,d]);return(0,a.jsx)(s.Provider,{value:k,children:t})}function d(){let e=(0,n.useContext)(s);if(!e)throw Error("useCart musi byÄ użyte wewnÄ
trz <CartProvider>");return e}},3189:function(e,t,r){r.d(t,{u:function(){return s}});var a=r(2265),n=r(8686),l=r(4346);function s(){let{items:e}=(0,n.j)(),[t,r]=(0,a.useState)({enabled:!1,rules:[]});(0,a.useEffect)(()=>{fetch("/api/promo/settings").then(e=>e.json()).then(e=>r({enabled:!!e.enabled,rules:Array.isArray(e.rules)?e.rules:[]})).catch(()=>{})},[]);let s=e.filter(e=>!e.negotiated).reduce((e,t)=>e+t.quantity,0),i=e.filter(e=>!e.negotiated).reduce((e,t)=>e+t.price*t.quantity,0),o=t.enabled?(0,l.g)(t.rules,s):null,c=o?Math.round(i*o.percent/100):0;return{rule:o,amount:c}}},8296:function(e,t,r){r.d(t,{l:function(){return i},m:function(){return o}});var a=r(7437),n=r(6992);let l={Truck:"Dostawa",Package:"Paczka",PackageCheck:"Paczka OK",ShoppingBag:"Torba",ShoppingCart:"Koszyk",Store:"Sklep",CreditCard:"PÅatnoÅÄ",Wallet:"Portfel",Banknote:"Got\xf3wka",Percent:"Rabat",BadgePercent:"Promocja",Tag:"Metka",Ticket:"Kupon",Shield:"Gwarancja",ShieldCheck:"BezpieczeÅstwo",Lock:"KÅ\xf3dka",LockKeyhole:"Bezpiecznie",KeyRound:"Klucz",BadgeCheck:"Zweryfikowane",Check:"Ptaszek",RotateCcw:"Zwroty",RefreshCw:"Wymiana",ArrowLeftRight:"Wymiana",Star:"Gwiazda",Heart:"Serce",ThumbsUp:"Polecane",Award:"Nagroda",Trophy:"Trofeum",Medal:"Medal",Crown:"Korona",Gem:"Premium",Sparkles:"NowoÅÄ",Flame:"Hit",Zap:"Szybko",Leaf:"Eko",Recycle:"Recykling",Globe:"Åwiat",Headset:"Wsparcie",Phone:"Telefon",Mail:"E-mail",MessageCircle:"Czat",LifeBuoy:"Pomoc",Clock:"Czas",Timer:"Stoper",Calendar:"Termin",Hourglass:"Klepsydra",Ruler:"Rozmiar",MapPin:"Lokalizacja",Send:"WysyÅka",Plane:"Samolot",Bike:"Rower",Car:"Auto",Gift:"Prezent",User:"Klient",Users:"Klienci",Shirt:"Koszulka",Smile:"Zadowolenie",Quote:"Cytat",Megaphone:"OgÅoszenie",Bell:"Powiadomienie",Handshake:"Wsp\xf3Åpraca",HandHeart:"Troska",Gauge:"WydajnoÅÄ",House:"Dom",Factory:"Produkcja"},s={truck:"Truck",return:"RotateCcw",refresh:"RefreshCw",lock:"Lock",leaf:"Leaf",check:"Check",shield:"Shield","shield-check":"ShieldCheck","credit-card":"CreditCard",gift:"Gift",star:"Star",heart:"Heart",tag:"Tag",clock:"Clock",cart:"ShoppingCart",percent:"Percent",wallet:"Wallet",headset:"Headset",phone:"Phone",mail:"Mail",globe:"Globe",package:"Package",box:"Box",award:"Award",ruler:"Ruler",sparkles:"Sparkles",fire:"Flame","thumbs-up":"ThumbsUp",calendar:"Calendar"},i=Object.keys(n).sort((e,t)=>
1(l[e]?0:1)-(l[t]?0:1)||e.localeCompare(t)).map(e=>{var t;return{key:e,label:null!==(t=l[e])&&void 0!==t?t:e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2"),Icon:n[e]}});function o(e){var t;let{name:r,size:l=20}=e,i=r&&(n[r]?r:s[r||""])||"Check",o=null!==(t=n[i])&&void 0!==t?t:n.Check;return(0,a.jsx)(o,{width:l,height:l,strokeWidth:2})}},6007:function(e,t,r){r.d(t,{Header:function(){return f}});var a=r(7437),n=r(7648),l=r(2265),s=r(9376),i=r(8686),o=r(3145),c=r(3189),d=r(3147),u=r(4086);function h(){let{items:e,total:t,isOpen:r,setOpen:l,remove:s,setQuantity:h}=(0,i.j)(),{rule:m,amount:x}=(0,c.u)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 z-50 bg-black/60 transition-opacity ".concat(r?"opacity-100":"pointer-events-none opacity-0"),onClick:()=>l(!1)}),(0,a.jsxs)("aside",{className:"fixed right-0 top-0 z-50 flex h-full w-full max-w-md flex-col border-l border-brand-border bg-brand-surface transition-transform ".concat(r?"translate-x-0":"translate-x-full"),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-brand-border p-4",children:[(0,a.jsxs)("h3",{className:"text-lg font-extrabold",children:["Koszyk (",e.length,")"]}),(0,a.jsx)("button",{onClick:()=>l(!1),className:"text-brand-muted hover:text-brand-text","aria-label":"Zamknij",children:"â"})]}),(0,a.jsx)("div",{className:"flex-1 overflow-auto p-4",children:0===e.length?(0,a.jsx)("p",{className:"mt-10 text-center text-brand-muted",children:"Tw\xf3j koszyk jest pusty."}):(0,a.jsx)("ul",{className:"space-y-4",children:e.map(e=>{var t;return(0,a.jsxs)("li",{className:"flex gap-3",children:[(0,a.jsx)("div",{className:"relative h-20 w-16 flex-shrink-0 overflow-hidden rounded bg-black",children:(0,a.jsx)(o.default,{src:(0,d.gl)(e.image),alt:e.name,fill:!0,className:"object-cover",sizes:"64px"})}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("p",{className:"font-semibold",children:e.name}),(e.size||e.color)&&(0,a.jsxs)("p",{className:"text-xs text-brand-muted",children:[e.size?"Rozmiar: ".concat(e.size):"",e.size&&e.color?" \xb7 ":"",e.color?"Kolor: ".concat(e.color):""]}),(0,a.jsx)("p",{className:"text-sm text-brand-primary",children:(0,u.T4)(e.price)}),(0,a.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[(0,a.jsx)("input",{type:"number",min:1,value:e.quantity,onChange:t=>{var r;return h(e.productId,e.size,null!==(r=e.color)&&void 0!==r?r:null,Number(t.target.value))},className:"input w-16 px-2 py-1"}),(0,a.jsx)("button",{onClick:()=>{var t;return s(e.productId,e.size,null!==(t=e.color)&&void 0!==t?t:null)},className:"text-xs text-brand-primary",children:"UsuÅ"})]})]})]},"".concat(e.productId,"-").concat(e.size,"-").concat(null!==(t=e.color)&&void 0!==t?t:""))})})}),(0,a.jsxs)("div",{className:"border-t border-brand-border p-4",children:[e.length>0&&(0,a.jsxs)("div",{className:"mb-2 space-y-1 text-sm",children:[(0,a.jsxs)("div",{className:"flex justify-between text-brand-muted",children:[(0,a.jsx)("span",{children:"Produkty"}),(0,a.jsx)("span",{children:(0,u.T4)(t)})]}),x>0&&m&&(0,a.jsxs)("div",{className:"flex justify-between text-brand-primary",children:[(0,a.jsxs)("span",{children:["Promocja (od ",m.minQty," szt. â",m.percent,"%)"]}),(0,a.jsxs)("span",{children:["-",(0,u.T4)(x)]})]})]}),(0,a.jsxs)("div",{className:"mb-3 flex justify-between text-lg font-extrabold",children:[(0,a.jsx)("span",{children:"Razem"}),(0,a.jsx)("span",{children:(0,u.T4)(Math.max(0,t-x))})]}),x>0&&(0,a.jsx)("p",{className:"mb-2 rounded-btn bg-brand-primary/10 p-2 text-center text-xs text-brand-primary",children:"\uD83C\uDF89 Rabat promocyjny już naliczony w koszyku!"}),(0,a.jsx)("button",{type:"button",onClick:()=>l(!1),className:"btn btn-outline mb-2 w-full",children:"Kontynuuj zakupy"}),(0,a.jsx)(n.default,{href:"/koszyk",className:"btn btn-outline mb-2 w-full",children:"Zobacz koszyk"}),(0,a.jsx)(n.default,{href:"/zamowienie",className:"btn btn-primary w-full",children:"Do kasy"})]})]})]})}function m(){let[e,t]=(0,l.useState)(0);return(0,l.useEffect)(()=>{let e=!1;async function r(){try{let r=await fetch("/api/messages/unread",{cache:"no-store"});if(!r.ok)return;let a=await r.json();e||t("number"==typeof a.unread?a.unread:0)}catch(e){}}r();let a=setInterval(r,3e4);return()=>{e=!0,clearInterval(a)}},[]),(0,a.jsxs)(n.default,{href:"/konto?tab=zapytania","aria-label":"WiadomoÅci",className:"relative text-brand-muted hover:text-brand-text",children:[(0,a.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),(0,a.jsx)("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"})]}),e>0&&(0,a.jsx)("span",{className:"absolute -right-2 -top-2 flex h-5 w-5 items-center justify-center rounded-full bg-brand-primary text-[10px] font-bold text-white",children:e})]})}var x=r(8296);function f(e){let{logoText:t,logoImage:r,logoType:o,logoWidth:c,logoHeight:d,topbarText:u,topbarEnabled:f,topbarSize:g,categories:v,user:k,bestsellersEnabled:w=!0,configuratorEnabled:N=!1}=e,{count:C,setOpen:z}=(0,i.j)(),[S,P]=(0,l.useState)(!1),M=(0,s.useRouter)();async function T(){try{await fetch("/api/auth/logout",{method:"POST"})}finally{M.push("/"),M.refresh()}}return(0,a.jsxs)("header",{className:"sticky top-0 z-40",children:[f&&u&&(0,a.jsx)("div",{className:"topbar bg-brand-primary text-center font-semibold text-white",style:{fontSize:g||"13px",padding:"0.45em 1rem"},dangerouslySetInnerHTML:{__html:u}}),(0,a.jsxs)("div",{className:"border-b border-brand-border bg-black",children:[(0,a.jsxs)("div",{className:"container-page flex h-16 items-center justify-between gap-4",children:[(0,a.jsx)(n.default,{href:"/",className:"flex items-center","aria-label":t,children:"image"===o&&r?(0,a.jsx)("img",{src:r,alt:t,className:c||d?"":"h-10 w-auto max-h-12",style:{width:c||void 0,height:d||void 0,...c&&!d?{height:"auto"}:{},...d&&!c?{width:"auto"}:{}}}):(0,a.jsx)("span",{className:"logo-font text-3xl",children:t})}),(0,a.jsxs)("nav",{className:"hidden items-center gap-6 text-sm font-semibold lg:flex",children:[(0,a.jsx)(n.default,{href:"/",className:"text-brand-muted hover:text-brand-text",children:"NOWOÅCI"}),v.map(e=>e.children&&e.children.length>0?(0,a.jsxs)("div",{className:"group relative",children:[(0,a.jsxs)(n.default,{href:"/category/".concat(e.slug),className:"flex items-center gap-1.5 text-brand-muted hover:text-brand-text",children:[e.icon&&(0,a.jsx)(x.m,{name:e.icon,size:16}),e.name.toUpperCase(),(0,a.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",className:"mt-0.5",children:(0,a.jsx)("path",{d:"M6 9l6 6 6-6"})})]}),(0,a.jsxs)("div",{className:"invisible absolute left-0 top-full z-50 min-w-[200px] rounded-btn border border-brand-border bg-brand-surface p-1 opacity-0 shadow-lg transition-opacity duration-150 group-hover:visible group-hover:opacity-100",children:[(0,a.jsxs)(n.default,{href:"/category/".concat(e.slug),className:"block rounded px-3 py-2 text-xs uppercase text-brand-muted hover:bg-brand-bg",children:["Wszystko: ",e.name]}),e.children.map(e=>(0,a.jsxs)(n.default,{href:"/category/".concat(e.slug),className:"flex items-center gap-2 rounded px-3 py-2 text-sm hover:bg-brand-bg",children:[e.icon&&(0,a.jsx)(x.m,{name:e.icon,size:16}),e.name]},e.slug))]})]},e.slug):(0,a.jsxs)(n.default,{href:"/category/".concat(e.slug),className:"flex items-center gap-1.5 text-brand-muted hover:text-brand-text",children:[e.icon&&(0,a.jsx)(x.m,{name:e.icon,size:16}),e.name.toUpperCase()]},e.slug)),w&&(0,a.jsx)(n.default,{href:"/bestsellery",className:"text-brand-muted hover:text-brand-text",children:"BESTSELLERY"}),N&&(0,a.jsx)(n.default,{href:"/konfigurator",className:"text-brand-primary hover:text-brand-text",children:"KONFIGURATOR"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[k&&(0,a.jsxs)("span",{className:"hidden text-sm font-semibold text-brand-text sm:inline",children:["Witaj ",k.name||k.email,"!"]}),(0,a.jsx)(n.default,{href:"/szukaj","aria-label":"Szukaj",className:"text-brand-muted hover:text-brand-text",children:(0,a.jsx)(p,{})}
1),k&&(0,a.jsx)(m,{}),(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsx)(n.default,{href:"/konto","aria-label":"Konto",className:"flex items-center text-brand-muted hover:text-brand-text",children:(0,a.jsx)(b,{})}),(0,a.jsx)("div",{className:"invisible absolute right-0 top-full z-50 w-48 rounded-btn border border-brand-border bg-brand-surface p-1 opacity-0 shadow-lg transition-opacity duration-150 group-hover:visible group-hover:opacity-100",children:k?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"px-3 py-2 text-xs text-brand-muted truncate border-b border-brand-border",children:k.email}),(0,a.jsx)(n.default,{href:"/konto",className:"block rounded px-3 py-2 text-sm hover:bg-brand-bg",children:"Moje konto"}),(0,a.jsxs)("button",{onClick:T,className:"flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm text-brand-primary hover:bg-brand-bg",children:[(0,a.jsx)(j,{})," Wyloguj siÄ"]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.default,{href:"/logowanie",className:"block rounded px-3 py-2 text-sm hover:bg-brand-bg",children:"Zaloguj siÄ"}),(0,a.jsx)(n.default,{href:"/rejestracja",className:"block rounded px-3 py-2 text-sm hover:bg-brand-bg",children:"ZaÅ\xf3ż konto"})]})})]}),(0,a.jsxs)("button",{onClick:()=>z(!0),"aria-label":"Koszyk",className:"relative text-brand-muted hover:text-brand-text",children:[(0,a.jsx)(y,{}),C>0&&(0,a.jsx)("span",{className:"absolute -right-2 -top-2 flex h-5 w-5 items-center justify-center rounded-full bg-brand-primary text-[10px] font-bold text-white",children:C})]}),(0,a.jsx)("button",{onClick:()=>P(e=>!e),className:"lg:hidden","aria-label":"Menu",children:"â°"})]})]}),S&&(0,a.jsxs)("nav",{className:"border-t border-brand-border bg-black px-6 py-3 lg:hidden",children:[(0,a.jsx)(n.default,{href:"/",className:"block py-2",onClick:()=>P(!1),children:"NOWOÅCI"}),v.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsxs)(n.default,{href:"/category/".concat(e.slug),className:"flex items-center gap-2 py-2 font-semibold",onClick:()=>P(!1),children:[e.icon&&(0,a.jsx)(x.m,{name:e.icon,size:16}),e.name.toUpperCase()]}),e.children&&e.children.length>0&&(0,a.jsx)("div",{className:"ml-3 border-l border-brand-border pl-3",children:e.children.map(e=>(0,a.jsx)(n.default,{href:"/category/".concat(e.slug),className:"block py-1.5 text-sm text-brand-muted",onClick:()=>P(!1),children:e.name},e.slug))})]},e.slug))]})]}),(0,a.jsx)(h,{})]})}function p(){return(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,a.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,a.jsx)("path",{d:"m21 21-4.3-4.3"})]})}function b(){return(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,a.jsx)("circle",{cx:"12",cy:"8",r:"4"}),(0,a.jsx)("path",{d:"M4 21a8 8 0 0 1 16 0"})]})}function y(){return(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,a.jsx)("circle",{cx:"9",cy:"20",r:"1.5"}),(0,a.jsx)("circle",{cx:"18",cy:"20",r:"1.5"}),(0,a.jsx)("path",{d:"M2 3h3l2.4 12.4a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.6L22 7H6"})]})}function j(){return(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}),(0,a.jsx)("polyline",{points:"16 17 21 12 16 7"}),(0,a.jsx)("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})}},3147:function(e,t,r){r.d(t,{Ad:function(){return d},UK:function(){return o},gl:function(){return c}});var a=r(7437),n=r(3145),l=r(2265);let s="/uploads/placeholder.webp";function i(e){return!!e&&/\.webm(\?|$)/i.test(e)}function o(e){return(null==e?void 0:e.find(e=>e&&!i(e)))||s}function c(e){return e&&!i(e)?e:s}function d(e){let{src:t,videoSrc:r,alt:s,sizes:o,priority:d,className:u,style:h,hover:m=!0}=e,x=(0,l.useRef)(null),[f,p]=(0,l.useState)(()=>window.matchMedia("(hover: hover) and (pointer: fine)").matches);(0,l.useEffect)(()=>{let e=window.matchMedia("(hover: hover) and (pointer: fine)"),t=()=>p(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let b=m&&i(r),[y,j]=(0,l.useState)(!1);if((0,l.useEffect)(()=>
1{if(!(i(t)||b)||!m)return;let e=x.current;e&&(f?(e.pause(),e.currentTime=0):e.play().catch(()=>{}))},[t,r,f,m,b]),b){let e=!f||y;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.default,{src:c(t),alt:s,fill:!0,sizes:o,priority:d,className:u,style:h}),(0,a.jsx)("video",{ref:x,src:r,muted:!0,loop:!0,playsInline:!0,autoPlay:!f,preload:"metadata","aria-hidden":"true",onMouseEnter:f?()=>{var e;j(!0),null===(e=x.current)||void 0===e||e.play().catch(()=>{})}:void 0,onMouseLeave:f?()=>{j(!1);let e=x.current;e&&(e.pause(),e.currentTime=0)}:void 0,className:"absolute inset-0 h-full w-full object-cover transition-opacity duration-300 "+(null!=u?u:""),style:{opacity:e?1:0,...h}})]})}return i(t)?(0,a.jsx)("video",{ref:x,src:t,muted:!0,loop:!0,playsInline:!0,autoPlay:m,preload:"metadata","aria-label":s,onMouseEnter:m?()=>{var e;return null===(e=x.current)||void 0===e?void 0:e.play().catch(()=>{})}:void 0,onMouseLeave:m?()=>{let e=x.current;e&&(e.pause(),e.currentTime=0)}:void 0,className:"absolute inset-0 h-full w-full "+(null!=u?u:""),style:h}):(0,a.jsx)(n.default,{src:t,alt:s,fill:!0,sizes:o,priority:d,className:u,style:h})}},4086:function(e,t,r){function a(e){return(e/100).toLocaleString("pl-PL",{style:"currency",currency:"PLN"})}function n(e){if("number"==typeof e)return Math.round(100*e);let t=Number.parseFloat(e.replace(/\s/g,"").replace(",","."));return Number.isNaN(t)?0:Math.round(100*t)}function l(e){return null==e?"":(e/100).toFixed(2)}r.d(t,{Jw:function(){return n},T4:function(){return a},i9:function(){return l}})},4346:function(e,t,r){r.d(t,{g:function(){return a}});function a(e,t){var r;return null!==(r=(null!=e?e:[]).map(e=>({minQty:Math.floor(Number(null==e?void 0:e.minQty)||0),percent:Number(null==e?void 0:e.percent)||0})).filter(e=>e.minQty>0&&e.percent>0&&t>=e.minQty).sort((e,t)=>t.minQty-e.minQty||t.percent-e.percent)[0])&&void 0!==r?r:null}}}]);
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.