import{s as o,g as i}from"./p-53e7f7d7.js";import{i as n}from"./p-30eb50ff.js";const l=()=>i(o.formId,o.mode),v=(i="")=>{var r;return i?o.locks.some((o=>o===i)):!!(null===(r=o.locks)||void 0===r?void 0:r.length)},r=i=>{var r,d;return((null===(d=null===(r=o.checkout)||void 0===r?void 0:r.line_items)||void 0===d?void 0:d.data)||[]).find((o=>{var r,d;return(null===(d=null===(r=null==o?void 0:o.price)||void 0===r?void 0:r.product)||void 0===d?void 0:d.id)===i}))},d=()=>{var i;return"full"===(null===(i=o.checkout)||void 0===i?void 0:i.shipping_address_accuracy_requirement)},s=()=>{var i,r;return"full"===(null===(i=o.checkout)||void 0===i?void 0:i.shipping_address_accuracy_requirement)||"tax"===(null===(r=o.checkout)||void 0===r?void 0:r.shipping_address_accuracy_requirement)},u=(i="shipping")=>{var r,d;if(!n(null===(r=o.checkout)||void 0===r?void 0:r[`${i}_address`]))return;const{line_1:e,line_2:l,...u}=(null===(d=o.checkout)||void 0===d?void 0:d.shipping_address)||{};return{line1:e,line2:l,...u}};export{v as a,u as b,l as c,d as f,r as g,s};