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