1import{a as n}from"./chunk-CQ7tqgma.js";const c="zipcodecookie",a=21,i={invalid:ACC.messages.zipCodeInvalid,excluded:ACC.messages.zipCodeExcluded,set:ACC.messages.setZipcode,estimates:ACC.messages,zipcode:ACC.messages.zipcodeText},d=e=>e?.replace(/\s/g,"").toUpperCase(),p=e=>{const o=$(".j-zipcode-number"),t=$(".j-zipcode-span"),s=$(".j-zipcode-icon");if(!e){o.html(i.set);return}o.html(e),t.html(i.zipcode),s.removeClass("hidden")},C=()=>n.get(c),g=()=>!!C()?.length,m=e=>{const o=d(e);n.set(c,o,{path:"/",expires:a}),p(o)},r=()=>{n.remove(c,{path:"/"}),p(null)},x=(e,o,t)=>{if(!e){o(e);return}const s=d(e);if(ACC.config.zipCodeRegEx&&!new RegExp(ACC.config.zipCodeRegEx).test(s)){t(i.invalid);return}if(ACC.config.doNotShipToZipCodeRegex&&new RegExp(ACC.config.doNotShipToZipCodeRegex).test(s)){t(i.excluded);return}o(e)},A=()=>{p(C())};export{C as getZipCode,A as init,g as isZipCodeSet,r as removeZipCode,m as setZipCode,x as validateZipCode};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.