PageSourceSearch

https://www.tarasymaka.pl/_next/static/chunks/18q5073kbp8yh.js

js tarasymaka.pl collected 2026-10-08 08:37:08 UTC 63,505 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,667418,(e,t,l)=>{t.exports=JSON.parse('{"heater":"<path d=\\"M9 76h58l26-13H35Z\\" fill=\\"currentColor\\" opacity=\\".035\\"/><g stroke=\\"currentColor\\" stroke-width=\\"1.15\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"><polygon points=\\"26,17.840000000000003 29,18.439999999999998 31.5,16.840000000000003 28.5,16.24000000000001\\" fill=\\"#f2f4f4\\"/><polygon points=\\"26,29.840000000000003 29,30.439999999999998 29,18.439999999999998 26,17.840000000000003\\" fill=\\"#e9edee\\"/><polygon points=\\"29,30.439999999999998 31.5,28.840000000000003 31.5,16.840000000000003 29,18.439999999999998\\" fill=\\"#dce2e4\\"/><polygon points=\\"68,26.239999999999995 71,26.840000000000003 73.5,25.24000000000001 70.5,24.64\\" fill=\\"#f2f4f4\\"/><polygon points=\\"68,38.239999999999995 71,38.84 71,26.840000000000003 68,26.239999999999995\\" fill=\\"#e9edee\\"/><polygon points=\\"71,38.84 73.5,37.24000000000001 73.5,25.24000000000001 71,26.840000000000003\\" fill=\\"#dce2e4\\"/><polygon points=\\"10,30 78,43.599999999999994 83,40.39999999999999 15,26.799999999999997\\" fill=\\"#f2f4f4\\"/><polygon points=\\"78,54.599999999999994 83,49.39999999999999 83,40.39999999999999 78,43.599999999999994\\" fill=\\"#dce2e4\\"/><path d=\\"M3 24H65Q68 24 68 27V32Q68 35 65 35H3Q0 35 0 32V27Q0 24 3 24Z\\" transform=\\"matrix(1 .2 0 -1 10 65)\\" fill=\\"#e9edee\\"/><path d=\\"M7 27H61Q63 27 63 29.5Q63 32 61 32H7Q5 32 5 29.5Q5 27 7 27Z\\" transform=\\"matrix(1 .2 0 -1 9.95 65.032)\\" fill=\\"#dce2e4\\"/></g>","fireplace":"<path d=\\"M9 76h58l26-13H35Z\\" fill=\\"currentColor\\" opacity=\\".035\\"/><g stroke=\\"currentColor\\" stroke-width=\\"1.15\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"><polygon points=\\"20,43 67,52.400000000000006 79,44.72 32,35.32\\" fill=\\"#f2f4f4\\"/><polygon points=\\"20,65 67,74.4 67,52.400000000000006 20,43\\" fill=\\"#e9edee\\"/><polygon points=\\"67,74.4 79,66.72 79,44.72 67,52.400000000000006\\" fill=\\"#dce2e4\\"/><polygon points=\\"24.5,42.64 65.5,50.84 74.5,45.08 33.5,36.879999999999995\\" fill=\\"#cbd3d7\\"/><polygon points=\\"33.5,36.879999999999995 74.5,45.08 74.5,17.08 33.5,8.879999999999995\\" fill=\\"#f2f4f4\\"/><polygon points=\\"65.5,50.84 74.5,45.08 74.5,17.08 65.5,22.840000000000003\\" fill=\\"#e9edee\\"/><path d=\\"M16 29C12 35 21 38 20 45C26 41 25 36 29 34C29 37 33 38 32 33C40 25 23 25 16 29Z\\" transform=\\"matrix(1 .2 0 -1 25.5 64.48)\\" fill=\\"#dce2e4\\"/><polygon points=\\"24.5,42.64 65.5,50.84 65.5,22.840000000000003 24.5,14.64\\" fill=\\"none\\"/><path d=\\"M24.5 14.64 33.5 8.879999999999995\\"/><path d=\\"M65.5 22.840000000000003 74.5 17.08\\"/><path d=\\"M25 61 62 68.4\\"/></g>","outdoor":"<path d=\\"M9 76h58l26-13H35Z\\" fill=\\"currentColor\\" opacity=\\".035\\"/><g stroke=\\"currentColor\\" stroke-width=\\"1.15\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"><path d=\\"M25.5 59.8 25.5 47.8\\"/><path d=\\"M76.5 70 76.5 58\\"/><polygon points=\\"23.5,15.400000000000006 79.5,26.599999999999994 81.5,25.319999999999993 25.5,14.120000000000005\\" fill=\\"#f2f4f4\\"/><polygon points=\\"23.5,44.400000000000006 79.5,55.599999999999994 79.5,26.599999999999994 23.5,15.400000000000006\\" fill=\\"#e9edee\\"/><polygon points=\\"79.5,55.599999999999994 81.5,54.31999999999999 81.5,25.319999999999993 79.5,26.599999999999994\\" fill=\\"#dce2e4\\"/><polygon points=\\"9,54 69,66 83,57.03999999999999 23,45.04\\" fill=\\"#f2f4f4\\"/><polygon points=\\"9,57 69,69 69,66 9,54\\" fill=\\"#e9edee\\"/><polygon points=\\"69,69 83,60.03999999999999 83,57.03999999999999 69,66\\" fill=\\"#dce2e4\\"/><polygon points=\\"9,40 12,40.599999999999994 13.5,39.64 10.5,39.040000000000006\\" fill=\\"#f2f4f4\\"/><polygon points=\\"9,57 12,57.599999999999994 12,40.599999999999994 9,40\\" fill=\\"#e9edee\\"/><polygon points=\\"12,57.599999999999994 13.5,56.64 13.5,39.64 12,40.599999999999994\\" fill=\\"#dce2e4\\"/><polygon points=\\"9,38 12,38.599999999999994 26,29.639999999999993 23,29.04\\" fill=\\"#f2f4f4\\"/><polygon points=\\"9,40 12,40.599999999999994 12,38.599999999999994 9,38\\" fill=\\"#e9edee\\"/><polygon points=\\"12,40.599999999999994 26,31.639999999999993 26,29.639999999999993 12,38.599999999999994\\" fill=\\"#dce2e4\\"/><polygon points=\\"25.5,19.64 49.5,24.439999999999998 50.5,23.799999999999997 26.5,19\\" fill=\\"#f2f4f4\\"/><polygon points=\\"25.5,39.64 49.5,44.44 49.5,24.439999999999998 25.5,19.64\\" fill=\\"#e9edee\\"/><polygon points=\\"49.5,44.44 50.5,43.8 50.5,23.799999999999997 49.5,24.439999999999998\\" fill=\\"#dce2e4\\"/><polygon points=\\"51.5,24.840000000000003 75.5,29.64 76.5,29 52.5,24.200000000000003\\" fill=\\"#f2f4f4\\"/><polygon points=\\"51.5,44.84 75.5,49.64 75.5,29.64 51.5,24.840000000000003\\" fill=\\"#e9edee\\"/><polygon points=\\"75.5,49.64 76.5,49 76.5,29 75.5,29.64\\" fill=\\"#dce2e4\\"/><polygon points=\\"13.5,49.480000000000004 65.5,59.88000000000001 76.5,52.84 24.5,42.44\\" fill=\\"#f2f4f4\\"/><polygon points=\\"13.5,54.480000000000004 65.5,64.88000000000001 65.5,59.88000000000001 13.5,49.480000000000004\\" fill=\\"#e9edee\\"/><polygon points=\\"65.5,64.88000000000001 76.5,57.84 76.5,52.84 65.5,59.88000000000001\\" fill=\\"#dce2e4\\"/><path d=\\"M39.5 54.68000000000001 50.5 47.64\\"/><polygon points=\\"66,51.400000000000006 69,52 70.5,51.040000000000006 67.5,50.44000000000001\\" fill=\\"#f2f4f4\\"/><polygon points=\\"66,68.4 69,69 69,52 66,51.400000000000006\\" fill=\\"#e9edee\\"/>
1<polygon points=\\"69,69 70.5,68.04 70.5,51.040000000000006 69,52\\" fill=\\"#dce2e4\\"/><polygon points=\\"66,49.400000000000006 69,50 83,41.03999999999999 80,40.44\\" fill=\\"#f2f4f4\\"/><polygon points=\\"66,51.400000000000006 69,52 69,50 66,49.400000000000006\\" fill=\\"#e9edee\\"/><polygon points=\\"69,52 83,43.03999999999999 83,41.03999999999999 69,50\\" fill=\\"#dce2e4\\"/><path d=\\"M11.5 67.08000000000001 11.5 57.08000000000001\\"/><path d=\\"M67.5 78.28 67.5 68.28\\"/></g>","grill":"<path d=\\"M9 76h58l26-13H35Z\\" fill=\\"currentColor\\" opacity=\\".035\\"/><g stroke=\\"currentColor\\" stroke-width=\\"1.15\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"><path d=\\"M17.8 3a2.2 3 0 1 0 4.4 0a2.2 3 0 1 0-4.4 0Z\\" transform=\\"matrix(1 .2 0 -1 17 63.96)\\" fill=\\"#dce2e4\\"/><path d=\\"M51.8 3a2.2 3 0 1 0 4.4 0a2.2 3 0 1 0-4.4 0Z\\" transform=\\"matrix(1 .2 0 -1 17 63.96)\\" fill=\\"#dce2e4\\"/><polygon points=\\"22,40.2 64,48.599999999999994 76,40.91999999999999 34,32.52000000000001\\" fill=\\"#f2f4f4\\"/><polygon points=\\"22,67.2 64,75.6 64,48.599999999999994 22,40.2\\" fill=\\"#e9edee\\"/><polygon points=\\"64,75.6 76,67.91999999999999 76,40.91999999999999 64,48.599999999999994\\" fill=\\"#dce2e4\\"/><path d=\\"M42.95 69.432 42.95 46.432\\"/><path d=\\"M27.9 47.464 36.9 49.263999999999996\\"/><path d=\\"M48.9 51.66399999999999 57.9 53.464\\"/><polygon points=\\"6,33 22,36.2 34,28.52000000000001 18,25.32\\" fill=\\"#f2f4f4\\"/><polygon points=\\"6,36 22,39.2 22,36.2 6,33\\" fill=\\"#e9edee\\"/><polygon points=\\"22,39.2 34,31.52000000000001 34,28.52000000000001 22,36.2\\" fill=\\"#dce2e4\\"/><polygon points=\\"64,44.599999999999994 80,47.8 92,40.120000000000005 76,36.91999999999999\\" fill=\\"#f2f4f4\\"/><polygon points=\\"64,47.599999999999994 80,50.8 80,47.8 64,44.599999999999994\\" fill=\\"#e9edee\\"/><polygon points=\\"80,50.8 92,43.120000000000005 92,40.120000000000005 80,47.8\\" fill=\\"#dce2e4\\"/><polygon points=\\"20.5,32.31999999999999 64.5,41.11999999999999 77,33.120000000000005 33,24.319999999999993\\" fill=\\"#f2f4f4\\"/><polygon points=\\"20.5,40.31999999999999 64.5,49.11999999999999 64.5,41.11999999999999 20.5,32.31999999999999\\" fill=\\"#e9edee\\"/><polygon points=\\"64.5,49.11999999999999 77,41.120000000000005 77,33.120000000000005 64.5,41.11999999999999\\" fill=\\"#dce2e4\\"/><polygon points=\\"25.5,15.960000000000008 67.5,24.36 76,21.919999999999987 34,13.52000000000001\\" fill=\\"#f2f4f4\\"/><path d=\\"M22 32.2L64 40.599999999999994V33.599999999999994Q64 26.599999999999994 67.5 24.36L25.5 15.960000000000008Q22 18.200000000000003 22 25.200000000000003Z\\" fill=\\"#e9edee\\"/><path d=\\"M64 40.599999999999994L76 32.91999999999999L76 21.919999999999987L67.5 24.36Q64 26.599999999999994 64 33.599999999999994Z\\" fill=\\"#dce2e4\\"/><path d=\\"M28.5 28.919999999999987 56.5 34.519999999999996\\"/><path d=\\"M20.5 38a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0-3 0Z\\" transform=\\"matrix(1 .2 0 -1 5.45 71.352)\\" fill=\\"#f2f4f4\\"/><path d=\\"M30.5 38a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0-3 0Z\\" transform=\\"matrix(1 .2 0 -1 5.45 71.352)\\" fill=\\"#f2f4f4\\"/><path d=\\"M40.5 38a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0-3 0Z\\" transform=\\"matrix(1 .2 0 -1 5.45 71.352)\\" fill=\\"#f2f4f4\\"/><path d=\\"M50.5 38a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0-3 0Z\\" transform=\\"matrix(1 .2 0 -1 5.45 71.352)\\" fill=\\"#f2f4f4\\"/><path d=\\"M17.8 3a2.2 3 0 1 0 4.4 0a2.2 3 0 1 0-4.4 0Z\\" transform=\\"matrix(1 .2 0 -1 5.95 71.032)\\" fill=\\"#dce2e4\\"/><path d=\\"M51.8 3a2.2 3 0 1 0 4.4 0a2.2 3 0 1 0-4.4 0Z\\" transform=\\"matrix(1 .2 0 -1 5.95 71.032)\\" fill=\\"#dce2e4\\"/></g>","planter":"<path d=\\"M9 76h58l26-13H35Z\\" fill=\\"currentColor\\" opacity=\\".035\\"/><g stroke=\\"currentColor\\" stroke-width=\\"1.15\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"><polygon points=\\"14,27 68,37.8 81,29.47999999999999 27,18.68\\" fill=\\"#f2f4f4\\"/><polygon points=\\"14,64 68,74.8 68,37.8 14,27\\" fill=\\"#e9edee\\"/><polygon points=\\"68,74.8 81,66.47999999999999 81,29.47999999999999 68,37.8\\" fill=\\"#dce2e4\\"/><polygon points=\\"18.5,26.64 66.5,36.24000000000001 76.5,29.840000000000003 28.5,20.239999999999995\\" fill=\\"#cbd3d7\\"/><polygon points=\\"18.5,26.64 28.5,20.239999999999995 30.5,22.320000000000007 24.5,26.16000000000001\\" fill=\\"#dce2e4\\"/><polygon points=\\"28.5,20.239999999999995 76.5,29.840000000000003 70.5,30.320000000000007 30.5,22.320000000000007\\" fill=\\"#e9edee\\"/></g>","garden":"<path d=\\"M9 76h58l26-13H35Z\\" fill=\\"currentColor\\" opacity=\\".035\\"/><g stroke=\\"currentColor\\" stroke-width=\\"1.15\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"><polygon points=\\"42.5,15.400000000000006 79.5,22.799999999999997 81,21.83999999999999 44,14.439999999999998\\" fill=\\"#f2f4f4\\"/><polygon points=\\"42.5,65.4 79.5,72.8 79.5,22.799999999999997 42.5,15.400000000000006\\" fill=\\"#e9edee\\"/><polygon points=\\"79.5,72.8 81,71.83999999999999 81,21.83999999999999 79.5,22.799999999999997\\" fill=\\"#dce2e4\\"/><path d=\\"M26 12L42 28M26 25L48 47M38 12L53 27M26 39L38 51M49 13L53 17\\" transform=\\"matrix(1 .2 0 -1 21.45 65.232)\\" fill=\\"none\\"/><polygon points=\\"14,47 46,53.400000000000006 57,46.36 25,39.96\\" fill=\\"#f2f4f4\\"/><polygon points=\\"14,67 46,73.4 46,53.400000000000006 14,47\\" fill=\\"#e9edee\\"/><polygon points=\\"46,73.4 57,66.36 57,46.36 46,53.400000000000006\\" fill=\\"#dce2e4\\"/><polygon points=\\"18.5,46.64 44.5,51.84 52.5,46.72 26.5,41.519999999999996\\" fill=\\"#cbd3d7\\"/><path d=\\"M35.5 46.68000000000001 35.5 30.680000000000007\\"/><path d=\\"M16 29C6 28 7 36 16 35M16 34C26 33 25 41 16 40\\" transform=\\"matrix(1 .2 0 -1 19.5 66.48)\\" fill=\\"#e9edee\\"/></g>","accessories":"<path d=\\"M9 76h58l26-13H35Z\\" fill=\\"currentColor\\" opacity=\\".035\\"/><g stroke=\\"currentColor\\" stroke-width=\\"1.15\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"><polygon points=\\"20,36 67,45.400000000000006 79.5,37.400000000000006 32.5,28\\" fill=\\"#f2f4f4\\"/><polygon points=\\"20,65 67,74.4 67,45.400000000000006 20,36\\" fill=\\"#e9edee\\"/><polygon points=\\"67,74.4 79.5,66.4 79.5,37.400000000000006 67,45.400000000000006\\" fill=\\"#dce2e4\\"/><polygon points=\\"18.5,32.11999999999999 67.5,41.91999999999999 81,33.28 32,23.479999999999997\\" fill=\\"#f2f4f4\\"/><polygon points=\\"18.5,36.11999999999999 67.5,45.91999999999999 67.5,41.91999999999999 18.5,32.11999999999999\\" fill=\\"#e9edee\\"/><polygon points=\\"67.5,45.91999999999999 81,37.28 81,33.28 67.5,41.91999999999999\\" fill=\\"#dce2e4\\"/><path d=\\"M15 38V46H32V38H28V42H19V38Z\\" transform=\\"matrix(1 .2 0 -1 25.5 66.48)\\" fill=\\"#e9edee\\"/><path d=\\"M10 24H14V35H10ZM33 24H37V35H33Z\\" transform=\\"matrix(1 .2 0 -1 19.95 70.032)\\" fill=\\"#dce2e4\\"/><path d=\\"M25 60 62 67.4\\"/></g>"}')},27587,e=>{e.v({backdrop:"solutions-module__ITgN6W__backdrop",bottom:"solutions-module__ITgN6W__bottom",columns:"solutions-module__ITgN6W__columns",dialog:"solutions-module__ITgN6W__dialog",equipment:"solutions-module__ITgN6W__equipment",heading:"solutions-module__ITgN6W__heading",item:"solutions-module__ITgN6W__item",mobileTrigger:"solutions-module__ITgN6W__mobileTrigger",model:"solutions-module__ITgN6W__model",panel:"solutions-module__ITgN6W__panel",switcher:"solutions-module__ITgN6W__switcher",top:"solutions-module__ITgN6W__top",trigger:"solutions-module__ITgN6W__trigger"})},492111,e=>{"use strict";var t=e.i(843476),l=e.i(854878),a=e.i(375775),r=e.i(716327);let i=(0,e.i(456420).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var o=e.i(263676),n=e.i(271645),s=e.i(618566);let d=[["Promienniki","promienniki"],["Kominki i paleniska","kominki"],["Meble tarasowe","meble-tarasowe"],["Grille i kuchnie ogrodowe","grille"],["Donice","donice"],["Aranżacja ogrodu","aranzacja-ogrodu"],["Akcesoria","akcesoria"]];var c=e.i(735555),u=e.i(123307),p=e.i(667418);let f={"#f2f4f4":"top","#e9edee":"front","#dce2e4":"side","#cbd3d7":"inner"};function m({kind:e}){let l=p.default[e].replace(/fill="(#[a-f0-9]+)"/g,(e,t)=>f[t]?`fill="var(--equipment-${f[t]}
1,${t})"`:e);return(0,t.jsx)("svg",{viewBox:"0 0 100 86",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:l}})}var h=e.i(27587);let x=[{title:"Ciepło i ogień",items:[0,1]},{title:"Wypoczynek i gotowanie",items:[2,3]},{title:"Ogród i dodatki",items:[4,5,6]}],_=["heater","fireplace","outdoor","grill","planter","garden","accessories"];e.s(["default",0,function({modelLinks:e}){let[p,f]=(0,n.useState)(null),y=()=>f(null),g=(0,s.usePathname)();return(0,n.useEffect)(()=>{f(null)},[g]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:h.default.mobileTrigger,onClick:()=>f("solutions"),"aria-label":"Menu strony","aria-expanded":!!p,"aria-controls":"solutions-menu",children:[(0,t.jsx)(i,{size:23}),(0,t.jsx)("span",{children:"Menu"})]}),(0,t.jsxs)("button",{className:h.default.trigger,onClick:()=>f("solutions"),"aria-expanded":"solutions"===p,"aria-controls":"solutions-menu",children:["Rozwiązania ",(0,t.jsx)(r.ChevronDown,{size:21})]}),(0,t.jsxs)("button",{className:h.default.trigger,onClick:()=>f("equipment"),"aria-expanded":"equipment"===p,"aria-controls":"solutions-menu",children:["Wyposażenie ",(0,t.jsx)(r.ChevronDown,{size:21})]}),(0,t.jsxs)(l.Dialog,{open:!!p,onClose:y,className:h.default.dialog,children:[(0,t.jsx)(l.DialogBackdrop,{className:h.default.backdrop}),(0,t.jsxs)(l.DialogPanel,{className:h.default.panel,id:"solutions-menu",children:[(0,t.jsxs)("div",{className:h.default.switcher,"aria-label":"Wybierz część menu",children:[(0,t.jsx)("button",{onClick:()=>f("solutions"),"aria-pressed":"solutions"===p,children:"Rozwiązania"}),(0,t.jsx)("button",{onClick:()=>f("equipment"),"aria-pressed":"equipment"===p,children:"Wyposażenie"})]}),(0,t.jsxs)("div",{className:h.default.top,children:[(0,t.jsx)(l.DialogTitle,{children:"equipment"===p?"Wyposażenie do domu i na taras.":"Znajdź swoje rozwiązanie."}),(0,t.jsx)("button",{onClick:y,"aria-label":"Zamknij menu",children:(0,t.jsx)(o.X,{size:26})})]}),(0,t.jsx)("div",{className:h.default.columns,children:"equipment"===p?x.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:h.default.heading,children:e.title}),e.items.map(e=>{let[l,r]=d[e];return(0,t.jsxs)(c.default,{href:`/kategorie/${r}`,onClick:y,className:h.default.equipment,children:[(0,t.jsx)(m,{kind:_[e]}),(0,t.jsx)("span",{children:l}),(0,t.jsx)(a.ArrowUpRight,{size:22})]},r)})]},e.title)):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)(c.default,{onClick:y,href:"/zadaszenia-tarasowe-c-2.html",className:h.default.heading,children:["Zadaszenia tarasowe ",(0,t.jsx)(a.ArrowUpRight,{size:22})]}),[["solid","MK SOLID","Widoczny spadek dachu"],["cube","MK CUBE","Pozioma linia bryły"]].map(([l,r,i])=>(0,t.jsxs)(c.default,{href:e[l],onClick:y,className:h.default.model,children:[(0,t.jsx)(u.default,{line:l}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:r}),(0,t.jsx)("small",{children:i})]}),(0,t.jsx)(a.ArrowUpRight,{size:22})]},l))]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:h.default.heading,children:"Wokół domu"}),[["Szyby przesuwne","/szyby-przesuwne-c-9.html"],["Carport","/carport-wiata-samochodowa-c-19.html"],["Akcesoria","/akcesoria-dodatkowe-c-6.html"]].map(([e,l])=>(0,t.jsxs)(c.default,{href:l,onClick:y,className:h.default.item,children:[e,(0,t.jsx)(a.ArrowUpRight,{size:22})]},l))]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:h.default.heading,children:"Pomoc w wyborze"}),[["Zakup z montażem","/jak-kupic"],["Montaż samodzielny","/montaz-samodzielny-pm-22.html"],["Taras dla lokalu","/dla-biznesu"]].map(([e,l])=>(0,t.jsxs)(c.default,{href:l,onClick:y,className:h.default.item,children:[e,(0,t.jsx)(a.ArrowUpRight,{size:22})]},l))]})]})}),(0,t.jsxs)("div",{className:h.default.bottom,children:[(0,t.jsx)(c.default,{href:"/",onClick:y,children:"Strona główna"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(c.default,{href:"/nasze-realizacje-nc-1.html",onClick:y,children:"Realizacje"}),(0,t.jsx)(c.default,{href:"/kontakt",onClick:y,children:"Kontakt"}),(0,t.jsx)(c.default,{href:"/konto",onClick:y,children:"Konto klienta"}),(0,t.jsxs)(c.default,{href:"/sklep",onClick:y,children:["Wszystkie produkty ",(0,t.jsx)(a.ArrowUpRight,{size:18})]})]})]})]})]})]})}],492111)},517311,(e,t,l)=>
1{t.exports={solid:'\n  <polygon points="60.2,77.48 91.7,62.36 40.5,62.12 9,77.24" fill="currentColor" fill-opacity="0.045" stroke="none"/>\n  <g stroke="currentColor" stroke-width=".65" stroke-linejoin="round">\n   <g opacity=".28"><polygon points="41.83,63.97 38.84,63.97 38.84,8.86 41.83,8.86" fill="currentColor" fill-opacity="0.64"/><polygon points="41.83,63.97 43.19,63.32 43.19,8.21 41.83,8.86" fill="currentColor" fill-opacity="0.92"/></g><polygon points="14.69,77 11.7,77 11.7,21.89 14.69,21.89" fill="currentColor" fill-opacity="0.64"/><polygon points="14.69,77 16.05,76.35 16.05,21.23 14.69,21.89" fill="currentColor" fill-opacity="0.92"/>\n   <polygon points="11.7,20 40.2,6.32 40.2,9.32 11.7,23" fill="currentColor" fill-opacity="0.32"/>\n   <polygon points="59,34 87.5,20.32 40.2,6.32 11.7,20" fill="currentColor" fill-opacity="0.055"/>\n   <polygon points="64.75,30.39 65.3,30.12 20.2,16.77 19.65,17.04" fill="currentColor" fill-opacity="0.4" stroke="none"/><polygon points="71.88,26.97 72.43,26.7 27.33,13.35 26.77,13.62" fill="currentColor" fill-opacity="0.4" stroke="none"/><polygon points="79,23.55 79.55,23.28 34.45,9.93 33.9,10.2" fill="currentColor" fill-opacity="0.4" stroke="none"/>\n   <polygon points="87.5,20.32 40.2,6.32 40.2,8.52 87.5,22.52" fill="currentColor" fill-opacity="0.23"/>\n   <polygon points="59,77 56.01,77 56.01,35 59,35" fill="currentColor" fill-opacity="0.64"/><polygon points="59,77 60.36,76.35 60.36,34.35 59,35" fill="currentColor" fill-opacity="0.92"/><polygon points="86.14,63.97 83.15,63.97 83.15,21.97 86.14,21.97" fill="currentColor" fill-opacity="0.64"/><polygon points="86.14,63.97 87.5,63.32 87.5,21.32 86.14,21.97" fill="currentColor" fill-opacity="0.92"/>\n   <polygon points="59,34 11.7,20 11.7,22.2 59,36.2" fill="currentColor" fill-opacity="0.52"/>\n   <polygon points="59,34 87.5,20.32 87.5,23.92 59,37.6" fill="currentColor" fill-opacity="0.7"/>\n   <path d="M11.7 20 59 34 87.5 20.32" stroke-width=".9"/>\n  </g>\n ',cube:'\n  <polygon points="60.2,77.48 91.7,62.36 40.5,62.12 9,77.24" fill="currentColor" fill-opacity="0.045" stroke="none"/>\n  <g stroke="currentColor" stroke-width=".65" stroke-linejoin="round">\n   <g opacity=".28"><polygon points="42.12,64.09 38.6,64.09 38.6,19.09 42.12,19.09" fill="currentColor" fill-opacity="0.64"/><polygon points="42.12,64.09 43.72,63.32 43.72,18.32 42.12,19.09" fill="currentColor" fill-opacity="0.92"/></g><polygon points="15.22,77 11.7,77 11.7,32 15.22,32" fill="currentColor" fill-opacity="0.64"/><polygon points="15.22,77 16.82,76.23 16.82,31.23 15.22,32" fill="currentColor" fill-opacity="0.92"/>\n   <polygon points="11.7,31 40.2,17.32 40.2,22.72 11.7,36.4" fill="currentColor" fill-opacity="0.32"/>\n   <polygon points="59,31 87.5,17.32 40.2,17.32 11.7,31" fill="currentColor" fill-opacity="0.055"/>\n   <polygon points="64.75,27.71 65.3,27.45 20.2,27.45 19.65,27.71" fill="currentColor" fill-opacity="0.4" stroke="none"/><polygon points="71.88,24.29 72.43,24.03 27.33,24.03 26.77,24.29" fill="currentColor" fill-opacity="0.4" stroke="none"/><polygon points="79,20.87 79.55,20.61 34.45,20.61 33.9,20.87" fill="currentColor" fill-opacity="0.4" stroke="none"/>\n   <polygon points="87.5,17.32 40.2,17.32 40.2,22.72 87.5,22.72" fill="currentColor" fill-opacity="0.23"/>\n   <polygon points="59,77 55.48,77 55.48,32 59,32" fill="currentColor" fill-opacity="0.64"/><polygon points="59,77 60.6,76.23 60.6,31.23 59,32" fill="currentColor" fill-opacity="0.92"/><polygon points="85.9,64.09 82.38,64.09 82.38,19.09 85.9,19.09" fill="currentColor" fill-opacity="0.64"/><polygon points="85.9,64.09 87.5,63.32 87.5,18.32 85.9,19.09" fill="currentColor" fill-opacity="0.92"/>\n   <polygon points="59,31 11.7,31 11.7,36.4 59,36.4" fill="currentColor" fill-opacity="0.52"/>\n   <polygon points="59,31 87.5,17.32 87.5,22.72 59,36.4" fill="currentColor" fill-opacity="0.7"/>\n   <path d="M11.7 31 59 31 87.5 17.32" stroke-width=".9"/>\n  </g>\n ',carport:'\n  <polygon points="8,77 56,77 92,60 44,60" fill="currentColor" fill-opacity=".045"/>\n  <g stroke="currentColor" stroke-linejoin="round" stroke-width=".75">\n    <g opacity=".28">\n      <path d="M41 15h2.8v47H41zM87 17h2.6v44H87z" fill="currentColor" fill-opacity=".65"/>\n    </g>\n    <path d="M8 31 42 10h48L56 31Z" fill="currentColor" fill-opacity=".58"/>\n    <path d="M17 30 51 10M29 30 63 10M41 30 75 10M52 30 86 10" stroke-width="1" stroke-opacity=".64"/>\n    <path d="M8 31h48v5H8z" fill="currentColor" fill-opacity=".72"/>\n    <path d="M56 31 90 10v5L56 36Z" fill="currentColor" fill-opacity=".75"/>\n    <path d="M8 31 42 10v5L8 36Z" fill="currentColor" fill-opacity=".36"/>\n    <path d="M8 36h2.6v41H8zM56 36h2.6v41H56z" fill="currentColor" fill-opacity=".72"/>\n  </g>\n'}},123307,e=>{"use strict";var t=e.i(843476),l=e.i(517311);e.s(["default",0,function({line:e,className:a}){return(0,t.jsx)("svg",{className:a,viewBox:"0 0 100 86",fill:"none","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:l.default[e]}})}])},616630,e=>{e.v({back:"cart-drawer-module__xPilPa__back",backdrop:"cart-drawer-module__xPilPa__backdrop",badge:"cart-drawer-module__xPilPa__badge",blocked:"cart-drawer-module__xPilPa__blocked",body:"cart-drawer-module__xPilPa__body",cartColumn:"cart-drawer-module__xPilPa__cartColumn",checkoutColumn:"cart-drawer-module__xPilPa__checkoutColumn",checkoutHead:"cart-drawer-module__xPilPa__checkoutHead",checkoutScroll:"cart-drawer-module__xPilPa__checkoutScroll",checkoutTotal:"cart-drawer-module__xPilPa__checkoutTotal",close:"cart-drawer-module__xPilPa__close",collapseWide:"cart-drawer-module__xPilPa__collapseWide",content:"cart-drawer-module__xPilPa__content",contentSplit:"cart-drawer-module__xPilPa__contentSplit",delivery:"cart-drawer-module__xPilPa__delivery",deliveryCopy:"cart-drawer-module__xPilPa__deliveryCopy",deliveryIcon:"cart-drawer-module__xPilPa__deliveryIcon",deliveryNote:"cart-drawer-module__xPilPa__deliveryNote",deliveryOption:"cart-drawer-module__xPilPa__deliveryOption",deliveryPrice:"cart-drawer-module__xPilPa__deliveryPrice",dialog:"cart-drawer-module__xPilPa__dialog",empty:"cart-drawer-module__xPilPa__empty",emptyCopy:"cart-drawer-module__xPilPa__emptyCopy",emptyIcon:"cart-drawer-module__xPilPa__emptyIcon",emptyPhoto:"cart-drawer-module__xPilPa__emptyPhoto",eyebrow:"cart-drawer-module__xPilPa__eyebrow",header:"cart-drawer-module__xPilPa__header",items:"cart-drawer-module__xPilPa__items",pageLink:"cart-drawer-module__xPilPa__pageLink",panel:"cart-drawer-module__xPilPa__panel",panelExpanded:"cart-drawer-module__xPilPa__panelExpanded",positioner:"cart-drawer-module__xPilPa__positioner",primary:"cart-drawer-module__xPilPa__primary",remove:"cart-drawer-module__xPilPa__remove",secondary:"cart-drawer-module__xPilPa__secondary",selected:"cart-drawer-module__xPilPa__selected",status:"cart-drawer-module__xPilPa__status",summary:"cart-drawer-module__xPilPa__summary",total:"cart-drawer-module__xPilPa__total",trigger:"cart-drawer-module__xPilPa__trigger"})},295618,e=>{"use strict";var t=e.i(843476),l=e.i(375775),a=e.i(263676),r=e.i(616630),i=e.i(854878),o=e.i(854056),n=e.i(696498),s=e.i(818029),d=e.i(95187);let c=(0,d.createServerReference)("0096439117149070c118b677ef8423a68ad9eb4ed2",d.callServer,void 0,d.findSourceMapURL,"loadDrawerCheckoutContext");var u=e.i(727552);let p=new Set(["address","delivery","payment"]);function f(e){return`maka_drawer_checkout_${e}`}function m(){try{return window.sessionStorage}catch{return null}}function h(e){if(!e)return null;let t=m();if(!t)return null;try{var l=t.getItem(f(e));if(!l)return null;try{let e=JSON.parse(l);if(!e.step||!p.has(e.step)||"boolean"!=typeof e.visible)return null;return{step:e.step,visible:e.visible}}catch{return null}}catch{return null}}var x=e.i(627840);function _(e,t,l){return Math.max(0,Math.round(100*function(e,t,l){let a=Number(e);if(Number.isFinite(a)||(a=0),null!=t){let e=Number(t);Number.isFinite(e)&&l>=e&&(a=0)}return Math.round(100*a)/100}
1(e,t,l)))}var y=e.i(938479);function g(e){let t=e.unit_price;if(null!=t&&t>0)return t;let l=Math.max(1,e.quantity??1),a=e.total??0;return l>0?Math.round(a/l):0}var j=e.i(663108),k=e.i(591350),b=e.i(189352),w=e.i(666061),v=e.i(440015),N=e.i(874430),C=e.i(270960),z=e.i(219759),P=e.i(781151),M=e.i(973291),S=e.i(941502);function q({cart:e,bundle:l,step:a,onStep:r}){return(0,t.jsx)(v.CheckoutOptimisticProvider,{children:(0,t.jsx)(N.CheckoutNavigationProvider,{mode:"drawer",step:a,onStepChange:r,children:(0,t.jsxs)("div",{className:w.default.checkoutEmbedded,children:[(0,t.jsx)(C.default,{}),(0,t.jsx)(M.default,{cart:e,children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-y-8",children:[(0,t.jsx)(z.default,{cart:e,customer:l.customer}),(0,t.jsx)(S.default,{cart:e,availableShippingMethods:l.shippingMethods}),(0,t.jsx)(P.default,{cart:e,availablePaymentMethods:l.paymentMethods})]})})]})})})}var R=e.i(587069),T=e.i(61264),E=e.i(735555),L=e.i(415265);let W=({size:e="20",color:l="currentColor",...a})=>(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,t.jsx)("path",{d:"M5 1.66669L2.5 5.00002V16.6667C2.5 17.1087 2.67559 17.5326 2.98816 17.8452C3.30072 18.1578 3.72464 18.3334 4.16667 18.3334H15.8333C16.2754 18.3334 16.6993 18.1578 17.0118 17.8452C17.3244 17.5326 17.5 17.1087 17.5 16.6667V5.00002L15 1.66669H5Z",stroke:l,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M2.5 5H17.5",stroke:l,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M13.3333 8.33331C13.3333 9.21737 12.9821 10.0652 12.357 10.6903C11.7319 11.3155 10.884 11.6666 9.99996 11.6666C9.1159 11.6666 8.26806 11.3155 7.64294 10.6903C7.01782 10.0652 6.66663 9.21737 6.66663 8.33331",stroke:l,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});var A=e.i(618566),I=e.i(271645);function Z({displayQuantity:e,onIncrement:l,onDecrement:a,maxQuantity:r=99,syncing:i}){return(0,t.jsxs)("div",{className:`flex items-center border rounded h-11 transition-colors ${i?"border-blue-300 bg-blue-50/40":"border-ui-border-base"}`,children:[(0,t.jsx)("button",{className:"w-11 h-full flex items-center justify-center text-ui-fg-subtle hover:text-ui-fg-base hover:bg-ui-bg-base-hover rounded-l transition-colors disabled:opacity-40 disabled:cursor-not-allowed",onClick:a,disabled:e<=1,"aria-label":"Zmniejsz ilość",children:(0,t.jsx)("svg",{className:"w-3 h-3",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("line",{x1:"2",y1:"6",x2:"10",y2:"6"})})}),(0,t.jsx)("span",{className:"w-8 text-center text-sm font-medium tabular-nums",children:e}),(0,t.jsx)("button",{className:"w-11 h-full flex items-center justify-center text-ui-fg-subtle hover:text-ui-fg-base hover:bg-ui-bg-base-hover rounded-r transition-colors disabled:opacity-40 disabled:cursor-not-allowed",onClick:l,disabled:e>=r,"aria-label":"Zwiększ ilość",children:(0,t.jsxs)("svg",{className:"w-3 h-3",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("line",{x1:"6",y1:"2",x2:"6",y2:"10"}),(0,t.jsx)("line",{x1:"2",y1:"6",x2:"10",y2:"6"})]})})]})}function O({item:e,currencyCode:l,onOptimisticQtyChange:a}){let[i,o]=(0,I.useState)(e.quantity),[d,c]=(0,I.useState)(!1),[u,p]=(0,I.useState)(null),f=(0,I.useRef)(void 0),m=(0,I.useRef)(0),h=(0,I.useRef)(e.quantity),x=(0,I.useMemo)(()=>g(e),[e.id,e.unit_price]),_=(0,I.useMemo)(()=>{let t,l;return t=Math.max(1,e.quantity??1),null!=(l=e.original_total)&&l>0?Math.round(l/t):g(e)},[e.id,e.unit_price,e.original_total]);(0,I.useEffect)(()=>{h.current=e.quantity,o(e.quantity),c(!1),p(null),f.current&&(clearTimeout(f.current),f.current=void 0)},[e.id]),(0,I.useEffect)(()=>{e.quantity===h.current&&(o(e.quantity),c(!1))},[e.quantity]),(0,I.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]);let k=t=>{h.current=t,o(t),a?.(e.id,t)},b=t=>{f.current&&clearTimeout(f.current),h.current=t,f.current=setTimeout(async()=>{f.current=void 0;let t=h.current,l=++m.current;c(!0),p(null);let r=await (0,s.updateLineItem)({lineId:e.id,quantity:t});if(l===m.current){if(r){p(r),h.current=e.quantity,o(e.quantity),a?.(e.id,e.quantity),c(!1);return}e.quantity===t&&c(!1)}},320)},w=(0,y.cartLineIsUnavailable)(e),v=(0,y.cartLineStockQty)(e),N=v>0?v:0,C=Math.max(1,i);return(0,t.jsxs)("div",{className:(0,j.cn)("flex gap-x-3 py-4 first:pt-0 last:pb-0",w&&"opacity-60"),children:[(0,t.jsx)(E.default,{href:`/produkty/${e.product_handle}`,className:"shrink-0",children:(0,t.jsx)(L.default,{thumbnail:e.thumbnail,images:e.variant?.product?.images,size:"square",className:"!w-[80px] !h-[80px] !rounded !p-1"})}),(0,t.jsxs)("div",{className:"flex flex-col flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-x-2 gap-y-2",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(E.default,{href:`/produkty/${e.product_handle}`,className:"text-sm font-medium text-ui-fg-base hover:text-tm-orange transition-colors line-clamp-3",children:e.product_title}
1),e.variant?.title!=="Default Variant"&&(0,t.jsx)(T.default,{variant:e.variant,"data-testid":"cart-item-variant","data-value":e.variant}),w?(0,t.jsx)("p",{className:"mt-1 text-[11px] font-medium text-amber-800",children:(0,y.cartLineUnavailableMessage)(e)}):null]}),(0,t.jsxs)("div",{className:"text-right shrink-0",children:[x<_&&(0,t.jsx)("span",{className:"text-xs text-ui-fg-muted line-through block",children:(0,n.convertToLocale)({amount:_*C,currency_code:l})}),(0,t.jsx)("span",{className:"text-sm font-semibold text-ui-fg-base",children:(0,n.convertToLocale)({amount:x*C,currency_code:l})})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[w&&N<1?(0,t.jsx)("span",{className:"text-[11px] text-ui-fg-muted",children:"Usuń, aby kontynuować"}):(0,t.jsx)(Z,{displayQuantity:i,onIncrement:()=>{let e=h.current+1;e>N||(k(e),b(e))},onDecrement:()=>{let e=h.current-1;e<1||(k(e),b(e))},maxQuantity:N,syncing:d}),(0,t.jsx)(R.default,{id:e.id,className:r.default.remove,children:"Usuń"})]}),u&&(0,t.jsx)("span",{className:"text-xs text-red-500 mt-1",children:u})]})]})}e.s(["default",0,({cart:e,courierQuotes:s=[]})=>{let[d,p]=(0,I.useState)(!1),[w,v]=(0,I.useState)(!1),[N,C]=(0,I.useState)("address"),[z,P]=(0,I.useState)(null),[M,S]=(0,I.useState)(null),[R,T]=(0,I.useState)(!1),L=(0,I.useRef)(null),Z=(0,I.useRef)(!1),[D,F]=(0,I.useState)({}),H=(0,I.useMemo)(()=>e?.items?.length?e.items.reduce((e,t)=>e+(D[t.id]??t.quantity),0):0,[e?.items,D]),J=(0,y.cartHasUnavailableItems)(e),U=(0,I.useRef)(H),K=(0,A.usePathname)();(0,I.useEffect)(()=>{p(!1)},[K]),(0,I.useEffect)(()=>{U.current===H||!(H>U.current)||K.includes("/koszyk")||K.includes("/kasa")||(v(!1),p(!0)),U.current=H},[H,K]);let Q=(0,I.useCallback)(()=>{if(e?.id&&(e.items?.length??0)>0){let t=h(e.id);t&&(C((0,x.resolveCheckoutStep)(t.step,e)),v(t.visible))}p(!0)},[e]);(0,I.useEffect)(()=>(window.addEventListener("OPEN_CART_DRAWER",Q),()=>window.removeEventListener("OPEN_CART_DRAWER",Q)),[Q]),(0,I.useEffect)(()=>{let t=e?.items;t?.length?F(e=>{if(0===Object.keys(e).length)return e;let l={...e},a=!1;for(let e of t){let t=e.id;null!=l[t]&&l[t]===e.quantity&&(delete l[t],a=!0)}return a?l:e}):F({})},[e?.items]);let B=(0,I.useCallback)((e,t)=>{F(l=>({...l,[e]:t}))},[]),$=(0,I.useMemo)(()=>e?.items?e.items.reduce((e,t)=>{let l=Math.max(1,t.quantity??1),a=D[t.id]??l;return e+g(t)*a},0):0,[e?.items,D]),Y=(0,I.useMemo)(()=>[...e?.items||[]].sort((e,t)=>(e.created_at??"")>(t.created_at??"")?-1:1),[e?.items]),V=Y.length>0,G=function(e,t,l){if(!e.length||!Number.isFinite(t))return{minor:null,exact:!1};let a=Math.max(0,t)/100;if(l){let t=e.find(e=>e.id===l);if(t)return{minor:_(t.basePriceGrossPln,t.freeShippingThresholdPln,a),exact:!0}}let r=1/0;for(let t of e){let e=_(t.basePriceGrossPln,t.freeShippingThresholdPln,a);e<r&&(r=e)}return Number.isFinite(r)?{minor:r,exact:!1}:{minor:null,exact:!1}}(s,$,e?.shipping_methods?.[0]?.shipping_option_id??null),X=function(e,t){let l=t?.[0],a=l?.application_method;if(!a||null==a.value)return 0;let r=Number(a.value);if(!Number.isFinite(r)||r<=0||!Number.isFinite(e))return 0;let i=l.metadata?.discount_type,o=String(a.type??"").toLowerCase();return"percentage"===o||"percent"===o||"percent"===i?Math.max(0,Math.round(e*r/100)):"fixed"!==o&&"fixed_pln"!==o&&"fixed_pln"!==i?0:Math.min(Math.round(100*r),Math.max(0,e))}($,e?.promotions),ee=G.minor,et=Math.max(0,$-X+(ee??0)),el=t=>(0,n.convertToLocale)({amount:t,currency_code:e?.currency_code??"PLN"}),ea=null==ee?"Do ustalenia":0===ee?"bezpłatnie":G.exact?el(ee):`od ${el(ee)}`,er=G.exact?"Suma":null==ee?"Suma produktów":"Szacowana suma",ei=e?(0,x.resolveCheckoutStep)(w?N:(0,x.getNextCheckoutStep)(e),e):"address",eo=(0,I.useCallback)((t,l)=>{e?.id&&function(e,t){let l=m();if(l)try{l.setItem(f(e),JSON.stringify(t))}catch{}}(e.id,{visible:t,step:l})},[e?.id]),en=(0,I.useCallback)(async()=>{T(!0),S(null);let e=await c();e.ok?P(e):(P(null),S(e.message)),T(!1)},[]);(0,I.useEffect)(()=>{P(null),S(null)},[e?.id]),(0,I.useEffect)(()=>{e?.id&&!V&&(!function(e){if(!e)return;let t=m();if(t)try{t.removeItem(f(e))}catch{}}(e.id),(0,u.clearCheckoutAddressDraft)(e.id),v(!1),C("address"))},[e?.id,V]),(0,I.useEffect)(()=>{!w||z||R||M||en()},[z,w,en,M,R]),(0,I.useEffect)(()=>{d&&w&&!Z.current&&L.current?.focus(),Z.current=d&&w},[w,d]);let es=()=>{v(!1),eo(!1,N)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:r.default.trigger,onClick:Q,"data-testid":"nav-cart-link","aria-label":"Koszyk",children:[(0,t.jsx)(W,{size:"20"}),H>0&&(0,t.jsx)("span",{className:r.default.badge,children:H})]}),(0,t.jsx)(o.Transition,{show:d,as:I.Fragment,children:(0,t.jsxs)(i.Dialog,{as:"div",className:r.default.dialog,onClose:()=>p(!1),children:[(0,t.jsx)(o.TransitionChild,{as:I.Fragment,enter:"transition-opacity duration-200 motion-reduce:duration-0",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-150 motion-reduce:duration-0",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)(i.DialogBackdrop,{
1className:r.default.backdrop})}),(0,t.jsx)("div",{className:r.default.positioner,children:(0,t.jsx)(o.TransitionChild,{as:I.Fragment,enter:"transition-transform duration-300 ease-out motion-reduce:duration-0",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transition-transform duration-200 ease-in motion-reduce:duration-0",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,t.jsxs)(i.DialogPanel,{className:(0,j.cn)(r.default.panel,w&&r.default.panelExpanded),"data-cart-design":"maka-v1",children:[(0,t.jsxs)("div",{className:r.default.header,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"Tarasy MA-KA"}),(0,t.jsxs)(i.DialogTitle,{children:["Twój koszyk ",H>0&&(0,t.jsxs)("span",{children:[H," szt."]})]})]}),(0,t.jsx)("button",{type:"button",className:r.default.close,onClick:()=>p(!1),"aria-label":"Zamknij koszyk",children:(0,t.jsx)(a.X,{size:22,"aria-hidden":"true"})})]}),V?(0,t.jsxs)("div",{className:(0,j.cn)(r.default.content,w&&r.default.contentSplit),children:[(0,t.jsxs)("div",{className:r.default.cartColumn,children:[(0,t.jsxs)("div",{className:r.default.body,children:[(0,t.jsx)(k.default,{cart:e}),(0,t.jsx)("div",{className:r.default.items,children:Y.map(l=>(0,t.jsx)(O,{item:l,currencyCode:e?.currency_code??"PLN",onOptimisticQtyChange:B},l.id))}),!w&&!G.exact&&(0,t.jsx)("p",{className:r.default.deliveryNote,children:"Dostawa kurierem. Dokładny koszt potwierdzisz przy zamówieniu."}),e&&(0,t.jsx)(b.default,{cart:e})]}),(0,t.jsxs)("div",{className:r.default.summary,children:[(0,t.jsxs)("dl",{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:"Produkty"}),(0,t.jsx)("dd",{children:el($)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:"Dostawa"}),(0,t.jsx)("dd",{children:ea})]}),X>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{children:"Rabat"}),(0,t.jsxs)("dd",{children:["-",el(X)]})]}),(0,t.jsxs)("div",{className:r.default.total,children:[(0,t.jsxs)("dt",{children:[er," ",(0,t.jsx)("small",{children:"brutto"})]}),(0,t.jsx)("dd",{"data-testid":"cart-subtotal",children:el(et)})]})]}),J&&(0,t.jsx)("p",{className:r.default.blocked,children:"Usuń lub popraw niedostępne produkty, aby przejść dalej."}),!w&&(J?(0,t.jsx)("button",{type:"button",disabled:!0,className:r.default.primary,children:"Zamów"}):(0,t.jsxs)("button",{type:"button",className:r.default.primary,onClick:()=>{if(!e||J)return;let t=e.id?h(e.id):null,l=t?(0,x.resolveCheckoutStep)(t.step,e):(0,x.getNextCheckoutStep)(e);C(l),v(!0),eo(!0,l)},"aria-expanded":!1,"aria-controls":"drawer-checkout","data-testid":"cart-order-button",children:["Zamów ",(0,t.jsx)(l.ArrowUpRight,{size:20,"aria-hidden":"true"})]})),w&&(0,t.jsx)("button",{type:"button",className:`${r.default.secondary} ${r.default.collapseWide}`,onClick:es,"aria-expanded":!0,"aria-controls":"drawer-checkout",children:"Zwiń finalizację"}),(0,t.jsx)("button",{type:"button",className:r.default.secondary,onClick:()=>p(!1),children:"Kontynuuj zakupy"}),(0,t.jsx)(E.default,{href:`/kasa?step=${ei}`,onClick:()=>p(!1),className:r.default.pageLink,children:"Zamów na osobnej stronie"}),(0,t.jsx)(E.default,{href:"/koszyk",onClick:()=>p(!1),className:r.default.secondary,children:"Zobacz cały koszyk"})]})]}),w&&e&&(0,t.jsxs)("section",{className:r.default.checkoutColumn,id:"drawer-checkout","aria-labelledby":"drawer-checkout-title",children:[(0,t.jsxs)("div",{className:r.default.checkoutHead,children:[(0,t.jsx)("button",{type:"button",className:r.default.back,onClick:es,children:"Wróć do koszyka"}),(0,t.jsx)("h2",{id:"drawer-checkout-title",tabIndex:-1,ref:L,children:"Finalizacja"})]}),(0,t.jsxs)("div",{className:r.default.checkoutScroll,children:[R&&(0,t.jsx)("p",{className:r.default.status,role:"status",children:"Wczytujemy zamówienie…"}),M&&(0,t.jsxs)("div",{className:r.default.status,role:"alert",children:[(0,t.jsx)("p",{children:M}),(0,t.jsx)("button",{type:"button",className:r.default.primary,onClick:()=>void en(),children:"Spróbuj ponownie"})]}),z&&(0,t.jsx)(q,{cart:e,bundle:z,step:N,onStep:e=>{C(e),eo(!0,e)}})]}),(0,t.jsxs)("div",{className:r.default.checkoutTotal,children:[(0,t.jsxs)("span",{children:[er," ",(0,t.jsx)("small",{children:"brutto"})]}),(0,t.jsx)("strong",{children:el(et)})]})]})]}):(0,t.jsx)("div",{className:r.default.empty,children:(0,t.jsxs)("div",{className:r.default.emptyCopy,children:[(0,t.jsx)("span",{className:r.default.emptyIcon,"aria-hidden":"true",children:(0,t.jsx)(W,{size:"36"})}),(0,t.jsx)("h3",{children:"Koszyk jest jeszcze pusty."}),(0,t.jsx)("p",{children:"Poznaj wyposażenie do domu i na taras. Wybrane produkty znajdziesz tutaj."}),(0,t.jsxs)(E.default,{href:"/sklep",onClick:()=>p(!1),className:r.default.primary,children:["Zobacz wyposażenie ",(0,t.jsx)(l.ArrowUpRight,{size:20,"aria-hidden":"true"})]})]})})]})})})]})})]})}],295618)},31579,e=>{"use strict";var t=e.i(843476),l=e.i(95187);let a=(0,l.createServerReference)("00521f2c25bf45f128b4241540f6cf44ba48b87094",l.callServer,void 0,l.findSourceMapURL,"transferCart");var r=e.i(272064),i=e.i(614271),o=e.i(618566),n=e.i(271645);e.s(["default",0,function(e){let{customer:l,cart:s}
1=e,d=(0,o.useRouter)(),[c,u]=(0,n.useState)(!1),[p,f]=(0,n.useState)(!1),m=(0,n.useRef)(!1),h=(0,n.useCallback)(async()=>{f(!0),u(!1);try{await a(),d.refresh()}catch{u(!0),f(!1)}},[d]);return((0,n.useEffect)(()=>{m.current||(m.current=!0,h())},[h]),!l||s.customer_id)?null:c?(0,t.jsx)("div",{className:"flex items-center justify-center small:p-4 p-2 text-center bg-orange-300 small:gap-2 gap-1 text-sm mt-2 text-orange-800",children:(0,t.jsxs)("div",{className:"flex flex-col small:flex-row small:gap-2 gap-1 items-center",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(r.ExclamationCircleSolid,{className:"inline"}),"Nie udało się przypisać koszyka do konta"]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsx)(i.Button,{variant:"transparent",className:"hover:bg-transparent active:bg-transparent focus:bg-transparent disabled:text-orange-500 text-orange-950 p-0 bg-transparent",size:"base",disabled:p,onClick:()=>void h(),children:p?"Przenoszenie...":"Ponów przeniesienie"})]})}):(0,t.jsx)("div",{className:"flex items-center justify-center small:p-4 p-2 text-center bg-orange-100 small:gap-2 gap-1 text-sm mt-2 text-orange-900",children:(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(r.ExclamationCircleSolid,{className:"inline"}),p?"Przypisujemy koszyk do Twojego konta...":"Łączenie koszyka z kontem..."]})})}],31579)},43721,e=>{e.v({"backdrop-in":"configurator-drawer-module__J_cc_q__backdrop-in","backdrop-out":"configurator-drawer-module__J_cc_q__backdrop-out",error:"configurator-drawer-module__J_cc_q__error",frame:"configurator-drawer-module__J_cc_q__frame",host:"configurator-drawer-module__J_cc_q__host",mobileLabel:"configurator-drawer-module__J_cc_q__mobileLabel"})},880677,e=>{"use strict";var t=e.i(843476),l=e.i(271645),a=e.i(314381),r=e.i(882676),i=e.i(43721);function o(){let e=(0,l.useRef)(null),o=(0,l.useRef)(null),n=(0,l.useRef)(!1),s=(0,l.useRef)(!1),d=(0,l.useRef)(null),c=(0,l.useRef)(null),u=(0,l.useRef)(null),p=(0,l.useRef)(null),f=(0,l.useRef)(void 0),[m,h]=(0,l.useState)(!1),[x,_]=(0,l.useState)(!1),[y,g]=(0,l.useState)(!1),j=(0,l.useCallback)(t=>e.current?.contentWindow?.postMessage({type:`maka-configurator:${t}`,model:d.current,project:c.current,preset:u.current},location.origin),[]),k=(0,l.useCallback)((e,t,l)=>{if(!o.current?.open&&!s.current){try{sessionStorage.removeItem(r.OPEN_CONFIGURATOR_STORAGE_KEY)}catch{}p.current=document.activeElement,d.current=e||null,c.current=t&&/^[0-9a-f-]{36}$/.test(t)?t:null,u.current=l&&"object"==typeof l?l:null,s.current=!0,h(!0),_(!0),g(!1),n.current&&j("open"),clearTimeout(f.current),f.current=setTimeout(()=>{s.current=!1,_(!1),g(!0)},2e4)}},[j]),b=(0,l.useCallback)(()=>{s.current=!1,clearTimeout(f.current),o.current?.close(),document.documentElement.classList.remove("maka-configurator-open"),_(!1),p.current?.focus({preventScroll:!0})},[]);return(0,l.useEffect)(()=>{let t=t=>{if(t.origin===location.origin&&t.source===e.current?.contentWindow&&(t.data?.type==="maka-configurator:ready"&&(n.current=!0,s.current&&j("open")),t.data?.type==="maka-configurator:prepared"&&s.current&&(o.current?.removeAttribute("data-closing"),o.current?.open||o.current?.showModal(),document.documentElement.classList.add("maka-configurator-open"),j("reveal")),t.data?.type==="maka-configurator:opened"&&o.current?.open&&(clearTimeout(f.current),_(!1),s.current=!1,o.current?.removeAttribute("data-closing"),o.current?.open||o.current?.showModal(),document.documentElement.classList.add("maka-configurator-open"),e.current?.focus({preventScroll:!0})),t.data?.type==="maka-configurator:closing"&&o.current?.setAttribute("data-closing",""),t.data?.type==="maka-configurator:closed"&&b(),t.data?.type==="maka-configurator:navigate"&&"string"==typeof t.data.href)){let e=new URL(t.data.href,location.origin);e.origin!==location.origin||e.pathname.startsWith("/api/")||(b(),location.assign(e.pathname+e.search))}},l=e=>k(e.detail?.model,e.detail?.project,e.detail?.preset);window.addEventListener("message",t),window.addEventListener(r.OPEN_CONFIGURATOR_DRAWER,l);try{"1"===sessionStorage.getItem(r.OPEN_CONFIGURATOR_STORAGE_KEY)&&k()}catch{}let a=navigator.connection,i=a?.saveData||/^(slow-)?2g$/.test(a?.effectiveType||"")?void 0:setTimeout(()=>h(!0),1500);return()=>{window.removeEventListener("message",t),window.removeEventListener(r.OPEN_CONFIGURATOR_DRAWER,l),clearTimeout(i),clearTimeout(f.current),document.documentElement.classList.remove("maka-configurator-open")}},[b,k,j]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>k(),onPointerEnter:()=>h(!0),onFocus:()=>h(!0),"data-testid":"nav-configurator-button","aria-label":"Otwórz konfigurator","aria-haspopup":"dialog","aria-busy":x,children:[(0,t.jsx)("span",{children:(0,t.jsx)(a.Box,{size:18,"data-config-glyph":"cube","aria-hidden":"true"})}),(0,t.jsx)("span",{children:"Konfigurator 3D"}),(0,t.jsx)("span",{"aria-hidden":"true",className:i.default.mobileLabel,children:"3D"})]}),y&&(0,t.jsx)("span",{className:i.default.error,role:"status",children:"Nie udało się otworzyć widoku. Kliknij ponownie."}),(0,t.jsx)("dialog",{ref:o,className:i.default.host,"aria-label":"Konfigurator zadaszenia MA-KA",onCancel:e=>{e.preventDefault(),j("close")},children:m&&(0,t.jsx)("iframe",{ref:e,src:"/projekt-p02/index.html?embed=configurator",title:"Konfigurator zadaszenia MA-KA",className:i.default.frame})})]})}e.s(["default",0,o],350875),e.i(350875),e.s(["OPEN_CONFIGURATOR_DRAWER",()=>r.OPEN_CONFIGURATOR_DRAWER,"default",0,o],880677)},950973,e=>{e.v({arrive:"search-module__6Jc09q__arrive",backdrop:"search-module__6Jc09q__backdrop",body:"search-module__6Jc09q__body",browse:"search-module__6Jc09q__browse",caption:"search-module__6Jc09q__caption",clear:"search-module__6Jc09q__clear",close:"search-module__6Jc09q__close",dialog:"search-module__6Jc09q__dialog",field:"search-module__6Jc09q__field",hint:"search-module__6Jc09q__hint",inner:"search-module__6Jc09q__inner",panel:"search-module__6Jc09q__panel",position:"search-module__6Jc09q__position",result:"search-module__6Jc09q__result",resultCopy:"search-module__6Jc09q__resultCopy",results:"search-module__6Jc09q__results",start:"search-module__6Jc09q__start",suggestions:"search-module__6Jc09q__suggestions",thumb:"search-module__6Jc09q__thumb",trigger:"search-module__6Jc09q__trigger"})},425629,e=>{"use strict";var t=e.i(843476),l=e.i(854878),a=e.i(566595),r=e.i(263676),i=e.i(375775),o=e.i(735555),n=e.i(271645),s=e.i(618566),d=e.i(950973);let c={category:"Kategoria",collection:"Kolekcja",product:"Produkt",dimension_card:"Wymiar i wariant",realization:"Realizacja",article:"Poradnik",info:"Informacje",local:"Montaż w regionie"},u=[["MK SOLID","/mk-solid"],["MK CUBE","/mk-cube"],["Szyby przesuwne","/szyby-przesuwne-c-9.html"],["Promienniki","/kategorie/promienniki"],["Carport","/carport-wiata-samochodowa-c-19.html"]];
1e.s(["default",0,function(){let[e,p]=(0,n.useState)(!1),[f,m]=(0,n.useState)(""),[h,x]=(0,n.useState)([]),[_,y]=(0,n.useState)("idle"),[g,j]=(0,n.useState)(!1),k=(0,n.useRef)(null),b=(0,s.usePathname)(),w=()=>p(!1);return(0,n.useEffect)(()=>{p(!1)},[b]),(0,n.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()&&(e.preventDefault(),p(!0))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,n.useEffect)(()=>{e||(m(""),x([]),y("idle"),j(!1))},[e]),(0,n.useEffect)(()=>{if(!e||!f.trim()){x([]),y("idle"),j(!1);return}let t=new AbortController;y("loading"),x([]),j(!1);let l=setTimeout(async()=>{try{let e=await fetch(`/api/search?${new URLSearchParams({q:f.trim()})}`,{signal:t.signal,cache:"no-store"});if(!e.ok)throw Error("search");let l=await e.json(),a=l.products.filter(e=>e.handle).map(e=>{let t=e.variants?.[0]?.calculated_price;return{id:e.id,title:e.title??"Produkt",path:`/produkty/${e.handle}`,thumbnail:e.thumbnail??null,kind:"product",price:t?.calculated_amount!=null?new Intl.NumberFormat("pl-PL",{style:"currency",currency:(t.currency_code??"PLN").toUpperCase()}).format(t.calculated_amount/100):void 0}});if(t.signal.aborted)return;x([...a,...l.entries??[]].slice(0,12)),j(!!l.partial),y("done")}catch{t.signal.aborted||y("error")}},280);return()=>{clearTimeout(l),t.abort()}},[e,f]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>p(!0),className:d.default.trigger,"aria-label":"Szukaj","aria-expanded":e,"aria-haspopup":"dialog",title:"Szukaj (Ctrl+K)",children:(0,t.jsx)(a.Search,{size:21,strokeWidth:1.6,"aria-hidden":"true"})}),(0,t.jsxs)(l.Dialog,{open:e,onClose:w,initialFocus:k,className:d.default.dialog,children:[(0,t.jsx)(l.DialogBackdrop,{className:d.default.backdrop}),(0,t.jsx)("div",{className:d.default.position,children:(0,t.jsx)(l.DialogPanel,{className:d.default.panel,"data-search-design":"header-wide-v1",children:(0,t.jsxs)("div",{className:d.default.inner,children:[(0,t.jsx)(l.DialogTitle,{className:"sr-only",children:"Wyszukiwanie na stronie"}),(0,t.jsxs)("div",{className:d.default.field,children:[(0,t.jsx)(a.Search,{size:21,strokeWidth:1.6,"aria-hidden":"true"}),(0,t.jsx)("label",{htmlFor:"site-search",className:"sr-only",children:"Szukaj produktów, poradników i rozwiązań"}),(0,t.jsx)("input",{id:"site-search",ref:k,type:"search",autoComplete:"off",maxLength:120,placeholder:"Szukaj na stronie",value:f,onChange:e=>m(e.target.value)}),f&&(0,t.jsx)("button",{type:"button",className:d.default.clear,onClick:()=>{m(""),k.current?.focus()},"aria-label":"Wyczyść wyszukiwanie",children:"Wyczyść"}),(0,t.jsx)("button",{type:"button",onClick:w,className:d.default.close,"aria-label":"Zamknij wyszukiwanie",children:(0,t.jsx)(r.X,{size:24,strokeWidth:1.5,"aria-hidden":"true"})})]}),(0,t.jsx)("p",{className:d.default.hint,children:"Produkty, poradniki, realizacje i pomoc w wyborze."}),(0,t.jsx)("div",{className:d.default.body,"aria-busy":"loading"===_,children:f.trim()?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:d.default.caption,role:"status",children:"loading"===_?"Szukamy…":"error"===_?"Wyszukiwanie jest chwilowo niedostępne. Spróbuj ponownie za chwilę.":h.length?`Znalezione propozycje: ${h.length}`:`Nie znaleźliśmy wynik\xf3w dla „${f.trim()}”. Spr\xf3buj kr\xf3tszej nazwy.`}),g&&(0,t.jsx)("p",{className:d.default.hint,children:"Część wyników jest chwilowo niedostępna."}),h.length>0&&(0,t.jsx)("ul",{className:d.default.results,children:h.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)(o.default,{href:e.path,onClick:w,className:d.default.result,children:[(0,t.jsx)("span",{className:d.default.thumb,children:e.thumbnail&&(0,t.jsx)("img",{src:e.thumbnail,alt:"",width:72,height:72,loading:"lazy"})}),(0,t.jsxs)("span",{className:d.default.resultCopy,children:[(0,t.jsx)("small",{children:c[e.kind]??"Na stronie"}),(0,t.jsx)("strong",{children:e.title}),e.price&&(0,t.jsx)("span",{children:e.price})]}),(0,t.jsx)(i.ArrowUpRight,{size:20,"aria-hidden":"true"})]})},e.id))}),("error"===_||"done"===_&&!h.length)&&(0,t.jsxs)(o.default,{href:"/sklep",onClick:w,className:d.default.browse,children:["Przejdź do sklepu ",(0,t.jsx)(i.ArrowUpRight,{size:18,"aria-hidden":"true"})]})]}):(0,t.jsxs)("div",{className:d.default.start,children:[(0,t.jsx)("p",{className:d.default.caption,children:"Na początek"}),(0,t.jsx)("div",{className:d.default.suggestions,children:u.map(([e,l])=>(0,t.jsx)(o.default,{href:l,onClick:w,children:e},l))})]})})]})})})]})]})}])},984137,e=>{e.v({inner:"footer-module__Q9a1Pq__inner",kicker:"footer-module__Q9a1Pq__kicker",newsletter:"footer-module__Q9a1Pq__newsletter",newsletterBand:"footer-module__Q9a1Pq__newsletterBand",newsletterIntro:"footer-module__Q9a1Pq__newsletterIntro",newsletterPicture:"footer-module__Q9a1Pq__newsletterPicture",ph
1otoReveal:"footer-module__Q9a1Pq__photoReveal",shell:"footer-module__Q9a1Pq__shell"})},6409,e=>{"use strict";var t=e.i(843476),l=e.i(271645),a=e.i(984137);e.s(["default",0,function({src:e}){let r=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let t=r.current;if(!t)return;let l=document.documentElement;l.style.setProperty("--maka-footer-image",`url("${e}")`);let a=new IntersectionObserver(([e])=>{l.toggleAttribute("data-footer-reveal",e.isIntersecting)});return a.observe(t),()=>{a.disconnect(),l.removeAttribute("data-footer-reveal"),l.style.removeProperty("--maka-footer-image")}},[e]),(0,t.jsxs)("div",{ref:r,className:a.default.photoReveal,"data-footer-photo":!0,"aria-label":"Wieczorny kadr tarasu",children:[(0,t.jsx)("img",{src:e,alt:"",width:1600,height:900,loading:"lazy",decoding:"async"}),(0,t.jsx)("p",{children:"Jeszcze chwilę na tarasie."})]})}])},202197,e=>{e.v({account:"nav-module__4rYznq__account",actions:"nav-module__4rYznq__actions",bar:"nav-module__4rYznq__bar",brandLink:"nav-module__4rYznq__brandLink",drop:"nav-module__4rYznq__drop",dropAll:"nav-module__4rYznq__dropAll",dropButton:"nav-module__4rYznq__dropButton",dropPanel:"nav-module__4rYznq__dropPanel",iconButton:"nav-module__4rYznq__iconButton",links:"nav-module__4rYznq__links",logo:"nav-module__4rYznq__logo",menu:"nav-module__4rYznq__menu",phone:"nav-module__4rYznq__phone",pin:"nav-module__4rYznq__pin",search:"nav-module__4rYznq__search",secondary:"nav-module__4rYznq__secondary",shell:"nav-module__4rYznq__shell"})},476175,e=>{"use strict";var t=e.i(843476),l=e.i(716327),a=e.i(271645),r=e.i(735555),i=e.i(123307),o=e.i(202197);e.s(["default",0,function(){let[e,n]=(0,a.useState)(!1),s=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!e)return;let t=e=>{s.current?.contains(e.target)||n(!1)},l=e=>{"Escape"===e.key&&n(!1)};return document.addEventListener("click",t),document.addEventListener("keydown",l),()=>{document.removeEventListener("click",t),document.removeEventListener("keydown",l)}},[e]),(0,t.jsxs)("div",{className:o.default.drop,ref:s,children:[(0,t.jsxs)("button",{type:"button",className:o.default.dropButton,"aria-expanded":e,"aria-controls":"nav-drop-zadaszenia",onClick:()=>n(e=>!e),children:["Zadaszenia ",(0,t.jsx)(l.ChevronDown,{size:16,"aria-hidden":"true"})]}),(0,t.jsxs)("div",{className:o.default.dropPanel,id:"nav-drop-zadaszenia",hidden:!e,onClick:()=>n(!1),children:[(0,t.jsxs)(r.default,{href:"/mk-solid",children:[(0,t.jsx)(i.default,{line:"solid"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("b",{children:"MK SOLID"}),(0,t.jsx)("small",{children:"Widoczny spadek dachu"})]})]}),(0,t.jsxs)(r.default,{href:"/mk-cube",children:[(0,t.jsx)(i.default,{line:"cube"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("b",{children:"MK CUBE"}),(0,t.jsx)("small",{children:"Pozioma linia bryły"})]})]}),(0,t.jsxs)(r.default,{href:"/carport-wiata-samochodowa-c-19.html",children:[(0,t.jsx)(i.default,{line:"carport"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("b",{children:"MK CARPORT"}),(0,t.jsx)("small",{children:"Wiata na samochód"})]})]}),(0,t.jsx)(r.default,{className:o.default.dropAll,href:"/zadaszenia-tarasowe-c-2.html",children:"Gotowe zestawy: wymiary i ceny"})]})]})}])},269068,e=>{"use strict";var t=e.i(843476),l=e.i(271645),a=e.i(768877),r=e.i(522016),i=e.i(362830),o=e.i(406123);e.s(["default",0,function({source:e="footer",submitLabel:n="Odbierz rabat",showLabel:s=!1,variant:d="default"}){let c=(0,l.useId)(),u=`${c}-error`,[p,f]=(0,l.useState)(!1),[m,h]=(0,l.useState)(null),[x,_]=(0,l.useState)(null),y=async t=>{t.preventDefault();let l=t.currentTarget,a=new FormData(l),r=String(a.get("email")??"").trim(),i=String(a.get("website")??"").trim(),n=(0,o.validateEmailField)(r);if(n){_(n),h(null);return}f(!0),h(null),_(null);try{let t=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,source:e,consent_text_version:"v2",website:i})}),a=await t.json().catch(()=>null);if(!t.ok)throw Error(a?.error||"Wystąpił błąd.");h(a?.message||"Sprawdź skrzynkę e-mail i kliknij link potwierdzający zapis."),l.reset()}catch(e){_(e instanceof Error?e.message:"Wystąpił błąd.")}finally{f(!1)}};return(0,t.jsxs)("div",{className:"editorial"===d?i.default.editorial:"w-full max-w-2xl mx-auto",children:[m&&(0,t.jsx)("p",{role:"status",className:"text-emerald-600 txt-small mb-4 text-center font-medium",children:m}),(0,t.jsx)("form",{onSubmit:y,noValidate:!0,children:(0,t.jsxs)("fieldset",{disabled:p,className:"space-y-8",children:[(0,t.jsx)("input",{type:"text",name:"website",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:"!absolute !left-[-9999px] !opacity-0 !h-0 !w-0"}),(0,t.jsxs)("div",{className:"w-full space-y-2",children:[(0,t.jsx)("label",{htmlFor:c,className:s?"block text-sm font-semibold":"sr-only",children:"Adres e-mail"}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 w-full",children:[(0,t.jsx)("input",{id:c,name:"email",type:"text",inputMode:"email",autoComplete:"email",placeholder:"[email protected]","aria-invalid":!!x||void 0,"aria-describedby":x?u:void 0,onChange:()=>{x&&_(null)},className:`w-full sm:flex-1 h-14 bg-white border-2 rounded-full px-6 text-gray-800 text-[15px] font-medium placeholder:text-gray-400 focus:outline-none focus:ring-4 transition-all ${x?"border-rose-300 focus:border-rose-400 focus:ring-rose-50":"border-slate-200 focus:border-slate-300 focus:ring-tm-orange/15"}`}),(0,t.jsx)("button",{type:"submit",className:"w-full sm:w-auto h-14 bg-tm-navy text-white rounded-full px-10 text-[16px] font-bold hover:bg-tm-navy-light transition-colors disabled:opacity-50 whitespace-nowrap",children:p?"…":"editorial"===d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"sr-only",children:n}),(0,t.jsx)(a.ArrowRight,{size:22,"aria-hidden":"true"})]}):n})]}),x&&(0,t.jsx)("p",{id:u,role:"alert",className:"text-rose-600 text-sm font-medium text-center sm:text-left px-2",children:x})]}),(0,t.jsx)("div",{className:"text-center px-4 sm:px-8",children:(0,t.jsxs)("p",{className:"text-gray-500 text-[12px] font-bold leading-relaxed",children:["Klikając „zapisz” wyrażam chęć zapisu do newslettera, w celu otrzymywania informacji marketingowych. Wiem, że zgodę w każdej chwili mogę odwołać.","editorial"===d&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)(r.default,{href:"/polityka-prywatnosci",children:"Zasady prywatności"}),"."]})]})})]})})]})}])},362830,e=>{e.v({editorial:"newsletter-module__CAEr1q__editorial"})},607798,e=>{"use strict";var t=e.i(843476),l=e.i(696498),a=e.i(272064),r=e.i(614271),i=e.i(735555),o=e.i(271645);function n({price:e}){return(0,t.jsxs)("div",{className:"flex gap-1.5","aria-hidden":!0,
1children:[(0,t.jsx)("div",{className:(0,r.clx)("h-1.5 rounded-full transition-all duration-500 ease-in-out",e.target_reached?"bg-gradient-to-r from-emerald-400 to-emerald-500":"bg-gradient-to-r from-slate-300 to-tm-navy"),style:{width:`${e.remaining_percentage}%`}}),(0,t.jsx)("div",{className:"h-1.5 flex-grow rounded-full bg-slate-100"})]})}function s({cart:e,price:i,size:o="default"}){let n="compact"===o?"text-xs":"text-sm";return i.target_reached?(0,t.jsxs)("div",{className:(0,r.clx)("flex items-center gap-1.5 font-medium text-emerald-700",n),children:[(0,t.jsx)(a.CheckCircleSolid,{className:"text-emerald-500 shrink-0"}),"Darmowa wysyłka odblokowana!"]}):(0,t.jsxs)("div",{className:(0,r.clx)("flex flex-col gap-0.5 small:flex-row small:flex-wrap small:items-baseline small:justify-between small:gap-x-3",n),children:[(0,t.jsx)("span",{className:"font-display font-bold text-gray-800",children:"Odblokuj darmową wysyłkę"}),(0,t.jsxs)("span",{className:"text-gray-600",children:["Jeszcze tylko"," ",(0,t.jsx)("span",{className:"font-bold text-tm-orange",children:(0,l.convertToLocale)({amount:i.target_remaining,currency_code:e.currency_code})})]})]})}function d({cart:e,price:l}){return(0,t.jsx)("div",{className:"rounded-xl border-2 border-slate-200 bg-slate-100/80 p-3",children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(s,{cart:e,price:l,size:"compact"}),(0,t.jsx)(n,{price:l})]})})}function c({cart:e,price:l}){let[d,u]=(0,o.useState)(!1);return(0,t.jsxs)("div",{className:(0,r.clx)("fixed bottom-4 right-4 small:bottom-5 small:right-5 z-10 flex max-w-[calc(100vw-2rem)] flex-col items-end gap-2 transition-all duration-500 ease-in-out",{"pointer-events-none opacity-0 invisible delay-1000":l.target_reached,"opacity-0 invisible":d,"opacity-100 visible":!l.target_reached&&!d}),children:[(0,t.jsx)("button",{type:"button",className:"flex h-9 w-9 items-center justify-center rounded-full border-2 border-slate-200 bg-white text-tm-orange shadow-[0_4px_12px_rgba(36,47,62,0.25)] transition-colors hover:border-slate-300 hover:bg-slate-50",onClick:()=>u(!0),"aria-label":"Zamknij",children:(0,t.jsx)(a.XMark,{})}),(0,t.jsxs)("div",{className:"w-[min(400px,calc(100vw-2rem))] rounded-2xl border-2 border-slate-200 bg-white/95 p-5 shadow-[0_10px_30px_rgba(15,23,42,0.35)] backdrop-blur-md small:p-6",children:[(0,t.jsxs)("div",{className:"space-y-3 pb-4",children:[(0,t.jsx)(s,{cart:e,price:l}),(0,t.jsx)(n,{price:l})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 small:flex-row small:gap-3",children:[(0,t.jsx)(i.default,{className:"inline-flex min-h-11 flex-1 items-center justify-center rounded-full border-2 border-slate-300 bg-white px-4 text-sm font-bold text-tm-orange transition-colors hover:bg-slate-50",href:"/koszyk",children:"Zobacz koszyk"}),(0,t.jsx)(i.default,{className:"inline-flex min-h-11 flex-1 items-center justify-center rounded-full bg-tm-navy px-4 text-sm font-bold text-white shadow-[0_6px_20px_rgba(36,47,62,0.35)] transition-all hover:bg-slate-500",href:"/sklep",children:"Zobacz produkty"})]})]})]})}e.s(["default",0,function({variant:e="inline",cart:l,shippingOptions:a}){if(!l||!a?.length)return null;let r=function(e,t){let l=(e.item_subtotal??0)+(e.item_tax_total??0);if(l<=0)return null;let a=null;for(let e of t){let t=e.data?.free_shipping_threshold_pln;if(null==t||""===t)continue;let l=Number(t);if(!Number.isFinite(l)||l<=0)continue;let r=Math.round(100*l);(null==a||r<a)&&(a=r)}if(null==a)return null;let r=l>=a,i=r?0:a-l,o=r?100:Math.min(100,l/a*100);return{amount:0,currency_code:e.currency_code,target_reached:r,target_remaining:i,remaining_percentage:o}}(l,a);return r?"popup"===e?(0,t.jsx)(c,{cart:l,price:r}):(0,t.jsx)(d,{cart:l,price: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.