PageSourceSearch

https://xroid.ai/_next/static/chunks/app/(main)/(auth)/layout-a947723b948abbaa.js

js xroid.ai collected 2026-10-05 14:49:24 UTC 28,994 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1074],{400680:(e,t,r)=>{Promise.resolve().then(r.bind(r,771051))},834487:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(212115),a=r(330149),o=r(107172);let s=e=>{let{space:t,form:r,children:s}=e;if(null==s)return null;let l=s;return r&&(l=n.createElement(a.XB,{override:!0,status:!0},l)),t&&(l=n.createElement(o.K6,null,l)),l}},257486:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,b:()=>m});var n=r(695155),a=r(571362),o=r(76046),s=r(212115),l=r(820385),i=r(351889);let c=(0,s.memo)(e=>{let{onClick:t,urlShare:r,title:a}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"text-[14px] font-bold pt-[6px] text-[#333] min-w-[200px] text-left",children:a}),(0,n.jsxs)("div",{className:"flex items-center bg-[#F2F2F2] rounded mb-[32px] mt-[12px]",children:[(0,n.jsx)("input",{value:r,type:"text",className:"flex-1 font-semibold rounded px-4 py-2 bg-gray-200 focus:ring-0 focus:outline-none border-dashed border-2 border-status-ok text-status-ok",placeholder:"Enter text",onClick:()=>t(r),readOnly:!0}),(0,n.jsx)("div",{className:"px-4 py-2 bg-[#F2F2F2] text-gray-500 cursor-pointer hover:bg-[#ccc]",onClick:()=>{navigator.clipboard.writeText(r).then(()=>{(0,l.m)("success","コピー完了")}).catch(e=>console.error("Failed to copy: ",e))},children:(0,n.jsx)(i.bw7,{size:20})})]})]})});var u=r(235532);let d=e=>"https://s.xroid.ai/".concat(e);var p=r(7266);let m=(0,u.v)(e=>({isOpen:!1,open:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e({isOpen:!0,shortCode:t})},close:()=>e(()=>({isOpen:!1,key:void 0,shortCode:""})),shortCode:"",dubId:""})),h=e=>{var t,r,l;let{onlyHistory:i}=e,u=(0,p.useTranslations)("common"),{isOpen:h,close:g,shortCode:x,dubId:y}=m(),v=(0,o.usePathname)(),[f,b]=(0,s.useState)();(0,s.useEffect)(()=>{b(x&&y?d(x):"".concat(window.location.origin).concat(v))},[v]);let E=[{name:"Facebook",url:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(f)),icon:"/svg/facebook.svg"},{name:"X",url:"https://twitter.com/intent/tweet?url=".concat(f),icon:"/svg/x.svg"},{name:"Line",url:"https://social-plugins.line.me/lineit/share?url=".concat(f),icon:"/svg/line.svg"},{name:"Gmail",url:"mailto:?body=".concat(f,"&authuser=0"),icon:"/svg/gmail.svg"}];return(0,n.jsx)(a.A,{getContainer:(null===(t=document)||void 0===t?void 0:t.fullscreenElement)||(null===(l=document)||void 0===l?void 0:null===(r=l.getElementById)||void 0===r?void 0:r.call(l,"scenario-start-screen"))||void 0,open:h,className:"flex items-center justify-center",centered:!0,footer:null,title:(0,n.jsx)("div",{className:"text-center",children:u("share")}),width:460,onCancel:g,children:(0,n.jsxs)("div",{children:[!i&&(0,n.jsx)(c,{onClick:e=>{b(e)},urlShare:f,title:u("shareContent")}),(0,n.jsx)("div",{className:"flex items-center justify-around gap-3",children:E.map(e=>(0,n.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center flex-col px-[6px] pb-[6px] pt-[12px] rounded hover:bg-[#F2F2F2] cursor-pointer",children:[(0,n.jsx)("img",{width:"56px",height:"56px",src:e.icon,alt:e.name}),(0,n.jsx)("p",{className:"text-[14px] font-bold pt-[6px] text-[#333] min-w-[78px] text-center",children:e.name})]},e.name))})]})})}},771051:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(695155),a=r(325953),o=r(594307),s=r(7266),l=r(76046),i=r(212115),c=r(321169),u=r(159840),d=r(255205),p=r(548173),m=r.n(p),h=r(83391);let g=e=>{let{menu:t}=e,r=(0,h.d4)(u.ZF),a=(0,l.usePathname)();return(0,n.jsxs)("div",{className:"bg-[#FBF6ED] pt-[14px] px-[22px] pb-[24px] w-[326px] hidden lg:block",children:[(0,n.jsxs)("div",{className:"flex gap-x-3 px-1",children:[(0,n.jsx)("div",{className:"w-[58px] h-[58px]",children:(0,n.jsx)("img",{src:(null==r?void 0:r.avatar)||"/img/avatar-default.png",alt:"User Avatar",className:"object-contain w-full h-full rounded-full"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,n.jsx)("div",{className:"text-[16px] font-notoSans text-[#0B2F6B] font-normal leading-[20.8px]",children:null==r?void 0:r.realname}),(0,n.jsx)("div",{className:"text-[12px] font-notoSans text-[#0B2F6B] font-normal leading-[16.2px]",children:null==r?void 0:r.nickname})]})]}),(0,n.jsx)("div",{className:"pt-[10px]",children:null==t?void 0:t.map((e,t)=>{var r;return(0,n.jsxs)("div",{className:0!==t?"mt-3":"",children:[(0,n.jsx)("div",{className:"text-[12px] font-notoSans text-[#0B2F6B] font-[500] leading-[16.8px]",children:null==e?void 0:e.title}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsx)("div",{className:"rounded-[8px] border border-[#
1E2E8F0] bg-white",children:null==e?void 0:null===(r=e.tabs)||void 0===r?void 0:r.map((t,r)=>(null==t?void 0:t.onClick)?(0,n.jsxs)("button",{onClick:t.onClick,className:(0,d.A)("w-full flex items-center gap-3 px-3 border-b border-b-[#E2E8F0CC] h-[36px] cursor-pointer hover:bg-[#0B2F6B0A] transition-colors"),children:[null==t?void 0:t.icon,(0,n.jsx)("span",{className:"text-[14px] font-notoSans text-[#0B2F6B] font-[500] leading-[21px] truncate ".concat(null==t?void 0:t.className),children:null==t?void 0:t.label}),(0,n.jsx)(c.BJp,{className:"ml-auto !text-[#64748B]"})]},r):(0,n.jsxs)(m(),{href:null==t?void 0:t.href,className:(0,d.A)("flex h-[36px] w-full items-center gap-[12px] [@media(max-width:768px)]:h-[44px] border-b border-[#E2E8F0]/80 px-[12px] text-left transition-colors last:border-b-0 text-[#0B2F6B]",{"!bg-[#0B2F6B0A]":a===(null==t?void 0:t.href),"border-b border-b-[#E2E8F0CC]":r!==e.tabs.length-1,"rounded-b-[8px]":r===e.tabs.length-1}),children:[null==t?void 0:t.icon,(0,n.jsx)("span",{className:"text-[14px] font-notoSans text-[#0B2F6B] font-[500] leading-[21px] truncate ".concat(null==t?void 0:t.className),children:null==t?void 0:t.label}),(0,n.jsx)(c.BJp,{className:"ml-auto !text-[#64748B]"})]},r))})})]},t)})})]})};var x=r(257486);function y(e){let{children:t}=e,r=[{hook:x.b,component:x.A}],u=r.map(e=>{let{hook:t}=e;return t()}),p=(0,l.usePathname)(),m=(0,l.useRouter)(),h=(0,s.useTranslations)(),y=(0,i.useMemo)(()=>!p.includes("me/files")&&a.je.some(e=>p===e||p.startsWith("".concat(e,"/"))),[p]),v=/^\/contents\/[^/]+\/scenario\/[^/]+(\/preview)?\/?$/.test(p),f=(0,i.useMemo)(()=>["/purchase","/cube-history"].includes(p)?[{title:h("title.cubeManagement"),tabs:[{icon:(0,n.jsx)("img",{src:"/img/cube.svg",className:"w-[18px] h-[18px]",alt:""}),label:h("title.titlePurchase"),href:"/purchase"},{icon:(0,n.jsx)(c.Lxk,{className:"!text-[#0B2F6B] !text-[18px]"}),label:h("title.titleCubeHistory"),href:"/cube-history"}]}]:p.includes("me")||"/inquiry"===p?[{title:h("common.settings"),tabs:[{icon:(0,n.jsx)("img",{src:"/svg/profile.svg",className:"w-[18px] h-[18px]",alt:""}),label:h("common.editProfile"),href:"/me/edit-profile"},{icon:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-shield shrink-0",children:(0,n.jsx)("path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"})}),label:h("common.privacySettingHeading"),href:"/me/privacy-setting"},{icon:(0,n.jsx)("img",{src:"/svg/security.svg",className:"w-[18px] h-[18px]",alt:""}),label:h("common.securityHeading"),href:"/me/change-password"},{icon:(0,n.jsx)("img",{src:"/svg/language.svg",className:"w-[18px] h-[18px]",alt:""}),label:h("common.languageTimezone"),href:"/me/language"}]},{title:h("common.support"),tabs:[{icon:(0,n.jsx)("img",{src:"/svg/help.svg",className:"w-[18px] h-[18px]",alt:""}),label:h("menu.inquiry"),href:"/inquiry"}]},{title:h("common.legalInformation"),tabs:[{icon:(0,n.jsx)("img",{src:"/svg/legal.svg",className:"w-[18px] h-[18px]",alt:""}),label:h("common.legalTerms"),href:"/me/legal"}]},{title:"",tabs:[{icon:(0,n.jsx)("img",{src:"/svg/exit.svg",className:"w-[18px] h-[18px]",alt:""}),label:h("menu.logout"),href:"/me/logout",className:"text-[#EF4444]"}]},{title:"",tabs:[{icon:(0,n.jsx)("img",{src:"/svg/logout.svg",className:"w-[18px] h-[18px]",alt:""}),label:h("common.deleteAccount"),className:"text-[#EF4444]",href:"/me/delete-account"}]}]:void 0,[p,h]),b=(0,i.useMemo)(()=>{switch(p){case"/purchase":return{title:h("title.titlePurchase"),subTitle:h("title.subTitlePurchase")};case"/cube-history":return{title:h("title.titleCubeHistory"),subTitle:h("title.subTitleCubeHistory")};case"/me":case"/me/edit-profile":return{title:h("common.editProfile"),subTitle:h("common.editProfileSubheading")};case"/me/privacy-setting":return{title:h("common.privacySettingHeading"),subTitle:h("common.privacySettingSubheading")};case"/me/change-password":case"/me/security":return{title:h("common.securityHeading"),subTitle:h("common.securitySubheading")};case"/me/language":return{title:h("common.languageHeading"),subTitle:h("common.languageSubheading")};case"/me/plan":return{title:h("common.planChangeHeading"),subTitle:h("common.planChangeSubheading")};case"/me/payment":return{title:h("common.paymentMethodHeading"),subTitle:h("common.paymentMethodSubheading")};case"/me/purchase-history":return{title:h("common.purchaseHistoryHeading"),subTitle:h("common.purchaseHistorySubheading")};case"/me/contact":return{title:h("common.contactHeading"),subTitle:h("common.contactSubheading")};case"/me/legal":return{title:h("common.legalHeading"),subTitle:h("common.legalSubheading")};case"/inquiry":return{title:h("menu.inquiry"),subTitle:h("common.subtitleInquiry")};case"/me/logout":return{title:h("common.logoutHeading"),subTitle:h("common.logoutSubheading")};case"/me/delete-account":return{title:h("common.deleteAccount")}}},[p,h]);return(0,n.jsxs)(o.A,{renderChildrenWhileLoading:v,children:[y?(0,n.jsxs)("div",{className:"lg:flex h-full",children:[(0,n.jsx)(g,{menu:f}),(0,n.jsxs)("div",{className:(0,d.A)("bg-[#FAFAFC] px-[28px] py-[30px] shadow-[8px_0px_24px_0px_#0B2F6B14] flex-1",{"px-[42px] py-[36px]":"/inquiry"===p}),children:[(0,n.jsxs)("div",{className:(0,d.A)("",{"text-center":"/inquiry"===p,"mb-[26px] pb-[22px] border-b border-[#
1E2E8F0]":"/me/language"===p}),children:[(0,n.jsx)("div",{className:(0,d.A)("text-[24px] font-notoSans text-[#0B2F6B] font-[500] leading-[32.4px]",{"text-[28px] leading-[37.8px]":"/inquiry"===p}),children:null==b?void 0:b.title}),(0,n.jsx)("div",{className:"text-[13px] font-notoSans text-[#64748B] font-normal leading-[20.8px] pt-[10px]",children:null==b?void 0:b.subTitle})]}),(0,n.jsx)("div",{className:"flex items-start justify-between absolute top-[24px] right-[24px]",children:(0,n.jsx)("button",{type:"button",onClick:()=>m.back(),className:"hover:opacity-70 transition-opacity block",children:(0,n.jsx)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M16.576 18.2001L9.12798 10.7521L1.65198 18.2001L-2.40803e-05 16.5761L7.47598 9.10008L-2.40803e-05 1.65208L1.67998 8.17776e-05L9.12798 7.47608L16.576 8.17776e-05L18.228 1.65208L10.752 9.10008L18.228 16.5761L16.576 18.2001Z",fill:"#94A3B8"})})})}),(0,n.jsx)("div",{className:(0,d.A)({"mt-[18px]":"/me/legal"===p,"max-w-[720px] mx-auto":"/inquiry"===p}),children:t})]})]}):(0,n.jsx)(n.Fragment,{children:t}),r.map((e,t)=>{let{component:r}=e,{isOpen:a}=u[t];return a?(0,n.jsx)(r,{},t):null})]})}},621230:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d,gf:()=>c});var n=r(923047),a=r(361789),o=r(814565),s=r(513030),l=r(691782);let i=()=>new Promise(e=>{let t=(0,o.hg)(a.j2,r=>{e(r),t()})}),c=async()=>{let e=await i();if(e){let t=await e.getIdToken();return(0,s.setCookie)(l.Xh,t),t}return""},u=n.A.create({baseURL:"https://xroid-api-954922496615.asia-northeast1.run.app"});u.interceptors.request.use(async e=>{let t=await c();return t&&(e.headers.Authorization="Bearer ".concat(t)),e});let d=u},325953:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>h,CA:()=>s,Ff:()=>d,N7:()=>l,OG:()=>i,UU:()=>a,dC:()=>o,gE:()=>c,ge:()=>n,je:()=>p,k2:()=>u,uY:()=>m});let n=900,a={EMAIL_ALREADY_EXISTS:"Email already exists",ALIAS_ALREADY_EXISTS:"Alias already exists",NOT_FOUND:"Not found",UNAUTHORIZED:"Unauthorized",FORBIDDEN:"Forbidden",SYSTEM_ERROR:"System error",ALREADY_EXISTS:"Already exists",INVALID_CODE:"Invalid code",CODE_EXPIRED:"Code expired",BAD_REQUEST:"Bad request",BLOCK_NOT_FOUND:"Block not found",USER_NOT_FOUND:"User not found",INVALID_TYPE:"Invalid type",MISSING_USER_ID:"Missing user ID",NOT_ENOUGH_CUBE:"Not enough cube",PROMPT_EMPTY:"Prompt is empty",MISSING_USE_ENECOLOR:"Missing useEneColor",INVALID_EMAIL:"Invalid email format",FORBIDDEN_WRITE_STORAGE:"You do not have permission to write data to this storage",CONTENT_PRIVATE:"Content is private",CHAPTER_PRIVATE:"Chapter is private",FORBIDDEN_USER_EDIT:"You are not authorized to edit users with higher role",CANNOT_SET_HIGHER_ROLE:"Cannot set role higher than your current role",LLM_NOT_FOUND:"LLM not found or deleted",ERROR_NAME_EXISTS:"existsNameError",TOOL_NOT_FOUND:"Tool not found",YOU_DO_NOT_HAVE_PERMISSION:"You do not have permission to use this feature.",FAILED_TO_GENERATE_VIDEO:"Failed to generate video",SAFETY_POLICY_VIOLATION:"Safety policy violation",PROMPT_TOO_LONG:"Prompt too long",CONTENT_PASSWORD_REQUIRED:"Content password required",WRONG_PASSWORD:"Wrong password",PAYLOAD_TOO_LARGE:"Payload too large",POSTIZ_ACCOUNT_NOT_LINKED:"Postiz account not linked",MEDIA_UPLOAD_FAILED:"Media upload failed",VIDEO_FILE_TOO_LARGE:"Video file too large"},o={GENERATE_VIDEO_COMPLETE:"generateVideoComplete",GENERATE_VIDEO_ERROR:"generateVideoError"},s={RENDER_VIDEO_ERROR:"renderVideoError"},l="ユーザー",i={ACCEPT_COREROID:"accept_coreroid"},c=["#ffffff","#000000","#d50000","#e67c73","#f4511e","#f6bf26","#33b679","#0b8043","#039be5","#007bff","#3f51b5","#7986cb","#8e24aa","#616161","#EAF0FA","#E1E9F5","#DEF1F2","#E0F0E8","#E6EEDC","#ECEBD8","#E0E5F7","#E8EBF1","#F5E8CC","#F4E3C6","#F6E0D5","#F3D9D8","#F4DFE7","#EDDDF1","#E7E0F5","#EEE9E2"],u=5,d=["/privacy-policies","/terms-of-service","/external-transmission-content","/payment-settlement","/specified-commercial-transactions"],p=["/cube-history","/purchase","/me","/inquiry"],m="xroid-rslot:",h="xroid-lslot:"},691782:(e,t,r)=>{"use strict";r.d(t,{Ck:()=>a,Xh:()=>n,oT:()=>s,rC:()=>o});let n="xroid_access_token",a="xroid_anonymous_user_id",o="xroid_anonymous_nickname",s="xroid_custom_token"},361789:(e,t,r)=>{"use strict";r.d(t,{IG:()=>c,OO:()=>u,j2:()=>i});var n=r(649904),a=r(814565),o=r(405622),s=r(138698);let l=(0,n.Wp)({apiKey:"AIzaSyB-uODWJMI1HojWy2rOKZZ69H6yxaNoODQ",authDomain:"xroid2.firebaseapp.com",projectId:"xroid2",storageBucket:"xroid2.firebasestorage.app",messagingSenderId:"954922496615",appId:"1:954922496615:web:c2d282bafd2b15c1521ac2",databaseURL:"https://xroid2-default-rtdb.asia-southeast1.firebasedatabase.app"}),i=(0,a.xI)(l),c=(0,o.c7)(l),u=(0,s.C3)(l)},503171:(e,t,r)=>{"use strict";r.d(t,{Fx:()=>d,MI:()=>c,RY:()=>h,ZL:()=>u,cd:()=>i,f3:()=>l,hi:()=>m,ri:()=>p,sm:()=>g,ug:()=>o,xw:()=>s});var n=r(621230),a=r(624520);let o=async(e,t)=>{try{let r=(0,a.j)({token:e}),{data:o}=await n.Ay.get("auth/info".concat(r),t);return null==o?void 0:o.data}catch(e){return null}},s=async e=>{try{let{data:t}=await n.Ay.post("auth/reset-password",e);return t}catch(e){return!1}},l=async e=>{try{let{data:t}=await n.Ay.put("auth/update-password",e);return t}catch(e){return null}},i=async e=>{try{let{data:t}=await n.Ay.post("auth/register",e);return t}catch(e){return null}},c=async e=>{try{let{data:t}=await n.Ay.post("auth/verify-token",{token:e});return t}catch(e){return null}},u=async(e,t)=>{try{let{data:r}=await n.Ay.post("auth/complete-registration",{token:e,password:t});return r}catch(e){return null}},d=async()=>{let{data:e}=await n.Ay.post("/auth/custom-token");return e},p=async()=>{await n.Ay.post("/auth/logout")},m=async e=>{try{let{data:t}=await n.Ay.post("auth/send-login-otp",{email:e});return t}catch(e){return null}},h=async e=>{try{let{data:t}=await n.Ay.post("auth/verify-login-otp",{otp:e});return t}catch(e){return null}},g=async e=>{try{let{data:t}=await n.Ay.post("auth/check-status-otp",e);return t}catch(e){return null}}},34282:(e,t,r)=>{"use strict";r.d(t,{YT:()=>u,iu:()=>c,tO:()=>d});var n=r(691782),a=r(513030),o=r(770853),s=r(192922),l=r(757531);let i=()=>{let e=window.location.hostname;return o.Ay.parse(e).domain},c=()=>{let e=i();return{path:"/",domain:".".concat(e)}},u=async e=>{let t=c();(0,a.setCookie)(n.oT,e,t)},d=()=>{try{let e=c(),t=(0,a.getCookie)(n.oT,e);if(!t)return null;let{exp:r}=(0,s.s)(t),o=Math.floor(Date.now()/1e3);if(r&&r<o)return(0,a.deleteCookie)(n.oT,e),null;return t}catch(e){return(0,l.v)("".concat("auth/utils.ts"," - getCustomToken"),e),
1console.error("Error decoding token:",e),null}}},33862:(e,t,r)=>{"use strict";r.d(t,{Qt:()=>p,SR:()=>m,Uc:()=>u,V$:()=>s,Ww:()=>f,ec:()=>i,hq:()=>y,lw:()=>b,ly:()=>x,mH:()=>h,oc:()=>g,pU:()=>E,pV:()=>d,r7:()=>l,rF:()=>c,t9:()=>w,wz:()=>o,x3:()=>v});var n=r(621230),a=r(624520);let o=async(e,t)=>(await n.Ay.get("/user/".concat(e),t)).data,s=async(e,t)=>(await n.Ay.get("/user/alias/".concat(e),t)).data,l=async(e,t)=>{let r=(0,a.j)({token:t});return(await n.Ay.put("/user/update-profile".concat(r),e)).data},i=async(e,t)=>{let r=(0,a.j)({token:t});return(await n.Ay.put("/user/change-password".concat(r),e)).data},c=async e=>{try{return(await n.Ay.post("/user/anonymous/".concat(e))).data}catch(e){return console.log(e),null}},u=async e=>{try{return(await n.Ay.post("/user/donate-cube",e)).data}catch(e){return console.log(e),null}},d=async e=>{let{data:t}=await n.Ay.post("/user/follow",{uid:e,status:!0});return t},p=async e=>{let{data:t}=await n.Ay.post("/user/follow",{uid:e,status:!1});return t},m=async e=>{let{data:t}=await n.Ay.get("/user/followers/".concat(e));return t.data},h=async e=>{let{data:t}=await n.Ay.get("/user/follows/".concat(e));return t.data},g=async e=>{let t=(0,a.j)(e);try{return(await n.Ay.get("/user/files/".concat(t))).data}catch(e){return console.log(e),null}},x=async e=>{try{return(await n.Ay.get("/user/file/".concat(e))).data}catch(e){return console.log(e),null}},y=async(e,t)=>{try{let r=(0,a.j)({token:t});return(await n.Ay.post("".concat("/user/files/many").concat(r),e)).data}catch(e){return console.log(e),null}},v=async(e,t)=>{try{let r=(0,a.j)({token:t});return(await n.Ay.post("".concat("/user/files").concat(r),e)).data}catch(e){return console.log(e),null}},f=async e=>{try{return(await n.Ay.delete("/user/files/".concat(e))).data}catch(e){return console.log(e),null}},b=async()=>{try{return(await n.Ay.delete("/user/delete-account")).data}catch(e){return console.log(e),null}},E=async e=>{try{var t,r;let a=await n.Ay.get("/user/assets/".concat(e));return null!==(r=null===(t=a.data)||void 0===t?void 0:t.data)&&void 0!==r?r:null}catch(e){return console.log(e),null}},w=async e=>{try{var t,r;let a=await n.Ay.post("/user/assets",e);return null!==(r=null===(t=a.data)||void 0===t?void 0:t.data)&&void 0!==r?r:null}catch(e){return console.log(e),null}}},159840:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,ZF:()=>i,_9:()=>s});var n=r(179442),a=r(374399);let o=(0,n.Z0)({name:"user",initialState:{loginUser:null},reducers:{updateLoginUser:(e,t)=>{e.loginUser=t.payload}}}),{updateLoginUser:s}=o.actions,l=o.reducer,i=(0,a.Mz)(e=>e.user,e=>e.loginUser)},594307:(e,t,r)=>{"use strict";r.d(t,{A:()=>w,q:()=>v});var n=r(695155),a=r(361789),o=r(814565),s=r(212115),l=r(159840),i=r(503171),c=r(83391),u=r(76046),d=r(511561),p=r(34282),m=r(513030),h=r(691782),g=r(30025),x=r(33862),y=r(757531);let v=(0,s.createContext)(!1),f="AuthHoc.tsx",b=!1,E=!0;function w(e){let{children:t,redirectToOriginalPath:r,renderChildrenWhileLoading:w}=e,[O,A]=(0,s.useState)(!0),N=(0,c.wA)(),j=(0,u.useRouter)(),_=(0,u.usePathname)(),I=(0,u.useSearchParams)(),T=I.get("token")||"",C=async()=>{try{N((0,l._9)(null));let e=(0,p.iu)();(0,m.deleteCookie)(h.oT,e),await (0,i.ri)(),await (0,o.CI)(a.j2)}catch(e){(0,y.v)("".concat(f," - handleUnauthorizedAccess Error"),e)}};return((0,s.useEffect)(()=>{let e="/auth/login";r&&(e+="?redir=".concat(encodeURIComponent(_+"?"+I.toString())));let t=(0,o.hg)(a.j2,async t=>{A(!0);try{let r=(0,p.tO)();if(t){if(E=!1,b){b=!1,A(!1);return}let n=await (0,i.ug)(T);if((null==n?void 0:n.enableTwoFactor)&&!r&&!T){j.replace("/auth/login");return}if(n){if(N((0,l._9)(n)),n.role&&![g.gG.CLIENTMEMBER,g.gG.ANONYMOUS].includes(n.role)){let{data:e}=await (0,i.Fx)();(0,p.YT)(e)}if(n.role===g.gG.ANONYMOUS&&r)try{await (0,o.CI)(a.j2),N((0,l._9)(null));let e=(0,p.iu)();(0,m.deleteCookie)(h.oT,e),await (0,o.p)(a.j2,r)}catch(e){(0,y.v)("".concat(f," - Anonymous with token Error"),e),C()}A(!1);return}t.isAnonymous||(await C(),j.push(e)),A(!1);return}if(r){E=!1;try{await (0,o.p)(a.j2,r),A(!1);return}catch(e){(0,y.v)("".concat(f," - CustomToken Error"),e),await C()}}if(E){b=!0,E=!1;try{let e=await (0,o.zK)(a.j2);if(null==e?void 0:e.user){let t=await (0,x.rF)(e.user.uid);(null==t?void 0:t.data)&&N((0,l._9)(t.data))}}catch(e){(0,y.v)("".concat(f," - Anonymous Error"),e),console.error("Error signing in anonymously:",e)}}}catch(e){(0,y.v)("".concat(f," - onAuthStateChanged Error"),e)}finally{A(!1)}});return()=>t()},[_,r,N,j,T]),w)?(0,n.jsx)(v.Provider,{value:O,children:t}):O?(0,n.jsx)(d.A,{}):(0,n.jsx)(n.Fragment,{children:t})}},511561:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(695155),a=r(318813),o=r(7266);function s(){let e=(0,o.useTranslations)("common");return(0,n.jsx)("div",{className:"bg-[#FBF6ED] h-screen w-full flex justify-center items-center",children:(0,n.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,n.jsx)(a.A,{size:"large",className:"white-antd-spin"}),(0,n.jsx)("div",{style:{color:"var(--deep-insight-blue)",marginTop:"12px"},className:"font-noto",children:e("loading")})]})})}},30025:(e,t,r)=>{"use strict";r.d(t,{bl:()=>a,gG:()=>n,k3:()=>o});var n=function(e){return e.SUPERADMIN="superadmin",e.OWNER="owner",e.ADMIN="admin",e.CREATOR="creator",e.CLIENTOWNER="clientowner",e.CLIENTADMIN="clientadmin",e.CLIENTMEMBER="clientmember",e.ANONYMOUS="anonymous",e}({}),a=function(e){return e.FAL_AI="FalAi",e.DRIVE="Drive",e.STORAGE="Storage",e}({}),o=function(e){return e.PDF="pdf",e.TEXT="text",e.SLIDE="slide",e.SHEET="sheet",e.IMAGE="image",e.AUDIO="audio",e.VIDEO="video",e.FOLDER="folder",e.REMOTION_VIDEO="remotion_video",e.EXCEL="excel",e}({})},255205:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});
1var n=r(104617),a=r.n(n),o=r(269795);function s(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.QP)(a()(...t))}},757531:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=function(e){return e.XROID="xroid",e.STUDIO="studio",e.API="api",e}({}),a=function(e){return e.INFO="info",e.ERROR="error",e}({}),o=r(621230);let s=async e=>{try{return(await o.Ay.post("/log",e)).data}catch(e){return console.log(e),null}},l=e=>{try{return JSON.stringify(e,null,2)}catch(t){return String(e)}},i=(e,t)=>{var r;let o=window.location.pathname,i=("string"==typeof t?t:null==t?void 0:t.message)||(null!=t?l(t):"")||"Unknown error";s({service:n.XROID,type:a.ERROR,title:e,message:i,details:l(null!==(r=null==t?void 0:t.stack)&&void 0!==r?r:t),endpoint:o})}},820385:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(80766);let a="topRight",o=(e,t,r)=>{switch(e){case"success":n.Ay.success({message:t,description:(null==r?void 0:r.description)||"",placement:(null==r?void 0:r.placement)||a,showProgress:(null==r?void 0:r.showProgress)||!0,pauseOnHover:(null==r?void 0:r.pauseOnHover)||!0});break;case"error":n.Ay.error({message:t,description:(null==r?void 0:r.description)||"",placement:(null==r?void 0:r.placement)||a,showProgress:(null==r?void 0:r.showProgress)||!0,pauseOnHover:(null==r?void 0:r.pauseOnHover)||!0});break;case"warning":n.Ay.warning({message:t,description:(null==r?void 0:r.description)||"",placement:(null==r?void 0:r.placement)||a,showProgress:(null==r?void 0:r.showProgress)||!0,pauseOnHover:(null==r?void 0:r.pauseOnHover)||!0});break;case"info":n.Ay.info({message:t,description:(null==r?void 0:r.description)||"",placement:(null==r?void 0:r.placement)||a,showProgress:(null==r?void 0:r.showProgress)||!0,pauseOnHover:(null==r?void 0:r.pauseOnHover)||!0})}}},624520:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});let n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.fromEntries(Object.entries(e).filter(e=>{let[t,r]=e;return Array.isArray(r)?r.length>0&&r.some(e=>null!=e&&""!==e):null!=r&&""!==r})),r=new URLSearchParams;Object.entries(t).forEach(e=>{let[t,n]=e;Array.isArray(n)?n.forEach(e=>{null!=e&&""!==e&&r.append(t,String(e))}):r.append(t,String(n))});let n=r.toString();return n?"?".concat(n):""}},192922:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});
1class n extends Error{}function a(e,t){let r;if("string"!=typeof e)throw new n("Invalid token specified: must be a string");t||(t={});let a=!0===t.header?0:1,o=e.split(".")[a];if("string"!=typeof o)throw new n(`Invalid token specified: missing part #${a+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(o)}catch(e){throw new n(`Invalid token specified: invalid base64 for part #${a+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new n(`Invalid token specified: invalid json for part #${a+1} (${e.message})`)}}n.prototype.name="InvalidTokenError"},893435:(e,t,r)=>{"use strict";r.d(t,{k5:()=>u});var n=r(212115),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(a),s=["attr","size","title"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var n,a;n=t,a=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return t=>n.createElement(d,l({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,c({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,a=e.attr,o=e.size,i=e.title,u=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,s),d=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,u,{className:r,style:c(c({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),i&&n.createElement("title",null,i),e.children)};return void 0!==o?n.createElement(o.Consumer,null,e=>t(e)):t(a)}},235532:(e,t,r)=>{"use strict";r.d(t,{P:()=>s,v:()=>i});var n=r(212115),a=r(179124);let o=e=>e;function s(e,t=o){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r}let l=e=>{let t=(0,a.y)(e),r=e=>s(t,e);return Object.assign(r,t),r},i=e=>e?l(e):l},179124:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});let n=e=>{let t;let r=new Set,n=(e,n)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=n?n:"object"!=typeof a||null===a)?a:Object.assign({},t,a),r.forEach(r=>r(t,e))}},a=()=>t,o={setState:n,getState:a,getInitialState:()=>s,subscribe:e=>(r.add(e),()=>r.delete(e))},s=t=e(n,a,o);return o},a=e=>e?n(e):n}},e=>{var t=t=>e(e.s=t);e.O(0,[79507,27811,67236,55897,63380,7266,27675,42723,34082,11256,69795,58614,83625,53654,18813,96542,71362,48173,80766,28441,11517,77358],()=>t(400680)),_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.