PageSourceSearch

https://nextjs.collov.ai/_next/static/chunks/8922-9317c0ed668648f7.js?dpl=dpl_FBdpJouA4KAEch4GaWgaioLMGH9s

js collov.ai collected 2026-10-03 23:45:54 UTC 9,321 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8922],{45457:function(e,t,n){n.d(t,{X:function(){return w}});var s=n(57437),a=n(2265),r=n(61146),o=n(93448);let l=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(r.fC,{ref:t,className:(0,o.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n),...a})});l.displayName=r.fC.displayName;let i=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(r.Ee,{ref:t,className:(0,o.cn)("aspect-square h-full w-full",n),...a})});i.displayName=r.Ee.displayName;let c=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(r.NY,{ref:t,className:(0,o.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",n),...a})});c.displayName=r.NY.displayName;var d=n(3032),u=n(10407),f=n(30401),m=n(40519);let p=d.fC,x=d.xz;d.ZA,d.Uv,d.Tr,d.Ee,a.forwardRef((e,t)=>{let{className:n,inset:a,children:r,...l}=e;return(0,s.jsxs)(d.fF,{ref:t,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",a&&"pl-8",n),...l,children:[r,(0,s.jsx)(u.Z,{className:"ml-auto h-4 w-4"})]})}).displayName=d.fF.displayName,a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(d.tu,{ref:t,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...a})}).displayName=d.tu.displayName;let h=a.forwardRef((e,t)=>{let{className:n,sideOffset:a=4,...r}=e;return(0,s.jsx)(d.Uv,{children:(0,s.jsx)(d.VY,{ref:t,sideOffset:a,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...r})})});h.displayName=d.VY.displayName;let N=a.forwardRef((e,t)=>{let{className:n,inset:a,...r}=e;return(0,s.jsx)(d.ck,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",a&&"pl-8",n),...r})});N.displayName=d.ck.displayName,a.forwardRef((e,t)=>{let{className:n,children:a,checked:r,...l}=e;return(0,s.jsxs)(d.oC,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",n),checked:r,...l,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(d.wU,{children:(0,s.jsx)(f.Z,{className:"h-4 w-4"})})}),a]})}).displayName=d.oC.displayName,a.forwardRef((e,t)=>{let{className:n,children:a,...r}=e;return(0,s.jsxs)(d.Rk,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",n),...r,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(d.wU,{children:(0,s.jsx)(m.Z,{className:"h-2 w-2 fill-current"})})}),a]})}).displayName=d.Rk.displayName;let y=a.forwardRef((e,t)=>{let{className:n,inset:a,...r}=e;return(0,s.jsx)(d.__,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n),...r})});y.displayName=d.__.displayName;let b=a.forwardRef((e,t)=>
1{let{className:n,...a}=e;return(0,s.jsx)(d.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",n),...a})});b.displayName=d.Z0.displayName;var j=n(38703);let g="cursor-pointer whitespace-nowrap p-3 text-xs !text-zinc-900 hover:!text-zinc-900 focus:!text-zinc-900 focus:bg-[hsl(var(--sidebar-accent))]";function v(e){let t="string"==typeof e.userInfo.username?e.userInfo.username:"",n="string"==typeof e.userInfo.email?e.userInfo.email:"";return(t||n||"U").trim().charAt(0).toUpperCase()||"U"}function w(e){let{loginClassName:t,avatarButtonClassName:n,session:r,onSessionChange:d,showNavigationItems:u=!1}=e,[f,m]=(0,a.useState)(null),[w,k]=(0,a.useState)(!1),C=(0,a.useRef)(null),I=(0,a.useRef)(!1),z=void 0!==r,R=z?r:f;if((0,a.useEffect)(()=>{if(z)return;let e=(0,j.lN)();m(e),null==d||d(e)},[z,d]),(0,a.useEffect)(()=>()=>{C.current&&clearTimeout(C.current)},[]),!R)return(0,s.jsx)("button",{type:"button",className:t,onClick:j.Fr,children:"Log In"});let A="string"==typeof R.userInfo.username?R.userInfo.username.trim():"",S="string"==typeof R.userInfo.email?R.userInfo.email.trim():"",U="string"==typeof R.userInfo.avatarUrl?R.userInfo.avatarUrl.trim():"",_=()=>{C.current&&(clearTimeout(C.current),C.current=null),k(!0)},E=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{I.current=!0,k(!1),C.current=null},150)};return(0,s.jsxs)(p,{open:w,onOpenChange:k,modal:!1,children:[(0,s.jsx)(x,{asChild:!0,children:(0,s.jsx)("button",{type:"button",className:(0,o.cn)("rounded-full outline-none ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),"aria-label":"Open user menu",onMouseEnter:_,onMouseLeave:E,onFocus:_,onBlur:E,children:(0,s.jsxs)(l,{className:"h-10 w-10 bg-white",children:[U?(0,s.jsx)(i,{src:U,alt:A||S||"User avatar"}):null,(0,s.jsx)(c,{className:"bg-zinc-100 text-sm font-medium text-zinc-900",children:v(R)})]})})}),(0,s.jsx)(h,{align:"center",sideOffset:0,className:"z-[120] w-max min-w-0 overflow-visible rounded-none border-0 bg-transparent p-0 text-zinc-900 shadow-none",onMouseEnter:_,onMouseLeave:E,onFocus:_,onCloseAutoFocus:e=>{I.current&&e.preventDefault(),I.current=!1},children:(0,s.jsxs)("div",{className:"mt-3 rounded-xl border border-black/10 bg-white p-1",children:[(0,s.jsxs)(y,{className:"flex items-center gap-2 p-2 font-normal",children:[(0,s.jsxs)(l,{className:"h-10 w-10 shrink-0 bg-white",children:[U?(0,s.jsx)(i,{src:U,alt:A||S||"User avatar"}):null,(0,s.jsx)(c,{className:"bg-zinc-100 text-sm font-medium text-zinc-900",children:v(R)})]}),(0,s.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1 px-1",children:[(0,s.jsx)("span",{className:"block truncate text-xs font-medium",children:A||S||"Collov user"}),S&&S!==A?(0,s.jsx)("span",{className:"block truncate text-[10px] font-medium text-zinc-500",children:S}):null]})]}),(0,s.jsx)(b,{className:"mx-0 my-2"}),u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N,{asChild:!0,className:g,children:(0,s.jsx)("a",{href:"https://collov.ai/design-center/my-subscription",children:"My Subscription"})}),(0,s.jsx)(N,{asChild:!0,className:g,children:(0,s.jsx)("a",{href:"https://collov.ai/design-center/my-creations",children:"My Creations"})}),(0,s.jsx)(N,{asChild:!0,className:g,children:(0,s.jsx)("a",{href:"/API/docs",children:"API Document"})}),(0,s.jsx)(N,{asChild:!0,className:g,children:(0,s.jsx)("a",{href:"https://collov.ai/API/console",children:"API Console"})}),(0,s.jsx)(b,{className:"mx-0 my-2"}),(0,s.jsx)(N,{asChild:!0,className:g,children:(0,s.jsx)("a",{href:"https://collov.ai/terms",children:"Term of Service"})})]}):null,(0,s.jsx)(N,{className:g,onSelect:()=>{(0,j.sb)(),z||m(null),null==d||d(null)},children:"Sign Out"})]})})]})}},38703:function(e,t,n){n.d(t,{Fr:function(){return o},lN:function(){return a},sb:function(){return r}});let s="collov_ai_client_home";function a(){if("undefined"==typeof document)return null;let e="".concat(s,"="),t=document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith(e));if(!t)return null;try{let n=t.slice(e.length),s=JSON.parse(decodeURIComponent(n));if(!s||"object"!=typeof s||"string"!=typeof s.token||!s.token.trim()||!s.userInfo||"object"!=typeof s.userInfo||Array.isArray(s.userInfo))return null;return{token:s.token,userInfo:s.userInfo}}catch(e){return null}}function r(){if("undefined"==typeof document)return;let e="https:"===window.location.protocol?"; Secure":"";document.cookie="".concat(s,"=; Path=/; Domain=.collov.ai; Max-Age=0; SameSite=Lax").concat(e),document.cookie="".concat(s,"=; Path=/; Max-Age=0; SameSite=Lax").concat(e)}function o(){window.location.href="https://collov.ai/login"}},35515:function(e,t,n){function s(e){if(!e||e.startsWith("http")||e.startsWith("data:")||e.startsWith("//"))return e;let t="https://nextjs.collov.ai";return t?e.startsWith("/")?"".concat(t).concat(e):"".concat(t,"/").concat(e):e}
1function a(e){return s("string"==typeof e?e:e.src)}n.d(t,{R:function(){return a},V:function(){return s}})},93448:function(e,t,n){n.d(t,{cn:function(){return r}});var s=n(61994),a=n(53335);function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.m6)((0,s.W)(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.