PageSourceSearch

https://my.liminary.io/_next/static/chunks/5987-2f7bbaaa7d494650.js

js liminary.io collected 2026-09-24 12:00:20 UTC 10,941 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="163f1500-a1bb-4fb6-86ee-1a69437ad168",e._sentryDebugIdIdentifier="sentry-dbid-163f1500-a1bb-4fb6-86ee-1a69437ad168")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5987],{8892:(e,t,r)=>{r.d(t,{sanitizeHtml:()=>n,sanitizeHtmlWithConfig:()=>s});var a=r(6087);function n(e){if(!e||"string"!=typeof e)return"";let t=a.A.sanitize(e);return"string"==typeof t?t:""}function s(e,t){if(!e||"string"!=typeof e)return"";let r=a.A.sanitize(e,t);return"string"==typeof r?r:""}},12486:(e,t,r)=>{r.d(t,{S:()=>l});var a=r(41527),n=r(74092),s=r(67169),i=r(8705),o=r(96876);let l=n.forwardRef((e,t)=>{let{className:r,checkWeight:n="regular",...l}=e;return(0,a.jsx)(i.bL,{ref:t,className:(0,o.cn)("peer flex size-4 shrink-0 items-center justify-center rounded border border-grey-300 ring-offset-background transition-colors duration-150 data-[state=checked]:border-black-primary data-[state=checked]:bg-black-primary data-[state=checked]:text-white-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-grey-500 dark:data-[state=checked]:border-white-primary dark:data-[state=checked]:bg-white-primary dark:data-[state=checked]:text-black-primary",r),...l,children:(0,a.jsx)(i.C1,{className:(0,o.cn)("flex items-center justify-center text-current"),children:(0,a.jsx)(s.S,{size:13,weight:n})})})});l.displayName=i.bL.displayName},17131:(e,t,r)=>{r.d(t,{s:()=>s});var a=r(62877),n=r(88451);let s=()=>{let{userProfile:e,isAuthenticated:t,isLoadingSession:r}=(0,n.w)(),s=(0,a.jE)();return{userProfile:null!=e?e:void 0,isLoading:r,isSuccess:t,isPending:r,setUserProfileData:e=>{s.setQueryData(n.u,e)}}}},21196:(e,t,r)=>{r.d(t,{k:()=>c});var a=r(41527),n=r(62759),s=r(10189),i=r(96876);let o=(0,s.F)("flex-col items-center justify-center",{variants:{show:{true:"flex",false:"hidden"}},defaultVariants:{show:!0}}),l=(0,s.F)("animate-spin text-primary",{variants:{size:{small:"size-6",medium:"size-8",large:"size-12"}},defaultVariants:{size:"medium"}});function c(e){let{size:t,show:r,children:s,className:c}=e;return(0,a.jsxs)("span",{className:o({show:r}),"data-sentry-component":"LoadingSpinner","data-sentry-source-file":"loading-spinner.tsx",children:[(0,a.jsx)("span",{className:(0,i.cn)(l({size:t}),c),children:(0,a.jsx)(n.E,{size:"100%",color:"currentColor","data-sentry-element":"CircleNotchIcon","data-sentry-source-file":"loading-spinner.tsx"})}),s]})}},25987:(e,t,r)=>{r.d(t,{k:()=>p});var a=r(41527),n=r(74092),s=r(32632),i=r(26960),o=r.n(i),l=r(91829),c=r(17131),d=r(78042),u=r(17959),m=r(82451),f=r(76277),g=r(12486),h=r(96876);let p=e=>{let{buttonText:t,scopeToRequest:r=d.nA.Core,mode:i="default",compact:p=!1,align:b="start",onBeforeRedirect:x}=e,y=(0,l.usePathname)(),w=(0,l.useSearchParams)(),v=w.get("originalUrl"),j="/signup"===y,k="incremental"===i,{userProfile:N}=(0,c.s)(),[S,C]=(0,n.useState)(!1),[z,L]=(0,n.useState)(!j),[I,_]=(0,n.use
1State)(),[P,T]=(0,n.useState)(!1),U=(0,n.useRef)(!1),E=(0,n.useCallback)(()=>{if(U.current)return;U.current=!0,T(!0);let e=null==N?void 0:N.email,t="true"===localStorage.getItem("force_account_selection"),a=y+(w.toString()?"?".concat(w.toString()):""),n=new URLSearchParams({scope:(0,u.Dd)(r),originalPath:null!=v?v:a,isIncrementalAuth:k.toString(),redirectOrigin:window.location.origin,...e&&{loginHint:e}});t?(localStorage.removeItem("force_account_selection"),n.set("prompt","select_account")):(k||S)&&n.set("prompt","consent");let s="".concat((0,m.$_)(),"/api/v2/auth/google/initiate?").concat(n.toString());null==x||x(),window.location.href=s},[S,y,v,r,k,N,x,w]);(0,n.useEffect)(()=>{new URLSearchParams(window.location.search).has("error")&&C(!0)},[]),(0,n.useEffect)(()=>{let e=e=>{e.persisted&&(U.current=!1,T(!1))};return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[]);let G=()=>{if(z)return E();I||_("You must accept the Privacy Policy and Terms of Use")};return k?(0,a.jsx)(f.$,{onClick:G,size:"sm",variant:"tertiary",className:(0,h.cn)("hover:bg-surface-primary-cta hover:text-white"),isLoading:P,"aria-label":"Connect",children:(0,a.jsx)("span",{className:"amp-unmask",children:"Connect"})}):(0,a.jsxs)("div",{className:(0,h.cn)("flex w-full flex-col gap-4","center"===b&&"items-center"),"data-sentry-component":"GoogleAuth","data-sentry-source-file":"GoogleAuth.tsx",children:[(0,a.jsx)("div",{className:"flex w-full flex-col gap-2",children:(0,a.jsxs)("div",{className:(0,h.cn)("flex w-full flex-col gap-4","center"===b&&"items-center"),children:[p?(0,a.jsxs)(f.$,{className:"w-fit border-grey-200",onClick:G,variant:"outline",isLoading:P,"aria-label":t,children:[(0,a.jsx)(s.default,{alt:"Google icon",className:"mr-2",height:20,src:"/images/google.svg",width:20}),t]}):(0,a.jsxs)(f.$,{className:"w-fit py-4 text-white-primary sm:w-full sm:min-w-10 sm:max-w-[320px]",onClick:G,variant:"default",isLoading:P,"aria-label":t,children:[(0,a.jsx)(s.default,{alt:"Google icon",className:"mr-2",height:20,src:"/images/google.svg",width:20}),t]}),j&&(0,a.jsxs)("div",{className:"mt-4 flex flex-col items-center gap-1 text-grey-700 sm:items-start",children:[(0,a.jsxs)("div",{className:"flex w-fit items-center gap-1",children:[(0,a.jsx)(g.S,{checked:z,disabled:P,onCheckedChange:e=>{I&&_(void 0),L(e)}}),(0,a.jsxs)("p",{className:"amp-unmask text-[12px] sm:whitespace-nowrap sm:text-sm",children:["I agree to Liminary's \xa0",(0,a.jsx)(o(),{className:"text-surface-primary-cta underline",href:"https://www.liminary.io/privacy",children:"Privacy Policy"}),"\xa0&\xa0",(0,a.jsx)(o(),{className:"text-surface-primary-cta underline",href:"https://www.liminary.io/chrome-policy",children:"Terms of Use."})]})]}),(0,a.jsx)("p",{className:"text-center text-[12px] text-warning-error sm:text-sm",children:I})]})]})}),!p&&j&&(0,a.jsxs)("p",{className:"amp-unmask mt-2 text-[#2b2b2b]",children:["Already have an account?\xa0",(0,a.jsx)(o(),{className:"text-surface-primary-cta underline",href:v?"".concat(d.bw.LOGIN,"?originalUrl=").concat(encodeURIComponent(v)):d.bw.LOGIN,children:"Sign in here."})]}),!p&&"/login"===y&&(0,a.jsxs)("p",{className:"amp-unmask mt-2 text-[#2b2b2b]",children:["Don't have an account?\xa0",(0,a.jsx)(o(),{className:"text-surface-primary-cta underline",href:v?"".concat(d.bw.SIGNUP,"?originalUrl=").concat(encodeURIComponent(v)):d.bw.SIGNUP,children:"Sign up here."})]})]})}},75854:(e,t,r)=>{r.d(t,{B:()=>o,Tooltip:()=>l,TooltipContent:()=>d,TooltipTrigger:()=>c});var a=r(41527),n=r(74092),s=r(43538),i=r(96876);let o=s.Kq,l=e=>{let{delayDuration:t=100,...r}=e;return(0,a.jsx)(s.bL,{delayDuration:t,...r,"data-sentry-element":"unknown","data-sentry-component":"Tooltip","data-sentry-source-file":"tooltip.tsx"})},c=s.l9,d=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...o}=e;return(0,a.jsx)(s.ZL,{children:(0,a.jsx)(s.UC,{ref:t,sideOffset:n,className:(0,i.cn)("z-[200] overflow-hidden rounded-md border border-black-primary bg-black-primary px-2 py-1 text-xs text-white-primary shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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",r),...o})})});d.displayName=s.UC.displayName},76277:(e,t,r)=>{r.d(t,{$:()=>u,r:()=>d});var a=r(41527),n=r(74092),s=r(43221),i=r(10189),o=r(96876),l=r(21196),c=r(75854);let d=(0,i.F)("inline-flex items-center justify-center rounded-md text-sm font-normal ring-offset-background transition-colors disabled:cursor-not-allowed disabled:bg-grey-100 disabled:text-grey-500",{variants:{variant:{default:"rounded-xl bg-brand text-white-primary hover:bg-brand-hover",secondary:"bg-black-primary text-white-primary hover:bg-grey-700",tertiary:"bg-surface-subtle text-on-surface hover:bg-surface-main",outline:"rounded-xl border border-surface-border-subtle bg-transparent text-on-surface hover:border-transparent hover:bg-surface-subtle hover:text-on-surface disabled:border-0",ghost:"bg-transparent text-on-surface hover:bg-surface-subtle hover:text-on-surface disabled:bg-transparent disabled:text-on-surface-variant",link:"text-grey-500 underline-offset-4 hover:underline",accent:"bg-brand-orange-600 text-white-primary hover:bg-brand-orange-800",toolbar:"whitespace-nowrap border border-grey-200 bg-transparent px-[5px] font-medium hover:border-brand-green-500 hover:bg-brand-green-500 hover:text-white-primary focus:outline-none",transparentToGreenOnHover:"border border-grey-200 bg-transparent hover:border-brand-green-700 hover:bg-brand-green-700 hover:text-white-primary"},size:{default:"h-10 px-[12px] text-base leading-[26px]",sm:"h-8 rounded-lg px-2 py-1 leading-[22px]",lg:"h-11 rounded-md px-8",icon:"flex size-10",xs:"h-6 rounded-lg px-2 py-1 text-[13px] leading-[18px]"}},defaultVariants:{variant:"default",size:"default"}}),u=n.forwardRef((e,t)=>{let{className:r,variant:n,size:i,tooltip:u,isLoading:m=!1,asChild:f=!1,disabled:g,children:h,...p}=e,b=f?s.DX:"button",x=(0,a.jsx)(b,{className:(0,o.cn)(d({variant:n,size:i,className:r})),ref:t,...p,disabled:m||g,"aria-busy":m||void 0,children:m?(0,a.jsx)(l.k,{size:"small",show:m}):h});return u&&!m?(0,a.jsxs)(c.Tooltip,{children:[(0,a.jsx)(c.TooltipTrigger,{asChild:!0,children:x}),(0,a.jsx)(c.TooltipContent,{children:u})]}):x});u.displayName="Button"},88451:(e,t,r)=>{r.d(t,{u:()=>c,w:()=>d});var a=r(79575),n=r(62877),s=r(85296),i=r(91829),o=r(78042),l=r(82451);let c=["session"],d=()=>{let e=(0,i.useRouter)(),t=(0,n.jE)(),{data:r,isLoading:d}=(0,s.I)({queryKey:c,queryFn:async()=>{let e={},{access_token:t}=await (0,l.W1)();t&&(e.Authorization="Bearer ".concat(t));let r=await fetch("".concat((0,l.$_)(),"/api/users/me"),{headers:e,credentials:"include"});return r.ok?r.json():null},gcTime:0,staleTime:5e3,retry:!1});return{userProfile:null!=r?r:null,isAuthenticated:!!r,isLoadingSession:d,mutateSession:()=>{t.invalidateQueries({queryKey:["session"]})},logOut:async()=>{try{await (0,l.Yj)();try{await fetch("".concat((0,l.$_)(),"/api/v2/auth/logout"),{method:"POST",credentials:"include"})}catch(e){}(0,a.I9)(),localStorage.setItem("force_account_selection","true"),(0,l.Ci)({message:o.X_.LOGOUT}).catch(()=>{}),await t.invalidateQueries({queryKey:["session"]}),e.push(o.bw.LOGIN)}catch(t){console.error("Logout failed:",t instanceof Error&&!t.message.includes("token")?t:Error("Logout operation failed")),e.push(o.bw.LOGIN)}}}}},96876:(e,t,r)=>{r.d(t,{cn:()=>i,p:()=>s.sanitizeHtml});var a=r(23477),n=r(89232),s=r(8892);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.QP)((0,a.$)(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.