@saasquatch/mint-components 1.8.0-20 → 1.8.0-22
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.
- package/dist/cjs/{ShadowViewAddon-ba90f112.js → ShadowViewAddon-3cb21a64.js} +158 -533
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_42.cjs.entry.js} +726 -47
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +75 -89
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +9 -8
- package/dist/collection/components/sqm-docusign-embed/sqm-docusign-embed.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +12 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/TaxForm.stories.js +75 -80
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/esm/{ShadowViewAddon-1283bcde.js → ShadowViewAddon-3b0296b9.js} +159 -532
- package/dist/esm/{data-e64fcd9b.js → data-e76577b2.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_42.entry.js} +725 -47
- package/dist/esm/sqm-cash-form.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +75 -89
- package/dist/esm/sqm-tax-and-cash.entry.js +11 -10
- package/dist/esm/{useParentQuery-f408f01b.js → useParentQuery-90a33801.js} +2 -2
- package/dist/esm-es5/{ShadowViewAddon-1283bcde.js → ShadowViewAddon-3b0296b9.js} +1 -1
- package/dist/esm-es5/{data-e64fcd9b.js → data-e76577b2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -0
- package/dist/esm-es5/sqm-cash-form.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/{useParentQuery-f408f01b.js → useParentQuery-90a33801.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-089f7cf7.system.js +1 -0
- package/dist/mint-components/{p-d0b458b6.system.js → p-2a84eb82.system.js} +1 -1
- package/dist/mint-components/p-3bd43d9a.system.entry.js +1 -0
- package/dist/mint-components/{p-5adddae5.js → p-3d3c5d60.js} +1 -1
- package/dist/mint-components/{p-2bc57e8b.system.js → p-5d7ac8fb.system.js} +1 -1
- package/dist/mint-components/{p-fd804b0c.system.entry.js → p-5ef87b4f.system.entry.js} +1 -1
- package/dist/mint-components/{p-b54ca2fa.js → p-83312717.js} +21 -21
- package/dist/mint-components/p-99b5f669.system.js +1 -1
- package/dist/mint-components/p-a5a6f0e8.system.entry.js +1 -0
- package/dist/mint-components/{p-2a5a7cd7.entry.js → p-bd10ef26.entry.js} +2 -2
- package/dist/mint-components/p-c84c8d51.system.entry.js +1 -0
- package/dist/mint-components/p-cb9f9495.entry.js +1 -0
- package/dist/mint-components/p-dce987ba.entry.js +219 -0
- package/dist/mint-components/{p-7e25d233.entry.js → p-e8e37636.entry.js} +1 -1
- package/dist/mint-components/{p-aa5044f0.js → p-f8d2bdc5.js} +1 -1
- package/dist/types/components/sqm-docusign-embed/sqm-docusign-embed.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/TaxForm.stories.d.ts +0 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-document-type-form-view-0b2e7fe0.js +0 -133
- package/dist/cjs/sqm-document-type-form.cjs.entry.js +0 -194
- package/dist/esm/sqm-document-type-form-view-7a30fd04.js +0 -131
- package/dist/esm/sqm-document-type-form.entry.js +0 -190
- package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
- package/dist/esm-es5/sqm-document-type-form-view-7a30fd04.js +0 -1
- package/dist/esm-es5/sqm-document-type-form.entry.js +0 -1
- package/dist/mint-components/p-2d3904a6.system.entry.js +0 -1
- package/dist/mint-components/p-4f1bd1ef.system.entry.js +0 -1
- package/dist/mint-components/p-5c427a6f.entry.js +0 -212
- package/dist/mint-components/p-6a9e73e9.system.entry.js +0 -1
- package/dist/mint-components/p-79ec9195.entry.js +0 -8
- package/dist/mint-components/p-8f314d1e.system.entry.js +0 -1
- package/dist/mint-components/p-9116b12e.system.js +0 -1
- package/dist/mint-components/p-b06f7d06.system.js +0 -1
- package/dist/mint-components/p-df1521bd.js +0 -1
- package/dist/mint-components/p-e93ca195.entry.js +0 -1
|
@@ -4020,517 +4020,6 @@ function CouponCodeView(props) {
|
|
|
4020
4020
|
}
|
|
4021
4021
|
|
|
4022
4022
|
const style$f = {
|
|
4023
|
-
FormWrapper: {
|
|
4024
|
-
display: "flex",
|
|
4025
|
-
justifyContent: "flex-start",
|
|
4026
|
-
flexDirection: "column",
|
|
4027
|
-
},
|
|
4028
|
-
CheckboxContainer: {
|
|
4029
|
-
display: "flex",
|
|
4030
|
-
alignItems: "flex-start",
|
|
4031
|
-
justifyContent: "flex-start",
|
|
4032
|
-
flexDirection: "column",
|
|
4033
|
-
gap: "var(--sl-spacing-xx-small)",
|
|
4034
|
-
},
|
|
4035
|
-
TitleContainer: {
|
|
4036
|
-
display: "flex",
|
|
4037
|
-
flexDirection: "row",
|
|
4038
|
-
alignItems: "center",
|
|
4039
|
-
justifyContent: "flex-start",
|
|
4040
|
-
gap: "var(--sl-spacing-small)",
|
|
4041
|
-
},
|
|
4042
|
-
TextContainer: {
|
|
4043
|
-
display: "flex",
|
|
4044
|
-
justifyContent: "flex-start",
|
|
4045
|
-
flexDirection: "column",
|
|
4046
|
-
gap: "24px",
|
|
4047
|
-
paddingBottom: "16px",
|
|
4048
|
-
},
|
|
4049
|
-
BtnContainer: {
|
|
4050
|
-
paddingTop: "36px",
|
|
4051
|
-
display: "flex",
|
|
4052
|
-
gap: "8px",
|
|
4053
|
-
},
|
|
4054
|
-
ErrorText: {
|
|
4055
|
-
color: "var(--sl-color-danger-500)",
|
|
4056
|
-
marginTop: "10px",
|
|
4057
|
-
},
|
|
4058
|
-
DescriptionText: {
|
|
4059
|
-
color: "var(--sl-color-neutral-500)",
|
|
4060
|
-
},
|
|
4061
|
-
BoldText: {
|
|
4062
|
-
fontWeight: "bold",
|
|
4063
|
-
},
|
|
4064
|
-
SecondaryBtn: {
|
|
4065
|
-
"&::part(base)": {
|
|
4066
|
-
color: "var(--sl-color-gray-800) !important",
|
|
4067
|
-
},
|
|
4068
|
-
},
|
|
4069
|
-
ErrorAlertContainer: {
|
|
4070
|
-
"&::part(base)": {
|
|
4071
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
4072
|
-
borderTop: "none",
|
|
4073
|
-
padding: "0 16px",
|
|
4074
|
-
},
|
|
4075
|
-
"& sl-icon::part(base)": {
|
|
4076
|
-
color: "var(--sl-color-danger-500)",
|
|
4077
|
-
},
|
|
4078
|
-
},
|
|
4079
|
-
InfoAlert: {
|
|
4080
|
-
"&::part(base)": {
|
|
4081
|
-
backgroundColor: "transparent",
|
|
4082
|
-
borderTop: "none",
|
|
4083
|
-
padding: "0px",
|
|
4084
|
-
marginBottom: "16px",
|
|
4085
|
-
border: "none",
|
|
4086
|
-
},
|
|
4087
|
-
"&::part(message)": {
|
|
4088
|
-
display: "flex",
|
|
4089
|
-
alignItems: "center",
|
|
4090
|
-
justifyContent: "flex-start",
|
|
4091
|
-
padding: "10px",
|
|
4092
|
-
height: "max-content",
|
|
4093
|
-
},
|
|
4094
|
-
"& sl-icon::part(base)": {
|
|
4095
|
-
color: "var(--sl-color-sky-500)",
|
|
4096
|
-
},
|
|
4097
|
-
},
|
|
4098
|
-
Container: {
|
|
4099
|
-
width: "100%",
|
|
4100
|
-
display: "flex",
|
|
4101
|
-
justifyContent: "flex-start",
|
|
4102
|
-
flexDirection: "column",
|
|
4103
|
-
gap: "16px",
|
|
4104
|
-
},
|
|
4105
|
-
Link: {
|
|
4106
|
-
color: "var(--sl-color-sky-500)",
|
|
4107
|
-
textDecoration: "none",
|
|
4108
|
-
"&:visited": {
|
|
4109
|
-
color: "var(--sl-color-sky-500)",
|
|
4110
|
-
},
|
|
4111
|
-
"&:hover": {
|
|
4112
|
-
textDecoration: "underline",
|
|
4113
|
-
},
|
|
4114
|
-
},
|
|
4115
|
-
};
|
|
4116
|
-
const sheet$f = JSS.createStyleSheet(style$f);
|
|
4117
|
-
const styleString$f = sheet$f.toString();
|
|
4118
|
-
const vanillaStyle$a = `
|
|
4119
|
-
:host{
|
|
4120
|
-
display: block;
|
|
4121
|
-
}
|
|
4122
|
-
* {
|
|
4123
|
-
margin: 0;
|
|
4124
|
-
padding: 0;
|
|
4125
|
-
box-sizing: border-box;
|
|
4126
|
-
}
|
|
4127
|
-
|
|
4128
|
-
p {
|
|
4129
|
-
line-height: 18px;
|
|
4130
|
-
color: var(--sl-color-gray-800);
|
|
4131
|
-
font-size: var(--sl-font-size-small);
|
|
4132
|
-
}
|
|
4133
|
-
|
|
4134
|
-
a {
|
|
4135
|
-
cursor: pointer;
|
|
4136
|
-
}
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
`;
|
|
4140
|
-
const DocusignFormView = (props) => {
|
|
4141
|
-
var _a, _b;
|
|
4142
|
-
const { states, states: { formState, documentType }, callbacks, text, } = props;
|
|
4143
|
-
const { classes } = sheet$f;
|
|
4144
|
-
return (index.h("div", { class: classes.Container },
|
|
4145
|
-
index.h("style", { type: "text/css" },
|
|
4146
|
-
styleString$f,
|
|
4147
|
-
vanillaStyle$a),
|
|
4148
|
-
index.h("div", { class: classes.TextContainer },
|
|
4149
|
-
index.h("div", null,
|
|
4150
|
-
index.h("p", null, text.formStep),
|
|
4151
|
-
index.h("h3", null, text.taxForm))),
|
|
4152
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "warning", open: true, class: sheet$f.classes.ErrorAlertContainer },
|
|
4153
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4154
|
-
index.h("strong", null, text.error.generalTitle),
|
|
4155
|
-
index.h("br", null),
|
|
4156
|
-
text.error.generalDescription)),
|
|
4157
|
-
index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType })),
|
|
4158
|
-
index.h("p", null,
|
|
4159
|
-
global.intl.formatMessage({
|
|
4160
|
-
id: "tax-form-description",
|
|
4161
|
-
defaultMessage: text.taxFormDescription,
|
|
4162
|
-
}, { documentType }),
|
|
4163
|
-
" ",
|
|
4164
|
-
index.h("a", { onClick: callbacks.onShowDocumentType, class: classes.Link }, text.notBasedInUS)),
|
|
4165
|
-
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
|
|
4166
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
4167
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
4168
|
-
text.banner),
|
|
4169
|
-
index.h("slot", { name: "docusign-iframe" }),
|
|
4170
|
-
index.h("div", null,
|
|
4171
|
-
index.h("p", { class: classes.BoldText }, text.checkboxLabel),
|
|
4172
|
-
index.h("sl-checkbox", { disabled: states.disabled, checked: formState.completedTaxForm, "onSl-change": callbacks.toggleFormSubmitted }, text.checkboxDescription),
|
|
4173
|
-
((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.formSubmission) && (index.h("p", { class: classes.ErrorText }, text.error.formSubmission))),
|
|
4174
|
-
index.h("div", { class: classes.BtnContainer },
|
|
4175
|
-
index.h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, submit: true, onClick: callbacks.onSubmit, exportparts: "base: primarybutton-base" }, text.submitButton),
|
|
4176
|
-
index.h("sl-button", { class: classes.SecondaryBtn, type: "text", loading: states.loading, disabled: states.loading, onClick: () => {
|
|
4177
|
-
callbacks.onBack();
|
|
4178
|
-
}, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
4179
|
-
};
|
|
4180
|
-
|
|
4181
|
-
const statusMap = {
|
|
4182
|
-
pending: "warning",
|
|
4183
|
-
upcoming: "success",
|
|
4184
|
-
"next payout": "success",
|
|
4185
|
-
};
|
|
4186
|
-
const style$g = {
|
|
4187
|
-
Container: {
|
|
4188
|
-
display: "grid",
|
|
4189
|
-
gridTemplateColumns: "1fr",
|
|
4190
|
-
gridGap: "var(--sl-spacing-large)",
|
|
4191
|
-
background: "var(--sl-color-neutral-0)",
|
|
4192
|
-
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
4193
|
-
borderRadius: "4px",
|
|
4194
|
-
padding: "var(--sl-spacing-large)",
|
|
4195
|
-
minHeight: "150px",
|
|
4196
|
-
border: "1px solid var(--sl-color-gray-200)",
|
|
4197
|
-
},
|
|
4198
|
-
StatusContainer: {
|
|
4199
|
-
display: "flex",
|
|
4200
|
-
justifyContent: "space-between",
|
|
4201
|
-
alignItems: "center",
|
|
4202
|
-
},
|
|
4203
|
-
MainCurrencyLabel: {
|
|
4204
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
4205
|
-
color: "var(--sl-color-gray-500)",
|
|
4206
|
-
},
|
|
4207
|
-
MainCurrency: {
|
|
4208
|
-
margin: 0,
|
|
4209
|
-
fontSize: "32px",
|
|
4210
|
-
width: "auto",
|
|
4211
|
-
},
|
|
4212
|
-
SubduedRegularText: {
|
|
4213
|
-
fontSize: "var(--sl-font-size-small)",
|
|
4214
|
-
color: "var(--sl-color-gray-500)",
|
|
4215
|
-
margin: 0,
|
|
4216
|
-
width: "auto",
|
|
4217
|
-
},
|
|
4218
|
-
CurrenciesContainer: {
|
|
4219
|
-
display: "grid",
|
|
4220
|
-
width: "auto",
|
|
4221
|
-
gridTemplateColumns: "1fr 1fr 1fr",
|
|
4222
|
-
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
4223
|
-
paddingTop: "var(--sq-spacing-xx-small)",
|
|
4224
|
-
"& > :not(:last-child)": {
|
|
4225
|
-
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
4226
|
-
},
|
|
4227
|
-
"& > :nth-child(3)": {
|
|
4228
|
-
border: "none",
|
|
4229
|
-
},
|
|
4230
|
-
},
|
|
4231
|
-
CurrencyContainer: {
|
|
4232
|
-
paddingRight: "var(--sl-spacing-small)",
|
|
4233
|
-
gap: "var(--sl-spacing-small)",
|
|
4234
|
-
},
|
|
4235
|
-
SubCurrencyText: {
|
|
4236
|
-
fontWeight: "var(--sl-font-weight-bold)",
|
|
4237
|
-
fontSize: "var(--sl-font-size-large)",
|
|
4238
|
-
margin: "0",
|
|
4239
|
-
},
|
|
4240
|
-
W9Container: {
|
|
4241
|
-
paddingTop: "var(--sl-spacing-large)",
|
|
4242
|
-
borderTop: "1px solid var(--sl-color-gray-200)",
|
|
4243
|
-
},
|
|
4244
|
-
SkeletonOne: {
|
|
4245
|
-
width: "25%",
|
|
4246
|
-
height: "16px",
|
|
4247
|
-
},
|
|
4248
|
-
SkeletonTwo: {
|
|
4249
|
-
width: "25%",
|
|
4250
|
-
height: "24px",
|
|
4251
|
-
},
|
|
4252
|
-
SkeletonThree: {
|
|
4253
|
-
width: "50%",
|
|
4254
|
-
height: "34px",
|
|
4255
|
-
},
|
|
4256
|
-
};
|
|
4257
|
-
function PayoutDetailsCardView(props) {
|
|
4258
|
-
var _a;
|
|
4259
|
-
const sheet = JSS.createStyleSheet(style$g);
|
|
4260
|
-
const styleString = sheet.toString();
|
|
4261
|
-
const { classes } = sheet;
|
|
4262
|
-
const currencyList = (currencies) => {
|
|
4263
|
-
return (index.h("div", { class: classes.CurrenciesContainer },
|
|
4264
|
-
" ", currencies === null || currencies === void 0 ? void 0 :
|
|
4265
|
-
currencies.map((currency) => {
|
|
4266
|
-
return (index.h("div", { class: classes.CurrencyContainer },
|
|
4267
|
-
index.h("p", { class: classes.SubCurrencyText }, currency === null || currency === void 0 ? void 0 :
|
|
4268
|
-
currency.amountText, currency === null || currency === void 0 ? void 0 :
|
|
4269
|
-
currency.currencyText)));
|
|
4270
|
-
}),
|
|
4271
|
-
" "));
|
|
4272
|
-
};
|
|
4273
|
-
const { loading, mainCurrency, status, otherCurrencies, otherCurrenciesText, pendingStatusBadgeText, upcomingStatusBadgeText, nextPayoutStatusBadgeText, pendingDetailedStatusText, upcomingDetailedStatusText, nextPayoutDetailedStatusText, w9Pending, w9PendingText, empty, hasDatePending, hasW9Pending, } = props;
|
|
4274
|
-
const badgeText = {
|
|
4275
|
-
pending: pendingStatusBadgeText,
|
|
4276
|
-
upcoming: upcomingStatusBadgeText,
|
|
4277
|
-
"next payout": nextPayoutStatusBadgeText,
|
|
4278
|
-
};
|
|
4279
|
-
const statusText = {
|
|
4280
|
-
pending: pendingDetailedStatusText,
|
|
4281
|
-
upcoming: upcomingDetailedStatusText,
|
|
4282
|
-
"next payout": nextPayoutDetailedStatusText,
|
|
4283
|
-
};
|
|
4284
|
-
return (index.h("div", null,
|
|
4285
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
4286
|
-
index.h("div", { class: classes.Container },
|
|
4287
|
-
loading ? (index.h("div", { class: classes.StatusContainer },
|
|
4288
|
-
index.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
4289
|
-
" ",
|
|
4290
|
-
index.h("sl-skeleton", { class: classes.SkeletonTwo }))) : (index.h("div", { class: classes.StatusContainer },
|
|
4291
|
-
index.h("p", { class: classes.SubduedRegularText }, empty && status === "pending"
|
|
4292
|
-
? ""
|
|
4293
|
-
: status !== "pending"
|
|
4294
|
-
? statusText[status]
|
|
4295
|
-
: hasDatePending
|
|
4296
|
-
? statusText["pending"]
|
|
4297
|
-
: w9PendingText),
|
|
4298
|
-
index.h("sl-badge", { pill: true, type: statusMap[status] }, badgeText[status]))),
|
|
4299
|
-
loading ? (index.h("sl-skeleton", { class: classes.SkeletonThree })) : empty ? (index.h("h1", { class: classes.MainCurrency }, "No rewards")) : (index.h("h1", { class: classes.MainCurrency },
|
|
4300
|
-
hasDatePending || status !== "pending"
|
|
4301
|
-
? mainCurrency === null || mainCurrency === void 0 ? void 0 : mainCurrency.amountText : (_a = w9Pending === null || w9Pending === void 0 ? void 0 : w9Pending[0]) === null || _a === void 0 ? void 0 : _a.amountText,
|
|
4302
|
-
" ",
|
|
4303
|
-
mainCurrency.currencyText)),
|
|
4304
|
-
otherCurrencies !== undefined &&
|
|
4305
|
-
otherCurrencies !== false &&
|
|
4306
|
-
!loading && (index.h("div", null,
|
|
4307
|
-
index.h("p", { class: classes.SubduedRegularText, style: { fontSize: "var(--sl-font-size-x-small)" } },
|
|
4308
|
-
"+ ",
|
|
4309
|
-
otherCurrenciesText),
|
|
4310
|
-
currencyList(otherCurrencies))),
|
|
4311
|
-
hasW9Pending && status === "pending" && hasDatePending && !loading && (index.h("div", { class: classes.W9Container },
|
|
4312
|
-
index.h("p", { class: classes.SubduedRegularText }, w9PendingText),
|
|
4313
|
-
currencyList(w9Pending))),
|
|
4314
|
-
loading ? (index.h("sl-skeleton", { class: classes.SkeletonOne })) : (index.h("div", { style: { display: "flex", gap: "var(--sl-spacing-small)" } },
|
|
4315
|
-
index.h("span", null, "Card ***2381"),
|
|
4316
|
-
index.h("span", null, "Toronto Dominion Bank"))))));
|
|
4317
|
-
}
|
|
4318
|
-
|
|
4319
|
-
const style$h = {
|
|
4320
|
-
WarningAlertContainer: {
|
|
4321
|
-
"&::part(base)": {
|
|
4322
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
4323
|
-
borderTop: "none",
|
|
4324
|
-
},
|
|
4325
|
-
},
|
|
4326
|
-
ExpiringSoonAlertContainer: {
|
|
4327
|
-
"&::part(base)": {
|
|
4328
|
-
backgroundColor: "var(--sl-color-yellow-100)",
|
|
4329
|
-
borderTop: "none",
|
|
4330
|
-
},
|
|
4331
|
-
},
|
|
4332
|
-
BankingInformationContainer: {
|
|
4333
|
-
maxWidth: "700px",
|
|
4334
|
-
},
|
|
4335
|
-
TaxDocumentsContainer: {
|
|
4336
|
-
marginTop: "var(--sl-spacing-xx-large)",
|
|
4337
|
-
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
4338
|
-
},
|
|
4339
|
-
TaxDocumentsHeaderContainer: {
|
|
4340
|
-
marginTop: "var(--sl-spacing-x-large)",
|
|
4341
|
-
},
|
|
4342
|
-
StatusContainer: {
|
|
4343
|
-
display: "flex",
|
|
4344
|
-
flexDirection: "column",
|
|
4345
|
-
gap: "var(--sl-spacing-x-small)",
|
|
4346
|
-
"& h4": {
|
|
4347
|
-
margin: "0",
|
|
4348
|
-
},
|
|
4349
|
-
"& p": {
|
|
4350
|
-
margin: "0",
|
|
4351
|
-
},
|
|
4352
|
-
},
|
|
4353
|
-
TaxFormDetailsContainer: {
|
|
4354
|
-
display: "flex",
|
|
4355
|
-
gap: "var(--sl-spacing-small)",
|
|
4356
|
-
alignItems: "baseline",
|
|
4357
|
-
flexFlow: "row wrap",
|
|
4358
|
-
},
|
|
4359
|
-
BadgeContainer: {
|
|
4360
|
-
"&::part(base)": {
|
|
4361
|
-
padding: "var(--sl-spacing-x-small)",
|
|
4362
|
-
},
|
|
4363
|
-
},
|
|
4364
|
-
NewFormButton: {
|
|
4365
|
-
marginTop: "var(--sl-spacing-medium)",
|
|
4366
|
-
maxWidth: "179px",
|
|
4367
|
-
},
|
|
4368
|
-
EditBankDetailsButton: {
|
|
4369
|
-
marginTop: "var(--sl-spacing-x-large)",
|
|
4370
|
-
},
|
|
4371
|
-
SkeletonOne: {
|
|
4372
|
-
width: "15%",
|
|
4373
|
-
height: "10px",
|
|
4374
|
-
},
|
|
4375
|
-
SkeletonTwo: {
|
|
4376
|
-
width: "25%",
|
|
4377
|
-
height: "24px",
|
|
4378
|
-
top: "var(--sl-spacing-small)",
|
|
4379
|
-
marginBottom: "var(--sl-spacing-x-small)",
|
|
4380
|
-
},
|
|
4381
|
-
TaxSectionSkeletonContainer: {
|
|
4382
|
-
display: "flex",
|
|
4383
|
-
flexDirection: "column",
|
|
4384
|
-
},
|
|
4385
|
-
TaxDocSubtext: {
|
|
4386
|
-
margin: "0",
|
|
4387
|
-
color: "var(--sl-color-neutral-500)",
|
|
4388
|
-
lineHeight: "var(--sl-spacing-medium)",
|
|
4389
|
-
},
|
|
4390
|
-
};
|
|
4391
|
-
const sheet$g = JSS.createStyleSheet(style$h);
|
|
4392
|
-
const styleString$g = sheet$g.toString();
|
|
4393
|
-
const TaxDocumentSubmittedView = (props) => {
|
|
4394
|
-
var _a;
|
|
4395
|
-
const { states, text, callbacks } = props;
|
|
4396
|
-
// AL: Not sure what states will be yet, placeholder for now
|
|
4397
|
-
const testDetailsCardProps = {
|
|
4398
|
-
loading: states.loading,
|
|
4399
|
-
empty: false,
|
|
4400
|
-
otherCurrencies: false,
|
|
4401
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4402
|
-
status: "upcoming",
|
|
4403
|
-
pendingStatusBadgeText: "Pending",
|
|
4404
|
-
upcomingStatusBadgeText: "Upcoming",
|
|
4405
|
-
nextPayoutStatusBadgeText: "Next payout",
|
|
4406
|
-
pendingDetailedStatusText: "Check rewards table for available date",
|
|
4407
|
-
upcomingDetailedStatusText: "November 1, 2022",
|
|
4408
|
-
nextPayoutDetailedStatusText: "November 1, 2022",
|
|
4409
|
-
otherCurrenciesText: "other currencies",
|
|
4410
|
-
w9PendingText: "Awaiting W-9 tax form",
|
|
4411
|
-
w9Pending: undefined,
|
|
4412
|
-
hasDatePending: true,
|
|
4413
|
-
hasW9Pending: false,
|
|
4414
|
-
};
|
|
4415
|
-
const statusMap = {
|
|
4416
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$g.classes.TaxFormDetailsContainer },
|
|
4417
|
-
index.h("sl-badge", { type: "warning", pill: true, class: sheet$g.classes.BadgeContainer }, text.statusTextNotVerified),
|
|
4418
|
-
index.h("p", null, global.intl.formatMessage({
|
|
4419
|
-
id: `badgeTextAwaitingReview`,
|
|
4420
|
-
defaultMessage: text.badgeTextAwaitingReview,
|
|
4421
|
-
}, {
|
|
4422
|
-
dateSubmitted: states.dateSubmitted,
|
|
4423
|
-
})))),
|
|
4424
|
-
ACTIVE: (index.h("div", { class: sheet$g.classes.TaxFormDetailsContainer },
|
|
4425
|
-
index.h("sl-badge", { type: "success", pill: true, class: sheet$g.classes.BadgeContainer }, text.statusTextActive),
|
|
4426
|
-
index.h("p", null,
|
|
4427
|
-
global.intl.formatMessage({
|
|
4428
|
-
id: `badgeTextSubmittedOn`,
|
|
4429
|
-
defaultMessage: text.badgeTextSubmittedOn,
|
|
4430
|
-
}, {
|
|
4431
|
-
dateSubmitted: states.dateSubmitted,
|
|
4432
|
-
}),
|
|
4433
|
-
global.intl.formatMessage({
|
|
4434
|
-
id: `badgeTextExpiringSoon`,
|
|
4435
|
-
defaultMessage: text.badgeTextExpiringSoon,
|
|
4436
|
-
}, {
|
|
4437
|
-
dateExpired: states.dateExpired,
|
|
4438
|
-
})))),
|
|
4439
|
-
NOT_ACTIVE: (index.h("div", { class: sheet$g.classes.TaxFormDetailsContainer },
|
|
4440
|
-
index.h("sl-badge", { type: "danger", pill: true, class: sheet$g.classes.BadgeContainer }, text.statusTextNotActive),
|
|
4441
|
-
index.h("p", null, text.invalidForm))),
|
|
4442
|
-
EXPIRED: (index.h("div", { class: sheet$g.classes.TaxFormDetailsContainer },
|
|
4443
|
-
index.h("sl-badge", { type: "danger", pill: true, class: sheet$g.classes.BadgeContainer }, text.statusTextExpired),
|
|
4444
|
-
index.h("p", null, global.intl.formatMessage({
|
|
4445
|
-
id: `badgeTextExpiredOn`,
|
|
4446
|
-
defaultMessage: text.badgeTextExpiredOn,
|
|
4447
|
-
}, {
|
|
4448
|
-
dateExpired: states.dateExpired,
|
|
4449
|
-
})))),
|
|
4450
|
-
};
|
|
4451
|
-
const alertMap = {
|
|
4452
|
-
NOT_ACTIVE: (index.h("sl-alert", { type: "danger", open: true, class: sheet$g.classes.WarningAlertContainer },
|
|
4453
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4454
|
-
index.h("strong", null, global.intl.formatMessage({
|
|
4455
|
-
id: `taxAlertHeaderNotActive`,
|
|
4456
|
-
defaultMessage: text.taxAlertHeaderNotActive,
|
|
4457
|
-
}, {
|
|
4458
|
-
documentType: states.documentType,
|
|
4459
|
-
})),
|
|
4460
|
-
index.h("br", null),
|
|
4461
|
-
global.intl.formatMessage({
|
|
4462
|
-
id: `taxAlertMessage`,
|
|
4463
|
-
defaultMessage: text.taxAlertMessage,
|
|
4464
|
-
}, {
|
|
4465
|
-
documentType: states.documentType,
|
|
4466
|
-
}))),
|
|
4467
|
-
EXPIRING_SOON: (index.h("sl-alert", { type: "warning", open: true, class: sheet$g.classes.ExpiringSoonAlertContainer },
|
|
4468
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4469
|
-
index.h("strong", null, global.intl.formatMessage({
|
|
4470
|
-
id: `taxAlertHeaderExpiringSoon`,
|
|
4471
|
-
defaultMessage: text.taxAlertHeaderExpiringSoon,
|
|
4472
|
-
}, {
|
|
4473
|
-
documentType: states.documentType,
|
|
4474
|
-
dateExpired: states.dateExpired,
|
|
4475
|
-
})),
|
|
4476
|
-
index.h("br", null),
|
|
4477
|
-
global.intl.formatMessage({
|
|
4478
|
-
id: `taxAlertMessageExpiringSoon`,
|
|
4479
|
-
defaultMessage: text.taxAlertMessageExpiringSoon,
|
|
4480
|
-
}, {
|
|
4481
|
-
documentType: states.documentType,
|
|
4482
|
-
}))),
|
|
4483
|
-
EXPIRED: (index.h("sl-alert", { type: "danger", open: true, class: sheet$g.classes.WarningAlertContainer },
|
|
4484
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4485
|
-
index.h("strong", null, global.intl.formatMessage({
|
|
4486
|
-
id: `taxAlertHeaderExpiredOn`,
|
|
4487
|
-
defaultMessage: text.taxAlertHeaderExpiredOn,
|
|
4488
|
-
}, {
|
|
4489
|
-
documentType: states.documentType,
|
|
4490
|
-
})),
|
|
4491
|
-
index.h("br", null),
|
|
4492
|
-
global.intl.formatMessage({
|
|
4493
|
-
id: `taxAlertMessage`,
|
|
4494
|
-
defaultMessage: text.taxAlertMessage,
|
|
4495
|
-
}, {
|
|
4496
|
-
documentType: states.documentType,
|
|
4497
|
-
}))),
|
|
4498
|
-
};
|
|
4499
|
-
return (index.h("div", null,
|
|
4500
|
-
index.h("div", null,
|
|
4501
|
-
index.h("style", { type: "text/css" }, styleString$g),
|
|
4502
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "danger", open: true, class: sheet$g.classes.WarningAlertContainer },
|
|
4503
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4504
|
-
index.h("strong", null, text.error.generalTitle),
|
|
4505
|
-
index.h("br", null),
|
|
4506
|
-
text.error.generalDescription)),
|
|
4507
|
-
(states.status === "NOT_ACTIVE" || states.status === "EXPIRED") &&
|
|
4508
|
-
alertMap[states.status],
|
|
4509
|
-
states.status === "ACTIVE" &&
|
|
4510
|
-
states.expiresSoon &&
|
|
4511
|
-
alertMap.EXPIRING_SOON,
|
|
4512
|
-
index.h("div", null,
|
|
4513
|
-
index.h("h3", null, text.bankingInformationSectionHeader),
|
|
4514
|
-
index.h("div", { class: sheet$g.classes.BankingInformationContainer },
|
|
4515
|
-
index.h(PayoutDetailsCardView, Object.assign({}, testDetailsCardProps)),
|
|
4516
|
-
index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$g.classes.EditBankDetailsButton }, "Edit Bank Details"))),
|
|
4517
|
-
index.h("div", { class: sheet$g.classes.TaxDocumentsContainer },
|
|
4518
|
-
index.h("h3", { class: sheet$g.classes.TaxDocumentsHeaderContainer }, text.taxDocumentSectionHeader),
|
|
4519
|
-
index.h("div", null,
|
|
4520
|
-
states.loading ? (index.h("div", { class: sheet$g.classes.TaxSectionSkeletonContainer },
|
|
4521
|
-
index.h("sl-skeleton", { class: sheet$g.classes.SkeletonOne }),
|
|
4522
|
-
index.h("sl-skeleton", { class: sheet$g.classes.SkeletonTwo }))) : (index.h("span", { class: sheet$g.classes.TaxFormDetailsContainer }, states.noFormNeeded ? (index.h("p", { class: sheet$g.classes.TaxDocSubtext }, text.noFormNeededSubtext)) : (index.h("div", { class: sheet$g.classes.StatusContainer },
|
|
4523
|
-
index.h("h4", null, global.intl.formatMessage({
|
|
4524
|
-
id: "section-subheader",
|
|
4525
|
-
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
4526
|
-
}, {
|
|
4527
|
-
documentType: states.documentType,
|
|
4528
|
-
})),
|
|
4529
|
-
statusMap[states.status])))),
|
|
4530
|
-
states.noFormNeeded ? ("") : (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$g.classes.NewFormButton }, text.newFormButton)))))));
|
|
4531
|
-
};
|
|
4532
|
-
|
|
4533
|
-
const style$i = {
|
|
4534
4023
|
FormWrapper: {},
|
|
4535
4024
|
ErrorInput: {
|
|
4536
4025
|
"&::part(base)": {
|
|
@@ -4601,9 +4090,9 @@ const style$i = {
|
|
|
4601
4090
|
},
|
|
4602
4091
|
},
|
|
4603
4092
|
};
|
|
4604
|
-
const sheet$
|
|
4605
|
-
const styleString$
|
|
4606
|
-
const vanillaStyle$
|
|
4093
|
+
const sheet$f = JSS.createStyleSheet(style$f);
|
|
4094
|
+
const styleString$f = sheet$f.toString();
|
|
4095
|
+
const vanillaStyle$a = `
|
|
4607
4096
|
:host{
|
|
4608
4097
|
display: block;
|
|
4609
4098
|
}
|
|
@@ -4628,22 +4117,22 @@ const vanillaStyle$b = `
|
|
|
4628
4117
|
const UserInfoFormView = (props) => {
|
|
4629
4118
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
4630
4119
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
4631
|
-
const { classes } = sheet$
|
|
4120
|
+
const { classes } = sheet$f;
|
|
4632
4121
|
console.log({ formState, data });
|
|
4633
4122
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
4634
4123
|
index.h("style", { type: "text/css" },
|
|
4635
|
-
styleString$
|
|
4636
|
-
vanillaStyle$
|
|
4124
|
+
styleString$f,
|
|
4125
|
+
vanillaStyle$a),
|
|
4637
4126
|
index.h("div", { class: classes.TextContainer },
|
|
4638
4127
|
index.h("div", null,
|
|
4639
4128
|
index.h("p", null, text.formStep),
|
|
4640
4129
|
index.h("h3", null, text.personalInformation))),
|
|
4641
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "warning", open: true, class: sheet$
|
|
4130
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { type: "warning", open: true, class: sheet$f.classes.AlertContainer },
|
|
4642
4131
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4643
4132
|
index.h("strong", null, text.error.generalTitle),
|
|
4644
4133
|
index.h("br", null),
|
|
4645
4134
|
text.error.generalDescription)),
|
|
4646
|
-
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
4135
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$f.classes.PartnerAlertContainer },
|
|
4647
4136
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
4648
4137
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
4649
4138
|
index.h("br", null),
|
|
@@ -4683,12 +4172,12 @@ const UserInfoFormView = (props) => {
|
|
|
4683
4172
|
text.taxAndBankingCollection),
|
|
4684
4173
|
index.h("sl-checkbox", { exportparts: "label: input-label", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
4685
4174
|
e.target.value = e.target.checked;
|
|
4686
|
-
}, disabled: states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, text.allowBankingCollection),
|
|
4175
|
+
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, text.allowBankingCollection),
|
|
4687
4176
|
((_j = formState.errors) === null || _j === void 0 ? void 0 : _j.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, text.error.allowBankingCollection)))),
|
|
4688
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled, loading: states.loading, submit: true, exportparts: "base: primarybutton-base" }, text.submitButton)))));
|
|
4177
|
+
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, loading: states.loading, submit: true, exportparts: "base: primarybutton-base" }, text.submitButton)))));
|
|
4689
4178
|
};
|
|
4690
4179
|
|
|
4691
|
-
const style$
|
|
4180
|
+
const style$g = {
|
|
4692
4181
|
Container: {
|
|
4693
4182
|
width: "100%",
|
|
4694
4183
|
},
|
|
@@ -4717,9 +4206,9 @@ const style$j = {
|
|
|
4717
4206
|
},
|
|
4718
4207
|
},
|
|
4719
4208
|
};
|
|
4720
|
-
const sheet$
|
|
4721
|
-
const styleString$
|
|
4722
|
-
const vanillaStyle$
|
|
4209
|
+
const sheet$g = JSS.createStyleSheet(style$g);
|
|
4210
|
+
const styleString$g = sheet$g.toString();
|
|
4211
|
+
const vanillaStyle$b = `
|
|
4723
4212
|
:host{
|
|
4724
4213
|
display: block;
|
|
4725
4214
|
}
|
|
@@ -4732,13 +4221,13 @@ const vanillaStyle$c = `
|
|
|
4732
4221
|
const OtherRegionSlotView = (props) => {
|
|
4733
4222
|
var _a, _b, _c;
|
|
4734
4223
|
const { states, states: { formState }, text, } = props;
|
|
4735
|
-
const { classes } = sheet$
|
|
4224
|
+
const { classes } = sheet$g;
|
|
4736
4225
|
console.log("regions", { formState });
|
|
4737
4226
|
return (index.h("div", { style: states.hide ? { display: "none" } : {} },
|
|
4738
4227
|
index.h("form", { class: classes.Container },
|
|
4739
4228
|
index.h("style", { type: "text/css" },
|
|
4740
|
-
styleString$
|
|
4741
|
-
vanillaStyle$
|
|
4229
|
+
styleString$g,
|
|
4230
|
+
vanillaStyle$b),
|
|
4742
4231
|
index.h("hr", { class: classes.HR }),
|
|
4743
4232
|
index.h("div", { class: classes.InputContainer },
|
|
4744
4233
|
index.h("sl-select", Object.assign({ required: true, class: classes.Input, value: formState.countryCode, exportparts: "label: input-label", label: text.selectedRegion, disabled: states.loading }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.selectedRegion) && {
|
|
@@ -4754,13 +4243,13 @@ const OtherRegionSlotView = (props) => {
|
|
|
4754
4243
|
const IndirectDetailsSlotView = (props) => {
|
|
4755
4244
|
var _a, _b;
|
|
4756
4245
|
const { states, states: { formState }, text, } = props;
|
|
4757
|
-
const { classes } = sheet$
|
|
4246
|
+
const { classes } = sheet$g;
|
|
4758
4247
|
console.log("regions", { formState });
|
|
4759
4248
|
return (index.h("div", { style: states.hide ? { display: "none" } : {} },
|
|
4760
4249
|
index.h("form", { class: classes.Container },
|
|
4761
4250
|
index.h("style", { type: "text/css" },
|
|
4762
|
-
styleString$
|
|
4763
|
-
vanillaStyle$
|
|
4251
|
+
styleString$g,
|
|
4252
|
+
vanillaStyle$b),
|
|
4764
4253
|
index.h("hr", { class: classes.HR }),
|
|
4765
4254
|
index.h("div", { class: classes.InputContainer },
|
|
4766
4255
|
index.h("sl-select", Object.assign({ required: true, value: formState.province, exportparts: "label: input-label", class: classes.Input, label: text.province, disabled: states.loading }, (((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.province) && {
|
|
@@ -4787,6 +4276,144 @@ const IndirectDetailsSlotView = (props) => {
|
|
|
4787
4276
|
index.h("hr", { class: classes.HR }))));
|
|
4788
4277
|
};
|
|
4789
4278
|
|
|
4279
|
+
const statusMap = {
|
|
4280
|
+
pending: "warning",
|
|
4281
|
+
upcoming: "success",
|
|
4282
|
+
"next payout": "success",
|
|
4283
|
+
};
|
|
4284
|
+
const style$h = {
|
|
4285
|
+
Container: {
|
|
4286
|
+
display: "grid",
|
|
4287
|
+
gridTemplateColumns: "1fr",
|
|
4288
|
+
gridGap: "var(--sl-spacing-large)",
|
|
4289
|
+
background: "var(--sl-color-neutral-0)",
|
|
4290
|
+
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
4291
|
+
borderRadius: "4px",
|
|
4292
|
+
padding: "var(--sl-spacing-large)",
|
|
4293
|
+
minHeight: "150px",
|
|
4294
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
4295
|
+
},
|
|
4296
|
+
StatusContainer: {
|
|
4297
|
+
display: "flex",
|
|
4298
|
+
justifyContent: "space-between",
|
|
4299
|
+
alignItems: "center",
|
|
4300
|
+
},
|
|
4301
|
+
MainCurrencyLabel: {
|
|
4302
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
4303
|
+
color: "var(--sl-color-gray-500)",
|
|
4304
|
+
},
|
|
4305
|
+
MainCurrency: {
|
|
4306
|
+
margin: 0,
|
|
4307
|
+
fontSize: "32px",
|
|
4308
|
+
width: "auto",
|
|
4309
|
+
},
|
|
4310
|
+
SubduedRegularText: {
|
|
4311
|
+
fontSize: "var(--sl-font-size-small)",
|
|
4312
|
+
color: "var(--sl-color-gray-500)",
|
|
4313
|
+
margin: 0,
|
|
4314
|
+
width: "auto",
|
|
4315
|
+
},
|
|
4316
|
+
CurrenciesContainer: {
|
|
4317
|
+
display: "grid",
|
|
4318
|
+
width: "auto",
|
|
4319
|
+
gridTemplateColumns: "1fr 1fr 1fr",
|
|
4320
|
+
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
4321
|
+
paddingTop: "var(--sq-spacing-xx-small)",
|
|
4322
|
+
"& > :not(:last-child)": {
|
|
4323
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
4324
|
+
},
|
|
4325
|
+
"& > :nth-child(3)": {
|
|
4326
|
+
border: "none",
|
|
4327
|
+
},
|
|
4328
|
+
},
|
|
4329
|
+
CurrencyContainer: {
|
|
4330
|
+
paddingRight: "var(--sl-spacing-small)",
|
|
4331
|
+
gap: "var(--sl-spacing-small)",
|
|
4332
|
+
},
|
|
4333
|
+
SubCurrencyText: {
|
|
4334
|
+
fontWeight: "var(--sl-font-weight-bold)",
|
|
4335
|
+
fontSize: "var(--sl-font-size-large)",
|
|
4336
|
+
margin: "0",
|
|
4337
|
+
},
|
|
4338
|
+
W9Container: {
|
|
4339
|
+
paddingTop: "var(--sl-spacing-large)",
|
|
4340
|
+
borderTop: "1px solid var(--sl-color-gray-200)",
|
|
4341
|
+
},
|
|
4342
|
+
SkeletonOne: {
|
|
4343
|
+
width: "25%",
|
|
4344
|
+
height: "16px",
|
|
4345
|
+
},
|
|
4346
|
+
SkeletonTwo: {
|
|
4347
|
+
width: "25%",
|
|
4348
|
+
height: "24px",
|
|
4349
|
+
},
|
|
4350
|
+
SkeletonThree: {
|
|
4351
|
+
width: "50%",
|
|
4352
|
+
height: "34px",
|
|
4353
|
+
},
|
|
4354
|
+
};
|
|
4355
|
+
function PayoutDetailsCardView(props) {
|
|
4356
|
+
var _a;
|
|
4357
|
+
const sheet = JSS.createStyleSheet(style$h);
|
|
4358
|
+
const styleString = sheet.toString();
|
|
4359
|
+
const { classes } = sheet;
|
|
4360
|
+
const currencyList = (currencies) => {
|
|
4361
|
+
return (index.h("div", { class: classes.CurrenciesContainer },
|
|
4362
|
+
" ", currencies === null || currencies === void 0 ? void 0 :
|
|
4363
|
+
currencies.map((currency) => {
|
|
4364
|
+
return (index.h("div", { class: classes.CurrencyContainer },
|
|
4365
|
+
index.h("p", { class: classes.SubCurrencyText }, currency === null || currency === void 0 ? void 0 :
|
|
4366
|
+
currency.amountText, currency === null || currency === void 0 ? void 0 :
|
|
4367
|
+
currency.currencyText)));
|
|
4368
|
+
}),
|
|
4369
|
+
" "));
|
|
4370
|
+
};
|
|
4371
|
+
const { loading, mainCurrency, status, otherCurrencies, otherCurrenciesText, pendingStatusBadgeText, upcomingStatusBadgeText, nextPayoutStatusBadgeText, pendingDetailedStatusText, upcomingDetailedStatusText, nextPayoutDetailedStatusText, w9Pending, w9PendingText, empty, hasDatePending, hasW9Pending, } = props;
|
|
4372
|
+
const badgeText = {
|
|
4373
|
+
pending: pendingStatusBadgeText,
|
|
4374
|
+
upcoming: upcomingStatusBadgeText,
|
|
4375
|
+
"next payout": nextPayoutStatusBadgeText,
|
|
4376
|
+
};
|
|
4377
|
+
const statusText = {
|
|
4378
|
+
pending: pendingDetailedStatusText,
|
|
4379
|
+
upcoming: upcomingDetailedStatusText,
|
|
4380
|
+
"next payout": nextPayoutDetailedStatusText,
|
|
4381
|
+
};
|
|
4382
|
+
return (index.h("div", null,
|
|
4383
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
4384
|
+
index.h("div", { class: classes.Container },
|
|
4385
|
+
loading ? (index.h("div", { class: classes.StatusContainer },
|
|
4386
|
+
index.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
4387
|
+
" ",
|
|
4388
|
+
index.h("sl-skeleton", { class: classes.SkeletonTwo }))) : (index.h("div", { class: classes.StatusContainer },
|
|
4389
|
+
index.h("p", { class: classes.SubduedRegularText }, empty && status === "pending"
|
|
4390
|
+
? ""
|
|
4391
|
+
: status !== "pending"
|
|
4392
|
+
? statusText[status]
|
|
4393
|
+
: hasDatePending
|
|
4394
|
+
? statusText["pending"]
|
|
4395
|
+
: w9PendingText),
|
|
4396
|
+
index.h("sl-badge", { pill: true, type: statusMap[status] }, badgeText[status]))),
|
|
4397
|
+
loading ? (index.h("sl-skeleton", { class: classes.SkeletonThree })) : empty ? (index.h("h1", { class: classes.MainCurrency }, "No rewards")) : (index.h("h1", { class: classes.MainCurrency },
|
|
4398
|
+
hasDatePending || status !== "pending"
|
|
4399
|
+
? mainCurrency === null || mainCurrency === void 0 ? void 0 : mainCurrency.amountText : (_a = w9Pending === null || w9Pending === void 0 ? void 0 : w9Pending[0]) === null || _a === void 0 ? void 0 : _a.amountText,
|
|
4400
|
+
" ",
|
|
4401
|
+
mainCurrency.currencyText)),
|
|
4402
|
+
otherCurrencies !== undefined &&
|
|
4403
|
+
otherCurrencies !== false &&
|
|
4404
|
+
!loading && (index.h("div", null,
|
|
4405
|
+
index.h("p", { class: classes.SubduedRegularText, style: { fontSize: "var(--sl-font-size-x-small)" } },
|
|
4406
|
+
"+ ",
|
|
4407
|
+
otherCurrenciesText),
|
|
4408
|
+
currencyList(otherCurrencies))),
|
|
4409
|
+
hasW9Pending && status === "pending" && hasDatePending && !loading && (index.h("div", { class: classes.W9Container },
|
|
4410
|
+
index.h("p", { class: classes.SubduedRegularText }, w9PendingText),
|
|
4411
|
+
currencyList(w9Pending))),
|
|
4412
|
+
loading ? (index.h("sl-skeleton", { class: classes.SkeletonOne })) : (index.h("div", { style: { display: "flex", gap: "var(--sl-spacing-small)" } },
|
|
4413
|
+
index.h("span", null, "Card ***2381"),
|
|
4414
|
+
index.h("span", null, "Toronto Dominion Bank"))))));
|
|
4415
|
+
}
|
|
4416
|
+
|
|
4790
4417
|
function t(t,n,r){return Math.min(Math.max(t,r),n)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}}function r(r){if("string"!=typeof r)throw new n(r);if("transparent"===r.trim().toLowerCase())return [0,0,0,0];let e=r.trim();e=u.test(r)?function(t){const r=t.toLowerCase().trim(),e=o[function(t){let n=5381,r=t.length;for(;r;)n=33*n^t.charCodeAt(--r);return (n>>>0)%2341}(r)];if(!e)throw new n(t);return `#${e}`}(r):r;const f=s.exec(e);if(f){const t=Array.from(f).slice(1);return [...t.slice(0,3).map(t=>parseInt(_(t,2),16)),parseInt(_(t[3]||"f",2),16)/255]}const p=i.exec(e);if(p){const t=Array.from(p).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,16)),parseInt(t[3]||"ff",16)/255]}const z=a.exec(e);if(z){const t=Array.from(z).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,10)),parseFloat(t[3]||"1")]}const h=c.exec(e);if(h){const[e,o,_,s]=Array.from(h).slice(1).map(parseFloat);if(t(0,100,o)!==o)throw new n(r);if(t(0,100,_)!==_)throw new n(r);return [...l(e,o,_),s||1]}throw new n(r)}const e=t=>parseInt(t.replace(/_/g,""),36),o="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,n)=>{const r=e(n.substring(0,3)),o=e(n.substring(3)).toString(16);let _="";for(let t=0;t<6-o.length;t++)_+="0";return t[r]=`${_}${o}`,t},{}),_=(t,n)=>Array.from(Array(n)).map(()=>t).join(""),s=new RegExp(`^#${_("([a-f0-9])",3)}([a-f0-9])?$`,"i"),i=new RegExp(`^#${_("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),a=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),c=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,u=/^[a-z]+$/i,f=t=>Math.round(255*t),l=(t,n,r)=>{let e=r/100;if(0===n)return [e,e,e].map(f);const o=(t%360+360)%360/60,_=(1-Math.abs(2*e-1))*(n/100),s=_*(1-Math.abs(o%2-1));let i=0,a=0,c=0;o>=0&&o<1?(i=_,a=s):o>=1&&o<2?(i=s,a=_):o>=2&&o<3?(a=_,c=s):o>=3&&o<4?(a=s,c=_):o>=4&&o<5?(i=s,c=_):o>=5&&o<6&&(i=_,c=s);const u=e-_/2;return [i+u,a+u,c+u].map(f)};function p(t){const[n,e,o,_]=r(t).map((t,n)=>3===n?t:t/255),s=Math.max(n,e,o),i=Math.min(n,e,o),a=(s+i)/2;if(s===i)return [0,0,a,_];const c=s-i;return [60*(n===s?(e-o)/c+(e<o?6:0):e===s?(o-n)/c+2:(n-e)/c+4),a>.5?c/(2-s-i):c/(s+i),a,_]}function z(n,r,e,o){return `hsla(${(n%360).toFixed()}, ${t(0,100,100*r).toFixed()}%, ${t(0,100,100*e).toFixed()}%, ${parseFloat(t(0,1,o).toFixed(3))})`}
|
|
4791
4418
|
|
|
4792
4419
|
const colorScale = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
@@ -4877,7 +4504,6 @@ exports.CardFeedView = CardFeedView;
|
|
|
4877
4504
|
exports.CheckboxFieldView = CheckboxFieldView;
|
|
4878
4505
|
exports.CopyTextView = CopyTextView;
|
|
4879
4506
|
exports.CouponCodeView = CouponCodeView;
|
|
4880
|
-
exports.DocusignFormView = DocusignFormView;
|
|
4881
4507
|
exports.DropdownFieldView = DropdownFieldView;
|
|
4882
4508
|
exports.EditProfileView = EditProfileView;
|
|
4883
4509
|
exports.HeroView = HeroView;
|
|
@@ -4901,7 +4527,6 @@ exports.ShadowViewAddon = ShadowViewAddon;
|
|
|
4901
4527
|
exports.ShareButtonView = ShareButtonView;
|
|
4902
4528
|
exports.StatContainerView = StatContainerView;
|
|
4903
4529
|
exports.TaskCardView = TaskCardView;
|
|
4904
|
-
exports.TaxDocumentSubmittedView = TaxDocumentSubmittedView;
|
|
4905
4530
|
exports.UserInfoFormView = UserInfoFormView;
|
|
4906
4531
|
exports.autoColorScaleCss = autoColorScaleCss;
|
|
4907
4532
|
exports.chooseAmountFixed = chooseAmountFixed;
|