forked from Romeo-Rosete/EXCHANGE-SECURITY
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
20290-c4ee53092461fe9.js.download
1 lines (1 loc) · 60.8 KB
/
20290-c4ee53092461fe9.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20290],{89967:function(n,e,t){"use strict";var i=t(98240),r=t(75190),o=t(52322),a=t(38789),s=t(92324);function c(){var n=(0,r.Z)(["\n position: absolute;\n left: 0;\n top: 0;\n z-index: 10;\n width: 100%;\n height: 100%;\n background: var(--c-color-gray-200);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n svg {\n position: relative;\n z-index: -1;\n width: clamp(30px, 40%, 120px);\n height: clamp(30px, 40%, 120px);\n }\n"]);return c=function(){return n},n}var l=t(82740).ZP.div.withConfig({componentId:"sc-27c68990-0"})(c()),d=function(n){var e=n.fillColor;(0,i.Z)(n,["fillColor"]);return(0,o.jsx)(s.Z,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 120 120",iconName:"CMCIcon",children:(0,o.jsx)("path",{d:"M104.344 71.7073C102.22 73.0303 99.7189 73.1941 97.8176 72.1376C95.4024 70.7941 94.0745 67.6478 94.0745 63.2722V50.1805C94.0745 43.8585 91.5374 39.36 87.2952 38.1454C80.106 36.0819 74.6993 44.7483 72.6673 48.0029L59.9882 68.2566V43.5015C59.8456 37.8059 57.9681 34.399 54.4032 33.3717C52.0444 32.6927 48.5152 32.9649 45.0869 38.1337L16.6807 83.0722C12.8778 75.9594 10.8953 68.0393 10.9056 60C10.9056 32.9298 32.9247 10.9083 59.9882 10.9083C87.0516 10.9083 109.068 32.9298 109.068 60C109.068 60.0468 109.08 60.0878 109.083 60.1317C109.083 60.1785 109.074 60.2195 109.077 60.2663C109.332 65.5083 107.609 69.6761 104.344 71.7073ZM119.973 60.0029V59.8654L119.97 59.7307C119.819 26.7629 92.9723 0 59.9852 0C26.9119 0 0 26.9151 0 60C0 93.082 26.9119 120 59.9882 120C75.1657 120 89.651 114.316 100.77 103.999C102.981 101.95 103.111 98.4995 101.062 96.2927C100.087 95.2338 98.7208 94.6061 97.271 94.551C95.8212 94.496 94.41 95.0182 93.3555 96C84.3425 104.409 72.401 109.094 59.9882 109.092C45.4969 109.092 32.4583 102.773 23.4659 92.7512L49.0826 52.2263V70.9083C49.0826 79.882 52.6148 82.7824 55.5766 83.6312C58.5414 84.48 63.0718 83.9005 67.828 76.2907L81.9182 53.7863C82.3697 53.0605 82.7856 52.4341 83.1659 51.8927V63.2722C83.1659 71.6605 86.5763 78.3688 92.5208 81.6732C97.88 84.6527 104.618 84.3834 110.108 80.9707C116.762 76.8293 120.348 69.199 119.973 60.0029Z",fill:e})})};e.ZP=function(){return(0,o.jsx)(l,{className:"base-image-placeholder",children:(0,o.jsx)(d,{fillColor:a.colorGray400})})}},90753:function(n,e,t){"use strict";t.d(e,{Z:function(){return g}});var i=t(62230),r=t(98240),o=t(75190),a=t(52322),s=t(82740),c=t(89967),l=t(2784),d=t(38825),u=["permanent","post-img"],f=function(n){var e=(0,l.useState)((function(){var e;return(null===(e=d.Z.getQueryData(u))||void 0===e?void 0:e.has(n))||!1})),t=e[0],i=e[1];return(0,l.useEffect)((function(){var e;if(n&&!(null===(e=d.Z.getQueryData(u))||void 0===e?void 0:e.has(n))){var t=!1,r=document.createElement("img");return r.src=n,r.onload=function(){!function(n){n&&d.Z.setQueryData(u,(function(e){return(e||new Set).add(n)}))}(n),t||i(!0)},function(){t=!0}}}),[n]),{isImgLoaded:t}};function h(){var n=(0,o.Z)(["\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n & > img {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n"]);return h=function(){return n},n}var p=s.ZP.div.withConfig({componentId:"sc-8ef0e5d3-0"})(h()),g=function(n){var e=n.src,t=n.wrapperStyle,o=void 0===t?{}:t,s=n.fallback,l=void 0===s?(0,a.jsx)(c.ZP,{}):s,d=(0,r.Z)(n,["src","wrapperStyle","fallback"]),u=f(e).isImgLoaded;return(0,a.jsxs)(p,{className:"post-img",style:o,children:[(0,a.jsx)("img",(0,i.Z)({src:e,loading:"lazy",decoding:"async",fetchpriority:"low",alt:"image"},d),"post-img-".concat(e)),!u&&l]})}},82226:function(n,e,t){"use strict";t.d(e,{$:function(){return g}});var i=t(95210),r=t(51012),o=t(62230),a=t(75190),s=t(47998),c=t(52322),l=t(2784),d=t(82740),u=t(81730);function f(){var n=(0,a.Z)(["\n font-size: 12px;\n font-weight: 500;\n text-align: center;\n color: var(--color-light-neutral-6);\n padding: 16px 0;\n margin-bottom: 8;\n > button {\n font-size: 12px;\n padding: 4px 12px;\n }\n"]);return f=function(){return n},n}var h=function(n){(0,r.Z)(t,n);var e=(0,s.Z)(t);function t(n){var r;return(0,i.Z)(this,t),(r=e.call(this,n)).state={error:!1},r}var o=t.prototype;return o.componentDidCatch=function(n){console.warn(n),this.setState({error:!0})},o.render=function(){var n=this.props.placeHolder;return this.state.error?(0,c.jsx)(n,{}):this.props.children},t}(l.PureComponent),p=d.ZP.div.withConfig({componentId:"sc-66269203-0"})(f()),g=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return(0,c.jsxs)(p,{children:["Oops! Something went wrong. ",(0,c.jsx)("br",{}),(0,c.jsx)(u.ZP,{onClick:function(){return location.reload()},size:"sm",mt:1,children:"Try Again"})]})};return function(t){return(0,c.jsx)(h,{placeHolder:e,children:(0,c.jsx)(n,(0,o.Z)({},t))})}}},6794:function(n,e,t){"use strict";t.d(e,{V:function(){return l}});var i=t(62230),r=t(2784),o=t(31504),a=t(74786),s=t(15798),c=t.n(s),l=function(){return new Promise((function(n,e){if(window.fingerPrintSDKLoaded||window.initFingerPrintSDK)n(!0);else{var t=(0,i.Z)({},console),r=setTimeout((function(){e(!1)}),1e4);(0,a.x3)((0,o.NE)("/fingerPrint/finger-print-sdk-beta.js"),!0,(function(){var e;window.fingerPrintSDKLoaded=!0,null===(e=window.initFingerPrintSDK)||void 0===e||e.call(window,{t:"cmc",domain:c().env.fingerPointDeviceHost}),console=t,r&&clearTimeout(r),n(!0)}),(function(){r&&clearTimeout(r),e(!1)}))}}))};e.Z=function(){return(0,r.useEffect)((function(){l()}),[]),null}},27982:function(n,e,t){"use strict";t.d(e,{J:function(){return B}});var i=t(75190),r=t(52322),o=t(2784),a=t(82740),s=t(16460),c=t(57793),l=t(25237),d=t.n(l),u=t(91775),f=t(87612),h=t(45956),p=t(57472),g=t(31504),x=t(43560),v=t(81286),m=t(46414);function b(){var n=(0,i.Z)(["\n padding: 15px 0;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n"]);return b=function(){return n},n}function y(){var n=(0,i.Z)(["\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n margin-inline-start: 12px;\n"]);return y=function(){return n},n}function Z(){var n=(0,i.Z)(["\n // background-color: ",";\n border-bottom: 1px solid ",";\n color: ",";\n font-size: 14px;\n font-weight: 500;\n\n .container {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n padding-right: 16px;\n padding-left: 16px;\n }\n"]);return Z=function(){return n},n}function w(){var n=(0,i.Z)(["\n height: 60px;\n margin-inline-end: auto;\n display: flex;\n align-items: center;\n"]);return w=function(){return n},n}var j=(0,o.lazy)((function(){return Promise.all([t.e(19115),t.e(45036)]).then(t.bind(t,19115))})),C=d()((function(){return Promise.all([t.e(91966),t.e(53331),t.e(14782)]).then(t.bind(t,53331))}),{loadableGenerated:{webpack:function(){return[53331]}},ssr:!1,loading:function(){return null}}),k=a.ZP.div.withConfig({componentId:"sc-57d352ec-0"})(b()),_=a.ZP.div.withConfig({componentId:"sc-57d352ec-1"})(y()),S=a.ZP.nav.attrs((function(n){var e=n.theme;return{theme:e&&e.v2}})).withConfig({componentId:"sc-57d352ec-2"})(Z(),(function(n){return n.theme.surface1Color}),(function(n){return n.theme.shadowColor}),(function(n){return n.theme.text1Color})),N=a.ZP.div.withConfig({componentId:"sc-57d352ec-3"})(w()),B=o.memo((function(n){n.t;var e=(0,o.useContext)(a.Ni).isDay;return(0,r.jsx)(m.ZP,{isDay:!!e})})),L=o.memo((function(n){var e=(0,o.useState)(!1),t=e[0],i=e[1],a=n.onMenuClick,l=n.onSearchClick,d=(n.t,n.lang),m=n.enableUserMeta,b=void 0===m||m,y=(0,o.useState)(!1),Z=y[0],w=y[1],L=(0,o.useContext)(f.gX),z=L.userInfo,I=L.invokeLogin,T=L.setUserInfo,M=(0,p.yx)(d),P=(0,o.useCallback)((function(){var n=(0,h.rm)();z&&n?i(!0):(T(null),I())}),[z]),E=(0,o.useCallback)((function(n){var e=(0,h.rm)();z&&e?w(n):(T(null),I())}),[z]),W={width:"86vw",height:"400px",borderRadius:8};return(0,r.jsxs)(S,{children:[(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)(N,{children:(0,r.jsx)(B,{})}),(0,r.jsxs)(k,{children:[(0,r.jsx)(_,{onClick:l,children:(0,r.jsx)(s.Z,{size:"24px"})}),!M&&b&&(0,r.jsx)(_,{onClick:P,style:{marginInlineStart:20},children:(0,r.jsx)("img",{src:(0,g.NE)("/cloud/img/loyalty-program/diamond-icon.svg"),loading:"lazy",decoding:"async",fetchpriority:"low",width:"24",height:"24"})}),!M&&(0,r.jsx)(_,{style:{},children:z&&(0,r.jsx)(C,{"data-btnname":z?null:"notification","data-page":z?null:"notificationPage",onClick:function(){return E(!0)}})}),(0,r.jsx)(_,{onClick:a,style:{marginTop:1},children:(0,r.jsx)(c.Z,{size:"24px"})})]})]}),!M&&(0,r.jsx)(u.Z,{isShow:Z,toggleSideNotification:E}),t&&(0,r.jsx)(o.Suspense,{fallback:(0,r.jsx)(v.Z,{wrapperStyle:{background:"rgba(0,0,0,0.4)"},bodyStyle:W}),children:(0,r.jsx)(x.ZP,{open:!0,hideFooter:!0,bodyStyle:W,closeButtonStyle:{display:"none"},onClose:function(){return i(!1)},closeOnShadeClick:!0,children:(0,r.jsx)(j,{onMobile:!0})})})]})}));e.Z=L},85417:function(n,e,t){"use strict";var i=t(52322),r=t(38789),o=t(68434);e.Z=function(){return(0,i.jsxs)(o.Z,{sx:{height:"57px",display:"flex",gap:"12px",padding:"8px 16px 8px 36px",borderBottom:"1px solid ".concat(r.colorGray200)},className:"app-banner-new",children:[(0,i.jsx)(o.Z,{sx:{width:"40px",borderRadius:"8px",backgroundColor:r.colorGray200}}),(0,i.jsx)(o.Z,{sx:{borderRadius:"8px",backgroundColor:r.colorGray200,flexGrow:1}})]})}},46414:function(n,e,t){"use strict";t.d(e,{ln:function(){return tn},ZP:function(){return on}});var i=t(62230),r=t(85244),o=t(98240),a=t(22386),s=t(52322),c=t(2784),l=t(82066),d=t(72779),u=t.n(d),f=t(29101),h=t(8354),p=t(20194),g=t(65537),x=t(25084),v=t(54293),m=t(31504),b=function(n,e,t){try{var i=e.find((function(e){return e.languageCode===n}));return i||(t&&e.find((function(n){return"en"===n.languageCode}))||{})}catch(r){return{}}},y=t(15798),Z=t.n(y),w=t(82226),j=t(25237),C=t.n(j)()((function(){return Promise.all([t.e(87642),t.e(97680),t.e(11116)]).then(t.bind(t,25870))}),{loadableGenerated:{webpack:function(){return[25870]}},ssr:!1}),k=function(n){var e=n.fallback;return y.isServer?e||(0,s.jsx)(tn,{}):(0,s.jsx)(c.Suspense,{fallback:e||(0,s.jsx)(tn,{}),children:(0,s.jsx)(C,(0,i.Z)({},n))})},_=t(81730),S=t(39097),N=t.n(S),B=t(75190),L=t(82740),z=t(87681);function I(){var n=(0,B.Z)(["\n color: ",";\n user-select: none;\n ",";\n transition: all 0.3s ease-in-out;\n left: 0px;\n cursor: default;\n /* color: var(--text-color); */\n\n > div[class^='content-wrapper'] {\n border-radius: 8px;\n\n padding: 26px 20px;\n > *:not(.lottie-container) {\n position: relative;\n z-index: 1;\n flex-grow: 1;\n }\n /* background-color: var(--bg-color); */\n h2 {\n font-size: 18px;\n font-weight: 700;\n margin-top: 0px;\n margin-bottom: 6px;\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n &.content-wrapper-card {\n height: ",";\n padding: 0px 20px;\n display: flex;\n align-items: center;\n > div {\n }\n p.text {\n color: ",";\n margin-bottom: 16px;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n /* text-align: justify; */\n /* height: 3.8em; */\n /* background-color: gainsboro; */\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n line-height: 20px;\n font-size: 14px;\n margin: 6px 0px 16px;\n }\n\n p.link {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 0px;\n > a {\n color: var(--theme-color);\n }\n > button {\n /* width: 100%; */\n padding: 0px 15px;\n > a {\n /* color: red; */\n width: 100%;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n }\n }\n\n a {\n font-size: 14px;\n font-weight: 600;\n }\n }\n &.content-wrapper-post {\n padding: 16px 10px;\n div.postcard-title {\n margin-bottom: 3px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n h2 {\n }\n > span {\n margin-left: 8px;\n background: rgba(255, 255, 255, 0.65);\n backdrop-filter: blur(9px);\n /* Note: backdrop-filter has minimal browser support */\n\n border-radius: 8px;\n padding: 0px 6px;\n font-size: 12px;\n flex-shrink: 0;\n cursor: pointer;\n /* color: var(--color-light-neutral-6); */\n svg {\n width: 15px;\n margin-right: 4.5px;\n vertical-align: middle;\n &:hover {\n fill: red;\n }\n }\n }\n }\n .post-content {\n padding: 16px 12px;\n background: rgba(255, 255, 255, 0.65);\n backdrop-filter: blur(9px);\n border-radius: 8px;\n color: #000;\n font-size: 12px;\n line-height: 18px;\n\n .account {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 8px;\n .user-name {\n font-size: 14px;\n > span {\n font-size: 11px;\n /* color: var(--color-light-neutral-6); */\n }\n img {\n width: 21px;\n height: 21px;\n border-radius: 50%;\n vertical-align: text-top;\n margin-right: 8px;\n position: relative;\n bottom: 2px;\n }\n }\n .read-more {\n font-size: 12px;\n font-weight: 500;\n color: var(--theme-color);\n cursor: pointer;\n svg {\n height: 10px;\n width: 12px;\n vertical-align: inherit;\n }\n }\n }\n }\n }\n }\n"]);return I=function(){return n},n}function T(){var n=(0,B.Z)(["\n display: flex;\n flex-direction: row;\n align-items: center;\n z-index: ",";\n ","\n /* z-index: "," !important; */\n // @media screen and (max-width: 1199px) and (min-width: ","px) {\n // top: -15px;\n // z-index: "," !important;\n // }\n ","\n position: relative;\n .cmc-logo-card-wrapper {\n visibility: hidden;\n opacity: 0;\n transform: translateY(10px);\n }\n &.card-rendered:hover {\n .cmc-logo-card-wrapper {\n visibility: visible;\n opacity: 1;\n transform: translateY(0px);\n }\n }\n"]);return T=function(){return n},n}function M(){var n=(0,B.Z)(["\n vertical-align: bottom;\n position: relative;\n display: inline-block;\n background-position: center 2px;\n background-repeat: no-repeat;\n background-size: contain;\n /* width: 168px; */\n max-width: 200px;\n height: 60px;\n line-height: 60px;\n -webkit-tap-highlight-color: transparent;\n &.tooltip[data-text]:before {\n transform: translateX(-50%) translateY(","px);\n\n ","\n }\n &.tooltip[data-text]:after {\n transform: translateX(-50%) translateY(","px);\n ","\n }\n\n &:not(.animation) {\n margin-right: 16px;\n }\n\n &.animation {\n position: relative;\n /* overflow: hidden; */\n margin-left: -16px;\n width: 200px;\n /* width: 200px;\n margin-left: -16px;\n height: 60px; */\n /**\n ** fallback img\n */\n > img,\n > svg {\n width: 168px;\n margin-left: 16px;\n margin-right: 16px;\n }\n .lottie-container {\n width: 100%;\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n }\n\n .cmc-logo-img {\n width: 100%;\n vertical-align: middle;\n max-height: 100%;\n }\n"]);return M=function(){return n},n}var P=L.ZP.div.attrs({className:"cmc-logo-card-wrapper"}).withConfig({componentId:"sc-f2e7c84b-0"})(I(),(function(n){return 1===n.theme?"#000":"#fff"}),(function(n){return n.isGravity?"\n position: relative;\n box-shadow: var(--tiny-box-shadow);\n align-self: flex-start;\n background: var(--card-bg);\n border-radius: 16px;\n box-sizing: border-box;\n ".concat((0,z.CC)("background:transparent;border-radius: 0;box-shadow:none;border-bottom:1px solid var(--color-light-neutral-2);"),"\n "):"\n position: absolute;\n width: 340px;\n\n padding-top: 11px;\n top: 40px;\n > div {\n box-shadow: 0px 1px 2px rgba(128, 138, 157, 0.12), 0px 8px 32px rgba(128, 138, 157, 0.24);\n }\n "}),(function(n){return n.isGravity?"136px":"180px"}),(function(n){return 1===n.theme?"#58667e":"#d7e5fd"}),(function(n){return n.isGravity?"100%":"70%"})),E=L.ZP.div.withConfig({componentId:"sc-f2e7c84b-1"})(T(),z.W5.HEADER_LOGO,(0,z.CC)("margin-top: 0px;"),z.W5.ONBOARDING_POPUP,z.AV.XSMALL_MIN,z.W5.HEADER_MOBILE_SEARCH_TAKEOVER-1,(0,z.CC)("z-index: unset !important;")),W=L.ZP.a.withConfig({componentId:"sc-f2e7c84b-2"})(M(),(function(n){return n.beforeY||2}),z.sw,(function(n){return n.afterY||-8}),z.sw),O=function(n,e){var t=1===e?"#fff":"#000",i=null===n||void 0===n?void 0:n.endsWith("json"),r=i?void 0:n?"url(".concat(n,") center / cover no-repeat, "):void 0;return["".concat(r||"").concat(t),i?(0,s.jsx)(k,{isDay:!1,getLogoJson:function(){return(0,v.N4)({url:n,method:"get"})},fallback:(0,s.jsx)(s.Fragment,{}),style:{position:"absolute",width:"100%",height:"100%",top:0,left:0}}):null]},A=function(n){var e=n.title,t=n.secondaryTitle,i=n.actionLink,r=n.actionTitle,o=n.background,c=n.isGravity,l=n.theme,d=void 0===l?1:l,u=n.id,f=(0,a.Z)(O(o,d),2),h=f[0],p=f[1],v=(0,a.Z)((0,g.Z)(),2),m=v[0],b=v[1];return(0,s.jsx)(P,{isGravity:c,theme:d,children:(0,s.jsxs)("div",{className:"content-wrapper-card",style:{background:h},children:[p,(0,s.jsxs)("div",{children:[e&&(0,s.jsx)("h2",{children:String(e)}),t&&(0,s.jsx)("p",{className:"text",children:String(t).split("\n").map((function(n,e,t){return(0,s.jsxs)("span",{children:[n,e<t.length-1&&(0,s.jsx)("br",{})]},e)}))}),i&&r&&(0,s.jsx)("p",{className:"link",onClick:c?function(){(0,x.nS)({category:"Doodle",action:"Community_PromotionalCard_Click",label:"guid: ".concat(m,",device id: ").concat(b,",promotional card id: ").concat(u||"N/A")})}:void 0,children:c?(0,s.jsx)(N(),{href:i,children:String(r)}):(0,s.jsx)(_.ZP,{variant:"primary",children:(0,s.jsx)("a",{href:i,children:String(r)})})})]})]})})},R=t(92239),D=t(83691),V=t(5632),G=t(88536),F=t(45394),H=t(98789),X=t(87612),U=t(63082),J=t(15925),Y=t(78250);function q(){var n=(0,B.Z)(["\n top: 48px;\n"]);return q=function(){return n},n}var K,Q=(0,L.ZP)(P).withConfig({componentId:"sc-b694bc4f-0"})(q()),$=function(n){var e,t,i,r=n.title,o=n.communityId,d=n.background,u=n.theme,f=(0,a.Z)(O(d,u),2),h=f[0],p=f[1],g=(0,V.useRouter)(),x=(0,c.useContext)(X.gX),b=x.userInfo,y=x.invokeLogin,w=(0,c.useContext)(U.fL).isGravityApp,j=(0,c.useState)(!1),C=j[0],k=j[1],_=(0,c.useState)(0),S=_[0],N=_[1],B=(0,l.useQuery)(["generic","doodle","post",o],(function(){return(0,v.N4)({baseURL:Z().env.endpoints.javaApi,url:"/gravity/v3/gravity/query-by-id",method:"post",data:{gravityId:o}}).then((function(n){var e;if(null===(e=n.data)||void 0===e?void 0:e.data)return n.data.data;throw new Error}))})),L=B.data,z=B.error,I=(0,l.useQuery)(["generic","doodle","post","likeStatus",o],(function(){return(0,v.zh)({baseURL:"".concat(Z().env.endpoints.javaApi,"/gravity"),url:"v3/gravity/like/status",method:"POST",data:{gravityIds:[o]}}).then((function(n){return n.data.data||{}}))}),{enabled:!!b}),T=I.data,M=(0,l.useMutation)(["generic","doodle","post","like",o],(function(n){return(0,v.zh)({baseURL:Z().env.endpoints.javaApi,url:"/gravity/v3/gravity/like",method:"post",data:{gravityId:o,guid:"38323",like:n}}).then((function(n){return n.data.data}))}),{onSuccess:function(n,e){(null===n||void 0===n?void 0:n.success)?(k(e),N((function(n){return e?n+1:n-1}))):Y.v.warn(F.d2[null===n||void 0===n?void 0:n.code])}}),P=M.mutate,E=M.isLoading;(0,c.useEffect)((function(){T&&T[o]&&(k(!0),N((function(n){return n+1})))}),[T,o]),(0,c.useEffect)((function(){L&&N(Number(L.likeCount))}),[L]);return z?null:(0,s.jsx)(Q,{theme:u,children:(0,s.jsxs)("div",{className:"content-wrapper-post",style:{background:h},children:[p,z?(0,s.jsx)("p",{children:"Sorry, something went wrong"}):L?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"postcard-title",children:[r&&(0,s.jsx)("h2",{children:String(r)}),(0,s.jsx)("span",{onClick:function(){return n=!C,void(b?P(n):y());var n},children:E?(0,s.jsx)(J.Z,{size:"sm",style:{padding:"0px",margin:"0px 2px",width:16}}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(R.Z,{fill:C?"red":"var(--info-icon-color)",stroke:"transparent"}),(0,H.Z)(Number(S))]})})]}),(0,s.jsxs)("div",{className:"post-content",children:[(0,s.jsxs)("div",{className:"account",children:[(0,s.jsxs)("span",{className:"user-name",children:[(0,s.jsx)("img",{src:(0,m.bZ)("/static/img/portraits/".concat(null===(e=L.owner)||void 0===e?void 0:e.avatarId,".png"))}),String(null===(t=L.owner)||void 0===t?void 0:t.nickname)," ",(0,s.jsxs)("span",{children:["@",String(null===(i=L.owner)||void 0===i?void 0:i.handle)]})]}),(0,s.jsxs)("a",{className:"read-more",onClick:function(){w?g.push("/post/".concat(o)):location.href="".concat(G.U2,"/post/").concat(o)},children:["Detail ",(0,s.jsx)(D.Z,{strokeWidth:4})]})]}),String(L.textContent)]})]}):(0,s.jsx)(J.Z,{size:"md"})]})})},nn=t(3070),en=function(n){return(0,s.jsx)("svg",(0,r.Z)((0,i.Z)({width:"168",height:"29",fill:"var(--text-color)",xmlns:"http://www.w3.org/2000/svg",viewBox:(0,nn.ZP)()?"3 -3 168 32":"0 0 168 29"},n),{children:(0,s.jsx)("path",{d:"M28.442 14.445v-.056C28.414 6.466 22.032 0 14.221 0S0 6.466 0 14.445c0 7.98 6.381 14.433 14.221 14.433a13.978 13.978 0 0 0 9.66-3.866 1.309 1.309 0 0 0-1.766-1.933l-.028.028a11.5 11.5 0 0 1-16.572-.755l6.075-9.742v4.508c0 2.154.84 2.855 1.546 3.051.706.196 1.765.054 2.912-1.765l3.333-5.412c.089-.158.192-.308.306-.449v2.745c0 2.015.812 3.639 2.211 4.422a4.071 4.071 0 0 0 4.173-.167c1.616-1.049 2.484-2.886 2.371-5.098Zm-3.696 2.835a1.529 1.529 0 0 1-1.546.111c-.56-.335-.897-1.09-.897-2.126v-3.173c0-1.51-.588-2.603-1.595-2.881-1.709-.516-2.995 1.595-3.472 2.379l-3.015 4.842V10.47c-.028-1.371-.477-2.183-1.317-2.436-.56-.167-1.4-.082-2.211 1.15L3.946 19.989a11.971 11.971 0 0 1-1.371-5.544c0-6.523 5.234-11.814 11.646-11.814 6.412 0 11.646 5.291 11.646 11.814v.057c.067 1.258-.337 2.268-1.12 2.77v.008ZM48.263 9.518a1.407 1.407 0 0 1 .645 1.092 1.24 1.24 0 0 1-1.204 1.232 2.062 2.062 0 0 1-.449-.085 4.61 4.61 0 0 0-2.716-.922c-2.379 0-4.002 1.93-4.002 4.337s1.652 4.312 4.002 4.312a4.34 4.34 0 0 0 3.023-1.232c.206-.145.45-.223.701-.224a1.134 1.134 0 0 1 .99 1.709c-.097.17-.235.315-.402.42a6.647 6.647 0 1 1-4.283-11.758c1.318-.02 2.61.37 3.695 1.119ZM54.925 12.309a4.745 4.745 0 0 0-4.765 4.71 4.82 4.82 0 0 0 4.76 4.79c2.464 0 4.564-2.212 4.564-4.79 0-2.576-2.067-4.71-4.559-4.71Zm-.028 7.167c-1.175 0-2.155-1.064-2.155-2.436 0-1.427.98-2.296 2.155-2.296 1.093 0 2.015.897 2.015 2.296 0 1.4-.922 2.444-2.015 2.444v-.008ZM61.056 20.352v-6.608a1.29 1.29 0 0 1 1.289-1.314 1.306 1.306 0 0 1 1.289 1.314v6.608a1.306 1.306 0 0 1-1.289 1.315 1.328 1.328 0 0 1-1.289-1.315ZM60.86 9.938a1.505 1.505 0 0 1 1.485-1.547 1.528 1.528 0 0 1 1.51 1.547 1.497 1.497 0 0 1-2.994 0ZM68.559 16.77v3.582a1.289 1.289 0 1 1-2.578 0v-6.915a.994.994 0 1 1 1.988 0 3.738 3.738 0 0 1 2.835-1.12c2.577 0 3.724 1.932 3.724 4.144v3.891a1.289 1.289 0 1 1-2.578 0V16.77c0-1.121-.139-2.062-1.763-2.062-1.146 0-1.623.951-1.623 2.062h-.005ZM82.865 18.141a.835.835 0 0 1-.673-.338l-2.995-3.247v5.796a1.289 1.289 0 1 1-2.577 0V8.873a.546.546 0 0 1 .477-.335.9.9 0 0 1 .56.335l4.788 5.376a.624.624 0 0 0 .42.258.701.701 0 0 0 .42-.258l4.786-5.376a.843.843 0 0 1 .559-.335.49.49 0 0 1 .477.335v11.48a1.29 1.29 0 0 1-1.289 1.314 1.307 1.307 0 0 1-1.288-1.315v-5.796l-2.998 3.247a1.031 1.031 0 0 1-.67.338h.003ZM107.08 14.698h-.281c-1.623.082-1.93 1.008-1.93 2.062v3.582a1.29 1.29 0 0 1-1.289 1.289 1.29 1.29 0 0 1-1.288-1.29v-6.903a.997.997 0 0 1 .995-.995.996.996 0 0 1 .994.995c.951-.897 1.735-1.093 2.518-1.122h.258a1.207 1.207 0 0 1 1.175 1.204 1.18 1.18 0 0 1-1.147 1.178h-.005ZM117.018 19.736c.118.185.186.397.196.616a1.346 1.346 0 0 1-1.289 1.289c-.446 0-.84-.338-1.147-.73l-2.966-3.448v2.86a1.288 1.288 0 0 1-2.577 0V9.828a1.287 1.287 0 0 1 2.199-.911c.242.241.378.57.378.91v6.55l2.966-3.274c.307-.337.673-.7 1.119-.7a1.289 1.289 0 0 1 1.232 1.26 1.09 1.09 0 0 1-.168.587l-2.35 2.577 2.407 2.913v-.003ZM132.584 21.78h-.701c-1.959 0-3.108-.869-3.108-3.92v-3.162h-.67a1.19 1.19 0 1 1 0-2.382h.66V9.881a1.282 1.282 0 0 1 .789-1.214c.158-.066.328-.1.499-.1a1.311 1.311 0 0 1 1.289 1.314v2.428h1.062a1.185 1.185 0 0 1 1.149 1.203 1.222 1.222 0 0 1-1.149 1.178h-1.062v2.66c0 1.763.082 2.126.866 2.126h.366a1.152 1.152 0 0 1 1.147 1.15 1.174 1.174 0 0 1-1.147 1.147l.01.007ZM145.04 9.518a1.41 1.41 0 0 1 .644 1.092 1.239 1.239 0 0 1-1.204 1.232 2.135 2.135 0 0 1-.448-.085 4.597 4.597 0 0 0-2.714-.922c-2.381 0-4.005 1.93-4.005 4.337s1.652 4.312 4.005 4.312a4.34 4.34 0 0 0 3.023-1.232c.205-.144.449-.222.699-.224a1.143 1.143 0 0 1 .816.332 1.134 1.134 0 0 1 .176 1.378 1.184 1.184 0 0 1-.405.418 6.639 6.639 0 0 1-5.978 1.3 6.642 6.642 0 0 1-4.853-7.268 6.642 6.642 0 0 1 6.548-5.789 6.27 6.27 0 0 1 3.696 1.119ZM98.99 12.402a.982.982 0 0 0-.982 1.007l-.054.31a4.026 4.026 0 0 0-2.997-1.428c-2.518 0-4.337 2.126-4.337 4.7 0 2.575 1.79 4.789 4.198 4.789 1.008 0 2.603-.449 3.108-1.428l.057.307a.964.964 0 0 0 1.007.982 1.006 1.006 0 0 0 1.008-1.008v-7.216a1.03 1.03 0 0 0-1.008-1.015Zm-3.752 7.082c-1.147 0-2.044-1.09-2.044-2.436 0-1.345.923-2.32 2.044-2.32 1.12 0 2.129.923 2.129 2.32 0 1.397-.982 2.436-2.13 2.436ZM126.425 16.824c-.057-2.884-1.933-4.508-4.423-4.508-3.092 0-4.397 2.24-4.397 4.817 0 3.276 2.158 4.675 4.761 4.675.979 0 2.015-.141 2.798-.729a1.135 1.135 0 0 0 .56-.923 1.057 1.057 0 0 0-1.031-1.064c-.237.002-.469.07-.67.196a4.173 4.173 0 0 1-1.681.335c-.644 0-2.128-.258-2.128-1.791h5.2a1.031 1.031 0 0 0 1.011-1.008Zm-6.217-.65c0-1.09 1.15-1.453 1.848-1.453.699 0 1.848.363 1.876 1.453h-3.724ZM155.31 12.402a.984.984 0 0 0-.703.296.976.976 0 0 0-.277.711l-.056.31a4.02 4.02 0 0 0-2.995-1.428c-2.52 0-4.34 2.126-4.34 4.7 0 2.575 1.804 4.789 4.198 4.789 1.008 0 2.606-.449 3.108-1.428l.057.307a.974.974 0 0 0 .292.708.965.965 0 0 0 .716.274 1.01 1.01 0 0 0 .932-.622c.05-.122.076-.253.076-.386v-7.216a1.032 1.032 0 0 0-1.008-1.015Zm-3.753 7.082c-1.118 0-2.043-1.09-2.043-2.436 0-1.345.897-2.32 2.043-2.32 1.147 0 2.129.923 2.129 2.32 0 1.397-.974 2.436-2.123 2.436h-.006ZM163.657 12.309a4.14 4.14 0 0 0-3.023 1.232c0-.642-.42-1.119-.979-1.119a1.007 1.007 0 0 0-1.01 1.008v10.863a1.291 1.291 0 0 0 1.288 1.288 1.29 1.29 0 0 0 1.289-1.288v-3.268c.698.53 1.819.755 2.577.773 2.436 0 4.201-2.211 4.201-4.788 0-2.578-1.85-4.701-4.343-4.701Zm-.309 7.167c-1.147 0-2.126-1.03-2.126-2.435s.979-2.32 2.126-2.32c1.147 0 2.044.923 2.044 2.32 0 1.352-.894 2.443-2.044 2.443v-.008Z"})}))},tn=function(n){var e=n.src,t=n.style,i=void 0===t?{}:t,r=(0,c.useState)(!1),o=r[0],a=r[1];(0,c.useEffect)((function(){if(e){a(!1);var n=document.createElement("img");n.src=e,n.onload=function(){a(!0)}}}),[e]);var l=Object.assign({marginTop:-3},i);return e&&o?(0,s.jsx)("img",{src:e,className:"cmc-logo-img",style:l,loading:"lazy",decoding:"async",fetchpriority:"low"}):(0,s.jsx)(en,{className:"cmc-logo-img",style:l})};!function(n){n[n.Normal=0]="Normal",n[n.TOOLTIP=1]="TOOLTIP",n[n.PROMOTION_CARD=2]="PROMOTION_CARD",n[n.POST=3]="POST"}(K||(K={}));var rn=y.isServer?c.useEffect:c.useLayoutEffect,on=(0,w.$)((function(n){var e=n.isDay,t=(0,o.Z)(n,["isDay"]),d=(0,c.useContext)(f.Zy),m=d.isDay,w=d.language,j=(0,a.Z)((0,g.Z)(),2),C=j[0],_=j[1],S=(0,c.useState)(!1),N=S[0],B=S[1],L=(0,c.useState)(""),z=L[0],I=L[1],T=(0,c.useState)(void 0),M=T[0],P=T[1];rn((function(){N&&(window.requestIdleCallback||window.requestAnimationFrame)((function(){return I("card-rendered")}))}),[N]);var O=null!==e&&void 0!==e?e:m,R=(0,a.Z)((0,p.Z)(),1)[0],D=(0,l.useQuery)(["generic","doodle"],(function(){return(0,v.N4)({baseURL:Z().env.endpoints.javaApi,url:"/content/v3/doodle/get?type=5",cache:6e4}).then((function(n){return n.data.data||[]}))}),{staleTime:0,initialData:[]}).data,V=function(n){try{if(Array.isArray(n)&&n.length){for(var e=0;e<n.length;e++){var t=n[e],i=(new Date).getTime();if(i>=t.start&&i<=t.end)return t}return{}}return{}}catch(r){return{}}}(D);(0,c.useEffect)((function(){D&&!(0,h.Z)(V)&&y.isLocalOrTesting&&P(V.tag)}),[D,V.tag]);var G=y.isLocalOrTesting?D.find((function(n){return n.tag===M})):(0,h.Z)(V)?{logo:(0,s.jsx)(tn,{}),type:K.Normal}:V,F=G&&"string"===typeof G.lightModeFile&&"string"===typeof G.darkModeFile,H=F&&G.lightModeFile.endsWith("json")&&G.darkModeFile.endsWith("json"),X=F&&!G.lightModeFile.endsWith("json")&&!G.darkModeFile.endsWith("json"),U=(0,c.useMemo)((function(){return b(w,(null===G||void 0===G?void 0:G.languageDescriptions)||[],null===G||void 0===G?void 0:G.englishSet)}),[G,w])||{},J=H&&(!!y.isLocalOrTesting||!(0,h.Z)(U));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(E,{className:z,children:[(0,s.jsx)(W,(0,r.Z)((0,i.Z)({className:u()("cmc-logo tooltip",{animation:J}),href:w===Z().translation.defaultLanguage?"/":"/".concat(w,"/"),title:U.title||(null===G||void 0===G?void 0:G.type)===K.TOOLTIP?void 0:R("Go to homepage"),"data-text":(null===G||void 0===G?void 0:G.type)===K.TOOLTIP?U.tooltip:void 0,onMouseOver:function(){return B(!0)},onClick:function(){(0,x.nS)({category:"Doodle",action:"Doodle_Homepage_Click",label:"guid: ".concat(C,",device id: ").concat(_,",doodle id: ").concat((null===G||void 0===G?void 0:G.id)||"N/A")}),(0,x.nS)({category:"Web Navigation Bar",action:"NavigationBar_click",label:"CoinMarketCap Logo"})}},t),{children:J?(0,s.jsx)(k,{isDay:O,getLogoJson:function(n){return(0,v.N4)({url:n?G.lightModeFile:G.darkModeFile,method:"get"})}}):(0,s.jsx)(tn,{src:X&&!(0,h.Z)(U)?O?G.lightModeFile:G.darkModeFile:void 0})})),N&&G&&!(0,h.Z)(U)?G.type===K.PROMOTION_CARD&&U.actionTitle&&U.secondaryTitle&&U.title?(0,s.jsx)(A,{title:U.title,secondaryTitle:U.secondaryTitle,actionTitle:U.actionTitle,actionLink:G.link,background:G.background,theme:G.theme}):G.type===K.POST&&U.title?(0,s.jsx)($,{title:U.title,communityId:G.postId,background:G.background,theme:G.theme}):null:null]}),Array.isArray(D)&&y.isLocalOrTesting&&(0,s.jsxs)("select",{value:M,onChange:function(n){P(n.target.value)},style:{maxWidth:40,position:"absolute",bottom:-20,left:0},children:[(0,s.jsx)("option",{value:void 0,children:"No Doodle"},"undefined"),D.map((function(n){return(0,s.jsx)("option",{value:n.tag,children:n.tag},n.id)}))]})]})}))},90387:function(n,e,t){"use strict";t.d(e,{h:function(){return g}});var i=t(22710),r=t(62230),o=t(5163),a=t(2784),s=t(87612),c=t(16090),l=t(54293),d=t(15798),u=t.n(d),f=t(43961),h=t(6794);function p(){var n=(0,a.useContext)(s.gX).userInfo,e=function(){var e=(0,i.Z)((function(){var e,t,i,a,s,d=arguments;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:if(e=d.length>0&&void 0!==d[0]?d[0]:{},!(null===n||void 0===n?void 0:n.id))return[2];if(t=new c.ZP,i=t.get("BNC_FV_KEY"))return[3,5];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,h.V)()];case 2:return o.sent(),[3,4];case 3:return o.sent(),[3,4];case 4:i=t.get("BNC_FV_KEY"),o.label=5;case 5:return i?(a=t.get("cmc-language")||"en",s=t.get("currency"),[2,(0,l.Pk)({baseURL:u().env.endpoints.javaApi,url:"/asset/v3/user/setting-config/report",withAuthHeader:!0,method:"post",data:{deviceId:i,configJson:JSON.stringify((0,r.Z)({langCode:a,currency:(null===s||void 0===s?void 0:s.id)?s.id:2781},e))}})]):[2]}}))}));return function(){return e.apply(this,arguments)}}();return{report:e,clearReported:function(){if(null===n||void 0===n?void 0:n.id){var e="settings_reported_"+(null===n||void 0===n?void 0:n.id);(0,f.dZ)(e)}}}}function g(){var n=(0,a.useContext)(s.gX).userInfo,e=p().report;(0,a.useEffect)((function(){if(null===n||void 0===n?void 0:n.id){var t,i="settings_reported_"+(null===n||void 0===n?void 0:n.id);return(0,f.fp)(i)||(t=setTimeout((function(){var n;null===(n=e())||void 0===n||n.then((function(){(0,f.qQ)(i,!0)}))}),2e3)),function(){t&&clearTimeout(t)}}}),[null===n||void 0===n?void 0:n.id])}e.Z=p},76183:function(n,e,t){"use strict";t.d(e,{ZP:function(){return _n},c8:function(){return Cn}});var i=t(22710),r=t(62230),o=t(75190),a=t(5163),s=t(52322),c=t(2784),l=t(82740),d=t(38789),u=t(92322),f=c.useLayoutEffect,h=t(25237),p=t.n(h),g=t(15798),x=t.n(g),v=t(87612),m=t(46924),b=t(43961),y=t(54293),Z=t(38825),w=t(67665),j=t(90387),C=t(87681),k=t(68434),_=t(27982),S=t(85417),N=t(67557),B=t(96664),L=(0,N.Z)({},B[d.mqXl].up,{display:"none"}),z={height:"56px",display:"flex",alignItems:"center",justifyContent:"space-between",paddingRight:d.space200,paddingLeft:d.space200,borderBottom:"1px solid ".concat(d.colorGray200)},I={display:"flex",alignItems:"center",justifyContent:"flex-end",gap:d.space200},T={width:"24px",height:"24px",borderRadius:"50%",background:d.colorGray200},M={padding:"".concat(d.space100," ").concat(d.space200),borderBottom:"1px solid ".concat(d.colorGray200),display:"flex",alignItems:"center",justifyContent:"flex-start",gap:d.space150,height:"36.25px"},P={width:"20%",height:"16px",borderRadius:"16px",background:d.colorGray200},E=function(n){var e=n.hasGlobalStats,t=void 0!==e&&e;return(0,s.jsxs)(k.Z,{sx:L,children:[(0,s.jsx)(S.Z,{}),(0,s.jsxs)(k.Z,{sx:z,style:{height:t?61:49},children:[(0,s.jsx)(_.J,{}),(0,s.jsxs)(k.Z,{sx:I,children:[(0,s.jsx)(k.Z,{sx:T}),(0,s.jsx)(k.Z,{sx:T}),(0,s.jsx)(k.Z,{sx:T})]})]}),t?(0,s.jsxs)(k.Z,{sx:M,children:[(0,s.jsx)(k.Z,{sx:P}),(0,s.jsx)(k.Z,{sx:P}),(0,s.jsx)(k.Z,{sx:P}),(0,s.jsx)(k.Z,{sx:P})]}):null]})},W=t(72779),O=t.n(W),A=t(28310),R=t(52242),D=t(85244),V=t(98240),G=t(92324),F=function(n){var e=n.sx,t=void 0===e?{}:e,i=(0,V.Z)(n,["sx"]);return(0,s.jsxs)(G.Z,(0,D.Z)((0,r.Z)({sx:t},i),{iconName:"sidebar-live",children:[(0,s.jsx)("path",{d:"M12 21C11.45 21 11 20.55 11 20V4C11 3.45 11.45 3 12 3C12.55 3 13 3.45 13 4V20C13 20.55 12.55 21 12 21Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M17 17C16.45 17 16 16.55 16 16V8C16 7.45 16.45 7 17 7C17.55 7 18 7.45 18 8V16C18 16.55 17.55 17 17 17Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M22 14C21.45 14 21 13.55 21 13V11C21 10.45 21.45 10 22 10C22.55 10 23 10.45 23 11V13C23 13.55 22.55 14 22 14Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M7 17C6.45 17 6 16.55 6 16V8C6 7.45 6.45 7 7 7C7.55 7 8 7.45 8 8V16C8 16.55 7.55 17 7 17Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M2 14C1.45 14 1 13.55 1 13V11C1 10.45 1.45 10 2 10C2.55 10 3 10.45 3 11V13C3 13.55 2.55 14 2 14Z",fill:"currentColor"})]}))},H=c.memo(F),X=t(35986),U=t(83154),J=t(83434),Y=t(90753),q=t(25084),K=function(n){var e=(0,c.useRef)(),t=(0,c.useRef)(!1),i=function(n){t.current||document.hidden||((0,q.nS)({category:"Notifications",action:"InWeb_Notification_Impression",json_data:{id:n}}),t.current=!0)};return(0,c.useEffect)((function(){var t=function(){!document.hidden&&e.current&&i(n)};return document.addEventListener("visibilitychange",t),function(){document.removeEventListener("visibilitychange",t)}}),[]),(0,c.useEffect)((function(){if(e.current){var t=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(null===i||void 0===i||i(n))}))}),{threshold:.5});return t.observe(e.current),function(){t.disconnect()}}}),[e.current]),e},Q=function(n){return function(){(0,q.nS)({category:"Notifications",action:"InWeb_Notification_Click",json_data:{id:n}})}},$=function(n,e){var t=(0,c.useState)(0),i=t[0],r=t[1];return(0,c.useEffect)((function(){if(n.current){var e=window.getComputedStyle(n.current),t=parseFloat(e.fontSize);r(Math.round(n.current.scrollHeight/(1.3*t)))}}),[n.current]),{titleLine:i,descriptionLine:e-i}};function nn(){var n=(0,o.Z)(["\n position: relative;\n pointer-events: auto;\n background: ",";\n padding: 16px;\n border-radius: 8px;\n box-shadow: 0px 8px 32px 0px rgba(128, 138, 157, 0.24), 0px 1px 2px 0px rgba(128, 138, 157, 0.12);\n width: 380px;\n height: 148px;\n transition: all 0.3s ease-in-out;\n\n &.rightToLeft {\n opacity: 0;\n transform: translateX(380px);\n &.show-up {\n opacity: 1;\n transform: translateX(0);\n }\n }\n\n .notificaion-content {\n display: grid;\n grid-template-columns: 116px 1fr;\n height: 100%;\n gap: 16px;\n overflow: hidden;\n }\n\n .info {\n position: relative;\n overflow: hidden;\n }\n .btn {\n color: ",";\n font-weight: 600;\n cursor: pointer;\n }\n .close-icon {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1;\n font-size: 16px;\n cursor: pointer;\n color: ",";\n }\n .link-button {\n position: absolute;\n left: 0;\n bottom: 0;\n }\n\n &.topToBottom {\n padding: 12px;\n width: 100%;\n height: 117px;\n opacity: 0;\n transform: translateY(-117px);\n &.show-up {\n opacity: 1;\n transform: translateY(0);\n }\n .notificaion-content {\n grid-template-columns: 94px 1fr;\n height: 100%;\n gap: 12px;\n }\n }\n"]);return nn=function(){return n},n}function en(){var n=(0,o.Z)(["\n position: relative;\n width: 100%;\n height: 100%;\n border-radius: 8px;\n overflow: hidden;\n"]);return en=function(){return n},n}function tn(){var n=(0,o.Z)(["\n white-space: nowrap;\n padding: 0 8px;\n display: inline-grid;\n grid-template-columns: 12px 1fr;\n align-items: center;\n column-gap: 4px;\n background: ",";\n color: #fff;\n border-radius: 40px;\n .text {\n font-weight: 500;\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: 20px;\n }\n"]);return tn=function(){return n},n}function rn(){var n=(0,o.Z)(["\n .base-text {\n white-space: normal;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ","!important;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"]);return rn=function(){return n},n}var on,an=l.ZP.div.withConfig({componentId:"sc-972a5e44-0"})(nn(),d.colorSurface1,d.colorBlue,d.colorGray500),sn=l.ZP.div.withConfig({componentId:"sc-972a5e44-1"})(en()),cn=l.ZP.div.withConfig({componentId:"sc-972a5e44-2"})(tn(),d.colorBlue),ln=(0,l.ZP)(k.Z).withConfig({componentId:"sc-972a5e44-3"})(rn(),(function(n){return n.line||1}));!function(n){n[n.Default=0]="Default",n[n.Live=1]="Live"}(on||(on={}));var dn=function(n){var e=n.url;return(0,s.jsx)(sn,{className:"img-wrapper",children:(0,s.jsx)(Y.Z,{src:e})})},un=function(n){var e=n.icon,t=n.text;return(0,s.jsxs)(cn,{children:[e,(0,s.jsx)(J.Z,{textType:"body-xs",className:"text",children:t})]})},fn=(0,c.forwardRef)((function(n,e){var t=n.children;return(0,s.jsx)(ln,{line:2,ref:e,style:{paddingRight:"10px"},children:(0,s.jsx)(J.Z,{textType:"heading-sm",sx:{color:d.colorTextPrimary},children:t})})})),hn=function(n){var e=n.children,t=n.line,i=void 0===t?1:t;return i?(0,s.jsx)(ln,{line:i,sx:{marginTop:"4px"},children:(0,s.jsx)(J.Z,{textType:"body-sm",sx:{color:d.colorTextSecondary},children:e})}):null},pn=function(n){var e=n.children,t=n.link;return(0,s.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",className:"link-button",children:(0,s.jsx)(J.Z,{textType:"body-sm",className:"btn",children:e})})},gn=function(n){var e=n.data,t=n.className,i=n.useFullWidthDisplay,r=e.image,o=e.title,a=e.description,l=e.buttonLink,d=e.buttonName,u=e.id,f=(0,c.useRef)(null),h=$(f,i?2:3).descriptionLine,p=[t,i?"topToBottom":"rightToLeft"],g=Q(u),x=K(u);return(0,s.jsxs)(an,{className:O()(p),ref:x,children:[(0,s.jsxs)("a",{className:"notificaion-content",href:l,target:"_blank",rel:"noreferrer",onClick:function(){return g()},children:[(0,s.jsx)(dn,{url:r}),(0,s.jsxs)("div",{className:"info",children:[(0,s.jsx)(un,{icon:(0,s.jsx)(H,{sx:{fontSize:12}}),text:"CMC Live"}),(0,s.jsxs)(k.Z,{sx:{marginTop:"12px"},children:[(0,s.jsx)(fn,{ref:f,children:o}),(0,s.jsx)(hn,{line:h,children:a})]}),(0,s.jsx)(pn,{link:l,children:d})]})]}),(0,s.jsx)(X.Z,{className:"close-icon",onClick:function(){return U.Z.dismiss(e.id)}})]})},xn=function(n){var e=n.data,t=n.className,i=n.useFullWidthDisplay,r=e.image,o=e.title,a=e.description,l=e.buttonLink,d=e.buttonName,u=e.id,f=(0,c.useRef)(null),h=$(f,i?3:5).descriptionLine,p=[t,i?"topToBottom":"rightToLeft"],g=Q(u),x=K(u);return(0,s.jsxs)(an,{className:O()(p),ref:x,children:[(0,s.jsxs)("a",{className:"notificaion-content",href:l,target:"_blank",rel:"noreferrer",onClick:function(){return g()},children:[(0,s.jsx)(dn,{url:r}),(0,s.jsxs)(k.Z,{className:"info",__css:i?{paddingTop:"4px"}:{},children:[(0,s.jsxs)(k.Z,{children:[(0,s.jsx)(fn,{ref:f,children:o}),(0,s.jsx)(hn,{line:h,children:a})]}),(0,s.jsx)(pn,{link:l,children:d})]})]}),(0,s.jsx)(X.Z,{className:"close-icon",onClick:function(){return U.Z.dismiss(e.id)}})]})},vn=function(){var n=(0,c.useRef)(!1),e=(0,R.a)(B[d.mqMd].down);n.current=e;return(0,c.useEffect)((function(){var e=["msgBox@notification@{}","web"],t=new A.Z({url:x().env.endpoints.websocketV2,subscribe:{method:"RSUBSCRIPTION",params:e},unsubscribe:{method:"UNSUBSCRIPTION",params:e}}).onMessage((function(e){e.targetPlatforms&&(0,U.Z)(function(e){switch(null===e||void 0===e?void 0:e.templateType){case on.Default:return(0,s.jsx)(xn,{data:e,useFullWidthDisplay:n.current});case on.Live:return(0,s.jsx)(gn,{data:e,useFullWidthDisplay:n.current})}}(e),{id:e.id,duration:1e4,position:"top-right",isFullCustom:!0})})).keepAlive({method:"PING",id:"0"}).connect();return function(){t.disconnect()}}),[]),null};function mn(){var n=(0,o.Z)(["\n ","\n\n background: ",";\n"]);return mn=function(){return n},n}var bn=p()((function(){return Promise.all([t.e(39721),t.e(81611),t.e(1246),t.e(98172),t.e(52505),t.e(83910),t.e(60823),t.e(8173),t.e(69153),t.e(2025),t.e(54552)]).then(t.bind(t,50133))}),{loadableGenerated:{webpack:function(){return[50133]}},ssr:!0}),yn=p()((function(){return Promise.all([t.e(39721),t.e(8173),t.e(67652)]).then(t.bind(t,67652))}),{loadableGenerated:{webpack:function(){return[67652]}},ssr:!1,loading:function(){return(0,s.jsx)(E,{hasGlobalStats:!0})}}),Zn=p()((function(){return Promise.all([t.e(39721),t.e(81611),t.e(8173),t.e(66630)]).then(t.bind(t,66630))}),{loadableGenerated:{webpack:function(){return[66630]}},ssr:!1,loading:function(){return(0,s.jsx)(E,{})}});function wn(){return(wn=(0,i.Z)((function(){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,y.N4)({method:"post",url:"".concat(x().env.endpoints.javaApi,"/asset/v3/loyalty/check-in-info"),withAuthHeader:!0,data:{platform:"web"}})];case 1:return[2,n.sent().data]}}))}))).apply(this,arguments)}var jn,Cn=function(){var n=(0,c.useState)(!1),e=n[0],t=n[1],i=(0,c.useContext)(v.gX).userInfo;return(0,c.useEffect)((function(){!(0,b.fp)("isCollectedDiamonds")&&(null===i||void 0===i?void 0:i.id)?function(){return wn.apply(this,arguments)}().then((function(n){var e,i;t(!(null===n||void 0===n||null===(e=n.data)||void 0===e?void 0:e.collected)),(null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.collected)&&(0,b.qQ)("isCollectedDiamonds",JSON.stringify(n.data.collected))})):t("false"===(0,b.fp)("isCollectedDiamonds"))}),[null===i||void 0===i?void 0:i.id]),{isShowDiamondsCollectTip:e}},kn=l.ZP.div.withConfig({componentId:"sc-e70a1272-0"})(mn(),(function(n){return null!==(jn=n.sx)&&void 0!==jn?jn:void 0}),d.colorBackground2),_n=function(n){var e=n.desktopProps,t=n.mobileProps,i=n.sx,o=(0,m.bd)().deviceInfo.isMobile,a=(0,c.useState)((function(){return g.isServer||window.cachedWidth<C.AV.LARGE_MIN})),l=a[0],d=a[1],h=(0,c.useState)(!1),p=h[0],x=h[1],b=(0,c.useContext)(v.gX).userInfo;(0,j.h)();var y=(0,u.Z)((function(){if(!g.isServer){var n=window.innerWidth;(0,w.I)({t:"header_screen_width",integer_1:n,boolean_1:o,boolean_2:o&&n>=C.AV.LARGE_MIN,boolean_3:!o&&n<C.AV.LARGE_MIN})}}),1e3);(0,c.useEffect)((function(){y();var n=function(){d(window.innerWidth<C.AV.LARGE_MIN),x(window.innerWidth>C.AV.XSMALL_MIN),y()};return addEventListener("resize",n),function(){return removeEventListener("resize",n)}}),[o]),(0,c.useEffect)((function(){b||Z.Z.invalidateQueries(["loyalty","diamond","checkin-records"])}),[b]),f((function(){x(window.innerWidth>C.AV.XSMALL_MIN)}),[]);var k=o&&!p?Zn:yn;return(0,s.jsxs)(kn,{"data-role":"global-header",sx:i,children:[(0,s.jsx)("div",{children:(!l||g.isServer)&&(0,s.jsx)(bn,(0,r.Z)({hide:l&&!g.isServer},e))}),(0,s.jsx)("div",{children:(0,s.jsx)(k,(0,r.Z)({alwaysShow:!1},t))}),(0,s.jsx)(vn,{})]})}},15925:function(n,e,t){"use strict";t.d(e,{C:function(){return v}});var i=t(62230),r=t(85244),o=t(98240),a=t(22386),s=t(75190),c=t(52322),l=(t(2784),t(82740)),d=t(58358),u=t(8112);function f(){var n=(0,s.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n will-change: transform;\n stroke: var(--theme-color);\n /* padding: 300px 0px; */\n ","\n .spinner {\n animation: rotator 1.4s linear infinite;\n }\n ","\n @keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n }\n\n .path {\n stroke-dasharray: 62;\n stroke-dashoffset: 0;\n transform-origin: center;\n /* animation: dash 1.4s ease-in-out infinite, colors 1.4s ease-in-out infinite; */\n animation: dash 1.4s ease-in-out infinite;\n stroke: inherit;\n }\n\n @keyframes dash {\n 0% {\n stroke-dashoffset: 62;\n }\n 50% {\n stroke-dashoffset: 16;\n transform: rotate(135deg);\n }\n 100% {\n stroke-dashoffset: 62;\n transform: rotate(450deg);\n }\n }\n"]);return f=function(){return n},n}function h(){var n=(0,s.Z)([void 0,void 0]);return h=function(){return n},n}function p(){var n=(0,s.Z)(["\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: var(--bg-color);\n z-index: 999;\n "]);return p=function(){return n},n}var g=l.ZP.div.withConfig({componentId:"sc-a816ec44-0"})(f(),(0,d.variant)({prop:"size",variants:{lg:{padding:"300px 0"},md:{padding:"64px 0"},sm:{padding:"24px 0"}}}),(function(n){return n.css||""})),x=(0,l.ZP)(g).withConfig({componentId:"sc-a816ec44-1"})(h(),(function(n){return n.$_css})),v=function(){var n=(0,a.Z)((0,u.$G)(),1)[0];return(0,c.jsx)("div",{style:{paddingTop:"40px",paddingBottom:"40px",fontSize:"16px",textAlign:"center",fontWeight:"bold"},children:n("Loading...")})};e.Z=function(n){var e=n.isLoading,t=void 0===e||e,a=n.size,s=void 0===a?"lg":a,d=(0,o.Z)(n,["isLoading","size"]);return t?(0,c.jsx)(x,(0,r.Z)((0,i.Z)({size:s},d),{style:d.style||{},$_css:d.fullScreen?(0,l.iv)(p()):null,children:(0,c.jsx)("svg",{className:"spinner",width:"22px",height:"22px",viewBox:"0 0 22 22",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("circle",{className:"path",fill:"none",strokeWidth:"2",strokeLinecap:"round",cx:"11",cy:"11",r:"10"})})})):null}},81286:function(n,e,t){"use strict";var i=t(62230),r=t(85244),o=t(75190),a=t(52322),s=t(82740),c=t(43560),l=t(15925);function d(){var n=(0,o.Z)(["\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n"]);return d=function(){return n},n}var u=s.ZP.div.withConfig({componentId:"sc-91813179-0"})(d());e.Z=function(n){return(0,a.jsx)(c.ZP,(0,r.Z)((0,i.Z)({open:!0,hideFooter:!0},n),{children:(0,a.jsx)(u,{children:(0,a.jsx)(l.Z,{size:"sm"})})}))}},91775:function(n,e,t){"use strict";var i=t(52322),r=t(2784),o=r.lazy((function(){return Promise.all([t.e(87642),t.e(50480),t.e(39721),t.e(44711),t.e(81611),t.e(98172),t.e(97209),t.e(40491),t.e(97680),t.e(91966),t.e(1493),t.e(55959),t.e(52505),t.e(83910),t.e(97563),t.e(53331),t.e(19996),t.e(33424),t.e(45581)]).then(t.bind(t,71690))}));e.Z=function(n){var e=n.isShow,t=n.toggleSideNotification,a=(0,r.useState)(null),s=a[0],c=a[1];return(0,r.useEffect)((function(){e&&!s&&c(o)}),[e,s]),s?(0,i.jsx)(r.Suspense,{fallback:null,children:(0,i.jsx)(s,{isShow:e,toggle:t})}):null}},65537:function(n,e,t){"use strict";var i=t(2784),r=t(87612),o=t(22729);e.Z=function(){var n=(0,i.useContext)(r.gX).userInfo,e=(0,o.Z)({anonymous:!0});return[null===n||void 0===n?void 0:n.id,e]}},28310:function(n,e,t){"use strict";var i=t(95210),r={},o=function(){function n(e){var t=e.url,o=e.subscribe,a=e.unsubscribe,s=this;(0,i.Z)(this,n),this.url=t,this.subscribe=o,this.unsubscribe=a,this.openCallbacks=[],this.closeCallbacks=[],this.errorCallbacks=[],this.messageCallbacks=[],this._open=this._open.bind(this),this._message=this._message.bind(this),this._close=this._close.bind(this),this._error=this._error.bind(this),window.addEventListener("beforeunload",(function(){s.disconnect()})),r[this.url]?r[this.url].push(this):r[this.url]=[this]}var e=n.prototype;return e.connect=function(){var n=(r[this.url]||[])[0];return!n||!n.ws||n.ws.readyState!==WebSocket.OPEN&&n.ws.readyState!==WebSocket.CONNECTING?this.ws=new WebSocket(this.url):this.ws=n.ws,this.ws.readyState===WebSocket.OPEN&&this._open(),this._removeListener(),this._addListener(),r[this.url].includes(this)||r[this.url].push(this),this},e.disconnect=function(){var n,e=this;(this.send(this.unsubscribe),this._removeListener(),r[this.url]=r[this.url].filter((function(n){return n!==e})),0===r[this.url].length)&&(null===(n=this.ws)||void 0===n||n.close());return this},e.send=function(n){if(this.ws)return this.ws.readyState===WebSocket.OPEN&&("string"===typeof n?this.ws.send(n):this.ws.send(JSON.stringify(n))),this},e._addListener=function(){this.ws&&(this.ws.addEventListener("open",this._open),this.ws.addEventListener("message",this._message),this.ws.addEventListener("close",this._close),this.ws.addEventListener("error",this._error))},e._removeListener=function(){this.ws&&(this.ws.removeEventListener("open",this._open),this.ws.removeEventListener("message",this._message),this.ws.removeEventListener("close",this._close),this.ws.removeEventListener("error",this._error))},e._open=function(){var n=this;this.openCallbacks.forEach((function(e){e(n)})),this.send(this.subscribe)},e._message=function(n){var e,t=this;try{e=JSON.parse(n.data)}catch(i){}this.messageCallbacks.forEach((function(i){i(e||n.data,t)}))},e._close=function(n){var e=this;this.closeCallbacks.forEach((function(t){t(n,e)}))},e._error=function(n){var e,t=this;this.errorCallbacks.forEach((function(e){e(n,t)})),null===(e=this.ws)||void 0===e||e.close()},e.onOpen=function(n){return this.openCallbacks.push(n),this},e.onMessage=function(n){return this.messageCallbacks.push(n),this},e.onClose=function(n){return this.closeCallbacks.push(n),this},e.onError=function(n){return this.errorCallbacks.push(n),this},e.keepAlive=function(n){var e,t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4,r=this,o=function(){clearTimeout(e),clearTimeout(t),a()},a=function(){e=setTimeout((function(){r.send(n),t=setTimeout((function(){var n;null===(n=r.ws)||void 0===n||n.close()}),i)}),i)};return a(),this.onMessage((function(){o()})),this},n}();e.Z=o},98789:function(n,e,t){"use strict";var i=t(22386),r=/\B(?=(\d{3})+(?!\d))/g,o=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=(0,i.Z)(String(n).split("."),2),a=o[0],s=o[1],c=void 0===s?"":s,l=c.slice(0,e).padEnd(e,"0");return a.replace(r,",")+(l?"."+l:"")+t};e.Z=function(n,e){return void 0===n||isNaN(n)?"":n>=1e12?o(n/1e12,null!==e&&void 0!==e?e:n%1e12>1e11?1:0,"T"):n>=1e9?o(n/1e9,null!==e&&void 0!==e?e:n%1e9>1e8?1:0,"B"):n>=1e6?o(n/1e6,null!==e&&void 0!==e?e:n%1e6>1e5?1:0,"M"):n>=1e3?o(n/1e3,null!==e&&void 0!==e?e:n%1e3>100?1:0,"K"):e?o(n,e):String(n)}},83475:function(n,e,t){"use strict";t.d(e,{ZP:function(){return m}});var i,r,o,a=t(62230),s=t(85244),c=t(98240),l=t(52322),d=t(2784),u=t(76506),f=t(68434),h=t(72779),p=t.n(h),g=t(96753),x=t.n(g);!function(n){n.primary="primary",n.secondary="secondary",n.tertiary="tertiary"}(i||(i={})),function(n){n.default="default",n.plain="plain",n.rounded="rounded"}(r||(r={})),function(n){n.sm="sm",n.md="md",n.lg="lg"}(o||(o={}));var v=function(n,e){var t,h,g=n.as,v=void 0===g?"button":g,m=n.variant,b=void 0===m?i.primary:m,y=n.buttonSize,Z=void 0===y?o.md:y,w=n.shapeType,j=void 0===w?r.default:w,C=n.fullWidth,k=n.fullwidth,_=void 0!==k&&k,S=n.loading,N=void 0!==S&&S,B=n.disabled,L=void 0!==B&&B,z=n.isNewOpen,I=void 0!==z&&z,T=n.iconComp,M=n.className,P=(n.role,n.link),E=n.sx,W=n.content,O=n.children,A=(0,c.Z)(n,["as","variant","buttonSize","shapeType","fullWidth","fullwidth","loading","disabled","isNewOpen","iconComp","className","role","link","sx","content","children"]),R=null!==C&&void 0!==C?C:_,D=(0,d.useRef)(null),V=(0,d.useRef)(null),G=null,F=v,H=(0,a.Z)({},A);P&&(F="a",H.href=P,I&&(H.target="_blank")),L&&(H.onClick=null);var X=(0,d.useMemo)((function(){return function(n){var e=[x().iconBase];return p()(e)}()}),[j]),U=O||W;T&&(t=(0,l.jsx)(f.Z,{"data-role":"btn-content-item",className:X,children:T}));var J=null!=T&&!U,Y=(0,d.useMemo)((function(){return function(n){var e=n.buttonVariant,t=void 0===e?i.primary:e,a=n.buttonType,s=void 0===a?r.default:a,c=n.buttonSize,l=void 0===c?o.md:c,d=n.isDisable,u=void 0!==d&&d,f=n.isFullWidth,h=void 0!==f&&f,g=n.onlyIcon,v=void 0!==g&&g,m=n.className,b=n.loading,y=void 0!==b&&b,Z=[x().base];return Z.push(x()["t-".concat(s)]),Z.push(x()["size-".concat(l)]),s!==r.plain&&Z.push(x()["v-".concat(t)]),u?Z.push(x().disabled):y||Z.push(x().vd),h&&Z.push(x()["full-width"]),v&&Z.push(x()["only-icon"]),m&&Z.push(m),p()(Z)}({buttonVariant:b,buttonType:j,buttonSize:Z,isDisable:L,isFullWidth:R,onlyIcon:J,className:M,loading:N})}),[b,j,Z,R,L,J,N,M]);return(0,d.useEffect)((function(){V.current&&D.current&&(N?(V.current.style.cssText="opacity:0;transform: scale3d(0.8,0.8,1)",D.current.style.cssText="display:block",requestAnimationFrame((function(){D.current&&(D.current.style.cssText="display:block;opacity: 1; transform: scale3d(1,1,1)")}))):(V.current.style.cssText="",D.current.style.cssText="display:block",requestAnimationFrame((function(){D.current&&(D.current.style.cssText="")}))))}),[N]),U&&(h=(0,l.jsx)(f.Z,{"data-role":"btn-content-item",className:x().labelWrapper,children:U})),(t||h)&&(G=(0,l.jsxs)(f.Z,(0,s.Z)((0,a.Z)({className:Y,sx:E,as:F},H),{ref:e,children:[(0,l.jsxs)(f.Z,{"data-role":"btn-content",className:x().btnContentWrapper,ref:V,children:[t,h]}),(0,l.jsx)(f.Z,{className:x().loadingIndicatorWrapper,ref:D,children:(0,l.jsx)(f.Z,{className:x().loadingEl,children:(0,l.jsx)(u.Z,{className:x().loadingIndicator})})})]}))),G},m=d.forwardRef(v)},76506:function(n,e,t){"use strict";var i=t(62230),r=t(85244),o=t(98240),a=t(52322),s=t(2784),c=t(92324),l=t(17482),d=t.n(l),u=t(72779),f=t.n(u),h=function(n){n.sx;var e=n.className,t=(0,o.Z)(n,["sx","className"]),l=(0,s.useMemo)((function(){var n=[d().base];return e&&n.push(e),f()(n)}),[e]);return(0,a.jsx)(c.Z,(0,r.Z)((0,i.Z)({viewBox:"25 25 50 50",iconName:"loader-pro",className:l,forceShow:!0},t),{children:(0,a.jsx)("circle",{cx:"50",cy:"50",r:"20",strokeWidth:"5.5",fill:"none",stroke:"currentColor"})}))};e.Z=s.memo(h)},83154:function(n,e,t){"use strict";var i=t(52898);e.Z=i.A},83434:function(n,e,t){"use strict";t.d(e,{Z:function(){return y}});var i,r,o=t(62230),a=t(85244),s=t(98240),c=t(52322),l=t(2784),d=t(77526),u=t(68434),f=t(67557),h=(i={},(0,f.Z)(i,d.B["heading-xs"],"h6"),(0,f.Z)(i,d.B["heading-sm"],"h6"),(0,f.Z)(i,d.B["heading-md"],"h5"),(0,f.Z)(i,d.B["heading-lg"],"h4"),(0,f.Z)(i,d.B["heading-xl"],"h3"),(0,f.Z)(i,d.B["heading-2xl"],"h2"),(0,f.Z)(i,d.B["heading-3xl"],"h1"),(0,f.Z)(i,d.B["heading-4xl"],"h1"),(0,f.Z)(i,d.B["body-sm"],"span"),(0,f.Z)(i,d.B["body-md"],"span"),(0,f.Z)(i,d.B["body-lg"],"span"),i),p=t(49106),g=t(38789),x={textDecoration:"inherit",margin:0,padding:0},v=(r={},(0,f.Z)(r,d.B["heading-xs"],{fontSize:g.fontSize75}),(0,f.Z)(r,d.B["heading-sm"],{fontSize:g.fontSize100}),(0,f.Z)(r,d.B["heading-md"],{fontSize:g.fontSize200}),(0,f.Z)(r,d.B["heading-lg"],{fontSize:g.fontSize400}),(0,f.Z)(r,d.B["heading-xl"],{fontSize:g.fontSize600}),(0,f.Z)(r,d.B["heading-2xl"],{fontSize:g.fontSize800}),(0,f.Z)(r,d.B["heading-3xl"],{fontSize:g.fontSize1000}),(0,f.Z)(r,d.B["heading-4xl"],{fontSize:g.fontSize600}),(0,f.Z)(r,d.B["body-xs"],{fontSize:g.fontSize50}),(0,f.Z)(r,d.B["body-sm"],{fontSize:g.fontSize75}),(0,f.Z)(r,d.B["body-md"],{fontSize:g.fontSize100}),(0,f.Z)(r,d.B["body-lg"],{fontSize:g.fontSize200}),(0,f.Z)(r,d.B["body-xl"],{fontSize:g.fontSize400}),r),m=(0,a.Z)((0,o.Z)({},x),(0,f.Z)({},".".concat("c-rich-content"),{"*":{fontWeight:g.fontWeight400,lineHeight:g.lineHeightBody},"p, ul":{marginBottom:g.space200},"& h1, & h2, & h3, & h4, & h5, & h6":{marginBottom:g.space100,lineHeight:g.lineHeightHeading},"& h1, & h2, & h3, & h4, & h5, & h6, & em, & bold, & b, & strong":{fontWeight:g.fontWeight700},"& h1":{fontSize:v[d.B["heading-4xl"]].fontSize},"& h2":{fontSize:v[d.B["heading-3xl"]].fontSize},"& h3":{fontSize:v[d.B["heading-2xl"]].fontSize},"& h4":{fontSize:v[d.B["heading-xl"]].fontSize},"& h5":{fontSize:v[d.B["heading-md"]].fontSize},"& h6":{fontSize:v[d.B["heading-sm"]].fontSize}})),b=function(n,e){var t=n.isHtml,i=void 0!==t&&t,r=n.textType,f=n.content,b=n.children,y=n.sx,Z=void 0===y?{}:y,w=n.as,j=(0,s.Z)(n,["isHtml","textType","content","children","sx","as"]),C=(0,l.useMemo)((function(){var n=r;return n||(n=d.B["body-md"]),{isHeading:0==n.indexOf("heading"),finalTextType:n}}),[r]),k=C.finalTextType,_=C.isHeading,S=(0,l.useMemo)((function(){if(w)return w;var n="span";return _&&h[k]&&(n=h[k]),n}),[_,w,k]),N=b&&!i?b:f,B=(0,l.useMemo)((function(){return function(n){if(!n)return{};var e=n.textType,t=n.isHeading,i=n.as,r=t?g.lineHeightHeading:g.lineHeightBody,o=v[e],a=t?g.fontWeight700:g.fontWeight400;return"h5"!==i&&"h6"!==i||(a="var(--c-font-weight-600)"),(0,p.Z)({},x,{lineHeight:r,fontWeight:a,display:t?"block":"initial"},o)}({textType:k,isHeading:_,as:S})}),[_,k,S]);return i?(0,c.jsx)(u.Z,(0,a.Z)((0,o.Z)({__css:m,sx:Z,ref:e},j),{children:(0,c.jsx)(u.Z,{className:"c-rich-content",dangerouslySetInnerHTML:{__html:f}})})):(0,c.jsx)(u.Z,(0,a.Z)((0,o.Z)({as:S,__css:B,sx:Z,className:"base-text",ref:e},j),{children:N}))},y=l.forwardRef(b)},77526:function(n,e,t){"use strict";var i;t.d(e,{B:function(){return i}}),function(n){n["heading-xs"]="heading-xs",n["heading-sm"]="heading-sm",n["heading-md"]="heading-md",n["heading-lg"]="heading-lg",n["heading-xl"]="heading-xl",n["heading-2xl"]="heading-2xl",n["heading-3xl"]="heading-3xl",n["heading-4xl"]="heading-4xl",n["body-xs"]="body-xs",n["body-sm"]="body-sm",n["body-md"]="body-md",n["body-lg"]="body-lg",n["body-xl"]="body-xl"}(i||(i={}))},52242:function(n,e,t){"use strict";t.d(e,{a:function(){return r}});var i=t(2784);function r(n){var e=(0,i.useMemo)((function(){var e=/\(.*?\)$/gi.exec(n);return e&&e[0]?e[0]:""}),[n]),t=(0,i.useState)(!1),r=t[0],o=t[1];return(0,i.useEffect)((function(){var n=function(){var n=function(n){return window.matchMedia(n).matches}(e);o(n)};return n(),window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}}),[e]),r}},83691:function(n,e,t){"use strict";var i=t(62230),r=t(85244),o=t(52322),a=(t(2784),t(69591));e.Z=function(n){return(0,o.jsx)(a.Z,(0,r.Z)((0,i.Z)({fill:"none"},n),{children:(0,o.jsx)("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeWidth:n.strokeWidth||2,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}))}},92239:function(n,e,t){"use strict";var i=t(62230),r=t(85244),o=t(52322),a=(t(2784),t(69591));e.Z=function(n){return(0,o.jsx)(a.Z,(0,r.Z)((0,i.Z)({viewBox:"0 0 26 23",fill:"none"},n),{children:(0,o.jsx)("path",{d:"M2.75736 3.14987C0.414213 5.41675 0.414213 9.0921 2.75736 11.359L13.0001 21.2683L23.2426 11.359C25.5858 9.0921 25.5858 5.41675 23.2426 3.14987C20.8995 0.882986 17.1005 0.882986 14.7574 3.14987L13.0001 4.8501L11.2426 3.14987C8.8995 0.882986 5.10051 0.882986 2.75736 3.14987Z",stroke:n.stroke||"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))}},57793:function(n,e,t){"use strict";var i=t(62230),r=t(85244),o=t(75190),a=t(52322),s=(t(2784),t(82740)),c=t(69591);function l(){var n=(0,o.Z)(["\n > line {\n stroke: currentColor;\n stroke-width: 2;\n }\n"]);return l=function(){return n},n}var d=(0,s.ZP)(c.Z).withConfig({componentId:"sc-7f34465f-0"})(l());e.Z=function(n){return(0,a.jsxs)(d,(0,r.Z)((0,i.Z)({},n),{children:[(0,a.jsx)("line",{x1:"2",y1:"4",x2:"20",y2:"4"}),(0,a.jsx)("line",{x1:"2",y1:"11",x2:"20",y2:"11"}),(0,a.jsx)("line",{x1:"2",y1:"18",x2:"20",y2:"18"})]}))}},16460:function(n,e,t){"use strict";var i=t(62230),r=t(85244),o=t(52322),a=(t(2784),t(69591));e.Z=function(n){return(0,o.jsx)(a.Z,(0,r.Z)((0,i.Z)({fill:"none"},n),{children:(0,o.jsx)("path",{d:"M16.4153 16.4153L20 20M18.5455 11.2727C18.5455 15.2893 15.2894 18.5454 11.2728 18.5454C7.25612 18.5454 4 15.2893 4 11.2727C4 7.2561 7.25612 4 11.2728 4C15.2894 4 18.5455 7.2561 18.5455 11.2727Z",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}))}},96753:function(n){n.exports={base:"BaseButton_base__aMbeB","full-width":"BaseButton_full-width__ujVu6",vd:"BaseButton_vd__2Cn0v",iconBase:"BaseButton_iconBase__kIhKy","only-icon":"BaseButton_only-icon___aRCM","v-primary":"BaseButton_v-primary__zw8Vo","t-default":"BaseButton_t-default__fZuC3","t-rounded":"BaseButton_t-rounded__Afcxy",labelWrapper:"BaseButton_labelWrapper__wzpX7","v-secondary":"BaseButton_v-secondary__LBCoi",btnContentWrapper:"BaseButton_btnContentWrapper__v34Zi","t-plain":"BaseButton_t-plain__EuAuK","v-tertiary":"BaseButton_v-tertiary___qgax",disabled:"BaseButton_disabled__LjoUl","size-sm":"BaseButton_size-sm__RoliW","size-md":"BaseButton_size-md__jbSJR","size-lg":"BaseButton_size-lg__IBHW8",loadingEl:"BaseButton_loadingEl__mbMX1",loadingIndicatorWrapper:"BaseButton_loadingIndicatorWrapper__ilDsx",loadingIndicator:"BaseButton_loadingIndicator__MB6wL"}},17482:function(n){n.exports={base:"loading_base__pF_4T",ring_rotate:"loading_ring_rotate__WrURC",ring_stretch:"loading_ring_stretch__hoJ6B"}}}]);