@saasquatch/mint-components 1.8.0-21 → 1.8.0-23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/cjs/{ShadowViewAddon-3cb21a64.js → ShadowViewAddon-a9ce6b87.js} +0 -399
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/{sqm-big-stat_42.cjs.entry.js → sqm-big-stat_37.cjs.entry.js} +139 -2055
  5. package/dist/cjs/{sqm-context-router.cjs.entry.js → sqm-context-router_3.cjs.entry.js} +28 -0
  6. package/dist/cjs/sqm-document-type-form_5.cjs.entry.js +1931 -0
  7. package/dist/cjs/{sqm-tax-and-cash.cjs.entry.js → sqm-docusign-embed_2.cjs.entry.js} +31 -20
  8. package/dist/cjs/{sqm-empty_5.cjs.entry.js → sqm-empty_4.cjs.entry.js} +0 -61
  9. package/dist/cjs/sqm-payout-details-card-fd7cfa76.js +404 -0
  10. package/dist/cjs/sqm-stencilbook.cjs.entry.js +16 -15
  11. package/dist/cjs/sqm-tax-and-cash-monolith.cjs.entry.js +534 -0
  12. package/dist/cjs/sqm-text.cjs.entry.js +68 -0
  13. package/dist/collection/collection-manifest.json +1 -0
  14. package/dist/collection/components/sqm-tax-and-cash-monolith/sqm-tax-and-cash-monolith.js +2515 -0
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -7
  16. package/dist/esm/{ShadowViewAddon-3b0296b9.js → ShadowViewAddon-6b52e587.js} +1 -396
  17. package/dist/esm/data-e76577b2.js +1 -1
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/mint-components.js +1 -1
  20. package/dist/esm/{sqm-big-stat_42.entry.js → sqm-big-stat_37.entry.js} +141 -2052
  21. package/dist/esm/{sqm-context-router.entry.js → sqm-context-router_3.entry.js} +27 -1
  22. package/dist/esm/sqm-document-type-form_5.entry.js +1923 -0
  23. package/dist/esm/{sqm-tax-and-cash.entry.js → sqm-docusign-embed_2.entry.js} +32 -22
  24. package/dist/esm/{sqm-empty_5.entry.js → sqm-empty_4.entry.js} +1 -61
  25. package/dist/esm/sqm-payout-details-card-0b665414.js +399 -0
  26. package/dist/esm/sqm-stencilbook.entry.js +2 -1
  27. package/dist/esm/sqm-tax-and-cash-monolith.entry.js +530 -0
  28. package/dist/esm/sqm-text.entry.js +64 -0
  29. package/dist/esm-es5/{ShadowViewAddon-3b0296b9.js → ShadowViewAddon-6b52e587.js} +1 -1
  30. package/dist/esm-es5/data-e76577b2.js +1 -1
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/dist/esm-es5/mint-components.js +1 -1
  33. package/dist/esm-es5/sqm-big-stat_37.entry.js +1 -0
  34. package/dist/esm-es5/{sqm-context-router.entry.js → sqm-context-router_3.entry.js} +1 -1
  35. package/dist/esm-es5/sqm-document-type-form_5.entry.js +1 -0
  36. package/dist/esm-es5/sqm-docusign-embed_2.entry.js +1 -0
  37. package/dist/esm-es5/sqm-empty_4.entry.js +1 -0
  38. package/dist/esm-es5/sqm-payout-details-card-0b665414.js +1 -0
  39. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  40. package/dist/esm-es5/sqm-tax-and-cash-monolith.entry.js +1 -0
  41. package/dist/esm-es5/sqm-text.entry.js +1 -0
  42. package/dist/mint-components/mint-components.esm.js +1 -1
  43. package/dist/mint-components/p-10765e55.entry.js +1 -0
  44. package/dist/mint-components/{p-bd10ef26.entry.js → p-1e39faeb.entry.js} +2 -2
  45. package/dist/mint-components/p-3271c52d.system.entry.js +1 -0
  46. package/dist/mint-components/p-3a66e34f.entry.js +1 -0
  47. package/dist/mint-components/p-3d3c5d60.js +1 -1
  48. package/dist/mint-components/p-43681c0a.system.entry.js +1 -0
  49. package/dist/mint-components/p-5bb9d7af.system.entry.js +1 -0
  50. package/dist/mint-components/p-5d7ac8fb.system.js +1 -1
  51. package/dist/mint-components/p-5db3bfeb.entry.js +1 -0
  52. package/dist/mint-components/p-6b34e90f.system.js +1 -0
  53. package/dist/mint-components/{p-83312717.js → p-6ed93e76.js} +23 -23
  54. package/dist/mint-components/p-71721901.entry.js +1 -0
  55. package/dist/mint-components/p-724417ec.system.entry.js +1 -0
  56. package/dist/mint-components/p-8bde1ab1.entry.js +1 -0
  57. package/dist/mint-components/p-8cd230fe.entry.js +187 -0
  58. package/dist/mint-components/p-99b5f669.system.js +1 -1
  59. package/dist/mint-components/p-a27d125b.system.js +1 -0
  60. package/dist/mint-components/p-a993f018.system.entry.js +1 -0
  61. package/dist/mint-components/p-b025e807.entry.js +33 -0
  62. package/dist/mint-components/p-b528510a.system.entry.js +1 -0
  63. package/dist/mint-components/p-c82f3726.system.entry.js +1 -0
  64. package/dist/mint-components/p-de81c223.system.entry.js +1 -0
  65. package/dist/mint-components/p-fb86ed8e.js +1 -0
  66. package/dist/types/components/sqm-tax-and-cash-monolith/sqm-tax-and-cash-monolith.d.ts +520 -0
  67. package/dist/types/components.d.ts +3276 -2323
  68. package/docs/docs.docx +0 -0
  69. package/docs/raisins.json +1 -1
  70. package/grapesjs/grapesjs.js +1 -1
  71. package/package.json +1 -1
  72. package/dist/cjs/sqm-docusign-embed.cjs.entry.js +0 -28
  73. package/dist/cjs/sqm-table-cell_2.cjs.entry.js +0 -34
  74. package/dist/esm/sqm-docusign-embed.entry.js +0 -24
  75. package/dist/esm/sqm-table-cell_2.entry.js +0 -29
  76. package/dist/esm-es5/sqm-big-stat_42.entry.js +0 -1
  77. package/dist/esm-es5/sqm-docusign-embed.entry.js +0 -1
  78. package/dist/esm-es5/sqm-empty_5.entry.js +0 -1
  79. package/dist/esm-es5/sqm-table-cell_2.entry.js +0 -1
  80. package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
  81. package/dist/mint-components/p-089f7cf7.system.js +0 -1
  82. package/dist/mint-components/p-2a29fb98.entry.js +0 -1
  83. package/dist/mint-components/p-2a55cd31.entry.js +0 -1
  84. package/dist/mint-components/p-351fdd8d.entry.js +0 -1
  85. package/dist/mint-components/p-3bd43d9a.system.entry.js +0 -1
  86. package/dist/mint-components/p-3d9d2c2d.system.entry.js +0 -1
  87. package/dist/mint-components/p-4070ec21.system.entry.js +0 -1
  88. package/dist/mint-components/p-4836a42a.system.entry.js +0 -1
  89. package/dist/mint-components/p-ade955a5.system.entry.js +0 -1
  90. package/dist/mint-components/p-bc2ccdf4.entry.js +0 -1
  91. package/dist/mint-components/p-c84c8d51.system.entry.js +0 -1
  92. package/dist/mint-components/p-dce987ba.entry.js +0 -219
  93. package/dist/mint-components/p-ddf4ece6.entry.js +0 -1
  94. package/dist/mint-components/p-e08af283.system.entry.js +0 -1
@@ -1,10 +1,31 @@
1
- import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
1
+ import { r as registerInstance, h, c as Host } from './index-17b4da69.js';
2
2
  import { f as useEffect, m as h$1 } from './stencil-hooks.module-2b1ac06e.js';
3
3
  import { V, e as setUserIdentity, H, i as isDemo } from './index.module-4d07653e.js';
4
- import { c as cjs } from './cjs-bdfb4486.js';
4
+ import './cjs-bdfb4486.js';
5
5
  import { g as getContextValueName, a as useParentState, T as TAX_CONTEXT_NAMESPACE, U as USER_INFO_NAMESPACE, b as USER_QUERY_NAMESPACE, G as GET_USER, C as COUNTRIES_NAMESPACE, c as GET_COUNTRIES, d as CURRENCIES_NAMESPACE, e as GET_CURRENCIES } from './data-e76577b2.js';
6
6
  import { u as useParentQuery } from './useParentQuery-90a33801.js';
7
7
 
8
+ const DocusignEmbedComponent = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ }
12
+ // private iframe: HTMLIFrameElement;
13
+ // async componentDidLoad() {
14
+ // // TODO: Replace with actual endpoint when it's ready
15
+ // const url = await (await fetch("http://localhost:5555/geturl")).text();
16
+ // this.iframe.src = url;
17
+ // // this.iframe.src =
18
+ // // "https://demo.docusign.net/Signing/MTRedeem/v1/81222592-d65d-4d8f-b847-04856779a9f4?slt=eyJ0eXAiOiJNVCIsImFsZyI6IlJTMjU2Iiwia2lkIjoiNjgxODVmZjEtNGU1MS00Y2U5LWFmMWMtNjg5ODEyMjAzMzE3In0.AQYAAAABAAMABwAAIIekfxjcSAgAAMCYK6EY3EgYAAEAAAAAAAAAIQDwAgAAeyJUb2tlbklkIjoiYzMyZjkwZDAtOGYyMy00MzZhLWFlNTctN2Q1MDgxZGRkZjAxIiwiRXhwaXJhdGlvbiI6IjIwMjQtMDEtMThUMjM6NTE6MDgrMDA6MDAiLCJJc3N1ZWRBdCI6IjIwMjQtMDEtMThUMjM6NDY6MDguNDY0OTEwNCswMDowMCIsIlJlc291cmNlSWQiOiIxMGIzZDE3MS1hNGI3LTQ1NDUtYjBmNy00OTEwNGI0ZjJhNTQiLCJSZXNvdXJjZXMiOiJ7XCJFbnZlbG9wZUlkXCI6XCIxMGIzZDE3MS1hNGI3LTQ1NDUtYjBmNy00OTEwNGI0ZjJhNTRcIixcIkFjdG9yVXNlcklkXCI6XCI1ZTg0M2IwMS0wNjUwLTRkZTYtOGJkZS00OTBjYzBkYmFhMDVcIixcIlJlY2lwaWVudElkXCI6XCIwYTMwZDdhNC1iZWYzLTRhYjUtYjg0YS0wMjBiMTllZTgzMjZcIixcIkZha2VRdWVyeVN0cmluZ1wiOlwidD1iN2ZmOGNjZC0yNzE4LTQ1MWEtYmRhYS0zMDk2OTcxYjY3OGJcIixcIkludGVncmF0b3JLZXlcIjpcIklNUEEtMmE1YzM5YWItYTlmNi00NThiLTgzZWYtM2Y3ZGVkOTNhZWE1XCIsXCJDcmVhdGVkQXRcIjpcIjIwMjQtMDEtMThUMjM6NDY6MDguMzY1NTgzWlwifSIsIlRva2VuVHlwZSI6MSwiQXVkaWVuY2UiOiIyNWUwOTM5OC0wMzQ0LTQ5MGMtOGU1My0zYWIyY2E1NjI3YmYiLCJSZWRpcmVjdFVyaSI6Imh0dHBzOi8vZGVtby5kb2N1c2lnbi5uZXQvU2lnbmluZy9TdGFydEluU2Vzc2lvbi5hc3B4IiwiSGFzaEFsZ29yaXRobSI6MCwiSGFzaFJvdW5kcyI6MCwiVG9rZW5TdGF0dXMiOjAsIklzU2luZ2xlVXNlIjpmYWxzZX0_AIDnvlaAGNxI.pz7FN5reKM0PrJ1vCyu8fgCCYBLlzkVnQgbgrrE4errETVxTYz88j51emxqthnUz0MlKvpQ7v8vf09CF22bHtM7jPtriMMILMhhTrii2nUMpYpchgKUIayIZhcvlCgL7hET6DxjsLTcEvuFr11Bumn-1qmNZHh7KJvfBHN3Fve1F031dJUxhxC2XK2EKGcUvM8yXLGWMCFpkYPQBY-m6lfSqdoRIoTUzqFA9H1331kr1zUsfkR8ygyANItyf1a9eTpVuPfpVi9Sv8eRFE1Jvtj8B2Jzi4dghG9IFyBYrRNoKAUP0R2cB8QU-VdPbos5w8Wgp8OXxuqLwXeP9D3WLtA";
19
+ // }
20
+ render() {
21
+ console.debug("SQM-DOCUSIGN-EMBED -- URL:", this.url);
22
+ return (h("iframe", {
23
+ // ref={(el) => (this.iframe = el)}
24
+ src: this.url, width: "100%", height: "100%", class: "docusign-iframe"
25
+ }));
26
+ }
27
+ };
28
+
8
29
  function LoadingSkeleton() {
9
30
  return (h("div", { style: { width: "100%" } },
10
31
  h("sl-skeleton", { style: { marginBottom: "28px" } }),
@@ -138,10 +159,11 @@ const TaxAndCash = class {
138
159
  disconnectedCallback() { }
139
160
  render() {
140
161
  const inDemoMode = isDemo();
141
- const props = inDemoMode ? useTaxAndCashDemo(this) : useTaxAndCash();
162
+ // const props = inDemoMode ? useTaxAndCashDemo(this) : useTaxAndCash();
163
+ const props = useTaxAndCash();
142
164
  if (props.loading)
143
165
  return h(LoadingSkeleton, null);
144
- return (h(Host, null, inDemoMode && (h("div", null, h("button", { onClick: () => props.setStep(getPrevStep(props.step)) }, "Preview preview step"), " ", h("button", { onClick: () => props.setStep(getNextStep(props.step)) }, "Preview next step"))), h("sqm-context-router", { contextName: props.namespace }, h("slot", null))));
166
+ return (h(Host, null, inDemoMode && (h("div", null, h("button", { onClick: () => props.setStep(getPrevStep(props.step)) }, "Preview previous step"), " ", h("button", { onClick: () => props.setStep(getNextStep(props.step)) }, "Preview next step"))), h("sqm-context-router", { contextName: props.namespace }, h("slot", null))));
145
167
  }
146
168
  };
147
169
  function getNextStep(step) {
@@ -149,9 +171,9 @@ function getNextStep(step) {
149
171
  return "/2";
150
172
  if (step === "/2")
151
173
  return "/3/W9";
152
- if (step.includes("/3"))
153
- return "/4";
154
- if (step === "/4")
174
+ if (step.includes("/3/"))
175
+ return "/3b";
176
+ if (step === "/3b")
155
177
  return "/submitted";
156
178
  if (step === "/loading")
157
179
  return "/1";
@@ -164,25 +186,13 @@ function getPrevStep(step) {
164
186
  return "/1";
165
187
  if (step.includes("/3"))
166
188
  return "/2";
167
- if (step === "/4")
189
+ if (step === "/3b")
168
190
  return "/3/W9";
169
191
  if (step === "/submitted")
170
- return "/4";
192
+ return "/3b";
171
193
  if (step === "/loading")
172
194
  return "/1";
173
195
  return "/loading";
174
196
  }
175
- function useTaxAndCashDemo(props) {
176
- const host = V();
177
- const [step, setStep] = useParentState({
178
- namespace: TAX_CONTEXT_NAMESPACE,
179
- initialValue: "/1",
180
- });
181
- return cjs({
182
- namespace: getContextValueName(TAX_CONTEXT_NAMESPACE),
183
- step,
184
- setStep,
185
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
186
- }
187
197
 
188
- export { TaxAndCash as sqm_tax_and_cash };
198
+ export { DocusignEmbedComponent as sqm_docusign_embed, TaxAndCash as sqm_tax_and_cash };
@@ -114,66 +114,6 @@ const PortalContainer = class {
114
114
  }
115
115
  };
116
116
 
117
- const vanillaStyle = `
118
- sqm-text {
119
- display: block;
120
- }
121
-
122
- sqm-text h1 {
123
- font-size: var(--sl-font-size-xxx-large);
124
- font-weight: var(--sl-font-weight-semibold);
125
- color: var(--sl-color-neutral-800);
126
- margin: 0;
127
- }
128
-
129
- sqm-text h2 {
130
- font-size: var(--sl-font-size-xx-large);
131
- font-weight: var(--sl-font-weight-semibold);
132
- color: var(--sl-color-neutral-800);
133
- margin: 0;
134
- }
135
-
136
- sqm-text h3 {
137
- font-size: var(--sl-font-size-x-large);
138
- font-weight: var(--sl-font-weight-semibold);
139
- color: var(--sl-color-neutral-800);
140
- margin: 0;
141
- }
142
-
143
- sqm-text h4 {
144
- font-size: var(--sl-font-size-large);
145
- font-weight: var(--sl-font-weight-semibold);
146
- color: var(--sl-color-neutral-800);
147
- margin: 0;
148
- }
149
-
150
- sqm-text p {
151
- font-size: var(--sl-font-size-medium);
152
- font-weight: var(--sl-font-weight-normal);
153
- color: var(--sl-color-neutral-800);
154
- margin: 0;
155
- }
156
-
157
- sqm-text sub {
158
- font-size: var(--sl-font-size-small);
159
- font-weight: var(--sl-font-weight-normal);
160
- color: var(--sl-color-neutral-400);
161
- margin: 0;
162
- }
163
- `;
164
- const Text = class {
165
- constructor(hostRef) {
166
- registerInstance(this, hostRef);
167
- this.ignored = true;
168
- h$1(this);
169
- }
170
- disconnectedCallback() { }
171
- componentWillLoad() { }
172
- render() {
173
- return (h("div", null, h("style", null, vanillaStyle), h("slot", null)));
174
- }
175
- };
176
-
177
117
  const TitledSection = class {
178
118
  constructor(hostRef) {
179
119
  registerInstance(this, hostRef);
@@ -212,4 +152,4 @@ const TitledSection = class {
212
152
  }
213
153
  };
214
154
 
215
- export { Empty as sqm_empty, Image as sqm_image, PortalContainer as sqm_portal_container, Text as sqm_text, TitledSection as sqm_titled_section };
155
+ export { Empty as sqm_empty, Image as sqm_image, PortalContainer as sqm_portal_container, TitledSection as sqm_titled_section };
@@ -0,0 +1,399 @@
1
+ import { h } from './index-17b4da69.js';
2
+ import { c as createStyleSheet } from './JSS-67b5cff8.js';
3
+
4
+ const style = {
5
+ FormWrapper: {},
6
+ ErrorInput: {
7
+ "&::part(base)": {
8
+ border: "1px solid var(--sl-color-danger-500)",
9
+ borderRadius: "var(--sl-input-border-radius-medium)",
10
+ },
11
+ "&::part(help-text)": {
12
+ color: "var(--sl-color-danger-500)",
13
+ },
14
+ },
15
+ ErrorText: {
16
+ color: "var(--sl-color-danger-500)",
17
+ marginTop: "10px",
18
+ },
19
+ TextContainer: {
20
+ display: "flex",
21
+ justifyContent: "flex-start",
22
+ flexDirection: "column",
23
+ gap: "24px",
24
+ paddingBottom: "16px",
25
+ },
26
+ InputContainer: {
27
+ display: "flex",
28
+ justifyContent: "flex-start",
29
+ flexDirection: "column",
30
+ gap: "24px",
31
+ paddingBottom: "36px",
32
+ },
33
+ BtnContainer: {
34
+ paddingTop: "36px",
35
+ display: "flex",
36
+ gap: "8px",
37
+ },
38
+ CheckboxWrapper: {
39
+ display: "flex",
40
+ justifyContent: "flex-start",
41
+ flexDirection: "column",
42
+ },
43
+ DescriptionText: {
44
+ color: "var(--sl-color-neutral-500)",
45
+ },
46
+ BoldText: {
47
+ fontWeight: "bold",
48
+ },
49
+ RoundedCheckbox: {
50
+ "&::part(control)": {
51
+ borderRadius: "50%",
52
+ },
53
+ },
54
+ AlertContainer: {
55
+ "&::part(base)": {
56
+ backgroundColor: "var(--sl-color-red-100)",
57
+ borderTop: "none",
58
+ padding: "0 16px",
59
+ },
60
+ "& sl-icon::part(base)": {
61
+ color: "var(--sl-color-danger-500)",
62
+ },
63
+ },
64
+ PartnerAlertContainer: {
65
+ "&::part(base)": {
66
+ backgroundColor: "var(--sl-color-sky-100)",
67
+ borderTop: "none",
68
+ padding: "0 16px",
69
+ },
70
+ "& sl-icon::part(base)": {
71
+ color: "var(--sl-color-blue-500)",
72
+ },
73
+ },
74
+ };
75
+ const sheet = createStyleSheet(style);
76
+ const styleString = sheet.toString();
77
+ const vanillaStyle = `
78
+ :host{
79
+ display: block;
80
+ }
81
+ * {
82
+ margin: 0;
83
+ padding: 0;
84
+ box-sizing: border-box;
85
+ }
86
+
87
+ p {
88
+ line-height: 18px;
89
+ color: var(--sl-color-gray-800);
90
+ font-size: var(--sl-font-size-small);
91
+ }
92
+
93
+ sl-radio-group::part(base) {
94
+ display: flex;
95
+ flex-direction: column;
96
+ }
97
+
98
+ `;
99
+ const UserInfoFormView = (props) => {
100
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
101
+ const { states, states: { formState }, callbacks, text, refs, data, } = props;
102
+ const { classes } = sheet;
103
+ console.log({ formState, data });
104
+ return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
105
+ h("style", { type: "text/css" },
106
+ styleString,
107
+ vanillaStyle),
108
+ h("div", { class: classes.TextContainer },
109
+ h("div", null,
110
+ h("p", null, text.formStep),
111
+ h("h3", null, text.personalInformation))),
112
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { type: "warning", open: true, class: sheet.classes.AlertContainer },
113
+ h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
114
+ h("strong", null, text.error.generalTitle),
115
+ h("br", null),
116
+ text.error.generalDescription)),
117
+ states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
118
+ h("sl-icon", { slot: "icon", name: "info-circle" }),
119
+ h("strong", null, text.isPartnerAlertHeader),
120
+ h("br", null),
121
+ text.isPartnerAlertDescription)),
122
+ states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
123
+ h("div", { class: classes.InputContainer },
124
+ 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) ? {
125
+ class: classes.ErrorInput,
126
+ helpText: text.error.firstName,
127
+ }
128
+ : {}), { id: "firstName", name: "/firstName", required: true })),
129
+ 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) ? {
130
+ class: classes.ErrorInput,
131
+ helpText: text.error.lastName,
132
+ }
133
+ : {}), { id: "lastName", name: "/lastName", required: true })),
134
+ h("sl-input", { exportparts: "label: input-label", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
135
+ 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) ? {
136
+ class: classes.ErrorInput,
137
+ helpText: text.error.countryCode,
138
+ }
139
+ : {}), { required: true }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 : _e.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName)))),
140
+ 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) ? {
141
+ class: classes.ErrorInput,
142
+ helpText: text.error.currency,
143
+ }
144
+ : {}), { required: true }), (_g = data === null || data === void 0 ? void 0 : data.currencies) === null || _g === void 0 ? void 0 : _g.map((c) => (h("sl-menu-item", { value: c.currencyCode }, c.currencyCode)))),
145
+ h("div", { class: classes.CheckboxWrapper },
146
+ h("p", { class: classes.BoldText }, text.participantType),
147
+ h("div", { style: { display: "flex", flexDirection: "column" } },
148
+ h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled }, text.individualParticipant),
149
+ h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled }, text.businessEntity)),
150
+ ((_h = formState.errors) === null || _h === void 0 ? void 0 : _h.participantType) && (h("p", { class: classes.ErrorText }, text.error.participantType))),
151
+ h("div", { class: classes.CheckboxWrapper },
152
+ h("p", { class: classes.BoldText },
153
+ " ",
154
+ text.taxAndBankingCollection),
155
+ h("sl-checkbox", { exportparts: "label: input-label", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
156
+ e.target.value = e.target.checked;
157
+ }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, text.allowBankingCollection),
158
+ ((_j = formState.errors) === null || _j === void 0 ? void 0 : _j.allowBankingCollection) && (h("p", { class: classes.ErrorText }, text.error.allowBankingCollection)))),
159
+ h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, loading: states.loading, submit: true, exportparts: "base: primarybutton-base" }, text.submitButton)))));
160
+ };
161
+
162
+ const style$1 = {
163
+ Container: {
164
+ width: "100%",
165
+ },
166
+ InputContainer: {
167
+ width: "100%",
168
+ display: "flex",
169
+ justifyContent: "flex-start",
170
+ flexDirection: "column",
171
+ gap: "16px",
172
+ padding: "16px",
173
+ },
174
+ HR: {
175
+ border: "1px solid #E0E0E0",
176
+ margin: "10px 0",
177
+ },
178
+ Input: {
179
+ maxWidth: "500px",
180
+ },
181
+ ErrorInput: {
182
+ "&::part(base)": {
183
+ border: "1px solid var(--sl-color-danger-500)",
184
+ borderRadius: "var(--sl-input-border-radius-medium)",
185
+ },
186
+ "&::part(help-text)": {
187
+ color: "var(--sl-color-danger-500)",
188
+ },
189
+ },
190
+ };
191
+ const sheet$1 = createStyleSheet(style$1);
192
+ const styleString$1 = sheet$1.toString();
193
+ const vanillaStyle$1 = `
194
+ :host{
195
+ display: block;
196
+ }
197
+ * {
198
+ margin: 0;
199
+ padding: 0;
200
+ box-sizing: border-box;
201
+ }
202
+ `;
203
+ const OtherRegionSlotView = (props) => {
204
+ var _a, _b, _c;
205
+ const { states, states: { formState }, text, } = props;
206
+ const { classes } = sheet$1;
207
+ console.log("regions", { formState });
208
+ return (h("div", { style: states.hide ? { display: "none" } : {} },
209
+ h("form", { class: classes.Container },
210
+ h("style", { type: "text/css" },
211
+ styleString$1,
212
+ vanillaStyle$1),
213
+ h("hr", { class: classes.HR }),
214
+ h("div", { class: classes.InputContainer },
215
+ 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) && {
216
+ class: classes.ErrorInput,
217
+ helpText: text.error.selectedRegion,
218
+ }), { id: "selectedRegion", name: "/selectedRegion" }), (_b = props.data.countries) === null || _b === void 0 ? void 0 : _b.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName)))),
219
+ 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) && {
220
+ class: classes.ErrorInput,
221
+ helpText: text.error.vatNumber,
222
+ }), { id: "vatNumber", name: "/vatNumber" }))),
223
+ h("hr", { class: classes.HR }))));
224
+ };
225
+ const IndirectDetailsSlotView = (props) => {
226
+ var _a, _b;
227
+ const { states, states: { formState }, text, } = props;
228
+ const { classes } = sheet$1;
229
+ console.log("regions", { formState });
230
+ return (h("div", { style: states.hide ? { display: "none" } : {} },
231
+ h("form", { class: classes.Container },
232
+ h("style", { type: "text/css" },
233
+ styleString$1,
234
+ vanillaStyle$1),
235
+ h("hr", { class: classes.HR }),
236
+ h("div", { class: classes.InputContainer },
237
+ 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) && {
238
+ class: classes.ErrorInput,
239
+ helpText: text.error.province,
240
+ }), { id: "province", name: "/province" }),
241
+ h("sl-menu-item", { value: "ON" }, "Ontario"),
242
+ h("sl-menu-item", { value: "QC" }, "Quebec"),
243
+ h("sl-menu-item", { value: "NS" }, "Nova Scotia"),
244
+ h("sl-menu-item", { value: "NB" }, "New Brunswick"),
245
+ h("sl-menu-item", { value: "MB" }, "Manitoba"),
246
+ h("sl-menu-item", { value: "BC" }, "British Columbia"),
247
+ h("sl-menu-item", { value: "PE" }, "Prince Edward Island"),
248
+ h("sl-menu-item", { value: "SK" }, "Saskatchewan"),
249
+ h("sl-menu-item", { value: "AB" }, "Alberta"),
250
+ h("sl-menu-item", { value: "NL" }, "Newfoundland"),
251
+ h("sl-menu-item", { value: "NT" }, "Northwest Territories"),
252
+ h("sl-menu-item", { value: "YT" }, "Yukon"),
253
+ h("sl-menu-item", { value: "NU" }, "Nunavut")),
254
+ 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) && {
255
+ class: classes.ErrorInput,
256
+ helpText: text.error.indirectTaxNumber,
257
+ }), { id: "indirectTaxNumber", name: "/indirectTaxNumber" }))),
258
+ h("hr", { class: classes.HR }))));
259
+ };
260
+
261
+ const statusMap = {
262
+ pending: "warning",
263
+ upcoming: "success",
264
+ "next payout": "success",
265
+ };
266
+ const style$2 = {
267
+ Container: {
268
+ display: "grid",
269
+ gridTemplateColumns: "1fr",
270
+ gridGap: "var(--sl-spacing-large)",
271
+ background: "var(--sl-color-neutral-0)",
272
+ boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
273
+ borderRadius: "4px",
274
+ padding: "var(--sl-spacing-large)",
275
+ minHeight: "150px",
276
+ border: "1px solid var(--sl-color-gray-200)",
277
+ },
278
+ StatusContainer: {
279
+ display: "flex",
280
+ justifyContent: "space-between",
281
+ alignItems: "center",
282
+ },
283
+ MainCurrencyLabel: {
284
+ fontWeight: "var(--sl-font-weight-normal)",
285
+ color: "var(--sl-color-gray-500)",
286
+ },
287
+ MainCurrency: {
288
+ margin: 0,
289
+ fontSize: "32px",
290
+ width: "auto",
291
+ },
292
+ SubduedRegularText: {
293
+ fontSize: "var(--sl-font-size-small)",
294
+ color: "var(--sl-color-gray-500)",
295
+ margin: 0,
296
+ width: "auto",
297
+ },
298
+ CurrenciesContainer: {
299
+ display: "grid",
300
+ width: "auto",
301
+ gridTemplateColumns: "1fr 1fr 1fr",
302
+ gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
303
+ paddingTop: "var(--sq-spacing-xx-small)",
304
+ "& > :not(:last-child)": {
305
+ borderRight: "1px solid var(--sl-color-gray-200)",
306
+ },
307
+ "& > :nth-child(3)": {
308
+ border: "none",
309
+ },
310
+ },
311
+ CurrencyContainer: {
312
+ paddingRight: "var(--sl-spacing-small)",
313
+ gap: "var(--sl-spacing-small)",
314
+ },
315
+ SubCurrencyText: {
316
+ fontWeight: "var(--sl-font-weight-bold)",
317
+ fontSize: "var(--sl-font-size-large)",
318
+ margin: "0",
319
+ },
320
+ W9Container: {
321
+ paddingTop: "var(--sl-spacing-large)",
322
+ borderTop: "1px solid var(--sl-color-gray-200)",
323
+ },
324
+ SkeletonOne: {
325
+ width: "25%",
326
+ height: "16px",
327
+ },
328
+ SkeletonTwo: {
329
+ width: "25%",
330
+ height: "24px",
331
+ },
332
+ SkeletonThree: {
333
+ width: "50%",
334
+ height: "34px",
335
+ },
336
+ };
337
+ function PayoutDetailsCardView(props) {
338
+ var _a;
339
+ const sheet = createStyleSheet(style$2);
340
+ const styleString = sheet.toString();
341
+ const { classes } = sheet;
342
+ const currencyList = (currencies) => {
343
+ return (h("div", { class: classes.CurrenciesContainer },
344
+ " ", currencies === null || currencies === void 0 ? void 0 :
345
+ currencies.map((currency) => {
346
+ return (h("div", { class: classes.CurrencyContainer },
347
+ h("p", { class: classes.SubCurrencyText }, currency === null || currency === void 0 ? void 0 :
348
+ currency.amountText, currency === null || currency === void 0 ? void 0 :
349
+ currency.currencyText)));
350
+ }),
351
+ " "));
352
+ };
353
+ const { loading, mainCurrency, status, otherCurrencies, otherCurrenciesText, pendingStatusBadgeText, upcomingStatusBadgeText, nextPayoutStatusBadgeText, pendingDetailedStatusText, upcomingDetailedStatusText, nextPayoutDetailedStatusText, w9Pending, w9PendingText, empty, hasDatePending, hasW9Pending, } = props;
354
+ const badgeText = {
355
+ pending: pendingStatusBadgeText,
356
+ upcoming: upcomingStatusBadgeText,
357
+ "next payout": nextPayoutStatusBadgeText,
358
+ };
359
+ const statusText = {
360
+ pending: pendingDetailedStatusText,
361
+ upcoming: upcomingDetailedStatusText,
362
+ "next payout": nextPayoutDetailedStatusText,
363
+ };
364
+ return (h("div", null,
365
+ h("style", { type: "text/css" }, styleString),
366
+ h("div", { class: classes.Container },
367
+ loading ? (h("div", { class: classes.StatusContainer },
368
+ h("sl-skeleton", { class: classes.SkeletonOne }),
369
+ " ",
370
+ h("sl-skeleton", { class: classes.SkeletonTwo }))) : (h("div", { class: classes.StatusContainer },
371
+ h("p", { class: classes.SubduedRegularText }, empty && status === "pending"
372
+ ? ""
373
+ : status !== "pending"
374
+ ? statusText[status]
375
+ : hasDatePending
376
+ ? statusText["pending"]
377
+ : w9PendingText),
378
+ h("sl-badge", { pill: true, type: statusMap[status] }, badgeText[status]))),
379
+ loading ? (h("sl-skeleton", { class: classes.SkeletonThree })) : empty ? (h("h1", { class: classes.MainCurrency }, "No rewards")) : (h("h1", { class: classes.MainCurrency },
380
+ hasDatePending || status !== "pending"
381
+ ? 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,
382
+ " ",
383
+ mainCurrency.currencyText)),
384
+ otherCurrencies !== undefined &&
385
+ otherCurrencies !== false &&
386
+ !loading && (h("div", null,
387
+ h("p", { class: classes.SubduedRegularText, style: { fontSize: "var(--sl-font-size-x-small)" } },
388
+ "+ ",
389
+ otherCurrenciesText),
390
+ currencyList(otherCurrencies))),
391
+ hasW9Pending && status === "pending" && hasDatePending && !loading && (h("div", { class: classes.W9Container },
392
+ h("p", { class: classes.SubduedRegularText }, w9PendingText),
393
+ currencyList(w9Pending))),
394
+ loading ? (h("sl-skeleton", { class: classes.SkeletonOne })) : (h("div", { style: { display: "flex", gap: "var(--sl-spacing-small)" } },
395
+ h("span", null, "Card ***2381"),
396
+ h("span", null, "Toronto Dominion Bank"))))));
397
+ }
398
+
399
+ export { IndirectDetailsSlotView as I, OtherRegionSlotView as O, PayoutDetailsCardView as P, UserInfoFormView as U };
@@ -22,9 +22,10 @@ import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view
22
22
  import { P as PortalProfileView } from './sqm-portal-profile-view-93d85870.js';
23
23
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-0df781f6.js';
24
24
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-1db4fae6.js';
25
- import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, U as UserInfoFormView, O as OtherRegionSlotView, Q as IndirectDetailsSlotView, V as ProgressBar$2, W as PayoutDetailsCardView, X as autoColorScaleCss, Y as ShadowViewAddon } from './ShadowViewAddon-3b0296b9.js';
25
+ import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-6b52e587.js';
26
26
  import './index-ffa26b43.js';
27
27
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-ab89c6cc.js';
28
+ import { U as UserInfoFormView, O as OtherRegionSlotView, I as IndirectDetailsSlotView, P as PayoutDetailsCardView } from './sqm-payout-details-card-0b665414.js';
28
29
 
29
30
  /**
30
31
  * lodash (Custom Build) <https://lodash.com/>