1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3398,3356],{7939:function(e,t,r){r.d(t,{U:function(){return n}});let n=(0,r(3011).U)()(e=>({view:"closed",checkoutId:null,confirmationToken:null,success:null,error:null,open:()=>e({view:"review",error:null}),close:()=>e({view:"closed"}),goReview:()=>e({view:"review",error:null}),goInstall:()=>e({view:"install",error:null}),showSuccess:()=>e(e=>e.success?{view:"success"}:{view:"review"}),startProcessing:t=>{let{checkoutId:r,confirmationToken:n}=t;return e({view:"processing",checkoutId:r,confirmationToken:n,error:null})},succeed:t=>e({view:"success",checkoutId:t.checkoutId,success:t,error:null}),fail:t=>e({view:"error",error:t}),reset:()=>e({view:"closed",checkoutId:null,confirmationToken:null,success:null,error:null})}))},93372:function(e,t,r){r.d(t,{default:function(){return i}});var n=r(57437),a=r(38706),o=r(87414);function i(){let e=(0,a.T_)("Home.Main");return(0,n.jsxs)("div",{className:"group/tag relative inline-flex items-center gap-2.5 sm:gap-3 px-3.5 sm:px-4 py-2 overflow-hidden rounded-full bg-white dark:bg-[#161420] border border-zinc-200/60 dark:border-white/5 hover:border-violet-500/50 dark:hover:border-[#8155FF]/50 transition-colors cursor-default",children:[(0,n.jsx)("div",{className:"flex items-center justify-center size-6 rounded-full bg-gradient-to-tr from-purple-500 to-pink-500 text-white shrink-0 relative z-10",children:(0,n.jsx)(o.Z,{size:12,strokeWidth:3})}),(0,n.jsxs)("span",{className:"relative z-10 text-balance text-center text-sm leading-normal",children:[(0,n.jsx)("span",{className:"text-zinc-900 dark:text-white font-medium",children:e("trialHintBold")})," ",(0,n.jsx)("span",{className:"text-zinc-500 dark:text-white/70",children:e("trialHintSuffix")})]}),(0,n.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-full group-hover/tag:translate-x-full transition-transform duration-700 ease-in-out pointer-events-none"})]})}},65745:function(e,t,r){r.d(t,{Z:function(){return d}});var n=r(57437);r(2265);var a=r(27648),o=r(33579),i=r(38706),l=r(96589),s=r(2719),c=r(27456);function d(){let e=(0,s.default)(e=>e.avatarUrl),t=(0,s.default)(e=>e.fullName),r=(0,s.default)(e=>e.user),d=(0,o.bU)(),m=(0,i.T_)("Spotly.Booking.Confirm");return r?(0,n.jsx)(a.default,{href:"/".concat(d,"/restricted/overview"),target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)(l.q,{alt:t||m("profileAlt"),src:e||c.Z.src,className:"relative size-10 rounded-full ring-4 ring-white/70 dark:ring-zinc-800/70 shadow-2xl"})}):null}},18512:function(e,t,r){r.d(t,{Z:function(){return M}});var n=r(57437),a=r(2265),o=r(1274),i=r(38706),l=r(38081),s=r(87233),c=r(69241),d=r(60737),m=r(7939),h=r(29962),u=r(58386),b=r(78974),v=r(96589),x=r(61971),p=r(64096),f=r(18160);function g(e){var t,r,o,g,w,y,k,z,j,N,C,S;let{serviceStaff:Z,option:_,hasActivePackage:M}=e,P=(0,i.T_)("Spotly.Packages"),B=(0,i.T_)("Spotly.Cart"),D=(0,i.T_)("Spotly.Booking.ServiceSelector"),A=(0,i.T_)("Notifications"),L=(0,a.useMemo)(()=>new u.d(A),[A]),E=(0,a.useMemo)(()=>new b.O(A).getBaseUrl(),[A]),U=(null===(t=Z.currency)||void 0===t?void 0:t.symbol)||(null===(r=Z.currency)||void 0===r?void 0:r.code)||"",F=(null===(o=Z.currency)||void 0===o?void 0:o.code)||"",I=(0,h.v)(e=>e.showCompanyId),O=(0,h.v)(e=>e.companyData),T=(null==O?void 0:null===(g=O.whiteLabel)||void 0===g?void 0:g.primaryColor)||f.Up,$=(0,d._t)(e=>e.companyId),R=(0,d._t)(e=>e.items),q=(0,d._t)(e=>e.setCompany),W=(0,d._t)(e=>
1e.addPackage),H=(0,m.U)(e=>e.open),Y=R.some(e=>"package"===e.type&&e.packageOption===_["@id"]),J=function(e){if(!e)return null;let t=Number(e);return!Number.isFinite(t)||t<=0?null:Math.round(t)}(_.discountPercentage),V=(null===(w=_.name)||void 0===w?void 0:w.trim())||P("row.unnamed"),X=(null===(k=Z.service)||void 0===k?void 0:null===(y=k.serviceBasicInfo)||void 0===y?void 0:y.name)||"",G=null===(j=Z.staff)||void 0===j?void 0:null===(z=j.avatarPhoto)||void 0===z?void 0:z.fileName,K=G?"".concat(E,"/media/avatars/").concat(G):void 0,Q=[null===(N=Z.staff)||void 0===N?void 0:N.firstName,null===(C=Z.staff)||void 0===C?void 0:C.lastName].filter(Boolean).join(" ").trim()||D("employeeFallback"),ee=function(e,t,r){let n=Number(e);if(!Number.isFinite(n)||n<=0||!t||t<=0)return null;let a=n/t,o=(a%1==0?String(a):a.toFixed(2)).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"");return r?"".concat(o," ").concat(r).trim():o}(_.price,_.size,U),et=function(e,t){if(!e)return null;let r=Number(e);if(!Number.isFinite(r)||r<=0)return null;let n=String(r).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"");return t?"".concat(n," ").concat(t).trim():n}(_.savingsAmount,U),er=P("row.validityLabel",_.validityDays?{validity:P("row.validityDays",{count:_.validityDays})}:{validity:P("row.validityForever")});return(null==O?void 0:null===(S=O.company)||void 0===S?void 0:S.paymentAcceptanceEnabled)===!1?null:(0,n.jsxs)("div",{className:"relative flex flex-col gap-3 px-4 py-4 sm:flex-row sm:items-start sm:justify-between ".concat(p.Z),children:[(0,n.jsx)(p.C,{}),(0,n.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col gap-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[K?(0,n.jsx)(v.q,{alt:Q,src:K,className:"size-6 shrink-0 rounded-full bg-zinc-50 dark:bg-zinc-800 outline outline-1 outline-white/50 dark:outline-zinc-900"}):(0,n.jsx)(x.Z,{className:"relative size-6 shrink-0 rounded-full shadow-sm"}),(0,n.jsx)("span",{className:"text-sm font-medium text-zinc-600 dark:text-zinc-400 truncate",children:Q})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,n.jsx)("span",{className:"text-base font-semibold text-zinc-950 dark:text-white break-words",children:V}),null!==J&&(0,n.jsx)("span",{className:"inline-flex items-center rounded-md px-1.5 py-0.5 text-base font-medium bg-emerald-500/15 text-emerald-700 dark:bg-emerald-500/10 dark:text-emerald-400",children:P("row.discount",{percent:J})})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-0.5 text-sm text-zinc-500 dark:text-zinc-400",children:[(0,n.jsx)("span",{children:P("row.sessionCount",{count:_.size})}),(0,n.jsx)("span",{children:er})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2 sm:shrink-0 sm:items-end sm:gap-1",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 sm:flex-col sm:items-end sm:gap-1",children:[(0,n.jsx)("span",{className:"text-base font-semibold text-zinc-950 dark:text-white whitespace-nowrap",children:function(e,t){let r=(e||"").trim().replace(/^(\s*\d[\d\s ]*)([\.,])0+(\s*\D.*)?$/,"$1$3");return t?"".concat(r," ").concat(t).trim():r}(_.price,U)}),ee&&(0,n.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-sm font-medium ring-1 ring-zinc-950/10 dark:ring-white/10 bg-zinc-100 dark:bg-zinc-700 text-zinc-900 dark:text-zinc-100 whitespace-nowrap",children:[(0,n.jsx)(l.Z,{className:"size-5","aria-hidden":"true"}),P("priceLabel.perSession",{price:ee})]}),et&&(0,n.jsx)("span",{className:"text-sm font-medium text-emerald-700 dark:text-emerald-400 whitespace-nowrap",children:P("row.savings",{amount:et})})]}),(0,n.jsxs)("button",{type:"button",onClick:Y?H:()=>{var e,t,r,n,a,o,i;if(!Y&&!1!==_.isActive){if("number"==typeof I){let e="/companies/".concat(I);$!==I&&q(I,e)}W({type:"package",packageOption:_["@id"],packageName:_.name,serviceName:X,staffName:[null===(e=Z.staff)||void 0===e?void 0:e.firstName,null===(t=Z.staff)||void 0===t?void 0:t.lastName].filter(Boolean).join(" "),staffAvatarFileName:null===(n=Z.staff)||void 0===n?void 0:null===(r=n.avatarPhoto)||void 0===r?void 0:r.fileName,size:_.size,price:_.price,currencyCode:F,currencySymbol:U,validityDays:_.validityDays,discountPercentage:_.discountPercentage,companyId:null!=I?I:0,companyIri:"/companies/".concat(null!=I?I:0),companyName:null!==(o=null==O?void 0:O.name)&&void 0!==o?o:void 0,companyAvatarFileName:null!==(i=null==O?void 0:O.imageUrl)&&void 0!==i?i:void 0,isPaymentEnabled:!!Z.isPaymentEnabled,requiresPrepayment:!!Z.requiresPrepayment,companyAcceptsOnline:(null==O?void 0:null===(a=O.company)||void 0===a?void 0:a.paymentAcceptanceEnabled)!==!1})||L.showNotification("warning",B("currencyMismatch.title"),B("currencyMismatch.message"))}},disabled:M,style:M?void 0:{backgroundColor:T,color:"var(--wl-accent, #ffffff)"},className:["relative inline-flex w-full items-center justify-center rounded-full px-4 py-2 text-base font-semibold shadow-sm ring-1 ring-inset ring-white/20 transition-all duration-200 whitespace-nowrap sm:mt-1 sm:w-auto",M?"bg-zinc-200 dark:bg-zinc-700 text-zinc-500 dark:text-zinc-400 cursor-not-allowed opacity-70":"text-white backdrop-blur-xl hover:shadow-md hover:-translate-y-[1px] active:translate-y-0 active:scale-[0.98]"].join(" "),children:[!M&&(0,n.jsx)("span",{className:"pointer-events-none absolute inset-0 rounded-full bg-gradient-to-b from-white/15 to-transparent"}),(0,n.jsxs)("span",{className:"relative inline-flex items-center gap-1.5",children:[Y&&!M?(0,n.jsx)(s.Z,{className:"size-5","aria-hidden":"true"}):(0,n.jsx)(c.Z,{className:"size-5"}),(0,n.jsx)("span",{children:P(Y&&!M?"row.goToCart":"row.buy")})]})]})]})]})}var w=r(33579),y=r(40713),k=r(97341),z=r(12258),j=r(19431),N=r(37030),C=r(56290),S=r(8854);let Z={ru:j.ru,kz:N.kk,tr:C.tr,en:S._};function _(e){let{customerPackage:t,packageDisplayName:r,className:a}=e,o=(0,i.T_)("Spotly.Packages"),l=(0,w.bU)(),s=(null==r?void 0:r.trim())||null,c=s?o("active.title",{name:s}):o("active.titleUnnamed"),d=t.expiresAt?o("active.expiresAt",{date:(0,k.WU)((0,z.D)(t.expiresAt),"d MMMM yyyy",{locale:Z[l]||S._})}):o("active.expiresNever");return(0,n.jsxs)("div",{className:["flex items-start gap-2 rounded-lg px-3 py-2","bg-emerald-50 dark:bg-emerald-500/10","text-emerald-800 dark:text-emerald-300","ring-1 ring-emerald-200/60 dark:ring-emerald-500/20",a].filter(
1Boolean).join(" "),children:[(0,n.jsx)(y.Z,{className:"size-5 shrink-0 mt-0.5","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"min-w-0 text-sm",children:[(0,n.jsx)("p",{className:"font-medium leading-tight",children:c}),(0,n.jsxs)("p",{className:"mt-0.5 text-xs leading-tight",children:[o("active.remaining",{remaining:t.remainingSessions,total:t.totalSessions})," ","\xb7 ",d]})]})]})}function M(e){var t;let{serviceStaff:r}=e,i=(0,a.useMemo)(()=>(r.packageOptions||[]).filter(e=>!1!==e.isActive).sort((e,t)=>{var r,n;return(null!==(r=e.sortOrder)&&void 0!==r?r:0)-(null!==(n=t.sortOrder)&&void 0!==n?n:0)}),[r.packageOptions]),l=(0,o.useMyCustomerPackagesStore)(e=>e.getActiveForServiceStaff(r.id));if(0===i.length&&!l)return null;let s=l&&"object"==typeof l.packageOption&&(null===(t=l.packageOption)||void 0===t?void 0:t.name)||null;return(0,n.jsxs)("div",{className:"mt-4 space-y-4",children:[l&&(0,n.jsx)(_,{customerPackage:l,packageDisplayName:s}),i.length>0&&(0,n.jsx)("div",{className:"space-y-6 px-2 py-2",onClick:e=>e.stopPropagation(),children:i.map(e=>(0,n.jsx)(g,{serviceStaff:r,option:e,hasActivePackage:!!l},e["@id"]))})]})}},66027:function(e,t,r){r.d(t,{Z:function(){return S}});var n=r(57437),a=r(2265),o=r(38706),i=r(48614),l=r(77306),s=r(78974),c=r(77165),d=r(20322),m=r(78931),h=r(38081),u=r(59055),b=r(22171),v=r(96589),x=r(61971),p=r(29962),f=r(60737),g=r(41463),w=r(12087);function y(e,t){let r=(e||"").trim().replace(/^(\s*\d[\d\s ]*)([\.,])0+(\s*\D.*)?$/,"$1$3");return t?"".concat(r," ").concat(t).trim():r}function k(e){var t,r;let{serviceStaff:a,className:i}=e,l=(0,o.T_)("Spotly.Packages"),s=(null===(t=a.currency)||void 0===t?void 0:t.symbol)||(null===(r=a.currency)||void 0===r?void 0:r.code)||"",c=Number(a.price)||0,d=!0===a.isPaymentEnabled&&c>0,m=!0===a.requiresPrepayment,u=!0!==a.isPaymentEnabled&&c>0,b="inline-flex items-center gap-1.5 whitespace-nowrap rounded-full px-3 py-1 text-sm font-medium shadow-sm";if(m)return(0,n.jsxs)("span",{className:[b,"bg-amber-50 dark:bg-amber-500/15","text-amber-800 dark:text-amber-300",i].filter(Boolean).join(" "),children:[(0,n.jsx)(h.Z,{className:"size-5","aria-hidden":"true"}),l("priceLabel.prepayment")]});if(u){let e="before"===a.directPaymentTiming,t=y(a.price,s),r=l(e?"priceLabel.payDirectBefore":"priceLabel.payOnSite",{price:t}),o=l(e?"priceLabel.payDirectBeforeShort":"priceLabel.payOnSiteShort",{price:t});return(0,n.jsxs)("span",{title:r,className:[b,"bg-slate-100 dark:bg-slate-700/40","text-slate-700 dark:text-slate-300",i].filter(Boolean).join(" "),children:[(0,n.jsx)(g.Z,{className:"size-5","aria-hidden":"true"}),(0,n.jsx)("span",{className:"hidden sm:inline",children:r}),(0,n.jsx)("span",{className:"sm:hidden",children:o})]})}return d?(0,n.jsxs)("span",{className:[b,"bg-zinc-100 dark:bg-zinc-700","text-zinc-900 dark:text-zinc-100","ring-1 ring-zinc-950/10 dark:ring-white/10",i].filter(Boolean).join(" "),children:[(0,n.jsx)(h.Z,{className:"size-5","aria-hidden":"true"}),l("priceLabel.perSession",{price:y(a.price,s)})]}):(0,n.jsxs)("span",{className:[b,"bg-emerald-50 dark:bg-emerald-500/15","text-emerald-700 dark:text-emerald-300",i].filter(Boolean).join(" "),children:[(0,n.jsx)(w.Z,{className:"size-5","aria-hidden":"true"}),l("priceLabel.free")]})}var z=r(18512),j=r(65745),N=r(18160);let C="inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-sm font-medium shadow-sm ring-1 ring-zinc-950/10 dark:ring-white/10 bg-zinc-100 dark:bg-zinc-700 text-zinc-900 dark:text-zinc-100";function S(e){var t;let{services:r,selectedIds:g,onToggle:w,onShowInfo:y,isDisabledByRule:S,getDisabledHint:Z,onDisabledClick:_,onlySelected:M=!1,onContinue:P,onCheckout:B,hidePackages:D=!1,highlightSelected:A=!1}=e,L=(0,o.T_)("Notifications"),E=(0,o.T_)("Spotly.Booking.ServiceSelector"),{companyData:U}=(0,p.v)(),F=(null==U?void 0:null===(t=U.whiteLabel)||void 0===t?void 0:t.primaryColor)||N.Up,I=(0,a.useMemo)(()=>new s.O(L).getBaseUrl(),[L]),[O,T]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=requestAnimationFrame(()=>T(!0));return()=>cancelAnimationFrame(e)},[]);let $=e=>e?"".concat(I,"/media/avatars/").concat(e):void 0,R=(0,a.useMemo)(()=>{let e=new Map;for(let t of r){let r=e.get(t.id),n=t.serviceStaffData;r?n&&!r.service_staves.some(e=>
1e.id===n.id)&&r.service_staves.push(n):e.set(t.id,{representative:t,service_staves:n?[n]:[]})}return Array.from(e.entries()).map(e=>{let[t,r]=e;return{id:t,...r}})},[r]),q=(0,a.useMemo)(()=>{if(!M)return R;let e=new Set(g);return R.filter(t=>e.has(t.representative.id))},[R,M,g]),W=(0,a.useMemo)(()=>{if(!P||0===g.length)return -1;let e=g[g.length-1];return q.findIndex(t=>t.representative.id===e)},[q,g,P]),H=(0,f._t)(e=>e.items),Y=(0,a.useMemo)(()=>{if(!B||g.length>0)return null;let e=null;for(let t=H.length-1;t>=0;t--){let r=H[t];if("package"===r.type){e=r.packageOption;break}}if(!e)return null;for(let r of q)for(let n of r.service_staves){var t;if(null===(t=n.packageOptions)||void 0===t?void 0:t.some(t=>t["@id"]===e))return r.representative.id}return null},[q,H,g.length,B]);return(0,n.jsx)("ul",{role:"list",className:"px-1 py-1",children:q.map((e,t)=>{var r,o,s,p,f,N,M,L,U;let T=e.representative,R=g.includes(T.id),q=(T.maxAttendees||1)>1,H=!!S&&S(T),J=H&&null!==(f=null==Z?void 0:Z(T))&&void 0!==f?f:null,V=e.service_staves||[],X=V.some(e=>(e.maxAttendees||1)>1),G=V.map(e=>{var t,r,n,a;let o=null===(r=e.staff)||void 0===r?void 0:null===(t=r.avatarPhoto)||void 0===t?void 0:t.fileName,i=(null===(n=e.staff)||void 0===n?void 0:n.firstName)||"",l=(null===(a=e.staff)||void 0===a?void 0:a.lastName)||"";return{id:e.id,url:$(o),fileName:o,alt:[i,l].filter(Boolean).join(" ")||"avatar",initials:((null==i?void 0:i[0])||(null==l?void 0:l[0])||"S").toUpperCase()}}).filter((e,t,r)=>r.findIndex(t=>t.id===e.id)===t),K=null!==(N=null===(o=V.find(e=>{var t,r;return null===(r=e.service)||void 0===r?void 0:null===(t=r.photo)||void 0===t?void 0:t.contentUrl}))||void 0===o?void 0:null===(r=o.service)||void 0===r?void 0:r.photo)&&void 0!==N?N:null,Q=(null==K?void 0:K.contentUrl)?"".concat(I).concat(K.contentUrl):null,ee=e=>e.length<=1||e.every(t=>t===e[0]),et=V.map(e=>"".concat(e.durationHours,":").concat(e.durationMinutes)),er=V.map(e=>e.price),en=V.map(e=>e.maxAttendees),ea=ee(et)&&ee(er)&&ee(en),eo=null,ei=null;if(!ea&&V.length>0){let e=1/0,t=null,r="",n="";for(let a of V){let o=60*(a.durationHours||0)+(a.durationMinutes||0);o>0&&o<e&&(e=o);let i=Number(a.price);Number.isFinite(i)&&i>0&&(null===t||i<t)&&(t=i,r=a.price,n=(null===(M=a.currency)||void 0===M?void 0:M.symbol)||(null===(L=a.currency)||void 0===L?void 0:L.code)||"")}if(e!==1/0){let t=Math.floor(e/60),r=e%60,n=[];t>0&&n.push("".concat(t," ").concat(E("hoursShort"))),r>0&&n.push("".concat(r," ").concat(E("minutesShort"))),eo=n.join(" ")||E("zeroMinutes")}if(null!==t){let e=r.trim().replace(/^(\s*\d[\d\s ]*)([\.,])0+(\s*\D.*)?$/,"$1$3");ei="".concat(e," ").concat(n).trim()}}return(0,n.jsxs)(a.Fragment,{children:[(0,n.jsxs)("li",{"data-loaded":O?"":void 0,style:{transitionDelay:"".concat(30*t,"ms")},className:["py-3.5 px-3 my-1.5 min-h-[90px] rounded-xl backdrop-blur-sm shadow-sm border","transition-all duration-300 ease-out","opacity-0 translate-y-1","data-[loaded]:opacity-100 data-[loaded]:translate-y-0",H?["bg-zinc-200/50 dark:bg-zinc-900/60 border-zinc-950/5 dark:border-white/5 grayscale",_?"cursor-pointer hover:bg-zinc-200/70 dark:hover:bg-zinc-900/80":"cursor-not-allowed"].join(" "):R&&A?"bg-violet-50 dark:bg-violet-500/10 border-violet-500/50 dark:border-violet-400/40 ring-1 ring-violet-500/40 cursor-pointer hover:bg-violet-100/70 dark:hover:bg-violet-500/15 hover:shadow":"bg-white/60 dark:bg-zinc-800/60 border-zinc-950/5 dark:border-white/10 cursor-pointer hover:bg-white/80 dark:hover:bg-zinc-800/80 hover:shadow"].filter(Boolean).join(" "),onClick:()=>H?null==_?void 0:_(T):w(T),children:[Q&&(0,n.jsx)("div",{className:"relative -mx-3 -mt-3.5 mb-2.5 h-24 overflow-hidden rounded-t-xl sm:h-28",style:{WebkitMaskImage:"linear-gradient(to bottom, black 55%, transparent 100%)",maskImage:"linear-gradient(to bottom, black 55%, transparent 100%)",...(null==K?void 0:K.blurDataUrl)?{backgroundImage:"url(".concat(K.blurDataUrl,")"),backgroundSize:"cover",backgroundPosition:"center"}:{}},children:(0,n.jsx)("img",{src:Q,alt:"","aria-hidden":"true",loading:"lazy",className:"absolute inset-0 h-full w-full object-cover",style:{objectPosition:"50% ".concat(null!==(U=null==K?void 0:K.focusY)&&void 0!==U?U:50,"%")}})}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-4 w-full",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[H?(0,n.jsx)("span",{className:"flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center bg-zinc-300 dark:bg-zinc-600 ring-1 ring-zinc-950/10 dark:ring-white/10","aria-label":E("infoAriaLabel"),children:(0,n.jsx)(c.Z,{className:"w-3.5 h-3.5 text-zinc-700 dark:text-zinc-200",strokeWidth:3})}):(0,n.jsx)("span",{style:R?{backgroundColor:F,color:"var(--wl-accent, #ffffff)"}:void 0,className:["flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center transition-all duration-200",R?"shadow-sm ring-1 ring-zinc-950/5 dark:ring-white/10":"border border-zinc-950/15 dark:border-white/20 bg-white/40 dark:bg-zinc-900/30 backdrop-blur-sm"].join(" "),children:R&&(0,n.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("div",{className:"flex items-center gap-2 flex-nowrap min-w-0",children:(0,n.jsx)("span",{className:"block text-base font-medium text-zinc-900 dark:text-zinc-100",children:T.name})}),(0,n.jsx)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:ea?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:C,children:[(0,n.jsx)(d.Z,{className:"size-5"}),T.duration]}),(0,n.jsx)(k,{serviceStaff:T.serviceStaffData}),q&&(0,n.jsxs)("span",{className:C,children:[(0,n.jsx)(m.Z,{className:"size-5"}),E("groupEventBadge",{count:T.maxAttendees})]})]}):(0,n.jsxs)(n.Fragment,{children:[eo&&(0,n.jsxs)("span",{className:C,children:[(0,n.jsx)(d.Z,{className:"size-5"}),E("variantsFromBadge",{value:eo})]}),ei&&(0,n.jsxs)("span",{className:C,children:[(0,n.jsx)(h.Z,{className:"size-5"}),E("variantsFromBadge",{value:ei})]}),X&&(0,n.jsxs)("span",{className:C,children:[(0,n.jsx)(m.Z,{className:"size-5"}),E("groupEventBadgeAny")]})]})}),J&&(0,n.jsxs)("p",{className:"mt-2 flex items-start gap-1.5 text-sm text-zinc-600 dark:text-zinc-300",children:[(0,n.jsx)(u.Z,{className:"mt-0.5 size-4 shrink-0","aria-hidden":"true"}),(0,n.jsx)("span",{children:J})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[G.length>
10?(0,n.jsxs)("div",{className:"flex -space-x-2.5 justify-end",children:[(0,n.jsx)("dt",{className:"sr-only",children:"Staff members"}),G.slice(0,3).map(e=>(0,n.jsx)("dd",{children:e.fileName?(0,n.jsx)(v.q,{alt:e.alt,src:e.url,className:"size-9 rounded-full bg-zinc-50 dark:bg-zinc-800 outline outline-2 outline-zinc-50 dark:outline-zinc-900"}):(0,n.jsx)(x.Z,{className:"relative size-7 rounded-full shadow-lg outline outline-2 outline-zinc-50 dark:outline-zinc-900"})},e.id)),G.length>3&&(0,n.jsx)("dd",{children:(0,n.jsxs)("span",{className:"size-7 inline-flex items-center justify-center rounded-full bg-zinc-200 dark:bg-zinc-800 dark:text-white text-xs font-medium text-zinc-700 outline outline-2 outline-zinc-50 dark:outline-zinc-900",children:["+",G.length-3]})})]}):(0,n.jsx)("div",{className:"h-6 w-6 rounded-full bg-zinc-200 dark:bg-zinc-700 flex items-center justify-center text-zinc-500 text-xs border border-white/20",children:(null===(p=T.name)||void 0===p?void 0:null===(s=p[0])||void 0===s?void 0:s.toUpperCase())||"S"}),(0,n.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:t=>y(T,e.service_staves||[],t),className:"flex-shrink-0 p-1.5 transition-colors","aria-label":E("infoAriaLabel"),title:E("infoAriaLabel"),children:(0,n.jsx)(u.Z,{className:"h-7 w-7 text-zinc-500 dark:text-zinc-400"})})]})]}),!D&&(e.service_staves||[]).map(e=>(e.packageOptions||[]).some(e=>!1!==e.isActive)?(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)(z.Z,{serviceStaff:e})},e.id):null)]}),(0,n.jsxs)(i.M,{initial:!1,children:[P&&t===W&&(0,n.jsx)(l.E.li,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden list-none",children:(0,n.jsxs)("div",{className:"flex items-center gap-3 my-3",children:[(0,n.jsx)(j.Z,{}),(0,n.jsxs)("button",{type:"button",onClick:P,style:{backgroundColor:F,color:"var(--wl-accent, #ffffff)"},className:"group relative flex flex-1 items-center justify-center gap-2 rounded-2xl px-4 py-3 text-sm font-semibold text-white shadow-lg backdrop-blur-xl ring-1 ring-inset ring-white/20 transition-all duration-200 hover:shadow-xl hover:-translate-y-[1px] active:translate-y-0 active:scale-[0.99]",children:[(0,n.jsx)("span",{className:"pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-b from-white/15 to-transparent"}),(0,n.jsx)("span",{className:"relative",children:E("continue")}),(0,n.jsx)(b.Z,{className:"relative size-4 transition-transform duration-200 group-hover:translate-x-0.5"})]})]})},"continue-after-".concat(e.id)),B&&e.representative.id===Y&&(0,n.jsx)(l.E.li,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden list-none",children:(0,n.jsxs)("div",{className:"flex items-center gap-3 my-3",children:[(0,n.jsx)(j.Z,{}),(0,n.jsxs)("button",{type:"button",onClick:B,style:{backgroundColor:F,color:"var(--wl-accent, #ffffff)"},className:"group relative flex flex-1 items-center justify-center gap-2 rounded-2xl px-4 py-3 text-sm font-semibold text-white shadow-lg backdrop-blur-xl ring-1 ring-inset ring-white/20 transition-all duration-200 hover:shadow-xl hover:-translate-y-[1px] active:translate-y-0 active:scale-[0.99]",children:[(0,n.jsx)("span",{className:"pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-b from-white/15 to-transparent"}),(0,n.jsx)("span",{className:"relative",children:E("toCheckout")}),(0,n.jsx)(b.Z,{className:"relative size-4 transition-transform duration-200 group-hover:translate-x-0.5"})]})]})},"checkout-after-".concat(e.id))]})]},"service-".concat(e.id))})})}},64096:function(e,t,r){r.d(t,{C:function(){return d},Z:function(){return c}});var n=r(57437);r(2265);let a="var(--pkg-line) 0 12%, transparent 19%, var(--pkg-line) 27% 46%, transparent 54% 61%, var(--pkg-line) 69% 88%, transparent 93%, var(--pkg-line) 100%",o="var(--pkg-line) 0 9%, transparent 16% 23%, var(--pkg-line) 34% 51%, transparent 58%, var(--pkg-line) 71% 90%, transparent 95%, var(--pkg-line) 100%",i=(e,t)=>({backgroundImage:"linear-gradient(".concat(e,", ").concat(t,")")}),l={backgroundImage:"linear-gradient(var(--pkg-node), var(--pkg-node)), linear-gradient(var(--pkg-node), var(--pkg-node))",backgroundSize:"100% 1px, 1px 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},s=["-left-1 -top-1","-right-1 -top-1","-left-1 -bottom-1","-right-1 -bottom-1"],c="[--pkg-line:rgba(9,9,11,0.14)] [--pkg-node:rgba(9,9,11,0.38)] dark:[--pkg-line:rgba(255,255,255,0.16)] dark:[--pkg-node:rgba(255,255,255,0.4)]";function d(){let e="pointer-events-none absolute";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"".concat(e," -inset-x-2 top-0 h-px"),style:i("to right",a)}),(0,n.jsx)("span",{"aria-hidden":"true",className:"".concat(e," -inset-x-2 bottom-0 h-px"),style:i("to right",o)}),(0,n.jsx)("span",{"aria-hidden":"true",className:"".concat(e," -inset-y-2 left-0 w-px"),style:i("to bottom",o)}),(0,n.jsx)("span",{"aria-hidden":"true",className:"".concat(e," -inset-y-2 right-0 w-px"),style:i("to bottom",a)}),s.map(t=>(0,n.jsx)("span",{"aria-hidden":"true",className:"".concat(e," size-[9px] ").concat(t),style:l},t))]})}},1886:function(e,t,r){r.d(t,{_:function(){return a}});var n=r(20043);class a extends n.U{constructor(e){super(e),this.baseUrl="/api/api-basic-mercure/"}}},71516:function(e,t,r){r.d(t,{r:function(){return d},z:function(){return c}});var n=r(57437),a=r(35933),o=r(61994),i=r(2265),l=r(47402);let s={base:["relative isolate inline-flex items-center justify-center gap-x-2 rounded-lg border text-base/6 font-semibold","px-[calc(theme(sp
1acing[3])-1px)] py-[calc(theme(spacing[2.5])-1.5px)] sm:px-[calc(theme(spacing.3)-1px)] sm:py-[calc(theme(spacing[1.5])-1px)] sm:text-sm/6","focus:outline-none data-[focus]:outline data-[focus]:outline-2 data-[focus]:outline-offset-2 data-[focus]:outline-blue-500","data-[disabled]:opacity-50","[&>[data-slot=icon]]:-mx-0.5 [&>[data-slot=icon]]:my-0.5 [&>[data-slot=icon]]:size-5 [&>[data-slot=icon]]:shrink-0 [&>[data-slot=icon]]:text-[--btn-icon] [&>[data-slot=icon]]:sm:my-1 [&>[data-slot=icon]]:sm:size-4 forced-colors:[--btn-icon:ButtonText] forced-colors:data-[hover]:[--btn-icon:ButtonText]"],solid:["border-transparent bg-[--btn-border]","dark:bg-[--btn-bg]","before:absolute before:inset-0 before:-z-10 before:rounded-[calc(theme(borderRadius.lg)-1px)] before:bg-[--btn-bg]","before:shadow","dark:before:hidden","dark:border-white/5","after:absolute after:inset-0 after:-z-10 after:rounded-[calc(theme(borderRadius.lg)-1px)]","after:shadow-[shadow:inset_0_1px_theme(colors.white/15%)]","after:data-[active]:bg-[--btn-hover-overlay] after:data-[hover]:bg-[--btn-hover-overlay]","dark:after:-inset-px dark:after:rounded-lg","before:data-[disabled]:shadow-none after:data-[disabled]:shadow-none"],outline:["border-zinc-950/10 text-zinc-950 data-[active]:bg-zinc-950/[2.5%] data-[hover]:bg-zinc-950/[2.5%]","dark:border-white/15 dark:text-white dark:[--btn-bg:transparent] dark:data-[active]:bg-white/5 dark:data-[hover]:bg-white/5","[--btn-icon:theme(colors.zinc.500)] data-[active]:[--btn-icon:theme(colors.zinc.700)] data-[hover]:[--btn-icon:theme(colors.zinc.700)] dark:data-[active]:[--btn-icon:theme(colors.zinc.400)] dark:data-[hover]:[--btn-icon:theme(colors.zinc.400)]"],plain:["border-transparent text-zinc-950 data-[active]:bg-zinc-950/5 data-[hover]:bg-zinc-950/5","dark:text-white dark:data-[active]:bg-white/10 dark:data-[hover]:bg-white/10","[--btn-icon:theme(colors.zinc.500)] data-[active]:[--btn-icon:theme(colors.zinc.700)] data-[hover]:[--btn-icon:theme(colors.zinc.700)] dark:[--btn-icon:theme(colors.zinc.500)] dark:data-[active]:[--btn-icon:theme(colors.zinc.400)] dark:data-[hover]:[--btn-icon:theme(colors.zinc.400)]"],colors:{"dar
1k/zinc":["text-white [--btn-bg:theme(colors.zinc.900)] [--btn-border:theme(colors.zinc.950/90%)] [--btn-hover-overlay:theme(colors.white/10%)]","dark:text-white dark:[--btn-bg:theme(colors.zinc.600)] dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.300)] data-[hover]:[--btn-icon:theme(colors.zinc.300)]"],light:["text-zinc-950 [--btn-bg:white] [--btn-border:theme(colors.zinc.950/10%)] [--btn-hover-overlay:theme(colors.zinc.950/2.5%)] data-[active]:[--btn-border:theme(colors.zinc.950/15%)] data-[hover]:[--btn-border:theme(colors.zinc.950/15%)]","dark:text-white dark:[--btn-hover-overlay:theme(colors.white/5%)] dark:[--btn-bg:theme(colors.zinc.800)]","[--btn-icon:theme(colors.zinc.500)] data-[active]:[--btn-icon:theme(colors.zinc.700)] data-[hover]:[--btn-icon:theme(colors.zinc.700)] dark:[--btn-icon:theme(colors.zinc.500)] dark:data-[active]:[--btn-icon:theme(colors.zinc.400)] dark:data-[hover]:[--btn-icon:theme(colors.zinc.400)]"],"dark/white":["text-white [--btn-bg:theme(colors.zinc.900)] [--btn-border:theme(colors.zinc.950/90%)] [--btn-hover-overlay:theme(colors.white/10%)]","dark:text-zinc-950 dark:[--btn-bg:white] dark:[--btn-hover-overlay:theme(colors.zinc.950/5%)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.300)] data-[hover]:[--btn-icon:theme(colors.zinc.300)] dark:[--btn-icon:theme(colors.zinc.500)] dark:data-[active]:[--btn-icon:theme(colors.zinc.400)] dark:data-[hover]:[--btn-icon:theme(colors.zinc.400)]"],dark:["text-white [--btn-bg:theme(colors.zinc.900)] [--btn-border:theme(colors.zinc.950/90%)] [--btn-hover-overlay:theme(colors.white/10%)]","dark:[--btn-hover-overlay:theme(colors.white/5%)] dark:[--btn-bg:theme(colors.zinc.800)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.300)] data-[hover]:[--btn-icon:theme(colors.zinc.300)]"],white:["text-zinc-950 [--btn-bg:white] [--btn-border:theme(colors.zinc.950/10%)] [--btn-hover-overlay:theme(colors.zinc.950/2.5%)] data-[active]:[--btn-border:theme(colors.zinc.950/15%)] data-[hover]:[--btn-border:theme(colors.zinc.950/15%)]","dark:[--btn-hover-overlay:theme(colors.zinc.950/5%)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.500)] data-[hover]:[--btn-icon:theme(colors.zinc.500)]"],"dark/gray":["text-white [--btn-bg:theme(colors.gray.9
100)] [--btn-border:theme(colors.gray.950/90%)] [--btn-hover-overlay:theme(colors.white/10%)]","dark:text-white dark:[--btn-bg:theme(colors.gray.600)] dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--btn-icon:theme(colors.gray.400)] data-[active]:[--btn-icon:theme(colors.gray.300)] data-[hover]:[--btn-icon:theme(colors.gray.300)]"],gray:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.gray.600)] [--btn-border:theme(colors.gray.700/90%)]","dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--btn-icon:theme(colors.gray.400)] data-[active]:[--btn-icon:theme(colors.gray.300)] data-[hover]:[--btn-icon:theme(colors.gray.300)]"],panel:["text-gray-900 [--btn-bg:theme(colors.gray.50)] [--btn-hover-overlay:theme(colors.zinc.950/2.5%)]","dark:text-white dark:[--btn-bg:theme(colors.gray.800/50)] dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--btn-icon:theme(colors.gray.500)] dark:[--btn-icon:theme(colors.gray.400)]","before:shadow-none after:shadow-none"],zinc:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.zinc.600)] [--btn-border:theme(colors.zinc.700/90%)]","dark:[--btn-hover-overlay:theme(colors.white/5%)]","[--btn-icon:theme(colors.zinc.400)] data-[active]:[--btn-icon:theme(colors.zinc.300)] data-[hover]:[--btn-icon:theme(colors.zinc.300)]"],indigo:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.indigo.500)] [--btn-border:theme(colors.indigo.600/90%)]","[--btn-icon:theme(colors.indigo.300)] data-[active]:[--btn-icon:theme(colors.indigo.200)] data-[hover]:[--btn-icon:theme(colors.indigo.200)]"],cyan:["text-cyan-950 [--btn-bg:theme(colors.cyan.300)] [--btn-border:theme(colors.cyan.400/80%)] [--btn-hover-overlay:theme(colors.white/25%)]","[--btn-icon:theme(colors.cyan.500)]"],red:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.red.600)] [--btn-border:theme(colors.red.700/90%)]","[--btn-icon:theme(colors.red.300)] data-[active]:[--btn-icon:theme(colors.red.200)] data-[hover]:[--btn-icon:theme(colors.red.200)]"],orange:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.orange.500)] [--btn-border:theme(colors.orange.600/90%)]","[--btn-icon:theme(colors.orange.300)] data-[active]:[--btn-icon:theme(colors.orange.200)] data-[hover]:[--btn-icon:theme(colors.orange.200)]"],amber:["text-amber-950 [--btn-hover-overlay:theme(colors.white/25%)] [--btn-bg:theme(colors.amber.400)] [--btn-border:theme(colors.amber.500/80%)]","[--btn-icon:theme(colors.amber.600)]"],yellow:["text-yellow-950 [--btn-hover-overlay:theme(colors.white/25%)] [--btn-bg:theme(colors.yellow.300)] [--btn-border:theme(colors.yellow.400/80%)]","[--btn-icon:theme(colors.yellow.600)] data-[active]:[--btn-icon:theme(colors.yellow.700)] data-[hover]:[--btn-icon:theme(colors.yellow.700)]"],lime:["text-lime-950 [--btn-hover-overlay:theme(colors.white/25%)] [--btn-bg:theme(colors.lime.300)] [--btn-border:theme(colors.lime.400/80%)]","[--btn-icon:theme(colors.lime.600)] data-[active]:[--btn-icon:theme(colors.lime.700)] data-[hover]:[--btn-icon:theme(colors.lime.700)]"],green:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.green.600)] [--btn-border:theme(colors.green.700/90%)]","[--btn-icon:theme(colors.white/60%)] data-[active]:[--btn-icon:theme(colors.white/80%)] data-[hover]:[--btn-icon:theme(colors.white/80%)]"],emerald:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.emerald.600)] [--btn-border:theme(colors.emerald.700/90%)]","[--btn-icon:theme(colors.white/60%)] data-[active]:[--btn-icon:theme(colors.white/80%)] data-[hover]:[--btn-icon:theme(colors.white/80%)]"],teal:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.teal.600)] [--btn-border:theme(colors.teal.700/90%)]","[--btn-icon:theme(colors.white/60%)] data-[active]:[--btn-icon:theme(colors.white/80%)] data-[hover]:[--btn-icon:theme(colors.white/80%)]"],sky:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.sky.500)] [--btn-border:theme(colors.sky.600/80%)]","[--btn-icon:theme(colors.white/60%)] data-[active]:[--btn-icon:theme(colors.white/80%)] data-[hover]:[--btn-icon:theme(colors.white/80%)]"],blue:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.blue.600)] [--btn-border:theme(colors.blue.700/90%)]","[--btn-icon:theme(colors.blue.400)] data-[active]:[--btn-icon:theme(colors.blue.300)] data-[hover]:[--btn-icon:theme(colors.blue.300)]"],violet:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.violet.500)] [--btn-border:theme(colors.violet.600/90%)]","[--btn-icon:theme(colors.violet.300)] data-[active]:[--btn-icon:theme(colors.violet.200)] data-[hover]:[--btn-icon:theme(colors.violet.200)]"],purple:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.purple.500)] [--btn-border:theme(colors.purple.600/90%)]","[--btn-icon:theme(colors.purple.300)] data-[active]:[--btn-icon:theme(colors.purple.200)] data-[hover]:[--btn-icon:theme(colors.purple.200)]"],fuchsia:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.fuchsia.500)] [--btn-border:theme(colors.fuchsia.600/90%)]","[--btn-icon:theme(colors.fuchsia.300)] data-[active]:[--btn-icon:theme(colors.fuchsia.200)] data-[hover]:[--btn-icon:theme(colors.fuchsia.200)]"],pink:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.pink.500)] [--btn-border:theme(colors.pink.600/90%)]","[--btn-icon:theme(colors.pink.300)] data-[active]:[--btn-icon:theme(colors.pink.200)] data-[hover]:[--btn-icon:theme(colors.pink.200)]"],rose:["text-white [--btn-hover-overlay:theme(colors.white/10%)] [--btn-bg:theme(colors.rose.500)] [--btn-border:theme(colors.rose.600/90%)]","[--btn-icon:theme(colors.rose.300)] data-[active]:[--btn-icon:theme(colors.rose.200)] data-[hover]:[--btn-icon:theme(colors.rose.200)]"]}}
1,c=(0,i.forwardRef)(function(e,t){let{color:r,outline:i,plain:c,className:m,children:h,loading:u=!1,spinnerClassName:b,...v}=e,x=(0,o.Z)(s.base,i?s.outline:c?s.plain:(0,o.Z)(s.solid,s.colors[null!=r?r:"dark/zinc"]),"cursor-pointer",m);return"href"in v?(0,n.jsx)(l.r,{...v,className:x,ref:t,children:(0,n.jsx)(d,{children:h})}):(0,n.jsxs)(a.Button,{...v,className:(0,o.Z)(x,"cursor-default"),ref:t,children:[u&&(0,n.jsxs)("svg",{className:(0,o.Z)("text-gray-300 animate-spin",null!=b?b:"w-6 h-6 ml-2 mr-2"),viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M32 3C35.8083 3 39.5794 3.75011 43.0978 5.20749C46.6163 6.66488 49.8132 8.80101 52.5061 11.4939C55.199 14.1868 57.3351 17.3837 58.7925 20.9022C60.2499 24.4206 61 28.1917 61 32C61 35.8083 60.2499 39.5794 58.7925 43.0978C57.3351 46.6163 55.199 49.8132 52.5061 52.5061C49.8132 55.199 46.6163 57.3351 43.0978 58.7925C39.5794 60.2499 35.8083 61 32 61C28.1917 61 24.4206 60.2499 20.9022 58.7925C17.3837 57.3351 14.1868 55.199 11.4939 52.5061C8.801 49.8132 6.66487 46.6163 5.20749 43.0978C3.7501 39.5794 3 35.8083 3 32C3 28.1917 3.75011 24.4206 5.2075 20.9022C6.66489 17.3837 8.80101 14.1868 11.4939 11.4939C14.1868 8.80099 17.3838 6.66487 20.9022 5.20749C24.4206 3.7501 28.1917 3 32 3L32 3Z",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M32 3C36.5778 3 41.0906 4.08374 45.1692 6.16256C49.2477 8.24138 52.7762 11.2562 55.466 14.9605C58.1558 18.6647 59.9304 22.9531 60.6448 27.4748C61.3591 31.9965 60.9928 36.6232 59.5759 40.9762",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-gray-900"})]}),(0,n.jsx)(d,{children:h})]})});function d(e){let{children:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"absolute left-1/2 top-1/2 size-[max(100%,2.75rem)] -translate-x-1/2 -translate-y-1/2 [@media(pointer:fine)]:hidden","aria-hidden":"true"}),t]})}},2396:function(e,t,r){r.d(t,{$N:function(){return u},Be:function(){return b},Vq:function(){return h},a7:function(){return v},kX:function(){return x}});var n=r(57437),a=r(63287),o=r(33577),i=r(61994),l=r(2265),s=r(79632),c=r(59717),d=r(77306);let m={xs:"sm:max-w-xs",sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl"};function h(e){let{size:t="lg",className:r,children:o,gutter:s="p-[--gutter]",fullHeight:h=!1,mobileFullHeight:u=!1,mobileSwipeClose:b=!1,mobileTopAnchor:v=!1,zIndexClassName:x="z-50",...p}=e;(0,l.useEffect)(()=>{if(p.open){let e="undefined"!=typeof document?document.activeElement:null;if(e&&"function"==typeof e.blur)try{e.blur()}catch(e){}}},[p.open]);let f=p.onClose,g=u||b,w=(0,c.o)();return(0,n.jsxs)(a.Dialog,{...p,children:[(0,n.jsx)(a.DialogBackdrop,{transition:!0,className:(0,i.Z)(x,"fixed inset-0 flex w-screen justify-center overflow-y-auto bg-zinc-950/25 px-2 py-2 transition duration-100 focus:outline-0 data-[closed]:opacity-0 data-[enter]:ease-out data-[leave]:ease-in sm:px-6 sm:py-8 lg:px-8 lg:py-16 dark:bg-zinc-950/50")}),(0,n.jsx)("div",{className:(0,i.Z)("fixed inset-0 w-screen overflow-y-auto",x,"pt-6 sm:pt-0"),children:(0,n.jsx)("div",{className:"grid min-h-full grid-rows-[1fr_auto] justify-items-center sm:grid-rows-[1fr_auto_3fr] sm:p-4",children:(0,n.jsx)(a.DialogPanel,{transition:!0,className:(0,i.Z)(r,m[t],"relative w-full min-w-0 sm:mb-auto",v?"row-start-1 md:row-start-2":"row-start-2","transition duration-100 will-change-transform data-[closed]:translate-y-12 data-[closed]:opacity-0 data-[enter]:ease-out data-[leave]:ease-in sm:data-[closed]:translate-y-0 sm:data-[closed]:data-[enter]:scale-95"),children:(0,n.jsxs)(d.E.div,{drag:!!g&&"y",dragListener:!1,dragControls:w,dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:1},onDragEnd:g?(e,t)=>{(t.offset.y>100||t.velocity.y>500)&&(null==f||f(!1))}:void 0,className:(0,i.Z)("relative w-full min-w-0 bg-white shadow-lg ring-1 ring-zinc-950/10 [--gutter:theme(spacing.8)] sm:rou
1nded-2xl dark:bg-zinc-900 dark:ring-white/10 forced-colors:outline",v?"max-md:rounded-b-3xl":"rounded-t-3xl",s,h&&"h-[95svh] sm:h-[90svh] max-h-[95svh] rounded-none sm:rounded-2xl",u&&"max-sm:h-[90svh] max-sm:max-h-[90svh] max-sm:flex max-sm:flex-col",g&&"will-change-transform"),children:[g&&(0,n.jsx)("div",{className:"sm:hidden absolute left-1/2 top-0 z-20 flex -translate-x-1/2 justify-center px-16 pt-2 pb-4 touch-none cursor-grab active:cursor-grabbing",onPointerDown:e=>w.start(e),"aria-hidden":"true",children:(0,n.jsx)("div",{className:"h-1.5 w-10 rounded-full bg-zinc-300 dark:bg-zinc-600"})}),o]})})})})]})}function u(e){let{className:t,...r}=e;return(0,n.jsx)(a.DialogTitle,{...r,className:(0,i.Z)(t,"text-balance text-lg/6 font-semibold text-zinc-950 sm:text-base/6 dark:text-white")})}function b(e){let{className:t,...r}=e;return(0,n.jsx)(o.Description,{as:s.xv,...r,className:(0,i.Z)(t,"mt-2 text-pretty")})}function v(e){let{className:t,...r}=e;return(0,n.jsx)("div",{...r,className:(0,i.Z)(t,"mt-6")})}function x(e){let{className:t,...r}=e;return(0,n.jsx)("div",{...r,className:(0,i.Z)(t,"mt-8 flex flex-col-reverse items-center justify-end gap-3 *:w-full sm:flex-row sm:*:w-auto")})}},63155:function(e,t,r){r.d(t,{S:function(){return a}});var n=r(2265);let a=e=>{let{mercureUrl:t,topics:r,mercureToken:a,onMessage:o,onError:i}=e,l=(0,n.useRef)(null),s=(0,n.useRef)(o),c=(0,n.useRef)(i);return(0,n.useEffect)(()=>{s.current=o,c.current=i},[o,i]),(0,n.useEffect)(()=>{if(!t||!r.length||!a)return;let e=new URL(t);r.forEach(t=>{e.searchParams.append("topic",t)}),e.searchParams.append("authorization",a);let n=new EventSource(e.toString());return l.current=n,n.onmessage=e=>{try{let t=JSON.parse(e.data);s.current(t)}catch(e){console.error("Error parsing Mercure message:",e)}},n.onerror=e=>{var t;console.error("Mercure connection error:",e),null===(t=c.current)||void 0===t||t.call(c,e)},()=>{n.close(),l.current=null}},[t,r.join(","),a]),{close:()=>{var e;null===(e=l.current)||void 0===e||e.close(),l.current=null}}}},33180:function(e,t,r){function n(e,t){let[r,n]=(t||"00:00").split(":").map(e=>parseInt(e,10)||0);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),r,n,0,0)}function a(e,t,r,a){return!!r&&0!==r.length&&r.some(r=>{if(!(null==r?void 0:r.start)||!(null==r?void 0:r.end))return!1;let o=n(a,r.start),i=n(a,r.end);return!(i<=o)&&(e>=o&&e<i||t>o&&t<=i||e<=o&&t>=i)})}r.d(t,{y:function(){return a}})}}]);
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.