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