1import{b as v,j as e,r as o}from"./vendor-DBv0vXr_.js";import{O as l}from"./booking-Dqn7HmPx.js";const p=(t,d=1)=>{if(!t)return"";let i=0,a=0,c=0;return t.length===4?(i=parseInt(t[1]+t[1],16),a=parseInt(t[2]+t[2],16),c=parseInt(t[3]+t[3],16)):t.length===7&&(i=parseInt(t[1]+t[2],16),a=parseInt(t[3]+t[4],16),c=parseInt(t[5]+t[6],16)),`rgba(${i},${a},${c},${d})`},_=({pricingItems:t,settings:d})=>{const[i,a]=o.useState(!1),[c,u]=o.useState(t||[]),[n,x]=o.useState(d||{});o.useEffect(()=>{const s=r=>{r.detail&&(r.detail.pricing&&u(r.detail.pricing),x(m=>({...m,...r.detail})))};return window.addEventListener("imh-settings-update",s),()=>window.removeEventListener("imh-settings-update",s)},[]),o.useEffect(()=>(i?document.body.classList.add("scroll-lock"):document.body.classList.remove("scroll-lock"),()=>document.body.classList.remove("scroll-lock")),[i]),o.useEffect(()=>{const s=r=>{r.key==="Escape"&&i&&a(!1)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[i]);const g=()=>{window.dispatchEvent(new CustomEvent("imh-open-booking"))};if(!c||c.length===0)return null;const b=()=>{const s=n.pricing_bg_type||"default";if(s==="transparent")return{background:"transparent",border:"none",boxShadow:"none",backdropFilter:"none"};if(s==="solid"&&n.pricing_bg_color){const r=n.pricing_bg_opacity!==void 0?n.pricing_bg_opacity:1;return{background:p(n.pricing_bg_color,r),borderColor:"transparent"}}if(s==="gradient"){const r=n.pricing_gradient_start||"#18181b",m=n.pricing_gradient_end||"#000000",f=n.pricing_gradient_start_opacity!==void 0?n.pricing_gradient_start_opacity:1,j=n.pricing_gradient_end_opacity!==void 0?n.pricing_gradient_end_opacity:1,y=p(r,f),h=p(m,j);return{background:`linear-gradient(to bottom right, ${y}, ${h})`,borderColor:"transparent"}}return{}},w=n.pricing_bg_type&&n.pricing_bg_type!=="default";return e.jsxs(e.Fragment,{children:[e.jsxs("section",{id:"cennik",className:"py-20 px-6 md:px-20 bg-[#111111] relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-full opacity-10 pointer-events-none",style:{backgroundImage:"radial-gradient(circle at 0% 50%, #dc2626 0%, transparent 25%)"}}),e.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-12 relative z-10",children:[e.jsxs("div",{className:"text-center md:text-left max-w-2xl",children:[e.jsx("h2",{className:"text-3xl md:text-5xl font-bold text-white mb-6",children:"Cennik i Konsultacje"}),e.jsx("p",{className:"text-gray-400 text-lg leading-relaxed mb-8",children:"Każdy projekt wyceniamy indywidualnie, biorÄ
c pod uwagÄ rozmiar, umiejscowienie i stopieÅ skomplikowania. Sprawdź orientacyjne stawki lub umów siÄ na darmowÄ
rozmowÄ."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center md:justify-start",children:[e.jsxs("button",{onClick:()=>a(!0),className:"btn-primary-consultation group",children:[e.jsx(l.Tag,{className:"mr-3 text-lg group-hover:rotate-12 transition-transform"}),"Zobacz cennik"]}),e.jsx("button",{onClick:g,className:"btn-secondary-consultation",children:"Umów bezpÅatnÄ
konsultacjÄ"})]})]}),e.jsxs("div",{className:"hidden md:block relative group cursor-pointer",onClick:()=>a(!0),children:[e.jsx("div",{className:"absolute inset-0 bg-red-600 blur-2xl opacity-20 group-hover:opacity-30 transition-opacity duration-500 rounded-full"}),e.jsxs("div",{className:`relative p-8 rounded-2xl w-72 transform rotate-3 group-hover:rotate-0 transition-all duration-300 ${w?"":"bg-zinc-900 border border-zinc-800 shadow-2xl"}`,style:b(),children:[e.jsxs("div",{className:"flex justify-between items-start mb-8",children:[e.jsx(l.Ticket,{className:"text-3xl text-red-500"}),e.jsx("span",{className:"text-xs font-bold text-zinc-400 uppercase tracking-wider",children:"Oferta"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"h-2 w-24 bg-zinc-700 rounded"}),e.jsx("div",{className:"h-2 w-full bg-zinc-800 rounded"}),e.jsx("div",{className:"h-2 w-3/4 bg-zinc-800 rounded"})]}),e.jsxs("div",{className:"mt-8 pt-6 border-t border-zinc-800 flex justify-between items-center",children:[e.jsx("span",{className:"text-sm text-gray-300 font-medium",children:"Sprawdź ceny"}),e.jsx("div",{className:"w-8 h-8 rounded-full bg-zinc-800 flex items-center justify-center text-white group-hover:bg-red-600 transition-colors",children:e.jsx(l.ArrowRight,{className:"text-sm"})})]})]})]})]})]}),e.jsx("div",{className:`pricing-drawer-overlay ${i?"is-open":""}`,"aria-hidden":!i,onClick:()=>a(!1)}),e.jsxs("aside",{className:`pricing-drawer ${i?"is-open":""}`,"aria-hidden":!i,children:[e.jsxs("div",{className:"pricing-drawer-header",children:[e.jsx("h3",{className:"text-xl font-bold text-white",children:"Cennik Orientacyjny"}),e.jsx("button",{onClick:()=>a(!1),className:"drawer-close-btn","aria-label":"Zamknij cennik",children:e.jsx(l.X,{})})]}),e.jsxs("div",{className:"pricing-drawer-content custom-scrollbar",children:[e.jsx("p",{className:"text-sm text-gray-400 mb-8 leading-relaxed",children:"Podane ceny sÄ
orientacyjne. Ostateczna wycena zależy od wielu czynników i jest ustalana indywidualnie z artystÄ
."}),e.jsx("div",{className:"pricing-drawer-list",children:c.map((s,r)=>e.jsxs("div",{className:"pricing-drawer-item",children:[e.jsxs("div",{className:"flex justify-between items-baseline mb-1",children:[e.jsx("h4",{className:"text-base font-bold text-white",children:s.title}),e.jsx("span",{className:"text-red-500 font-bold text-lg whitespace-nowrap ml-4",children:s.price})]}),e.jsx("p",{className:"text-xs text-gray-500 leading-relaxed",children:s.description})]},r))}),e.jsxs("div",{className:"mt-12 pt-8 border-t border-zinc-800",children:[e.jsxs("button",{className:"btn-primary-form w-full",onClick:()=>{a(!1),g()},children:["Zarezerwuj termin",e.jsx(l.CalendarCheck,{className:"ml-2"})]}),e.jsx("p",{className:"text-xs text-zinc-400 text-center mt-4",children:"Wymagany zadatek przy rezerwacji terminu."})]})]})]})]})},z=()=>{const t=document.getElementById("pricing-react-root");
1if(t&&window.imh_public_data?.main_page_settings?.pricing){if(t.dataset.reactMounted)return;t.dataset.reactMounted="true",v.createRoot(t).render(e.jsx(_,{pricingItems:window.imh_public_data.main_page_settings.pricing,settings:window.imh_public_data.main_page_settings}))}};export{_ as default,z as initPricingReact};
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.