1import{_ as z}from"./App-75be8666.js";import{K as A,m,f as W,g as o,o as l,a as t,t as a,n as i,j as s,u as r,i as u,c as d,b as p,L as C}from"./app-73e3755a.js";import{S as M,M as B,U as I,T as S,B as V}from"./users-6f554f2e.js";import{c as x}from"./createLucideIcon-85af68fb.js";import"./Sidebar-34087f00.js";import"./Menu-1b625483.js";import"./Modal-1be6ef76.js";import"./transition-3ced6b7d.js";import"./hidden-44b2d02f.js";import"./use-outside-click-4e29d95e.js";import"./micro-task-89dcd6af.js";import"./UsersIcon-264cbc28.js";import"./FormInput-cdda35f5.js";import"./FormPhoneInput-df022b6d.js";import"./vue-tel-input-754a83c1.js";import"./FormSelect-30929989.js";import"./use-tracked-pointer-b312a608.js";import"./use-resolve-button-type-a489b699.js";import"./use-controllable-7f80c911.js";import"./use-text-value-63cd5c46.js";import"./tabs-77584d1f.js";import"./OrganizationModal-83a71b4b.js";import"./ImpersonationBanner-93f9fa34.js";import"./index-bbc9af99.js";import"./MobileSidebar-f8a9ab66.js";/* empty css */import"./useRtl-de8f5b94.js";import"./pusher-1d4a1f17.js";/** 2 * @license lucide-vue-next v0.454.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const P=x("PuzzleIcon",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]);/** 7 * @license lucide-vue-next v0.454.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const R=x("ShieldCheckIcon",[["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",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 12 * @license lucide-vue-next v0.454.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const U=x("UsersRoundIcon",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/** 17 * @license lucide-vue-next v0.454.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const L=x("WorkflowIcon",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),T={class:"bg-white md:bg-inherit pt-10 px-4 md:pt-8 md:py-8 md:pl-8 md:pr-0 rounded-[5px] text-[#000] overflow-y-hidden"},j={class:"flex justify-between"},N={class:"text-xl mb-1"},Z={class:"mb-6 flex items-center text-sm leading-6 text-slate-600"},E={class:"ml-1 mt-1"},G={class:"flex mt-4"},O={class:"md:w-1/5 bg-white border border-slate-200 h-[fit-content] rounded-lg pb-10 md:block hidden"},q={class:"pt-2 space-y-1 text-sm mb-2 px-2 font-normal text-slate-600"},D={class:"overflow-hidden text-ellipsis"},F={class:"md:w-4/5 bg-white md:bg-inherit md:px-8 rounded-[5px] text-[#000] h-full md:overflow-y-auto"},ye={__name:"Layout",props:["modules"],setup(w){const v=w,g=A(),c=m(()=>g.props.isReseller!==!0),b=e=>{if(!v.modules||!Array.isArray(v.modules))return!1;const n=v.modules.find(f=>f.name===e);return n&&n.status===1},h=m(()=>{var f;const e=(f=g.props.auth)==null?void 0:f.user;if(!e||!e.teams||e.teams.length===0)return!1;const n=e.teams[0];return n.organization_role&&(n.organization_role.name==="Owner"||!n.organization_role.organization_id)}),k=m(()=>g.props.permissions||[]),y=e=>h.value?!0:Array.isArray(k.value)?k.value.includes("*")||k.value.includes(e):!1,$=m(()=>h.value?!0:y("automations.view_all")),_=m(()=>g.props.branchModuleAvailable===!0);return(e,n)=>(l(),W(z,null,{default:o(()=>[t("div",T,[t("div",j,[t("div",null,[t("h2",N,a(e.$t("General settings")),1),t("p",Z,[n[0]||(n[0]=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",class:"shrink-0 text-slate-500"},[t("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18Zm.05-13v.1h-.1V8h.1Z"})],-1)),t("span",E,a(e.$t("Update your organization settings")),1)])])]),t("div",G,[t("div",O,[t("ul",q,[t("li",{class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url==="/settings"?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(M),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("span",null,a(e.$t("General settings")),1)]),_:1})],2),c.value?(l(),d("li",{key:0,class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url.startsWith("/settings/whatsapp")?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings/whatsapp",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(B),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("div",D,a(e.$t("Whatsapp settings")),1)]),_:1})],2)):p("",!0),c.value?(l(),d("li",{key:1,class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url.startsWith("/settings/contacts")?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings/contacts",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(I),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("span",null,a(e.$t("Contact fields")),1)]),_:1})],2)):p("",!0),c.value?(l(),d("li",{key:2,class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url.startsWith("/settings/tickets")?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings/tickets",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(S),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("span",null,a(e.$t("Ticket settings")),1)]),_:1})],2)):p("",!0),c.value&&(h.value||b("AI Assistant")||b("Flow builder")||$.value)?(l(),d("li",{key:3,class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url.startsWith("/settings/automation")?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings/automation",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(L),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("span",null,a(e.$t("Automation settings")),1)]),_:1})],2)):p("",!0),h.value?(l(),d("li",{key:4,class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url==="/settings/team"||e.$page.url.startsWith("/settings/team/")&&!e.$page.url.startsWith("/settings/team/roles")?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings/team",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(U),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("span",null,a(e.$t("Team")),1)]),_:1})],2)):p("",!0),c.value&&h.value&&_.value?(l(),d("li",{key:5,class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url.startsWith("/settings/branches")?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings/branches",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(V),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("span",null,a(e.$t("Branches")),1)]),_:1})],2)):p("",!0),c.value&&h.value?(l(),d("li",{key:6,class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url.startsWith("/settings/team/roles")?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings/team/roles",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(R),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("span",null,a(e.$t("Roles & Permissions")),1)]),_:1})],2)):p("",!0),c.value?(l(),d("li",{key:7,class:i(["hover:bg-slate-50 hover:text-slate-900 rounded-[5px] px-2 truncate cursor-pointer",e.$page.url.startsWith("/settings/plugins")?"bg-slate-100 text-slate-900 hover:bg-slate-100":""])},[s(r(u),{rel:"noopener noreferrer",href:"/settings/plugins",class:"flex items-center p-2 space-x-3 rounded-md"},{default:o(()=>[s(r(P),{class:"h-5 w-5 shrink-0 text-current","stroke-width":1.25,"aria-hidden":"true"}),t("span",null,a(e.$t("Plugins")),1)]),_:1})],2)):p("",!0)])]),t("div",F,[C(e.$slots,"default")])])])]),_:3}))}};export{ye 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.