const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ui-CI37mw-K.js","assets/vendor-CoimUlS3.js","assets/utils-CXPYudwi.js"])))=>i.map(i=>d[i]);
import{_ as wt}from"./app-W9XHfen4.js";import{_ as Oe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{Z as xt,L as le,t as j,D as ue,M as bt,j as K,k as ae,C as Xe,l as Ze,z as Ft,H as Ot,_ as Ct,d as Et,x as Lt,U as At,y as kt}from"./vendor-CoimUlS3.js";/* empty css                                                                 */import{LogOut as Dt}from"./ui-CI37mw-K.js";const Bt={name:"LucideIcon",props:{name:{type:String,required:!0},class:{type:String,default:""}},computed:{iconComponent(){const t=this.name.charAt(0).toUpperCase()+this.name.slice(1);try{return xt(()=>wt(()=>import("./ui-CI37mw-K.js"),__vite__mapDeps([0,1,2])).then(e=>e[t]?e[t]:e.HelpCircle||e.HelpCircle).catch(()=>({template:'<div class="w-5 h-5 bg-gray-300 rounded"></div>'})))}catch(e){return console.warn(`Failed to load icon: ${t}`,e),{template:'<div class="w-5 h-5 bg-gray-300 rounded"></div>'}}},iconClass(){return this.class||"w-5 h-5"}}};function $t(t,e,r,i,n,o){return j(),le(bt(o.iconComponent),{class:ue(o.iconClass)},null,8,["class"])}const Pt=Oe(Bt,[["render",$t]]),St={name:"CountryFlag",props:{code:{type:String,required:!0},iconClass:{type:String,default:"w-6 h-4"},size:{type:Number,default:24}},computed:{flagSvg(){return this.getFlagSvg(this.code)}},methods:{getFlagSvg(t){const e=t&&typeof t=="string"?t.toLowerCase().replace(/-/g,"_"):"";return{en:`
          <rect width="24" height="16" fill="#B22234"/>
          <rect y="1.23" width="24" height="1.23" fill="#FFFFFF"/>
          <rect y="3.69" width="24" height="1.23" fill="#FFFFFF"/>
          <rect y="6.15" width="24" height="1.23" fill="#FFFFFF"/>
          <rect y="8.62" width="24" height="1.23" fill="#FFFFFF"/>
          <rect y="11.08" width="24" height="1.23" fill="#FFFFFF"/>
          <rect y="13.54" width="24" height="1.23" fill="#FFFFFF"/>
          <rect width="9.6" height="8.62" fill="#3C3B6E"/>
          <g fill="#FFFFFF">
            <circle cx="1.6" cy="1.6" r="0.4"/>
            <circle cx="3.2" cy="1.6" r="0.4"/>
            <circle cx="4.8" cy="1.6" r="0.4"/>
            <circle cx="6.4" cy="1.6" r="0.4"/>
            <circle cx="8" cy="1.6" r="0.4"/>
            <circle cx="2.4" cy="2.4" r="0.4"/>
            <circle cx="4" cy="2.4" r="0.4"/>
            <circle cx="5.6" cy="2.4" r="0.4"/>
            <circle cx="7.2" cy="2.4" r="0.4"/>
            <circle cx="1.6" cy="3.2" r="0.4"/>
            <circle cx="3.2" cy="3.2" r="0.4"/>
            <circle cx="4.8" cy="3.2" r="0.4"/>
            <circle cx="6.4" cy="3.2" r="0.4"/>
            <circle cx="8" cy="3.2" r="0.4"/>
            <circle cx="2.4" cy="4" r="0.4"/>
            <circle cx="4" cy="4" r="0.4"/>
            <circle cx="5.6" cy="4" r="0.4"/>
            <circle cx="7.2" cy="4" r="0.4"/>
            <circle cx="1.6" cy="4.8" r="0.4"/>
            <circle cx="3.2" cy="4.8" r="0.4"/>
            <circle cx="4.8" cy="4.8" r="0.4"/>
            <circle cx="6.4" cy="4.8" r="0.4"/>
            <circle cx="8" cy="4.8" r="0.4"/>
            <circle cx="2.4" cy="5.6" r="0.4"/>
            <circle cx="4" cy="5.6" r="0.4"/>
            <circle cx="5.6" cy="5.6" r="0.4"/>
            <circle cx="7.2" cy="5.6" r="0.4"/>
            <circle cx="1.6" cy="6.4" r="0.4"/>
            <circle cx="3.2" cy="6.4" r="0.4"/>
            <circle cx="4.8" cy="6.4" r="0.4"/>
            <circle cx="6.4" cy="6.4" r="0.4"/>
            <circle cx="8" cy="6.4" r="0.4"/>
            <circle cx="2.4" cy="7.2" r="0.4"/>
            <circle cx="4" cy="7.2" r="0.4"/>
            <circle cx="5.6" cy="7.2" r="0.4"/>
            <circle cx="7.2" cy="7.2" r="0.4"/>
            <circle cx="1.6" cy="8" r="0.4"/>
            <circle cx="3.2" cy="8" r="0.4"/>
            <circle cx="4.8" cy="8" r="0.4"/>
            <circle cx="6.4" cy="8" r="0.4"/>
            <circle cx="8" cy="8" r="0.4"/>
          </g>
        `,de:`
          <rect width="24" height="5.33" fill="#000000"/>
          <rect y="5.33" width="24" height="5.33" fill="#DD0000"/>
          <rect y="10.67" width="24" height="5.33" fill="#FFCE00"/>
        `,fr:`
          <rect width="8" height="16" fill="#002395"/>
          <rect x="8" width="8" height="16" fill="#FFFFFF"/>
          <rect x="16" width="8" height="16" fill="#ED2939"/>
        `,es:`
          <rect width="24" height="4" fill="#C60B1E"/>
          <rect y="4" width="24" height="8" fill="#FFC400"/>
          <rect y="12" width="24" height="4" fill="#C60B1E"/>
          <rect x="2" y="6" width="4" height="4" fill="#C60B1E"/>
          <rect x="2.5" y="6.5" width="3" height="3" fill="#FFC400"/>
        `,it:`
          <rect width="8" height="16" fill="#009246"/>
          <rect x="8" width="8" height="16" fill="#FFFFFF"/>
          <rect x="16" width="8" height="16" fill="#CE2B37"/>
        `,id:`
          <rect width="24" height="8" fill="#CE1126"/>
          <rect y="8" width="24" height="8" fill="#FFFFFF"/>
        `,nl:`
          <rect width="24" height="5.33" fill="#AE1C28"/>
          <rect y="5.33" width="24" height="5.33" fill="#FFFFFF"/>
          <rect y="10.67" width="24" height="5.33" fill="#21468B"/>
        `,cn:`
          <rect width="24" height="16" fill="#DE2910"/>
          <g fill="#FFDE00">
            <polygon points="4,3 5.5,7 9.5,7 6.5,9.5 8,13.5 4,11 0,13.5 1.5,9.5 -1.5,7 2.5,7"/>
            <circle cx="6" cy="2" r="0.5"/>
            <circle cx="8" cy="3" r="0.3"/>
            <circle cx="9" cy="5" r="0.3"/>
            <circle cx="8" cy="7" r="0.3"/>
            <circle cx="6" cy="8" r="0.3"/>
            <circle cx="4" cy="7" r="0.3"/>
            <circle cx="3" cy="5" r="0.3"/>
            <circle cx="4" cy="3" r="0.3"/>
          </g>
        `,bd:`
          <rect width="24" height="16" fill="#006A4E"/>
          <circle cx="9" cy="8" r="4" fill="#F42A41"/>
        `,sa:`
          <rect width="24" height="16" fill="#006C35"/>
          <g fill="#FFFFFF">
            <path d="M2,8 L22,8 L22,9 L2,9 Z"/>
            <path d="M2,7 L22,7 L22,8 L2,8 Z"/>
            <path d="M2,9 L22,9 L22,10 L2,10 Z"/>
            <path d="M2,10 L22,10 L22,11 L2,11 Z"/>
          </g>
          <g fill="#FFFFFF">
            <path d="M8,4 L9,4 L9,12 L8,12 Z"/>
            <path d="M7,5 L8,5 L8,11 L7,11 Z"/>
            <path d="M9,5 L10,5 L10,11 L9,11 Z"/>
            <path d="M6,6 L7,6 L7,10 L6,10 Z"/>
            <path d="M10,6 L11,6 L11,10 L10,10 Z"/>
          </g>
        `,tr:`
          <rect width="24" height="16" fill="#E30A17"/>
          <g fill="#FFFFFF">
            <circle cx="8" cy="8" r="3"/>
            <circle cx="8" cy="8" r="2" fill="#E30A17"/>
            <polygon points="8,6 9,7 8,8 7,7"/>
          </g>
        `,se:`
          <rect width="24" height="16" fill="#006AA7"/>
          <rect x="7" width="2" height="16" fill="#FECC00"/>
          <rect y="7" width="24" height="2" fill="#FECC00"/>
        `,pt:`
          <rect width="12" height="16" fill="#046A38"/>
          <rect x="12" width="12" height="16" fill="#DA020E"/>
          <g fill="#FFD100">
            <circle cx="6" cy="8" r="2"/>
            <rect x="5" y="7" width="2" height="2"/>
          </g>
        `,pt_br:`
          <rect width="24" height="16" fill="#009C3B"/>
          <polygon points="12,0 24,8 12,16 0,8" fill="#FEDD00"/>
          <circle cx="12" cy="8" r="3.2" fill="#002776"/>
        `,he:`
          <rect width="24" height="16" fill="#FFFFFF"/>
          <rect y="7" width="24" height="2" fill="#0038B8"/>
          <rect y="7" width="24" height="2" fill="#0038B8"/>
          <g fill="#0038B8">
            <polygon points="12,4 10,8 14,8"/>
            <polygon points="12,12 10,8 14,8"/>
          </g>
        `,lt:`
          <rect width="24" height="5.33" fill="#FDB913"/>
          <rect y="5.33" width="24" height="5.33" fill="#006A44"/>
          <rect y="10.67" width="24" height="5.33" fill="#C1272D"/>
        `,pl:`
          <rect width="24" height="8" fill="#FFFFFF"/>
          <rect y="8" width="24" height="8" fill="#DC143C"/>
        `,ur:`
          <rect width="24" height="16" fill="#01411C"/>
          <rect width="8" height="16" fill="#FFFFFF"/>
          <g fill="#FFFFFF">
            <circle cx="4" cy="8" r="2"/>
            <polygon points="4,6 5,7 4,8 3,7"/>
          </g>
        `}[e]||null}}},_t=["width","height"],Mt=["innerHTML"],Tt={key:1};function Rt(t,e,r,i,n,o){return j(),K("svg",{class:ue(r.iconClass),viewBox:"0 0 24 16",xmlns:"http://www.w3.org/2000/svg",width:r.size,height:r.size*.67},[o.flagSvg?(j(),K("g",{key:0,innerHTML:o.flagSvg},null,8,Mt)):(j(),K("g",Tt,[...e[0]||(e[0]=[ae("rect",{width:"24",height:"16",fill:"#e5e7eb",stroke:"#9ca3af","stroke-width":"0.5"},null,-1),ae("text",{x:"12",y:"10","text-anchor":"middle","font-size":"8",fill:"#6b7280"},"?",-1)])]))],10,_t)}const jt=Oe(St,[["render",Rt]]),It={components:{LucideIcon:Pt,CountryFlag:jt},props:{name:{type:String,required:!0},iconClass:{type:String,default:""}},computed:{flagCode(){return!this.name||typeof this.name!="string"?"":this.name.toLowerCase().replace(/-/g,"_")},isFlagIcon(){return["en","de","fr","es","it","nl","cn","bd","sa","tr","se","pt","pt_br","he","lt","pl","ur","id"].includes(this.flagCode)},mappedIconName(){return this.mapLegacyIcon(this.name)}},methods:{mapLegacyIcon(t){const e={apple:"Apple",book:"Book","cheveron-down":"ChevronDown","cheveron-right":"ChevronRight",location:"MapPin",office:"Building","shopping-cart":"ShoppingCart","store-front":"Store",trash:"Trash2",service:"LifeBuoy",category:"Tag",status:"CheckCircle",ticket:"Ticket",contact:"Users",blog:"Newspaper",faq:"HelpCircle",chat:"MessageSquare",knowledge:"BookOpen",home:"Home",clock:"Clock",settings:"Settings",dashboard:"LayoutDashboard",edit:"Edit",up:"ArrowUp",down:"ArrowDown",tick:"Check",cross:"X",close:"X",file:"FileText",users:"Users",all_users:"Users",types:"List",notes:"Notebook",plus:"Plus",dash:"Minus",check:"Check",post:"FileText",no_image:"ImageOff",to_up:"ArrowUpToLine","angle-up":"ChevronUp",gear:"Settings",phone:"Phone",email:"Mail",user:"User",security:"Shield",airplay:"Airplay",compass:"Compass",aperture:"Aperture",camera:"Camera",palette:"Palette",login:"LogIn",page:"File",send:"Send",send_plan:"Send",user_role:"UserCog",global_setting:"Globe",image:"Image",notification:"Bell",en:"Flag",de:"Flag",fr:"Flag",es:"Flag",it:"Flag",nl:"Flag",bd:"Flag",pl:"Flag",pt:"Flag",pt_br:"Flag",sa:"Flag",se:"Flag",tr:"Flag",ur:"Flag",lt:"Flag",archive:"Archive","form-builder":"FormInput",email_template:"MailOpen",pending_users:"UserMinus"},r=t.toLowerCase().replace(/-/g,"_");return e[t]||e[r]||t.charAt(0).toUpperCase()+t.slice(1)}}};function Ht(t,e,r,i,n,o){const c=Xe("CountryFlag"),a=Xe("LucideIcon");return o.isFlagIcon?(j(),le(c,{key:0,code:o.flagCode,iconClass:r.iconClass},null,8,["code","iconClass"])):(j(),le(a,{key:1,name:o.mappedIconName,class:ue(r.iconClass)},null,8,["name","class"]))}const ri=Oe(It,[["render",Ht]]);var D="top",_="bottom",M="right",B="left",$e="auto",de=[D,_,M,B],Q="start",fe="end",Wt="clippingParents",nt="viewport",oe="popper",Nt="reference",Ye=de.reduce(function(t,e){return t.concat([e+"-"+Q,e+"-"+fe])},[]),ot=[].concat(de,[$e]).reduce(function(t,e){return t.concat([e,e+"-"+Q,e+"-"+fe])},[]),Vt="beforeRead",Ut="read",qt="afterRead",zt="beforeMain",Xt="main",Zt="afterMain",Yt="beforeWrite",Gt="write",Jt="afterWrite",Kt=[Vt,Ut,qt,zt,Xt,Zt,Yt,Gt,Jt];function H(t){return t?(t.nodeName||"").toLowerCase():null}function P(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function G(t){var e=P(t).Element;return t instanceof e||t instanceof Element}function S(t){var e=P(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Pe(t){if(typeof ShadowRoot>"u")return!1;var e=P(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Qt(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var i=e.styles[r]||{},n=e.attributes[r]||{},o=e.elements[r];!S(o)||!H(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(c){var a=n[c];a===!1?o.removeAttribute(c):o.setAttribute(c,a===!0?"":a)}))})}function er(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(i){var n=e.elements[i],o=e.attributes[i]||{},c=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:r[i]),a=c.reduce(function(s,f){return s[f]="",s},{});!S(n)||!H(n)||(Object.assign(n.style,a),Object.keys(o).forEach(function(s){n.removeAttribute(s)}))})}}const tr={name:"applyStyles",enabled:!0,phase:"write",fn:Qt,effect:er,requires:["computeStyles"]};function I(t){return t.split("-")[0]}var Y=Math.max,Fe=Math.min,ee=Math.round;function De(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function at(){return!/^((?!chrome|android).)*safari/i.test(De())}function te(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var i=t.getBoundingClientRect(),n=1,o=1;e&&S(t)&&(n=t.offsetWidth>0&&ee(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&ee(i.height)/t.offsetHeight||1);var c=G(t)?P(t):window,a=c.visualViewport,s=!at()&&r,f=(i.left+(s&&a?a.offsetLeft:0))/n,l=(i.top+(s&&a?a.offsetTop:0))/o,v=i.width/n,y=i.height/o;return{width:v,height:y,top:l,right:f+v,bottom:l+y,left:f,x:f,y:l}}function Se(t){var e=te(t),r=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:i}}function st(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Pe(r)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function W(t){return P(t).getComputedStyle(t)}function rr(t){return["table","td","th"].indexOf(H(t))>=0}function V(t){return((G(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ce(t){return H(t)==="html"?t:t.assignedSlot||t.parentNode||(Pe(t)?t.host:null)||V(t)}function Ge(t){return!S(t)||W(t).position==="fixed"?null:t.offsetParent}function ir(t){var e=/firefox/i.test(De()),r=/Trident/i.test(De());if(r&&S(t)){var i=W(t);if(i.position==="fixed")return null}var n=Ce(t);for(Pe(n)&&(n=n.host);S(n)&&["html","body"].indexOf(H(n))<0;){var o=W(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function he(t){for(var e=P(t),r=Ge(t);r&&rr(r)&&W(r).position==="static";)r=Ge(r);return r&&(H(r)==="html"||H(r)==="body"&&W(r).position==="static")?e:r||ir(t)||e}function _e(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function se(t,e,r){return Y(t,Fe(e,r))}function nr(t,e,r){var i=se(t,e,r);return i>r?r:i}function ct(){return{top:0,right:0,bottom:0,left:0}}function lt(t){return Object.assign({},ct(),t)}function ft(t,e){return e.reduce(function(r,i){return r[i]=t,r},{})}var or=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,lt(typeof e!="number"?e:ft(e,de))};function ar(t){var e,r=t.state,i=t.name,n=t.options,o=r.elements.arrow,c=r.modifiersData.popperOffsets,a=I(r.placement),s=_e(a),f=[B,M].indexOf(a)>=0,l=f?"height":"width";if(!(!o||!c)){var v=or(n.padding,r),y=Se(o),p=s==="y"?D:B,x=s==="y"?_:M,h=r.rects.reference[l]+r.rects.reference[s]-c[s]-r.rects.popper[l],d=c[s]-r.rects.reference[s],w=he(o),F=w?s==="y"?w.clientHeight||0:w.clientWidth||0:0,O=h/2-d/2,u=v[p],g=F-y[l]-v[x],m=F/2-y[l]/2+O,b=se(u,m,g),L=s;r.modifiersData[i]=(e={},e[L]=b,e.centerOffset=b-m,e)}}function sr(t){var e=t.state,r=t.options,i=r.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||st(e.elements.popper,n)&&(e.elements.arrow=n))}const cr={name:"arrow",enabled:!0,phase:"main",fn:ar,effect:sr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function re(t){return t.split("-")[1]}var lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fr(t,e){var r=t.x,i=t.y,n=e.devicePixelRatio||1;return{x:ee(r*n)/n||0,y:ee(i*n)/n||0}}function Je(t){var e,r=t.popper,i=t.popperRect,n=t.placement,o=t.variation,c=t.offsets,a=t.position,s=t.gpuAcceleration,f=t.adaptive,l=t.roundOffsets,v=t.isFixed,y=c.x,p=y===void 0?0:y,x=c.y,h=x===void 0?0:x,d=typeof l=="function"?l({x:p,y:h}):{x:p,y:h};p=d.x,h=d.y;var w=c.hasOwnProperty("x"),F=c.hasOwnProperty("y"),O=B,u=D,g=window;if(f){var m=he(r),b="clientHeight",L="clientWidth";if(m===P(r)&&(m=V(r),W(m).position!=="static"&&a==="absolute"&&(b="scrollHeight",L="scrollWidth")),m=m,n===D||(n===B||n===M)&&o===fe){u=_;var E=v&&m===g&&g.visualViewport?g.visualViewport.height:m[b];h-=E-i.height,h*=s?1:-1}if(n===B||(n===D||n===_)&&o===fe){O=M;var C=v&&m===g&&g.visualViewport?g.visualViewport.width:m[L];p-=C-i.width,p*=s?1:-1}}var A=Object.assign({position:a},f&&lr),T=l===!0?fr({x:p,y:h},P(r)):{x:p,y:h};if(p=T.x,h=T.y,s){var k;return Object.assign({},A,(k={},k[u]=F?"0":"",k[O]=w?"0":"",k.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",k))}return Object.assign({},A,(e={},e[u]=F?h+"px":"",e[O]=w?p+"px":"",e.transform="",e))}function pr(t){var e=t.state,r=t.options,i=r.gpuAcceleration,n=i===void 0?!0:i,o=r.adaptive,c=o===void 0?!0:o,a=r.roundOffsets,s=a===void 0?!0:a,f={placement:I(e.placement),variation:re(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Je(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Je(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ur={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pr,data:{}};var xe={passive:!0};function dr(t){var e=t.state,r=t.instance,i=t.options,n=i.scroll,o=n===void 0?!0:n,c=i.resize,a=c===void 0?!0:c,s=P(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&f.forEach(function(l){l.addEventListener("scroll",r.update,xe)}),a&&s.addEventListener("resize",r.update,xe),function(){o&&f.forEach(function(l){l.removeEventListener("scroll",r.update,xe)}),a&&s.removeEventListener("resize",r.update,xe)}}const hr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dr,data:{}};var vr={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,function(e){return vr[e]})}var gr={start:"end",end:"start"};function Ke(t){return t.replace(/start|end/g,function(e){return gr[e]})}function Me(t){var e=P(t),r=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Te(t){return te(V(t)).left+Me(t).scrollLeft}function mr(t,e){var r=P(t),i=V(t),n=r.visualViewport,o=i.clientWidth,c=i.clientHeight,a=0,s=0;if(n){o=n.width,c=n.height;var f=at();(f||!f&&e==="fixed")&&(a=n.offsetLeft,s=n.offsetTop)}return{width:o,height:c,x:a+Te(t),y:s}}function yr(t){var e,r=V(t),i=Me(t),n=(e=t.ownerDocument)==null?void 0:e.body,o=Y(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=Y(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Te(t),s=-i.scrollTop;return W(n||r).direction==="rtl"&&(a+=Y(r.clientWidth,n?n.clientWidth:0)-o),{width:o,height:c,x:a,y:s}}function Re(t){var e=W(t),r=e.overflow,i=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+i)}function pt(t){return["html","body","#document"].indexOf(H(t))>=0?t.ownerDocument.body:S(t)&&Re(t)?t:pt(Ce(t))}function ce(t,e){var r;e===void 0&&(e=[]);var i=pt(t),n=i===((r=t.ownerDocument)==null?void 0:r.body),o=P(i),c=n?[o].concat(o.visualViewport||[],Re(i)?i:[]):i,a=e.concat(c);return n?a:a.concat(ce(Ce(c)))}function Be(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function wr(t,e){var r=te(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Qe(t,e,r){return e===nt?Be(mr(t,r)):G(e)?wr(e,r):Be(yr(V(t)))}function xr(t){var e=ce(Ce(t)),r=["absolute","fixed"].indexOf(W(t).position)>=0,i=r&&S(t)?he(t):t;return G(i)?e.filter(function(n){return G(n)&&st(n,i)&&H(n)!=="body"}):[]}function br(t,e,r,i){var n=e==="clippingParents"?xr(t):[].concat(e),o=[].concat(n,[r]),c=o[0],a=o.reduce(function(s,f){var l=Qe(t,f,i);return s.top=Y(l.top,s.top),s.right=Fe(l.right,s.right),s.bottom=Fe(l.bottom,s.bottom),s.left=Y(l.left,s.left),s},Qe(t,c,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ut(t){var e=t.reference,r=t.element,i=t.placement,n=i?I(i):null,o=i?re(i):null,c=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,s;switch(n){case D:s={x:c,y:e.y-r.height};break;case _:s={x:c,y:e.y+e.height};break;case M:s={x:e.x+e.width,y:a};break;case B:s={x:e.x-r.width,y:a};break;default:s={x:e.x,y:e.y}}var f=n?_e(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(o){case Q:s[f]=s[f]-(e[l]/2-r[l]/2);break;case fe:s[f]=s[f]+(e[l]/2-r[l]/2);break}}return s}function pe(t,e){e===void 0&&(e={});var r=e,i=r.placement,n=i===void 0?t.placement:i,o=r.strategy,c=o===void 0?t.strategy:o,a=r.boundary,s=a===void 0?Wt:a,f=r.rootBoundary,l=f===void 0?nt:f,v=r.elementContext,y=v===void 0?oe:v,p=r.altBoundary,x=p===void 0?!1:p,h=r.padding,d=h===void 0?0:h,w=lt(typeof d!="number"?d:ft(d,de)),F=y===oe?Nt:oe,O=t.rects.popper,u=t.elements[x?F:y],g=br(G(u)?u:u.contextElement||V(t.elements.popper),s,l,c),m=te(t.elements.reference),b=ut({reference:m,element:O,placement:n}),L=Be(Object.assign({},O,b)),E=y===oe?L:m,C={top:g.top-E.top+w.top,bottom:E.bottom-g.bottom+w.bottom,left:g.left-E.left+w.left,right:E.right-g.right+w.right},A=t.modifiersData.offset;if(y===oe&&A){var T=A[n];Object.keys(C).forEach(function(k){var U=[M,_].indexOf(k)>=0?1:-1,q=[D,_].indexOf(k)>=0?"y":"x";C[k]+=T[q]*U})}return C}function Fr(t,e){e===void 0&&(e={});var r=e,i=r.placement,n=r.boundary,o=r.rootBoundary,c=r.padding,a=r.flipVariations,s=r.allowedAutoPlacements,f=s===void 0?ot:s,l=re(i),v=l?a?Ye:Ye.filter(function(x){return re(x)===l}):de,y=v.filter(function(x){return f.indexOf(x)>=0});y.length===0&&(y=v);var p=y.reduce(function(x,h){return x[h]=pe(t,{placement:h,boundary:n,rootBoundary:o,padding:c})[I(h)],x},{});return Object.keys(p).sort(function(x,h){return p[x]-p[h]})}function Or(t){if(I(t)===$e)return[];var e=be(t);return[Ke(t),e,Ke(e)]}function Cr(t){var e=t.state,r=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var n=r.mainAxis,o=n===void 0?!0:n,c=r.altAxis,a=c===void 0?!0:c,s=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,y=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,h=r.allowedAutoPlacements,d=e.options.placement,w=I(d),F=w===d,O=s||(F||!x?[be(d)]:Or(d)),u=[d].concat(O).reduce(function(J,N){return J.concat(I(N)===$e?Fr(e,{placement:N,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:h}):N)},[]),g=e.rects.reference,m=e.rects.popper,b=new Map,L=!0,E=u[0],C=0;C<u.length;C++){var A=u[C],T=I(A),k=re(A)===Q,U=[D,_].indexOf(T)>=0,q=U?"width":"height",$=pe(e,{placement:A,boundary:l,rootBoundary:v,altBoundary:y,padding:f}),R=U?k?M:B:k?_:D;g[q]>m[q]&&(R=be(R));var ve=be(R),z=[];if(o&&z.push($[T]<=0),a&&z.push($[R]<=0,$[ve]<=0),z.every(function(J){return J})){E=A,L=!1;break}b.set(A,z)}if(L)for(var ge=x?3:1,Ee=function(N){var ne=u.find(function(ye){var X=b.get(ye);if(X)return X.slice(0,N).every(function(Le){return Le})});if(ne)return E=ne,"break"},ie=ge;ie>0;ie--){var me=Ee(ie);if(me==="break")break}e.placement!==E&&(e.modifiersData[i]._skip=!0,e.placement=E,e.reset=!0)}}const Er={name:"flip",enabled:!0,phase:"main",fn:Cr,requiresIfExists:["offset"],data:{_skip:!1}};function et(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function tt(t){return[D,M,_,B].some(function(e){return t[e]>=0})}function Lr(t){var e=t.state,r=t.name,i=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,c=pe(e,{elementContext:"reference"}),a=pe(e,{altBoundary:!0}),s=et(c,i),f=et(a,n,o),l=tt(s),v=tt(f);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Ar={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lr};function kr(t,e,r){var i=I(t),n=[B,D].indexOf(i)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,c=o[0],a=o[1];return c=c||0,a=(a||0)*n,[B,M].indexOf(i)>=0?{x:a,y:c}:{x:c,y:a}}function Dr(t){var e=t.state,r=t.options,i=t.name,n=r.offset,o=n===void 0?[0,0]:n,c=ot.reduce(function(l,v){return l[v]=kr(v,e.rects,o),l},{}),a=c[e.placement],s=a.x,f=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=f),e.modifiersData[i]=c}const Br={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Dr};function $r(t){var e=t.state,r=t.name;e.modifiersData[r]=ut({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Pr={name:"popperOffsets",enabled:!0,phase:"read",fn:$r,data:{}};function Sr(t){return t==="x"?"y":"x"}function _r(t){var e=t.state,r=t.options,i=t.name,n=r.mainAxis,o=n===void 0?!0:n,c=r.altAxis,a=c===void 0?!1:c,s=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,y=r.tether,p=y===void 0?!0:y,x=r.tetherOffset,h=x===void 0?0:x,d=pe(e,{boundary:s,rootBoundary:f,padding:v,altBoundary:l}),w=I(e.placement),F=re(e.placement),O=!F,u=_e(w),g=Sr(u),m=e.modifiersData.popperOffsets,b=e.rects.reference,L=e.rects.popper,E=typeof h=="function"?h(Object.assign({},e.rects,{placement:e.placement})):h,C=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(m){if(o){var k,U=u==="y"?D:B,q=u==="y"?_:M,$=u==="y"?"height":"width",R=m[u],ve=R+d[U],z=R-d[q],ge=p?-L[$]/2:0,Ee=F===Q?b[$]:L[$],ie=F===Q?-L[$]:-b[$],me=e.elements.arrow,J=p&&me?Se(me):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ct(),ne=N[U],ye=N[q],X=se(0,b[$],J[$]),Le=O?b[$]/2-ge-X-ne-C.mainAxis:Ee-X-ne-C.mainAxis,dt=O?-b[$]/2+ge+X+ye+C.mainAxis:ie+X+ye+C.mainAxis,Ae=e.elements.arrow&&he(e.elements.arrow),ht=Ae?u==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,je=(k=A==null?void 0:A[u])!=null?k:0,vt=R+Le-je-ht,gt=R+dt-je,Ie=se(p?Fe(ve,vt):ve,R,p?Y(z,gt):z);m[u]=Ie,T[u]=Ie-R}if(a){var He,mt=u==="x"?D:B,yt=u==="x"?_:M,Z=m[g],we=g==="y"?"height":"width",We=Z+d[mt],Ne=Z-d[yt],ke=[D,B].indexOf(w)!==-1,Ve=(He=A==null?void 0:A[g])!=null?He:0,Ue=ke?We:Z-b[we]-L[we]-Ve+C.altAxis,qe=ke?Z+b[we]+L[we]-Ve-C.altAxis:Ne,ze=p&&ke?nr(Ue,Z,qe):se(p?Ue:We,Z,p?qe:Ne);m[g]=ze,T[g]=ze-Z}e.modifiersData[i]=T}}const Mr={name:"preventOverflow",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"]};function Tr(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Rr(t){return t===P(t)||!S(t)?Me(t):Tr(t)}function jr(t){var e=t.getBoundingClientRect(),r=ee(e.width)/t.offsetWidth||1,i=ee(e.height)/t.offsetHeight||1;return r!==1||i!==1}function Ir(t,e,r){r===void 0&&(r=!1);var i=S(e),n=S(e)&&jr(e),o=V(e),c=te(t,n,r),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!r)&&((H(e)!=="body"||Re(o))&&(a=Rr(e)),S(e)?(s=te(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):o&&(s.x=Te(o))),{x:c.left+a.scrollLeft-s.x,y:c.top+a.scrollTop-s.y,width:c.width,height:c.height}}function Hr(t){var e=new Map,r=new Set,i=[];t.forEach(function(o){e.set(o.name,o)});function n(o){r.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(a){if(!r.has(a)){var s=e.get(a);s&&n(s)}}),i.push(o)}return t.forEach(function(o){r.has(o.name)||n(o)}),i}function Wr(t){var e=Hr(t);return Kt.reduce(function(r,i){return r.concat(e.filter(function(n){return n.phase===i}))},[])}function Nr(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Vr(t){var e=t.reduce(function(r,i){var n=r[i.name];return r[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,r},{});return Object.keys(e).map(function(r){return e[r]})}var rt={placement:"bottom",modifiers:[],strategy:"absolute"};function it(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Ur(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,i=r===void 0?[]:r,n=e.defaultOptions,o=n===void 0?rt:n;return function(a,s,f){f===void 0&&(f=o);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},rt,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},v=[],y=!1,p={state:l,setOptions:function(w){var F=typeof w=="function"?w(l.options):w;h(),l.options=Object.assign({},o,l.options,F),l.scrollParents={reference:G(a)?ce(a):a.contextElement?ce(a.contextElement):[],popper:ce(s)};var O=Wr(Vr([].concat(i,l.options.modifiers)));return l.orderedModifiers=O.filter(function(u){return u.enabled}),x(),p.update()},forceUpdate:function(){if(!y){var w=l.elements,F=w.reference,O=w.popper;if(it(F,O)){l.rects={reference:Ir(F,he(O),l.options.strategy==="fixed"),popper:Se(O)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(C){return l.modifiersData[C.name]=Object.assign({},C.data)});for(var u=0;u<l.orderedModifiers.length;u++){if(l.reset===!0){l.reset=!1,u=-1;continue}var g=l.orderedModifiers[u],m=g.fn,b=g.options,L=b===void 0?{}:b,E=g.name;typeof m=="function"&&(l=m({state:l,options:L,name:E,instance:p})||l)}}}},update:Nr(function(){return new Promise(function(d){p.forceUpdate(),d(l)})}),destroy:function(){h(),y=!0}};if(!it(a,s))return p;p.setOptions(f).then(function(d){!y&&f.onFirstUpdate&&f.onFirstUpdate(d)});function x(){l.orderedModifiers.forEach(function(d){var w=d.name,F=d.options,O=F===void 0?{}:F,u=d.effect;if(typeof u=="function"){var g=u({state:l,name:w,instance:p,options:O}),m=function(){};v.push(g||m)}})}function h(){v.forEach(function(d){return d()}),v=[]}return p}}var qr=[hr,Pr,ur,tr,Br,Er,Mr,cr,Ar],zr=Ur({defaultModifiers:qr});const Xr={props:{className:String,placement:{type:String,default:"bottom-end"},autoClose:{type:Boolean,default:!0}},data(){return{show:!1}},watch:{show(t){t?this.$nextTick(()=>{this.$refs.dropdown&&(this.popper=zr(this.$el,this.$refs.dropdown,{placement:this.placement,modifiers:[{name:"preventOverflow",options:{altBoundary:!0}}]}))}):this.popper&&setTimeout(()=>this.popper.destroy(),100)}},mounted(){document.addEventListener("keydown",t=>{t.key==="Escape"&&(this.show=!1)})}};function Zr(t,e,r,i,n,o){return j(),K("button",{type:"button",onClick:e[2]||(e[2]=c=>n.show=!n.show)},[Ze(t.$slots,"default",{},void 0,!0),n.show?(j(),le(Ct,{key:0,to:"#dropdown"},[ae("div",null,[ae("div",{style:{position:"fixed",top:"0",right:"0",left:"0",bottom:"0","z-index":"99998",background:"black",opacity:"0.2"},onClick:e[0]||(e[0]=c=>n.show=!1)}),ae("div",{ref:"dropdown",class:ue(["dd_container",r.className]),style:{position:"absolute","z-index":"99999"},onClick:e[1]||(e[1]=Ot(c=>n.show=!r.autoClose,["stop"]))},[Ze(t.$slots,"dropdown",{},void 0,!0)],2)])])):Ft("",!0)])}const ii=Oe(Xr,[["render",Zr],["__scopeId","data-v-c54490fa"]]),Yr=["disabled"],Gr={key:0,class:"w-4 h-4 border-2 border-slate-400 border-t-transparent rounded-full animate-spin"},ni={__name:"LogoutButton",setup(t){const e=Et(!1),r=async()=>{if(!e.value){e.value=!0;try{const i=document.createElement("form");i.method="POST",i.action=route("logout");const n=document.querySelector('meta[name="csrf-token"]');if(n){const c=document.createElement("input");c.type="hidden",c.name="_token",c.value=n.getAttribute("content"),i.appendChild(c)}const o=document.createElement("input");o.type="hidden",o.name="_method",o.value="DELETE",i.appendChild(o),document.body.appendChild(i),i.submit()}catch(i){console.error("Logout error:",i),e.value=!1,window.location.href=route("login")}}};return(i,n)=>(j(),K("button",{onClick:r,disabled:e.value,class:ue(["flex items-center gap-3 px-4 py-2 text-sm text-slate-700 dark:text-slate-300 hover:text-white hover:bg-primary-800 dark:hover:bg-slate-700 transition-colors duration-200 w-full text-left",e.value?"opacity-50 cursor-not-allowed":""])},[e.value?(j(),K("div",Gr)):(j(),le(At(Dt),{key:1,class:"w-4 h-4"})),Lt(" "+kt(e.value?i.$t("Logging out..."):i.$t("Logout")),1)],10,Yr))}};export{jt as C,ii as D,ri as I,ni as _};
