PageSourceSearch

https://slive.ai/_next/static/chunks/app/%5Blocale%5D/(root)/layout-1c0292f7a72926d4.js

js slive.ai collected 2026-10-05 12:39:44 UTC 7,031 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81718],{14964:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(95155),i=n(34680),s=n(86190),o=n(44018),l=n(12115),a=n(73321),d=n(8151);let c=function({user:e,className:t}){let{showPanel:n,showAppNav:c,setShowAppNav:u,setShowPanel:h}=(0,o.o)(),m=(0,a.usePathname)(),v=["/astro","/chat"].includes((0,d.Rg)(m));return((0,l.useEffect)(()=>{!v&&n&&c&&u(!1)},[n,v]),(0,l.useEffect)(()=>{if(!v)try{"1"===sessionStorage.getItem("NB_FORCE_OPEN")&&(h?.(!0),sessionStorage.removeItem("NB_FORCE_OPEN"))}catch{}},[h,v]),v)?null:(0,r.jsx)("section",{className:(0,s.cn)("sticky right-0 top-20 z-20 flex w-1/4  flex-col justify-between gap-5 overflow-auto max-md:hidden custom-scrollbar transform transition-all duration-500 ease-in-out h-fit",{"translate-x-0":n,"translate-x-full hidden":!n},t),children:(0,r.jsx)(i.A,{currentUser:e.user})})}},45646:(e,t,n)=>{"use strict";n.d(t,{default:()=>v});var r=n(95155),i=n(12115);let s="slive:subscription-read-only",o=0;var l=n(73321),a=n(50910),d=n(11697),c=n(25777),u=n(57657),h=n(68189);let m=({open:e,orgCode:t,onClose:n})=>{let i=(0,a.c)("components.subscription-lifecycle"),s=(0,d.Ym)(),o=(0,l.useRouter)();return(0,r.jsx)(u.Dialog,{open:e,onOpenChange:e=>!e&&n?.(),children:(0,r.jsxs)(u.DialogContent,{className:"max-w-md",children:[(0,r.jsxs)(u.DialogHeader,{children:[(0,r.jsxs)(u.DialogTitle,{className:"flex items-center gap-2",children:[(0,r.jsx)(c.A,{className:"h-5 w-5 text-destructive"}),i("PAYWALL_TITLE")]}),(0,r.jsx)(u.DialogDescription,{children:i("PAYWALL_BODY")})]}),(0,r.jsxs)(u.DialogFooter,{children:[(0,r.jsx)(h.Button,{variant:"outline",onClick:()=>n?.(),children:i("PAYWALL_DISMISS")}),(0,r.jsx)(h.Button,{variant:"destructive",onClick:()=>{n?.(),t&&o.push(`/${s}/checkout/${t}?reason=renewal`)},disabled:!t,children:i("PAY_CTA")})]})]})})},v=({orgCode:e})=>{let[t,n]=(0,i.useState)(null);return(0,i.useEffect)(()=>{var e;let t;return e=e=>n(e??{}),t=t=>e(t?.detail??{}),window.addEventListener(s,t),()=>window.removeEventListener(s,t)},[]),(0,i.useEffect)(()=>{if("function"!=typeof window.fetch)return;let e=window.fetch;if(e.__sliveReadOnlyWrapped)return;let t=async(...t)=>{let n=await e(...t);try{if(n&&402===n.status){let e,t=await n.clone().json().catch(()=>null);t&&"object"==typeof t&&(t.Code??t.code??t?.Data?.Code??t?.data?.code??null)==="SUBSCRIPTION_EXPIRED_READ_ONLY"&&function(e={}){let t=Date.now();if(!(t-o<1e3)){o=t;try{window.dispatchEvent(new CustomEvent(s,{detail:e}))}catch{return!1}}}({organizationCode:(e=t?.Data??t?.data??{}).organizationCode??e.OrganizationCode??null,graceUntil:e.graceUntil??e.GraceUntil??null})}}catch{}return n};return t.__sliveReadOnlyWrapped=!0,window.fetch=t,()=>{window.fetch===t&&(window.fetch=e)}},[]),(0,r.jsx)(m,{open:null!==t,orgCode:t?.organizationCode??e??null,graceUntil:t?.graceUntil??null,onClose:()=>n(null)})}},63497:(e,t,n)=>{"use strict";n.d(t,{default:()=>f});var r=n(95155),i=n(26708),s=n(73321),o=n(50910),l=n(11697),a=n(25777),d=n(41585),c=n(69909);let u="true"===n(87358).env.NEXT_PUBLIC_SUBSCRIPTION_BANNER_ENABLED,h="hidden",m="read-only";var v=n(68189),b=n(86190);let f=({orgCode:e,accountType:t})=>{let n=(0,o.c)("components.subscription-lifecycle"),f=(0,l.Ym)(),P=(0,s.useRouter)(),w=(0,s.usePathname)(),g=w?.split("/").includes("checkout")??!1,p=u&&"organization"===t&&!!e,{data:_}=(0,i.I)({queryKey:["subscription-lifecycle",e],queryFn:()=>(0,c.z)(),enabled:p,staleTime:3e5,refetchOnWindowFocus:!0,refetchOnMount:!0});if(!p)return null;let{state:x,days:E,graceUntil:N}=function(e,t=Date.now()){if(!e||!e.pastDue)return{state:h,days:null,graceUntil:null};let n=e.graceUntil??null;return e.readOnly?{state:m,days:0,graceUntil:n}:{state:"past-due",days:function(e,t=Date.now()){if(!e)return null;let n=new Date(e).getTime();return Number.isNaN(n)?null:Math.max(0,Math.ceil((n-t)/864e5))}(n,t),graceUntil:n}}(_&&!_.error?_.data:null);if(x===h)return null;let y=x===m,D=y?n("READ_ONLY_MESSAGE"):null!=E?n("PAST_DUE_MESSAGE_DAYS",{days:E,date:((e,t)=>{if(!e)return"";let n=new Date(e);if(Number.isNaN(n.getTime()))return"";try{return new Intl.DateTimeFormat(t,{day:"numeric",month:"long",year:"numeric"}).format(n)}catch{return n.toISOString().slice(0,10)}})(N,f)}):n("PAST_DUE_MESSAGE");return(0,r.jsxs)("div",{role:y?"alert":"status",className:(0,b.cn)("flex items-center gap-3 px-4 md:px-16 py-3",y?"border-b border-destructive/30 bg-destructive/10 text-destructive":"border-b border-warning/30 bg-warning-tint text-warning"),children:[y?(0,r.jsx)(a.A,{className:"h-5 w-5 shrink-0"}):(0,r.jsx)(d.A,{className:"h-5 w-5 shrink-0"}),(0,r.jsx)("span",{className:"text-sm font-medium",children:D}),!g&&(0,r.jsx)(v.Button,{variant:y?"destructive":"default",size:"sm",className:"ml-auto shrink-0",onClick:()=>{P.push(`/${f}/checkout/${e}?reason=renewal`)}
1,children:n("PAY_CTA")})]})}},69909:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(9339);let i=(0,r.createServerReference)("00227721748d52669b23bc779475d526ee3e22644c",r.callServer,void 0,r.findSourceMapURL,"getCurrentSubscription")},75194:(e,t,n)=>{Promise.resolve().then(n.bind(n,79696)),Promise.resolve().then(n.bind(n,63554)),Promise.resolve().then(n.bind(n,43479)),Promise.resolve().then(n.bind(n,39537)),Promise.resolve().then(n.bind(n,2021)),Promise.resolve().then(n.bind(n,52583)),Promise.resolve().then(n.bind(n,66781)),Promise.resolve().then(n.bind(n,22485)),Promise.resolve().then(n.bind(n,48361)),Promise.resolve().then(n.bind(n,98728)),Promise.resolve().then(n.bind(n,6117)),Promise.resolve().then(n.bind(n,88713)),Promise.resolve().then(n.bind(n,91930)),Promise.resolve().then(n.t.bind(n,98500,23)),Promise.resolve().then(n.bind(n,2614)),Promise.resolve().then(n.bind(n,93409)),Promise.resolve().then(n.bind(n,45748)),Promise.resolve().then(n.bind(n,63040)),Promise.resolve().then(n.bind(n,47713)),Promise.resolve().then(n.bind(n,31759)),Promise.resolve().then(n.bind(n,27909)),Promise.resolve().then(n.bind(n,74058)),Promise.resolve().then(n.bind(n,77278)),Promise.resolve().then(n.bind(n,44018)),Promise.resolve().then(n.bind(n,16376)),Promise.resolve().then(n.bind(n,85705)),Promise.resolve().then(n.bind(n,45646)),Promise.resolve().then(n.bind(n,50463)),Promise.resolve().then(n.bind(n,99856)),Promise.resolve().then(n.bind(n,89535)),Promise.resolve().then(n.bind(n,14964)),Promise.resolve().then(n.bind(n,265)),Promise.resolve().then(n.bind(n,72259)),Promise.resolve().then(n.bind(n,63497)),Promise.resolve().then(n.bind(n,17859)),Promise.resolve().then(n.bind(n,78550)),Promise.resolve().then(n.bind(n,84015)),Promise.resolve().then(n.bind(n,93406))}},e=>{e.O(0,[11065,85105,53930,12666,21779,98688,91909,82588,38437,50910,43218,19725,37882,63601,5306,25804,99003,45427,67192,3725,8071,98500,42933,61587,99119,8792,6851,1266,88806,52970,42399,43459,43392,82752,98101,32782,85406,54147,56836,7216,31962,88844,1358,33664,33028,13281,27909,89653,80495,33004,71485,55576,85328,73943,87247,43376,33947,83301,66162,45105,96900,28441,93794,77358],()=>e(e.s=75194)),_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.