PageSourceSearch

https://ommo.ai/assets/settings-d6677633.js

js ommo.ai collected 2026-10-05 13:34:59 UTC 9,239 bytes, 1 lines download raw bytes

1import{a as e,r as t,d as a,u as n,L as l,O as s}from"./react-vendor-690ef4bc.js";import{N as r}from"./notificationicon-e62d23c2.js";import{U as c,j as o,k as i,D as m,I as p,A as g,l as u}from"./icons-142e3e49.js";import{t as d,c as b,u as N}from"./index-d3072779.js";import{u as f,f as E,F as _,g as h,M as C}from"./mui-core-0fc19580.js";import"./utils-b81ec68d.js";const v=({className:t,...a})=>e.createElement("div",{className:"px-4 md:px-6 flex flex-row items-start justify-between self-stretch shrink-0 relative "+t},e.createElement("div",{className:"flex flex-row gap-2 md:gap-3 items-center justify-start shrink-0 relative"},e.createElement("div",{className:"text-basic-colors-black text-left font-sans text-xl md:text-h1-font-size leading-snug md:leading-h1-line-height font-h1-font-weight relative"},"Settings"))),L="_tabs-container_be7c8_3",x="_mobile-tabs_be7c8_15",$="_mobile-select_be7c8_25",y="_mobile-menu-item_be7c8_45",S="_mobile-tab-icon_be7c8_53",w="_dropdown-group-title_be7c8_63",U="_tabs-inner_be7c8_75",I="_tabs-section_be7c8_85",k="_tabs-section-title_be7c8_95",j="_tabs-items_be7c8_105",A="_tab-item_be7c8_115",M="_tab-item-active_be7c8_131",T="_tab-text_be7c8_153",W="_profile-image_be7c8_163",D="_tab-icon_be7c8_175",G="_loading_be7c8_191",z="_error_be7c8_193",F=()=>t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},t.createElement("path",{d:"M17.7646 5.95083L17.3532 5.237C17.0421 4.69714 16.8866 4.42722 16.622 4.31958C16.3573 4.21194 16.058 4.29688 15.4594 4.46674L14.4426 4.75316C14.0604 4.84129 13.6594 4.79129 13.3105 4.612L13.0297 4.45003C12.7305 4.25837 12.5003 3.97578 12.3729 3.64363L12.0946 2.81248C11.9116 2.26246 11.8201 1.98745 11.6023 1.83015C11.3846 1.67285 11.0952 1.67285 10.5166 1.67285H9.58756C9.00898 1.67285 8.71964 1.67285 8.50181 1.83015C8.28402 1.98745 8.19253 2.26246 8.00955 2.81248L7.73125 3.64363C7.60385 3.97578 7.37369 4.25837 7.07445 4.45003L6.79372 4.612C6.44476 4.79129 6.0438 4.84129 5.66163 4.75316L4.64477 4.46674C4.04615 4.29688 3.74685 4.21194 3.4822 4.31958C3.21755 4.42722 3.06202 4.69714 2.75094 5.237L2.33962 5.95083C2.04803 6.45688 1.90223 6.7099 1.93053 6.97925C1.95882 7.2486 2.154 7.46566 2.54436 7.89978L3.40356 8.86034C3.61356 9.12618 3.76265 9.58951 3.76265 10.0061C3.76265 10.4228 3.61361 10.886 3.40359 11.1519L2.54436 12.1125C2.154 12.5467 1.95883 12.7637 1.93053 13.0331C1.90223 13.3024 2.04803 13.5554 2.33962 14.0614L2.75093 14.7753C3.062 15.3151 3.21755 15.5851 3.4822 15.6927C3.74685 15.8003 4.04616 15.7154 4.64479 15.5455L5.6616 15.2591C6.04384 15.1709 6.44487 15.221 6.79387 15.4003L7.07456 15.5623C7.37374 15.754 7.60385 16.0365 7.73123 16.3687L8.00955 17.1999C8.19253 17.7499 8.28402 18.0249 8.50181 18.1823C8.71964 18.3395 9.00898 18.3395 9.58756 18.3395H10.5166C11.0952 18.3395 11.3846 18.3395 11.6023 18.1823C11.8201 18.0249 11.9116 17.7499 12.0946 17.1999L12.373 16.3687C12.5003 16.0365 12.7304 15.754 13.0296 15.5623L13.3103 15.4003C13.6593 15.221 14.0603 15.1709 14.4426 15.2591L15.4594 15.5455C16.058 15.7154 16.3573 15.8003 16.622 15.6927C16.8866 15.5851 17.0421 15.3151 17.3532 14.7753L17.7646 14.0614C18.0561 13.5554 18.2019 13.3024 18.1736 13.0331C18.1453 12.7637 17.9501 12.5467 17.5598 12.1125L16.7006 11.1519C16.4906 10.886 16.3415 10.4228 16.3415 10.0061C16.3415 9.58951 16.4906 9.12618 16.7006 8.86034L17.5598 7.89978C17.9501 7.46566 18.1453 7.2486 18.1736 6.97925C18.2019 6.7099 18.0561 6.45688 17.7646 5.95083Z",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"}),t.createElement("path",{d:"M12.9329 9.99967C12.9329 11.6105 11.6271 12.9163 10.0163 12.9163C8.40542 12.9163 7.09961 11.6105 7.09961 9.99967C7.09961 8.38884 8.40542 7.08301 10.0163 7.08301C11.6271 7.08301 12.9329 8.38884 12.9329 9.99967Z",stroke:"currentColor",strokeWidth:"1.25"})),H={General:{icon:e.createElement(F,null),path:"/settings/general",label:"General"},User_Settings:{icon:e.createElement(F,null),path:"/settings/general",label:"General Settings"},User:{icon:e.createElement(c,null),path:"/settings/users",label:"Users"},Role:{icon:e.createElement(o,null),path:"/settings/roles",label:"Roles"},Subscription:{icon:e.createElement(i,null),path:"/settings/subscription",label:"Subscription"},Documents:{icon:e.createElement(m,null),path:"/settings/documents",label:"Documents"},Integration:{icon:e.createElement(p,null),path:"/settings/integration",label:"Integration"},"AI Agents":{icon:e.createElement(g,null),path:"/settings/ai-agents",label:"AI Agents"}
1,Notification:{icon:e.createElement(r,null),path:"/settings/notification",label:"Notification"},Notifications:{icon:e.createElement(r,null),path:"/settings/notification",label:"Notifications"},Connections:{icon:e.createElement(u,null),path:"/settings/connections",label:"Connections"}},P=({className:s,...r})=>{const c=a(),o=n(),{settingsTabs:i,isLoading:m,error:p}=(()=>{const[e,a]=t.useState([]),[n,l]=t.useState(!1),[s,r]=t.useState(null),c=async()=>{l(!0),r(null);try{const e=(await d.getTabs()).data.tabs.find(e=>"setting"===e.moduleName.toLowerCase());return a(e?[e]:[]),e}catch(e){throw r(e.errorMessage),b.error(e.errorMessage),e}finally{l(!1)}};return t.useEffect(()=>{c()},[]),{settingsTabs:e,isLoading:n,error:s,refetch:c}})(),{userInfo:g,isLoading:u,imageKey:v}=N(),P=f(),R=E(P.breakpoints.down("md")),Z=e=>o.pathname===e||o.pathname.startsWith(e+"/"),B=i[0]?.components||[],J=B.filter(e=>"User_Setting"===e.componentName||"Notifications"===e.componentName||"Integration"===e.componentName),K=B.filter(e=>"User_Setting"!==e.componentName&&"Notifications"!==e.componentName&&"Integration"!==e.componentName),O=()=>{const e=[...J,...K].find(e=>{const t=H[e.componentName];return t&&Z(t.path)});return e?.componentName||""},q=e=>{const t=e.target.value,a=H[t];a&&c(a.path)};return m?e.createElement("div",{className:`${L} ${s}`,...r},e.createElement("div",{className:G},"Loading settings...")):p?e.createElement("div",{className:`${L} ${s}`,...r},e.createElement("div",{className:z},"Failed to load settings")):R?e.createElement("div",{className:`${L} ${x} ${s}`,...r},e.createElement(_,{fullWidth:!0,size:"small"},e.createElement(h,{value:O(),onChange:q,displayEmpty:!0,className:$},e.createElement(C,{value:"",disabled:!0},"Select a section..."),J.length>0&&e.createElement(C,{disabled:!0,className:w},"Account"),J.map((t,a)=>{const n=H[t.componentName]||{icon:e.createElement(F,null),path:`/Settings/${t.componentName}`,label:t.componentName},l="User_Setting"===t.componentName&&g?.username?g.username:n.label;return e.createElement(C,{key:`account-${a}`,value:t.componentName},e.createElement("div",{className:y},e.createElement("span",{className:S},"User_Setting"===t.componentName&&g?.profileImageUrl?e.createElement("img",{src:g?.profileImageUrl?`${g.profileImageUrl}?t=${v}`:"/user-thumbnail.png",onError:e=>{e.currentTarget.src="/user-thumbnail.png"},alt:"Profile",className:W}):n.icon),l))}),K.length>0&&e.createElement(C,{disabled:!0,className:w},"Company Settings"),K.map((t,a)=>{const n=H[t.componentName]||{icon:e.createElement(F,null),path:`/Settings/${t.componentName}`,label:t.componentName};return e.createElement(C,{key:`company-${a}`,value:t.componentName},e.createElement("div",{className:y},e.createElement("span",{className:S},n.icon),n.label))})))):e.createElement("div",{className:`${L} ${s}`,...r},e.createElement("div",{className:U},e.createElement("div",{className:I},e.createElement("div",{className:k},"Account"),e.createElement("div",{className:j},J.map((t,a)=>{const n=H[t.componentName]||{icon:e.createElement(F,null),path:`/Settings/${t.componentName}`,label:t.componentName},s="User_Setting"===t.componentName&&g?.username?g.username:n.label;return e.createElement(l,{key:a,to:n.path,className:`${A} ${Z(n.path)?M:""}`},e.createElement("span",{className:D},"User_Setting"===t.componentName&&g?.profileImageUrl?e.createElement("img",{src:g?.profileImageUrl?`${g.profileImageUrl}?t=${v}`:"/user-thumbnail.png",onError:e=>{e.currentTarget.src="/user-thumbnail.png"},alt:"Profile",className:W}):n.icon),e.createElement("div",{className:T},u&&"User_Setting"===t.componentName?e.createElement("div",{className:G},"Loading..."):s))}))),e.createElement("div",{className:I},e.createElement("div",{className:k},"Company settings"),e.createElement("div",{className:j},K.map((t,a)=>{const n=H[t.componentName]||{icon:e.createElement(F,null),path:`/Settings/${t.componentName}`,label:t.componentName};return e.createElement(l,{key:a,to:n.path,className:`${A} ${Z(n.path)?M:""}`},e.createElement("span",{className:D},n.icon),e.createElement("div",{className:T},n.label))})))))},R=({className:t=""})=>e.createElement("div",{className:`bg-basic-colors-white rounded-xl border-solid border-grey-colors-grey-200 border flex flex-col md:flex-row gap-8 items-start justify-start relative overflow-hidden ${t}`},e.createElement("div",{className:"w-full pt-6 flex flex-col gap-6 items-start justify-start flex-1 relative"},e.createElement(v,null),e.createElement("div",{className:"w-full border-solid border-grey-colors-grey-200 border-t flex flex-col md:flex-row gap-0 items-start justify-start relative"},e.createElement(P,null),e.createElement("div",{className:"flex-1 w-full p-5"},e.createElement(s,null)))));export{R as default};

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.