1/*! For license information please see 527.3a833dec.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[527],{70527(e,t,a){a.r(t),a.d(t,{default:()=>M});var s=a(65043),i=a(45685),r=a(79722),l=a(9463),n=a(77784);const o=(0,n.A)("mic-vocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]]);var c=a(70764);const d=(0,n.A)("skip-back",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);var u=a(19340),x=a(64830);const h=(0,n.A)("skip-forward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);var p=a(39292),m=a(7899),b=a(75699),g=a(43677),f=a(88306),v=a(36210),w=a(72313),j=a(43277),y=a(27112),N=a(7743),k=a(56328),C=a(70579);const z="".concat("https://vitadahost.it","/api"),_="https://open.spotify.com/show/0Z0ZbTupFc67dxRVUEH5so";function A(e){if(!e||Number.isNaN(e))return"0:00";const t=Math.floor(e),a=Math.floor(t/60),s=t%60;return"".concat(a,":").concat(s.toString().padStart(2,"0"))}function S(e){if(!e)return"";try{return new Date(e).toLocaleDateString("it-IT",{day:"2-digit",month:"short",year:"numeric"})}catch(t){return""}}function M(){const[e,t]=(0,s.useState)(null),[a,n]=(0,s.useState)([]),[b,g]=(0,s.useState)(0),[f,v]=(0,s.useState)(!1),[w,k]=(0,s.useState)(0),[M,P]=(0,s.useState)(0),[F,I]=(0,s.useState)(.85),[L,R]=(0,s.useState)(!1),[V,X]=(0,s.useState)(""),[D,U]=(0,s.useState)(!1),O=(0,s.useRef)(null);(0,N.A)({title:"Podcast Host & Furious \u2014 Vita da Host",description:"Ascolta Host & Furious, il podcast ufficiale di Vita da Host. Storie di affitti brevi, ospiti assurdi, norme che cambiano, consigli fiscali e molto altro.",keywords:"host & furious, podcast vita da host, podcast affitti brevi, podcast airbnb italia, host podcast, property manager podcast",path:"/servizi/podcast",type:"website",breadcrumbs:[{name:"Home",path:"/"},{name:"Servizi",path:"/servizi"},{name:"Podcast",path:"/servizi/podcast"}]}),(0,s.useEffect)(()=>{r.A.get("".concat(z,"/podcast/feed?limit=100")).then(e=>{var a,s,i;t((null===(a=e.data)||void 0===a?void 0:a.show)||null);const r=((null===(s=e.data)||void 0===s?void 0:s.episodes)||[]).slice(0,100);n(r),null!==(i=r[0])&&void 0!==i&&i.id&&localStorage.setItem("vdh_podcast_last_seen_id",r[0].id)}).catch(e=>console.warn("[Podcast] feed error:",null===e||void 0===e?void 0:e.message))},[]);const Y=a[b];(0,s.useEffect)(()=>{v(!1),k(0),P(0)},[b]),(0,s.useEffect)(()=>{const e=O.current;e&&(e.volume=L?0:F)},[F,L,null===Y||void 0===Y?void 0:Y.audio_url]);const Z=(0,s.useCallback)(async()=>{const e=O.current;if(e&&null!==Y&&void 0!==Y&&Y.audio_url)try{e.paused?(await e.play(),v(!0)):(e.pause(),v(!1))}catch(t){v(!1)}},[null===Y||void 0===Y?void 0:Y.audio_url]),q=()=>{const e=O.current;e&&(k(e.currentTime),e.duration&&!Number.isNaN(e.duration)&&P(e.duration))},B=(0,s.useCallback)(()=>g(e=>Math.max(0,e-1)),[]),W=(0,s.useCallback)(()=>g(e=>Math.min(a.length-1,e+1)),[a.length]);(0,s.useEffect)(()=>{const e=e=>{"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&("Space"===e.code?(e.preventDefault(),Z()):"ArrowRight"===e.code?W():"ArrowLeft"===e.code&&B())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[Z,W,B]);const G=(0,s.useMemo)(()=>{if(!V.trim())return a;const e=V.toLowerCase();return a.filter(t=>(t.title||"").toLowerCase().includes(e)||(t.description||"").toLowerCase().includes(e))},[V,a]),J=M>0?Math.min(1,w/M):0;return(0,C.jsxs)("div",{className:"min-h-screen text-white relative",style:{background:"#000"},"data-testid":"podcast-page",children:[(0,C.jsx)(j.A,{}),(0,C.jsxs)("main",{className:"relative z-10 pb-32",children:[(0,C.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0 h-[720px] pointer-events-none",style:{background:"radial-gradient(60% 70% at 50% 28%, rgba(255,79,207,0.30) 0%, rgba(255,79,207,0.10) 35%, transparent 65%), #000"}}),(0,C.jsx)("section",{className:"vdh-top-offset px-4 md:px-8 relative",children:(0,C.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,C.jsxs)(i.N_,{to:"/servizi",className:"text-xs text-white/55 hover:text-white font-tech uppercase tracking-wider inline-flex items-center gap-1 mb-6","data-testid":"back-to-servizi",children:[(0,C.jsx)(l.A,{size:12})," Torna ai servizi"]}),(0,C.jsxs)("header",{className:"text-center mb-7 md:mb-10","data-testid":"podcast-header",children:[(0,C.jsxs)("div",{className:"flex items-center justify-center gap-3 mb-3",children:[(0,C.jsx)("img",{src:"https://customer-assets.emergentagent.com/job_vita-
2portal/artifacts/wi5bi1at_Logo%20png%20trasp%20vita%20da%20host.png",alt:"Vita da Host",className:"w-12 h-12 md:w-14 md:h-14 rounded-2xl shadow-[0_10px_30px_-6px_rgba(255,79,207,0.55)] border border-white/10",loading:"eager"}),(0,C.jsx)("div",{className:"text-left",children:(0,C.jsxs)("div",{className:"text-[10.5px] font-tech uppercase tracking-[0.30em] text-[var(--vdh-pink)] flex items-center gap-1.5",children:[(0,C.jsx)(o,{size:11})," Podcast \xb7 Vita da Host"]})})]}),(0,C.jsxs)("h1",{className:"font-display text-5xl sm:text-6xl md:text-7xl tracking-tight leading-[0.95] mb-3",children:["Host & ",(0,C.jsx)("span",{className:"neon-pink",children:"Furious"})]}),(0,C.jsx)("p",{className:"text-white/65 text-base md:text-lg max-w-2xl mx-auto leading-relaxed",children:"Storie di host senza filtri. Affitti brevi, ospiti fuori di testa, norme che cambiano e tanta ironia."}),(0,C.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-center gap-2.5 text-[12.5px] text-white/55",children:[(0,C.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,C.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-[var(--vdh-pink)] animate-pulse"}),a.length," episodi disponibili"]}),(0,C.jsx)("span",{className:"text-white/30",children:"\xb7"}),(0,C.jsxs)("a",{href:_,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-white/65 hover:text-[#1db954] transition-colors",children:["Apri su Spotify ",(0,C.jsx)(c.A,{size:11})]})]})]}),(0,C.jsx)(T,{episodes:a,activeIndex:b,onSelect:g,isPlaying:f,onTogglePlay:Z,fallbackImage:null===e||void 0===e?void 0:e.image}),(0,C.jsxs)("div",{className:"text-center mt-6 mb-4 px-2",children:[(0,C.jsx)("div",{className:"text-[10px] font-tech uppercase tracking-[0.28em] text-[var(--vdh-pink)] mb-1",children:"/ Ora in riproduzione"}),(0,C.jsx)("h2",{className:"font-display text-2xl md:text-3xl tracking-tight leading-tight max-w-3xl mx-auto","data-testid":"now-playing-title",children:(null===Y||void 0===Y?void 0:Y.title)||"Carico..."}),(0,C.jsxs)("div",{className:"text-white/45 text-[12.5px] mt-1 font-tech tracking-wide",children:[S(null===Y||void 0===Y?void 0:Y.pub_date)," \xb7 Host & Furious"]})]}),(0,C.jsxs)("div",{className:"max-w-3xl mx-auto px-2",children:[(0,C.jsxs)("div",{className:"flex items-center gap-3",children:[(0,C.jsx)("span",{className:"text-[11px] font-tech text-white/55 tabular-nums w-10 text-right",children:A(w)}),(0,C.jsxs)("div",{className:"group relative flex-1 h-1.5 rounded-full bg-white/12 cursor-pointer overflow-hidden",onClick:e=>{const t=O.current;if(!t||!M)return;const a=e.currentTarget.getBoundingClientRect(),s=Math.max(0,Math.min(1,(e.clientX-a.left)/a.width));t.currentTime=s*M,k(t.currentTime)},"data-testid":"player-progress",children:[(0,C.jsx)("div",{className:"absolute inset-y-0 left-0 bg-white rounded-full",style:{width:"".concat(100*J,"%")}}),(0,C.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 w-3 h-3 rounded-full bg-white shadow opacity-0 group-hover:opacity-100 transition-opacity",style:{left:"calc(".concat(100*J,"% - 6px)")}})]}),(0,C.jsx)("span",{className:"text-[11px] font-tech text-white/55 tabular-nums w-10",children:A(M||(null!==Y&&void 0!==Y&&Y.duration?parseInt(Y.duration,10):0))})]}),(0,C.jsxs)("div",{className:"flex items-center justify-center gap-5 mt-5",children:[(0,C.jsx)("button",{type:"button",onClick:B,"aria-label":"Episodio precedente",className:"p-2 text-white/75 hover:text-white","data-testid":"player-prev",children:(0,C.jsx)(d,{size:22,fill:"currentColor"})}),(0,C.jsx)("button",{type:"button",onClick:Z,"aria-label":f?"Pausa":"Play",className:"w-16 h-16 rounded-full bg-white text-black hover:bg-white/90 active:scale-95 transition-all flex items-center justify-center shadow-[0_10px_30px_-6px_rgba(255,255,255,0.55)]","data-testid":"player-playpause",children:f?(0,C.jsx)(u.A,{size:24,fill:"currentColor"}):(0,C.jsx)(x.A,{size:24,fill:"currentColor",className:"ml-0.5"})}),(0,C.jsx)("button",{type:"button",onClick:W,"aria-label":"Episodio successivo",className:"p-2 text-white/75 hover:text-white","data-testid":"player-next",children:(0,C.jsx)(h,{size:22,fill:"
2currentColor"})})]}),(0,C.jsxs)("div",{className:"flex items-center justify-between gap-3 mt-5 pt-4 border-t border-white/8 flex-wrap",children:[(0,C.jsx)(E,{value:F,muted:L,onChange:e=>{I(e),e>0&&R(!1)},onToggleMute:()=>R(e=>!e)}),(0,C.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,C.jsx)(H,{open:D,onOpenChange:U,episode:Y}),(0,C.jsxs)("a",{href:_,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-full border border-white/12 hover:border-[#1db954]/60 hover:text-[#1db954] text-[11px] font-tech uppercase tracking-widest text-white/65 transition-colors","data-testid":"player-spotify-link",children:["Spotify ",(0,C.jsx)(c.A,{size:10})]})]})]})]}),(0,C.jsxs)("div",{className:"mt-12 md:mt-16",children:[(0,C.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3 mb-4",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"text-[9.5px] font-tech uppercase tracking-[0.3em] text-white/40",children:"Playlist \xb7 ultimi 100 episodi"}),(0,C.jsx)("h3",{className:"font-display text-xl md:text-2xl tracking-tight",children:"Tutti gli episodi"})]}),(0,C.jsxs)("div",{className:"relative w-full sm:w-72",children:[(0,C.jsx)(p.A,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-white/40"}),(0,C.jsx)("input",{type:"search",value:V,onChange:e=>X(e.target.value),placeholder:"Cerca per titolo o tema...",className:"w-full pl-9 pr-3 py-2 rounded-full bg-black/40 border border-white/10 text-[13px] text-white placeholder:text-white/30 focus:outline-none focus:border-[var(--vdh-pink)]/50","data-testid":"playlist-search"})]})]}),(0,C.jsxs)("ul",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-2.5","data-testid":"episodes-list",children:[0===G.length&&(0,C.jsx)("li",{className:"sm:col-span-2 lg:col-span-3 p-6 text-center text-white/40 text-sm italic",children:"Nessun episodio trovato."}),G.map(t=>{const s=a.findIndex(e=>e.id===t.id),i=s===b;return(0,C.jsx)("li",{children:(0,C.jsxs)("button",{type:"button",onClick:()=>g(s),className:"group w-full text-left p-2.5 rounded-2xl transition-all flex gap-3 items-center border ".concat(i?"bg-[var(--vdh-pink)]/12 border-[var(--vdh-pink)]/35":"bg-white/[0.025] border-white/8 hover:bg-white/[0.05] hover:border-white/20"),"data-testid":"episode-".concat(s),children:[(0,C.jsxs)("span",{className:"flex-none relative w-12 h-12 rounded-lg overflow-hidden bg-black/60 border border-white/10",children:[t.image||null!==e&&void 0!==e&&e.image?(0,C.jsx)("img",{src:t.image||(null===e||void 0===e?void 0:e.image),alt:"",className:"w-full h-full object-cover",loading:"lazy"}):(0,C.jsx)(m.A,{size:18,className:"absolute inset-0 m-auto text-white/30"}),(0,C.jsx)("span",{className:"absolute inset-0 flex items-center justify-center bg-black/55 transition-opacity ".concat(i||"opacity-0 group-hover:opacity-100"),children:i&&f?(0,C.jsx)(u.A,{size:14,className:"text-white",fill:"currentColor"}):(0,C.jsx)(x.A,{size:14,className:"text-white ml-0.5",fill:"currentColor"})})]}),(0,C.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,C.jsx)("div",{className:"text-[13px] font-medium leading-snug line-clamp-2 ".concat(i?"text-[var(--vdh-pink)]":"text-white/90"),children:t.title}),(0,C.jsxs)("div",{className:"flex items-center gap-2 text-[10.5px] font-tech text-white/40 mt-0.5 tracking-wide",children:[(0,C.jsx)("span",{children:S(t.pub_date)}),t.duration&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{children:"\xb7"}),(0,C.jsx)("span",{className:"tabular-nums",children:A(parseInt(t.duration,10))})]})]})]})]})},t.id||t.audio_url)})]})]}),(0,C.jsxs)("div",{className:"mt-14 max-w-4xl mx-auto",children:[(0,C.jsxs)("div",{className:"text-center mb-4",children:[(0,C.jsx)("div",{className:"text-[9.5px] font-tech uppercase tracking-[0.3em] text-white/40 mb-1",children:"/ Preferisci Spotify?"}),(0,C.jsx)("h3",{className:"font-display text-2xl md:text-3xl",children:"Ascolta lo show completo su Spotify"})]}),(0,C.jsx)("div",{className:"rounded-3xl overflow-hidden border border-white/10 bg-black",children:(0,C.jsx)("iframe",{title:"Host & Furious su Spotify",src:"https://open.spotify.com/embed/show/0Z0ZbTupFc67dxRVUEH5so?utm_source=generator&theme=0",width:"100%",height:"352",frameBorder:"0",allowFullScreen:"",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy"})})]})]})}),(null===Y||void 0===Y?void 0:Y.audio_url)&&(0,C.jsx)("audio",{ref:O,src:Y.audio_url,preload:"none",onTimeUpdate:q,onLoadedMetadata:q,onEnded:()=>{v(!1),b<a.length-1&&W()},crossOrigin:"anonymous","data-testid":"podcast-audio"})]}),(0,C.jsx)(y.A,{})]})}function T(e){let{episodes:t,activeIndex:a,onSelect:i,isPlaying:r,onTogglePlay:n,fallbackImage:o}=e;const c=(0,s.useRef)(null),d=(0,s.useRef)(null),u=(0,s.useRef)(!1);(0,s.useEffect)(()=>{const e=c.current;if(!e)return;const s=e=>{Math.abs(e.deltaX)<8&&Math.abs(e.deltaY)<8||u.current||(u.current=!0,setTimeout(()=>{u.current=!1},180),(e.deltaX||e.deltaY)>0?i(Math.min(t.length-1,a+1)):i(Math.max(0,a-1)))};return e.addEventListener("wheel",s,{passive:!0}),()=>e.removeEventListener("wheel",s)},[a,i,t.length]);const h=()=>{d.current=null};return 0===t.length?(0,C.jsx)("div",{className:"relative h-[360px] md:h-[400px] flex items-center justify-center",children:(0,C.jsx)("div",{className:"w-56 h-56 md:w-64 md:h-64 roun
2ded-3xl bg-white/[0.04] border border-white/10 animate-pulse"})}):(0,C.jsxs)("div",{ref:c,className:"relative select-none mx-auto vdh-coverflow",style:{height:"clamp(340px, 46vw, 460px)",perspective:"1400px",perspectiveOrigin:"50% 60%"},onPointerDown:e=>{d.current={x:e.clientX,idx:a}},onPointerMove:e=>{if(!d.current)return;const s=e.clientX-d.current.x,r=Math.round(-s/90);if(0!==r){const e=Math.max(0,Math.min(t.length-1,d.current.idx+r));e!==a&&i(e)}},onPointerUp:h,onPointerCancel:h,"data-testid":"podcast-coverflow",children:[(0,C.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0 h-1/3 pointer-events-none",style:{background:"linear-gradient(to top, rgba(0,0,0,0.6), transparent)"}}),(0,C.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:t.map((e,t)=>{const s=t-a,l=Math.abs(s);if(l>5)return null;const c=0===s?0:s/l,d="".concat(110*s+(l>=1?50*c:0),"px"),u=0===s?0:-55*c,h=0===s?1:Math.max(.55,.85-.06*(l-1)),p=0===s?100:100-10*l,b=l<=2?1:Math.max(0,1-.35*(l-2)),g=e.image||o,f=0===s;return(0,C.jsxs)("div",{onClick:()=>{f?n():i(t)},className:"absolute cursor-pointer vdh-coverflow-card",style:{width:"clamp(180px, 32vw, 280px)",height:"clamp(180px, 32vw, 280px)",transform:"translateX(".concat(d,") rotateY(").concat(u,"deg) scale(").concat(h,")"),zIndex:p,opacity:b,transformStyle:"preserve-3d",transition:"transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s",pointerEvents:b>.2?"auto":"none"},"data-testid":"coverflow-card-".concat(t),"aria-label":e.title,children:[(0,C.jsxs)("div",{className:"relative w-full h-full rounded-2xl overflow-hidden border ".concat(f?"border-white/30 shadow-[0_30px_70px_-10px_rgba(255,79,207,0.55)]":"border-white/10 shadow-[0_18px_50px_-10px_rgba(0,0,0,0.7)]"),style:{background:"#0a0a0a"},children:[g?(0,C.jsx)("img",{src:g,alt:e.title,className:"absolute inset-0 w-full h-full object-cover",draggable:!1,loading:f?"eager":"lazy"}):(0,C.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-white/20 bg-gradient-to-br from-[#1a1a1a] to-[#0a0a0a]",children:(0,C.jsx)(m.A,{size:60})}),!f&&(0,C.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 bg-black/35"}),f&&(0,C.jsx)("div",{className:"absolute bottom-3 right-3 flex items-center gap-1.5",children:r?(0,C.jsx)("div",{className:"flex items-end gap-0.5 h-5 px-2 py-1 rounded-full bg-black/70 backdrop-blur-md border border-white/10",children:[0,1,2,3].map(e=>(0,C.jsx)("span",{className:"w-[3px] bg-[var(--vdh-pink)] rounded-full vdh-cf-bar",style:{animationDelay:"".concat(.12*e,"s")}},e))}):(0,C.jsx)("div",{className:"w-9 h-9 rounded-full bg-white text-black flex items-center justify-center shadow-lg",children:(0,C.jsx)(x.A,{size:14,fill:"currentColor",className:"ml-0.5"})})})]}),(0,C.jsx)("div",{"aria-hidden":!0,className:"absolute left-0 right-0 top-full h-full pointer-events-none overflow-hidden vdh-cf-mirror",style:{transform:"scaleY(-1)",opacity:f?.22:.1,maskImage:"linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 60%)",WebkitMaskImage:"linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 60%)"},children:g&&(0,C.jsx)("img",{src:g,alt:"",className:"w-full h-full object-cover rounded-2xl",draggable:!1,loading:"lazy"})})]},e.id||e.audio_url||t)})}),a>0&&(0,C.jsx)("button",{type:"button",onClick:()=>i(a-1),"aria-label":"Episodio precedente",className:"absolute left-2 md:left-6 top-1/2 -translate-y-1/2 z-50 w-9 h-9 rounded-full bg-black/60 border border-white/15 backdrop-blur-sm text-white/85 hover:bg-black/85 transition-colors","data-testid":"coverflow-prev",children:(0,C.jsx)(l.A,{size:18,className:"m-auto"})}),a<t.length-1&&(0,C.jsx)("button",{type:"button",onClick:()=>i(a+1),"aria-label":"Episodio successivo",className:"absolute right-2 md:right-6 top-1/2 -translate-y-1/2 z-50 w-9 h-9 rounded-full bg-black/60 border border-white/15 backdrop-blur-sm text-white/85 hover:bg-black/85 transition-colors","data-testid":"coverflow-next",children:(0,C.jsx)(l.A,{size:18,className:"m-auto rotate-180"})})]})}function E(e){let{value:t,muted:a,onChange:s,onToggleMute:i}=e;const r=a?0:t;return(0,C.jsxs)("div",{className:"flex items-center gap-2","data-testid":"player-volume",children:[(0,C.jsx)("button",{type:"button",onClick:i,"aria-label":a?"Riattiva":"Muto",className:"text-white/55 hover:text-white","data-testid":"player-mute",children:a||0===t?(0,C.jsx)(b.A,{size:16}):(0,C.jsx)(g.A,{size:16})}
2),(0,C.jsx)("input",{type:"range",min:0,max:1,step:.01,value:r,onChange:e=>s(parseFloat(e.target.value)),className:"vdh-volume-slider w-24 sm:w-32",style:{"--vol":"".concat(100*r,"%")},"aria-label":"Volume"})]})}function H(e){let{open:t,onOpenChange:a,episode:i}=e;const[r,l]=(0,s.useState)(!1),n="undefined"!==typeof window?"".concat(window.location.origin,"/servizi/podcast"):"https://vitadahost.it/servizi/podcast",o=i?'Sto ascoltando "'.concat(i.title,'" sul podcast Host & Furious di Vita da Host'):"Host & Furious \u2014 il podcast di Vita da Host",c=e=>encodeURIComponent(e);return(0,C.jsxs)("div",{className:"relative",children:[(0,C.jsxs)("button",{type:"button",onClick:async()=>{await(async()=>{if(navigator.share)try{return await navigator.share({title:"Host & Furious",text:o,url:n}),a(!1),!0}catch(e){}return!1})()||a(!t)},className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-full border border-white/12 hover:border-white/35 text-[11px] font-tech uppercase tracking-widest text-white/65 hover:text-white transition-colors","aria-label":"Condividi","aria-expanded":t,"data-testid":"player-share",children:[(0,C.jsx)(f.A,{size:12})," Condividi"]}),t&&(0,C.jsxs)("div",{className:"absolute bottom-full right-0 mb-2 w-60 rounded-2xl border border-white/10 backdrop-blur-xl p-2 shadow-2xl z-40",style:{background:"rgba(18,18,22,0.96)"},"data-testid":"share-menu",children:[(0,C.jsxs)("button",{type:"button",onClick:async()=>{try{await navigator.clipboard.writeText(n),l(!0),k.oR.success("Link copiato!"),setTimeout(()=>l(!1),1800)}catch(e){k.oR.error("Copia non riuscita")}},className:"flex items-center gap-2 w-full p-2 rounded-lg text-[13px] text-white/85 hover:bg-white/5",children:[r?(0,C.jsx)(v.A,{size:14,className:"text-green-400"}):(0,C.jsx)(w.A,{size:14}),r?"Copiato!":"Copia link"]}),(0,C.jsxs)("a",{href:"https://api.whatsapp.com/send?text=".concat(c(o+" "+n)),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 w-full p-2 rounded-lg text-[13px] text-white/85 hover:bg-white/5",children:[(0,C.jsx)("span",{className:"w-3.5 h-3.5 rounded-full bg-[#25D366]"})," WhatsApp"]}),(0,C.jsxs)("a",{href:"https://t.me/share/url?url=".concat(c(n),"&text=").concat(c(o)),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 w-full p-2 rounded-lg text-[13px] text-white/85 hover:bg-white/5",children:[(0,C.jsx)("span",{className:"w-3.5 h-3.5 rounded-full bg-[#0088cc]"})," Telegram"]}),(0,C.jsxs)("a",{href:"https://twitter.com/intent/tweet?text=".concat(c(o),"&url=").concat(c(n)),target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 w-full p-2 rounded-lg text-[13px] text-white/85 hover:bg-white/5",children:[(0,C.jsx)("span",{className:"w-3.5 h-3.5 rounded-full bg-black border border-white/40"})," X / Twitter"]}),(0,C.jsxs)("a",{href:"mailto:?subject=".concat(c("Host & Furious \u2014 Podcast Vita da Host"),"&body=").concat(c(o+"\n\n"+n)),className:"flex items-center gap-2 w-full p-2 rounded-lg text-[13px] text-white/85 hover:bg-white/5",children:[(0,C.jsx)("span",{className:"w-3.5 h-3.5 rounded-full bg-white/30"})," Email"]})]})]})}},88306(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])}}]); 3//# sourceMappingURL=527.3a833dec.chunk.js.map
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.