function o(t){let l={address1:null,address2:null,town:null,county:null,postcode:null,country:null};l.address1=t[0]?t[0].trim():null,l.address2=t[1]?t[1].trim():null,t[6]&&t[6].trim()==="Channel Isles"?(l.town=t[4]?t[4].trim():null,l.county=""):(l.town=t[5]?t[5].trim():null,l.county=t[6]?t[6].trim():null);let u=!1;for(let n in t)t[n]&&t[n].trim()==="Guernsey"?(l.country="GG",u=!0):t[n]&&t[n].trim()==="Jersey"?(l.country="JE",u=!0):t[n]&&t[n].trim()==="Isle of Man"&&(l.country="IM",u=!0);return u||(l.country="GB"),l}export{o as f};
//# sourceMappingURL=format-address-U80pFLm7.js.map