1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6750,8319],{14616:(e,t,a)=>{"use strict";a.d(t,{$v:()=>p,EO:()=>c,Lt:()=>s,Rx:()=>m,Zr:()=>h,ck:()=>f,r7:()=>g,tv:()=>l,wd:()=>x});var r=a(5640);a(50148);var n=a(86601),i=a(24621),o=a(21686);function s(e){let{...t}=e;return(0,r.jsx)(o.bL,{"data-slot":"alert-dialog",...t})}function l(e){let{...t}=e;return(0,r.jsx)(o.l9,{"data-slot":"alert-dialog-trigger",...t})}function d(e){let{...t}=e;return(0,r.jsx)(o.ZL,{"data-slot":"alert-dialog-portal",...t})}function u(e){let{className:t,...a}=e;return(0,r.jsx)(o.hJ,{"data-slot":"alert-dialog-overlay",className:(0,i.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",t),...a})}function c(e){let{className:t,...a}=e;return(0,r.jsxs)(d,{children:[(0,r.jsx)(u,{}),(0,r.jsx)(o.UC,{"data-slot":"alert-dialog-content",className:(0,i.cn)("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",t),...a})]})}function x(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,i.cn)("flex flex-col gap-2 text-center sm:text-left",t),...a})}function f(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,i.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function g(e){let{className:t,...a}=e;return(0,r.jsx)(o.hE,{"data-slot":"alert-dialog-title",className:(0,i.cn)("text-lg font-semibold",t),...a})}function p(e){let{className:t,...a}=e;return(0,r.jsx)(o.VY,{"data-slot":"alert-dialog-description",className:(0,i.cn)("text-sm text-muted-foreground",t),...a})}function m(e){let{className:t,variant:a,size:s,...l}=e;return(0,r.jsx)(o.rc,{className:(0,i.cn)((0,n.r)({variant:a,size:s}),t),...l})}function h(e){let{className:t,variant:a="outline",size:s,...l}=e;return(0,r.jsx)(o.ZD,{className:(0,i.cn)((0,n.r)({variant:a,size:s}),t),...l})}},21549:(e,t,a)=>{"use strict";a.d(t,{L:()=>m});var r=a(5640),n=a(50148),i=a(43651),o=a(18868),s=a(26999),l=a(32666),d=a(50972),u=a(65382),c=a(48800),x=a(1839),f=a(2268),g=a(1740),p=a(9113);let m=e=>{let{dataSourceId:t,variant:a,orgId:m}=e,{orgId:h}=(0,i.As)(),v=null!=m?m:h,j=f.FH.useUtils(),{_:y}=(0,p.uB)(),w=(0,g.VR)(g.ol.GMEET),b=f.FH.dataSource.gMeet.get.useQuery({orgId:v,dataSourceId:t},{enabled:!!v&&!!t}),C=b.data,M=f.FH.dataSource.gMeet.verifyConnection.useMutation({onSuccess:async()=>{j.dataSource.gMeet.get.invalidate(),j.dataSource.query.invalidate()}}),N=f.FH.dataSource.gMeet.create.useMutation({onSuccess:()=>{j.dataSource.gMeet.get.invalidate(),j.dataSource.query.invalidate()}}),S=f.FH.dataSource.gMeet.importHistory.useMutation({onSuccess:async()=>{j.dataSource.gMeet.get.invalidate(),j.dataSource.query.invalidate()}}),R=f.FH.dataSource.gMeet.getAuthorizeUrl.useMutation(),A=async e=>{if(!v)return;let{url:t}=await R.mutateAsync({orgId:v,dataSourceId:e});window.location.href=t};if("setup"!==a&&t){var I;if(b.isLoading)return(0,r.jsx)(u.p,{definition:w,dataSourceId:t,children:(0,r.jsx)(c.Z,{})});if(!C)return(0,r.jsx)(u.p,{definition:w,dataSourceId:t,children:(0,r.jsx)(x.J,{title:y({id:"FQ3ZFl"})})});let e=!!C.disabledAt||"active"!==C.status;return(0,r.jsx)(u.p,{definition:w,dataSourceId:t,rail:(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(o.E,{type:g.ol.GMEET,status:C.status}),(0,r.jsx)(d.g,{orgId:v,dataSourceId:t,disabledAt:null!=(I=C.disabledAt)?I:null,description:(0,r.jsx)(p.x6,{id:"1n8xUz"}),onChanged:()=>void b.refetch()}),(0,r.jsx)(s.t,{status:C.status,onReconnect:()=>A(t),reconnecting:R.isLoading})]}),children:(0,r.jsx)(l.O,{orgId:v,dataSourceId:t,dataSourceName:"Google Meet",itemLabel:w.importItemLabel,importDisabled:e,isImporting:S.isLoading,onImport:async(e,a)=>{v&&await S.mutateAsync({orgId:v,dataSourceId:t,dateFrom:e.from,dateTo:e.to,modelClass:null==a?void 0:a.modelClass,llmLane:null==a?void 0:a.llmLane,skipMediaProcessing:null==a?void 0:a.skipMediaProcessing})}})})}return t?b.isLoading?(0,r.jsx)(c.Z,{}):(0,r.jsx)(s.t,{status:null==C?void 0:C.status,onReconnect:()=>A(t),reconnecting:R.isLoading,onVerify:()=>{v&&M.mutate({orgId:v,dataSourceId:t})},verifying:M.isLoading,verifyResult:M.data,hideHeading:!0}):(0,r.jsx)(s.t,{hasDataSource:!1,description:(0,r.jsx)(p.x6,{id:"wDa54x"}),onConnect:async()=>
1{if(!v)return;let e=await N.mutateAsync({orgId:v,configuration:{}});await A(e.id)},connecting:N.isLoading||R.isLoading,hideHeading:!0})}},21686:(e,t,a)=>{"use strict";a.d(t,{UC:()=>F,VY:()=>z,ZD:()=>U,ZL:()=>P,bL:()=>D,hE:()=>H,hJ:()=>E,l9:()=>k,rc:()=>O});var r=a(50148),n=a(25684),i=a(72196),o=a(34377),s=a(4180),l=a(96674),d=a(5640),u="AlertDialog",[c,x]=(0,n.A)(u,[o.Hs]),f=(0,o.Hs)(),g=e=>{let{__scopeAlertDialog:t,...a}=e,r=f(t);return(0,d.jsx)(o.bL,{...r,...a,modal:!0})};g.displayName=u;var p=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=f(a);return(0,d.jsx)(o.l9,{...n,...r,ref:t})});p.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:t,...a}=e,r=f(t);return(0,d.jsx)(o.ZL,{...r,...a})};m.displayName="AlertDialogPortal";var h=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=f(a);return(0,d.jsx)(o.hJ,{...n,...r,ref:t})});h.displayName="AlertDialogOverlay";var v="AlertDialogContent",[j,y]=c(v),w=(0,l.Dc)("AlertDialogContent"),b=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,children:n,...l}=e,u=f(a),c=r.useRef(null),x=(0,i.s)(t,c),g=r.useRef(null);return(0,d.jsx)(o.G$,{contentName:v,titleName:C,docsSlug:"alert-dialog",children:(0,d.jsx)(j,{scope:a,cancelRef:g,children:(0,d.jsxs)(o.UC,{role:"alertdialog",...u,...l,ref:x,onOpenAutoFocus:(0,s.mK)(l.onOpenAutoFocus,e=>{e.preventDefault(),g.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,d.jsx)(w,{children:n}),(0,d.jsx)(L,{contentRef:c})]})})})});b.displayName=v;var C="AlertDialogTitle",M=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=f(a);return(0,d.jsx)(o.hE,{...n,...r,ref:t})});M.displayName=C;var N="AlertDialogDescription",S=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=f(a);return(0,d.jsx)(o.VY,{...n,...r,ref:t})});S.displayName=N;var R=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,n=f(a);return(0,d.jsx)(o.bm,{...n,...r,ref:t})});R.displayName="AlertDialogAction";var A="AlertDialogCancel",I=r.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...r}=e,{cancelRef:n}=y(A,a),s=f(a),l=(0,i.s)(t,n);return(0,d.jsx)(o.bm,{...s,...r,ref:l})});I.displayName=A;var L=({contentRef:e})=>{let t=`\`${v}\` requires a description for the component to be accessible for screen reader users. 2 3You can add a description to the \`${v}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 4 5Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${v}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 6 7For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},D=g,k=p,P=m,E=h,F=b,O=R,U=I,H=M,z=S},24785:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71756).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},26999:(e,t,a)=>{"use strict";a.d(t,{t:()=>u});var r=a(5640),n=a(50148),i=a(85487),o=a(14616),s=a(86601),l=a(9113),d=a(24785);function u(e){let{_:t}=(0,l.uB)();if(!1===e.hasDataSource){var a;return(0,r.jsx)(i.SI,{title:e.hideHeading?void 0:(0,r.jsx)(l.x6,{id:"exyUec"}),children:(0,r.jsx)(s.$,{variant:"outline",size:"sm",onClick:e.onConnect,loading:e.connecting,disabled:e.disabled,children:null!=(a=e.connectLabel)?a:(0,r.jsx)(l.x6,{id:"iSLIjg"})})})}let{status:n,onReconnect:o,reconnecting:u,onVerify:x,verifying:f,verifyResult:g,onDisconnect:p,disconnecting:m,hideHeading:h}=e;return(0,r.jsxs)(i.SI,{title:h?void 0:(0,r.jsx)(l.x6,{id:"exyUec"}),children:[(0,r.jsx)(i.nK,{label:t({id:"uAQUqI"}),children:t("active"===n||"unknown"===n?{id:"+Q1v1x"}:{id:"S1aM6Y"})}),(0,r.jsxs)(i.s5,{result:g,children:[x&&(0,r.jsx)(s.$,{variant:"outline",size:"sm",className:"w-full @sm:w-auto",onClick:x,loading:f,children:(0,r.jsx)(l.x6,{id:"d+fVrI"})}),(0,r.jsxs)(s.$,{variant:"outline",size:"sm",className:"w-full @sm:w-auto",onClick:o,loading:u,children:[(0,r.jsx)(l.x6,{id:"gcoiFh"}),(0,r.jsx)(d.A,{className:"size-4"})]}),p&&(0,r.jsx)(c,{onDisconnect:p,disconnecting:m})]})]})}function c(e){let{onDisconnect:t,disconnecting:a}=e,[i,d]=n.useState(!1);return(0,r.jsxs)(n.Fragment,{children:[(0,r.jsx)(s.$,{variant:"ghost",size:"sm",className:"w-full text-neutral-500 hover:text-[var(--red-600)] @sm:w-auto",onClick:()=>d(!0),loading:a,children:(0,r.jsx)(l.x6,{id:"+K0AvT"})}),(0,r.jsx)(o.Lt,{open:i,onOpenChange:d,children:(0,r.jsxs)(o.EO,{children:[(0,r.jsxs)(o.wd,{children:[(0,r.jsx)(o.r7,{children:(0,r.jsx)(l.x6,{id:"PtrOPo"})}),(0,r.jsx)(o.$v,{children:(0,r.jsx)(l.x6,{id:"0V7MoP"})})]}),(0,r.jsxs)(o.ck,{children:[(0,r.jsx)(o.Zr,{children:(0,r.jsx)(l.x6,{id:"dEgA5A"})}),(0,r.jsx)(o.Rx,{onClick:()=>{t(),d(!1)},children:(0,r.jsx)(l.x6,{id:"+K0AvT"})})]})]})})]})}},27679:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71756).A)("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]])},34456:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71756).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},50972:(e,t,a)=>{"use strict";a.d(t,{g:()=>d});var r=a(5640);a(50148);var n=a(85487),i=a(80131),o=a(2268),s=a(9113),l=a(61443);function d(e){let{orgId:t,dataSourceId:a,disabledAt:d,description:u,onChanged:c}=e,{_:x}=(0,s.uB)(),f=o.FH.useUtils(),g=o.FH.dataSource.enable.useMutation({onSuccess:async()=>{await (null==c?void 0:c()),f.dataSource.query.invalidate()},onError:e=>l.oR.error(x({id:"/DJuBI",values:{0:e.message}}))}),p=o.FH.dataSource.disable.useMutation({onSuccess:async()=>{await (null==c?void 0:c()),f.dataSource.query.invalidate()},onError:e=>l.oR.error(x({id:"930R6i",values:{0:e.message}}))}),m=g.isLoading||p.isLoading;return(0,r.jsx)(n.SI,{title:(0,r.jsx)(s.x6,{id:"RxzN1M"}),action:(0,r.jsx)(i.d,{checked:!d,disabled:m,onCheckedChange:e=>{e?g.mutate({orgId:t,dataSourceId:a}):p.mutate({orgId:t,dataSourceId:a})},"aria-label":x({id:"RxzN1M"}),className:"data-[state=checked]:bg-green-600"}),children:(0,r.jsx)("p",{className:"text-[13px] leading-5 text-neutral-600",children:null!=u?u:(0,r.jsx)(s.x6,{id:"0W9jUB"})})})}},75226:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var r=a(5640);a(50148);var n=a(95034),i=a(21549),o=a(17939);let s=()=>{let{dataSourceId:e}=(0,n.useRouter)().query;return(0,r.jsx)(i.L,{dataSourceId:e,variant:"configure"})};s.getLayout=o.e7,s.requiredRole="admin";let l=s},84388:(e,t,a)=>{"use strict";a.d(t,{G5:()=>B,H_:()=>_,JU:()=>Z,Pb:()=>K,UC:()=>z,VF:()=>G,YJ:()=>T,ZL:()=>H,ZP:()=>Y,bL:()=>O,hN:()=>V,l9:()=>U,q7:()=>q,wv:()=>J,z6:()=>$});var r=a(50148),n=a(4180),i=a(25684),o=a(59164),s=a(4445),l=a(50125),d=a(91285),u=a(5640),c="ContextMenu",[x,f]=(0,i.A)(c,[s.UE]),g=(0,s.UE)(),[p,m]=x(c),h=e
7=>{let{__scopeContextMenu:t,children:a,onOpenChange:n,dir:i,modal:o=!0}=e,[d,c]=r.useState(!1),x=g(t),f=(0,l.c)(n),m=r.useCallback(e=>{c(e),f(e)},[f]);return(0,u.jsx)(p,{scope:t,open:d,onOpenChange:m,modal:o,children:(0,u.jsx)(s.bL,{...x,dir:i,open:d,onOpenChange:m,modal:o,children:a})})};h.displayName=c;var v="ContextMenuTrigger",j=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,disabled:i=!1,...l}=e,d=m(v,a),c=g(a),x=r.useRef({x:0,y:0}),f=r.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...x.current})}),p=r.useRef(0),h=r.useCallback(()=>window.clearTimeout(p.current),[]),j=e=>{x.current={x:e.clientX,y:e.clientY},d.onOpenChange(!0)};return r.useEffect(()=>h,[h]),r.useEffect(()=>void(i&&h()),[i,h]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s.Mz,{...c,virtualRef:f}),(0,u.jsx)(o.sG.span,{"data-state":d.open?"open":"closed","data-disabled":i?"":void 0,...l,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:i?e.onContextMenu:(0,n.mK)(e.onContextMenu,e=>{h(),j(e),e.preventDefault()}),onPointerDown:i?e.onPointerDown:(0,n.mK)(e.onPointerDown,F(e=>{h(),p.current=window.setTimeout(()=>j(e),700)})),onPointerMove:i?e.onPointerMove:(0,n.mK)(e.onPointerMove,F(h)),onPointerCancel:i?e.onPointerCancel:(0,n.mK)(e.onPointerCancel,F(h)),onPointerUp:i?e.onPointerUp:(0,n.mK)(e.onPointerUp,F(h))})]})});j.displayName=v;var y=e=>{let{__scopeContextMenu:t,...a}=e,r=g(t);return(0,u.jsx)(s.ZL,{...r,...a})};y.displayName="ContextMenuPortal";var w="ContextMenuContent",b=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...n}=e,i=m(w,a),o=g(a),l=r.useRef(!1);return(0,u.jsx)(s.UC,{...o,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&l.current&&t.preventDefault(),l.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||i.modal||(l.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});b.displayName=w;var C=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.YJ,{...n,...r,ref:t})});C.displayName="ContextMenuGroup";var M=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.JU,{...n,...r,ref:t})});M.displayName="ContextMenuLabel";var N=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.q7,{...n,...r,ref:t})});N.displayName="ContextMenuItem";var S=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.H_,{...n,...r,ref:t})});S.displayName="ContextMenuCheckboxItem";var R=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.z6,{...n,...r,ref:t})});R.displayName="ContextMenuRadioGroup";var A=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.hN,{...n,...r,ref:t})});A.displayName="ContextMenuRadioItem";var I=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.VF,{...n,...r,ref:t})});I.displayName="ContextMenuItemIndicator";var L=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.wv,{...n,...r,ref:t})});L.displayName="ContextMenuSeparator",r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.i3,{...n,...r,ref:t})}).displayName="ContextMenuArrow";var D="ContextMenuSub",k=e=>{let{__scopeContextMenu:t,children:a,onOpenChange:r,open:n,defaultOpen:i}=e,o=g(t),[l,c]=(0,d.i)({prop:n,defaultProp:i??!1,onChange:r,caller:D});return(0,u.jsx)(s.Pb,{...o,open:l,onOpenChange:c,children:a})};k.displayName=D;var P=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.ZP,{...n,...r,ref:t})});P.displayName="ContextMenuSubTrigger";var E=r.forwardRef((e,t)=>{let{__scopeContextMenu:a,...r}=e,n=g(a);return(0,u.jsx)(s.G5,{...n,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});function F(e){return t=>
7"mouse"!==t.pointerType?e(t):void 0}E.displayName="ContextMenuSubContent";var O=h,U=j,H=y,z=b,T=C,Z=M,q=N,_=S,$=R,V=A,G=I,J=L,K=k,Y=P,B=E},89013:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/settings/datasources/gMeet/[dataSourceId]",function(){return a(75226)}])}},e=>{e.O(0,[6790,555,1656,4360,773,2023,4382,5060,5775,4923,7939,1740,454,4860,4164,2666,636,6593,8792],()=>e(e.s=89013)),_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.