PageSourceSearch

https://image.next.vivosun.com/file-asset/static/f8a2e0a4f70392282…/pages/winter-surprise-17b901fda790697b.js

js vivosun.com collected 2026-10-03 23:41:08 UTC 10,598 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3936],{68310:function(e,r,t){"use strict";var n=t(79738),s=t(32996),a=t(24246);r.Z=function(e){var r=e.middle,t=void 0!==r&&r,i=(0,s.IA)().t;return(0,a.jsx)(n.Z,{errorTip:i("web_common_page_not_found"),middle:t})}},83388:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});var n=t(72202),s=t(7756),a=t(76803),i=t(32996),c=t(44859);function o(e){var r=e||{},t=r.url,o=r.title,u=r.utmQuery,l=void 0===u?{}:u,p=(0,i.IA)().t,d=(0,n.oR)(),f=d.rootStore.state,h=f.host,v=f.envName,m=d.userStore.state.referralCode,_=(0,a.Ok)(m,l),b=function(){var e,r="undefined"!=typeof document?null===(e=document)||void 0===e?void 0:e.querySelectorAll("head meta[property]"):[],t=[];return null===r||void 0===r||r.forEach((function(e){t.push({property:e.getAttribute("property"),content:e.getAttribute("content")||""})})),t}(),x=null===b||void 0===b?void 0:b.find((function(e){return"og:image"===e.property})),g=null===b||void 0===b?void 0:b.find((function(e){return"og:title"===e.property})),w=p("web_share_msg_01",{brand:s.Z.brand}),j=t||"https://".concat("dev"!==v?h:s.Z.domain),y=(0,c.C)({requireReferralCode:!0,url:j,utmQuery:_});return{title:o||(null===g||void 0===g?void 0:g.content)||w||"",url:j,utmQuery:_,media:(null===x||void 0===x?void 0:x.content)||"",shareUrls:y}}},91637:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return xe},default:function(){return ge}});var n,s=t(90849),a=t(27378),i="boxes-wrap_S8KkS",c="sub-wrap_6RmZp",o="boxes_NU4KH",u="used_Oiqez",l=t(60042),p=t.n(l),d="boxes_CQyDE",f="video-wrap_p9kZz",h="show-video_n4bG3",v="play-wrap_Iz9ve",m=t(56591),_=t(49589),b={"fill-placeholder-child":"fill-placeholder-child_zefPJ",btns:"btns_yD5R0",btn:"btn_-4tQp"},x=t(84529),g=t(7153),w=t(32996),j=t(24246),y=function(e){var r=e.share,t=e.onShare,n=(0,w.IA)().t;return(0,j.jsxs)("div",{className:b.btns,children:[(0,j.jsx)(g.FP,{shareUrls:null===r||void 0===r?void 0:r.shareUrls,onClickItem:t,children:(0,j.jsxs)(m.Z,{className:b.btn,ghost:!0,type:"primary",size:"small",children:[(0,j.jsx)(_.Z,{className:b["support-carts-img"],src:"file-asset/file/1044dd720c2f0bdad36e9093b1c551be.svg",fixed:!0,height:18,width:18,background:!1}),n("web_common_share")]})}),(0,j.jsxs)(m.Z,{className:b.btn,type:"primary",ghost:!0,size:"small",onClick:function(){(0,x.dP)({selector:"#js-winter-surprise-rules"})},children:[(0,j.jsx)(_.Z,{className:b["support-carts-img"],src:"file-asset/file/a1d216e4910ec7c5a12f591ccf2b9e84.svg",fixed:!0,height:18,width:18,background:!1})," ",n("web_help_add_device")]})]})},N="play-btn-wrap_PDGhV",Z="btn_zTJ4q",k="thanks-btn_LBRJ7",C="share-btn_AxSad",S="open-btn_W92sm";t(25494);!function(e){e.noChance="NO_CHANCE",e.chance="CHANCE",e.chanceUsed="CHANCE_USED"}(n||(n={}));var P=t(56850),O="modal_BDToh",E="title_-r60t",A="gift-item_GyO8m",I="icon-points-wrap",D="pic_s0T37",G="info_CX1my",U="free_Nl1kg",T="points_AO-jJ",z="del-price_KmK05",L=t(69640),R=t(81628),H=function(e){var r=e.gifts,t=e.visible,n=e.onCancel;if(!r)return null;var s=r.points,a=r.variant;return a||s?(0,j.jsxs)(P.Z,{maskStyle:{background:"rgba(0, 0, 0, 0.7)"},closeIcon:(0,j.jsx)(R.Z,{style:{color:"white"},className:"icon-close"}),className:O,open:t,onCancel:n,centered:!0,footer:!1,width:1200,children:[(0,j.jsx)("div",{className:E,children:"Congratulations!"}),(0,j.jsxs)("div",{className:"flex flex-center",children:[(0,j.jsxs)("div",{className:A,children:[(0,j.jsx)("div",{className:p()(D,I),children:(0,j.jsx)(L.M,{size:60})}),(0,j.jsx)("div",{className:G,children:(0,j.jsxs)("span",{className:T,children:["+",s]})})]}),!!a&&(0,j.jsxs)("div",{className:A,children:[(0,j.jsx)("div",{className:p()(D),children:(0,j.jsx)(_.Z,{src:a.pic.url,fixed:!0,height:120,width:120,background:!1})}),(0,j.jsxs)("div",{className:G,children:[(0,j.jsx)("p",{className:U,children:a.shopPriceExchangeDisplay}),(0,j.jsx)("p",{className:z,children:a.marketPriceExchangeDisplay})]})]})]})]}):null};function J(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function Q(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};
1r%2?J(Object(t),!0).forEach((function(r){(0,s.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var q=function(e){var r=(0,w.IA)().t,t=e.winterGift,s=t.boxes,a=t.onDrawGifts,i=t.share,c=t.onShareChance,o=null===s||void 0===s?void 0:s.status;return o===n.noChance?(0,j.jsx)(g.FP,{trigger:"click",shareUrls:null===i||void 0===i?void 0:i.shareUrls,onClickItem:c,children:(0,j.jsx)(m.Z,{className:p()(C,Z),ghost:!0,type:"primary",children:r("web_shop_activity_share_for_a_gift")})}):o===n.chance?(0,j.jsx)(m.Z,{className:p()(S,Z),type:"primary",onClick:function(){a()},children:r("web_shop_activity_open_your_gift_box")}):o===n.chanceUsed?(0,j.jsx)(m.Z,{className:p()(k,Z),ghost:!0,type:"primary",children:r("web_shop_activity_thanks_for_joining")}):null},F=function(e){var r=e.winterGift,t=r.gifts,n=r.giftsPopupVisible,s=r.onCloseGiftsPopup;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:N,children:(0,j.jsx)(q,Q({},e))}),(0,j.jsx)(H,{gifts:t,visible:n,onCancel:s})]})},K=t(99148),V=function(e){var r=e.winterGift,t=e.className,n=r||{},i=n.boxesLoading,c=n.onShareChance,o=n.share,u=n.giftsLoading,l=(0,a.useRef)(null);return(0,a.useEffect)((function(){var e;u&&(null===(e=l.current)||void 0===e||e.play())}),[u]),(0,j.jsxs)("div",{className:p()(t,d,"placeholder-wrap relative"),children:[(0,j.jsx)("div",{className:p()(f,(0,s.Z)({},h,u)),children:(0,j.jsx)(K.ZP,{className:"mask",src:"file-asset/file/16cc399b666916cda9b010e87d4d8e1a.mp4",ref:l,muted:!0,absolute:!0})}),(0,j.jsxs)("div",{className:p()(v,"wrapper absolute"),children:[(0,j.jsx)(y,{share:o,onShare:function(){c()}}),i?null:(0,j.jsx)(F,{winterGift:r})]})]})},B=t(55732),M=t(34707),X=t.n(M),W=t(8437),Y=t(27551),$=t(46918);function ee(){return re.apply(this,arguments)}function re(){return(re=(0,B.Z)(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Y.Z.get("/web/giftbox/v2/config"));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function te(){return ne.apply(this,arguments)}function ne(){return(ne=(0,B.Z)(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Y.Z.post("/web/cart/giftbox/v2/draw"));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(){return ae.apply(this,arguments)}function ae(){return(ae=(0,B.Z)(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Y.Z.post("/web/giftbox/v2/share"));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ie=t(97421),ce=t(86677),oe=t(72202),ue=t(88303),le=t(83388),pe=t(66701),de=t(49696);var fe="rules-wrapper_Vdwrw",he="title_dvgIx",ve="content_0mBNZ",me=function(){var e=(0,w.IA)().t;return(0,j.jsx)("div",{id:"js-winter-surprise-rules",className:p()(fe),children:(0,j.jsxs)("div",{className:p()({wrapper:!0}),children:[(0,j.jsx)("h2",{className:p()(he,""),children:e("web_shop_activity_winter_surprise_rules_title")}),(0,j.jsx)("div",{className:p()(ve),children:(0,j.jsx)("div",{dangerouslySetInnerHTML:{__html:e("web_shop_activity_winter_surprise_rules_desc")}})})]})})},_e=t(68310),be=(0,oe.Pi)((function(e){var r=function(e){var r,t=(0,oe.oR)(),n=t.rootStore.state.host,s=t.miniCartStore,i=t.userStore,c=(0,ce.useRouter)(),o=(0,a.useState)(),u=o[0],l=o[1],p=(0,a.useState)(!1),d=p[0],f=p[1],h=(0,a.useState)(),v=h[0],m=h[1],_=(0,a.useState)(!1),b=_[0],x=_[1],g=(0,a.useState)(!1),w=g[0],j=g[1],y="https://".concat(n).concat(ue.g.WinterSurprise),N=(0,le.Z)({url:y}),Z=function(){var e=(0,B.Z)(X().mark((function e(){var t;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,ee();case 4:t=e.sent,l(t),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),ie.Z.error(e.t0.message);case 11:return e.prev=11,clearInterval(r),e.finish(11);case 14:f(!1);case 15:case"end":return e.stop()}}),e,null,[[1,8,11,14]])}
1)));return function(){return e.apply(this,arguments)}}(),k=function(){var e=(0,B.Z)(X().mark((function e(){var t,n;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.checkAuth()){e.next=3;break}return c.push((0,$.generatePath)(ue.g.LOGIN,{redirect:c.asPath})),e.abrupt("return");case 3:return x(!0),e.prev=4,t=0,r=setInterval((function(){t+=.1}),100),e.next=9,te();case 9:if(n=e.sent,m(n),!(t<2)){e.next=14;break}return e.next=14,(0,pe.Z)(1e3*(2-t));case 14:return n.variant&&"{}"!=JSON.stringify(n.variant)&&(s.afterAddCart(1),(0,de.vS)(1)),j(!0),e.next=18,Z();case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(4),ie.Z.error(e.t0.message);case 23:return e.prev=23,x(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[4,20,23,26]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=(0,B.Z)(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.checkAuth()){e.next=3;break}return c.push((0,$.generatePath)(ue.g.LOGIN,{redirect:c.asPath})),e.abrupt("return");case 3:return e.prev=3,e.next=6,se();case 6:return e.next=8,Z();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),ie.Z.error(e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){(0,W.Z0)(),e?l(e):Z().then()}),[]),{boxes:u,boxesLoading:d,gifts:v,giftsLoading:b,giftsPopupVisible:w,onShareChance:C,onCloseGiftsPopup:function(){j(!1)},onDrawGifts:k,share:N}}(null===e||void 0===e?void 0:e.serverProps),t=(r||{}).boxes,l=(t||{}).status,d=Math.floor(Date.now()/1e3);return!!t&&(+(null===t||void 0===t?void 0:t.startTime)<+d&&+t.endTime>+d)?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:p()(i),children:(0,j.jsx)("div",{className:c,children:(0,j.jsx)(V,{winterGift:r,className:p()(o,(0,s.Z)({},u,l===n.chanceUsed))})})}),(0,j.jsx)(me,{})]}):(0,j.jsx)(_e.Z,{})}));be.pageConf={pageCode:"winterSurprise"};var xe=!0,ge=be},36970:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/winter-surprise",function(){return t(91637)}])}},function(e){e.O(0,[9774,2888,179],(function(){return r=36970,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.