1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4365],{4509:(e,t,r)=>{r.d(t,{C5:()=>b,MJ:()=>h,Rr:()=>v,eI:()=>g,lR:()=>p,lV:()=>c,zB:()=>f});var n=r(95155),o=r(12115),a=r(32467),i=r(22544),s=r(25016),l=r(90235);let c=i.Op,d=o.createContext({}),f=e=>{let{...t}=e;return(0,n.jsx)(d.Provider,{value:{name:t.name},children:(0,n.jsx)(i.xI,{...t})})},u=()=>{let e=o.useContext(d),t=o.useContext(m),{getFieldState:r,formState:n}=(0,i.xW)(),a=r(e.name,n);if(!e)throw Error("useFormField should be used within <FormField>");let{id:s}=t;return{id:s,name:e.name,formItemId:"".concat(s,"-form-item"),formDescriptionId:"".concat(s,"-form-item-description"),formMessageId:"".concat(s,"-form-item-message"),...a}},m=o.createContext({}),g=o.forwardRef((e,t)=>{let{className:r,...a}=e,i=o.useId();return(0,n.jsx)(m.Provider,{value:{id:i},children:(0,n.jsx)("div",{ref:t,className:(0,s.cn)("space-y-2",r),...a})})});g.displayName="FormItem";let p=o.forwardRef((e,t)=>{let{className:r,...o}=e,{error:a,formItemId:i}=u();return(0,n.jsx)(l.J,{ref:t,className:(0,s.cn)(a&&"text-destructive",r),htmlFor:i,...o})});p.displayName="FormLabel";let h=o.forwardRef((e,t)=>{let{...r}=e,{error:o,formItemId:i,formDescriptionId:s,formMessageId:l}=u();return(0,n.jsx)(a.DX,{ref:t,id:i,"aria-describedby":o?"".concat(s," ").concat(l):"".concat(s),"aria-invalid":!!o,...r})});h.displayName="FormControl";let v=o.forwardRef((e,t)=>{let{className:r,...o}=e,{formDescriptionId:a}=u();return(0,n.jsx)("p",{ref:t,id:a,className:(0,s.cn)("text-sm text-muted-foreground",r),...o})});v.displayName="FormDescription";let b=o.forwardRef((e,t)=>{let{className:r,children:o,...a}=e,{error:i,formMessageId:l}=u(),c=i?String(null==i?void 0:i.message):o;return c?(0,n.jsx)("p",{ref:t,id:l,className:(0,s.cn)("text-sm font-medium text-destructive",r),...a,children:c}):null});b.displayName="FormMessage"},4883:(e,t,r)=>{r.d(t,{F:()=>R});var n=r(95155),o=r(50700),a=r(65229),i=r(35299),s=r(90368),l=r(27937),c=r(37135),d=r(89715),f=r(92001),u=r(42196),m=r(15870),g=r(78519),p=r(20017),h=r(6191),v=r(52056),b=r(20508),x=r(52987),w=r(80021),y=r(96047),I=r(72697),N=r(37494),A=r(40887),j=r(94684),C=r(97378),M=r(5917);let R={logo:o.A,close:a.A,spinner:i.A,chevronLeft:s.A,chevronRight:l.A,trash:c.A,post:d.A,page:f.A,media:u.A,settings:m.A,billing:g.A,ellipsis:p.A,add:h.A,warning:v.A,user:b.A,arrowRight:x.A,help:w.A,pizza:y.A,sun:I.A,moon:N.A,laptop:A.A,gitHub:j.A,twitter:C.A,check:M.A,google:e=>{let{...t}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"google",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488 512",...t,children:(0,n.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"})})},microsoft:e=>{let{...t}=e;return(0,n.jsxs)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"microsoft",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 21",...t,children:[(0,n.jsx)("path",{fill:"#f25022",d:"M0 0h10v10H0z"}),(0,n.jsx)("path",{fill:"#7fba00",d:"M11 0h10v10H11z"}),(0,n.jsx)("path",{fill:"#00a4ef",d:"M0 11h10v10H0z"}),(0,n.jsx)("path",{fill:"#ffb900",d:"M11 11h10v10H11z"})]})}}},25016:(e,t,r)=>{r.d(t,{cn:()=>a});var n=r(2821),o=r(75889);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.QP)((0,n.$)(t))}},32949:(e,t,r)=>{r.d(t,{vF:()=>a});var n=r(95704);class o{static safeStringify(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular Reference]";t.add(r)}if("function"==typeof r)return"[Function]";if(r&&"object"==typeof r){if("undefined"!=typeof HTMLElement&&(r instanceof HTMLElement||r instanceof Element||r instanceof Node))return"[DOM Element]";if(r.$$typeof)return"[React Element]";if("undefined"!=typeof Event&&r instanceof Event)return"[".concat(r.constructor.name," Event]")}return r})}static formatMessage(e,t,r){let o={timestamp:new Date().toISOString(),level:e,message:t,service:(null==r?void 0:r.service)||"xfunnel-worker",environment:n.env.XFUNNEL_ENV||"development",processId:n.pid,nodeVersion:n.version,...r};return this.safeStringify(o)}static log(e,t){console.log(this.formatMessage("INFO",e,t))}static error(e,t){console.error(this.formatMessage("ERROR",e,t))}static warn(e,t){console.warn(this.formatMessage("WARN",e,t))}static debug(e,t){}static critical(e,t){let r={...t,alertable:!0,level:"CRITICAL"};console.error(this.formatMessage("CRITICAL",e,r))}static health(e,t,r){let n={...r,service:e,healthStatus:t,healthCheck:!0};console.log(this.formatMessage("HEALTH","Service ".concat(e," is ").concat(t),n))}static metric(e,t,r){let n={...r,metricName:e,metricValue:t,metricType:"performance"};console.log(this.formatMessage("METRIC","".concat(e,": ").concat(t),n))}}let a=o},33789:(e,t,r)=>{r.d(t,{p:()=>i});var n=r(95155),o=r(12115),a=r(25016);let i=o.forwardRef((e,t)=>
1{let{className:r,type:o,...i}=e;return(0,n.jsx)("input",{type:o,className:(0,a.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...i})});i.displayName="Input"},48452:(e,t,r)=>{r.d(t,{z:()=>c});var n=r(95155),o=r(12115),a=r(51297),i=r(97003),s=r(4883),l=r(32949);function c(e){let{isLoading:t,setIsLoading:r,setErrorMessage:c,onOAuthSubmit:d,inviteToken:f}=e,[u,m]=(0,o.useState)(null),g=(0,a.U)(),p=async e=>{l.vF.log("Starting OAuth flow",{provider:e,redirectUrl:"".concat(window.location.origin,"/auth/callback"),timestamp:new Date().toISOString()}),null==c||c(null),r(!0),m(e);try{d&&await d();let t="".concat(window.location.origin,"/auth/callback");f&&(t+="?invite_token=".concat(encodeURIComponent(f)));let{error:r}=await g.auth.signInWithOAuth({provider:e,options:{queryParams:{access_type:"offline"},redirectTo:t}});r&&console.error("OAuth error:",r)}catch(e){console.error("OAuth error:",e)}finally{r(!1),m(null)}};return(0,n.jsx)("div",{className:"grid grid-cols-1 gap-4",children:(0,n.jsxs)(i.$,{variant:"outline",onClick:()=>p("google"),disabled:t,className:"w-full",children:[t&&"google"===u?(0,n.jsx)(s.F.spinner,{className:"mr-2 h-4 w-4 animate-spin"}):(0,n.jsx)(s.F.google,{className:"mr-2 h-4 w-4"}),"Continue with Google"]})})}},51297:(e,t,r)=>{r.d(t,{U:()=>o});var n=r(8490);function o(){return(0,n.createBrowserClient)("https://api.xfunnel.ai","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Indzd3Fya21sdm1meW9sbXJlbW1uIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzIxODczNTgsImV4cCI6MjA0Nzc2MzM1OH0.5eKNwH3JIo4dARUC7Ktz0UDPIEMS9PuG_TDId7Ffs3U")}r(95704)},54664:(e,t,r)=>{r.d(t,{w:()=>s});var n=r(95155),o=r(12115),a=r(47321),i=r(25016);let s=o.forwardRef((e,t)=>{let{className:r,orientation:o="horizontal",decorative:s=!0,...l}=e;return(0,n.jsx)(a.b,{ref:t,decorative:s,orientation:o,className:(0,i.cn)("shrink-0 bg-border","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",r),...l})});s.displayName=a.b.displayName},90235:(e,t,r)=>{r.d(t,{J:()=>c});var n=r(95155),o=r(12115),a=r(32894),i=r(83101),s=r(25016);let l=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(a.b,{ref:t,className:(0,s.cn)(l(),r),...o})});c.displayName=a.b.displayName},97003:(e,t,r)=>{r.d(t,{$:()=>c,r:()=>l});var n=r(95155),o=r(12115),a=r(32467),i=r(83101),s=r(25016);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=o.forwardRef((e,t)=>{let{className:r,variant:o,size:i,asChild:c=!1,...d}=e,f=c?a.DX:"button";return(0,n.jsx)(f,{className:(0,s.cn)(l({variant:o,size:i,className:r})),ref:t,...d})});c.displayName="Button"}}]);
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.