PageSourceSearch

https://czasnarelakswro.pl/assets/ShopProduct-Clku2Fl1.js

js czasnarelakswro.pl collected 2026-10-07 20:51:34 UTC 7,694 bytes, 16 lines download raw bytes

1import{j as e,m as C}from"./framer-motion-Bc3_OT7B.js";import{e as z,a as k,N as I,L as v}from"./react-3IxESyam.js";import{u as E,k as H,g as L,N as T,b as q,F as R}from"./useSEO-CUR3Zrjh.js";import{M as $,P as D,S as Q,C as V,a as G}from"./ShopProductCard-DqM4PE5c.js";import{B as U}from"./Breadcrumbs-Bj8jG01a.js";import{c as p,u as X,h as Y,i as J,d as K,p as A,f as P,S as W,j as F,k as Z,l as ee}from"./index-D__ptn8_.js";/**
2 * @license lucide-react v0.475.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const te=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],ae=p("CreditCard",te);/**
7 * @license lucide-react v0.475.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const se=[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]],ie=p("Store",se);/**
12 * @license lucide-react v0.475.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const re=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],ce=p("Truck",re);function he(){var f,N;const{slug:u}=z(),{t:y,isRu:l}=X(),a=y.shop,i=l?"ru":"pl",M=l?"/ru":"",w=l?"/ru/":"/",o=`${M}/sklep/`,t=Y(u),c=t?J(t.category):null,{items:S,setQty:B,setIsOpen:b}=K(),[n,x]=k.useState(1);k.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"}),x(1)},[u]);const r=t==null?void 0:t[i],_=t?A(t,i):o,g=t?[{name:y.sitemapPage.home,path:w},{name:a.title,path:o},{name:c[i].name,path:P(c,i)},{name:r.name,path:_}]:[];if(E(t&&{title:`${r.name} — ${a.title} Czas na Relaks`,description:r.description,altPath:A(t,l?"pl":"ru"),lang:i,image:t.image,type:"product",jsonLd:[H({product:t,lang:i,category:c[i].name,shippingPrice:ee}),L(g)]}),!t)return e.jsx(I,{to:o,replace:!0});const m=((f=S.find(s=>s.id===t.id))==null?void 0:f.qty)??0,d=Math.max(0,Z-m),j=W.filter(s=>s.category===t.category&&s.id!==t.id),O=()=>{d!==0&&(B(t.id,m+Math.min(n,d)),b(!0))};return e.jsxs("div",{className:"bg-[#F9F6F2] min-h-screen",children:[e.jsx(T,{}),e.jsx(q,{children:e.jsx("section",{className:"pt-32 md:pt-40 pb-20 md:pb-28",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 sm:px-6 md:px-10",children:[e.jsx(U,{items:g,label:a.breadcrumbs,className:"mb-8 md:mb-12"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-14 items-start",children:[e.jsx(C.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7},className:"aspect-square overflow-hidden bg-[#EDE6DC] md:sticky md:top-36",children:e.jsx("img",{src:t.image,alt:r.name,width:800,height:800,fetchPriority:"high",className:"w-full h-full object-cover"})}),e.jsxs(C.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.1},children:[e.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-[#755F4B] mb-4",children:e.jsx(v,{to:P(c,i),className:"hover:underline",children:c[i].name})}),e.jsx("h1",{className:"font-heading text-3xl md:text-5xl font-light tracking-[0.04em] text-[#1A1C19] leading-tight",children:r.name}),e.jsx("p",{className:"font-heading text-3xl text-[#755F4B] font-medium mt-5",children:F(t.price)}),t.pickupOnly&&e.jsx("p",{className:"font-body text-xs tracking-[0.1em] uppercase text-[#755F4B] mt-3",children:a.pickupOnly}),e.jsx("div",{className:"mt-6 space-y-4",children:(r.long||r.description).split(/\n{2,}/).map((s,h)=>e.jsx("p",{className:"font-body text-base leading-[1.75] text-[#1A1C19]/80",children:s},h))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mt-8",children:[e.jsxs("div",{className:"flex items-center border border-[#1A1C19]/25 h-12",role:"group","aria-label":a.quantity,children:[e.jsx("button",{type:"button",onClick:()=>x(s=>Math.max(1,s-1)),disabled:n<=1,"aria-label":a.decrease,className:"w-11 h-full flex items-center justify-center text-[#1A1C19] hover:bg-[#1A1C19]/5 disabled:opacity-40",children:e.jsx($,{size:16})}),e.jsx("span",{className:"w-10 text-center font-body text-base text-[#1A1C19]","aria-live":"polite",children:n}),e.jsx("button",{type:"button",onClick:()=>x(s=>Math.min(Math.max(1,d),s+1)),disabled:n>=d,"aria-label":a.increase,className:"w-11 h-full flex items-center justify-center text-[#1A1C19] hover:bg-[#1A1C19]/5 disabled:opacity-40",children:e.jsx(D,{size:16})})]}),e.jsxs("button",{type:"button",onClick:O,disabled:d===0,className:"h-12 flex-1 min-w-[12rem] font-body text-sm tracking-[0.15em] uppercase bg-[#1A1C19] text-[#F9F6F2] px-8 hover:bg-[#755F4B] transition-colors disabled:opacity-50",children:[a.addToCart," · ",F(t.price*n)]})]}),m>0&&e.jsxs("p",{className:"font-body text-sm text-[#1A1C19]/70 mt-3",children:[a.added,": ",m,"."," ",e.jsx("button",{type:"button",onClick:()=>b(!0),className:"underline hover:text-[#755F4B]",children:a.openCart})]}),e.jsxs("ul",{className:"mt-8 space-y-3 border-t border-[#1A1C19]/10 pt-6 font-body text-sm text-[#1A1C19]/75",children:[e.jsxs("li",{className:"flex gap-3",children:[t.pickupOnly?e.jsx(ie,{size:18,"aria-hidden":"true",className:"shrink-0 text-[#755F4B] mt-0.5"}):e.jsx(ce,{size:18,"aria-hidden":"true",className:"shrink-0 text-[#755F4B] mt-0.5"}),e.jsx("span",{children:t.pickupOnly?a.pickupInfo:a.deliveryInfo})]}),e.jsxs("li",{className:"flex gap-3",children:[e.jsx(ae,{size:18,"aria-hidden":"true",className:"shrink-0 text-[#755F4B] mt-0.5"}),e.jsx("span",{children:a.paymentInfo})]})]}),((N=r.details)==null?void 0:N.length)>0&&e.jsxs("div",{className:"mt-10",children:[e.jsx("h2",{className:"font-heading text-2xl font-medium tracking-[0.05em] uppercase text-[#1A1C19] mb-4",children:a.details}),e.jsx("dl",{className:"divide-y divide-[#1A1C19]/10 border-y border-[#1A1C19]/10",children:r.details.map(([s,h])=>e.jsxs("div",{className:"grid grid-cols-[minmax(0,2fr)_minmax(0,3fr)] ga
16p-4 py-3",children:[e.jsx("dt",{className:"font-body text-sm text-[#1A1C19]/70",children:s}),e.jsx("dd",{className:"font-body text-sm text-[#1A1C19]",children:h})]},s))})]})]})]}),j.length>0&&e.jsxs("section",{"aria-labelledby":"related-title",className:"mt-20 md:mt-28",children:[e.jsx("h2",{id:"related-title",className:"font-heading text-2xl md:text-3xl font-medium tracking-[0.05em] uppercase text-[#1A1C19] mb-8 pb-4 border-b border-[#1A1C19]/10",children:a.related}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:j.slice(0,3).map(s=>e.jsx(Q,{product:s,lang:i,s:a},s.id))})]}),e.jsx("div",{className:"text-center mt-16",children:e.jsxs(v,{to:o,className:"font-body text-sm tracking-[0.15em] uppercase border border-[#1A1C19] text-[#1A1C19] px-8 py-4 hover:bg-[#1A1C19] hover:text-[#F9F6F2] transition-colors inline-block",children:["← ",a.back]})})]})})}),e.jsx(R,{}),e.jsx(V,{}),e.jsx(G,{})]})}export{he as default};

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.