1var Yt=Object.defineProperty,Ht=Object.defineProperties;var jt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var Zt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var lt=(i,e,r)=>e in i?Yt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r,B=(i,e)=>{for(var r in e||(e={}))Zt.call(e,r)&<(i,r,e[r]);if(tt)for(var r of tt(e))zt.call(e,r)&<(i,r,e[r]);return i},st=(i,e)=>Ht(i,jt(e));var Y=(i,e,r)=>new Promise((n,b)=>{var u=m=>{try{f(r.next(m))}catch(h){b(h)}},R=m=>{try{f(r.throw(m))}catch(h){b(h)}},f=m=>m.done?n(m.value):Promise.resolve(m.value).then(u,R);f((r=r.apply(i,e)).next())});import{ap as Gt,d as Wt,f as _e,s as Pe,r as Ue,b as nt,k as Re,_ as we,aa as dt,x as ue,a6 as ct,a7 as ut,a9 as pt,Z as Jt,j as Kt}from"./Deie1YYH.js";import{j as Qt,m as Xt,k as el,_ as _t,a as ft}from"./Dy7LalTF.js";import{_ as tl}from"./UxdVQ-EC.js";import{c as ll,d as sl}from"./DPjQhL7z.js";import{_ as al,a as rl,b as il}from"./ClEn5SkI.js";import{_ as ol}from"./CRYZbibd.js";import{C as fe,d as H,j as at,m as k,f as G,n as nl,z as dl,Y as p,K as d,R as c,W as Ce,F as te,Z as ce,O as F,a3 as z,N as x,V as Ne,u as o,U as Z,S as A,L,J as le,I as Ve}from"./Bdsq-2Hc.js";import{u as St,a as yt,b as cl}from"./C5AY_amu.js";import{o as pe}from"./CZ9w5ngk.js";import{u as Le}from"./hV5BZvcf.js";import{a as ul,b as pl,c as _l,m as fl,d as Sl,e as yl}from"./IOy35J6n.js";import{u as mt}from"./D5xziSVP.js";import{_ as ml,v as $e,p as El,w as hl}from"./ZNc5PjZr.js";import{P as rt}from"./CKbJSpm8.js";(function(){try{var i=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};i.SENTRY_RELEASE={id:"90e6ae45135811f53903a6406dd98a720cc380a5"};var e=new i.Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="972a0e1b-95f0-4852-8408-811d978f201f",i._sentryDebugIdIdentifier="sentry-dbid-972a0e1b-95f0-4852-8408-811d978f201f")}catch(r){}})();const vl=Gt("district",{state:()=>({districtList:[],isLoading:!1,error:null,currentCountryId:null,currentCityId:null}),getters:{getDistrictList:i=>i.districtList,getIsLoading:i=>i.isLoading,getError:i=>i.error,getDistrictLabelByValue:i=>e=>{var n;if(e==null)return;const r=String(e);return(n=i.districtList.find(b=>b.value===r))==null?void 0:n.label}},actions:{fetchDistrictList(i){return Y(this,null,function*(){const{countryId:e,pid:r}=i;if(this.currentCountryId===e&&this.currentCityId===r&&this.districtList.length>0)return this.districtList;this.isLoading=!0,this.error=null,this.currentCountryId=e,this.currentCityId=r;try{const n=yield pe.getChildrenAreaList({countryId:e,pid:r});(n==null?void 0:n.code)===200&&Array.isArray(n.data)?this.districtList=n.data.map(b=>{var u;return{value:(u=b.id)==null?void 0:u.toString(),label:b.name,kode_pos:b.kode_pos?String(b.kode_pos):void 0}}):(this.error=(n==null?void 0:n.msg)||"è·ååº/éå表失败",this.districtList=[])}catch(n){this.error=(n==null?void 0:n.message)||"ç½ç»é误",this.districtList=[]}finally{this.isLoading=!1}return this.districtList})},clearDistrictList(){this.districtList=[],this.currentCityId=null}}}),Et=(i,e)=>{var u;if(!i.visibleWhen)return!0;const r=String((u=e[i.visibleWhen.field])!=null?u:""),n=i.visibleWhen.value,b=Array.isArray(n)?n.includes(r):r===n;return i.visibleWhen.not?!b:b},gl=(i,e,r)=>{var b,u,R,f,m,h,q,D;const n={};for(const g of i){if(!Et(g,e))continue;const I=e[g.id],N=I!=null?String(I).trim():"";if(g.required&&!N){n[g.id]=`${g.label} ${r}`;continue}if(N&&((b=g.validation)!=null&&b.validatorByCountry)){const U=String((u=e.country)!=null?u:""),V=g.validation.validatorByCountry[U];if(V){(typeof V=="function"?V(N):new RegExp(V,"u").test(N))||(n[g.id]=g.validation.message||`${g.label}æ ¼å¼ä¸æ£ç¡®`);continue}}if(N&&((R=g.validation)!=null&&R.pattern||(f=g.validation)!=null&&f.patternByCountry)){let U=((m=g.validation)==null?void 0:m.pattern)||"";if((h=g.validation)!=null&&h.patternByCountry){const V=String((q=e.country)!=null?q:"");U=g.validation.patternByCountry[V]||U}U&&!new RegExp(U,"u").test(N)&&(n[g.id]=((D=g.validation)==null?void 0:D.message)||`${g.label}æ ¼å¼ä¸æ£ç¡®`)}}return n},bl={class:"grid grid-cols-12 gap-4"},Al={key:0,class:"relative"},xl=["for"],Tl={key:0,class:"text-[#f00] mr-1"},Cl={key:0,class:"absolute left-0 right-0 mt-1 bg-white border border-gray-200 rounded-md shadow-lg z-20 overflow-y-auto address-suggestions",style:{"max-height":"40vh"}},Nl=["onClick","onTouchstart","onTouchend"],Rl={key:1,class:"absolute right-3 top-1/2 transform -translate-y-1/2"},Ll={key:0,class:"dialing-prefix"},Dl=["for"],Il={key:0,class:"text-[#f00] mr-1"},Ol={key:1,class:"absolute right-3 top-1/2 transform -translate-y-1/2"},Fl=["innerHTML"],ql={key:3,class:"text-[12px] text-[#f00]"},kl={key:1},Ml={key:0,class:"flex items-center"},Pl={key:1,class:"flex items-center gap-2"},$l={key:0,class:"icon w-5 h-5 shrink-0 !relative !right-0 !top-0 !transform","aria-hidden":"true"},Ul=["xlink:href"],wl={key:0,class:"py-2 px-3 text-center text-gray-500"},Vl={class:"flex items-center gap-2"},Bl={key:0,class:"icon w-5 h-5 shrink-0","aria-hidden":"true"},Yl=["xlink:href"],Hl=["for"],jl={key:0,class:"text-[#f00] mr-1"},Zl=["innerHTML"],zl={key:1,class:"text-sm text-red-500"},Gl={key:2},Wl={class:"checkbox-group"},Jl={class:"flex items-center space-x-2"},Kl=["for"],Ql={key:0,class:"text-[#f00] ml-1"},Xl={key:0,class:"text-sm text-red-500"},es={key:3},ts={class:"radio-group"},ls={class:"radio-group-label"},ss={key:0,class:"text-[#f00] ml-1"},as={class:"radio-options"},rs=["for"],is={key:0,class:"text-sm text-red-500"},os={key:4,class:"text-[18px] font-bold"},ns=fe({__name:"AddressForm",props:{config:{default:()=>({siteId:"",fields:[]})},initialData:{default:()=>({})},disableStateListPriceUpdate:{type:Boolean,default:!1},externalMode:{type:Boolean,default:!1},limitMobileHeight:{type:Boolean,default:!0}},emits:["submit","validation-error","switch-to-shipping","update:initialData"],setup(i,{expose:e,emit:r}){const{shouldShow:n}=Wt(),{t:b}=_e(),u=St(),R=yt(),f=cl(),m=vl(),h=Le(),{addressInfo:q}=Pe(h),{updateAddressInfo:D}=h,g=Ue(),{isLogin:I,userInfo:N}=Pe(g),U=nt(),V=H(()=>Qt(U.siteInfo)),O=i,P=r,l=at({}),T=H(()=>O.externalMode?!0:!!(O.initialData&&Object.keys(O.initialData).length>0));H({get:()=>T.value?O.initialData:Object.keys(q.value).length>0?q.value:{},set:s=>{T.value||D(s)}});const C=at({}),M=k(B({},O.config)),$=ve(()=>{T.value?P("update:initialData",B({},l)):D(B({},l))},300),_=(s,t)=>
1{(Oe.value||ye.value)&&s.forEach(y=>{const E=M.value.fields.find(S=>S.id===y);E&&(E.disabled=t)})};G(l,()=>{$()},{deep:!0}),G(()=>O.initialData,s=>{!s||Object.keys(s).length===0||JSON.stringify(s)===JSON.stringify(B({},l))||($.cancel(),Object.keys(l).forEach(y=>{delete l[y]}),Object.assign(l,s),s.country&&K(String(s.country)))},{deep:!0});function ve(s,t){let y=null;function E(){y&&clearTimeout(y),y=window.setTimeout(()=>{s(),y=null},t)}return E.cancel=function(){y&&(clearTimeout(y),y=null)},E}const ge=H(()=>u.getIsLoading),De=H(()=>!!l.country&&R.getIsLoading),kt=H(()=>!l.country||R.getIsLoading?!0:R.getStateList.length===0),be=H(()=>f.getIsLoading),Ae=H(()=>m.getIsLoading),Be=()=>{const s=M.value.fields.find(t=>t&&t.id==="country");if(s&&s.type==="select"){if(s.options=u.getCountryList,!l.country&&g.defaultShippingCountryId&&n("AddressFormAutoSelectDefault")){const t=u.getCountryList.find(y=>y.value===String(g.defaultShippingCountryId));t!=null&&t.value&&(l.country=t.value)}!l.country&&u.getCountryList.length>0&&n("AddressFormAutoSelectDefault")&&(l.country=u.getCountryList[0].value),l.country||K("")}},Ie=()=>{const s=M.value.fields.find(t=>t&&t.id==="province");if(s&&s.type==="select"){if(!l.country){s.options=[],l.province="";return}if(s.options=R.getStateList,R.getStateList.length>0){const t=l.province&&R.getStateList.some(y=>y.value===l.province);(!l.province||!t)&&(l.province=n("AddressFormAutoSelectDefault")?R.getStateList[0].value:"")}else l.province=""}},xe=()=>{const s=M.value.fields.find(t=>t&&t.id==="city_name"&&t.type==="select"&&Q(t));if(s)if(s.options=f.getCityList,f.getCityList.length>0){const t=l.city_name&&f.getCityList.some(y=>y.value===l.city_name);(!l.city_name||!t)&&(l.city_name=f.getCityList[0].value)}else l.city_name=""},se=()=>{const s=M.value.fields.find(t=>t&&t.id==="district"&&t.type==="select"&&Q(t));if(s)if(s.options=m.getDistrictList,m.getDistrictList.length>0){const t=l.district&&m.getDistrictList.some(y=>y.value===l.district);(!l.district||!t)&&(l.district=m.getDistrictList[0].value)}else l.district=""},K=s=>Y(this,null,function*(){if(!s){R.clearStateList(),Ie(),f.clearCityList(),m.clearDistrictList(),xe(),se();return}try{yield R.fetchStateList(Number(s)),Ie()}catch(t){}}),Ye=s=>Y(this,null,function*(){if(!ne.value||!s){f.clearCityList(),xe();return}try{const t=Number(l.country);yield f.fetchCityList({countryId:t,pid:Number(s)})}catch(t){f.clearCityList()}finally{xe()}}),Mt=s=>Y(this,null,function*(){if(!ne.value||!s){m.clearDistrictList(),se();return}try{const t=Number(l.country);yield m.fetchDistrictList({countryId:t,pid:Number(s)})}catch(t){m.clearDistrictList()}finally{se()}}),W=k(!1),j=k([]),ae=k(-1),re=k(!1),ie=k(null),{$message:oe}=Re(),Pt=["br","mx","jp"],Se=H(()=>{var s;return Pt.includes(((s=O.config)==null?void 0:s.siteId)||"")}),Oe=H(()=>{var s;return((s=O.config)==null?void 0:s.siteId)==="br"}),ye=H(()=>{var s;return((s=O.config)==null?void 0:s.siteId)==="mx"}),me=H(()=>{var s;return((s=O.config)==null?void 0:s.siteId)==="jp"}),Fe=k(!1),X=k(null),ne=H(()=>n("AddressFormCityDistrictSelect")),$t=H(()=>n("AddressFormVnDistrictZipcodeAutoFill")),He=()=>{if(!h.isGoogleAutoAddress)return;ie.value&&clearTimeout(ie.value);const s=l.address_1;if(!s||s.trim()===""){W.value=!1,j.value=[],_(["province","city_name"],!1);return}ie.value=window.setTimeout(()=>Y(this,null,function*(){try{re.value=!0;let t="";if(l.country){const E=Number(l.country),S=u.getCountryById(E);t=(S==null?void 0:S.iso_code_2)||""}const y=yield pe.getGoogleAutoAddress({input:s,country:t});y&&y.code===200&&y.data?(j.value=(y.data.items||[]).map(E=>({address:E.description||"",data:E,place_id:E.place_id,session_token:y.data.session_token})),W.value=j.value.length>0,j.value.length===1&&j.value[0].address.toLowerCase()===s.toLowerCase()&&ze()):(j.value=[],W.value=!1)}catch(t){j.value=[],W.value=!1}finally{re.value=!1}}),300)},je=()=>{h.isGoogleAutoAddress&&setTimeout(()=>{W.value=!1},200)},Ut=()=>{h.isGoogleAutoAddress&&l.address_1&&j.value.length>0&&(W.value=!0)},Ze=s=>{if(!W.value||j.value.length===0)return;let t=ae.value+s;t<0?t=j.value.length-1:t>=j.value.length&&(t=0),ae.value=t},ze=()=>{W.value&&ae.value!==-1&&ke(j.value[ae.value])},wt=()=>{if(!ye.value)return;const s=l.csp;
1if(s==null||typeof s!="string")return;const t=s.toUpperCase();s!==t&&(l.csp=t)},qe=()=>{const s=l.zipcode;if(!s||s.trim()==="")return null;const t=s.replace(/[\s-]/g,"");if(Oe.value){if(t.length!==8||!/^\d{8}$/.test(t))return null}else if(ye.value){if(t.length!==5||!/^\d{5}$/.test(t))return null}else if(me.value){if(t.length!==7||!/^\d{7}$/.test(t))return null}else return null;return t},Ge=()=>{me.value&&(l.city_name="",l.district="")},Vt=()=>{if(!Se.value)return;if(l.zipcode){let t=l.zipcode.replace(/\D/g,"");Oe.value&&(t.length>8&&(t=t.slice(0,8)),t.length>5&&(t=t.replace(/^(\d{5})(\d+)/,"$1-$2"))),ye.value&&t.length>5&&(t=t.slice(0,5)),me.value&&(t.length>7&&(t=t.slice(0,7)),t.length>3&&(t=t.replace(/^(\d{3})(\d+)/,"$1-$2"))),l.zipcode!==t&&(l.zipcode=t)}X.value&&clearTimeout(X.value);const s=qe();if(!s){_(["province","city_name"],!1),Ge();return}X.value=window.setTimeout(()=>Y(this,null,function*(){yield We(s)}),800)},Bt=()=>{setTimeout(()=>{X.value&&(clearTimeout(X.value),X.value=null);const s=qe();s?We(s):Ge()},200)},We=s=>Y(this,null,function*(){var t,y;if(!(!Se.value||!s))try{Fe.value=!0;const E=yield pe.autoFilledAddressByCep({zipcode:s});if(qe()!==s)return;if(E&&E.code===200&&E.data){const S=E.data;if(S.country){const w=u.getCountryByCode(S.country);if(w&&(l.country=(t=w.country_id)==null?void 0:t.toString(),yield K((y=w.country_id)==null?void 0:y.toString()),S.province)){const J=R.getStateList.find(ee=>ee.code===S.province||ee.name===S.province||ee.label===S.province);J&&(l.province=J.value)}}S.city&&(l.city_name=S.city.trim()),S.bairro_name&&(me.value?l.district=S.bairro_name.trim():l.bairro_name=S.bairro_name.trim()),S.street_name&&(l.street_name=S.street_name.trim()),S.postal_code&&!me.value&&(l.zipcode=S.postal_code),_(["province","city_name"],!0),$()}}catch(E){}finally{Fe.value=!1}}),ke=s=>Y(this,null,function*(){var t,y;if(h.isGoogleAutoAddress)try{if(re.value=!0,s.place_id)try{const E=yield pe.getGoogleAutoAddressDetail({place_id:s.place_id,session_token:s.session_token});if(E&&E.code===200&&E.data){const S=E.data;if(S.street&&(l.address_1=S.street),S.country)if(n("AddressFormGoogleFillSkip"))l.country="",yield K("");else{const w=u.getCountryByCode(S.country);w&&(l.country=(t=w.country_id)==null?void 0:t.toString(),yield K((y=w.country_id)==null?void 0:y.toString()))}S.city&&(l.city_name=S.city.trim()),S.postal_code&&(l.zipcode=S.postal_code),S.province&&(n("AddressFormGoogleFillSkip")?l.province="":setTimeout(()=>{const w=R.getStateList.find(J=>J.code===S.province||J.name===S.province||J.label===S.province);w?l.province=w.value:l.province=""},500)),_(n("AddressFormGoogleFillSkip")?["city_name"]:["province","city_name"],!0)}}catch(E){oe==null||oe.error("è·å详ç»å°åä¿¡æ¯å¤±è´¥")}W.value=!1,$()}catch(E){oe==null||oe.error("åºç¨å°å建议æ¶åºé")}finally{re.value=!1}});nl(()=>Y(this,null,function*(){T.value?Object.assign(l,O.initialData):((!q.value||Object.keys(q.value).length===0)&&D({}),q.value&&Object.keys(q.value).length>0&&Object.assign(l,q.value)),yield u.fetchCountryList(),Be(),l.country&&K(l.country),G(()=>h.isGoogleAutoAddress,s=>{s&&l.address_1?He():s||(W.value=!1,j.value=[],re.value=!1,ie.value&&(clearTimeout(ie.value),ie.value=null))}),dl(()=>{X.value&&(clearTimeout(X.value),X.value=null)})})),G(()=>u.getCountryList,()=>{h.selectedShippingMethod="",Be()}),G(()=>R.getStateList,()=>{h.selectedShippingMethod="",Ie(),ne.value&&l.province&&Ye(l.province),O.disableStateListPriceUpdate||($.cancel(),T.value?P("update:initialData",B({},l)):D(B({},l)),h.getOrderTotalPrice())}),G(()=>l.country,(s,t)=>Y(this,null,function*(){var y;if(s){if(g.setDefaultShippingCountryId(String(s)),t!=null&&String(s)!==String(t)&&M.value.fields.forEach(E=>{var Te;if(E.type!=="select"||!E.visibleWhen)return;const S=E.visibleWhen,w=S.field==="country"?String(t):String((Te=l[S.field])!=null?Te:""),J=Array.isArray(S.value)?S.value.includes(w):w===S.value,ee=S.not?!J:J,Me=!Q(E),a=M.value.fields.some(v=>v.id===E.id&&v.type==="text"&&Q(v));ee&&Me&&a&&(l[E.id]="")}),T.value?($.cancel(),h.setSelectedAddress(null),t!=null&&String(s)!==String(t)&&(l.province=""),P("update:initialData",B({},l))):(D(B({},l)),h.setSelectedAddress(null),$.cancel()),n("MultiCurrencyFeature")){const E=Number(s),S=u.getCountryById(E),w=(S==null?void 0:S.iso_code_2)||"";Xt({iso2:w,options:V.value,currentCurrency:el((y=U==null?void 0:U.siteInfo)==null?void 0:y.currency,V.value),reload:!1,syncUrl:!0})}K(s)}else K("")}));const Ee=s=>M.value.fields.some(t=>t.id===s&&t.type==="select"&&Q(t));G(()=>l.province,(s,t)=>{ne.value&&(t&&s!==t&&(Ee("city_name")&&(l.city_name=""),Ee("district")&&(l.district=""),m.clearDistrictList(),se()),s&&Ee("city_name")&&Ye(s))}),G(()=>l.city_name,(s,t)=>{ne.value&&(t&&s!==t&&Ee("district")&&(l.district="",m.clearDistrictList(),se()),s&&Ee("district")&&Mt(s))}),G(()=>l.district,s=>{if(!$t.value||!s)return;const t=m.getDistrictList.find(y=>y.value===String(s));t!=null&&t.kode_pos&&(l.zipcode=String(t.kode_pos))});const Q=s=>Et(s,l),Je=s=>M.value.fields.some(t=>t.id===s&&Q(t)),Ke=H(()=>M.value.fields.filter(s=>s.visibleWhen));G(()=>Ke.value.map(s=>Q(s)),(s,t)=>{Ke.value.forEach((y,E)=>
1{t!=null&&t[E]&&!s[E]&&(Je(y.id)?y.type==="select"&&M.value.fields.some(w=>w.id===y.id&&w.type==="text"&&Q(w))&&(l[y.id]=""):l[y.id]="")})});const he=H(()=>M.value),Qe=()=>{Object.keys(C).forEach(t=>{delete C[t]});const s=gl(he.value.fields,l,b("REQUIRE_FIELD"));return Object.assign(C,s),Object.keys(C).length===0},Xe=()=>{if($.cancel(),T.value||D(B({},l)),Qe()){const s=B({},l);return he.value.fields.forEach(t=>{!Q(t)&&!Je(t.id)&&(s[t.id]="")}),he.value.fields.forEach(t=>{t.type==="phone"&&(s[`${t.id}_code`]=s[`${t.id}_code`]||"",s[t.id]=`${s[`${t.id}_code`]}${s[t.id]}`,delete s[`${t.id}_code`])}),P("switch-to-shipping",s),P("submit",s),!0}else{if(P("validation-error",C),Object.keys(C).length>0){const s=Object.keys(C)[0],t=document.getElementById(s);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}return!1}};return e({handleSubmit:Xe,validateForm:Qe,resetForm:()=>{Object.keys(l).forEach(s=>{l[s]=""}),he.value.fields.forEach(s=>{s.type==="checkbox"&&(l[s.id]=!1)}),Object.keys(C).forEach(s=>{delete C[s]}),_(["province","city_name"],!1),ne.value&&(f.clearCityList(),m.clearDistrictList(),xe(),se()),u.getCountryList.length>0&&n("AddressFormAutoSelectDefault")&&(l.country=u.getCountryList[0].value,K(l.country))},updateFormData:s=>($.cancel(),Object.keys(l).forEach(t=>{delete l[t]}),Object.assign(l,s),s.country&&K(s.country),T.value?P("update:initialData",B({},l)):D(B({},l)),B({},l))}),(s,t)=>{const y=tl,E=sl,S=al,w=il,J=rl,ee=ll,Me=ol;return d(),p("div",{class:z(["address-form",s.limitMobileHeight?"address-form--mobile-scroll max-lg:max-h-[calc(100dvh-13rem)] max-lg:overflow-y-auto max-lg:overscroll-contain":void 0])},[c("form",{onSubmit:Ce(Xe,["prevent"])},[c("div",bl,[(d(!0),p(te,null,ce(he.value.fields,(a,Te)=>(d(),p(te,null,[Q(a)?(d(),p("div",{key:Te,class:z([a.colSpan==="full"?"col-span-full":a.colSpan==="half"?"col-span-12 md:col-span-6":a.colSpan==="third"?"col-span-12 md:col-span-4":a.colSpan==="quarter"?"col-span-12 md:col-span-3":"col-span-12"])},[a.type==="text"?(d(),p("div",Al,[a.id==="address_1"?(d(),p("div",{key:0,class:z(["relative floating-label-input",{"has-field-error":!!C[a.id]}])},[x(y,{id:a.id,name:a.id,type:a.inputType||"text",modelValue:l[a.id],"onUpdate:modelValue":v=>l[a.id]=v,required:a.required,class:"form-input pt-6 pb-2 px-3 shadow-none",placeholder:" ",onInput:He,onBlur:je,onFocus:Ut,onKeydown:[t[0]||(t[0]=Ne(Ce(v=>o(h).isGoogleAutoAddress&&Ze(1),["prevent"]),["down"])),t[1]||(t[1]=Ne(Ce(v=>o(h).isGoogleAutoAddress&&Ze(-1),["prevent"]),["up"])),t[2]||(t[2]=Ne(Ce(v=>o(h).isGoogleAutoAddress&&ze,["prevent"]),["enter"])),Ne(je,["esc"])]},null,8,["id","name","type","modelValue","onUpdate:modelValue","required"]),c("label",{for:a.id,class:"floating-label"},[Z(A(a.label)+" ",1),a.required?(d(),p("span",Tl,"*")):F("",!0)],8,xl),o(h).isGoogleAutoAddress&&W.value&&j.value.length>0?(d(),p("div",Cl,[(d(!0),p(te,null,ce(j.value,(v,de)=>(d(),p("div",{key:de,class:z(["px-4 py-3 cursor-pointer hover:bg-gray-100 transition-colors address-suggestion-item md:py-2",{"bg-gray-100 selected":ae.value===de}]),onClick:et=>ke(v),onTouchstart:et=>ae.value=de,onTouchend:et=>ke(v)},A(v.address),43,Nl))),128))])):F("",!0),o(h).isGoogleAutoAddress&&re.value?(d(),p("div",Rl,t[3]||(t[3]=[c("span",{class:"loading-spinner"},null,-1)]))):F("",!0)],2)):(d(),p("div",{key:1,class:z(["relative floating-label-input",{"has-dialing":a.id==="mobile"&&a.dialing,"has-field-error":!!C[a.id]}])},[x(y,{id:a.id,name:a.id,type:a.inputType||"text",modelValue:l[a.id],"onUpdate:modelValue":v=>l[a.id]=v,required:a.required,disabled:a.disabled,class:"form-input pt-6 pb-2 px-3 shadow-none",placeholder:" ",onInput:v=>a.id==="csp"&&ye.value?wt():a.id==="zipcode"&&Se.value?Vt():null,onBlur:v=>a.id==="zipcode"&&Se.value?Bt():null,maxlength:a.maxlength||255},null,8,["id","name","type","modelValue","onUpdate:modelValue","required","disabled","onInput","onBlur","maxlength"]),a.id==="mobile"&&a.dialing?(d(),p("span",Ll,A(a.dialing),1)):F("",!0),c("label",{for:a.id,class:"floating-label"},[Z(A(a.label)+" ",1),a.required?(d(),p("span",Il,"*")):F("",!0)],8,Dl),a.id==="zipcode"&&Se.value&&Fe.value?(d(),p("div",Ol,t[4]||(t[4]=[c("span",{class:"loading-spinner"},null,-1)]))):F("",!0)],2)),a.hint?(d(),p("p",{key:2,class:z(["text-[12px]",o(n)("AddressFormHintMuted")?"!text-[#69727c] [&_*]:!text-[#69727c]":"text-[#f00]"]),innerHTML:a.hint},null,10,Fl)):F("",!0),C[a.id]?(d(),p("p",ql,A(C[a.id]),1)):F("",!0)])):a.type==="select"?(d(),p("div",kl,[c("div",{class:z(["relative floating-label-input",{"has-field-error":!!C[a.id]}])},[x(ee,{id:a.id,modelValue:l[a.id],"onUpdate:modelValue":v=>
1l[a.id]=v,required:a.required,class:"form-input",disabled:a.disabled||a.id==="country"&&ge.value||a.id==="province"&&kt.value||a.id==="city_name"&&be.value||a.id==="district"&&Ae.value},{default:L(()=>[x(S,{class:"select-trigger pt-6 pb-2 px-3 h-[52px] shadow-none"},{default:L(()=>{var v;return[a.id==="country"&&ge.value||a.id==="province"&&De.value||a.id==="city_name"&&be.value||a.id==="district"&&Ae.value?(d(),p("div",Ml,t[5]||(t[5]=[c("span",{class:"loading-spinner mr-2"},null,-1)]))):(d(),p("div",Pl,[a.flagIcon&&o(n)("addressFormCountryFlag")&&a.id=="country"?(d(),p("svg",$l,[c("use",{"xlink:href":`#icon-${(v=o(u).getCountryList.find(de=>de.value===l[a.id]))==null?void 0:v.flagIcon}`},null,8,Ul)])):F("",!0),x(E,{placeholder:" ",class:"select-value"})]))]}),_:2},1024),x(J,null,{default:L(()=>[a.id==="country"&&ge.value||a.id==="province"&&De.value||a.id==="city_name"&&be.value||a.id==="district"&&Ae.value?(d(),p("div",wl," loading... ")):(d(!0),p(te,{key:1},ce(a.options||[],v=>(d(),le(w,{key:v.value,value:v.value},{default:L(()=>[c("div",Vl,[a.flagIcon&&o(n)("addressFormCountryFlag")&&a.id=="country"?(d(),p("svg",Bl,[c("use",{"xlink:href":`#icon-${v.flagIcon}`},null,8,Yl)])):F("",!0),Z(" "+A(v.label),1)])]),_:2},1032,["value"]))),128))]),_:2},1024)]),_:2},1032,["id","modelValue","onUpdate:modelValue","required","disabled"]),c("label",{for:a.id,class:z(["floating-label select-label",{"label-active":l[a.id]||a.id==="country"&&ge.value||a.id==="province"&&De.value||a.id==="city_name"&&be.value||a.id==="district"&&Ae.value}])},[Z(A(a.label)+" ",1),a.required?(d(),p("span",jl,"*")):F("",!0)],10,Hl)],2),a.hint?(d(),p("p",{key:0,class:z(["text-[12px]",o(n)("AddressFormHintMuted")?"!text-[#69727c] [&_*]:!text-[#69727c]":"text-[#f00]"]),innerHTML:a.hint},null,10,Zl)):F("",!0),C[a.id]?(d(),p("p",zl,A(C[a.id]),1)):F("",!0)])):a.type==="checkbox"?(d(),p("div",Gl,[c("div",Wl,[c("div",Jl,[x(Me,{id:a.id,modelValue:l[a.id],"onUpdate:modelValue":v=>l[a.id]=v,class:"checkbox-input shadow-none"},null,8,["id","modelValue","onUpdate:modelValue"]),c("label",{for:a.id,class:"checkbox-label"},[Z(A(a.label),1),a.required?(d(),p("span",Ql,"*")):F("",!0)],8,Kl)]),C[a.id]?(d(),p("p",Xl,A(C[a.id]),1)):F("",!0)])])):a.type==="radio"?(d(),p("div",es,[c("div",ts,[c("label",ls,[Z(A(a.label),1),a.required?(d(),p("span",ss,"*")):F("",!0)]),c("div",as,[(d(!0),p(te,null,ce(a.options,v=>(d(),p("div",{key:v.value,class:"flex items-center space-x-2 radio-option"},[x(y,{id:`${a.id}-${v.value}`,type:"radio",name:a.id,value:v.value,class:"radio-input",checked:l[a.id]===v.value,onChange:de=>l[a.id]=v.value},null,8,["id","name","value","checked","onChange"]),c("label",{for:`${a.id}-${v.value}`,class:"radio-label"},A(v.label),9,rs)]))),128))]),C[a.id]?(d(),p("p",is,A(C[a.id]),1)):F("",!0)])])):a.type==="title"?(d(),p("div",os,A(a.label||""),1)):F("",!0)],2)):F("",!0)],64))),256))])],32)],2)}}}),ht=we(ns,[["__scopeId","data-v-a8f7064c"]]),vt=i=>{const e=i||(r=>r);return{siteId:"pt",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},ds=vt(),gt=i=>{const e=i||(r=>r);return{siteId:"ph",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"select",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half",options:[]},{id:"district",type:"select",label:e("PLEASE_SELECT_TOWN"),placeholder:e("PLEASE_SELECT_TOWN"),required:!0,colSpan:"half",options:[]},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"full"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},cs=gt(),bt=i=>{const e=i||(r=>r);return{siteId:"id",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"select",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half",options:[]},{id:"district",type:"select",label:e("PLEASE_SELECT_TOWN"),placeholder:e("PLEASE_SELECT_TOWN"),required:!0,colSpan:"half",options:[]},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"full"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},us=bt(),At=i=>{const e=i||(r=>r);return{siteId:"my",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"half"},{id:"city_name",type:"select",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half",options:[]},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"full"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},ps=At(),xt=i=>{const e=i||(r=>r);return{siteId:"vn",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"select",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half",options:[]},{id:"district",type:"select",label:e("PLEASE_SELECT_TOWN"),placeholder:e("PLEASE_SELECT_TOWN"),required:!0,colSpan:"half",options:[]},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"full",disabled:!0},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},_s=xt(),Tt=i=>{const e=i||(r=>r);return{siteId:"ca",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"address_2",type:"text",label:e("ADDRESS_LINE_2"),placeholder:e("ADDRESS_LINE_2"),required:!1,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},fs=Tt(),Ct=i=>{const e=i||(r=>r);return{siteId:"de",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},Ss=Ct(),Nt=i=>{const e=i||(r=>r);return{siteId:"en",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"address_2",type:"text",label:e("ADDRESS_LINE_2"),placeholder:e("ADDRESS_LINE_2"),required:!1,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},ys=Nt(),Rt=i=>{const e=i||(r=>r);return{siteId:"pl",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),hint:e("ADDRESS_LINE_1_HINT"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),hint:e("STATE_PROVINCE_HINT"),required:!0,colSpan:"full"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},ms=Rt(),Lt=i=>{const e=i||(r=>r);return{siteId:"eu",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),hint:e("ADDRESS_LINE_1_HINT"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),hint:e("STATE_PROVINCE_HINT"),required:!0,colSpan:"full"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},Es=Lt(),Dt=i=>{const e=i||(r=>r);return{siteId:"sg",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"csp",type:"text",label:e("DLOCAL_DOCUMENT_NAME"),placeholder:e("DLOCAL_DOCUMENT_NAME"),required:!0,colSpan:"full",disabled:!1,visibleWhen:{field:"country",value:"206"}},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},hs=Dt(),It=i=>{const e=i||(r=>r);return{siteId:"ni",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"short_address",type:"text",label:e("SHORT_ADDRESS"),placeholder:e("SHORT_ADDRESS"),required:!0,hint:e("Please enter a short address, which consists of 4 letters and 4 numbers."),validation:{pattern:"^(?=(?:.*[A-Za-z]){4})(?=(?:.*\\d){4})[A-Za-z\\d]{8}$",message:e("Please enter a short address, which consists of 4 letters and 4 numbers.")},colSpan:"full",visibleWhen:{field:"country",value:"184"}},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full",hint:"Address must be in English characters"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"full"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"}
1,{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},vs=It(),Ot=i=>{const e=i||(r=>r);return{siteId:"jp",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"half"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"half"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half",hint:"éµä¾¿çªå·ãå
¥åããã¨èªåã§å
¥åããã¾ã",disabled:!0},{id:"district",type:"text",label:e("PLEASE_SELECT_TOWN"),placeholder:e("PLEASE_SELECT_TOWN"),required:!0,colSpan:"half",hint:"éµä¾¿çªå·ãå
¥åããã¨èªåã§å
¥åããã¾ã",disabled:!0},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},gs=Ot(),Ft=i=>{const e=i||(r=>r);return{siteId:"kr",submitButtonText:e("SAVE_ADDRESS"),fields:[{id:"country",type:"select",label:e("COUNTRY_REGION"),placeholder:e("SELECT_COUNTRY"),required:!0,colSpan:"full",options:[]},{id:"first_name",type:"text",label:e("FIRST_NAME"),placeholder:e("FIRST_NAME"),required:!0,colSpan:"half"},{id:"last_name",type:"text",label:e("LAST_NAME"),placeholder:e("LAST_NAME"),required:!0,colSpan:"half"},{id:"address_1",type:"text",label:e("ADDRESS_LINE_1"),placeholder:e("ADDRESS_LINE_1"),required:!0,colSpan:"full",hint:"ëë¡ëª
+ 건물ë²í¸ + ìì¸ì£¼ì(ë·í¸ì ë±) ì):ë§ë¤ë¡5길 25 xxxë xxxí¸ (ìê³ë, xxìíí¸)"},{id:"province",type:"select",label:e("STATE_PROVINCE"),placeholder:e("STATE_PROVINCE"),required:!0,colSpan:"half"},{id:"city_name",type:"text",label:e("CITY"),placeholder:e("CITY"),required:!0,colSpan:"half"},{id:"zipcode",type:"text",label:e("ZIP_CODE"),placeholder:e("ZIP_CODE"),required:!0,colSpan:"full"},{id:"mobile",type:"text",label:e("PHONE_NUMBER"),required:!0,colSpan:"full",validation:{pattern:"^\\+?[0-9\\s-]{3,20}$",message:e("CELL_PHONE_NUMBER_FORMAT_ERROR")}}]}},bs=Ft(),As={pt:ds,cl:yl,ph:cs,id:us,my:ps,vn:_s,ca:fs,de:Ss,en:ys,br:Sl,mx:fl,pl:ms,eu:Es,sg:hs,ni:vs,jp:gs,kr:bs},xs={pt:vt,cl:_l,ph:gt,id:bt,my:At,vn:xt,ca:Tt,de:Ct,en:Nt,br:pl,mx:ul,pl:Rt,eu:Lt,sg:Dt,ni:It,jp:Ot,kr:Ft},it="pt",qt=(i=it,e)=>{const r=i=="global"?it:i,n=xs[r];return n?n(e):As[r]||null},Ts={class:"flex justify-center items-center border border-[rgba(0,0,0,0.1)] rounded-[8px] py-[16px] mt-[16px] xl:border-none xl:py-0 xl:mt-0"},Cs={class:"mt-4 min-h-0 flex-1 overflow-y-auto max-lg:overscroll-contain"},Ns=fe({__name:"AddAddressDialog",props:{open:{type:Boolean,default:!1},selectedSite:{type:String,default:"pt"}},emits:["update:open","address-added"],setup(i,{emit:e}){const{t:r}=_e(),n=i,b=e,{$message:u}=Re(),R=Le(),f=Ue(),m=k(qt(n.selectedSite,r)),h=k({name:"",phone:"",address:"",country:"",province:"",city:"",postcode:"",is_default:1}),q=k(null),D=k(!1),g=O=>Y(this,null,function*(){var P;try{D.value=!0,(P=f.userInfo)!=null&&P.uid&&(O.uid=f.userInfo.uid);const l=yield pe.addUserOrderAddress(O);if(l.code===200){u.success("å°åæ·»å æå");const T=l.data||{};return T.id?b("address-added",T):(yield R.getUserOrderAddressList(),b("address-added",{})),I(),b("update:open",!1),R.getOrderTotalPrice(),!0}else return u.error(l.msg||"å°åæ·»å 失败"),!1}catch(l){return u.error("å°åæ·»å 失败"),!1}finally{D.value=!1}}),I=()=>{h.value={name:"",phone:"",address:"",country:"",province:"",city:"",postcode:"",is_default:1},q.value&&typeof q.value.resetForm=="function"&&q.value.resetForm()},N=O=>!1,U=O=>{},V=()=>{q.value&&q.value.handleSubmit()};return(O,P)=>(d(),le(o(dt),{open:i.open,"onUpdate:open":P[2]||(P[2]=l=>O.$emit("update:open",l))},{default:L(()=>[x(o(_t),{asChild:""},{default:L(()=>[Ve(O.$slots,"default",{},()=>[c("div",Ts,[x(o(ue),{variant:"ghost",class:"items-center xl:text-[#FF640A] font-bold hover:text-[#FF640A]"},{default:L(()=>[Z(A(o(r)("ADD_NEW_ADDRESS")),1)]),_:1}),P[3]||(P[3]=c("i",{class:"icon-a-icon1x-9 iconfont xl:hidden"},null,-1))])],!0)]),_:3}),x(o(pt),{class:"dialog-content w-[calc(100vw-2rem)] max-w-[800px] max-lg:flex max-lg:max-h-[calc(100dvh-2rem)] max-lg:flex-col max-lg:overflow-hidden"},{default:L(()=>[x(o(ct),{class:"shrink-0"},{default:L(()=>[x(o(ut),null,{default:L(()=>[Z(A(o(r)("ADD_NEW_ADDRESS")),1)]),_:1})]),_:1}),c("div",Cs,[x(ht,{config:m.value,"initial-data":h.value,"limit-mobile-height":!1,"onUpdate:initialData":P[0]||(P[0]=l=>h.value=l),onSubmit:g,onValidationError:N,onSwitchToShipping:U,ref_key:"addressFormRef",ref:q,disableStateListPriceUpdate:!0},null,8,["config","initial-data"])]),x(o(ft),{class:"dialog-footer mt-6 shrink-0 gap-2"},{default:L(()=>[x(o(ue),{variant:"outline",onClick:P[1]||(P[1]=l=>O.$emit("update:open",!1)),class:"hover:text-[#000]"},{default:L(()=>
1[Z(A(o(r)("CANCEL")),1)]),_:1}),x(o(ue),{onClick:V,loading:D.value,"loading-size":8,disabled:D.value},{default:L(()=>[Z(A(o(r)("SAVE")),1)]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:3},8,["open"]))}}),ot=we(Ns,[["__scopeId","data-v-00cf8888"]]),Rs={key:0,class:"flex shrink-0 items-center justify-center py-8"},Ls={class:"ml-2 text-[#666]"},Ds={key:1,class:"mt-4 min-h-0 flex-1 overflow-y-auto max-lg:overscroll-contain"},Is=fe({__name:"EditAddressDialog",props:{open:{type:Boolean,default:!1},selectedSite:{type:String,default:"pt"},address:{type:Object,default:()=>({}),required:!0}},emits:["update:open","address-updated"],setup(i,{emit:e}){const{t:r}=_e(),n=i,b=e,{$message:u}=Re(),R=Le(),f=Ue(),m=St(),h=yt(),q=k(qt(n.selectedSite,r)),D=k({}),g=k(!1);G([()=>n.open,()=>n.address.id],C=>Y(this,[C],function*([l,T]){var M;if(l&&T)try{g.value=!0,(!m.initialized||m.countries.length===0)&&(yield m.fetchCountryList());const $=yield pe.getUserOrderAddressDetail({address_id:T,uid:(M=f.userInfo)==null?void 0:M.uid});if($.code===200&&$.data){const _=B({},$.data);if(_.country!==void 0&&(_.country=String(_.country)),_.province!==void 0&&(_.province=String(_.province)),_.city!==void 0&&(_.city=String(_.city)),D.value=_,_.country)try{yield h.fetchStateList(Number(_.country))}catch(ve){}}else{const _=B({},n.address);if(_.country!==void 0&&(_.country=String(_.country)),_.province!==void 0&&(_.province=String(_.province)),_.city!==void 0&&(_.city=String(_.city)),D.value=_,u.warning("è·åå°å详æ
失败ï¼è¯·éè¯"),_.country)try{yield h.fetchStateList(Number(_.country))}catch(ve){}}}catch($){const _=B({},n.address);if(_.country!==void 0&&(_.country=String(_.country)),_.province!==void 0&&(_.province=String(_.province)),_.city!==void 0&&(_.city=String(_.city)),D.value=_,u.error("è·åå°å详æ
失败"),_.country)try{yield h.fetchStateList(Number(_.country))}catch(ve){}}finally{g.value=!1}}),{immediate:!0}),G(()=>D.value.country,l=>Y(this,null,function*(){if(l)try{yield h.fetchStateList(Number(l))}catch(T){u.error("å è½½çä»½æ°æ®å¤±è´¥")}}));const I=k(null),N=k(!1),U=l=>Y(this,null,function*(){var T;try{return N.value=!0,(T=f.userInfo)!=null&&T.uid&&(l.uid=f.userInfo.uid),l.address_id=n.address.id,(yield R.updateUserOrderAddress(l)).success?(b("address-updated",n.address.id),b("update:open",!1),!0):!1}catch(C){return u.error("å°åæ´æ°å¤±è´¥"),!1}finally{N.value=!1}}),V=l=>!1,O=l=>{},P=()=>{I.value&&I.value.handleSubmit()};return(l,T)=>(d(),le(o(dt),{open:i.open,"onUpdate:open":T[2]||(T[2]=C=>l.$emit("update:open",C))},{default:L(()=>[x(o(_t),{asChild:""},{default:L(()=>[Ve(l.$slots,"default",{},()=>[T[3]||(T[3]=c("i",{class:"iconfont icon-edit text text-[18px] text-black cursor-pointer"},null,-1))],!0)]),_:3}),x(o(pt),{class:"dialog-content w-[calc(100vw-2rem)] max-w-[800px] max-lg:flex max-lg:max-h-[calc(100dvh-2rem)] max-lg:flex-col max-lg:overflow-hidden"},{default:L(()=>[x(o(ct),{class:"shrink-0"},{default:L(()=>[x(o(ut),null,{default:L(()=>[Z(A(o(r)("ADD_ADDRESS")),1)]),_:1})]),_:1}),g.value?(d(),p("div",Rs,[T[4]||(T[4]=c("i",{class:"icon-loading iconfont animate-spin text-[32px] text-[#FF640A]"},null,-1)),c("span",Ls,A(o(r)("LOADING")),1)])):(d(),p("div",Ds,[x(ht,{config:q.value,"initial-data":D.value,"limit-mobile-height":!1,"onUpdate:initialData":T[0]||(T[0]=C=>D.value=C),onSubmit:U,onValidationError:V,onSwitchToShipping:O,ref_key:"addressFormRef",ref:I,disableStateListPriceUpdate:!0},null,8,["config","initial-data"])])),x(o(ft),{class:"dialog-footer mt-6 shrink-0 gap-2"},{default:L(()=>[x(o(ue),{variant:"outline",onClick:T[1]||(T[1]=C=>l.$emit("update:open",!1)),class:"hover:text-[#000]"},{default:L(()=>[Z(A(o(r)("CANCEL")),1)]),_:1}),x(o(ue),{onClick:P,loading:N.value,"loading-size":8,disabled:N.value||g.value},{default:L(()=>[Z(A(o(r)("SAVE")),1)]),_:1},8,["loading","disabled"])]),_:1})]),_:1})]),_:3},8,["open"]))}}),Os=we(Is,[["__scopeId","data-v-48be039b"]]),Fs=i=>{var e;return(e=i.consignee)!=null&&e.trim()?i.consignee.trim():[i.first_name,i.last_name].filter(Boolean).join(" ").trim()},qs=i=>{var e,r;return String((r=(e=i.city_name)!=null?e:i.city)!=null?r:"").trim()},ks=i=>[i.address_1,i.address_2].map(e=>
1e==null?void 0:e.trim()).filter(Boolean).join(" "),Ms=()=>{const i=mt(),e=Le(),r=nt(),{$message:n}=Re(),{t:b}=_e(),{userAddressList:u,userAddressListLoading:R}=Pe(i),f=k(!1),m=k(!1),h=H(()=>{var I,N;return(N=(I=r.siteInfo)==null?void 0:I.lang)!=null?N:"en"}),q=(I=!1)=>i.fetchUserAddressList(I);return{list:u,isLoading:R,isDeleting:f,isSettingDefault:m,selectedSite:h,fetchList:q,setDefaultAddress:I=>Y(void 0,null,function*(){if(!(I.is_default===1||m.value)){m.value=!0;try{const N=yield e.selectAddress(I);if(N.success){n.success(N.message||b("SUCCESSFUL_OPERATION")),yield q(!0);return}n.error(N.message||b("OPERATION_FAILED"))}finally{m.value=!1}}}),deleteAddress:I=>Y(void 0,null,function*(){var N;if(f.value)return!1;f.value=!0;try{const U=st(B({},I),{user_id:(N=I.user_id)!=null?N:I.uid});return(yield e.delUserOrderAddress(U))?(n.success(b("SUCCESSFUL_OPERATION")),yield q(!0),!0):!1}finally{f.value=!1}})}},Ps={class:"rounded-lg border border-[#DFE3E6] bg-white px-4 lg:px-6","aria-hidden":"true"},$s={class:"divide-y divide-[#DFE3E6] py-3"},Us={class:"flex animate-pulse flex-col gap-4 lg:flex-row lg:items-start lg:justify-between lg:gap-8"},ws={class:"min-w-0 flex-1"},Vs={class:"flex flex-wrap items-center gap-x-3 gap-y-1"},Bs={key:0,class:"h-[18px] w-20 rounded bg-[#F1F3F5]"},Ys={key:0,class:"border-t border-[#DFE3E6] py-4"},Hs=fe({__name:"UserAddressListSkeleton",props:{count:{default:2},showFooter:{type:Boolean,default:!0}},setup(i){return(e,r)=>(d(),p("section",Ps,[c("ul",$s,[(d(!0),p(te,null,ce(e.count,n=>(d(),p("li",{key:n,class:"py-5 first:pt-3 last:pb-3"},[c("div",Us,[c("div",ws,[c("div",Vs,[r[0]||(r[0]=c("div",{class:"h-5 w-28 rounded bg-[#F1F3F5] lg:h-6 lg:w-32"},null,-1)),n===1?(d(),p("div",Bs)):F("",!0)]),r[1]||(r[1]=c("div",{class:"mt-2 h-[22px] w-full max-w-lg rounded bg-[#F1F3F5]"},null,-1)),r[2]||(r[2]=c("div",{class:"mt-1 h-[22px] w-4/5 max-w-md rounded bg-[#F1F3F5]"},null,-1)),r[3]||(r[3]=c("div",{class:"mt-1 h-[22px] w-36 rounded bg-[#F1F3F5]"},null,-1))]),r[4]||(r[4]=c("div",{class:"flex shrink-0 flex-wrap items-center gap-x-5 gap-y-2"},[c("div",{class:"h-[22px] w-14 rounded bg-[#F1F3F5]"}),c("div",{class:"h-[22px] w-20 rounded bg-[#F1F3F5]"}),c("div",{class:"h-[22px] w-12 rounded bg-[#F1F3F5]"})],-1))])]))),128))]),e.showFooter?(d(),p("div",Ys,r[5]||(r[5]=[c("div",{class:"h-[22px] w-28 animate-pulse rounded bg-[#F1F3F5]"},null,-1)]))):F("",!0)]))}}),js={key:1,class:"rounded-lg border border-[#DFE3E6] bg-white px-4 py-16 lg:px-6"},Zs={key:2,class:"rounded-lg border border-[#DFE3E6] bg-white px-4 lg:px-6"},zs={class:"divide-y divide-[#DFE3E6] py-3"},Gs={class:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between lg:gap-8"},Ws={class:"min-w-0 flex-1"},Js={class:"flex flex-wrap items-center gap-x-3 gap-y-1"},Ks={class:"text-sm font-bold leading-[22px] text-[#1C2024] lg:text-base lg:leading-6"},Qs={key:0,class:"inline-flex items-center rounded bg-[#F1F3F5] px-2 py-0.5 text-xs font-medium leading-[18px] text-[#69727C]"},Xs={class:"mt-2 break-words text-sm font-medium leading-[22px] text-[#1C2024]"},ea={class:"mt-1 text-sm font-medium leading-[22px] text-[#69727C]"},ta={key:0,class:"mt-1 text-sm font-medium leading-[22px] text-[#69727C]"},la={class:"flex shrink-0 flex-wrap items-center gap-x-5 gap-y-2"},sa=["onClick"],aa=["disabled","onClick"],ra=["onClick"],ia=fe({__name:"UserAddressList",props:{items:{},isLoading:{type:Boolean},isSettingDefault:{type:Boolean},defaultAddressLabel:{},setDefaultLabel:{},modifyLabel:{},deleteLabel:{}},emits:["set-default","edit","delete"],setup(i,{emit:e}){const{t:r}=_e(),n=e,b=u=>{var f,m;return[qs(u),(f=u.zipcode)==null?void 0:f.trim(),(m=u.country_name)==null?void 0:m.trim()].filter(Boolean).join(", ")};return(u,R)=>(d(),p("div",null,[u.isLoading?(d(),le(Hs,{key:0})):u.items.length?(d(),p("section",Zs,[c("ul",zs,[(d(!0),p(te,null,ce(u.items,f=>(d(),p("li",{key:f.id,class:"py-5 first:pt-3 last:pb-3"},[c("div",Gs,[c("div",Ws,[c("div",Js,[c("p",Ks,A(o(Fs)(f)),1),f.is_default===1?(d(),p("span",Qs,A(u.defaultAddressLabel),1)):F("",!0)]),c("p",Xs,A(o(ks)(f)),1),c("p",ea,A(b(f)),1),f.mobile?(d(),p("p",ta,A(f.mobile),1)):
1F("",!0)]),c("div",la,[c("button",{type:"button",class:z(o($e)),onClick:m=>n("edit",f)},A(u.modifyLabel),11,sa),f.is_default!==1?(d(),p("button",{key:0,type:"button",class:z(o($e)),disabled:u.isSettingDefault,onClick:m=>n("set-default",f)},A(u.setDefaultLabel),11,aa)):F("",!0),c("button",{type:"button",class:"inline-flex items-center text-sm font-medium leading-[22px] text-[#69727C] transition-colors hover:text-[#D34900] disabled:cursor-not-allowed disabled:opacity-50",onClick:m=>n("delete",f)},A(u.deleteLabel),9,ra)])])]))),128))])])):(d(),p("div",js,[x(ml,{title:o(r)("NO_SHIPPING_ADDRESS")},{default:L(()=>[Ve(u.$slots,"empty-action")]),_:3},8,["title"])]))]))}}),oa={class:"rounded-lg bg-white p-4 lg:p-6"},na={class:"flex flex-col gap-6"},da={class:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"},ca={class:"text-xl font-bold leading-[27px] tracking-[-0.04px] text-[#1C2024]"},ua={class:"mt-6"},pa=fe({__name:"index",setup(i){const{t:e}=_e(),r=mt(),{list:n,isLoading:b,isDeleting:u,isSettingDefault:R,selectedSite:f,fetchList:m,setDefaultAddress:h,deleteAddress:q}=Ms();Jt("user-address-list",()=>r.fetchUserAddressList());const D=k(!1),g=k(!1),I=k(!1),N=k(null),U=k(!1),V=k(null),O=M=>{N.value=B({},M),I.value=!0},P=M=>{I.value=M,M||(N.value=null)},l=M=>{V.value=M,U.value=!0},T=()=>Y(this,null,function*(){if(!V.value)return;(yield q(V.value))&&(U.value=!1,V.value=null)}),C=()=>Y(this,null,function*(){D.value=!1,g.value=!1,I.value=!1,N.value=null,yield m()});return(M,$)=>(d(),le(El,null,{default:L(()=>[c("div",oa,[c("div",na,[c("div",da,[c("h1",ca,A(o(e)("LOCAL_AREA")),1),!o(b)&&o(n).length?(d(),le(ot,{key:0,open:o(D),"selected-site":o(f),"onUpdate:open":$[0]||($[0]=_=>D.value=_),onAddressAdded:C},{default:L(()=>[x(o(ue),{type:"button",class:z([o(hl),"w-full gap-2 sm:w-auto"])},{default:L(()=>[x(o(rt),{class:"size-4"}),Z(" "+A(o(e)("ADD_ADDRESS")),1)]),_:1},8,["class"])]),_:1},8,["open","selected-site"])):F("",!0)]),x(ia,{items:o(n),"is-loading":o(b),"is-setting-default":o(R),"default-address-label":o(e)("DEFAULT_ADDRESS"),"set-default-label":o(e)("SET_DEFAULT"),"modify-label":o(e)("MODIFY"),"delete-label":o(e)("DELETE"),onSetDefault:o(h),onEdit:O,onDelete:l},{"empty-action":L(()=>[c("div",ua,[x(ot,{open:o(g),"selected-site":o(f),"onUpdate:open":$[1]||($[1]=_=>g.value=_),onAddressAdded:C},{default:L(()=>[c("button",{type:"button",class:z([o($e),"inline-flex items-center gap-1"])},[x(o(rt),{class:"size-4"}),Z(" "+A(o(e)("ADD_ADDRESS")),1)],2)]),_:1},8,["open","selected-site"])])]),_:1},8,["items","is-loading","is-setting-default","default-address-label","set-default-label","modify-label","delete-label","onSetDefault"])])]),o(N)?(d(),le(Os,{key:0,open:o(I),address:o(N),"selected-site":o(f),"onUpdate:open":P,onAddressUpdated:C},{default:L(()=>$[3]||($[3]=[c("span",{class:"sr-only"},null,-1)])),_:1},8,["open","address","selected-site"])):F("",!0),x(Kt,{open:o(U),title:o(e)("DELETE"),"cancel-text":o(e)("CANCEL"),"confirm-text":o(e)("DETERMINE"),"confirm-loading":o(u),"onUpdate:open":$[2]||($[2]=_=>U.value=_),onConfirm:T},null,8,["open","title","cancel-text","confirm-text","confirm-loading"])]),_:1}))}}),Da=Object.freeze(Object.defineProperty({__proto__:null,default:pa},Symbol.toStringTag,{value:"Module"}));export{ot as A,Os as E,ht as _,qt as g,Da as i,vl as u,gl as v};
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.