!function(){"use strict";var t={7084:function(t,e,n){var o=n(4933),r=n.n(o),a=n(3476),i=n.n(a)()(r());i.push([t.id,'@font-face{font-family:"recentsale-iconfont";src:url("//at.alicdn.com/t/font_2997681_8jbkqwwojx3.woff2?t=1638950246505") format("woff2"),url("//at.alicdn.com/t/font_2997681_8jbkqwwojx3.woff?t=1638950246505") format("woff"),url("//at.alicdn.com/t/font_2997681_8jbkqwwojx3.ttf?t=1638950246505") format("truetype")}#app_recentsale-wrap .recentsale-iconfont{font-family:"recentsale-iconfont" !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app_recentsale-wrap .icon-Close::before{content:""}#app_recentsale-wrap{position:relative;position:fixed;z-index:50100;box-sizing:border-box;width:336px;height:100px;padding:10px;border-radius:10px;transition:transform .3s ease}@media screen and (max-width: 460px){#app_recentsale-wrap{right:0 !important;left:0 !important;margin:auto !important}}@media screen and (max-width: 767p{#app_recentsale-wrap{right:0 !important;left:0 !important;margin:auto !important}}#app_recentsale-wrap.__default{background-color:#c71b4b}#app_recentsale-wrap .recentsale-top-image,#app_recentsale-wrap .recentsale-bottom-image{position:absolute;background-repeat:no-repeat;background-size:contain}#app_recentsale-wrap .recentsale-top-image.holiday_christmas{top:-52px;right:18px;width:100px;height:72px}#app_recentsale-wrap .recentsale-top-image.holiday_newyear{top:-61px;left:5px;width:100px;height:65px}#app_recentsale-wrap .recentsale-top-image.holiday_thanksgiving{top:-20px;z-index:-2;width:100%;height:65px}#app_recentsale-wrap .recentsale-top-image.holiday_valentine{top:-52px;width:68px;height:65px}#app_recentsale-wrap .recentsale-bottom-image.holiday_christmas{display:none}#app_recentsale-wrap .recentsale-bottom-image.holiday_newyear{display:none}#app_recentsale-wrap .recentsale-bottom-image.holiday_thanksgiving{right:0;right:12px;bottom:-20px;z-index:-2;width:100%;height:65px;transform:rotate(180deg)}#app_recentsale-wrap .recentsale-bottom-image.holiday_valentine{display:none}#app_recentsale-wrap>img{position:absolute;top:0;left:0;z-index:-1;display:block;width:100%;height:100%;object-fit:cover;border-radius:10px}#app_recentsale-wrap .icon-Close{position:absolute;top:5px;right:5px;display:inline-block;width:18px;height:18px;font-size:12px;font-weight:bold;line-height:18px;color:#333;text-align:center;cursor:pointer;background-color:rgba(255,255,255,.4);border-radius:50%}#app_recentsale-wrap .recentsale-core{display:flex;height:80px}#app_recentsale-wrap .recentsale-core .app_recentsale-product-img{display:block;width:80px;height:80px;margin-right:8px;border-radius:6px;object-fit:cover}#app_recentsale-wrap .recentsale-core .recentsale-description{box-sizing:border-box;display:flex;flex:1;flex-direction:column;justify-content:space-between;width:0;height:100%;padding:2px 0;font-weight:bold;color:#fff}#app_recentsale-wrap .recentsale-core .recentsale-description h5{box-sizing:border-box;width:100%;padding-right:24px;margin:0;font-size:14px}#app_recentsale-wrap .recentsale-core .recentsale-description h5 a{display:inline-block;max-width:100%;height:16px;overflow:hidden;line-height:1.2;color:#fff;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}#app_recentsale-wrap .recentsale-core .recentsale-description p{display:-webkit-box;margin:0;overflow:hidden;font-size:12px;font-weight:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.2}#app_recentsale-wrap .recentsale-core .recentsale-description .recentsale-detail img{width:20px;margin:0 2px;vertical-align:middle}',""]),e.Z=i},3476:function(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,r,a){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(o)for(var c=0;c0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=a),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),r&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=r):s[4]="".concat(r)),e.push(s))}},e}},4933:function(t){t.exports=function(t){return t[1]}},1892:function(t){var e=[];function n(t){for(var n=-1,o=0;o0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(o,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4865:function(t){t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var a=e[o]={id:o,exports:{}};return t[o](a,a.exports,n),a.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.nc=void 0,function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function e(e){for(var n=1;n=e.length&&(B=0);var c,p,l,s,h,g,y,b,w,v=e[B++],x=0;x=(c=u,p=d,l=f,s=m,h=window.innerWidth<=c,g=window.innerWidth<=p,y=window.innerWidth>p&&window.innerWidth<=l,b=window.innerWidth>p&&window.innerWidth<=s,w=window.innerWidth>s,{IS_SMALL_MOBILE:h,IS_MOBILE:g,IS_SMALL_IPAD:y,IS_IPAD:b,IS_PC:w,IS_MOBILE_STYLE:window.innerWidth<=l,IS_PC_STYLE:window.innerWidth>l,MOBILE_OR_SMALL_IPAD:g||y,MOBILE_OR_IPAD:g||b,IPAD_OR_PC:b||w}).IS_MOBILE?24:t.margin.y>M?M:t.margin.y;var C,O,P,j,S,T,D='\n\t\t\tL?L:t.margin.x,"px;\n\t\t\t\t\t").concat(o[1],": ").concat(x,'px;\n\t\t\t\t"\n\t\t\t>\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t').concat(v.title,'\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t

').concat(v.content.replace(//g," / "),'

\n\t\t\t\t\t\t

').concat((C=1e3*v.time,O=new Date(C),P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][O.getMonth()],j=U(O.getDate()),S=U(O.getHours()),T=U(O.getMinutes()),"".concat(P," ").concat(j,", ").concat(S,":").concat(T)),'

\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t').concat("default"===t.title&&1===t.template_type?"":''),"\n\t\t\t\t").concat(null!==(i=_[t.title])&&void 0!==i&&i.hasDecoration&&1===t.template_type?'\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t'):"","\n\t\t\t\n\t\t");$(document.body).append(D),setTimeout((function(){$("#app_recentsale-wrap").css("transform","translateX(0px)")}),300);var E=setTimeout(R.bind(n,t,e),1e3*t.show_time);$("#app_recentsale-wrap .recentsale-close-btn").on("click",(function(){clearTimeout(E);var n=F()+1;q(n),t.close_times&&n>=t.close_times&&(z=!1),R(t,e)}))}),1e3*t.step_time)}function W(t,e){return e=parseInt(e),"left"===t?-(e+336):e+336}function U(t){return 1===(t+"").length?"0"+t:t}function J(t,e){var n=t.title,o=t.front,r=t.template_type,a=t.template_thumb;return 1===r?"".concat(o,"/").concat(n)+("bg"===e?".png":"_top.png"):a}function q(t){localStorage.setItem(k,t)}function F(){return parseInt(localStorage.getItem(k)||0)}function H(t){localStorage.setItem(A,t)}function Z(){return parseInt(localStorage.getItem(A)||0)}moi.getUrlParam("quick_view")||a.get({url:"/info",appName:"recentsale",storageExpires:10,decompressingData:!0}).then((function(t){if(0===t.code&&t.data&&t.data.config&&!Array.isArray(t.data.config)){var e=t.data,n=e.config,o=e.list;if(n&&!Array.isArray(n)&&o&&2!==n.status&&(2!==n.show_page||"product/detail"===_GET_C_SETTING_("current_router"))){H(Z()+1);var r,a=JSON.parse(localStorage.getItem(N));!a||a.show_times===n.show_times&&a.close_times===n.close_times||(q(0),H(1)),r=n,localStorage.setItem(N,JSON.stringify(r)),(Z()=n.close_times)&&(z=!1),R(n,o)}}}))}()}();