PageSourceSearch

https://aivvid.ai/_next/static/chunks/app/%5Blocale%5D/(default)/(…?dpl=dpl_5uPn4MRyZZpKWENpZKYazWNqQe2d

js aivvid.ai collected 2026-10-05 11:48:19 UTC 10,935 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23282],{9268:(e,t,a)=>{"use strict";function r(e){return new URLSearchParams(window.location.search).get("utm_source")||""}function n(e){e&&localStorage.setItem("utm_source",e)}function o(){return localStorage.getItem("utm_source")||""}function s(){localStorage.removeItem("utm_source")}a.d(t,{JY:()=>o,_i:()=>r,f6:()=>n,wY:()=>s})},11570:(e,t,a)=>{"use strict";a.d(t,{Cf:()=>f,Es:()=>m,L3:()=>g,c7:()=>p,lG:()=>d,rr:()=>v,zM:()=>l});var r=a(14196),n=a(78552),o=a(90124),s=a(55311),i=a(57813);let d=o.bL,l=o.l9,u=o.ZL;o.bm;let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(o.hJ,{ref:t,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n})});c.displayName=o.hJ.displayName;let f=n.forwardRef((e,t)=>{let{className:a,children:n,...d}=e;return(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{}),(0,r.jsxs)(o.UC,{ref:t,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...d,children:[n,(0,r.jsxs)(o.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,r.jsx)(s.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=o.UC.displayName;let p=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};p.displayName="DialogHeader";let m=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};m.displayName="DialogFooter";let g=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(o.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",a),...n})});g.displayName=o.hE.displayName;let v=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(o.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...n})});v.displayName=o.VY.displayName},12741:(e,t,a)=>{"use strict";a.d(t,{wD:()=>r});let r={Theme:"THEME",InviteCode:"INVITE_CODE",DailyAdCost:"DAILY_AD_COST"}},26037:(e,t,a)=>{"use strict";a.d(t,{b:()=>s});var r=a(78552),n=a(91608),o=a(9268);function s(){let{data:e,status:t}=(0,n.wV)();(0,r.useEffect)(()=>{var a;if("authenticated"===t&&(null==e?void 0:null===(a=e.user)||void 0===a?void 0:a.email)){let t=(0,o.JY)();t&&i(t).then(()=>{console.log("UTM source updated for user:",e.user.email),(0,o.wY)()}).catch(e=>{console.error("Failed to update UTM source:",e)})}},[t,e])}async function i(e){let t=await fetch("/api/update-utm-source",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({utm_source:e})});if(!t.ok)throw Error((await t.json()).message||"Failed to update UTM source")}},51801:(e,t,a)=>{"use strict";a.d(t,{lg:()=>r});let r=()=>Date.parse(new Date().toUTCString())/1e3},57813:(e,t,a)=>{"use strict";a.d(t,{cn:()=>o});var r=a(9924),n=a(31052);function o(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}},72655:(e,t,a)=>{"use strict";a.d(t,{AppContextProvider:()=>x,U:()=>h});var r=a(14196),n=a(78552),o=a(94706),s=a(12741),i=a(66002),d=a.n(i),l=a(34851),u=a.n(l),c=a(91608),f=a(26037),p=a(9268);function m(){return(0,n.useEffect)(()=>{let e=(0,p._i)();e&&((0,p.f6)(e),console.log("UTM Source captured:",e))},[]),null}var g=a(4682);let v=(0,n.createContext)({}),h=()=>(0,n.useContext)(v),x=e=>{let{children:t}=e;(0,f.b)(),!function(){let{data:e,status:t}=(0,c.wV)(),a=async function(){u()({client_id:"861461195166-qma9puhrbmr57e2385s705s13f9prilh.apps.googleusercontent.com",auto_select:!1,cancel_on_tap_outside:!1,context:"signin"},e=>{console.log("onetap login ok",e),o(e.credential)})},o=async function(e){console.log("signIn ok",await (0,c.signIn)("google-one-tap",{credential:e,redirect:!1}))};(0,n.useEffect)(()=>{if("unauthenticated"===t){a();let e=setInterval(()=>{a()},3e3);return()=>{clearInterval(e)}}},[t]),r.Fragment}();let{data:a}
1=(0,c.wV)(),[i,l]=(0,n.useState)(()=>g.env.NEXT_PUBLIC_DEFAULT_THEME||""),[p,h]=(0,n.useState)(!1),[x,b]=(0,n.useState)(null),[w,y]=(0,n.useState)(!1),[_,N]=(0,n.useState)(!1),j=async function(){try{let e=await fetch("/api/get-user-info",{method:"POST"});if(!e.ok)throw Error("fetch user info failed with status: "+e.status);let{code:t,message:a,data:r}=await e.json();if(0!==t)throw Error(a);b(r),k(r)}catch(e){console.log("fetch user info failed")}},k=async e=>{try{if(e.invited_by){console.log("user already been invited",e.invited_by);return}let t=(0,o.pr)(s.wD.InviteCode);if(!t)return;let a=d()(e.created_at).unix(),r=d()().unix(),n=Number(r-a);if(n<=0||n>7200){console.log("user created more than 2 hours");return}console.log("update invite",t,e.uuid);let i={invite_code:t,user_uuid:e.uuid},l=await fetch("/api/update-invite",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!l.ok)throw Error("update invite failed with status: "+l.status);let{code:u,message:c,data:f}=await l.json();if(0!==u)throw Error(c);b(f),(0,o.np)(s.wD.InviteCode)}catch(e){console.log("update invite failed: ",e)}};return(0,n.useEffect)(()=>{a&&a.user&&j()},[a]),(0,r.jsxs)(v.Provider,{value:{theme:i,setTheme:l,showSignModal:p,setShowSignModal:h,user:x,setUser:b,showFeedback:w,setShowFeedback:y,sidebarCollapsed:_,setSidebarCollapsed:N},children:[(0,r.jsx)(m,{}),t]})}},84283:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var r=a(14196);let n={Ri:a(81981)};function o(e){let{name:t,className:a,onClick:o}=e,s=function(e){let t=n[e.slice(0,2)];return t&&t[e]||null}(t);return s?(0,r.jsx)(s,{className:"".concat(a," cursor-pointer"),onClick:o,style:{cursor:o?"pointer":"default"}}):null}},94706:(e,t,a)=>{"use strict";a.d(t,{PW:()=>o,np:()=>s,pr:()=>n});var r=a(51801);let n=e=>{let t=localStorage.getItem(e);if(!t)return null;let a=t.split(":");if(!a||a.length<2)return null;let n=Number(a[0]),o=(0,r.lg)();if(-1!==n&&n<o)return s(e),null;let i=a[0]+":";return t.replace(i,"")},o=(e,t,a)=>{localStorage.setItem(e,a+":"+t)},s=e=>{localStorage.removeItem(e)}},95099:(e,t,a)=>{Promise.resolve().then(a.bind(a,36376))},96262:(e,t,a)=>{"use strict";a.d(t,{$:()=>d,r:()=>i});var r=a(14196);a(78552);var n=a(67176),o=a(34918),s=a(57813);let i=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function d(e){let{className:t,variant:a,size:o,asChild:d=!1,...l}=e,u=d?n.DX:"button";return(0,r.jsx)(u,{"data-slot":"button",className:(0,s.cn)(i({variant:a,size:o,className:t})),...l})}},98891:(e,t,a)=>{"use strict";a.d(t,{I:()=>l,SQ:()=>d,_2:()=>u,lp:()=>c,mB:()=>f,rI:()=>s,ty:()=>i});var r=a(14196);a(78552);var n=a(15916),o=a(57813);function s(e){let{...t}=e;return(0,r.jsx)(n.bL,{"data-slot":"dropdown-menu",...t})}function i(e){let{...t}=e;return(0,r.jsx)(n.l9,{"data-slot":"dropdown-menu-trigger",...t})}function d(e){let{className:t,sideOffset:a=4,...s}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsx)(n.UC,{"data-slot":"dropdown-menu-content",sideOffset:a,className:(0,o.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...s})})}function l(e){let{...t}=e;return(0,r.jsx)(n.YJ,{"data-slot":"dropdown-menu-group",...t})}function u(e){let{className:t,inset:a,variant:s="default",...i}=e;return(0,r.jsx)(n.q7,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":s,className:(0,o.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...i})}function c(e){let{className:t,inset:a,...s}=e;return(0,r.jsx)(n.JU,{"data-slot":"dropdown-menu-label","data-inset":a,className:(0,o.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...s})}function f(e){let{className:t,...a}=e;return(0,r.jsx)(n.wv,{"data-slot":"dropdown-menu-separator",className:(0,o.cn)("bg-border -mx-1 my-1 h-px",t),...a})}}},e=>{var t=t=>e(e.s=t);e.O(0,[90589,88548,16603,53644,54313,3645,7638,44054,91608,45101,15916,51174,53600,36376,39585,6751,77358],()=>t(95099)),_N_E=e.O()}]);

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.