const l=l=>((null==l?void 0:l.data)||[]).map((l=>({price_id:l.price.id,quantity:l.quantity}))),i=(l,i)=>{var v;return!!((null==(v=null==i?void 0:i.line_items)?void 0:v.data)||[]).map((l=>l.price.id)).find((i=>(null==l?void 0:l.id)===i))},v=l=>{var i,v,o;return!!(null===(v=null===(i=null==l?void 0:l.line_items)||void 0===i?void 0:i.data)||void 0===v?void 0:v.length)&&(null===(o=null==l?void 0:l.line_items.data)||void 0===o?void 0:o.some((l=>{var i;return null===(i=null==l?void 0:l.price)||void 0===i?void 0:i.recurring_interval_count})))};export{l as c,v as h,i}