"use strict";(self["webpackChunkgolden_software"]=self["webpackChunkgolden_software"]||[]).push([[912,547],{9547:function(e,t,l){l.r(t),l.d(t,{default:function(){return s}});l(7658);var r=l(3396),a=l(2268),o={__name:"NavBarItem",props:{href:{type:String,default:null},to:{type:String,default:null},type:{type:String,default:"flex"},activeColor:{type:String,default:"text-blue-600"},hasDivider:Boolean,isDesktopIconOnly:Boolean,dropdown:Boolean,active:Boolean},setup(e){const t=e,l=(0,r.Fl)((()=>t.href?"a":t.to?"router-link":"div")),o=(0,r.Fl)((()=>{const e=[t.type,"justify-end","items-center","flex-grow-0","flex-shrink-0","relative","cursor-pointer","hover:text-blue-500",t.active?t.activeColor:"text-black dark:text-white dark:hover:text-gray-400"];return"block"===t.type&&e.push("lg:flex"),t.dropdown?e.push("p-0","lg:py-2","lg:px-3"):e.push("py-2","px-3","w-40"),t.hasDivider&&e.push("lg:border-r","lg:border-gray-100","lg:dark:border-gray-800"),t.isDesktopIconOnly&&e.push("lg:w-16","lg:justify-center"),e})),n=(0,r.Fl)((()=>"router-link"===l.value?t.activeColor:null));return(t,s)=>((0,r.wg)(),(0,r.j4)((0,r.LL)(l.value),{class:(0,a.C_)(o.value),to:e.to,href:e.href,"exact-active-class":n.value},{default:(0,r.w5)((()=>[(0,r.WI)(t.$slots,"default")])),_:3},8,["class","to","href","exact-active-class"]))}};const n=o;var s=n},6912:function(e,t,l){l.r(t),l.d(t,{default:function(){return c}});var r=l(3396),a=l(2268),o=l(4870),n=l(6526),s=l(9547);const d={class:"flex items-center py-2 px-3 bg-gray-100 dark:bg-gray-800 lg:bg-transparent lg:dark:bg-transparent"};var i={__name:"NavBarMenu",props:{hasDivider:{type:Boolean,default:!1}},setup(e){const t=(0,o.iH)(!1),l=(0,r.Fl)((()=>t.value?n.Waq:n.CW)),i=()=>{t.value=!t.value},u=(0,o.iH)(null),c=e=>{u.value.$el.contains(e.target)||(t.value=!1)};return(0,r.bv)((()=>{window.addEventListener("click",c)})),(0,r.Jd)((()=>{window.removeEventListener("click",c)})),(o,n)=>{const c=(0,r.up)("base-icon");return(0,r.wg)(),(0,r.j4)(s["default"],{ref_key:"root",ref:u,type:"block","has-divider":e.hasDivider,active:t.value,dropdown:"",class:"dropdown",onClick:i},{default:(0,r.w5)((()=>[(0,r._)("a",d,[(0,r.WI)(o.$slots,"default"),(0,r.Wm)(c,{path:l.value,class:"hidden lg:inline-flex transition-colors"},null,8,["path"])]),(0,r._)("div",{class:(0,a.C_)(["text-sm border-gray-100 border-b lg:border-b-0 lg:border-gray-200 lg:border-t lg:bg-white lg:absolute lg:top-full lg:left-0 lg:min-w-full lg:z-20 lg:shadow-md lg:rounded-b lg:dark:bg-gray-800 dark:border-gray-700",{"lg:hidden":!t.value}])},[(0,r.WI)(o.$slots,"dropdown")],2)])),_:3},8,["has-divider","active"])}}};const u=i;var c=u}}]);
//# sourceMappingURL=912.8854200c.js.map