Files
2025-08-18 13:56:48 +02:00

1 line
29 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[10],{1232:function(e,t,n){"use strict";n.r(t);var i=n(0),r=n.n(i),a=n(2),o=n.n(a),s=n(6),u=n(37),c=n.n(u),l=n(69),p=n(79),f=n(74),d=n.n(f),h=n(65),_=n.n(h),m=(decodeURIComponent(location.href),_.a.getBuyerLocale()),g=["he_IL","ar_SA","iw_IL","ar_MA"].indexOf(m)>=0,v="https://"+location.host+"/wp.html",b=n(635),w=n.n(b),k=(s.util.tracker,function(e){return d.a.request({api:"mtop.global.ug.webpush.subscribe",v:"1.0",appKey:24815441,timeout:4e3,type:"POST",data:e})}),y=function(e){var t,n,i;function r(e){return e.replace(/_/g,"-").toLowerCase()}return null!==(t=null===w.a||void 0===w.a||null===(n=w.a[r(m)])||void 0===n?void 0:n[e])&&void 0!==t?t:null===w.a||void 0===w.a||null===(i=w.a[r("en_US")])||void 0===i?void 0:i[e]},x=n(690),C=n.n(x),A=function(e){var t,n,i=Object(u.useCallback)((function(t){e.destroy(t)}),[]);return Object(p.e)()?(n=(null===(t=window.__webpushConfig)||void 0===t?void 0:t.lang)||{},c.a.createElement("div",{className:C.a["webpush-msite-mask"]},c.a.createElement("div",{className:C.a["webpush-msite"]},c.a.createElement("div",{className:C.a["webpush-msite-title"]},n.title||"Get order and savings updates"),c.a.createElement("div",{className:C.a["webpush-msite-desc"]},n.subTitle||"Well notify you about order status, special savings, store events and more."),c.a.createElement("div",{className:C.a["webpush-msite-tips"]},n.btnTips||"Notifications can be turned off later"),c.a.createElement("div",{className:C.a["webpush-msite-button"],onClick:function(){var e,t;i("auth"),null===(e=window.__webpushConfig)||void 0===e||null===(t=e.onClick)||void 0===t||t.call(e)}},n.btnContext||"Get notifications"),c.a.createElement("div",{className:C.a["webpush-msite-cancel"],onClick:function(){var e,t;i("reject"),null===(e=window.__webpushConfig)||void 0===e||null===(t=e.onClose)||void 0===t||t.call(e)}},n.cancelBtnText||"Maybe later")))):c.a.createElement("div",{className:C.a["webpush-ui"]+" "+(g?C.a.rtl:"")},c.a.createElement("div",{className:C.a["webpush-ui__logo"]},c.a.createElement("img",{src:"https://img.alicdn.com/tfs/TB1OQux3hD1gK0jSZFsXXbldVXa-134-32.png",alt:"aliexpress"})),c.a.createElement("div",{className:C.a["webpush-ui-info"]},c.a.createElement("div",{className:""+C.a["webpush-ui-info__title"]},y("title")),c.a.createElement("div",{className:C.a["webpush-ui-info__subTitle"]},y("sub-title")),c.a.createElement("div",{className:C.a["webpush-ui-info__operate"]},c.a.createElement("div",{className:(C.a.allow||"")+" "+C.a["web-push-info__base"],onClick:i.bind(null,"auth")},y("Allow")),c.a.createElement("div",{className:C.a.prohibit+" "+C.a["web-push-info__base"],onClick:i.bind(null,"reject")},y("Prohibit")))),c.a.createElement("img",{className:C.a["web-push-ui__close"],onClick:i.bind(null,"close"),src:"https://img.alicdn.com/tfs/TB1GSux3fb2gK0jSZK9XXaEgFXa-21-21.png",alt:""}))};var F=n(4),S=n.n(F),E=n(7);n(376);var P="postMessage"in window;function N(e,t,n){var i="";if(arguments.length<2?i="target error - target and name are both required":"object"!=typeof e?i="target error - target itself must be window object":"string"!=typeof t&&(i="target error - target name must be string type"),i)throw new Error(i);this.target=e,this.name=t,this.prefix=n}function O(e,t){this.targets={},this.name=e,this.listenFunc=[],this.prefix=t||"[PROJECT_NAME]",this.initListen()}N.prototype.send=P?function(e){this.target.postMessage(this.prefix+"|"+this.name+"__Messenger__"+e,"*")}:function(e){var t=window.navigator[this.prefix+this.name];if("function"!=typeof t)throw new Error("target callback function is not defined");t(this.prefix+e,window)},O.prototype.addTarget=function(e,t){var n=new N(e,t,this.prefix);this.targets[t]=n},O.prototype.initListen=function(){var e=this,t=function(t){if("object"==typeof t&&t.data&&t.data.indexOf&&t.data.indexOf("__Messenger__")>=0)for(var n=(t=t.data).split("__Messenger__"),i=(t=n[1],n[0].split("|")),r=i[0],a=i[1],o=0;o<e.listenFunc.length;o++)r+a===e.prefix+e.name&&e.listenFunc[o](t)};P?"addEventListener"in document?window.addEventListener("message",t,!1):"attachEvent"in document&&window.attachEvent("onmessage",t):window.navigator[this.prefix+this.name]=t},O.prototype.listen=function(e){for(var t=0,n=this.listenFunc.length,i=!1;t<n;t++)if(this.listenFunc[t]==e){i=!0;break}i||this.listenFunc.push(e)},O.prototype.clear=function(){this.listenFunc=[]},O.prototype.send=function(e){var t,n=this.targets;for(t in n)n.hasOwnProperty(t)&&n[t].send(e)};var I,$,j,U,z,D,T=new O("webpush-client-v1-parent",void 0),L=function(e,t){T.send(JSON.stringify({type:e,payload:t}))},R=2592e5,M=s.util.tracker,X=function(e){return e.granted="granted",e.denied="denied",e.default="default",e}({}),Z=function(e){throw M.clk({ae_button_type:"msite.webpush.suberror",ae_object_value:e||""}),L("store",{token:"",expired:+new Date+R,status:X.denied}),new Error(e)},K=function(e){var t=e.getKey?e.getKey("p256dh"):"",n=e.getKey?e.getKey("auth"):"";return{endpoint:e.endpoint,p256dhPublicKey:t?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(t)))):"",auth:n?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(n)))):""}},B=function(){var e=r()(o.a.mark((function e(t,n){var i,r,a,s,u,c,l;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&t.endpoint){e.next=1;break}return e.abrupt("return");case 1:return e.prev=1,u=new URL(location.href),c=S()({id:n.token||void 0,userId:E.a.getMemberId(),channel:Object(p.e)()?"msite":"pc",srcOrigin:""+u.origin+u.pathname,cnaCookieId:E.a.get("cna"),domain:location.hostname,lang:E.a.getLocale(),region:E.a.getRegion(),ua:window.navigator.userAgent},K(t)),e.next=2,k(c);case 2:return null!=(l=e.sent)&&null!==(i=l.data)&&void 0!==i&&null!==(r=i.data)&&void 0!==r&&r.cacheTime&&(R=1e3*l.data.data.cacheTime),L("store",{token:null==l||null===(a=l.data)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.id,expired:+new Date+R,status:X.granted,endpoint:t.endpoint,domain:location.hostname}),e.abrupt("return",l);case 3:return e.prev=3,e.catch(1),e.abrupt("return",null);case 4:case"end":return e.stop()}}),e,null,[[1,3]])})));return function(t,n){return e.apply(this,arguments)}}(),J=function(){var e=r()(o.a.mark((function e(t,n){var i,r,a,s,u,c,l;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=new URL(location.href),c=S()({id:n,type:n?"updateUid":"new",channel:Object(p.e)()?"msite":"pc",srcOrigin:""+u.origin+u.pathname,ua:window.navigator.userAgent},K(t)),E.a.getMemberId()&&(c.userId=E.a.getMemberId()),E.a.get("cna")&&(c.cnaCookieId=E.a.get("cna")),c.domain=location.hostname,c.lang=E.a.getLocale(),c.region=E.a.getRegion(),M.clk({ae_button_type:"msite.webpush.savePush"}),e.next=1,k(c);case 1:null!=(l=e.sent)&&null!==(i=l.data)&&void 0!==i&&null!==(r=i.data)&&void 0!==r&&r.cacheTime&&(R=1e3*l.data.data.cacheTime),L("store",{token:null==l||null===(a=l.data)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.id,expired:+new Date+R,status:X.granted,endpoint:t.endpoint,domain:location.hostname});case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),W=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),n=window.atob(t),i=new Uint8Array(n.length),r=0;r<n.length;++r)i[r]=n.charCodeAt(r);return i},q=function(){var e=r()(o.a.mark((function e(){var t,n,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,navigator.serviceWorker.ready;case 1:return t=e.sent,e.next=2,t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:W("BIGeWzIKODFi_GHGhLIeDL0fJbn5Zafo7g-i5ZBBTKKm0mqhi2Trsm2jYdgC16oWZTteMpliALI9J1kXtWL9KFQ")});case 2:n=e.sent,J(n),e.next=4;break;case 3:e.prev=3,i=e.catch(0),Z("Error during getSubscription() "+i);case 4:case"end":return e.stop()}}),e,null,[[0,3]])})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=r()(o.a.mark((function e(){var t,n,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"showNotification"in ServiceWorkerRegistration.prototype||Z("Notifications aren't supported."),"denied"===Notification.permission&&(M.clk({ae_button_type:"msite.webpush.denied"}),Z("The user has blocked notifications.")),"PushManager"in window||Z("Push messaging isn't supported."),e.prev=1,e.next=2,navigator.serviceWorker.ready;case 2:return t=e.sent,e.next=3,t.pushManager.getSubscription();case 3:if(n=e.sent){e.next=4;break}return M.clk({ae_button_type:"msite.webpush.showPopup"}),q(),e.abrupt("return");case 4:J(n),e.next=6;break;case 5:e.prev=5,i=e.catch(1),Z("Error during init sub() "+i);case 6:case"end":return e.stop()}}),e,null,[[1,5]])})));return function(){return e.apply(this,arguments)}}(),V=(z=new Promise((function(e){return I=e})),{inited:function(){var e;null===(e=I)||void 0===e||e()},isInit:function(){return z},setData:function(e){var t;U=e,null===(t=j)||void 0===t||t()},getData:function(){return r()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $=new Promise((function(e){return j=e})),L("getStore"),e.next=1,$;case 1:return e.abrupt("return",U);case 2:case"end":return e.stop()}}),e)})))()}}),Y={receiveGrantData:function(e){return r()(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{n=JSON.parse(e)}catch(e){n=null}V.setData(n);case 1:case"end":return t.stop()}}),t)})))()},inited:function(){V.inited()}},H=function(){var e,t,n;return D||(t=v,(n=document.createElement("iframe")).src=t,n.style.display="none",document.body.append(n),D=n,T.addTarget(D.contentWindow,"webpush-client-v1-child"),e=Y,T.listen((function(t){if(t)try{var n,i,r=JSON.parse(t);Object.keys(e).indexOf(r.type)>-1&&(n=e)[r.type].apply(n,null!==(i=null==r?void 0:r.payload)&&void 0!==i?i:[])}catch(e){}}))),D},Q=function(){var e=r()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,H(),e.next=1,V.isInit();case 1:return e.abrupt("return",V.getData());case 2:return e.prev=2,e.catch(0),e.abrupt("return",null);case 3:case"end":return e.stop()}}),e,null,[[0,2]])})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=r()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:M.clk({ae_button_type:"msite.webpush.initpush"}),G();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=function(){var e=r()(o.a.mark((function e(){var t,n,i,r,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Q();case 1:return t=e.sent,M.clk({ae_button_type:"msite.webpush.logrecord",ae_object_value:t?JSON.stringify(t):"empty record"}),e.next=2,navigator.serviceWorker.ready;case 2:return n=e.sent,e.next=3,n.pushManager.getSubscription();case 3:if(!(i=e.sent)){e.next=5;break}if(r=S()({},t,{status:X.granted}),t&&null!=t&&t.token&&!(t.token&&Date.now()>(t.expired||0))){e.next=4;break}return M.clk({ae_button_type:"msite.webpush.updateInfo"}),e.next=4,B(i,r);case 4:return e.abrupt("return",!0);case 5:if((null==t?void 0:t.status)!==X.granted){e.next=8;break}return e.next=6,!!(o=(null==t?void 0:t.endpoint)||"")&&d.a.request({api:"mtop.global.ug.webpush.check",v:"1.0",appKey:24815441,timeout:4e3,type:"POST",data:{endpoint:o}});case 6:if(null==(s=e.sent)||null===(a=s.data)||void 0===a||!a.data){e.next=7;break}return e.abrupt("return",!0);case 7:return L("store",{token:"",expired:+new Date+R,status:X.default}),e.abrupt("return",!1);case 8:if((null==t?void 0:t.status)!==X.denied){e.next=9;break}return e.abrupt("return",Date.now()<(t.expired||0));case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}var o}),e)})));return function(){return e.apply(this,arguments)}}();n(634);var ne=s.util.tracker,ie=function(e){return e.auth="auth",e.reject="reject",e}(ie||{});(function(){var e=r()(o.a.mark((function e(){var t,n,i,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!/(Googlebot)|(facebookexternalhit)|(Pinterest)|(Yeti)|(YandexBot)/i.test(navigator.userAgent)&&"PushManager"in window){e.next=1;break}return e.abrupt("return");case 1:return n=JSON.parse((null===(t=window)||void 0===t?void 0:t.localStorage.getItem("webpush-auth-popup"))||"{}"),e.next=2,te();case 2:if(e.sent){e.next=5;break}if(!("shown"===(null==n?void 0:n.status)&&Date.now()-(null==n?void 0:n.date)<=2592e5)){e.next=3;break}return e.abrupt("return");case 3:return ne.exp({exp_type:"msite.webpush.authdialog.show"}),null===(i=window)||void 0===i||i.localStorage.setItem("webpush-auth-popup",JSON.stringify({date:+new Date,status:"shown"})),e.next=4,new Promise((function(e){var t=document.createElement("div");document.body.append(t),Object(l.render)(c.a.createElement(A,{destroy:function(n){Object(l.unmountComponentAtNode)(t),e(n)}}),t)}));case 4:r=e.sent,ne.clk({ae_button_type:"msite.webpush.authdialog."+r}),r===ie.auth&&ee();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()},376:function(e,t){},634:function(e,t,n){"use strict";n.r(t);n(376)},635:function(e,t,n){var i={};for(var r in i["en-us"]=n(636),i["ar-sa"]=n(637),i.kn=n(638),i.as=n(639),i.bho=n(640),i["pl-pl"]=n(641),i["ko-kr"]=n(642),i["de-de"]=n(643),i["ru-ru"]=n(644),i["fr-fr"]=n(645),i.gu=n(646),i["nl-nl"]=n(647),i["my-mm"]=n(648),i["bn-bd"]=n(649),i["bn-in"]=n(650),i.mr=n(651),i["ms-my"]=n(652),i.ml=n(653),i.mni=n(654),i["ne-np"]=n(655),i.or=n(656),i["pt-br"]=n(657),i["pt-pt"]=n(658),i.pa=n(659),i["ja-jp"]=n(660),i["si-lk"]=n(661),i["tr-tr"]=n(662),i["tl-ph"]=n(663),i.te=n(664),i.ta=n(665),i["th-th"]=n(666),i["ur-pk"]=n(667),i["ur-in"]=n(668),i["uk-ua"]=n(669),i["iw-il"]=n(670),i["es-es"]=n(671),i["it-it"]=n(672),i["in-id"]=n(673),i["hi-in"]=n(674),i["vi-vn"]=n(675),i["en-pk"]=n(676),i["en-ph"]=n(677),i["en-mm"]=n(678),i["en-bd"]=n(679),i["en-my"]=n(680),i["en-np"]=n(681),i["en-lk"]=n(682),i["en-th"]=n(683),i["en-sg"]=n(684),i["en-id"]=n(685),i["en-vn"]=n(686),i["zh-tw"]=n(687),i["zh-hk"]=n(688),i["zh-cn"]=n(689),i)if(i.hasOwnProperty(r)&&"en-us"!=r)for(var a in i["en-us"])i["en-us"].hasOwnProperty(a)&&(i[r].hasOwnProperty(a)||(i[r][a]=i["en-us"][a]));i.appName="web-push-v2",i.groupName="front",i.defaultLocale="en-us",e.exports=i},636:function(e,t){e.exports={Allow:"Allow","sub-title":"Get order updates, tips about the latest discounts, coupons and more!",title:"Subscribe to notifications",Prohibit:"Don't allow"}},637:function(e,t){e.exports={Prohibit:"عدم السماح",Allow:"السماح","sub-title":"استلم تحديثات الطلب، نصائح حول أحدث الخصومات، القسائم وأكثر!",title:"الاشتراك في الإشعارات"}},638:function(e,t){e.exports={}},639:function(e,t){e.exports={}},640:function(e,t){e.exports={}},641:function(e,t){e.exports={Prohibit:"Nie zezwalaj",title:"Zezwalaj na powiadomienia ze strony","sub-title":"Otrzymuj aktualne informacje o zamówieniach, zniżkach, kuponach i inne!",Allow:"Zezwalaj"}},642:function(e,t){e.exports={"sub-title":"주문 현황 업데이트, 최신 할인 팁, 그리고 쿠폰까지 알려드려요!",Allow:"설정하기",Prohibit:"설정 안 함",title:"사이트 알림을 등록하세요"}},643:function(e,t){e.exports={Prohibit:"Nicht zulassen",Allow:"Zulassen",title:"Website-Benachrichtigungen erlauben","sub-title":"Erhalten Sie Neuigkeiten zu Bestellungen, Tipps zu den neuesten Rabatten, Coupons und mehr!"}},644:function(e,t){e.exports={"sub-title":"Вы будете получать оповещения о заказах, скидках, купонах и распродажах",Allow:"Разрешить",Prohibit:"Отклонить",title:"Разрешить уведомления"}},645:function(e,t){e.exports={Allow:"Autoriser","sub-title":"Recevez des alertes sur les commandes, des conseils de promos, des coupons et plus encore !",Prohibit:"Ne pas autoriser",title:"S'abonner aux notifications"}},646:function(e,t){e.exports={}},647:function(e,t){e.exports={Allow:"Toestaan",title:"Websitemeldingen toestaan","sub-title":"Ontvang bestelupdates, tips over de nieuwste kortingen, coupons en meer!",Prohibit:"Niet toestaan"}},648:function(e,t){e.exports={}},649:function(e,t){e.exports={}},65:function(e,t,n){"use strict";var i=n(8).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(28)),a=i(n(27)),o=i(n(71)),s=n(72),u=new(function(){function e(){(0,r.default)(this,e),this.siteFormat=/^[a-z]{3}(_[a-z]{1})?$/,this.x_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.s_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.b_localeFormat=/^[a-z]{2}_[A-Z]{2}$/,this.c_tpFormat=/^[A-Z]{3}$/,this.regionFormat=/^[A-Z]{2,3}$/,this.provinceFormat=/^[0-9]{18}$/,this.cityFormat=/^[0-9]{18}$/,this.siFormat=/^(glo|rus|bra|esp|idn|fra|deu|ita)$/,this.signFormat=/^(y|n)$/,this.rmb_ppFormat=/^.*$/,this.x_userFormat=/^.*$/,this.issFormat=/^(y)$/,this.isbFormat=/^(y)$/,this.ispmFormat=/^(y)$/,this.isksFormat=/^(y)$/,this.isgclFormat=/^(y)$/,this.reg_verFormat=/^(new|old)$/,this.x_lFormat=/^[01]{1}$/,this.ber_lFormat=/^A\d$/,this.zero_orderFormat=/^(y)$/,this.ae_u_p_sFormat=/^[012]{1}$/,this.ups_dFormat=/^[01\|]{7,}$/,this.ups_u_tFormat=/^[0-9]{13,}$/,this.re_snsFormat=/^.*$/,this.x_csrfFormat=/^.*$/,this.x_c_chgFormat=/^[01]{1}$/,this.x_c_syncedFormat=/^[01]{1}$/,this.acs_rtFormat=/^[A-Za-z0-9]+$/,this.alimidFormat=/^[0-9]+$/,this.x_as_iFormat=/^([A-Za-z0-9]|(%))+/,this.x_lidFormat=/^[A-Za-z0-9]+$/}return(0,a.default)(e,[{key:"get",value:function(e,t){return o.default.get(e,t)}},{key:"_setcookie",value:function(e,t,n){if(n&&!this.validate(t,n))return!1;var i=o.default.get(e,{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||"";i=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)").test(i)?RegExp.$1+n+RegExp.$3:(i?i+"&":"")+t+"="+n,o.default.set(e,i,{domain:(0,s.getFixedDomainUrl)(),path:"/",expires:3650,raw:!0})}},{key:"_getCookie",value:function(e,t){var n=o.default.get(e,{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||"",i=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)");n.match(i);var r=RegExp.$2;return i.test(n)&&this.validate(t,r)?r:""}},{key:"validate",value:function(e,t){return!/(&|=)/.test(t)&&!!(t&&this[e+"Format"]&&this[e+"Format"].test(t))}},{key:"getMSite",value:function(e,t){var n=o.default.get(e,{domain:"m.aliexpress.com",path:"/",raw:!0})||"",i=new RegExp("(.*&?"+t+"=)(.*?)(&.*|$)");n.match(i);var r=RegExp.$2;return i.test(n)&&this.validate(t,r)?r:""}},{key:"setSite",value:function(e){this._setcookie("aep_usuc_f","site",e)}},{key:"getSite",value:function(){return this._getCookie("aep_usuc_f","site")}},{key:"setRegion",value:function(e){this._setcookie("aep_usuc_f","region",e)}},{key:"getRegion",value:function(){return this._getCookie("aep_usuc_f","region")}},{key:"setProvince",value:function(e){this._setcookie("aep_usuc_f","province",e)}},{key:"getProvince",value:function(){return this._getCookie("aep_usuc_f","province")}},{key:"setCity",value:function(e){this._setcookie("aep_usuc_f","city",e)}},{key:"getCity",value:function(){return this._getCookie("aep_usuc_f","city")}},{key:"getAlimid",value:function(){return this._getCookie("aep_usuc_f","alimid")}},{key:"getMsiteProvince",value:function(){return o.default.get("ae-msite-province",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getMsiteCity",value:function(){return o.default.get("ae-msite-city",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"setCurrency",value:function(e){this._setcookie("aep_usuc_f","c_tp",e)}},{key:"getCurrency",value:function(){return this._getCookie("aep_usuc_f","c_tp")}},{key:"setLocale",value:function(e){this._setcookie("xman_us_f","x_locale",e)}},{key:"getLocale",value:function(){return this._getCookie("xman_us_f","x_locale")}},{key:"setSellerLocale",value:function(e){o.default.set("intl_locale",e,{domain:(0,s.getFixedDomainUrl)(),path:"/",expires:365,raw:!0}),this.setLocale(e),this._setcookie("aep_usuc_f","s_locale",e)}},{key:"getSellerLocale",value:function(){return this._getCookie("aep_usuc_f","s_locale")}},{key:"setBuyerLocale",value:function(e){this.setLocale(e),this._setcookie("aep_usuc_f","b_locale",e)}},{key:"getBuyerLocale",value:function(){return this._getCookie("aep_usuc_f","b_locale")}},{key:"getSign",value:function(){return this._getCookie("xman_us_t","sign")}},{key:"isLoggedIn",value:function(){return"y"==this.getSign()}},{key:"getLoginId",value:function(){return this._getCookie("xman_us_t","rmb_pp")}},{key:"getIss",value:function(){return this._getCookie("aep_usuc_f","iss")}},{key:"isSeller",value:function(){return"y"===this.getIss()}},{key:"getIsb",value:function(){return this._getCookie("aep_usuc_f","isb")}},{key:"isBuyer",value:function(){return"y"===this.getIsb()}},{key:"getIsks",value:function(){return this._getCookie("aep_usuc_f","isks")}},{key:"isKaSeller",value:function(){return"y"===this.getIsks()}},{key:"getIsgcl",value:function(){return this._getCookie("aep_usuc_f","isgcl")}},{key:"isGreenChannel",value:function(){return"y"===this.getIsgcl()}},{key:"getIspm",value:function(){return this._getCookie("aep_usuc_f","ispm")}},{key:"isPremiumMember",value:function(){return"y"===this.getIspm()}},{key:"getIsfm",value:function(){return this._getCookie("aep_usuc_f","isfm")}},{key:"isFreeMember",value:function(){return"y"===this.getIsfm()}},{key:"getRegVer",value:function(){return this._getCookie("aep_usuc_f","reg_ver")}},{key:"getOversea",value:function(){return this._getCookie("xman_us_f","x_l")}},{key:"isOversea",value:function(){return"1"!==this.getOversea()}},{key:"_getXUserRaw",value:function(){return this._getCookie("xman_us_f","x_user")}},{key:"getXUserObj",value:function(){var e={country:"",firstName:"",lastName:"",memberSeq:""},t=(this._getXUserRaw()||"").split("|");return t.length>=5&&(e.country=t[0],e.firstName=t[1].replace(/</g,"&lt;").replace(/>/g,"&gt;"),e.lastName=t[2].replace(/</g,"&lt;").replace(/>/g,"&gt;"),e.memberSeq=t[4]),e}},{key:"getMemberSeq",value:function(){return this.getXUserObj().memberSeq}},{key:"isNewUser",value:function(){return""===this.getXUserObj().memberSeq}},{key:"setAETest",value:function(){}},{key:"getAETest",value:function(){return""}},{key:"getBerL",value:function(){return this._getCookie("aep_usuc_t","ber_l")}},{key:"getZeroOrder",value:function(){return this._getCookie("xman_us_f","zero_order")}},{key:"isZeroOrderUser",value:function(){return"y"===this.getZeroOrder()}},{key:"getAeUps",value:function(){return this._getCookie("aep_usuc_f","ae_u_p_s")}},{key:"setAeUps",value:function(e){return this._setcookie("aep_usuc_f","ae_u_p_s",e)}},{key:"getAeUpsDetail",value:function(){return this._getCookie("aep_usuc_f","ups_d")}},{key:"setAeUpsDetail",value:function(e){return this._setcookie("aep_usuc_f","ups_d",e)}},{key:"getAeUpsTime",value:function(){return this._getCookie("aep_usuc_f","ups_u_t")}},{key:"setAeUpsTime",value:function(e){return this._setcookie("aep_usuc_f","ups_u_t",e)}},{key:"getReSns",value:function(){return this._getCookie("aep_usuc_f","re_sns")}},{key:"getCsrfToken",value:function(){var e=this._getCookie("acs_usuc_t","x_csrf");return e||(window.__bl&&window.__bl.api?window.__bl.error(new Error("Cookie.getCsrfToken error")):window.__bl&&(window.__bl.pipe=window.__bl.pipe||[],window.__bl.pipe.push(["error",new Error("Cookie.getCsrfToken error")]))),e}},{key:"getXmanCookieChanged",value:function(){return this._getCookie("xman_us_f","x_c_chg")}},{key:"setXmanCookieChanged",value:function(e){return this._setcookie("xman_us_f","x_c_chg",""+e)}},{key:"getXmanCookieSynced",value:function(){return this._getCookie("xman_us_f","x_c_synced")}},{key:"setXmanCookieSynced",value:function(e){return this._setcookie("xman_us_f","x_c_synced",""+e)}},{key:"getACS_RT",value:function(){return this._getCookie("xman_us_f","acs_rt")}},{key:"getX_AS_I",value:function(){return this._getCookie("xman_us_f","x_as_i")}},{key:"getCNA",value:function(){return o.default.get("cna",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getAliApacheId",value:function(){return o.default.get("ali_apache_id",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}},{key:"getAeucid",value:function(){return o.default.get("aeu_cid",{domain:(0,s.getFixedDomainUrl)(),path:"/",raw:!0})||""}}]),e}());window.lib=window.lib||{},window.lib.cookie=u;var c=u;t.default=c},650:function(e,t){e.exports={}},651:function(e,t){e.exports={}},652:function(e,t){e.exports={}},653:function(e,t){e.exports={}},654:function(e,t){e.exports={}},655:function(e,t){e.exports={}},656:function(e,t){e.exports={}},657:function(e,t){e.exports={Prohibit:"Não permitir","sub-title":"Receba alertas sobre atualizações de pedidos, últimos descontos, cupons e muito mais!",Allow:"Permitir",title:"Inscrever-se para notificações"}},658:function(e,t){e.exports={Prohibit:"Não permitir",title:"Inscrever-se para notificações","sub-title":"Receba alertas sobre atualizações de pedidos, últimos descontos, cupons e muito mais!",Allow:"Permitir"}},659:function(e,t){e.exports={}},660:function(e,t){e.exports={"sub-title":"注文のアップデート、ヒント、最新のセール情報、クーポンなどの情報を受けとりましょう!",title:"サイトの通知を許可",Prohibit:"許可しない",Allow:"許可する"}},661:function(e,t){e.exports={}},662:function(e,t){e.exports={Prohibit:"İzin verme",title:"Bildirim almak için abone olun","sub-title":"Sipariş güncellemeleri, indirimler hakkında ipuçları, kuponlar ve daha fazlasını öğrenin!",Allow:"İzin ver"}},663:function(e,t){e.exports={}},664:function(e,t){e.exports={}},665:function(e,t){e.exports={}},666:function(e,t){e.exports={Prohibit:"ไม่อนุญาต",title:"อนุญาติให้เว็บไซต์แจ้งเตือน",Allow:"อนุญาต","sub-title":"รับการอัปเดตคำสั่งซื้อ เคล็ดลับเกี่ยวกับส่วนลดล่าสุด คูปอง และอื่น ๆ !"}},667:function(e,t){e.exports={}},668:function(e,t){e.exports={}},669:function(e,t){e.exports={"sub-title":"Отримуйте нові відомості про замовлення, поради щодо нових знижок, купонів і багато іншого!",Allow:"Дозволити",Prohibit:"Не дозволяти",title:"Дозволити сповіщення із сайту"}},670:function(e,t){e.exports={"sub-title":"קבלו עדכונים על הזמנות, טיפים על ההנחות האחרונות, קופונים ועוד!",Allow:"אפשרו",Prohibit:"אל תאפשרו",title:"הירשמו לקבלת הודעות"}},671:function(e,t){e.exports={Allow:"Permitir",title:"Suscríbete a las notificaciones",Prohibit:"No permitir","sub-title":"Recibe actualizaciones de tus pedidos, consejos sobre descuentos, cupones, ¡y más!"}},672:function(e,t){e.exports={"sub-title":"Ricevi aggiornamenti sugli ordini, consigli sugli ultimi sconti, coupon e altro ancora!",title:"Consenti le notifiche del sito",Prohibit:"Non consentire",Allow:"Consenti"}},673:function(e,t){e.exports={Prohibit:"Jangan izinkan",title:"Izinkan notifikasi situs","sub-title":"Dapatkan kabar terbaru tentang pesanan, tips seputar diskon terbaru, kupon, dll!",Allow:"Izinkan"}},674:function(e,t){e.exports={}},675:function(e,t){e.exports={Allow:"Cho phép","sub-title":"Nhận cập nhật đơn hàng, tin mới nhất về các đợt chiết khấu, phiếu mua hàng và hơn thế nữa!",title:"Bật thông báo từ trang web",Prohibit:"Không cho phép"}},676:function(e,t){e.exports={}},677:function(e,t){e.exports={}},678:function(e,t){e.exports={}},679:function(e,t){e.exports={}},680:function(e,t){e.exports={}},681:function(e,t){e.exports={}},682:function(e,t){e.exports={}},683:function(e,t){e.exports={}},684:function(e,t){e.exports={}},685:function(e,t){e.exports={}},686:function(e,t){e.exports={}},687:function(e,t){e.exports={}},688:function(e,t){e.exports={}},689:function(e,t){e.exports={}},690:function(e,t,n){e.exports={"webpush-ui":"_3KrBP",rtl:"_3XMV3","web-push-ui__close":"_24EHh","webpush-ui-info":"_1-aaU","webpush-ui__logo":"UAEqK","webpush-ui-info__title":"_1u9ll","webpush-ui-info__subTitle":"_3hbpp","webpush-ui-info__operate":"_1ZwH_","web-push-info__base":"_1-SOk",prohibit:"Sk1_X","webpush-msite-mask":"_1iaRg","webpush-msite":"_2ylEo","webpush-msite-title":"_3EVjL","webpush-msite-desc":"_3LwwY","webpush-msite-tips":"_2kACT","webpush-msite-button":"_2mjF9","webpush-msite-cancel":"_2F-Xx"}},71:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={},r=decodeURIComponent,a=encodeURIComponent;function o(e){return"string"==typeof e}function s(e){return o(e)&&""!==e}function u(e){if(!s(e))throw new TypeError("Cookie name must be a non-empty string")}function c(e){return e}i.get=function(e,t){u(e),t="function"==typeof t?{converter:t}:t||{};var n=function(e,t){var n={};if(o(e)&&e.length>0)for(var i,a,s,u=t?r:c,l=e.split(/;\s/g),p=0,f=l.length;p<f;p++){if((s=l[p].match(/([^=]+)=/i))instanceof Array)try{i=r(s[1]),a=u(l[p].substring(s[1].length+1))}catch(e){}else i=r(l[p]),a="";i&&(n[i]=a)}return n}(document.cookie,!t.raw);return(t.converter||c)(n[e])},i.set=function(e,t,n){u(e);var i=(n=n||{}).expires,r=n.domain,o=n.path;n.raw||(t=a(String(t)));var c=e+"="+t,l=i;return"number"==typeof l&&(l=new Date).setDate(l.getDate()+i),l instanceof Date&&(c+="; expires="+l.toUTCString()),s(r)&&(c+="; domain="+r),s(o)&&(c+="; path="+o),n.secure&&(c+="; secure"),document.cookie=c,c},i.remove=function(e,t){return(t=t||{}).expires=new Date(0),this.set(e,"",t)};var l=i;t.default=l},72:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFixedDomainUrl=function(){return r};var i,r="aliexpress.com";"object"==typeof window&&(i=window.location.host.match(/(\w+\.\w+)$/))&&(r=i[1])}}]);