import{_ as b}from"./BOhf1Bbf.js";import{j as f,d as v,w as $,m as s,o as i,b as l,G as d,c as p,e as u,t as o,D as m,I as c}from"./Bgmy51Qv.js";import"./CNIrc0EA.js";import"./DZl4_Bww.js";import"./AmaTRG5a.js";import"./BHvLfWtM.js";import"./DuSynPle.js";import"./B2895E6R.js";import"./D_7E8SMU.js";import"./7pZkuj9N.js";const h={class:"input-wrapper"},g=["placeholder"],k={key:0,class:"error"},D={class:"dply-felx align-start j-left inputs mlr--7-5 d-block-sm"},B={class:"input-wrapper mlr-7-5"},w={class:"flex-v-centered flex-xs"},x={class:"mr-15 mb-xs-10"},C=["placeholder"],V={key:0,class:"error"},q={class:"input-wrapper mlr-7-5"},P={class:"flex-v-centered flex-xs"},U={class:"mr-15 mb-xs-10"},j=["placeholder"],N={key:0,class:"error"},K={__name:"[id]",setup(R){const t=f({id:"",title:"",buy:0,free:0}),y=e=>{t.value=e};return(e,a)=>{const _=b;return i(),v(_,{ref:"dataPage","set-api":"setBundleDeal","get-api":"getBundleDeal","empty-store-variable":"allBundleDeals","route-name":"bundle-deals",name:e.$t("profile.dleDeal"),gate:"bundle_deal","validation-keys":["title","buy","free"],result:s(t),onResult:y},{form:$(({hasError:n})=>[l("div",h,[l("label",null,o(e.$t("index.title")),1),d(l("input",{type:"text",placeholder:e.$t("index.title"),name:"title","onUpdate:modelValue":a[0]||(a[0]=r=>s(t).title=r),ref:"title",class:m({invalid:!s(t).title&&n})},null,10,g),[[c,s(t).title]]),!s(t).title&&n?(i(),p("span",k,o(e.$t("category.req",{type:e.$t("index.title")})),1)):u("",!0)]),l("div",D,[l("div",B,[l("div",w,[l("span",x,o(e.$t("brand.free")),1),d(l("input",{type:"number",step:"any",placeholder:e.$t("brand.free"),"onUpdate:modelValue":a[1]||(a[1]=r=>s(t).free=r),class:m({invalid:!s(t).free&&n})},null,10,C),[[c,s(t).free]])]),!s(t).free&&n?(i(),p("span",V,o(e.$t("category.req",{type:e.$t("brand.freeCount")})),1)):u("",!0)]),l("div",q,[l("div",P,[l("span",U,o(e.$t("brand.buy")),1),d(l("input",{type:"number",step:"any",placeholder:e.$t("brand.buy"),"onUpdate:modelValue":a[2]||(a[2]=r=>s(t).buy=r),class:m({invalid:!s(t).buy&&n})},null,10,j),[[c,s(t).buy]])]),!s(t).buy&&n?(i(),p("span",N,o(e.$t("category.req",{type:e.$t("brand.buyCount")})),1)):u("",!0)])])]),_:1},8,["name","result"])}}};export{K as default};
