import{K as _,B as g,S as t,P as r,M as o,T as a,a7 as V,b as f,V as l,U as h,W as b,L as w,N as y,O as I}from"./vendor-bSWkQivH.js";import{b4 as L}from"./index-Dqv5IkpS.js";import{_ as q}from"./vendor-name.vue_vue_type_script_setup_true_lang-mz7Q5s_w.js";const C={class:"text-center"},B=_({__name:"order-line-items",props:{items:{default:()=>[]}},setup(d){const n=d,u=g(()=>L(n.items));return(s,p)=>{const m=t("VcAddToCart"),c=t("VcLineItems");return o(),r(c,{items:u.value,"browser-target":s.$cfg.details_browser_target,"with-image":"","with-properties":"","with-price":"","with-total":"","with-subtotal":""},{titles:a(()=>[h("div",C,b(s.$t("common.labels.quantity")),1)]),default:a(({item:e})=>[l(m,{"hide-button":"","model-value":e.quantity,name:e.id,"min-quantity":e.minQuantity,"max-quantity":e.maxQuantity,disabled:""},null,8,["model-value","name","min-quantity","max-quantity"])]),"after-content":a(({item:e})=>{var i;return[(i=e.configurationItems)!=null&&i.length?(o(),r(f(q),{key:0,"configuration-items":e.configurationItems},null,8,["configuration-items"])):V("",!0)]}),_:1},8,["items","browser-target"])}}}),T=_({__name:"accepted-gifts",props:{items:{}},setup(d){return(n,u)=>{const s=t("VcAddToCart"),p=t("VcLineItem"),m=t("VcLineItems"),c=t("VcWidget");return o(),r(c,{title:n.$t("shared.cart.gifts_section.title"),"prepend-icon":"gift",size:"lg"},{default:a(()=>[l(m,{"with-header":!1},{"line-items":a(()=>[(o(!0),w(y,null,I(n.items,e=>(o(),r(p,{key:e.id,name:e.name,"image-url":e.imageUrl,"browser-target":n.$cfg.details_browser_target,"with-image":""},{default:a(()=>[l(s,{modelValue:e.quantity,"onUpdate:modelValue":i=>e.quantity=i,"hide-button":"",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name","image-url","browser-target"]))),128))]),_:1})]),_:1},8,["title"])}}});export{B as _,T as a};
//# sourceMappingURL=accepted-gifts.vue_vue_type_script_setup_true_lang-DeNQcaG1.js.map
