"use strict";(self.webpackChunkNexoPOS_4x=self.webpackChunkNexoPOS_4x||[]).push([[4135],{4135:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var n=t(7266);const o={name:"ns-pos-order-settings",mounted:function(){var e=this;nsHttpClient.get("/api/nexopos/v4/fields/ns.pos-order-settings").subscribe((function(s){s.forEach((function(s){s.value=e.$popupParams.order[s.name]||""})),e.fields=e.validation.createFields(s)}),(function(e){})),this.popupCloser()},data:function(){return{fields:[],validation:new n.Z}},methods:{__,popupCloser,popupResolver,closePopup:function(){this.popupResolver(!1)},saveSettings:function(){var e=this.validation.extractFields(this.fields);this.popupResolver(e)}}};const r=(0,t(1900).Z)(o,(function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"shadow-lg flex flex-col bg-surface-secondary w-95vw h-95vh md:w-3/5-screen md:h-3/5-screen lg:w-2/5-screen"},[t("div",{staticClass:"p-2 border-b border-surface-tertiary items-center flex justify-between"},[t("h3",{staticClass:"text-semibold"},[e._v(e._s(e.__("Order Settings")))]),e._v(" "),t("div",[t("ns-close-button",{on:{click:function(s){return e.closePopup()}}})],1)]),e._v(" "),t("div",{staticClass:"p-2 flex-auto border-b border-surface-tertiary bg-surface-secondary overflow-y-auto"},e._l(e.fields,(function(e,s){return t("ns-field",{key:s,attrs:{field:e}})})),1),e._v(" "),t("div",{staticClass:"p-2 flex justify-end"},[t("ns-button",{attrs:{type:"info"},on:{click:function(s){return e.saveSettings()}}},[e._v(e._s(e.__("Save")))])],1)])}),[],!1,null,null,null).exports}}]);