PageSourceSearch

http://parisobs.com/_next/static/chunks/pages/project/[projectId]/…/blobstorage-89b89fddc3c171e8.js

js parisobs.com collected 2026-10-04 01:41:21 UTC 50,539 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6087],{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:()=>y,MJ:()=>f,Rr:()=>g,eI:()=>p,lR:()=>h,lV:()=>d,zB:()=>u});var a=r(73154),s=r(96810),n=r(4226),l=r(17020),o=r(81509),i=r(70883);let d=l.Op,c=s.createContext({}),u=e=>{let{...t}=e;return(0,a.jsx)(c.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"})})},x=()=>{let e=s.useContext(c),t=s.useContext(m),{getFieldState:r,formState:a}=(0,l.xW)(),n=r(e.name,a);if(!e)throw Error("useFormField should be used within <FormField>");let{id:o}=t;return{id:o,name:e.name,formItemId:"".concat(o,"-form-item"),formDescriptionId:"".concat(o,"-form-item-description"),formMessageId:"".concat(o,"-form-item-message"),...n}},m=s.createContext({}),p=s.forwardRef((e,t)=>{let{className:r,...n}=e,l=s.useId();return(0,a.jsx)(m.Provider,{value:{id:l},children:(0,a.jsx)("div",{ref:t,className:(0,o.cn)("space-y-2",r),...n})})});p.displayName="FormItem";let h=s.forwardRef((e,t)=>{let{className:r,...s}=e,{error:n,formItemId:l}=x();return(0,a.jsx)(i.J,{ref:t,className:(0,o.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:o,formMessageId:i}=x();return(0,a.jsx)(n.DX,{ref:t,id:l,"aria-describedby":s?"".concat(o," ").concat(i):o,"aria-invalid":!!s,...r})});f.displayName="FormControl";let g=s.forwardRef((e,t)=>{let{className:r,...s}=e,{formDescriptionId:n}=x();return(0,a.jsx)("p",{ref:t,id:n,className:(0,o.cn)("text-sm text-muted-foreground",r),...s})});g.displayName="FormDescription";let y=s.forwardRef((e,t)=>{let{className:r,children:s,...n}=e,{error:l,formMessageId:i}=x(),d=l?String(l.message):s;return d?(0,a.jsx)("p",{ref:t,id:i,className:(0,o.cn)("text-sm font-medium text-destructive",r),...n,children:d}):null});y.displayName="FormMessage"},28353:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,Ay:()=>d,iK:()=>c});var a=r(73154),s=r(68389),n=r.n(s),l=r(35157),o=r(97390),i=r(81509);function d(e){let{...t}=e;return(0,a.jsx)(m,{...t,level:"h3","data-sentry-element":"BaseHeader","data-sentry-component":"Header","data-sentry-source-file":"header.tsx"})}function c(e){let{...t}=e;return(0,a.jsx)(m,{...t,level:"h4","data-sentry-element":"BaseHeader","data-sentry-component":"SubHeader","data-sentry-source-file":"header.tsx"})}function u(e){let{...t}=e;return(0,a.jsx)(m,{...t,level:"h5","data-sentry-element":"BaseHeader","data-sentry-component":"SubHeaderLabel","data-sentry-source-file":"header.tsx"})}function x(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 m(e){var t;let{...r}=e;return(0,a.jsx)("div",{className:(0,i.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)(x,{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)(o.W,{type:r.status}),r.label&&(0,a.jsx)(n(),{href:r.label.href,children:(0,a.jsx)(o.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:()=>u});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(o(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},o=(e,t)=>{let r=i(t);return e.some(e=>i(e).match(`^${r}\\.\\d+`))};function i(e){return e.replace(/\]|\[/g,"")}var d=r(20202);function c(e,t){try{var r=e()}catch(e){return t(e)}return r&&r.then?r.then(void 0,t):r}function u(e,t,r){if(void 0===r&&(r={}),"_def"in e&&"object"==typeof e._def&&"typeName"in e._def)return function(s,o,i){try{return Promise.resolve(c(function(){return Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](s,t)).then(function(e){return i.shouldUseNativeValidation&&n({},i),{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,o=s.path.join(".");if(!r[o])if("unionErrors"in s){var i=s.unionErrors[0].errors[0];r[o]={message:i.message,type:i.code}}else r[o]={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 d=r[o].types,c=d&&d[s.code];r[o]=(0,a.Gb)(o,t,r,n,c?[].concat(c,s.message):s.message)}e.shift()}return r}(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e}))}catch(e){return Promise.reject(e)}};if("_zod"in e&&"object"==typeof e._zod)return function(s,o,i){try{return Promise.resolve(c(function(){return Promise.resolve(("sync"===r.mode?d.parse:d.parseAsync)(e,s,t)).then(function(e){return i.shouldUseNativeValidation&&n({},i),{errors:{},values:r.raw?Object.assign({},s):e}})},function(e){if(e instanceof d.$ZodError)return{values:{},errors:l(function(e,t){for(var r={};e.length;){var s=e[0],n=s.code,l=s.message,o=s.path.join(".");if(!r[o])if("invalid_union"===s.code){var i=s.errors[0][0];r[o]={message:i.message,type:i.code}}else r[o]={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 d=r[o].types,c=d&&d[s.code];r[o]=(0,a.Gb)(o,t,r,n,c?[].concat(c,s.message):s.message)}e.shift()}return r}(e.issues,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};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:()=>d,z:()=>c});var a=r(73154),s=r(97898),n=r(92125),l=r(81509),o=r(45103),i=r(80263);function d(e){let{description:t,href:r,className:d}=e,c=(0,n.B)();return(0,a.jsxs)(s.jc,{openDelay:200,onOpenChange:e=>{e&&c("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"),c("help_popup:href_clicked",{href:r,description:t}))},children:(0,a.jsx)(i.A,{className:"h-3 w-3","data-sentry-element":"Info","data-sentry-source-file":"doc-popup.tsx"})})}),(0,a.jsx)(o.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",d),children:t})})})]})}function c(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:()=>_});var a=r(73154),s=r(10952),n=r(81509),l=r(38834),o=r(96810);let i=e=>{var t,r,i;let{className:d}=e,[c,u]=(0,o.useState)(!1),x=(0,l.useSession)(),{isLangfuseCloud:m,region:p}=(0,s.gW)();return m&&(null==(i=x.data)||null==(r=i.user)||null==(t=r.email)?void 0:t.endsWith("@langfuse.com"))&&!c?(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",d),onClick:()=>u(!0),"data-sentry-component":"EnvLabel","data-sentry-source-file":"EnvLabel.tsx",children:p&&["EU","US","HIPAA"].includes(p)?"PROD-".concat(p):p}):null};
1var d=r(57404),c=r(60520),u=r(88377),x=r(51883),m=r(21),p=r(31346),h=r(65295),f=r(26596),g=r(86843),y=r(82145),j=r(98084),b=r(39156),v=r(36157),N=r(6482),S=r(45596),w=r(68389),A=r.n(w),E=r(67716);let R=()=>(0,a.jsxs)(u._2,{"data-sentry-element":"DropdownMenuItem","data-sentry-component":"LoadingMenuItem","data-sentry-source-file":"breadcrumb.tsx",children:[(0,a.jsx)(x.A,{className:"mr-1.5 h-4 w-4 animate-spin","data-sentry-element":"LoaderCircle","data-sentry-source-file":"breadcrumb.tsx"})," Loading..."]}),I=e=>{var t,r,s,n,i,d,x;let{items:w,className:I}=e,C=(0,b.useRouter)(),T=(0,l.useSession)(),{organization:B,project:_}=(0,j.lf)(),O=null==(r=T.data)||null==(t=r.user)?void 0:t.organizations,k=null==(n=T.data)||null==(s=n.user)?void 0:s.canCreateOrganizations,M=(0,v.du)({organizationId:null==B?void 0:B.id,scope:"projects:create"}),F=e=>{let t=["[projectId]","[organizationId]","[page]"],r=C.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)(c.Qp,{className:I,"data-sentry-element":"Breadcrumb","data-sentry-component":"BreadcrumbComponent","data-sentry-source-file":"breadcrumb.tsx",children:(0,a.jsxs)(c.AB,{"data-sentry-element":"BreadcrumbList","data-sentry-source-file":"breadcrumb.tsx",children:[B&&(0,a.jsxs)(u.rI,{children:[(0,a.jsxs)(u.ty,{className:"flex items-center gap-1 text-sm text-primary",children:[null!=(d=null==B?void 0:B.name)?d:"Organization",(0,S.isCloudPlan)(null==B?void 0:B.plan)&&B.id!==y._.NEXT_PUBLIC_DEMO_ORG_ID&&(0,a.jsx)(E.E,{className:"ml-1 px-1 py-0 text-xs font-normal",variant:"secondary",children:S.planLabels[B.plan]}),(0,a.jsx)(m.A,{className:"h-4 w-4"})]}),(0,a.jsxs)(u.SQ,{align:"start",children:[(0,a.jsx)(u._2,{className:"font-semibold",asChild:!0,children:(0,a.jsx)(A(),{href:"/",className:"cursor-pointer",children:"Organizations"})}),(0,a.jsx)(u.mB,{}),(0,a.jsx)("div",{className:"max-h-36 overflow-y-auto",children:O?O.sort((e,t)=>{let r=y._.NEXT_PUBLIC_DEMO_ORG_ID===e.id,a=y._.NEXT_PUBLIC_DEMO_ORG_ID===t.id;return r?1:a?-1:0}).map(e=>(0,a.jsxs)(o.Fragment,{children:[y._.NEXT_PUBLIC_DEMO_ORG_ID===e.id&&(0,a.jsx)(u.mB,{}),(0,a.jsx)(u._2,{asChild:!0,children:(0,a.jsxs)(A(),{href:(e=>C.query.organizationId?F(C.asPath).replace(C.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(),C.push("/organization/".concat(e.id,"/settings"))},children:(0,a.jsx)(p.A,{size:12})})})]})})]},e.id)):(0,a.jsx)(R,{})}
1),k&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.mB,{}),(0,a.jsx)(u._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)(A(),{href:N.bu,children:[(0,a.jsx)(h.A,{className:"mr-1.5 h-4 w-4","aria-hidden":"true"}),"New Organization"]})})})]})]})]}),B&&_&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.tH,{children:(0,a.jsx)(f.A,{})}),(0,a.jsxs)(u.rI,{children:[(0,a.jsxs)(u.ty,{className:"flex items-center gap-1 text-primary",children:[null!=(x=null==_?void 0:_.name)?x:"Project",(0,a.jsx)(m.A,{className:"h-4 w-4"})]}),(0,a.jsxs)(u.SQ,{align:"start",children:[(0,a.jsx)(u._2,{asChild:!0,className:"font-semibold",children:(0,a.jsx)(A(),{href:"/organization/".concat(B.id),className:"cursor-pointer",children:"Projects"})}),(0,a.jsx)(u.mB,{}),(0,a.jsx)("div",{className:"max-h-36 overflow-y-auto",children:O?null==(i=O.find(e=>e.id===B.id))?void 0:i.projects.map(e=>(0,a.jsx)(u._2,{asChild:!0,children:(0,a.jsxs)(A(),{href:(e=>C.query.projectId?F(C.asPath).replace(C.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(),C.push("/project/".concat(e.id,"/settings"))},children:(0,a.jsx)(p.A,{size:12})})})]})},e.id)):(0,a.jsx)(R,{})}),M&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.mB,{}),(0,a.jsx)(u._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)(A(),{href:(0,N.Nr)(B.id),children:[(0,a.jsx)(h.A,{className:"mr-1.5 h-4 w-4","aria-hidden":"true"}),"New Project"]})})})]})]})]})]}),null==w?void 0:w.map((e,t)=>(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(c.tH,{children:(0,a.jsx)(f.A,{})}),(0,a.jsx)(c.J5,{children:e.href?(0,a.jsx)(c.w1,{asChild:!0,children:(0,a.jsx)(A(),{href:e.href,children:e.name})}):(0,a.jsx)("span",{children:e.name})},t)]},t))]})})};var C=r(35157),T=r(60117),B=r(53524);let _=e=>{let{title:t,itemType:r,actionButtonsLeft:s,actionButtonsRight:l,breadcrumb:o,help:c,titleTooltip:u,tabsProps:x,container:m=!1,className:p,showSidebarTrigger:h=!0,leadingControl:f,titleBadges:g,breadcrumbBadges:y}=e,j=(0,b.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",m&&"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)(i,{"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)(I,{items:o,"data-sentry-element":"BreadcrumbComponent","data-sentry-source-file":"page-header.tsx"}),y]})]})}),(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",m&&"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)(d.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:u?(0,a.jsx)(B.Bc,{children:(0,a.jsxs)(B.m_,{children:[(0,a.jsx)(B.k$,{asChild:!0,children:(0,a.jsxs)("span",{className:"cursor-help break-words","data-testid":"page-header-title",children:[t,c&&(0,a.jsxs)("span",{className:"whitespace-nowrap",children:["\xa0",(0,a.jsx)(C.A,{description:c.description,href:c.href,className:c.className})]})]})}),(0,a.jsx)(B.ZI,{side:"bottom",className:"max-w-xs",children:u})]})}):(0,a.jsxs)("span",{className:"break-words",title:t,"data-testid":"page-header-title",children:[t,c&&(0,a.jsxs)("span",{className:"whitespace-nowrap",children:["\xa0",(0,a.jsx)(C.A,{description:c.description,href:c.href,className:c.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})]}),x&&(0,a.jsx)("div",{className:(0,n.cn)("ml-2",x.className),children:(0,a.jsx)("div",{className:(0,n.cn)("inline-flex h-8 items-center justify-start",x.listClassName),children:x.tabs.map(e=>{var t;return(0,a.jsx)(A(),{href:{pathname:e.href,query:null==(t=e.querySelector)?void 0:t.call(e,j.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===x.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:()=>i});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 o=r(29276);let i=s.forwardRef((e,t)=>{let{className:r,...i}=e,[d,c]=s.useState(!1);return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:d?"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,...i}),(0,a.jsx)("button",{type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 transform cursor-pointer",onClick:()=>c(!d),title:d?"Hide password":"Show password",children:d?(0,a.jsx)(l,{className:"h-5 w-5 text-muted-foreground"}):(0,a.jsx)(o.A,{className:"h-5 w-5 text-muted-foreground"})})]})});i.displayName="PasswordInput"},57404:(e,t,r)=>{"use strict";r.d(t,{L:()=>C,u:()=>I});var a=r(73154),s=r(67716),n=r(78446),l=r(76916),o=r(49101),i=r(41813),d=r(32928),c=r(18254),u=r(9331),x=r(27131),m=r(24825),p=r(10011),h=r(73215),f=r(30572),g=r(21409),y=r(91010),j=r(55210),b=r(35844),v=r(97934),N=r(64283),S=r(60555),w=r(33616),A=r(81509);let E={TRACE:n.A,GENERATION:l.A,EVENT:o.A,SPAN:i.A,AGENT:d.A,TOOL:c.A,CHAIN:u.A,RETRIEVER:x.A,EMBEDDING:m.A,GUARDRAIL:p.A,SESSION:h.A,USER:f.A,QUEUE_ITEM:g.A,DATASET:y.A,DATASET_RUN:j.A,DATASET_ITEM:b.A,ANNOTATION_QUEUE:v.A,PROMPT:N.A,RUNNING_EVALUATOR:d.A,EVALUATOR:S.A},R=(0,w.F)((0,A.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 I(e){let t=E[e];return t?(0,a.jsx)(t,{className:(0,A.cn)("h-3.5 w-3.5 shrink-0",R({type:e})),"data-sentry-element":"Icon","data-sentry-component":"renderFilterIcon","data-sentry-source-file":"ItemBadge.tsx"}):null}function C(e){let{type:t,showLabel:r=!1,isSmall:l=!1,className:o}=e,i=E[t]||n.A,d=(0,A.cn)(R({type:t}),l?"h-3 w-3":"h-4 w-4",o),c=String(t).charAt(0).toUpperCase()+String(t).slice(1).toLowerCase();return(0,a.jsxs)(s.E,{variant:"outline",title:c,className:(0,A.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)(i,{className:d,"data-sentry-element":"Icon","data-sentry-source-file":"ItemBadge.tsx"}),r&&(0,a.jsx)("span",{className:"truncate",title:c.replace(/_/g," "),children:c.replace(/_/g," ")})]})}},60520:(e,t,r)=>{"use strict";r.d(t,{AB:()=>d,J5:()=>c,Qp:()=>i,tH:()=>m,tJ:()=>x,w1:()=>u});var a=r(73154),s=r(96810),n=r(4226),l=r(59757),o=(r(69844),r(81509));let i=s.forwardRef((e,t)=>
1{let{...r}=e;return(0,a.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...r})});i.displayName="Breadcrumb";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("ol",{ref:t,className:(0,o.cn)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",r),...s})});d.displayName="BreadcrumbList";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("li",{ref:t,className:(0,o.cn)("inline-flex items-center gap-1.5",r),...s})});c.displayName="BreadcrumbItem";let u=s.forwardRef((e,t)=>{let{asChild:r,className:s,...l}=e,i=r?n.DX:"a";return(0,a.jsx)(i,{ref:t,className:(0,o.cn)("transition-colors hover:text-foreground",s),...l})});u.displayName="BreadcrumbLink";let x=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,o.cn)("font-normal text-foreground",r),...s})});x.displayName="BreadcrumbPage";let m=e=>{let{children:t,className:r,...s}=e;return(0,a.jsx)("li",{role:"presentation","aria-hidden":"true",className:(0,o.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,{})})};m.displayName="BreadcrumbSeparator"},62583:(e,t,r)=>{"use strict";r.d(t,{G:()=>d});var a=r(73154),s=r(54433),n=r(68048),l=r(43035),o=r(41641);let i=e=>{let{title:t,description:r,onDismiss:s,link:i}=e;return(0,a.jsxs)("div",{className:"flex justify-between","data-sentry-component":"SuccessNotification","data-sentry-source-file":"SuccessNotification.tsx",children:[(0,a.jsxs)("div",{className:"flex min-w-[300px] flex-1 flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(l.A,{size:20,className:"text-primary-foreground","data-sentry-element":"BadgeCheck","data-sentry-source-file":"SuccessNotification.tsx"}),(0,a.jsx)("div",{className:"m-0 text-sm font-medium leading-tight text-primary-foreground",children:t})]}),r&&(0,a.jsx)("div",{className:"text-sm leading-tight text-primary-foreground",children:r}),i&&(0,a.jsx)(n.r,{href:i.href,size:"sm",variant:"secondary",className:"self-start",children:i.text})]}),(0,a.jsx)("button",{className:"flex h-6 w-6 cursor-pointer items-start justify-end border-none bg-transparent p-0 text-primary-foreground transition-colors duration-200",onClick:s,"aria-label":"Close",children:(0,a.jsx)(o.A,{size:14,"data-sentry-element":"X","data-sentry-source-file":"SuccessNotification.tsx"})})]})},d=e=>{let{duration:t=5e3,...r}=e;s.oR.custom(e=>(0,a.jsx)(i,{...r,onDismiss:()=>s.oR.dismiss(e)}),{duration:t,style:{padding:"1rem",border:"1px solid hsl(var(--dark-green))",borderRadius:"0.5rem",backgroundColor:"hsl(var(--dark-green))"}})}},67716:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});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 o(e){let{className:t,variant:r,size:s,...o}=e;return(0,a.jsx)("div",{className:(0,n.cn)(l({variant:r,size:s}),t),...o,"data-sentry-component":"Badge","data-sentry-source-file":"badge.tsx"})}},68048:(e,t,r)=>{"use strict";r.d(t,{r:()=>h});var a=r(73154),s=r(96810),n=r(72764),l=r(36932),o=r(12407),i=r(86843),d=r(97898),c=r(45103),u=r(68389),x=r.n(u),m=r(92125);let p={limitReached:(e,t)=>"You have reached the limit (".concat(e,"/").concat(t,") for this resource at your current plan. Upgrade your plan to increase the limit."),noAccess:"You do not have access to this resource, please ask your admin to grant you access.",entitlement:"This feature is not available in your current plan."},h=s.forwardRef(function(e,t){let{loading:r=!1,hasAccess:s=!0,hasEntitlement:n=!0,limitValue:l,limit:o=!1,disabled:i=!1,children:u,icon:x,className:h,href:y,trackingEventName:j,trackingProps:b,...v}=e,N=(0,m.B)(),S="number"==typeof o&&void 0!==l&&l>=o,w=i||!s||!n||S,A=s?n?S&&"number"==typeof o&&void 0!==l?p.limitReached(l,o):null:p.entitlement:p.noAccess,E=(0,a.jsx)(g,{ref:t,icon:x,isDisabled:w,loading:r,hasAccess:s,hasEntitlement:n,hasReachedLimit:S,className:h,buttonProps:v,href:y,onLinkClick:()=>{j&&y&&f(y)&&N(j,null!=b?b:null)},children:u});return w&&A?(0,a.jsxs)(d.jc,{openDelay:200,children:[(0,a.jsx)(d.d0,{asChild:!0,children:(0,a.jsx)("span",{children:E})}),(0,a.jsx)(c.HP,{children:(0,a.jsx)(d.Et,{className:"w-80 text-sm",children:A})})]}):E}),f=e=>e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//"),g=s.forwardRef(function(e,t){let{icon:r,isDisabled:s,loading:d,hasAccess:c,hasEntitlement:u,hasReachedLimit:m,className:p,buttonProps:h,children:g,href:y,onLinkClick:j}=e,b=(0,a.jsxs)(a.Fragment,{children:[c?u?m?(0,a.jsx)(o.A,{className:"mr-1 h-4 w-4"}):r?(0,a.jsx)("div",{className:"mr-1",children:r}):null:(0,a.jsx)(l.A,{className:"mr-1 h-4 w-4"}):(0,a.jsx)(n.A,{className:"mr-1 h-4 w-4"}),g]}),v=y&&!s,N=y&&f(y);return(0,a.jsx)(i.$,{ref:t,disabled:s,loading:d,className:p,...h,asChild:!!v||void 0,children:v?(0,a.jsx)(x(),{href:y,target:N?"_blank":void 0,rel:N?"noopener noreferrer":void 0,onClick:j,children:b}):b})})},72764:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});
1let a=(0,r(22222).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},92054:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var a=r(73154),s=r(28353),n=r(8913),l=r(97390),o=r(86843),i=r(10873),d=r(90270),c=r(57159),u=r(1597),x=r(93323),m=r(53524),p=r(92125),h=r(41454),f=r(45596);let g=h.z.object({type:h.z.enum(f.BlobStorageIntegrationType),bucketName:h.z.string().min(1,{message:"Bucket name is required"}),endpoint:h.z.string().url().optional().nullable(),region:h.z.string().default("auto"),accessKeyId:h.z.string().optional(),secretAccessKey:h.z.string().nullable().optional(),prefix:h.z.string().refine(e=>!e||""===e||e.endsWith("/"),{message:"Prefix must end with a forward slash (/)"}).optional().or(h.z.literal("")),exportFrequency:h.z.enum(["hourly","daily","weekly"]),enabled:h.z.boolean(),forcePathStyle:h.z.boolean(),fileType:h.z.enum(f.BlobStorageIntegrationFileType).default(f.BlobStorageIntegrationFileType.JSONL),exportMode:h.z.enum(f.BlobStorageExportMode).default(f.BlobStorageExportMode.FULL_HISTORY),exportStartDate:h.z.coerce.date().optional().nullable(),exportSource:h.z.enum(f.AnalyticsIntegrationExportSource).default(f.AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS)});var y=r(18799),j=r(93367),b=r(33100),v=r(25277),N=r(68389),S=r.n(N),w=r(39156),A=r(96810),E=r(17020),R=r(62583),I=r(8163),C=r(10952),T=r(55803),B=r(80263),_=r(72459);function O(){var e,t,r,i,d,c,u,x,m;let p=(0,w.useRouter)().query.projectId,h=(0,y.lp)({projectId:p,scope:"integrations:CRUD"}),g=j.FH.blobStorageIntegration.get.useQuery({projectId:p},{enabled:h,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,staleTime:3e6}),b=g.isInitialLoading||!h?void 0:(null==(e=g.data)?void 0:e.enabled)?"active":"inactive";return(0,a.jsxs)(n.A,{headerProps:{title:"Blob Storage Integration",breadcrumb:[{name:"Settings",href:"/project/".concat(p,"/settings")}],actionButtonsLeft:(0,a.jsx)(a.Fragment,{children:b&&(0,a.jsx)(l.W,{type:b})}),actionButtonsRight:(0,a.jsx)(o.$,{asChild:!0,variant:"secondary",children:(0,a.jsx)(S(),{href:"https://langfuse.com/docs/api-and-data-platform/features/export-to-blob-storage",target:"_blank",children:"Integration Docs ↗"})})},"data-sentry-element":"ContainerPage","data-sentry-component":"BlobStorageIntegrationSettings","data-sentry-source-file":"blobstorage.tsx",children:[(0,a.jsx)("p",{className:"mb-4 text-sm text-primary",children:'Configure scheduled exports of your trace data to AWS S3, S3-compatible storages, or Azure Blob Storage. Set up a hourly, daily, or weekly export to your own storage for data analysis or backup purposes. Use the "Validate" button to test your configuration by uploading a small test file, and the "Run Now" button to trigger an immediate export.'}),!h&&(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."}),h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Ay,{title:"Configuration"}),(0,a.jsx)(v.Zp,{className:"p-3",children:(0,a.jsx)(k,{state:g.data||void 0,projectId:p,isLoading:g.isLoading})})]}),(null==(t=g.data)?void 0:t.enabled)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Ay,{title:"Status",className:"mt-8"}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("p",{className:"text-sm text-primary",children:["Data last exported:"," ",(null==(r=g.data)?void 0:r.lastSyncAt)?new Date(g.data.lastSyncAt).toLocaleString():"Never (pending)"]}),(0,a.jsxs)("p",{className:"text-sm text-primary",children:["Export mode:"," ",(null==(i=g.data)?void 0:i.exportMode)===f.BlobStorageExportMode.FULL_HISTORY?"Full history":(null==(d=g.data)?void 0:d.exportMode)===f.BlobStorageExportMode.FROM_TODAY?"From setup date":(null==(c=g.data)?void 0:c.exportMode)===f.BlobStorageExportMode.FROM_CUSTOM_DATE?"From custom date":"Unknown"]}),((null==(u=g.data)?void 0:u.exportMode)===f.BlobStorageExportMode.FROM_CUSTOM_DATE||(null==(x=g.data)?void 0:x.exportMode)===f.BlobStorageExportMode.FROM_TODAY)&&(null==(m=g.data)?void 0:m.exportStartDate)&&(0,a.jsxs)("p",{className:"text-sm text-primary",children:["Export start date:"," ",new Date(g.data.exportStartDate).toLocaleDateString()]})]})]})]})}let k=e=>{let{state:t,projectId:r,isLoading:s}=e,n=(0,p.B)(),{isLangfuseCloud:l}=(0,C.gW)(),{isBetaEnabled:h}=(0,T.I)(),[y,v]=(0,A.useState)(f.BlobStorageIntegrationType.S3),N=!l,S=(0,E.mN)({resolver:(0,b.u)(g),defaultValues:{type:(null==t?void 0:t.type)||f.BlobStorageIntegrationType.S3,bucketName:(null==t?void 0:t.bucketName)||"",endpoint:(null==t?void 0:t.endpoint)||null,region:(null==t?void 0:t.regi
1on)||"",accessKeyId:(null==t?void 0:t.accessKeyId)||"",secretAccessKey:(null==t?void 0:t.secretAccessKey)||null,prefix:(null==t?void 0:t.prefix)||"",exportFrequency:(null==t?void 0:t.exportFrequency)||"daily",enabled:(null==t?void 0:t.enabled)||!1,forcePathStyle:(null==t?void 0:t.forcePathStyle)||!1,fileType:(null==t?void 0:t.fileType)||f.BlobStorageIntegrationFileType.JSONL,exportMode:(null==t?void 0:t.exportMode)||f.BlobStorageExportMode.FULL_HISTORY,exportStartDate:(null==t?void 0:t.exportStartDate)||null,exportSource:(null==t?void 0:t.exportSource)||(h?f.AnalyticsIntegrationExportSource.EVENTS:f.AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS)},disabled:s});(0,A.useEffect)(()=>{v((null==t?void 0:t.type)||f.BlobStorageIntegrationType.S3),S.reset({type:(null==t?void 0:t.type)||f.BlobStorageIntegrationType.S3,bucketName:(null==t?void 0:t.bucketName)||"",endpoint:(null==t?void 0:t.endpoint)||null,region:(null==t?void 0:t.region)||"auto",accessKeyId:(null==t?void 0:t.accessKeyId)||"",secretAccessKey:(null==t?void 0:t.secretAccessKey)||null,prefix:(null==t?void 0:t.prefix)||"",exportFrequency:(null==t?void 0:t.exportFrequency)||"daily",enabled:(null==t?void 0:t.enabled)||!1,forcePathStyle:(null==t?void 0:t.forcePathStyle)||!1,fileType:(null==t?void 0:t.fileType)||f.BlobStorageIntegrationFileType.JSONL,exportMode:(null==t?void 0:t.exportMode)||f.BlobStorageExportMode.FULL_HISTORY,exportStartDate:(null==t?void 0:t.exportStartDate)||null,exportSource:(null==t?void 0:t.exportSource)||(h?f.AnalyticsIntegrationExportSource.EVENTS:f.AnalyticsIntegrationExportSource.TRACES_OBSERVATIONS)})},[t]);let w=j.FH.useUtils(),O=j.FH.blobStorageIntegration.update.useMutation({onSuccess:()=>{w.blobStorageIntegration.invalidate()}}),k=j.FH.blobStorageIntegration.delete.useMutation({onSuccess:()=>{w.blobStorageIntegration.invalidate()}}),M=j.FH.blobStorageIntegration.runNow.useMutation({onSuccess:()=>{w.blobStorageIntegration.invalidate()}}),F=j.FH.blobStorageIntegration.validate.useMutation({onSuccess:e=>{(0,R.G)({title:e.message,description:"Test file: ".concat(e.testFileName)})},onError:e=>{(0,I.N)("Validation failed",e.message)}});async function z(e){n("integrations:blob_storage_form_submitted"),O.mutate({projectId:r,...e})}return(0,a.jsxs)(i.lV,{...S,"data-sentry-element":"Form","data-sentry-component":"BlobStorageIntegrationSettingsForm","data-sentry-source-file":"blobstorage.tsx",children:[(0,a.jsxs)("form",{className:"space-y-3",onSubmit:S.handleSubmit(z),children:[(0,a.jsx)(i.zB,{control:S.control,name:"type",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Storage Provider"}),(0,a.jsx)(i.MJ,{children:(0,a.jsxs)(x.l6,{value:t.value,onValueChange:e=>(e=>{v(e),S.setValue("type",e)})(e),children:[(0,a.jsx)(x.bq,{children:(0,a.jsx)(x.yv,{placeholder:"Select provider"})}),(0,a.jsxs)(x.gC,{children:[(0,a.jsx)(x.eb,{value:"S3",children:"AWS S3"}),(0,a.jsx)(x.eb,{value:"S3_COMPATIBLE",children:"S3 Compatible Storage"}),(0,a.jsx)(x.eb,{value:"AZURE_BLOB_STORAGE",children:"Azure Blob Storage"})]})]})}),(0,a.jsx)(i.Rr,{children:"Choose your cloud storage provider"}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"}),(0,a.jsx)(i.zB,{control:S.control,name:"bucketName",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"AZURE_BLOB_STORAGE"===y?"Container Name":"Bucket Name"}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(d.p,{...t})}),(0,a.jsx)(i.Rr,{children:"AZURE_BLOB_STORAGE"===y?"The Azure storage container name":"The S3 bucket name"}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"}),"S3"!==y&&(0,a.jsx)(i.zB,{control:S.control,name:"endpoint",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Endpoint URL"}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(d.p,{...t,value:t.value||""})}),(0,a.jsx)(i.Rr,{children:"AZURE_BLOB_STORAGE"===y?"Azure Blob Storage endpoint URL (e.g., https://accountname.blob.core.windows.net)":"S3 compatible endpoint URL (e.g., https://play.min.io)"}),(0,a.jsx)(i.C5,{})]})}}),"AZURE_BLOB_STORAGE"!==y&&(0,a.jsx)(i.zB,{control:S.control,name:"region",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Region"}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(d.p,{...t})}),(0,a.jsx)(i.Rr,{children:"S3"===y?"AWS region (e.g., us-east-1)":"S3 compatible storage region"}),(0,a.jsx)(i.C5,{})]})}}),"S3_COMPATIBLE"===y&&(0,a.jsx)(i.zB,{control:S.control,name:"forcePathStyle",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Force Path Style"}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(u.d,{checked:t.value,onCheckedChange:t.onChange,className:"ml-4 mt-1"})}),(0,a.jsx)(i.Rr,{children:"Enable for MinIO and some other S3 compatible providers"}),(0,a.jsx)(i.C5,{})]})}}),(0,a.jsx)(i.zB,{control:S.control,name:"accessKeyId",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsxs)(i.lR,{children:["AZURE_BLOB_STORAGE"===y?"Storage Account Name":"S3"===y?"AWS Access Key ID":"Acce
1ss Key ID",N&&"S3"===y&&(0,a.jsx)("span",{className:"text-muted-foreground",children:" (optional)"})]}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(d.p,{...t})}),(0,a.jsx)(i.Rr,{children:"AZURE_BLOB_STORAGE"===y?"Your Azure storage account name":"S3"===y?N?"Your AWS IAM user access key ID. Leave empty to use host credentials (IAM roles, instance profiles, etc.)":"Your AWS IAM user access key ID":"Access key for your S3-compatible storage"}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"}),(0,a.jsx)(i.zB,{control:S.control,name:"secretAccessKey",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsxs)(i.lR,{children:["AZURE_BLOB_STORAGE"===y?"Storage Account Key":"S3"===y?"AWS Secret Access Key":"Secret Access Key",N&&"S3"===y&&(0,a.jsx)("span",{className:"text-muted-foreground",children:" (optional)"})]}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(c.y,{placeholder:"********************",...t,value:t.value||""})}),(0,a.jsx)(i.Rr,{children:"AZURE_BLOB_STORAGE"===y?"Your Azure storage account access key":"S3"===y?N?"Your AWS IAM user secret access key. Leave empty to use host credentials (IAM roles, instance profiles, etc.)":"Your AWS IAM user secret access key":"Secret key for your S3-compatible storage"}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"}),(0,a.jsx)(i.zB,{control:S.control,name:"prefix",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Export Prefix"}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(d.p,{...t})}),(0,a.jsx)(i.Rr,{children:"AZURE_BLOB_STORAGE"===y?'Optional prefix path for exported files in your Azure container (e.g., "langfuse-exports/")':"S3"===y?'Optional prefix path for exported files in your S3 bucket (e.g., "langfuse-exports/")':'Optional prefix path for exported files (e.g., "langfuse-exports/")'}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"}),(0,a.jsx)(i.zB,{control:S.control,name:"exportFrequency",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Export Frequency"}),(0,a.jsx)(i.MJ,{children:(0,a.jsxs)(x.l6,{value:t.value,onValueChange:t.onChange,children:[(0,a.jsx)(x.bq,{children:(0,a.jsx)(x.yv,{placeholder:"Select frequency"})}),(0,a.jsxs)(x.gC,{children:[(0,a.jsx)(x.eb,{value:"hourly",children:"Hourly"}),(0,a.jsx)(x.eb,{value:"daily",children:"Daily"}),(0,a.jsx)(x.eb,{value:"weekly",children:"Weekly"})]})]})}),(0,a.jsx)(i.Rr,{children:"How often the data should be exported. Changes are taken into consideration from the next run onwards."}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"}),(0,a.jsx)(i.zB,{control:S.control,name:"fileType",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"File Type"}),(0,a.jsx)(i.MJ,{children:(0,a.jsxs)(x.l6,{value:t.value,onValueChange:t.onChange,children:[(0,a.jsx)(x.bq,{children:(0,a.jsx)(x.yv,{placeholder:"Select file type"})}),(0,a.jsxs)(x.gC,{children:[(0,a.jsx)(x.eb,{value:"JSONL",children:"JSONL"}),(0,a.jsx)(x.eb,{value:"CSV",children:"CSV"}),(0,a.jsx)(x.eb,{value:"JSON",children:"JSON"})]})]})}),(0,a.jsx)(i.Rr,{children:"The file format for exported data."}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"}),(0,a.jsx)(i.zB,{control:S.control,name:"exportMode",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Export Mode"}),(0,a.jsx)(i.MJ,{children:(0,a.jsxs)(x.l6,{value:t.value,onValueChange:t.onChange,children:[(0,a.jsx)(x.bq,{children:(0,a.jsx)(x.yv,{placeholder:"Select export mode"})}),(0,a.jsxs)(x.gC,{children:[(0,a.jsx)(x.eb,{value:f.BlobStorageExportMode.FULL_HISTORY,children:"Full history"}),(0,a.jsx)(x.eb,{value:f.BlobStorageExportMode.FROM_TODAY,children:"Today"}),(0,a.jsx)(x.eb,{value:f.BlobStorageExportMode.FROM_CUSTOM_DATE,children:"Custom date"})]})]})}),(0,a.jsx)(i.Rr,{children:'Choose when to start exporting data. "Today" and "Custom date" modes will not include historical data before the specified date.'}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"}),h&&(0,a.jsx)(i.zB,{control:S.control,name:"exportSource",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsxs)(i.lR,{className:"flex items-center gap-1.5 pt-2",children:["Export Source",(0,a.jsxs)(m.m_,{children:[(0,a.jsx)(m.k$,{children:(0,a.jsx)(B.A,{className:"h-3.5 w-3.5 text-muted-foreground"})}),(0,a.jsxs)(m.ZI,{side:"bottom",className:"max-w-[350px] space-y-2 p-3",children:[f.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)(_.A,{className:"h-3 w-3"})]})})]})]})]}),(0,a.jsxs)(x.l6,{onValueChange:t.onChange,value:t.value,children:[(0,a.jsx)(i.MJ,{children:(0,a.jsx)(x.bq,{children:(0,a.jsx)(x.yv,{placeholder:"Select data to export"})})}),(0,a.jsx)(x.gC,{children:f.EXPORT_SOURCE_OPTIONS.map(e=>(0,a.jsx)(x.eb,{value:e.value,children:e.label},e.value))})]}),(0,a.jsx)(i.Rr,{children:"Choose which data sources to export to blob storage. Scores are always included."}),(0,a.jsx)(i.C5,{})]})}}),S.watch("exportMode")===f.BlobStorageExportMode.FROM_CUSTOM_DATE&&(0,a.jsx)(i.zB,{control:S.control,name:"exportStartDate",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Export Start Date"}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(d.p,{type:"date",value:t.value instanceof Date?t.value.toISOString().split("T")[0]:"",onCh
1ange:e=>{let r=e.target.value?new Date(e.target.value):null;t.onChange(r)},placeholder:"Select start date"})}),(0,a.jsx)(i.Rr,{children:"Data before this date will not be included in exports"}),(0,a.jsx)(i.C5,{})]})}}),(0,a.jsx)(i.zB,{control:S.control,name:"enabled",render:e=>{let{field:t}=e;return(0,a.jsxs)(i.eI,{children:[(0,a.jsx)(i.lR,{children:"Enabled"}),(0,a.jsx)(i.MJ,{children:(0,a.jsx)(u.d,{checked:t.value,onCheckedChange:t.onChange,className:"ml-4 mt-1"})}),(0,a.jsx)(i.C5,{})]})},"data-sentry-element":"FormField","data-sentry-source-file":"blobstorage.tsx"})]}),(0,a.jsxs)("div",{className:"mt-8 flex gap-2",children:[(0,a.jsx)(o.$,{loading:O.isPending,onClick:S.handleSubmit(z),disabled:s,"data-sentry-element":"Button","data-sentry-source-file":"blobstorage.tsx",children:"Save"}),(0,a.jsx)(o.$,{variant:"secondary",loading:F.isPending,disabled:s||!t,title:"Test your saved configuration by uploading a small test file to your storage",onClick:()=>{F.mutate({projectId:r})},"data-sentry-element":"Button","data-sentry-source-file":"blobstorage.tsx",children:"Validate"}),(0,a.jsx)(o.$,{variant:"secondary",loading:M.isPending,disabled:s||!(null==t?void 0:t.enabled),title:"Trigger an immediate export of all data since the last sync",onClick:()=>{confirm("Are you sure you want to run the blob storage export now? This will export all data since the last sync.")&&M.mutate({projectId:r})},"data-sentry-element":"Button","data-sentry-source-file":"blobstorage.tsx",children:"Run Now"}),(0,a.jsx)(o.$,{variant:"ghost",loading:k.isPending,disabled:s||!t,onClick:()=>{confirm("Are you sure you want to reset the Blob Storage integration for this project?")&&k.mutate({projectId:r})},"data-sentry-element":"Button","data-sentry-source-file":"blobstorage.tsx",children:"Reset"})]})]})}},93323:(e,t,r)=>{"use strict";r.d(t,{TR:()=>g,bq:()=>m,eb:()=>y,gC:()=>f,l6:()=>c,mi:()=>j,s3:()=>u,yv:()=>x});var a=r(73154),s=r(96810),n=r(39688),l=r(21),o=r(66428),i=r(92273),d=r(81509);let c=n.bL,u=n.YJ,x=n.WT,m=s.forwardRef((e,t)=>{let{className:r,children:s,...o}=e;return(0,a.jsxs)(n.l9,{ref:t,className:(0,d.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),...o,children:[s,o.hideDownIcon?null:(0,a.jsx)(n.In,{asChild:!0,children:(0,a.jsx)(l.A,{className:"h-4 w-4 opacity-50"})})]})});m.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,d.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(o.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,d.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",...o}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{ref:t,className:(0,d.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,...o,children:[(0,a.jsx)(p,{}),(0,a.jsx)(n.LM,{className:(0,d.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,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",r),...s})});g.displayName=n.JU.displayName;let y=s.forwardRef((e,t)=>{let{className:r,children:s,...l}=e;return(0,a.jsxs)(n.q7,{ref:t,className:(0,d.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)(i.A,{className:"h-4 w-4"})})}),(0,a.jsx)(n.p4,{children:s})]})});y.displayName=n.q7.displayName;let j=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...s})});j.displayName=n.wv.displayName},97898:(e,t,r)=>{"use strict";r.d(t,{Et:()=>d,d0:()=>i,jc:()=>o});var a=r(73154),s=r(96810),n=r(45103),l=r(81509);let o=n.bL,i=n.l9,d=s.forwardRef((e,t)=>{let{className:r,align:s="center",sideOffset:o=4,...i}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,align:s,sideOffset:o,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),...i})})});d.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"},97943:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/project/[projectId]/settings/integrations/blobstorage",function(){return r(92054)}])}},e=>{e.O(0,[202,9110,1454,531,7020,636,6593,8792],()=>e(e.s=97943)),_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.