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