(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[7],{1201:function(e,t,n){"use strict";n.r(t),n.d(t,"queryUserAddress",(function(){return c})),n.d(t,"clearDefaultChangeFlag",(function(){return L})),n.d(t,"defaultChangeShipto",(function(){return H})),n.d(t,"CountrySelectDialog",(function(){return et})),n.d(t,"ZipCodeSearchDialog",(function(){return it})),n.d(t,"ShiptoDialog",(function(){return ft})),n.d(t,"ShipToBar",(function(){return yt})),n.d(t,"updateCookies",(function(){return I})),n.d(t,"updateStorage",(function(){return D})),n.d(t,"getShiptoFromStorage",(function(){return j})),n.d(t,"getSiteByRegion",(function(){return T})),n.d(t,"setRealSite",(function(){return B}));n(691),n(692),n(146),n(378),n(379),n(380),n(120),n(113);var a=n(7),r=n(34),o={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AO:"AOA",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BH:"BHD",BI:"BIF",BJ:"XOF",BM:"BMD",BN:"BND",BO:"BOB",BR:"BRL",BT:"INR",BV:"NOK",BW:"BWP",BY:"BYN",BZ:"BZD",CA:"CAD",CG:"XAF",CH:"CHF",CL:"CLP",CM:"XAF",CO:"COP",CR:"CRC",CW:"ANG",CX:"AUD",CY:"EUR",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",UK:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GBP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HN:"HNL",HR:"HRK",HT:"HTG",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IQ:"IQD",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KI:"AUD",KN:"XCD",KR:"KRW",KW:"KWD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LS:"LSL",LT:"EUR",LU:"EUR",LV:"EUR",MA:"MAD",MC:"EUR",ME:"EUR",ML:"XOF",MM:"MMK",MN:"MNT",MP:"USD",MQ:"EUR",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MX:"MXN",MY:"MYR",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"PAB",PE:"PEN",PF:"XPF",PG:"PGK",PH:"PHP",PK:"PKR",PL:"PLN",PN:"NZD",PR:"USD",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SE:"SEK",SG:"SGD",SI:"EUR",SK:"EUR",SL:"SLL",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",ST:"STD",SV:"SVC",SX:"ANG",SZ:"SZL",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",US:"USD",UY:"UYU",UZ:"UZS",VC:"XCD",VE:"VES",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WS:"WST",YE:"YER",YT:"EUR",ZA:"ZAR"},i={AF:"Afghanistan",ALA:"Aland Islands",AL:"Albania",GBA:"Alderney",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",ASC:"Ascension Island",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",BQ:"Caribbean Netherlands",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",ZR:"Congo, The Democratic Republic Of The",CG:"Congo, The Republic of Congo",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia (local name: Hrvatska)",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GGY:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong,China",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IQ:"Iraq",IE:"Ireland",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JEY:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KR:"Korea",KS:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macau,China",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",MNE:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",OTHER:"Other Country",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BLM:"Saint Barthelemy",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MAF:"Saint Martin",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",SRB:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia (Slovak Republic)",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",SGS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",PM:"St. Pierre and Miquelon",SR:"Suriname",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",TW:"Taiwan,China",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TLS:"Timor-Leste",TG:"Togo",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",UK:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican City State (Holy See)",VE:"Venezuela",VN:"Vietnam",VG:"Virgin Islands (British)",VI:"Virgin Islands (U.S.)",WF:"Wallis And Futuna Islands",YE:"Yemen",ZM:"Zambia",EAZ:"Zanzibar",ZW:"Zimbabwe"},s=[{locale:"en_US",site:"glo",text:"English",switchable:!0},{locale:"ru_RU",site:"rus",text:"Русский",switchable:!0},{locale:"pt_BR",site:"bra",text:"Português",switchable:!0},{locale:"es_ES",site:"esp",text:"Español",switchable:!0},{locale:"fr_FR",site:"fra",text:"Français",switchable:!0},{locale:"pl_PL",site:"pol",text:"Polski",switchable:!0},{locale:"iw_IL",site:"isr",text:"עברית",switchable:!0},{locale:"it_IT",site:"ita",text:"Italiano",switchable:!0},{locale:"tr_TR",site:"tur",text:"Türkçe",switchable:!0},{locale:"de_DE",site:"deu",text:"Deutsch",switchable:!0},{locale:"ko_KR",site:"kor",text:"한국어",switchable:!0},{locale:"ar_MA",site:"ara",text:"العربية",switchable:!0},{locale:"ja_JP",site:"jpn",text:"日本語",switchable:!0},{locale:"nl_NL",site:"nld",text:"Netherlands",switchable:!0},{locale:"th_TH",site:"tha",text:"ภาษาไทย",switchable:!0},{locale:"en_US",site:"vnm",text:"English",switchable:!1},{locale:"in_ID",site:"idn",text:"Versi Bahasa Indonesia",switchable:!0}],c=function(){if(window.ship_to_data_cache_key)return new Promise((function(e){e(window.ship_to_data_cache_key)}));var e=a.a.getRegion();e="CN"===e?"US":e||"US";var t=a.a.getProvince()||"",n=a.a.getCity()||"";return r.a.request({api:"mtop.aliexpress.address.shipto.recommend",v:"1.0",dataType:"originaljsonp",data:{countryCode:e,provinceCode:t,cityCode:n,targetLanguage:a.a.getLocale(),_lang:a.a.getLocale()}}).then((function(e){return e.data?(window.ship_to_data_cache_key=e.data,e.data):null}))},l="icbu-messenger",u="postMessage"in window;function d(e,t){this.target=e,this.name=t}function p(e,t){this.targets={},this.name=e,this.listenFunc=[],l=t||l,this.initListen()}d.prototype.send=u?function(e){this.target.postMessage(l+e,"*")}:function(e){var t=window.navigator[l+this.name];if("function"!=typeof t)throw new Error("target callback function is not defined");t(l+e,window)},p.prototype.addTarget=function(e,t){var n=new d(e,t);this.targets[t]=n},p.prototype.initListen=function(){var e=this,t=function(t){if("object"==typeof t&&t.data&&(t=t.data),"string"==typeof t&&-1!=t.indexOf(l)){t=t.slice(l.length);for(var n=0;n-1?"&":"?",f+="iframe_delete=true"),(a=document.createElement("iframe")).id=n,a.src=f,a.style.display="none",a.style.visibility="hidden",t=setInterval((function(){if(a&&a.contentWindow&&a.Messenger){for(var e=0,n=v.length;e1&&(S(arguments[arguments.length-1])&&(n=arguments[arguments.length-1]),arguments[1]!==n&&(t=arguments[1])),n=n||function(){},b((function(a){a.targets.proxy.send(C("get",e,(function(e,a){!e&&t&&t.filter&&(a=t.filter(a)),n(e,a)})))}))},set:function(e,t){var n,a;if(arguments.length>2&&(S(arguments[arguments.length-1])&&(a=arguments[arguments.length-1]),arguments[2]!==a&&(n=arguments[2])),a=a||function(){},n&&n.filter&&(t=n.filter(t)),!E(t))throw new Error('value must be String in "storeProxy2.set"!');b((function(n){n.targets.proxy.send(C("set",e,t,a))}))},remove:function(e,t){t=t||function(){},b((function(n){n.targets.proxy.send(C("remove",e,t))}))}},w={get:function(e,t){N.get(e,(function(n,a){if(!n&&a){var r=a.split("+__+");if(2!==r.length)return t("parse error",null),void N.remove(e);var o=r[0],i=r[1],s=0;try{o=JSON.parse(o),s=parseInt(i)}catch(n){return N.remove(e),void t("parse error",null)}if((new Date).getTime()>s)return N.remove(e),void t("over time",null);t(null,o)}else t(n,null)}))},set:function(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n||(n=31536e6);var a=(new Date).getTime()+1e3*n;N.set(e,t+"+__+"+a)},remove:N.remove},L=function(){w.remove("_ship_to_default_change_flag")},x=n(24),A=function(e){if("object"==typeof window&&window.URL){var t,n;try{n=new URL(e)}catch(e){return void console.error(e)}"m.aliexpress.us"===n.host&&(n.host="m.aliexpress.com"),n.searchParams.delete("_randl_shipto"),t=n.href;var a,r,o,i=[".aliexpress.com",".aliexpress.ru"];if("http:"===n.protocol||"https:"===n.protocol)if(n.hostname)for(var s="."+n.hostname,c=0;c-1&&R.indexOf(l)>-1?(a.a.setSite("glo"),t="default_change_ship_to_real_site",i=(null==(n={siteCode:s,realSiteCode:"glo",countryCode:c,localeCode:l})?void 0:n.et)||"CLK",n&&delete n.et,t&&(null===(r=k.util.tracker)||void 0===r||null===(o=r.sendSafeEvent)||void 0===o||o.call(r,P()({eventId:t,eventType:i,eventName:t},n)))):a.a.setSite(s)},I=function(e,t,n,r){var i=e.country,s=e.province,c=e.city;void 0===t&&(t=!0);var l=a.a.getRegion();if(a.a.setProvince((null==s?void 0:s.code)||null),a.a.setCity((null==c?void 0:c.code)||null),null!=i&&i.code&&l!==(null==i?void 0:i.code)){a.a.setRegion(i.code);var u=o[null==i?void 0:i.code];if(u&&a.a.setCurrency(u),r){var d=a.a.getLocale(),p=T(d);p&&B({siteCode:p,countryCode:null==i?void 0:i.code,localeCode:d})}var h=A(window.location.href);Object(x.a)(h,(function(){t&&(h?window.location.href=h:window.location.reload()),n&&n()}))}else n&&n()},j=function(e){w.get("ship_to_detail_info",(function(t,n){var r=n;n&&(r=P()({},n,{provinceId:n.provinceCode,provinceName:n.provinceFullName,cityId:n.cityCode,cityName:n.cityFullName}),a.a.getProvince()&&a.a.getProvince()===r.provinceId||(r.provinceId="",r.provinceName=""),a.a.getCity()&&a.a.getCity()===r.cityId||(r.cityId="",r.cityName="")),e(t,r)}))},D=function(e){var t=e.country,n=e.province,r=e.city;j((function(e,o){var i={countryId:(null==t?void 0:t.code)||(null==o?void 0:o.countryId)||a.a.getRegion()||"US"};Object.assign(i,{cityCode:(null==r?void 0:r.code)||"",cityFullName:(null==r?void 0:r.name)||"",provinceCode:(null==n?void 0:n.code)||"",provinceFullName:(null==n?void 0:n.name)||""}),w.set("ship_to_detail_info",i)}))};function U(e){return(e=e||{}).ae_object_value&&(e.ae_object_value+=";"),e.ae_object_value+="_from=gep",e}var z=function(e){var t;e=U(e),null===(t=k.util.tracker)||void 0===t||t.clk(e)},G=function(e,t){k.util.tracker.sendSafeEvent(P()({eventId:e},t))},F=function(e){for(var t=[],n=0,a=Object.keys(e||{});na?1:0})),t}var be,Ce=n(504),Se=/aliexpress.us/.test((null===(be=location)||void 0===be?void 0:be.hostname)||"")?"https://m.aliexpress.us":"https://m.aliexpress.com",Ee=Se+"/api/logistics/addresslist",Ne=Se+"/api/logistics/hots",we=Se+"/api/setting/address",Le=Se+"/api/logistics/addresslist",xe=Se+"/api/logistics/hots",Ae=Se+"/api/setting/address",Te=(n(786),function(e){function t(){return e.apply(this,arguments)||this}return V()(t,e),t.prototype.render=function(){return q.a.createElement("span",{className:"flag country-flag country-flag-y2023 mr-16 "+this.props.code})},t}(q.a.PureComponent)),Oe=Te;Te.propTypes={code:ee.a.string};var Pe=n(82),ke=n.n(Pe),Me=n(85),Re=n.n(Me),Be=n(111),Ie=["className","fontSize","style"];function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function De(e){for(var t=1;t0||a[o]||r[i])&&q.a.createElement(de.a,{resistance:!0,animateHeight:!0,index:t,onChangeIndex:this.changeTab,className:v},this.renderSwipeable()),0===t&&q.a.createElement(he.a,{indexList:(y||[]).map((function(e){return e.group})),tagName:"countryList",scrollableEl:this.getScrollable()}),1===t&&q.a.createElement(he.a,{indexList:(a[o]||[]).map((function(e){return e.group})),tagName:"provinceList",scrollableEl:this.getScrollable()}),2===t&&q.a.createElement(he.a,{indexList:(r[i]||[]).map((function(e){return e.group})),tagName:"cityList",scrollableEl:this.getScrollable()}))},t}(q.a.Component);Ze.propTypes={reqType:ee.a.string,useMsiteReq:ee.a.bool,activeTab:ee.a.number,countryCode:ee.a.string,provinceCode:ee.a.string,cityCode:ee.a.string,onAddressChange:ee.a.func,scrollableEl:ee.a.instanceOf(Element),onClose:ee.a.func,cache:ee.a.bool,allowSettingsUpdate:ee.a.bool,useLocalAddress:ee.a.bool,targetLanguage:ee.a.string,onSettingsUpdated:ee.a.func,i18n:ee.a.func.isRequired,caiNiaoWhiteList:ee.a.shape(),skipCookieChange:ee.a.bool,countryUseMtopReq:ee.a.bool,countryMtopApi:ee.a.string},Ze.defaultProps={reqType:"json",useMsiteReq:!1,activeTab:0,cache:!1,allowSettingsUpdate:!1,useLocalAddress:!1,targetLanguage:"en_US",caiNiaoWhiteList:{RU:!0,BN:!0,ES:!0,CN:!0,CL:!0,CW:!0,UK:!0,KR:!0,NL:!0,NZ:!0,UA:!0,HK:!0,MO:!0,TW:!0,SA:!0,AE:!0,US:!0,KZ:!0,PL:!0,TR:!0,BR:!0,IT:!0,FR:!0},skipCookieChange:!1};var Ve=Ze,Xe=n(796);function Qe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r(void 0!==e.searchTriggerLength?e.searchTriggerLength:nt))&&r.a.request({api:"mtop.aliexpress.address.autoComplete.shipto.get",v:"1.0",data:(n={country:p,targetLanguage:a.a.getLocale()},n[ot]=t,n)}).then((function(e){var t,n;null!=e&&null!==(t=e.data)&&void 0!==t&&t.data&&o(null==e||null===(n=e.data)||void 0===n?void 0:n.data)}))},f=Object(Y.useRef)(null),y=function(e){return q.a.createElement("div",{className:"shipto-cascade-list-item",onClick:function(){!function(e){c(e)}(e)}},q.a.createElement("div",{className:"shipto-cascade-list-item__main-title",dangerouslySetInnerHTML:{__html:e[at]}}),e[rt]?q.a.createElement("div",{className:"shipto-cascade-list-item__content",dangerouslySetInnerHTML:{__html:e[rt]}}):null)};return q.a.createElement(K.a,{zIndex:10002,visible:e.visible,onClose:e.onClose,title:e.title||"Enter a {1} zip code".replace("{1}",p),onOk:function(){s&&e.onConfirm&&e.onConfirm(s)},okText:Qe({key:"address_zipcode_apply",fallback:"Apply"}),hiddenCancel:!0,style:{height:"90%",maxHeight:"90%"},className:"shipto-select-cascade-wrap"},q.a.createElement("div",{className:"shipto-cascade-container"},q.a.createElement("div",{className:"shipto-cascade-input-wrap"},s?q.a.createElement("div",{className:"shipto-cascade-input-selected-wrap",onClick:function(){c(null),window.setTimeout((function(){null==f||f.current.focus(),h(u)}),50)}},y(s)):q.a.createElement(tt.a,{ref:f,size:"large",value:u,onChange:function(e){h(e.target.value)},placeholder:Qe({key:"address_zipcode_placeholder",fallback:"Type here "})})),!s&&n.length?q.a.createElement("div",{className:"shipto-cascade-list-wrap"},null==n?void 0:n.map((function(e){return y(e)}))):null))},st=n(125),ct=["className","fontSize","style"];function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ut(e){for(var t=1;t0?{width:218*x.length}:{},q.a.createElement("div",{className:"shipto-push-wrap-address-list"},q.a.createElement("div",{className:"shipto-push-wrap-address-list-inner",style:T},x.map((function(e,t){return q.a.createElement(q.a.Fragment,null,q.a.createElement("div",{onClick:function(){N(e)},className:["shipto-push-wrap-address-list-item",e.isDefault?"default-item":""].join(" ")},q.a.createElement("div",{className:"shipto-push-wrap-address-list-content"},q.a.createElement(ht,{className:"address-icon",fontSize:16})," ",q.a.createElement("div",{className:"shipto-push-wrap-address-item-content"},e.detailAddress,q.a.createElement("br",null),e.cityName,", ",e.provinceName,", ",e.countryName," ",e.postCode),e.isDefault?q.a.createElement("div",{className:"shipto-push-wrap-address-list-item-selected"}):null),e.isDefault?q.a.createElement("div",{className:"shipto-push-wrap-address-default-flag"},Qe({key:"shipping_address_default_address_flag_title",fallback:"Default"})):null),t!==x.length-1?q.a.createElement(q.a.Fragment,null,"  "):null)}))))):q.a.createElement("div",{className:"shipto-push-wrap-address-inner"},q.a.createElement(ht,{className:"address-icon",fontSize:16})," ",q.a.createElement("div",{className:"shipto-push-wrap-address-info"},q.a.createElement("span",{className:"flag country-flag country-flag-y2023 "+(null===(w=C)||void 0===w?void 0:w.toUpperCase())})," ",null!=v&&v.cityName?q.a.createElement("span",{className:"ft"},(null==v?void 0:v.cityName)||"",", "):null,null!=v&&v.provinceName?q.a.createElement("span",{className:"ft"},null==v?void 0:v.provinceName,", "):null,q.a.createElement("span",{className:"ft"},i[C]))))),q.a.createElement(et,{activeTabFlag:m,visible:o,onClose:function(){s(!1)},onConfirm:function(e){z({ae_button_type:"shipto_deliver_to_other_country_confirm"}),D(e),I(e,!1,(function(){var e=A(window.location.href);e?window.location.href=e:window.location.reload()}))}}),q.a.createElement(it,{title:(null==h||null===(t=h.buttonTxt)||void 0===t?void 0:t.replace("{0}",C))||"",visible:u,onClose:function(){d(!1)},onConfirm:function(e){if(z({ae_button_type:"shipto_"+(null==h?void 0:h.actionType)+"_search_apply_clk"}),e){var t={province:{code:e.provinceId,name:e.provinceName},city:{code:e.cityId,name:e.cityName}};D(t),I(t),window.location.reload()}}}))}),yt=(n(802),function(e){var t=e.className,n=a.a.getRegion();n="CN"===n?"US":n||"US";var r=Object(Y.useState)(null),o=r[0],s=r[1],c=Object(Y.useState)(!1),l=c[0],u=c[1];Object(Y.useEffect)((function(){j((function(e,t){!e&&t&&t.countryId===n&&s(t)})),G("shipto_bar_exp")}),[]);var d=(null!=o&&o.cityName?(null==o?void 0:o.cityName)+", ":"")+(null!=o&&o.provinceName?(null==o?void 0:o.provinceName)+", ":"")+i[n];return q.a.createElement(q.a.Fragment,null,q.a.createElement("div",{className:["comet-pro-wrap-shipto-bar",t||""].join(" "),onClick:function(){u(!0)}},q.a.createElement(ht,{fontSize:16})," ",q.a.createElement("div",{className:"comet-pro-wrap-shipto-bar__content"},Qe({key:"address_homepage_delivery",fallback:"Deliver to "+d},[d]))),q.a.createElement(ft,{visible:l,onClose:function(){u(!1)}}))})},145:function(e,t,n){var a=n(226),r="object"==typeof self&&self&&self.Object===Object&&self,o=a||r||Function("return this")();e.exports=o},157:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},158:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},174:function(e,t,n){var a=n(145).Symbol;e.exports=a},175:function(e,t,n){var a=n(174),r=n(285),o=n(286),i=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?r(e):o(e)}},226:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(41))},227:function(e,t){var n=Array.isArray;e.exports=n},232:function(e,t,n){var a=n(723),r=n(724),o=n(725),i=n(726),s=n(727);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},394:function(e,t,n){(function(e){var a=n(145),r=n(764),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===o?a.Buffer:void 0,c=(s?s.isBuffer:void 0)||r;e.exports=c}).call(this,n(237)(e))},395:function(e,t,n){var a=n(766),r=n(767),o=n(768),i=o&&o.isTypedArray,s=i?r(i):a;e.exports=s},396:function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},397:function(e,t,n){var a=n(772),r=n(774),o=n(299);e.exports=function(e){return o(e)?a(e,!0):r(e)}},398:function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&n.test(e))&&e>-1&&e%1==0&&e").replace(/"/g,'"').replace(/ /g," ")).replaceAll(/<\/i>/g,(function(e){var t;return'
'+(null==e||null===(t=e.toLowerCase())||void 0===t?void 0:t.replaceAll("css_flag","_global-css_flag"))+"
"})));var p='
\n
\n
\n

'+i+'

\n
'+c+'
\n
\n \n \n
\n
\n
";if(document.getElementById("saas-pop"))return Promise.reject();var h=document.createElement("div");return h.setAttribute("id","saas-pop"),h.innerHTML=p,document.body.appendChild(h),new Promise((function(e,a){var r,i,c=function(){l(t,n,"YES").then((function(t){u(),e({status:"SELECT_YES"})})).catch((function(e){a({status:"REQUEST_FAIL"})})),null===o.util||void 0===o.util||o.util.tracker.clk({ae_project_id:"180139",ae_page_type:s(),ae_button_type:"saas-pop-yes"})},u=function(){var e,t=document.getElementById("saas-pop");t&&(null===(e=document.getElementById("saas-pop-yes"))||void 0===e||e.removeEventListener("click",c),document.body.removeChild(t))};null===(r=document.getElementById("saas-pop-yes"))||void 0===r||r.addEventListener("click",c),null===(i=document.getElementById("saas-pop-no"))||void 0===i||i.addEventListener("click",(function(){l(t,n,"NO").then((function(t){u(),e({status:"SELECT_NO"})})).catch((function(e){u(),a({status:"REQUEST_FAIL"})})),null===o.util||void 0===o.util||o.util.tracker.clk({ae_project_id:"180139",ae_page_type:s(),ae_button_type:"saas-pop-no"})})),null===o.util||void 0===o.util||o.util.tracker.exp({exp_page:s(),exp_page_area:"dialog",exp_type:"saas-pop"})}))},l=function(e,t,n){return a.a.request({api:"mtop.ru.aliexpress.shipto.switch",v:"1.0",timeout:6e3,data:{currentCountry:e,toCountry:t,agreed:n,url:"",_lang:r.a.getLocale()||"en_US"}}).then((function(e){var t;return"true"===(null==e||null===(t=e.data)||void 0===t?void 0:t.result)?e:Promise.reject(e)}))},u=function(e,t,n){return e&&t?function(e,t,n){return a.a.request({api:"mtop.ru.aliexpress.shipto.switch",v:"1.0",timeout:6e3,data:{currentCountry:e,toCountry:t,_lang:r.a.getLocale()||"en_US"}}).then((function(a){var o,s,l;return"true"===(null==a||null===(o=a.data)||void 0===o||null===(s=o.model)||void 0===s?void 0:s.popup)?c(null==a||null===(l=a.data)||void 0===l?void 0:l.model,e,t).then((function(e){return"SELECT_YES"===(null==e?void 0:e.status)&&null!=n&&n.saveCookie?(r.a.setRegion(t),Object(i.syncCookieFunc)().then((function(){return null!=n&&n.refreshPage&&window.location.reload(),{status:"SELECT_YES"}})).catch((function(e){return Promise.resolve({status:"SELECT_YES"})}))):e})):Promise.resolve({status:"NO_POP"})})).catch((function(e){Promise.reject({status:"REQUEST_FAIL"})}))}(null==e?void 0:e.toUpperCase(),null==t?void 0:t.toUpperCase(),n).then((function(e){return!(!e||"SELECT_YES"!=(null==e?void 0:e.status)&&"NO_POP"!=(null==e?void 0:e.status))})):Promise.reject()};n(378),n(400),t.a=u},691:function(e,t){},692:function(e,t){},697:function(e,t,n){},698:function(e,t,n){},700:function(e,t,n){},720:function(e,t,n){var a=n(721),r=n(776)((function(e,t,n){a(e,t,n)}));e.exports=r},721:function(e,t,n){var a=n(722),r=n(388),o=n(751),i=n(753),s=n(158),c=n(397),l=n(396);e.exports=function e(t,n,u,d,p){t!==n&&o(n,(function(o,c){if(p||(p=new a),s(o))i(t,n,c,u,e,d,p);else{var h=d?d(l(t,c),o,c+"",t,n,p):void 0;void 0===h&&(h=o),r(t,c,h)}}),c)}},722:function(e,t,n){var a=n(232),r=n(728),o=n(729),i=n(730),s=n(731),c=n(732);function l(e){var t=this.__data__=new a(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=c,e.exports=l},723:function(e,t){e.exports=function(){this.__data__=[],this.size=0}},724:function(e,t,n){var a=n(233),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},725:function(e,t,n){var a=n(233);e.exports=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}},726:function(e,t,n){var a=n(233);e.exports=function(e){return a(this.__data__,e)>-1}},727:function(e,t,n){var a=n(233);e.exports=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},728:function(e,t,n){var a=n(232);e.exports=function(){this.__data__=new a,this.size=0}},729:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},730:function(e,t){e.exports=function(e){return this.__data__.get(e)}},731:function(e,t){e.exports=function(e){return this.__data__.has(e)}},732:function(e,t,n){var a=n(232),r=n(387),o=n(738);e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var i=n.__data__;if(!r||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},733:function(e,t,n){var a=n(297),r=n(734),o=n(158),i=n(736),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(a(e)?p:s).test(i(e))}},734:function(e,t,n){var a,r=n(735),o=(a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.exports=function(e){return!!o&&o in e}},735:function(e,t,n){var a=n(145)["__core-js_shared__"];e.exports=a},736:function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},737:function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},738:function(e,t,n){var a=n(739),r=n(746),o=n(748),i=n(749),s=n(750);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,s&&r(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++a0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},784:function(e,t,n){var a=n(234),r=n(299),o=n(398),i=n(158);e.exports=function(e,t,n){if(!i(n))return!1;var s=typeof t;return!!("number"==s?r(n)&&o(t,n.length):"string"==s&&t in n)&&a(n[t],e)}},785:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syncCookieFunc=t.init=void 0;var a=n(6),r=function(){if(window.headerConfig&&window.headerConfig.disableSyncCookie)return Promise.resolve([!0,!0]);/(iPhone|Android)/.test(navigator.userAgent);var e={fromApp:!1,currency:a.cookie.getCurrency(),region:a.cookie.getRegion(),bLocale:a.cookie.getLocale(),site:a.cookie.getSite(),province:a.cookie.getProvince(),city:a.cookie.getCity()},t=window.location.host,n=!1,r=[{regex:/(.*\.)?aliexpress\.com/,requestUrl:"//login.aliexpress.com/setCommonCookie.htm"},{regex:/(.*\.)?aliexpress\.ru/,requestUrl:"//login.aliexpress.ru/setCommonCookie.htm"},{regex:/(.*\.)?aliexpress\.us/,requestUrl:"//login.aliexpress.us/setCommonCookie.htm"}].slice(0);r.forEach((function(e,a){e.regex.test(t)&&(n=!0,r.splice(a,1))}));var o=[];return n&&r.forEach((function(t){var n,r,i;o.push((n=t.requestUrl,r=e,(i=function(){return new Promise((function(e){(0,a.request)({url:n,data:r,timeout:5e3,withCredentials:!0}).then((function(t){"success"===t.message?e(!0):e(!1)})).catch((function(){e(!1)}))}))})().then((function(e){return e||i()})).then((function(e){return e||console.error("sync cookie twice fail: "+n+" "+JSON.stringify(r)),e})).catch((function(e){return console.error(e),!1}))))})),Promise.all(o).then((function(e){return e&&2===e.length&&!0===e[0]&&!0===e[1]&&a.cookie.set("0","xman_us_f","x_c_chg"),e}))};t.init=function(){var e=a.cookie.get("xman_us_f","x_c_chg");"1"===a.cookie.get("xman_us_f","x_c_synced")?(a.cookie.set("0","xman_us_f","x_c_chg"),a.cookie.set("0","xman_us_f","x_c_synced")):"1"===e&&r().then((function(e){console.log("get finally result:",e)})).catch((function(e){console.error("catch error:",e)}))},t.syncCookieFunc=r},786:function(e,t,n){},787:function(e,t,n){},789:function(e,t,n){},796:function(e){e.exports=JSON.parse('{"ru_RU":{"address_shiptolayer_delivery":"Доставить в другую страну","shipping_address_default_address_flag_title":"По умолчанию","address_shiptolayer_reminder":"Вы будете получать рекомендации в зависимости от выбранной страны","address_zipcode_placeholder":"Индекс","address_homepage_delivery":"Доставка в страны: {0}","AE.iOS.Address.ChooseYourLocation":"Выберите свое местоположение","address_zipcode_apply":"Применить"},"it_IT":{"address_shiptolayer_delivery":"Consegna fuori da {0}","shipping_address_default_address_flag_title":"Predefinito","address_shiptolayer_reminder":"Ti consiglieremo beni e servizi in base alla regione scelta.","address_zipcode_placeholder":"Digita qui ","address_homepage_delivery":"Consegna a {0}","AE.iOS.Address.ChooseYourLocation":"Scegli la tua posizione","address_zipcode_apply":"Applica"},"pl_PL":{"address_shiptolayer_delivery":"Dostawa poza {0}","shipping_address_default_address_flag_title":"Domyślny","address_shiptolayer_reminder":"Otrzymasz informacje o polecanych towarach i usługach na podstawie wybranego przez Ciebie regionu.","address_zipcode_placeholder":"Wpisz tutaj","address_homepage_delivery":"Dostawa do {0}","AE.iOS.Address.ChooseYourLocation":"Wybierz swoją lokalizację","address_zipcode_apply":"Zastosuj"},"tr_TR":{"address_shiptolayer_delivery":"{0} dışına teslim edin","shipping_address_default_address_flag_title":"Varsayılan","address_shiptolayer_reminder":"Seçtiğiniz bölgeye göre ürün ve hizmet önerisi yapacağız.","address_zipcode_placeholder":"Buraya yazın","address_homepage_delivery":"Şuraya teslim edin: {0}","AE.iOS.Address.ChooseYourLocation":"Konumunuzu seçin","address_zipcode_apply":"Uygula"},"iw_IL":{"address_shiptolayer_delivery":"משלוח מחוץ ל-{0}","shipping_address_default_address_flag_title":"ברירת מחדל","address_shiptolayer_reminder":"אנחנו נמליץ לכם על סחורות ושירותים בהתאם לאזור שבו תבחרו.","address_zipcode_placeholder":"הקלידו כאן","address_homepage_delivery":"לשלוח אל {0}","AE.iOS.Address.ChooseYourLocation":"לבחור מיקום שלך","address_zipcode_apply":"אשר"},"vi_VN":{"address_shiptolayer_delivery":"Deliver outside {0}","shipping_address_default_address_flag_title":"Mặc định","address_shiptolayer_reminder":"Chúng tôi sẽ đề xuất hàng hóa và dịch vụ dựa trên khu vực bạn chọn.","address_zipcode_placeholder":"Nhập ở đây","address_homepage_delivery":"Giao hàng đến {0}","AE.iOS.Address.ChooseYourLocation":"Lựa chọn vị trí của bạn","address_zipcode_apply":"Cung cấp"},"pt_BR":{"address_shiptolayer_delivery":"Entregar fora {0}","shipping_address_default_address_flag_title":"Padrão","address_shiptolayer_reminder":"Recomendaremos produtos e serviços de acordo com a região que você escolher.","address_zipcode_placeholder":"Digite aqui","address_homepage_delivery":"Enviar para {0}","AE.iOS.Address.ChooseYourLocation":"Escolha sua localização","address_zipcode_apply":"Aplicar"},"th_TH":{"address_shiptolayer_delivery":"นำส่งนอก {0}","shipping_address_default_address_flag_title":"ค่าเริ่มต้น","address_shiptolayer_reminder":"เราจะแนะนำสินค้าและบริการตามเขตพื้นที่ที่คุณเลือก","address_zipcode_placeholder":"พิมพ์ที่นี่","address_homepage_delivery":"นำส่งไปยัง {0}","AE.iOS.Address.ChooseYourLocation":"เลือกตำแหน่งของคุณ","address_zipcode_apply":"นำไปใช้"},"fr_FR":{"address_shiptolayer_delivery":"Livraison hors {0}","shipping_address_default_address_flag_title":"Par défaut","address_zipcode_placeholder":"Écrivez ici","address_homepage_delivery":"Livraison : {0}","AE.iOS.Address.ChooseYourLocation":"Choisissez votre emplacement","address_zipcode_apply":"Confirmer"},"ja_JP":{"address_shiptolayer_delivery":"{0} 以外にお届け","shipping_address_default_address_flag_title":"既定","address_shiptolayer_reminder":"お客様が選択した地域をもとに商品とサービスをおすすめします。","address_zipcode_placeholder":"ここに入力してください。","address_homepage_delivery":"{0} にお届け","AE.iOS.Address.ChooseYourLocation":"を選択あなたの場所","address_zipcode_apply":"申し込む"},"in_ID":{"address_shiptolayer_delivery":"Kirim ke luar {0}","shipping_address_default_address_flag_title":"Standard","address_shiptolayer_reminder":"Kami akan merekomendasikan barang dan jasa berdasarkan wilayah yang Anda pilih.","address_zipcode_placeholder":"Ketik di sini","address_homepage_delivery":"Kirim ke {0}","AE.iOS.Address.ChooseYourLocation":"Pilih lokasi Anda","address_zipcode_apply":"Pakai"},"de_DE":{"address_shiptolayer_delivery":"Lieferung außerhalb von {0} hinterlassen","shipping_address_default_address_flag_title":"Standard","address_shiptolayer_reminder":"Wir empfehlen Waren und Services je nach der Region, die Sie auswählen","address_zipcode_placeholder":"Hier eingeben","address_homepage_delivery":"An {0} liefern","AE.iOS.Address.ChooseYourLocation":"Wählen sie ihren standort","address_zipcode_apply":"Anwenden"},"ar_SA":{"address_shiptolayer_delivery":"التوصيل خارج {0}","shipping_address_default_address_flag_title":"افتراضي","address_shiptolayer_reminder":"سنرشح لك المنتجات والخدمات بناءً على المنطقة التي تختارها","address_zipcode_placeholder":"أدخل هنا","address_homepage_delivery":"توصيل إلى {0}","AE.iOS.Address.ChooseYourLocation":"اختر موقعك","address_zipcode_apply":"تطبيق"},"ko_KR":{"address_shiptolayer_delivery":"{0} 외에 다른 나라/지역으로 배송","shipping_address_default_address_flag_title":"기본","address_shiptolayer_reminder":"선택 지역을 기반으로 상품 및 서비스를 추천드립니다","address_zipcode_placeholder":"여기에 입력해 주세요","address_homepage_delivery":"{0}(으)로 배송","AE.iOS.Address.ChooseYourLocation":"선택 확인하십시오","address_zipcode_apply":"적용"},"en_US":{"address_shiptolayer_delivery":"Deliver outside {0}","shipping_address_default_address_flag_title":"Default","address_shiptolayer_reminder":"We will recommend goods and services based on the region you choose.","address_zipcode_placeholder":"Type here ","address_homepage_delivery":"Deliver to {0}","AE.iOS.Address.ChooseYourLocation":"Choose your location","address_zipcode_apply":"Apply"},"uk_UA":{"address_shiptolayer_delivery":"Доставка за межі країни {0}","shipping_address_default_address_flag_title":"За замовченням","address_shiptolayer_reminder":"Ми рекомендуватимемо товари та послуги відповідно до вибраного вами регіону.","address_zipcode_placeholder":"Введіть текст тут","address_homepage_delivery":"Доставка до: {0}","address_zipcode_apply":"Застосувати"},"es_ES":{"address_shiptolayer_delivery":"Entregar fuera de {0}","shipping_address_default_address_flag_title":"Direccion","address_shiptolayer_reminder":"Te recomendaremos productos y servicios según la región que selecciones.","address_zipcode_placeholder":"Escribe aquí","address_homepage_delivery":"Entregar a {0}","AE.iOS.Address.ChooseYourLocation":"Elija su ubicación","address_zipcode_apply":"Usar"},"zh_CN":{"address_shiptolayer_reminder":"我们将根据您的位置向您展示优化的产品和价格","AE.iOS.Address.ChooseYourLocation":"选择您的位置"},"nl_NL":{"address_shiptolayer_delivery":"Leveren buiten {0}","shipping_address_default_address_flag_title":"Standaard","address_shiptolayer_reminder":"We zullen goederen en diensten aanbevelen op basis van de regio die u kiest.","address_zipcode_placeholder":"Typ hier","address_homepage_delivery":"Leveren aan {0}","AE.iOS.Address.ChooseYourLocation":"Kies uw locatie","address_zipcode_apply":"Toepassen"},"pt_PT":{"address_shiptolayer_delivery":"Entregar fora {0}","shipping_address_default_address_flag_title":"Padrão","address_shiptolayer_reminder":"Recomendaremos produtos e serviços de acordo com a região que você escolher.","address_zipcode_placeholder":"Digite aqui","address_homepage_delivery":"Enviar para {0}","AE.iOS.Address.ChooseYourLocation":"Escolha sua localização","address_zipcode_apply":"Aplicar"}}')},797:function(e,t,n){},800:function(e,t,n){},801:function(e,t,n){},802:function(e,t,n){}}]);