import{M as p,E as g,U as t,R as i,O as o,V as a,a8 as V,e as f,X as c,W as h,Y as w,N as y,P as b,Q as I}from"./vendor-CsGITfgk.js";import{cu as L}from"./index-CsCqMgta.js";import{_ as q}from"./configuration-items.vue_vue_type_script_setup_true_lang-CVAywCKE.js";const C={class:"text-center"},A=p({__name:"order-line-items",props:{items:{default:()=>[]}},setup(l){const n=l,d=g(()=>L(n.items));return(s,u)=>{const r=t("VcAddToCart"),m=t("VcLineItems");return o(),i(m,{items:d.value,"browser-target":s.$cfg.details_browser_target,"with-image":"","with-properties":"","with-price":"","with-total":"","with-subtotal":""},{titles:a(()=>[h("div",C,w(s.$t("common.labels.quantity")),1)]),default:a(({item:e})=>[c(r,{"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?(o(),i(f(q),{key:0,"configuration-items":e.configurationItems},null,8,["configuration-items"])):V("",!0)]),_:1},8,["items","browser-target"])}}}),B=p({__name:"accepted-gifts",props:{items:{}},setup(l){return(n,d)=>{const s=t("VcAddToCart"),u=t("VcLineItem"),r=t("VcLineItems"),m=t("VcWidget");return o(),i(m,{title:n.$t("shared.cart.gifts_section.title"),"prepend-icon":"gift",size:"lg"},{default:a(()=>[c(r,{"with-header":!1},{"line-items":a(()=>[(o(!0),y(b,null,I(n.items,e=>(o(),i(u,{key:e.id,name:e.name,"image-url":e.imageUrl,"browser-target":n.$cfg.details_browser_target,"with-image":""},{default:a(()=>[c(s,{modelValue:e.quantity,"onUpdate:modelValue":_=>e.quantity=_,"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-CZxhC8mC.js.map
