import{c as p,b as e,t as o,a as i,g as a,ab as c,w as m,d as u,j as _,o as f}from"./app-CYVHboi-.js";import{_ as y}from"./LoadingButton-CH88QwYm.js";import{_ as b}from"./Input-VvJHlcSh.js";import"./browser-BwNzv7vE.js";import"./Keyboard-VWzCpVN-.js";import"./composable-DK3kcOvi.js";import"./InputError-u5FIXCwc.js";import"./InputLabel-dHPaqRUC.js";const v={class:"border-b border-gray-200 p-4 sm:px-6 dark:border-gray-700"},g={class:"text-base leading-6 font-semibold text-gray-900 dark:text-gray-100"},h={class:"mt-1 text-sm"},k={class:"m-6 flex flex-col gap-6"},x={class:"-mt-3"},O={__name:"OrderDiscount",props:["show"],emits:["close"],setup($,{emit:n}){const d=n,r=_(null);return(s,t)=>(f(),p("div",null,[e("div",v,[e("h3",g,o(s.$t("Order Discount")),1),e("p",h,o(s.$t("Please fill the discount below to apply to form.")),1)]),e("div",k,[e("div",null,[i(a(b),{keyboard:"",modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=l=>r.value=l),onKeypress:a(c),id:"order-discount",label:"Discount (5 or 5%)"},null,8,["modelValue","onKeypress"])]),e("p",x,o(s.$t("This discount will override any products discount.")),1),i(a(y),{class:"justify-center",onClick:t[1]||(t[1]=l=>d("apply",r.value))},{default:m(()=>[u(o(s.$t("Apply")),1)]),_:1})])]))}};export{O as default};
