1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,309833,e=>{"use strict";var t=e.i(687817),a=e.i(927240),s=e.i(439052),r=e.i(522085),i=e.i(565940),n=e.i(286319),l=e.i(714589),o=e.i(228113),u=e.i(224958);e.s(["TemplateGallery",0,function({initialModelSlug:e,agentId:d}){let[c,m]=(0,a.useState)(null),[p,y]=(0,a.useState)(""),{selectedIntegrations:h,toggleIntegration:g}=(0,o.useIntegrationSelection)(),f=(0,s.useRouter)(),x=(0,s.usePathname)(),{user:b}=(0,u.useUser)(),v=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=new URL(window.location.href);if(e.searchParams.has("r")){e.searchParams.delete("r");let t=e.pathname+(e.searchParams.toString()?`?${e.searchParams}`:"");window.history.replaceState(null,"",t)}},[]);let{models:k,recommendedModels:w,isLoading:j,isLoadingMore:M,hasMore:S,loadMore:C,query:q,setQuery:N,selectedModel:K,selectModel:F}=(0,n.useChatModel)(),{attachments:A,addFiles:E,removeAttachment:Q,clearAttachments:T,readyFileIds:L,readyAssetIds:_,isUploading:I}=(0,l.useChatAttachments)(),z=(0,n.useModelBySlug)(e,k);(0,a.useEffect)(()=>{z&&!v.current&&(F(z),v.current=!0)},[z,F]);let D=K.inputModalities?.includes("image")??!1,P=(0,a.useCallback)(e=>{E(e,D)},[E,D]);return c?(0,t.jsx)(i.ChatShell,{conversationId:null,initialPrompt:c.prompt,initialFileIds:c.fileIds,initialAssetIds:c.assetIds,initialAttachments:c.attachments,initialIntegrationIds:c.integrationIds,initialIntegrations:c.integrations,agentId:d}):(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-2xl flex-1 flex-col items-center justify-center px-4 sm:px-6",children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight sm:text-3xl",children:"С Ñего наÑнÑм?"}),(0,t.jsx)("div",{className:"mt-8 w-full",children:(0,t.jsx)(r.ChatInput,{value:p,onChange:y,onSend:function(){let e=p.trim();if(!(!e&&A.every(e=>"ready"!==e.status))){if(!b)return void f.push(`${x}?auth=login`);m({prompt:e,fileIds:[...L],assetIds:[..._],attachments:[...A],integrationIds:h.map(e=>e.id),integrations:[...h]}),T()}},autoFocus:!0,selectedModel:K,modelsLoading:j,models:k,recommendedModels:w,modelsHasMore:S,modelsLoadingMore:M,onModelsLoadMore:C,modelQuery:q,onModelQueryChange:N,onModelSelect:F,attachments:A,onFilesSelected:P,onRemoveAttachment:Q,isUploading:I,selectedIntegrations:h,onToggleIntegration:g,onOpenIntegrationSettings:()=>window.dispatchEvent(new CustomEvent("krisana:open-settings-integrations"))})})]})})}])},417489,e=>{"use strict";var t=e.i(687817),a=e.i(927240),s=e.i(433187),r=e.i(62870);e.s(["TeamScopeSelector",0,function({value:e,onChange:i,className:n}){let{data:l}=(0,s.useBusinessEmployees)(),o=(0,a.useMemo)(()=>(0,s.flattenEmployees)(l?.pages).filter(e=>"active"===e.status),[l?.pages]);return(0,t.jsxs)(r.Select,{value:e,onValueChange:e=>i(e),children:[(0,t.jsx)(r.SelectTrigger,{"aria-label":"ÐоказаÑÑ",className:n,children:(0,t.jsx)(r.SelectValue,{placeholder:"ÐÑбеÑиÑе ÑоÑÑÑдника"})}),(0,t.jsxs)(r.SelectContent,{children:[(0,t.jsx)(r.SelectItem,{value:"me",children:"Ðои"}),(0,t.jsx)(r.SelectItem,{value:"all",children:"ÐÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð°"}),o.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.SelectSeparator,{}),o.map(e=>(0,t.jsx)(r.SelectItem,{value:e.id,children:e.name||e.email||e.id},e.id))]})]})]})}])},112662,e=>{"use strict";var t=e.i(687817),a=e.i(814001),s=e.i(73322),r=e.i(659803),i=e.i(609595),n=e.i(715760),l=e.i(261674),o=e.i(647163);let u={wb:"Wildberries"};e.s(["ChatIntegrationPicker",0,function({selectedIds:e,onToggle:d,onOpenSettings:c}){let{data:m=[],isLoading:p}=(0,a.useQuery)({queryKey:l.queryKeys.integrations.list,queryFn:()=>n.integrationsClient.list(),select:e=>(e.data??[]).filter(e=>"active"===e.status)});return p?(0,t.jsx)("div",{className:"flex items-center justify-center py-6",children:(0,t.jsx)(r.Loa
1der2,{className:"size-4 animate-spin text-muted-foreground"})}):0===m.length?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 px-4 py-5 text-center",children:[(0,t.jsx)(i.Plug2,{className:"size-7 text-muted-foreground/50"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:"ÐÐµÑ Ð¸Ð½ÑегÑаÑий"}),(0,t.jsxs)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:["ÐобавÑÑе в"," ",c?(0,t.jsx)("button",{type:"button",onClick:c,className:"font-medium text-primary underline-offset-2 hover:underline",children:"наÑÑÑойкаÑ
"}):(0,t.jsx)("span",{children:"наÑÑÑойкаÑ
"})]})]})]}):(0,t.jsx)("div",{className:"py-1",children:m.map(a=>{let r=e.includes(a.id),i=u[a.provider]??a.provider;return(0,t.jsxs)("button",{type:"button",onClick:()=>d(a),className:(0,o.cn)("flex w-full items-center gap-3 px-3 py-2 text-left text-sm transition-colors hover:bg-accent",r&&"bg-accent/60"),children:[(0,t.jsx)("div",{className:(0,o.cn)("flex size-5 shrink-0 items-center justify-center rounded border transition-colors",r?"border-primary bg-primary":"border-border bg-transparent"),children:r&&(0,t.jsx)(s.Check,{className:"size-3 text-primary-foreground"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate leading-tight font-medium",children:a.name}),(0,t.jsx)("p",{className:"text-xs leading-tight text-muted-foreground",children:i})]})]},a.id)})})}])},577976,e=>{"use strict";var t=e.i(687817),a=e.i(927240),s=e.i(848317);let r=(0,e.i(210987).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);var i=e.i(799458),n=e.i(257765);let l="var(--card)",o="var(--card)";function u(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).filter(([e])=>"background"!==e&&"backgroundColor"!==e))]))}let d=null,c=null,m=null,p=null;function y({lang:s,code:r,isDark:i}){let n=i?l:o,m=function(){let[t,s]=(0,a.useState)(()=>c);return(0,a.useEffect)(()=>{if(null!==t)return;let a=!1;return(!d&&(d=Promise.all([e.A(691962),e.A(790432),e.A(88763),e.A(282527)]).then(([e,t,a,s])=>{let r=e.default;r.registerLanguage("javascript",s.javascript),r.registerLanguage("js",s.javascript),r.registerLanguage("typescript",s.typescript),r.registerLanguage("ts",s.typescript),r.registerLanguage("jsx",s.jsx),r.registerLanguage("tsx",s.tsx),r.registerLanguage("python",s.python),r.registerLanguage("py",s.python),r.registerLanguage("bash",s.bash),r.registerLanguage("sh",s.bash),r.registerLanguage("shell",s.bash),r.registerLanguage("json",s.json),r.registerLanguage("sql",s.sql),r.registerLanguage("css",s.css),r.registerLanguage("html",s.markup),r.registerLanguage("xml",s.markup),r.registerLanguage("markdown",s.markdown),r.registerLanguage("md",s.markdown),r.registerLanguage("yaml",s.yaml),r.registerLanguage("yml",s.yaml),r.registerLanguage("rust",s.rust),r.registerLanguage("go",s.go);let i={SyntaxHighlighter:r,darkTheme:u(t.default),lightTheme:u(a.default)};return c=i,i}).catch(e=>{throw d=null,e})),d).then(e=>{a||s(e)}).catch(()=>{}),()=>{a=!0}},[t]),t}();if(!m)return(0,t.jsx)("pre",{className:"overflow-x-auto p-4 text-sm",style:{background:n,margin:0,maxWidth:"100%",color:i?void 0:"var(--foreground)"},children:(0,t.jsx)("code",{children:r})});let{SyntaxHighlighter:p,darkTheme:h,lightTheme:g}=m;return(0,t.jsx)(p,{language:s||"text",style:i?h:g,customStyle:{margin:0,borderRadius:0,fontSize:"0.875rem",lineHeight:"1.6",background:n,padding:"1rem",maxWidth:"100%",overflowX:"auto"},codeTagProps:{style:{fontFamily:"inherit"}},children:r})}function h({children:e}){let{resolvedTheme:a}=(0,s.useTheme)(),i="dark"===a,u=i?l:o,d=(e?.props?.className??"").replace("language-",""),c=String(e?.props?.children??"").replace(/\n$/,"");return(0,t.jsxs)("div",{className:"my-3 max-w-full overflow-hidden rounded-lg",style:{background:u,contain:"inline-size"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2",style:{background:"var(--border)"},children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-medium",style:{color:"#abb2bf"},children:[(0,t.jsx)(r,{size:13}),d||"text"]}),(0,t.jsx)(n.CopyButton,{value:c,variant:"icon"})]}),(0,t.jsx)(y,{lang:d,code:c,isDark:i})]})}function g({href:e,children:a,...s}){let r=e?.startsWith("http")||e?.startsWith("//");return(0,t.jsx)("a",{href:e,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,...s,children:a})}function f({children:e,...a}){return(0,t.jsxs)("div",{className:"not-prose my-4",style:{contain:"inline-size"},children:[(0,t.jsx)("div",{className:"scrollbar-none block max-w-full overflow-hidden overflow-x-auto overscroll-x-contain rounded-lg border border-border md:overflow-x-clip",children:(0,t.jsx)("table",{className:"w-max min-w-full border-collapse text-sm md:w-full [&_tbody_tr:nth-child(even)]:bg-muted/30 [&_td]:border [&_td]:border-border [&_td]:px-3 [&_td]:py-2 [&_td]:align-top [&_th]:border [&_th]:border-border [&_th]:px-3 [&_th]:py-2 [&_th]:text-left [&_th]:font-semibold [&_thead]:bg-muted/60",...a,children:e})}),(0,t.jsx)("p",{className:"mt-1.5 text-center text-xs text-muted-foreground
1/50 md:hidden",children:"â ÐÑокÑÑÑиÑе ÑаблиÑÑ Ð²Ð¿Ñаво"})]})}let x=(0,a.memo)(function({content:s,isStreaming:r}){let[n,l]=(0,a.useState)(()=>p),[o,u]=(0,a.useState)(0),d=(0,a.useDeferredValue)(s);(0,a.useEffect)(()=>{let t;if(null!==n)return;let a=!1;return(!m&&(m=Promise.all([e.A(339968),e.A(704591),e.A(803382),e.A(186242),e.A(390718)]).then(([e,t,a,s,r])=>{let i=s.defaultSchema,n={...i,tagNames:[...i?.tagNames??[],"math","maction","mfrac","mi","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","annotation","semantics"],attributes:{...i?.attributes??{},math:["xmlns","display"],"*":[...i?.attributes?.["*"]??[]]}},l={ReactMarkdown:e.default,remarkGfm:t.default,remarkMath:a.default,rehypeSanitize:s.default,rehypeKatex:r.default,mathSanitizeSchema:n};return p=l,l}).catch(e=>{throw m=null,i.captureException(e,{tags:{component:"markdown-runtime",action:"dynamic_import_failed"}}),e})),m).then(e=>{a||l(e)}).catch(()=>{a||o>=3||(t=setTimeout(()=>u(e=>e+1),500*(o+1)))}),()=>{a=!0,t&&clearTimeout(t)}},[n,o]);let c=(0,a.useMemo)(()=>n?[n.remarkGfm,[n.remarkMath,{singleDollarTextMath:!1}]]:[],[n]),y=(0,a.useMemo)(()=>n?[[n.rehypeSanitize,n.mathSanitizeSchema],n.rehypeKatex]:[],[n]),x=(0,a.useMemo)(()=>({pre:h,table:f,a:g}),[]);if(!n)return(0,t.jsxs)("div",{className:"text-base leading-relaxed whitespace-pre-wrap",children:[s,r&&(0,t.jsx)("span",{className:"ml-0.5 inline-block h-3.5 w-0.5 animate-pulse bg-current opacity-80"})]});let b=n.ReactMarkdown;return(0,t.jsxs)("div",{className:"prose max-w-none overflow-x-clip [--tw-prose-quote-borders:var(--primary-foreground)] dark:prose-invert dark:[--tw-prose-quote-borders:var(--primary-foreground)] prose-headings:mt-3 prose-headings:mb-6 prose-p:my-1 prose-p:text-base prose-p:leading-relaxed prose-a:text-primary prose-a:underline prose-a:decoration-primary/50 prose-a:underline-offset-2 hover:prose-a:decoration-primary prose-code:before:content-none prose-code:after:content-none prose-ol:my-2 prose-ul:my-2 prose-li:my-1 prose-li:text-base prose-table:my-0 prose-hr:border-border [&_:not(pre)>code]:rounded [&_:not(pre)>code]:bg-muted [&_:not(pre)>code]:px-1 [&_:not(pre)>code]:py-0.5 [&>*:first-child]:mt-0 [&>*:last-child]:mb-0","aria-live":r?"polite":void 0,"aria-atomic":r?"false":void 0,children:[(0,t.jsx)(b,{remarkPlugins:c,rehypePlugins:y,components:x,children:d}),r&&(0,t.jsx)("span",{className:"ml-0.5 inline-block h-3.5 w-0.5 animate-pulse bg-current opacity-80"})]})});e.s(["MarkdownContent",0,x],577976)},854514,e=>{"use strict";var t=e.i(687817);e.s(["DashboardChartBlockSkeleton",0,function({title:e}={}){return(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-card p-4 shadow-xs",children:[e&&(0,t.jsx)("p",{className:"mb-3 text-sm font-semibold text-foreground",children:e}),(0,t.jsx)("div",{className:"h-52 animate-pulse rounded-lg bg-muted sm:h-64"})]})}])},257765,120336,e=>{"use strict";var t=e.i(687817),a=e.i(927240),s=e.i(73322);let r=(0,e.i(210987).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,r],120336);var i=e.i(647163);e.s(["CopyButton",0,function({value:e,variant:n="label",className:l}){let[o,u]=(0,a.useState)(!1);async function d(){o||(await navigator.clipboard.writeText(e),u(!0),setTimeout(()=>u(!1),1500))}return(0,t.jsxs)("button",{type:"button",onClick:()=>void d(),"aria-label":o?"СкопиÑовано":"ÐопиÑоваÑÑ",className:(0,i.cn)("flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs transition-colors",o?"text-emerald-400":"text-muted-foreground hover:bg-accent hover:text-foreground","icon"===n&&"px-1.5",l),children:[(0,t.jsx)("span",{className:(0,i.cn)("transition-all duration-200",o?"scale-110":"scale-100"),children:o?(0,t.jsx)(s.Check,{className:"size-3.5"}):(0,t.jsx)(r,{className:"size-3.5"})}),"label"===n&&(0,t.jsx)("span",{children:o?"СкопиÑовано":"ÐопиÑоваÑÑ"})]})}],257765)},852917,e=>{"use strict";var t=e.i(687817),a=e.i(150364),s=e.i(647163),r=e.i(167881),i=e.i(244161);function n({...e}){return(0,t.jsx)(a.Dialog.Portal,{"data-slot":"sheet-portal",...e})}function l({className:e,...r}){return(0,t.jsx)(a.Dialog.Overlay,{"data-slot":"sheet-overlay",className:(0,s.cn)("fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...r})}e.s(["Sheet",0,function({...e}){return(0,t.jsx)(a.Dialog.Root,{"data-slot":"sheet",...e})},"SheetClose",0,function({...e}){return(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",...e})},"SheetContent",0,function({className:e,children:o,side:u="right",showCloseButton:d=!0,...c}){return(0,t.jsxs)(n,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(a.Dialog.Content,{"data-slot":"sheet-content","data-side":u,className:(0,s.cn)("fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:sli
1de-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",e),...c,children:[o,d&&(0,t.jsx)(a.Dialog.Close,{"data-slot":"sheet-close",asChild:!0,children:(0,t.jsxs)(r.Button,{variant:"ghost",className:"absolute top-4 right-4",size:"icon-sm",children:[(0,t.jsx)(i.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"SheetFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,s.cn)("mt-auto flex flex-col gap-2 p-4",e),...a})},"SheetHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,s.cn)("flex flex-col gap-1.5 p-4",e),...a})},"SheetTitle",0,function({className:e,...r}){return(0,t.jsx)(a.Dialog.Title,{"data-slot":"sheet-title",className:(0,s.cn)("font-medium text-foreground",e),...r})},"SheetTrigger",0,function({...e}){return(0,t.jsx)(a.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}])},671428,e=>{"use strict";var t=e.i(687817),a=e.i(647163);e.s(["Skeleton",0,function({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,a.cn)("animate-pulse rounded-md bg-muted",e),...s})}])},433187,e=>{"use strict";var t=e.i(447985),a=e.i(457725),s=e.i(838181),r=e.i(715760),i=e.i(261674);function n(){let e=(0,s.useQueryClient)();return()=>e.invalidateQueries({queryKey:i.queryKeys.business.employees})}e.s(["flattenEmployees",0,function(e){return e?.flatMap(e=>e.items)??[]},"useActivateEmployee",0,function(){let e=n();return(0,a.useMutation)({mutationFn:e=>r.businessClient.activateEmployee(e),onSuccess:e})},"useBusinessEmployees",0,function(e=!0){return(0,t.useInfiniteQuery)({queryKey:i.queryKeys.business.employees,queryFn:async({pageParam:e})=>(await r.businessClient.listEmployees({limit:50,...e?{cursor:e}:{}})).data,initialPageParam:"",getNextPageParam:e=>e.next_cursor&&e.next_cursor.length>0?e.next_cursor:void 0,enabled:e,staleTime:3e4,refetchOnWindowFocus:!1})},"useCreateEmployee",0,function(){let e=n();return(0,a.useMutation)({mutationFn:e=>r.businessClient.createEmployee(e),onSuccess:e})},"useDeactivateEmployee",0,function(){let e=n();return(0,a.useMutation)({mutationFn:e=>r.businessClient.deactivateEmployee(e),onSuccess:e})},"useResetEmployeePassword",0,function(){return(0,a.useMutation)({mutationFn:({id:e,payload:t})=>r.businessClient.resetEmployeePassword(e,t)})},"useUnlinkEmployee",0,function(){let e=n();return(0,a.useMutation)({mutationFn:e=>r.businessClient.unlinkEmployee(e),onSuccess:e})},"useUpdateEmployeeRole",0,function(){let e=n();return(0,a.useMutation)({mutationFn:({id:e,payload:t})=>r.businessClient.updateEmployeeRole(e,t),onSuccess:e})}])},851042,e=>{"use strict";var t=e.i(927240),a=e.i(814001),s=e.i(261674),r=e.i(715760),i=e.i(103579),n=e.i(433187);function l(e){return e?Array.isArray(e)?e:e.items??[]:[]}function o(e){return"string"==typeof e?e:""}function u(e){return"string"==typeof e?e:void 0}function d(e,t,a){if(e)return{user_id:e,membership_id:t||void 0,name:a||void 0}}function c(e){return e instanceof i.ApiClientError&&403===e.status}function m(e){let a=(0,n.useBusinessEmployees)("me"!==e),s=(0,t.useMemo)(()=>(0,n.flattenEmployees)(a.data?.pages),[a.data]);return(0,t.useMemo)(()=>new Map(s.map(e=>[e.user_id,e])),[s])}e.s(["useEmployeeAgents",0,function(e){let i=m(e),n=(0,a.useQuery)({queryKey:s.queryKeys.business.employeeAgents(e),queryFn:async()=>(await r.businessClient.getEmployeeAgents(e,{limit:100})).data,enabled:"me"!==e,staleTime:3e4,refetchOnWindowFocus:!1}),o=(0,t.useMemo)(()=>{if(n.data)return l(n.data).map(e=>{let{owner_user_id:t,owner_membership_id:a,...s}=e,r=i.get(t??""),n=d(t,a||r?.id,r?.name);return{...s,owner:n}})},[n.data,i]);return{...n,data:o,isForbidden:c(n.error)}},"useEmployeeConversations",0,function(e){let i=m(e),n=(0,a.useQuery)({queryKey:s.queryKeys.business.employeeConversations(e),queryFn:async()=>(await r.businessClient.getEmployeeConversations(e,{limit:100})).data,enabled:"me"!==e,staleTime:3e4,refetchOnWindowFocus:!1}),o=(0,t.useMemo)(()=>
1{if(n.data)return l(n.data).map(e=>{let{owner_user_id:t,owner_membership_id:a,...s}=e,r=d(t,a,i.get(t??"")?.name);return{...s,owner:r}})},[n.data,i]);return{...n,data:o,isForbidden:c(n.error)}},"useEmployeeMessages",0,function(e,t){let i=(0,a.useQuery)({queryKey:s.queryKeys.business.employeeConversationMessages(e,t),queryFn:async()=>(await r.businessClient.getEmployeeConversationMessages(e,t,{limit:100})).data,enabled:!!e&&"all"!==e&&!!t,staleTime:3e4,refetchOnWindowFocus:!1});return{...i,isForbidden:c(i.error)}},"useEmployeeSkills",0,function(e){let i=m(e),n=(0,a.useQuery)({queryKey:s.queryKeys.business.employeeSkills(e),queryFn:async()=>(await r.businessClient.getEmployeeSkills(e,{limit:100})).data,enabled:"me"!==e,staleTime:3e4,refetchOnWindowFocus:!1}),p=(0,t.useMemo)(()=>{if(n.data)return l(n.data).map(e=>{var t,a;let s={id:o(e.id??e.ID),name:o(e.name??e.Name),title:o(e.title??e.Title),description:o(e.description??e.Description),category:o(e.category??e.Category),tags:Array.isArray(t=e.tags??e.Tags)?t.map(e=>String(e)):[],source:o(e.source??e.Source),enabled:!!(e.enabled??e.Enabled),content_visibility:"visible"===(a=e.content_visibility??e.ContentVisibility)||"hidden"===a?a:void 0,owner:d(u(e.owner_user_id??e.OwnerUserID),u(e.owner_membership_id??e.OwnerMembershipID))};if(!s.owner||s.owner.name)return s;let r=i.get(s.owner.user_id)?.name;return r?{...s,owner:{...s.owner,name:r}}:s})},[n.data,i]);return{...n,data:p,isForbidden:c(n.error)}}],851042)},468972,e=>{"use strict";var t=e.i(814001),a=e.i(457725),s=e.i(838181),r=e.i(261674),i=e.i(715760),n=e.i(103579);function l(e){let t=e?.trim()||void 0;return{queryKey:r.queryKeys.skills.templates(t),queryFn:async()=>(await i.skillsClient.templates({limit:100,search:t})).data,refetchOnWindowFocus:!1,staleTime:3e4,retry:!1}}let o=()=>!0;e.s(["useDeleteSkill",0,function(){let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:e=>i.skillsClient.delete(e),onSuccess:(t,a)=>{e.invalidateQueries({queryKey:r.queryKeys.skills.list()}),e.removeQueries({queryKey:r.queryKeys.skills.detail(a)})}})},"useEnableShare",0,function(){return(0,a.useMutation)({mutationFn:({id:e,payload:t})=>i.skillsClient.enableShare(e,t)})},"useImportSkill",0,function(){let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:e=>i.skillsClient.import(e),onSuccess:()=>{e.invalidateQueries({queryKey:r.queryKeys.skills.list()})}})},"useInstallSharedSkill",0,function(){let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:e=>i.skillsClient.installShared(e),onSuccess:()=>{e.invalidateQueries({queryKey:r.queryKeys.skills.list()})}})},"useInstallTemplate",0,function(){let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:e=>i.skillsClient.installTemplate(e),onSuccess:()=>{e.invalidateQueries({queryKey:r.queryKeys.skills.list()})}})},"useRevokeShare",0,function(){return(0,a.useMutation)({mutationFn:e=>i.skillsClient.revokeShare(e)})},"useSkill",0,function(e){return(0,t.useQuery)({queryKey:r.queryKeys.skills.detail(e??""),queryFn:async()=>(await i.skillsClient.get(e)).data,enabled:!!e,staleTime:3e4,refetchOnWindowFocus:!1})},"useSkillTemplates",0,function(e,a=!0){return(0,t.useQuery)({...l(e),enabled:a})},"useSkills",0,function(e,a=!0){let s=e?.trim()||void 0;return(0,t.useQuery)({queryKey:r.queryKeys.skills.list(s),queryFn:async()=>(await i.skillsClient.list({limit:100,search:s})).data,refetchOnWindowFocus:!1,staleTime:3e4,enabled:a})},"useSkillsAvailable",0,function(){let e=(0,t.useQuery)({...l(),select:o});return!e.isError||!(e.error instanceof n.ApiClientError)||503!==e.error.status},"useUpdateSkill",0,function(){let e=(0,s.useQueryClient)();return(0,a.useMutation)({mutationFn:({id:e,payload:t})=>i.skillsClient.update(e,t),onMutate:async({id:t,payload:a})=>{let s=r.queryKeys.skills.detail(t);await e.cancelQueries({queryKey:s});let i=e.getQueryData(s);return i&&e.setQueryData(s,{...i,...a}),{previous:i,detailKey:s}},onError:(t,a,s)=>{s?.previous&&e.setQueryData(s.detailKey,s.previous),t instanceof n.ApiClientError&&409===t.status&&(e.invalidateQueries({queryKey:s?.detailKey}
1),e.invalidateQueries({queryKey:r.queryKeys.skills.list()}))},onSuccess:(t,{id:a})=>{e.setQueryData(r.queryKeys.skills.detail(a),t.data),e.invalidateQueries({queryKey:r.queryKeys.skills.list()})}})}])},929625,e=>{"use strict";let t=(0,e.i(210987).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,t],929625)},775902,e=>{"use strict";let t=(0,e.i(210987).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],775902)},842543,e=>{"use strict";let t=(0,e.i(210987).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);e.s(["ArrowUp",0,t],842543)},154662,e=>{"use strict";let t=(0,e.i(210987).default)("book-open",[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]);e.s(["BookOpen",0,t],154662)},529208,e=>{"use strict";let t=(0,e.i(210987).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",0,t],529208)},73322,e=>{"use strict";var t=e.i(603834);e.s(["Check",()=>t.default])},811760,e=>{"use strict";let t=(0,e.i(210987).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],811760)},608337,e=>{"use strict";let t=(0,e.i(210987).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],608337)},472565,e=>{"use strict";let t=(0,e.i(210987).default)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);e.s(["Database",0,t],472565)},297265,e=>{"use strict";let t=(0,e.i(210987).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],297265)},334632,e=>{"use strict";let t=(0,e.i(210987).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,t],334632)},5547,e=>{"use strict";var t=e.i(560566);e.s(["Image",()=>t.default])},173238,e=>{"use strict";let t=(0,e.i(210987).default)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);e.s(["Link2",0,t],173238)},896733,e=>{"use strict";let t=(0,e.i(210987).default)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);e.s(["MessageSquarePlus",0,t],896733)},338192,e=>{"use strict";let t=(0,e.i(210987).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],338192)},987366,e=>{"use strict";let t=(0,e.i(210987).default)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]]);e.s(["Plug",0,t],987366)},512782,e=>{"use strict";let t=(0,e.i(210987).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],512782)},198258,138144,e=>{"use strict";let t=(0,e.i(210987).default)("shield-question-mark",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["ShieldQuestion",0,t],198258);var a=e.i(814001),s=e.i(457725),r=e.i(838181),i=e.i(261674),n=e.i(715760);e.s(["useApprovals",0,function(e){return(0,a.useQuery)({queryKey:i.queryKeys.approvals.list(e),queryFn:async()=>(await n.approvalsClient.list({limit:50,...e})).data,refetchOnWindowFocus:!0,staleTime:15e3})},"useApprovalsStats",0,function(e){return(0,a.useQuery)({queryKey:i.queryKeys.approvals.stats(e),queryFn:async()=>(await n.approvalsClient.stats(e)).data,refetchOnWindowFocus:!0,staleTime:15e3})},"useDecideApproval",0,function(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:({runId:e,payload:t})=>n.approvalsClient.decide(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:["approvals"]})}})}],138144)},721903,e=>{"use strict";let t=(0,e.i(210987).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],721903)},469797,e=>{"use strict";let t=(0,e.i(210987).default)("table-2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]);e.s(["Table2",0,t],469797)},343947,e=>{"use strict";let t=(0,e.i(210987).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,t],343947)},955408,e=>{"use strict";let t=(0,e.i(210987).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["Users",0,t],955408)},870350,e=>{"use strict";let t=(0,e.i(210987).default)("zap",[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]]);e.s(["Zap",0,t],870350)},95505,e=>{"use strict";let t=(0,e.i(202979).create)()(e=>({attached:null,attach:(t,a,s=!1)=>e({attached:{skill:t,mode:a,seed:s}}),clear:()=>e({attached:null})}));e.s(["useChatSkillAttachmentStore",0,t])}]);
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.