import{P as r}from"./bootstrap-BsWQM_6D.js";import{b as n}from"./ns-pos-shipping-popup-REVjrn1D.js";import{_ as p}from"./currency-Dtag6qPd.js";import{_ as l}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as a,c as d,a as t,t as i}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 u={name:"ns-pos-delivery-button",methods:{__:p,openOrderTypeSelection(){r.show(n)}},beforeDestroy(){nsHotPress.destroy("ns_pos_keyboard_order_type")},mounted(){for(let o in nsShortcuts)["ns_pos_keyboard_order_type"].includes(o)&&nsHotPress.create("ns_pos_keyboard_order_type").whenNotVisible([".is-popup"]).whenPressed(nsShortcuts[o]!==null?nsShortcuts[o].join("+"):null,e=>{e.preventDefault(),this.openOrderTypeSelection()})}},_={class:"ns-button default"};function c(o,e,m,f,y,s){return a(),d("div",_,[t("button",{onClick:e[0]||(e[0]=h=>s.openOrderTypeSelection()),class:"rounded shadow flex-shrink-0 h-12 flex items-center px-2 py-1 text-sm"},[e[1]||(e[1]=t("i",{class:"mr-1 text-xl las la-truck"},null,-1)),t("span",null,i(s.__("Order Type")),1)])])}const w=l(u,[["render",c]]);export{w as default};
