PageSourceSearch

https://myponza.it/assets/esperienze._id-Dh_hqiCo.js

js myponza.it collected 2026-10-09 22:04:59 UTC 5,563 bytes, 1 lines download raw bytes

1import{u as x,bL as u,p as h,d as f,r,bM as j,j as e,B as n,L as g,S as v,M as N,$ as b,t as w}from"./index-DCOXvstu.js";import{S as y}from"./SiteLayout-CCSmdLI7.js";import{C as m,a as c}from"./card-CFlrTX5K.js";import{S}from"./separator-DvkQDScz.js";import{R as L}from"./ReviewsSection-BDn6Q5ue.js";import{A as C}from"./arrow-left-2tNp0Lea.js";import{S as k}from"./share-2-SZXKQx9i.js";import{C as z}from"./clock-DFezxQM2.js";import"./index-DzHEi-MD.js";import"./chevron-right-Cw_F8TFx.js";import"./circle-CvC2vI-p.js";import"./EmergencyFab-BAuU9ppB.js";import"./house-bG7T1j0a.js";import"./compass-DJ7Nbm9r.js";import"./map-Ch0R8rEE.js";import"./ticket-DGLmGSKg.js";import"./info-DWiHxSli.js";import"./store-BfWueCk-.js";import"./ship-DpszsJyj.js";import"./phone-BerRfjfu.js";import"./receipt-CVv3-VgD.js";import"./external-link-B-_Tjdpf.js";import"./building-2-C3DsSegu.js";import"./triangle-alert-D-adNwn0.js";import"./checkbox-GGo4jqZN.js";import"./dialog-nnJfZD7M.js";import"./index-DOX5FfDA.js";import"./popover-D2VVSTTv.js";import"./book-open-SJToQhr5.js";import"./rotate-ccw-BDtfIyTh.js";import"./bell-_egSKZUM.js";import"./megaphone-3jNqpe_u.js";import"./search-Sf5wY7ve.js";import"./shield-check-5Au-pudp.js";import"./use-mobile-rxBT35Ik.js";import"./command-C2UEF5G6.js";import"./star-DGK_BCKT.js";import"./calendar-DHCD-D0F.js";import"./globe-D5z6C-NF.js";import"./send-sgAeWSwA.js";import"./mail-D05mC6Lu.js";import"./useLocation-BjGnRpIX.js";import"./input-DH-J7MZU.js";import"./textarea-oYuc2UnB.js";import"./badge-zOf-jLuz.js";import"./trash-2-A-Ljys9B.js";function Ae(){const{t,i18n:l}=x(),{service:s}=u.useLoaderData(),i=s.business,{isAuthenticated:_,user:E}=h();f();const[P,A]=r.useState(""),[D,M]=r.useState(""),[a,R]=r.useState(1),[T,B]=r.useState(""),[I,O]=r.useState(!1);r.useMemo(()=>(s.price_cents??0)*Math.max(1,a),[s.price_cents,a]);const d=async()=>{const o=window.location.href;if(navigator.share)try{await navigator.share({title:s.name,url:o})}catch{}else await navigator.clipboard.writeText(o),w.success("Link copiato")},p=i.images?.[0]??j;return new Date().toISOString().slice(0,10),e.jsx(y,{children:e.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-6 sm:px-6",children:[e.jsx(n,{asChild:!0,variant:"ghost",size:"sm",className:"mb-4",children:e.jsxs(g,{to:"/esperienze",children:[e.jsx(C,{className:"mr-1 h-4 w-4"}),t("experiences.detail.back")]})}),e.jsx("div",{className:"overflow-hidden rounded-3xl border border-border/60",children:e.jsxs("div",{className:"relative aspect-[21/9] w-full bg-muted",children:[e.jsx("img",{src:p,alt:s.name,className:"h-full w-full object-cover"}),e.jsx("div",{className:"absolute inset-x-0 bottom-0 h-32 bg-[image:var(--gradient-overlay)]"}),e.jsxs("div",{className:"absolute bottom-4 left-6 right-6 flex items-end justify-between gap-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-1 rounded-full bg-white/90 px-2 py-1 text-xs text-foreground",children:[e.jsx(v,{className:"h-3 w-3 text-primary"}),t(`experiences.categories.${i.category}`,{defaultValue:i.category})]}),e.jsx("h1",{className:"mt-2 font-display text-3xl font-semibold text-white drop-shadow sm:text-4xl",children:s.name})]}),e.jsxs(n,{variant:"secondary",size:"sm",onClick:d,children:[e.jsx(k,{className:"mr-1 h-4 w-4"})," ",t("experiences.detail.share")]})]})]})}),e.jsxs("div",{className:"mt-8 grid gap-8 lg:grid-cols-[2fr_1fr]",children:[e.jsx("div",{className:"space-y-8",children:e.jsx(m,{className:"border-border/60",children:e.jsxs(c,{className:"p-6",children:[e.jsx("h2",{className:"font-display text-xl font-semibold",children:t("experiences.detail.about")}),s.description?e.jsx("p",{className:"mt-3 whitespace-pre-line text-muted-foreground",children:s.description}):e.jsx("p",{className:"mt-3 text-muted-foreground",children:"—"}),e.jsx(S,{className:"my-6"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm sm:grid-cols-3",children:[s.duration_minutes?e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase text-muted-foreground",children:t("experiences.detail.duration")}),e.jsxs("div",{className:"mt-1 inline-flex items-center gap-1 font-medium",children:[e.jsx(z,{className:"h-4 w-4"})," ",s.duration_minutes," ",t("experiences.hub.minutes")]})]}):null,e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase text-muted-foreground",children:t("experiences.detail.operator")}),e.jsx("div",{className:"mt-1 font-medium",children:i.name})]}),i.address?e.jsxs("div",{children:[e.jsx("div",{className:"text-xs uppercase text-muted-foreground",children:t("experiences.detail.location")}),e.jsxs("div",{className:"mt-1 inline-flex items-center gap-1 font-medium",children:[e.jsx(N,{className:"h-4 w-4"})," ",i.address]})]}):null]})]})})}),e.jsx("div",{children:e.jsx(m,{className:"sticky top-24 border-border/60",children:e.jsxs(c,{className:"p-6",children:[e.jsx("h2",{className:"font-display text-lg font-semibold",children:"Prenotazione in arrivo"}),s.price_cents?e.jsxs("div",{className:"mt-1 text-sm text-muted-foreground",children:[e.jsx("span",{className:"font-display text-2xl font-semibold text-foreground",children:b(s.price_cents,l.language)})," ",t("experiences.detail.perPerson")]}):null,e.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"La prenotazione online di questa esperienza non è ancora attiva. Per informazioni e disponibilità contatta direttamente l'operatore tramite i recapiti pubblicati nella scheda."})]})})})]}),e.jsx(L,{targetType:"business",targetId:s.business.id})]})})}export{Ae as component};

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.