@nuskin/react-loyalty-elements 1.1.0-dev-sea.1 → 1.1.0-dev-sea.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/CircularProgressBar/ApproximateMonthlyAmount.d.ts +4 -1
  2. package/dist/CircularProgressBar/AvailableVouchers.d.ts +4 -1
  3. package/dist/CircularProgressBar/LoyaltyRewardsHeader.d.ts +4 -1
  4. package/dist/CircularProgressBar/RadialSeparator.d.ts +3 -0
  5. package/dist/CircularProgressBar/RewardProgressBar.d.ts +1 -0
  6. package/dist/CircularProgressBar/RewardSubscriptionMonthDescription.d.ts +1 -0
  7. package/dist/CircularProgressBar/RewardSubscriptionTotal.d.ts +1 -0
  8. package/dist/CircularProgressBar/SubscriptionReward.d.ts +4 -1
  9. package/dist/CircularProgressBar/SubscriptionRewardMobile.d.ts +4 -1
  10. package/dist/CircularProgressBar/index.js +1 -1
  11. package/dist/CircularProgressBar/index.js.map +1 -1
  12. package/dist/CircularProgressBar/index.mjs +1 -1
  13. package/dist/CircularProgressBar/index.mjs.map +1 -1
  14. package/dist/CircularProgressBar/logic/getRewardTrackingText.d.ts +12 -0
  15. package/dist/CircularProgressBar/types.d.ts +8 -0
  16. package/dist/GiftProgressBar/GiftProgressBar.d.ts +4 -1
  17. package/dist/GiftProgressBar/GiftProgressBar.styled.d.ts +4 -0
  18. package/dist/GiftProgressBar/GiftProgressBarMobile.d.ts +4 -1
  19. package/dist/GiftProgressBar/GiftProgressBarMonthDescription.d.ts +5 -2
  20. package/dist/GiftProgressBar/GiftReward.d.ts +4 -1
  21. package/dist/GiftProgressBar/GiftWheelCenterContent.d.ts +4 -1
  22. package/dist/GiftProgressBar/index.d.ts +1 -1
  23. package/dist/GiftProgressBar/index.js +1 -1
  24. package/dist/GiftProgressBar/index.js.map +1 -1
  25. package/dist/GiftProgressBar/index.mjs +1 -1
  26. package/dist/GiftProgressBar/index.mjs.map +1 -1
  27. package/dist/GiftProgressBar/logic/calculateGiftMonthCompletion.d.ts +4 -6
  28. package/dist/GiftProgressBar/logic/readGiftProperties.d.ts +3 -3
  29. package/dist/GiftProgressBar/types.d.ts +5 -8
  30. package/dist/GiftRoadmap/index.mjs +1 -1
  31. package/dist/GiftRoadmap/index.mjs.map +1 -1
  32. package/dist/chunk-3RJWIGAN.mjs +1 -0
  33. package/dist/chunk-3RJWIGAN.mjs.map +1 -0
  34. package/dist/chunk-NVD2PQ2C.mjs +1 -0
  35. package/dist/chunk-NVD2PQ2C.mjs.map +1 -0
  36. package/dist/{chunk-M6F5BD5Q.mjs → chunk-UHWCPMTT.mjs} +1 -1
  37. package/dist/{chunk-M6F5BD5Q.mjs.map → chunk-UHWCPMTT.mjs.map} +1 -1
  38. package/package.json +1 -1
  39. package/dist/chunk-THTK5CGU.mjs +0 -1
  40. package/dist/chunk-THTK5CGU.mjs.map +0 -1
  41. package/dist/chunk-TURO34CN.mjs +0 -1
  42. package/dist/chunk-TURO34CN.mjs.map +0 -1
@@ -0,0 +1,12 @@
1
+ import { TranslationConfig } from '../types';
2
+ export type RewardTrackingTextParams = {
3
+ voucherValue?: number | null;
4
+ minAmount: number;
5
+ translationConfig: Pick<TranslationConfig, 'currentlyTrack' | 'callToAction'>;
6
+ currencyAbbreviate?: boolean;
7
+ currencyFormat?: (price: number, currencyWithoutDecimal: boolean, currencyAbbreviate: boolean) => void;
8
+ };
9
+ export declare const getRewardTrackingText: ({ voucherValue, minAmount, translationConfig, currencyAbbreviate, currencyFormat, }: RewardTrackingTextParams) => {
10
+ currentlyTrackText: string;
11
+ callToActionText: string;
12
+ };
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from 'react';
1
2
  export type StoreMonthlySubsOrder = {
2
3
  accountId?: number;
3
4
  userId?: number;
@@ -89,6 +90,10 @@ export type RewardProgressBarProps = {
89
90
  showLogo?: boolean;
90
91
  /** Set false when the approximate-total pill is hoisted into the shared header. */
91
92
  showTotalSection?: boolean;
93
+ /** Rendered directly under the Learn More link, e.g. the "currently on track" copy when the
94
+ * total pill is suppressed (gift layout), so it stays in the description column instead of
95
+ * wrapping onto its own row below the whole card. */
96
+ trackingText?: ReactNode;
92
97
  };
93
98
  export type LoyaltyRewardsHeaderProps = {
94
99
  translationConfig: TranslationConfig;
@@ -111,6 +116,8 @@ export type RewardSubscriptionMonthDescriptionProps = {
111
116
  currencyAbbreviate?: boolean;
112
117
  currencyFormat?: (price: number, currencyWithoutDecimal: boolean, currencyAbbreviate: boolean) => void;
113
118
  showLogo?: boolean;
119
+ /** Rendered directly under the Learn More link; see RewardProgressBarProps. */
120
+ trackingText?: ReactNode;
114
121
  };
115
122
  export type CalculateMonthCompletionParams = {
116
123
  data: MonthlyData | null | undefined;
@@ -157,6 +164,7 @@ export type TotalSummaryParams = {
157
164
  amountShowText: string;
158
165
  currentlyTrackText: string;
159
166
  callToActionText: string;
167
+ showTotalSection: boolean;
160
168
  };
161
169
  export type TotalButtonParams = {
162
170
  notQualifyForRewardThisMonth: boolean;
@@ -1,4 +1,7 @@
1
1
  import { GiftProgressBarProps } from './types';
2
- declare const GiftProgressBar: (props: GiftProgressBarProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const GiftProgressBar: {
3
+ (props: GiftProgressBarProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
3
6
  export default GiftProgressBar;
4
7
  export { GiftProgressBar };
@@ -11,3 +11,7 @@ export declare const GiftDetailsColumn: import("@emotion/styled").StyledComponen
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export declare const GiftLearnMoreLink: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
17
+ }, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
@@ -1,4 +1,7 @@
1
1
  import { GiftProgressBarProps } from './types';
2
- declare const GiftProgressBarMobile: (props: GiftProgressBarProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const GiftProgressBarMobile: {
3
+ (props: GiftProgressBarProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
3
6
  export default GiftProgressBarMobile;
4
7
  export { GiftProgressBarMobile };
@@ -1,5 +1,8 @@
1
1
  import { GiftProgressBarProps } from './types';
2
- type GiftProgressBarMonthDescriptionProps = Pick<GiftProgressBarProps, 'value' | 'cadenceMonths' | 'notQualifyThisMonth' | 'translationConfig' | 'giftConfig' | 'handleOpenLearnMore' | 'showLogo'>;
3
- declare const GiftProgressBarMonthDescription: ({ value, cadenceMonths, notQualifyThisMonth, translationConfig, handleOpenLearnMore, showLogo, }: GiftProgressBarMonthDescriptionProps) => import("react/jsx-runtime").JSX.Element;
2
+ type GiftProgressBarMonthDescriptionProps = Pick<GiftProgressBarProps, 'value' | 'cadenceMonths' | 'notQualifyThisMonth' | 'translationConfig' | 'giftConfig' | 'showLogo'>;
3
+ declare const GiftProgressBarMonthDescription: {
4
+ ({ value, cadenceMonths, notQualifyThisMonth, translationConfig, giftConfig, showLogo, }: GiftProgressBarMonthDescriptionProps): import("react/jsx-runtime").JSX.Element;
5
+ displayName: string;
6
+ };
4
7
  export default GiftProgressBarMonthDescription;
5
8
  export { GiftProgressBarMonthDescription };
@@ -1,4 +1,7 @@
1
1
  import { GiftRewardProps } from './types';
2
- declare const GiftReward: (props: GiftRewardProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const GiftReward: {
3
+ (props: GiftRewardProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
3
6
  export default GiftReward;
4
7
  export { GiftReward };
@@ -10,7 +10,10 @@ type GiftWheelCenterContentProps = Readonly<{
10
10
  * Content inside the gift wheel ring — shared by the desktop and mobile variants so the fraction /
11
11
  * warning / gift-issued states can't drift apart between the two.
12
12
  */
13
- declare const GiftWheelCenterContent: ({ isComplete, notQualifyThisMonth, value, cadenceMonths, monthsLabel, giftIssuedLabel, }: GiftWheelCenterContentProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const GiftWheelCenterContent: {
14
+ ({ isComplete, notQualifyThisMonth, value, cadenceMonths, monthsLabel, giftIssuedLabel, }: GiftWheelCenterContentProps): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
14
17
  export default GiftWheelCenterContent;
15
18
  export { GiftWheelCenterContent };
16
19
  export type { GiftWheelCenterContentProps };
@@ -1,4 +1,4 @@
1
1
  export { default as GiftReward } from './GiftReward';
2
2
  export { default as GiftProgressBar } from './GiftProgressBar';
3
3
  export { default as GiftProgressBarMobile } from './GiftProgressBarMobile';
4
- export type { GiftRewardProps, GiftProgressBarProps, GiftTranslationConfig, GiftConfig, GiftThresholdKey, GiftLoyaltyProperty, GiftLoyaltyResponse, GiftLoyaltyProperties, GiftCompletionResult, CalculateGiftCompletionParams, } from './types';
4
+ export type { GiftRewardProps, GiftProgressBarProps, GiftTranslationConfig, GiftConfig, GiftThresholdKey, GiftLoyaltyProperty, GiftLoyaltyData, GiftLoyaltyProperties, GiftCompletionResult, CalculateGiftCompletionParams, } from './types';
@@ -1,4 +1,4 @@
1
- "use strict";function e(e,n){if(n==null||n>e.length)n=e.length;for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function n(n){if(Array.isArray(n))return e(n)}function t(e,n){if(!(e instanceof n)){throw new TypeError("Cannot call a class as a function")}}function r(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function i(e,n,t){if(n)r(e.prototype,n);if(t)r(e,t);return e}function o(e,n,t){if(n in e){Object.defineProperty(e,n,{value:t,enumerable:true,configurable:true,writable:true})}else{e[n]=t}return e}function a(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};var r=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}r.forEach(function(n){o(e,n,t[n])})}return e}function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(n){r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})}t.push.apply(t,r)}return t}function u(e,n){n=n!=null?n:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(n))}else{c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,n){if(!n){n=e.slice(0)}return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function f(e){return n(e)||a(e)||h(e)||s()}function p(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function h(n,t){if(!n)return;if(typeof n==="string")return e(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);if(r==="Object"&&n.constructor)r=n.constructor.name;if(r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(n,t)}function m(){var e=d(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n }\n"]);m=function n(){return e};return e}function v(){var e=d(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 12px;\n }\n\n .reward-progress {\n height: 150px;\n width: 150px;\n flex-shrink: 0;\n\n /* The library stylesheet is not bundled, so the SVG stays inline and its baseline gap\n makes the wrapper taller than the ring, pushing the radial separators off centre. */\n > div {\n height: 100%;\n }\n\n .CircularProgressbar {\n display: block;\n width: 100%;\n height: 100%;\n }\n }\n .progress-bar {\n background-color: #e0e0e0;\n height: 100%;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n width: 100%;\n\n .info-container {\n margin-left: 0px;\n align-items: center;\n }\n .reward-progress-total-div {\n margin-top: 10px;\n }\n }\n"]);v=function n(){return e};return e}function g(){var e=d(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-left: 16px;\n min-width: 0;\n\n .info-item {\n margin: 5px 0;\n font-weight: 600;\n }\n\n @media (max-width: 950px) {\n align-items: center;\n margin-left: 0;\n }\n"]);g=function n(){return e};return e}function y(){var e=d(["\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n"]);y=function n(){return e};return e}function x(){var e=d(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n width: 100%;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 0;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n align-items: center;\n\n .reward-header-total {\n width: 100%;\n justify-content: center;\n }\n }\n"]);x=function n(){return e};return e}function b(){var e=d(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n color: black;\n\n .center-value-progress-bar-price {\n margin: 0;\n }\n .center-value-progress-bar-voucher {\n margin: 0;\n letter-spacing: 0.01em;\n }\n"]);b=function n(){return e};return e}function w(){var e=d(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n\n .total-button {\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n }\n\n @media (max-width: 950px) {\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n text-align: center;\n }\n margin-top: 10px;\n }\n"]);w=function n(){return e};return e}function C(){var e=d(["\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding: 1rem;\n margin-bottom: 14px;\n\n @media (max-width: 950px) {\n margin-top: 14px;\n }\n"]);C=function n(){return e};return e}function k(){var e=d(["\n .info-icon {\n margin-left: 6px !important;\n }\n .loyalty-icon {\n height: 19px !important;\n width: 19px !important;\n margin-left: 6px !important;\n }\n .loyalty-warning-icon {\n height: 19px !important;\n width: 19px !important;\n margin-right: 6px !important;\n }\n .outline-exclamation-icon {\n height: 48px !important;\n width: 48px !important;\n }\n"]);k=function n(){return e};return e}function M(){var e=d(["\n position: absolute;\n height: 100%;\n"]);M=function n(){return e};return e}function j(){var e=d(["\n background: #fff;\n width: 6px;\n height: 12%;\n"]);j=function n(){return e};return e}function S(){var e=d(["\n display: flex;\n align-items: flex-start;\n width: 100%;\n\n @media (max-width: 950px) {\n margin-top: 24px;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n }\n"]);S=function n(){return e};return e}function O(){var e=d(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n padding-left: ",";\n padding-right: ",";\n flex: ",";\n min-width: ",";\n"]);O=function n(){return e};return e}function P(){var e=d(["\n display: flex;\n align-items: center;\n gap: 16px;\n width: 100%;\n\n svg {\n flex-shrink: 0;\n }\n"]);P=function n(){return e};return e}function _(){var e=d(["\n flex: 1 0 0;\n min-width: 0;\n height: 3px;\n border-radius: 2px;\n background-color: ",";\n"]);_=function n(){return e};return e}function T(){var e=d(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n white-space: nowrap;\n word-break: break-word;\n\n .gift-roadmap-month {\n font-size: 10px;\n font-weight: 600;\n line-height: 12px;\n letter-spacing: 0.2px;\n color: #8c8c8c;\n }\n\n .gift-roadmap-gift {\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n letter-spacing: 0.12px;\n color: ",";\n }\n"]);T=function n(){return e};return e}function E(){var e=d(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n align-items: stretch;\n width: 100%;\n }\n"]);E=function n(){return e};return e}function A(){var e=d(["\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n gap: 24px;\n width: 100%;\n\n .reward-progress {\n height: 150px;\n width: 150px;\n flex-shrink: 0;\n\n /* The library stylesheet is not bundled, so the SVG stays inline and its baseline gap\n makes the wrapper taller than the ring, pushing the radial separators off centre. */\n > div {\n height: 100%;\n }\n\n .CircularProgressbar {\n display: block;\n width: 100%;\n height: 100%;\n }\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n align-items: center;\n }\n"]);A=function n(){return e};return e}function L(){var e=d(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 16px;\n flex: 1 0 0;\n min-width: 0;\n\n /* The wrapper turns into a column here, so flex-basis governs height and the width would\n otherwise collapse to shrink-to-fit under the wrapper's align-items: center. */\n @media (max-width: 950px) {\n width: 100%;\n align-self: stretch;\n text-align: center;\n }\n"]);L=function n(){return e};return e}var $=Object.create;var N=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var R=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var q=function(e,n){return function(){return n||e((n={exports:{}}).exports,n),n.exports}},z=function(e,n){for(var t in n)N(e,t,{get:n[t],enumerable:!0})},D=function(e,n,t,r){var i=true,o=false,a=undefined;if(n&&(typeof n==="undefined"?"undefined":p(n))=="object"||typeof n=="function")try{var s=function(){var i=c.value;!I.call(e,i)&&i!==t&&N(e,i,{get:function(){return n[i]},enumerable:!(r=H(n,i))||r.enumerable})};for(var l=V(n)[Symbol.iterator](),c;!(i=(c=l.next()).done);i=true)s()}catch(e){o=true;a=e}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(o){throw a}}}return e};var F=function(e,n,t){return t=e!=null?$(R(e)):{},D(n||!e||!e.__esModule?N(t,"default",{value:e,enumerable:!0}):t,e)},G=function(e){return D(N({},"__esModule",{value:!0}),e)};var B=q(function(e){"use strict";var n=function e(e){if((typeof e==="undefined"?"undefined":p(e))=="object"&&e!==null){var n=e.$$typeof;switch(n){case i:switch(e=e.type,e){case d:case f:case a:case l:case s:case m:return e;default:switch(e=e&&e.$$typeof,e){case u:case h:case y:case g:case c:return e;default:return n}}case o:return n}}};var t=function e(e){return n(e)===f};var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,x=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,C=r?Symbol.for("react.scope"):60119;e.AsyncMode=d;e.ConcurrentMode=f;e.ContextConsumer=u;e.ContextProvider=c;e.Element=i;e.ForwardRef=h;e.Fragment=a;e.Lazy=y;e.Memo=g;e.Portal=o;e.Profiler=l;e.StrictMode=s;e.Suspense=m;e.isAsyncMode=function(e){return t(e)||n(e)===d};e.isConcurrentMode=t;e.isContextConsumer=function(e){return n(e)===u};e.isContextProvider=function(e){return n(e)===c};e.isElement=function(e){return(typeof e==="undefined"?"undefined":p(e))=="object"&&e!==null&&e.$$typeof===i};e.isForwardRef=function(e){return n(e)===h};e.isFragment=function(e){return n(e)===a};e.isLazy=function(e){return n(e)===y};e.isMemo=function(e){return n(e)===g};e.isPortal=function(e){return n(e)===o};e.isProfiler=function(e){return n(e)===l};e.isStrictMode=function(e){return n(e)===s};e.isSuspense=function(e){return n(e)===m};e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===a||e===f||e===l||e===s||e===m||e===v||(typeof e==="undefined"?"undefined":p(e))=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===w||e.$$typeof===C||e.$$typeof===x)};e.typeOf=n});var Z=q(function(e,n){"use strict";n.exports=B()});var W=q(function(e,n){"use strict";var t=function e(e){return r.isMemo(e)?s:l[e.$$typeof]||i};var r=Z(),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=a;l[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;function m(e,n,r){if(typeof n!="string"){if(h){var i=p(n);i&&i!==h&&m(e,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=t(e),l=t(n),v=0;v<a.length;++v){var g=a[v];if(!o[g]&&!(r&&r[g])&&!(l&&l[g])&&!(s&&s[g])){var y=f(n,g);try{c(e,g,y)}catch(e){}}}}return e}n.exports=m});var U={};z(U,{GiftProgressBar:function(){return tD},GiftProgressBarMobile:function(){return tW},GiftReward:function(){return t8}});module.exports=G(U);var Q=require("react-circular-progressbar");function X(){return X=Object.assign?Object.assign.bind():function e(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},X.apply(null,arguments)}var Y=F(require("react")),J=require("react");var K=!1;function ee(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function en(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var et=function(){function e(e){var n=this;this._insertTag=function(e){var t;n.tags.length===0?n.insertionPoint?t=n.insertionPoint.nextSibling:n.prepend?t=n.container.firstChild:t=n.before:t=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(e,t),n.tags.push(e)},this.isSpeedy=e.speedy===void 0?!K:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(e){e.forEach(this._insertTag)},n.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(en(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var t=ee(n);try{t.insertRule(e,t.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},n.flush=function(){this.tags.forEach(function(e){var n;return(n=e.parentNode)==null?void 0:n.removeChild(e)}),this.tags=[],this.ctr=0},e}();var er="-ms-",ei="-moz-",eo="-webkit-",ea="comm",es="rule",el="decl";var ec="@import";var eu="@keyframes";var ed="@layer";var ef=Math.abs,ep=String.fromCharCode,eh=Object.assign;function em(e,n){return eb(e,0)^45?(((n<<2^eb(e,0))<<2^eb(e,1))<<2^eb(e,2))<<2^eb(e,3):0}function ev(e){return e.trim()}function eg(e,n){return(e=n.exec(e))?e[0]:e}function ey(e,n,t){return e.replace(n,t)}function ex(e,n){return e.indexOf(n)}function eb(e,n){return e.charCodeAt(n)|0}function ew(e,n,t){return e.slice(n,t)}function eC(e){return e.length}function ek(e){return e.length}function eM(e,n){return n.push(e),e}function ej(e,n){return e.map(n).join("")}var eS=1,eO=1,eP=0,e_=0,eT=0,eE="";function eA(e,n,t,r,i,o,a){return{value:e,root:n,parent:t,type:r,props:i,children:o,line:eS,column:eO,length:a,return:""}}function eL(e,n){return eh(eA("",null,null,"",null,null,0),e,{length:-e.length},n)}function e$(){return eT}function eN(){return eT=e_>0?eb(eE,--e_):0,eO--,eT===10&&(eO=1,eS--),eT}function eH(){return eT=e_<eP?eb(eE,e_++):0,eO++,eT===10&&(eO=1,eS++),eT}function eV(){return eb(eE,e_)}function eR(){return e_}function eI(e,n){return ew(eE,e,n)}function eq(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ez(e){return eS=eO=1,eP=eC(eE=e),e_=0,[]}function eD(e){return eE="",e}function eF(e){return ev(eI(e_-1,eZ(e===91?e+2:e===40?e+1:e)))}function eG(e){for(;(eT=eV())&&eT<33;)eH();return eq(e)>2||eq(eT)>3?"":" "}function eB(e,n){for(;--n&&eH()&&!(eT<48||eT>102||eT>57&&eT<65||eT>70&&eT<97););return eI(e,eR()+(n<6&&eV()==32&&eH()==32))}function eZ(e){for(;eH();)switch(eT){case e:return e_;case 34:case 39:e!==34&&e!==39&&eZ(eT);break;case 40:e===41&&eZ(e);break;case 92:eH();break}return e_}function eW(e,n){for(;eH()&&e+eT!==57;)if(e+eT===84&&eV()===47)break;return"/*"+eI(n,e_-1)+"*"+ep(e===47?e:eH())}function eU(e){for(;!eq(eV());)eH();return eI(e,e_)}function eQ(e){return eD(eX("",null,null,null,[""],e=ez(e),0,[0],e))}function eX(e,n,t,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,v=1,g=1,y=0,x="",b=i,w=o,C=r,k=x;v;)switch(h=y,y=eH()){case 40:if(h!=108&&eb(k,d-1)==58){ex(k+=ey(eF(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=eF(y);break;case 9:case 10:case 13:case 32:k+=eG(h);break;case 92:k+=eB(eR()-1,7);continue;case 47:switch(eV()){case 42:case 47:eM(eJ(eW(eH(),eR()),n,t),l);break;default:k+="/"}break;case 123*m:s[c++]=eC(k)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:g==-1&&(k=ey(k,/\f/g,"")),p>0&&eC(k)-d&&eM(p>32?eK(k+";",r,t,d-1):eK(ey(k," ","")+";",r,t,d-2),l);break;case 59:k+=";";default:if(eM(C=eY(k,n,t,c,u,i,s,x,b=[],w=[],d),o),y===123)if(u===0)eX(k,n,C,C,b,o,d,s,w);else switch(f===99&&eb(k,3)===110?100:f){case 100:case 108:case 109:case 115:eX(e,C,C,r&&eM(eY(e,C,C,0,0,i,s,x,i,b=[],d),w),i,w,d,s,r?b:w);break;default:eX(k,C,C,C,[""],w,0,s,w)}}c=u=p=0,m=g=1,x=k="",d=a;break;case 58:d=1+eC(k),p=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&eN()==125)continue}switch(k+=ep(y),y*m){case 38:g=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(eC(k)-1)*g,g=1;break;case 64:eV()===45&&(k+=eF(eH())),f=eV(),u=d=eC(x=k+=eU(eR())),y++;break;case 45:h===45&&eC(k)==2&&(m=0)}}return o}function eY(e,n,t,r,i,o,a,s,l,c,u){for(var d=i-1,f=i===0?o:[""],p=ek(f),h=0,m=0,v=0;h<r;++h)for(var g=0,y=ew(e,d+1,d=ef(m=a[h])),x=e;g<p;++g)(x=ev(m>0?f[g]+" "+y:ey(y,/&\f/g,f[g])))&&(l[v++]=x);return eA(e,n,t,i===0?es:s,l,c,u)}function eJ(e,n,t){return eA(e,n,t,ea,ep(e$()),ew(e,2,-2),0)}function eK(e,n,t,r){return eA(e,n,t,el,ew(e,0,r),ew(e,r+1,-1),r)}function e0(e,n){for(var t="",r=ek(e),i=0;i<r;i++)t+=n(e[i],i,e,n)||"";return t}function e1(e,n,t,r){switch(e.type){case ed:if(e.children.length)break;case ec:case el:return e.return=e.return||e.value;case ea:return"";case eu:return e.return=e.value+"{"+e0(e.children,r)+"}";case es:e.value=e.props.join(",")}return eC(t=e0(e.children,r))?e.return=e.value+"{"+t+"}":""}function e5(e){var n=ek(e);return function(t,r,i,o){for(var a="",s=0;s<n;s++)a+=e[s](t,r,i,o)||"";return a}}function e6(e){return function(n){n.root||(n=n.return)&&e(n)}}function e7(e){var n=Object.create(null);return function(t){return n[t]===void 0&&(n[t]=e(t)),n[t]}}var e4=function e(e,n,t){for(var r=0,i=0;r=i,i=eV(),r===38&&i===12&&(n[t]=1),!eq(i);)eH();return eI(e,e_)},e2=function e(e,n){var t=-1,r=44;do switch(eq(r)){case 0:r===38&&eV()===12&&(n[t]=1),e[t]+=e4(e_-1,n,t);break;case 2:e[t]+=eF(r);break;case 4:if(r===44){e[++t]=eV()===58?"&\f":"",n[t]=e[t].length;break}default:e[t]+=ep(r)}while(r=eH());return e},e9=function e(e,n){return eD(e2(ez(e),n))},e3=new WeakMap,e8=function e(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,t=e.parent,r=e.column===t.column&&e.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!e3.get(t))&&!r){e3.set(e,!0);for(var i=[],o=e9(n,i),a=t.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ne=function e(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function nn(e,n){switch(em(e,n)){case 5103:return eo+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return eo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return eo+e+ei+e+er+e+e;case 6828:case 4268:return eo+e+er+e+e;case 6165:return eo+e+er+"flex-"+e+e;case 5187:return eo+e+ey(e,/(\w+).+(:[^]+)/,eo+"box-$1$2"+er+"flex-$1$2")+e;case 5443:return eo+e+er+"flex-item-"+ey(e,/flex-|-self/,"")+e;case 4675:return eo+e+er+"flex-line-pack"+ey(e,/align-content|flex-|-self/,"")+e;case 5548:return eo+e+er+ey(e,"shrink","negative")+e;case 5292:return eo+e+er+ey(e,"basis","preferred-size")+e;case 6060:return eo+"box-"+ey(e,"-grow","")+eo+e+er+ey(e,"grow","positive")+e;case 4554:return eo+ey(e,/([^-])(transform)/g,"$1"+eo+"$2")+e;case 6187:return ey(ey(ey(e,/(zoom-|grab)/,eo+"$1"),/(image-set)/,eo+"$1"),e,"")+e;case 5495:case 3959:return ey(e,/(image-set\([^]*)/,eo+"$1$`$1");case 4968:return ey(ey(e,/(.+:)(flex-)?(.*)/,eo+"box-pack:$3"+er+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+eo+e+e;case 4095:case 3583:case 4068:case 2532:return ey(e,/(.+)-inline(.+)/,eo+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(eC(e)-1-n>6)switch(eb(e,n+1)){case 109:if(eb(e,n+4)!==45)break;case 102:return ey(e,/(.+:)(.+)-([^]+)/,"$1"+eo+"$2-$3$1"+ei+(eb(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~ex(e,"stretch")?nn(ey(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(eb(e,n+1)!==115)break;case 6444:switch(eb(e,eC(e)-3-(~ex(e,"!important")&&10))){case 107:return ey(e,":",":"+eo)+e;case 101:return ey(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+eo+(eb(e,14)===45?"inline-":"")+"box$3$1"+eo+"$2$3$1"+er+"$2box$3")+e}break;case 5936:switch(eb(e,n+11)){case 114:return eo+e+er+ey(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return eo+e+er+ey(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return eo+e+er+ey(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return eo+e+er+e+e}return e}var nt=function e(e,n,t,r){if(e.length>-1&&!e.return)switch(e.type){case el:e.return=nn(e.value,e.length);break;case eu:return e0([eL(e,{value:ey(e.value,"@","@"+eo)})],r);case es:if(e.length)return ej(e.props,function(n){switch(eg(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return e0([eL(e,{props:[ey(n,/:(read-\w+)/,":"+ei+"$1")]})],r);case"::placeholder":return e0([eL(e,{props:[ey(n,/:(plac\w+)/,":"+eo+"input-$1")]}),eL(e,{props:[ey(n,/:(plac\w+)/,":"+ei+"$1")]}),eL(e,{props:[ey(n,/:(plac\w+)/,er+"input-$1")]})],r)}return""})}},nr=[nt],ni=function e(e){var n=e.key;if(n==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(e){var n=e.getAttribute("data-emotion");n.indexOf(" ")!==-1&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||nr,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(e){for(var n=e.getAttribute("data-emotion").split(" "),t=1;t<n.length;t++)i[n[t]]=!0;a.push(e)});var s,l=[e8,ne];{var c,u=[e1,e6(function(e){c.insert(e)})],d=e5(l.concat(r,u)),f=function e(e){return e0(eQ(e),d)};s=function e(e,n,t,r){c=t,f(e?e+"{"+n.styles+"}":n.styles),r&&(p.inserted[n.name]=!0)}}var p={key:n,sheet:new et({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(a),p};var no=!0;function na(e,n,t){var r="";return t.split(" ").forEach(function(t){e[t]!==void 0?n.push(e[t]+";"):t&&(r+=t+" ")}),r}var ns=function e(e,n,t){var r=e.key+"-"+n.name;(t===!1||no===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},nl=function e(e,n,t){ns(e,n,t);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+r:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function nc(e){for(var n=0,t,r=0,i=e.length;i>=4;++r,i-=4)t=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,t=(t&65535)*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(t&65535)*0x5bd1e995+((t>>>16)*59797<<16)^(n&65535)*0x5bd1e995+((n>>>16)*59797<<16);switch(i){case 3:n^=(e.charCodeAt(r+2)&255)<<16;case 2:n^=(e.charCodeAt(r+1)&255)<<8;case 1:n^=e.charCodeAt(r)&255,n=(n&65535)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*0x5bd1e995+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var nu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var nd=!1,nf=/[A-Z]|^ms/g,np=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nh=function e(e){return e.charCodeAt(1)===45},nm=function e(e){return e!=null&&typeof e!="boolean"},nv=e7(function(e){return nh(e)?e:e.replace(nf,"-$&").toLowerCase()}),ng=function e(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(np,function(e,n,t){return nC={name:n,styles:t,next:nC},n})}return nu[e]!==1&&!nh(e)&&typeof n=="number"&&n!==0?n+"px":n},ny="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nx(e,n,t){if(t==null)return"";var r=t;if(r.__emotion_styles!==void 0)return r;switch(typeof t==="undefined"?"undefined":p(t)){case"boolean":return"";case"object":{var i=t;if(i.anim===1)return nC={name:i.name,styles:i.styles,next:nC},i.name;var o=t;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)nC={name:a.name,styles:a.styles,next:nC},a=a.next;var s=o.styles+";";return s}return nb(e,n,t)}case"function":{if(e!==void 0){var l=nC,c=t(e);return nC=l,nx(e,n,c)}break}}var u=t;if(n==null)return u;var d=n[u];return d!==void 0?d:u}function nb(e,n,t){var r="";if(Array.isArray(t))for(var i=0;i<t.length;i++)r+=nx(e,n,t[i])+";";else for(var o in t){var a=t[o];if((typeof a==="undefined"?"undefined":p(a))!="object"){var s=a;n!=null&&n[s]!==void 0?r+=o+"{"+n[s]+"}":nm(s)&&(r+=nv(o)+":"+ng(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&nd)throw new Error(ny);if(Array.isArray(a)&&typeof a[0]=="string"&&(n==null||n[a[0]]===void 0))for(var l=0;l<a.length;l++)nm(a[l])&&(r+=nv(o)+":"+ng(o,a[l])+";");else{var c=nx(e,n,a);switch(o){case"animation":case"animationName":{r+=nv(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}}return r}var nw=/label:\s*([^\s;{]+)\s*(;|$)/g,nC;function nk(e,n,t){if(e.length===1&&p(e[0])=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";nC=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=nx(t,n,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=nx(t,n,e[s]),r){var l=o;i+=l[s]}nw.lastIndex=0;for(var c="",u;(u=nw.exec(i))!==null;)c+="-"+u[1];var d=nc(i)+c;return{name:d,styles:i,next:nC}}var nM=F(require("react")),nj=function e(e){return e()},nS=nM.useInsertionEffect?nM.useInsertionEffect:!1,nO=nS||nj;var nP=!1,n_=Y.createContext((typeof HTMLElement==="undefined"?"undefined":p(HTMLElement))<"u"?ni({key:"css"}):null),nT=n_.Provider;var nE=function e(e){return(0,J.forwardRef)(function(n,t){var r=(0,J.useContext)(n_);return e(n,r,t)})},nA=Y.createContext({});var nL={}.hasOwnProperty,n$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nN=function e(e,n){var t={};for(var r in n)nL.call(n,r)&&(t[r]=n[r]);return t[n$]=e,t},nH=function e(e){var n=e.cache,t=e.serialized,r=e.isStringTag;return ns(n,t,r),nO(function(){return nl(n,t,r)}),null},nV=nE(function(e,n,t){var r=e.css;typeof r=="string"&&n.registered[r]!==void 0&&(r=n.registered[r]);var i=e[n$],o=[r],a="";typeof e.className=="string"?a=na(n.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=nk(o,void 0,Y.useContext(nA));a+=n.key+"-"+s.name;var l={};for(var c in e)nL.call(e,c)&&c!=="css"&&c!==n$&&!nP&&(l[c]=e[c]);return l.className=a,t&&(l.ref=t),Y.createElement(Y.Fragment,null,Y.createElement(nH,{cache:n,serialized:s,isStringTag:typeof i=="string"}),Y.createElement(i,l))}),nR=nV;var nI=F(require("react"));var nq=F(W()),nz=function e(e,n){var t=arguments;if(n==null||!nL.call(n,"css"))return nI.createElement.apply(void 0,t);var r=t.length,i=new Array(r);i[0]=nR,i[1]=nN(e,n);for(var o=2;o<r;o++)i[o]=t[o];return nI.createElement.apply(null,i)};(function(e){var n;n||(n=e.JSX||(e.JSX={}))})(nz||(nz={}));var nD=F(require("react"));var nF=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nG=e7(function(e){return nF.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var nB=!1,nZ=nG,nW=function e(e){return e!=="theme"},nU=function e(e){return typeof e=="string"&&e.charCodeAt(0)>96?nZ:nW},nQ=function e(e,n,t){var r;if(n){var i=n.shouldForwardProp;r=e.__emotion_forwardProp&&i?function n(n){return e.__emotion_forwardProp(n)&&i(n)}:i}return typeof r!="function"&&t&&(r=e.__emotion_forwardProp),r},nX=function e(e){var n=e.cache,t=e.serialized,r=e.isStringTag;return ns(n,t,r),nO(function(){return nl(n,t,r)}),null},nY=function e(n,t){var r=n.__emotion_real===n,i=r&&n.__emotion_base||n,o,a;t!==void 0&&(o=t.label,a=t.target);var s=nQ(n,t,r),l=s||nU(i),c=!l("as");return function(){var u=arguments,d=r&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=nE(function(e,n,t){var r=c&&e.as||i,o="",u=[],f=e;if(e.theme==null){f={};for(var p in e)f[p]=e[p];f.theme=nD.useContext(nA)}typeof e.className=="string"?o=na(n.registered,u,e.className):e.className!=null&&(o=e.className+" ");var h=nk(d.concat(u),n.registered,f);o+=n.key+"-"+h.name,a!==void 0&&(o+=" "+a);var m=c&&s===void 0?nU(r):l,v={};for(var g in e)c&&g==="as"||m(g)&&(v[g]=e[g]);return v.className=o,t&&(v.ref=t),nD.createElement(nD.Fragment,null,nD.createElement(nX,{cache:n,serialized:h,isStringTag:typeof r=="string"}),nD.createElement(r,v))});return m.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function e(){return a===void 0&&nB?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(n,r){var i=e(n,X({},t,r,{shouldForwardProp:nQ(m,r,!0)}));return i.apply(void 0,d)},m}};var nJ=require("react");var nK=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],n0=nY.bind(null);nK.forEach(function(e){n0[e]=n0(e)});var n1=n0.div(m()),n5=n0.div(v()),n6=n0.div(g()),n7=n0.div(y()),n4=n0.div(x()),n2=n0.div(b()),n9=n0.div(w()),n3=n0.div(C()),n8=n0.span(k()),te=n0.div(M()),tn=n0.div(j());var tt=require("react/jsx-runtime");function tr(e){return(0,tt.jsx)(te,{style:{transform:"rotate(".concat(e.turns,"turn)")},children:(0,tt.jsx)(tn,{})})}function ti(e){var n=1/e.count,t=.5;return Array.from({length:e.count},function(e,r){return r*n+t}).map(function(e){return(0,tt.jsx)(tr,{turns:e},e)})}var to=ti;var ta=require("react/jsx-runtime");function ts(){return(0,ta.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ta.jsx)("rect",{width:"20",height:"20",rx:"10",fill:"#0B0A09"}),(0,ta.jsx)("path",{d:"M10.375 14.5H13.5251V10.375H10.375V14.5ZM6.47485 14.5H9.625V10.375H6.47485V14.5ZM10.375 9.625H14.5V7.9375H10.375V9.625ZM5.5 9.625H9.625V7.9375H5.5V9.625ZM13.0374 6.34375C13.0374 6.11997 12.9488 5.90506 12.7905 5.74683C12.6323 5.58864 12.4173 5.5 12.1936 5.5C11.5491 5.50007 11.0991 5.95524 10.7859 6.52466C10.6581 6.75695 10.5644 6.99201 10.4973 7.1875H12.1936C12.4173 7.1875 12.6323 7.09886 12.7905 6.94067C12.9488 6.78244 13.0374 6.56753 13.0374 6.34375ZM6.96631 6.42725C6.9855 6.62037 7.07104 6.80224 7.20947 6.94067C7.3677 7.09885 7.58266 7.1875 7.8064 7.1875H9.50269C9.43558 6.99201 9.34187 6.75695 9.21411 6.52466C8.90093 5.95525 8.45089 5.50009 7.8064 5.5C7.58266 5.5 7.3677 5.58865 7.20947 5.74683C7.05124 5.90506 6.96265 6.11997 6.96265 6.34375L6.96631 6.42725ZM13.7874 6.34375C13.7874 6.64476 13.7012 6.93625 13.5442 7.1875H14.5828C14.9512 7.18764 15.2499 7.48629 15.25 7.85474V9.70776C15.2499 10.0762 14.9512 10.3749 14.5828 10.375H14.2751V14.5828C14.275 14.9513 13.9757 15.25 13.6072 15.25H6.39282C6.02426 15.25 5.725 14.9513 5.72485 14.5828V10.375H5.41724C5.0488 10.3749 4.75014 10.0762 4.75 9.70776V7.85474C4.75014 7.4863 5.0488 7.18764 5.41724 7.1875H6.45581C6.32637 6.98033 6.24427 6.74607 6.21997 6.50122L6.21265 6.34375C6.21265 5.92106 6.38031 5.51544 6.6792 5.21655C6.97808 4.91772 7.38375 4.75 7.8064 4.75C8.86794 4.75009 9.51473 5.5136 9.87183 6.16284C9.91838 6.24747 9.96098 6.33196 10 6.41479C10.039 6.33196 10.0816 6.24747 10.1282 6.16284C10.4853 5.51359 11.132 4.75007 12.1936 4.75C12.6163 4.75 13.0219 4.91771 13.3208 5.21655C13.6197 5.51544 13.7874 5.92106 13.7874 6.34375Z",fill:"white"})]})}var tl=ts;var tc=require("react/jsx-runtime");function tu(){return(0,tc.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,tc.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",stroke:"#0B0A09"}),(0,tc.jsx)("path",{d:"M10.375 14.5H13.5251V10.375H10.375V14.5ZM6.47485 14.5H9.625V10.375H6.47485V14.5ZM10.375 9.625H14.5V7.9375H10.375V9.625ZM5.5 9.625H9.625V7.9375H5.5V9.625ZM13.0374 6.34375C13.0374 6.11997 12.9488 5.90506 12.7905 5.74683C12.6323 5.58864 12.4173 5.5 12.1936 5.5C11.5491 5.50007 11.0991 5.95524 10.7859 6.52466C10.6581 6.75695 10.5644 6.99201 10.4973 7.1875H12.1936C12.4173 7.1875 12.6323 7.09886 12.7905 6.94067C12.9488 6.78244 13.0374 6.56753 13.0374 6.34375ZM6.96631 6.42725C6.9855 6.62037 7.07104 6.80224 7.20947 6.94067C7.3677 7.09885 7.58266 7.1875 7.8064 7.1875H9.50269C9.43558 6.99201 9.34187 6.75695 9.21411 6.52466C8.90093 5.95525 8.45089 5.50009 7.8064 5.5C7.58266 5.5 7.3677 5.58865 7.20947 5.74683C7.05124 5.90506 6.96265 6.11997 6.96265 6.34375L6.96631 6.42725ZM13.7874 6.34375C13.7874 6.64476 13.7012 6.93625 13.5442 7.1875H14.5828C14.9512 7.18764 15.2499 7.48629 15.25 7.85474V9.70776C15.2499 10.0762 14.9512 10.3749 14.5828 10.375H14.2751V14.5828C14.275 14.9513 13.9757 15.25 13.6072 15.25H6.39282C6.02426 15.25 5.725 14.9513 5.72485 14.5828V10.375H5.41724C5.0488 10.3749 4.75014 10.0762 4.75 9.70776V7.85474C4.75014 7.4863 5.0488 7.18764 5.41724 7.1875H6.45581C6.32637 6.98033 6.24427 6.74607 6.21997 6.50122L6.21265 6.34375C6.21265 5.92106 6.38031 5.51544 6.6792 5.21655C6.97808 4.91772 7.38375 4.75 7.8064 4.75C8.86794 4.75009 9.51473 5.5136 9.87183 6.16284C9.91838 6.24747 9.96098 6.33196 10 6.41479C10.039 6.33196 10.0816 6.24747 10.1282 6.16284C10.4853 5.51359 11.132 4.75007 12.1936 4.75C12.6163 4.75 13.0219 4.91771 13.3208 5.21655C13.6197 5.51544 13.7874 5.92106 13.7874 6.34375Z",fill:"#1D1D1B"})]})}var td=tu;var tf=require("react/jsx-runtime");function tp(){return(0,tf.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,tf.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",fill:"#EAE8E3"}),(0,tf.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",stroke:"#B2B2B2"}),(0,tf.jsx)("path",{d:"M10.375 14.5H13.5251V10.375H10.375V14.5ZM6.47485 14.5H9.625V10.375H6.47485V14.5ZM10.375 9.625H14.5V7.9375H10.375V9.625ZM5.5 9.625H9.625V7.9375H5.5V9.625ZM13.0374 6.34375C13.0374 6.11997 12.9488 5.90506 12.7905 5.74683C12.6323 5.58864 12.4173 5.5 12.1936 5.5C11.5491 5.50007 11.0991 5.95524 10.7859 6.52466C10.6581 6.75695 10.5644 6.99201 10.4973 7.1875H12.1936C12.4173 7.1875 12.6323 7.09886 12.7905 6.94067C12.9488 6.78244 13.0374 6.56753 13.0374 6.34375ZM6.96631 6.42725C6.9855 6.62037 7.07104 6.80224 7.20947 6.94067C7.3677 7.09885 7.58266 7.1875 7.8064 7.1875H9.50269C9.43558 6.99201 9.34187 6.75695 9.21411 6.52466C8.90093 5.95525 8.45089 5.50009 7.8064 5.5C7.58266 5.5 7.3677 5.58865 7.20947 5.74683C7.05124 5.90506 6.96265 6.11997 6.96265 6.34375L6.96631 6.42725ZM13.7874 6.34375C13.7874 6.64476 13.7012 6.93625 13.5442 7.1875H14.5828C14.9512 7.18764 15.2499 7.48629 15.25 7.85474V9.70776C15.2499 10.0762 14.9512 10.3749 14.5828 10.375H14.2751V14.5828C14.275 14.9513 13.9757 15.25 13.6072 15.25H6.39282C6.02426 15.25 5.725 14.9513 5.72485 14.5828V10.375H5.41724C5.0488 10.3749 4.75014 10.0762 4.75 9.70776V7.85474C4.75014 7.4863 5.0488 7.18764 5.41724 7.1875H6.45581C6.32637 6.98033 6.24427 6.74607 6.21997 6.50122L6.21265 6.34375C6.21265 5.92106 6.38031 5.51544 6.6792 5.21655C6.97808 4.91772 7.38375 4.75 7.8064 4.75C8.86794 4.75009 9.51473 5.5136 9.87183 6.16284C9.91838 6.24747 9.96098 6.33196 10 6.41479C10.039 6.33196 10.0816 6.24747 10.1282 6.16284C10.4853 5.51359 11.132 4.75007 12.1936 4.75C12.6163 4.75 13.0219 4.91771 13.3208 5.21655C13.6197 5.51544 13.7874 5.92106 13.7874 6.34375Z",fill:"#B2B2B2"})]})}var th=tp;var tm=function(e,n){return Object.keys(n).reduce(function(e,t){var r;var i=(r=n[t])!==null&&r!==void 0?r:"";return e.replace(new RegExp("%".concat(t,"%"),"g"),String(i))},e)};var tv="#0B0A09",tg="#E6E6E5",ty=n0.div(S()),tx=n0.div(O(),function(e){var n=e.isFirst;return n?"0":"16px"},function(e){var n=e.isLast;return n?"16px":"0"},function(e){var n=e.isLast;return n?"0 0 auto":"1 0 0"},function(e){var n=e.isLast;return n?"auto":"0"}),tb=n0.div(P()),tw=n0.div(_(),function(e){var n=e.isFilled;return n?tv:tg}),tC=n0.div(T(),tv);var tk=require("react/jsx-runtime"),tM={issued:tl,active:td,future:th},tj=function(e,n,t){return e<t?"issued":e===n?"active":"future"},tS=function(e,n,t,r){var i=e>0?Math.floor(n/e):0;return Array.from({length:Math.max(i,0)},function(n,i){return{index:i,cadenceMonth:(i+1)*e,state:tj(i,t,r)}})},tO=function(e){var n=e.giftCycle,t=e.maxCSM,r=e.currentCadenceIndex,i=r===void 0?0:r,o=e.issuedCadenceCount,a=o===void 0?0:o,s=e.translationConfig,l=tS(n,t,i,a);return l.length?(0,tk.jsx)(ty,{"data-testid":"gift-roadmap",children:l.map(function(e){var n=e.index===l.length-1,t=tM[e.state];return(0,tk.jsxs)(tx,{isFirst:e.index===0,isLast:n,"data-step-state":e.state,children:[(0,tk.jsxs)(tb,{children:[(0,tk.jsx)(t,{}),!n&&(0,tk.jsx)(tw,{isFilled:e.state==="issued"})]}),(0,tk.jsxs)(tC,{children:[(0,tk.jsx)("span",{className:"gift-roadmap-month",children:tm(s.monthLabel,{cadence_month:e.cadenceMonth})}),(0,tk.jsx)("span",{className:"gift-roadmap-gift",children:tm(s.giftLabel,{gift_index:e.index+1})})]})]},e.cadenceMonth)})}):null},tP=tO;var t_=require("react/jsx-runtime"),tT=function(e){var n=e.value,t=e.cadenceMonths,r=e.notQualifyThisMonth,i=e.translationConfig,o=e.handleOpenLearnMore,a=o===void 0?function(){}:o,s=e.showLogo,l=s===void 0?!0:s;var c=t>0&&n===t&&!r,u=tm(i.monthsComplete,{completed_months:n,total_months:t});return c?u=i.giftEarned:r&&(u=i.notQualify),(0,t_.jsxs)(n6,{children:[l&&(0,t_.jsx)("img",{className:"reward-logo",src:i.loyaltyLogoBlack,alt:"Rewards Logo"}),(0,t_.jsx)("div",{className:"info-item",children:u}),(0,t_.jsx)(n7,{id:"learnMoreGift",onClick:a,children:(0,t_.jsx)("u",{children:i.learnMore})})]})},tE=tT;var tA=require("react-icons/fa"),tL=require("@nuskin/foundation-ui-components");var t$=require("react/jsx-runtime"),tN=function(e){var n=e.isComplete,t=e.notQualifyThisMonth,r=e.value,i=e.cadenceMonths,o=e.monthsLabel,a=e.giftIssuedLabel;return t?(0,t$.jsx)(n8,{children:(0,t$.jsx)(tA.FaExclamationTriangle,{className:"outline-exclamation-icon",color:"#91ACC8"})}):(0,t$.jsxs)(n2,{children:[(0,t$.jsx)(tL.NsTypography,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:"".concat(r,"/").concat(i)}),(0,t$.jsx)(tL.NsTypography,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:o}),n&&(0,t$.jsx)(tL.NsTypography,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:a})]})},tH=tN;var tV=n0.div(E()),tR=n0.div(A()),tI=n0.div(L());var tq=require("react/jsx-runtime"),tz=function(e){var n;var t=e.value,r=t===void 0?0:t,i=e.cadenceMonths,o=i===void 0?0:i,a=e.notQualifyThisMonth,s=a===void 0?!1:a,l=e.translationConfig,c=e.giftConfig,u=e.currentCadenceIndex,d=u===void 0?0:u,f=e.issuedCadenceCount,p=f===void 0?0:f,h=e.showRoadmap,m=h===void 0?!0:h,v=e.handleOpenLearnMore,g=v===void 0?function(){}:v,y=e.showLogo,x=y===void 0?!0:y,b=o>0&&r===o&&!s,w=o>0?Math.floor(((n=c===null||c===void 0?void 0:c.maxCSM)!==null&&n!==void 0?n:0)/o):0;var C,k,M,j,S;return(0,tq.jsxs)(tR,{children:[(0,tq.jsx)("div",{className:"reward-progress",children:(0,tq.jsxs)(Q.CircularProgressbarWithChildren,{value:o>0?r/o*100:0,strokeWidth:12,background:!0,styles:(0,Q.buildStyles)({rotation:.5,strokeLinecap:"butt",backgroundColor:"#fff",pathColor:"#ED7219",trailColor:"#E0E0E0"}),children:[o>0&&(0,tq.jsx)(to,{count:o}),(0,tq.jsx)(tH,{isComplete:b,notQualifyThisMonth:s,value:r,cadenceMonths:o,monthsLabel:(C=l===null||l===void 0?void 0:l.monthsLabel)!==null&&C!==void 0?C:"Months",giftIssuedLabel:(k=l===null||l===void 0?void 0:l.giftIssuedLabel)!==null&&k!==void 0?k:"Gift issued"})]})}),(0,tq.jsxs)(tI,{children:[m&&w>1&&(0,tq.jsx)(tP,{giftCycle:o,maxCSM:(M=c===null||c===void 0?void 0:c.maxCSM)!==null&&M!==void 0?M:0,currentCadenceIndex:d,issuedCadenceCount:p,translationConfig:{monthLabel:(j=l===null||l===void 0?void 0:l.roadmapMonthLabel)!==null&&j!==void 0?j:"Month %cadence_month%",giftLabel:(S=l===null||l===void 0?void 0:l.roadmapGiftLabel)!==null&&S!==void 0?S:"Gift %gift_index%"}}),(0,tq.jsx)(tE,{value:r,cadenceMonths:o,notQualifyThisMonth:s,translationConfig:l,giftConfig:c,handleOpenLearnMore:g,showLogo:x})]})]})},tD=tz;var tF=require("react-circular-progressbar"),tG=require("@nuskin/foundation-ui-components");var tB=require("react/jsx-runtime"),tZ=function(e){var n;var t=e.value,r=t===void 0?0:t,i=e.cadenceMonths,o=i===void 0?0:i,a=e.notQualifyThisMonth,s=a===void 0?!1:a,l=e.amountShow,c=e.translationConfig,u=e.giftConfig,d=e.currentCadenceIndex,f=d===void 0?0:d,p=e.issuedCadenceCount,h=p===void 0?0:p,m=e.showRoadmap,v=m===void 0?!0:m,g=e.handleOpenLearnMore,y=g===void 0?function(){}:g,x=e.showLogo,b=x===void 0?!0:x,w=e.showTotalSection,C=w===void 0?!0:w,k=o>0&&r===o&&!s,M=o>0?Math.floor(((n=u===null||u===void 0?void 0:u.maxCSM)!==null&&n!==void 0?n:0)/o):0,j=tm(c.monthsComplete,{completed_months:r,total_months:o});k?j=c.giftEarned:s&&(j=c.notQualify);var S=tm(c.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""});var O,P,_,T,E;return(0,tB.jsxs)(n5,{children:[(0,tB.jsx)("div",{className:"reward-progress",children:(0,tB.jsxs)(tF.CircularProgressbarWithChildren,{value:o>0?r/o*100:0,strokeWidth:12,background:!0,styles:(0,tF.buildStyles)({rotation:.5,strokeLinecap:"butt",backgroundColor:"#fff",pathColor:"#ED7219",trailColor:"#E0E0E0"}),children:[o>0&&(0,tB.jsx)(to,{count:o}),(0,tB.jsx)(tH,{isComplete:k,notQualifyThisMonth:s,value:r,cadenceMonths:o,monthsLabel:(O=c===null||c===void 0?void 0:c.monthsLabel)!==null&&O!==void 0?O:"Months",giftIssuedLabel:(P=c===null||c===void 0?void 0:c.giftIssuedLabel)!==null&&P!==void 0?P:"Gift issued"})]})}),v&&M>1&&(0,tB.jsx)(tP,{giftCycle:o,maxCSM:(_=u===null||u===void 0?void 0:u.maxCSM)!==null&&_!==void 0?_:0,currentCadenceIndex:f,issuedCadenceCount:h,translationConfig:{monthLabel:(T=c===null||c===void 0?void 0:c.roadmapMonthLabel)!==null&&T!==void 0?T:"Month %cadence_month%",giftLabel:(E=c===null||c===void 0?void 0:c.roadmapGiftLabel)!==null&&E!==void 0?E:"Gift %gift_index%"}}),(0,tB.jsxs)(n6,{children:[b&&(0,tB.jsx)("img",{className:"reward-logo",src:c.loyaltyLogoBlack,alt:"Rewards Logo"}),(0,tB.jsx)("div",{className:"info-item",children:j})]}),(0,tB.jsx)(n9,{children:C&&!k&&(0,tB.jsxs)(tG.NsTypography,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[S," ",(0,tB.jsx)(tG.NsTypography,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:l!==null&&l!==void 0?l:0})]})}),(0,tB.jsx)(n6,{children:(0,tB.jsx)(n7,{id:"learnMoreGiftMobile",onClick:y,children:(0,tB.jsx)("u",{children:c.learnMore})})})]})},tW=tZ;var tU=(typeof window==="undefined"?"undefined":p(window))=="object",tQ=/*#__PURE__*/function(){function e(){t(this,e);this.width=tU?window.innerWidth:0;this.scroll={vertical:tU?window.scrollY:0,horizontal:tU?window.scrollX:0,direction:"none"}}i(e,[{key:"isMobile",get:function e(){return this.isPhone}},{key:"isPhone",get:function e(){return tU?window.innerWidth<768:this.width<768}}]);return e}(),tX=new tQ;var tY={completedMonthsInCadence:0,totalCSMCount:0,totalCadences:0,currentCadenceIndex:0,issuedCadenceCount:0,isGiftIssued:!1,isProgramComplete:!1},tJ=function(e){return f(e).sort(function(e,n){return e.year===n.year?n.month-e.month:n.year-e.year})},tK=function(e,n){return new Date(e,n-2,1)},t0=function(e,n,t){var r=0;for(var i=0;i<e.length;i++){var o=e[i],a=new Date(o.year,o.month-1,1);if(i===0){if(a>t)break}else{var s=e[i-1];if(a.getTime()!==tK(s.year,s.month).getTime())break}if(o.totalAmount<n)break;r++}return r},t1=function(e,n,t,r,i){var o=Math.min(Math.max(e,0),r);if(o===0)return u(l({},tY),{totalCadences:i});var a=o%t,s=a===0&&n,c=Math.min(Math.floor(o/t),i),d=s?c-1:Math.floor(o/t);return{completedMonthsInCadence:s?t:a,totalCSMCount:o,totalCadences:i,currentCadenceIndex:Math.min(Math.max(d,0),i-1),issuedCadenceCount:c,isGiftIssued:s,isProgramComplete:o>=r}},t5=function(e){var n=e.data,t=e.giftCycle,r=e.maxCSM,i=e.minSpend,o=e.giftProperties,a=e.today;var s=t>0?Math.floor(r/t):0;if(s<=0)return u(l({},tY),{totalCadences:Math.max(s,0)});if(o){var c=o.continuousSubscriptionMonths,d=o.qualifiedThisMonth,f=c+(d?1:0);return t1(f,d,t,r,s)}var p;var h=(p=n===null||n===void 0?void 0:n.csmMonthlySubsOrderTotal)!==null&&p!==void 0?p:[];if(!h.length)return u(l({},tY),{totalCadences:s});var m=tJ(h),v=new Date(a.getFullYear(),a.getMonth(),1),g=t0(m,i,v),y=m[0],x=y.year===a.getFullYear()&&y.month-1===a.getMonth()&&y.totalAmount>=i;return t1(g,x,t,r,s)};var t6="giftContinuousSubscriptionMonth",t7="giftQualifiedThisMonth",t4=function(e,n){var t,r;return e===null||e===void 0?void 0:(r=e.properties)===null||r===void 0?void 0:(t=r.find(function(e){return(e===null||e===void 0?void 0:e.name)===n}))===null||t===void 0?void 0:t.value},t2=function(e){var n;if(!(e===null||e===void 0?void 0:(n=e.properties)===null||n===void 0?void 0:n.length))return null;var t=t4(e,t6),r=t4(e,t7);if(t===void 0&&r===void 0)return null;var i=Number.parseInt(t!==null&&t!==void 0?t:"",10);return{continuousSubscriptionMonths:Number.isNaN(i)?0:Math.max(i,0),qualifiedThisMonth:Number.parseInt(r!==null&&r!==void 0?r:"",10)===1}};var t9=require("react/jsx-runtime"),t3=function(e){var n;var t,r,i,o;var a=e.subscriptionData,s=e.loyaltyResponse,c=e.translationConfig,u=e.giftConfig,d=e.showRoadmap,f=d===void 0?!0:d,p=e.showLogo,h=p===void 0?!0:p,m=e.showTotalSection,v=m===void 0?!0:m,g=(t=u===null||u===void 0?void 0:u.giftCycle)!==null&&t!==void 0?t:0,y=(r=u===null||u===void 0?void 0:u.thresholdValue)!==null&&r!==void 0?r:0,x=parseFloat(String((i=a===null||a===void 0?void 0:(n=a.approximateMonthlyTotalResponse)===null||n===void 0?void 0:n.currentMonthTotal)!==null&&i!==void 0?i:"0")),b=t2(s),w=b?!b.qualifiedThisMonth:x<y,C=t5({data:a,giftCycle:g,maxCSM:(o=u===null||u===void 0?void 0:u.maxCSM)!==null&&o!==void 0?o:0,minSpend:y,giftProperties:b,today:new Date}),k=C.completedMonthsInCadence,M=C.currentCadenceIndex,j=C.issuedCadenceCount,S={value:k,cadenceMonths:g,notQualifyThisMonth:w,amountShow:x,translationConfig:c,giftConfig:u,currentCadenceIndex:M,issuedCadenceCount:j,showRoadmap:f,showLogo:h,showTotalSection:v};return(0,t9.jsx)(tV,{className:"loyalty-reward-card",children:tX.isMobile?(0,t9.jsx)(tW,l({},S)):(0,t9.jsx)(tD,l({},S))})},t8=t3;/*! Bundled license information:
1
+ "use strict";function e(e,n){if(!(e instanceof n)){throw new TypeError("Cannot call a class as a function")}}function n(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function t(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}function r(e,n,t){if(n in e){Object.defineProperty(e,n,{value:t,enumerable:true,configurable:true,writable:true})}else{e[n]=t}return e}function i(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};var i=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){i=i.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}i.forEach(function(n){r(e,n,t[n])})}return e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(n){r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})}t.push.apply(t,r)}return t}function o(e,n){n=n!=null?n:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(n))}else{a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,n){if(!n){n=e.slice(0)}return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function l(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function c(){var e=s(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n row-gap: 12px;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n }\n"]);c=function n(){return e};return e}function u(){var e=s(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n /* Grows to take whatever the sibling total/voucher block (fixed width, flex-shrink: 0) doesn't\n need; min-width: 0 lets it shrink below its text's natural width so .info-item can wrap. */\n flex: 1 1 0;\n min-width: 0;\n justify-content: left;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 12px;\n }\n\n .reward-progress {\n height: 150px;\n width: 150px;\n flex-shrink: 0;\n\n /* The library stylesheet is not bundled, so the SVG stays inline and its baseline gap\n makes the wrapper taller than the ring, pushing the radial separators off centre. */\n > div {\n height: 100%;\n }\n\n .CircularProgressbar {\n display: block;\n width: 100%;\n height: 100%;\n }\n }\n .progress-bar {\n background-color: #e0e0e0;\n height: 100%;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n width: 100%;\n\n .info-container {\n margin-left: 0px;\n align-items: center;\n }\n .reward-progress-total-div {\n margin-top: 10px;\n }\n }\n"]);u=function n(){return e};return e}function d(){var e=s(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-left: 16px;\n .info-item {\n margin: 5px 0;\n font-weight: 600;\n }\n\n .reward-subtitle {\n margin-top: 4px;\n }\n\n @media (max-width: 950px) {\n align-items: center;\n margin-left: 0;\n }\n"]);d=function n(){return e};return e}function f(){var e=s(["\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n"]);f=function n(){return e};return e}function p(){var e=s(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n width: 100%;\n\n .reward-logo {\n width: 200px;\n margin-bottom: 0;\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n align-items: center;\n\n .reward-header-total {\n width: 100%;\n justify-content: center;\n }\n }\n"]);p=function n(){return e};return e}function h(){var e=s(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n color: black;\n\n .center-value-progress-bar-price {\n margin: 0;\n }\n .center-value-progress-bar-voucher {\n margin: 0;\n letter-spacing: 0.01em;\n }\n"]);h=function n(){return e};return e}function m(){var e=s(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n /* Stays at its natural width so RewardProgressBar's column can grow to fill what's left. */\n flex-shrink: 0;\n min-width: 160px;\n\n .total-button {\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n }\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n }\n\n @media (max-width: 950px) {\n .reward-subtitle {\n letter-spacing: 0;\n display: flex;\n text-align: center;\n }\n margin-top: 10px;\n }\n"]);m=function n(){return e};return e}function v(){var e=s(["\n display: flex;\n align-items: center;\n background-color: #e5edf6;\n border-radius: 20px;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n padding: 1rem;\n margin-bottom: 14px;\n\n @media (max-width: 950px) {\n margin-top: 14px;\n }\n"]);v=function n(){return e};return e}function g(){var e=s(["\n .info-icon {\n margin-left: 6px !important;\n }\n .loyalty-icon {\n height: 19px !important;\n width: 19px !important;\n margin-left: 6px !important;\n }\n .loyalty-warning-icon {\n height: 19px !important;\n width: 19px !important;\n margin-right: 6px !important;\n }\n .outline-exclamation-icon {\n height: 48px !important;\n width: 48px !important;\n }\n"]);g=function n(){return e};return e}function y(){var e=s(["\n position: absolute;\n height: 100%;\n"]);y=function n(){return e};return e}function x(){var e=s(["\n background: #fff;\n width: 6px;\n height: 12%;\n"]);x=function n(){return e};return e}function b(){var e=s(["\n display: flex;\n align-items: flex-start;\n width: 100%;\n\n @media (max-width: 950px) {\n margin-top: 24px;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n }\n"]);b=function n(){return e};return e}function w(){var e=s(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n padding-left: ",";\n padding-right: ",";\n flex: ",";\n min-width: ",";\n"]);w=function n(){return e};return e}function C(){var e=s(["\n display: flex;\n align-items: center;\n gap: 16px;\n width: 100%;\n\n svg {\n flex-shrink: 0;\n }\n"]);C=function n(){return e};return e}function k(){var e=s(["\n flex: 1 0 0;\n min-width: 0;\n height: 3px;\n border-radius: 2px;\n background-color: ",";\n"]);k=function n(){return e};return e}function M(){var e=s(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n white-space: nowrap;\n word-break: break-word;\n\n .gift-roadmap-month {\n font-size: 10px;\n font-weight: 600;\n line-height: 12px;\n letter-spacing: 0.2px;\n color: #8c8c8c;\n }\n\n .gift-roadmap-gift {\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n letter-spacing: 0.12px;\n color: ",";\n }\n"]);M=function n(){return e};return e}function j(){var e=s(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n align-content: center;\n background-color: #f5f5f5;\n border: 1px solid #e0e0e0;\n border-radius: 10px;\n padding: 1.5rem;\n margin-bottom: 20px;\n height: 50%;\n margin: auto;\n\n @media (max-width: 950px) {\n flex-direction: column;\n align-items: stretch;\n width: 100%;\n }\n"]);j=function n(){return e};return e}function S(){var e=s(["\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n gap: 24px;\n width: 100%;\n\n .reward-progress {\n height: 150px;\n width: 150px;\n flex-shrink: 0;\n\n /* The library stylesheet is not bundled, so the SVG stays inline and its baseline gap\n makes the wrapper taller than the ring, pushing the radial separators off centre. */\n > div {\n height: 100%;\n }\n\n .CircularProgressbar {\n display: block;\n width: 100%;\n height: 100%;\n }\n }\n\n @media (max-width: 950px) {\n flex-direction: column;\n align-items: center;\n }\n"]);S=function n(){return e};return e}function P(){var e=s(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 16px;\n flex: 1 0 0;\n min-width: 0;\n\n /* The wrapper turns into a column here, so flex-basis governs height and the width would\n otherwise collapse to shrink-to-fit under the wrapper's align-items: center. */\n @media (max-width: 950px) {\n width: 100%;\n align-self: stretch;\n text-align: center;\n }\n"]);P=function n(){return e};return e}function O(){var e=s(["\n font-size: 12px;\n font-weight: 600;\n cursor: pointer;\n color: #252525;\n"]);O=function n(){return e};return e}var _=Object.create;var T=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var $=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var A=function(e,n){return function(){return n||e((n={exports:{}}).exports,n),n.exports}},H=function(e,n){for(var t in n)T(e,t,{get:n[t],enumerable:!0})},R=function(e,n,t,r){var i=true,a=false,o=undefined;if(n&&(typeof n==="undefined"?"undefined":l(n))=="object"||typeof n=="function")try{var s=function(){var i=u.value;!N.call(e,i)&&i!==t&&T(e,i,{get:function(){return n[i]},enumerable:!(r=E(n,i))||r.enumerable})};for(var c=L(n)[Symbol.iterator](),u;!(i=(u=c.next()).done);i=true)s()}catch(e){a=true;o=e}finally{try{if(!i&&c.return!=null){c.return()}}finally{if(a){throw o}}}return e};var V=function(e,n,t){return t=e!=null?_($(e)):{},R(n||!e||!e.__esModule?T(t,"default",{value:e,enumerable:!0}):t,e)},I=function(e){return R(T({},"__esModule",{value:!0}),e)};var q=A(function(e){"use strict";var n=function e(e){if((typeof e==="undefined"?"undefined":l(e))=="object"&&e!==null){var n=e.$$typeof;switch(n){case i:switch(e=e.type,e){case f:case p:case o:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof,e){case d:case h:case y:case g:case u:return e;default:return n}}case a:return n}}};var t=function e(e){return n(e)===p};var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,x=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,C=r?Symbol.for("react.scope"):60119;e.AsyncMode=f;e.ConcurrentMode=p;e.ContextConsumer=d;e.ContextProvider=u;e.Element=i;e.ForwardRef=h;e.Fragment=o;e.Lazy=y;e.Memo=g;e.Portal=a;e.Profiler=c;e.StrictMode=s;e.Suspense=m;e.isAsyncMode=function(e){return t(e)||n(e)===f};e.isConcurrentMode=t;e.isContextConsumer=function(e){return n(e)===d};e.isContextProvider=function(e){return n(e)===u};e.isElement=function(e){return(typeof e==="undefined"?"undefined":l(e))=="object"&&e!==null&&e.$$typeof===i};e.isForwardRef=function(e){return n(e)===h};e.isFragment=function(e){return n(e)===o};e.isLazy=function(e){return n(e)===y};e.isMemo=function(e){return n(e)===g};e.isPortal=function(e){return n(e)===a};e.isProfiler=function(e){return n(e)===c};e.isStrictMode=function(e){return n(e)===s};e.isSuspense=function(e){return n(e)===m};e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===p||e===c||e===s||e===m||e===v||(typeof e==="undefined"?"undefined":l(e))=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===u||e.$$typeof===d||e.$$typeof===h||e.$$typeof===b||e.$$typeof===w||e.$$typeof===C||e.$$typeof===x)};e.typeOf=n});var z=A(function(e,n){"use strict";n.exports=q()});var G=A(function(e,n){"use strict";var t=function e(e){return r.isMemo(e)?s:l[e.$$typeof]||i};var r=z(),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=o;l[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;function m(e,n,r){if(typeof n!="string"){if(h){var i=p(n);i&&i!==h&&m(e,i,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=t(e),l=t(n),v=0;v<o.length;++v){var g=o[v];if(!a[g]&&!(r&&r[g])&&!(l&&l[g])&&!(s&&s[g])){var y=f(n,g);try{c(e,g,y)}catch(e){}}}}return e}n.exports=m});var B={};H(B,{GiftProgressBar:function(){return tI},GiftProgressBarMobile:function(){return tD},GiftReward:function(){return t6}});module.exports=I(B);var D=require("react-circular-progressbar");function F(){return F=Object.assign?Object.assign.bind():function e(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},F.apply(null,arguments)}var Z=V(require("react")),W=require("react");var U=!1;function Q(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function X(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var Y=function(){function e(e){var n=this;this._insertTag=function(e){var t;n.tags.length===0?n.insertionPoint?t=n.insertionPoint.nextSibling:n.prepend?t=n.container.firstChild:t=n.before:t=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(e,t),n.tags.push(e)},this.isSpeedy=e.speedy===void 0?!U:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(e){e.forEach(this._insertTag)},n.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(X(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var t=Q(n);try{t.insertRule(e,t.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},n.flush=function(){this.tags.forEach(function(e){var n;return(n=e.parentNode)==null?void 0:n.removeChild(e)}),this.tags=[],this.ctr=0},e}();var K="-ms-",J="-moz-",ee="-webkit-",en="comm",et="rule",er="decl";var ei="@import";var ea="@keyframes";var eo="@layer";var es=Math.abs,el=String.fromCharCode,ec=Object.assign;function eu(e,n){return em(e,0)^45?(((n<<2^em(e,0))<<2^em(e,1))<<2^em(e,2))<<2^em(e,3):0}function ed(e){return e.trim()}function ef(e,n){return(e=n.exec(e))?e[0]:e}function ep(e,n,t){return e.replace(n,t)}function eh(e,n){return e.indexOf(n)}function em(e,n){return e.charCodeAt(n)|0}function ev(e,n,t){return e.slice(n,t)}function eg(e){return e.length}function ey(e){return e.length}function ex(e,n){return n.push(e),e}function eb(e,n){return e.map(n).join("")}var ew=1,eC=1,ek=0,eM=0,ej=0,eS="";function eP(e,n,t,r,i,a,o){return{value:e,root:n,parent:t,type:r,props:i,children:a,line:ew,column:eC,length:o,return:""}}function eO(e,n){return ec(eP("",null,null,"",null,null,0),e,{length:-e.length},n)}function e_(){return ej}function eT(){return ej=eM>0?em(eS,--eM):0,eC--,ej===10&&(eC=1,ew--),ej}function eE(){return ej=eM<ek?em(eS,eM++):0,eC++,ej===10&&(eC=1,ew++),ej}function eL(){return em(eS,eM)}function e$(){return eM}function eN(e,n){return ev(eS,e,n)}function eA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eH(e){return ew=eC=1,ek=eg(eS=e),eM=0,[]}function eR(e){return eS="",e}function eV(e){return ed(eN(eM-1,ez(e===91?e+2:e===40?e+1:e)))}function eI(e){for(;(ej=eL())&&ej<33;)eE();return eA(e)>2||eA(ej)>3?"":" "}function eq(e,n){for(;--n&&eE()&&!(ej<48||ej>102||ej>57&&ej<65||ej>70&&ej<97););return eN(e,e$()+(n<6&&eL()==32&&eE()==32))}function ez(e){for(;eE();)switch(ej){case e:return eM;case 34:case 39:e!==34&&e!==39&&ez(ej);break;case 40:e===41&&ez(e);break;case 92:eE();break}return eM}function eG(e,n){for(;eE()&&e+ej!==57;)if(e+ej===84&&eL()===47)break;return"/*"+eN(n,eM-1)+"*"+el(e===47?e:eE())}function eB(e){for(;!eA(eL());)eE();return eN(e,eM)}function eD(e){return eR(eF("",null,null,null,[""],e=eH(e),0,[0],e))}function eF(e,n,t,r,i,a,o,s,l){for(var c=0,u=0,d=o,f=0,p=0,h=0,m=1,v=1,g=1,y=0,x="",b=i,w=a,C=r,k=x;v;)switch(h=y,y=eE()){case 40:if(h!=108&&em(k,d-1)==58){eh(k+=ep(eV(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=eV(y);break;case 9:case 10:case 13:case 32:k+=eI(h);break;case 92:k+=eq(e$()-1,7);continue;case 47:switch(eL()){case 42:case 47:ex(eW(eG(eE(),e$()),n,t),l);break;default:k+="/"}break;case 123*m:s[c++]=eg(k)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:g==-1&&(k=ep(k,/\f/g,"")),p>0&&eg(k)-d&&ex(p>32?eU(k+";",r,t,d-1):eU(ep(k," ","")+";",r,t,d-2),l);break;case 59:k+=";";default:if(ex(C=eZ(k,n,t,c,u,i,s,x,b=[],w=[],d),a),y===123)if(u===0)eF(k,n,C,C,b,a,d,s,w);else switch(f===99&&em(k,3)===110?100:f){case 100:case 108:case 109:case 115:eF(e,C,C,r&&ex(eZ(e,C,C,0,0,i,s,x,i,b=[],d),w),i,w,d,s,r?b:w);break;default:eF(k,C,C,C,[""],w,0,s,w)}}c=u=p=0,m=g=1,x=k="",d=o;break;case 58:d=1+eg(k),p=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&eT()==125)continue}switch(k+=el(y),y*m){case 38:g=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(eg(k)-1)*g,g=1;break;case 64:eL()===45&&(k+=eV(eE())),f=eL(),u=d=eg(x=k+=eB(e$())),y++;break;case 45:h===45&&eg(k)==2&&(m=0)}}return a}function eZ(e,n,t,r,i,a,o,s,l,c,u){for(var d=i-1,f=i===0?a:[""],p=ey(f),h=0,m=0,v=0;h<r;++h)for(var g=0,y=ev(e,d+1,d=es(m=o[h])),x=e;g<p;++g)(x=ed(m>0?f[g]+" "+y:ep(y,/&\f/g,f[g])))&&(l[v++]=x);return eP(e,n,t,i===0?et:s,l,c,u)}function eW(e,n,t){return eP(e,n,t,en,el(e_()),ev(e,2,-2),0)}function eU(e,n,t,r){return eP(e,n,t,er,ev(e,0,r),ev(e,r+1,-1),r)}function eQ(e,n){for(var t="",r=ey(e),i=0;i<r;i++)t+=n(e[i],i,e,n)||"";return t}function eX(e,n,t,r){switch(e.type){case eo:if(e.children.length)break;case ei:case er:return e.return=e.return||e.value;case en:return"";case ea:return e.return=e.value+"{"+eQ(e.children,r)+"}";case et:e.value=e.props.join(",")}return eg(t=eQ(e.children,r))?e.return=e.value+"{"+t+"}":""}function eY(e){var n=ey(e);return function(t,r,i,a){for(var o="",s=0;s<n;s++)o+=e[s](t,r,i,a)||"";return o}}function eK(e){return function(n){n.root||(n=n.return)&&e(n)}}function eJ(e){var n=Object.create(null);return function(t){return n[t]===void 0&&(n[t]=e(t)),n[t]}}var e0=function e(e,n,t){for(var r=0,i=0;r=i,i=eL(),r===38&&i===12&&(n[t]=1),!eA(i);)eE();return eN(e,eM)},e1=function e(e,n){var t=-1,r=44;do switch(eA(r)){case 0:r===38&&eL()===12&&(n[t]=1),e[t]+=e0(eM-1,n,t);break;case 2:e[t]+=eV(r);break;case 4:if(r===44){e[++t]=eL()===58?"&\f":"",n[t]=e[t].length;break}default:e[t]+=el(r)}while(r=eE());return e},e5=function e(e,n){return eR(e1(eH(e),n))},e6=new WeakMap,e7=function e(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,t=e.parent,r=e.column===t.column&&e.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!e6.get(t))&&!r){e6.set(e,!0);for(var i=[],a=e5(n,i),o=t.props,s=0,l=0;s<a.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[c]):o[c]+" "+a[s]}}},e4=function e(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function e2(e,n){switch(eu(e,n)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+J+e+K+e+e;case 6828:case 4268:return ee+e+K+e+e;case 6165:return ee+e+K+"flex-"+e+e;case 5187:return ee+e+ep(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+K+"flex-$1$2")+e;case 5443:return ee+e+K+"flex-item-"+ep(e,/flex-|-self/,"")+e;case 4675:return ee+e+K+"flex-line-pack"+ep(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+K+ep(e,"shrink","negative")+e;case 5292:return ee+e+K+ep(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+ep(e,"-grow","")+ee+e+K+ep(e,"grow","positive")+e;case 4554:return ee+ep(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return ep(ep(ep(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return ep(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return ep(ep(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+K+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return ep(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(eg(e)-1-n>6)switch(em(e,n+1)){case 109:if(em(e,n+4)!==45)break;case 102:return ep(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+J+(em(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~eh(e,"stretch")?e2(ep(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(em(e,n+1)!==115)break;case 6444:switch(em(e,eg(e)-3-(~eh(e,"!important")&&10))){case 107:return ep(e,":",":"+ee)+e;case 101:return ep(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(em(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+K+"$2box$3")+e}break;case 5936:switch(em(e,n+11)){case 114:return ee+e+K+ep(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+K+ep(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+K+ep(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+K+e+e}return e}var e9=function e(e,n,t,r){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=e2(e.value,e.length);break;case ea:return eQ([eO(e,{value:ep(e.value,"@","@"+ee)})],r);case et:if(e.length)return eb(e.props,function(n){switch(ef(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return eQ([eO(e,{props:[ep(n,/:(read-\w+)/,":"+J+"$1")]})],r);case"::placeholder":return eQ([eO(e,{props:[ep(n,/:(plac\w+)/,":"+ee+"input-$1")]}),eO(e,{props:[ep(n,/:(plac\w+)/,":"+J+"$1")]}),eO(e,{props:[ep(n,/:(plac\w+)/,K+"input-$1")]})],r)}return""})}},e3=[e9],e8=function e(e){var n=e.key;if(n==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(e){var n=e.getAttribute("data-emotion");n.indexOf(" ")!==-1&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=e.stylisPlugins||e3,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(e){for(var n=e.getAttribute("data-emotion").split(" "),t=1;t<n.length;t++)i[n[t]]=!0;o.push(e)});var s,l=[e7,e4];{var c,u=[eX,eK(function(e){c.insert(e)})],d=eY(l.concat(r,u)),f=function e(e){return eQ(eD(e),d)};s=function e(e,n,t,r){c=t,f(e?e+"{"+n.styles+"}":n.styles),r&&(p.inserted[n.name]=!0)}}var p={key:n,sheet:new Y({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p};var ne=!0;function nn(e,n,t){var r="";return t.split(" ").forEach(function(t){e[t]!==void 0?n.push(e[t]+";"):t&&(r+=t+" ")}),r}var nt=function e(e,n,t){var r=e.key+"-"+n.name;(t===!1||ne===!1)&&e.registered[r]===void 0&&(e.registered[r]=n.styles)},nr=function e(e,n,t){nt(e,n,t);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+r:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function ni(e){for(var n=0,t,r=0,i=e.length;i>=4;++r,i-=4)t=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,t=(t&65535)*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(t&65535)*0x5bd1e995+((t>>>16)*59797<<16)^(n&65535)*0x5bd1e995+((n>>>16)*59797<<16);switch(i){case 3:n^=(e.charCodeAt(r+2)&255)<<16;case 2:n^=(e.charCodeAt(r+1)&255)<<8;case 1:n^=e.charCodeAt(r)&255,n=(n&65535)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*0x5bd1e995+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var na={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var no=!1,ns=/[A-Z]|^ms/g,nl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nc=function e(e){return e.charCodeAt(1)===45},nu=function e(e){return e!=null&&typeof e!="boolean"},nd=eJ(function(e){return nc(e)?e:e.replace(ns,"-$&").toLowerCase()}),nf=function e(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(nl,function(e,n,t){return ng={name:n,styles:t,next:ng},n})}return na[e]!==1&&!nc(e)&&typeof n=="number"&&n!==0?n+"px":n},np="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nh(e,n,t){if(t==null)return"";var r=t;if(r.__emotion_styles!==void 0)return r;switch(typeof t==="undefined"?"undefined":l(t)){case"boolean":return"";case"object":{var i=t;if(i.anim===1)return ng={name:i.name,styles:i.styles,next:ng},i.name;var a=t;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)ng={name:o.name,styles:o.styles,next:ng},o=o.next;var s=a.styles+";";return s}return nm(e,n,t)}case"function":{if(e!==void 0){var c=ng,u=t(e);return ng=c,nh(e,n,u)}break}}var d=t;if(n==null)return d;var f=n[d];return f!==void 0?f:d}function nm(e,n,t){var r="";if(Array.isArray(t))for(var i=0;i<t.length;i++)r+=nh(e,n,t[i])+";";else for(var a in t){var o=t[a];if((typeof o==="undefined"?"undefined":l(o))!="object"){var s=o;n!=null&&n[s]!==void 0?r+=a+"{"+n[s]+"}":nu(s)&&(r+=nd(a)+":"+nf(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&no)throw new Error(np);if(Array.isArray(o)&&typeof o[0]=="string"&&(n==null||n[o[0]]===void 0))for(var c=0;c<o.length;c++)nu(o[c])&&(r+=nd(a)+":"+nf(a,o[c])+";");else{var u=nh(e,n,o);switch(a){case"animation":case"animationName":{r+=nd(a)+":"+u+";";break}default:r+=a+"{"+u+"}"}}}}return r}var nv=/label:\s*([^\s;{]+)\s*(;|$)/g,ng;function ny(e,n,t){if(e.length===1&&l(e[0])=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";ng=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=nh(t,n,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=nh(t,n,e[s]),r){var c=a;i+=c[s]}nv.lastIndex=0;for(var u="",d;(d=nv.exec(i))!==null;)u+="-"+d[1];var f=ni(i)+u;return{name:f,styles:i,next:ng}}var nx=V(require("react")),nb=function e(e){return e()},nw=nx.useInsertionEffect?nx.useInsertionEffect:!1,nC=nw||nb;var nk=!1,nM=Z.createContext((typeof HTMLElement==="undefined"?"undefined":l(HTMLElement))<"u"?e8({key:"css"}):null),nj=nM.Provider;var nS=function e(e){return(0,W.forwardRef)(function(n,t){var r=(0,W.useContext)(nM);return e(n,r,t)})},nP=Z.createContext({});var nO={}.hasOwnProperty,n_="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nT=function e(e,n){var t={};for(var r in n)nO.call(n,r)&&(t[r]=n[r]);return t[n_]=e,t},nE=function e(e){var n=e.cache,t=e.serialized,r=e.isStringTag;return nt(n,t,r),nC(function(){return nr(n,t,r)}),null},nL=nS(function(e,n,t){var r=e.css;typeof r=="string"&&n.registered[r]!==void 0&&(r=n.registered[r]);var i=e[n_],a=[r],o="";typeof e.className=="string"?o=nn(n.registered,a,e.className):e.className!=null&&(o=e.className+" ");var s=ny(a,void 0,Z.useContext(nP));o+=n.key+"-"+s.name;var l={};for(var c in e)nO.call(e,c)&&c!=="css"&&c!==n_&&!nk&&(l[c]=e[c]);return l.className=o,t&&(l.ref=t),Z.createElement(Z.Fragment,null,Z.createElement(nE,{cache:n,serialized:s,isStringTag:typeof i=="string"}),Z.createElement(i,l))}),n$=nL;var nN=V(require("react"));var nA=V(G()),nH=function e(e,n){var t=arguments;if(n==null||!nO.call(n,"css"))return nN.createElement.apply(void 0,t);var r=t.length,i=new Array(r);i[0]=n$,i[1]=nT(e,n);for(var a=2;a<r;a++)i[a]=t[a];return nN.createElement.apply(null,i)};(function(e){var n;n||(n=e.JSX||(e.JSX={}))})(nH||(nH={}));var nR=V(require("react"));var nV=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nI=eJ(function(e){return nV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var nq=!1,nz=nI,nG=function e(e){return e!=="theme"},nB=function e(e){return typeof e=="string"&&e.charCodeAt(0)>96?nz:nG},nD=function e(e,n,t){var r;if(n){var i=n.shouldForwardProp;r=e.__emotion_forwardProp&&i?function n(n){return e.__emotion_forwardProp(n)&&i(n)}:i}return typeof r!="function"&&t&&(r=e.__emotion_forwardProp),r},nF=function e(e){var n=e.cache,t=e.serialized,r=e.isStringTag;return nt(n,t,r),nC(function(){return nr(n,t,r)}),null},nZ=function e(n,t){var r=n.__emotion_real===n,i=r&&n.__emotion_base||n,a,o;t!==void 0&&(a=t.label,o=t.target);var s=nD(n,t,r),l=s||nB(i),c=!l("as");return function(){var u=arguments,d=r&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=nS(function(e,n,t){var r=c&&e.as||i,a="",u=[],f=e;if(e.theme==null){f={};for(var p in e)f[p]=e[p];f.theme=nR.useContext(nP)}typeof e.className=="string"?a=nn(n.registered,u,e.className):e.className!=null&&(a=e.className+" ");var h=ny(d.concat(u),n.registered,f);a+=n.key+"-"+h.name,o!==void 0&&(a+=" "+o);var m=c&&s===void 0?nB(r):l,v={};for(var g in e)c&&g==="as"||m(g)&&(v[g]=e[g]);return v.className=a,t&&(v.ref=t),nR.createElement(nR.Fragment,null,nR.createElement(nF,{cache:n,serialized:h,isStringTag:typeof r=="string"}),nR.createElement(r,v))});return m.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function e(){return o===void 0&&nq?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(n,r){var i=e(n,F({},t,r,{shouldForwardProp:nD(m,r,!0)}));return i.apply(void 0,d)},m}};var nW=require("react");var nU=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],nQ=nZ.bind(null);nU.forEach(function(e){nQ[e]=nQ(e)});var nX=nQ.div(c()),nY=nQ.div(u()),nK=nQ.div(d()),nJ=nQ.div(f()),n0=nQ.div(p()),n1=nQ.div(h()),n5=nQ.div(m()),n6=nQ.div(v()),n7=nQ.span(g()),n4=nQ.div(y()),n2=nQ.div(x());var n9=require("react/jsx-runtime");function n3(e){return(0,n9.jsx)(n4,{style:{transform:"rotate(".concat(e.turns,"turn)")},children:(0,n9.jsx)(n2,{})})}function n8(e){var n=1/e.count,t=.5;return Array.from({length:e.count},function(e,r){return r*n+t}).map(function(e){return(0,n9.jsx)(n3,{turns:e},e)})}n8.displayName="RadialSeparators";var te=n8;var tn=require("react/jsx-runtime");function tt(){return(0,tn.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,tn.jsx)("rect",{width:"20",height:"20",rx:"10",fill:"#0B0A09"}),(0,tn.jsx)("path",{d:"M10.375 14.5H13.5251V10.375H10.375V14.5ZM6.47485 14.5H9.625V10.375H6.47485V14.5ZM10.375 9.625H14.5V7.9375H10.375V9.625ZM5.5 9.625H9.625V7.9375H5.5V9.625ZM13.0374 6.34375C13.0374 6.11997 12.9488 5.90506 12.7905 5.74683C12.6323 5.58864 12.4173 5.5 12.1936 5.5C11.5491 5.50007 11.0991 5.95524 10.7859 6.52466C10.6581 6.75695 10.5644 6.99201 10.4973 7.1875H12.1936C12.4173 7.1875 12.6323 7.09886 12.7905 6.94067C12.9488 6.78244 13.0374 6.56753 13.0374 6.34375ZM6.96631 6.42725C6.9855 6.62037 7.07104 6.80224 7.20947 6.94067C7.3677 7.09885 7.58266 7.1875 7.8064 7.1875H9.50269C9.43558 6.99201 9.34187 6.75695 9.21411 6.52466C8.90093 5.95525 8.45089 5.50009 7.8064 5.5C7.58266 5.5 7.3677 5.58865 7.20947 5.74683C7.05124 5.90506 6.96265 6.11997 6.96265 6.34375L6.96631 6.42725ZM13.7874 6.34375C13.7874 6.64476 13.7012 6.93625 13.5442 7.1875H14.5828C14.9512 7.18764 15.2499 7.48629 15.25 7.85474V9.70776C15.2499 10.0762 14.9512 10.3749 14.5828 10.375H14.2751V14.5828C14.275 14.9513 13.9757 15.25 13.6072 15.25H6.39282C6.02426 15.25 5.725 14.9513 5.72485 14.5828V10.375H5.41724C5.0488 10.3749 4.75014 10.0762 4.75 9.70776V7.85474C4.75014 7.4863 5.0488 7.18764 5.41724 7.1875H6.45581C6.32637 6.98033 6.24427 6.74607 6.21997 6.50122L6.21265 6.34375C6.21265 5.92106 6.38031 5.51544 6.6792 5.21655C6.97808 4.91772 7.38375 4.75 7.8064 4.75C8.86794 4.75009 9.51473 5.5136 9.87183 6.16284C9.91838 6.24747 9.96098 6.33196 10 6.41479C10.039 6.33196 10.0816 6.24747 10.1282 6.16284C10.4853 5.51359 11.132 4.75007 12.1936 4.75C12.6163 4.75 13.0219 4.91771 13.3208 5.21655C13.6197 5.51544 13.7874 5.92106 13.7874 6.34375Z",fill:"white"})]})}var tr=tt;var ti=require("react/jsx-runtime");function ta(){return(0,ti.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ti.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",stroke:"#0B0A09"}),(0,ti.jsx)("path",{d:"M10.375 14.5H13.5251V10.375H10.375V14.5ZM6.47485 14.5H9.625V10.375H6.47485V14.5ZM10.375 9.625H14.5V7.9375H10.375V9.625ZM5.5 9.625H9.625V7.9375H5.5V9.625ZM13.0374 6.34375C13.0374 6.11997 12.9488 5.90506 12.7905 5.74683C12.6323 5.58864 12.4173 5.5 12.1936 5.5C11.5491 5.50007 11.0991 5.95524 10.7859 6.52466C10.6581 6.75695 10.5644 6.99201 10.4973 7.1875H12.1936C12.4173 7.1875 12.6323 7.09886 12.7905 6.94067C12.9488 6.78244 13.0374 6.56753 13.0374 6.34375ZM6.96631 6.42725C6.9855 6.62037 7.07104 6.80224 7.20947 6.94067C7.3677 7.09885 7.58266 7.1875 7.8064 7.1875H9.50269C9.43558 6.99201 9.34187 6.75695 9.21411 6.52466C8.90093 5.95525 8.45089 5.50009 7.8064 5.5C7.58266 5.5 7.3677 5.58865 7.20947 5.74683C7.05124 5.90506 6.96265 6.11997 6.96265 6.34375L6.96631 6.42725ZM13.7874 6.34375C13.7874 6.64476 13.7012 6.93625 13.5442 7.1875H14.5828C14.9512 7.18764 15.2499 7.48629 15.25 7.85474V9.70776C15.2499 10.0762 14.9512 10.3749 14.5828 10.375H14.2751V14.5828C14.275 14.9513 13.9757 15.25 13.6072 15.25H6.39282C6.02426 15.25 5.725 14.9513 5.72485 14.5828V10.375H5.41724C5.0488 10.3749 4.75014 10.0762 4.75 9.70776V7.85474C4.75014 7.4863 5.0488 7.18764 5.41724 7.1875H6.45581C6.32637 6.98033 6.24427 6.74607 6.21997 6.50122L6.21265 6.34375C6.21265 5.92106 6.38031 5.51544 6.6792 5.21655C6.97808 4.91772 7.38375 4.75 7.8064 4.75C8.86794 4.75009 9.51473 5.5136 9.87183 6.16284C9.91838 6.24747 9.96098 6.33196 10 6.41479C10.039 6.33196 10.0816 6.24747 10.1282 6.16284C10.4853 5.51359 11.132 4.75007 12.1936 4.75C12.6163 4.75 13.0219 4.91771 13.3208 5.21655C13.6197 5.51544 13.7874 5.92106 13.7874 6.34375Z",fill:"#1D1D1B"})]})}var to=ta;var ts=require("react/jsx-runtime");function tl(){return(0,ts.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ts.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",fill:"#EAE8E3"}),(0,ts.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"9.5",stroke:"#B2B2B2"}),(0,ts.jsx)("path",{d:"M10.375 14.5H13.5251V10.375H10.375V14.5ZM6.47485 14.5H9.625V10.375H6.47485V14.5ZM10.375 9.625H14.5V7.9375H10.375V9.625ZM5.5 9.625H9.625V7.9375H5.5V9.625ZM13.0374 6.34375C13.0374 6.11997 12.9488 5.90506 12.7905 5.74683C12.6323 5.58864 12.4173 5.5 12.1936 5.5C11.5491 5.50007 11.0991 5.95524 10.7859 6.52466C10.6581 6.75695 10.5644 6.99201 10.4973 7.1875H12.1936C12.4173 7.1875 12.6323 7.09886 12.7905 6.94067C12.9488 6.78244 13.0374 6.56753 13.0374 6.34375ZM6.96631 6.42725C6.9855 6.62037 7.07104 6.80224 7.20947 6.94067C7.3677 7.09885 7.58266 7.1875 7.8064 7.1875H9.50269C9.43558 6.99201 9.34187 6.75695 9.21411 6.52466C8.90093 5.95525 8.45089 5.50009 7.8064 5.5C7.58266 5.5 7.3677 5.58865 7.20947 5.74683C7.05124 5.90506 6.96265 6.11997 6.96265 6.34375L6.96631 6.42725ZM13.7874 6.34375C13.7874 6.64476 13.7012 6.93625 13.5442 7.1875H14.5828C14.9512 7.18764 15.2499 7.48629 15.25 7.85474V9.70776C15.2499 10.0762 14.9512 10.3749 14.5828 10.375H14.2751V14.5828C14.275 14.9513 13.9757 15.25 13.6072 15.25H6.39282C6.02426 15.25 5.725 14.9513 5.72485 14.5828V10.375H5.41724C5.0488 10.3749 4.75014 10.0762 4.75 9.70776V7.85474C4.75014 7.4863 5.0488 7.18764 5.41724 7.1875H6.45581C6.32637 6.98033 6.24427 6.74607 6.21997 6.50122L6.21265 6.34375C6.21265 5.92106 6.38031 5.51544 6.6792 5.21655C6.97808 4.91772 7.38375 4.75 7.8064 4.75C8.86794 4.75009 9.51473 5.5136 9.87183 6.16284C9.91838 6.24747 9.96098 6.33196 10 6.41479C10.039 6.33196 10.0816 6.24747 10.1282 6.16284C10.4853 5.51359 11.132 4.75007 12.1936 4.75C12.6163 4.75 13.0219 4.91771 13.3208 5.21655C13.6197 5.51544 13.7874 5.92106 13.7874 6.34375Z",fill:"#B2B2B2"})]})}var tc=tl;var tu=function(e,n){return Object.keys(n).reduce(function(e,t){var r;var i=(r=n[t])!==null&&r!==void 0?r:"";return e.replace(new RegExp("%".concat(t,"%"),"g"),String(i))},e)},td=function(){return"$"};var tf="#0B0A09",tp="#E6E6E5",th=nQ.div(b()),tm=nQ.div(w(),function(e){var n=e.isFirst;return n?"0":"16px"},function(e){var n=e.isLast;return n?"16px":"0"},function(e){var n=e.isLast;return n?"0 0 auto":"1 0 0"},function(e){var n=e.isLast;return n?"auto":"0"}),tv=nQ.div(C()),tg=nQ.div(k(),function(e){var n=e.isFilled;return n?tf:tp}),ty=nQ.div(M(),tf);var tx=require("react/jsx-runtime"),tb={issued:tr,active:to,future:tc},tw=function(e,n,t){return e<t?"issued":e===n?"active":"future"},tC=function(e,n,t,r){var i=e>0?Math.floor(n/e):0;return Array.from({length:Math.max(i,0)},function(n,i){return{index:i,cadenceMonth:(i+1)*e,state:tw(i,t,r)}})},tk=function(e){var n=e.giftCycle,t=e.maxCSM,r=e.currentCadenceIndex,i=r===void 0?0:r,a=e.issuedCadenceCount,o=a===void 0?0:a,s=e.translationConfig,l=tC(n,t,i,o);return l.length?(0,tx.jsx)(th,{"data-testid":"gift-roadmap",children:l.map(function(e){var n=e.index===l.length-1,t=tb[e.state];return(0,tx.jsxs)(tm,{isFirst:e.index===0,isLast:n,"data-step-state":e.state,children:[(0,tx.jsxs)(tv,{children:[(0,tx.jsx)(t,{}),!n&&(0,tx.jsx)(tg,{isFilled:e.state==="issued"})]}),(0,tx.jsxs)(ty,{children:[(0,tx.jsx)("span",{className:"gift-roadmap-month",children:tu(s.monthLabel,{cadence_month:e.cadenceMonth})}),(0,tx.jsx)("span",{className:"gift-roadmap-gift",children:tu(s.giftLabel,{gift_index:e.index+1})})]})]},e.cadenceMonth)})}):null},tM=tk;var tj=nQ.div(j()),tS=nQ.div(S()),tP=nQ.div(P()),tO=nQ.a(O());var t_=require("react/jsx-runtime"),tT=function(e){var n=e.value,t=e.cadenceMonths,r=e.notQualifyThisMonth,i=e.translationConfig,a=e.giftConfig,o=e.showLogo,s=o===void 0?!0:o;var l=t>0&&n===t&&!r,c="";l?c=i.giftEarned:r?c=i.notQualify:c=tu(i.callToAction,{threshold_value:a.thresholdValue,currency_symbol:a.thresholdKey==="subtotal"?td():""});var u=(0,t_.jsx)("u",{children:i.learnMore});return(0,t_.jsxs)(nK,{children:[s&&(0,t_.jsx)("img",{className:"reward-logo",src:i.loyaltyLogoBlack,alt:"Rewards Logo"}),(0,t_.jsx)("div",{className:"info-item",children:c}),(0,t_.jsx)(tO,{id:"learnMoreGift",href:i.learnMoreLink,target:"_blank",rel:"noopener noreferrer",children:u})]})};tT.displayName="GiftProgressBarMonthDescription";var tE=tT;var tL=require("react-icons/fa"),t$=require("@nuskin/foundation-ui-components");var tN=require("react/jsx-runtime"),tA=function(e){var n=e.isComplete,t=e.notQualifyThisMonth,r=e.value,i=e.cadenceMonths,a=e.monthsLabel,o=e.giftIssuedLabel;return t?(0,tN.jsx)(n7,{children:(0,tN.jsx)(tL.FaExclamationTriangle,{className:"outline-exclamation-icon",color:"#91ACC8"})}):(0,tN.jsxs)(n1,{children:[(0,tN.jsx)(t$.NsTypography,{component:"div",className:"center-value-progress-bar-price",variant:"title-l",weight:"bold",children:"".concat(r,"/").concat(i)}),(0,tN.jsx)(t$.NsTypography,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:a}),n&&(0,tN.jsx)(t$.NsTypography,{variant:"label-s",weight:"bold",component:"div",className:"center-value-progress-bar-voucher",children:o})]})};tA.displayName="GiftWheelCenterContent";var tH=tA;var tR=require("react/jsx-runtime"),tV=function(e){var n;var t=e.value,r=t===void 0?0:t,i=e.cadenceMonths,a=i===void 0?0:i,o=e.notQualifyThisMonth,s=o===void 0?!1:o,l=e.translationConfig,c=e.giftConfig,u=e.currentCadenceIndex,d=u===void 0?0:u,f=e.issuedCadenceCount,p=f===void 0?0:f,h=e.showRoadmap,m=h===void 0?!0:h,v=e.showLogo,g=v===void 0?!0:v,y=a>0&&r===a&&!s,x=a>0?Math.floor(((n=c===null||c===void 0?void 0:c.maxCSM)!==null&&n!==void 0?n:0)/a):0;var b,w,C,k,M;return(0,tR.jsxs)(tS,{children:[(0,tR.jsx)("div",{className:"reward-progress",children:(0,tR.jsxs)(D.CircularProgressbarWithChildren,{value:a>0?r/a*100:0,strokeWidth:12,background:!0,styles:(0,D.buildStyles)({rotation:.5,strokeLinecap:"butt",backgroundColor:"#fff",pathColor:"#ED7219",trailColor:"#E0E0E0"}),children:[a>0&&(0,tR.jsx)(te,{count:a}),(0,tR.jsx)(tH,{isComplete:y,notQualifyThisMonth:s,value:r,cadenceMonths:a,monthsLabel:(b=l===null||l===void 0?void 0:l.monthsLabel)!==null&&b!==void 0?b:"Months",giftIssuedLabel:(w=l===null||l===void 0?void 0:l.giftIssuedLabel)!==null&&w!==void 0?w:"Gift issued"})]})}),(0,tR.jsxs)(tP,{children:[m&&x>1&&(0,tR.jsx)(tM,{giftCycle:a,maxCSM:(C=c===null||c===void 0?void 0:c.maxCSM)!==null&&C!==void 0?C:0,currentCadenceIndex:d,issuedCadenceCount:p,translationConfig:{monthLabel:(k=l===null||l===void 0?void 0:l.roadmapMonthLabel)!==null&&k!==void 0?k:"Month %cadence_month%",giftLabel:(M=l===null||l===void 0?void 0:l.roadmapGiftLabel)!==null&&M!==void 0?M:"Gift %gift_index%"}}),(0,tR.jsx)(tE,{value:r,cadenceMonths:a,notQualifyThisMonth:s,translationConfig:l,giftConfig:c,showLogo:g})]})]})};tV.displayName="GiftProgressBar";var tI=tV;var tq=require("react-circular-progressbar"),tz=require("@nuskin/foundation-ui-components");var tG=require("react/jsx-runtime"),tB=function(e){var n;var t=e.value,r=t===void 0?0:t,i=e.cadenceMonths,a=i===void 0?0:i,o=e.notQualifyThisMonth,s=o===void 0?!1:o,l=e.amountShow,c=e.translationConfig,u=e.giftConfig,d=e.currentCadenceIndex,f=d===void 0?0:d,p=e.issuedCadenceCount,h=p===void 0?0:p,m=e.showRoadmap,v=m===void 0?!0:m,g=e.showLogo,y=g===void 0?!0:g,x=e.showTotalSection,b=x===void 0?!0:x,w=a>0&&r===a&&!s,C=a>0?Math.floor(((n=u===null||u===void 0?void 0:u.maxCSM)!==null&&n!==void 0?n:0)/a):0,k=tu(c.monthsComplete,{completed_months:r,total_months:a});w?k=c.giftEarned:s&&(k=c.notQualify);var M=tu(c.approximateMonthly,{currency_symbol:"",estimated_running_subscription_spend:""}),j=(0,tG.jsx)("u",{children:c.learnMore});var S,P,O,_,T;return(0,tG.jsxs)(nY,{children:[(0,tG.jsx)("div",{className:"reward-progress",children:(0,tG.jsxs)(tq.CircularProgressbarWithChildren,{value:a>0?r/a*100:0,strokeWidth:12,background:!0,styles:(0,tq.buildStyles)({rotation:.5,strokeLinecap:"butt",backgroundColor:"#fff",pathColor:"#ED7219",trailColor:"#E0E0E0"}),children:[a>0&&(0,tG.jsx)(te,{count:a}),(0,tG.jsx)(tH,{isComplete:w,notQualifyThisMonth:s,value:r,cadenceMonths:a,monthsLabel:(S=c===null||c===void 0?void 0:c.monthsLabel)!==null&&S!==void 0?S:"Months",giftIssuedLabel:(P=c===null||c===void 0?void 0:c.giftIssuedLabel)!==null&&P!==void 0?P:"Gift issued"})]})}),v&&C>1&&(0,tG.jsx)(tM,{giftCycle:a,maxCSM:(O=u===null||u===void 0?void 0:u.maxCSM)!==null&&O!==void 0?O:0,currentCadenceIndex:f,issuedCadenceCount:h,translationConfig:{monthLabel:(_=c===null||c===void 0?void 0:c.roadmapMonthLabel)!==null&&_!==void 0?_:"Month %cadence_month%",giftLabel:(T=c===null||c===void 0?void 0:c.roadmapGiftLabel)!==null&&T!==void 0?T:"Gift %gift_index%"}}),(0,tG.jsxs)(nK,{children:[y&&(0,tG.jsx)("img",{className:"reward-logo",src:c.loyaltyLogoBlack,alt:"Rewards Logo"}),(0,tG.jsx)("div",{className:"info-item",children:k})]}),(0,tG.jsx)(n5,{children:b&&!w&&(0,tG.jsxs)(tz.NsTypography,{variant:"body-s",weight:"normal",className:"reward-subtitle",colorOverride:"#252525",component:"div",children:[M," ",(0,tG.jsx)(tz.NsTypography,{component:"span",className:"button-price",variant:"body-s",weight:"bold",children:l!==null&&l!==void 0?l:0})]})}),(0,tG.jsx)(nK,{children:(0,tG.jsx)(tO,{id:"learnMoreGiftMobile",href:c.learnMoreLink,target:"_blank",rel:"noopener noreferrer",children:j})})]})};tB.displayName="GiftProgressBarMobile";var tD=tB;var tF=(typeof window==="undefined"?"undefined":l(window))=="object",tZ=/*#__PURE__*/function(){function n(){e(this,n);this.width=tF?window.innerWidth:0;this.scroll={vertical:tF?window.scrollY:0,horizontal:tF?window.scrollX:0,direction:"none"}}t(n,[{key:"isMobile",get:function e(){return this.isPhone}},{key:"isPhone",get:function e(){return tF?window.innerWidth<768:this.width<768}}]);return n}(),tW=new tZ;var tU={completedMonthsInCadence:0,totalCSMCount:0,totalCadences:0,currentCadenceIndex:0,issuedCadenceCount:0,isGiftIssued:!1,isProgramComplete:!1},tQ=function(e,n,t,r,a){var s=Math.min(Math.max(e,0),r);if(s===0)return o(i({},tU),{totalCadences:a});var l=s%t,c=l===0&&n,u=Math.min(Math.floor(s/t),a),d=c?u-1:Math.floor(s/t);return{completedMonthsInCadence:c?t:l,totalCSMCount:s,totalCadences:a,currentCadenceIndex:Math.min(Math.max(d,0),a-1),issuedCadenceCount:u,isGiftIssued:c,isProgramComplete:s>=r}},tX=function(e){var n=e.giftCycle,t=e.maxCSM,r=e.giftProperties;var a=n>0?Math.floor(t/n):0;if(a<=0)return o(i({},tU),{totalCadences:Math.max(a,0)});if(!r)return o(i({},tU),{totalCadences:a});var s=r.continuousSubscriptionMonths,l=r.qualifiedThisMonth,c=s+(l?1:0);return tQ(c,l,n,t,a)};var tY="giftContinuousSubscriptionMonth",tK="giftQualifiedThisMonth",tJ=function(e,n){var t,r;return e===null||e===void 0?void 0:(r=e.properties)===null||r===void 0?void 0:(t=r.find(function(e){return(e===null||e===void 0?void 0:e.name)===n}))===null||t===void 0?void 0:t.value},t0=function(e){var n;if(!(e===null||e===void 0?void 0:(n=e.properties)===null||n===void 0?void 0:n.length))return null;var t=tJ(e,tY),r=tJ(e,tK);if(t===void 0&&r===void 0)return null;var i=Number.parseInt(t!==null&&t!==void 0?t:"",10);return{continuousSubscriptionMonths:Number.isNaN(i)?0:Math.max(i,0),qualifiedThisMonth:Number.parseInt(r!==null&&r!==void 0?r:"",10)===1}};var t1=require("react/jsx-runtime"),t5=function(e){var n;var t,r,a,o;var s=e.subscriptionData,l=e.loyaltyData,c=e.translationConfig,u=e.giftConfig,d=e.showRoadmap,f=d===void 0?!0:d,p=e.showLogo,h=p===void 0?!0:p,m=e.showTotalSection,v=m===void 0?!0:m,g=(t=u===null||u===void 0?void 0:u.giftCycle)!==null&&t!==void 0?t:0,y=(r=u===null||u===void 0?void 0:u.thresholdValue)!==null&&r!==void 0?r:0,x=parseFloat(String((a=s===null||s===void 0?void 0:(n=s.approximateMonthlyTotalResponse)===null||n===void 0?void 0:n.currentMonthTotal)!==null&&a!==void 0?a:"0")),b=t0(l),w=b?!b.qualifiedThisMonth:x<y,C=tX({giftCycle:g,maxCSM:(o=u===null||u===void 0?void 0:u.maxCSM)!==null&&o!==void 0?o:0,giftProperties:b}),k=C.completedMonthsInCadence,M=C.currentCadenceIndex,j=C.issuedCadenceCount,S={value:k,cadenceMonths:g,notQualifyThisMonth:w,amountShow:x,translationConfig:c,giftConfig:u,currentCadenceIndex:M,issuedCadenceCount:j,showRoadmap:f,showLogo:h,showTotalSection:v};return(0,t1.jsx)(tj,{className:"loyalty-reward-card",children:tW.isMobile?(0,t1.jsx)(tD,i({},S)):(0,t1.jsx)(tI,i({},S))})};t5.displayName="GiftReward";var t6=t5;/*! Bundled license information:
2
2
 
3
3
  react-is/cjs/react-is.production.min.js:
4
4
  (** @license React v16.13.1