import{P as r}from"./bootstrap-BsWQM_6D.js";import{_ as n}from"./currency-Dtag6qPd.js";import{N as u}from"./ns-pos-shipping-popup-REVjrn1D.js";import{_ as p}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as a,c as m,a as t,t as l}from"./runtime-core.esm-bundler-VrNrzzXC.js";import"./chart-CAYz1qzV.js";import"./ns-prompt-popup-CwRKP6Ip.js";import"./ns-orders-preview-popup-BF-vneGe.js";const c={name:"ns-pos-customers-button",methods:{__:n,openCustomerPopup(){r.show(u)}},beforeDestroy(){nsHotPress.destroy("ns_pos_keyboard_create_customer")},mounted(){for(let o in nsShortcuts)["ns_pos_keyboard_create_customer"].includes(o)&&nsHotPress.create("ns_pos_keyboard_create_customer").whenNotVisible([".is-popup"]).whenPressed(nsShortcuts[o]!==null?nsShortcuts[o].join("+"):null,s=>{s.preventDefault(),this.openCustomerPopup()})}},i={class:"ns-button default"};function _(o,s,d,f,h,e){return a(),m("div",i,[t("button",{onClick:s[0]||(s[0]=P=>e.openCustomerPopup()),class:"rounded shadow flex-shrink-0 h-12 flex items-center px-2 py-1 text-sm"},[s[1]||(s[1]=t("i",{class:"mr-1 text-xl lar la-user-circle"},null,-1)),t("span",null,l(e.__("Customers")),1)])])}const S=p(c,[["render",_]]);export{S as default};
