@nuskin/react-loyalty-elements 1.0.7-react-import.1 → 1.0.7

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.
@@ -1,5 +1,5 @@
1
- import { MonthlyData } from '../types';
2
- export declare const calculateMonthCompletionValues: (data: MonthlyData | null | undefined, minAmount: number, maxAmount: number, minVoucher: number, maxVoucher: number, voucherValue: number, monthCompletionValue: number, maxMonths: number, today: Date) => {
1
+ import { CalculateMonthCompletionParams } from '../types';
2
+ export declare const calculateMonthCompletionValues: ({ data, minAmount, maxAmount, minVoucher, maxVoucher, initialVoucherValue, initialMonthCompletionValue, maxMonths, today, }: CalculateMonthCompletionParams) => {
3
3
  monthCompletionValue: number;
4
4
  voucherValue: number;
5
5
  };
@@ -21,8 +21,14 @@ export type MonthlyData = {
21
21
  approximateMonthlyTotal?: ApproximateMonthlyTotal;
22
22
  csmMonthlySubsOrderTotal?: StoreMonthlySubsOrder[];
23
23
  };
24
+ export type OrderRecord = {
25
+ year: number;
26
+ month: number;
27
+ totalAmount: number;
28
+ promocode: string | null;
29
+ };
24
30
  export type TranslationConfig = {
25
- header?: string | undefined;
31
+ header?: string;
26
32
  voucherTargetAmount: string;
27
33
  monthsComplete: string;
28
34
  voucherEarned: string;
@@ -34,7 +40,7 @@ export type TranslationConfig = {
34
40
  approximateTotal: string;
35
41
  currentlyTrack: string;
36
42
  loyaltyLogoBlack: string;
37
- estimateDisclaimer?: string | undefined;
43
+ estimateDisclaimer?: string;
38
44
  };
39
45
  export type LearnMoreConfig = {
40
46
  tagLine: string;
@@ -50,7 +56,7 @@ export type LearnMoreConfig = {
50
56
  export type RewardProgressBarProps = {
51
57
  value?: number;
52
58
  title?: string;
53
- amountShow?: number | undefined;
59
+ amountShow?: number;
54
60
  voucherValue?: number | null;
55
61
  monthCompletionValue?: number;
56
62
  minAmount?: number;
@@ -96,3 +102,56 @@ export type RewardSubscriptionMonthDescriptionProps = {
96
102
  currencyAbbreviate?: boolean;
97
103
  currencyFormat?: (price: number, currencyWithoutDecimal: boolean, currencyAbbreviate: boolean) => void;
98
104
  };
105
+ export type CalculateMonthCompletionParams = {
106
+ data: MonthlyData | null | undefined;
107
+ minAmount: number;
108
+ maxAmount: number;
109
+ minVoucher: number;
110
+ maxVoucher: number;
111
+ initialVoucherValue: number;
112
+ initialMonthCompletionValue: number;
113
+ maxMonths: number;
114
+ today: Date;
115
+ };
116
+ export type PopupTextParams = {
117
+ voucherValue: number | null | undefined;
118
+ minVoucher: number;
119
+ maxVoucher: number;
120
+ notQualifyForRewardThisMonth: boolean;
121
+ learn3xMore: string;
122
+ learnMoreText: string;
123
+ translationLearnMore: string;
124
+ };
125
+ export type CenterContentParams = {
126
+ isComplete: boolean;
127
+ notQualifyForRewardThisMonth: boolean;
128
+ hasVoucherValue: boolean;
129
+ voucherEarned: string;
130
+ voucherTargetAmount: string;
131
+ };
132
+ export type InfoItemParams = {
133
+ isComplete: boolean;
134
+ amountShow: number | undefined;
135
+ minAmount: number;
136
+ voucherEarnedText: string;
137
+ monthsCompleteText: string;
138
+ };
139
+ export type TotalSummaryParams = {
140
+ isComplete: boolean;
141
+ notQualifyForRewardThisMonth: boolean;
142
+ hasVoucherValue: boolean;
143
+ approximateTotalText: string;
144
+ amountShowText: string;
145
+ currentlyTrackText: string;
146
+ callToActionText: string;
147
+ };
148
+ export type TotalButtonParams = {
149
+ notQualifyForRewardThisMonth: boolean;
150
+ approximateMonthlyText: string;
151
+ amountShowText: string;
152
+ translationNotQualify: string;
153
+ estimateDisclaimer: string;
154
+ open: boolean;
155
+ handleTooltipToggle: () => void;
156
+ handleTooltipClose: () => void;
157
+ };
@@ -1 +1,12 @@
1
- "use strict";function n(n,r){if(r==null||r>n.length)r=n.length;for(var e=0,t=new Array(r);e<r;e++)t[e]=n[e];return t}function r(n){if(Array.isArray(n))return n}function e(n,r){var e=n==null?null:typeof Symbol!=="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(e==null)return;var t=[];var i=true;var o=false;var a,l;try{for(e=e.call(n);!(i=(a=e.next()).done);i=true){t.push(a.value);if(r&&t.length===r)break}}catch(n){o=true;l=n}finally{try{if(!i&&e["return"]!=null)e["return"]()}finally{if(o)throw l}}return t}function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(n,i){return r(n)||e(n,i)||l(n,i)||t()}function o(n,r){if(!r){r=n.slice(0)}return Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))}function a(n){"@swc/helpers - typeof";return n&&typeof Symbol!=="undefined"&&n.constructor===Symbol?"symbol":typeof n}function l(r,e){if(!r)return;if(typeof r==="string")return n(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor)t=r.constructor.name;if(t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(r,e)}function c(){var n=o(["\n display: flex;\n flex-direction: row;\n background-color: #fff;\n border-radius: 10px;\n box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);\n overflow: hidden;\n margin-top: 10px;\n border: 1px solid #e0e0e0;\n\n @media (max-width: 767px) {\n flex-direction: column;\n padding: 10px;\n }\n"]);c=function r(){return n};return n}function u(){var n=o(["\n width: 40%;\n height: 345px;\n display: block;\n object-fit: cover;\n\n @media (max-width: 767px) {\n width: 100%;\n border-radius: 10px 10px 0 0;\n }\n"]);u=function r(){return n};return n}function d(){var n=o(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 0px 40px;\n width: 60%;\n background-color: #f5f5f5;\n\n @media (max-width: 767px) {\n width: 100%;\n padding: 20px;\n }\n"]);d=function r(){return n};return n}function s(){var n=o(["\n font-family: Inter, sans-serif;\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n margin-bottom: 10px;\n"]);s=function r(){return n};return n}function f(){var n=o(["\n font-family: Inter, sans-serif;\n font-size: 16px;\n font-weight: 400;\n line-height: 22px;\n color: #252525;\n margin-top: 2rem;\n"]);f=function r(){return n};return n}function p(){var n=o(["\n width: 257px;\n margin-top: 15px;\n background-color: #252525;\n color: #fff;\n padding: 10px 20px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n\n &:hover {\n background-color: #8c8c8c;\n }\n"]);p=function r(){return n};return n}function h(){var n=o(["\n max-width: 360px;\n"]);h=function r(){return n};return n}function x(){var n=o(["\n .modalPopup.css-bdhsul-MuiTypography-root-MuiDialogTitle-root {\n padding: 0px !important;\n }\n"]);x=function r(){return n};return n}function y(){var n=o(["\n overflow-x: hidden !important;\n"]);y=function r(){return n};return n}function g(){var n=o(["\n display: flex !important;\n align-items: center;\n align-content: center;\n padding: 0px !important;\n img {\n padding: 0px;\n }\n"]);g=function r(){return n};return n}function m(){var n=o(["\n display: flex;\n justify-content: space-between;\n margin: 0px 20px;\n border: 1px solid var(--color-primary-n-40-item-bg, #e0e0e0);\n border-radius: 16px;\n padding: 5px;\n margin: 8px;\n"]);m=function r(){return n};return n}function v(){var n=o(["\n display: flex;\n justify-content: center;\n padding: 20px;\n font-family: Lora;\n font-weight: 600;\n font-size: 18px;\n line-height: 24px;\n letter-spacing: 0%;\n text-align: center;\n"]);v=function r(){return n};return n}function C(){var n=o(["\n align-items: center;\n width: 50%;\n"]);C=function r(){return n};return n}function j(){var n=o(["\n width: 50%;\n font-size: 12px;\n"]);j=function r(){return n};return n}function w(){var n=o(["\n margin: -10px;\n font-size: 15px;\n text-decoration: underline;\n"]);w=function r(){return n};return n}function b(){var n=o(["\n margin-top: -100px;\n padding: 10px;\n span {\n font-family: Inter;\n font-weight: 600;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 11%;\n text-align: center;\n color: #ffffff;\n display: flex;\n justify-content: center;\n }\n img {\n width: 100%;\n height: 100%;\n padding: 0px 100px;\n }\n"]);b=function r(){return n};return n}function L(){var n=o(["\noverflow: hidden;\nmargin: -24px;\n}\n"]);L=function r(){return n};return n}var M=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var B=function(n,r){for(var e in r)M(n,e,{get:r[e],enumerable:!0})},D=function(n,r,e,t){var i=true,o=false,l=undefined;if(r&&(typeof r==="undefined"?"undefined":a(r))=="object"||typeof r=="function")try{var c=function(){var i=d.value;!A.call(n,i)&&i!==e&&M(n,i,{get:function(){return r[i]},enumerable:!(t=O(r,i))||t.enumerable})};for(var u=k(r)[Symbol.iterator](),d;!(i=(d=u.next()).done);i=true)c()}catch(n){o=true;l=n}finally{try{if(!i&&u.return!=null){u.return()}}finally{if(o){throw l}}}return n};var V=function(n){return D(M({},"__esModule",{value:!0}),n)};var T={};B(T,{SubscriptionRewardBanner:function(){return na}});module.exports=V(T);var P=require("react");var S=require("@nuskin/foundation-theme"),z=S.styled.div(c()),H=S.styled.img(u()),q=S.styled.div(d()),I=S.styled.h2(s()),_=S.styled.p(f()),Z=S.styled.button(p()),W=S.styled.img(h());var N=require("@nuskin/foundation-theme"),E=require("@nuskin/foundation-ui-components"),R=(0,N.styled)(E.NsModal)(x()),F=N.styled.div(y()),U=N.styled.div(g()),$=N.styled.div(m()),G=N.styled.div(v()),J=N.styled.div(C()),K=N.styled.div(j()),Q=N.styled.div(w()),X=N.styled.div(b()),Y=N.styled.div(L());var nn=require("react/jsx-runtime");function nr(){return(0,nn.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,nn.jsx)("circle",{cx:"20",cy:"20",r:"20",fill:"#D5E6D1"}),(0,nn.jsxs)("g",{clipPath:"url(#clip0_17003_198925)",children:[(0,nn.jsx)("path",{d:"M25.22 28.04C24.74 28.04 24.31 27.69 24.24 27.19C24.22 27.06 24.13 26.86 24.08 26.82C23.82 26.87 23.71 27.25 23.7 27.29L23.5 28.02L22.74 28.04H11.45C9.55 28.04 8 26.49 8 24.59V14.45C8 12.55 9.55 11 11.45 11H19.81C20.36 11 20.81 11.45 20.81 12C20.81 12.55 20.36 13 19.81 13H11.45C10.65 13 9.99 13.65 9.99 14.46V24.61C9.99 25.41 10.64 26.07 11.45 26.07H22.08C22.41 25.53 22.99 24.99 23.89 24.89C25.19 24.74 26.03 25.8 26.2 26.92C26.28 27.46 25.91 27.97 25.36 28.06C25.31 28.06 25.26 28.07 25.21 28.07L25.22 28.04Z",fill:"#557363"}),(0,nn.jsx)("path",{d:"M28.55 28.0409H28.24C27.69 28.0409 27.24 27.5909 27.24 27.0409C27.24 26.4909 27.69 26.0409 28.24 26.0409H28.55C29.35 26.0409 30.01 25.3909 30.01 24.5809V14.4509C30.01 13.6509 29.36 12.9909 28.55 12.9909H25.9C25.61 13.5409 25.07 14.0709 24.17 14.1809C22.88 14.3309 22.03 13.2709 21.86 12.1509C21.78 11.6109 22.15 11.1009 22.7 11.0109C23.24 10.9309 23.75 11.3009 23.84 11.8509C23.86 11.9809 23.95 12.1809 24 12.2209C24.18 12.1709 24.21 11.9009 24.21 11.8909L24.3 11.0009H28.56C30.46 11.0009 32.01 12.5509 32.01 14.4509V24.6009C32.01 26.5009 30.46 28.0509 28.56 28.0509L28.55 28.0409Z",fill:"#557363"}),(0,nn.jsx)("path",{d:"M24.03 17.1698C24.4883 17.1698 24.86 16.7982 24.86 16.3398C24.86 15.8814 24.4883 15.5098 24.03 15.5098C23.5716 15.5098 23.2 15.8814 23.2 16.3398C23.2 16.7982 23.5716 17.1698 24.03 17.1698Z",fill:"#557363"}),(0,nn.jsx)("path",{d:"M24.03 20.4002C24.4883 20.4002 24.86 20.0286 24.86 19.5702C24.86 19.1118 24.4883 18.7402 24.03 18.7402C23.5716 18.7402 23.2 19.1118 23.2 19.5702C23.2 20.0286 23.5716 20.4002 24.03 20.4002Z",fill:"#557363"}),(0,nn.jsx)("path",{d:"M24.03 23.6209C24.4883 23.6209 24.86 23.2493 24.86 22.7909C24.86 22.3325 24.4883 21.9609 24.03 21.9609C23.5716 21.9609 23.2 22.3325 23.2 22.7909C23.2 23.2493 23.5716 23.6209 24.03 23.6209Z",fill:"#557363"}),(0,nn.jsx)("path",{d:"M17.2092 24.4397C17.0252 24.6188 16.7794 24.7202 16.5069 24.7236C15.9622 24.7162 15.5281 24.2703 15.5355 23.7256L15.537 23.6138C14.9392 23.3962 14.5947 23.0424 14.4226 22.8514C14.0437 22.4622 14.0244 21.8193 14.4068 21.4333C14.782 21.0681 15.3833 21.0203 15.7693 21.4027C15.9829 21.6221 16.1414 21.7849 16.5112 21.8109C16.8392 21.8362 17.1485 21.6867 17.2772 21.465C17.4849 21.0836 17.434 20.7197 17.379 20.6491C17.2483 20.5006 17.2414 20.4936 16.7179 20.4655C16.5295 20.456 16.3131 20.4461 16.0691 20.4079C14.9115 20.2666 14.0907 19.4942 13.9238 18.4023C13.7504 17.2753 14.3387 16.1237 15.3367 15.6622C15.4422 15.6147 15.5476 15.5673 15.6528 15.5337L15.6552 15.3522C15.6626 14.8074 16.1085 14.3734 16.6532 14.3807C17.1979 14.3881 17.632 14.834 17.6247 15.3787L17.6226 15.5323C18.2269 15.785 18.6049 16.2441 18.8043 16.4773C19.162 16.8872 19.1669 17.5578 18.7361 17.9083C18.3262 18.266 17.7325 18.265 17.3748 17.855L17.2852 17.763C17.0379 17.4523 16.8862 17.3106 16.6485 17.3214C16.5157 17.3266 16.3405 17.3731 16.1647 17.4615C15.9397 17.5703 15.8378 17.8762 15.8696 18.1072C15.8955 18.2612 15.9632 18.4158 16.305 18.4553C16.5001 18.4859 16.6746 18.4952 16.8283 18.4973C17.4564 18.5337 18.1753 18.5783 18.8633 19.3559C19.5238 20.1052 19.5836 21.3703 19.0106 22.4243C18.6954 23.0068 18.1517 23.4395 17.5133 23.6475L17.512 23.7452C17.5082 24.0246 17.3933 24.2605 17.2092 24.4397Z",fill:"#557363"})]}),(0,nn.jsx)("defs",{children:(0,nn.jsx)("clipPath",{id:"clip0_17003_198925",children:(0,nn.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(8 8)"})})})]})}var ne=require("react/jsx-runtime");function nt(n){var r=n.show,e=r===void 0?!1:r,t=n.close,i=t===void 0?function(){}:t,o=n.learnMoreConfig,a=o===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:"",learnMoreLink:""}:o;return(0,ne.jsx)(R,{variant:"default",additionalProps:{className:"modalPopup"},open:e,handleClose:i,header:{isCloseIcon:!0,show:e,children:(0,ne.jsxs)(Y,{children:[a.loyaltyBanner&&(0,ne.jsx)(U,{children:(0,ne.jsx)("img",{height:"330px",width:"690px",src:a.loyaltyBanner})}),a.loyaltyLogoWhite&&(0,ne.jsxs)(X,{children:[(0,ne.jsx)("span",{children:a.header}),(0,ne.jsx)("img",{height:"38.88px",width:"360px",src:a.loyaltyLogoWhite})]})]})},body:{show:e,children:(0,ne.jsxs)(F,{children:[a.tagLine&&(0,ne.jsx)(G,{children:a.tagLine}),(0,ne.jsxs)($,{children:[a.cardOneVoucherAmount&&(0,ne.jsxs)(J,{children:[(0,ne.jsx)(nr,{}),a.cardOneVoucherAmount]}),a.cardOneDescription&&(0,ne.jsx)(K,{children:a.cardOneDescription})]}),(0,ne.jsxs)($,{children:[a.cardTwoVoucherAmount&&(0,ne.jsxs)(J,{children:[(0,ne.jsx)(nr,{}),a.cardTwoVoucherAmount]}),a.cardTwoDescription&&(0,ne.jsx)(K,{children:a.cardTwoDescription})]})]})},footer:{children:(0,ne.jsx)(Q,{children:a.learnMore&&(0,ne.jsx)("a",{href:a.learnMoreLink,target:"_blank",rel:"noreferrer",children:a.learnMore})}),show:e}})}var ni=require("react/jsx-runtime"),no=function(n){var r=n.translationConfig,e=r===void 0?{header:"",body:"",learnMore:"",loyaltyLogoBlack:"",loyaltyBanner:""}:r,t=n.learnMoreConfig,o=t===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:t,a=i((0,P.useState)(!1),2),l=a[0],c=a[1],u=function(){return c(!0)},d=function(){return c(!1)};return(0,ni.jsxs)(ni.Fragment,{children:[e&&(0,ni.jsxs)(z,{children:[e.loyaltyBanner&&(0,ni.jsx)(H,{src:e.loyaltyBanner,alt:"Beauty Device"}),(0,ni.jsxs)(q,{children:[e.header&&(0,ni.jsx)(I,{children:e.header}),e.loyaltyLogoBlack&&(0,ni.jsx)(W,{src:e.loyaltyLogoBlack,alt:"Rewards Logo"}),e.body&&(0,ni.jsx)(_,{children:e.body}),o.learnMore&&(0,ni.jsx)(Z,{onClick:u,children:o.learnMore})]})]}),o&&(0,ni.jsx)(nt,{show:l,close:d,learnMoreConfig:o,translationConfig:e})]})},na=no;//# sourceMappingURL=index.js.map
1
+ "use strict";function e(e,r){if(r==null||r>e.length)r=e.length;for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function r(e){if(Array.isArray(e))return e}function n(e,r){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var t=[];var a=true;var o=false;var i,c;try{for(n=n.call(e);!(a=(i=n.next()).done);a=true){t.push(i.value);if(r&&t.length===r)break}}catch(e){o=true;c=e}finally{try{if(!a&&n["return"]!=null)n["return"]()}finally{if(o)throw c}}return t}function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,a){return r(e)||n(e,a)||c(e,a)||t()}function o(e,r){if(!r){r=e.slice(0)}return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}function i(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function c(r,n){if(!r)return;if(typeof r==="string")return e(r,n);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor)t=r.constructor.name;if(t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return e(r,n)}function s(){var e=o(["\n display: flex;\n flex-direction: row;\n background-color: #fff;\n border-radius: 10px;\n box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);\n overflow: hidden;\n margin-top: 10px;\n border: 1px solid #e0e0e0;\n\n @media (max-width: 767px) {\n flex-direction: column;\n padding: 10px;\n }\n"]);s=function r(){return e};return e}function l(){var e=o(["\n width: 40%;\n height: 345px;\n display: block;\n object-fit: cover;\n\n @media (max-width: 767px) {\n width: 100%;\n border-radius: 10px 10px 0 0;\n }\n"]);l=function r(){return e};return e}function u(){var e=o(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 0px 40px;\n width: 60%;\n background-color: #f5f5f5;\n\n @media (max-width: 767px) {\n width: 100%;\n padding: 20px;\n }\n"]);u=function r(){return e};return e}function f(){var e=o(["\n font-family: Inter, sans-serif;\n font-size: 14px;\n font-weight: 600;\n line-height: 20px;\n margin-bottom: 10px;\n"]);f=function r(){return e};return e}function d(){var e=o(["\n font-family: Inter, sans-serif;\n font-size: 16px;\n font-weight: 400;\n line-height: 22px;\n color: #252525;\n margin-top: 2rem;\n"]);d=function r(){return e};return e}function p(){var e=o(["\n width: 257px;\n margin-top: 15px;\n background-color: #252525;\n color: #fff;\n padding: 10px 20px;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n\n &:hover {\n background-color: #8c8c8c;\n }\n"]);p=function r(){return e};return e}function h(){var e=o(["\n max-width: 360px;\n"]);h=function r(){return e};return e}function m(){var e=o(["\n .modalPopup.css-bdhsul-MuiTypography-root-MuiDialogTitle-root {\n padding: 0px !important;\n }\n"]);m=function r(){return e};return e}function y(){var e=o(["\n overflow-x: hidden !important;\n"]);y=function r(){return e};return e}function g(){var e=o(["\n display: flex !important;\n align-items: center;\n align-content: center;\n padding: 0px !important;\n img {\n padding: 0px;\n }\n"]);g=function r(){return e};return e}function v(){var e=o(["\n display: flex;\n justify-content: space-between;\n margin: 0px 20px;\n border: 1px solid var(--color-primary-n-40-item-bg, #e0e0e0);\n border-radius: 16px;\n padding: 5px;\n margin: 8px;\n"]);v=function r(){return e};return e}function x(){var e=o(["\n display: flex;\n justify-content: center;\n padding: 20px;\n font-family: Lora;\n font-weight: 600;\n font-size: 18px;\n line-height: 24px;\n letter-spacing: 0%;\n text-align: center;\n"]);x=function r(){return e};return e}function b(){var e=o(["\n align-items: center;\n width: 50%;\n"]);b=function r(){return e};return e}function w(){var e=o(["\n width: 50%;\n font-size: 12px;\n"]);w=function r(){return e};return e}function C(){var e=o(["\n margin: -10px;\n font-size: 15px;\n text-decoration: underline;\n"]);C=function r(){return e};return e}function k(){var e=o(["\n margin-top: -100px;\n padding: 10px;\n span {\n font-family: Inter;\n font-weight: 600;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 11%;\n text-align: center;\n color: #ffffff;\n display: flex;\n justify-content: center;\n }\n img {\n width: 100%;\n height: 100%;\n padding: 0px 100px;\n }\n"]);k=function r(){return e};return e}function S(){var e=o(["\noverflow: hidden;\nmargin: -24px;\n}\n"]);S=function r(){return e};return e}var j=Object.create;var O=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var A=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var M=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}},T=function(e,r){for(var n in r)O(e,n,{get:r[n],enumerable:!0})},E=function(e,r,n,t){var a=true,o=false,c=undefined;if(r&&(typeof r==="undefined"?"undefined":i(r))=="object"||typeof r=="function")try{var s=function(){var a=u.value;!$.call(e,a)&&a!==n&&O(e,a,{get:function(){return r[a]},enumerable:!(t=P(r,a))||t.enumerable})};for(var l=_(r)[Symbol.iterator](),u;!(a=(u=l.next()).done);a=true)s()}catch(e){o=true;c=e}finally{try{if(!a&&l.return!=null){l.return()}}finally{if(o){throw c}}}return e};var L=function(e,r,n){return n=e!=null?j(A(e)):{},E(r||!e||!e.__esModule?O(n,"default",{value:e,enumerable:!0}):n,e)},N=function(e){return E(O({},"__esModule",{value:!0}),e)};var R=M(function(e){"use strict";var r=function e(e){if((typeof e==="undefined"?"undefined":i(e))=="object"&&e!==null){var r=e.$$typeof;switch(r){case a:switch(e=e.type,e){case d:case p:case c:case l:case s:case m:return e;default:switch(e=e&&e.$$typeof,e){case f:case h:case v:case g:case u:return e;default:return r}}case o:return r}}};var n=function e(e){return r(e)===p};var t=typeof Symbol=="function"&&Symbol.for,a=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,c=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,h=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,x=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;e.AsyncMode=d;e.ConcurrentMode=p;e.ContextConsumer=f;e.ContextProvider=u;e.Element=a;e.ForwardRef=h;e.Fragment=c;e.Lazy=v;e.Memo=g;e.Portal=o;e.Profiler=l;e.StrictMode=s;e.Suspense=m;e.isAsyncMode=function(e){return n(e)||r(e)===d};e.isConcurrentMode=n;e.isContextConsumer=function(e){return r(e)===f};e.isContextProvider=function(e){return r(e)===u};e.isElement=function(e){return(typeof e==="undefined"?"undefined":i(e))=="object"&&e!==null&&e.$$typeof===a};e.isForwardRef=function(e){return r(e)===h};e.isFragment=function(e){return r(e)===c};e.isLazy=function(e){return r(e)===v};e.isMemo=function(e){return r(e)===g};e.isPortal=function(e){return r(e)===o};e.isProfiler=function(e){return r(e)===l};e.isStrictMode=function(e){return r(e)===s};e.isSuspense=function(e){return r(e)===m};e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===c||e===p||e===l||e===s||e===m||e===y||(typeof e==="undefined"?"undefined":i(e))=="object"&&e!==null&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===u||e.$$typeof===f||e.$$typeof===h||e.$$typeof===b||e.$$typeof===w||e.$$typeof===C||e.$$typeof===x)};e.typeOf=r});var z=M(function(e,r){"use strict";r.exports=R()});var D=M(function(e,r){"use strict";var n=function e(e){return t.isMemo(e)?c:s[e.$$typeof]||a};var t=z(),a={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},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=i;s[t.Memo]=c;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;function m(e,r,t){if(typeof r!="string"){if(h){var a=p(r);a&&a!==h&&m(e,a,t)}var i=u(r);f&&(i=i.concat(f(r)));for(var c=n(e),s=n(r),y=0;y<i.length;++y){var g=i[y];if(!o[g]&&!(t&&t[g])&&!(s&&s[g])&&!(c&&c[g])){var v=d(r,g);try{l(e,g,v)}catch(e){}}}}return e}r.exports=m});var I={};T(I,{SubscriptionRewardBanner:function(){return ni}});module.exports=N(I);var q=require("react");function H(){return H=Object.assign?Object.assign.bind():function e(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},H.apply(null,arguments)}var F=L(require("react")),B=require("react");var V=!1;function W(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function U(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var G=function(){function e(e){var r=this;this._insertTag=function(e){var n;r.tags.length===0?r.insertionPoint?n=r.insertionPoint.nextSibling:r.prepend?n=r.container.firstChild:n=r.before:n=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(e,n),r.tags.push(e)},this.isSpeedy=e.speedy===void 0?!V: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 r=e.prototype;return r.hydrate=function(e){e.forEach(this._insertTag)},r.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(U(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=W(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},r.flush=function(){this.tags.forEach(function(e){var r;return(r=e.parentNode)==null?void 0:r.removeChild(e)}),this.tags=[],this.ctr=0},e}();var X="-ms-",Z="-moz-",Y="-webkit-",J="comm",K="rule",Q="decl";var ee="@import";var er="@keyframes";var en="@layer";var et=Math.abs,ea=String.fromCharCode,eo=Object.assign;function ei(e,r){return ef(e,0)^45?(((r<<2^ef(e,0))<<2^ef(e,1))<<2^ef(e,2))<<2^ef(e,3):0}function ec(e){return e.trim()}function es(e,r){return(e=r.exec(e))?e[0]:e}function el(e,r,n){return e.replace(r,n)}function eu(e,r){return e.indexOf(r)}function ef(e,r){return e.charCodeAt(r)|0}function ed(e,r,n){return e.slice(r,n)}function ep(e){return e.length}function eh(e){return e.length}function em(e,r){return r.push(e),e}function ey(e,r){return e.map(r).join("")}var eg=1,ev=1,ex=0,eb=0,ew=0,eC="";function ek(e,r,n,t,a,o,i){return{value:e,root:r,parent:n,type:t,props:a,children:o,line:eg,column:ev,length:i,return:""}}function eS(e,r){return eo(ek("",null,null,"",null,null,0),e,{length:-e.length},r)}function ej(){return ew}function eO(){return ew=eb>0?ef(eC,--eb):0,ev--,ew===10&&(ev=1,eg--),ew}function eP(){return ew=eb<ex?ef(eC,eb++):0,ev++,ew===10&&(ev=1,eg++),ew}function e_(){return ef(eC,eb)}function eA(){return eb}function e$(e,r){return ed(eC,e,r)}function eM(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 eT(e){return eg=ev=1,ex=ep(eC=e),eb=0,[]}function eE(e){return eC="",e}function eL(e){return ec(e$(eb-1,ez(e===91?e+2:e===40?e+1:e)))}function eN(e){for(;(ew=e_())&&ew<33;)eP();return eM(e)>2||eM(ew)>3?"":" "}function eR(e,r){for(;--r&&eP()&&!(ew<48||ew>102||ew>57&&ew<65||ew>70&&ew<97););return e$(e,eA()+(r<6&&e_()==32&&eP()==32))}function ez(e){for(;eP();)switch(ew){case e:return eb;case 34:case 39:e!==34&&e!==39&&ez(ew);break;case 40:e===41&&ez(e);break;case 92:eP();break}return eb}function eD(e,r){for(;eP()&&e+ew!==57;)if(e+ew===84&&e_()===47)break;return"/*"+e$(r,eb-1)+"*"+ea(e===47?e:eP())}function eI(e){for(;!eM(e_());)eP();return e$(e,eb)}function eq(e){return eE(eH("",null,null,null,[""],e=eT(e),0,[0],e))}function eH(e,r,n,t,a,o,i,c,s){for(var l=0,u=0,f=i,d=0,p=0,h=0,m=1,y=1,g=1,v=0,x="",b=a,w=o,C=t,k=x;y;)switch(h=v,v=eP()){case 40:if(h!=108&&ef(k,f-1)==58){eu(k+=el(eL(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=eL(v);break;case 9:case 10:case 13:case 32:k+=eN(h);break;case 92:k+=eR(eA()-1,7);continue;case 47:switch(e_()){case 42:case 47:em(eB(eD(eP(),eA()),r,n),s);break;default:k+="/"}break;case 123*m:c[l++]=ep(k)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+u:g==-1&&(k=el(k,/\f/g,"")),p>0&&ep(k)-f&&em(p>32?eV(k+";",t,n,f-1):eV(el(k," ","")+";",t,n,f-2),s);break;case 59:k+=";";default:if(em(C=eF(k,r,n,l,u,a,c,x,b=[],w=[],f),o),v===123)if(u===0)eH(k,r,C,C,b,o,f,c,w);else switch(d===99&&ef(k,3)===110?100:d){case 100:case 108:case 109:case 115:eH(e,C,C,t&&em(eF(e,C,C,0,0,a,c,x,a,b=[],f),w),a,w,f,c,t?b:w);break;default:eH(k,C,C,C,[""],w,0,c,w)}}l=u=p=0,m=g=1,x=k="",f=i;break;case 58:f=1+ep(k),p=h;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&eO()==125)continue}switch(k+=ea(v),v*m){case 38:g=u>0?1:(k+="\f",-1);break;case 44:c[l++]=(ep(k)-1)*g,g=1;break;case 64:e_()===45&&(k+=eL(eP())),d=e_(),u=f=ep(x=k+=eI(eA())),v++;break;case 45:h===45&&ep(k)==2&&(m=0)}}return o}function eF(e,r,n,t,a,o,i,c,s,l,u){for(var f=a-1,d=a===0?o:[""],p=eh(d),h=0,m=0,y=0;h<t;++h)for(var g=0,v=ed(e,f+1,f=et(m=i[h])),x=e;g<p;++g)(x=ec(m>0?d[g]+" "+v:el(v,/&\f/g,d[g])))&&(s[y++]=x);return ek(e,r,n,a===0?K:c,s,l,u)}function eB(e,r,n){return ek(e,r,n,J,ea(ej()),ed(e,2,-2),0)}function eV(e,r,n,t){return ek(e,r,n,Q,ed(e,0,t),ed(e,t+1,-1),t)}function eW(e,r){for(var n="",t=eh(e),a=0;a<t;a++)n+=r(e[a],a,e,r)||"";return n}function eU(e,r,n,t){switch(e.type){case en:if(e.children.length)break;case ee:case Q:return e.return=e.return||e.value;case J:return"";case er:return e.return=e.value+"{"+eW(e.children,t)+"}";case K:e.value=e.props.join(",")}return ep(n=eW(e.children,t))?e.return=e.value+"{"+n+"}":""}function eG(e){var r=eh(e);return function(n,t,a,o){for(var i="",c=0;c<r;c++)i+=e[c](n,t,a,o)||"";return i}}function eX(e){return function(r){r.root||(r=r.return)&&e(r)}}function eZ(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var eY=function e(e,r,n){for(var t=0,a=0;t=a,a=e_(),t===38&&a===12&&(r[n]=1),!eM(a);)eP();return e$(e,eb)},eJ=function e(e,r){var n=-1,t=44;do switch(eM(t)){case 0:t===38&&e_()===12&&(r[n]=1),e[n]+=eY(eb-1,r,n);break;case 2:e[n]+=eL(t);break;case 4:if(t===44){e[++n]=e_()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=ea(t)}while(t=eP());return e},eK=function e(e,r){return eE(eJ(eT(e),r))},eQ=new WeakMap,e1=function e(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,t=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!eQ.get(n))&&!t){eQ.set(e,!0);for(var a=[],o=eK(r,a),i=n.props,c=0,s=0;c<o.length;c++)for(var l=0;l<i.length;l++,s++)e.props[s]=a[c]?o[c].replace(/&\f/g,i[l]):i[l]+" "+o[c]}}},e0=function e(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function e2(e,r){switch(ei(e,r)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+Z+e+X+e+e;case 6828:case 4268:return Y+e+X+e+e;case 6165:return Y+e+X+"flex-"+e+e;case 5187:return Y+e+el(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+X+"flex-$1$2")+e;case 5443:return Y+e+X+"flex-item-"+el(e,/flex-|-self/,"")+e;case 4675:return Y+e+X+"flex-line-pack"+el(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+X+el(e,"shrink","negative")+e;case 5292:return Y+e+X+el(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+el(e,"-grow","")+Y+e+X+el(e,"grow","positive")+e;case 4554:return Y+el(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return el(el(el(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return el(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return el(el(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return el(e,/(.+)-inline(.+)/,Y+"$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(ep(e)-1-r>6)switch(ef(e,r+1)){case 109:if(ef(e,r+4)!==45)break;case 102:return el(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Z+(ef(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~eu(e,"stretch")?e2(el(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ef(e,r+1)!==115)break;case 6444:switch(ef(e,ep(e)-3-(~eu(e,"!important")&&10))){case 107:return el(e,":",":"+Y)+e;case 101:return el(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(ef(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+X+"$2box$3")+e}break;case 5936:switch(ef(e,r+11)){case 114:return Y+e+X+el(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+X+el(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+X+el(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+X+e+e}return e}var e5=function e(e,r,n,t){if(e.length>-1&&!e.return)switch(e.type){case Q:e.return=e2(e.value,e.length);break;case er:return eW([eS(e,{value:el(e.value,"@","@"+Y)})],t);case K:if(e.length)return ey(e.props,function(r){switch(es(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return eW([eS(e,{props:[el(r,/:(read-\w+)/,":"+Z+"$1")]})],t);case"::placeholder":return eW([eS(e,{props:[el(r,/:(plac\w+)/,":"+Y+"input-$1")]}),eS(e,{props:[el(r,/:(plac\w+)/,":"+Z+"$1")]}),eS(e,{props:[el(r,/:(plac\w+)/,X+"input-$1")]})],t)}return""})}},e4=[e5],e3=function e(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){var r=e.getAttribute("data-emotion");r.indexOf(" ")!==-1&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var t=e.stylisPlugins||e4,a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(e){for(var r=e.getAttribute("data-emotion").split(" "),n=1;n<r.length;n++)a[r[n]]=!0;i.push(e)});var c,s=[e1,e0];{var l,u=[eU,eX(function(e){l.insert(e)})],f=eG(s.concat(t,u)),d=function e(e){return eW(eq(e),f)};c=function e(e,r,n,t){l=n,d(e?e+"{"+r.styles+"}":r.styles),t&&(p.inserted[r.name]=!0)}}var p={key:r,sheet:new G({key:r,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:c};return p.sheet.hydrate(i),p};var e6=!0;function e9(e,r,n){var t="";return n.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(t+=n+" ")}),t}var e8=function e(e,r,n){var t=e.key+"-"+r.name;(n===!1||e6===!1)&&e.registered[t]===void 0&&(e.registered[t]=r.styles)},e7=function e(e,r,n){e8(e,r,n);var t=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var a=r;do e.insert(r===a?"."+t:"",a,e.sheet,!0),a=a.next;while(a!==void 0)}};function re(e){for(var r=0,n,t=0,a=e.length;a>=4;++t,a-=4)n=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24,n=(n&65535)*0x5bd1e995+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*0x5bd1e995+((n>>>16)*59797<<16)^(r&65535)*0x5bd1e995+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(t+2)&255)<<16;case 2:r^=(e.charCodeAt(t+1)&255)<<8;case 1:r^=e.charCodeAt(t)&255,r=(r&65535)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*0x5bd1e995+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var rr={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 rn=!1,rt=/[A-Z]|^ms/g,ra=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ro=function e(e){return e.charCodeAt(1)===45},ri=function e(e){return e!=null&&typeof e!="boolean"},rc=eZ(function(e){return ro(e)?e:e.replace(rt,"-$&").toLowerCase()}),rs=function e(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(ra,function(e,r,n){return rp={name:r,styles:n,next:rp},r})}return rr[e]!==1&&!ro(e)&&typeof r=="number"&&r!==0?r+"px":r},rl="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ru(e,r,n){if(n==null)return"";var t=n;if(t.__emotion_styles!==void 0)return t;switch(typeof n==="undefined"?"undefined":i(n)){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return rp={name:a.name,styles:a.styles,next:rp},a.name;var o=n;if(o.styles!==void 0){var c=o.next;if(c!==void 0)for(;c!==void 0;)rp={name:c.name,styles:c.styles,next:rp},c=c.next;var s=o.styles+";";return s}return rf(e,r,n)}case"function":{if(e!==void 0){var l=rp,u=n(e);return rp=l,ru(e,r,u)}break}}var f=n;if(r==null)return f;var d=r[f];return d!==void 0?d:f}function rf(e,r,n){var t="";if(Array.isArray(n))for(var a=0;a<n.length;a++)t+=ru(e,r,n[a])+";";else for(var o in n){var c=n[o];if((typeof c==="undefined"?"undefined":i(c))!="object"){var s=c;r!=null&&r[s]!==void 0?t+=o+"{"+r[s]+"}":ri(s)&&(t+=rc(o)+":"+rs(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&rn)throw new Error(rl);if(Array.isArray(c)&&typeof c[0]=="string"&&(r==null||r[c[0]]===void 0))for(var l=0;l<c.length;l++)ri(c[l])&&(t+=rc(o)+":"+rs(o,c[l])+";");else{var u=ru(e,r,c);switch(o){case"animation":case"animationName":{t+=rc(o)+":"+u+";";break}default:t+=o+"{"+u+"}"}}}}return t}var rd=/label:\s*([^\s;{]+)\s*(;|$)/g,rp;function rh(e,r,n){if(e.length===1&&i(e[0])=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var t=!0,a="";rp=void 0;var o=e[0];if(o==null||o.raw===void 0)t=!1,a+=ru(n,r,o);else{var c=o;a+=c[0]}for(var s=1;s<e.length;s++)if(a+=ru(n,r,e[s]),t){var l=o;a+=l[s]}rd.lastIndex=0;for(var u="",f;(f=rd.exec(a))!==null;)u+="-"+f[1];var d=re(a)+u;return{name:d,styles:a,next:rp}}var rm=L(require("react")),ry=function e(e){return e()},rg=rm.useInsertionEffect?rm.useInsertionEffect:!1,rv=rg||ry;var rx=!1,rb=F.createContext((typeof HTMLElement==="undefined"?"undefined":i(HTMLElement))<"u"?e3({key:"css"}):null),rw=rb.Provider;var rC=function e(e){return(0,B.forwardRef)(function(r,n){var t=(0,B.useContext)(rb);return e(r,t,n)})},rk=F.createContext({});var rS={}.hasOwnProperty,rj="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rO=function e(e,r){var n={};for(var t in r)rS.call(r,t)&&(n[t]=r[t]);return n[rj]=e,n},rP=function e(e){var r=e.cache,n=e.serialized,t=e.isStringTag;return e8(r,n,t),rv(function(){return e7(r,n,t)}),null},r_=rC(function(e,r,n){var t=e.css;typeof t=="string"&&r.registered[t]!==void 0&&(t=r.registered[t]);var a=e[rj],o=[t],i="";typeof e.className=="string"?i=e9(r.registered,o,e.className):e.className!=null&&(i=e.className+" ");var c=rh(o,void 0,F.useContext(rk));i+=r.key+"-"+c.name;var s={};for(var l in e)rS.call(e,l)&&l!=="css"&&l!==rj&&!rx&&(s[l]=e[l]);return s.className=i,n&&(s.ref=n),F.createElement(F.Fragment,null,F.createElement(rP,{cache:r,serialized:c,isStringTag:typeof a=="string"}),F.createElement(a,s))}),rA=r_;var r$=L(require("react"));var rM=L(D()),rT=function e(e,r){var n=arguments;if(r==null||!rS.call(r,"css"))return r$.createElement.apply(void 0,n);var t=n.length,a=new Array(t);a[0]=rA,a[1]=rO(e,r);for(var o=2;o<t;o++)a[o]=n[o];return r$.createElement.apply(null,a)};(function(e){var r;r||(r=e.JSX||(e.JSX={}))})(rT||(rT={}));var rE=L(require("react"));var rL=/^((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)-.*))$/,rN=eZ(function(e){return rL.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var rR=!1,rz=rN,rD=function e(e){return e!=="theme"},rI=function e(e){return typeof e=="string"&&e.charCodeAt(0)>96?rz:rD},rq=function e(e,r,n){var t;if(r){var a=r.shouldForwardProp;t=e.__emotion_forwardProp&&a?function r(r){return e.__emotion_forwardProp(r)&&a(r)}:a}return typeof t!="function"&&n&&(t=e.__emotion_forwardProp),t},rH=function e(e){var r=e.cache,n=e.serialized,t=e.isStringTag;return e8(r,n,t),rv(function(){return e7(r,n,t)}),null},rF=function e(r,n){var t=r.__emotion_real===r,a=t&&r.__emotion_base||r,o,i;n!==void 0&&(o=n.label,i=n.target);var c=rq(r,n,t),s=c||rI(a),l=!s("as");return function(){var u=arguments,f=t&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var d=u[0];f.push(d[0]);for(var p=u.length,h=1;h<p;h++)f.push(u[h],d[h])}var m=rC(function(e,r,n){var t=l&&e.as||a,o="",u=[],d=e;if(e.theme==null){d={};for(var p in e)d[p]=e[p];d.theme=rE.useContext(rk)}typeof e.className=="string"?o=e9(r.registered,u,e.className):e.className!=null&&(o=e.className+" ");var h=rh(f.concat(u),r.registered,d);o+=r.key+"-"+h.name,i!==void 0&&(o+=" "+i);var m=l&&c===void 0?rI(t):s,y={};for(var g in e)l&&g==="as"||m(g)&&(y[g]=e[g]);return y.className=o,n&&(y.ref=n),rE.createElement(rE.Fragment,null,rE.createElement(rH,{cache:r,serialized:h,isStringTag:typeof t=="string"}),rE.createElement(t,y))});return m.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",m.defaultProps=r.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=f,m.__emotion_forwardProp=c,Object.defineProperty(m,"toString",{value:function e(){return i===void 0&&rR?"NO_COMPONENT_SELECTOR":"."+i}}),m.withComponent=function(r,t){var a=e(r,H({},n,t,{shouldForwardProp:rq(m,t,!0)}));return a.apply(void 0,f)},m}};var rB=require("react");var rV=["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"],rW=rF.bind(null);rV.forEach(function(e){rW[e]=rW(e)});var rU=rW.div(s()),rG=rW.img(l()),rX=rW.div(u()),rZ=rW.h2(f()),rY=rW.p(d()),rJ=rW.button(p()),rK=rW.img(h());var rQ=require("@nuskin/foundation-ui-components"),r1=rW(rQ.NsModal)(m()),r0=rW.div(y()),r2=rW.div(g()),r5=rW.div(v()),r4=rW.div(x()),r3=rW.div(b()),r6=rW.div(w()),r9=rW.div(C()),r8=rW.div(k()),r7=rW.div(S());var ne=require("react/jsx-runtime");function nr(){return(0,ne.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,ne.jsx)("circle",{cx:"20",cy:"20",r:"20",fill:"#D5E6D1"}),(0,ne.jsxs)("g",{clipPath:"url(#clip0_17003_198925)",children:[(0,ne.jsx)("path",{d:"M25.22 28.04C24.74 28.04 24.31 27.69 24.24 27.19C24.22 27.06 24.13 26.86 24.08 26.82C23.82 26.87 23.71 27.25 23.7 27.29L23.5 28.02L22.74 28.04H11.45C9.55 28.04 8 26.49 8 24.59V14.45C8 12.55 9.55 11 11.45 11H19.81C20.36 11 20.81 11.45 20.81 12C20.81 12.55 20.36 13 19.81 13H11.45C10.65 13 9.99 13.65 9.99 14.46V24.61C9.99 25.41 10.64 26.07 11.45 26.07H22.08C22.41 25.53 22.99 24.99 23.89 24.89C25.19 24.74 26.03 25.8 26.2 26.92C26.28 27.46 25.91 27.97 25.36 28.06C25.31 28.06 25.26 28.07 25.21 28.07L25.22 28.04Z",fill:"#557363"}),(0,ne.jsx)("path",{d:"M28.55 28.0409H28.24C27.69 28.0409 27.24 27.5909 27.24 27.0409C27.24 26.4909 27.69 26.0409 28.24 26.0409H28.55C29.35 26.0409 30.01 25.3909 30.01 24.5809V14.4509C30.01 13.6509 29.36 12.9909 28.55 12.9909H25.9C25.61 13.5409 25.07 14.0709 24.17 14.1809C22.88 14.3309 22.03 13.2709 21.86 12.1509C21.78 11.6109 22.15 11.1009 22.7 11.0109C23.24 10.9309 23.75 11.3009 23.84 11.8509C23.86 11.9809 23.95 12.1809 24 12.2209C24.18 12.1709 24.21 11.9009 24.21 11.8909L24.3 11.0009H28.56C30.46 11.0009 32.01 12.5509 32.01 14.4509V24.6009C32.01 26.5009 30.46 28.0509 28.56 28.0509L28.55 28.0409Z",fill:"#557363"}),(0,ne.jsx)("path",{d:"M24.03 17.1698C24.4883 17.1698 24.86 16.7982 24.86 16.3398C24.86 15.8814 24.4883 15.5098 24.03 15.5098C23.5716 15.5098 23.2 15.8814 23.2 16.3398C23.2 16.7982 23.5716 17.1698 24.03 17.1698Z",fill:"#557363"}),(0,ne.jsx)("path",{d:"M24.03 20.4002C24.4883 20.4002 24.86 20.0286 24.86 19.5702C24.86 19.1118 24.4883 18.7402 24.03 18.7402C23.5716 18.7402 23.2 19.1118 23.2 19.5702C23.2 20.0286 23.5716 20.4002 24.03 20.4002Z",fill:"#557363"}),(0,ne.jsx)("path",{d:"M24.03 23.6209C24.4883 23.6209 24.86 23.2493 24.86 22.7909C24.86 22.3325 24.4883 21.9609 24.03 21.9609C23.5716 21.9609 23.2 22.3325 23.2 22.7909C23.2 23.2493 23.5716 23.6209 24.03 23.6209Z",fill:"#557363"}),(0,ne.jsx)("path",{d:"M17.2092 24.4397C17.0252 24.6188 16.7794 24.7202 16.5069 24.7236C15.9622 24.7162 15.5281 24.2703 15.5355 23.7256L15.537 23.6138C14.9392 23.3962 14.5947 23.0424 14.4226 22.8514C14.0437 22.4622 14.0244 21.8193 14.4068 21.4333C14.782 21.0681 15.3833 21.0203 15.7693 21.4027C15.9829 21.6221 16.1414 21.7849 16.5112 21.8109C16.8392 21.8362 17.1485 21.6867 17.2772 21.465C17.4849 21.0836 17.434 20.7197 17.379 20.6491C17.2483 20.5006 17.2414 20.4936 16.7179 20.4655C16.5295 20.456 16.3131 20.4461 16.0691 20.4079C14.9115 20.2666 14.0907 19.4942 13.9238 18.4023C13.7504 17.2753 14.3387 16.1237 15.3367 15.6622C15.4422 15.6147 15.5476 15.5673 15.6528 15.5337L15.6552 15.3522C15.6626 14.8074 16.1085 14.3734 16.6532 14.3807C17.1979 14.3881 17.632 14.834 17.6247 15.3787L17.6226 15.5323C18.2269 15.785 18.6049 16.2441 18.8043 16.4773C19.162 16.8872 19.1669 17.5578 18.7361 17.9083C18.3262 18.266 17.7325 18.265 17.3748 17.855L17.2852 17.763C17.0379 17.4523 16.8862 17.3106 16.6485 17.3214C16.5157 17.3266 16.3405 17.3731 16.1647 17.4615C15.9397 17.5703 15.8378 17.8762 15.8696 18.1072C15.8955 18.2612 15.9632 18.4158 16.305 18.4553C16.5001 18.4859 16.6746 18.4952 16.8283 18.4973C17.4564 18.5337 18.1753 18.5783 18.8633 19.3559C19.5238 20.1052 19.5836 21.3703 19.0106 22.4243C18.6954 23.0068 18.1517 23.4395 17.5133 23.6475L17.512 23.7452C17.5082 24.0246 17.3933 24.2605 17.2092 24.4397Z",fill:"#557363"})]}),(0,ne.jsx)("defs",{children:(0,ne.jsx)("clipPath",{id:"clip0_17003_198925",children:(0,ne.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(8 8)"})})})]})}var nn=require("react/jsx-runtime");function nt(e){var r=e.show,n=r===void 0?!1:r,t=e.close,a=t===void 0?function(){}:t,o=e.learnMoreConfig,i=o===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:"",learnMoreLink:""}:o;var c,s;return(0,nn.jsx)(r1,{variant:"default",additionalProps:{className:"modalPopup"},open:n,handleClose:a,header:{isCloseIcon:!0,show:n,children:(0,nn.jsxs)(r7,{children:[i.loyaltyBanner&&(0,nn.jsx)(r2,{children:(0,nn.jsx)("img",{height:"330px",width:"690px",src:i.loyaltyBanner,alt:(c=i.header)!==null&&c!==void 0?c:"Loyalty banner"})}),i.loyaltyLogoWhite&&(0,nn.jsxs)(r8,{children:[(0,nn.jsx)("span",{children:i.header}),(0,nn.jsx)("img",{height:"38.88px",width:"360px",src:i.loyaltyLogoWhite,alt:(s=i.header)!==null&&s!==void 0?s:"Loyalty logo"})]})]})},body:{show:n,children:(0,nn.jsxs)(r0,{children:[i.tagLine&&(0,nn.jsx)(r4,{children:i.tagLine}),(0,nn.jsxs)(r5,{children:[i.cardOneVoucherAmount&&(0,nn.jsxs)(r3,{children:[(0,nn.jsx)(nr,{}),i.cardOneVoucherAmount]}),i.cardOneDescription&&(0,nn.jsx)(r6,{children:i.cardOneDescription})]}),(0,nn.jsxs)(r5,{children:[i.cardTwoVoucherAmount&&(0,nn.jsxs)(r3,{children:[(0,nn.jsx)(nr,{}),i.cardTwoVoucherAmount]}),i.cardTwoDescription&&(0,nn.jsx)(r6,{children:i.cardTwoDescription})]})]})},footer:{children:(0,nn.jsx)(r9,{children:i.learnMore&&(0,nn.jsx)("a",{href:i.learnMoreLink,target:"_blank",rel:"noreferrer",children:i.learnMore})}),show:n}})}var na=require("react/jsx-runtime"),no=function(e){var r=e.translationConfig,n=r===void 0?{header:"",body:"",learnMore:"",loyaltyLogoBlack:"",loyaltyBanner:""}:r,t=e.learnMoreConfig,o=t===void 0?{tagLine:"",cardOneDescription:"",cardOneVoucherAmount:"",cardTwoDescription:"",cardTwoVoucherAmount:"",header:"",loyaltyLogoWhite:"",loyaltyBanner:"",learnMore:""}:t,i=a((0,q.useState)(!1),2),c=i[0],s=i[1],l=function(){return s(!0)},u=function(){return s(!1)};return(0,na.jsxs)(na.Fragment,{children:[n&&(0,na.jsxs)(rU,{children:[n.loyaltyBanner&&(0,na.jsx)(rG,{src:n.loyaltyBanner,alt:"Beauty Device"}),(0,na.jsxs)(rX,{children:[n.header&&(0,na.jsx)(rZ,{children:n.header}),n.loyaltyLogoBlack&&(0,na.jsx)(rK,{src:n.loyaltyLogoBlack,alt:"Rewards Logo"}),n.body&&(0,na.jsx)(rY,{children:n.body}),o.learnMore&&(0,na.jsx)(rJ,{onClick:l,children:o.learnMore})]})]}),o&&(0,na.jsx)(nt,{show:c,close:u,learnMoreConfig:o,translationConfig:n})]})},ni=no;/*! Bundled license information:
2
+
3
+ react-is/cjs/react-is.production.min.js:
4
+ (** @license React v16.13.1
5
+ * react-is.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ *)
12
+ *///# sourceMappingURL=index.js.map