(window["webpackJsonp-ae-fe/cosmos-1"]=window["webpackJsonp-ae-fe/cosmos-1"]||[]).push([[31,41,46],{1249:function(n,e,t){"use strict";t.r(e),t.d(e,"yandex",(function(){return r})),t.d(e,"criteo",(function(){return a})),t.d(e,"naver",(function(){return o}));var r={};t.r(r),t.d(r,"a",(function(){return u}));var a={};t.r(a),t.d(a,"viewBasket",(function(){return b})),t.d(a,"trackTransaction",(function(){return g})),t.d(a,"viewList",(function(){return k}));var o={};t.r(o),t.d(o,"trackTransaction",(function(){return P}));var i,c,u=function(){},s=t(4),d=t.n(s),l=t(7),v=t(80),p=l.a.getRegion()||"",w=Object(v.d)()?"m.aliexpress.com":"www.aliexpress.com",f=(null===(i=l.a.getLocale())||void 0===i||null===(c=i.split("_"))||void 0===c?void 0:c[0])||"",h={UK:"GB"}[p]||p,m=Object(v.d)()?"m":"d";window._criteoCache=window._criteoCache||[];var b=function(n){n?window._criteoCache.push([{event:"setAccount",account:{an:w,cn:h,ln:f}},{event:"setSiteType",type:m},{event:"viewBasket",item:n}]):console.warn("[criteo viewBasket]Please pass parameters according to the following format:\n      [\n        { // 商品id\n          id: '1111', \n          // 单价\n          price: 22.22, \n          // 数量\n          quantity: 1 \n        },\n        ...\n      ]")},g=function(n){n?window._criteoCache.push([{event:"setAccount",account:{an:w,cn:h,ln:f}},{event:"setSiteType",type:m},d()({event:"trackTransaction"},n||{})]):console.warn("[criteo trackTransaction]Please pass parameters according to the following format:\n      {\n        // 订单id\n        id: '',\n        // 币种\n        currency: '',\n        // 商品数据\n        item: [\n          { // 商品id\n            id: '1111', \n            // 单价\n            price: 22.22, \n            // 数量\n            quantity: 1 \n          },\n          ...\n        ]\n      }\n    ")},k=function(n){n?window._criteoCache.push([{event:"setAccount",account:{an:w,cn:h,ln:f}},{event:"setSiteType",type:m},{event:"viewList",item:n}]):console.warn("[criteo viewList]Please pass parameters according to the following format:\n    ['11111', '22222', '33333']\n    ")},y=t(0),_=t.n(y),x=t(2),C=t.n(x),A=t(36);window._naverCache=window._naverCache||[];var P=function(){var n=_()(C.a.mark((function n(e){var t,r,a,o,i,c,u,s;return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return");case 2:if(e){n.next=5;break}return console.warn("[naver trackTransaction]Please pass parameters according to the following format:\n      {\n        // 总金额\n        cnv: '12345',\n        // 币种\n        currency: ''\n      }\n    "),n.abrupt("return");case 5:if(t=JSON.parse(decodeURIComponent(l.a.get("xman_us_f","x_as_i")||"{}")),r=t.affiliateKey,a=t.tagtime,o=function(){return a&&Number(a)+864e5>(new Date).getTime()},"_ok6bK2H"===r&&o()){n.next=10;break}return n.abrupt("return");case 10:if(i=(null==e?void 0:e.cnv)||"0","KRW"!==(c=null==e?void 0:e.currency)){n.next=15;break}return window._naverCache.push({cnv:i}),n.abrupt("return");case 15:return n.prev=15,n.next=18,A.a.request({api:"mtop.aliexpress.adlink.rate.exchange",v:"1.0",data:{amount:i,currency:c||"KRW",targetCurrency:"KRW"}});case 18:u=n.sent,s=u.data,window._naverCache.push({cnv:(null==s?void 0:s.result)||""}),n.next=26;break;case 23:n.prev=23,n.t0=n.catch(15),console.log("naver上报出错:"+n.t0);case 26:case"end":return n.stop()}}),n,null,[[15,23]])})));return function(e){return n.apply(this,arguments)}}()},80:function(n,e,t){"use strict";t.d(e,"a",(function(){return a})),t.d(e,"d",(function(){return i})),t.d(e,"c",(function(){return c})),t.d(e,"b",(function(){return u})),t.d(e,"e",(function(){return s}));var r=t(5),a=function(){return r.isSSR?Object(r.getUserAgent)():navigator.userAgent},o=/(phone|pad|pod|iPhone|iPod|iPad|ios|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,i=function(){var n=a();return o.test(n)};function c(){var n=a();return/AliApp\(AE/.test(n)}function u(){var n=a();return/Android/.test(n)||/Adr/.test(n)}function s(){var n,e,t,r=null===(n=a())||void 0===n?void 0:n.toLowerCase(),o="MacIntel"===(null===(e=navigator)||void 0===e?void 0:e.platform)&&(null===(t=navigator)||void 0===t?void 0:t.maxTouchPoints)>1;return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(r)||o}}}]);