import{s as o,g as n}from"./p-6c74654a.js";import"./p-e2e1fe1f.js";const i=()=>n(o.formId,o.mode),l=(i="")=>{var l;return i?o.locks.some((o=>o===i)):!!(null===(l=o.locks)||void 0===l?void 0:l.length)},d=i=>{var l,n;return((null===(n=null===(l=o.checkout)||void 0===l?void 0:l.line_items)||void 0===n?void 0:n.data)||[]).find((o=>{var l,n;return(null===(n=null===(l=null==o?void 0:o.price)||void 0===l?void 0:l.product)||void 0===n?void 0:n.id)===i}))},t=()=>{var i;return"full"===(null===(i=o.checkout)||void 0===i?void 0:i.shipping_address_accuracy_requirement)},v=()=>{var i,l;return"full"===(null===(i=o.checkout)||void 0===i?void 0:i.shipping_address_accuracy_requirement)||"tax"===(null===(l=o.checkout)||void 0===l?void 0:l.shipping_address_accuracy_requirement)},u=i=>{const l=i||o.checkout,n=!1===(null==l?void 0:l.billing_matches_shipping)&&(null==l?void 0:l.billing_address)?l.billing_address:void 0,e=(null==n?void 0:n.line_1)?n:null==l?void 0:l.shipping_address;if(null==e?void 0:e.line_1)return e},r=i=>{if(!(null==i?void 0:i.line_1))return;const{line_1:o,line_2:l,city:n,state:e,country:r,postal_code:d}=i;return{line1:o,line2:l,city:n,state:e,postal_code:d,country:r}};export{l as a,u as b,i as c,t as f,d as g,v as s,r as t};