import{p as n,P as p}from"./bootstrap-Bz3m6YT1.js";import{_ as e}from"./currency-Dtag6qPd.js";import{_ as a}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{n as i}from"./ns-prompt-popup-C8eAhAy7.js";import"./index.es-ua9LYOjR.js";import{o as l,c as m,a as t,t as c}from"./runtime-core.esm-bundler-DzqFO6Tt.js";import"./chart-D2s_fKm5.js";const u={name:"ns-pos-reset-button",mounted(){this.popupCloser()},methods:{__:e,popupCloser:n,reset(){p.show(i,{title:e("Confirm Your Action"),message:e("The current order will be cleared. But not deleted if it's persistent. Would you like to proceed ?"),onAction:o=>{o&&POS.reset()}})}}},d={class:"ns-button error"},f=t("i",{class:"mr-1 text-xl las la-eraser"},null,-1);function _(o,s,x,h,P,r){return l(),m("div",d,[t("button",{onClick:s[0]||(s[0]=k=>r.reset()),class:"rounded shadow flex-shrink-0 h-12 flex items-center px-2 py-1 text-sm"},[f,t("span",null,c(r.__("Reset")),1)])])}const v=a(u,[["render",_]]);export{v as default};
