import{ah as g,bP as h}from"./index-BjgfEvRF.js";import{F as V,m as w,P as t,_ as o,R as n,a1 as a,W as b,e as u,X as d,T as y,a0 as I,Q as L,a6 as q,a7 as C}from"./vendor-DYYUXsKb.js";import{_ as T}from"./configuration-items.vue_vue_type_script_setup_true_lang-CJfK4ztJ.js";const x={class:"text-center"},A=V({__name:"order-line-items",props:{items:{default:()=>[]}},setup(s){const r=s,{browserTarget:i}=g(),p=w(()=>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(()=>[y("div",x,I(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"])):b("",!0)]),_:1},8,["items","browser-target"])}}}),$=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{A as _,$ as a};
//# sourceMappingURL=accepted-gifts.vue_vue_type_script_setup_true_lang-CHS1LUfp.js.map
