const __vite__fileDeps=["./rewards-system-BuUpQ-SU.js","./bootstrap-Bz3m6YT1.js","./currency-Dtag6qPd.js","./chart-D2s_fKm5.js","./runtime-core.esm-bundler-DzqFO6Tt.js","./_plugin-vue_export-helper-DlAUqK2U.js","./create-coupons-DN2Hv77u.js","./ns-settings-CY4wQLAN.js","./components-CDxq1sm2.js","./ns-alert-popup-B6pzDgFD.js","./ns-avatar-image-CIpC3xeh.js","./index.es-ua9LYOjR.js","./ns-prompt-popup-C8eAhAy7.js","./ns-prompt-popup-CVxzoclS.css","./reset-B7ujbCFD.js","./modules-BadI8NX3.js","./ns-permissions-CBJqhL8s.js","./ns-procurement-CNLJ0bUG.js","./manage-products-CljWcVfw.js","./select-api-entities-BATqW8xy.js","./join-array-NDqpMoMN.js","./ns-notifications-B8U6jbt7.js","./ns-transaction-BWw9YaaH.js","./ns-dashboard-DrbYobqr.js","./ns-low-stock-report-B0ijriiO.js","./ns-sale-report-Ctw9sgCC.js","./ns-sold-stock-report-DlA75id6.js","./ns-profit-report-ZsHygbh5.js","./ns-stock-combined-report-C62R_pZx.js","./ns-cash-flow-report-CiBb2uvD.js","./ns-yearly-report-1qZOTpnH.js","./ns-best-products-report-BgQMVZVb.js","./ns-payment-types-report-Da3apnWG.js","./ns-customers-statement-report-B-91vL72.js","./ns-stock-adjustment-CYyp8j9t.js","./ns-procurement-quantity-B04Kmc4w.js","./ns-order-invoice-Q_OzEyiX.js","./ns-print-label-DvKo0z6X.js","./ns-token-pTLid_mK.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{_ as e}from"./preload-helper-D6kgxu3v.js";import"./time-DErOUPZg.js";import{b as w,n as f,a as I}from"./components-CDxq1sm2.js";import{c as m,n as L}from"./bootstrap-Bz3m6YT1.js";import{N as y}from"./ns-hotpress-B_9sUEWO.js";import{d as t}from"./runtime-core.esm-bundler-DzqFO6Tt.js";import"./ns-alert-popup-B6pzDgFD.js";import"./currency-Dtag6qPd.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ns-avatar-image-CIpC3xeh.js";import"./index.es-ua9LYOjR.js";import"./ns-prompt-popup-C8eAhAy7.js";import"./chart-D2s_fKm5.js";function V(o,_){_.forEach(a=>{let r=o.document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href",a),o.document.getElementsByTagName("head")[0].appendChild(r)})}const O={install(o,_={}){o.config.globalProperties.$htmlToPaper=(a,r,D=()=>!0)=>{let P="_blank",v=["fullscreen=yes","titlebar=yes","scrollbars=yes"],R=!0,A=[],{name:u=P,specs:i=v,replace:T=R,styles:p=A}=_;r&&(r.name&&(u=r.name),r.specs&&(i=r.specs),r.replace&&(T=r.replace),r.styles&&(p=r.styles)),i=i.length?i.join(","):"";const l=window.document.getElementById(a);if(!l){alert(`Element to print #${a} not found!`);return}const s=window.open("",u,i);return s.document.write(`
          <html>
            <head>
              <title>${window.document.title}</title>
            </head>
            <body>
              ${l.innerHTML}
            </body>
          </html>
        `),V(s,p),setTimeout(()=>{s.document.close(),s.focus(),s.print(),s.close(),D()},1e3),!0}}},S=t(()=>e(()=>import("./rewards-system-BuUpQ-SU.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)),g=t(()=>e(()=>import("./create-coupons-DN2Hv77u.js"),__vite__mapDeps([6,1,2,3,4,5]),import.meta.url)),C=t(()=>e(()=>import("./ns-settings-CY4wQLAN.js"),__vite__mapDeps([7,2,1,3,4,8,9,5,10,11,12,13]),import.meta.url)),k=t(()=>e(()=>import("./reset-B7ujbCFD.js"),__vite__mapDeps([14,2,1,3,4,5]),import.meta.url)),H=t(()=>e(()=>import("./modules-BadI8NX3.js"),__vite__mapDeps([15,1,2,3,4,9,5,11,12,13]),import.meta.url)),M=t(()=>e(()=>import("./ns-permissions-CBJqhL8s.js"),__vite__mapDeps([16,1,2,3,4,5]),import.meta.url)),j=t(()=>e(()=>import("./ns-procurement-CNLJ0bUG.js"),__vite__mapDeps([17,1,2,3,4,18,12,5,13,19,20,11]),import.meta.url)),N=t(()=>e(()=>import("./manage-products-CljWcVfw.js"),__vite__mapDeps([18,1,2,3,4,12,5,13]),import.meta.url)),q=t(()=>e(()=>import("./ns-procurement-invoice-DSSNRCNz.js"),[],import.meta.url)),x=t(()=>e(()=>import("./ns-notifications-B8U6jbt7.js"),__vite__mapDeps([21,1,2,3,4,12,5,13,8,9,10,11]),import.meta.url)),$=t(()=>e(()=>import("./components-CDxq1sm2.js").then(o=>o.i),__vite__mapDeps([8,9,2,5,4,10,11,1,3,12,13]),import.meta.url)),B=t(()=>e(()=>import("./ns-transaction-BWw9YaaH.js"),__vite__mapDeps([22,1,2,3,4,9,5,11,12,13]),import.meta.url)),F=t(()=>e(()=>import("./ns-dashboard-DrbYobqr.js"),__vite__mapDeps([23,1,2,3,4,5]),import.meta.url)),Y=t(()=>e(()=>import("./ns-low-stock-report-B0ijriiO.js"),__vite__mapDeps([24,1,2,3,4,8,9,5,10,11,12,13,20]),import.meta.url)),z=t(()=>e(()=>import("./ns-sale-report-Ctw9sgCC.js"),__vite__mapDeps([25,1,2,3,4,8,9,5,10,11,12,13,20]),import.meta.url)),G=t(()=>e(()=>import("./ns-sold-stock-report-DlA75id6.js"),__vite__mapDeps([26,1,2,3,4,8,9,5,10,11,12,13,19,20]),import.meta.url)),J=t(()=>e(()=>import("./ns-profit-report-ZsHygbh5.js"),__vite__mapDeps([27,1,2,3,4,8,9,5,10,11,12,13,19,20]),import.meta.url)),K=t(()=>e(()=>import("./ns-stock-combined-report-C62R_pZx.js"),__vite__mapDeps([28,1,2,3,4,19,12,5,13,20]),import.meta.url)),Q=t(()=>e(()=>import("./ns-cash-flow-report-CiBb2uvD.js"),__vite__mapDeps([29,1,2,3,4,8,9,5,10,11,12,13]),import.meta.url)),U=t(()=>e(()=>import("./ns-yearly-report-1qZOTpnH.js"),__vite__mapDeps([30,1,2,3,4,8,9,5,10,11,12,13]),import.meta.url)),W=t(()=>e(()=>import("./ns-best-products-report-BgQMVZVb.js"),__vite__mapDeps([31,1,2,3,4,8,9,5,10,11,12,13]),import.meta.url)),X=t(()=>e(()=>import("./ns-payment-types-report-Da3apnWG.js"),__vite__mapDeps([32,1,2,3,4,8,9,5,10,11,12,13]),import.meta.url)),Z=t(()=>e(()=>import("./ns-customers-statement-report-B-91vL72.js"),__vite__mapDeps([33,2,5,4]),import.meta.url)),ee=t(()=>e(()=>import("./ns-stock-adjustment-CYyp8j9t.js"),__vite__mapDeps([34,1,2,3,4,35,5,12,13]),import.meta.url)),te=t(()=>e(()=>import("./ns-order-invoice-Q_OzEyiX.js"),__vite__mapDeps([36,2,5,4]),import.meta.url)),oe=t(()=>e(()=>import("./ns-print-label-DvKo0z6X.js"),__vite__mapDeps([37,2,4,1,3,5]),import.meta.url)),n=window.nsState,re=window.nsScreen;nsExtraComponents.nsToken=t(()=>e(()=>import("./ns-token-pTLid_mK.js"),__vite__mapDeps([38,1,2,3,4,5,11,12,13]),import.meta.url));window.nsHotPress=new y;const d=Object.assign({nsModules:H,nsRewardsSystem:S,nsCreateCoupons:g,nsManageProducts:N,nsSettings:C,nsReset:k,nsPermissions:M,nsProcurement:j,nsProcurementInvoice:q,nsMedia:$,nsTransaction:B,nsDashboard:F,nsPrintLabel:oe,nsNotifications:x,nsSaleReport:z,nsSoldStockReport:G,nsProfitReport:J,nsStockCombinedReport:K,nsCashFlowReport:Q,nsYearlyReport:U,nsPaymentTypesReport:X,nsBestProductsReport:W,nsLowStockReport:Y,nsCustomersStatementReport:Z,nsStockAdjustment:ee,nsOrderInvoice:te,...w},nsExtraComponents);window.nsDashboardAside=m({data(){return{sidebar:"visible",popups:[]}},components:{nsMenu:f,nsSubmenu:I},mounted(){n.subscribe(o=>{o.sidebar&&(this.sidebar=o.sidebar)})}});window.nsDashboardOverlay=m({data(){return{sidebar:null,popups:[]}},components:d,mounted(){n.subscribe(o=>{o.sidebar&&(this.sidebar=o.sidebar)})},methods:{closeMenu(){n.setState({sidebar:this.sidebar==="hidden"?"visible":"hidden"})}}});window.nsDashboardHeader=m({data(){return{menuToggled:!1,sidebar:null}},components:d,methods:{toggleMenu(){this.menuToggled=!this.menuToggled},toggleSideMenu(){["lg","xl"].includes(re.breakpoint)?n.setState({sidebar:this.sidebar==="hidden"?"visible":"hidden"}):n.setState({sidebar:this.sidebar==="hidden"?"visible":"hidden"})}},mounted(){n.subscribe(o=>{o.sidebar&&(this.sidebar=o.sidebar)})}});window.nsDashboardContent=m({});for(let o in d)window.nsDashboardContent.component(o,d[o]);window.nsDashboardContent.use(O,{styles:Object.values(window.ns.cssFiles)});window.nsComponents=Object.assign(d,w);L.doAction("ns-before-mount");const c=document.querySelector("#dashboard-aside");window.nsDashboardAside&&c&&window.nsDashboardAside.mount(c);const b=document.querySelector("#dashboard-overlay");window.nsDashboardOverlay&&b&&window.nsDashboardOverlay.mount(b);const E=document.querySelector("#dashboard-header");window.nsDashboardHeader&&E&&window.nsDashboardHeader.mount(E);const h=document.querySelector("#dashboard-content");window.nsDashboardContent&&h&&window.nsDashboardContent.mount(h);
