1"use strict";(self.webpackChunknogle_react_boilerplate=self.webpackChunknogle_react_boilerplate||[]).push([[7684],{18901:(e,s,a)=>{var n=a(24994);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=n(a(46942)),t=n(a(79764)),d=n(a(74251)),i=n(a(63476)),c=n(a(94188)),o=a(8087),l=a(51628),_=n(a(47955)),m=a(74848);const{code:u,copyright:x}=c.default.brand,j={b12prod:2.5,jun88:2.5,ve3prod:1.5};s.default=e=>{let{loading:s,hanldeClaimPromoBonus:a,promoWinners:n,templateInfo:{giftPromoStatus:c,redBannerUrl:h,countDownSeconds:f,countdownKey:v,redImgUrl:g,bannerDescription:p}}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("section",{className:"redBanner",children:c&&(0,m.jsxs)("div",{className:"redBanner__fixed nonfixed",children:[(0,m.jsx)("div",{className:"redBanner__fixed__imgBox",children:h&&(0,m.jsx)("img",{className:"redBanner__fixed__img",src:h,alt:"banner"})}),(0,m.jsxs)("div",{className:(0,r.default)(`redBanner__fixed__content redBanner__fixed__content--${c}`),children:[(0,m.jsx)("h2",{className:"redBanner__title",children:!s&&l.i18n[`red.envelope.status.${c}`]}),f&&(0,m.jsx)(_.default,{countDownSeconds:f},v),(0,m.jsx)("div",{className:"redBanner__secondHand"})]})]})}),(0,m.jsxs)("div",{className:"contentWrap",children:[c===o.giftPromoEnum.IN_PROGRESS&&(0,m.jsx)("a",{className:"contentWrap__btn",onClick:a,children:(0,m.jsx)("span",{className:"contentWrap__btn__content",children:(0,m.jsx)("span",{children:l.i18n["red.envelope.get.it.now"]})})}),(0,m.jsx)("section",{className:"getRedBag",children:(0,m.jsxs)("div",{className:"sectionWrap",children:[(0,m.jsx)("h2",{className:"sectionWrap__title",children:(0,m.jsx)("strong",{className:"sectionWrap__title__deco",children:l.i18n["red.envelope.winners"]})}),(0,m.jsxs)("div",{className:"getRedBag__wrap",children:[(0,m.jsxs)("div",{className:"getRedBag__box",children:[(0,m.jsx)("div",{className:"getRedBag__box__list",children:(0,m.jsx)("div",{className:"getRedBag__box__list__box",children:(0,m.jsx)(d.default,{list:n})})}),(0,m.jsx)("div",{className:"getRedBag__box__ULT"}),(0,m.jsx)("div",{className:"getRedBag__box__URT"}),(0,m.jsx)("div",{className:"getRedBag__box__DLT"}),(0,m.jsx)("div",{className:"getRedBag__box__DRT"})]}),(0,m.jsx)("div",{className:"getRedBag__wrap__ULT"}),(0,m.jsx)("div",{className:"getRedBag__wrap__URT"}),(0,m.jsx)("div",{className:"getRedBag__wrap__DLT"}),(0,m.jsx)("div",{className:"getRedBag__wrap__DRT"})]})]})}),p&&(0,m.jsx)("section",{className:"ruleActivity",children:(0,m.jsxs)("div",{className:"sectionWrap",children:[(0,m.jsx)("h2",{className:"sectionWrap__title",children:(0,m.jsx)("strong",{className:"sectionWrap__title__deco",children:l.i18n["_terms.and.condition"]})}),(0,m.jsx)(t.default,{content:p})]})})]}),(0,m.jsx)("footer",{className:"redFoot",children:(0,m.jsxs)("div",{className:"redFoot__wrap",children:[(0,m.jsx)("p",{children:x}),(0,m.jsx)("div",{className:"redFoot__redBag",children:g&&(0,m.jsx)("img",{src:g})})]})}),(0,m.jsx)("div",{className:"red-fall",children:g&&(0,m.jsx)(i.default,{imgUrl:g,gravity:j[u],onClick:a})})]})}},47955:(e,s,a)=>{var n=a(24994);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,n(a(5556));var r=n(a(96540)),t=n(a(52468)),d=a(51628),i=a(74848);const c=e=>{let{countDownSeconds:s,onEnd:a}=e;const{hours:n,minutes:o,seconds:l}=(0,t.default)({seconds:s,onEnd:a}),_=c.format(Math.floor(n/24)),m=c.format(n%24),u=c.format(o),x=c.format(l);return(0,i.jsxs)(r.default.Fragment,{children:[(0,i.jsxs)("div",{className:"redBanner__timeBox",children:[(0,i.jsx)("div",{className:"redBanner__timeBox__timeWord",children:_}),(0,i.jsx)("div",{className:"redBanner__timeBox__timeWord",children:m}),(0,i.jsx)("div",{className:"redBanner__timeBox__timeWord",children:u}),(0,i.jsx)("div",{className:"redBanner__timeBox__timeWord",children:x})]}),(0,i.jsxs)("p",{className:"redBanner__timeUnit",children:[(0,i.jsx)("span",{children:d.i18n.days}),(0,i.jsx)("span",{children:d.i18n.hours}),(0,i.jsx)("span",{children:d.i18n.minutes}),(0,i.jsx)("span",{children:d.i18n.seconds})]})]})};c.format=e=>e<10?`0${e}`:e,c.defaultProps={onEnd:()=>{}},s.default=c},52468:(e,s,a)=>{var n=a(24994);Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var r=a(96540),t=n(a(95093));s.default=function(e){let{seconds:s=0,onEnd:a,asSeconds:n=!1,timeout:d=500}=e;const i=(0,r.useRef)(),c=(0,r.useRef)((new Date).getTime()+1e3*s),[o,l]=(0,r.useState)(1e3*s),_=()=>{const e=(new Date).getTime();if(e>=c.current)return clearTimeout(i.current),void(a&&a(l));l(c.current-e)};if((0,r.useEffect)(()=>{const e=setTimeout(_,d);return i.current=e,()=>clearTimeout(i.current)},[o]),n)return Math.floor(o/1e3);const m=t.default.duration(Math.floor(o/1e3),"seconds"),u=Math.floor(m.asDays()),x=m.hours();return{hours:Math.floor(m.asHours()),minutes:m.minutes(),seconds:m.seconds(),daysData:{days:u,hoursByDay:x}}}},66937:(e,s,a)=>{var n=a(24994);Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return r.default}});var r=n(a(18901))}}]);
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.