1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8281],{6482:(e,t,r)=>{"use strict";r.d(t,{Nr:()=>s,aW:()=>n,bu:()=>a,nz:()=>l});let a="/setup",s=e=>"/organization/".concat(e,"/setup?orgstep=create-project"),n=e=>"/organization/".concat(e,"/setup?orgstep=invite-members"),l=e=>"/project/".concat(e,"/traces/setup")},8913:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(73154),s=r(49757),n=r(81509);let l=e=>{let{children:t,headerProps:r}=e;return(0,a.jsxs)("div",{className:(0,n.cn)("relative flex min-h-screen-with-banner flex-1 flex-col"),"data-sentry-component":"ContainerPage","data-sentry-source-file":"container-page.tsx",children:[(0,a.jsx)("header",{className:"sticky top-0 z-50 w-full",children:(0,a.jsx)(s.A,{...r,container:!0,"data-sentry-element":"PageHeader","data-sentry-source-file":"container-page.tsx"})}),(0,a.jsx)("main",{className:(0,n.cn)("relative flex min-h-screen-with-banner flex-1 flex-col p-3 lg:container"),children:t})]})}},10873:(e,t,r)=>{"use strict";r.d(t,{C5:()=>j,MJ:()=>f,Rr:()=>g,eI:()=>p,lR:()=>h,lV:()=>c,zB:()=>m});var a=r(73154),s=r(96810),n=r(4226),l=r(17020),i=r(81509),o=r(70883);let c=l.Op,d=s.createContext({}),m=e=>{let{...t}=e;return(0,a.jsx)(d.Provider,{value:{name:t.name},"data-sentry-element":"FormFieldContext.Provider","data-sentry-component":"FormField","data-sentry-source-file":"form.tsx",children:(0,a.jsx)(l.xI,{...t,"data-sentry-element":"Controller","data-sentry-source-file":"form.tsx"})})},u=()=>{let e=s.useContext(d),t=s.useContext(x),{getFieldState:r,formState:a}=(0,l.xW)(),n=r(e.name,a);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...n}},x=s.createContext({}),p=s.forwardRef((e,t)=>{let{className:r,...n}=e,l=s.useId();return(0,a.jsx)(x.Provider,{value:{id:l},children:(0,a.jsx)("div",{ref:t,className:(0,i.cn)("space-y-2",r),...n})})});p.displayName="FormItem";let h=s.forwardRef((e,t)=>{let{className:r,...s}=e,{error:n,formItemId:l}=u();return(0,a.jsx)(o.J,{ref:t,className:(0,i.cn)(n&&"text-destructive",r),htmlFor:l,...s})});h.displayName="FormLabel";let f=s.forwardRef((e,t)=>{let{...r}=e,{error:s,formItemId:l,formDescriptionId:i,formMessageId:o}=u();return(0,a.jsx)(n.DX,{ref:t,id:l,"aria-describedby":s?"".concat(i," ").concat(o):i,"aria-invalid":!!s,...r})});f.displayName="FormControl";let g=s.forwardRef((e,t)=>{let{className:r,...s}=e,{formDescriptionId:n}=u();return(0,a.jsx)("p",{ref:t,id:n,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})});g.displayName="FormDescription";let j=s.forwardRef((e,t)=>{let{className:r,children:s,...n}=e,{error:l,formMessageId:o}=u(),c=l?String(l.message):s;return c?(0,a.jsx)("p",{ref:t,id:o,className:(0,i.cn)("text-sm font-medium text-destructive",r),...n,children:c}):null});j.displayName="FormMessage"},28353:(e,t,r)=>{"use strict";r.d(t,{A:()=>m,Ay:()=>c,iK:()=>d});var a=r(73154),s=r(68389),n=r.n(s),l=r(35157),i=r(97390),o=r(81509);function c(e){let{...t}=e;return(0,a.jsx)(x,{...t,level:"h3","data-sentry-element":"BaseHeader","data-sentry-component":"Header","data-sentry-source-file":"header.tsx"})}function d(e){let{...t}=e;return(0,a.jsx)(x,{...t,level:"h4","data-sentry-element":"BaseHeader","data-sentry-component":"SubHeader","data-sentry-source-file":"header.tsx"})}function m(e){let{...t}=e;return(0,a.jsx)(x,{...t,level:"h5","data-sentry-element":"BaseHeader","data-sentry-component":"SubHeaderLabel","data-sentry-source-file":"header.tsx"})}function u(e){let{level:t,title:r}=e;switch(t){case"h3":return(0,a.jsx)("h3",{className:"text-xl font-bold leading-7",children:r});case"h4":return(0,a.jsx)("h4",{className:"text-lg font-medium leading-6",children:r});case"h5":return(0,a.jsx)("h5",{className:"text-base font-medium leading-6",children:r})}}function x(e){var t;let{...r}=e;return(0,a.jsx)("div",{className:(0,o.cn)(r.className,"h3"===r.level&&"mb-2"),"data-sentry-component":"BaseHeader","data-sentry-source-file":"header.tsx",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 md:gap-5",children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-row items-center",children:[(0,a.jsx)(u,{title:r.title,level:r.level,"data-sentry-element":"HeaderTitle","data-sentry-source-file":"header.tsx"}),r.help?(0,a.jsx)(l.A,{description:r.help.description,href:r.help.href,className:r.help.className}):null]}),r.status&&(0,a.jsx)(i.W,{type:r.status}),r.label&&(0,a.jsx)(n(),{href:r.label.href,children:(0,a.jsx)(i.W,{type:r.label.text})})]}),(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-3",children:null!=(t=r.actionButtons)?t:null})]})})}},29276:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(22222).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},33100:(e,t,r)=>{"use strict";r.d(t,{u:()=>m});var a=r(17020);let s=(e,t,r)=>{if(e&&"reportValidity"in e){let s=(0,a.Jt)(r,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},n=(e,t)=>{for(let r in t.fields){let a=t.fields[r];a&&a.ref&&"reportValidity"in a.ref?s(a.ref,r,e):a&&a.refs&&a.refs.forEac
1h(t=>s(t,r,e))}},l=(e,t)=>{t.shouldUseNativeValidation&&n(e,t);let r={};for(let s in e){let n=(0,a.Jt)(t.fields,s),l=Object.assign(e[s]||{},{ref:n&&n.ref});if(i(t.names||Object.keys(e),s)){let e=Object.assign({},(0,a.Jt)(r,s));(0,a.hZ)(e,"root",l),(0,a.hZ)(r,s,e)}else(0,a.hZ)(r,s,l)}return r},i=(e,t)=>{let r=o(t);return e.some(e=>o(e).match(`^${r}\\.\\d+`))};function o(e){return e.replace(/\]|\[/g,"")}var c=r(20202);function d(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}function m(e,t,r){if(void 0===r&&(r={}),"_def"in e&&"object"==typeof e._def&&"typeName"in e._def)return function(s,i,o){try{return Promise.resolve(d(function(){return Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](s,t)).then(function(e){return o.shouldUseNativeValidation&&n({},o),{errors:{},values:r.raw?Object.assign({},s):e}})},function(e){if(Array.isArray(null==e?void 0:e.issues))return{values:{},errors:l(function(e,t){for(var r={};e.length;){var s=e[0],n=s.code,l=s.message,i=s.path.join(".");if(!r[i])if("unionErrors"in s){var o=s.unionErrors[0].errors[0];r[i]={message:o.message,type:o.code}}else r[i]={message:l,type:n};if("unionErrors"in s&&s.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=r[i].types,d=c&&c[s.code];r[i]=(0,a.Gb)(i,t,r,n,d?[].concat(d,s.message):s.message)}e.shift()}return r}(e.errors,!o.shouldUseNativeValidation&&"all"===o.criteriaMode),o)};throw e}))}catch(e){return Promise.reject(e)}};if("_zod"in e&&"object"==typeof e._zod)return function(s,i,o){try{return Promise.resolve(d(function(){return Promise.resolve(("sync"===r.mode?c.parse:c.parseAsync)(e,s,t)).then(function(e){return o.shouldUseNativeValidation&&n({},o),{errors:{},values:r.raw?Object.assign({},s):e}})},function(e){if(e instanceof c.$ZodError)return{values:{},errors:l(function(e,t){for(var r={};e.length;){var s=e[0],n=s.code,l=s.message,i=s.path.join(".");if(!r[i])if("invalid_union"===s.code){var o=s.errors[0][0];r[i]={message:o.message,type:o.code}}else r[i]={message:l,type:n};if("invalid_union"===s.code&&s.errors.forEach(function(t){return t.forEach(function(t){return e.push(t)})}),t){var c=r[i].types,d=c&&c[s.code];r[i]=(0,a.Gb)(i,t,r,n,d?[].concat(d,s.message):s.message)}e.shift()}return r}(e.issues,!o.shouldUseNativeValidation&&"all"===o.criteriaMode),o)};throw e}))}catch(e){return Promise.reject(e)}};throw Error("Invalid input: not a Zod schema")}},35157:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,z:()=>d});var a=r(73154),s=r(97898),n=r(92125),l=r(81509),i=r(45103),o=r(80263);function c(e){let{description:t,href:r,className:c}=e,d=(0,n.B)();return(0,a.jsxs)(s.jc,{openDelay:200,onOpenChange:e=>{e&&d("help_popup:opened",{hfref:r,description:t})},"data-sentry-element":"HoverCard","data-sentry-component":"DocPopup","data-sentry-source-file":"doc-popup.tsx",children:[(0,a.jsx)(s.d0,{className:(0,l.cn)("mx-1",r?"cursor-pointer":"cursor-default"),asChild:!0,"data-sentry-element":"HoverCardTrigger","data-sentry-source-file":"doc-popup.tsx",children:(0,a.jsx)("div",{className:"inline-block whitespace-nowrap text-muted-foreground sm:pl-0",onClick:e=>{r&&(e.preventDefault(),e.stopPropagation(),window.open(r,"_blank"),d("help_popup:href_clicked",{href:r,description:t}))},children:(0,a.jsx)(o.A,{className:"h-3 w-3","data-sentry-element":"Info","data-sentry-source-file":"doc-popup.tsx"})})}),(0,a.jsx)(i.ZL,{"data-sentry-element":"Portal","data-sentry-source-file":"doc-popup.tsx",children:(0,a.jsx)(s.Et,{"data-sentry-element":"HoverCardContent","data-sentry-source-file":"doc-popup.tsx",children:(0,a.jsx)("div",{className:(0,l.cn)("whitespace-break-spaces text-xs font-normal text-primary sm:pl-0",c),children:t})})})]})}function d(e){let{triggerContent:t,description:r}=e;return(0,a.jsxs)(s.jc,{openDelay:200,"data-sentry-element":"HoverCard","data-sentry-component":"Popup","data-sentry-source-file":"doc-popup.tsx",children:[(0,a.jsx)(s.d0,{className:"mx-1 cursor-pointer",asChild:!0,"data-sentry-element":"HoverCardTrigger","data-sentry-source-file":"doc-popup.tsx",children:(0,a.jsx)("div",{children:t})}),(0,a.jsx)(s.Et,{"data-sentry-element":"HoverCardContent","data-sentry-source-file":"doc-popup.tsx",children:(0,a.jsx)("div",{className:"whitespace-break-spaces text-xs font-normal text-primary sm:pl-0",children:r})})]})}},49757:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var a=r(73154),s=r(10952),n=r(81509),l=r(38834),i=r(96810);let o=e=>{var t,r,o;let{className:c}=e,[d,m]=(0,i.useState)(!1),u=(0,l.useSession)(),{isLangfuseCloud:x,region:p}=(0,s.gW)();return x&&(null==(o=u.data)||null==(r=o.user)||null==(t=r.email)?void 0:t.endsWith("@langfuse.com"))&&!d?(0,a.jsx)("div",{className:(0,n.cn)("flex cursor-pointer items-center gap-1 self-stretch whitespace-nowrap rounded-md px-1 py-0.5 text-xs","STAGING"===p?"bg-light-blue text-dark-blue":"DEV"===p?"bg-light-green text-dark-green":"bg-light-red text-dark-red",c),onClick:()=>m(!0),"data-sentry-component":"EnvLabel","data-sentry-source-file":"EnvLabel.tsx",children:p&&["EU","US","HIPAA"].includes(p)?"PROD-".concat(p):p}):null};var c=r(57404),d=r(60520),m=r(88377),u=r(51883),x=r(21),p=r(31346),h=r(65295),f=r(26596),g=r(86843),j=r(82145),y=r(98084),v=r(39156),b=r(36157),N=r(6482),w=r(45596),A=r(68389),E=r.n(A),C=r(6
17716);let I=()=>(0,a.jsxs)(m._2,{"data-sentry-element":"DropdownMenuItem","data-sentry-component":"LoadingMenuItem","data-sentry-source-file":"breadcrumb.tsx",children:[(0,a.jsx)(u.A,{className:"mr-1.5 h-4 w-4 animate-spin","data-sentry-element":"LoaderCircle","data-sentry-source-file":"breadcrumb.tsx"})," Loading..."]}),R=e=>{var t,r,s,n,o,c,u;let{items:A,className:R}=e,S=(0,v.useRouter)(),T=(0,l.useSession)(),{organization:_,project:k}=(0,y.lf)(),z=null==(r=T.data)||null==(t=r.user)?void 0:t.organizations,M=null==(n=T.data)||null==(s=n.user)?void 0:s.canCreateOrganizations,P=(0,b.du)({organizationId:null==_?void 0:_.id,scope:"projects:create"}),L=e=>{let t=["[projectId]","[organizationId]","[page]"],r=S.route.split("/"),a=r.filter(e=>e.startsWith("[")&&e.endsWith("]")).filter(e=>!t.includes(e));if(0===a.length)return e;let s=r.indexOf(a[0]);return e.split("/").slice(0,s).join("/")};return(0,a.jsx)(d.Qp,{className:R,"data-sentry-element":"Breadcrumb","data-sentry-component":"BreadcrumbComponent","data-sentry-source-file":"breadcrumb.tsx",children:(0,a.jsxs)(d.AB,{"data-sentry-element":"BreadcrumbList","data-sentry-source-file":"breadcrumb.tsx",children:[_&&(0,a.jsxs)(m.rI,{children:[(0,a.jsxs)(m.ty,{className:"flex items-center gap-1 text-sm text-primary",children:[null!=(c=null==_?void 0:_.name)?c:"Organization",(0,w.isCloudPlan)(null==_?void 0:_.plan)&&_.id!==j._.NEXT_PUBLIC_DEMO_ORG_ID&&(0,a.jsx)(C.E,{className:"ml-1 px-1 py-0 text-xs font-normal",variant:"secondary",children:w.planLabels[_.plan]}),(0,a.jsx)(x.A,{className:"h-4 w-4"})]}),(0,a.jsxs)(m.SQ,{align:"start",children:[(0,a.jsx)(m._2,{className:"font-semibold",asChild:!0,children:(0,a.jsx)(E(),{href:"/",className:"cursor-pointer",children:"Organizations"})}),(0,a.jsx)(m.mB,{}),(0,a.jsx)("div",{className:"max-h-36 overflow-y-auto",children:z?z.sort((e,t)=>{let r=j._.NEXT_PUBLIC_DEMO_ORG_ID===e.id,a=j._.NEXT_PUBLIC_DEMO_ORG_ID===t.id;return r?1:a?-1:0}).map(e=>(0,a.jsxs)(i.Fragment,{children:[j._.NEXT_PUBLIC_DEMO_ORG_ID===e.id&&(0,a.jsx)(m.mB,{}),(0,a.jsx)(m._2,{asChild:!0,children:(0,a.jsxs)(E(),{href:(e=>S.query.organizationId?L(S.asPath).replace(S.query.organizationId,e):"/organization/".concat(e))(e.id),className:"flex cursor-pointer justify-between",children:[(0,a.jsx)("span",{className:"max-w-36 overflow-hidden overflow-ellipsis whitespace-nowrap",title:e.name,children:e.name}),(0,a.jsx)(g.$,{asChild:!0,variant:"ghost",size:"xs",className:"-my-1 ml-4 hover:bg-background",children:(0,a.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),S.push("/organization/".concat(e.id,"/settings"))},children:(0,a.jsx)(p.A,{size:12})})})]})})]},e.id)):(0,a.jsx)(I,{})}),M&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.mB,{}),(0,a.jsx)(m._2,{asChild:!0,children:(0,a.jsx)(g.$,{variant:"ghost",size:"xs",className:"h-8 w-full text-sm font-normal",asChild:!0,children:(0,a.jsxs)(E(),{href:N.bu,children:[(0,a.jsx)(h.A,{className:"mr-1.5 h-4 w-4","aria-hidden":"true"}),"New Organization"]})})})]})]})]}),_&&k&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.tH,{children:(0,a.jsx)(f.A,{})}),(0,a.jsxs)(m.rI,{children:[(0,a.jsxs)(m.ty,{className:"flex items-center gap-1 text-primary",children:[null!=(u=null==k?void 0:k.name)?u:"Project",(0,a.jsx)(x.A,{className:"h-4 w-4"})]}),(0,a.jsxs)(m.SQ,{align:"start",children:[(0,a.jsx)(m._2,{asChild:!0,className:"font-semibold",children:(0,a.jsx)(E(),{href:"/organization/".concat(_.id),className:"cursor-pointer",children:"Projects"})}),(0,a.jsx)(m.mB,{}),(0,a.jsx)("div",{className:"max-h-36 overflow-y-auto",children:z?null==(o=z.find(e=>e.id===_.id))?void 0:o.projects.map(e=>(0,a.jsx)(m._2,{asChild:!0,children:(0,a.jsxs)(E(),{href:(e=>S.query.projectId?L(S.asPath).replace(S.query.projectId,e):"/project/".concat(e))(e.id),className:"flex cursor-pointer justify-between",children:[(0,a.jsx)("span",{className:"max-w-36 overflow-hidden overflow-ellipsis whitespace-nowrap",title:e.name,children:e.name}),(0,a.jsx)(g.$,{asChild:!0,variant:"ghost",size:"xs",className:"-my-1 ml-4 hover:bg-background",children:(0,a.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation(),S.push("/project/".concat(e.id,"/settings"))},children:(0,a.jsx)(p.A,{size:12})})})]})},e.id)):(0,a.jsx)(I,{})}),P&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.mB,{}),(0,a.jsx)(m._2,{asChild:!0,children:(0,a.jsx)(g.$,{variant:"ghost",size:"xs",className:"h-8 w-full text-sm font-normal",asChild:!0,children:(0,a.jsxs)(E(),{href:(0,N.Nr)(_.id),children:[(0,a.jsx)(h.A,{className:"mr-1.5 h-4 w-4","aria-hidden":"true"}),"New Project"]})})})]})]})]})]}),null==A?void 0:A.map((e,t)=>(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(d.tH,{children:(0,a.jsx)(f.A,{})}),(0,a.jsx)(d.J5,{children:e.href?(0,a.jsx)(d.w1,{asChild:!0,children:(0,a.jsx)(E(),{href:e.href,children:e.name})}):(0,a.jsx)("span",{children:e.name})},t)]},t))]})})};var S=r(35157),T=r(60117),_=r(53524);let k=e=>{let{title:t,itemType:r,actionButtonsLeft:s,actionButtonsRight:l,breadcrumb:i,help:d,titleTooltip:m,tabsProps:u,container:x=!1,className:p,showSidebarTrigger:h=!0,leadingControl:f,titleBadges:g,breadcrumbBadges:j}=e,y=(0,v.useRouter)();return(0,a.jsx)("div",{className:(0,n.cn)(["sticky top-banner-offset z-30 w-full border-b bg-background shadow-sm",p]),id:"page-header","data-sentry-component":"PageHeader","data-sentry-source-file":"page-header.tsx",children:(0,a.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,a.jsx)("div",{className:"border-b",children:(0,a.jsxs)("div",{className:(0,n.cn)("flex min-h-11 items-center gap-3 px-3 py-2",x&&"lg:container"),children:[h?(0,a.jsx)(T.x2,{}):f&&(0,a.jsx)("div",{className:"flex items-center",children:f}),(0,a.jsx)("div",{children:(0,a.jsx)(o,{"data-sentry-element":"EnvLabel","data-sentry-source-file":"page-header.tsx"})}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(R,{items:i,"data-sentry-element":"BreadcrumbComponent","data-sentry-source-file":"page-header.tsx"}),j]})]})}),(0,a.jsxs)("div",{className:"bg-header",children:[(0,a.jsxs)("div",{className:(0,n.cn)("flex min-h-11 w-full flex-wrap items-center justify-between gap-1 px-3 py-1 md:flex-nowrap",x&&"lg:container"),children:[(0,a.jsxs)("div",{className:"flex flex-grow flex-wrap items-center md:flex-grow-0",children:[(0,a.jsxs)("div",{className:"mr-2 flex items-center gap-1",children:[r&&(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(c.L,{type:r,showLabel:!0})}),(0,a.jsx)("div",{className:"relative inline-block max-w-md md:max-w-none",children:(0,a.jsx)("h2",{className:"line-clamp-1 text-lg font-semibold leading-7",children:m?(0,a.jsx)(_.Bc,{children:(0,a.jsxs)(_.m_,{children:[(0,a.jsx)(_.k$,{asChild:!0,children:(0,a.jsxs)("span",{className:"cursor-help break-words","data-testid":"page-header-title",children:[t,d&&(0,a.jsxs)("span",{className:"whitespace-nowrap",children:["\xa0",(0,a.jsx)(S.A,{description:d.description,href:d.href,className:d.className})]})]})}),(0,a.jsx)(_.ZI,{side:"bottom",className:"max-w-xs",children:m})]})}):(0,a.jsxs)("span",{className:"break-words",title:t,"data-testid":"page-header-title",children:[t,d&&(0,a.jsxs)("span",{className:"whitespace-nowrap",children:["\xa0",(0,a.jsx)(S.A,{description:d.description,href:d.href,className:d.className})]})]})})}),g&&(0,a.jsx)("div",{className:"ml-1 flex items-center gap-1",children:g})]}),s&&(0,a.jsx)("div",{className:"flex flex-wrap items-center gap-1 self-center",children:s})]}),(0,a.jsx)("div",{className:"ml-auto flex flex-grow flex-wrap items-center justify-end gap-1",children:l})]}),u&&(0,a.jsx)("div",{className:(0,n.cn)("ml-2",u.className),children:(0,a.jsx)("div",{className:(0,n.cn)("inline-flex h-8 items-center justify-start",u.listClassName),children:u.tabs.map(e=>{var t;return(0,a.jsx)(E(),{href:{pathname:e.href,query:null==(t=e.querySelector)?void 0:t.call(e,y.query
1)},className:(0,n.cn)("inline-flex h-full items-center justify-center whitespace-nowrap rounded-none border-b-4 border-transparent px-2 py-0.5 text-sm font-medium transition-all hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e.value===u.activeTab?"border-primary-accent bg-transparent shadow-none":"",e.disabled&&"pointer-events-none opacity-50",e.className),children:e.label},e.value)})})})]})]})})}},57159:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var a=r(73154),s=r(96810),n=r(81509);let l=(0,r(22222).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var i=r(29276);let o=s.forwardRef((e,t)=>{let{className:r,...o}=e,[c,d]=s.useState(!1);return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:c?"text":"password",className:(0,n.cn)("flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 pr-10 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium 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",r),ref:t,...o}),(0,a.jsx)("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 transform cursor-pointer",onClick:()=>d(!c),title:c?"Hide password":"Show password",children:c?(0,a.jsx)(l,{className:"h-5 w-5 text-muted-foreground"}):(0,a.jsx)(i.A,{className:"h-5 w-5 text-muted-foreground"})})]})});o.displayName="PasswordInput"},57203:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var a=r(73154),s=r(64495),n=r(28353),l=r(8913),i=r(97390),o=r(86843),c=r(10873),d=r(57159),m=r(1597),u=r(93323),x=r(53524),p=r(92125),h=r(45596),f=r(41454);let g=[{subdomain:"api",description:"US (api.mixpanel.com)"},{subdomain:"api-eu",description:"EU (api-eu.mixpanel.com)"},{subdomain:"api-in",description:"India (api-in.mixpanel.com)"}],j=f.z.object({mixpanelRegion:f.z.enum(g.map(e=>e.subdomain)),mixpanelProjectToken:f.z.string().min(1,"Project Token is required").refine(e=>e.length>0,"Mixpanel Project Token is required. You can find it in your Mixpanel project settings."),enabled:f.z.boolean(),exportSource:f.z.enum(h.AnalyticsIntegrationExportSource).default(h.AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS)});var y=r(55803),v=r(18799),b=r(93367),N=r(33100),w=r(25277),A=r(68389),E=r.n(A),C=r(39156),I=r(96810),R=r(17020),S=r(80263),T=r(72459);function _(){var e,t,r;let c=(0,C.useRouter)().query.projectId,d=(0,v.lp)({projectId:c,scope:"integrations:CRUD"}),m=b.FH.mixpanelIntegration.get.useQuery({projectId:c},{enabled:d}),u=m.isInitialLoading||!d?void 0:(null==(e=m.data)?void 0:e.enabled)?"active":"inactive";return(0,a.jsxs)(l.A,{headerProps:{title:"Mixpanel Integration",breadcrumb:[{name:"Settings",href:"/project/".concat(c,"/settings")}],actionButtonsLeft:(0,a.jsx)(a.Fragment,{children:u&&(0,a.jsx)(i.W,{type:u})}),actionButtonsRight:(0,a.jsx)(o.$,{asChild:!0,variant:"secondary",children:(0,a.jsx)(E(),{href:"https://langfuse.com/integrations/analytics/mixpanel",children:"Integration Docs â"})})},"data-sentry-element":"ContainerPage","data-sentry-component":"MixpanelIntegrationSettings","data-sentry-source-file":"mixpanel.tsx",children:[(0,a.jsxs)("p",{className:"mb-4 text-sm text-primary",children:["Integrate with"," ",(0,a.jsx)(E(),{href:"https://mixpanel.com",className:"underline","data-sentry-element":"Link","data-sentry-source-file":"mixpanel.tsx",children:"Mixpanel"})," ","to sync your Langfuse traces, generations, and scores for advanced product analytics. Upon activation, all historical data from your project will be synced. After the initial sync, new data is automatically synced every hour to keep your Mixpanel dashboards up to date."]}),!d&&(0,a.jsx)("p",{className:"text-sm",children:"Your current role does not grant you access to these settings, please reach out to your project admin or owner."}),d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Ay,{title:"Configuration"}),(0,a.jsxs)(w.Zp,{className:"p-3",children:[(0,a.jsx)(s.O,{className:"mb-4 w-20 text-foreground"}),(0,a.jsx)(k,{state:m.data,projectId:c,isLoading:m.isLoading})]})]}),(null==(t=m.data)?void 0:t.enabled)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Ay,{title:"Status",className:"mt-8"}),(0,a.jsxs)("p",{className:"text-sm text-primary",children:["Data synced until:"," ",(null==(r=m.data)?void 0:r.lastSyncAt)?new Date(m.data.lastSyncAt).toLocaleStr
1ing():"Never (pending)"]})]})]})}let k=e=>{var t,r,s,n;let{state:l,projectId:i,isLoading:f}=e,v=(0,p.B)(),{isBetaEnabled:w}=(0,y.I)(),A=(0,R.mN)({resolver:(0,N.u)(j),defaultValues:{mixpanelRegion:null!=(t=null==l?void 0:l.mixpanelRegion)?t:g[0].subdomain,mixpanelProjectToken:null!=(r=null==l?void 0:l.mixpanelProjectToken)?r:"",enabled:null!=(s=null==l?void 0:l.enabled)&&s,exportSource:null!=(n=null==l?void 0:l.exportSource)?n:w?h.AnalyticsIntegrationExportSource.EVENTS:h.AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS},disabled:f});(0,I.useEffect)(()=>{var e,t,r,a;A.reset({mixpanelRegion:null!=(e=null==l?void 0:l.mixpanelRegion)?e:g[0].subdomain,mixpanelProjectToken:null!=(t=null==l?void 0:l.mixpanelProjectToken)?t:"",enabled:null!=(r=null==l?void 0:l.enabled)&&r,exportSource:null!=(a=null==l?void 0:l.exportSource)?a:w?h.AnalyticsIntegrationExportSource.EVENTS:h.AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS})},[l]);let E=b.FH.useUtils(),C=b.FH.mixpanelIntegration.update.useMutation({onSuccess:()=>{E.mixpanelIntegration.invalidate()}}),_=b.FH.mixpanelIntegration.delete.useMutation({onSuccess:()=>{E.mixpanelIntegration.invalidate()}});async function k(e){v("integrations:mixpanel_form_submitted"),C.mutate({projectId:i,...e})}return(0,a.jsxs)(c.lV,{...A,"data-sentry-element":"Form","data-sentry-component":"MixpanelIntegrationSettingsForm","data-sentry-source-file":"mixpanel.tsx",children:[(0,a.jsxs)("form",{className:"space-y-3",onSubmit:A.handleSubmit(k),children:[(0,a.jsx)(c.zB,{control:A.control,name:"mixpanelRegion",render:e=>{let{field:t}=e;return(0,a.jsxs)(c.eI,{children:[(0,a.jsx)(c.lR,{children:"Mixpanel Region"}),(0,a.jsxs)(u.l6,{onValueChange:t.onChange,value:t.value,children:[(0,a.jsx)(c.MJ,{children:(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"Select a region"})})}),(0,a.jsx)(u.gC,{children:g.map(e=>(0,a.jsx)(u.eb,{value:e.subdomain,children:e.description},e.subdomain))})]}),(0,a.jsx)(c.Rr,{children:"Select the Mixpanel region where your project is hosted"}),(0,a.jsx)(c.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"mixpanel.tsx"}),(0,a.jsx)(c.zB,{control:A.control,name:"mixpanelProjectToken",render:e=>{let{field:t}=e;return(0,a.jsxs)(c.eI,{children:[(0,a.jsx)(c.lR,{children:"Mixpanel Project Token"}),(0,a.jsx)(c.MJ,{children:(0,a.jsx)(d.y,{...t})}),(0,a.jsx)(c.Rr,{children:"You can find your Project Token in your Mixpanel project settings"}),(0,a.jsx)(c.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"mixpanel.tsx"}),w&&(0,a.jsx)(c.zB,{control:A.control,name:"exportSource",render:e=>{let{field:t}=e;return(0,a.jsxs)(c.eI,{children:[(0,a.jsxs)(c.lR,{className:"flex items-center gap-1.5 pt-2",children:["Export Source",(0,a.jsxs)(x.m_,{children:[(0,a.jsx)(x.k$,{children:(0,a.jsx)(S.A,{className:"h-3.5 w-3.5 text-muted-foreground"})}),(0,a.jsxs)(x.ZI,{side:"bottom",className:"max-w-[350px] space-y-2 p-3",children:[h.EXPORT_SOURCE_OPTIONS.map(e=>(0,a.jsxs)("div",{className:"space-y-0.5",children:[(0,a.jsx)("div",{className:"font-medium",children:e.label}),(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:e.description})]},e.value)),(0,a.jsx)("div",{className:"border-t pt-2",children:(0,a.jsxs)("a",{href:"https://langfuse.com/docs/integrations/export-sources",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-primary hover:underline",children:["For further information see",(0,a.jsx)(T.A,{className:"h-3 w-3"})]})})]})]})]}),(0,a.jsxs)(u.l6,{onValueChange:t.onChange,value:t.value,children:[(0,a.jsx)(c.MJ,{children:(0,a.jsx)(u.bq,{children:(0,a.jsx)(u.yv,{placeholder:"Select data to export"})})}),(0,a.jsx)(u.gC,{children:h.EXPORT_SOURCE_OPTIONS.map(e=>(0,a.jsx)(u.eb,{value:e.value,children:e.label},e.value))})]}),(0,a.jsx)(c.Rr,{children:"Choose which data sources to export to Mixpanel. Scores are always included."}),(0,a.jsx)(c.C5,{})]})}}),(0,a.jsx)(c.zB,{control:A.control,name:"enabled",render:e=>{let{field:t}=e;return(0,a.jsxs)(c.eI,{children:[(0,a.jsx)(c.lR,{children:"Enabled"}),(0,a.jsx)(c.MJ,{children:(0,a.jsx)(m.d,{id:"mixpanel-integration-enabled",checked:t.value,onCheckedChange:()=>
1{t.onChange(!t.value)},className:"ml-4 mt-1"})}),(0,a.jsx)(c.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"mixpanel.tsx"})]}),(0,a.jsxs)("div",{className:"mt-8 flex gap-2",children:[(0,a.jsx)(o.$,{loading:C.isPending,onClick:A.handleSubmit(k),disabled:f,"data-sentry-element":"Button","data-sentry-source-file":"mixpanel.tsx",children:"Save"}),(0,a.jsx)(o.$,{variant:"ghost",loading:_.isPending,disabled:f||!l,onClick:()=>{confirm("Are you sure you want to reset the Mixpanel integration for this project?")&&_.mutate({projectId:i})},"data-sentry-element":"Button","data-sentry-source-file":"mixpanel.tsx",children:"Reset"})]})]})}},57404:(e,t,r)=>{"use strict";r.d(t,{L:()=>S,u:()=>R});var a=r(73154),s=r(67716),n=r(78446),l=r(76916),i=r(49101),o=r(41813),c=r(32928),d=r(18254),m=r(9331),u=r(27131),x=r(24825),p=r(10011),h=r(73215),f=r(30572),g=r(21409),j=r(91010),y=r(55210),v=r(35844),b=r(97934),N=r(64283),w=r(60555),A=r(33616),E=r(81509);let C={TRACE:n.A,GENERATION:l.A,EVENT:i.A,SPAN:o.A,AGENT:c.A,TOOL:d.A,CHAIN:m.A,RETRIEVER:u.A,EMBEDDING:x.A,GUARDRAIL:p.A,SESSION:h.A,USER:f.A,QUEUE_ITEM:g.A,DATASET:j.A,DATASET_RUN:y.A,DATASET_ITEM:v.A,ANNOTATION_QUEUE:b.A,PROMPT:N.A,RUNNING_EVALUATOR:c.A,EVALUATOR:w.A},I=(0,A.F)((0,E.cn)("h-4 w-4"),{variants:{type:{TRACE:"text-dark-green",GENERATION:"text-muted-magenta",EVENT:"text-muted-green",SPAN:"text-muted-blue",AGENT:"text-purple-600",TOOL:"text-orange-600",CHAIN:"text-pink-600",RETRIEVER:"text-teal-600",EMBEDDING:"text-amber-600",GUARDRAIL:"text-red-600",SESSION:"text-primary-accent",USER:"text-primary-accent",QUEUE_ITEM:"text-primary-accent",DATASET:"text-primary-accent",DATASET_RUN:"text-primary-accent",DATASET_ITEM:"text-primary-accent",ANNOTATION_QUEUE:"text-primary-accent",PROMPT:"text-primary-accent",EVALUATOR:"text-primary-accent",RUNNING_EVALUATOR:"text-primary-accent"}}});function R(e){let t=C[e];return t?(0,a.jsx)(t,{className:(0,E.cn)("h-3.5 w-3.5 shrink-0",I({type:e})),"data-sentry-element":"Icon","data-sentry-component":"renderFilterIcon","data-sentry-source-file":"ItemBadge.tsx"}):null}function S(e){let{type:t,showLabel:r=!1,isSmall:l=!1,className:i}=e,o=C[t]||n.A,c=(0,E.cn)(I({type:t}),l?"h-3 w-3":"h-4 w-4",i),d=String(t).charAt(0).toUpperCase()+String(t).slice(1).toLowerCase();return(0,a.jsxs)(s.E,{variant:"outline",title:d,className:(0,E.cn)("flex max-w-fit items-center gap-1 overflow-hidden whitespace-nowrap border-2 bg-background px-1",l&&"h-4"),"data-sentry-element":"Badge","data-sentry-component":"ItemBadge","data-sentry-source-file":"ItemBadge.tsx",children:[(0,a.jsx)(o,{className:c,"data-sentry-element":"Icon","data-sentry-source-file":"ItemBadge.tsx"}),r&&(0,a.jsx)("span",{className:"truncate",title:d.replace(/_/g," "),children:d.replace(/_/g," ")})]})}},60520:(e,t,r)=>{"use strict";r.d(t,{AB:()=>c,J5:()=>d,Qp:()=>o,tH:()=>x,tJ:()=>u,w1:()=>m});var a=r(73154),s=r(96810),n=r(4226),l=r(59757),i=(r(69844),r(81509));let o=s.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...r})});o.displayName="Breadcrumb";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("ol",{ref:t,className:(0,i.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",r),...s})});c.displayName="BreadcrumbList";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("li",{ref:t,className:(0,i.cn)("inline-flex items-center gap-1.5",r),...s})});d.displayName="BreadcrumbItem";let m=s.forwardRef((e,t)=>{let{asChild:r,className:s,...l}=e,o=r?n.DX:"a";return(0,a.jsx)(o,{ref:t,className:(0,i.cn)("transition-colors hover:text-foreground",s),...l})});m.displayName="BreadcrumbLink";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:(0,i.cn)("font-normal text-foreground",r),...s})});u.displayName="BreadcrumbPage";let x=e=>{let{children:t,className:r,...s}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,i.cn)("[&>svg]:size-3.5",r),...s,"data-sentry-component":"BreadcrumbSeparator","data-sentry-source-file":"breadcrumb.tsx",children:null!=t?t:(0,a.jsx)(l.A,{})})};x.displayName="BreadcrumbSeparator"},64495:(e,t,r)=>{"use strict";r.d(t,{O:()=>s});var a=r(73154);r(96810);let s=e=>(0,a.jsx)("svg",{viewBox:"0 0 371.61 88",width:"1em",height:"1em",fill:"none","aria-hidden":"true",focusable:"false",...e,"data-sentry-element":"svg","data-sentry-component":"MixpanelLogo","data-sentry-source-file":"MixpanelLogo.tsx",children:(0,a.jsx)("path",{d:"M0,68.26h22.29v-2.37h-1.67c-3.26,0-4.04-0.89-4.04-4.14V32.36c2.27-3.85,5.33-6.32,9.18-6.32 c4.84,0,7.79,3.55,7.79,10.26v25.45c0,3.26-0.79,4.14-3.95,4.14h-1.78v2.37h21.8V65.9h-1.58c-3.26,0-4.04-0.89-4.04-4.14V35.21 c0-0.89,0-1.78-0.1-2.66c2.17-3.95,5.43-6.51,9.27-6.51c4.84,0,7.8,3.55,7.8,10.26v25.45c0,3.26-0.79,4.14-3.95,4.14h-1.78v2.37 h21.8V65.9h-1.48c-3.36,0-4.14-0.89-4.14-4.14V35.21c0-9.96-5.62-15.49-13.81-15.49c-6.11,0-11.44,3.36-14.3,10.06 c-1.67-6.51-6.61-10.06-13.12-10.06c-5.82,0-10.85,3.15-13.62,9.47v-8.29H0v2.37h1.97c3.36,0,4.14,0.89,4.14,4.14v34.33 c0,3.26-0.79,4.14-4.14,4.14H0V68.26z M90.17,13.02c3.55,0,6.51-2.96,6.51-6.51c0-3.55-2.96-6.51-6.51-6.51 c-3.55,0-6.51,2.96-6.51,6.51C83.66,10.06,86.62,13.02,90.17,13.02z M79.12,68.26h21.9v-2.37h-1.48c-3.26,0-4.04-0.89-4.04-4.14 V20.91H78.92v2.37h1.97c3.36,0,4.14,0.89,4.14,4.14v34.33c0,3.26-0.79,4.14-4.14,4.14h-1.78L79.12,68.26L79.12,68.26z M117,40.45 h6.31c-1.58-0.99-2.17-2.37-2.96-4.93l-2.37-8.78c-1.08-3.95-1.97-5.82-6.31-5.82h-9.07v2.37h1.29c2.66,0,2.96,0.99,3.75,3.95 l2.07,7.7C110.79,38.68,112.48,40.45,117,40.45L117,40.45z M131.61,40.45h6.31c4.54,0,6.11-1.78,7.2-5.52l2.07-7.7 c0.79-2.96,1.18-3.95,3.75-3.95h1.29v-2.37h-8.98c-4.44,0-5.33,1.78-6.32,5.82l-2.37,8.78C133.78,38.17,133.18,39.46,131.61,40.45z M123.32,48.73h8.29v-8.29h-8.29V48.73z M102.6,68.27h9.07c4.34,0,5.23-1.88,6.31-5.82l2.37-8.78c0.79-2.56,1.38-3.95,2.96-4.93 H117c-4.54,0-6.22,1.78-7.3,5.52l-2.07,7.7c-0.79,2.96-1.08,3.95-3.7
15,3.95h-1.29L102.6,68.27L102.6,68.27z M143.24,68.27h8.98 V65.9h-1.29c-2.56,0-2.96-0.99-3.75-3.95l-2.07-7.7c-1.08-3.75-2.66-5.52-7.2-5.52h-6.3c1.58,0.99,2.15,2.27,2.94,4.93l2.37,8.78 C137.91,66.49,138.8,68.27,143.24,68.27L143.24,68.27z M153.5,88h22.88v-2.37h-2.37c-3.15,0-3.95-0.89-3.95-4.14V62.65 c2.86,4.24,7.7,6.81,13.42,6.81c10.75,0,19.33-9.47,19.33-25.84c0-14.8-8.09-23.87-18.55-23.87c-6.11,0-11.25,3.55-14.21,9.86 v-8.68h-16.58v2.37h1.97c3.26,0,4.14,0.89,4.14,4.14v54.05c0,3.26-0.89,4.14-4.14,4.14h-1.97v2.37L153.5,88z M180.54,25.85 c6.41,0,11.64,6.02,11.64,17.95c0,13.02-4.84,20.13-11.44,20.13c-4.25,0-7.99-2.27-10.66-6.22V33.24 C172.64,28.41,176.3,25.84,180.54,25.85L180.54,25.85z M218.42,69.26c6.41,0,11.54-3.06,15.39-9.96v1.08 c0,5.92,3.75,8.48,9.96,8.48c1.88,0,4.25-0.19,5.82-0.69v-2.47c-0.79,0.19-1.38,0.3-1.97,0.3c-2.47,0-3.26-1.48-3.26-3.85V36.9 c0-11.64-6.51-17.17-17.46-17.17c-7.3,0-14.4,3.36-18.94,6.91l1.58,2.77c4.74-3.26,9.37-5.13,14.4-5.13 c6.51,0,9.86,3.55,9.86,11.84v2.17l-12.14,4.74c-11.05,4.54-15.1,8.78-15.1,15.19C206.57,64.62,211.11,69.26,218.42,69.26 L218.42,69.26z M216.94,55.64c0-4.93,2.86-8.48,8.68-11.05l8.19-3.55v15.39c-3.06,4.24-6.61,6.71-10.46,6.71 C219.51,63.14,216.95,60.48,216.94,55.64L216.94,55.64z M251.56,68.27h22.5V65.9h-1.88c-3.26,0-4.04-0.89-4.04-4.14v-29.3 c2.27-3.95,5.62-6.41,9.57-6.41c5.13,0,8.39,3.55,8.39,10.26v25.45c0,3.26-0.79,4.14-3.95,4.14h-1.88v2.37h22.39V65.9h-1.97 c-3.36,0-4.14-0.89-4.14-4.14V35.21c0-9.96-5.92-15.49-14.3-15.49c-6.11,0-11.25,3.15-14.11,9.47v-8.29h-16.58v2.37h1.97 c3.36,0,4.14,0.89,4.14,4.14v34.33c0,3.26-0.79,4.14-4.14,4.14h-1.97L251.56,68.27L251.56,68.27z M328.31,69.45 c6.51,0,12.63-2.96,17.07-6.51l-1.48-2.17c-3.95,2.86-8.39,4.14-12.53,4.14c-10.06,0-15.98-7.1-15.98-20.91v-1.78h31.17 c-0.19-13.32-8.39-22.39-20.32-22.39c-11.93,0-21.51,10.75-21.51,24.96C304.74,60.39,313.62,69.46,328.31,69.45L328.31,69.45z M326.34,22.29c5.92,0,9.57,6.41,10.16,17.26h-20.91C316.48,28.61,320.62,22.29,326.34,22.29L326.34,22.29z M348.73,68.26h22.88 v-2.37h-2.27c-3.26,0-4.04-0.89-4.04-4.14V1.18h-16.58v2.37h1.97c3.26,0,4.14,0.89,4.14,4.14v54.06c0,3.26-0.89,4.14-4.14,4.14 h-1.97L348.73,68.26L348.73,68.26z",fill:"currentColor","data-sentry-element":"path","data-sentry-source-file":"MixpanelLogo.tsx"})})},67716:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var a=r(73154);r(96810);var s=r(33616),n=r(81509);let l=(0,s.F)("inline-flex items-center rounded-md border border-transparent font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",tertiary:"bg-tertiary text-tertiary-foreground",success:"bg-light-green text-dark-green",error:"bg-light-red text-dark-red",warning:"bg-light-yellow text-dark-yellow"},size:{default:"px-2.5 py-0.5 text-xs",sm:"px-1 py-0 text-xs"}},defaultVariants:{variant:"default",size:"default"}});function i(e){let{className:t,variant:r,size:s,...i}=e;return(0,a.jsx)("div",{className:(0,n.cn)(l({variant:r,size:s}),t),...i,"data-sentry-component":"Badge","data-sentry-source-file":"badge.tsx"})}},71773:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/project/[projectId]/settings/integrations/mixpanel",function(){return r(57203)}])},93323:(e,t,r)=>{"use strict";r.d(t,{TR:()=>g,bq:()=>x,eb:()=>j,gC:()=>f,l6:()=>d,mi:()=>y,s3:()=>m,yv:()=>u});var a=r(73154),s=r(96810),n=r(39688),l=r(21),i=r(66428),o=r(92273),c=r(81509);let d=n.bL,m=n.YJ,u=n.WT,x=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(n.l9,{ref:t,className:(0,c.cn)("flex h-8 w-full items-center justify-between gap-1 rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:bg-muted/50 disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[s,i.hideDownIcon?null:(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(l.A,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=n.l9.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.PP,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(i.A,{className:"h-4 w-4"})})});p.displayName=n.PP.displayName;let h=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wn,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(l.A,{className:"h-4 w-4"})})});h.displayName=n.wn.displayName;let f=s.forwardRef((e,t)=>{let{className:r,children:s,position:l="popper",...i}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:t,className:(0,c.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:l,...i,children:[(0,a.jsx)(p,{}),(0,a.jsx)(n.LM,{className:(0,c.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(h,{})]})})});f.displayName=n.UC.displayName;let g=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.JU,{ref:t,className:(0,c.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...s})});g.displayName=n.JU.displayName;let j=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(n.q7,{ref:t,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...l,children:[(0,a.jsx)("span",{"data-checkmark":!0,className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(o.A,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:s})]})});j.displayName=n.q7.displayName;let y=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",r),...s})});y.displayName=n.wv.displayName},97898:(e,t,r)=>{"use strict";r.d(t,{Et:()=>c,d0:()=>o,jc:()=>i});var a=r(73154),s=r(96810),n=r(45103),l=r(81509);let i=n.bL,o=n.l9,c=s.forwardRef((e,t)=>{let{className:r,align:s="center",sideOffset:i=4,...o}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,align:s,sideOffset:i,className:(0,l.cn)("z-[9999] w-64 rounded-md border bg-popover p-3 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...o})})});c.displayName=n.UC.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,l.cn)("p-2 text-sm font-semibold leading-none tracking-tight",r),...s})}).displayName="HoverCardTitle"}},e=>{e.O(0,[202,9110,1454,531,7020,636,6593,8792],()=>e(e.s=71773)),_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.