PageSourceSearch

https://spoki.com/_next/static/chunks/80122-3ccd4c9d2b7fdcf2.js?dpl=dpl_DayizpE6iqwTHaVJuS1NLSsS5pJ1

js spoki.com collected 2026-10-03 21:25:28 UTC 28,681 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80122],{31166:(e,s,a)=>{a.d(s,{A:()=>c,r:()=>o});var r=a(95155),t=a(12115),n=a(80547);let i={primary:{light:"bg-green text-black hover:bg-green/90 focus:ring-green/50 shadow-sm hover:shadow-md",dark:"bg-green text-black hover:bg-green/90 focus:ring-green/40 shadow-sm hover:shadow-md"},secondary:{light:"bg-[#191919] text-white hover:bg-[#191919]/90 focus:ring-[#191919]/40 shadow-sm hover:shadow-md",dark:"bg-white text-[#191919] hover:bg-white/90 focus:ring-white/40 shadow-sm hover:shadow-md"},outline:{light:"border-2 border-[#191919] bg-transparent text-[#191919] hover:bg-[#191919] hover:text-white focus:ring-[#191919]/30",dark:"border-2 border-white bg-transparent text-white hover:bg-white hover:text-[#191919] focus:ring-white/30"}},l={sm:"min-h-9 px-4 py-2 text-sm",md:"min-h-11 px-8 py-2.5 text-base",lg:"min-h-14 px-8 py-3 text-lg"};function o(){let{variant:e="primary",tone:s="light",size:a="md",className:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,n.cn)("inline-flex items-center justify-center rounded-full font-semibold text-center transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed leading-tight",i[e][s],l[a],r)}let d=(0,t.forwardRef)((e,s)=>{let{className:a,variant:t="primary",tone:n="light",size:i="md",children:l,...d}=e;return(0,r.jsx)("button",{className:o({variant:t,tone:n,size:i,className:a}),ref:s,...d,children:l})});d.displayName="Button";let c=d},65448:(e,s,a)=>{a.d(s,{f9:()=>i,YU:()=>l});var r=a(95155),t=a(12115);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,[s,a]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if("complete"===document.readyState){let s=setTimeout(()=>{a(!0)},e);return()=>clearTimeout(s)}let s=()=>{let s=setTimeout(()=>{a(!0)},e);return()=>clearTimeout(s)};return window.addEventListener("load",s),()=>window.removeEventListener("load",s)},[e]),s}let i=(0,t.memo)(function(e){let{src:s,className:a="",isVisible:i=!1,autoPlay:l=!0,loop:o=!0,muted:d=!0,playsInline:c=!0,poster:m}=e,g=n(200),[u,h]=(0,t.useState)(!1),[x,p]=(0,t.useState)(!1),f=(0,t.useRef)(null);return((0,t.useEffect)(()=>{if(g&&i&&!u)if("requestIdleCallback"in window){let e=window.requestIdleCallback(()=>h(!0),{timeout:500});return()=>window.cancelIdleCallback(e)}else{let e=setTimeout(()=>h(!0),100);return()=>clearTimeout(e)}},[g,i,u]),(0,t.useEffect)(()=>{u&&i&&f.current&&x&&f.current.play().catch(()=>{})},[i,u,x]),(0,t.useEffect)(()=>{!i&&f.current&&f.current.pause()},[i]),u)?(0,r.jsx)("video",{ref:f,src:s,className:a,autoPlay:l,loop:o,muted:d,playsInline:c,preload:"metadata",poster:m,onLoadedData:()=>{p(!0)}}):(0,r.jsx)("div",{className:`${a} bg-gradient-to-br from-gray-100 to-gray-200 animate-pulse`,"aria-hidden":"true"})}),l=(0,t.memo)(function(e){let{src:s,className:a="",autoPlay:i=!0,loop:l=!0,muted:o=!0,playsInline:d=!0,poster:c,rootMargin:m="100px",threshold:g=.1}=e,u=n(300),[h,x]=(0,t.useState)(!1),[p,f]=(0,t.useState)(!1),[b,y]=(0,t.useState)(!1),v=(0,t.useRef)(null),w=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!u||!v.current)return;let e=new IntersectionObserver(e=>{let s=e[0];x(s.isIntersecting),s.isIntersecting&&!p&&("requestIdleCallback"in window?window.requestIdleCallback(()=>f(!0),{timeout:1e3}):f(!0))},{rootMargin:m,threshold:g});return e.observe(v.current),()=>e.disconnect()},[u,m,g,p]),(0,t.useEffect)(()=>{w.current&&b&&(h&&i?w.current.play().catch(()=>{}):w.current.pause())},[h,b,i]),(0,r.jsx)("div",{ref:v,className:a,children:p?(0,r.jsx)("video",{ref:w,src:s,className:"w-full h-full object-cover",autoPlay:i&&h,loop:l,muted:o,playsInline:d,preload:"metadata",poster:c,onLoadedData:()=>{y(!0)}}):(0,r.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-gray-100 to-gray-200 animate-pulse rounded-inherit","aria-hidden":"true"})})})},80122:(e,s,a)=>{a.r(s),a.d(s,{default:()=>M});var r=a(95155),t=a(12115),n=a(20063),i=a(15239),l=a(36831),o=a(70663),d=a(96059),c=a(36337),m=a(78207),g=a(43569),u=a(70773),h=a(31166),x=a(59909),p=a(65448),f=a(49535),b=a(49857),y=a(99084),v=a(6452),w=a(60727),j=a(66756);let N="spoki_lang_prompt_v1",k="spoki_explicit_locale",S={en:f,it:b,es:y,fr:v,de:w,pt:j};function P(e){let{currentLocale:s,translationSlugs:a}=e,i=(0,n.usePathname)(),[l,o]=(0,t.useState)(!1),[d,c]=(0,t.useState)("en"),[m,g]=(0,t.useState)(null),[h,p]=(0,t.useState)(!1),f=(0,t.useMemo)(()=>
1{if(!i)return"/";let e=`/${s}`;return i.startsWith(e)?i.slice(e.length)||"/":i},[i,s]),b=`/${u.yn.blog[s]}`,y=`/${u.yn.caseStudies[s]}`,v=`/${u.yn.academy[s]}`,w=f.startsWith(`${b}/`)||f.startsWith(`${y}/`)||f.startsWith(`${v}/`),j=(0,t.useMemo)(()=>(0,u.kE)(i||"/",s,a,!1),[i,s,a]),P=(0,t.useMemo)(()=>j.find(e=>e.locale===d),[j,d]);(0,t.useEffect)(()=>{p(!0)},[]),(0,t.useEffect)(()=>{if(!h)return;let e=function(){let e=String("undefined"!=typeof navigator&&(navigator.language||navigator.languages&&navigator.languages[0])||"en").slice(0,2);return"en"===e||"it"===e||"es"===e||"fr"===e||"de"===e||"pt"===e?e:"en"}();c(e);try{let e=localStorage.getItem(k);if(e&&""!==e.trim()){let a=JSON.parse(e);if(Date.now()-a.ts<36e5&&a.locale===s)return}}catch{try{localStorage.removeItem(k)}catch{}}try{let s=localStorage.getItem(N);if(s&&""!==s.trim()){let a=JSON.parse(s),r=Date.now()-a.ts>=2592e6,t=a.locale===e;if(!r&&t)return}}catch{try{localStorage.removeItem(N)}catch{}}e!==s&&(o(!0),g(function(e){let s=S[e];return{title:s.languagePrompt?.title??"Prefer a different language?",recommendation:s.languagePrompt?.recommendation??"We recommend:",switch:s.languagePrompt?.switch??"Switch",notNow:s.languagePrompt?.notNow??"Not now",languageNames:{en:s.languageNames?.english??"English",it:s.languageNames?.italian??"Italiano",es:s.languageNames?.spanish??"Espa\xf1ol",fr:s.languageNames?.french??"Fran\xe7ais",de:s.languageNames?.german??"Deutsch",pt:s.languageNames?.portuguese??"Portugu\xeas"}}}(e)))},[s,h]);let W=e=>{try{localStorage.setItem(N,JSON.stringify({ts:Date.now(),locale:e}))}catch{}},H=h&&!w&&l&&P&&m;return(0,r.jsx)("div",{className:`w-full bg-gray-50 border-b border-gray-200 overflow-hidden transition-all duration-300 ease-in-out ${H?"max-h-20 opacity-100":"max-h-0 opacity-0 border-b-0"}`,"aria-hidden":!H,children:(0,r.jsxs)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-2 text-sm flex items-center justify-between gap-3",role:"region","aria-label":"Language recommendation",children:[(0,r.jsx)("div",{className:"text-gray-900",children:m?.title}),(0,r.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[P&&m?.switch&&(0,r.jsx)(x.default,{href:P.href,onClick:()=>W(d),className:"inline-flex items-center rounded-md bg-gray-800 px-3 py-1.5 text-white hover:opacity-90 focus:outline-none focus-visible:ring-2 focus-visible:ring-gray-800/70",children:m.switch}),m?.notNow&&(0,r.jsx)("button",{onClick:()=>{W(d),o(!1)},className:"inline-flex items-center rounded-md border px-3 py-1.5 text-gray-700 hover:bg-gray-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-gray-300",children:m.notNow})]})]})})}var W=a(57606),H=a(80547),C=a(58147);let $={1:"w-[420px]",2:"w-[600px]",3:"w-[760px]",4:"w-[900px]",5:"w-[1080px]",6:"w-[1180px]",7:"w-[1280px]"},E={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7"};function I(e){try{localStorage.setItem("spoki_explicit_locale",JSON.stringify({locale:e,ts:Date.now()}))}catch{}}function _(e){let{lang:s,translations:a,navigation:f,labels:b,translationSlugs:y}=e,[v,w]=(0,t.useState)(!1),[j,N]=(0,t.useState)(!1),[k,S]=(0,t.useState)(!1),[_,z]=(0,t.useState)(null),[L,M]=(0,t.useState)(null),A=(0,n.usePathname)(),T=(0,t.useCallback)(e=>{L&&(clearTimeout(L),M(null)),z(e)},[L]),D=(0,t.useCallback)(()=>{M(setTimeout(()=>{z(null)},150))},[]),F=(0,t.useMemo)(()=>(0,u.kE)(A||"/",s,y,!1),[A,s,y]),R=(0,t.useMemo)(()=>A.includes("/landing-registration")||A.includes("/registrazione")||A.includes("/registro")||A.includes("/book-ai-call")||A.includes("/sms-registration"),[A]);(0,t.useEffect)(()=>{S(!0)},[]),(0,t.useEffect)(()=>{let e=()=>{N(window.scrollY>0)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let q=f??(0,W.MT)(a,s),O=b??{signIn:a?.common?.signIn||"Sign In",tryFree:a?.common?.tryFree||"Try for Free",bookDemo:a?.common?.bookDemo||"Book a Demo",language:a?.common?.language||"Language"};return(0,r.jsxs)("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 bg-white border-b border-gray-200/40 shadow-[0_1px_3px_rgba(0,0,0,0.04)] min-h-[56px] sm:min-h-[64px] safe-top ${k&&j?"lg:bg-white lg:border-b lg:border-gray-200/20":""}`,suppressHydrationWarning:!0,children:[(0,r.jsx)(P,{currentLocale:s,translationSlugs:y}),(0,r.jsxs)("nav",{"aria-label":"Global",className:"mx-auto flex h-[56px] sm:h-[64px] max-w-7xl items-center justify-between gap-x-2 lg:gap-x-4 px-4 lg:px-8",suppressHydrationWarning:!0,children:[(0,r.jsx)("div",{className:"flex shrink-0",suppressHydrationWarning:!0,children:R?(0,r.jsxs)("span",{className:"-m-1.5 p-1.5 shrink-0 cursor-default",children:[(0,r.jsx)("span",{className:"sr-only",children:"Spoki"}),(0,r.jsx)(i.default,{className:"h-9 w-auto shrink-0",src:"/images/sh
1ared/logos/nav-logo.svg",alt:"Spoki",width:120,height:32,priority:!0,suppressHydrationWarning:!0})]}):(0,r.jsxs)(x.default,{href:(0,u.xS)("home",s),className:"-m-1.5 p-1.5 shrink-0","aria-label":"Spoki - Home",suppressHydrationWarning:!0,children:[(0,r.jsx)("span",{className:"sr-only",children:"Spoki"}),(0,r.jsx)(i.default,{className:"h-9 w-auto shrink-0",src:"/images/shared/logos/nav-logo.svg",alt:"Spoki",width:120,height:32,priority:!0,suppressHydrationWarning:!0})]})}),!R&&(0,r.jsx)("div",{className:"hidden lg:flex lg:items-center lg:justify-center lg:gap-x-4 xl:gap-x-6 shrink-0",suppressHydrationWarning:!0,children:q.map(e=>e.submenu&&e.submenu.length>0?(0,r.jsxs)("div",{className:"relative shrink-0",onMouseEnter:()=>T(e.name),onMouseLeave:D,suppressHydrationWarning:!0,children:[(0,r.jsxs)(x.default,{href:e.href,className:(0,H.cn)("text-xs font-semibold flex items-center gap-x-1 py-2 whitespace-nowrap shrink-0 transition-colors duration-200",_===e.name?"text-green":"text-gray-900 hover:text-green"),suppressHydrationWarning:!0,children:[e.name,(0,r.jsx)(d.A,{className:(0,H.cn)("size-3 transition-transform duration-200",_===e.name&&"rotate-180")})]}),_===e.name&&(0,r.jsx)("div",{className:"fixed left-1/2 -translate-x-1/2 top-[56px] sm:top-[64px] mt-0 pt-2 z-50 opacity-100 visible translate-y-0",suppressHydrationWarning:!0,children:(0,r.jsx)("div",{className:(0,H.cn)("rounded-xl bg-white shadow-2xl ring-1 ring-black/5 overflow-hidden",e.categories?$[Math.min(e.categories.length,7)]:e.sidebarPromo||e.sidebarPromos?"w-[600px]":"w-64"),suppressHydrationWarning:!0,children:(0,r.jsxs)("div",{className:(0,H.cn)("flex",(e.sidebarPromo||e.sidebarPromos||e.categories)&&"divide-x divide-gray-100"),children:[e.categories?(0,r.jsx)("div",{className:"flex-1 py-4 px-2",children:(0,r.jsx)("div",{className:(0,H.cn)("grid gap-3",E[Math.min(e.categories.length,7)]),suppressHydrationWarning:!0,children:e.categories.map(e=>(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("p",{className:"px-3 py-1.5 text-xs font-bold text-green uppercase tracking-wider",role:"presentation",children:e.title}),e.items.map(e=>(0,r.jsxs)(x.default,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,className:(0,H.cn)("flex items-center gap-2 px-3 rounded-lg text-sm transition-colors duration-150",e.isViewAll?"py-2 mt-1 text-green font-semibold text-xs hover:bg-green/10 border-t border-gray-100 pt-3":"py-2.5 text-gray-700 hover:bg-green/10 hover:text-green"),suppressHydrationWarning:!0,children:[(0,r.jsx)("span",{className:"font-medium",children:e.name}),e.external&&(0,r.jsx)("svg",{className:"w-2.5 h-2.5 text-gray-400 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]},e.name))]},e.title))})}):(0,r.jsx)("div",{className:(0,H.cn)("py-4",e.sidebarPromo||e.sidebarPromos?"w-1/2 px-4":"px-2 w-full"),children:(0,r.jsx)("div",{className:"space-y-1",suppressHydrationWarning:!0,children:e.submenu.map(e=>e.noLink?(0,r.jsx)("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-gray-400 cursor-not-allowed bg-gray-50",suppressHydrationWarning:!0,children:(0,r.jsx)("span",{className:"font-medium",children:e.name})},e.name):(0,r.jsxs)(x.default,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,className:"flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-gray-700 hover:bg-green/10 hover:text-green transition-colors duration-150",suppressHydrationWarning:!0,children:[(0,r.jsx)("span",{className:"font-medium",children:e.name}),e.external&&(0,r.jsx)("svg",{className:"w-3 h-3 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]},e.name))})}),e.sidebarPromos?(0,r.jsx)("div",{className:(0,H.cn)("p-4 bg-gradient-to-br from-gray-50 to-green/5",e.categories?"w-56":"w-1/2"),children:(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[e.sidebarPromos.primary.video?(0,r.jsx)("div",{className:"relative w-full h-28 mb-2 rounded-lg overflow-hidden bg-light-blue shadow-sm",children:(0,r.jsx)(p.f9,{src:e.sidebarPromos.primary.video,isVisible:_===e.name,className:"w-full h-full object-cover"})}):e.sidebarPromos.primary.image?(0,r.jsx)("div",{className:"relative w-full h-28 mb-2 rounded-lg overflow-hidden bg-white shadow-sm",children:(0,r.jsx)(i.default,{src:e.sidebarPromos.primary.image,alt:e.sidebarPromos.primary.title,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 200px"})}):null,(0,r.jsx)("p",{className:"text-xs font-bold text-gray-900 mb-1",children:e.sidebarPromos.primary.title}),(0,r.jsx)("p",{className:"text-[10px] text-gray-600 mb-2 line-clamp-2",children:e.sidebarPromos.primary.description}),(0,r.jsx)(x.default,{href:e.sidebarPromos.primary.buttonHref,target:e.sidebarPromos.primary.external?"_blank":void 0,rel:e.sidebarPromos.primary.external?"noopener noreferrer":void 0,className:"inline-flex items-center justify-center px-3 py-1.5 text-[10px] font-semibold text-black bg-green rounded-full hover:bg-green/90 transition-colors duration-150 shadow-sm",children:e.sidebarPromos.primary.buttonText})]}),e.sidebarPromos.secondary&&(0,r.jsxs)("div",{className:"flex flex-col pt-3 border-t border-gray-200",children:[e.sidebarPromos.secondary.video?(0,r.jsx)("div",{className:"relative w-full h-28 mb-2 rounded-lg overflow-hidden bg-light-yellow shadow-sm",children:(0,r.jsx)(p.f9,{src:e.sidebarPromos.secondary.video,isVisible:_===e.name,className:"w-full h-full object-cover"})}):e.sidebarPromos.secondary.image?(0,r.jsx)("div",{className:"relative w-full h-28 mb-2 rounded-lg overflow-hidden bg-white shadow-sm",children:(0,r.jsx)(i.default,{src:e.sidebarPromos.secondary.image,alt:e.sidebarPromos.secondary.title,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 200px"})}):null,(0,r.jsx)("p",{className:"text-xs font-bold text-gray-900 mb-1",children:e.sidebarPromos.secondary.title}),(0,r.jsx)("p",{className:"text-[10px] text-gray-600 mb-2 line-clamp-2",children:e.sidebarPromos.secondary.description}),(0,r.jsx)(x.default,{href:e.sidebarPromos.secondary.buttonHref,target:e.sidebarPromos.secondary.external?"_blank":void 0,rel:e.sidebarPromos.secondary.external?"noopener noreferrer":void 0,className:"inline-flex items-center justify-center px-3 py-1.5 text-[10px] font-semibold text-black bg-white border border-black rounded-full hover:bg-gray-50 transition-colors duration-150 shadow-sm",children:e.sidebarPromos.secondary.buttonText})]})]})}):e.sidebarPromo&&(0,r.jsx)("div",{className:(0,H.cn)("p-5 bg-gradient-to-br from-gray-50 to-green/5",e.categories?"w-56":"w-1/2"),children:(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[e.href===(0,u.xS)("channels",s)?(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2 mb-3",children:[{href:`/${s}
1/whatsapp`,chip:"bg-[#16d46d]",icon:"/images/shared/icons/whatsapp-icon-white.svg",iconClass:"brightness-0",name:"WhatsApp"},{href:`/${s}/spoki-voice`,chip:"bg-[#cdb1ec]",icon:"/images/shared/icons/voice-icon.svg",name:"Voice"},{href:`/${s}/email`,chip:"bg-[#14B8A6]",icon:"/images/shared/icons/email-icon.svg",iconClass:"brightness-0 invert",name:"Email"},{href:`/${s}/sms-two-way`,chip:"bg-[#ccf0ff]",icon:"/images/shared/icons/sms-twoway-icon.svg",name:"SMS 2-Way"},{href:`/${s}/sms-one-way`,chip:"bg-[#aed8ff]",icon:"/images/shared/icons/sms-oneway-icon.svg",name:"SMS 1-Way"},{href:`/${s}/rcs`,badge:"/images/shared/icons/rcs-badge-icon.svg",name:"RCS"},{href:`/${s}/instagram`,badge:"/images/shared/icons/instagram-badge-icon.svg",name:"Instagram"},{href:`/${s}/tiktok`,badge:"/images/shared/icons/tiktok-badge-icon.svg",name:"TikTok"}].map(e=>(0,r.jsxs)(x.default,{href:e.href,className:"bg-white border border-black/[0.06] rounded-lg w-full min-h-[56px] px-2 py-2 flex flex-col items-center justify-center gap-1.5 text-center shadow-[0_1px_2px_rgba(0,0,0,0.04)] hover:shadow-md hover:scale-[1.02] transition-all",children:[e.badge?(0,r.jsx)(i.default,{src:e.badge,alt:e.name,"aria-hidden":"true",width:30,height:30,className:"shrink-0 rounded-lg"}):(0,r.jsx)("div",{className:(0,H.cn)("h-[30px] w-[30px] rounded-lg shrink-0 flex items-center justify-center",e.chip),children:(0,r.jsx)(i.default,{src:e.icon,alt:e.name,"aria-hidden":"true",width:16,height:16,className:e.iconClass||""})}),(0,r.jsx)("span",{className:"text-[9px] font-semibold leading-tight line-clamp-2 max-w-full px-0.5 text-[#191919]",children:e.name})]},e.name))}):e.sidebarPromo.video?(0,r.jsx)("div",{className:"relative w-full h-28 mb-3 rounded-lg overflow-hidden bg-light-blue shadow-sm",children:(0,r.jsx)(p.f9,{src:e.sidebarPromo.video,isVisible:_===e.name,className:"w-full h-full object-cover"})}):e.sidebarPromo.image?(0,r.jsx)("div",{className:(0,H.cn)("relative w-full mb-3 rounded-lg overflow-hidden bg-white shadow-sm",e.sidebarPromo.imageAspectClass??"h-28"),children:(0,r.jsx)(i.default,{src:e.sidebarPromo.image,alt:e.sidebarPromo.title,fill:!0,className:"object-cover",sizes:"(max-width: 768px) 100vw, 260px"})}):null,(0,r.jsx)("p",{className:"text-sm font-bold text-gray-900 mb-2",children:e.sidebarPromo.title}),(0,r.jsx)("p",{className:"text-xs text-gray-600 mb-3 flex-grow line-clamp-3",children:e.sidebarPromo.description}),(0,r.jsx)(x.default,{href:e.sidebarPromo.buttonHref,target:e.sidebarPromo.external?"_blank":void 0,rel:e.sidebarPromo.external?"noopener noreferrer":void 0,className:"inline-flex items-center justify-center px-3 h-11 leading-none text-xs font-semibold text-black bg-green rounded-full hover:bg-green/90 transition-colors duration-150 shadow-sm",children:e.sidebarPromo.buttonText})]})})]})})})]},e.name):(0,r.jsx)(x.default,{href:e.href,className:"text-xs font-semibold text-gray-900 hover:text-green transition-colors duration-200 py-2 whitespace-nowrap shrink-0",suppressHydrationWarning:!0,children:e.name},e.name))}),(0,r.jsxs)("div",{className:"flex items-center justify-end shrink-0 lg:ml-2 xl:ml-4",suppressHydrationWarning:!0,children:[!R&&(0,r.jsxs)("div",{className:"flex items-center gap-x-2 lg:gap-x-2.5",suppressHydrationWarning:!0,children:[(0,r.jsx)(x.default,{href:(0,u.xS)("landingRegistration",s),className:(0,C.qy)("navbar","flex-shrink-0"),suppressHydrationWarning:!0,children:(0,r.jsx)(h.A,{variant:"primary",size:"sm",className:"h-9 sm:h-10 px-3.5 sm:px-5 text-xs shadow-none hover:shadow-none",children:O.tryFree})}),(0,r.jsx)(x.default,{href:(0,u.xS)("bookDemo",s),"data-book-demo-source":"navbar",className:(0,C.JM)("navbar",(0,h.r)({variant:"secondary",size:"sm",className:"hidden lg:inline-flex flex-shrink-0 h-9 sm:h-10 px-3.5 sm:px-5 text-xs"})),suppressHydrationWarning:!0,children:O.bookDemo}),(0,r.jsxs)(x.default,{href:"https://app.spoki.com/",className:"hidden lg:inline-flex items-center gap-1.5 flex-shrink-0 text-xs font-semibold text-green hover:text-green/80 transition-colors whitespace-nowrap",suppressHydrationWarning:!0,children:[(0,r.jsx)(c.A,{className:"size-[18px] text-[#191919] shrink-0","aria-hidden":"true"}),O.signIn]})]}),(0,r.jsxs)("div",{className:(0,H.cn)("relative group shrink-0",!R&&"ml-4 lg:ml-5"),suppressHydrationWarning:!0,children:[(0,r.jsxs)("button",{className:"flex items-center gap-x-1.5 text-gray-900","aria-label":"Select language","aria-haspopup":"true",suppressHydrationWarning:!0,children:[(0,r.jsx)(i.default,{src:"/images/sh
1ared/icons/globe-icon.svg",alt:"Language selector",width:18,height:18,"aria-hidden":"true",suppressHydrationWarning:!0}),(0,r.jsx)(d.A,{className:"size-4 text-[#191919] shrink-0","aria-hidden":"true"})]}),(0,r.jsx)("div",{className:"absolute right-0 mt-2 w-32 bg-white/95 backdrop-blur-md rounded-md shadow-lg ring-1 ring-black/10 py-1 z-50 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all",suppressHydrationWarning:!0,children:F.map(e=>{let{locale:s,href:a,isActive:t}=e;return(0,r.jsx)(x.default,{href:a,onClick:()=>I(s),className:`block px-4 py-2 text-xs transition-colors ${t?"font-bold text-green":"text-gray-700 hover:bg-gray-100"}`,suppressHydrationWarning:!0,children:{en:"English",it:"Italiano",es:"Espa\xf1ol",fr:"Fran\xe7ais",de:"Deutsch",pt:"Portugu\xeas"}[s]},s)})})]}),!R&&(0,r.jsxs)("button",{type:"button",onClick:()=>w(!0),className:"lg:hidden ml-3 -m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700",suppressHydrationWarning:!0,children:[(0,r.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,r.jsx)(m.A,{"aria-hidden":"true",className:"size-6"})]})]})]}),!R&&(0,r.jsxs)(l.lG,{open:v,onClose:w,className:"lg:hidden",children:[(0,r.jsx)("div",{className:"fixed inset-0 z-50"}),(0,r.jsxs)(l.Lj,{className:"fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white p-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-x-6",children:[(0,r.jsxs)(x.default,{href:(0,u.xS)("home",s),className:"-m-1.5 p-1.5 shrink-0","aria-label":"Spoki - Home",onClick:()=>w(!1),suppressHydrationWarning:!0,children:[(0,r.jsx)("span",{className:"sr-only",children:"Spoki"}),(0,r.jsx)(i.default,{className:"h-9 w-auto shrink-0",src:"/images/shared/logos/nav-logo.svg",alt:"Spoki",width:120,height:32,suppressHydrationWarning:!0})]}),(0,r.jsx)("div",{className:"ml-auto flex items-center gap-x-4",children:(0,r.jsx)(x.default,{href:(0,u.xS)("landingRegistration",s),className:(0,C.qy)("navbar-mobile"),suppressHydrationWarning:!0,children:(0,r.jsx)(h.A,{size:"md",className:(0,H.cn)("px-6",{"text-xs":"fr"===s,"text-sm":"fr"!==s}),children:O.tryFree})})}),(0,r.jsxs)("button",{type:"button",onClick:()=>w(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700",children:[(0,r.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,r.jsx)(g.A,{"aria-hidden":"true",className:"size-6"})]})]}),(0,r.jsx)("div",{className:"mt-6 flow-root",children:(0,r.jsxs)("div",{className:"-my-6 divide-y divide-gray-500/10",children:[(0,r.jsx)("div",{className:"space-y-2 py-6",children:q.map(e=>e.submenu&&e.submenu.length>0?(0,r.jsxs)(o.EN,{as:"div",className:"-mx-3",children:[(0,r.jsxs)("div",{className:"flex w-full items-center justify-between rounded-lg pr-1.5 text-base/7 font-semibold text-gray-900",children:[(0,r.jsx)(x.default,{href:e.href,onClick:()=>w(!1),className:"flex-1 rounded-lg py-2 pl-3 pr-2 hover:bg-gray-50",suppressHydrationWarning:!0,children:e.name}),(0,r.jsx)(o._q,{className:"flex items-center justify-center rounded-lg p-2 hover:bg-gray-50","aria-label":`Toggle ${e.name} submenu`,children:(0,r.jsx)(d.A,{className:"size-5"})})]}),(0,r.jsx)(o.kS,{className:"mt-2 space-y-2 pl-6",children:e.submenu.map(e=>e.noLink?(0,r.jsx)("div",{className:"block rounded-lg py-2 pr-3 text-base/7 font-semibold text-gray-400 bg-gray-50 cursor-not-allowed",suppressHydrationWarning:!0,children:e.name},e.name):(0,r.jsx)(x.default,{href:e.href,onClick:()=>w(!1),className:"block rounded-lg py-2 pr-3 text-base/7 font-semibold text-gray-700 hover:bg-gray-50",suppressHydrationWarning:!0,children:e.name},e.name))})]},e.name):(0,r.jsx)(x.default,{href:e.href,onClick:()=>w(!1),className:"-mx-3 block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 hover:bg-gray-50",suppressHydrationWarning:!0,children:e.name},e.name))}),(0,r.jsxs)("div",{className:"py-6",children:[(0,r.jsx)("div",{className:"text-sm font-medium text-gray-500 mb-2 px-3",children:O.language}),F.map(e=>{let{locale:s,href:a,isActive:t}=e;return(0,r.jsx)(x.default,{href:a,onClick:()=>{I(s),w(!1)},className:`-mx-3 block rounded-lg px-3 py-2.5 text-base/7 font-semibold transition-colors ${t?"text-green":"text-gray-900 hover:bg-gray-50"}`,suppressHydrationWarning:!0,children:{en:"English",it:"Italiano",es:"Espa\xf1ol",fr:"Fran\xe7ais",de:"Deutsch",pt:"Portugu\xeas"}[s]},s)})]}),(0,r.jsx)("div",{className:"py-6 border-t border-gray-200",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 px-3",children:[(0,r.jsx)(x.default,{href:(0,u.xS)("landingRegistration",s),onClick:()=>w(!1),className:(0,C.qy)("navbar-mobile","w-full"),suppressHydrationWarning:!0,children:(0,r.jsx)(h.A,{size:"lg",className:"w-full",children:O.tryFree})}),(0,r.jsx)(x.default,{href:(0,u.xS)("bookDemo",s),"data-book-demo-source":"navbar_mobile",onClick:()=>w(!1),className:(0,C.JM)("navbar_mobile",(0,h.r)({variant:"secondary",size:"lg",className:"w-full"})),suppressHydrationWarning:!0,children:O.bookDemo}),(0,r.jsxs)(x.default,{href:"https://app.spoki.com/",onClick:()=>w(!1),className:"inline-flex items-center justify-center gap-2 text-lg font-semibold text-green py-2",suppressHydrationWarning:!0,children:[(0,r.jsx)(c.A,{className:"size-5 text-[#191919] shrink-0","aria-hidden":"true"}),O.signIn]})]})})]})})]})]})]})}function z(e){let{lang:s,translations:a,navigation:i,labels:l}=e,o=(0,n.usePathname)(),[d,c]=(0,t.useState)(void 0),m=(0,t.useMemo)(()=>{let e=o.replace(`/${s}`,"")||"/",a="/blog",r=e.startsWith(`${a}/`),t=["/case-studies","/casi-studio","/casos-de-exito","/etudes-de-cas","/fallstudien","/casos-de-sucesso"].find(s=>e.startsWith(`${s}/`)),n=["/spoki-alternatives","/alternative-a-spoki","/alternativas-a-spoki","/alternatives-a-spoki","/spoki-alternativen","/alternativas-ao-spoki"].find(s=>e.startsWith(`${s}/`)),i=["/product-updates","/aggiornamenti-prodotto","/actualizaciones-producto","/mises-a-jour-produit","/produkt-updates","/atualizacoes-produto"].find(s=>e.startsWith(`${s}/`)),l=Object.values(u.yn.academy).map(e=>`/${e}`).find(s=>e.startsWith(`${s}/`));return{pathWithoutLocale:e,blogPrefix:a,isBlogPost:r,matchingCaseStudyPrefix:t,isCaseStudy:!!t,matchingAlternativesPrefix:n,isAlternativesPost:!!n,matchingProductUpdatesPrefix:i,isProductUpdatesPost:!!i,matchingAcademyPrefix:l,isAcademyPost:!!l}},[o,s]);return(0,t.useEffect)(()=>{let{pathWithoutLocale:e,blogPrefix:a,isBlogPost:r,matchingCaseStudyPrefix:t,isCaseStudy:n,matchingAlternativesPrefix:i,isAlternativesPost:l,matchingProductUpdatesPrefix:o,isProductUpdatesPost:d,matchingAcademyPrefix:g,isAcademyPost:u}=m;if(r||n||l||d||u){let d,m;r?(d=a,m="blog"):n?(d=t,m="caseStudies"):l?(d=i,m="alternatives"):u?(d=g,m="academy"):(d=o,m="productUpdates"),L(e.replace(`${d}/`,""),s,m).then(c).catch(e=>{console.error("Error fetching translation slugs:",e),c(void 0)})}else c(void 0)},[m,s]),(0,r.jsx)(_,{lang:s,translations:a,navigation:i,labels:l,translationSlugs:d})}async function L(e,s,a){try{let r=await fetch(`/api/posts/translations?slug=${encodeURIComponent(e)}&lang=${s}&section=${a}`,{next:{revalidate:3600}});if(404===r.status)return{};if(!r.ok)throw Error(`Failed to fetch translations: ${r.status}`);return(await r.json()).translationSlugs||{}}catch(e){return(e instanceof Error?e.message:String(e)).includes("404")||console.error("Error in fetchTranslationSlugs:",e),{}}}function M(e){let{lang:s,translations:a,navigation:n,labels:i}=e;return(0,r.jsx)(t.Suspense,{fallback:(0,r.jsx)("div",{className:"fixed top-0 left-0 right-0 z-50 bg-white shadow-sm min-h-[72px] sm:min-h-[88px]"}),children:(0,r.jsx)(z,{lang:s,translations:a,navigation:n,labels:i})})}}}]);

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.