@saasquatch/mint-components 1.8.0-19 → 1.8.0-20
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-a9ce6b87.js → ShadowViewAddon-ba90f112.js} +774 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_37.cjs.entry.js → sqm-big-stat_41.cjs.entry.js} +1266 -29
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +407 -422
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +14 -3
- package/dist/collection/collection-manifest.json +5 -5
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +1 -1
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-document-type-form/sqm-document-type-form.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +8 -8
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +19 -3
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +100 -48
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +24 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-document-submitted/sqm-tax-document-submitted-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-document-submitted/sqm-tax-document-submitted.js +10 -7
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/TaxForm.stories.js +254 -212
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/defaultTextCopy.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +15 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +59 -7
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +2 -0
- package/dist/esm/{ShadowViewAddon-6b52e587.js → ShadowViewAddon-1283bcde.js} +769 -1
- package/dist/esm/data-e64fcd9b.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{sqm-big-stat_37.entry.js → sqm-big-stat_41.entry.js} +1264 -31
- package/dist/esm/sqm-stencilbook.entry.js +397 -412
- package/dist/esm/sqm-tax-and-cash.entry.js +14 -3
- package/dist/esm-es5/{ShadowViewAddon-6b52e587.js → ShadowViewAddon-1283bcde.js} +1 -1
- package/dist/esm-es5/data-e64fcd9b.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_41.entry.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-2a5a7cd7.entry.js +9 -0
- package/dist/mint-components/p-2bc57e8b.system.js +1 -1
- package/dist/mint-components/p-2d3904a6.system.entry.js +1 -0
- package/dist/mint-components/p-4f1bd1ef.system.entry.js +1 -0
- package/dist/mint-components/p-5adddae5.js +1 -1
- package/dist/mint-components/p-5c427a6f.entry.js +212 -0
- package/dist/mint-components/p-8f314d1e.system.entry.js +1 -0
- package/dist/mint-components/p-9116b12e.system.js +1 -0
- package/dist/mint-components/p-99b5f669.system.js +1 -1
- package/dist/mint-components/{p-6ed93e76.js → p-b54ca2fa.js} +23 -23
- package/dist/mint-components/p-e93ca195.entry.js +1 -0
- package/dist/types/components/tax-and-cash/sqm-document-type-form/sqm-document-type-form.d.ts +5 -2
- package/dist/types/components/tax-and-cash/sqm-document-type-form/useDocumentTypeForm.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -5
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +6 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +16 -2
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +30 -14
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +1 -2
- package/dist/types/components/tax-and-cash/sqm-tax-document-submitted/sqm-tax-document-submitted.d.ts +5 -2
- package/dist/types/components/tax-and-cash/sqm-tax-document-submitted/useTaxDocumentSubmitted.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/TaxForm.stories.d.ts +4 -3
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +14 -5
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +2 -0
- package/dist/types/components.d.ts +55 -15
- package/dist/types/global/demo.d.ts +2 -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-docusign-form-view-661e02b5.js +0 -166
- package/dist/cjs/sqm-docusign-form.cjs.entry.js +0 -239
- package/dist/cjs/sqm-indirect-tax-form-view-6dbb2763.js +0 -220
- package/dist/cjs/sqm-indirect-tax-form.cjs.entry.js +0 -360
- package/dist/cjs/sqm-tax-document-submitted-view-0070e077.js +0 -360
- package/dist/cjs/sqm-tax-document-submitted.cjs.entry.js +0 -239
- package/dist/cjs/sqm-user-info-form-view-4f02e021.js +0 -149
- package/dist/cjs/sqm-user-info-form.cjs.entry.js +0 -296
- package/dist/esm/sqm-docusign-form-view-820d7d13.js +0 -164
- package/dist/esm/sqm-docusign-form.entry.js +0 -235
- package/dist/esm/sqm-indirect-tax-form-view-91df5985.js +0 -216
- package/dist/esm/sqm-indirect-tax-form.entry.js +0 -356
- package/dist/esm/sqm-tax-document-submitted-view-b9a85ed4.js +0 -357
- package/dist/esm/sqm-tax-document-submitted.entry.js +0 -235
- package/dist/esm/sqm-user-info-form-view-aceded76.js +0 -147
- package/dist/esm/sqm-user-info-form.entry.js +0 -292
- package/dist/esm-es5/sqm-big-stat_37.entry.js +0 -1
- package/dist/esm-es5/sqm-docusign-form-view-820d7d13.js +0 -1
- package/dist/esm-es5/sqm-docusign-form.entry.js +0 -1
- package/dist/esm-es5/sqm-indirect-tax-form-view-91df5985.js +0 -1
- package/dist/esm-es5/sqm-indirect-tax-form.entry.js +0 -1
- package/dist/esm-es5/sqm-tax-document-submitted-view-b9a85ed4.js +0 -1
- package/dist/esm-es5/sqm-tax-document-submitted.entry.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-aceded76.js +0 -1
- package/dist/esm-es5/sqm-user-info-form.entry.js +0 -1
- package/dist/mint-components/p-14d6e66b.system.js +0 -1
- package/dist/mint-components/p-30bad31c.js +0 -1
- package/dist/mint-components/p-3a7a1275.system.entry.js +0 -1
- package/dist/mint-components/p-3cd66141.entry.js +0 -1
- package/dist/mint-components/p-4b168bbd.system.js +0 -1
- package/dist/mint-components/p-4b6ed2dd.entry.js +0 -8
- package/dist/mint-components/p-4cc6ba61.entry.js +0 -1
- package/dist/mint-components/p-4ebe78f4.system.entry.js +0 -1
- package/dist/mint-components/p-4ec21c3c.system.entry.js +0 -1
- package/dist/mint-components/p-6701d51c.entry.js +0 -8
- package/dist/mint-components/p-6851d346.system.entry.js +0 -1
- package/dist/mint-components/p-6c31473d.system.js +0 -1
- package/dist/mint-components/p-79b55b8e.system.entry.js +0 -1
- package/dist/mint-components/p-87643796.entry.js +0 -12
- package/dist/mint-components/p-8cd230fe.entry.js +0 -187
- package/dist/mint-components/p-a27d125b.system.js +0 -1
- package/dist/mint-components/p-b528510a.system.entry.js +0 -1
- package/dist/mint-components/p-b7be9ec9.js +0 -1
- package/dist/mint-components/p-be80ec9d.js +0 -1
- package/dist/mint-components/p-d344b29e.entry.js +0 -9
- package/dist/mint-components/p-d58273b4.js +0 -1
- package/dist/mint-components/p-dad4894f.system.js +0 -1
- package/dist/mint-components/p-f26084ae.system.entry.js +0 -1
|
@@ -4019,6 +4019,774 @@ function CouponCodeView(props) {
|
|
|
4019
4019
|
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(CopyTextView, Object.assign({}, props)))));
|
|
4020
4020
|
}
|
|
4021
4021
|
|
|
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
|
+
FormWrapper: {},
|
|
4535
|
+
ErrorInput: {
|
|
4536
|
+
"&::part(base)": {
|
|
4537
|
+
border: "1px solid var(--sl-color-danger-500)",
|
|
4538
|
+
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
4539
|
+
},
|
|
4540
|
+
"&::part(help-text)": {
|
|
4541
|
+
color: "var(--sl-color-danger-500)",
|
|
4542
|
+
},
|
|
4543
|
+
},
|
|
4544
|
+
ErrorText: {
|
|
4545
|
+
color: "var(--sl-color-danger-500)",
|
|
4546
|
+
marginTop: "10px",
|
|
4547
|
+
},
|
|
4548
|
+
TextContainer: {
|
|
4549
|
+
display: "flex",
|
|
4550
|
+
justifyContent: "flex-start",
|
|
4551
|
+
flexDirection: "column",
|
|
4552
|
+
gap: "24px",
|
|
4553
|
+
paddingBottom: "16px",
|
|
4554
|
+
},
|
|
4555
|
+
InputContainer: {
|
|
4556
|
+
display: "flex",
|
|
4557
|
+
justifyContent: "flex-start",
|
|
4558
|
+
flexDirection: "column",
|
|
4559
|
+
gap: "24px",
|
|
4560
|
+
paddingBottom: "36px",
|
|
4561
|
+
},
|
|
4562
|
+
BtnContainer: {
|
|
4563
|
+
paddingTop: "36px",
|
|
4564
|
+
display: "flex",
|
|
4565
|
+
gap: "8px",
|
|
4566
|
+
},
|
|
4567
|
+
CheckboxWrapper: {
|
|
4568
|
+
display: "flex",
|
|
4569
|
+
justifyContent: "flex-start",
|
|
4570
|
+
flexDirection: "column",
|
|
4571
|
+
},
|
|
4572
|
+
DescriptionText: {
|
|
4573
|
+
color: "var(--sl-color-neutral-500)",
|
|
4574
|
+
},
|
|
4575
|
+
BoldText: {
|
|
4576
|
+
fontWeight: "bold",
|
|
4577
|
+
},
|
|
4578
|
+
RoundedCheckbox: {
|
|
4579
|
+
"&::part(control)": {
|
|
4580
|
+
borderRadius: "50%",
|
|
4581
|
+
},
|
|
4582
|
+
},
|
|
4583
|
+
AlertContainer: {
|
|
4584
|
+
"&::part(base)": {
|
|
4585
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
4586
|
+
borderTop: "none",
|
|
4587
|
+
padding: "0 16px",
|
|
4588
|
+
},
|
|
4589
|
+
"& sl-icon::part(base)": {
|
|
4590
|
+
color: "var(--sl-color-danger-500)",
|
|
4591
|
+
},
|
|
4592
|
+
},
|
|
4593
|
+
PartnerAlertContainer: {
|
|
4594
|
+
"&::part(base)": {
|
|
4595
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
4596
|
+
borderTop: "none",
|
|
4597
|
+
padding: "0 16px",
|
|
4598
|
+
},
|
|
4599
|
+
"& sl-icon::part(base)": {
|
|
4600
|
+
color: "var(--sl-color-blue-500)",
|
|
4601
|
+
},
|
|
4602
|
+
},
|
|
4603
|
+
};
|
|
4604
|
+
const sheet$h = JSS.createStyleSheet(style$i);
|
|
4605
|
+
const styleString$h = sheet$h.toString();
|
|
4606
|
+
const vanillaStyle$b = `
|
|
4607
|
+
:host{
|
|
4608
|
+
display: block;
|
|
4609
|
+
}
|
|
4610
|
+
* {
|
|
4611
|
+
margin: 0;
|
|
4612
|
+
padding: 0;
|
|
4613
|
+
box-sizing: border-box;
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
p {
|
|
4617
|
+
line-height: 18px;
|
|
4618
|
+
color: var(--sl-color-gray-800);
|
|
4619
|
+
font-size: var(--sl-font-size-small);
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4622
|
+
sl-radio-group::part(base) {
|
|
4623
|
+
display: flex;
|
|
4624
|
+
flex-direction: column;
|
|
4625
|
+
}
|
|
4626
|
+
|
|
4627
|
+
`;
|
|
4628
|
+
const UserInfoFormView = (props) => {
|
|
4629
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
4630
|
+
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
4631
|
+
const { classes } = sheet$h;
|
|
4632
|
+
console.log({ formState, data });
|
|
4633
|
+
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
4634
|
+
index.h("style", { type: "text/css" },
|
|
4635
|
+
styleString$h,
|
|
4636
|
+
vanillaStyle$b),
|
|
4637
|
+
index.h("div", { class: classes.TextContainer },
|
|
4638
|
+
index.h("div", null,
|
|
4639
|
+
index.h("p", null, text.formStep),
|
|
4640
|
+
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$h.classes.AlertContainer },
|
|
4642
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
4643
|
+
index.h("strong", null, text.error.generalTitle),
|
|
4644
|
+
index.h("br", null),
|
|
4645
|
+
text.error.generalDescription)),
|
|
4646
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$h.classes.PartnerAlertContainer },
|
|
4647
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
4648
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
4649
|
+
index.h("br", null),
|
|
4650
|
+
text.isPartnerAlertDescription)),
|
|
4651
|
+
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
|
|
4652
|
+
index.h("div", { class: classes.InputContainer },
|
|
4653
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", value: formState.firstName, label: text.firstName, disabled: states.disabled }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
4654
|
+
class: classes.ErrorInput,
|
|
4655
|
+
helpText: text.error.firstName,
|
|
4656
|
+
}
|
|
4657
|
+
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
4658
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label", value: formState.lastName, label: text.lastName, disabled: states.disabled }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
4659
|
+
class: classes.ErrorInput,
|
|
4660
|
+
helpText: text.error.lastName,
|
|
4661
|
+
}
|
|
4662
|
+
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
4663
|
+
index.h("sl-input", { exportparts: "label: input-label", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
4664
|
+
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
4665
|
+
class: classes.ErrorInput,
|
|
4666
|
+
helpText: text.error.countryCode,
|
|
4667
|
+
}
|
|
4668
|
+
: {}), { required: true }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 : _e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName)))),
|
|
4669
|
+
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label", name: "/currency", label: text.currency, value: formState.currency, disabled: states.disabled }, (((_f = formState.errors) === null || _f === void 0 ? void 0 : _f.currency) ? {
|
|
4670
|
+
class: classes.ErrorInput,
|
|
4671
|
+
helpText: text.error.currency,
|
|
4672
|
+
}
|
|
4673
|
+
: {}), { required: true }), (_g = data === null || data === void 0 ? void 0 : data.currencies) === null || _g === void 0 ? void 0 : _g.map((c) => (index.h("sl-menu-item", { value: c.currencyCode }, c.currencyCode)))),
|
|
4674
|
+
index.h("div", { class: classes.CheckboxWrapper },
|
|
4675
|
+
index.h("p", { class: classes.BoldText }, text.participantType),
|
|
4676
|
+
index.h("div", { style: { display: "flex", flexDirection: "column" } },
|
|
4677
|
+
index.h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled }, text.individualParticipant),
|
|
4678
|
+
index.h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled }, text.businessEntity)),
|
|
4679
|
+
((_h = formState.errors) === null || _h === void 0 ? void 0 : _h.participantType) && (index.h("p", { class: classes.ErrorText }, text.error.participantType))),
|
|
4680
|
+
index.h("div", { class: classes.CheckboxWrapper },
|
|
4681
|
+
index.h("p", { class: classes.BoldText },
|
|
4682
|
+
" ",
|
|
4683
|
+
text.taxAndBankingCollection),
|
|
4684
|
+
index.h("sl-checkbox", { exportparts: "label: input-label", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
4685
|
+
e.target.value = e.target.checked;
|
|
4686
|
+
}, disabled: states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, text.allowBankingCollection),
|
|
4687
|
+
((_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)))));
|
|
4689
|
+
};
|
|
4690
|
+
|
|
4691
|
+
const style$j = {
|
|
4692
|
+
Container: {
|
|
4693
|
+
width: "100%",
|
|
4694
|
+
},
|
|
4695
|
+
InputContainer: {
|
|
4696
|
+
width: "100%",
|
|
4697
|
+
display: "flex",
|
|
4698
|
+
justifyContent: "flex-start",
|
|
4699
|
+
flexDirection: "column",
|
|
4700
|
+
gap: "16px",
|
|
4701
|
+
padding: "16px",
|
|
4702
|
+
},
|
|
4703
|
+
HR: {
|
|
4704
|
+
border: "1px solid #E0E0E0",
|
|
4705
|
+
margin: "10px 0",
|
|
4706
|
+
},
|
|
4707
|
+
Input: {
|
|
4708
|
+
maxWidth: "500px",
|
|
4709
|
+
},
|
|
4710
|
+
ErrorInput: {
|
|
4711
|
+
"&::part(base)": {
|
|
4712
|
+
border: "1px solid var(--sl-color-danger-500)",
|
|
4713
|
+
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
4714
|
+
},
|
|
4715
|
+
"&::part(help-text)": {
|
|
4716
|
+
color: "var(--sl-color-danger-500)",
|
|
4717
|
+
},
|
|
4718
|
+
},
|
|
4719
|
+
};
|
|
4720
|
+
const sheet$i = JSS.createStyleSheet(style$j);
|
|
4721
|
+
const styleString$i = sheet$i.toString();
|
|
4722
|
+
const vanillaStyle$c = `
|
|
4723
|
+
:host{
|
|
4724
|
+
display: block;
|
|
4725
|
+
}
|
|
4726
|
+
* {
|
|
4727
|
+
margin: 0;
|
|
4728
|
+
padding: 0;
|
|
4729
|
+
box-sizing: border-box;
|
|
4730
|
+
}
|
|
4731
|
+
`;
|
|
4732
|
+
const OtherRegionSlotView = (props) => {
|
|
4733
|
+
var _a, _b, _c;
|
|
4734
|
+
const { states, states: { formState }, text, } = props;
|
|
4735
|
+
const { classes } = sheet$i;
|
|
4736
|
+
console.log("regions", { formState });
|
|
4737
|
+
return (index.h("div", { style: states.hide ? { display: "none" } : {} },
|
|
4738
|
+
index.h("form", { class: classes.Container },
|
|
4739
|
+
index.h("style", { type: "text/css" },
|
|
4740
|
+
styleString$i,
|
|
4741
|
+
vanillaStyle$c),
|
|
4742
|
+
index.h("hr", { class: classes.HR }),
|
|
4743
|
+
index.h("div", { class: classes.InputContainer },
|
|
4744
|
+
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) && {
|
|
4745
|
+
class: classes.ErrorInput,
|
|
4746
|
+
helpText: text.error.selectedRegion,
|
|
4747
|
+
}), { id: "selectedRegion", name: "/selectedRegion" }), (_b = props.data.countries) === null || _b === void 0 ? void 0 : _b.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName)))),
|
|
4748
|
+
index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label", class: classes.Input, value: formState.vatNumber, label: text.vatNumber, disabled: states.loading }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.vatNumber) && {
|
|
4749
|
+
class: classes.ErrorInput,
|
|
4750
|
+
helpText: text.error.vatNumber,
|
|
4751
|
+
}), { id: "vatNumber", name: "/vatNumber" }))),
|
|
4752
|
+
index.h("hr", { class: classes.HR }))));
|
|
4753
|
+
};
|
|
4754
|
+
const IndirectDetailsSlotView = (props) => {
|
|
4755
|
+
var _a, _b;
|
|
4756
|
+
const { states, states: { formState }, text, } = props;
|
|
4757
|
+
const { classes } = sheet$i;
|
|
4758
|
+
console.log("regions", { formState });
|
|
4759
|
+
return (index.h("div", { style: states.hide ? { display: "none" } : {} },
|
|
4760
|
+
index.h("form", { class: classes.Container },
|
|
4761
|
+
index.h("style", { type: "text/css" },
|
|
4762
|
+
styleString$i,
|
|
4763
|
+
vanillaStyle$c),
|
|
4764
|
+
index.h("hr", { class: classes.HR }),
|
|
4765
|
+
index.h("div", { class: classes.InputContainer },
|
|
4766
|
+
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) && {
|
|
4767
|
+
class: classes.ErrorInput,
|
|
4768
|
+
helpText: text.error.province,
|
|
4769
|
+
}), { id: "province", name: "/province" }),
|
|
4770
|
+
index.h("sl-menu-item", { value: "ON" }, "Ontario"),
|
|
4771
|
+
index.h("sl-menu-item", { value: "QC" }, "Quebec"),
|
|
4772
|
+
index.h("sl-menu-item", { value: "NS" }, "Nova Scotia"),
|
|
4773
|
+
index.h("sl-menu-item", { value: "NB" }, "New Brunswick"),
|
|
4774
|
+
index.h("sl-menu-item", { value: "MB" }, "Manitoba"),
|
|
4775
|
+
index.h("sl-menu-item", { value: "BC" }, "British Columbia"),
|
|
4776
|
+
index.h("sl-menu-item", { value: "PE" }, "Prince Edward Island"),
|
|
4777
|
+
index.h("sl-menu-item", { value: "SK" }, "Saskatchewan"),
|
|
4778
|
+
index.h("sl-menu-item", { value: "AB" }, "Alberta"),
|
|
4779
|
+
index.h("sl-menu-item", { value: "NL" }, "Newfoundland"),
|
|
4780
|
+
index.h("sl-menu-item", { value: "NT" }, "Northwest Territories"),
|
|
4781
|
+
index.h("sl-menu-item", { value: "YT" }, "Yukon"),
|
|
4782
|
+
index.h("sl-menu-item", { value: "NU" }, "Nunavut")),
|
|
4783
|
+
index.h("sl-input", Object.assign({ required: true, exportparts: "label: input-label", class: classes.Input, label: text.indirectTaxNumber, disabled: states.loading, value: formState.indirectTaxNumber }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.indirectTaxNumber) && {
|
|
4784
|
+
class: classes.ErrorInput,
|
|
4785
|
+
helpText: text.error.indirectTaxNumber,
|
|
4786
|
+
}), { id: "indirectTaxNumber", name: "/indirectTaxNumber" }))),
|
|
4787
|
+
index.h("hr", { class: classes.HR }))));
|
|
4788
|
+
};
|
|
4789
|
+
|
|
4022
4790
|
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))})`}
|
|
4023
4791
|
|
|
4024
4792
|
const colorScale = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
@@ -4109,12 +4877,16 @@ exports.CardFeedView = CardFeedView;
|
|
|
4109
4877
|
exports.CheckboxFieldView = CheckboxFieldView;
|
|
4110
4878
|
exports.CopyTextView = CopyTextView;
|
|
4111
4879
|
exports.CouponCodeView = CouponCodeView;
|
|
4880
|
+
exports.DocusignFormView = DocusignFormView;
|
|
4112
4881
|
exports.DropdownFieldView = DropdownFieldView;
|
|
4113
4882
|
exports.EditProfileView = EditProfileView;
|
|
4114
4883
|
exports.HeroView = HeroView;
|
|
4884
|
+
exports.IndirectDetailsSlotView = IndirectDetailsSlotView;
|
|
4115
4885
|
exports.InputFieldView = InputFieldView;
|
|
4116
4886
|
exports.LeaderboardView = LeaderboardView;
|
|
4117
4887
|
exports.NameFieldsView = NameFieldsView;
|
|
4888
|
+
exports.OtherRegionSlotView = OtherRegionSlotView;
|
|
4889
|
+
exports.PayoutDetailsCardView = PayoutDetailsCardView;
|
|
4118
4890
|
exports.PortalChangePasswordView = PortalChangePasswordView;
|
|
4119
4891
|
exports.PortalFooterView = PortalFooterView;
|
|
4120
4892
|
exports.PortalFrameView = PortalFrameView;
|
|
@@ -4129,6 +4901,8 @@ exports.ShadowViewAddon = ShadowViewAddon;
|
|
|
4129
4901
|
exports.ShareButtonView = ShareButtonView;
|
|
4130
4902
|
exports.StatContainerView = StatContainerView;
|
|
4131
4903
|
exports.TaskCardView = TaskCardView;
|
|
4904
|
+
exports.TaxDocumentSubmittedView = TaxDocumentSubmittedView;
|
|
4905
|
+
exports.UserInfoFormView = UserInfoFormView;
|
|
4132
4906
|
exports.autoColorScaleCss = autoColorScaleCss;
|
|
4133
4907
|
exports.chooseAmountFixed = chooseAmountFixed;
|
|
4134
4908
|
exports.chooseAmountFixedNoDescription = chooseAmountFixedNoDescription;
|