1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64393,92737],{5494:(e,t,r)=>{r.d(t,{S8:()=>i.S,_J:()=>o._J,oA:()=>o.oA,st:()=>n.s});var n=r(80675),i=r(76959),o=r(11311)},23037:(e,t,r)=>{r.d(t,{p:()=>s});var n=r(95155);r(12115);var i=r(83101),o=r(25016);let a=(0,i.F)("flex w-full min-w-0 border text-foreground-strong transition-colors outline-none placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground file:text-foreground file:inline-flex file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 focus-visible:ring-2 focus-visible:ring-ring aria-invalid:border-destructive aria-invalid:ring-0 aria-invalid:focus-visible:border-destructive aria-invalid:focus-visible:ring-2 aria-invalid:focus-visible:ring-destructive",{variants:{variant:{default:"border-border bg-card focus-visible:border-border-emphasis",ghost:"border-transparent bg-transparent hover:bg-card-hovered focus-visible:bg-card-hovered"},size:{xs:"h-6 px-1.5 py-1 gap-1 rounded-[4px] text-xs file:h-4 file:text-xs [&_svg:not([class*='size-'])]:size-3",sm:"h-8 px-2 py-[5.5px] gap-1.5 rounded-[8px] text-base md:text-sm file:h-6 file:text-xs",default:"h-9 px-3 py-[7.5px] gap-2 rounded-[8px] text-base md:text-sm file:h-7 file:text-sm",lg:"h-10 px-4 py-[9.5px] gap-3 rounded-[8px] text-base md:text-sm file:h-8 file:text-sm"}},defaultVariants:{variant:"default",size:"default"}});function s(e){let{className:t,type:r,variant:i,size:s,...l}=e;return(0,n.jsx)("input",{type:r,"data-slot":"input",className:(0,o.cn)(a({variant:i,size:s}),t),...l})}},25016:(e,t,r)=>{r.d(t,{cn:()=>o});var n=r(2821),i=r(75889);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,n.$)(t))}},34782:(e,t,r)=>{r.d(t,{I:()=>v});var n=r(95155),i=r(12115),o=r(52171),a=r(43392),s=r(64393),l=r(5494),d=r(25016);let c={github:"IconGithub",google:"IconGoogle",discord:"IconDiscord"},u={github:"border-border bg-background text-foreground-strong hover:bg-card",google:"border-border bg-background text-foreground-strong hover:bg-card",discord:"border-border bg-background text-foreground-strong hover:bg-card"};function v(e){let{provider:t,buttonText:r,onAuth:v,inviteToken:g,nextUrl:f,trackingData:b,variant:h="outline",className:p}=e,{trackEvent:x,trackError:m}=function(){let{trackRaw:e}=(0,l.st)(),t=(0,i.useCallback)(t=>{e(t.name,t.properties)},[e]),r=(0,i.useCallback)(e=>{s.tracker.trackError(e)},[]);return{trackEvent:t,trackError:r,identifyUser:(0,i.useCallback)(e=>{s.tracker.identifyUser(e)},[]),trackPageView:(0,i.useCallback)((e,t)=>{s.tracker.trackPageView(e,t)},[])}}(),[y,k]=(0,i.useState)(!1),_=c[t],w="outline"===h?u[t]:"",I=async()=>{try{k(!0),x({name:"".concat(t,"_auth_clicked"),properties:{button_text:r,has_invite_token:!!g,has_next_url:!!f,...b}}),await v(g,f),x({name:"".concat(t,"_auth_initiated"),properties:{provider:t,...b}})}catch(e){m({message:"".concat(t," authentication failed"),error:e,context:{provider:t,button_text:r,...b}}),x({name:"".concat(t,"_auth_failed"),properties:{provider:t,error:e instanceof Error?e.message:"Unknown error",...b}}),k(!1)}};return(0,n.jsx)(o.$,{type:"button",variant:h,className:(0,d.cn)("w-full py-2",w,p),onClick:I,loading:y,startIcon:(0,n.jsx)(a.I,{name:_,size:16}),children:y?"Connecting to ".concat(t,"â¦"):r})}},43392:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(95155),i=r(54774),o=r(52451);function a(e){let{join:t="round",fill:r="outlined",radius:a="2",stroke:s="2",name:l,...d}=e,c=Object.prototype.hasOwnProperty.call(o.I,l)?l:"IconCircleQuestionmark";return(0,n.jsx)(i.default,{name:c,join:t,fill:r,radius:a,stroke:s,...d})}},49424:(e,t,r)=>{r.d(t,{n:()=>a});var n=r(26614),i=r(61011),o=r(17327);async function a(e,t,r){let a=(0,i.U)(),s=new URLSearchParams;t&&s.set("inviteToken",t),s.set("redirect_to",r||"/overview");let l=n.Ay.__loaded&&!n.Ay._isIdentified()?n.Ay.get_distinct_id():void 0;l&&s.set("ph_anon_id",l);let d="".concat(window.location.origin,"/auth/callback?").concat(s.toString());(0,o.XW)();let{error:c}=await a.auth.signInWithOAuth({provider:e,options:{redirectTo:d,..."google"===e?{queryParams:{access_type:"offline",prompt:"consent"}}:{},..."discord"===e?{scopes:"identify email"}:{}}});if(c)throw c}},52171:(e,t,r)=>{r.d(t,{$:()=>d,r:()=>l});var n=r(95155);r(12115);var i=r(32467),o=r(83101),a=r(25016),s=r(64774);let l=(0,o.F)("relative inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium active:scale-98 cursor-pointer transition-all disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hovered",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive-hovered focus-visible:ring-destructive","destructive-ghost":"text-destructive-subtle-foreground hover:bg-destructive-subtle hover:text-destructive-subtle-foreground","destructive-outline":"border !border-destructive text-destructive-subtle-foreground bg-transparent hover:bg-destructive-subtle",outline:"border border-border bg-background text-foreground hover:bg-background-hovered hover:text-foreground-strong",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-hovered",ghost:"hover:bg-background-hovered hover:text-foreground-strong ",link:"text-primary underline-offset-4 hover:underline"},size:{xs:"h-6 px-2 py-0.5 gap-1.5 text-xs [&_svg:not([class*='size-'])]:size-3 has-[>svg]:px-1.5",sm:"h-8 px-3 py-1.5 gap-1.5 has-[>svg]:px-2.5",default:"h-9 px-4 py-2 gap-2 has-[>svg]:px-3",lg:"h-10 px-6 py-2.5 gap-2 has-[>svg]:px-4",xl:"h-12 px-8 py-3 gap-2 text-base has-[>svg]:px-6"}},defaultVariants:{variant:"default",size:"default"}});function d(e){let{className:t,variant:r,size:o,asChild:d=!1,startIcon:c,endIcon:u,loading:v=!1,loadingPosition:g="start",loadingIndicator:f,loadingLabel:b,fullWidth:h=!1,disabled:p,children:x,...m}=e,y=d?i.DX:"button",k=p||v,_=void 0===f?(0,n.jsx)(s.y,{size:"sm"}):f,w=null!=b?b:"Loading";return(0,n.jsx)(y,{"data-slot":"button",className:(0,a.cn)(l({variant:r,size:o}),h&&"w-full",t),disabled:k,"aria-busy":v||void 0,...m,children:d?x:v&&"center"===g?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"invisible",children:x}),(0,n.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:_}),(0,n.jsx)("span",{className:"sr-only","aria-live":"polite",children:w})]}):(0,n.jsxs)(n.Fragment,{children:[v&&"start"===g?_:c,x,v&&"end"===g?_:u,v&&(0,n.jsx)("span",{className:"sr-only","aria-live":"polite",children:w})]})})}},54774:(e,t,r)=>{r.r(t),r.d(t,{CentralIcon:()=>u,default:()=>v});var n=r(95155),i=r(12115),o=r(52451);let a="round-outlined-radius-2-stroke-2",s={[a]:o.I},l={"round-outlined-radius-0-stroke-1.5":()=>r.e(37192).then(r.bind(r,12689)).then(e=>e.centralIcons),"round-outlined-radius-0-stroke-2":()=>r.e(14463).then(r.bind(r,5953)).then(e=>e.centralIcons),"round-outlined-radius-1-stroke-1.5":()=>r.e(99874).then(r.bind(r,36718)).then(e=>e.centralIcons),"round-outlined-radius-1-stroke-2":()=>r.e(66255).then(r.bind(r,53866)).then(e=>e.centralIcons),"round-filled-radius-0-stroke-1.5":()=>r.e(34230).then(r.bind(r,6807)).then(e=>e.centralIcons),"round-filled-radius-0-stroke-2":()=>r.e(78669).then(r.bind(r,89223)).then(e=>e.centralIcons),"round-filled-radius-1-stroke-1.5":()=>r.e(86670).then(r.bind(r,13188)).then(e=>e.centralIcons),"round-filled-radius-1-stroke-2":()=>r.e(54900).then(r.bind(r,63200)).then(e=>e.centralIcons),"round-filled-radius-2-stroke-2":()=>r.e(20238).then(r.bind(r,31285)).then(e=>e.centralIcons)},d=new Set,c=new Set;function u(e){var t;let{name:r,size:o=24,color:u,fill:v="outlined",stroke:g="2",radiu
1s:f="2",join:b="round",ariaLabel:h,ariaHidden:p=!0,className:x,style:m,...y}=e,k="".concat(b,"-").concat(v,"-radius-").concat(f,"-stroke-").concat(g),[,_]=(0,i.useState)(0);(0,i.useEffect)(()=>{if(s[k])return;let e=()=>_(e=>e+1);return d.add(e),!(s[k]||c.has(k))&&l[k]&&(c.add(k),l[k]().then(e=>{s[k]=e,c.delete(k),d.forEach(e=>e())}).catch(()=>{c.delete(k)})),()=>{d.delete(e)}},[k]);let w=null!=(t=s[k])?t:s[a],I=null==w?void 0:w[r],C="number"==typeof o?"".concat(o,"px"):o;if(!I)return(0,n.jsx)("span",{"aria-hidden":!0,className:x,style:{display:"inline-block",width:C,height:C,...m}});let S=(h&&!p?"<title>".concat(h,"</title>"):"")+I.svg;return(0,n.jsx)("svg",{...y,width:C,height:C,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":p,role:p?void 0:"img","aria-label":p?void 0:h,className:x,style:{color:u,...m},dangerouslySetInnerHTML:{__html:S}})}let v=u},58831:(e,t,r)=>{r.d(t,{H:()=>i});var n=r(30926);let i=(0,n.createServerReference)("7fd44933bce5e9295ad7eb4e48ddbfd81ddb186b11",n.callServer,void 0,n.findSourceMapURL,"signInBusinessAction")},64393:(e,t,r)=>{r.r(t),r.d(t,{Tracker:()=>i,tracker:()=>o});var n=r(26614);class i{trackEvent(e){let{name:t,properties:r,userId:i}=e,o=new Date().toISOString();this.isClient?(n.Ay.capture(t,{...r,timestamp:o}),console.info(JSON.stringify({type:"event",name:t,userId:i,properties:r,timestamp:o,environment:"CLIENT"}))):console.info(JSON.stringify({type:"event",name:t,userId:i,properties:r,timestamp:o,environment:"SERVER"}))}trackError(e){let{message:t,error:r,context:i,userId:o}=e,a=new Date().toISOString(),s=r instanceof Error?{name:r.name,message:r.message,stack:r.stack}:r;this.isClient?(r instanceof Error?n.Ay.captureException(r,{...i,timestamp:a}):n.Ay.capture("$exception",{message:t,error:s,...i,timestamp:a}),console.error(JSON.stringify({type:"error",message:t,error:s,userId:o,context:i,timestamp:a,environment:"CLIENT"}))):console.error(JSON.stringify({type:"error",message:t,error:s,userId:o,context:i,timestamp:a,environment:"SERVER"}))}identifyUser(e){let{userId:t,email:r,name:i,properties:o}=e;this.isClient&&(n.Ay.identify(t,{email:r,name:i,...o}),console.info(JSON.stringify({type:"identify",userId:t,email:r,name:i,properties:o,timestamp:new Date().toISOString(),environment:"CLIENT"})))}trackPageView(e,t){this.isClient&&n.Ay.capture("$pageview",{$current_url:e,...t})}async flush(){}constructor(){this.isClient=!0}}let o=new i},76959:(e,t,r)=>{r.d(t,{S:()=>o});var n=r(12115),i=r(80675);function o(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{enabled:o=!0,dedupeKey:a}=r,{track:s}=(0,i.s)(),l=(0,n.useRef)(t);l.current=t;let d=(0,n.useRef)(null),c="".concat(e,":").concat(null!=a?a:"");(0,n.useEffect)(()=>{o&&d.current!==c&&(d.current=c,s(e,l.current))},[o,e,c])}},80675:(e,t,r)=>{r.d(t,{s:()=>s});var n=r(12115),i=r(26302),o=r(74369),a=r(28783);function s(){let e=(0,i.sf)(),{user:t,profile:r}=(0,o.J)(),{organization:s}=(0,a.Z)(),l=(0,n.useCallback)(e=>{let n={...e};return(null==t?void 0:t.id)&&(n.user_id=t.id),(null==s?void 0:s.id)&&(n.org_id=s.id),(null==s?void 0:s.name)&&(n.org_name=s.name),(null==r?void 0:r.username)&&(n.username=r.username),n},[null==t?void 0:t.id,null==s?void 0:s.id,null==s?void 0:s.name,null==r?void 0:r.username]),d=(0,n.useCallback)((t,r)=>{e&&e.capture(t,l(r))},[e,l]),c=(0,n.useCallback)((t,r)=>{e&&e.capture(t,l(r))},[e,l]),u=(0,n.useCallback)((e,t)=>{c(e,{...t,source:"tnkr_editor"})},[c]),v=(0,n.useCallback)(e=>(t,r)=>{c(t,{...r,...e,source:"tnkr_editor"})},[c]),g=(0,n.useCallback)((t,r)=>{e&&e.identify(t,{...r,org_id:null==s?void 0:s.id,org_name:null==s?void 0:s.name})},[e,null==s?void 0:s.id,null==s?void 0:s.name]),f=(0,n.useCallback)(()=>{e&&e.reset()},[e]),b=(0,n.useCallback)(t=>{e&&e.setPersonProperties(t)},[e]);return(0,n.useMemo)(()=>({track:d,trackRaw:c,trackEditorEvent:u,createEditorTracker:v,identify:g,reset:f,setUserProperties:b}),[d,c,u,v,g,f,b])}}}]);
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.