1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{8357:function(e,t,l){l.d(t,{r:function(){return a}});var n=l(7573);l(7653);var r=l(8146);function a(e){let{scroll:t=!1,...l}=e;return(0,n.jsx)(r.default,{scroll:t,...l})}},5044:function(e,t,l){l.d(t,{NotificationProvider:function(){return s},useNotification:function(){return o}});var n=l(7573),r=l(7653);let a={open:!1,title:"Message",message:"",type:"info",primaryBtnText:"OK",secondaryBtnText:"Cancel",resolve:null},i=(0,r.createContext)(null);function s(e){var t;let{children:l}=e,[s,o]=(0,r.useState)(a),c=(0,r.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(t=>{var l,n,r,a,i;o({open:!0,title:null!==(l=e.title)&&void 0!==l?l:"Message",message:null!==(n=e.message)&&void 0!==n?n:"",type:null!==(r=e.type)&&void 0!==r?r:"info",primaryBtnText:null!==(a=e.primaryBtnText)&&void 0!==a?a:"OK",secondaryBtnText:null!==(i=e.secondaryBtnText)&&void 0!==i?i:"Cancel",resolve:t})})},[]),d=(0,r.useCallback)(()=>{o(e=>{var t;return null===(t=e.resolve)||void 0===t||t.call(e,!1),{...a}})},[]),u=(0,r.useCallback)(()=>{var e;null===(e=s.resolve)||void 0===e||e.call(s,!0),o(e=>({...e,open:!1,resolve:null}))},[s.resolve]),m=(0,r.useCallback)(()=>{var e;null===(e=s.resolve)||void 0===e||e.call(s,!1),o(e=>({...e,open:!1,resolve:null}))},[s.resolve]),x="confirm"===s.type||"danger"===s.type,b=function(e){switch(e){case"success":return{icon:"check_circle",containerClass:"bg-green-500/10",iconClass:"text-green-500",primaryClass:"bg-green-600 hover:bg-green-700 text-white"};case"error":return{icon:"cancel",containerClass:"bg-red-500/10",iconClass:"text-red-500",primaryClass:"bg-red-600 hover:bg-red-700 text-white"};case"warning":return{icon:"warning",containerClass:"bg-orange-500/10",iconClass:"text-orange-500",primaryClass:"bg-orange-600 hover:bg-orange-700 text-white"};case"confirm":return{icon:"help",containerClass:"bg-primary/20",iconClass:"text-primary",primaryClass:"bg-primary hover:bg-primary-dark text-background-dark"};case"danger":return{icon:"warning",containerClass:"bg-red-500/10",iconClass:"text-red-500",primaryClass:"bg-red-600 hover:bg-red-700 text-white"};default:return{icon:"info",containerClass:"bg-primary/10",iconClass:"text-primary",primaryClass:"bg-primary hover:bg-primary-dark text-background-dark"}}}(null!==(t=s.type)&&void 0!==t?t:"info");return(0,n.jsxs)(i.Provider,{value:{showNotification:c,hideNotification:d},children:[l,s.open&&(0,n.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 backdrop-blur-sm p-4",role:"dialog","aria-modal":"true","aria-labelledby":"notification-title","aria-describedby":"notification-message",children:(0,n.jsxs)("div",{className:"bg-[#0d121f] border border-white/10 rounded-2xl p-6 max-w-sm w-full shadow-2xl",children:[(0,n.jsxs)("div",{className:"text-center mb-6",children:[(0,n.jsx)("div",{className:"w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4 ".concat(b.containerClass),children:(0,n.jsx)("span",{className:"material-symbols-outlined text-3xl ".concat(b.iconClass),children:b.icon})}),(0,n.jsx)("h3",{id:"notification-title",className:"text-xl font-bold text-white mb-2",children:s.title}),(0,n.jsx)("p",{id:"notification-message",className:"text-text-muted text-sm leading-relaxed",children:s.message})]}),(0,n.jsxs)("div",{className:"flex gap-3",children:[x&&(0,n.jsx)("button",{type:"button",onClick:m,className:"flex-1 py-3 rounded-lg bg-white/5 hover:bg-white/10 text-white font-bold transition-all active:scale-95",children:s.secondaryBtnText}),(0,n.jsx)("button",{type:"button",onClick:u,className:"flex-1 py-3 rounded-lg font-bold transition-all active:scale-95 ".concat(b.primaryClass),children:s.primaryBtnText})]})]})})]})}function o(){let e=(0,r.useContext)(i);if(!e)throw Error("useNotification must be used within NotificationProvider");return e}},5701:function(e,t,l){l.d(t,{SessionQuickSettingsModal:function(){return u}});var n=l(7573),r=l(7653),a=l(3458),i=l(3409),s=l(1566),o=l(3630);function c(e){var t;let l=null===(t=e.full_name)||void 0===t?void 0:t.trim();return l&&l.length>0?l:e.label}function d(e){var t;let l=(null!==(t=e.language)&&void 0!==t?t:"").trim();return l?l.slice(0,2).toUpperCase():""}function u(e){var t,l,u;let{open:m,onClose:x,versions:b,value:p,onChange:h,captionLanguage:f,captionLanguageOptions:g,onCaptionLanguageChange:y,showDetection:v=!0,detectionPrefs:w,detectionStyleOptions:j,llmSensitivityOptions:N,labels:k,onDetectionChange:C,title:S="Quick Settings",sessionScopeNotice:E,doneLabel:L,onSaveAsDefault:_,saveAsDefaultLabel:T,saveAsDefaultPendingLabel:M,saveAsDefaultPending:B}=e,z=(0,r.useId)(),P=(0,r.useMemo)(()=>[...b].sort((e,t)=>
1{var l,n;return(null!==(l=e.sort_order)&&void 0!==l?l:0)-(null!==(n=t.sort_order)&&void 0!==n?n:0)}),[b]),H=(0,r.useMemo)(()=>P.find(e=>e.code===p),[P,p]),A=null!==(u=null!==(l=null==H?void 0:H.label)&&void 0!==l?l:null===(t=P[0])||void 0===t?void 0:t.label)&&void 0!==u?u:"â",R=H?c(H):"",F=H?d(H):"",[I,U]=(0,r.useState)(!1),[D,$]=(0,r.useState)(null),K=(0,r.useRef)(null),W="".concat(z,"-bible-listbox"),O=(0,r.useCallback)(()=>{let e=K.current;if(!e)return;let t=e.getBoundingClientRect(),l=t.bottom+6,n=window.innerHeight-l,r=t.top;$({top:n<120&&r>n?Math.max(6,t.top-6-Math.min(280,r-6)):l,left:t.left,width:t.width})},[]);(0,r.useLayoutEffect)(()=>{if(!I){$(null);return}O();let e=()=>O(),t=()=>O();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[I,O,P.length]),(0,r.useEffect)(()=>{m||U(!1)},[m]);let V=(0,r.useCallback)(e=>{e.target===e.currentTarget&&x()},[x]),X=(0,r.useCallback)(e=>{h(e),U(!1)}
1,[h]);if((0,r.useEffect)(()=>{if(!m)return;let e=e=>{"Escape"===e.key&&(I?(e.preventDefault(),e.stopPropagation(),U(!1)):x())};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[m,x,I]),(0,r.useEffect)(()=>{if(!I)return;let e=e=>{var t;let l=e.target;if(null===(t=K.current)||void 0===t?void 0:t.contains(l))return;let n=document.getElementById(W);null!=n&&n.contains(l)||U(!1)};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[I,W]),!m)return null;let Q="".concat(z,"-bible-label"),Z="".concat(z,"-caption-language-label"),G="".concat(z,"-detection-style-label"),J="".concat(z,"-llm-sensitivity-label"),q="".concat(z,"-early-detection"),Y="".concat(z,"-auto-advance"),ee=I&&D&&"undefined"!=typeof document?(0,a.createPortal)((0,n.jsx)("ul",{id:W,role:"listbox",className:s.L,style:{top:D.top,left:D.left,width:D.width,maxHeight:"min(16rem, calc(100dvh - 1rem))"},children:P.map(e=>{let t=e.code===p,l=c(e),r=d(e);return(0,n.jsx)("li",{role:"presentation",children:(0,n.jsxs)("button",{type:"button",role:"option","aria-selected":t,className:"flex w-full items-start justify-between gap-2 px-3.5 py-2.5 text-left text-sm transition-colors ".concat(t?"bg-primary/12 text-primary":"text-white/90 hover:bg-white/8 active:bg-white/12"),onClick:()=>X(e.code),children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,n.jsxs)("div",{className:"flex w-full items-start justify-between gap-3",children:[(0,n.jsx)("span",{className:"min-w-0 flex-1 font-medium leading-snug ".concat(t?"text-primary":"text-white"),children:e.label}),r?(0,n.jsx)("span",{className:(0,i.X)(r),"aria-hidden":!0,children:r}):null]}),l!==e.label?(0,n.jsx)("div",{className:"break-words text-xs leading-snug ".concat(t?"text-primary/85":"text-white/65"),children:l}):null]}),t&&(0,n.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-lg text-primary","aria-hidden":!0,children:"check"})]})},e.code)})}),document.body):null;return(0,n.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/15 p-4",onClick:V,role:"dialog","aria-modal":"true","aria-labelledby":"".concat(z,"-title"),children:[ee,(0,n.jsxs)("div",{className:"animate-fade-in-up scrollbar-hide relative w-full max-w-lg max-h-[min(92dvh,56rem)] overflow-y-auto rounded-3xl border border-white/10 bg-zinc-950 p-5 text-white shadow-2xl md:p-8",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{type:"button",onClick:x,className:"absolute top-4 right-4 text-text-muted hover:text-white transition-colors p-1 md:top-6 md:right-6","aria-label":"Close",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-xl md:text-2xl",children:"close"})}),(0,n.jsxs)("div",{className:"mb-4 pr-8 md:mb-6",children:[(0,n.jsx)("h2",{id:"".concat(z,"-title"),className:"text-lg font-bold text-white font-display mb-1 md:mb-2 md:text-2xl",children:S}),(0,n.jsx)("p",{className:"text-text-muted text-xs leading-relaxed md:text-sm",children:E})]}),(0,n.jsxs)("div",{className:"mb-4 md:mb-6",children:[(0,n.jsx)("p",{id:Q,className:"text-xs font-semibold text-text-muted uppercase tracking-wider block mb-2",children:k.bibleVersionLabel}),(0,n.jsx)("div",{className:"relative",children:(0,n.jsxs)("button",{ref:K,type:"button",id:"".concat(z,"-bible-trigger"),"aria-haspopup":"listbox","aria-expanded":I,"aria-controls":W,"aria-labelledby":Q,className:"flex w-full items-center justify-between gap-2 rounded-xl border-2 border-white/10 bg-white/5 px-3 py-2 text-left text-xs font-medium text-white outline-none transition hover:border-primary/40 focus:border-primary focus:ring-1 focus:ring-primary/30 md:py-2.5 md:text-sm",onClick:()=>U(e=>!e),children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,n.jsxs)("div",{className:"flex w-full items-start justify-between gap-3",children:[(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate font-medium",children:A}),F?(0,n.jsx)("span",{className:(0,i.X)(F),"aria-hidden":!0,children:F}):null]}),H&&R!==A?(0,n.jsx)("div",{className:"break-words text-xs leading-snug text-white/65",children:R}):null]}),(0,n.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 self-start text-text-muted text-xl transition-transform ".concat(I?"rotate-180":""),"aria-hidden":!0,
1children:"expand_more"})]})})]}),(0,n.jsxs)("div",{className:"mb-4 md:mb-6",children:[(0,n.jsx)("p",{id:Z,className:"text-xs font-semibold text-text-muted uppercase tracking-wider block mb-2",children:k.captionLanguageLabel}),(0,n.jsx)(o.SettingsEnumSelect,{id:"".concat(z,"-caption-language"),"aria-labelledby":Z,value:f,options:g,onChange:y,compact:!0})]}),v&&w&&j&&N&&C?(0,n.jsxs)("div",{className:"mb-4 space-y-4 border-t border-white/10 pt-4 md:mb-6 md:space-y-6 md:pt-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{id:G,className:"text-xs font-semibold text-text-muted uppercase tracking-wider block mb-2",children:k.detectionStyleLabel}),(0,n.jsx)(o.SettingsEnumSelect,{id:"".concat(z,"-detection-style"),"aria-labelledby":G,value:w.detection_style,options:j,onChange:e=>C({detection_style:e}),compact:!0})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{id:J,className:"text-xs font-semibold text-text-muted uppercase tracking-wider block mb-2",children:k.llmSensitivityLabel}),(0,n.jsx)(o.SettingsEnumSelect,{id:"".concat(z,"-llm-sensitivity"),"aria-labelledby":J,value:w.llm_sensitivity,options:N,onChange:e=>C({llm_sensitivity:e}),compact:!0})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("input",{id:q,type:"checkbox",checked:w.early_detection,onChange:e=>C({early_detection:e.target.checked}),className:"h-4 w-4 rounded border-white/30 bg-black text-primary focus:ring-primary"}),(0,n.jsx)("label",{htmlFor:q,className:"text-xs font-bold text-white md:text-sm",children:k.earlyDetectionLabel})]}),(0,n.jsx)("p",{className:"text-xs text-text-muted pl-7",children:k.earlyDetectionHint})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("input",{id:Y,type:"checkbox",checked:w.auto_advance,onChange:e=>C({auto_advance:e.target.checked}),className:"h-4 w-4 rounded border-white/30 bg-black text-primary focus:ring-primary"}),(0,n.jsx)("label",{htmlFor:Y,className:"text-xs font-bold text-white md:text-sm",children:k.autoAdvanceLabel})]}),(0,n.jsx)("p",{className:"text-xs text-text-muted pl-7",children:k.autoAdvanceHint})]})]}):null,(0,n.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 md:gap-3",children:[_?(0,n.jsx)("button",{type:"button",disabled:B,onClick:()=>{Promise.resolve(_())},className:"px-4 py-2 text-sm rounded-xl border-2 border-white/15 bg-white/5 font-bold text-white hover:bg-white/10 transition-all disabled:opacity-50 disabled:cursor-not-allowed md:px-6 md:py-3 md:text-base",children:B&&M?M:null!=T?T:"Save as default"}):null,(0,n.jsx)("button",{type:"button",onClick:x,className:"px-4 py-2 text-sm bg-primary hover:bg-primary/90 text-black font-bold rounded-xl transition-all md:px-6 md:py-3 md:text-base",children:L})]})]})]})}},3630:function(e,t,l){l.d(t,{SettingsEnumSelect:function(){return s}});var n=l(7573),r=l(7653),a=l(3458),i=l(1566);function s(e){var t,l,s;let{id:o,value:c,options:d,onChange:u,disabled:m,"aria-labelledby":x,compact:b}=e,p=(0,r.useId)(),h=(0,r.useMemo)(()=>{var e;return null!==(e=d.find(e=>e.value===c))&&void 0!==e?e:d[0]},[d,c]),f=null!==(l=null==h?void 0:h.label)&&void 0!==l?l:"â",g=null!==(s=null==h?void 0:null===(t=h.hint)||void 0===t?void 0:t.trim())&&void 0!==s?s:"",[y,v]=(0,r.useState)(!1),[w,j]=(0,r.useState)(null),N=(0,r.useRef)(null),k="".concat(p,"-enum-listbox"),C=(0,r.useCallback)(()=>{let e=N.current;if(!e)return;let t=e.getBoundingClientRect(),l=t.bottom+6,n=window.innerHeight-l,r=t.top;j({top:n<120&&r>n?Math.max(6,t.top-6-Math.min(280,r-6)):l,left:t.left,width:t.width})},[]);(0,r.useLayoutEffect)(()=>{if(!y){j(null);return}C();let e=()=>C(),t=()=>C();return window.addEventListener("scroll",e,!0),window.addEventListener("resize",t),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",t)}},[y,C,d.length]),(0,r.useEffect)(()=>{if(!y)return;let e=e=>{var t;let l=e.target;if(null===(t=N.current)||void 0===t?void 0:t.contains(l))return;let n=document.getElementById(k);null!=n&&n.contains(l)||v(!1)};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[y,k]),(0,r.useEffect)(()=>
1{if(!y)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),v(!1))};return window.addEventListener("keydown",e,!0),()=>window.removeEventListener("keydown",e,!0)},[y]);let S=(0,r.useCallback)(e=>{u(e),v(!1)},[u]),E=y&&w&&"undefined"!=typeof document?(0,a.createPortal)((0,n.jsx)("ul",{id:k,role:"listbox",className:i.L,style:{top:w.top,left:w.left,width:w.width,maxHeight:"min(16rem, calc(100dvh - 1rem))"},children:d.map(e=>{var t,l;let r=e.value===c,a=null!==(l=null===(t=e.hint)||void 0===t?void 0:t.trim())&&void 0!==l?l:"",i=a.length>0&&a!==e.label;return(0,n.jsx)("li",{role:"presentation",children:(0,n.jsxs)("button",{type:"button",role:"option","aria-selected":r,className:"flex w-full items-start justify-between gap-2 px-3.5 py-2.5 text-left text-sm transition-colors ".concat(r?"bg-primary/12 text-primary":"text-white/90 hover:bg-white/8 active:bg-white/12"),onClick:()=>S(e.value),children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,n.jsx)("span",{className:"block font-medium leading-snug ".concat(r?"text-primary":"text-white"),children:e.label}),i?(0,n.jsx)("div",{className:"break-words text-xs leading-snug ".concat(r?"text-primary/85":"text-white/65"),children:a}):null]}),r&&(0,n.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 text-lg text-primary","aria-hidden":!0,children:"check"})]})},e.value)})}),document.body):null;return(0,n.jsxs)("div",{className:"relative mt-2 max-w-md",children:[E,(0,n.jsxs)("button",{ref:N,type:"button",id:o,disabled:m,"aria-haspopup":"listbox","aria-expanded":y,"aria-controls":k,"aria-labelledby":x,className:"flex w-full items-center justify-between gap-2 rounded-xl border-2 border-white/10 bg-white/5 px-3 text-left font-medium text-white outline-none transition hover:border-primary/40 focus:border-primary focus:ring-1 focus:ring-primary/30 disabled:cursor-not-allowed disabled:opacity-50 ".concat(b?"py-2 text-xs md:py-2.5 md:text-sm":"py-2.5 text-sm"),onClick:()=>!m&&v(e=>!e),children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1 space-y-0.5",children:[(0,n.jsx)("span",{className:"block truncate font-medium",children:f}),g.length>0&&g!==f?(0,n.jsx)("div",{className:"break-words text-xs leading-snug text-white/65",children:g}):null]}),(0,n.jsx)("span",{className:"material-symbols-outlined mt-0.5 shrink-0 self-start text-text-muted text-xl transition-transform ".concat(y?"rotate-180":""),"aria-hidden":!0,children:"expand_more"})]})]})}},6595:function(e,t,l){l.d(t,{TopUpModal:function(){return s}});var n=l(7573),r=l(7653);let a=[{cents:375,hours:1},{cents:500,hours:2},{cents:1e3,hours:4},{cents:2e3,hours:8},{cents:3e3,hours:12},{cents:4e3,hours:16},{cents:5e3,hours:20}],i={title:"Top Up Balance",subtitle:"US$3.75 is 1 hour. US$5 is 2 hours. US$10 is 4 hours at US$2.50 per hour.",hoursLabel:e=>1===e?"1 hour":"".concat(e," hours"),checkout:"Checkout",redirecting:"Redirecting...",checkoutFailed:"Checkout failed",secureStripe:"Secure payment via Stripe",closeAria:"Close"};function s(e){let{open:t,onClose:l,onCheckout:s,labels:o}=e,c={...i,...o},[d,u]=(0,r.useState)(500),[m,x]=(0,r.useState)(!1),[b,p]=(0,r.useState)(null);(0,r.useEffect)(()=>{t&&(u(500),p(null))},[t]),(0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&l()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,l]);let h=(0,r.useCallback)(async()=>{if(!m){x(!0),p(null);try{await s(d)}catch(e){p(e instanceof Error?e.message:c.checkoutFailed)}finally{x(!1)}}},[c.checkoutFailed,m,s,d]);return t?(0,n.jsx)("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm z-[100] flex items-center justify-center p-4",onClick:e=>{e.target===e.currentTarget&&l()},role:"dialog","aria-modal":"true","aria-labelledby":"topup-modal-title",children:(0,n.jsxs)("div",{className:"glass-panel animate-fade-in-up scrollbar-hide rounded-3xl p-5 relative w-full max-w-2xl max-h-[min(92dvh,56rem)] overflow-y-auto shadow-2xl md:p-8",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{type:"button",onClick:l,className:"absolute top-4 right-4 text-text-muted hover:text-white transition-colors p-1 md:top-6 md:right-6","aria-label":c.closeAria,children:(0,n.jsx)("span",{className:"material-symbols-outlined text-2xl",children:"close"})}),(0,n.jsxs)("div",{className:"mb-8",children:[(0,n.jsx)("h2",{id:"topup-modal-title",className:"text-3xl font-bold text-white mb-2",children:c.title}),(0,n.jsx)("p",{className:"text-text-muted",children:c.subtitle})]}),(0,n.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4 mb-8",children:a.map(e=>{var t;return(0,n.jsxs)("button",{type:"button",onClick:()=>{u(e.cents),p(null)},className:"p-5 rounded-2xl border-2 transition-all text-center ".concat(d===e.cents?"border-primary bg-primary/10":"border-transparent bg-white/5 hover:border-primary/50"),children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-primary text-3xl mb-2 block",children:"schedule"}),(0,n.jsx)("span",{className:"text-2xl font-black text-white block mb-1",children:(t=e.cents)%100==0?"$".concat(t/100):"$".concat((t/100).toFixed(2))}),(0,n.jsx)("span",{className:"text-sm text-text-muted",children:c.hoursLabel(e.hours)})]},e.cents)})}),(0,n.jsx)("button",{type:"button",onClick:()=>void h(),disabled:m,className:"w-full px-6 py-3 bg-primary hover:bg-primary/90 text-black font-bold rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed mb-6",children:m?c.redirecting:c.
1checkout}),b?(0,n.jsx)("p",{className:"text-red-400 text-sm mb-4",role:"alert",children:b}):null,(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-text-muted",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-lg",children:"lock"}),(0,n.jsx)("span",{children:c.secureStripe})]})]})}):null}},3409:function(e,t,l){l.d(t,{X:function(){return a}});let n={EN:"border-zinc-500/55 bg-zinc-600/50 text-zinc-100",ES:"border-amber-600/50 bg-amber-900/55 text-amber-100",FR:"border-sky-600/50 bg-sky-900/55 text-sky-100",IT:"border-rose-600/50 bg-rose-900/55 text-rose-100",DE:"border-emerald-600/50 bg-emerald-900/55 text-emerald-100",PT:"border-violet-600/50 bg-violet-900/55 text-violet-100",NL:"border-orange-600/50 bg-orange-900/55 text-orange-100",ZH:"border-red-600/50 bg-red-900/50 text-red-100",JA:"border-fuchsia-600/50 bg-fuchsia-900/50 text-fuchsia-100",KO:"border-indigo-600/50 bg-indigo-900/55 text-indigo-100",AR:"border-teal-600/50 bg-teal-900/55 text-teal-100",HE:"border-amber-700/50 bg-amber-950/60 text-amber-50",EL:"border-cyan-600/50 bg-cyan-900/55 text-cyan-100",RU:"border-blue-700/50 bg-blue-950/55 text-blue-100"},r=["border-cyan-600/50 bg-cyan-900/50 text-cyan-100","border-lime-600/50 bg-lime-900/45 text-lime-100","border-pink-600/50 bg-pink-900/50 text-pink-100","border-amber-700/50 bg-amber-950/55 text-amber-100","border-slate-500/50 bg-slate-700/50 text-slate-100"];function a(e){let t=function(e){let t=e.slice(0,2).toUpperCase();if(n[t])return n[t];let l=0;for(let e=0;e<t.length;e++)l=31*l+t.charCodeAt(e)>>>0;return r[l%r.length]}(e);return"shrink-0 rounded border px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide ".concat(t)}},1566:function(e,t,l){l.d(t,{L:function(){return n}});let n="fixed z-[110] max-h-64 divide-y divide-white/8 overflow-y-auto overflow-x-hidden rounded-xl border-2 border-white/12 bg-zinc-950 py-0 shadow-2xl shadow-black/50"},157:function(e,t,l){l.d(t,{ConnectionBadge:function(){return a}});var n=l(7573);l(7653);let r={idle:{color:"bg-gray-500",pulse:!1,label:"Idle"},connecting:{color:"bg-yellow-500",pulse:!0,label:"Connecting"},connected:{color:"bg-green-500",pulse:!0,label:"Live"},reconnecting:{color:"bg-orange-500",pulse:!0,label:"Reconnecting"},disconnected:{color:"bg-gray-500",pulse:!1,label:"Disconnected"},error:{color:"bg-red-500",pulse:!1,label:"Error"}};function a(e){var t;let{status:l,className:a="",statusLabels:i}=e,s=r[l],o=null!==(t=null==i?void 0:i[l])&&void 0!==t?t:s.label,{color:c,pulse:d}=s;return(0,n.jsxs)("span",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full\n bg-white/5 border border-white/10 text-xs font-bold tracking-wider\n uppercase ".concat(a),children:[(0,n.jsxs)("span",{className:"relative flex h-2.5 w-2.5",children:[d&&(0,n.jsx)("span",{className:"absolute inset-0 rounded-full ".concat(c," animate-ping opacity-75")}),(0,n.jsx)("span",{className:"relative inline-flex h-2.5 w-2.5 rounded-full ".concat(c)})]}),(0,n.jsx)("span",{className:"text-white/80",children:o})]})}},2003:function(e,t,l){l.d(t,{CreditActionModal:function(){return a}});var n=l(7573),r=l(7653);function a(e){let{open:t,onClose:l,title:a,body:i,onTopUp:s,topUpLabel:o,onUpgrade:c,upgradeLabel:d,closeAria:u}=e;return((0,r.useEffect)(()=>{if(!t)return;let e=e=>{"Escape"===e.key&&l()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,l]),t)?(0,n.jsx)("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm z-40 flex items-center justify-center p-4",onClick:e=>{e.target===e.currentTarget&&l()},children:(0,n.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"credit-action-modal-title",className:"relative w-full max-w-sm bg-[#1a1a1a] border border-white/10 rounded-2xl shadow-2xl p-6 space-y-5",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,n.jsx)("h2",{id:"credit-action-modal-title",className:"text-xl font-bold text-white",children:a}),(0,n.jsx)("button",{type:"button",onClick:l,className:"p-2 rounded-lg hover:bg-white/10 text-text-muted","aria-label":u,children:(0,n.jsx)("span",{className:"material-symbols-outlined",children:"close"})})]}),(0,n.jsx)("p",{className:"text-sm text-text-muted",children:i}),(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:s,className:"w-full px-6 py-3 bg-white/5 hover:bg-white/10 text-white border border-white/20 font-bold rounded-xl transition-all active:scale-95",children:o}),c&&d&&(0,n.jsx)("button",{type:"button",onClick:c,className:"w-full px-6 py-3 bg-primary text-background-dark font-bold rounded-xl hover:bg-primary-dark transition-all active:scale-95 shadow-lg shadow-primary/20",children:d})]})]})}):null}},5606:function(e,t,l){l.d(t,{CreditBanner:function(){return i}});var n=l(7573),r=l(7653);let a={extendTime:"Extend Time",getMoreTime:"Get More Time",remainingSuffix:"remaining",closeAria:"Close"};function i(e){let{credit:t,className:l="",onAction:i,labels:s}=e,o={...a,...s},[c,d]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{t.isWarning&&t.remainingSeconds>0&&d(!1)},[t.isWarning,t.remainingSeconds]),!t.isWarning&&!t.terminated||c)return null;if(t.terminated){let e=t.terminatedByCredits;return(0,n.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-3 px-4 py-3\n bg-red-500/10 border border-red-500/30 rounded-xl ".concat(l),children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-xl text-red-500",children:"error"}),(0,n.jsx)("span",{className:"text-sm font-display font-bold text-red-400",children:t.terminationMessage}),i&&t.terminatedByCredits&&(0,n.jsx)("button",{type:"button",onClick:()=>i("getMore"),className:"ml-2 px-4 py-1.5 bg-red-500 hover:bg-red-600 text-white text-sm font-bold rounded-lg transition-colors",children:o.getMoreTime}),e&&(0,n.jsx)("button",{type:"button",onClick:()=>d(!0),"aria-label":o.closeAria,className:"ml-1 p-1 rounded-lg hover:bg-white/10 text-red-400",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]})}let u=t.remainingSeconds<=60,m=0===t.remainingSeconds;return(0,n.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-3 px-4 py-3\n border rounded-xl transition-all session-credit-enter\n ".concat(u?"bg-red-500/10 border-red-500/30":"bg-primary/10 border-primary/30","\n ").concat(l),children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-xl ".concat(u?"text-red-500 animate-pulse":"text-primary"),children:"timer"}),(0,n.jsxs)("span",{className:"text-sm font-display font-bold ".concat(u?"text-red-400":"text-primary"),children:[t.countdown," ",o.remainingSuffix]}),i&&(0,n.jsx)("button",{type:"button",onClick:()=>i("extend"),className:"ml-2 px-4 py-1.5 text-sm font-bold rounded-lg transition-colors ".concat(u?"bg-red-500 hover:bg-red-600 text-white":"bg-primary/20 hover:bg-primary/30 text-primary border border-primary/40"),children:o.extendTime}),m&&(0,n.jsx)("button",{type:"button",onClick:()=>d(!0),"aria-label":o.closeAria,className:"ml-1 p-1 rounded-lg hover:bg-white/10 text-red-400",children:(0,n.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]})}},8991:function(e,t,l){l.d(t,{SessionControlBar:function(){return i}});var n=l(7573),r=l(7653);let a={listeningToSession:"Listening to session",endSession:"End Session",startSession:"Start Session"};function i(e){let{role:t,phase:l,isCapturing:i,showTimer:s=!1,startDisabled:o=!1,onStart:c,onStop:d,onToggleMic:u,className:m="",labels:x}=e,b={...a,...x},[p,h]=(0,r.useState)(0),f=(0,r.useRef)(null);(0,r.useEffect)(()=>(s&&("recording"===l||"active"===l)?f.current=setInterval(()=>h(e=>e+1),1e3):(f.current&&clearInterval(f.current),("idle"===l||"ended"===l)&&h(0)),()=>{f.current&&clearInterval(f.current)}),[l,s]);let g=(0,r.useCallback)(()=>
1{"idle"===l||"ended"===l?c():d()},[l,c,d]);if("listener"===t)return(0,n.jsxs)("div",{className:"flex items-center justify-center gap-3 px-6 py-4\n bg-surface-dark/90 backdrop-blur-lg border-t border-white/5 ".concat(m),children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-xl text-green-500",children:"hearing"}),(0,n.jsx)("span",{className:"text-sm text-text-muted font-display font-semibold",children:b.listeningToSession})]});let y="recording"===l||"active"===l;return(0,n.jsxs)("div",{className:"flex items-center justify-center gap-4 md:gap-6 px-6 py-4\n bg-surface-dark/90 backdrop-blur-lg border-t border-white/5 ".concat(m),children:[s&&(0,n.jsx)("span",{className:"text-lg font-mono text-white/60 tabular-nums min-w-[60px] text-center",children:function(e){let t=Math.floor(e/3600),l=Math.floor(e%3600/60),n=e%60;return t>0?"".concat(t,":").concat(l.toString().padStart(2,"0"),":").concat(n.toString().padStart(2,"0")):"".concat(l,":").concat(n.toString().padStart(2,"0"))}(p)}),(0,n.jsxs)("button",{type:"button",onClick:u,disabled:!y,className:"relative w-14 h-14 rounded-2xl flex items-center justify-center\n transition-all active:scale-95 disabled:opacity-40 disabled:cursor-not-allowed\n ".concat(i?"bg-red-500 text-white shadow-[0_0_20px_rgba(239,68,68,0.4)]":"bg-white/10 text-white hover:bg-white/20 border border-white/10"),children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-2xl",children:i?"mic":"mic_off"}),i&&(0,n.jsx)("span",{className:"absolute -top-1 -right-1 w-3 h-3 rounded-full bg-red-500 animate-ping"})]}),(0,n.jsx)("button",{type:"button",onClick:g,disabled:!y&&o,className:"px-6 py-3 rounded-xl font-bold font-display text-sm\n transition-all active:scale-95 disabled:opacity-40 disabled:cursor-not-allowed\n ".concat(y?"bg-red-500/10 text-red-500 border border-red-500/30 hover:bg-red-500/20":"bg-primary text-background-dark hover:bg-primary-dark shadow-lg hover:scale-105 disabled:hover:scale-100"),children:(0,n.jsxs)("span",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"material-symbols-outlined text-xl".concat(!y&&o?" animate-spin":""),children:y?"stop_circle":o?"progress_activity":"play_arrow"}),y?b.endSession:b.startSession]})})]})}},7657:function(e,t,l){l.d(t,{TranscriptPanel:function(){return i}});var n=l(7573),r=l(7653),a=l(3644);function i(e){var t,l;let{entries:i,placeholder:s="Waiting for speechâ¦",className:o="",captionStyle:c=null}=e,d=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=d.current;e&&(e.scrollTop=e.scrollHeight)},[i]);let u=(null==c?void 0:c.plateColor)!=null&&""!==c.plateColor?c.plateColor:void 0,m=c?(0,a.KV)(c.fontFamily):null;(0,r.useEffect)(()=>{m&&(0,a.ZS)(m.id)},[null==m?void 0:m.id]);let x=(null==c?void 0:c.alignH)==="start"?"text-left":(null==c?void 0:c.alignH)==="end"?"text-right":"text-center",b="leading-normal ".concat((null==c?void 0:c.bold)?"font-bold":""," ").concat((null==c?void 0:c.italic)?"italic":""),p=c?{color:c.bodyColor,fontSize:"".concat(c.fontSizePx,"px"),fontFamily:null==m?void 0:m.cssFamily}:void 0;return(0,n.jsx)("div",{className:"relative flex flex-col rounded-2xl border border-primary/30\n shadow-[0_0_30px_rgba(0,0,0,0.5)] overflow-hidden ".concat(u?"":"bg-[#0d121f]"," ").concat(o),style:u?{backgroundColor:u}:void 0,children:(0,n.jsx)("div",{ref:d,className:"session-transcript-scroll scrollbar-hide flex-1 overflow-y-auto px-6 py-8",children:c?(0,n.jsx)("div",{className:"min-h-full flex flex-col ".concat("start"===(t=c.alignV)?"justify-start":"end"===t?"justify-end":"justify-center"," ").concat("start"===(l=c.alignH)?"items-start":"end"===l?"items-end":"items-center"),children:0===i.length?(0,n.jsx)("p",{className:"".concat(x," ").concat(b),style:p,children:s}):(0,n.jsx)("div",{className:"w-full max-w-full space-y-2 ".concat(x),children:i.map(e=>(0,n.jsx)("p",{className:"animate-fade-in-up ".concat(b),style:p,children:e.text},e.id))})}):0===i.length?(0,n.jsx)("p",{className:"text-center leading-normal font-display text-white/30 text-lg italic",children:s}):(0,n.jsx)("div",{className:"max-w-3xl mx-auto flex flex-col",children:i.map(e=>(0,n.jsx)("p",{className:"leading-normal animate-fade-in-up font-display text-sm md:text-base py-1.5 border-b border-white/10 last:border-b-0 ".concat("host"===e.speech_role?"w-[95%] self-end text-left text-primary":"guest"===e.speech_role?"w-[95%] self-start text-left text-white/90":"w-full text-center text-white/90"),children:e.text},e.id))})})})}}}]);
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.