PageSourceSearch

https://www.pixelcut.ai/assets/AppSessionSetup-fkTTrp95.js

js pixelcut.ai collected 2026-09-24 08:51:18 UTC 6,090 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f228acdf-c691-5deb-b82b-6b7c5ca5420e")}catch(e){}}();
3const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/utils-DdXrPaFr.js","assets/delete-CosGOv7a.js","assets/resize-BJsqZlFW.js","assets/route-DnEp0lSZ.js"])))=>i.map(i=>d[i]);
4import{_ as A}from"./resize-BJsqZlFW.js";import{r as t,f as F,n as x}from"./route-DnEp0lSZ.js";import{u as M}from"./format-relative-time-BRW-Gfs_.js";import{u as V}from"./search-OC7LG51w.js";import{j}from"./pencil-icon-BRV-YYik.js";import{A as k}from"./index-C5Mmx8hG.js";import{t as z}from"./index-BULBEV_H.js";import{A as B}from"./index-Ddt07TR7.js";import{i as D,m as H,u as Y}from"./index-DtrT7lOL.js";import{p as q,l as K,c as U,u as W,g as $,t as J}from"./SpinnerOverlay-D2xbQdWe.js";import{u as Q}from"./route-PR3q7woA.js";import{A as X,a as w,b as Z,t as ee,s as te}from"./inter-Cb27n9Cn.js";import{L as re}from"./delete-CosGOv7a.js";import{s as N,i as se,h as oe,a as ae,l as ne,O as ie}from"./beacon-CbSnQ49q.js";import{a as ue,c as ce}from"./plus-OyTXiQJP.js";import{r as me}from"./promo-DNJh48kN.js";import{a as G}from"./utils-DdXrPaFr.js";import{b as le,s as fe}from"./index.module-CAgo2RWR.js";import"./lock-open-_sg5NKZ_.js";import"./arrow-download-D0IpW_S7.js";import"./linkUtils-BL5Q36IV.js";import"./spinner-base-BmW43811.js";import"./grpc-transport-hC5KUW9m.js";import"./mobile-header-back-0J_t_8Mg.js";import"./use-i18n-namespaces-DU-DC8kW.js";import"./FixedPageContainer-CacYLpnt.js";import"./index-BW-I2-K5.js";import"./play-BOO9ydYN.js";import"./index-Chyvsnn0.js";import"./exclamation-triangle-BlYj0FYz.js";import"./node_pb-zulIUuoM.js";import"./lock-closed-B-7MqlkJ.js";import"./caret-left-C6H65Ejb.js";import"./governance-C0dYAycW.js";import"./organizations-CzkMt3FR.js";import"./use-authenticated-query-W2eepADR.js";import"./index-C1fSlD73.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"4fbfdcc8c2ea0fe3aefce28993d46db61ff318a4"}}catch{}})();const pe=()=>{const[r,c]=t.useState(!1),{t:p}=Q(),m=F(),y=x(),d=t.useRef(y);d.current=y;const T=t.useCallback(()=>r?j.jsx(B,{message:"Signing In"}):null,[r]),S=t.useCallback(async e=>{if(e)try{c(!0),q("google_one_tap");const[{GoogleAuthProvider:n,signInWithCredential:l},{auth:E}]=await Promise.all([A(()=>import("./utils-DdXrPaFr.js").then(u=>u.i),__vite__mapDeps([0,1,2,3])),A(()=>import("./utils-DdXrPaFr.js").then(u=>u.e),__vite__mapDeps([0,1,2,3]))]),O=n.credential(e.credential),_=await l(E,O);if(K.set("google"),X.signedIn(_.user.uid,"google","google_one_tap"),D(_.user)){H(_.user.uid),m(k.ONBOARDING);return}d.current.some(u=>u.handle?.layout==="__lpl__")&&m(k.ORGS.ROOT)}catch(n){U(),z.error(p("common.errors.sign_in_fail_error","Failed to sign in. Try again.")),re.error({error:n,feature:"auth",context:"Error in one tap sign in callback"}),N()}finally{c(!1)}},[m,p]),P=t.useCallback(()=>{se({callback:S})},[S]);return{renderLoader:T,initGoogleOneTap:P}},Xe=({enabled:r})=>{const{currentUser:c,setCurrentUser:p,userFetchStatus:m}=V(),{restoreSession:y}=Y(),{initGoogleOneTap:d,renderLoader:T}=pe(),{mutate:S}=M({mutationFn:me,onSuccess:()=>localStorage.removeItem("referralCode")}),{data:P}=ue(r),[{utmParams:e,referrer_url:n,signup_source_url:l}]=W();ce(r);const E=t.useRef(c),O=t.useRef(m),_=t.useRef(p),I=t.useRef(void 0),u=t.useRef(d),L=t.useRef(void 0),C=t.useRef(!1),o=t.useRef(!1);t.useEffect(()=>{E.current=c,O.current=m},[c,m]),t.useEffect(()=>{_.current=p},[p]),t.useEffect(()=>{u.current=d},[d]),t.useEffect(()=>{if(!r)return;(async()=>{const[{setPersistence:i,indexedDBLocalPersistence:g,browserLocalPersistence:h},{auth:s}]=await Promise.all([A(()=>import("./utils-DdXrPaFr.js").then(f=>f.i),__vite__mapDeps([0,1,2,3])),A(()=>import("./utils-DdXrPaFr.js").then(f=>f.e),__vite__mapDeps([0,1,2,3]))]);try{await i(s,g)}catch{await i(s,h)}})()},[r]),t.useEffect(()=>{P&&P.countryCode==="US"&&Math.random()<.01&&w.startSessionRecording()},[P?.countryCode]);const v=t.useCallback(a=>
4{if(D(a)){const i=$();Z({event:"registration",info:{...e.utm_source&&{utm_source:e.utm_source},...e.utm_medium&&{utm_medium:e.utm_medium},...e.utm_campaign&&{utm_campaign:e.utm_campaign},...e.utm_term&&{utm_term:e.utm_term},...e.utm_content&&{utm_content:e.utm_content},...e.utm_adset_name&&{utm_adset_name:e.utm_adset_name},...e.utm_ad_name&&{utm_ad_name:e.utm_ad_name},...n&&{referrer_url:n},...l&&{signup_source_url:l}}}),ee("registration_completed",{type:"customer_action"},{eventId:`registration_${a.uid}`}),J("CompleteRegistration"),w.track("signed_up",{...i&&{entry_point:i},...e.utm_source&&{utm_source:e.utm_source}})}},[n,l,e]),b=t.useCallback(async a=>{v(a);const g=await y(a,{utmParams:e,referrer_url:n,signup_source_url:l});g&&U();const h=le(g?.id)||g?.primaryOrganizationId;fe(h),te(h);const s=localStorage.getItem("referralCode");s&&S(s),o.current=!1,setTimeout(()=>{oe()},1e3)},[S,n,y,l,v,e]);return t.useEffect(()=>{I.current=b},[b]),t.useEffect(()=>{if(!r){o.current=!1;return}let a=!1,i;return(async()=>{const[{onAuthStateChanged:h}]=await Promise.all([A(()=>import("./utils-DdXrPaFr.js").then(s=>s.i),__vite__mapDeps([0,1,2,3]))]);await G.authStateReady(),!a&&(i=h(G,async s=>{const f=s?.uid??null;if(L.current!==f){if(L.current=f,s)o.current=!1,await I.current?.(s);else if(E.current===null&&O.current==="ready"||_.current(null),!o.current&&!ae()){o.current=!0;try{if(await ne(),a){o.current=!1;return}C.current||(u.current(),C.current=!0),N(R=>{if(R.getNotDisplayedReason()===ie.MISSING_CLIENT_ID){o.current=!1;return}(R.isDismissedMoment()||R.isSkippedMoment()||R.isNotDisplayed())&&(o.current=!1)})}catch(R){o.current=!1,console.error("Error loading Google One Tap",R)}}}}))})(),()=>{a=!0,o.current=!1,i?.()}},[r]),T()};export{Xe as default};
5
6//# debugId=f228acdf-c691-5deb-b82b-6b7c5ca5420e

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.