import{aj as g,b$ as h}from"./index-Vd7lvnU9.js";import{F as V,P as t,_ as o,R as n,a1 as a,W as w,e as u,X as d,T as b,a0 as y,m as I,Q as L,a5 as q,a6 as C}from"./vendor-Dd8T34zR.js";import{_ as T}from"./configuration-items.vue_vue_type_script_setup_true_lang-Co3xNcBS.js";const x={class:"text-center"},$=V({__name:"order-line-items",props:{items:{default:()=>[]}},setup(s){const r=s,{browserTarget:i}=g(),p=I(()=>h(r.items));return(m,_)=>{const c=t("VcAddToCart"),l=t("VcLineItems");return n(),o(l,{items:p.value,"browser-target":u(i),"with-image":"","with-properties":"","with-price":"","with-total":"","with-subtotal":""},{titles:a(()=>[b("div",x,y(m.$t("common.labels.quantity")),1)]),default:a(({item:e})=>[d(c,{"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})=>[e.configurationItems?.length?(n(),o(u(T),{key:0,"configuration-items":e.configurationItems},null,8,["configuration-items"])):w("",!0)]),_:1},8,["items","browser-target"])}}}),A=V({__name:"accepted-gifts",props:{items:{}},setup(s){const{browserTarget:r}=g();return(i,p)=>{const m=t("VcAddToCart"),_=t("VcLineItem"),c=t("VcLineItems"),l=t("VcWidget");return n(),o(l,{title:i.$t("shared.cart.gifts_section.title"),"prepend-icon":"gift",size:"lg"},{default:a(()=>[d(c,{"with-header":!1},{"line-items":a(()=>[(n(!0),L(q,null,C(s.items,e=>(n(),o(_,{key:e.id,name:e.name,"image-url":e.imageUrl,"browser-target":u(r),"with-image":""},{default:a(()=>[d(m,{modelValue:e.quantity,"onUpdate:modelValue":f=>e.quantity=f,"hide-button":"",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["name","image-url","browser-target"]))),128))]),_:1})]),_:1},8,["title"])}}});export{$ as _,A as a};
//# sourceMappingURL=accepted-gifts.vue_vue_type_script_setup_true_lang-CrwJ3Rdi.js.map
