PageSourceSearch

https://czasnarelakswro.pl/assets/ServiceDetail-CmwOQBVT.js

js czasnarelakswro.pl collected 2026-10-07 20:51:25 UTC 9,463 bytes, 3 lines download raw bytes

1import{j as e,m as f}from"./framer-motion-Bc3_OT7B.js";import{a as b,e as A,N as S,L as j}from"./react-3IxESyam.js";import{u as C,a as B,s as z}from"./index-D__ptn8_.js";import{P,u as $,c as L,g as E,N as D,b as I,C as T,F as W}from"./useSEO-CUR3Zrjh.js";import{g as R,a as _}from"./index-Dz0hNiPW.js";import{B as O}from"./Breadcrumbs-Bj8jG01a.js";import{P as Z}from"./PhotoCredit-CFYHrHTa.js";import{p as v,a as w}from"./content-bodies-C1V_MgGC.js";function q({serviceName:o,category:d}){const{isRu:s}=C(),a=B(d),[u,n]=b.useState(""),[t,m]=b.useState(""),[x,y]=b.useState(""),[l,p]=b.useState("idle"),h=async i=>{i.preventDefault(),p("sending");try{const g=await fetch("/contact.php",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:u,phone:t,service:o,lang:s?"ru":"pl",website:x})});if(!g.ok)throw new Error(`HTTP ${g.status}`);p("sent")}catch{p("error")}};return l==="sent"?e.jsx("div",{className:"text-center py-6",children:e.jsx("p",{className:"font-body text-sm text-[#755F4B] leading-relaxed",children:s?"Спасибо! Мы свяжемся с вами в ближайшее время.":"Dziękujemy! Skontaktujemy się z Tobą wkrótce."})}):e.jsxs("form",{onSubmit:h,className:"space-y-3",children:[e.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-[#755F4B] mb-3",children:s?"Свяжитесь с нами":"Skontaktuj się z nami"}),e.jsx("input",{type:"text",value:u,onChange:i=>n(i.target.value),placeholder:s?"Ваше имя":"Twoje imię",required:!0,className:"w-full font-body text-sm border border-[#1A1C19]/15 bg-white/60 px-4 py-3 focus:outline-none focus:border-[#8E735B] transition-colors"}),e.jsx("input",{type:"text",name:"website",value:x,onChange:i=>y(i.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute -left-[9999px] w-px h-px opacity-0"}),e.jsx("input",{type:"tel",value:t,onChange:i=>m(i.target.value),placeholder:s?"Телефон":"Telefon",required:!0,className:"w-full font-body text-sm border border-[#1A1C19]/15 bg-white/60 px-4 py-3 focus:outline-none focus:border-[#8E735B] transition-colors"}),e.jsx("button",{type:"submit",disabled:l==="sending",className:"block w-full text-center font-body text-sm tracking-[0.15em] uppercase bg-[#1A1C19] text-[#F9F6F2] px-6 py-4 hover:bg-[#755F4B] transition-colors duration-300 disabled:opacity-50",children:l==="sending"?s?"Отправка...":"Wysyłanie...":s?"Отправить":"Wyślij"}),l==="error"&&e.jsxs("p",{className:"font-body text-xs text-red-600 text-center pt-1",children:[s?"Ошибка. Позвоните: ":"Błąd. Zadzwoń: ",e.jsx("a",{href:a.href,className:"underline",children:a.display})]}),e.jsxs("a",{href:a.href,className:"flex items-center justify-center gap-2 pt-2 text-[#1A1C19]/70 hover:text-[#755F4B] transition-colors",children:[e.jsx(P,{size:14,strokeWidth:1.5}),e.jsx("span",{className:"font-body text-sm",children:a.display})]})]})}const H="https://booksy.com/pl-pl/214786_czas-na-relaks_salon-kosmetyczny_13750_wroclaw";function X(){var N;const{slug:o}=A(),{t:d,isRu:s}=C(),a=R(o);s&&(v("services","ru","index"),a&&v("services","ru",o));const u=(s?w("services","ru","index"):null)??{},n=s&&a?w("services","ru",o):null,t=n?{...a,name:n.name||a.name,tagline:n.tagline||a.tagline,metaDescription:n.metaDescription||a.metaDescription,duration:n.duration||a.duration,sections:n.sections||a.sections,details:n.details||a.details,categoryLabel:n.categoryLabel||a.categoryLabel}:a,m=s?"/ru/":"/",x=s?"/ru/uslugi":"/uslugi",y=s?"/ru/blog":"/blog",l=`${x}/${o}/`,p=a?((N=d.services.categories.find(r=>r.id===a.category))==null?void 0:N.label)||t.categoryLabel:"",h=a?[{name:s?"Главная":"Strona główna",path:m},{name:p,path:z(a.category,s?"ru":"pl")},{name:t.name,path:l}]:[],i=d.blog.articles.filter(r=>(r.body||"").includes(`/uslugi/${o}/`));if($(t&&{title:`${t.name} — Czas na Relaks Wrocław`,description:t.metaDescription||t.tagline||`${t.name} — ${t.categoryLabel}, studio Czas na Relaks, Wrocław.`,altPath:s?`/uslugi/${o}/`:`/ru/uslugi/${o}/`,lang:s?"ru":"pl",image:t.image||t.categoryImage,type:"product",jsonLd:[L(t,l),E(h)]}
1),!a)return e.jsx(S,{to:m,replace:!0});const g=_(a);return e.jsxs("div",{className:"bg-[#F9F6F2] min-h-screen",children:[e.jsx(D,{overHero:!0}),e.jsxs(I,{children:[e.jsxs("section",{className:"relative h-[50vh] min-h-[360px] overflow-hidden",children:[e.jsx("img",{src:t.image||t.categoryImage,alt:t.name,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#1A1C19]/80 via-[#1A1C19]/30 to-[#1A1C19]/40"}),e.jsx(Z,{src:t.image||t.categoryImage}),e.jsx("div",{className:"absolute inset-0 flex flex-col justify-end",children:e.jsx("div",{className:"max-w-5xl mx-auto w-full px-6 md:px-10 pb-12 md:pb-16",children:e.jsxs(f.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7},children:[e.jsx(O,{items:h,label:d.services.breadcrumbs,tone:"light",className:"mb-4"}),e.jsx("p",{className:"font-body text-xs tracking-[0.3em] uppercase text-[#A3876F] mb-3",children:t.categoryLabel}),e.jsx("h1",{className:"font-heading text-3xl md:text-5xl lg:text-6xl font-light tracking-[0.06em] uppercase text-[#F9F6F2] leading-tight",children:t.name}),t.tagline&&e.jsx("p",{className:"font-body text-base md:text-lg text-[#F9F6F2]/75 mt-4 max-w-2xl leading-[1.6]",children:t.tagline})]})})})]}),e.jsx("section",{className:"py-16 md:py-24",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-10 grid grid-cols-1 md:grid-cols-[1fr_auto] gap-10 md:gap-16",children:[e.jsx(f.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"space-y-12",children:t.sections.map((r,c)=>e.jsxs("div",{children:[e.jsx("h2",{className:"font-heading text-2xl md:text-3xl font-medium text-[#1A1C19] mb-4",children:r.heading}),r.body.split(`
2
3`).map((F,k)=>e.jsx("p",{className:"font-body text-base md:text-lg leading-[1.8] text-[#1A1C19]/75 mb-4 last:mb-0",children:F},k))]},c))}),e.jsxs(f.aside,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.15},className:"md:w-72 h-fit md:sticky md:top-28 border border-[#1A1C19]/10 p-8 bg-white/40",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[t.oldPrice&&e.jsxs("span",{className:"font-body text-lg text-[#1A1C19]/70 line-through",children:[t.oldPrice," zł"]}),t.price>0?e.jsxs("span",{className:"font-heading text-3xl font-medium text-[#755F4B]",children:[t.price," zł"]}):e.jsx("span",{className:"font-body text-sm text-[#755F4B] tracking-wide",children:s?"Цена по запросу":"Cena na zapytanie"})]}),t.duration&&e.jsxs("div",{className:"flex items-center gap-2.5 text-[#1A1C19]/75 mb-3",children:[e.jsx(T,{size:16,strokeWidth:1.5}),e.jsx("span",{className:"font-body text-sm",children:t.duration})]}),t.details&&e.jsx("p",{className:"font-body text-sm text-[#1A1C19]/70 leading-relaxed mb-6",children:t.details}),a.category==="relax"||a.category==="trips"?e.jsx(q,{serviceName:t.name,category:a.category}):e.jsx("a",{href:H,target:"_blank",rel:"noopener noreferrer",className:"block text-center font-body text-sm tracking-[0.15em] uppercase bg-[#1A1C19] text-[#F9F6F2] px-6 py-4 hover:bg-[#755F4B] transition-colors duration-300",children:s?"Забронировать":"Zarezerwuj wizytę"})]})]})}),g.length>0&&e.jsx("section",{className:"py-16 md:py-24 bg-[#EFE9DF]",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-10",children:[e.jsx("h3",{className:"font-heading text-2xl md:text-3xl font-light tracking-[0.06em] uppercase text-[#1A1C19] mb-10 text-center",children:s?"Похожие услуги":"Zobacz też"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:g.map(r=>{const c=s?u[r.slug]:null;return e.jsxs(j,{to:`${x}/${r.slug}/`,className:"block group border border-[#1A1C19]/10 hover:border-[#8E735B] transition-colors p-6 bg-[#F9F6F2]",children:[e.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-[#755F4B] mb-2",children:c?c.categoryLabel:r.categoryLabel}),e.jsx("h4",{className:"font-heading text-lg text-[#1A1C19] group-hover:text-[#755F4B] transition-colors",children:c?c.name:r.name})]},r.slug)})})]})}),i.length>0&&e.jsx("section",{className:"py-16 md:py-24",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-10",children:[e.jsx("h3",{className:"font-heading text-2xl md:text-3xl font-light tracking-[0.06em] uppercase text-[#1A1C19] mb-10 text-center",children:s?"Читайте в блоге":"Przeczytaj na blogu"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 max-w-3xl mx-auto",children:i.map(r=>e.jsxs(j,{to:`${y}/${r.slug}/`,className:"block group border border-[#1A1C19]/10 hover:border-[#8E735B] transition-colors p-6 bg-white/40",children:[e.jsx("p",{className:"font-body text-xs tracking-[0.2em] uppercase text-[#755F4B] mb-2",children:r.category}),e.jsx("h4",{className:"font-heading text-lg text-[#1A1C19] group-hover:text-[#755F4B] transition-colors",children:r.title})]},r.slug))})]})}),e.jsx("div",{className:"text-center py-12",children:e.jsxs(j,{to:m,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:["← ",s?"На главную":"Strona główna"]})})]}),e.jsx(W,{})]})}
3export{X 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.