"use strict";(self.webpackChunkNexoPOS_4x=self.webpackChunkNexoPOS_4x||[]).push([[3692],{3692:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var r=s(8603);const i={name:"ns-pos-hold-orders",data:function(){return{order:{},title:"",show:!0}},mounted:function(){this.popupCloser(),this.show=POS.getHoldPopupEnabled(),this.show||this.$popupParams.resolve({title:this.title}),this.$refs.reference.focus(),this.$refs.reference.select(),this.order=this.$popupParams.order,this.title=this.$popupParams.order.title||""},methods:{__:s(7389).__,popupCloser:r.Z,submitHold:function(){this.$popup.close(),this.$popupParams.resolve({title:this.title})}}};const o=(0,s(1900).Z)(i,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"bg-surface-tertiary shadow-lg w-6/7-screen md:w-3/7-screen lg:w-2/6-screen"},[s("div",{staticClass:"p-2 flex justify-between border-b items-center"},[s("h3",{staticClass:"font-semibold"},[e._v(e._s(e.__("Hold Order")))]),e._v(" "),s("div",[s("ns-close-button",{on:{click:function(t){return e.$popup.close()}}})],1)]),e._v(" "),s("div",{staticClass:"flex-auto"},[s("div",{staticClass:"border-b h-16 flex items-center justify-center"},[s("span",{staticClass:"text-5xl text-primary"},[e._v(e._s(e._f("currency")(e.order.total)))])]),e._v(" "),s("div",{staticClass:"p-2"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.title,expression:"title"}],ref:"reference",staticClass:"rounded border-2 border-info-primary bg-surface-tertiary p-2 w-full",attrs:{type:"text",placeholder:"Order Reference"},domProps:{value:e.title},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitHold()},input:function(t){t.target.composing||(e.title=t.target.value)}}})]),e._v(" "),s("div",{staticClass:"p-2"},[s("p",{staticClass:"text-secondary"},[e._v("\n                "+e._s(e.__("The current order will be set on hold. You can retreive this order from the pending order button. Providing a reference to it might help you to identify the order more quickly."))+"\n            ")])])]),e._v(" "),s("div",{staticClass:"flex"},[s("div",{staticClass:" cursor-pointer w-1/2 py-3 flex justify-center items-center bg-green-500 text-white font-semibold",on:{click:function(t){return e.submitHold()}}},[e._v("\n            "+e._s(e.__("Confirm"))+"\n        ")]),e._v(" "),s("div",{staticClass:"cursor-pointer w-1/2 py-3 flex justify-center items-center bg-error-secondary text-white font-semibold",on:{click:function(t){return e.$popup.close()}}},[e._v("\n            "+e._s(e.__("Cancel"))+"\n        ")])])])}),[],!1,null,null,null).exports}}]);