import{C as _,q as g,N as t,K as r,E as o,O as a,a3 as f,u as V,Q as l,P as h,R as w,D as b,F as y,J as I}from"./vendor-BGtMsOoo.js";import{bk as q}from"./index-CRze-aDK.js";import{_ as C}from"./configuration-items.vue_vue_type_script_setup_true_lang-Bbu9zvgd.js";const L={class:"text-center"},A=_({__name:"order-line-items",props:{items:{default:()=>[]}},setup(d){const n=d,u=g(()=>q(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",L,w(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(V(C),{key:0,"configuration-items":e.configurationItems},null,8,["configuration-items"])):f("",!0)]}),_:1},8,["items","browser-target"])}}}),B=_({__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),b(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{A as _,B as a};
//# sourceMappingURL=accepted-gifts.vue_vue_type_script_setup_true_lang-B-hAgL2Y.js.map
