const i=i=>((null==i?void 0:i.data)||[]).map((i=>{var d;return{...(null==i?void 0:i.id)?{id:i.id}:{},price_id:i.price.id,quantity:i.quantity,variant_id:null===(d=i.variant)||void 0===d?void 0:d.id}})),o=i=>((null==i?void 0:i.data)||[]).map((i=>i.price.id)),d=(i,d)=>((null==i?void 0:i.data)||[]).find((i=>i.price.id===d)),n=(i,d)=>!!o(null==d?void 0:d.line_items).find((d=>(null==i?void 0:i.id)===d));export{i as c,d as g,n as i};