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