1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6698],{127:(e,t,a)=>{"use strict";a.d(t,{Eh:()=>s,RX:()=>o,V6:()=>i,Y1:()=>r,dX:()=>l});var n=a(4918);const r={YOUTUBE_CHANNEL:"YOUTUBE_CHANNEL",YOUTUBE_PLAYLIST:"YOUTUBE_PLAYLIST",DAILYMOTION_CHANNEL:"DAILYMOTION_CHANNEL",DAILYMOTION_PLAYLIST:"DAILYMOTION_PLAYLIST",VIMEO_PLAYLIST:"VIMEO_PLAYLIST",VIMEO_CHANNEL:"VIMEO_CHANNEL",GOOGLE_DRIVE:"GOOGLE_DRIVE"},o=n.fc(r),i=[{label:"YouTube Channel",value:r.YOUTUBE_CHANNEL},{label:"YouTube Playlist",value:r.YOUTUBE_PLAYLIST},{label:"Dailymotion Channel",value:r.DAILYMOTION_CHANNEL},{label:"Dailymotion Playlist",value:r.DAILYMOTION_PLAYLIST},{label:"Vimeo Playlist",value:r.VIMEO_PLAYLIST},{label:"Vimeo Channel",value:r.VIMEO_CHANNEL},{label:"Google Drive",value:r.GOOGLE_DRIVE}],s=n.Ik({id:n.Yj(),source_type:o,source_reference_id:n.Yj(),name:n.Yj(),description:n.Yj().nullable(),thumbnail_url:n.Yj().nullable(),default_sync:n.zM(),last_sync_date:n.Yj().nullable(),created:n.Yj(),updated:n.Yj(),source_media_count:n.ai()}),l=n.Ik({results:n.YO(s),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()})},11081:(e,t,a)=>{"use strict";a.d(t,{$n:()=>u,Hy:()=>s,MY:()=>c,SW:()=>l,um:()=>n});const n=["pink","orange","yellow","blue"],r="blue",o={pink:{foregroundClassName:"text-pink",backgroundClassName:"bg-pink-light",foregroundValue:"var(--pink)",backgroundValue:"var(--pink-light)"},orange:{foregroundClassName:"text-orange",backgroundClassName:"bg-orange-light",foregroundValue:"var(--orange)",backgroundValue:"var(--orange-light)"},yellow:{foregroundClassName:"text-yellow",backgroundClassName:"bg-yellow-light",foregroundValue:"var(--yellow)",backgroundValue:"var(--yellow-light)"},blue:{foregroundClassName:"text-blue",backgroundClassName:"bg-blue-light",foregroundValue:"var(--blue)",backgroundValue:"var(--blue-light)"},green:{foregroundClassName:"text-green",backgroundClassName:"bg-green-light",foregroundValue:"var(--green)",backgroundValue:"var(--green-light)"}};function i(e){return e&&e in o?e:r}function s(e){return o[i(e)].foregroundClassName}function l(e){return o[i(e)].backgroundClassName}function u(e){return o[i(e)].foregroundValue}function c(e){return Boolean(e&&e in o)}},12211:(e,t,a)=>{"use strict";a.d(t,{Hm:()=>o,Vq:()=>i,o8:()=>r});var n=a(1193);const r=6e4,o=e=>Date.now()+r>=1e3*e;function i(e,t,a,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(e===n.Xh.SuperAdmin)return!0;if(!(e&&t&&a&&r))return!1;const s=t.includes(e);var l;const u=!i||null!==(l=null==o?void 0:o.some(e=>e.feature_name===i&&1===e.feature_value))&&void 0!==l&&l;return s&&u}},12774:(e,t,a)=>{"use strict";a.d(t,{wz:()=>Y,Hx:()=>x,Dq:()=>i,as:()=>b,$w:()=>h,Rq:()=>f,GA:()=>j,XY:()=>d,a$:()=>m,Ip:()=>p,IW:()=>g,gD:()=>S,iB:()=>z,jL:()=>O,Uh:()=>E,BR:()=>C,Pq:()=>u,Of:()=>L,vz:()=>I,et:()=>k,xN:()=>l,tj:()=>y,MK:()=>v});var n=a(4918);const r=n.Ik({id:n.Yj(),name:n.Yj()}),o=n.Ik({id:n.Yj(),name:n.Yj(),subtopics:n.YO(r)}),i=n.Ik({topics:n.YO(o)});var s=a(96397);const l=n.Ik({id:n.Yj(),user_id:n.Yj(),language_code:n.Yj(),summary_type:n.Yj(),ux_layout:n.Yj().nullable().optional(),display_theme:n.Yj(),email_product_updates:n.zM(),email_security:n.zM(),product_tips:n.zM(),discover_digest:n.zM()}),u=(n.Ik({id:n.Yj().nullable().optional(),user_id:n.Yj().nullable().optional(),language_code:n.Yj(),summary_type:n.Yj().nullable().optional(),ux_layout:n.Yj().nullable().optional(),display_theme:n.Yj().nullable().optional(),email_product_updates:n.zM(),email_security:n.zM(),product_tips:n.zM(),discover_digest:n.zM()}),n.Ik({email:n.Yj(),email_product_updates:n.zM(),email_security:n.zM(),product_tips:n.zM(),discover_digest:n.zM()})),c=(n.Ik({token:n.Yj(),user_id:n.Yj().nullable().optional(),email_product_updates:n.zM(),email_security:n.zM(),product_tips:n.zM(),discover_digest:n.zM()}),n.Ik({account_id:n.Yj(),account_name:n.Yj(),user_account_role:n.Yj()})),d=(n.Ik({user_id:n.Yj(),account_id:n.Yj()}),n.Ik({user_id:n.Yj(),account_id:n.Yj(),account_name:n.Yj(),account_description:n.Yj(),account_active:n.zM(),account_user_count:n.ai(),account_role:n.Yj(),jwt_token:n.Yj(),subscription:s.xI,user_accounts:n.YO(c)})),m=(n.Ik({account_id:n.Yj(),user_id:n.Yj(),user_account_role:n.Yj()}),n.Ik({account_id:n.Yj(),user_id:n.Yj(),user_account_role:n.Yj()})),p=(n.Ik({account_id:n.Yj(),user_id:n.Yj(),user_account_status:n.Yj()}),n.Ik({account_id:n.Yj(),user_id:n.Yj(),user_account_status:n.Yj()})),_=n.Ik({id:n.Yj(),name:n.Yj(),description:n.Yj().nullable(),active:n.zM(),type:n.Yj(),user_account_role:n.Yj(),user_account_status:n.Yj()}),f=(n.Ik({user_id:n.Yj(),account_id:n.Yj()}),n.Ik({accounts:n.YO(_),account_count:n.ai()})),j=(n.Ik({user_id:n.Yj(),account_id:n.Yj()}),n.Ik({user_id:n.Yj(),account_id:n.Yj()})),Y=10,h=n.Yj().min(Y,{message:"Password must be at least ".concat(Y," characters.")}).max(100,{message:"Password must not exceed 100 characters."}).refine(e=>/[0-9]/.test(e)||/[^A-Za-z0-9]/.test(e),{message:"Password must contain at least one number or special character."}),b=n.Yj().min(6,{message:"Password must be at least 6 characters."}).max(100),g=n.Ik({id:n.Yj(),name:n.Yj(),description:n.Yj().nullable(),active:n.zM(),type:n.Yj(),user_account_role:n.Yj(),user_account_status:n.Yj()}),v=n.Ik({id:n.Yj(),email:n.Yj(),first_name:n.Yj(),last_name:n.Yj(),role:n.Yj(),active:n.zM(),created:n.Yj(),updated:n.Yj(),accounts:n.YO(g),account_count:n.ai(),jwt_token:n.Yj().nullable()}),y=n.Ik({id:n.Yj(),email:n.Yj(),first_name:n.Yj(),last_name:n.Yj(),role:n.Yj(),created:n.Yj(),updated:n.Yj(),jwt_token:n.Yj().nullable()}),k=n.Ik({id:n.Yj(),email:n.Yj(),first_name:n.Yj().nullable(),last_name:n.Yj().nullable(),role:n.Yj(),created:n.Yj(),updated:n.Yj()}),I=n.Ik({results:n.YO(k),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()}),x=(n.Ik({id:n.Yj(),email:n.Yj(),jwt_token:n.Yj(),first_name:n.Yj().nullable(),last_name:n.Yj().nullable(),role:n.Yj(),created:n.Yj()}),n.Ik({first_name:n.Yj(),last_name:n.Yj(),email:n.Yj(),password:n.Yj(),role:n.Yj()}),n.Ik({id:n.Yj().nullable(),first_name:n.Yj(),last_name:n.Yj(),email:n.Yj(),password:n.Yj(),role:n.Yj().nullable()}),n.Ik({first_name:n.Yj(),last_name:n.Yj(),email:n.Yj(),password:n.Yj(),accept_terms:n.zM(),invitation_token:n.Yj().nullable()}),n.Ik({email:n.Yj(),password:n.Yj()}),n.Ik({email:n.Yj()}),n.Ik({token:n.Yj(),password:n.Yj(),confirm_password:n.Yj()}),n.Ik({token:n.Yj(),email:n.Yj().optional()}),n.Ik({email:n.Yj().optional()}),n.Ik({id:n.Yj(),email:n.Yj(),jwt_token:n.Yj(),first_name:n.Yj().nullable(),last_name:n.Yj().nullable(),role:n.Yj(),account_id:n.Yj(),account_name:n.Yj(),account_role:n.Yj(),subscription:s.xI,preferences:l,user_accounts:n.YO(c)}),{videos_read:"videos.read",videos_write:"videos.write",transcripts_read:"transcripts.read",summaries_generate:"summaries.generate",account_read:"account.read",account_write:"account.write",admin:"admin"}),w=n.k5([x.videos_read,x.videos_write,x.transcripts_read,x.summaries_generate,x.account_read,x.account_write,x.admin]),N=n.k5(["LIVE","TEST"]),E=(n.Ik({name:n.Yj().min(5,{message:"Token name must be at least 5 characters."}).max(255),scopes:n.YO(w).min(1,{message:"Select at least one scope."}),expires_at:n.Yj().datetime().nullable().optional(),key_type:N.optional()}),n.Ik({id:n.Yj(),name:n.Yj(),scopes:n.YO(w),prefix:n.Yj(),key_type:N,legacy:n.zM(),created_at:n.Yj().datetime(),last_used_at:n.Yj().datetime().nullable(),expires_at:n.Yj().datetime().nullable(),revoked_at:n.Yj().datetime().nullable()})),S=E.extend({secret:n.Yj()}),C=n.YO(E),O=(n.Ik({user_id:n.Yj(),name:n.Yj(),permissions:n.YO(n.Yj())}),n.Ik({id:n.Yj(),user_id:n.Yj(),name:n.Yj(),permissions:n.YO(n.Yj())}),n.Ik({id:n.Yj(),user_id:n.Yj(),account_id:n.Yj().nullable(),name:n.Yj().optional().nullable(),secret_key:n.Yj().optional().nullable(),permissions:n.YO(n.Yj()),created:n.Yj(),updated:n.Yj(),last_used:n.Yj().nullable(),active:n.zM()})),z=n.Ik({results:n.YO(O),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()}),A=n.Ik({id:n.Yj(),subtopic_id:n.Yj(),subtopic_name:n.Yj()}),L=n.Ik({user_id:n.Yj(),interests:n.YO(A)})},15774:(e,t,a)=>{"use strict";a.d(t,{$:()=>c,r:()=>u});var n=a(94482),r=a(3674),o=a(43408),i=a(55340),s=a(75225),l=a(59775);const u=(0,o.F)("inline-flex items-center justify-center rounded-md shadow focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-sm text-primary-foreground shadow hover:opacity-90 font-regular rounded-full",ink:"shadow-none border-0 rounded-full text-sm font-semibold bg-[#202124] text-white hover:bg-black dark:bg-[#E5E5E6] dark:text-[#0a0b0d] dark:hover:bg-white transition-[background-color] duration-150 ease-out-quad",danger:"bg-danger text-danger-foreground shadow-sm hover:bg-danger hover:opacity-90 rounded-full",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive hover:opacity-90 rounded-full",ghost:"shadow-none text-muted-foreground rounded-full hover:bg-accent hover:text-accent-foreground hover:shadow-sm",ghostBackdrop:"shadow-none text-muted-foreground rounded-full hover:bg-backdropAccent hover:text-backdropAccentForeground hover:shadow-sm",ghostWithBorder:"shadow-none text-muted-foreground border border-transparent border-0.5 rounded-full hover:bg-secondary hover:text-accent-foreground hover:shadow-sm hover:border-border-contrast hover:border-0.5",ghostWithBorderHovered:"bg-secondary text-accent-foreground shadow-sm border border-border border-0.5 rounded-full",ghostOverlay:"shadow-none text-muted-foreground rounded-full hover:bg-secondary hover:text-accent-foreground hover:shadow-sm hover:border group-hover:bg-secondary group-hover:text-accent-foreground ",homepage:"bg-gradient-to-br from-vh-pink from-10% via-vh-light-blue via-25% to-vh-dark-blue to-65% text-primary-foreground shadow hover:opacity-90 font-regular rounded-full",pricing:"bg-primary text-primary-foreground shadow font-regular rounded-full hover:opacity-90 ",icon:"shadow-none rounded-full hover:text-accent-foreground",outline:"bg-transparent border text-muted-foreground shadow-sm rounded-full hover:bg-secondary hover:text-accent-foreground hover:border hover:border-border",outlineNoBorder:"bg-transparent border border-transparent text-muted-foreground shadow-sm rounded-full hover:bg-secondary hover:text-accent-foreground hover:border hover:border-border",link:"text-primary underline-offset-4 shadow-none hover:underline",linkSimple:"text-primary underline-offset-4 shadow-none",linkText:"text-primary underline-offset-4 shadow-none px-0 pointer-arrow",premium:"bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white border-0 rounded-full",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary hover:opacity-90 rounded-full",timestamp:"shadow-none font-regular text-base rounded text-muted-foreground outline-nonefocus:bg-primary hover:bg-primary focus:text-primary-foreground hover:text-primary-foreground",timestampNew:"shadow-none font-regular text-base rounded text-secondary-foreground outline-nonefocus:bg-secondary hover:bg-secondary focus:text-secondary-foreground hover:text-secondary-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-sm",lg:"h-10 px-4",xl:"h-12 px-6",icon:"h-8 w-8 rounded-lg p-0",iconLarge:"h-10 w-10 rounded-lg p-0",iconSmall:"h-4 w-4 roun
1ded-lg p-0",timestamp:"h-7 rounded-md px-2",link:"px-0"},slant:{none:"",start:"relative slanted-start",end:"relative slanted-end",both:"relative slanted-both"}},defaultVariants:{variant:"default",size:"default",slant:"none"}}),c=r.forwardRef((e,t)=>{let{className:a,variant:r,size:o,asChild:c=!1,isSubmitting:d=!1,isAnimated:m,...p}=e;const _=c?i.DX:"button";return(0,n.jsxs)(_,{className:(0,s.cn)(u({variant:r,size:o,className:a}),m&&"motion-safe:animate-pulse transition-all duration-2000"),ref:t,disabled:d,...p,children:[d&&(0,n.jsx)(l.K,{}),p.children]})});c.displayName="Button"},23103:(e,t,a)=>{"use strict";function n(e,t){let a;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return clearTimeout(a),new Promise(n=>{a=setTimeout(()=>{n(e.apply(this,r))},t)})}}a.d(t,{s:()=>n})},23646:(e,t,a)=>{"use strict";a.d(t,{J:()=>u});var n=a(94482),r=a(3674),o=a(44656),i=a(43408),s=a(75225);const l=(0,i.F)("text-sm font-regular leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),u=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,n.jsx)(o.b,{ref:t,className:(0,s.cn)(l(),a),...r})});u.displayName=o.b.displayName},24004:(e,t,a)=>{"use strict";a.d(t,{$Z:()=>s,UB:()=>i,hj:()=>o});const n="vh_signup_attr",r=86400;function o(e){if("undefined"==typeof document)return;const t=encodeURIComponent(JSON.stringify(e)),a="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(n,"=").concat(t,"; path=/; max-age=").concat(r,"; SameSite=Lax").concat(a)}function i(){if("undefined"==typeof document)return null;const e=document.cookie.split("; ").find(e=>e.startsWith("".concat(n,"=")));if(!e)return null;try{return JSON.parse(decodeURIComponent(e.substring(n.length+1)))}catch(e){return null}}function s(){"undefined"!=typeof document&&(document.cookie="".concat(n,"=; path=/; max-age=0; SameSite=Lax"))}},24876:(e,t,a)=>{"use strict";a.d(t,{C1:()=>k,bL:()=>v});var n=a(3674),r=a(25003),o=a(27359),i=a(37339),s=a(45776),l=a(87132),u=a(33772),c=a(19032),d=a(40721),m=a(94482),p="Checkbox",[_,f]=(0,o.A)(p),[j,Y]=_(p);function h(e){const{__scopeCheckbox:t,checked:a,children:r,defaultChecked:o,disabled:i,form:l,name:u,onCheckedChange:c,required:d,value:_="on",internal_do_not_use_render:f}=e,[Y,h]=(0,s.i)({prop:a,defaultProp:null!=o&&o,onChange:c,caller:p}),[b,g]=n.useState(null),[v,y]=n.useState(null),k=n.useRef(!1),I=!b||!!l||!!b.closest("form"),x={checked:Y,disabled:i,setChecked:h,control:b,setControl:g,name:u,form:l,value:_,hasConsumerStoppedPropagationRef:k,required:d,defaultChecked:!N(o)&&o,isFormControl:I,bubbleInput:v,setBubbleInput:y};return(0,m.jsx)(j,{scope:t,...x,children:w(f)?f(x):r})}var b="CheckboxTrigger",g=n.forwardRef((e,t)=>{let{__scopeCheckbox:a,onKeyDown:o,onClick:s,...l}=e;const{control:u,value:c,disabled:p,checked:_,required:f,setControl:j,setChecked:h,hasConsumerStoppedPropagationRef:g,isFormControl:v,bubbleInput:y}=Y(b,a),k=(0,r.s)(t,j),I=n.useRef(_);return n.useEffect(()=>{const e=null==u?void 0:u.form;if(e){const t=()=>h(I.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,h]),(0,m.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":N(_)?"mixed":_,"aria-required":f,"data-state":E(_),"data-disabled":p?"":void 0,disabled:p,value:c,...l,ref:k,onKeyDown:(0,i.mK)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.mK)(s,e=>{h(e=>!!N(e)||!e),y&&v&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())})})});g.displayName=b;var v=n.forwardRef((e,t)=>{const{__scopeCheckbox:a,name:n,checked:r,defaultChecked:o,required:i,disabled:s,value:l,onCheckedChange:u,form:c,...d}=e;return(0,m.jsx)(h,{__scopeCheckbox:a,checked:r,defaultChecked:o,disabled:s,required:i,onCheckedChange:u,name:n,form:c,value:l,internal_do_not_use_render:e=>{let{isFormControl:n}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(g,{...d,ref:t,__scopeCheckbox:a}),n&&(0,m.jsx)(x,{__scopeCheckbox:a})]})}})});v.displayName=p;var y="CheckboxIndicator",k=n.forwardRef((e,t)=>{const{__scopeCheckbox:a,forceMount:n,...r}=e,o=Y(y,a);return(0,m.jsx)(c.C,{present:n||N(o.checked)||!0===o.checked,children:(0,m.jsx)(d.sG.span,{"data-state":E(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});k.displayName=y;var I="CheckboxBubbleInput",x=n.forwardRef((e,t)=>
1{let{__scopeCheckbox:a,...o}=e;const{control:i,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:p,required:_,disabled:f,name:j,value:h,form:b,bubbleInput:g,setBubbleInput:v}=Y(I,a),y=(0,r.s)(t,v),k=(0,l.Z)(c),x=(0,u.X)(i);n.useEffect(()=>{const e=g;if(!e)return;const t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked").set,n=!s.current;if(k!==c&&a){const t=new Event("click",{bubbles:n});e.indeterminate=N(c),a.call(e,!N(c)&&c),e.dispatchEvent(t)}},[g,k,c,s]);const w=n.useRef(!N(c)&&c);return(0,m.jsx)(d.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=p?p:w.current,required:_,disabled:f,name:j,value:h,form:b,...o,tabIndex:-1,ref:y,style:{...o.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function w(e){return"function"==typeof e}function N(e){return"indeterminate"===e}function E(e){return N(e)?"indeterminate":e?"checked":"unchecked"}x.displayName=I},25868:(e,t,a)=>{"use strict";a.d(t,{Sj:()=>i,Tv:()=>s,z5:()=>o});var n=a(12211),r=a(78954);function o(e){return!("number"==typeof e&&Number.isFinite(e)&&e>0)||(0,n.Hm)(e)}function i(e){if("string"!=typeof e)return null;const t=e.trim();return/^\/(?![/\\])/.test(t)?t:null}function s(e){const t=i(e);return null===t?r.jS:"".concat(r.MY).concat(encodeURIComponent(t))}},33772:(e,t,a)=>{"use strict";a.d(t,{X:()=>o});var n=a(3674),r=a(36822);function o(e){const[t,a]=n.useState(void 0);return(0,r.N)(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let r,o;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;a({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}a(void 0)},[e]),t}},42676:(e,t,a)=>{"use strict";a.d(t,{B3:()=>N.B3,IN:()=>w.I,PH:()=>i,j6:()=>g,fO:()=>y,wK:()=>w.w,a8:()=>n,BC:()=>k,$H:()=>N.$H,yv:()=>N.yv,a2:()=>N.a2,R:()=>v,X5:()=>I,y2:()=>x,w4:()=>N.w4,cv:()=>N.cv,iv:()=>N.iv,td:()=>r,wf:()=>_});const n=e=>e&&"unknown"===e?"":(e||(e="en"),new Intl.DisplayNames(["en"],{type:"language"}).of(e));function r(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"".concat(t,"s");return 1===e?t:a}const o=a(6277).MM.map(e=>({language:n(e),language_code:e})),i=e=>{let t=[];return null!==e&&e.length>0&&(t=[...e]),0===t.length?t=[...o]:o.forEach(a=>{e.some(e=>e.language_code===a.language_code)||t.push({language_code:a.language_code,language:a.language,is_generated:!1})}),t.sort((e,t)=>e.language.localeCompare(t.language)),t};var s=a(23103),l=a(11081);const u=new RegExp([/\*\*Section Overview:\*\*/g,/Note: The transcript was already in English./g].map(e=>e.source).join("|"),"g"),c=/\[\]\[t=(\d+s?)\]/g,d=/\[(t=\d+s)\]/g,m=/New Section/g,p=/\[([^\]]*)\]\((t=\d+s?)\)/g,_=e=>e.replace(u,"").replace(c,"[](t=$1)").replace(d,"[]($1)").replace(m,"...").replace(p,(e,t,a)=>(a.endsWith("s")||(a+="s"),t&&""!==t?t.replace(/[^0-9:\.]/g,"").length/t.length>=.5?"[](".concat(a,")"):"[](".concat(a,") ").concat(t):"[](".concat(a,")"))),f=/t=\s*(\d+)\s*:\s*(\d+)\s*:\s*(\d+)/,j=/t=\s*(\d+)\s*:\s*(\d+)(?:&|$)/,Y=/t=\s*(\d+)s/,h=/t=\s*(\d+)\s*\.\s*(\d+)\s*\.\s*(\d+)s/,b=/t=\s*(\d+)(?:&|$)/,g=e=>{let t;if(t=e.match(f))return 3600*parseInt(t[1])+60*parseInt(t[2])+parseInt(t[3]);if(t=e.match(j))return 60*parseInt(t[1])+parseInt(t[2]);if(t=e.match(Y))return parseInt(t[1]);if(t=e.match(h)){const e=parseInt(t[3]),a=e<100?e/100:e/1e3;return 60*parseInt(t[1])+parseInt(t[2])+a}return(t=e.match(b))?parseInt(t[1]):-1},v=((0,s.s)(_,25),e=>e&&e.color?"".concat((0,l.SW)(e.color)," rounded-sm px-1 -mx-1"):""),y=e=>e&&e.start_summary_segment_id?"underline decoration-dotted underline-offset-[3px] decoration-1":"",k=e=>e&&e.start_summary_segment_id?"underline decoration-dotted underline-offset-[3px] decoration-1":"";function I(e,t,a,n){let r=!1;return e>a&&(r=!0),e===a&&t>n&&(r=!0),r}function x(e,t,a,n){let r=!1;return e>a&&(r=!0),e===a&&t>=n&&(r=!0),r}var w=a(75028),N=a(57181)},47511:(e,t,a)=>{"use strict";a.d(t,{S:()=>l});var n=a(94482),r=a(3674),o=a(24876),i=a(75225),s=a(63634);const l=r.forwardRef((e,t)=>
1{let{className:a,...r}=e;return(0,n.jsx)(o.bL,{ref:t,className:(0,i.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary hover:shadow focus-visible:outline-none focus-visible:ring focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...r,children:(0,n.jsx)(o.C1,{className:(0,i.cn)("flex items-center justify-center text-current"),children:(0,n.jsx)(s.F.check,{className:"h-4 w-4","aria-hidden":"true"})})})});l.displayName=o.bL.displayName},48164:(e,t,a)=>{"use strict";a.d(t,{B3:()=>d,Jk:()=>c,a8:()=>i,fR:()=>s,oY:()=>o,rk:()=>l});var n=a(6277),r=a(95194);const o="summary:type",i="summary:layout";function s(e){return e===r.Zf.DEFAULT||e===r.Zf.COMPRESSED}function l(e){return e===n.Sv.Summary||e===n.Sv.Research}function u(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);if("string"==typeof t)return t}catch(e){}return e}function c(e,t,a){if(s(e))return e;if("string"==typeof e&&e.length>0)return r.Zf.DEFAULT;const n=u(t);return s(n)?n:s(a)?a:r.Zf.DEFAULT}function d(e,t,a){if(l(e))return e;const r=u(t);return l(r)?r:l(a)?a:n.Sv.Summary}},53645:(e,t,a)=>{"use strict";a.d(t,{Y1:()=>n.Y1,lC:()=>d.lC,gL:()=>d.gL,dX:()=>n.dX,Eh:()=>n.Eh,V6:()=>n.V6});var n=a(127),r=a(4918);const o=r.k5(["YOUTUBE_CHANNEL","YOUTUBE_PLAYLIST"]),i=r.Ik({source_reference_id:r.Yj(),canonical_handle:r.Yj().nullable().optional(),source_type:r.eu("YOUTUBE_CHANNEL"),name:r.Yj(),description:r.Yj().nullable().optional(),thumbnail_url:r.Yj().nullable().optional(),total_video_count:r.ai(),summarized_video_count:r.ai(),latest_video_date:r.Yj().nullable().optional()}),s=(r.Ik({results:r.YO(i),page_number:r.ai(),page_size:r.ai(),total_count:r.ai(),total_pages:r.ai()}),r.Ik({source_reference_id:r.Yj(),source_type:r.eu("YOUTUBE_PLAYLIST"),name:r.Yj(),description:r.Yj().nullable().optional(),thumbnail_url:r.Yj().nullable().optional(),total_video_count:r.ai(),summarized_video_count:r.ai(),latest_video_date:r.Yj().nullable().optional()})),l=(r.Ik({results:r.YO(s),page_number:r.ai(),page_size:r.ai(),total_count:r.ai(),total_pages:r.ai()}),r.Ik({media_reference_id:r.Yj(),media_title:r.Yj(),media_thumbnail_url:r.Yj().nullable().optional(),media_duration:r.ai().nullable().optional(),published_at:r.Yj().nullable().optional(),has_summary:r.zM(),order_in_source:r.ai().nullable().optional()})),u=r.Ik({results:r.YO(l),page_number:r.ai(),page_size:r.ai(),total_count:r.ai(),total_pages:r.ai()}),c=(r.Ik({source_reference_id:r.Yj(),canonical_handle:r.Yj().nullable().optional(),source_type:o,name:r.Yj(),description:r.Yj().nullable().optional(),thumbnail_url:r.Yj().nullable().optional(),total_video_count:r.ai(),summarized_video_count:r.ai(),videos:u}),r.Ik({results:r.YO(l),page_number:r.ai(),page_size:r.ai(),total_count:r.ai(),total_pages:r.ai()}),r.Ik({source_reference_id:r.Yj(),canonical_handle:r.Yj().nullable().optional(),source_type:o,name:r.Yj(),summarized_video_count:r.ai(),latest_video_date:r.Yj().nullable().optional()}));r.Ik({sources:r.YO(c),total_count:r.ai()});var d=a(89182)},55340:(e,t,a)=>{"use strict";var n;a.d(t,{DX:()=>d,TL:()=>c});var r=a(3674),o=a(25003),i=a(94482),s=Symbol.for("react.lazy"),l=(n||(n=a.t(r,2)))[" use ".trim().toString()];function u(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t;var t}function c(e){const t=m(e),a=r.forwardRef((e,a)=>{let{children:n,...o}=e;u(n)&&"function"==typeof l&&(n=l(n._payload));const s=r.Children.toArray(n),c=s.find(_);if(c){const e=c.props.children,n=s.map(t=>t===c?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t);return(0,i.jsx)(t,{...o,ref:a,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,i.jsx)(t,{...o,ref:a,children:n})});return a.displayName=`${e}.Slot`,a}var d=c("Slot");function m(e){const t=r.forwardRef((e,t)=>{let{children:a,...n}=e;if(u(a)&&"function"==typeof l&&(a=l(a._payload)),r.isValidElement(a)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}(a),i=function(e,t){const a={...t};for(const n in t){const r=e[n],o=t[n];/^on[A-Z]/.test(n)?r&&o?a[n]=(...e)=>{const t=o(...e);return r(...e),t}:r&&(a[n]=r):"style"===n?a[n]={...r,...o}
1:"className"===n&&(a[n]=[r,o].filter(Boolean).join(" "))}return{...e,...a}}(n,a.props);return a.type!==r.Fragment&&(i.ref=t?(0,o.t)(t,e):e),r.cloneElement(a,i)}return r.Children.count(a)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p=Symbol("radix.slottable");function _(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===p}},57181:(e,t,a)=>{"use strict";a.d(t,{$H:()=>j,B3:()=>m,Y8:()=>d,a2:()=>Y,cO:()=>p,cv:()=>l,iv:()=>s,mU:()=>c,w4:()=>u,yv:()=>f});var n=a(78954),r=(a(69995),a(48164)),o=a(53645),i=a(6277);const s=e=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[0-9a-fA-F][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(e),l=e=>/^[a-zA-Z0-9_-]{20,}$/.test(e),u=e=>/^[a-z]{2}(-[A-Z]{2,3}|\d{3}|[a-zA-Z]{4,})?$/.test(e),c=e=>{const t=(e=e.trim()).match(/^https?:\/\/(?:www\.youtube(?:-nocookie)?\.com\/|m\.youtube\.com\/|youtube\.com\/)?(?:ytscreeningroom\?vi?=|youtu\.be\/|vi?\/|user\/.+\/u\/\w{1,2}\/|embed\/|watch\?(?:.*&)?vi?=|&vi?=|\?(?:.*&)?vi?=|(?:.*\/)?live\/|shorts\/)([^#&?\n\/<>"']*)/i);var a;const n=null!==(a=e.match(/(?:\?|&)list=([^#&?\n\/<>"']*)/i))&&void 0!==a?a:e.match(/youtube\.com\/show\/VL([A-Za-z0-9_-]+)/i),r=e.match(/youtube\.com\/channel\/(UC[a-zA-Z0-9_-]+)/i),o=e.match(/youtube\.com\/(?:c\/|@)([a-zA-Z0-9_-]+)(?:\/|$|\?)/i),i=/^[A-Za-z0-9_-]{11}$/;let s=null;if(t){const e=t[1];i.test(e)&&"videoseries"!==e&&(s=e)}let l=null;r?l=r[1]:o&&(l=o[1],l&&!l.startsWith("@")&&(l="@"+l));const u=e.match(/vimeo\.com\/(?:.*?\/)*(\d+)(?:\/([a-zA-Z0-9]+))?/i),c=e.match(/vimeo\.com\/showcase\/(\d+)/i),d=e.match(/vimeo\.com\/(?:manage\/)?showcases?\/(\d+)\/videos\/(\d+)/i);let m=null,p=null;d&&(m=d[1],p=d[2]);const _=u?u[2]?"".concat(u[1],"-").concat(u[2]):u[1]:p,f=c?c[1]:m,j=e.match(/(?:dailymotion\.com\/video\/|dai\.ly\/|dailymotion\.com\/embed\/video\/)([a-zA-Z0-9]+)(?:_[a-zA-Z]{2})?(?=\?|$)/i),Y=e.match(/dailymotion\.com\/playlist\/([a-zA-Z0-9]+)(?=\?|#|$)/i),h=e.match(/dailymotion\.com\/(?:channel\/)?((?!(video|embed|playlist)\/)[a-zA-Z0-9_]+)(?=\/|$|\?|#)/i),b=j?j[1]:null,g=Y?Y[1]:null,v=h?h[1]:null;return{youTubeVideoId:s,youTubePlaylistId:n?n[1]:null,youTubeChannel:l,vimeoVideoId:_,vimeoPlaylistId:f,dailymotionVideoId:b,dailymotionPlaylistId:g,dailymotionChannel:v}},d=e=>{if(!e)return"";const t=e.indexOf("-");if(-1===t)return"https://vimeo.com/".concat(e);const a=e.slice(0,t),n=e.slice(t+1);return"https://vimeo.com/".concat(a,"/").concat(n)},m=(e,t)=>{if(!e||!t)return"";switch(t){case o.Y1.YOUTUBE_PLAYLIST:return"https://www.youtube.com/playlist?list=".concat(e);case o.Y1.YOUTUBE_CHANNEL:return"https://www.youtube.com/".concat(e,"/videos");case o.Y1.DAILYMOTION_PLAYLIST:return"https://www.dailymotion.com/playlist/".concat(e);case o.Y1.DAILYMOTION_CHANNEL:return"https://www.dailymotion.com/channel/".concat(e);case o.Y1.VIMEO_PLAYLIST:return"https://vimeo.com/showcase/".concat(e);case o.Y1.VIMEO_CHANNEL:return"https://vimeo.com/".concat(e);default:return""}},p=(e,t,a,n,r)=>"".concat(e,"/").concat(t,"?mediaType=").concat(a,"&language=").concat(n,"&summaryType=").concat(r),_=()=>{try{return window.localStorage.getItem(r.a8)}catch(e){return null}},f=e=>{var t,a;return(0,r.B3)(void 0,_(),null==e||null===(a=e.user)||void 0===a||null===(t=a.preferences)||void 0===t?void 0:t.ux_layout)===i.Sv.Research?n.tx:n.WU},j=e=>{var t,a;return(0,r.B3)(void 0,_(),null==e||null===(a=e.user)||void 0===a||null===(t=a.preferences)||void 0===t?void 0:t.ux_layout)===i.Sv.Research?i.Sv.Research:i.Sv.Summary},Y=e=>{var t,a;return(0,r.Jk)(void 0,(()=>{try{return window.localStorage.getItem(r.oY)}catch(e){return null}})(),null==e||null===(a=e.user)||void 0===a||null===(t=a.preferences)||void 0===t?void 0:t.summary_type)}},59775:(e,t,a)=>{"use strict";a.d(t,{K:()=>o});var n=a(94482),r=a(50102);const o=()=>(0,n.jsx)("div",{className:"flex items-center justify-center",children:(0,n.jsx)(r.LoaderOvalIcon,{className:"h-3.5 w-3.5 mr-2"})})},65526:(e,t,a)=>{"use strict";a.d(t,{SignupAttributionCapture:()=>l});var n=a(3674),r=a(55019),o=a(93644),i=a(24004);const s=["source","video","channel","lang","callbackUrl","utm_source","utm_medium","utm_campaign","utm_content","utm_term"];function l(){const e=(0,r.useSearchParams)();return(0,n.useEffect)(()=>
1{if(!e)return;const t={};for(const a of s){const n=e.get(a);n&&(t[a]=n)}"undefined"!=typeof document&&document.referrer&&(t.referrer=document.referrer),0!==Object.keys(t).length&&((0,i.hj)(t),(0,o.TA)("signupPageView",t))},[e]),null}},75028:(e,t,a)=>{"use strict";a.d(t,{I:()=>r,w:()=>n});const n=()=>(new Date).toISOString().slice(0,10),r=e=>null==e||isNaN(e)||e<0?"":[Math.floor(e/3600),Math.floor(e%3600/60),Math.floor(e%60)].map(e=>e.toString().padStart(2,"0")).join(":").replace(/^00:/,"")},75714:(e,t,a)=>{"use strict";a.d(t,{C5:()=>h,MJ:()=>j,Rr:()=>Y,eI:()=>_,lR:()=>f,lV:()=>u,zB:()=>d});var n=a(94482),r=a(3674),o=a(55340),i=a(44341),s=a(75225),l=a(23646);const u=i.Op,c=r.createContext({}),d=e=>{let{...t}=e;return(0,n.jsx)(c.Provider,{value:{name:t.name},children:(0,n.jsx)(i.xI,{...t})})},m=()=>{const e=r.useContext(c),t=r.useContext(p),{getFieldState:a,formState:n}=(0,i.xW)(),o=a(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:"".concat(s,"-form-item"),formDescriptionId:"".concat(s,"-form-item-description"),formMessageId:"".concat(s,"-form-item-message"),...o}},p=r.createContext({}),_=r.forwardRef((e,t)=>{let{className:a,...o}=e;const i=r.useId();return(0,n.jsx)(p.Provider,{value:{id:i},children:(0,n.jsx)("div",{ref:t,className:(0,s.cn)("space-y-2",a),...o})})});_.displayName="FormItem";const f=r.forwardRef((e,t)=>{let{className:a,...r}=e;const{error:o,formItemId:i}=m();return(0,n.jsx)(l.J,{ref:t,className:(0,s.cn)(o&&"text-destructive",a),htmlFor:i,...r})});f.displayName="FormLabel";const j=r.forwardRef((e,t)=>{let{...a}=e;const{error:r,formItemId:i,formDescriptionId:s,formMessageId:l}=m();return(0,n.jsx)(o.DX,{ref:t,id:i,"aria-describedby":r?"".concat(s," ").concat(l):"".concat(s),"aria-invalid":!!r,...a})});j.displayName="FormControl";const Y=r.forwardRef((e,t)=>{let{className:a,...r}=e;const{formDescriptionId:o}=m();return(0,n.jsx)("p",{ref:t,id:o,className:(0,s.cn)("text-[0.8rem] text-muted-foreground",a),...r})});Y.displayName="FormDescription";const h=r.forwardRef((e,t)=>{let{className:a,children:r,...o}=e;const{error:i,formMessageId:l}=m(),u=i?String(null==i?void 0:i.message):r;return u?(0,n.jsx)("p",{ref:t,id:l,className:(0,s.cn)("text-xs font-medium text-destructive",a),...o,children:u}):null});h.displayName="FormMessage"},77071:(e,t,a)=>{"use strict";a.d(t,{a1:()=>Y,Lz:()=>j,VR:()=>c,G6:()=>d,CI:()=>m,_q:()=>f,hK:()=>_,jb:()=>p,mf:()=>u});var n=a(77990);function r(e){return{method:"POST",body:null!=e?e:{}}}var o=a(6170),i=a(3674);function s(e){if(!(null==e?void 0:e.session)||!(null==e?void 0:e.user))return null;const{session:t,user:a}=e,n=t.expiresAt instanceof Date?t.expiresAt:new Date(t.expiresAt);return Number.isNaN(n.getTime())||n.getTime()<=Date.now()?null:{user:{id:a.id,email:a.email,name:null!==(r=a.name)&&void 0!==r?r:[a.firstName,a.lastName].filter(Boolean).join(" "),image:null!==(o=a.image)&&void 0!==o?o:null,firstName:null!==(i=a.firstName)&&void 0!==i?i:null,lastName:null!==(s=a.lastName)&&void 0!==s?s:null,role:a.role,accountId:a.accountId,accountName:a.accountName,accountRole:a.accountRole,jwtToken:t.jwtToken,subscription:null!==(l=a.subscription)&&void 0!==l?l:null,preferences:null!==(u=a.preferences)&&void 0!==u?u:null,userAccounts:null!==(c=a.userAccounts)&&void 0!==c?c:[],googleId:a.googleId},jwtToken:t.jwtToken,expBackend:t.expBackend,error:t.authError,expires:n.toISOString()};var r,o,i,s,l,u,c}const l=(0,n.M)({plugins:[(0,o.Z)()]});function u(){const{data:e,isPending:t,refetch:a}=l.useSession(),n=(0,i.useMemo)(()=>s(e),[e]);return{data:n,status:t?"loading":n?"authenticated":"unauthenticated",update:async()=>(await a(),s((await l.getSession()).data))}}async function c(e,t){const{data:a,error:n}=await l.$fetch("/sign-in/backend",{method:"POST",body:{email:e,password:t}});var r,o;return n||!a?{ok:!1,error:null!==(r=null==n?void 0:n.message)&&void 0!==r?r:"Authentication failed",status:null!==(o=null==n?void 0:n.status)&&void 0!==o?o:500}:{ok:!0,status:200}}async function d(e){const{data:t,error:a}=await l.$fetch("/vh/sign-in/google",{method:"POST",body:e?{callbackURL:e}:{}});var n;if(a||!(null==t?void 0:t.url))throw new Error(null!==(n=null==a?void 0:a.message)&&void 0!==n?n:"Could not start Google sign-in");window.location.href=t.url}async function m(e){await l.signOut(),e&&(window.location.href=e)}async function p(e,t,a){return l.$fetch("/vh/update-profile",r({firstName:e,lastName:t,jwtToken:a}))}async function _(e){return l.$fetch("/vh/switch-account",r(e))}async function f(e){return l.$fetch("/vh/update-account-name",r({accountName:e}))}async function j(){return l.$fetch("/vh/refresh-subscription",r())}async function Y(){return l.$fetch("/vh/refresh-preferences",r())}},84998:(e,t,a)=>{"use strict";a.d(t,{LoginButton:()=>u});
1var n=a(94482),r=(a(3674),a(55142)),o=a.n(r),i=a(78954),s=a(15774),l=a(75225);function u(e){let{className:t}=e;return(0,n.jsx)(o(),{href:i.jS,className:(0,l.cn)((0,s.r)({variant:"ghost"}),"absolute right-4 top-4 md:right-8 md:top-8"),children:"Log in"})}},87132:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(3674);function r(e){const t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},89182:(e,t,a)=>{"use strict";a.d(t,{DK:()=>o,c2:()=>s,gL:()=>r,lC:()=>i});var n=a(4918);const r={OFF:"OFF",ON:"ON",PAUSED:"PAUSED",SYNC_IN_PROGRESS:"SYNC_IN_PROGRESS",ERROR:"ERROR"},o=n.fc(r),i={PENDING:"PENDING",SUCCESS:"SUCCESS",FAILED:"FAILED",UNKNOWN:"UNKNOWN"},s=n.fc(i)},93088:(e,t,a)=>{"use strict";a.d(t,{D:()=>l,p:()=>s});var n=a(94482),r=a(3674),o=a(75225),i=a(63634);const s=r.forwardRef((e,t)=>{let{className:a,type:r,...i}=e;return(0,n.jsx)("input",{type:r,className:(0,o.cn)("flex h-9 w-full rounded-full border border-input bg-background px-4 py-1 text-sm shadow-sm transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-75",a),ref:t,...i})});s.displayName="Input";const l=r.forwardRef((e,t)=>{let{className:a,type:r,...s}=e;return(0,n.jsxs)("div",{className:"flex items-center w-full",children:[(0,n.jsx)(i.F.search,{className:"mr-2 h-5 w-5 shrink-0 opacity-50 text-muted-foreground","aria-hidden":"true"}),(0,n.jsx)("input",{type:r,autoCorrect:"off",className:(0,o.cn)("flex h-10 w-full rounded-md py-3 text-sm outline-none bg-transparent text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",a),ref:t,...s})]})});l.displayName="Input"},95179:(e,t,a)=>{"use strict";a.d(t,{RegisterForm:()=>z});var n=a(94482),r=a(3674),o=a(73744),i=a(55142),s=a.n(i),l=a(77071),u=a(44341),c=a(55019),d=a(4918),m=a(43297),p=a(78954),_=a(15774),f=a(47511),j=a(75225),Y=a(75714),h=a(91490),b=a(71809),g=a(25868);const v="/account/resend-email-verification";var y=a(93088),k=a(42676),I=a(75589),x=a(60791),w=a(24004),N=a(93644),E=a(12774),S=a(79584);const C=d.Ik({firstName:d.Yj().min(1,{message:"First name must be at least 1 character."}).max(30,{message:"First name must not be longer than 30 characters."}),lastName:d.Yj().min(1,{message:"Last name must be at least 1 character."}).max(30,{message:"Last name must not be longer than 30 characters."}),email:d.Yj().min(5,{message:"Email must be at least 5 characters."}).max(100,{message:"Email must not be longer than 100 characters."}).email("Please enter a valid email address."),password:E.$w,acceptTerms:d.zM().refine(e=>e,{message:"You must accept the terms and conditions in order to continue."})}),O={firstName:"",lastName:"",email:"",password:""};function z(){const e=p.JF,[t,a]=(0,r.useState)(!1),[i,d]=(0,r.useState)(!0),[z,A]=(0,r.useState)(null),[L,M]=(0,r.useState)(!1),[R,P]=(0,r.useState)(!1),T=(0,c.useRouter)(),U=(0,c.usePathname)(),D=(0,c.useSearchParams)(),{toast:B}=(0,S.dj)(),F=(0,u.mN)({resolver:(0,m.u)(C),defaultValues:O,mode:"onChange"}),{trigger:V}=F;return(0,r.useEffect)(()=>{if(L)return;let e=null;(null==D?void 0:D.get("token"))&&(e=D.get("token"),A(D.get("token")));let t=null;(null==D?void 0:D.get("email"))&&(t=D.get("email")||""),e&&(0,k.iv)(e)&&(M(!0),t&&(P(!0),F.setValue("email",t)),B({description:I.D.userRegisterValidRegistrationCodeConfirmation.message,icon:I.D.userRegisterValidRegistrationCodeConfirmation.icon}))},[D]),(0,r.useEffect)(()=>{L&&T&&U&&T.replace(U)},[L]),(0,n.jsxs)(n.Fragment,{children:[i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"h-4"}),(0,n.jsxs)("button",{type:"button",className:(0,j.cn)((0,_.r)({variant:"default"}),"flex items-center justify-center gap-2"),onClick:()=>{a(!0),(0,l.G6)((null==D?void 0:D.get("callbackUrl"))||p.JF).catch(()=>{a(!1)})},disabled:t,children:[(0,n.jsx)("svg",{className:"h-4 w-4","aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"google",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488 512",children:(0,n.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"})}),"Sign up with Google"]}),(0,n.jsx)("div",{className:"h-2"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,n.jsx)("span",{className:"w-full border-t"})}),(0,n.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,n.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with"})})]})]}),(0,n.jsx)(Y.lV,{...F,children:(0,n.jsx)("form",{onSubmit:F.handleSubmit(async function(t){a(!0);try{const a={first_name:t.firstName,last_name:t.lastName,email:t.email,password:t.password,accept_terms:t.acceptTerms,invitation_token:z},r=await o.A.post("/api/users/signup",a,{headers:(0,b.Tf)()});
1if(200===r.status){var n;(0,N.TA)("signupCompleted",{method:"credentials",...null!==(n=(0,w.UB)())&&void 0!==n?n:{}}),B({description:I.D.userRegisterConfirmation.message,icon:I.D.userRegisterConfirmation.icon}),T.push(function(e){const t=(0,g.Sj)(e.callbackUrl);if(e.hasInvitationToken)return null!=t?t:e.appFallback;const a=new URLSearchParams;t&&a.set("callbackUrl",t),e.email&&a.set("email",e.email);const n=a.toString();return n?"".concat(v,"?").concat(n):v}({callbackUrl:null==D?void 0:D.get("callbackUrl"),email:t.email,hasInvitationToken:Boolean(z),appFallback:e}))}else{const e=await r.data;422===r.status?B({description:I.D.userRegisterEmailAlreadyInUseError.message,variant:I.D.userRegisterEmailAlreadyInUseError.variant,icon:I.D.userRegisterEmailAlreadyInUseError.icon}):401===r.status?B({description:"Unauthorized.",variant:"error",icon:"error"}):403===r.status?B({description:e||"Forbidden.",variant:"error",icon:"error"}):B({description:e,variant:"error",icon:"error"})}}catch(e){const t=(0,h.Es)(e),a=(0,h.Ej)(e);if(422===t)B({description:I.D.userRegisterEmailAlreadyInUseError.message,variant:I.D.userRegisterEmailAlreadyInUseError.variant,icon:I.D.userRegisterEmailAlreadyInUseError.icon});else if(401===t){var r;B({description:(null==a||null===(r=a.details)||void 0===r?void 0:r.message)||"Unauthorized.",variant:"error",icon:"error"})}else if(403===t){var i;B({description:(null==a||null===(i=a.details)||void 0===i?void 0:i.message)||"Forbidden.",variant:"error",icon:"error"})}else{const t=(0,h.u1)(e);B({description:t,variant:"error",icon:"error"})}return null}finally{a(!1)}}),className:"space-y-5 py-8",children:(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)(Y.zB,{control:F.control,name:"firstName",render:e=>{let{field:t}=e;return(0,n.jsxs)(Y.eI,{children:[(0,n.jsx)(Y.lR,{children:"First Name"}),(0,n.jsx)(Y.MJ,{children:(0,n.jsx)(y.p,{...t,className:"rounded-full"})}),(0,n.jsx)(Y.C5,{})]})}}),(0,n.jsx)(Y.zB,{control:F.control,name:"lastName",render:e=>{let{field:t}=e;return(0,n.jsxs)(Y.eI,{children:[(0,n.jsx)(Y.lR,{children:"Last Name"}),(0,n.jsx)(Y.MJ,{children:(0,n.jsx)(y.p,{...t,className:"rounded-full"})}),(0,n.jsx)(Y.C5,{})]})}}),(0,n.jsx)(Y.zB,{control:F.control,name:"email",render:e=>{let{field:t}=e;return(0,n.jsxs)(Y.eI,{children:[(0,n.jsx)(Y.lR,{children:"Email"}),(0,n.jsx)(Y.MJ,{children:(0,n.jsx)(y.p,{...t,disabled:R,className:"rounded-full"})}),(0,n.jsx)(Y.C5,{})]})}}),(0,n.jsx)(Y.zB,{control:F.control,name:"password",render:e=>{let{field:t}=e;return(0,n.jsxs)(Y.eI,{children:[(0,n.jsx)(Y.lR,{children:"Password"}),(0,n.jsx)(Y.MJ,{children:(0,n.jsx)(y.p,{...t,type:"password",onChange:e=>{t.onChange(e)},className:"rounded-full"})}),(0,n.jsx)(x.M,{password:t.value||"",minLength:E.wz})]})}}),(0,n.jsx)(Y.zB,{control:F.control,name:"acceptTerms",render:e=>{let{field:t}=e;return(0,n.jsxs)(Y.eI,{className:"flex flex-row items-start space-x-3 space-y-0",children:[(0,n.jsx)(Y.MJ,{children:(0,n.jsx)(f.S,{checked:t.value,onCheckedChange:t.onChange,className:"mt-2"})}),(0,n.jsxs)("div",{className:"space-y-1 leading-none",children:[(0,n.jsx)(Y.lR,{children:"Accept Terms & Conditions"}),(0,n.jsxs)(Y.Rr,{children:["You can "," ",(0,n.jsx)(s(),{href:p.eO,prefetch:!1,target:"_blank",children:"review the terms and conditions here"}),"."]})]})]})}}),(0,n.jsx)(_.$,{type:"submit",className:"mt-2",disabled:t,isSubmitting:F.formState.isSubmitting||t,children:"Continue"}),(0,n.jsx)(s(),{className:(0,_.r)({variant:"ghost"}),href:"/",prefetch:!1,children:"Cancel"})]})})})]})}},96397:(e,t,a)=>{"use strict";a.d(t,{a0:()=>o,Nz:()=>r,kR:()=>i,JC:()=>G,pj:()=>A,cp:()=>z,cB:()=>S,Q0:()=>j,nl:()=>f,xI:()=>M,zF:()=>H,oH:()=>O,VB:()=>P,mF:()=>T,r9:()=>D,qg:()=>N,gV:()=>w,VI:()=>c,wO:()=>u,UO:()=>E,et:()=>h,Ws:()=>l,Nn:()=>s,LP:()=>g});var n=a(4918);const r={INCOMPLETE:"incomplete",INCOMPLETE_EXPIRED:"incomplete_expired",TRIALING:"trialing",ACTIVE:"active",PAST_DUE:"past_due",CANCELED:"canceled",UNPAID:"unpaid",PAUSED:"paused"},o=[r.PAST_DUE,r.UNPAID],i={FREE:"FREE",PLUS_MONTHLY:"PLUS Monthly",PLUS_YEARLY:"PLUS Yearly",PRO_MONTHLY:"PRO Monthly",PRO_YEARLY:"PRO Yearly",BUSINESS_MONTHLY:"BUSINESS Monthly",BUSINESS_YEARLY:"BUSINESS Yearly",ENTERPRISE_TRIAL:"ENTERPRISE Trial"},s=n.Ik({id:n.Yj(),name:n.Yj(),is_paid:n.zM(),description:n.Yj().nullable(),version:n.ai(),is_active:n.zM(),is_default:n.zM(),stripe_product_id:n.Yj().nullable(),recurring_interval:n.Yj().nullable(),stripe_price_id:n.Yj().nullable(),created:n.Yj(),updated:n.Yj()}),l=n.Ik({results:n.YO(s),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()}),u=(n.Ik({id:n.Yj(),name:n.Yj(),display_name:n.Yj(),is_paid:n.zM(),description:n.Yj().nullable(),version:n.ai(),is_active:n.zM(),is_default:n.zM(),stripe_product_id:n.Yj().nullable(),recurring_interval:n.Yj().nullable(),stripe_price_id:n.Yj().nullable(),created:n.Yj().nullable().optional(),updated:n.Yj().nullable().optional()}),n.Ik({id:n.Yj(),name:n.Yj(),display_name:n.Yj(),is_visible:n.zM(),type:n.Yj(),description:n.Yj().nullable(),default_value:n.ai(),unit:n.Yj().nullable(),created:n.Yj(),updated:n.Yj()})),c=n.Ik({results:n.YO(u),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()}),d=n.Ik({feature_name:n.Yj(),feature_display_name:n.Yj(),feature_type:n.Yj(),feature_value:n.ai()}),m=n.Ik({feature_name:n.Yj(),feature_display_name:n.Yj(),feature_is_visible:n.zM(),feature_is_key_feature:n.zM(),feature_type:n.Yj(),feature_description:n.Yj().nullable(),feature_value:n.ai(),feature_unit:n.Yj().nullable(),feature_category:n.Yj().nullable(),feature_order:n.ai().nullable()}),p=n.Ik({id:n.Yj(),name:n.Yj(),display_name:n.Yj(),is_paid:n.zM(),description:n.Yj().nullable(),is_active:n.zM(),is_promoted:n.zM(),is_default:n.zM(),stripe_product_id:n.Yj().nullable(),recurring_interval:n.Yj().nullable(),stripe_price_id:n.Yj().nullable(),price:n.ai().nullable(),currency:n.Yj().nullable(),features:n.YO(m)}),_=n.YO(p),f=n.Ik({id:n.Yj(),account_id:n.Yj().nullable(),creation_user_id:n.Yj().nullable(),creation_user_email:n.Yj().nullable(),subscription_plan_id:n.Yj().nullable(),subscription_plan_name:n.Yj(),start_date:n.Yj(),end_date:n.Yj(),stripe_customer_id:n.Yj().nullable(),stripe_subscription_id:n.Yj().nullable(),stripe_product_id:n.Yj().nullable(),stripe_price_id:n.Yj().nullable(),stripe_current_period_start:n.Yj().nullable(),stripe_current_period_end:n.Yj().nullable(),stripe_subscription_interval:n.Yj().nullable(),created:n.Yj(),updated:n.Yj()}),j=n.Ik({results:n.YO(f),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()}),Y=n.Ik({interval_start_date:n.Yj(),interval_end_date:n.Yj()}),h=n.Ik({subscription_intervals:n.YO(Y)}),b=n.Ik({invoice_url:n.Yj(),expires_at:n.Yj(),target_plan_name:n.Yj().nullish(),amount_due:n.ai().int().nonnegative().nullish(),currency:n.Yj().nullish()}),g=n.Ik({cancel_at_period_end:n.zM(),current_period_end:n.Yj().nullable(),current_plan_name:n.Yj(),scheduled_plan_name:n.Yj().nullable(),status:n.Yj(),has_active_subscription:n.zM(),has_scheduled_change:n.zM().optional(),scheduled_change_date:n.Yj().nullable().optional(),pending_payment:b.nullish()}),v=n.k5(["instant","scheduled"]),y=n.ai().int().nonnegative(),k=n.Ik({plan_name:n.Yj(),display_name:n.Yj(),interval:n.Yj(),amount:y.nullish(),currency:n.Yj().nullish(),renews_at:n.Yj().nullish()}),I=n.Ik({plan_name:n.Yj(),display_name:n.Yj(),interval:n.Yj(),amount:y.nullish(),currency:n.Yj().nullish()}),x=n.Ik({date:n.Yj().nullish(),amount:y.nullish()}),w=n.Ik({direction:v,current:k,target:I,billed_today:y.nullish(),credit_applied:y.nullish(),effective_date:n.Yj().nullish(),next_renewal:x}),N=n.gM("status",[n.Ik({status:n.eu("success")}),n.Ik({status:n.eu("requires_action"),redirect_url:n.Yj()}),n.Ik({status:n.eu("scheduled"),effective_date:n.Yj()})]),E=(n.Ik({status:n.eu("reverted")}),n.Ik({plans:_,status:g.nullable()})),S=n.Ik({id:n.Yj(),name:n.Yj(),description:n.Yj().nullable(),type:n.Yj(),active:n.zM(),created:n.Yj(),updated:n.Yj(),user_count:n.ai(),subscription_plan_id:n.Yj(),subscription_plan_name:n.Yj()}),C=n.Ik({id:n.Yj(),email:n.Yj(),first_name:n.Yj().nullable(),last_name:n.Yj().nullable(),user_role:n.Yj(),user_account_role:n.Yj(),user_account_status:n.Yj(),created:n.Yj()}),O=n.Ik({id:n.Yj(),name:n.Yj(),description:n.Yj().nullable(),type:n.Yj(),active:n.zM(),created:n.Yj(),updated:n.Yj(),users:n.YO(C),user_count:n.ai()}),z=n.Ik({id:n.Yj(),name:n.Yj(),description:n.Yj().nullable(),type:n.Yj(),active:n.zM(),created:n.Yj(),updated:n.Yj()}),A=n.Ik({results:n.YO(z),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()}),L=n.Ik({id:n.Yj(),name:n.Yj(),description:n.Yj().nullable(),type:n.Yj(),active:n.zM()}),M=(n.Ik({results:n.YO(L),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()}),n.Ik({name:n.Yj(),description:n.Yj().nullable(),type:n.Yj(),active:n.zM()}),n.Ik({id:n.Yj(),name:n.Yj(),description:n.Yj().nullable(),type:n.Yj(),active:n.zM(),subscription_plan_id:n.Yj()}),n.Ik({id:n.Yj(),creation_user_id:n.Yj().nullable(),creation_user_email:n.Yj().nullable(),account_id:n.Yj(),subscription_plan_id:n.Yj(),subscription_plan_name:n.Yj(),start_date:n.Yj(),end_date:n.Yj(),stripe_customer_id:n.Yj().nullable(),stripe_subscription_id:n.Yj().nullable(),stripe_product_id:n.Yj().nullable(),stripe_price_id:n.Yj().nullable(),stripe_current_period_start:n.Yj().nullable(),stripe_current_period_end:n.Yj().nullable(),stripe_subscription_interval:n.Yj().nullable(),stripe_subscription_status:n.Yj().nullable().optional(),collection_paused:n.zM().optional(),pause_resumes_at:n.Yj().nullable().optional(),features:n.YO(d)})),R=n.fc({SharedLink:"SHARED_LINK",DirectMail:"DIRECT_EMAIL"}),P=(n.Ik({emails:n.YO(n.Yj()),account_id:n.Yj(),user_account_role:n.Yj()}),n.Ik({success_count:n.ai(),failed_count:n.ai()})),T=(n.Ik({token:n.Yj().nullable(),type:R,email:n.Yj().nullable(),user_id:n.Yj().nullable(),account_id:n.Yj(),account_name:n.Yj()}),n.Ik({id:n.Yj(),status:n.Yj()}),n.Ik({id:n.Yj(),invitation_token:n.Yj()}),n.Ik({id:n.Yj(),account_id:n.Yj(),user_account_role:n.Yj(),type:R,email:n.Yj().nullable(),invitation_token:n.Yj(),status:n.Yj(),created:n.Yj(),expires:n.Yj(),usage_limit:n.ai().nullable(),used_count:n.ai().nullable()})),U=n.Ik({id:n.Yj(),account_id:n.Yj(),user_account_role:n.Yj(),email:n.Yj(),type:R,status:n.Yj(),created:n.Yj(),expires:n.Yj().nullable(),usage_limit:n.ai().nullable(),used_count:n.ai().nullable()}),D=n.Ik({results:n.YO(U),page_number:n.ai(),page_size:n.ai(),total_count:n.ai(),total_pages:n.ai()}),B=(n.Ik({account_id:n.Yj(),interval_start_date:n.Yj(),interval_end_date:n.Yj()}),n.Ik({account_id:n.Yj(),interval_start_date:n.Yj(),interval_end_date:n.Yj(),page_number:n.ai(),page_size:n.ai()}),n.Ik({selected_subscription_interval_start_date:n.Yj(),selected_subscription_interval_end_date:n.Yj(),platform_minutes_allowed:n.ai(),platform_videos_allowed:n.ai(),private_minutes_allowed:n.ai(),private_videos_allowed:n.ai(),daily_total_videos_allowed:n.ai(),members_allowed:n.ai(),alerts_allowed:n.ai()})),F=n.Ik({platform_minutes:n.ai(),platform_videos:n.ai(),private_minutes:n.ai(),private_videos:n.ai()}),V=n.Ik({date:n.Yj(),videos:n.ai(),minutes:n.ai().nullable()}),$=n.Ik({account_members:n.ai(),ai_alerts:n.ai()}),H=n.Ik({usage_meta_response:B,period_usage_report_response:F,daily_usage_report_response_list:n.YO(V),daily_usage_report_response:V,overall_counters_report_response:$}),Z=n.Ik({video_id:n.Yj(),video_title:n.Yj().nullable(),media_type:n.Yj(),asr:n.zM(),language_code:n.Yj().nullable(),video_duration:n.ai(),processed_date:n.Yj()}),G=n.Ik({account_detailed_video_reports:n.YO(Z)})},98891:(e,t,a)=>{Promise.resolve().then(a.bind(a,95179)),Promise.resolve().then(a.bind(a,65526)),Promise.resolve().then(a.bind(a,84998)),Promise.resolve().then(a.t.bind(a,55142,23)),Promise.resolve().then(a.t.bind(a,59115,23)),Promise.resolve().then(a.bind(a,32672)),Promise.resolve().then(a.bind(a,41634)),Promise.resolve().then(a.bind(a,31644)),Promise.resolve().then(a.bind(a,87547)),Promise.resolve().then(a.bind(a,99730)),Promise.resolve().then(a.bind(a,50102)),Promise.resolve().then(a.bind(a,13869)),Promise.resolve().then(a.bind(a,8381)),Promise.resolve().then(a.bind(a,84044)),Promise.resolve().then(a.bind(a,57903)),Promise.resolve().then(a.bind(a,82717))}},e=>{e.O(0,[3425,3203,8582,4469,5142,3665,9040,4653,3328,9115,7210,3634,8954,6126,1046,6272,509,9595,2961,7358],()=>e(e.s=98891));var t=e.O();_N_E=t}]);
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.