Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/whatsapp-crm/public/build/assets/
Upload File :
Current File : /home/users/unlimited/www/whatsapp-crm/public/build/assets/Menu-7a7609fd.js

import{m as L,r as x,T as S,c as i,t as a,b as m,h as W,e as n,f as r,u as c,a as e,n as l,F as C,o,l as d,d as N,g as F,j as H,K as z}from"./app-43851608.js";import{_ as A}from"./Modal-22a49fae.js";import{_ as T}from"./ProfileModal-628e5b7c.js";import{_ as $}from"./LangToggle-8d05b0dc.js";import"./FormInput-4a309017.js";const D={key:0,class:"flex items-center justify-between px-5 pt-5 h-20 mb-4"},K={key:0,class:"ml-2 text-2xl"},E=H('<svg xmlns="http://www.w3.org/2000/svg" width="2em" height="2em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path d="M5 5L12 5L19 5"><animate fill="freeze" attributeName="d" dur="0.4s" values="M5 5L12 5L19 5;M5 5L12 12L19 5"></animate></path><path d="M5 12H19"><animate fill="freeze" attributeName="d" dur="0.4s" values="M5 12H19;M12 12H12"></animate></path><path d="M5 19L12 19L19 19"><animate fill="freeze" attributeName="d" dur="0.4s" values="M5 19L12 19L19 19;M5 19L12 12L19 19"></animate></path></g></svg>',1),q=[E],G={key:1,class:"flex items-center justify-between px-5 pt-5 h-20 mb-1"},J=["src"],P=H('<svg xmlns="http://www.w3.org/2000/svg" width="2em" height="2em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path d="M5 5L12 5L19 5"><animate fill="freeze" attributeName="d" dur="0.4s" values="M5 5L12 5L19 5;M5 5L12 12L19 5"></animate></path><path d="M5 12H19"><animate fill="freeze" attributeName="d" dur="0.4s" values="M5 12H19;M12 12H12"></animate></path><path d="M5 19L12 19L19 19"><animate fill="freeze" attributeName="d" dur="0.4s" values="M5 19L12 19L19 19;M5 19L12 12L19 19"></animate></path></g></svg>',1),Q=[P],R={class:"flex-grow space-y-3 px-2 overflow-y-scroll"},U={class:"flex-1"},X={class:"pt-2 space-y-1 text-sm mb-2"},Y=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 11.452V16.8c0 1.12 0 1.68.218 2.109c.192.376.497.682.874.873c.427.218.987.218 2.105.218h9.606c1.118 0 1.677 0 2.104-.218a2 2 0 0 0 .875-.873c.218-.428.218-.987.218-2.105v-5.352c0-.534 0-.801-.065-1.05a1.998 1.998 0 0 0-.28-.617c-.145-.213-.345-.39-.748-.741l-4.8-4.2c-.746-.653-1.12-.98-1.54-1.104c-.37-.11-.764-.11-1.135 0c-.42.124-.792.45-1.538 1.102L5.093 9.044c-.402.352-.603.528-.747.74a2 2 0 0 0-.281.618C4 10.65 4 10.918 4 11.452Z"})],-1),ee={class:"flex items-center space-x-3"},te=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m5.6 19.92l1.524-1.219l.01-.008c.318-.255.479-.383.658-.474c.16-.082.331-.142.508-.178c.199-.041.406-.041.822-.041h8.681c1.118 0 1.678 0 2.105-.218a2 2 0 0 0 .874-.874C21 16.48 21 15.92 21 14.804V7.197c0-1.118 0-1.678-.218-2.105a2.001 2.001 0 0 0-.875-.874C19.48 4 18.92 4 17.8 4H6.2c-1.12 0-1.68 0-2.108.218a1.999 1.999 0 0 0-.874.874C3 5.52 3 6.08 3 7.2v11.471c0 1.066 0 1.599.218 1.872a1 1 0 0 0 .783.377c.35 0 .766-.334 1.599-1Z"})],-1),se={key:0,class:"bg-[#ffe5b4] px-2 text-[11px] rounded-md"},le=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 4h-.8c-1.12 0-1.68 0-2.108.218a1.999 1.999 0 0 0-.874.874C4 5.52 4 6.08 4 7.2v9.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874c.427.218.987.218 2.105.218H8M8 4h8.8c1.12 0 1.68 0 2.107.218c.377.192.683.497.875.874c.218.427.218.987.218 2.105v9.607c0 1.118 0 1.677-.218 2.104a2.002 2.002 0 0 1-.875.874c-.427.218-.986.218-2.104.218H8M8 4v16m4-9h4m-4-3h4"})],-1),ae=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 256 256"},[e("path",{fill:"currentColor",d:"M216 80h-32V48a16 16 0 0 0-16-16H40a16 16 0 0 0-16 16v128a8 8 0 0 0 13 6.22L72 154v30a16 16 0 0 0 16 16h93.59L219 230.22a8 8 0 0 0 5 1.78a8 8 0 0 0 8-8V96a16 16 0 0 0-16-16M66.55 137.78L40 159.25V48h128v88H71.58a8 8 0 0 0-5.03 1.78M216 207.25l-26.55-21.47a8 8 0 0 0-5-1.78H88v-32h80a16 16 0 0 0 16-16V96h32Z"})],-1),ne=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 32 32"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"2",d:"M12 15h8m-8 4h8m8 5V11c0-1.105-.892-2-1.997-2H17c-2 0-2-3-5-3H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2Z"})],-1),re=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 32 32"},[e("path",{fill:"currentColor",d:"M16 27c-3.6 0-7.1-1.8-9.2-5H12v-2H4v8h2v-3.7c2.5 3 6.1 4.7 10 4.7zm15-4v-2h-2.1c-.1-.6-.4-1.2-.7-1.8l1.5-1.5l-1.4-1.4l-1.5 1.5c-.5-.3-1.1-.6-1.8-.7V15h-2v2.1c-.6.1-1.2.4-1.8.7l-1.5-1.5l-1.4 1.4l1.5 1.5c-.3.5-.6 1.1-.7 1.8H17v2h2.1c.1.6.4 1.2.7 1.8l-1.5 1.5l1.4 1.4l1.5-1.5c.5.3 1.1.6 1.8.7V29h2v-2.1c.6-.1 1.2-.4 1.8-.7l1.5 1.5l1.4-1.4l-1.5-1.5c.3-.5.6-1.1.7-1.8zm-7 2c-1.7 0-3-1.3-3-3s1.3-3 3-3s3 1.3 3 3s-1.3 3-3 3m-4-15h5.2C21.9 4.9 15.1 3.5 10 6.8c-3.1 2-5 5.5-5 9.2H3C3 8.8 8.8 3 16 3c3.9 0 7.5 1.7 10 4.7V4h2v8h-8z"})],-1),oe=e("div",{class:"px-4"},[e("hr")],-1),ie={class:"pb-4 space-y-1 text-sm mt-2"},ce=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 20c0-1.657-2.239-3-5-3s-5 1.343-5 3m14-3c0-1.23-1.234-2.287-3-2.75M3 17c0-1.23 1.234-2.287 3-2.75m12-4.014a3 3 0 1 0-4-4.472m-8 4.472a3 3 0 0 1 4-4.472M12 14a3 3 0 1 1 0-6a3 3 0 0 1 0 6Z"})],-1),de=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 16 16"},[e("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.5 2h-1v5h1zm6.1 5H6.4L6 6.45v-1L6.4 5h3.2l.4.5v1zm-5 3H1.4L1 9.5v-1l.4-.5h3.2l.4.5v1zm3.9-8h-1v2h1zm-1 6h1v6h-1zm-4 3h-1v3h1zm7.9 0h3.19l.4-.5v-.95l-.4-.5H11.4l-.4.5v.95zm2.1-9h-1v6h1zm-1 10h1v2h-1z","clip-rule":"evenodd"})],-1),he=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 16 16"},[e("path",{fill:"currentColor","fill-rule":"evenodd",d:"M3.5 2h-1v5h1zm6.1 5H6.4L6 6.45v-1L6.4 5h3.2l.4.5v1zm-5 3H1.4L1 9.5v-1l.4-.5h3.2l.4.5v1zm3.9-8h-1v2h1zm-1 6h1v6h-1zm-4 3h-1v3h1zm7.9 0h3.19l.4-.5v-.95l-.4-.5H11.4l-.4.5v.95zm2.1-9h-1v6h1zm-1 10h1v2h-1z","clip-rule":"evenodd"})],-1),ue=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 11v4.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874c.427.218.987.218 2.105.218h11.606c1.118 0 1.677 0 2.104-.218c.377-.192.683-.498.875-.874c.218-.428.218-.986.218-2.104V11M3 11V9m0 2h18M3 9v-.8c0-1.12 0-1.68.218-2.108c.192-.377.497-.682.874-.874C4.52 5 5.08 5 6.2 5h11.6c1.12 0 1.68 0 2.107.218c.377.192.683.497.875.874c.218.427.218.987.218 2.105V9M3 9h18M7 15h4m10-4V9"})],-1),me=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor","fill-rule":"evenodd",d:"M12.26 21.997a10.276 10.276 0 0 1-.52 0a10.004 10.004 0 0 1-8.983-6.173a10.034 10.034 0 0 1 .017-7.69A10.015 10.015 0 0 1 4.908 4.95l.042-.042a10.015 10.015 0 0 1 3.167-2.126a10.034 10.034 0 0 1 7.753-.006a10.015 10.015 0 0 1 3.186 2.138l.03.03c.913.917 1.65 2.01 2.153 3.223a10.012 10.012 0 0 1 .76 3.985a10.004 10.004 0 0 1-6.226 9.112a10.013 10.013 0 0 1-3.512.733Zm1.772-6.55l2.874 2.873a8.004 8.004 0 0 1-9.812 0l2.874-2.874a4.007 4.007 0 0 0 4.064 0Zm-5.478-1.415L5.68 16.906a8.004 8.004 0 0 1 0-9.812l2.874 2.874a4.007 4.007 0 0 0 0 4.064Zm1.528-1.463a2.01 2.01 0 0 1-.014-1.087a1.99 1.99 0 0 1 .518-.896a1.99 1.99 0 0 1 1.932-.518c.328.088.639.26.896.518a1.99 1.99 0 0 1 .518 1.932c-.088.328-.26.639-.518.896a1.99 1.99 0 0 1-1.932.518a1.991 1.991 0 0 1-.896-.518a1.99 1.99 0 0 1-.504-.845Zm3.95-4.015a4.007 4.007 0 0 0-4.064 0L7.094 5.68a8.004 8.004 0 0 1 9.812 0l-2.874 2.874Zm4.288 8.352a8.004 8.004 0 0 0 0-9.812l-2.874 2.874a4.007 4.007 0 0 1 0 4.064l2.874 2.874Z","clip-rule":"evenodd"})],-1),ve={key:0,class:"hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate"},ge=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M7.312 9H5.688L3.5 15h1.607l.446-1.226h1.894L7.893 15H9.5Zm-1.394 3.774L6.5 11.18l.582 1.595ZM14.744 9h-3.5v6h1.5v-2h2a1.473 1.473 0 0 0 1.5-1.5v-1a1.473 1.473 0 0 0-1.5-1.5m0 2.5h-2v-1h2ZM18 9h1.5v6H18z"}),e("path",{fill:"currentColor",d:"M22 6v12H2V6zm0-2H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2"})],-1),pe={class:"flex space-x-1"},fe={class:"text-ellipsis w-[120px] truncate"},we=e("span",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"},[e("path",{fill:"currentColor",d:"M19.696 8.72a1.22 1.22 0 0 1-.3.64l-6.09 6.76a1.85 1.85 0 0 1-.58.46a1.7 1.7 0 0 1-1.42.03a1.75 1.75 0 0 1-.62-.42l-6.1-6.83a1.28 1.28 0 0 1-.31-.64a1.31 1.31 0 0 1 .56-1.26a1.36 1.36 0 0 1 .68-.21h13a1.293 1.293 0 0 1 1.15.76c.081.228.092.476.03.71"})])],-1),xe={key:0,class:"flex space-x-2"},be={class:"rounded-xl p-1 bg-slate-200"},ke=["src"],ye={key:1,class:"rounded-full w-9 h-9 flex justify-center items-center"},Me=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("g",{fill:"none",stroke:"currentColor","stroke-width":"1.5"},[e("circle",{cx:"12",cy:"6",r:"4"}),e("path",{"stroke-linecap":"round",d:"M19.998 18c.002-.164.002-.331.002-.5c0-2.485-3.582-4.5-8-4.5s-8 2.015-8 4.5S4 22 12 22c2.231 0 3.84-.157 5-.437"})])],-1),Le=[Me],Ce=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m12 15l3-3m0 0l-3-3m3 3H4m5-4.751V7.2c0-1.12 0-1.68.218-2.108c.192-.377.497-.682.874-.874C10.52 4 11.08 4 12.2 4h4.6c1.12 0 1.68 0 2.107.218c.377.192.683.497.875.874c.218.427.218.987.218 2.105v9.607c0 1.118 0 1.677-.218 2.104a2.002 2.002 0 0 1-.875.874c-.427.218-.986.218-2.104.218h-4.606c-1.118 0-1.678 0-2.105-.218a2 2 0 0 1-.874-.874C9 18.48 9 17.92 9 16.8v-.05"})],-1),ze={class:"mt-2 grid grid-cols-1 gap-x-6"},$e={class:"pt-3 space-y-2 text-sm"},He=["onClick"],Ve={class:"flex items-center gap-x-2"},_e=e("span",{class:"bg-slate-200 w-10 h-10 rounded-lg flex items-center justify-center"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[e("g",{fill:"none","fill-rule":"evenodd"},[e("path",{d:"M24 0v24H0V0h24ZM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018Zm.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01l-.184-.092Z"}),e("path",{fill:"currentColor",d:"M17 3.722v5.497l2.864.716A1.5 1.5 0 0 1 21 11.39V19a1 1 0 1 1 0 2H3a1 1 0 1 1 0-2v-7.69a1.5 1.5 0 0 1 .83-1.343L7 8.382V6.347a1.5 1.5 0 0 1 .973-1.405l7-2.625A1.5 1.5 0 0 1 17 3.722Zm-2 .721l-6 2.25V19h6V4.443Zm2 6.838V19h2v-7.22l-2-.5Zm-10-.663l-2 1V19h2v-8.382Z"})])])],-1),Oe=e("span",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 20 20"},[e("path",{fill:"currentColor","fill-rule":"evenodd",d:"M5 2.643v14.765c.092.32.299.511.619.572c.32.061.633-.024.94-.255l8.107-6.993A.944.944 0 0 0 15 10a.94.94 0 0 0-.334-.73L6.58 2.295c-.232-.197-.639-.383-1.061-.253c-.282.087-.455.287-.519.6"})])],-1),Be={class:"mt-4 border-t pt-4"},Fe={__name:"Menu",props:["config","user","organization","organizations","isSidebarOpen","menuIconsOnly","unreadMessages"],emits:["closeSidebar"],setup(s,{emit:V}){const v=s,b=L(()=>z().props.languages),k=L(()=>z().props.currentLanguage),p=x(!1),g=x(!1);x(!1);const f=V,y=S({uuid:null}),w=t=>{const h=v.config.find(u=>u.key===t);return h?h.value:""},M=()=>{f("closeSidebar",!0)},_=()=>{p.value=!1},O=()=>{p.value=!0,f("closeSidebar",!0)},B=()=>{g.value=!0,f("closeSidebar",!0)},Z=t=>{y.uuid=t,I()},I=async()=>{y.post("/organization",{preserveScroll:!0,onFinish:g.value=!1})};return(t,h)=>(o(),i(C,null,[w("logo")===null?(o(),i("div",D,[s.menuIconsOnly?m("",!0):(o(),i("h2",K,a(w("company_name")),1)),s.menuIconsOnly?m("",!0):(o(),W($,{key:1,class:"text-black",languages:b.value,currentLanguage:k.value},null,8,["languages","currentLanguage"])),s.isSidebarOpen===!0?(o(),i("span",{key:2,onClick:h[0]||(h[0]=u=>M())},q)):m("",!0)])):(o(),i("div",G,[n(c(d),{href:"/dashboard"},{default:r(()=>[e("img",{src:"/media/"+w("logo"),alt:"{{ getValueByKey('company_name') }}",class:"w-32 object-contain h-full ps-2"},null,8,J)]),_:1}),s.isSidebarOpen===!0?(o(),i("span",{key:0,onClick:h[1]||(h[1]=u=>M())},Q)):m("",!0),n($,{class:"text-black",languages:b.value,currentLanguage:k.value},null,8,["languages","currentLanguage"])])),e("div",R,[e("div",U,[e("ul",X,[e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/dashboard")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/dashboard",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[Y,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Dashboard")),3)]),_:1})],2),e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/chats")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/chats",class:"flex items-center justify-between p-2 space-x-3 rounded-md"},{default:r(()=>[e("div",ee,[te,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Chats")),3)]),parseInt(s.unreadMessages)>0?(o(),i("span",se,a(s.unreadMessages),1)):m("",!0)]),_:1})],2),e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/contact")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/contacts",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[le,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Contacts")),3)]),_:1})],2),e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/campaign")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/campaigns",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[ae,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Campaigns")),3)]),_:1})],2),e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/template")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/templates",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[ne,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Message templates")),3)]),_:1})],2),e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/automation")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/automation/basic",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[re,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Automation")),3)]),_:1})],2)]),oe,e("ul",ie,[e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/team")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/team",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[ce,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Team")),3)]),_:1})],2),e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/settings")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/settings",class:"md:flex items-center p-2 space-x-3 rounded-md hidden"},{default:r(()=>[de,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Settings")),3)]),_:1}),n(c(d),{rel:"noopener noreferrer",href:"/settings/m",class:"flex items-center p-2 space-x-3 rounded-md md:hidden"},{default:r(()=>[he,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Settings")),3)]),_:1})],2),e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/billing")||t.$page.url.startsWith("/subscription")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/billing",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[ue,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Billing and subscription")),3)]),_:1})],2),e("li",{class:l(["hover:bg-slate-50 hover:text-black rounded-[5px] px-2 truncate",t.$page.url.startsWith("/support")?"bg-slate-50 text-black":""])},[n(c(d),{rel:"noopener noreferrer",href:"/support",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[me,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Support")),3)]),_:1})],2),s.user.teams[0].role==="owner"?(o(),i("li",ve,[n(c(d),{rel:"noopener noreferrer",href:"/developer",class:"flex items-center p-2 space-x-3 rounded-md"},{default:r(()=>[ge,e("span",{class:l(s.menuIconsOnly?"hidden":"")},a(t.$t("Developer")),3)]),_:1})])):m("",!0)])])]),s.menuIconsOnly===!1?(o(),i("div",{key:2,onClick:h[2]||(h[2]=u=>B()),class:"border-2 border-primary text-sm rounded-[5px] mb-1 m-3 py-2 px-4 flex items-center justify-between cursor-pointer"},[e("div",pe,[e("span",null,a(t.$t("Team"))+":",1),e("span",fe,a(v.organization.name),1)]),we])):m("",!0),e("div",{class:l(["flex items-center m-3 p-2 rounded-xl h-14 py-1 md:py-1 mt-2 gap-x-4 bg-slate-50",s.menuIconsOnly?"justify-center":"justify-between"])},[s.menuIconsOnly?m("",!0):(o(),i("div",xe,[e("div",be,[s.user.avatar?(o(),i("img",{key:0,class:"rounded-full w-9 h-9",src:"/media/"+s.user.avatar},null,8,ke)):(o(),i("div",ye,Le))]),e("div",null,[e("h2",{class:l(["text-[15px] capitalize truncate w-[6em]",s.menuIconsOnly?"hidden":""])},a(s.user.first_name+" "+s.user.last_name),3),e("span",{class:l(["flex items-center space-x-1",s.menuIconsOnly?"hidden":""])},[e("span",{onClick:O,class:"text-sm hover:underline dark:text-gray-400 cursor-pointer"},a(t.$t("View profile")),1)],2)])])),n(c(d),{href:"/logout",class:"hover:bg-[#F6F7F9] hover:rounded-full w-[fit-content] p-2"},{default:r(()=>[Ce]),_:1})],2),n(A,{label:t.$t("Switch teams"),isOpen:g.value},{default:r(()=>[e("div",ze,[e("div",$e,[(o(!0),i(C,null,N(v.organizations,(u,j)=>(o(),i("div",{key:j,onClick:Ze=>Z(u.organization.uuid),class:"flex gap-x-8 hover:bg-slate-200 rounded-lg py-1 justify-between items-center w-full cursor-pointer border border-slate-100 pl-1 pr-2"},[e("div",Ve,[_e,e("div",null,[e("h3",null,a(u.organization.name),1)])]),Oe],8,He))),128))]),e("div",Be,[e("button",{type:"button",onClick:h[3]||(h[3]=F(u=>g.value=!1,["self"])),class:"inline-flex justify-center rounded-md border border-transparent bg-slate-50 px-4 py-2 text-sm text-slate-500 hover:bg-slate-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 mr-4"},a(t.$t("Cancel")),1)])])]),_:1},8,["label","isOpen"]),n(T,{user:v.user,organization:v.organization,isOpen:p.value,role:"user",onClose:h[4]||(h[4]=u=>_())},null,8,["user","organization","isOpen"])],64))}};export{Fe as default};