PageSourceSearch

https://www.beechenghiang.com.sg/_next/static/chunks/pages/account-58971d7486a64136d6bd.js

js beechenghiang.com.sg collected 2026-09-24 10:04:52 UTC 23,367 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{6230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},92167:function(e,t,n){"use strict";var r=n(53848),o=n(69448);t.default=void 0;var i=o(n(67294)),a=n(29414),c=n(34651),l=n(7426),s={};function u(e,t,n,r){if(e&&(0,a.isLocalURL)(t)){e.prefetch(t,n,r).catch((function(e){0}));var o=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;s[t+"%"+n+(o?"%"+o:"")]=!0}}var d=function(e){var t,n=!1!==e.prefetch,o=(0,c.useRouter)(),d=i.default.useMemo((function(){var t=(0,a.resolveHref)(o,e.href,!0),n=r(t,2),i=n[0],c=n[1];return{href:i,as:e.as?(0,a.resolveHref)(o,e.as):c||i}}),[o,e.href,e.as]),f=d.href,p=d.as,m=e.children,h=e.replace,v=e.shallow,y=e.scroll,g=e.locale;"string"===typeof m&&(m=i.default.createElement("a",null,m));var b=(t=i.Children.only(m))&&"object"===typeof t&&t.ref,x=(0,l.useIntersection)({rootMargin:"200px"}),j=r(x,2),_=j[0],P=j[1],w=i.default.useCallback((function(e){_(e),b&&("function"===typeof b?b(e):"object"===typeof b&&(b.current=e))}),[b,_]);(0,i.useEffect)((function(){var e=P&&n&&(0,a.isLocalURL)(f),t="undefined"!==typeof g?g:o&&o.locale,r=s[f+"%"+p+(t?"%"+t:"")];e&&!r&&u(o,f,p,{locale:t})}),[p,f,P,g,n,o]);var O={ref:w,onClick:function(e){t.props&&"function"===typeof t.props.onClick&&t.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,i,c,l){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&(0,a.isLocalURL)(n))&&(e.preventDefault(),null==c&&r.indexOf("#")>=0&&(c=!1),t[o?"replace":"push"](n,r,{shallow:i,locale:l,scroll:c}))}(e,o,f,p,h,v,y,g)},onMouseEnter:function(e){(0,a.isLocalURL)(f)&&(t.props&&"function"===typeof t.props.onMouseEnter&&t.props.onMouseEnter(e),u(o,f,p,{priority:!0}))}};if(e.passHref||"a"===t.type&&!("href"in t.props)){var k="undefined"!==typeof g?g:o&&o.locale,T=o&&o.isLocaleDomain&&(0,a.getDomainLocale)(p,k,o&&o.locales,o&&o.domainLocales);O.href=T||(0,a.addBasePath)((0,a.addLocale)(p,k,o&&o.defaultLocale))}return i.default.cloneElement(t,O)};t.default=d},57999:function(e,t,n){"use strict";var r=n(61682);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.default=function(e,t){var n=a.default,r={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};e instanceof Promise?r.loader=function(){return e}:"function"===typeof e?r.loader=e:"object"===typeof e&&(r=i(i({},r),e));(r=i(i({},r),t)).loadableGenerated&&delete(r=i(i({},r),r.loadableGenerated)).loadableGenerated;if("boolean"===typeof r.ssr){if(!r.ssr)return delete r.ssr,l(n,r);delete r.ssr}return n(r)};c(n(67294));var a=c(n(87653));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}},519:function(e,t,n){"use strict";var r;t.__esModule=!0,t.LoadableContext=void 0;var o=((r=n(67294))&&r.__esModule?r:{default:r}).default.createContext(null);t.LoadableContext=o},87653:function(e,t,n){"use strict";var r=n(61682),o=n(2553),i=n(62012);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}
1t.__esModule=!0,t.default=void 0;var u,d=(u=n(67294))&&u.__esModule?u:{default:u},f=n(67161),p=n(519);var m=[],h=[],v=!1;function y(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}var g=function(){function e(t,n){o(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return i(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=c(c({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function b(e){return function(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function o(){if(!r){var t=new g(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!v&&"function"===typeof n.webpack){var i=n.webpack();h.push((function(e){var t,n=l(i);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(-1!==e.indexOf(r))return o()}}catch(a){n.e(a)}finally{n.f()}}))}var a=function(e,t){o();var i=d.default.useContext(p.LoadableContext),a=(0,f.useSubscription)(r);return d.default.useImperativeHandle(t,(function(){return{retry:r.retry}}),[]),i&&Array.isArray(n.modules)&&n.modules.forEach((function(e){i(e)})),d.default.useMemo((function(){return a.loading||a.error?d.default.createElement(n.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?d.default.createElement(function(e){return e&&e.__esModule?e.default:e}(a.loaded),e):null}),[e,a])};return a.preload=function(){return o()},a.displayName="LoadableComponent",d.default.forwardRef(a)}(y,e)}function x(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return x(e,t)}))}b.preloadAll=function(){return new Promise((function(e,t){x(m).then(e,t)}))},b.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return v=!0,t()};x(h,e).then(n,n)}))},window.__NEXT_PRELOADREADY=b.preloadReady;var j=b;t.default=j},87377:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return U},default:function(){return G}});var r=n(26265),o=n(85893),i=n(809),a=n.n(i),c=n(64121),l=n(92447),s=n(67294),u=n(11163),d=n(30381),f=n.n(d),p=n(63276),m=n(11752),h=n(48633),v=n(39704),y=n(12573),g=n(2714),b=n(86337),x=n(55909),j=n(25675),_=n(16882);n(49467);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=(0,n(5152).default)((function(){return Promise.all([n.e(571),n.e(2568)]).then(n.t.bind(n,12568,23))}),{ssr:!1,loadableGenerated:{webpack:function(){return[12568]},modules:["..\\components\\carousel\\buy-again-carousel.tsx -> react-owl-carousel"]}}),k=(0,m.default)().publicRuntimeConfig,T=k.currencySymbol,N={loop:!1,autoplay:!1,margin:10,stagePadding:0,center:!1,autoplayHoverPause:!0,responsive:{0:{items:1},480:{items:2},768:{items:1,stagePadding:30},800:{items:2,stagePadding:30},1024:{items:3}}},S=function(e){(0,p.$G)(["common"]).t;var t=e.item,n=e.webLocale;return(0,o.jsx)("div",{className:"slider",style:{maxWidth:810},children:(0,o.jsx)(O,w(w({className:"slider-items owl-carousel"},N),{},{id:"buy_again_sliver",children:t.length>0&&(0,o.jsx)(o.Fragment,{children:t.map((function(e,r){var i=function(e){var t=null;if(null!=e.Promotions&&e.Promotions.length>0){var n=e.Promotions.filter((function(e){return!1===e.IsDeliveryType}));null!=n&&n.length>0&&(t=n[0])}return t}(e),a="en-US"==n.lang?"/".concat(e.Slug):"/".concat(n.lang,"/").concat(e.Slug);return(0,o.jsx)("div",{className:"item",children:(0,o.jsxs)("a",{href:a,className:"fc-product-item-link",children:[(0,o.jsxs)("div",{className:"fc-product-item-image",children:[void 0!=e.ImageUrl&&null!=e.ImageUrl&&(0,o.jsx)(j.default,{src:e.ImageUrl,alt:e.Name,layout:"fill",objectFit:"cover",quality:100}),e.Labels.length>0&&(0,o.jsx)("div",{className:"fc-product-item-badge-container",children:e.Labels.map((function(e){return(0,o.jsx)("div",{className:"fc-product-item-badge fc-product-item-badge-new",style:{backgroundColor:"#".concat(e.bgcolor),color:"#".concat(e.textcolor)},children:e.Name},e.Id)}))}),null!=i&&(0,o.jsx)("div",{className:"fc-product-item-promotion-text",children:i.Title})]}),(0,o.jsxs)("div",{className:"fc-product-item-info-container",children:[(0,o.jsx)("div",{className:"fc-product-item-name",children:e.Name}),(0,o.jsxs)("div",{className:"fc-product-item-price-container",style:{flexDirection:"column"},children:[e.DiscountMethod!==k.discountMethod.none&&null!=e.ProPriceFrom?(0,o.jsxs)("div",{className:"fc-product-item-price-red-text",children:[T,(0,_.x)(e.ProPriceFrom)+(e.ProPriceTo>0&&e.ProPriceFrom!==t.ProPriceTo?" - "+T+(0,_.x)(e.ProPriceTo):"")]}):(0,o.jsxs)("div",{className:"fc-product-item-price-red-text",children:[T,(0,_.x)(e.PriceFrom)+(e.PriceTo>0&&e.PriceTo!==e.PriceFrom?" - "+T+(0,_.x)(e.PriceTo):"")]}),e.ProPriceFrom>0&&e.ProPriceTo>0&&(0,o.jsxs)("div",{className:"fc-product-item-price-text",children:[null!=e.PriceFrom&&(0,o.jsxs)("span",{className:"fc-product-item-price-text-strike",children:[T,(0,_.x)(e.PriceFrom)+(e.PriceTo>0&&e.PriceFrom!==e.PriceTo?" - "+T+(0,_.x)(e.PriceTo):"")]}),""!==e.PromotionUp2Label&&null!==e.PromotionUp2Label&&(0,o.jsx)("span",{className:"fc-product-item-price-text-discount-percentage",children:e.PromotionUp2Label})]})]})]})]})},r)}))})}))})},L=n(35519),C=n(23259),D=n(57768),E=n(46998),I=n(18847),A=n(68641);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?B(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=(0,m.default)().publicRuntimeConfig,R=F.cookiesConstant,Z=F.currencySymbol,U=!0,G=function(e){var t=(0,p.$G)(["common","account"]).t,n=((0,u.useRouter)(),(0,v.I0)()),i=e.privateAccessToken,d=e.preferenceParams,m=e.isLoggedIn,j=e.siteLangs,P=e.isRequiredCompleteProfile,w=(0,s.useState)(null),O=w[0],k=w[1],T=(0,s.useState)(null),N=T[0],B=T[1],F=(0,s.useState)(null),U=F[0],G=F[1],J=(0,s.useState)(null),H=J[0],q=J[1],K=(0,s.useState)([]),Y=K[0],$=K[1],V=(0,s.useState)([]),X=V[0],W=V[1],Q=(0,s.useState)([]),z=Q[0],ee=Q[1],te=(0,s.useState)(!1),ne=te[0],re=te[1],oe=(0,s.useState)(!0),ie=oe[0],ae=oe[1],ce=(0,s.useState)(null),le=(ce[0],ce[1]),se=(0,s.useState)(null),ue=se[0],de=se[1],fe=(0,s.useContext)(b.n),pe=(0,s.useState)({silver:!1,gold:!1,platinum:!1,other:!1}),me=pe[0],he=pe[1];function ve(){return ye.apply(this,arguments)}function ye(){return(ye=(0,l.Z)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n(y.GK());case 3:(t=e.sent).length>0&&(t[0].isError||window.localStorage.setItem("userPublicToken",null!==t[0].data?JSON.stringify(t[0].data):"")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("renewPublicToken",e.t0.message);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function ge(){return be.apply(this,arguments)}function be(){return(be=(0,l.Z)(a().mark((function e(){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ae(!0),t=JSON.stringify({myCart:[]}),n=JSON.stringify({myBuyLaterCart:[]}),window.localStorage.setItem("_cartSession",t),window.localStorage.setItem("_cartBuyLaterSession",n),window.localStorage.removeItem("_deliveryLoc"),xe(),e.t0=Promise,e.next=8,ve();case 8:e.t1=e.sent,e.t2=[e.t1],e.t0.all.call(e.t0,e.t2).then((function(e){console.log("Promise Done",e),setTimeout((function(){(0,h.w7)({callbackUrl:"/"})}),1500)}));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,s.useEffect)((function(){var e=!0;return 1==e&&fe.webAccessData&&(le(fe.webAccessData),G(P?t("account:msg_account_incomplete"):null)),function(){e=!1}}),[fe]),(0,s.useEffect)((function(){ue&&ne&&d&&function(){var e=(0,l.Z)(a().mark((function e(){var t,r,o,i,l,s,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,ae(!0),k(null),q(null),$([]),W([]),ee([]),e.next=9,Promise.all([n((0,g.Ai)(ue)),n((0,g.uQ)(ue,d)),n((0,g.LP)(ue,d)),n((0,g._S)(ue,{cultureId:d.CultureId})),n((0,g.un)(ue,{PageNum:1,TotalPerPage:5,CultureId:d.CultureId}))]);case 9:t=e.sent,r=(0,c.Z)(t,5),o=r[0],i=r[1],l=r[2],s=r[3],u=r[4],ee(u),B(o),q(i),$(l),W(s),e.next=27;break;case 23:e.prev=23,e.t0=e.catch(0),k(e.t0.message),e.t0.message.includes("401")?ge():e.t0.message.includes("500")&&(window.location.href="/500/");case 27:return e.prev=27,ae(!1),e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[0,23,27,30]])})));return function(){return e.apply(this,arguments)}}()()}),[ue,ne,d]),(0,s.useEffect)((function(){var e=!0;return e&&(m?(ae(!1),re(!0),de(i)):window.location.href="/account/signin/"),function(){e=!1}}),[]);var xe=function(){var e=(0,l.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:document.cookie="".concat(R.cookiesAuth_accessToken,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(R.cookiesAuth_tokenType,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(R.cookiesAuth_expires,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(R.cookiesAuth_isLogin,"=0;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(R.cookiesAuth_refreshToken,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),je=(0,s.useCallback)((0,l.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==ue){e.next=21;break}return e.prev=1,k(null),ae(!0),e.next=6,n((0,g.Rc)(ue));case 6:if(!0!==e.sent){e.next=13;break}return e.next=10,window.localStorage.clear();case 10:ge(),e.next=15;break;case 13:k(t("common:msg_unable_process_your_request")),ae(!1);case 15:e.next=21;break;case 17:e.prev=17,e.t0=e.catch(1),ae(!1),k(e.t0.message);case 21:case"end":return e.stop()}}),e,null,[[1,17]])}))),[ue]);return(0,o.jsxs)(o.Fragment,{children:[null!==U&&(0,o.jsx)(L.Z,{showTitle:!1,customStyle:A.ty,customBodyStyle:{height:"100%"},isOpen:!0,shouldCloseOnOverlayClick:!1,onRequestClose:function(){G(null)},title:t("common:alert_heading_info"),children:(0,o.jsxs)("div",{className:"message-modal-container",children:[(0,o.jsx)("p",{style:{textAlign:"center"},dangerouslySetInnerHTML:{__html:U}}),(0,o.jsxs)("div",{style:{marginTop:40},children:[(0,o.jsx)(C.Z,{buttonStyle:{textTransform:"uppercase",marginBottom:20},title:t("btn_continue"),onClick:function(){window.location.href="".concat("en-US"==(null===j||void 0===j?void 0:j.lang)?"/":"/".concat(null===j||void 0===j?void 0:j.lang,"/"),"account/complete-profile/")}}),(0,o.jsx)(D.Z,{title:t("btn_logout"),onClick:ge})]})]})}),null!==O&&!O.includes("401")&&(0,o.jsx)(L.Z,{customStyle:A.fW,isOpen:!0,onRequestClose:function(){O.includes("401")?ge():k(null)},title:t("common:modal_header_error"),children:(0,o.jsxs)("div",{className:"message-modal-container",children:[(0,o.jsx)("p",{children:O}),(0,o.jsx)("div",{style:{marginTop:40},children:(0,o.jsx)(C.Z,{buttonStyle:{textTransform:"uppercase"},title:t("btn_ok"),onClick:function(){O.includes("401")?ge():k(null)}})})]})}
1),!0===ie&&(0,o.jsx)("div",{className:"overlayBackground",children:(0,o.jsx)(x.Z,{})}),null!=N&&(0,o.jsx)("div",{className:"account-container main",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsxs)("div",{className:"main-container",children:[(0,o.jsxs)("div",{className:"main-profile-container",children:[(0,o.jsx)(E.Z,{locale:j,profileData:N,privateToken:i}),(0,o.jsx)(I.Z,{activeMenu:1,onLogoutPress:ge,isAffiliate:N.affiliate,privateTokenData:i,onDeleteAccountPress:function(){window.confirm("".concat(t("account:msg_confirmation_delete_account")))&&je()}})]}),null===U&&(0,o.jsxs)("div",{className:"main-member-tier-container",children:[Y.length>0&&null!=H&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{children:(null===H||void 0===H?void 0:H.LevelType)>4?t("account:heading_tier_information"):t("account:heading_current_tier")}),(0,o.jsx)("div",{className:"main-member-tier-info",children:Y.map((function(e){var n;return function(e,n){if(e.Id!==n)return null;if(!(n>4&&[1,2,3].includes(e.Id))){var i,a=null,c={1:{key:"silver",background:["silverBgLeft","silverBgBody","silverBgRight"]},2:{key:"gold",background:["goldBgLeft","goldBgBody","goldBgRight"]},3:{key:"platinum",background:["platinumBgLeft","platinumBgBody","platinumBgRight"]},other:{key:"other",background:["staffBgLeft","staffBgBody","staffBgRight"]}};e.Id===n&&(a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("p",{children:[t("account:label_earned_points"),": ",H.TotalPendingPoints+H.BalancePoints]}),(0,o.jsxs)("p",{children:[t("account:label_redeemable_points"),"*: ",H.BalancePoints]}),(null===H||void 0===H||null===(i=H.CustomerMembershipPoints)||void 0===i?void 0:i.length)>0&&(null===H||void 0===H?void 0:H.CustomerMembershipPoints.map((function(e){return(0,o.jsxs)("p",{children:["*",e.PointsAmount,"  ",t("account:label_point_expiring_on")," ",e.Expiry]})}))),(0,o.jsx)("div",{className:"sp-line"})]}));var l=c[e.Id]||c.other,s=me[null===l||void 0===l?void 0:l.key]||!1;return(0,o.jsxs)("div",{className:"tier ".concat(e.Id===n?"selected":""),children:[(0,o.jsx)("div",{className:"title-wrap",children:(0,o.jsxs)("div",{className:"title-background",children:[(null===l||void 0===l?void 0:l.background).map((function(e){return(0,o.jsx)("div",{className:e},e)})),(0,o.jsx)("a",{onClick:function(){return he((function(e){return M(M({},e),{},(0,r.Z)({},null===l||void 0===l?void 0:l.key,!s))}))},children:(0,o.jsx)("h3",{children:e.Name})})]})}),(0,o.jsxs)("div",{className:"tier-details ".concat(e.Id===n?"active":""," ").concat(s?"active":""),children:[a,(0,o.jsx)("table",{cellPadding:0,cellSpacing:0,className:"tier-table",children:(0,o.jsxs)("tbody",{children:[[1,2,3].includes(e.Id)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:t("account:label_tier_amount")}),e.IsLastLevel?(0,o.jsxs)("td",{children:["\xa0:\xa0\xa0\xa0",t("account:more_than")," ",Z,(0,_.x)(e.TierAmountFrom)]}):(0,o.jsxs)("td",{children:["\xa0:\xa0\xa0\xa0",Z,(0,_.x)(e.TierAmountFrom)," - ",Z,(0,_.x)(e.TierAmountTo)]})]}),(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:t("account:label_earn_points")}),(0,o.jsxs)("td",{children:["\xa0:\xa0\xa0\xa0$1 = ",e.EarnPoint," ",t("account:label_points")]})]})]}),(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:t("account:label_burn_points")}),(0,o.jsxs)("td",{children:["\xa0:\xa0\xa0\xa0",e.BurnPoint," ",t("account:label_points")," = $1"]})]})]})})]})]},e.Id)}}(e,null!==(n=null===H||void 0===H?void 0:H.LevelType)&&void 0!==n?n:1)}))})]}),z.length>0&&null!=H&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("h2",{children:["Points Balance: ",null===H||void 0===H?void 0:H.BalancePoints]}),(0,o.jsxs)("div",{className:"main-points-transactions--sub-header",children:[(0,o.jsx)("p",{children:"Last 5 Points Transactions"}),(0,o.jsx)("a",{onClick:function(){window.location.href="".concat("en-US"==j.lang?"/":"/".concat(j.lang,"/"),"user/point-history/")},children:"View All"})]}),(0,o.jsx)("div",{className:"main-points-transactions",children:z.map((function(e){return(0,o.jsxs)("div",{className:"points-history",children:[(0,o.jsx)("span",{children:e.Channel}),(0,o.jsx)("span",{className:"content",children:f()(e.Date).format("DD MMM YYYY")}),(0,o.jsx)("span",{className:"content",children:[e.PointsType,e.Order
1No].filter(Boolean).join(" ")||"-"}),(0,o.jsx)("span",{className:"content--point",children:e.Points})]})}))})]}),X.length>0&&(0,o.jsxs)("div",{className:"main-buy-again-container",children:[(0,o.jsx)("h2",{children:t("account:heading_buy_again")}),(0,o.jsx)("div",{children:(0,o.jsx)(S,{item:X,webLocale:j})})]})]})]})})})]})}},60886:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return n(87377)}])},49467:function(){},5152:function(e,t,n){e.exports=n(57999)},41664:function(e,t,n){e.exports=n(92167)}},function(e){e.O(0,[9774,2714,5216,935,2888,179],(function(){return t=60886,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.