@saasquatch/mint-components 1.14.3 → 1.14.4
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +158 -5
- package/dist/cjs/{sqm-invoice-table-view-16ac73d0.js → sqm-invoice-table-view-0f7fa309.js} +17 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +509 -893
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +16 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +36 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +106 -3
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +7 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +38 -0
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +79 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +205 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +158 -5
- package/dist/esm/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-7f376a75.js} +17 -0
- package/dist/esm/sqm-stencilbook.entry.js +2494 -2878
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-7f376a75.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-b06add5c.entry.js → p-4d7108af.entry.js} +2 -2
- package/dist/mint-components/p-9a1843cb.system.js +1 -0
- package/dist/mint-components/{p-207da855.system.entry.js → p-caca540c.system.entry.js} +1 -1
- package/dist/mint-components/p-ccd60c4b.js +1 -0
- package/dist/mint-components/p-db7d2444.system.entry.js +1 -0
- package/dist/mint-components/p-ebb4922d.entry.js +205 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +35 -0
- package/dist/types/components.d.ts +126 -0
- 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/esm-es5/sqm-invoice-table-view-2c726568.js +0 -1
- package/dist/mint-components/p-0d68b3b1.entry.js +0 -205
- package/dist/mint-components/p-3f067fd5.js +0 -1
- package/dist/mint-components/p-a6178052.system.entry.js +0 -1
- package/dist/mint-components/p-a7746488.system.js +0 -1
- package/dist/mint-components/sqm-stencilbook.entry.js +0 -18989
- package/dist/mint-components/sqm-stencilbook.system.entry.js +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
|
@@ -2,72 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
9
|
-
require('./
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
require('./
|
|
13
|
-
require('./mixins-
|
|
14
|
-
const
|
|
15
|
-
require('./
|
|
16
|
-
require('./
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
require('./
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
require('./
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
require('./
|
|
33
|
-
|
|
34
|
-
require('./
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const useShareLink = require('./useShareLink-fa085a25.js');
|
|
42
|
-
require('./useChildElements-d89d4029.js');
|
|
43
|
-
const useDemoBigStat = require('./useDemoBigStat-1c381402.js');
|
|
44
|
-
const sqmPortalSectionView = require('./sqm-portal-section-view-c1f8b90a.js');
|
|
45
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-9ae2aa22.js');
|
|
46
|
-
const sqmStatContainerView = require('./sqm-stat-container-view-31fc9ab2.js');
|
|
47
|
-
const sqmPortalChangePasswordView = require('./sqm-portal-change-password-view-8926cb47.js');
|
|
48
|
-
const sqmPortalRegisterView = require('./sqm-portal-register-view-417f4216.js');
|
|
49
|
-
const sqmCheckboxFieldView = require('./sqm-checkbox-field-view-9ddbf23b.js');
|
|
50
|
-
const sqmPortalChangeMarketingView = require('./sqm-portal-change-marketing-view-62ab2fc3.js');
|
|
51
|
-
const GenericTableView = require('./GenericTableView-fd353a5f.js');
|
|
52
|
-
const luxon = require('./luxon-090ad81d.js');
|
|
53
|
-
const sqmTaskCardView = require('./sqm-task-card-view-15dfbbcf.js');
|
|
54
|
-
const sqmPortalFooterView = require('./sqm-portal-footer-view-87b1844b.js');
|
|
55
|
-
const sqmHeroView = require('./sqm-hero-view-fa964d63.js');
|
|
56
|
-
const sqmReferralIframeView = require('./sqm-referral-iframe-view-d0d08442.js');
|
|
57
|
-
const sqmNameFieldsView = require('./sqm-name-fields-view-7053e5e0.js');
|
|
58
|
-
const sqmDropdownFieldView = require('./sqm-dropdown-field-view-a2ae29c4.js');
|
|
59
|
-
const sqmInputFieldView = require('./sqm-input-field-view-b51f4038.js');
|
|
60
|
-
const RewardExchangeListData = require('./RewardExchangeListData-b84fc648.js');
|
|
61
|
-
const sqmCardFeedView = require('./sqm-card-feed-view-803efd42.js');
|
|
62
|
-
const sqmCouponCodeView = require('./sqm-coupon-code-view-4cd85c27.js');
|
|
63
|
-
require('./subregions-d43680d2.js');
|
|
64
|
-
require('./LoadingView-c8c0fb81.js');
|
|
65
|
-
require('./utils-75ce2a09.js');
|
|
66
|
-
const TaxForm_stories = require('./TaxForm.stories-fc262f3a.js');
|
|
67
|
-
require('./countries-473a6e62.js');
|
|
68
|
-
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-42e9e375.js');
|
|
69
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-f6b7d019.js');
|
|
70
|
-
const AutoColor = require('./AutoColor-db33223f.js');
|
|
5
|
+
const index = require('./index-a29c60ef.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
7
|
+
require('./global-e31dc4f5.js');
|
|
8
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
9
|
+
require('./cjs-1066ec21.js');
|
|
10
|
+
require('./utils-6847bc06.js');
|
|
11
|
+
const JSS = require('./JSS-8503a151.js');
|
|
12
|
+
require('./useReferralCodes-82e8797b.js');
|
|
13
|
+
require('./mixins-f7e0377a.js');
|
|
14
|
+
const copyTextView = require('./copy-text-view-c85acaaa.js');
|
|
15
|
+
const GenericTableView = require('./GenericTableView-a9f4ba75.js');
|
|
16
|
+
require('./useChildElements-1b35d945.js');
|
|
17
|
+
const luxon = require('./luxon-2926d85f.js');
|
|
18
|
+
require('./sqm-text-span-view-0aa82125.js');
|
|
19
|
+
const sqmAssetCardView = require('./sqm-asset-card-view-21ddf04f.js');
|
|
20
|
+
const sqmCloseButtonView = require('./sqm-close-button-view-ea3fa23b.js');
|
|
21
|
+
require('./index-8c6255f5.js');
|
|
22
|
+
const emailRegistrationView = require('./email-registration-view-55b378dc.js');
|
|
23
|
+
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-d39a55d8.js');
|
|
24
|
+
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-11d57c12.js');
|
|
25
|
+
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-17111896.js');
|
|
26
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-6f35d2ee.js');
|
|
27
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-7ebb426a.js');
|
|
28
|
+
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-78f19ef9.js');
|
|
29
|
+
const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
|
|
30
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-8a2c8763.js');
|
|
31
|
+
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-637a4bf4.js');
|
|
32
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-33164798.js');
|
|
33
|
+
require('./utilities-78f5e169.js');
|
|
34
|
+
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-fe602822.js');
|
|
35
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7b678f34.js');
|
|
36
|
+
require('./ErrorView-b2fcf954.js');
|
|
37
|
+
const sqmQrCodeView = require('./sqm-qr-code-view-15dfc0b6.js');
|
|
38
|
+
const ShadowViewAddon = require('./ShadowViewAddon-787391f7.js');
|
|
39
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
40
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-0f7fa309.js');
|
|
71
41
|
|
|
72
42
|
/**
|
|
73
43
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -721,7 +691,7 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
721
691
|
_this.tags.push(tag);
|
|
722
692
|
};
|
|
723
693
|
|
|
724
|
-
this.isSpeedy = options.speedy === undefined ? "
|
|
694
|
+
this.isSpeedy = options.speedy === undefined ? "production" === 'production' : options.speedy;
|
|
725
695
|
this.tags = [];
|
|
726
696
|
this.ctr = 0;
|
|
727
697
|
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
@@ -748,18 +718,6 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
748
718
|
|
|
749
719
|
var tag = this.tags[this.tags.length - 1];
|
|
750
720
|
|
|
751
|
-
if ("development" !== 'production') {
|
|
752
|
-
var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
753
|
-
|
|
754
|
-
if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
|
|
755
|
-
// this would only cause problem in speedy mode
|
|
756
|
-
// but we don't want enabling speedy to affect the observable behavior
|
|
757
|
-
// so we report this error at all times
|
|
758
|
-
console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');
|
|
759
|
-
}
|
|
760
|
-
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
721
|
if (this.isSpeedy) {
|
|
764
722
|
var sheet = sheetForTag(tag);
|
|
765
723
|
|
|
@@ -768,9 +726,6 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
768
726
|
// the big drawback is that the css won't be editable in devtools
|
|
769
727
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
770
728
|
} catch (e) {
|
|
771
|
-
if ("development" !== 'production' && !/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(rule)) {
|
|
772
|
-
console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
|
773
|
-
}
|
|
774
729
|
}
|
|
775
730
|
} else {
|
|
776
731
|
tag.appendChild(document.createTextNode(rule));
|
|
@@ -786,31 +741,12 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
786
741
|
});
|
|
787
742
|
this.tags = [];
|
|
788
743
|
this.ctr = 0;
|
|
789
|
-
|
|
790
|
-
if ("development" !== 'production') {
|
|
791
|
-
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
792
|
-
}
|
|
793
744
|
};
|
|
794
745
|
|
|
795
746
|
return StyleSheet;
|
|
796
747
|
}();
|
|
797
748
|
|
|
798
|
-
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var
|
|
799
|
-
|
|
800
|
-
var weakMemoize = function weakMemoize(func) {
|
|
801
|
-
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
802
|
-
var cache = new WeakMap();
|
|
803
|
-
return function (arg) {
|
|
804
|
-
if (cache.has(arg)) {
|
|
805
|
-
// $FlowFixMe
|
|
806
|
-
return cache.get(arg);
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
var ret = func(arg);
|
|
810
|
-
cache.set(arg, ret);
|
|
811
|
-
return ret;
|
|
812
|
-
};
|
|
813
|
-
};
|
|
749
|
+
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var i="@import";var p="@keyframes";var k=Math.abs;var d=String.fromCharCode;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}function g(e){return e.trim()}function x(e,r){return (e=r.exec(e))?e[0]:e}function y(e,r,a){return e.replace(r,a)}function j(e,r){return e.indexOf(r)}function z(e,r){return e.charCodeAt(r)|0}function C(e,r,a){return e.slice(r,a)}function A(e){return e.length}function M(e){return e.length}function O(e,r){return r.push(e),e}function S(e,r){return e.map(r).join("")}var q=1;var B=1;var D=0;var E=0;var F=0;var G="";function H(e,r,a,c,n,t,s){return {value:e,root:r,parent:a,type:c,props:n,children:t,line:q,column:B,length:s,return:""}}function I(e,r,a){return H(e,r.root,r.parent,a,r.props,r.children,0)}function J(){return F}function K(){F=E>0?z(G,--E):0;if(B--,F===10)B=1,q--;return F}function L(){F=E<D?z(G,E++):0;if(B++,F===10)B=1,q++;return F}function N(){return z(G,E)}function P(){return E}function Q(e,r){return C(G,e,r)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return q=B=1,D=A(G=e),E=0,[]}function U(e){return G="",e}function V(e){return g(Q(E-1,_(e===91?e+2:e===40?e+1:e)))}function X(e){while(F=N())if(F<33)L();else break;return R(e)>2||R(F)>3?"":" "}function Z(e,r){while(--r&&L())if(F<48||F>102||F>57&&F<65||F>70&&F<97)break;return Q(e,P()+(r<6&&N()==32&&L()==32))}function _(e){while(L())switch(F){case e:return E;case 34:case 39:return _(e===34||e===39?e:F);case 40:if(e===41)_(e);break;case 92:L();break}return E}function ee(e,r){while(L())if(e+F===47+10)break;else if(e+F===42+42&&N()===47)break;return "/*"+Q(r,E-1)+"*"+d(e===47?e:L())}function re(e){while(!R(N()))L();return Q(e,E)}function ae(e){return U(ce("",null,null,null,[""],e=T(e),0,[0],e))}function ce(e,r,a,c,n,t,s,u,i){var f=0;var o=0;var l=s;var v=0;var h=0;var p=0;var b=1;var w=1;var $=1;var k=0;var m="";var g=n;var x=t;var j=c;var z=m;while(w)switch(p=k,k=L()){case 34:case 39:case 91:case 40:z+=V(k);break;case 9:case 10:case 13:case 32:z+=X(p);break;case 92:z+=Z(P()-1,7);continue;case 47:switch(N()){case 42:case 47:O(te(ee(L(),P()),r,a),i);break;default:z+="/";}break;case 123*b:u[f++]=A(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+o:if(h>0&&A(z)-l)O(h>32?se(z+";",c,a,l-1):se(y(z," ","")+";",c,a,l-2),i);break;case 59:z+=";";default:O(j=ne(z,r,a,f,o,n,u,m,g=[],x=[],l),t);if(k===123)if(o===0)ce(z,r,j,j,g,t,l,u,x);else switch(v){case 100:case 109:case 115:ce(e,j,j,c&&O(ne(e,j,j,0,0,n,u,m,n,g=[],l),x),n,x,l,u,c?g:x);break;default:ce(z,j,j,j,[""],x,l,u,x);}}f=o=h=0,b=$=1,m=z="",l=s;break;case 58:l=1+A(z),h=p;default:if(b<1)if(k==123)--b;else if(k==125&&b++==0&&K()==125)continue;switch(z+=d(k),k*b){case 38:$=o>0?1:(z+="\f",-1);break;case 44:u[f++]=(A(z)-1)*$,$=1;break;case 64:if(N()===45)z+=V(L());v=N(),o=A(m=z+=re(P())),k++;break;case 45:if(p===45&&A(z)==2)b=0;}}return t}function ne(e,r,a,c,t,s,u,i,f,o,l){var v=t-1;var h=t===0?s:[""];var p=M(h);for(var b=0,w=0,$=0;b<c;++b)for(var d=0,m=C(e,v+1,v=k(w=u[b])),x=e;d<p;++d)if(x=g(w>0?h[d]+" "+m:y(m,/&\f/g,h[d])))f[$++]=x;return H(e,r,a,t===0?n:i,f,o,l)}function te(e,r,a){return H(e,r,a,c,d(J()),C(e,2,-2),0)}function se(e,r,a,c){return H(e,r,a,t,C(e,0,c),C(e,c+1,-1),c)}function ue(c,n){switch(m(c,n)){case 5103:return a+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return a+c+r+c+e+c+c;case 6828:case 4268:return a+c+e+c+c;case 6165:return a+c+e+"flex-"+c+c;case 5187:return a+c+y(c,/(\w+).+(:[^]+)/,a+"box-$1$2"+e+"flex-$1$2")+c;case 5443:return a+c+e+"flex-item-"+y(c,/flex-|-self/,"")+c;case 4675:return a+c+e+"flex-line-pack"+y(c,/align-content|flex-|-self/,"")+c;case 5548:return a+c+e+y(c,"shrink","negative")+c;case 5292:return a+c+e+y(c,"basis","preferred-size")+c;case 6060:return a+"box-"+y(c,"-grow","")+a+c+e+y(c,"grow","positive")+c;case 4554:return a+y(c,/([^-])(transform)/g,"$1"+a+"$2")+c;case 6187:return y(y(y(c,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),c,"")+c;case 5495:case 3959:return y(c,/(image-set\([^]*)/,a+"$1"+"$`$1");case 4968:return y(y(c,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+c+c;case 4095:case 3583:case 4068:case 2532:return y(c,/(.+)-inline(.+)/,a+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(c)-1-n>6)switch(z(c,n+1)){case 109:if(z(c,n+4)!==45)break;case 102:return y(c,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3"+"$1"+r+(z(c,n+3)==108?"$3":"$2-$3"))+c;case 115:return ~j(c,"stretch")?ue(y(c,"stretch","fill-available"),n)+c:c}break;case 4949:if(z(c,n+1)!==115)break;case 6444:switch(z(c,A(c)-3-(~j(c,"!important")&&10))){case 107:return y(c,":",":"+a)+c;case 101:return y(c,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(z(c,14)===45?"inline-":"")+"box$3"+"$1"+a+"$2$3"+"$1"+e+"$2box$3")+c}break;case 5936:switch(z(c,n+11)){case 114:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return a+c+e+c+c}return c}function ie(e,r){var a="";var c=M(e);for(var n=0;n<c;n++)a+=r(e[n],n,e,r)||"";return a}function fe(e,r,a,s){switch(e.type){case i:case t:return e.return=e.return||e.value;case c:return "";case n:e.value=e.props.join(",");}return A(a=ie(e.children,s))?e.return=e.value+"{"+a+"}":""}function oe(e){var r=M(e);return function(a,c,n,t){var s="";for(var u=0;u<r;u++)s+=e[u](a,c,n,t)||"";return s}}function le(e){return function(r){if(!r.root)if(r=r.return)e(r);}}function ve(c,s,u,i){if(!c.return)switch(c.type){case t:c.return=ue(c.value,c.length);break;case p:return ie([I(y(c.value,"@","@"+a),c,"")],i);case n:if(c.length)return S(c.props,(function(n){switch(x(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([I(y(n,/:(read-\w+)/,":"+r+"$1"),c,"")],i);case"::placeholder":return ie([I(y(n,/:(plac\w+)/,":"+a+"input-$1"),c,""),I(y(n,/:(plac\w+)/,":"+r+"$1"),c,""),I(y(n,/:(plac\w+)/,e+"input-$1"),c,"")],i)}return ""}))}}
|
|
814
750
|
|
|
815
751
|
function memoize(fn) {
|
|
816
752
|
var cache = Object.create(null);
|
|
@@ -820,10 +756,6 @@ function memoize(fn) {
|
|
|
820
756
|
};
|
|
821
757
|
}
|
|
822
758
|
|
|
823
|
-
var last = function last(arr) {
|
|
824
|
-
return arr.length ? arr[arr.length - 1] : null;
|
|
825
|
-
};
|
|
826
|
-
|
|
827
759
|
var toRules = function toRules(parsed, points) {
|
|
828
760
|
// pretend we've started with a comma
|
|
829
761
|
var index = -1;
|
|
@@ -925,79 +857,12 @@ var removeLabel = function removeLabel(element) {
|
|
|
925
857
|
}
|
|
926
858
|
}
|
|
927
859
|
};
|
|
928
|
-
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
|
929
|
-
|
|
930
|
-
var isIgnoringComment = function isIgnoringComment(element) {
|
|
931
|
-
return !!element && element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
|
|
932
|
-
};
|
|
933
|
-
|
|
934
|
-
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
|
935
|
-
return function (element, index, children) {
|
|
936
|
-
if (element.type !== 'rule') return;
|
|
937
|
-
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
938
|
-
|
|
939
|
-
if (unsafePseudoClasses && cache.compat !== true) {
|
|
940
|
-
var prevElement = index > 0 ? children[index - 1] : null;
|
|
941
|
-
|
|
942
|
-
if (prevElement && isIgnoringComment(last(prevElement.children))) {
|
|
943
|
-
return;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
|
947
|
-
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
};
|
|
951
|
-
};
|
|
952
|
-
|
|
953
|
-
var isImportRule = function isImportRule(element) {
|
|
954
|
-
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
955
|
-
};
|
|
956
|
-
|
|
957
|
-
var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
|
|
958
|
-
for (var i = index - 1; i >= 0; i--) {
|
|
959
|
-
if (!isImportRule(children[i])) {
|
|
960
|
-
return true;
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
return false;
|
|
965
|
-
}; // use this to remove incorrect elements from further processing
|
|
966
|
-
// so they don't get handed to the `sheet` (or anything else)
|
|
967
|
-
// as that could potentially lead to additional logs which in turn could be overhelming to the user
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
var nullifyElement = function nullifyElement(element) {
|
|
971
|
-
element.type = '';
|
|
972
|
-
element.value = '';
|
|
973
|
-
element["return"] = '';
|
|
974
|
-
element.children = '';
|
|
975
|
-
element.props = '';
|
|
976
|
-
};
|
|
977
|
-
|
|
978
|
-
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
|
979
|
-
if (!isImportRule(element)) {
|
|
980
|
-
return;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
if (element.parent) {
|
|
984
|
-
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
|
|
985
|
-
nullifyElement(element);
|
|
986
|
-
} else if (isPrependedWithRegularRules(index, children)) {
|
|
987
|
-
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
|
988
|
-
nullifyElement(element);
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
860
|
|
|
992
861
|
var defaultStylisPlugins = [ve];
|
|
993
862
|
|
|
994
863
|
var createCache = function createCache(options) {
|
|
995
864
|
var key = options.key;
|
|
996
865
|
|
|
997
|
-
if ("development" !== 'production' && !key) {
|
|
998
|
-
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
866
|
if ( key === 'css') {
|
|
1002
867
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
1003
868
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
@@ -1023,13 +888,6 @@ var createCache = function createCache(options) {
|
|
|
1023
888
|
|
|
1024
889
|
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
1025
890
|
|
|
1026
|
-
if ("development" !== 'production') {
|
|
1027
|
-
// $FlowFixMe
|
|
1028
|
-
if (/[^a-z-]/.test(key)) {
|
|
1029
|
-
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
891
|
var inserted = {}; // $FlowFixMe
|
|
1034
892
|
|
|
1035
893
|
var container;
|
|
@@ -1054,28 +912,9 @@ var createCache = function createCache(options) {
|
|
|
1054
912
|
|
|
1055
913
|
var omnipresentPlugins = [compat, removeLabel];
|
|
1056
914
|
|
|
1057
|
-
if ("development" !== 'production') {
|
|
1058
|
-
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
1059
|
-
get compat() {
|
|
1060
|
-
return cache.compat;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
}), incorrectImportAlarm);
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
915
|
{
|
|
1067
916
|
var currentSheet;
|
|
1068
|
-
var finalizingPlugins = [fe,
|
|
1069
|
-
if (!element.root) {
|
|
1070
|
-
if (element["return"]) {
|
|
1071
|
-
currentSheet.insert(element["return"]);
|
|
1072
|
-
} else if (element.value && element.type !== c) {
|
|
1073
|
-
// insert empty rule in non-production environments
|
|
1074
|
-
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
|
1075
|
-
currentSheet.insert(element.value + "{}");
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
} : le(function (rule) {
|
|
917
|
+
var finalizingPlugins = [fe, le(function (rule) {
|
|
1079
918
|
currentSheet.insert(rule);
|
|
1080
919
|
})];
|
|
1081
920
|
var serializer = oe(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -1087,14 +926,6 @@ var createCache = function createCache(options) {
|
|
|
1087
926
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
1088
927
|
currentSheet = sheet;
|
|
1089
928
|
|
|
1090
|
-
if ("development" !== 'production' && serialized.map !== undefined) {
|
|
1091
|
-
currentSheet = {
|
|
1092
|
-
insert: function insert(rule) {
|
|
1093
|
-
sheet.insert(rule + serialized.map);
|
|
1094
|
-
}
|
|
1095
|
-
};
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
929
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
1099
930
|
|
|
1100
931
|
if (shouldCache) {
|
|
@@ -1224,8 +1055,6 @@ var unitlessKeys = {
|
|
|
1224
1055
|
strokeWidth: 1
|
|
1225
1056
|
};
|
|
1226
1057
|
|
|
1227
|
-
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
|
|
1228
|
-
var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
|
|
1229
1058
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
1230
1059
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
1231
1060
|
|
|
@@ -1266,43 +1095,12 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
1266
1095
|
return value;
|
|
1267
1096
|
};
|
|
1268
1097
|
|
|
1269
|
-
if ("development" !== 'production') {
|
|
1270
|
-
var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
1271
|
-
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
|
|
1272
|
-
var oldProcessStyleValue = processStyleValue;
|
|
1273
|
-
var msPattern = /^-ms-/;
|
|
1274
|
-
var hyphenPattern = /-(.)/g;
|
|
1275
|
-
var hyphenatedCache = {};
|
|
1276
|
-
|
|
1277
|
-
processStyleValue = function processStyleValue(key, value) {
|
|
1278
|
-
if (key === 'content') {
|
|
1279
|
-
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
1280
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
var processed = oldProcessStyleValue(key, value);
|
|
1285
|
-
|
|
1286
|
-
if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
|
|
1287
|
-
hyphenatedCache[key] = true;
|
|
1288
|
-
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
|
|
1289
|
-
return _char.toUpperCase();
|
|
1290
|
-
}) + "?");
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
return processed;
|
|
1294
|
-
};
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
1098
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1298
1099
|
if (interpolation == null) {
|
|
1299
1100
|
return '';
|
|
1300
1101
|
}
|
|
1301
1102
|
|
|
1302
1103
|
if (interpolation.__emotion_styles !== undefined) {
|
|
1303
|
-
if ("development" !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
|
1304
|
-
throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
|
|
1305
|
-
}
|
|
1306
1104
|
|
|
1307
1105
|
return interpolation;
|
|
1308
1106
|
}
|
|
@@ -1342,10 +1140,6 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1342
1140
|
|
|
1343
1141
|
var styles = interpolation.styles + ";";
|
|
1344
1142
|
|
|
1345
|
-
if ("development" !== 'production' && interpolation.map !== undefined) {
|
|
1346
|
-
styles += interpolation.map;
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
1143
|
return styles;
|
|
1350
1144
|
}
|
|
1351
1145
|
|
|
@@ -1359,28 +1153,10 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1359
1153
|
var result = interpolation(mergedProps);
|
|
1360
1154
|
cursor = previousCursor;
|
|
1361
1155
|
return handleInterpolation(mergedProps, registered, result);
|
|
1362
|
-
} else if ("development" !== 'production') {
|
|
1363
|
-
console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
|
|
1364
1156
|
}
|
|
1365
1157
|
|
|
1366
1158
|
break;
|
|
1367
1159
|
}
|
|
1368
|
-
|
|
1369
|
-
case 'string':
|
|
1370
|
-
if ("development" !== 'production') {
|
|
1371
|
-
var matched = [];
|
|
1372
|
-
var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
|
|
1373
|
-
var fakeVarName = "animation" + matched.length;
|
|
1374
|
-
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
|
|
1375
|
-
return "${" + fakeVarName + "}";
|
|
1376
|
-
});
|
|
1377
|
-
|
|
1378
|
-
if (matched.length) {
|
|
1379
|
-
console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
break;
|
|
1384
1160
|
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
1385
1161
|
|
|
1386
1162
|
|
|
@@ -1410,7 +1186,7 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1410
1186
|
string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
|
|
1411
1187
|
}
|
|
1412
1188
|
} else {
|
|
1413
|
-
if (_key === 'NO_COMPONENT_SELECTOR' && "
|
|
1189
|
+
if (_key === 'NO_COMPONENT_SELECTOR' && "production" !== 'production') {
|
|
1414
1190
|
throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
|
|
1415
1191
|
}
|
|
1416
1192
|
|
|
@@ -1433,9 +1209,6 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1433
1209
|
|
|
1434
1210
|
default:
|
|
1435
1211
|
{
|
|
1436
|
-
if ("development" !== 'production' && _key === 'undefined') {
|
|
1437
|
-
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
1438
|
-
}
|
|
1439
1212
|
|
|
1440
1213
|
string += _key + "{" + interpolated + "}";
|
|
1441
1214
|
}
|
|
@@ -1449,11 +1222,6 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1449
1222
|
}
|
|
1450
1223
|
|
|
1451
1224
|
var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
|
|
1452
|
-
var sourceMapPattern;
|
|
1453
|
-
|
|
1454
|
-
if ("development" !== 'production') {
|
|
1455
|
-
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
1456
|
-
} // this is the cursor for keyframes
|
|
1457
1225
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
1458
1226
|
|
|
1459
1227
|
|
|
@@ -1472,9 +1240,6 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1472
1240
|
stringMode = false;
|
|
1473
1241
|
styles += handleInterpolation(mergedProps, registered, strings);
|
|
1474
1242
|
} else {
|
|
1475
|
-
if ("development" !== 'production' && strings[0] === undefined) {
|
|
1476
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1477
|
-
}
|
|
1478
1243
|
|
|
1479
1244
|
styles += strings[0];
|
|
1480
1245
|
} // we start at 1 since we've already handled the first arg
|
|
@@ -1484,23 +1249,11 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1484
1249
|
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
1485
1250
|
|
|
1486
1251
|
if (stringMode) {
|
|
1487
|
-
if ("development" !== 'production' && strings[i] === undefined) {
|
|
1488
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1489
|
-
}
|
|
1490
1252
|
|
|
1491
1253
|
styles += strings[i];
|
|
1492
1254
|
}
|
|
1493
1255
|
}
|
|
1494
1256
|
|
|
1495
|
-
var sourceMap;
|
|
1496
|
-
|
|
1497
|
-
if ("development" !== 'production') {
|
|
1498
|
-
styles = styles.replace(sourceMapPattern, function (match) {
|
|
1499
|
-
sourceMap = match;
|
|
1500
|
-
return '';
|
|
1501
|
-
});
|
|
1502
|
-
} // using a global regex with .exec is stateful so lastIndex has to be reset each time
|
|
1503
|
-
|
|
1504
1257
|
|
|
1505
1258
|
labelPattern.lastIndex = 0;
|
|
1506
1259
|
var identifierName = '';
|
|
@@ -1513,19 +1266,6 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1513
1266
|
|
|
1514
1267
|
var name = murmur2(styles) + identifierName;
|
|
1515
1268
|
|
|
1516
|
-
if ("development" !== 'production') {
|
|
1517
|
-
// $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
|
|
1518
|
-
return {
|
|
1519
|
-
name: name,
|
|
1520
|
-
styles: styles,
|
|
1521
|
-
map: sourceMap,
|
|
1522
|
-
next: cursor,
|
|
1523
|
-
toString: function toString() {
|
|
1524
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
|
-
}
|
|
1528
|
-
|
|
1529
1269
|
return {
|
|
1530
1270
|
name: name,
|
|
1531
1271
|
styles: styles,
|
|
@@ -1593,9 +1333,6 @@ var createEmotion = function createEmotion(options) {
|
|
|
1593
1333
|
var cache = createCache(options); // $FlowFixMe
|
|
1594
1334
|
|
|
1595
1335
|
cache.sheet.speedy = function (value) {
|
|
1596
|
-
if ("development" !== 'production' && this.ctr !== 0) {
|
|
1597
|
-
throw new Error('speedy must be changed before any rules are inserted');
|
|
1598
|
-
}
|
|
1599
1336
|
|
|
1600
1337
|
this.isSpeedy = value;
|
|
1601
1338
|
};
|
|
@@ -1714,18 +1451,9 @@ var classnames = function classnames(args) {
|
|
|
1714
1451
|
var _createEmotion = createEmotion({
|
|
1715
1452
|
key: 'css'
|
|
1716
1453
|
}),
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
merge$1 = _createEmotion.merge,
|
|
1721
|
-
getRegisteredStyles$1 = _createEmotion.getRegisteredStyles,
|
|
1722
|
-
injectGlobal = _createEmotion.injectGlobal,
|
|
1723
|
-
keyframes = _createEmotion.keyframes,
|
|
1724
|
-
css = _createEmotion.css,
|
|
1725
|
-
sheet = _createEmotion.sheet,
|
|
1726
|
-
cache = _createEmotion.cache;
|
|
1727
|
-
|
|
1728
|
-
function i$1(){return (i$1=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r]);}return n}).apply(this,arguments)}function a$1(n,t){return t||(t=n.slice(0)),n.raw=t,n}var l$1,s$1,u$1,c$1=css(l$1||(l$1=a$1(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function d$1(n,t){var o,r=t.story.title.split("/"),e=r[1]?r[0]:"_";return i$1({},n,((o={})[e]=[].concat(n[e]||[],[{story:i$1({},t.story,{title:r[1]||r[0]}),subs:t.subs}]).sort(function(n,t){return n.story.title.localeCompare(t.story.title)}),o))}function p$1(n){return {story:n.default,subs:function(n,t){if(null==n)return {};var o,r,e={},i=Object.keys(n);for(r=0;r<i.length;r++)t.indexOf(o=i[r])>=0||(e[o]=n[o]);return e}(n,["default"])}}function f$1(n,t){var o,r;if(n){var e=decodeURIComponent(n).split("-"),i=e[1],a=e[2],l=null==t||null==(o=t[e[0]])?void 0:o.find(function(n){return n.story.title===i}),s=null==l||null==(r=l.subs)?void 0:r[a],u={key:n,story:s,parent:null==l?void 0:l.story,label:null==s?void 0:s.name};return u.key&&u.story&&u.parent&&u.label?u:void 0}}function y$1(l,y){var m=y.h,g=void 0===m?index.h:m,b=y.title,x=void 0===b?"Stencilbook":b,h=y.homepage,v=void 0===h?g("h3",null,"Select a story!"):h,w=y.addons,k=void 0===w?[]:w,S=stencilHooks_module.useMemo(function(){return l.map(p$1).reduce(d$1,{_:[]})},l),C=decodeURIComponent(window.location.hash).replace("#",""),z=stencilHooks_module.useState(f$1(C,S)),O=z[0],j=z[1],I=null==O?void 0:O.key,R=stencilHooks_module.useState(!0),U=R[0],_=R[1],B=stencilHooks_module.useState(!1),L=B[0],T=B[1],q=function(){return g("div",{class:"dynamic-display-wrapper"},g("button",{class:L?"active":"",onClick:function(){return T(function(n){return !n})}},"Toggle Dark Background"),g("button",{class:U?"active":"",onClick:function(){return _(function(n){return !n})}},"Toggle Sidebar"))},A=css(s$1||(s$1=a$1(["\n max-width: ",";\n margin-left: ",";\n "])),"1124px",U?"250px":"0px"),D=css(u$1||(u$1=a$1(["\n display: none;\n "])));document.body.style.backgroundColor=L?"#232323":"#fafafa";var N=function(n){var t=n.selected,o=k.reduce(function(n,o){return function(){return g(o,{story:i$1({},t)},g(n,null))}},null==t?void 0:t.story);return g(o,null)},P=function(){return g("div",{class:"story-book-outer-div"},g("div",{class:"story-div "+(U?"":D)},g("div",{class:"header",onClick:function(){j(void 0);}},g("h2",null,x)),g("ul",{class:"parentStoryList"},Object.keys(S).sort().map(function(n){return g("div",{class:"group-wrapper"},"_"!==n&&g("h4",{class:"group-header"},n),S[n].map(function(t){return g("li",{class:"parentStory"},g("details",{style:{marginBottom:"10px"}},g("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map(function(o){var e=n+"-"+t.story.title+"-"+o,i=t.subs[o].storyName||lodash_startcase(o);return g("div",{class:"subStory "+(I===e?"selected":"")},g("a",{onClick:function(){return function(n){window.location.hash=encodeURIComponent(n),j(f$1(n,S));}(e)}},i))})))}))}))),g(q,null),g("div",{class:"component "+A},!I&&v,I&&g("div",null,g("h3",null,O.label),g(N,{selected:O}))))};return {class:c$1,children:g(P,null),View:P,selected:O}}
|
|
1454
|
+
css = _createEmotion.css;
|
|
1455
|
+
|
|
1456
|
+
function i$1(){return (i$1=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r]);}return n}).apply(this,arguments)}function a$1(n,t){return t||(t=n.slice(0)),n.raw=t,n}var l,s,u,c$1=css(l||(l=a$1(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function d$1(n,t){var o,r=t.story.title.split("/"),e=r[1]?r[0]:"_";return i$1({},n,((o={})[e]=[].concat(n[e]||[],[{story:i$1({},t.story,{title:r[1]||r[0]}),subs:t.subs}]).sort(function(n,t){return n.story.title.localeCompare(t.story.title)}),o))}function p$1(n){return {story:n.default,subs:function(n,t){if(null==n)return {};var o,r,e={},i=Object.keys(n);for(r=0;r<i.length;r++)t.indexOf(o=i[r])>=0||(e[o]=n[o]);return e}(n,["default"])}}function f(n,t){var o,r;if(n){var e=decodeURIComponent(n).split("-"),i=e[1],a=e[2],l=null==t||null==(o=t[e[0]])?void 0:o.find(function(n){return n.story.title===i}),s=null==l||null==(r=l.subs)?void 0:r[a],u={key:n,story:s,parent:null==l?void 0:l.story,label:null==s?void 0:s.name};return u.key&&u.story&&u.parent&&u.label?u:void 0}}function y$1(l,y){var m=y.h,g=void 0===m?index.h:m,b=y.title,x=void 0===b?"Stencilbook":b,h=y.homepage,v=void 0===h?g("h3",null,"Select a story!"):h,w=y.addons,k=void 0===w?[]:w,S=stencilHooks_module.useMemo(function(){return l.map(p$1).reduce(d$1,{_:[]})},l),C=decodeURIComponent(window.location.hash).replace("#",""),z=stencilHooks_module.useState(f(C,S)),O=z[0],j=z[1],I=null==O?void 0:O.key,R=stencilHooks_module.useState(!0),U=R[0],_=R[1],B=stencilHooks_module.useState(!1),L=B[0],T=B[1],q=function(){return g("div",{class:"dynamic-display-wrapper"},g("button",{class:L?"active":"",onClick:function(){return T(function(n){return !n})}},"Toggle Dark Background"),g("button",{class:U?"active":"",onClick:function(){return _(function(n){return !n})}},"Toggle Sidebar"))},A=css(s||(s=a$1(["\n max-width: ",";\n margin-left: ",";\n "])),"1124px",U?"250px":"0px"),D=css(u||(u=a$1(["\n display: none;\n "])));document.body.style.backgroundColor=L?"#232323":"#fafafa";var N=function(n){var t=n.selected,o=k.reduce(function(n,o){return function(){return g(o,{story:i$1({},t)},g(n,null))}},null==t?void 0:t.story);return g(o,null)},P=function(){return g("div",{class:"story-book-outer-div"},g("div",{class:"story-div "+(U?"":D)},g("div",{class:"header",onClick:function(){j(void 0);}},g("h2",null,x)),g("ul",{class:"parentStoryList"},Object.keys(S).sort().map(function(n){return g("div",{class:"group-wrapper"},"_"!==n&&g("h4",{class:"group-header"},n),S[n].map(function(t){return g("li",{class:"parentStory"},g("details",{style:{marginBottom:"10px"}},g("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map(function(o){var e=n+"-"+t.story.title+"-"+o,i=t.subs[o].storyName||lodash_startcase(o);return g("div",{class:"subStory "+(I===e?"selected":"")},g("a",{onClick:function(){return function(n){window.location.hash=encodeURIComponent(n),j(f(n,S));}(e)}},i))})))}))}))),g(q,null),g("div",{class:"component "+A},!I&&v,I&&g("div",null,g("h3",null,O.label),g(N,{selected:O}))))};return {class:c$1,children:g(P,null),View:P,selected:O}}
|
|
1729
1457
|
|
|
1730
1458
|
const scenario = "@author:noah\n@owner:noah\nFeature: Share Button\n\n The share button redirects users to a platform where they can share their referral link\n\n @motivating\n @ui\n Scenario Outline: Share button displays for various platforms\n Given the share button's medium prop is \"<medium>\"\n And the button's child is text saying \"BUTTON_TEXT\"\n When the share button is rendered\n Then the button has text \"BUTTON_TEXT\"\n And the button is <colour>\n And it displays an <icon> beside the text\n And clicking the button redirects to an appropriate link\n Examples:\n | medium | colour | icon |\n | facebook | #1877f2 | facebook logo |\n | twitter | #000000 | twitter x logo |\n | email | #666666 | envelope |\n | direct | brand colour | paper plane |\n | linkedin | #0077b5 | linkedIn logo |\n | sms | #34DA50 | chat bubble |\n | fbmessenger | #0084ff | messenger logo |\n | whatsapp | #25d366 | whatsapp logo |\n | linemessenger | #00B300 | linemessenger logo |\n | pinterest | #e60023 | pinterest logo |\n\n @minutia\n @ui\n Scenario Outline: Default icons can be overwritten\n Given a share button for any medium with <iconPropValue>\n When the share button is rendered\n Then it displays a <iconPropValue> instead of the share mediums default icon\n Examples:\n | iconPropValue |\n | basket |\n | bluetooth |\n | bandaid |\n\n @motivating\n @ui\n Scenario Outline: Default share medium colours can be overwritten\n Given a share button for any medium with <backgroundColourPropValue>\n When the share button is rendered\n Then the share button is <backgroundColourPropValue>\n Examples:\n | backgroundColourPropValue |\n | blue |\n | black |\n | green |\n\n @minutia\n @ui\n Scenario Outline: Share medium icons and text can be hidden\n Given a share button with <prop> <value>\n When the share button is rendered\n Then <element> is hidden\n Examples:\n | prop | value | element |\n | hideicon | true | icon |\n | hidetext | true | text |\n\n @minutia\n @ui\n Scenario Outline: Icons can be on either side of the text\n Given a share button with <iconslotPropValue>\n When the share button is rendered\n Then the icon is displayed to the <direction> of the text\n Examples:\n | iconslotPropValue | direction |\n | suffix | right |\n | prefix | left |\n | prefix | left |\n\n @minutia\n Scenario: Unsupported browsers hide native share buttons\n Given the share button's medium prop is \"direct\"\n And your browser does not support the Web Share API\n Then the share button is hidden\n\n @minutia\n Scenario: SMS share buttons are hidden on non Android and iOS devices\n Given the share button's medium is \"sms\"\n And the share button is being viewed on a device which is not an Android or iOS device\n Then the share button is hidden\n\n @motivating\n Scenario: Facebook share buttons uses SquatchAndroid sharing features\n Given the share button's medium is \"facebook\"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is available\n Then tapping the share button opens the phone's Facebook app\n And a share activity is opened with the share link prefilled\n\n @motivating\n Scenario: SquatchAndroid falls back to the Facebook website if no app is available\n Given the share button's medium is \"facebook\"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is not available\n Then tapping the share button opens the the Facebook mobile site in the device's browser\n And a share activity is opened with the share link prefilled\n\n @minutia\n Scenario: A supplied program ID is used if available\n Given the program id is supplied to the component in the \"programId\" prop\n Then the program ID in the \"programId\" prop is used to retrieve share links\n\n @minutia\n Scenario: The program ID is automatically fetched from context\n Given the program id is not supplied to the component in the \"programId\" prop\n Then the program ID is retrieved from context";
|
|
1731
1459
|
|
|
@@ -1740,37 +1468,37 @@ const WithIconPrefix = () => {
|
|
|
1740
1468
|
medium: "whatsapp",
|
|
1741
1469
|
iconslot: "prefix",
|
|
1742
1470
|
};
|
|
1743
|
-
return index.h(
|
|
1471
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1744
1472
|
};
|
|
1745
1473
|
const WithIconSuffix = () => {
|
|
1746
1474
|
const props = { medium: "whatsapp", iconslot: "suffix" };
|
|
1747
|
-
return index.h(
|
|
1475
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1748
1476
|
};
|
|
1749
1477
|
const WithIconOverride = () => {
|
|
1750
1478
|
const props = {
|
|
1751
1479
|
medium: "facebook",
|
|
1752
1480
|
icon: "person-badge",
|
|
1753
1481
|
};
|
|
1754
|
-
return index.h(
|
|
1482
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1755
1483
|
};
|
|
1756
1484
|
const TextStyle = () => {
|
|
1757
1485
|
const props = {
|
|
1758
1486
|
medium: "facebook",
|
|
1759
1487
|
type: "text",
|
|
1760
1488
|
};
|
|
1761
|
-
return index.h(
|
|
1489
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1762
1490
|
};
|
|
1763
1491
|
const WithoutIcon = () => {
|
|
1764
1492
|
const props = { medium: "facebook", hideicon: true };
|
|
1765
|
-
return index.h(
|
|
1493
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1766
1494
|
};
|
|
1767
1495
|
const WithoutText = () => {
|
|
1768
1496
|
const props = { medium: "facebook", hidetext: true };
|
|
1769
|
-
return index.h(
|
|
1497
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1770
1498
|
};
|
|
1771
1499
|
const TextStyleWithoutIcon = () => {
|
|
1772
1500
|
const props = { medium: "facebook", type: "text", hideicon: true };
|
|
1773
|
-
return index.h(
|
|
1501
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
|
|
1774
1502
|
};
|
|
1775
1503
|
const WithCustomColors = () => {
|
|
1776
1504
|
const props = {
|
|
@@ -1780,7 +1508,7 @@ const WithCustomColors = () => {
|
|
|
1780
1508
|
textcolor: "yellow",
|
|
1781
1509
|
iconslot: "prefix",
|
|
1782
1510
|
};
|
|
1783
|
-
return index.h(
|
|
1511
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Facebook");
|
|
1784
1512
|
};
|
|
1785
1513
|
const WithCustomBorderRadius = () => {
|
|
1786
1514
|
const props = {
|
|
@@ -1789,7 +1517,7 @@ const WithCustomBorderRadius = () => {
|
|
|
1789
1517
|
borderradius: 8,
|
|
1790
1518
|
iconslot: "prefix",
|
|
1791
1519
|
};
|
|
1792
|
-
return index.h(
|
|
1520
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Facebook");
|
|
1793
1521
|
};
|
|
1794
1522
|
const LinkLocationTest = () => {
|
|
1795
1523
|
const props = {
|
|
@@ -1798,7 +1526,7 @@ const LinkLocationTest = () => {
|
|
|
1798
1526
|
onClick: undefined,
|
|
1799
1527
|
messageLink: "https://www.example.com",
|
|
1800
1528
|
};
|
|
1801
|
-
return index.h(
|
|
1529
|
+
return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Click me");
|
|
1802
1530
|
};
|
|
1803
1531
|
const FullStackIcon = () => {
|
|
1804
1532
|
return (index.h("div", null,
|
|
@@ -1923,11 +1651,6 @@ const EmptyState = /*#__PURE__*/Object.freeze({
|
|
|
1923
1651
|
const Pagination_stories = {
|
|
1924
1652
|
title: "Components/Link Button",
|
|
1925
1653
|
};
|
|
1926
|
-
const defaultProps = {
|
|
1927
|
-
link: "https://example.com",
|
|
1928
|
-
openInNewTab: false,
|
|
1929
|
-
buttonText: "Button Text",
|
|
1930
|
-
};
|
|
1931
1654
|
const Default = () => {
|
|
1932
1655
|
return index.h("sqm-pagination", null);
|
|
1933
1656
|
};
|
|
@@ -2031,7 +1754,7 @@ const BigStat_stories = {
|
|
|
2031
1754
|
};
|
|
2032
1755
|
const Default$2 = () => {
|
|
2033
1756
|
const props = { value: 990000, statvalue: "9.900,00", loading: false };
|
|
2034
|
-
return index.h(
|
|
1757
|
+
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), "Big stat");
|
|
2035
1758
|
};
|
|
2036
1759
|
const LeftAlign = () => {
|
|
2037
1760
|
const props = {
|
|
@@ -2040,7 +1763,7 @@ const LeftAlign = () => {
|
|
|
2040
1763
|
alignment: "left",
|
|
2041
1764
|
loading: false,
|
|
2042
1765
|
};
|
|
2043
|
-
return index.h(
|
|
1766
|
+
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), "Big stat");
|
|
2044
1767
|
};
|
|
2045
1768
|
const RightAlign = () => {
|
|
2046
1769
|
const props = {
|
|
@@ -2049,7 +1772,7 @@ const RightAlign = () => {
|
|
|
2049
1772
|
alignment: "right",
|
|
2050
1773
|
loading: false,
|
|
2051
1774
|
};
|
|
2052
|
-
return index.h(
|
|
1775
|
+
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), "Big stat");
|
|
2053
1776
|
};
|
|
2054
1777
|
const FlexReverse = () => {
|
|
2055
1778
|
const props = {
|
|
@@ -2058,7 +1781,7 @@ const FlexReverse = () => {
|
|
|
2058
1781
|
flexReverse: true,
|
|
2059
1782
|
loading: false,
|
|
2060
1783
|
};
|
|
2061
|
-
return index.h(
|
|
1784
|
+
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), "Big stat");
|
|
2062
1785
|
};
|
|
2063
1786
|
const FlexReverseRight = () => {
|
|
2064
1787
|
const props = {
|
|
@@ -2068,7 +1791,7 @@ const FlexReverseRight = () => {
|
|
|
2068
1791
|
alignment: "right",
|
|
2069
1792
|
loading: false,
|
|
2070
1793
|
};
|
|
2071
|
-
return index.h(
|
|
1794
|
+
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), "Big stat");
|
|
2072
1795
|
};
|
|
2073
1796
|
const FlexReverseLeft = () => {
|
|
2074
1797
|
const props = {
|
|
@@ -2078,7 +1801,7 @@ const FlexReverseLeft = () => {
|
|
|
2078
1801
|
alignment: "left",
|
|
2079
1802
|
loading: false,
|
|
2080
1803
|
};
|
|
2081
|
-
return index.h(
|
|
1804
|
+
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), "Big stat");
|
|
2082
1805
|
};
|
|
2083
1806
|
const NoStatValue = () => {
|
|
2084
1807
|
const props = {
|
|
@@ -2086,7 +1809,7 @@ const NoStatValue = () => {
|
|
|
2086
1809
|
statvalue: "...",
|
|
2087
1810
|
loading: false,
|
|
2088
1811
|
};
|
|
2089
|
-
return index.h(
|
|
1812
|
+
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), "Big stat");
|
|
2090
1813
|
};
|
|
2091
1814
|
const InvalidStatValue = () => {
|
|
2092
1815
|
const props = {
|
|
@@ -2094,7 +1817,7 @@ const InvalidStatValue = () => {
|
|
|
2094
1817
|
statvalue: "!!!",
|
|
2095
1818
|
loading: false,
|
|
2096
1819
|
};
|
|
2097
|
-
return index.h(
|
|
1820
|
+
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), "Big stat");
|
|
2098
1821
|
};
|
|
2099
1822
|
const MultipleStats = () => {
|
|
2100
1823
|
return (index.h("sqm-stat-container", { space: "xxx-large", display: "flex" },
|
|
@@ -2284,7 +2007,6 @@ const defaultStyles$1 = {
|
|
|
2284
2007
|
rankSuffix: "{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}",
|
|
2285
2008
|
};
|
|
2286
2009
|
const link = index.h("a", null, "Support");
|
|
2287
|
-
const tag = "Contact" + link + "about upgrading your plan";
|
|
2288
2010
|
const defaultElements$1 = {
|
|
2289
2011
|
empty: (index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png", "empty-state-header": "View your rank in the leaderboard", "empty-state-text": "Be the first to refer a friend and reach the top of the leaderboard" })),
|
|
2290
2012
|
};
|
|
@@ -3003,7 +2725,7 @@ function setupLoggedOut() {
|
|
|
3003
2725
|
const PortalFrame_stories = {
|
|
3004
2726
|
title: "Components/Microsite Frame",
|
|
3005
2727
|
};
|
|
3006
|
-
const defaultProps
|
|
2728
|
+
const defaultProps = {
|
|
3007
2729
|
data: {
|
|
3008
2730
|
footer: index.h("span", null, "example@example.com"),
|
|
3009
2731
|
header: (index.h("div", { slot: "header", style: { display: "flex", flexDirection: "column" } },
|
|
@@ -3020,9 +2742,9 @@ const defaultProps$1 = {
|
|
|
3020
2742
|
};
|
|
3021
2743
|
const FrameWithMenu = () => {
|
|
3022
2744
|
const props = {
|
|
3023
|
-
...defaultProps
|
|
2745
|
+
...defaultProps,
|
|
3024
2746
|
};
|
|
3025
|
-
return (index.h(
|
|
2747
|
+
return (index.h(ShadowViewAddon.PortalFrameView, Object.assign({}, props),
|
|
3026
2748
|
index.h("sqm-navigation-menu", { "menu-label": "Menu" },
|
|
3027
2749
|
index.h("sl-menu-item", { exportparts: "base: menuitem-base", value: "/widget" }, "Dashboard"),
|
|
3028
2750
|
index.h("sl-menu-item", { exportparts: "base: menuitem-base", value: "/editProfile" }, "Edit Profile"),
|
|
@@ -3031,9 +2753,9 @@ const FrameWithMenu = () => {
|
|
|
3031
2753
|
};
|
|
3032
2754
|
const FrameWithoutMenu = () => {
|
|
3033
2755
|
const props = {
|
|
3034
|
-
...defaultProps
|
|
2756
|
+
...defaultProps,
|
|
3035
2757
|
};
|
|
3036
|
-
return index.h(
|
|
2758
|
+
return index.h(ShadowViewAddon.PortalFrameView, Object.assign({}, props));
|
|
3037
2759
|
};
|
|
3038
2760
|
const FullStackFrame = () => {
|
|
3039
2761
|
var _a;
|
|
@@ -3098,7 +2820,7 @@ const PortalFrame = /*#__PURE__*/Object.freeze({
|
|
|
3098
2820
|
const EditProfileForm_stories = {
|
|
3099
2821
|
title: "Components/Edit Profile Form",
|
|
3100
2822
|
};
|
|
3101
|
-
const defaultProps$
|
|
2823
|
+
const defaultProps$1 = {
|
|
3102
2824
|
states: {
|
|
3103
2825
|
loading: false,
|
|
3104
2826
|
submitDisabled: false,
|
|
@@ -3141,15 +2863,15 @@ const defaultProps$2 = {
|
|
|
3141
2863
|
},
|
|
3142
2864
|
};
|
|
3143
2865
|
const EditProfileFormDisabled = () => {
|
|
3144
|
-
const props = defaultProps$
|
|
3145
|
-
return index.h(
|
|
2866
|
+
const props = defaultProps$1;
|
|
2867
|
+
return index.h(ShadowViewAddon.EditProfileView, Object.assign({}, props));
|
|
3146
2868
|
};
|
|
3147
2869
|
const EditProfileFormEnabled = () => {
|
|
3148
2870
|
const props = {
|
|
3149
|
-
...defaultProps$
|
|
3150
|
-
states: { ...defaultProps$
|
|
2871
|
+
...defaultProps$1,
|
|
2872
|
+
states: { ...defaultProps$1.states, showEdit: true },
|
|
3151
2873
|
};
|
|
3152
|
-
return index.h(
|
|
2874
|
+
return index.h(ShadowViewAddon.EditProfileView, Object.assign({}, props));
|
|
3153
2875
|
};
|
|
3154
2876
|
const FullStackFrameWithMenu = () => {
|
|
3155
2877
|
return (index.h("sqm-edit-profile", { editprofileheader: "Edit Profile", editprofiletext: "Update your profile.", firstnametext: "Bill", lastnametext: "Bob", canceltext: "Cancel", updatetext: "Update", currentregiontext: "Current Region", showregion: true }));
|
|
@@ -3190,7 +2912,7 @@ function setupGraphQL$1() {
|
|
|
3190
2912
|
}
|
|
3191
2913
|
const BareBonesView = createHookStory(() => {
|
|
3192
2914
|
setupGraphQL$1();
|
|
3193
|
-
const res =
|
|
2915
|
+
const res = ShadowViewAddon.useShareLink({
|
|
3194
2916
|
programId: "klip-referral-program",
|
|
3195
2917
|
tooltiplifespan: 0,
|
|
3196
2918
|
tooltiptext: "",
|
|
@@ -3202,7 +2924,7 @@ const BareBonesView = createHookStory(() => {
|
|
|
3202
2924
|
});
|
|
3203
2925
|
const RegularView = createHookStory(() => {
|
|
3204
2926
|
setupGraphQL$1();
|
|
3205
|
-
return (index.h(copyTextView.CopyTextView, Object.assign({},
|
|
2927
|
+
return (index.h(copyTextView.CopyTextView, Object.assign({}, ShadowViewAddon.useShareLink({
|
|
3206
2928
|
programId: "klip-referral-program",
|
|
3207
2929
|
tooltiptext: "Copied to clipboard",
|
|
3208
2930
|
tooltiplifespan: 1000,
|
|
@@ -3210,7 +2932,7 @@ const RegularView = createHookStory(() => {
|
|
|
3210
2932
|
});
|
|
3211
2933
|
const FastTooltip = createHookStory(() => {
|
|
3212
2934
|
setupGraphQL$1();
|
|
3213
|
-
return (index.h(copyTextView.CopyTextView, Object.assign({},
|
|
2935
|
+
return (index.h(copyTextView.CopyTextView, Object.assign({}, ShadowViewAddon.useShareLink({
|
|
3214
2936
|
programId: "klip-referral-program",
|
|
3215
2937
|
tooltiptext: "⠀⠀⠀⠀⠀⠀⠀⠀⠀HELLO THERE!!!\n⠀⠀⠀⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌\n⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌\n⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌\n⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪\n⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡\n⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐\n⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔\n⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘\n⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎\n⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗\n⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷\n⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟\n⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰\n⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊\n⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌\n⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁\n⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀\n⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀\n⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟\n⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾\n⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽",
|
|
3216
2938
|
tooltiplifespan: 500,
|
|
@@ -3254,11 +2976,11 @@ const BareBonesView$1 = createHookStory(() => {
|
|
|
3254
2976
|
setupGraphQL$2();
|
|
3255
2977
|
const programId = "sam-partner-test-2";
|
|
3256
2978
|
const res = [
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
2979
|
+
ShadowViewAddon.useShareButton({ programId, medium: "facebook" }),
|
|
2980
|
+
ShadowViewAddon.useShareButton({ programId, medium: "twitter" }),
|
|
2981
|
+
ShadowViewAddon.useShareButton({ programId, medium: "email" }),
|
|
2982
|
+
ShadowViewAddon.useShareButton({ programId, medium: "direct" }),
|
|
2983
|
+
ShadowViewAddon.useShareButton({ programId, medium: "sms" }),
|
|
3262
2984
|
];
|
|
3263
2985
|
return (index.h("div", null, res.map((r) => (index.h("div", null,
|
|
3264
2986
|
index.h("button", { onClick: r.onClick },
|
|
@@ -3326,7 +3048,7 @@ const View = (statType, format, label) => {
|
|
|
3326
3048
|
};
|
|
3327
3049
|
const DemoView = () => {
|
|
3328
3050
|
const [type, setType] = stencilHooks_module.useState("/someRandomThing/with/someArguments/1234");
|
|
3329
|
-
const { props, label } =
|
|
3051
|
+
const { props, label } = ShadowViewAddon.useDemoBigStat({
|
|
3330
3052
|
statType: type,
|
|
3331
3053
|
render: () => { },
|
|
3332
3054
|
disconnectedCallback: () => { },
|
|
@@ -3339,7 +3061,7 @@ const DemoView = () => {
|
|
|
3339
3061
|
index.h("input", { style: { width: "300px" }, type: "text", value: type, onInput: (e) => setType(e.target.value) })),
|
|
3340
3062
|
index.h("hr", null),
|
|
3341
3063
|
index.h("div", null,
|
|
3342
|
-
index.h(
|
|
3064
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, props), label))));
|
|
3343
3065
|
};
|
|
3344
3066
|
const Demo = createHookStory(DemoView);
|
|
3345
3067
|
const ReferralsCount = createHookStory(() => View("/referralsCount", "/(referralsCount)/:status?"));
|
|
@@ -3852,12 +3574,6 @@ const DefaultView = (props) => {
|
|
|
3852
3574
|
};
|
|
3853
3575
|
const RewardList = createHookStory(() => {
|
|
3854
3576
|
setupGraphQL$6();
|
|
3855
|
-
const props = {
|
|
3856
|
-
listType: "",
|
|
3857
|
-
render: () => { },
|
|
3858
|
-
disconnectedCallback: () => { },
|
|
3859
|
-
ignored: true,
|
|
3860
|
-
};
|
|
3861
3577
|
return (index.h("sqm-reward-exchange-list", { "list-type": "something" }));
|
|
3862
3578
|
});
|
|
3863
3579
|
const FixedGlobalReward = createHookStory(() => {
|
|
@@ -3965,14 +3681,6 @@ function setupGraphQLKlip({ token, id }) {
|
|
|
3965
3681
|
return { id, accountId };
|
|
3966
3682
|
}
|
|
3967
3683
|
const RewardTableDemoHook = createHookStory(() => {
|
|
3968
|
-
// setupGraphQL();
|
|
3969
|
-
// setProgramId("sam-partner-test-2");
|
|
3970
|
-
const props = {
|
|
3971
|
-
listType: "",
|
|
3972
|
-
render: () => { },
|
|
3973
|
-
disconnectedCallback: () => { },
|
|
3974
|
-
ignored: true,
|
|
3975
|
-
};
|
|
3976
3684
|
return (index.h("sqm-rewards-table", { "per-page": "4" },
|
|
3977
3685
|
index.h("sqm-rewards-table-reward-column", null),
|
|
3978
3686
|
index.h("sqm-rewards-table-source-column", null),
|
|
@@ -3982,12 +3690,6 @@ const RewardTableDemoHook = createHookStory(() => {
|
|
|
3982
3690
|
const RewardsTableWithProgram = createHookStory(() => {
|
|
3983
3691
|
setupGraphQL$7();
|
|
3984
3692
|
index_module.setProgramId("sam-partner-test-2");
|
|
3985
|
-
const props = {
|
|
3986
|
-
listType: "",
|
|
3987
|
-
render: () => { },
|
|
3988
|
-
disconnectedCallback: () => { },
|
|
3989
|
-
ignored: true,
|
|
3990
|
-
};
|
|
3991
3693
|
return (index.h("sqm-rewards-table", null,
|
|
3992
3694
|
index.h("sqm-rewards-table-reward-column", null),
|
|
3993
3695
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -3997,12 +3699,6 @@ const RewardsTableWithProgram = createHookStory(() => {
|
|
|
3997
3699
|
const RewardsTableNoProgram = createHookStory(() => {
|
|
3998
3700
|
setupGraphQL$7();
|
|
3999
3701
|
index_module.setProgramId(undefined);
|
|
4000
|
-
const props = {
|
|
4001
|
-
listType: "",
|
|
4002
|
-
render: () => { },
|
|
4003
|
-
disconnectedCallback: () => { },
|
|
4004
|
-
ignored: true,
|
|
4005
|
-
};
|
|
4006
3702
|
return (index.h("sqm-rewards-table", null,
|
|
4007
3703
|
index.h("sqm-rewards-table-reward-column", null),
|
|
4008
3704
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -4015,12 +3711,6 @@ const RewardsTableEn = createHookStory(() => {
|
|
|
4015
3711
|
id: "samenglish",
|
|
4016
3712
|
});
|
|
4017
3713
|
index_module.setProgramId(undefined);
|
|
4018
|
-
const props = {
|
|
4019
|
-
listType: "",
|
|
4020
|
-
render: () => { },
|
|
4021
|
-
disconnectedCallback: () => { },
|
|
4022
|
-
ignored: true,
|
|
4023
|
-
};
|
|
4024
3714
|
return (index.h("sqm-rewards-table", { "per-page": "4" },
|
|
4025
3715
|
index.h("sqm-rewards-table-reward-column", null),
|
|
4026
3716
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -4033,12 +3723,6 @@ const RewardsTableTr = createHookStory(() => {
|
|
|
4033
3723
|
id: "samturkey",
|
|
4034
3724
|
});
|
|
4035
3725
|
index_module.setProgramId(undefined);
|
|
4036
|
-
const props = {
|
|
4037
|
-
listType: "",
|
|
4038
|
-
render: () => { },
|
|
4039
|
-
disconnectedCallback: () => { },
|
|
4040
|
-
ignored: true,
|
|
4041
|
-
};
|
|
4042
3726
|
return (index.h("sqm-rewards-table", { "per-page": "4", "more-label": "Daha", "prev-label": "\u00D6ncesi", "empty-state-text": "Hen\u00FCz Referans Yok" },
|
|
4043
3727
|
index.h("sqm-rewards-table-reward-column", { "column-title": "\u00D6d\u00FCller", "redeemed-text": "{redeemedAmount} kullan\u0131ld\u0131", "available-text": "{availableAmount} mevcut" }),
|
|
4044
3728
|
index.h("sqm-rewards-table-source-column", { "column-title": "Kullan\u0131c\u0131lar", "anonymous-user": "Anonim Kullan\u0131c\u0131", "deleted-user": "Silinmi\u015F Kullan\u0131c\u0131", "reward-exchange-text": "\u00D6d\u00FClleri Kulann\u0131n", "referral-text": "{rewardSource, select, FRIEND_SIGNUP {Referans} REFERRED {Y\u00F6nlendiren} other {}}", "reward-source-text": "{rewardSource, select, MANUAL {Manuel} AUTOMATED {Otomatik} other {}}" }),
|
|
@@ -4051,12 +3735,6 @@ const RewardsTableFr = createHookStory(() => {
|
|
|
4051
3735
|
id: "samfrench",
|
|
4052
3736
|
});
|
|
4053
3737
|
index_module.setProgramId(undefined);
|
|
4054
|
-
const props = {
|
|
4055
|
-
listType: "",
|
|
4056
|
-
render: () => { },
|
|
4057
|
-
disconnectedCallback: () => { },
|
|
4058
|
-
ignored: true,
|
|
4059
|
-
};
|
|
4060
3738
|
return (index.h("sqm-rewards-table", { "per-page": "4", "more-label": "Plus", "prev-label": "Pr\u00E9c\u00E9dent", "empty-state-text": "Aucune R\u00E9compenses Maintenant" },
|
|
4061
3739
|
index.h("sqm-rewards-table-reward-column", { "column-title": "R\u00E9compenses", "redeemed-text": "{redeemedAmount} rachet\u00E9e", "available-text": "{availableAmount} disponible" }),
|
|
4062
3740
|
index.h("sqm-rewards-table-source-column", { "column-title": "Utilisateur", "anonymous-user": "Utilisateur Anonyme", "deleted-user": "Utilisateur Supprim\u00E9", "reward-exchange-text": "\u00C9change de R\u00E9compenses", "referral-text": "{rewardSource, select, FRIEND_SIGNUP {R\u00E9f\u00E9rence \u00E0} REFERRED {R\u00E9f\u00E9renc\u00E9 par} other {}}", "reward-source-text": "{rewardSource, select, MANUAL {Manuel} AUTOMATED {Automatique} other {}}" }),
|
|
@@ -4104,22 +3782,10 @@ function setupGraphQL$8() {
|
|
|
4104
3782
|
}
|
|
4105
3783
|
const TaskCard = createHookStory(() => {
|
|
4106
3784
|
setupGraphQL$8();
|
|
4107
|
-
const props = {
|
|
4108
|
-
listType: "",
|
|
4109
|
-
render: () => { },
|
|
4110
|
-
disconnectedCallback: () => { },
|
|
4111
|
-
ignored: true,
|
|
4112
|
-
};
|
|
4113
3785
|
return (index.h("sqm-task-card", { "card-title": "Comment on 5 articles", "button-text": "Start reading", goal: 5, steps: true, "show-progress-bar": true, "event-key": "testEvent", "open-new-tab": true }));
|
|
4114
3786
|
});
|
|
4115
3787
|
const TaskCardFeed = createHookStory(() => {
|
|
4116
3788
|
setupGraphQL$8();
|
|
4117
|
-
const props = {
|
|
4118
|
-
listType: "",
|
|
4119
|
-
render: () => { },
|
|
4120
|
-
disconnectedCallback: () => { },
|
|
4121
|
-
ignored: true,
|
|
4122
|
-
};
|
|
4123
3789
|
return (index.h("sqm-card-feed", null,
|
|
4124
3790
|
index.h("sqm-task-card", { "reward-amount": "75", "card-title": "Refer a Friend", description: "Invite a friend to Klip and get 75 points when they signup for a free trial or contact our us about an enterprise license.", "button-text": "Start referring", "button-link": "https://klip-staging.vercel.app/app/klip-rewards", goal: 1, repeatable: true, "completed-text": "", demoData: "", "ended-message": "", "event-key": "", "expiry-message": "", "progress-bar-unit": "", "reward-duration": "2022-01-04T08:00:00.000Z/2022-01-20T08:00:00.000Z", "reward-unit": "", "starts-on-message": "", "stat-type": "", "display-duration": "2022-01-04T08:00:00.000Z/2022-01-05T08:00:00.000Z" }),
|
|
4125
3791
|
index.h("sqb-program-section", { "program-id": "klip-loyalty" },
|
|
@@ -4155,8 +3821,8 @@ const style = {
|
|
|
4155
3821
|
"text-decoration": "underline",
|
|
4156
3822
|
},
|
|
4157
3823
|
};
|
|
4158
|
-
const sheet
|
|
4159
|
-
const styleString = sheet
|
|
3824
|
+
const sheet = JSS.createStyleSheet(style);
|
|
3825
|
+
const styleString = sheet.toString();
|
|
4160
3826
|
const item1Props = {
|
|
4161
3827
|
states: {
|
|
4162
3828
|
active: false,
|
|
@@ -4241,7 +3907,7 @@ const Dashboard = () => {
|
|
|
4241
3907
|
index.h(Sidebar, null),
|
|
4242
3908
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
4243
3909
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
4244
|
-
index.h(
|
|
3910
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4245
3911
|
labelMargin: "xx-small",
|
|
4246
3912
|
padding: "none",
|
|
4247
3913
|
label: (index.h("sqm-text", null,
|
|
@@ -4249,13 +3915,13 @@ const Dashboard = () => {
|
|
|
4249
3915
|
content: (index.h("sqm-text", null,
|
|
4250
3916
|
index.h("h1", null, "John Smith"))),
|
|
4251
3917
|
})),
|
|
4252
|
-
index.h(
|
|
4253
|
-
index.h(
|
|
4254
|
-
index.h(
|
|
4255
|
-
index.h(
|
|
4256
|
-
index.h(
|
|
3918
|
+
index.h(ShadowViewAddon.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
3919
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "2,345", value: 234500, loading: false }), "Clicks"),
|
|
3920
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "58", value: 58, loading: false }), "Referrals"),
|
|
3921
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "$10,540", value: 1054000, loading: false }), "Earned"),
|
|
3922
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "$2,305", value: 230500, loading: false }), "Awaiting Payout"))),
|
|
4257
3923
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
4258
|
-
index.h(
|
|
3924
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4259
3925
|
labelMargin: "x-large",
|
|
4260
3926
|
padding: "none",
|
|
4261
3927
|
label: (index.h("sqm-text", null,
|
|
@@ -4263,21 +3929,21 @@ const Dashboard = () => {
|
|
|
4263
3929
|
content: (index.h("sqm-text", null,
|
|
4264
3930
|
index.h("p", null, "Get rewarded for referring potential customers to MyCompany. Earn commission for each successful lead you send our way"))),
|
|
4265
3931
|
})),
|
|
4266
|
-
index.h(
|
|
3932
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4267
3933
|
labelMargin: "small",
|
|
4268
3934
|
padding: "none",
|
|
4269
3935
|
label: (index.h("sqm-text", null,
|
|
4270
3936
|
index.h("h3", null, "Share your referral link"))),
|
|
4271
3937
|
content: index.h(copyTextView.CopyTextView, Object.assign({}, sharelinkProps)),
|
|
4272
3938
|
})),
|
|
4273
|
-
index.h(
|
|
3939
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4274
3940
|
labelMargin: "small",
|
|
4275
3941
|
padding: "none",
|
|
4276
3942
|
label: (index.h("sqm-text", null,
|
|
4277
3943
|
index.h("h3", null, "Share your referral code"))),
|
|
4278
3944
|
content: index.h(copyTextView.CopyTextView, Object.assign({}, sharecodeProps)),
|
|
4279
3945
|
})),
|
|
4280
|
-
index.h(
|
|
3946
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4281
3947
|
labelMargin: "small",
|
|
4282
3948
|
padding: "none",
|
|
4283
3949
|
label: (index.h("sqm-text", null,
|
|
@@ -4288,9 +3954,9 @@ const Dashboard = () => {
|
|
|
4288
3954
|
gap: "xxx-large",
|
|
4289
3955
|
minWidth: "150px",
|
|
4290
3956
|
}),
|
|
4291
|
-
index.h(
|
|
4292
|
-
index.h(
|
|
4293
|
-
index.h(
|
|
3957
|
+
index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, twitterButtonProps), "Post about us on X"),
|
|
3958
|
+
index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, facebookButtonProps), "Share on Facebook"),
|
|
3959
|
+
index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, linkedinButtonProps), "Post on Linkedin"))),
|
|
4294
3960
|
}))))));
|
|
4295
3961
|
};
|
|
4296
3962
|
const EditProfile$1 = () => {
|
|
@@ -4334,7 +4000,7 @@ const EditProfile$1 = () => {
|
|
|
4334
4000
|
onChange: (e) => console.log(e),
|
|
4335
4001
|
},
|
|
4336
4002
|
})),
|
|
4337
|
-
index.h(
|
|
4003
|
+
index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, {
|
|
4338
4004
|
states: {
|
|
4339
4005
|
open: true,
|
|
4340
4006
|
error: "",
|
|
@@ -4363,7 +4029,7 @@ const Commissions = () => {
|
|
|
4363
4029
|
index.h(Sidebar, null),
|
|
4364
4030
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
4365
4031
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
4366
|
-
index.h(
|
|
4032
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4367
4033
|
labelMargin: "xx-small",
|
|
4368
4034
|
padding: "none",
|
|
4369
4035
|
label: (index.h("sqm-text", null,
|
|
@@ -4372,15 +4038,15 @@ const Commissions = () => {
|
|
|
4372
4038
|
index.h("p", null,
|
|
4373
4039
|
"for the",
|
|
4374
4040
|
" ",
|
|
4375
|
-
index.h("span", { class: sheet
|
|
4041
|
+
index.h("span", { class: sheet.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
4376
4042
|
" ",
|
|
4377
4043
|
"program"))),
|
|
4378
4044
|
})),
|
|
4379
|
-
index.h(
|
|
4380
|
-
index.h(
|
|
4381
|
-
index.h(
|
|
4382
|
-
index.h(
|
|
4383
|
-
index.h(
|
|
4045
|
+
index.h(ShadowViewAddon.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
4046
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "$ 1,000", value: 100000, loading: false }), "Total Earned"),
|
|
4047
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "$ 800", value: 80000, loading: false }), "Available"),
|
|
4048
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "$ 180", value: 18000, loading: false }), "Pending"),
|
|
4049
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "$ 20", value: 2000, loading: false }), "Redeemed"))))));
|
|
4384
4050
|
};
|
|
4385
4051
|
const Activity = () => {
|
|
4386
4052
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
@@ -4388,7 +4054,7 @@ const Activity = () => {
|
|
|
4388
4054
|
index.h(Sidebar, null),
|
|
4389
4055
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
4390
4056
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
4391
|
-
index.h(
|
|
4057
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4392
4058
|
labelMargin: "xx-small",
|
|
4393
4059
|
padding: "none",
|
|
4394
4060
|
label: (index.h("sqm-text", null,
|
|
@@ -4397,30 +4063,30 @@ const Activity = () => {
|
|
|
4397
4063
|
index.h("p", null,
|
|
4398
4064
|
"for the",
|
|
4399
4065
|
" ",
|
|
4400
|
-
index.h("span", { class: sheet
|
|
4066
|
+
index.h("span", { class: sheet.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
4401
4067
|
" ",
|
|
4402
4068
|
"program"))),
|
|
4403
4069
|
})),
|
|
4404
|
-
index.h(
|
|
4070
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4405
4071
|
labelMargin: "x-large",
|
|
4406
4072
|
padding: "none",
|
|
4407
4073
|
label: (index.h("sqm-text", null,
|
|
4408
4074
|
index.h("h3", null, "Referral Activity"))),
|
|
4409
|
-
content: (index.h(
|
|
4410
|
-
index.h(
|
|
4411
|
-
index.h(
|
|
4412
|
-
index.h(
|
|
4413
|
-
index.h(
|
|
4075
|
+
content: (index.h(ShadowViewAddon.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
4076
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "1,000", value: 100000, loading: false }), "Total Referrals"),
|
|
4077
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "800", value: 800, loading: false }), "Converted"),
|
|
4078
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "180", value: 180, loading: false }), "Pending"),
|
|
4079
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "20", value: 20, loading: false }), "Disqualified"))),
|
|
4414
4080
|
}))),
|
|
4415
|
-
index.h(
|
|
4081
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
4416
4082
|
labelMargin: "x-large",
|
|
4417
4083
|
padding: "xxx-large",
|
|
4418
4084
|
label: (index.h("sqm-text", null,
|
|
4419
4085
|
index.h("h3", null, "Traffic Generated"))),
|
|
4420
|
-
content: (index.h(
|
|
4421
|
-
index.h(
|
|
4422
|
-
index.h(
|
|
4423
|
-
index.h(
|
|
4086
|
+
content: (index.h(ShadowViewAddon.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
4087
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "1,000", value: 1000, loading: false }), "Clicks"),
|
|
4088
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "800", value: 800, loading: false }), "From share link"),
|
|
4089
|
+
index.h(ShadowViewAddon.BigStatView, Object.assign({}, { statvalue: "180", value: 180, loading: false }), "From share mediums"))),
|
|
4424
4090
|
})))));
|
|
4425
4091
|
};
|
|
4426
4092
|
|
|
@@ -4496,11 +4162,8 @@ var marked = stencilHooks_module.createCommonjsModule(function (module, exports)
|
|
|
4496
4162
|
*/
|
|
4497
4163
|
|
|
4498
4164
|
(function (global, factory) {
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.marked = factory());
|
|
4502
|
-
}(stencilHooks_module.commonjsGlobal, (function () { 'use strict';
|
|
4503
|
-
|
|
4165
|
+
module.exports = factory() ;
|
|
4166
|
+
}(stencilHooks_module.commonjsGlobal, (function () {
|
|
4504
4167
|
function _defineProperties(target, props) {
|
|
4505
4168
|
for (var i = 0; i < props.length; i++) {
|
|
4506
4169
|
var descriptor = props[i];
|
|
@@ -7583,20 +7246,6 @@ const NavigationSidebar_stories = {
|
|
|
7583
7246
|
title: "Components/Navigation Sidebar",
|
|
7584
7247
|
};
|
|
7585
7248
|
const DefaultNavigationSidebar = () => {
|
|
7586
|
-
const barProps = {
|
|
7587
|
-
data: {
|
|
7588
|
-
programs: [
|
|
7589
|
-
{
|
|
7590
|
-
key: "program1",
|
|
7591
|
-
label: "My Referral Program",
|
|
7592
|
-
},
|
|
7593
|
-
{
|
|
7594
|
-
key: "program2",
|
|
7595
|
-
label: "My Rewards Program",
|
|
7596
|
-
},
|
|
7597
|
-
],
|
|
7598
|
-
},
|
|
7599
|
-
};
|
|
7600
7249
|
const item1Props = {
|
|
7601
7250
|
states: {
|
|
7602
7251
|
active: false,
|
|
@@ -7631,7 +7280,7 @@ const NavigationSidebar = /*#__PURE__*/Object.freeze({
|
|
|
7631
7280
|
const PortalLogin_stories = {
|
|
7632
7281
|
title: "Components/Microsite Login",
|
|
7633
7282
|
};
|
|
7634
|
-
const defaultProps$
|
|
7283
|
+
const defaultProps$2 = {
|
|
7635
7284
|
states: {
|
|
7636
7285
|
error: "",
|
|
7637
7286
|
loading: false,
|
|
@@ -7676,8 +7325,8 @@ const loadingProps = {
|
|
|
7676
7325
|
pageLabel: "Sign in to your account",
|
|
7677
7326
|
},
|
|
7678
7327
|
};
|
|
7679
|
-
const Default$3 = () => (index.h("sqm-portal-login", { demoData: { ...defaultProps$
|
|
7680
|
-
const IsGoogle = () => (index.h(sqmPortalLoginView.PortalLoginView, Object.assign({}, defaultProps$
|
|
7328
|
+
const Default$3 = () => (index.h("sqm-portal-login", { demoData: { ...defaultProps$2 } }));
|
|
7329
|
+
const IsGoogle = () => (index.h(sqmPortalLoginView.PortalLoginView, Object.assign({}, defaultProps$2, { content: {
|
|
7681
7330
|
secondaryButton: (index.h("span", null,
|
|
7682
7331
|
"Don't have an account?",
|
|
7683
7332
|
" ",
|
|
@@ -7699,7 +7348,7 @@ const PortalLogin = /*#__PURE__*/Object.freeze({
|
|
|
7699
7348
|
const PortalRegister_stories = {
|
|
7700
7349
|
title: "Components/Microsite Register",
|
|
7701
7350
|
};
|
|
7702
|
-
const defaultProps$
|
|
7351
|
+
const defaultProps$3 = {
|
|
7703
7352
|
states: {
|
|
7704
7353
|
registrationFormState: {},
|
|
7705
7354
|
error: "",
|
|
@@ -7794,9 +7443,9 @@ const slottedProps = {
|
|
|
7794
7443
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", label: "Slotted Input 2", required: true }))),
|
|
7795
7444
|
},
|
|
7796
7445
|
};
|
|
7797
|
-
const Default$4 = () => index.h(
|
|
7798
|
-
const RegisterWithError = () => index.h(
|
|
7799
|
-
const RegisterLoading = () => index.h(
|
|
7446
|
+
const Default$4 = () => index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultProps$3));
|
|
7447
|
+
const RegisterWithError = () => index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, errorProps$1));
|
|
7448
|
+
const RegisterLoading = () => index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, loadingProps$1));
|
|
7800
7449
|
const FieldsHidden = () => {
|
|
7801
7450
|
return (index.h("sqm-portal-register", { demoData: {
|
|
7802
7451
|
states: {
|
|
@@ -7809,9 +7458,9 @@ const FieldsHidden = () => {
|
|
|
7809
7458
|
},
|
|
7810
7459
|
} }));
|
|
7811
7460
|
};
|
|
7812
|
-
const SlottedInputs = () => index.h(
|
|
7813
|
-
const TermsAndConditions = () => (index.h(
|
|
7814
|
-
...defaultProps$
|
|
7461
|
+
const SlottedInputs = () => index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, slottedProps));
|
|
7462
|
+
const TermsAndConditions = () => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultProps$3, { content: {
|
|
7463
|
+
...defaultProps$3.content,
|
|
7815
7464
|
terms: (index.h("p", null,
|
|
7816
7465
|
"By signing up you agree to the",
|
|
7817
7466
|
" ",
|
|
@@ -7832,7 +7481,7 @@ const PortalRegister = /*#__PURE__*/Object.freeze({
|
|
|
7832
7481
|
const PortalRegistrationForm_stories = {
|
|
7833
7482
|
title: "Components/Microsite Portal Register",
|
|
7834
7483
|
};
|
|
7835
|
-
const defaultProps$
|
|
7484
|
+
const defaultProps$4 = {
|
|
7836
7485
|
states: {
|
|
7837
7486
|
error: "",
|
|
7838
7487
|
loading: false,
|
|
@@ -7909,7 +7558,7 @@ const slottedProps$1 = {
|
|
|
7909
7558
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", label: "Slotted Input 2", required: true }))),
|
|
7910
7559
|
},
|
|
7911
7560
|
};
|
|
7912
|
-
const Default$5 = () => index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
7561
|
+
const Default$5 = () => index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$4));
|
|
7913
7562
|
const RegisterWithError$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, errorProps$2)));
|
|
7914
7563
|
const RegisterLoading$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, loadingProps$2)));
|
|
7915
7564
|
const FieldsHidden$1 = () => {
|
|
@@ -7925,12 +7574,12 @@ const FieldsHidden$1 = () => {
|
|
|
7925
7574
|
} }));
|
|
7926
7575
|
};
|
|
7927
7576
|
const SlottedInputs$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, slottedProps$1)));
|
|
7928
|
-
const RegisterWithMarketingEmailsCheckbox = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
7929
|
-
...defaultProps$
|
|
7577
|
+
const RegisterWithMarketingEmailsCheckbox = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$4, { content: {
|
|
7578
|
+
...defaultProps$4.content,
|
|
7930
7579
|
emailOptIn: (index.h("sqm-checkbox-field", { checkboxLabel: "I would like to receive marketing and promotional emails for this referral program" })),
|
|
7931
7580
|
} })));
|
|
7932
|
-
const TermsAndConditions$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
7933
|
-
...defaultProps$
|
|
7581
|
+
const TermsAndConditions$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$4, { content: {
|
|
7582
|
+
...defaultProps$4.content,
|
|
7934
7583
|
terms: (index.h("p", null,
|
|
7935
7584
|
"By signing up you agree to the",
|
|
7936
7585
|
" ",
|
|
@@ -7957,7 +7606,7 @@ const PortalForgotPassword_stories = {
|
|
|
7957
7606
|
scenario: scenario$6,
|
|
7958
7607
|
},
|
|
7959
7608
|
};
|
|
7960
|
-
const defaultProps$
|
|
7609
|
+
const defaultProps$5 = {
|
|
7961
7610
|
states: {
|
|
7962
7611
|
error: "",
|
|
7963
7612
|
loading: false,
|
|
@@ -8017,7 +7666,7 @@ const successProps = {
|
|
|
8017
7666
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
8018
7667
|
},
|
|
8019
7668
|
};
|
|
8020
|
-
const Default$6 = () => index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, defaultProps$
|
|
7669
|
+
const Default$6 = () => index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, defaultProps$5));
|
|
8021
7670
|
const ForgotPasswordWithError = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, errorProps$3)));
|
|
8022
7671
|
const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, loadingProps$3)));
|
|
8023
7672
|
const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps)));
|
|
@@ -8058,7 +7707,7 @@ const defaultStates = {
|
|
|
8058
7707
|
loadingVerification: false,
|
|
8059
7708
|
countdown: 10,
|
|
8060
7709
|
};
|
|
8061
|
-
const defaultProps$
|
|
7710
|
+
const defaultProps$6 = {
|
|
8062
7711
|
states: defaultStates,
|
|
8063
7712
|
callbacks: defaultCallbacks,
|
|
8064
7713
|
content: defaultContent,
|
|
@@ -8096,7 +7745,7 @@ const loadingVerificationProps = {
|
|
|
8096
7745
|
callbacks: defaultCallbacks,
|
|
8097
7746
|
content: defaultContent,
|
|
8098
7747
|
};
|
|
8099
|
-
const Default$7 = () => index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, defaultProps$
|
|
7748
|
+
const Default$7 = () => index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, defaultProps$6));
|
|
8100
7749
|
const EmailVerificationWithError = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, errorProps$4)));
|
|
8101
7750
|
const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingProps$4)));
|
|
8102
7751
|
const EmailVerificationCheckingVerification = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingVerificationProps)));
|
|
@@ -8120,7 +7769,7 @@ const PortalResetPassword_stories = {
|
|
|
8120
7769
|
scenario: scenario$8,
|
|
8121
7770
|
},
|
|
8122
7771
|
};
|
|
8123
|
-
const defaultProps$
|
|
7772
|
+
const defaultProps$7 = {
|
|
8124
7773
|
states: {
|
|
8125
7774
|
error: "",
|
|
8126
7775
|
loading: false,
|
|
@@ -8258,7 +7907,7 @@ const validatingCodeProps = {
|
|
|
8258
7907
|
failed: () => console.log("failed"),
|
|
8259
7908
|
},
|
|
8260
7909
|
};
|
|
8261
|
-
const Default$8 = () => index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultProps$
|
|
7910
|
+
const Default$8 = () => index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultProps$7));
|
|
8262
7911
|
const DefaultWithoutConfirmField = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultPropsNoConfirm)));
|
|
8263
7912
|
const ResetPasswordWithError = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, errorProps$5)));
|
|
8264
7913
|
const ResetPasswordLoading = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, loadingProps$5)));
|
|
@@ -8396,7 +8045,7 @@ const Row = () => {
|
|
|
8396
8045
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
8397
8046
|
index.h(Sidebar$1, null),
|
|
8398
8047
|
index.h("div", { style: { padding: "48px" } },
|
|
8399
|
-
index.h(
|
|
8048
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
8400
8049
|
labelMargin: "xx-small",
|
|
8401
8050
|
padding: "none",
|
|
8402
8051
|
label: (index.h("sqm-text", null,
|
|
@@ -8409,7 +8058,7 @@ const Column = () => {
|
|
|
8409
8058
|
return (index.h("sqm-divided-layout", { direction: "column" },
|
|
8410
8059
|
index.h(Sidebar$1, null),
|
|
8411
8060
|
index.h("div", { style: { padding: "48px" } },
|
|
8412
|
-
index.h(
|
|
8061
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
8413
8062
|
labelMargin: "xx-small",
|
|
8414
8063
|
padding: "none",
|
|
8415
8064
|
label: (index.h("sqm-text", null,
|
|
@@ -8422,7 +8071,7 @@ const ColumnCustomDivider = () => {
|
|
|
8422
8071
|
return (index.h("sqm-divided-layout", { direction: "column", dividerStyle: "1px solid red" },
|
|
8423
8072
|
index.h(Sidebar$1, null),
|
|
8424
8073
|
index.h("div", { style: { padding: "48px" } },
|
|
8425
|
-
index.h(
|
|
8074
|
+
index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
|
|
8426
8075
|
labelMargin: "xx-small",
|
|
8427
8076
|
padding: "none",
|
|
8428
8077
|
label: (index.h("sqm-text", null,
|
|
@@ -8448,7 +8097,7 @@ const ChangePassword_stories = {
|
|
|
8448
8097
|
scenario: scenario$a,
|
|
8449
8098
|
},
|
|
8450
8099
|
};
|
|
8451
|
-
const defaultProps$
|
|
8100
|
+
const defaultProps$8 = {
|
|
8452
8101
|
states: {
|
|
8453
8102
|
open: false,
|
|
8454
8103
|
loading: false,
|
|
@@ -8580,12 +8229,12 @@ const successProps$3 = {
|
|
|
8580
8229
|
submit: (e) => console.log("Submit", e),
|
|
8581
8230
|
},
|
|
8582
8231
|
};
|
|
8583
|
-
const Default$a = () => index.h(
|
|
8584
|
-
const Open = () => index.h(
|
|
8585
|
-
const Error$2 = () => index.h(
|
|
8586
|
-
const PaswordError = () => (index.h(
|
|
8587
|
-
const Loading$1 = () => index.h(
|
|
8588
|
-
const Success = () => index.h(
|
|
8232
|
+
const Default$a = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, defaultProps$8));
|
|
8233
|
+
const Open = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, openProps));
|
|
8234
|
+
const Error$2 = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, errorProps$7));
|
|
8235
|
+
const PaswordError = () => (index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, passwordErrorProps)));
|
|
8236
|
+
const Loading$1 = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, loadingProps$6));
|
|
8237
|
+
const Success = () => index.h(ShadowViewAddon.PortalChangePasswordView, Object.assign({}, successProps$3));
|
|
8589
8238
|
|
|
8590
8239
|
const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
8591
8240
|
__proto__: null,
|
|
@@ -8601,7 +8250,7 @@ const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
|
8601
8250
|
const ChangeMarketing_stories = {
|
|
8602
8251
|
title: "Components/Change Marketing Emails Status",
|
|
8603
8252
|
};
|
|
8604
|
-
const defaultProps$
|
|
8253
|
+
const defaultProps$9 = {
|
|
8605
8254
|
states: {
|
|
8606
8255
|
success: false,
|
|
8607
8256
|
loading: false,
|
|
@@ -8632,21 +8281,21 @@ const Default$b = () => {
|
|
|
8632
8281
|
return index.h("sqm-portal-change-marketing", null);
|
|
8633
8282
|
};
|
|
8634
8283
|
const Loading$2 = () => {
|
|
8635
|
-
return (index.h(
|
|
8284
|
+
return (index.h(ShadowViewAddon.ChangeMarktingView, Object.assign({}, defaultProps$9, { states: { ...defaultProps$9.states, loading: true } })));
|
|
8636
8285
|
};
|
|
8637
8286
|
const Error$3 = () => {
|
|
8638
|
-
return (index.h(
|
|
8639
|
-
...defaultProps$
|
|
8287
|
+
return (index.h(ShadowViewAddon.ChangeMarktingView, Object.assign({}, defaultProps$9, { states: {
|
|
8288
|
+
...defaultProps$9.states,
|
|
8640
8289
|
formState: {
|
|
8641
|
-
...defaultProps$
|
|
8290
|
+
...defaultProps$9.states.formState,
|
|
8642
8291
|
errors: { error: true },
|
|
8643
8292
|
error: "An error string",
|
|
8644
8293
|
},
|
|
8645
8294
|
} })));
|
|
8646
8295
|
};
|
|
8647
8296
|
const Success$1 = () => {
|
|
8648
|
-
return (index.h(
|
|
8649
|
-
...defaultProps$
|
|
8297
|
+
return (index.h(ShadowViewAddon.ChangeMarktingView, Object.assign({}, defaultProps$9, { states: {
|
|
8298
|
+
...defaultProps$9.states,
|
|
8650
8299
|
success: true,
|
|
8651
8300
|
} })));
|
|
8652
8301
|
};
|
|
@@ -8663,7 +8312,7 @@ const ChangeMarketing = /*#__PURE__*/Object.freeze({
|
|
|
8663
8312
|
const PortalProfile_stories = {
|
|
8664
8313
|
title: "Components/Microsite Profile",
|
|
8665
8314
|
};
|
|
8666
|
-
const defaultProps$
|
|
8315
|
+
const defaultProps$a = {
|
|
8667
8316
|
states: {
|
|
8668
8317
|
success: false,
|
|
8669
8318
|
loading: false,
|
|
@@ -8879,7 +8528,7 @@ const successProps$4 = {
|
|
|
8879
8528
|
onChange: (e) => console.log(e),
|
|
8880
8529
|
},
|
|
8881
8530
|
};
|
|
8882
|
-
const Default$c = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, defaultProps$
|
|
8531
|
+
const Default$c = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, defaultProps$a));
|
|
8883
8532
|
const DefaultNoCountry = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, noCountry));
|
|
8884
8533
|
const Loading$3 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, loadingProps$7));
|
|
8885
8534
|
const Disabled$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, disabledProps));
|
|
@@ -10268,116 +9917,116 @@ const TaskCard$1 = () => {
|
|
|
10268
9917
|
return (index.h("div", { style: storyFrame },
|
|
10269
9918
|
index.h(Resizer, null,
|
|
10270
9919
|
index.h("h4", null, "Not Repeatable"),
|
|
10271
|
-
index.h(
|
|
9920
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, description: "" }, states: { ...oneAction.states, progress: 0 } })),
|
|
10272
9921
|
index.h("h5", null),
|
|
10273
|
-
index.h(
|
|
9922
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, description: "" }, states: { ...coupleActions.states, progress: 0 } })),
|
|
10274
9923
|
index.h("h5", null),
|
|
10275
|
-
index.h(
|
|
9924
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, description: "" }, states: { ...manyActions.states, progress: 230 } }))),
|
|
10276
9925
|
index.h(Resizer, null,
|
|
10277
9926
|
index.h("h4", null, "Repeatable"),
|
|
10278
|
-
index.h(
|
|
9927
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true }, states: { ...oneAction.states, progress: 2 } })),
|
|
10279
9928
|
index.h("h5", null),
|
|
10280
|
-
index.h(
|
|
9929
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 7 } })),
|
|
10281
9930
|
index.h("h5", null),
|
|
10282
|
-
index.h(
|
|
9931
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 650 } }))),
|
|
10283
9932
|
index.h(Resizer, null,
|
|
10284
9933
|
index.h("h4", null, "Complete"),
|
|
10285
|
-
index.h(
|
|
9934
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 } })),
|
|
10286
9935
|
index.h("h5", null),
|
|
10287
|
-
index.h(
|
|
9936
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 5 } })),
|
|
10288
9937
|
index.h("h5", null),
|
|
10289
|
-
index.h(
|
|
9938
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 } }))),
|
|
10290
9939
|
index.h(Resizer, null,
|
|
10291
9940
|
index.h("h4", null, "Unavailable"),
|
|
10292
|
-
index.h(
|
|
9941
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 } }, expireRepeat)),
|
|
10293
9942
|
index.h("h5", null),
|
|
10294
|
-
index.h(
|
|
9943
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 3 } }, expireRepeat)),
|
|
10295
9944
|
index.h("h5", null),
|
|
10296
|
-
index.h(
|
|
9945
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 250 } }, expireRepeat)))));
|
|
10297
9946
|
};
|
|
10298
9947
|
const TaskCardNotRepeatable = () => {
|
|
10299
9948
|
return (index.h("div", { style: storyFrame },
|
|
10300
9949
|
index.h("div", { style: resizable },
|
|
10301
9950
|
index.h("h4", null, "One Action"),
|
|
10302
|
-
index.h(
|
|
9951
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 } })),
|
|
10303
9952
|
index.h("h5", null),
|
|
10304
|
-
index.h(
|
|
9953
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 } })),
|
|
10305
9954
|
index.h("h5", null)),
|
|
10306
9955
|
index.h("div", { style: resizable },
|
|
10307
9956
|
index.h("h4", null, "A Couple Actions"),
|
|
10308
|
-
index.h(
|
|
9957
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 } })),
|
|
10309
9958
|
index.h("h5", null),
|
|
10310
|
-
index.h(
|
|
9959
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 5 } })),
|
|
10311
9960
|
index.h("h5", null)),
|
|
10312
9961
|
index.h("div", { style: resizable },
|
|
10313
9962
|
index.h("h4", null, "Many Actions"),
|
|
10314
|
-
index.h(
|
|
9963
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 230 } })),
|
|
10315
9964
|
index.h("h5", null),
|
|
10316
|
-
index.h(
|
|
9965
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 } })),
|
|
10317
9966
|
index.h("h5", null))));
|
|
10318
9967
|
};
|
|
10319
9968
|
const TaskCardRepeatable = () => {
|
|
10320
9969
|
return (index.h("div", { style: storyFrame },
|
|
10321
9970
|
index.h("div", { style: resizable },
|
|
10322
9971
|
index.h("h4", null, "One Action"),
|
|
10323
|
-
index.h(
|
|
9972
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true }, states: { ...oneAction.states, progress: 0 } })),
|
|
10324
9973
|
index.h("h5", null),
|
|
10325
|
-
index.h(
|
|
9974
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true }, states: { ...oneAction.states, progress: 1 } })),
|
|
10326
9975
|
index.h("h5", null)),
|
|
10327
9976
|
index.h("div", { style: resizable },
|
|
10328
9977
|
index.h("h4", null, "A Couple Actions"),
|
|
10329
|
-
index.h(
|
|
9978
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 0 } })),
|
|
10330
9979
|
index.h("h5", null),
|
|
10331
|
-
index.h(
|
|
9980
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 5 } })),
|
|
10332
9981
|
index.h("h5", null),
|
|
10333
|
-
index.h(
|
|
9982
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 7 } })),
|
|
10334
9983
|
index.h("h5", null),
|
|
10335
|
-
index.h(
|
|
9984
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 10 } })),
|
|
10336
9985
|
index.h("h5", null)),
|
|
10337
9986
|
index.h("div", { style: resizable },
|
|
10338
9987
|
index.h("h4", null, "Many Actions"),
|
|
10339
|
-
index.h(
|
|
9988
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 0 } })),
|
|
10340
9989
|
index.h("h5", null),
|
|
10341
|
-
index.h(
|
|
9990
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 500 } })),
|
|
10342
9991
|
index.h("h5", null),
|
|
10343
|
-
index.h(
|
|
9992
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 650 } })),
|
|
10344
9993
|
index.h("h5", null),
|
|
10345
|
-
index.h(
|
|
9994
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 1000 } })),
|
|
10346
9995
|
index.h("h5", null))));
|
|
10347
9996
|
};
|
|
10348
9997
|
const TaskCardRepeatableFinite = () => {
|
|
10349
9998
|
return (index.h("div", { style: storyFrame },
|
|
10350
9999
|
index.h("div", { style: resizable },
|
|
10351
10000
|
index.h("h4", null, "One Action"),
|
|
10352
|
-
index.h(
|
|
10001
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true, finite: 2 }, states: { ...oneAction.states, progress: 0 } })),
|
|
10353
10002
|
index.h("h5", null),
|
|
10354
|
-
index.h(
|
|
10003
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true, finite: 2 }, states: { ...oneAction.states, progress: 1 } })),
|
|
10355
10004
|
index.h("h5", null),
|
|
10356
|
-
index.h(
|
|
10005
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true, finite: 2 }, states: { ...oneAction.states, progress: 2 } })),
|
|
10357
10006
|
index.h("h5", null)),
|
|
10358
10007
|
index.h("div", { style: resizable },
|
|
10359
10008
|
index.h("h4", null, "A Couple Actions"),
|
|
10360
|
-
index.h(
|
|
10009
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 2 } })),
|
|
10361
10010
|
index.h("h5", null),
|
|
10362
|
-
index.h(
|
|
10011
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 5 } })),
|
|
10363
10012
|
index.h("h5", null),
|
|
10364
|
-
index.h(
|
|
10013
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 10 } })),
|
|
10365
10014
|
index.h("h5", null),
|
|
10366
|
-
index.h(
|
|
10015
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 3 }, states: { ...coupleActions.states, progress: 12 } })),
|
|
10367
10016
|
index.h("h5", null),
|
|
10368
|
-
index.h(
|
|
10017
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 3 }, states: { ...coupleActions.states, progress: 15 } })),
|
|
10369
10018
|
index.h("h5", null)),
|
|
10370
10019
|
index.h("div", { style: resizable },
|
|
10371
10020
|
index.h("h4", null, "Many Actions"),
|
|
10372
|
-
index.h(
|
|
10021
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 2 }, states: { ...manyActions.states, progress: 200 } })),
|
|
10373
10022
|
index.h("h5", null),
|
|
10374
|
-
index.h(
|
|
10023
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 500 } })),
|
|
10375
10024
|
index.h("h5", null),
|
|
10376
|
-
index.h(
|
|
10025
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 2 }, states: { ...manyActions.states, progress: 1000 } })),
|
|
10377
10026
|
index.h("h5", null),
|
|
10378
|
-
index.h(
|
|
10027
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 1200 } })),
|
|
10379
10028
|
index.h("h5", null),
|
|
10380
|
-
index.h(
|
|
10029
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 1500 } })),
|
|
10381
10030
|
index.h("h5", null))));
|
|
10382
10031
|
};
|
|
10383
10032
|
const TaskCardEndDate = () => {
|
|
@@ -10390,27 +10039,27 @@ const TaskCardEndDate = () => {
|
|
|
10390
10039
|
return (index.h("div", { style: storyFrame },
|
|
10391
10040
|
index.h("div", { style: resizable },
|
|
10392
10041
|
index.h("h4", null, "One Action"),
|
|
10393
|
-
index.h(
|
|
10042
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, ...expire } })),
|
|
10394
10043
|
index.h("h5", null),
|
|
10395
|
-
index.h(
|
|
10044
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, ...expireRepeat } })),
|
|
10396
10045
|
index.h("h5", null),
|
|
10397
|
-
index.h(
|
|
10046
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, ...expireRepeat }, states: { ...oneAction.states, progress: 1 } })),
|
|
10398
10047
|
index.h("h5", null)),
|
|
10399
10048
|
index.h("div", { style: resizable },
|
|
10400
10049
|
index.h("h4", null, "A Couple Actions"),
|
|
10401
|
-
index.h(
|
|
10050
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expire } })),
|
|
10402
10051
|
index.h("h5", null),
|
|
10403
|
-
index.h(
|
|
10052
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10404
10053
|
index.h("h5", null),
|
|
10405
|
-
index.h(
|
|
10054
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expireRepeat }, states: { ...coupleActions.states, progress: 5 } })),
|
|
10406
10055
|
index.h("h5", null)),
|
|
10407
10056
|
index.h("div", { style: resizable },
|
|
10408
10057
|
index.h("h4", null, "Many Actions"),
|
|
10409
|
-
index.h(
|
|
10058
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expire } })),
|
|
10410
10059
|
index.h("h5", null),
|
|
10411
|
-
index.h(
|
|
10060
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expireRepeat } })),
|
|
10412
10061
|
index.h("h5", null),
|
|
10413
|
-
index.h(
|
|
10062
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expireRepeat }, states: { ...manyActions.states, progress: 1000 } })),
|
|
10414
10063
|
index.h("h5", null))));
|
|
10415
10064
|
};
|
|
10416
10065
|
const TaskCardLoading = () => {
|
|
@@ -10420,26 +10069,26 @@ const TaskCardLoading = () => {
|
|
|
10420
10069
|
return (index.h("div", { style: storyFrame },
|
|
10421
10070
|
index.h("div", { style: resizable },
|
|
10422
10071
|
index.h("h4", null, "One Action"),
|
|
10423
|
-
index.h(
|
|
10072
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, loading)),
|
|
10424
10073
|
" ",
|
|
10425
10074
|
index.h("h5", null),
|
|
10426
|
-
index.h(
|
|
10075
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, loading)),
|
|
10427
10076
|
" ",
|
|
10428
10077
|
index.h("h5", null)),
|
|
10429
10078
|
index.h("div", { style: resizable },
|
|
10430
10079
|
index.h("h4", null, "A Couple Actions"),
|
|
10431
|
-
index.h(
|
|
10080
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, loading)),
|
|
10432
10081
|
" ",
|
|
10433
10082
|
index.h("h5", null),
|
|
10434
|
-
index.h(
|
|
10083
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, loading)),
|
|
10435
10084
|
" ",
|
|
10436
10085
|
index.h("h5", null)),
|
|
10437
10086
|
index.h("div", { style: resizable },
|
|
10438
10087
|
index.h("h4", null, "Many Actions"),
|
|
10439
|
-
index.h(
|
|
10088
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, loading)),
|
|
10440
10089
|
" ",
|
|
10441
10090
|
index.h("h5", null),
|
|
10442
|
-
index.h(
|
|
10091
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, loading)),
|
|
10443
10092
|
" ",
|
|
10444
10093
|
index.h("h5", null))));
|
|
10445
10094
|
};
|
|
@@ -10453,33 +10102,33 @@ const TaskCardNotStarted = () => {
|
|
|
10453
10102
|
return (index.h("div", { style: storyFrame },
|
|
10454
10103
|
index.h("div", { style: resizable },
|
|
10455
10104
|
index.h("h4", null, "One Action"),
|
|
10456
|
-
index.h(
|
|
10105
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 }, content: { ...oneAction.content, ...expire } })),
|
|
10457
10106
|
index.h("h5", null),
|
|
10458
|
-
index.h(
|
|
10107
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 }, content: { ...oneAction.content, ...expire } })),
|
|
10459
10108
|
index.h("h5", null),
|
|
10460
|
-
index.h(
|
|
10109
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 }, content: { ...oneAction.content, ...expireRepeat } })),
|
|
10461
10110
|
index.h("h5", null),
|
|
10462
|
-
index.h(
|
|
10111
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 }, content: { ...oneAction.content, ...expireRepeat } })),
|
|
10463
10112
|
index.h("h5", null)),
|
|
10464
10113
|
index.h("div", { style: resizable },
|
|
10465
10114
|
index.h("h4", null, "A Couple Actions"),
|
|
10466
|
-
index.h(
|
|
10115
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
10467
10116
|
index.h("h5", null),
|
|
10468
|
-
index.h(
|
|
10117
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
10469
10118
|
index.h("h5", null),
|
|
10470
|
-
index.h(
|
|
10119
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10471
10120
|
index.h("h5", null),
|
|
10472
|
-
index.h(
|
|
10121
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10473
10122
|
index.h("h5", null)),
|
|
10474
10123
|
index.h("div", { style: resizable },
|
|
10475
10124
|
index.h("h4", null, "Many Actions"),
|
|
10476
|
-
index.h(
|
|
10125
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expire } })),
|
|
10477
10126
|
index.h("h5", null),
|
|
10478
|
-
index.h(
|
|
10127
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expire } })),
|
|
10479
10128
|
index.h("h5", null),
|
|
10480
|
-
index.h(
|
|
10129
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
10481
10130
|
index.h("h5", null),
|
|
10482
|
-
index.h(
|
|
10131
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
10483
10132
|
index.h("h5", null))));
|
|
10484
10133
|
};
|
|
10485
10134
|
const TaskCardEnded = () => {
|
|
@@ -10492,33 +10141,33 @@ const TaskCardEnded = () => {
|
|
|
10492
10141
|
return (index.h("div", { style: storyFrame },
|
|
10493
10142
|
index.h("div", { style: resizable },
|
|
10494
10143
|
index.h("h4", null, "One Action"),
|
|
10495
|
-
index.h(
|
|
10144
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 }, content: { ...oneAction.content, ...expire } })),
|
|
10496
10145
|
index.h("h5", null),
|
|
10497
|
-
index.h(
|
|
10146
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 }, content: { ...oneAction.content, ...expire } })),
|
|
10498
10147
|
index.h("h5", null),
|
|
10499
|
-
index.h(
|
|
10148
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 }, content: { ...oneAction.content, ...expireRepeat } })),
|
|
10500
10149
|
index.h("h5", null),
|
|
10501
|
-
index.h(
|
|
10150
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 }, content: { ...oneAction.content, ...expireRepeat } })),
|
|
10502
10151
|
index.h("h5", null)),
|
|
10503
10152
|
index.h("div", { style: resizable },
|
|
10504
10153
|
index.h("h4", null, "A Couple Actions"),
|
|
10505
|
-
index.h(
|
|
10154
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
10506
10155
|
index.h("h5", null),
|
|
10507
|
-
index.h(
|
|
10156
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
10508
10157
|
index.h("h5", null),
|
|
10509
|
-
index.h(
|
|
10158
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10510
10159
|
index.h("h5", null),
|
|
10511
|
-
index.h(
|
|
10160
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10512
10161
|
index.h("h5", null)),
|
|
10513
10162
|
index.h("div", { style: resizable },
|
|
10514
10163
|
index.h("h4", null, "Many Actions"),
|
|
10515
|
-
index.h(
|
|
10164
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expire } })),
|
|
10516
10165
|
index.h("h5", null),
|
|
10517
|
-
index.h(
|
|
10166
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expire } })),
|
|
10518
10167
|
index.h("h5", null),
|
|
10519
|
-
index.h(
|
|
10168
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
10520
10169
|
index.h("h5", null),
|
|
10521
|
-
index.h(
|
|
10170
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
10522
10171
|
index.h("h5", null))));
|
|
10523
10172
|
};
|
|
10524
10173
|
const TaskCardButtonHidden = () => {
|
|
@@ -10529,48 +10178,48 @@ const TaskCardButtonHidden = () => {
|
|
|
10529
10178
|
return (index.h("div", { style: storyFrame },
|
|
10530
10179
|
index.h(Resizer, null,
|
|
10531
10180
|
index.h("h4", null, "Not Repeatable"),
|
|
10532
|
-
index.h(
|
|
10181
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, description: "", hideButton: true }, states: { ...oneAction.states, progress: 0 } })),
|
|
10533
10182
|
index.h("h5", null),
|
|
10534
|
-
index.h(
|
|
10183
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: {
|
|
10535
10184
|
...coupleActions.content,
|
|
10536
10185
|
description: "",
|
|
10537
10186
|
hideButton: true,
|
|
10538
10187
|
}, states: { ...coupleActions.states, progress: 0 } })),
|
|
10539
10188
|
index.h("h5", null),
|
|
10540
|
-
index.h(
|
|
10189
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: {
|
|
10541
10190
|
...manyActions.content,
|
|
10542
10191
|
description: "",
|
|
10543
10192
|
hideButton: true,
|
|
10544
10193
|
}, states: { ...manyActions.states, progress: 230 } }))),
|
|
10545
10194
|
index.h(Resizer, null,
|
|
10546
10195
|
index.h("h4", null, "Repeatable"),
|
|
10547
|
-
index.h(
|
|
10196
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true, hideButton: true }, states: { ...oneAction.states, progress: 2 } })),
|
|
10548
10197
|
index.h("h5", null),
|
|
10549
|
-
index.h(
|
|
10198
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: {
|
|
10550
10199
|
...coupleActions.content,
|
|
10551
10200
|
repeatable: true,
|
|
10552
10201
|
hideButton: true,
|
|
10553
10202
|
}, states: { ...coupleActions.states, progress: 7 } })),
|
|
10554
10203
|
index.h("h5", null),
|
|
10555
|
-
index.h(
|
|
10204
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: {
|
|
10556
10205
|
...manyActions.content,
|
|
10557
10206
|
repeatable: true,
|
|
10558
10207
|
hideButton: true,
|
|
10559
10208
|
}, states: { ...manyActions.states, progress: 650 } }))),
|
|
10560
10209
|
index.h(Resizer, null,
|
|
10561
10210
|
index.h("h4", null, "Complete"),
|
|
10562
|
-
index.h(
|
|
10211
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, hideButton: true }, states: { ...oneAction.states, progress: 1 } })),
|
|
10563
10212
|
index.h("h5", null),
|
|
10564
|
-
index.h(
|
|
10213
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, hideButton: true }, states: { ...coupleActions.states, progress: 5 } })),
|
|
10565
10214
|
index.h("h5", null),
|
|
10566
|
-
index.h(
|
|
10215
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, hideButton: true }, states: { ...manyActions.states, progress: 500 } }))),
|
|
10567
10216
|
index.h(Resizer, null,
|
|
10568
10217
|
index.h("h4", null, "Unavailable"),
|
|
10569
|
-
index.h(
|
|
10218
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, hideButton: true }, states: { ...oneAction.states, progress: 0 } }, expireRepeat)),
|
|
10570
10219
|
index.h("h5", null),
|
|
10571
|
-
index.h(
|
|
10220
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, hideButton: true }, states: { ...coupleActions.states, progress: 3 } }, expireRepeat)),
|
|
10572
10221
|
index.h("h5", null),
|
|
10573
|
-
index.h(
|
|
10222
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, hideButton: true }, states: { ...manyActions.states, progress: 250 } }, expireRepeat)))));
|
|
10574
10223
|
};
|
|
10575
10224
|
const ProgressBar = () => {
|
|
10576
10225
|
const props = {
|
|
@@ -10579,7 +10228,7 @@ const ProgressBar = () => {
|
|
|
10579
10228
|
progressBarUnit: "$",
|
|
10580
10229
|
};
|
|
10581
10230
|
return (index.h("div", null,
|
|
10582
|
-
index.h(MatrixStory, { matrix: { progress: [0, 100, 500, 650, 1200] }, props: props, Component:
|
|
10231
|
+
index.h(MatrixStory, { matrix: { progress: [0, 100, 500, 650, 1200] }, props: props, Component: ShadowViewAddon.ProgressBarView })));
|
|
10583
10232
|
};
|
|
10584
10233
|
const ProgressBarSteps = () => {
|
|
10585
10234
|
const props = {
|
|
@@ -10588,7 +10237,7 @@ const ProgressBarSteps = () => {
|
|
|
10588
10237
|
goal: 5,
|
|
10589
10238
|
};
|
|
10590
10239
|
return (index.h("div", null,
|
|
10591
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component:
|
|
10240
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component: ShadowViewAddon.ProgressBarView })));
|
|
10592
10241
|
};
|
|
10593
10242
|
const ProgressBarRepeatable = () => {
|
|
10594
10243
|
const props = {
|
|
@@ -10598,7 +10247,7 @@ const ProgressBarRepeatable = () => {
|
|
|
10598
10247
|
repeatable: true,
|
|
10599
10248
|
};
|
|
10600
10249
|
return (index.h("div", null,
|
|
10601
|
-
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component:
|
|
10250
|
+
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component: ShadowViewAddon.ProgressBarView })));
|
|
10602
10251
|
};
|
|
10603
10252
|
const ProgressBarStepsRepeatable = () => {
|
|
10604
10253
|
const props = {
|
|
@@ -10608,7 +10257,7 @@ const ProgressBarStepsRepeatable = () => {
|
|
|
10608
10257
|
repeatable: true,
|
|
10609
10258
|
};
|
|
10610
10259
|
return (index.h("div", null,
|
|
10611
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component:
|
|
10260
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component: ShadowViewAddon.ProgressBarView })));
|
|
10612
10261
|
};
|
|
10613
10262
|
const ProgressBarFinite = () => {
|
|
10614
10263
|
const props = {
|
|
@@ -10619,7 +10268,7 @@ const ProgressBarFinite = () => {
|
|
|
10619
10268
|
finite: 2,
|
|
10620
10269
|
};
|
|
10621
10270
|
return (index.h("div", null,
|
|
10622
|
-
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component:
|
|
10271
|
+
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component: ShadowViewAddon.ProgressBarView })));
|
|
10623
10272
|
};
|
|
10624
10273
|
const ProgressBarStepsFinite = () => {
|
|
10625
10274
|
const props = {
|
|
@@ -10630,7 +10279,7 @@ const ProgressBarStepsFinite = () => {
|
|
|
10630
10279
|
finite: 2,
|
|
10631
10280
|
};
|
|
10632
10281
|
return (index.h("div", null,
|
|
10633
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 10, 12] }, props: props, Component:
|
|
10282
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 10, 12] }, props: props, Component: ShadowViewAddon.ProgressBarView })));
|
|
10634
10283
|
};
|
|
10635
10284
|
|
|
10636
10285
|
const TaskCard$2 = /*#__PURE__*/Object.freeze({
|
|
@@ -10657,7 +10306,7 @@ const portalTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n
|
|
|
10657
10306
|
|
|
10658
10307
|
const portalLeadSubmitTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/refer\"\n icon=\"inbox\"\n label=\"Submit A Lead\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type=\"p/referral-program/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path=\"/refer\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
10659
10308
|
|
|
10660
|
-
const taxAndCashTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-login></sqm-portal-login>\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/taxAndCash\"\n icon=\"file-earmark-text\"\n label=\"Tax & Payout Settings\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\" content-area-width=\"1200px\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type=\"p/referral-program/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path=\"/refer\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text>\n <h1>Activity</h1>\n </sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text>\n <p>Referrals</p>\n </sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text>\n <p>Rewards Earned</p>\n </sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text>\n <p>Reward Balance</p>\n </sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n <template path=\"/taxAndCash\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-tax-and-cash\n step-1_first-name=\"First name\"\n step-1_last-name=\"Last name\"\n step-1_email=\"Email\"\n step-1_country=\"Country\"\n step-1_phone-number=\"Phone number\"\n step-1_address=\"Address\"\n step-1_city=\"City\"\n step-1_state=\"State\"\n step-1_province=\"Province\"\n step-1_region=\"Region\"\n step-1_postal-code=\"Postal code\"\n step-1_currency=\"Currency\"\n step-1_currency-help-text=\"Choose your preferred payout currency\"\n step-1_allow-banking-collection=\"I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information\"\n step-1_personal-information=\"Personal Information\"\n step-1_terms-and-conditions-label=\"terms and conditions\"\n step-1_terms-and-conditions-link=\"/payout-terms-and-conditions\"\n step-1_search-for-currency-text=\"Search for currency..\"\n step-2_indirect-tax=\"Indirect Tax\"\n step-2_indirect-tax-description=\"Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.\"\n step-2_indirect-tax-details=\"Indirect tax details\"\n step-2_other-region=\"Registered for indirect tax\"\n step-2_other-region-subtext=\"If you’ve registered with your tax authority, add your information to stay tax compliant.\"\n step-2_not-registered=\"Not registered for indirect tax\"\n step-2_not-registered-subtext=\"If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.\"\n step-2_selected-region=\"Country / region of indirect tax\"\n step-2_indirect-tax-number=\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}\"\n step-2_province=\"Province\"\n step-2_indirect-tax-number-error=\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required\"\n step-2_qst-number=\"QST number\"\n step-2_is-registered-q-s-t=\"I am registered for QST Tax\"\n step-2_is-registered-sub-region-income-tax=\"I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.\"\n step-2_sub-region=\"Sub-region\"\n step-2_sub-region-tax-number-label=\"Income Tax Number\"\n step-2_cannot-change-info-alert=\"Changes to your personal and indirect tax information can only be made through our Support team after you complete this step. Make sure these are correct before continuing.\"\n step-3_tax-form=\"Tax form\"\n step-3_tax-form-label=\"{documentType} Tax Form\"\n step-3_participant-type=\"Participant type\"\n step-3_business-entity=\"I represent a business\"\n step-3_individual-participant=\"I am an individual participant\"\n step-3_tax-form-description=\"Participants based in the US need to submit a {documentType} form.\"\n step-3_tax-form-description-individual-participant=\"Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.\"\n step-3_tax-form-description-business-entity=\"Participants residing outside of the US who represent a business entity need to submit a {documentType} form.\"\n step-3_docusign-expired=\"For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.\"\n step-3_docusign-session-warning=\"For your security, we automatically end your session when you have not interacted with the form after 20 minutes.\"\n step-3_docusign-error=\"There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support.\"\n step-3_refresh-button=\"Refresh Page\"\n step-3_exit-button=\"Exit\"\n step-4_tax-and-payouts=\"Payouts\"\n step-4_directly-to-bank-account=\"Directly to my bank account\"\n step-4_to-pay-pal-account=\"PayPal (2% processing fee capped to {feeCap})\"\n step-4_payment-schedule-balance-threshold=\"Pay me when my balance reaches a threshold\"\n step-4_payment-schedule-fixed-day=\"Pay me on a fixed day of the month\"\n step-4_payment-day-select-label=\"Payment Day\"\n step-4_payment-threshold-select-label=\"Payment threshold\"\n step-4_payment-day-first-of-month-label-text=\"1st of the month\"\n step-4_payment-day-fifteenth-of-month-label-text=\"15th of the month\"\n step-4_payment-method=\"Payment method\"\n step-4_payment-schedule=\"Payment schedule\"\n step-4_payment-method-subtext=\"Payouts will be sent from our referral program provider, impact.com.\"\n step-4_pay-pal-input-label=\"PayPal email\"\n step-4_bank-location-label=\"Bank country location\"\n step-4_beneficiary-account-name-label=\"Beneficiary account name\"\n step-4_bank-account-type-label=\"Bank account type\"\n step-4_checking-select-item-label=\"Checking\"\n step-4_savings-select-item-label=\"Savings\"\n step-4_bank-account-number-label=\"Bank account number\"\n step-4_iban-label=\"IBAN\"\n step-4_swift-code-label=\"SWIFT code\"\n step-4_routing-code-label=\"{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }\"\n step-4_bank-name-label=\"Bank name\"\n step-4_classification-entity-label=\"Classification entity\"\n step-4_business-select-item-label=\"Business\"\n step-4_individual-select-item-label=\"Individual\"\n step-4_foreign-select-item-label=\"Foreign\"\n step-4_classification-c-p-f-label=\"Classification CPF\"\n step-4_patronymic-name-label=\"Patronymic name\"\n step-4_vo-code-label=\"VO code\"\n step-4_agency-code-label=\"Agency code\"\n step-4_branch-code-label=\"Branch code\"\n step-4_classification-label=\"Classification\"\n step-4_tax-payer-id-label=\"Beneficiary INN\"\n step-4-bank-address-label=\"Bank address\"\n step-4_bank-city-label=\"Bank city\"\n step-4_bank-state-label=\"Bank Province / State\"\n step-4_bank-postal-code-label=\"Bank postal code\"\n step-4_eft-withdrawal-label=\"EFT Withdrawal (free)\"\n step-4_fx-wire-processing-fee-label=\"FX Wire (Processing Fee {currency}{defaultFxFee}.00)\"\n dashboard_status-text-active=\"Active\"\n dashboard_status-text-not-active=\"Invalid Tax Form\"\n dashboard_status-text-not-verified=\"Not Verified\"\n dashboard_badge-text-submitted-on=\"Submitted on {dateSubmitted}.\"\n dashboard_badge-text-submitted-on-w-8=\"Submitted on {dateSubmitted}. Valid for three years after submission.\"\n dashboard_badge-text-awaiting-review=\"Awaiting review. Submitted on {dateSubmitted}.\"\n dashboard_tax-alert-header-not-active-w-9=\"Your W9 tax form has personal information that doesn’t match your profile\"\n dashboard_tax-alert-header-not-active-w-8=\"{documentType} tax form is invalid\"\n dashboard_tax-alert-not-active-message-w-9=\"Please resubmit a new {documentType} form.\"\n dashboard_tax-alert-not-active-message-w-8=\"Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.\"\n dashboard_invalid-form=\"Make sure your information is correct and submit new form.\"\n dashboard_banking-information-section-header=\"Payout Information\"\n dashboard_tax-document-section-header=\"Tax documents\"\n dashboard_tax-document-section-sub-header=\"{documentType} tax form\"\n dashboard_no-form-needed-subtext=\"Tax documents are only required if you are based in the US or joining the referral program of a US based brand.\"\n dashboard_indirect-tax-info-section-header=\"Indirect tax\"\n dashboard_indirect-tax-info-spain=\"Registered in {country}, {subRegion}\"\n dashboard_indirect-tax-info-other-country=\"Registered in {country}\"\n dashboard_indirect-tax-info-canada=\"Registered in {province}, {country}\"\n dashboard_indirect-tax-tooltip-support=\"To make changes to your indirect tax information, please contact Support.\"\n dashboard_indirect-tax-details=\"{indirectTaxType} number: {indirectTaxNumber}\"\n dashboard_new-form-button=\"Submit new form\"\n dashboard_edit-payment-information-button=\"Edit Payout Information\"\n dashboard_not-registered-for-tax=\"Not registered for indirect tax. If you’ve previously registered with your tax authority, contact Support to add your information to stay tax compliant.\"\n dashboard_qst-number=\"QST number: {qstNumber}\"\n dashboard_sub-region-tax-number=\"Income tax number: {subRegionTaxNumber}\"\n dashboard_status-badge-text=\"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }\"\n dashboard_threshold-payout-text=\"Next payout occurs when balance is {thresholdBalance}\"\n dashboard_account-text=\"Account\"\n dashboard_invoice-column-title=\"Invoice\"\n dashboard_date-column-title=\"Date\"\n dashboard_earnings-column-title=\"Earnings\"\n dashboard_indirect-tax-column-title=\"Indirect tax\"\n dashboard_payout-from-impact=\"Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.\"\n dashboard_earnings-after-tax-column-title=\"Earnings after tax\"\n dashboard_error-title-text=\"Your payout is on hold \"\n dashboard_error-description-text=\"If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.\"\n dashboard_payout-missing-information-text=\"Missing banking information, go to Impact.com to resolve.\"\n dashboard_invoice-description=\"View and download your invoices to report your earnings and stay tax compliant.\"\n dashboard_invoice-prev-label=\"Prev\"\n dashboard_invoice-more-label=\"Next\"\n dashboard_invoice-header=\"Invoices\"\n dashboard_invoice-empty-state-header=\"View your invoice details\"\n dashboard_invoice-empty-state-text=\"Refer a friend to view the status of your invoices and rewards earned\"\n dashboard_replace-tax-form-modal-header=\"Replace existing tax form\"\n dashboard_replace-tax-form-modal-body-text=\"Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.\"\n form-step=\"Step {step} of {count}\"\n general-error-title=\"There was a problem submitting your information\"\n general-error-description=\"Please review your information and try again. If this problem continues, contact Support.\"\n field-required-error=\"{fieldName} is required\"\n invalid-character-error=\"{fieldName} includes characters that aren't supported.\"\n field-invalid-error=\"{fieldName} is invalid\"\n continue-button=\"Continue\"\n back-button=\"Back\"\n cancel-button=\"Cancel\"\n is-partner-alert-header=\"An account with this email already exists with our referral program provider, impact.com\"\n is-partner-alert-description=\"If you don’t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email.\"\n search-for-country-text=\"Search for country..\"\n loading-error-alert-header=\"There was a problem loading your form\"\n loading-error-alert-description=\"Please refresh the page and try again. If this problem continues, contact Support.\"\n tax-and-payouts-description=\"Submit your tax documents and add your banking information to receive your rewards.\"\n ></sqm-tax-and-cash>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
10309
|
+
const taxAndCashTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-login></sqm-portal-login>\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/taxAndCash\"\n icon=\"file-earmark-text\"\n label=\"Tax & Payout Settings\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\" content-area-width=\"1200px\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type=\"p/referral-program/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path=\"/refer\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text>\n <h1>Activity</h1>\n </sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text>\n <p>Referrals</p>\n </sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text>\n <p>Rewards Earned</p>\n </sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text>\n <p>Reward Balance</p>\n </sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n <template path=\"/taxAndCash\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-tax-and-cash\n step-1_first-name=\"First name\"\n step-1_last-name=\"Last name\"\n step-1_email=\"Email\"\n step-1_country=\"Country\"\n step-1_phone-number=\"Phone number\"\n step-1_address=\"Address\"\n step-1_city=\"City\"\n step-1_state=\"State\"\n step-1_province=\"Province\"\n step-1_region=\"Region\"\n step-1_postal-code=\"Postal code\"\n step-1_currency=\"Currency\"\n step-1_currency-help-text=\"Choose your preferred payout currency\"\n step-1_allow-banking-collection=\"I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information\"\n step-1_personal-information=\"Personal Information\"\n step-1_terms-and-conditions-label=\"terms and conditions\"\n step-1_terms-and-conditions-link=\"/payout-terms-and-conditions\"\n step-1_search-for-currency-text=\"Search for currency..\"\n step-2_indirect-tax=\"Indirect Tax\"\n step-2_indirect-tax-description=\"Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.\"\n step-2_indirect-tax-details=\"Indirect tax details\"\n step-2_other-region=\"Registered for indirect tax\"\n step-2_other-region-subtext=\"If you’ve registered with your tax authority, add your information to stay tax compliant.\"\n step-2_not-registered=\"Not registered for indirect tax\"\n step-2_not-registered-subtext=\"If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.\"\n step-2_selected-region=\"Country / region of indirect tax\"\n step-2_indirect-tax-number=\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}\"\n step-2_province=\"Province\"\n step-2_indirect-tax-number-error=\"{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required\"\n step-2_qst-number=\"QST number\"\n step-2_is-registered-q-s-t=\"I am registered for QST Tax\"\n step-2_is-registered-sub-region-income-tax=\"I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.\"\n step-2_sub-region=\"Sub-region\"\n step-2_sub-region-tax-number-label=\"Income Tax Number\"\n step-2_cannot-change-info-alert=\"Changes to your personal and indirect tax information can only be made through our Support team after you complete this step. Make sure these are correct before continuing.\"\n step-3_tax-form=\"Tax form\"\n step-3_tax-form-label=\"{documentType} Tax Form\"\n step-3_participant-type=\"Participant type\"\n step-3_business-entity=\"I represent a business\"\n step-3_individual-participant=\"I am an individual participant\"\n step-3_tax-form-description=\"Participants based in the US need to submit a {documentType} form.\"\n step-3_tax-form-description-individual-participant=\"Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.\"\n step-3_tax-form-description-business-entity=\"Participants residing outside of the US who represent a business entity need to submit a {documentType} form.\"\n step-3_docusign-expired=\"For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.\"\n step-3_docusign-session-warning=\"For your security, we automatically end your session when you have not interacted with the form after 20 minutes.\"\n step-3_docusign-error=\"There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support.\"\n step-3_refresh-button=\"Refresh Page\"\n step-3_exit-button=\"Exit\"\n step-3_modal-title=\"Important Note\"\n step-3_modal-description=\"Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.\"\n step-3_modal-button-text=\"I understand\"\n step-4_tax-and-payouts=\"Payouts\"\n step-4_directly-to-bank-account=\"Directly to my bank account\"\n step-4_to-pay-pal-account=\"PayPal (2% processing fee capped to {feeCap})\"\n step-4_payment-schedule-balance-threshold=\"Pay me when my balance reaches a threshold\"\n step-4_payment-schedule-fixed-day=\"Pay me on a fixed day of the month\"\n step-4_payment-day-select-label=\"Payment Day\"\n step-4_payment-threshold-select-label=\"Payment threshold\"\n step-4_payment-day-first-of-month-label-text=\"1st of the month\"\n step-4_payment-day-fifteenth-of-month-label-text=\"15th of the month\"\n step-4_payment-method=\"Payment method\"\n step-4_payment-schedule=\"Payment schedule\"\n step-4_payment-method-subtext=\"Payouts will be sent from our referral program provider, impact.com.\"\n step-4_pay-pal-input-label=\"PayPal email\"\n step-4_bank-location-label=\"Bank country location\"\n step-4_beneficiary-account-name-label=\"Account holder name\"\n step-4_beneficiary-account-name-description=\"The beneficiary name of your bank account. Ensure this matches the name on your tax form.\"\n step-4_bank-account-type-label=\"Bank account type\"\n step-4_checking-select-item-label=\"Checking\"\n step-4_savings-select-item-label=\"Savings\"\n step-4_bank-account-number-label=\"Bank account number\"\n step-4_iban-label=\"IBAN\"\n step-4_swift-code-label=\"SWIFT code\"\n step-4_routing-code-label=\"{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }\"\n step-4_bank-name-label=\"Bank name\"\n step-4_classification-entity-label=\"Classification entity\"\n step-4_business-select-item-label=\"Business\"\n step-4_individual-select-item-label=\"Individual\"\n step-4_foreign-select-item-label=\"Foreign\"\n step-4_classification-c-p-f-label=\"Classification CPF\"\n step-4_patronymic-name-label=\"Patronymic name\"\n step-4_vo-code-label=\"VO code\"\n step-4_agency-code-label=\"Agency code\"\n step-4_branch-code-label=\"Branch code\"\n step-4_classification-label=\"Classification\"\n step-4_tax-payer-id-label=\"Beneficiary INN\"\n step-4-bank-address-label=\"Bank address\"\n step-4_bank-city-label=\"Bank city\"\n step-4_bank-state-label=\"Bank Province / State\"\n step-4_bank-postal-code-label=\"Bank postal code\"\n step-4_eft-withdrawal-label=\"EFT Withdrawal (free)\"\n step-4_fx-wire-processing-fee-label=\"FX Wire (Processing Fee {currency}{defaultFxFee}.00)\"\n step-4_modal-title=\"Important Note\"\n step-4_modal-description=\"Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.\"\n step-4_modal-button-text=\"I understand, update my information\"\n dashboard_status-text-active=\"Active\"\n dashboard_status-text-not-active=\"Invalid Tax Form\"\n dashboard_status-text-not-verified=\"Not Verified\"\n dashboard_badge-text-submitted-on=\"Submitted on {dateSubmitted}.\"\n dashboard_badge-text-submitted-on-w-8=\"Submitted on {dateSubmitted}. Valid for three years after submission.\"\n dashboard_badge-text-awaiting-review=\"Awaiting review. Submitted on {dateSubmitted}.\"\n dashboard_tax-alert-header-not-active-w-9=\"Your W9 tax form has personal information that doesn’t match your profile\"\n dashboard_tax-alert-header-not-active-w-8=\"{documentType} tax form is invalid\"\n dashboard_tax-alert-not-active-message-w-9=\"Please resubmit a new {documentType} form.\"\n dashboard_tax-alert-not-active-message-w-8=\"Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.\"\n dashboard_invalid-form=\"Make sure your information is correct and submit new form.\"\n dashboard_banking-information-section-header=\"Payout Information\"\n dashboard_tax-document-section-header=\"Tax documents\"\n dashboard_tax-document-section-sub-header=\"{documentType} tax form\"\n dashboard_no-form-needed-subtext=\"Tax documents are only required if you are based in the US or joining the referral program of a US based brand.\"\n dashboard_indirect-tax-info-section-header=\"Indirect tax\"\n dashboard_indirect-tax-info-spain=\"Registered in {country}, {subRegion}\"\n dashboard_indirect-tax-info-other-country=\"Registered in {country}\"\n dashboard_indirect-tax-info-canada=\"Registered in {province}, {country}\"\n dashboard_indirect-tax-tooltip-support=\"To make changes to your indirect tax information, please contact Support.\"\n dashboard_indirect-tax-details=\"{indirectTaxType} number: {indirectTaxNumber}\"\n dashboard_new-form-button=\"Submit new form\"\n dashboard_edit-payment-information-button=\"Edit Payout Information\"\n dashboard_not-registered-for-tax=\"Not registered for indirect tax. If you’ve previously registered with your tax authority, contact Support to add your information to stay tax compliant.\"\n dashboard_qst-number=\"QST number: {qstNumber}\"\n dashboard_sub-region-tax-number=\"Income tax number: {subRegionTaxNumber}\"\n dashboard_status-badge-text=\"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }\"\n dashboard_threshold-payout-text=\"Next payout occurs when balance is {thresholdBalance}\"\n dashboard_account-text=\"Account\"\n dashboard_invoice-column-title=\"Invoice\"\n dashboard_date-column-title=\"Date\"\n dashboard_earnings-column-title=\"Earnings\"\n dashboard_indirect-tax-column-title=\"Indirect tax\"\n dashboard_payout-from-impact=\"Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.\"\n dashboard_earnings-after-tax-column-title=\"Earnings after tax\"\n dashboard_error-title-text=\"Your payout is on hold \"\n dashboard_error-description-text=\"If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.\"\n dashboard_payout-missing-information-text=\"Missing banking information, go to Impact.com to resolve.\"\n dashboard_invoice-description=\"View and download your invoices to report your earnings and stay tax compliant.\"\n dashboard_invoice-prev-label=\"Prev\"\n dashboard_invoice-more-label=\"Next\"\n dashboard_invoice-header=\"Invoices\"\n dashboard_invoice-empty-state-header=\"View your invoice details\"\n dashboard_invoice-empty-state-text=\"Refer a friend to view the status of your invoices and rewards earned\"\n dashboard_replace-tax-form-modal-header=\"Replace existing tax form\"\n dashboard_replace-tax-form-modal-body-text=\"Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.\"\n form-step=\"Step {step} of {count}\"\n general-error-title=\"There was a problem submitting your information\"\n general-error-description=\"Please review your information and try again. If this problem continues, contact Support.\"\n field-required-error=\"{fieldName} is required\"\n invalid-character-error=\"{fieldName} includes characters that aren't supported.\"\n field-invalid-error=\"{fieldName} is invalid\"\n continue-button=\"Continue\"\n back-button=\"Back\"\n cancel-button=\"Cancel\"\n is-partner-alert-header=\"An account with this email already exists with our referral program provider, impact.com\"\n is-partner-alert-description=\"If you don’t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email.\"\n search-for-country-text=\"Search for country..\"\n loading-error-alert-header=\"There was a problem loading your form\"\n loading-error-alert-description=\"Please refresh the page and try again. If this problem continues, contact Support.\"\n tax-and-payouts-description=\"Submit your tax documents and add your banking information to receive your rewards.\"\n ></sqm-tax-and-cash>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
10661
10310
|
|
|
10662
10311
|
const portalLeadSubmitTemplateWithDashboard = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/refer\"\n icon=\"inbox\"\n label=\"Submit A Lead\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n ><sqm-titled-section label-margin=\"xx-small\"\n ><sqm-text slot=\"label\"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot=\"content\">\n <h1>\n <sqm-user-name\n fallback=\"Anonymous User\"\n ></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n ><sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-titled-section padding=\"none\" label-margin=\"x-large\"\n ><sqm-text slot=\"label\">\n <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot=\"content\">\n <p>\n Get rewarded for referring potential customers to\n SaaSquatch. Earn commission for each successful lead you\n send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\">\n <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot=\"content\"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\">\n <sqm-text slot=\"label\">\n <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot=\"content\"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\">\n <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot=\"content\"\n direction=\"row\"\n padding=\"none\"\n gap=\"xxx-large\"\n min-width=\"160px\"\n ><sqm-share-button\n icon=\"envelope\"\n medium=\"email\"\n size=\"medium\"\n pill=\"true\"\n >Email a friend</sqm-share-button\n ><sqm-share-button\n medium=\"twitter\"\n size=\"medium\"\n pill=\"true\"\n >Post about us on X</sqm-share-button\n ><sqm-share-button\n medium=\"facebook\"\n size=\"medium\"\n pill=\"true\"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n >\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path=\"/refer\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
10663
10312
|
|
|
@@ -10869,13 +10518,13 @@ const PoweredByImg_stories = {
|
|
|
10869
10518
|
title: "Powered By",
|
|
10870
10519
|
};
|
|
10871
10520
|
const Default$d = () => {
|
|
10872
|
-
return index.h(
|
|
10521
|
+
return index.h(ShadowViewAddon.PoweredByImg, null);
|
|
10873
10522
|
};
|
|
10874
10523
|
const CustomColor = () => {
|
|
10875
|
-
return index.h(
|
|
10524
|
+
return index.h(ShadowViewAddon.PoweredByImg, { color: "salmon" });
|
|
10876
10525
|
};
|
|
10877
10526
|
const CustomWidthAndHeight = () => {
|
|
10878
|
-
return index.h(
|
|
10527
|
+
return index.h(ShadowViewAddon.PoweredByImg, { width: 300, height: 50 });
|
|
10879
10528
|
};
|
|
10880
10529
|
|
|
10881
10530
|
const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
@@ -10894,7 +10543,7 @@ const PortalFooter_stories = {
|
|
|
10894
10543
|
scenario: scenario$f,
|
|
10895
10544
|
},
|
|
10896
10545
|
};
|
|
10897
|
-
const defaultProps$
|
|
10546
|
+
const defaultProps$b = {
|
|
10898
10547
|
supportEmail: "support@example.com",
|
|
10899
10548
|
supportText: "For program support, contact {email}",
|
|
10900
10549
|
hidePoweredBy: false,
|
|
@@ -10904,12 +10553,12 @@ const defaultProps$c = {
|
|
|
10904
10553
|
paddingBottom: "large",
|
|
10905
10554
|
paddingLeft: "large",
|
|
10906
10555
|
};
|
|
10907
|
-
const DefaultFooter = () => index.h(
|
|
10908
|
-
const FooterWithTerms = () => (index.h(
|
|
10909
|
-
const FooterWithFAQ = () => (index.h(
|
|
10910
|
-
const FooterWithTermsAndFAQ = () => (index.h(
|
|
10911
|
-
const FooterNoPoweredBy = () => (index.h(
|
|
10912
|
-
const FooterNoSupportText = () => (index.h(
|
|
10556
|
+
const DefaultFooter = () => index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$b));
|
|
10557
|
+
const FooterWithTerms = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$b, { termsLink: "https://example.com", termsText: "Terms and Conditions" })));
|
|
10558
|
+
const FooterWithFAQ = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$b, { faqLink: "https://example.com", faqText: "FAQ" })));
|
|
10559
|
+
const FooterWithTermsAndFAQ = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$b, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ" })));
|
|
10560
|
+
const FooterNoPoweredBy = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$b, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hidePoweredBy: true })));
|
|
10561
|
+
const FooterNoSupportText = () => (index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, defaultProps$b, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hideSupportText: true })));
|
|
10913
10562
|
|
|
10914
10563
|
const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
10915
10564
|
__proto__: null,
|
|
@@ -10946,7 +10595,7 @@ const LoginOneColumn = () => {
|
|
|
10946
10595
|
},
|
|
10947
10596
|
};
|
|
10948
10597
|
return (index.h("div", { style: { height: "800px" } },
|
|
10949
|
-
index.h(
|
|
10598
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
10950
10599
|
};
|
|
10951
10600
|
const LoginOneColumnWithMinHeight = () => {
|
|
10952
10601
|
return (index.h("sqm-hero", { background: "https://res.cloudinary.com/saasquatch/image/upload/v1683589933/Portal%20Assets/Screen-Shot-2022-01-06-at-3.23.58-AM.png", columns: 1, "padding-size": "medium", "wrap-direction": "wrap", "secondary-background": "#FFFFFF" },
|
|
@@ -10966,7 +10615,7 @@ const LoginOneColumnWithColor = () => {
|
|
|
10966
10615
|
},
|
|
10967
10616
|
};
|
|
10968
10617
|
return (index.h("div", { style: { height: "800px" } },
|
|
10969
|
-
index.h(
|
|
10618
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
10970
10619
|
};
|
|
10971
10620
|
const LoginOneColumnWithImage = () => {
|
|
10972
10621
|
const props = {
|
|
@@ -10980,7 +10629,7 @@ const LoginOneColumnWithImage = () => {
|
|
|
10980
10629
|
content: { primaryColumn: index.h("sqm-portal-login", null) },
|
|
10981
10630
|
};
|
|
10982
10631
|
return (index.h("div", { style: { height: "800px" } },
|
|
10983
|
-
index.h(
|
|
10632
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
10984
10633
|
};
|
|
10985
10634
|
const TwoColumnLoginLargePadding = () => {
|
|
10986
10635
|
const props = {
|
|
@@ -11000,7 +10649,7 @@ const TwoColumnLoginLargePadding = () => {
|
|
|
11000
10649
|
},
|
|
11001
10650
|
};
|
|
11002
10651
|
return (index.h("div", { style: { height: "800px" } },
|
|
11003
|
-
index.h(
|
|
10652
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
11004
10653
|
};
|
|
11005
10654
|
const TwoColumnLoginMediumPadding = () => {
|
|
11006
10655
|
const props = {
|
|
@@ -11020,7 +10669,7 @@ const TwoColumnLoginMediumPadding = () => {
|
|
|
11020
10669
|
},
|
|
11021
10670
|
};
|
|
11022
10671
|
return (index.h("div", { style: { height: "800px" } },
|
|
11023
|
-
index.h(
|
|
10672
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
11024
10673
|
};
|
|
11025
10674
|
const TwoColumnLoginSmallPadding = () => {
|
|
11026
10675
|
const props = {
|
|
@@ -11040,7 +10689,7 @@ const TwoColumnLoginSmallPadding = () => {
|
|
|
11040
10689
|
},
|
|
11041
10690
|
};
|
|
11042
10691
|
return (index.h("div", { style: { height: "800px" } },
|
|
11043
|
-
index.h(
|
|
10692
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
11044
10693
|
};
|
|
11045
10694
|
const TwoColumnLoginNoPadding = () => {
|
|
11046
10695
|
const props = {
|
|
@@ -11060,7 +10709,7 @@ const TwoColumnLoginNoPadding = () => {
|
|
|
11060
10709
|
},
|
|
11061
10710
|
};
|
|
11062
10711
|
return (index.h("div", { style: { height: "800px" } },
|
|
11063
|
-
index.h(
|
|
10712
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
11064
10713
|
};
|
|
11065
10714
|
const TwoColumnLoginReverseWrap = () => {
|
|
11066
10715
|
const props = {
|
|
@@ -11080,7 +10729,7 @@ const TwoColumnLoginReverseWrap = () => {
|
|
|
11080
10729
|
},
|
|
11081
10730
|
};
|
|
11082
10731
|
return (index.h("div", { style: { height: "800px" } },
|
|
11083
|
-
index.h(
|
|
10732
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
11084
10733
|
};
|
|
11085
10734
|
const TwoColumnLoginWithImgElement = () => {
|
|
11086
10735
|
const props = {
|
|
@@ -11100,7 +10749,7 @@ const TwoColumnLoginWithImgElement = () => {
|
|
|
11100
10749
|
},
|
|
11101
10750
|
};
|
|
11102
10751
|
return (index.h("div", { style: { height: "800px" } },
|
|
11103
|
-
index.h(
|
|
10752
|
+
index.h(ShadowViewAddon.HeroView, Object.assign({}, props))));
|
|
11104
10753
|
};
|
|
11105
10754
|
const MinHeight = () => {
|
|
11106
10755
|
const props = {
|
|
@@ -11117,7 +10766,7 @@ const MinHeight = () => {
|
|
|
11117
10766
|
index.h("sqm-portal-login", null))),
|
|
11118
10767
|
},
|
|
11119
10768
|
};
|
|
11120
|
-
return index.h(
|
|
10769
|
+
return index.h(ShadowViewAddon.HeroView, Object.assign({}, props));
|
|
11121
10770
|
};
|
|
11122
10771
|
|
|
11123
10772
|
const Hero = /*#__PURE__*/Object.freeze({
|
|
@@ -11158,7 +10807,7 @@ const props = {
|
|
|
11158
10807
|
};
|
|
11159
10808
|
const ReferralIframe = () => {
|
|
11160
10809
|
return (index.h("div", { style: { width: "1000px", height: "1000px" } },
|
|
11161
|
-
index.h(
|
|
10810
|
+
index.h(ShadowViewAddon.ReferralIframeView, Object.assign({}, props))));
|
|
11162
10811
|
};
|
|
11163
10812
|
const ReferralIframeError = () => {
|
|
11164
10813
|
return (index.h("div", { style: { width: "1000px", height: "1000px" } },
|
|
@@ -11206,10 +10855,10 @@ const errorProps$9 = {
|
|
|
11206
10855
|
},
|
|
11207
10856
|
};
|
|
11208
10857
|
const NameFields = () => {
|
|
11209
|
-
return index.h(
|
|
10858
|
+
return index.h(ShadowViewAddon.NameFieldsView, Object.assign({}, props$1));
|
|
11210
10859
|
};
|
|
11211
10860
|
const NameFieldsWithErrors = () => {
|
|
11212
|
-
return index.h(
|
|
10861
|
+
return index.h(ShadowViewAddon.NameFieldsView, Object.assign({}, errorProps$9));
|
|
11213
10862
|
};
|
|
11214
10863
|
|
|
11215
10864
|
const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -11227,7 +10876,7 @@ const CheckboxField_stories = {
|
|
|
11227
10876
|
scenario: scenario$j,
|
|
11228
10877
|
},
|
|
11229
10878
|
};
|
|
11230
|
-
const defaultProps$
|
|
10879
|
+
const defaultProps$c = {
|
|
11231
10880
|
states: {
|
|
11232
10881
|
registrationFormState: {
|
|
11233
10882
|
validationErrors: {},
|
|
@@ -11268,42 +10917,42 @@ const defaultRegisterProps = {
|
|
|
11268
10917
|
invalidEmailErrorMessage: "Must be a valid email address",
|
|
11269
10918
|
},
|
|
11270
10919
|
};
|
|
11271
|
-
const Default$e = createHookStory(() => (index.h(
|
|
11272
|
-
const DefaultChecked = createHookStory(() => (index.h(
|
|
11273
|
-
...defaultProps$
|
|
10920
|
+
const Default$e = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$c))));
|
|
10921
|
+
const DefaultChecked = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$c, { states: {
|
|
10922
|
+
...defaultProps$c.states,
|
|
11274
10923
|
checked: true,
|
|
11275
10924
|
} }))));
|
|
11276
|
-
const CustomLabel = createHookStory(() => (index.h(
|
|
11277
|
-
...defaultProps$
|
|
10925
|
+
const CustomLabel = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$c, { content: {
|
|
10926
|
+
...defaultProps$c.content,
|
|
11278
10927
|
checkboxLabel: "I Agree",
|
|
11279
10928
|
} }))));
|
|
11280
|
-
const Error$5 = createHookStory(() => (index.h(
|
|
11281
|
-
...defaultProps$
|
|
10929
|
+
const Error$5 = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$c, { states: {
|
|
10930
|
+
...defaultProps$c.states,
|
|
11282
10931
|
registrationFormState: {
|
|
11283
10932
|
validationErrors: {
|
|
11284
10933
|
agree: "Must be checked",
|
|
11285
10934
|
},
|
|
11286
10935
|
},
|
|
11287
10936
|
} }))));
|
|
11288
|
-
const CustomError = createHookStory(() => (index.h(
|
|
11289
|
-
...defaultProps$
|
|
10937
|
+
const CustomError = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView, Object.assign({}, defaultProps$c, { states: {
|
|
10938
|
+
...defaultProps$c.states,
|
|
11290
10939
|
registrationFormState: {
|
|
11291
10940
|
validationErrors: {
|
|
11292
10941
|
agree: "Must be checked",
|
|
11293
10942
|
},
|
|
11294
10943
|
},
|
|
11295
10944
|
}, content: {
|
|
11296
|
-
...defaultProps$
|
|
10945
|
+
...defaultProps$c.content,
|
|
11297
10946
|
errorMessage: "This checkbox must be checked to continue",
|
|
11298
10947
|
} }))));
|
|
11299
|
-
const TermsAndConditions$2 = createHookStory(() => (index.h(
|
|
10948
|
+
const TermsAndConditions$2 = createHookStory(() => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
11300
10949
|
//@ts-ignore
|
|
11301
10950
|
content: {
|
|
11302
10951
|
...defaultRegisterProps.content,
|
|
11303
10952
|
terms: (index.h("p", null,
|
|
11304
10953
|
index.h("sqm-checkbox-field", null))),
|
|
11305
10954
|
} }))));
|
|
11306
|
-
const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(
|
|
10955
|
+
const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
11307
10956
|
//@ts-ignore
|
|
11308
10957
|
content: {
|
|
11309
10958
|
...defaultRegisterProps.content,
|
|
@@ -11313,7 +10962,7 @@ const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(sqmPortalRe
|
|
|
11313
10962
|
index.h("a", { href: "https://example.com", target: "_blank" }, "Terms and Conditions"),
|
|
11314
10963
|
index.h("sqm-checkbox-field", { "checkbox-label": "I agree" }))),
|
|
11315
10964
|
} }))));
|
|
11316
|
-
const TermsAndConditionsLongCustomLabel = createHookStory(() => (index.h(
|
|
10965
|
+
const TermsAndConditionsLongCustomLabel = createHookStory(() => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
11317
10966
|
//@ts-ignore
|
|
11318
10967
|
content: {
|
|
11319
10968
|
...defaultRegisterProps.content,
|
|
@@ -11428,7 +11077,7 @@ const UseCheckboxField = /*#__PURE__*/Object.freeze({
|
|
|
11428
11077
|
const DropdownField_stories = {
|
|
11429
11078
|
title: "Components/Dropdown Field",
|
|
11430
11079
|
};
|
|
11431
|
-
const defaultProps$
|
|
11080
|
+
const defaultProps$d = {
|
|
11432
11081
|
states: {
|
|
11433
11082
|
registrationFormState: {},
|
|
11434
11083
|
},
|
|
@@ -11443,24 +11092,24 @@ const defaultProps$e = {
|
|
|
11443
11092
|
],
|
|
11444
11093
|
},
|
|
11445
11094
|
};
|
|
11446
|
-
const Default$g = createHookStory(() => (index.h(
|
|
11447
|
-
const CustomLabel$1 = createHookStory(() => (index.h(
|
|
11448
|
-
...defaultProps$
|
|
11095
|
+
const Default$g = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$d))));
|
|
11096
|
+
const CustomLabel$1 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$d, { content: {
|
|
11097
|
+
...defaultProps$d.content,
|
|
11449
11098
|
dropdownLabel: "Pick your favorite",
|
|
11450
11099
|
} }))));
|
|
11451
|
-
const Error$6 = createHookStory(() => (index.h(
|
|
11452
|
-
...defaultProps$
|
|
11100
|
+
const Error$6 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$d, { states: {
|
|
11101
|
+
...defaultProps$d.states,
|
|
11453
11102
|
registrationFormState: {
|
|
11454
11103
|
validationErrors: {
|
|
11455
11104
|
options: "Must select an option",
|
|
11456
11105
|
},
|
|
11457
11106
|
},
|
|
11458
11107
|
} }))));
|
|
11459
|
-
const CustomError$1 = createHookStory(() => (index.h(
|
|
11460
|
-
...defaultProps$
|
|
11108
|
+
const CustomError$1 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView, Object.assign({}, defaultProps$d, { content: {
|
|
11109
|
+
...defaultProps$d.content,
|
|
11461
11110
|
errorMessage: "An option must be selected to continue",
|
|
11462
11111
|
}, states: {
|
|
11463
|
-
...defaultProps$
|
|
11112
|
+
...defaultProps$d.states,
|
|
11464
11113
|
registrationFormState: {
|
|
11465
11114
|
validationErrors: {
|
|
11466
11115
|
options: "Must select an option",
|
|
@@ -11544,7 +11193,7 @@ const InputField_stories = {
|
|
|
11544
11193
|
scenario: scenario$l,
|
|
11545
11194
|
},
|
|
11546
11195
|
};
|
|
11547
|
-
const defaultProps$
|
|
11196
|
+
const defaultProps$e = {
|
|
11548
11197
|
states: {
|
|
11549
11198
|
registrationFormState: {
|
|
11550
11199
|
validationErrors: {},
|
|
@@ -11581,21 +11230,21 @@ const defaultRegisterProps$1 = {
|
|
|
11581
11230
|
invalidEmailErrorMessage: "Must be a valid email address",
|
|
11582
11231
|
},
|
|
11583
11232
|
};
|
|
11584
|
-
const Default$h = () => index.h(
|
|
11585
|
-
const CustomLabel$2 = () => (index.h(
|
|
11586
|
-
const Error$7 = () => (index.h(
|
|
11587
|
-
...defaultProps$
|
|
11233
|
+
const Default$h = () => index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$e));
|
|
11234
|
+
const CustomLabel$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$e, { content: { ...defaultProps$e.content, fieldLabel: "My Label" } })));
|
|
11235
|
+
const Error$7 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$e, { states: {
|
|
11236
|
+
...defaultProps$e.states,
|
|
11588
11237
|
registrationFormState: {
|
|
11589
11238
|
validationErrors: {
|
|
11590
11239
|
field: "Cannot be empty",
|
|
11591
11240
|
},
|
|
11592
11241
|
},
|
|
11593
11242
|
} })));
|
|
11594
|
-
const CustomError$2 = () => (index.h(
|
|
11595
|
-
...defaultProps$
|
|
11243
|
+
const CustomError$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$e, { content: {
|
|
11244
|
+
...defaultProps$e.content,
|
|
11596
11245
|
errorMessage: "A value must be entered to continue",
|
|
11597
11246
|
}, states: {
|
|
11598
|
-
...defaultProps$
|
|
11247
|
+
...defaultProps$e.states,
|
|
11599
11248
|
registrationFormState: {
|
|
11600
11249
|
validationErrors: {
|
|
11601
11250
|
field: "Cannot be empty",
|
|
@@ -11603,27 +11252,27 @@ const CustomError$2 = () => (index.h(sqmInputFieldView.InputFieldView, Object.as
|
|
|
11603
11252
|
},
|
|
11604
11253
|
} })));
|
|
11605
11254
|
const DateType = () => {
|
|
11606
|
-
return (index.h(
|
|
11607
|
-
...defaultProps$
|
|
11255
|
+
return (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$e, { content: {
|
|
11256
|
+
...defaultProps$e.content,
|
|
11608
11257
|
fieldLabel: "Date",
|
|
11609
11258
|
fieldType: "date",
|
|
11610
11259
|
} })));
|
|
11611
11260
|
};
|
|
11612
11261
|
const TelType = () => {
|
|
11613
|
-
return (index.h(
|
|
11614
|
-
...defaultProps$
|
|
11262
|
+
return (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$e, { content: {
|
|
11263
|
+
...defaultProps$e.content,
|
|
11615
11264
|
fieldLabel: "Phone Number",
|
|
11616
11265
|
fieldType: "tel",
|
|
11617
11266
|
} })));
|
|
11618
11267
|
};
|
|
11619
|
-
const RegistrationField = () => (index.h(
|
|
11268
|
+
const RegistrationField = () => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultRegisterProps$1, { content: {
|
|
11620
11269
|
...defaultRegisterProps$1.content,
|
|
11621
|
-
formData: index.h(
|
|
11270
|
+
formData: index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$e)),
|
|
11622
11271
|
} })));
|
|
11623
|
-
const RegistrationFieldCustomLabel = () => (index.h(
|
|
11272
|
+
const RegistrationFieldCustomLabel = () => (index.h(ShadowViewAddon.PortalRegisterView, Object.assign({}, defaultRegisterProps$1, { content: {
|
|
11624
11273
|
...defaultRegisterProps$1.content,
|
|
11625
|
-
formData: (index.h(
|
|
11626
|
-
...defaultProps$
|
|
11274
|
+
formData: (index.h(ShadowViewAddon.InputFieldView, Object.assign({}, defaultProps$e, { content: {
|
|
11275
|
+
...defaultProps$e.content,
|
|
11627
11276
|
fieldLabel: "Data",
|
|
11628
11277
|
} }))),
|
|
11629
11278
|
} })));
|
|
@@ -11735,26 +11384,26 @@ const RewardExchangeList_stories = {
|
|
|
11735
11384
|
},
|
|
11736
11385
|
};
|
|
11737
11386
|
const StoryBase = (props) => () => {
|
|
11738
|
-
return index.h(
|
|
11739
|
-
};
|
|
11740
|
-
const ChooseReward = StoryBase(
|
|
11741
|
-
const CustomErrorMessage = StoryBase(
|
|
11742
|
-
const LongTextRewardExhange = StoryBase(
|
|
11743
|
-
const ChooseRewardSelected = StoryBase(
|
|
11744
|
-
const ChooseAmount = StoryBase(
|
|
11745
|
-
const ChooseAmountNoDescription = StoryBase(
|
|
11746
|
-
const ChooseAmountVariableAndStepped = StoryBase(
|
|
11747
|
-
const ChooseAmountVariableAndSteppedNoDescription = StoryBase(
|
|
11748
|
-
const chooseAmountVariableAndSteppedDisabled = StoryBase(
|
|
11749
|
-
const chooseAmountVariableAndSteppedUnavailable = StoryBase(
|
|
11750
|
-
const Confirm = StoryBase(
|
|
11751
|
-
const ConfirmVariableAndStepped = StoryBase(
|
|
11752
|
-
const RedemptionError = StoryBase(
|
|
11753
|
-
const QueryError = StoryBase(
|
|
11754
|
-
const SuccessPromo = StoryBase(
|
|
11755
|
-
const SuccessVariableAndStepped = StoryBase(
|
|
11756
|
-
const Loading$4 = StoryBase(
|
|
11757
|
-
const Empty$2 = StoryBase(
|
|
11387
|
+
return index.h(ShadowViewAddon.RewardExchangeView, Object.assign({}, props));
|
|
11388
|
+
};
|
|
11389
|
+
const ChooseReward = StoryBase(ShadowViewAddon.rewardExchange);
|
|
11390
|
+
const CustomErrorMessage = StoryBase(ShadowViewAddon.rewardExchangeCustomErrorMsg);
|
|
11391
|
+
const LongTextRewardExhange = StoryBase(ShadowViewAddon.rewardExchangeLongText);
|
|
11392
|
+
const ChooseRewardSelected = StoryBase(ShadowViewAddon.rewardExchangeSelected);
|
|
11393
|
+
const ChooseAmount = StoryBase(ShadowViewAddon.chooseAmountFixed);
|
|
11394
|
+
const ChooseAmountNoDescription = StoryBase(ShadowViewAddon.chooseAmountFixedNoDescription);
|
|
11395
|
+
const ChooseAmountVariableAndStepped = StoryBase(ShadowViewAddon.chooseAmountVariable);
|
|
11396
|
+
const ChooseAmountVariableAndSteppedNoDescription = StoryBase(ShadowViewAddon.chooseAmountVariableNoDescription);
|
|
11397
|
+
const chooseAmountVariableAndSteppedDisabled = StoryBase(ShadowViewAddon.chooseAmountVariableDisabled);
|
|
11398
|
+
const chooseAmountVariableAndSteppedUnavailable = StoryBase(ShadowViewAddon.chooseAmountVariableUnavailable);
|
|
11399
|
+
const Confirm = StoryBase(ShadowViewAddon.confirmFixed);
|
|
11400
|
+
const ConfirmVariableAndStepped = StoryBase(ShadowViewAddon.confirmVariable);
|
|
11401
|
+
const RedemptionError = StoryBase(ShadowViewAddon.redemptionError);
|
|
11402
|
+
const QueryError = StoryBase(ShadowViewAddon.queryError);
|
|
11403
|
+
const SuccessPromo = StoryBase(ShadowViewAddon.success);
|
|
11404
|
+
const SuccessVariableAndStepped = StoryBase(ShadowViewAddon.successVariable);
|
|
11405
|
+
const Loading$4 = StoryBase(ShadowViewAddon.loading);
|
|
11406
|
+
const Empty$2 = StoryBase(ShadowViewAddon.empty);
|
|
11758
11407
|
|
|
11759
11408
|
const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
11760
11409
|
__proto__: null,
|
|
@@ -12067,92 +11716,92 @@ const manyActions$1 = {
|
|
|
12067
11716
|
states: { progress: 100, loading: false, loadingEvent: false },
|
|
12068
11717
|
};
|
|
12069
11718
|
const TaskCardGrid = () => {
|
|
12070
|
-
return (index.h(
|
|
12071
|
-
index.h(
|
|
11719
|
+
return (index.h(ShadowViewAddon.CardFeedView, { width: 347, gap: 24 },
|
|
11720
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)),
|
|
12072
11721
|
index.h("div", null,
|
|
12073
|
-
index.h(
|
|
11722
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12074
11723
|
index.h("div", null,
|
|
12075
11724
|
index.h("div", null,
|
|
12076
|
-
index.h(
|
|
12077
|
-
index.h(
|
|
12078
|
-
index.h(
|
|
11725
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11726
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11727
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12079
11728
|
index.h("div", null,
|
|
12080
|
-
index.h(
|
|
11729
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12081
11730
|
index.h("div", null,
|
|
12082
11731
|
index.h("div", null,
|
|
12083
|
-
index.h(
|
|
12084
|
-
index.h(
|
|
11732
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11733
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions$1))));
|
|
12085
11734
|
};
|
|
12086
11735
|
const TaskCardGridHighGap = () => {
|
|
12087
|
-
return (index.h(
|
|
12088
|
-
index.h(
|
|
11736
|
+
return (index.h(ShadowViewAddon.CardFeedView, { width: 400, gap: 150 },
|
|
11737
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)),
|
|
12089
11738
|
index.h("div", null,
|
|
12090
|
-
index.h(
|
|
11739
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12091
11740
|
index.h("div", null,
|
|
12092
11741
|
index.h("div", null,
|
|
12093
|
-
index.h(
|
|
12094
|
-
index.h(
|
|
12095
|
-
index.h(
|
|
11742
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11743
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11744
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12096
11745
|
index.h("div", null,
|
|
12097
|
-
index.h(
|
|
11746
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12098
11747
|
index.h("div", null,
|
|
12099
11748
|
index.h("div", null,
|
|
12100
|
-
index.h(
|
|
12101
|
-
index.h(
|
|
11749
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11750
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions$1))));
|
|
12102
11751
|
};
|
|
12103
11752
|
const TaskCardGridLowGap = () => {
|
|
12104
|
-
return (index.h(
|
|
12105
|
-
index.h(
|
|
11753
|
+
return (index.h(ShadowViewAddon.CardFeedView, { width: 400, gap: 12 },
|
|
11754
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)),
|
|
12106
11755
|
index.h("div", null,
|
|
12107
|
-
index.h(
|
|
11756
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12108
11757
|
index.h("div", null,
|
|
12109
11758
|
index.h("div", null,
|
|
12110
|
-
index.h(
|
|
12111
|
-
index.h(
|
|
12112
|
-
index.h(
|
|
11759
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11760
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11761
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12113
11762
|
index.h("div", null,
|
|
12114
|
-
index.h(
|
|
11763
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12115
11764
|
index.h("div", null,
|
|
12116
11765
|
index.h("div", null,
|
|
12117
|
-
index.h(
|
|
12118
|
-
index.h(
|
|
11766
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11767
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions$1))));
|
|
12119
11768
|
};
|
|
12120
11769
|
const TaskCardGridHighWidth = () => {
|
|
12121
|
-
return (index.h(
|
|
12122
|
-
index.h(
|
|
11770
|
+
return (index.h(ShadowViewAddon.CardFeedView, { width: 1000, gap: 24 },
|
|
11771
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)),
|
|
12123
11772
|
index.h("div", null,
|
|
12124
|
-
index.h(
|
|
11773
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12125
11774
|
index.h("div", null,
|
|
12126
11775
|
index.h("div", null,
|
|
12127
|
-
index.h(
|
|
12128
|
-
index.h(
|
|
12129
|
-
index.h(
|
|
11776
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11777
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11778
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12130
11779
|
index.h("div", null,
|
|
12131
|
-
index.h(
|
|
11780
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12132
11781
|
index.h("div", null,
|
|
12133
11782
|
index.h("div", null,
|
|
12134
|
-
index.h(
|
|
12135
|
-
index.h(
|
|
11783
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11784
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions$1))));
|
|
12136
11785
|
};
|
|
12137
11786
|
const TaskCardGridLowWidth = () => {
|
|
12138
|
-
return (index.h(
|
|
12139
|
-
index.h(
|
|
11787
|
+
return (index.h(ShadowViewAddon.CardFeedView, { width: 250, gap: 24 },
|
|
11788
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)),
|
|
12140
11789
|
index.h("div", null,
|
|
12141
|
-
index.h(
|
|
11790
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12142
11791
|
index.h("div", null,
|
|
12143
11792
|
index.h("div", null,
|
|
12144
|
-
index.h(
|
|
12145
|
-
index.h(
|
|
12146
|
-
index.h(
|
|
11793
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11794
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11795
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12147
11796
|
index.h("div", null,
|
|
12148
|
-
index.h(
|
|
11797
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
12149
11798
|
index.h("div", null,
|
|
12150
11799
|
index.h("div", null,
|
|
12151
|
-
index.h(
|
|
12152
|
-
index.h(
|
|
11800
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
11801
|
+
index.h(ShadowViewAddon.TaskCardView, Object.assign({}, manyActions$1))));
|
|
12153
11802
|
};
|
|
12154
11803
|
const CardFeedGeneric = () => {
|
|
12155
|
-
return (index.h(
|
|
11804
|
+
return (index.h(ShadowViewAddon.CardFeedView, { width: 300, gap: 24 },
|
|
12156
11805
|
index.h("div", { style: {
|
|
12157
11806
|
padding: "100px",
|
|
12158
11807
|
border: "1px dashed black",
|
|
@@ -12606,7 +12255,7 @@ const SourceCellDeletedUser = () => {
|
|
|
12606
12255
|
const SourceCellDeletedReferral = () => {
|
|
12607
12256
|
return (index.h("sqm-rewards-table-source-cell", {
|
|
12608
12257
|
//@ts-ignore
|
|
12609
|
-
reward: { ...rewardsData$1, ...deletedReferral(
|
|
12258
|
+
reward: { ...rewardsData$1, ...deletedReferral() }, referralText: "Referral to", deletedReferralText: "Deleted Referral" }));
|
|
12610
12259
|
};
|
|
12611
12260
|
const StatusCellAvailable = () => {
|
|
12612
12261
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Available", reward: rewardsData$1 }));
|
|
@@ -13079,12 +12728,6 @@ function setupGraphQLKlip$1({ token, id }) {
|
|
|
13079
12728
|
const ReferralTable$1 = createHookStory(() => {
|
|
13080
12729
|
setupGraphQL$c();
|
|
13081
12730
|
index_module.setProgramId("sam-partner-test-2");
|
|
13082
|
-
const props = {
|
|
13083
|
-
listType: "",
|
|
13084
|
-
render: () => { },
|
|
13085
|
-
disconnectedCallback: () => { },
|
|
13086
|
-
ignored: true,
|
|
13087
|
-
};
|
|
13088
12731
|
return (index.h("sqm-referral-table", null,
|
|
13089
12732
|
index.h("sqm-referral-table-user-column", null),
|
|
13090
12733
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -13092,14 +12735,6 @@ const ReferralTable$1 = createHookStory(() => {
|
|
|
13092
12735
|
index.h("sqm-referral-table-rewards-column", null)));
|
|
13093
12736
|
});
|
|
13094
12737
|
const ReferralTableDemoHook = createHookStory(() => {
|
|
13095
|
-
// setupGraphQL();
|
|
13096
|
-
// setProgramId("sam-partner-test-2");
|
|
13097
|
-
const props = {
|
|
13098
|
-
listType: "",
|
|
13099
|
-
render: () => { },
|
|
13100
|
-
disconnectedCallback: () => { },
|
|
13101
|
-
ignored: true,
|
|
13102
|
-
};
|
|
13103
12738
|
return (index.h("sqm-referral-table", null,
|
|
13104
12739
|
index.h("sqm-referral-table-user-column", null),
|
|
13105
12740
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -13107,14 +12742,6 @@ const ReferralTableDemoHook = createHookStory(() => {
|
|
|
13107
12742
|
index.h("sqm-referral-table-rewards-column", null)));
|
|
13108
12743
|
});
|
|
13109
12744
|
const ReferralTableDemoHookShowReferrer = createHookStory(() => {
|
|
13110
|
-
// setupGraphQL();
|
|
13111
|
-
// setProgramId("sam-partner-test-2");
|
|
13112
|
-
const props = {
|
|
13113
|
-
listType: "",
|
|
13114
|
-
render: () => { },
|
|
13115
|
-
disconnectedCallback: () => { },
|
|
13116
|
-
ignored: true,
|
|
13117
|
-
};
|
|
13118
12745
|
return (index.h("sqm-referral-table", { "show-referrer": "true" },
|
|
13119
12746
|
index.h("sqm-referral-table-user-column", null),
|
|
13120
12747
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -13127,12 +12754,6 @@ const ReferralTableEn = createHookStory(() => {
|
|
|
13127
12754
|
id: "samenglish",
|
|
13128
12755
|
});
|
|
13129
12756
|
index_module.setProgramId("klip-referral-program");
|
|
13130
|
-
const props = {
|
|
13131
|
-
listType: "",
|
|
13132
|
-
render: () => { },
|
|
13133
|
-
disconnectedCallback: () => { },
|
|
13134
|
-
ignored: true,
|
|
13135
|
-
};
|
|
13136
12757
|
return (index.h("sqm-referral-table", { "per-page": "4" },
|
|
13137
12758
|
index.h("sqm-referral-table-user-column", { "column-title": "User" }),
|
|
13138
12759
|
index.h("sqm-referral-table-status-column", { "column-title": "Referral Status" }),
|
|
@@ -13145,12 +12766,6 @@ const ReferralTableTr = createHookStory(() => {
|
|
|
13145
12766
|
id: "samturkey",
|
|
13146
12767
|
});
|
|
13147
12768
|
index_module.setProgramId("klip-referral-program");
|
|
13148
|
-
const props = {
|
|
13149
|
-
listType: "",
|
|
13150
|
-
render: () => { },
|
|
13151
|
-
disconnectedCallback: () => { },
|
|
13152
|
-
ignored: true,
|
|
13153
|
-
};
|
|
13154
12769
|
return (index.h("sqm-referral-table", { "more-label": "Daha", "prev-label": "\u00D6ncesi", "empty-state-text": "Hen\u00FCz \u00D6d\u00FCl Yok", "per-page": "4" },
|
|
13155
12770
|
index.h("sqm-referral-table-user-column", { "column-title": "Kullan\u0131c\u0131lar", "anonymous-user": "Anonim Kullan\u0131c\u0131", "deleted-user": "Silinmi\u015F Kullan\u0131c\u0131" }),
|
|
13156
12771
|
index.h("sqm-referral-table-status-column", { "column-title": "Durumu", "converted-status-text": "D\u00F6n\u00FC\u015Ft\u00FCr", "in-progress-status-text": "Devam etmekte" }),
|
|
@@ -13163,12 +12778,6 @@ const ReferralTableFr = createHookStory(() => {
|
|
|
13163
12778
|
id: "samfrench",
|
|
13164
12779
|
});
|
|
13165
12780
|
index_module.setProgramId("klip-referral-program");
|
|
13166
|
-
const props = {
|
|
13167
|
-
listType: "",
|
|
13168
|
-
render: () => { },
|
|
13169
|
-
disconnectedCallback: () => { },
|
|
13170
|
-
ignored: true,
|
|
13171
|
-
};
|
|
13172
12781
|
return (index.h("sqm-referral-table", { "more-label": "Plus", "prev-label": "Pr\u00E9c\u00E9dent", "empty-state-text": "Aucune R\u00E9f\u00E9rence Maintenant", "per-page": "4" },
|
|
13173
12782
|
index.h("sqm-referral-table-user-column", { "column-title": "Utilisateur", "anonymous-user": "Utilisateur Anonyme", "deleted-user": "Utilisateur Supprim\u00E9" }),
|
|
13174
12783
|
index.h("sqm-referral-table-status-column", { "column-title": "Statut de Parrainage", "converted-status-text": "Converti", "in-progress-status-text": "En cours" }),
|
|
@@ -14591,7 +14200,7 @@ const EmailRegistration_stories = {
|
|
|
14591
14200
|
// scenario,
|
|
14592
14201
|
},
|
|
14593
14202
|
};
|
|
14594
|
-
const defaultProps$
|
|
14203
|
+
const defaultProps$f = {
|
|
14595
14204
|
states: {
|
|
14596
14205
|
error: "",
|
|
14597
14206
|
loading: false,
|
|
@@ -14610,59 +14219,59 @@ const defaultProps$g = {
|
|
|
14610
14219
|
fraudErrorMessageTitle: "Looks like you tried referring yourself",
|
|
14611
14220
|
},
|
|
14612
14221
|
};
|
|
14613
|
-
const Default$i = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$
|
|
14222
|
+
const Default$i = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$f));
|
|
14614
14223
|
const HasFirstNameLastName = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14615
|
-
...defaultProps$
|
|
14224
|
+
...defaultProps$f,
|
|
14616
14225
|
content: {
|
|
14617
|
-
...defaultProps$
|
|
14226
|
+
...defaultProps$f.content,
|
|
14618
14227
|
includeName: true,
|
|
14619
14228
|
},
|
|
14620
14229
|
})));
|
|
14621
14230
|
const WithSlots = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14622
|
-
...defaultProps$
|
|
14231
|
+
...defaultProps$f,
|
|
14623
14232
|
content: {
|
|
14624
|
-
...defaultProps$
|
|
14233
|
+
...defaultProps$f.content,
|
|
14625
14234
|
topSlot: index.h("div", null, "Hello this is the top slot"),
|
|
14626
14235
|
bottomSlot: index.h("div", null, "Hello this is the bottom slot"),
|
|
14627
14236
|
},
|
|
14628
14237
|
})));
|
|
14629
14238
|
const NoBorder$1 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14630
|
-
...defaultProps$
|
|
14239
|
+
...defaultProps$f,
|
|
14631
14240
|
content: {
|
|
14632
|
-
...defaultProps$
|
|
14241
|
+
...defaultProps$f.content,
|
|
14633
14242
|
hideBorder: true,
|
|
14634
14243
|
},
|
|
14635
14244
|
})));
|
|
14636
14245
|
const BackgroundColor$2 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14637
|
-
...defaultProps$
|
|
14246
|
+
...defaultProps$f,
|
|
14638
14247
|
content: {
|
|
14639
|
-
...defaultProps$
|
|
14248
|
+
...defaultProps$f.content,
|
|
14640
14249
|
backgroundColor: "aquamarine",
|
|
14641
14250
|
},
|
|
14642
14251
|
})));
|
|
14643
14252
|
const Loading$5 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14644
|
-
...defaultProps$
|
|
14253
|
+
...defaultProps$f,
|
|
14645
14254
|
states: {
|
|
14646
14255
|
error: "",
|
|
14647
14256
|
loading: true,
|
|
14648
14257
|
},
|
|
14649
14258
|
})));
|
|
14650
14259
|
const Error$a = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14651
|
-
...defaultProps$
|
|
14260
|
+
...defaultProps$f,
|
|
14652
14261
|
states: {
|
|
14653
14262
|
error: "Something went wrong. Please try again.",
|
|
14654
14263
|
loading: false,
|
|
14655
14264
|
},
|
|
14656
14265
|
})));
|
|
14657
14266
|
const FraudError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14658
|
-
...defaultProps$
|
|
14267
|
+
...defaultProps$f,
|
|
14659
14268
|
states: {
|
|
14660
14269
|
error: "FRAUD",
|
|
14661
14270
|
loading: false,
|
|
14662
14271
|
},
|
|
14663
14272
|
})));
|
|
14664
14273
|
const EmptyEmailError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14665
|
-
...defaultProps$
|
|
14274
|
+
...defaultProps$f,
|
|
14666
14275
|
states: {
|
|
14667
14276
|
error: "Something went wrong. Please try again.",
|
|
14668
14277
|
loading: false,
|
|
@@ -14694,7 +14303,7 @@ const CouponCode_stories = {
|
|
|
14694
14303
|
scenario: scenario$C,
|
|
14695
14304
|
},
|
|
14696
14305
|
};
|
|
14697
|
-
const defaultProps$
|
|
14306
|
+
const defaultProps$g = {
|
|
14698
14307
|
tooltiptext: "Copied to Clipboard",
|
|
14699
14308
|
copyString: "THANKSJANE125uv125",
|
|
14700
14309
|
open: false,
|
|
@@ -14719,43 +14328,43 @@ const TextAlignRight$3 = () => {
|
|
|
14719
14328
|
return index.h("sqm-coupon-code", { textAlign: "right" });
|
|
14720
14329
|
};
|
|
14721
14330
|
const CopyButton$3 = () => {
|
|
14722
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14331
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$g, { buttonStyle: "button-outside" })));
|
|
14723
14332
|
};
|
|
14724
14333
|
const CopyButtonCustomLabel = () => {
|
|
14725
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14334
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$g, { buttonStyle: "button-outside", "copy-button-label": "test long custom label" })));
|
|
14726
14335
|
};
|
|
14727
14336
|
const CopyButtonBelow$3 = () => {
|
|
14728
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14337
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$g, { buttonStyle: "button-below" })));
|
|
14729
14338
|
};
|
|
14730
14339
|
const CopyButtonBelowCustomLabel = () => {
|
|
14731
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14340
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$g, { buttonStyle: "button-below", "copy-button-label": "test long custom label" })));
|
|
14732
14341
|
};
|
|
14733
14342
|
const Loading$6 = () => {
|
|
14734
|
-
return index.h(
|
|
14343
|
+
return index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { loading: true }));
|
|
14735
14344
|
};
|
|
14736
14345
|
const CopyButtonLoading = () => {
|
|
14737
|
-
return (index.h(
|
|
14346
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { buttonStyle: "button-outside", loading: true })));
|
|
14738
14347
|
};
|
|
14739
14348
|
const CopyButtonBelowLoading = () => {
|
|
14740
|
-
return (index.h(
|
|
14349
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { buttonStyle: "button-below", loading: true })));
|
|
14741
14350
|
};
|
|
14742
14351
|
const ErrorGeneric = () => {
|
|
14743
|
-
return (index.h(
|
|
14352
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { errorType: "warning", error: true, errorText: "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue." })));
|
|
14744
14353
|
};
|
|
14745
14354
|
const ErrorPending = () => {
|
|
14746
|
-
return (index.h(
|
|
14355
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { errorType: "info", error: true, errorText: "Your code will be available on April 24, 2023. Mark your calendar and come back then to redeem your reward!" })));
|
|
14747
14356
|
};
|
|
14748
14357
|
const ErrorFullfillment = () => {
|
|
14749
|
-
return (index.h(
|
|
14358
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { errorType: "warning", error: true, errorText: "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue." })));
|
|
14750
14359
|
};
|
|
14751
14360
|
const ErrorCancelled = () => {
|
|
14752
|
-
return (index.h(
|
|
14361
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { errorType: "warning", error: true, errorText: "This code has been cancelled. Please reach out to the Support team for help resolving this issue." })));
|
|
14753
14362
|
};
|
|
14754
14363
|
const ErrorExpired = () => {
|
|
14755
|
-
return (index.h(
|
|
14364
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { errorType: "warning", error: true, errorText: "Looks like this code has expired. Please reach out to the Support team for help resolving this issue." })));
|
|
14756
14365
|
};
|
|
14757
14366
|
const ErrorRedeemed = () => {
|
|
14758
|
-
return (index.h(
|
|
14367
|
+
return (index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, defaultProps$g, { errorType: "success", error: true, errorText: "Looks like you\u2019ve already redeemed this code." })));
|
|
14759
14368
|
};
|
|
14760
14369
|
|
|
14761
14370
|
const CouponCode$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -14789,7 +14398,7 @@ const LogoutCurrentUser_stories = {
|
|
|
14789
14398
|
scenario: scenario$D,
|
|
14790
14399
|
},
|
|
14791
14400
|
};
|
|
14792
|
-
const defaultProps$
|
|
14401
|
+
const defaultProps$h = {
|
|
14793
14402
|
filledInEmailText: "Currently showing referral data for noah.clarke@saasquatch.com",
|
|
14794
14403
|
onSwitchClick: () => console.log("clicked"),
|
|
14795
14404
|
switchUserText: "not you?",
|
|
@@ -14797,7 +14406,7 @@ const defaultProps$i = {
|
|
|
14797
14406
|
emailErrorText: "Error fetching email",
|
|
14798
14407
|
};
|
|
14799
14408
|
const Default$j = () => {
|
|
14800
|
-
return index.h(sqmLogoutCurrentUserView.LogoutCurrentUserView, Object.assign({}, defaultProps$
|
|
14409
|
+
return index.h(sqmLogoutCurrentUserView.LogoutCurrentUserView, Object.assign({}, defaultProps$h));
|
|
14801
14410
|
};
|
|
14802
14411
|
|
|
14803
14412
|
const LogoutCurrentUser = /*#__PURE__*/Object.freeze({
|
|
@@ -14814,16 +14423,16 @@ const LinkButton_stories = {
|
|
|
14814
14423
|
scenario: scenario$E,
|
|
14815
14424
|
},
|
|
14816
14425
|
};
|
|
14817
|
-
const defaultProps$
|
|
14426
|
+
const defaultProps$i = {
|
|
14818
14427
|
link: "https://example.com",
|
|
14819
14428
|
openInNewTab: false,
|
|
14820
14429
|
buttonText: "Button Text",
|
|
14821
14430
|
};
|
|
14822
14431
|
const Default$k = () => {
|
|
14823
|
-
return index.h("sqm-link-button", Object.assign({}, defaultProps$
|
|
14432
|
+
return index.h("sqm-link-button", Object.assign({}, defaultProps$i));
|
|
14824
14433
|
};
|
|
14825
14434
|
const OpenInNewTab = () => {
|
|
14826
|
-
return (index.h("sqm-link-button", Object.assign({}, { ...defaultProps$
|
|
14435
|
+
return (index.h("sqm-link-button", Object.assign({}, { ...defaultProps$i, openInNewTab: true })));
|
|
14827
14436
|
};
|
|
14828
14437
|
|
|
14829
14438
|
const LinkButton = /*#__PURE__*/Object.freeze({
|
|
@@ -14839,7 +14448,7 @@ const CloseButton_stories = {
|
|
|
14839
14448
|
// scenario,
|
|
14840
14449
|
},
|
|
14841
14450
|
};
|
|
14842
|
-
const defaultProps$
|
|
14451
|
+
const defaultProps$j = {};
|
|
14843
14452
|
const containerStyles = {
|
|
14844
14453
|
position: "relative",
|
|
14845
14454
|
width: "500px",
|
|
@@ -14848,15 +14457,15 @@ const containerStyles = {
|
|
|
14848
14457
|
padding: "25px",
|
|
14849
14458
|
};
|
|
14850
14459
|
const Default$l = () => {
|
|
14851
|
-
return index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$
|
|
14460
|
+
return index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$j));
|
|
14852
14461
|
};
|
|
14853
14462
|
const InAContainer = () => {
|
|
14854
14463
|
return (index.h("div", { style: containerStyles },
|
|
14855
|
-
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$
|
|
14464
|
+
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$j))));
|
|
14856
14465
|
};
|
|
14857
14466
|
const CustomColor$1 = () => {
|
|
14858
14467
|
return (index.h("div", { style: containerStyles },
|
|
14859
|
-
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, { ...defaultProps$
|
|
14468
|
+
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, { ...defaultProps$j, color: "blue" }))));
|
|
14860
14469
|
};
|
|
14861
14470
|
|
|
14862
14471
|
const CloseButton = /*#__PURE__*/Object.freeze({
|
|
@@ -14899,10 +14508,10 @@ const style$1 = {
|
|
|
14899
14508
|
border: "1px solid var(--sl-color-gray-200)",
|
|
14900
14509
|
},
|
|
14901
14510
|
};
|
|
14902
|
-
const sheet$
|
|
14903
|
-
const styleString$1 = sheet$
|
|
14511
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
14512
|
+
const styleString$1 = sheet$1.toString();
|
|
14904
14513
|
const DocusignExpiredView = (props) => {
|
|
14905
|
-
const { classes } = sheet$
|
|
14514
|
+
const { classes } = sheet$1;
|
|
14906
14515
|
const { text } = props;
|
|
14907
14516
|
return (index.h("div", null,
|
|
14908
14517
|
index.h("style", { type: "text/css" }, styleString$1),
|
|
@@ -14949,13 +14558,13 @@ const registeredInCanada = {
|
|
|
14949
14558
|
text: indirectDetailsSlotText,
|
|
14950
14559
|
};
|
|
14951
14560
|
const RegisteredInOtherRegion = () => {
|
|
14952
|
-
return index.h(
|
|
14561
|
+
return index.h(sqmInvoiceTableView.OtherRegionSlotView, Object.assign({}, registeredInOtherRegion));
|
|
14953
14562
|
};
|
|
14954
14563
|
const RegisteredInCanada = () => {
|
|
14955
14564
|
return index.h(IndirectDetailsSlotView, Object.assign({}, registeredInCanada));
|
|
14956
14565
|
};
|
|
14957
14566
|
const RegisteredInOtherRegionWithErrors = () => {
|
|
14958
|
-
return (index.h(
|
|
14567
|
+
return (index.h(sqmInvoiceTableView.OtherRegionSlotView, Object.assign({}, registeredInOtherRegion, { states: {
|
|
14959
14568
|
...registeredInOtherRegion.states,
|
|
14960
14569
|
formState: {
|
|
14961
14570
|
...registeredInOtherRegion.states.formState,
|
|
@@ -15011,8 +14620,8 @@ const style$2 = {
|
|
|
15011
14620
|
gap: "var(--sl-spacing-small)",
|
|
15012
14621
|
},
|
|
15013
14622
|
};
|
|
15014
|
-
const sheet$
|
|
15015
|
-
const styleString$2 = sheet$
|
|
14623
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
14624
|
+
const styleString$2 = sheet$2.toString();
|
|
15016
14625
|
const vanillaStyle = `
|
|
15017
14626
|
:host{
|
|
15018
14627
|
display: block;
|
|
@@ -15036,14 +14645,14 @@ const RadioCardView = ({ title, icon, description, selected, }) => {
|
|
|
15036
14645
|
const border = selected
|
|
15037
14646
|
? "1px solid var(--sl-color-primary-500)"
|
|
15038
14647
|
: "1px solid #CACFD3";
|
|
15039
|
-
return (index.h("div", { part: "sqm-base", class: sheet$
|
|
14648
|
+
return (index.h("div", { part: "sqm-base", class: sheet$2.classes.Container, style: {
|
|
15040
14649
|
border,
|
|
15041
14650
|
} },
|
|
15042
14651
|
index.h("style", { type: "text/css" },
|
|
15043
14652
|
styleString$2,
|
|
15044
14653
|
vanillaStyle),
|
|
15045
14654
|
index.h("sl-checkbox", { checked: selected }),
|
|
15046
|
-
index.h("div", { part: "sqm-title-container", class: sheet$
|
|
14655
|
+
index.h("div", { part: "sqm-title-container", class: sheet$2.classes.TitleContainer },
|
|
15047
14656
|
index.h("sl-icon", { name: icon }),
|
|
15048
14657
|
index.h("p", null, title)),
|
|
15049
14658
|
index.h("p", null, description)));
|
|
@@ -15052,17 +14661,17 @@ const RadioCardView = ({ title, icon, description, selected, }) => {
|
|
|
15052
14661
|
const RadioCard_stories = {
|
|
15053
14662
|
title: "Components/Radio Card",
|
|
15054
14663
|
};
|
|
15055
|
-
const defaultProps$
|
|
14664
|
+
const defaultProps$k = {
|
|
15056
14665
|
selected: false,
|
|
15057
14666
|
title: "Card Title",
|
|
15058
14667
|
description: "Description text goes here",
|
|
15059
14668
|
icon: "apple",
|
|
15060
14669
|
};
|
|
15061
14670
|
const DefaultView$1 = () => {
|
|
15062
|
-
return index.h(RadioCardView, Object.assign({}, defaultProps$
|
|
14671
|
+
return index.h(RadioCardView, Object.assign({}, defaultProps$k));
|
|
15063
14672
|
};
|
|
15064
14673
|
const Selected = () => {
|
|
15065
|
-
return index.h(RadioCardView, Object.assign({}, defaultProps$
|
|
14674
|
+
return index.h(RadioCardView, Object.assign({}, defaultProps$k, { selected: true }));
|
|
15066
14675
|
};
|
|
15067
14676
|
|
|
15068
14677
|
const RadioCard = /*#__PURE__*/Object.freeze({
|
|
@@ -15075,13 +14684,13 @@ const RadioCard = /*#__PURE__*/Object.freeze({
|
|
|
15075
14684
|
const ProgressBar_stories = {
|
|
15076
14685
|
title: "Components/Progress Bar",
|
|
15077
14686
|
};
|
|
15078
|
-
const defaultProps$
|
|
14687
|
+
const defaultProps$l = {
|
|
15079
14688
|
progress: 2,
|
|
15080
14689
|
goal: 4,
|
|
15081
14690
|
steps: true,
|
|
15082
14691
|
};
|
|
15083
14692
|
const TaxAndPayoutsProgressBar = () => {
|
|
15084
|
-
return index.h(
|
|
14693
|
+
return index.h(ShadowViewAddon.ProgressBar, Object.assign({}, defaultProps$l, { stageCount: 4, currentStage: 2 }));
|
|
15085
14694
|
};
|
|
15086
14695
|
|
|
15087
14696
|
const ProgressBar$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -15161,6 +14770,7 @@ const bankingFormProps = {
|
|
|
15161
14770
|
currency: "USD",
|
|
15162
14771
|
loadingError: false,
|
|
15163
14772
|
email: "test@example.com",
|
|
14773
|
+
showModal: false,
|
|
15164
14774
|
},
|
|
15165
14775
|
callbacks: {
|
|
15166
14776
|
onVerificationHide: () => { },
|
|
@@ -15170,6 +14780,8 @@ const bankingFormProps = {
|
|
|
15170
14780
|
setPaymentScheduleChecked: () => { },
|
|
15171
14781
|
setCountrySearch: () => { },
|
|
15172
14782
|
onBack: async () => console.log("back"),
|
|
14783
|
+
onModalOpen: () => { },
|
|
14784
|
+
onModalClose: () => { },
|
|
15173
14785
|
},
|
|
15174
14786
|
refs: { formRef: { current: null } },
|
|
15175
14787
|
};
|
|
@@ -15490,6 +15102,15 @@ const BankingInfoFormVerififyIdentityModal = () => {
|
|
|
15490
15102
|
},
|
|
15491
15103
|
} }));
|
|
15492
15104
|
};
|
|
15105
|
+
const BankingInfoFormModalOpen = () => {
|
|
15106
|
+
return (index.h("sqm-banking-info-form", { demoData: {
|
|
15107
|
+
...bankingFormProps,
|
|
15108
|
+
states: {
|
|
15109
|
+
...bankingFormProps.states,
|
|
15110
|
+
showModal: true,
|
|
15111
|
+
},
|
|
15112
|
+
} }));
|
|
15113
|
+
};
|
|
15493
15114
|
|
|
15494
15115
|
const BankingInfoForm = /*#__PURE__*/Object.freeze({
|
|
15495
15116
|
__proto__: null,
|
|
@@ -15516,7 +15137,8 @@ const BankingInfoForm = /*#__PURE__*/Object.freeze({
|
|
|
15516
15137
|
BankingInfoFormWithFixedDayPaymentSchedule: BankingInfoFormWithFixedDayPaymentSchedule,
|
|
15517
15138
|
BankingInfoFormWithFixedDayPaymentScheduleWithError: BankingInfoFormWithFixedDayPaymentScheduleWithError,
|
|
15518
15139
|
BankingInfoFormWithFixedDayPaymentScheduleLoading: BankingInfoFormWithFixedDayPaymentScheduleLoading,
|
|
15519
|
-
BankingInfoFormVerififyIdentityModal: BankingInfoFormVerififyIdentityModal
|
|
15140
|
+
BankingInfoFormVerififyIdentityModal: BankingInfoFormVerififyIdentityModal,
|
|
15141
|
+
BankingInfoFormModalOpen: BankingInfoFormModalOpen
|
|
15520
15142
|
});
|
|
15521
15143
|
|
|
15522
15144
|
const InvoiceTableCell_stories = {
|
|
@@ -15739,12 +15361,6 @@ function setupGraphQL$d() {
|
|
|
15739
15361
|
const InvoiceTable$1 = createHookStory(() => {
|
|
15740
15362
|
setupGraphQL$d();
|
|
15741
15363
|
index_module.setProgramId("22999");
|
|
15742
|
-
const props = {
|
|
15743
|
-
listType: "",
|
|
15744
|
-
render: () => { },
|
|
15745
|
-
disconnectedCallback: () => { },
|
|
15746
|
-
ignored: true,
|
|
15747
|
-
};
|
|
15748
15364
|
return (index.h("sqm-invoice-table", null,
|
|
15749
15365
|
index.h("sqm-invoice-table-download-column", null),
|
|
15750
15366
|
index.h("sqm-invoice-table-date-column", { "column-title": "Date" }),
|
|
@@ -15773,7 +15389,7 @@ const UseInvoiceTableCells = /*#__PURE__*/Object.freeze({
|
|
|
15773
15389
|
const WidgetEmailVerification_stories = {
|
|
15774
15390
|
title: "Components/Widget Email Verification",
|
|
15775
15391
|
};
|
|
15776
|
-
const defaultProps$
|
|
15392
|
+
const defaultProps$m = {
|
|
15777
15393
|
email: "",
|
|
15778
15394
|
error: false,
|
|
15779
15395
|
loading: false,
|
|
@@ -15788,19 +15404,19 @@ const EmailIsPrefilled = () => (index.h("div", null,
|
|
|
15788
15404
|
index.h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
|
|
15789
15405
|
index.h("sqm-email-verification", { demoData: {
|
|
15790
15406
|
states: {
|
|
15791
|
-
...defaultProps$
|
|
15407
|
+
...defaultProps$m,
|
|
15792
15408
|
email: "test@example.com",
|
|
15793
15409
|
},
|
|
15794
15410
|
} })));
|
|
15795
15411
|
const Loading$8 = () => (index.h("sqm-email-verification", { demoData: {
|
|
15796
15412
|
states: {
|
|
15797
|
-
...defaultProps$
|
|
15413
|
+
...defaultProps$m,
|
|
15798
15414
|
initialLoading: true,
|
|
15799
15415
|
},
|
|
15800
15416
|
} }));
|
|
15801
15417
|
const SaveLoading = () => (index.h("sqm-email-verification", { demoData: {
|
|
15802
15418
|
states: {
|
|
15803
|
-
...defaultProps$
|
|
15419
|
+
...defaultProps$m,
|
|
15804
15420
|
loading: true,
|
|
15805
15421
|
},
|
|
15806
15422
|
} }));
|
|
@@ -15811,19 +15427,19 @@ const WithHeader$1 = () => (index.h("div", null,
|
|
|
15811
15427
|
index.h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
|
|
15812
15428
|
index.h("sqm-email-verification", { demoData: {
|
|
15813
15429
|
states: {
|
|
15814
|
-
...defaultProps$
|
|
15430
|
+
...defaultProps$m,
|
|
15815
15431
|
email: "test@example.com",
|
|
15816
15432
|
},
|
|
15817
15433
|
} })));
|
|
15818
15434
|
const InvalidEmail = () => (index.h("sqm-email-verification", { demoData: {
|
|
15819
15435
|
states: {
|
|
15820
|
-
...defaultProps$
|
|
15436
|
+
...defaultProps$m,
|
|
15821
15437
|
error: true,
|
|
15822
15438
|
},
|
|
15823
15439
|
} }));
|
|
15824
15440
|
const SendCodeError = () => (index.h("sqm-email-verification", { demoData: {
|
|
15825
15441
|
states: {
|
|
15826
|
-
...defaultProps$
|
|
15442
|
+
...defaultProps$m,
|
|
15827
15443
|
sendCodeError: true,
|
|
15828
15444
|
},
|
|
15829
15445
|
} }));
|
|
@@ -15843,35 +15459,35 @@ const WidgetEmailVerification = /*#__PURE__*/Object.freeze({
|
|
|
15843
15459
|
const WidgetCodeVerification_stories = {
|
|
15844
15460
|
title: "Components/Widget Code Verification",
|
|
15845
15461
|
};
|
|
15846
|
-
const defaultProps$
|
|
15462
|
+
const defaultProps$n = {
|
|
15847
15463
|
initialiseLoading: false,
|
|
15848
15464
|
email: "testemail@example.com",
|
|
15849
15465
|
loading: false,
|
|
15850
15466
|
verifyFailed: false,
|
|
15851
15467
|
emailResent: false,
|
|
15852
15468
|
};
|
|
15853
|
-
const Default$n = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$
|
|
15469
|
+
const Default$n = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$n } }));
|
|
15854
15470
|
const InitialLoading = () => (index.h("sqm-code-verification", { demoData: {
|
|
15855
15471
|
states: {
|
|
15856
|
-
...defaultProps$
|
|
15472
|
+
...defaultProps$n,
|
|
15857
15473
|
initialiseLoading: true,
|
|
15858
15474
|
},
|
|
15859
15475
|
} }));
|
|
15860
15476
|
const Loading$9 = () => (index.h("sqm-code-verification", { demoData: {
|
|
15861
15477
|
states: {
|
|
15862
|
-
...defaultProps$
|
|
15478
|
+
...defaultProps$n,
|
|
15863
15479
|
loading: true,
|
|
15864
15480
|
},
|
|
15865
15481
|
} }));
|
|
15866
15482
|
const CodeResent = () => (index.h("sqm-code-verification", { demoData: {
|
|
15867
15483
|
states: {
|
|
15868
|
-
...defaultProps$
|
|
15484
|
+
...defaultProps$n,
|
|
15869
15485
|
emailResent: true,
|
|
15870
15486
|
},
|
|
15871
15487
|
} }));
|
|
15872
15488
|
const VerificationFailed = () => (index.h("sqm-code-verification", { demoData: {
|
|
15873
15489
|
states: {
|
|
15874
|
-
...defaultProps$
|
|
15490
|
+
...defaultProps$n,
|
|
15875
15491
|
verifyFailed: true,
|
|
15876
15492
|
},
|
|
15877
15493
|
} }));
|
|
@@ -15889,17 +15505,17 @@ const WidgetCodeVerification = /*#__PURE__*/Object.freeze({
|
|
|
15889
15505
|
const PayoutButtonScroll_stories = {
|
|
15890
15506
|
title: "Components/Payout Scroll Button",
|
|
15891
15507
|
};
|
|
15892
|
-
const defaultProps$
|
|
15508
|
+
const defaultProps$o = {
|
|
15893
15509
|
payoutSettingsComplete: true,
|
|
15894
15510
|
};
|
|
15895
|
-
const CompletedTaxForm = () => (index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$
|
|
15511
|
+
const CompletedTaxForm = () => (index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$o, payoutSettingsComplete: true } } }));
|
|
15896
15512
|
const CompletedTaxFormWithStatsContainer = () => (index.h("sqm-portal-container", { display: "flex", maxWidth: "100%", minWidth: "100%", "justify-content": "space-between", flexWrap: "nowrap" },
|
|
15897
15513
|
index.h("sqm-portal-container", { display: "flex", "max-width": "fit-content" },
|
|
15898
15514
|
index.h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/referralsCount" },
|
|
15899
15515
|
index.h("p", null, "Referrals")),
|
|
15900
15516
|
index.h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/payoutBalance" },
|
|
15901
15517
|
index.h("p", null, "Cash Balance"))),
|
|
15902
|
-
index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$
|
|
15518
|
+
index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$o, payoutSettingsComplete: true } } })));
|
|
15903
15519
|
|
|
15904
15520
|
const PayoutButtonScroll = /*#__PURE__*/Object.freeze({
|
|
15905
15521
|
__proto__: null,
|
|
@@ -15911,20 +15527,20 @@ const PayoutButtonScroll = /*#__PURE__*/Object.freeze({
|
|
|
15911
15527
|
const PayoutStatusAlert_stories = {
|
|
15912
15528
|
title: "Components/Payout Status Alert",
|
|
15913
15529
|
};
|
|
15914
|
-
const defaultProps$
|
|
15530
|
+
const defaultProps$p = {
|
|
15915
15531
|
error: false,
|
|
15916
15532
|
status: "INFORMATION_REQUIRED",
|
|
15917
15533
|
loading: false,
|
|
15918
15534
|
veriffLoading: false,
|
|
15919
15535
|
};
|
|
15920
|
-
const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$
|
|
15921
|
-
const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15922
|
-
const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15923
|
-
const VerifyIdentityReviewInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15924
|
-
const VerifyIdentityFailedInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15925
|
-
const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15926
|
-
const Loading$a = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15927
|
-
const Error$b = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15536
|
+
const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$p } }));
|
|
15537
|
+
const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$p, status: "VERIFICATION:REQUIRED" } } }));
|
|
15538
|
+
const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$p, status: "VERIFICATION:INTERNAL" } } }));
|
|
15539
|
+
const VerifyIdentityReviewInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$p, status: "VERIFICATION:REVIEW" } } }));
|
|
15540
|
+
const VerifyIdentityFailedInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$p, status: "VERIFICATION:FAILED" } } }));
|
|
15541
|
+
const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$p, status: "HOLD" } } }));
|
|
15542
|
+
const Loading$a = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$p, loading: true } } }));
|
|
15543
|
+
const Error$b = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$p, error: true } } }));
|
|
15928
15544
|
|
|
15929
15545
|
const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
15930
15546
|
__proto__: null,
|
|
@@ -16018,7 +15634,7 @@ const ReferralCodes$1 = /*#__PURE__*/Object.freeze({
|
|
|
16018
15634
|
const BaseRegistrationForm_stories = {
|
|
16019
15635
|
title: "Components/Microsite Base Registration",
|
|
16020
15636
|
};
|
|
16021
|
-
const defaultProps$
|
|
15637
|
+
const defaultProps$q = {
|
|
16022
15638
|
states: {
|
|
16023
15639
|
error: "",
|
|
16024
15640
|
},
|
|
@@ -16038,13 +15654,13 @@ const defaultProps$r = {
|
|
|
16038
15654
|
},
|
|
16039
15655
|
};
|
|
16040
15656
|
const errorProps$a = {
|
|
16041
|
-
...defaultProps$
|
|
15657
|
+
...defaultProps$q,
|
|
16042
15658
|
states: {
|
|
16043
15659
|
error: "Something went wrong. Please try again.",
|
|
16044
15660
|
},
|
|
16045
15661
|
};
|
|
16046
15662
|
const Default$o = () => {
|
|
16047
|
-
return index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, Object.assign({}, defaultProps$
|
|
15663
|
+
return index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, Object.assign({}, defaultProps$q));
|
|
16048
15664
|
};
|
|
16049
15665
|
const EmailError = () => {
|
|
16050
15666
|
return index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, Object.assign({}, errorProps$a));
|
|
@@ -16060,7 +15676,7 @@ const BaseRegistrationForm = /*#__PURE__*/Object.freeze({
|
|
|
16060
15676
|
const PortalGoogleRegistrationForm_stories = {
|
|
16061
15677
|
title: "Components/Microsite Google Register",
|
|
16062
15678
|
};
|
|
16063
|
-
const defaultProps$
|
|
15679
|
+
const defaultProps$r = {
|
|
16064
15680
|
states: {
|
|
16065
15681
|
error: "",
|
|
16066
15682
|
loading: false,
|
|
@@ -16086,7 +15702,7 @@ const defaultProps$s = {
|
|
|
16086
15702
|
passwordField: null,
|
|
16087
15703
|
formData: (index.h("div", null,
|
|
16088
15704
|
" ",
|
|
16089
|
-
index.h(
|
|
15705
|
+
index.h(ShadowViewAddon.NameFieldsView, { states: {
|
|
16090
15706
|
registrationFormState: {
|
|
16091
15707
|
validationErrors: undefined,
|
|
16092
15708
|
disabled: true,
|
|
@@ -16105,7 +15721,7 @@ const defaultProps$s = {
|
|
|
16105
15721
|
},
|
|
16106
15722
|
};
|
|
16107
15723
|
const errorProps$b = {
|
|
16108
|
-
...defaultProps$
|
|
15724
|
+
...defaultProps$r,
|
|
16109
15725
|
states: {
|
|
16110
15726
|
error: "Something went wrong. Please try again.",
|
|
16111
15727
|
loading: false,
|
|
@@ -16121,7 +15737,7 @@ const errorProps$b = {
|
|
|
16121
15737
|
},
|
|
16122
15738
|
};
|
|
16123
15739
|
const loadingProps$8 = {
|
|
16124
|
-
...defaultProps$
|
|
15740
|
+
...defaultProps$r,
|
|
16125
15741
|
states: {
|
|
16126
15742
|
error: "",
|
|
16127
15743
|
loading: true,
|
|
@@ -16136,11 +15752,11 @@ const loadingProps$8 = {
|
|
|
16136
15752
|
},
|
|
16137
15753
|
},
|
|
16138
15754
|
};
|
|
16139
|
-
const Default$p = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
15755
|
+
const Default$p = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$r)));
|
|
16140
15756
|
const RegisterWithError$2 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, errorProps$b)));
|
|
16141
15757
|
const RegisterLoading$2 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, loadingProps$8)));
|
|
16142
|
-
const TermsAndConditions$4 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
16143
|
-
...defaultProps$
|
|
15758
|
+
const TermsAndConditions$4 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$r, { content: {
|
|
15759
|
+
...defaultProps$r.content,
|
|
16144
15760
|
terms: (index.h("p", null,
|
|
16145
15761
|
"By signing up you agree to the",
|
|
16146
15762
|
" ",
|
|
@@ -16159,7 +15775,7 @@ const PortalGoogleRegistrationFormStories = /*#__PURE__*/Object.freeze({
|
|
|
16159
15775
|
const QRCode_stories = {
|
|
16160
15776
|
title: "Components/QR Code",
|
|
16161
15777
|
};
|
|
16162
|
-
const defaultProps$
|
|
15778
|
+
const defaultProps$s = {
|
|
16163
15779
|
hideTitle: false,
|
|
16164
15780
|
loading: false,
|
|
16165
15781
|
alignment: "center",
|
|
@@ -16178,28 +15794,28 @@ const defaultProps$t = {
|
|
|
16178
15794
|
errorDescriptionText: "Please refresh this page and try again",
|
|
16179
15795
|
};
|
|
16180
15796
|
const Default$q = () => {
|
|
16181
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
15797
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$s));
|
|
16182
15798
|
};
|
|
16183
15799
|
const HideTitle = () => {
|
|
16184
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
15800
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$s, { hideTitle: true }));
|
|
16185
15801
|
};
|
|
16186
15802
|
const LeftAlign$1 = () => {
|
|
16187
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
15803
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$s, { alignment: "left" }));
|
|
16188
15804
|
};
|
|
16189
15805
|
const CenterAlign = () => {
|
|
16190
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
15806
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$s, { alignment: "center" }));
|
|
16191
15807
|
};
|
|
16192
15808
|
const RightAlign$1 = () => {
|
|
16193
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
15809
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$s, { alignment: "right" }));
|
|
16194
15810
|
};
|
|
16195
15811
|
const Loading$c = () => {
|
|
16196
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
15812
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$s, { loading: true }));
|
|
16197
15813
|
};
|
|
16198
15814
|
const Error$c = () => {
|
|
16199
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
15815
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$s, { error: true }));
|
|
16200
15816
|
};
|
|
16201
15817
|
const DownloadError = () => {
|
|
16202
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
15818
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$s, { error: true }));
|
|
16203
15819
|
};
|
|
16204
15820
|
|
|
16205
15821
|
const QRCode = /*#__PURE__*/Object.freeze({
|
|
@@ -16232,29 +15848,29 @@ const Default$r = `
|
|
|
16232
15848
|
`;
|
|
16233
15849
|
const Orangey = `
|
|
16234
15850
|
:root{
|
|
16235
|
-
${
|
|
15851
|
+
${ShadowViewAddon.autoColorScaleCss("orange")}
|
|
16236
15852
|
}
|
|
16237
15853
|
`;
|
|
16238
15854
|
const Netflix = `
|
|
16239
15855
|
:root{
|
|
16240
|
-
${
|
|
15856
|
+
${ShadowViewAddon.autoColorScaleCss("#e50914")}
|
|
16241
15857
|
}
|
|
16242
15858
|
`;
|
|
16243
15859
|
const SaaSquatchCorporate = `
|
|
16244
15860
|
:root{
|
|
16245
|
-
${
|
|
15861
|
+
${ShadowViewAddon.autoColorScaleCss("#65bd60")}
|
|
16246
15862
|
--sl-font-sans: Arial;
|
|
16247
15863
|
}
|
|
16248
15864
|
`;
|
|
16249
15865
|
const NYTimes = `
|
|
16250
15866
|
:root{
|
|
16251
|
-
${
|
|
15867
|
+
${ShadowViewAddon.autoColorScaleCss("black")}
|
|
16252
15868
|
--sl-font-sans: Georgia, 'Times New Roman', serif;
|
|
16253
15869
|
}
|
|
16254
15870
|
`;
|
|
16255
15871
|
const Klip = `
|
|
16256
15872
|
:root{
|
|
16257
|
-
${
|
|
15873
|
+
${ShadowViewAddon.autoColorScaleCss("#4225C4")};
|
|
16258
15874
|
}
|
|
16259
15875
|
|
|
16260
15876
|
`;
|
|
@@ -17595,7 +17211,7 @@ const mergeHTMLPlugin = {
|
|
|
17595
17211
|
/**
|
|
17596
17212
|
* @param {Node} node
|
|
17597
17213
|
*/
|
|
17598
|
-
function tag
|
|
17214
|
+
function tag(node) {
|
|
17599
17215
|
return node.nodeName.toLowerCase();
|
|
17600
17216
|
}
|
|
17601
17217
|
|
|
@@ -17619,7 +17235,7 @@ function nodeStream(node) {
|
|
|
17619
17235
|
// Prevent void elements from having an end tag that would actually
|
|
17620
17236
|
// double them in the output. There are more void elements in HTML
|
|
17621
17237
|
// but we list only those realistically expected in code display.
|
|
17622
|
-
if (!tag
|
|
17238
|
+
if (!tag(child).match(/br|hr|img|input/)) {
|
|
17623
17239
|
result.push({
|
|
17624
17240
|
event: 'stop',
|
|
17625
17241
|
offset: offset,
|
|
@@ -17678,14 +17294,14 @@ function mergeStreams(original, highlighted, value) {
|
|
|
17678
17294
|
return ' ' + attr.nodeName + '="' + escapeHTML(attr.value) + '"';
|
|
17679
17295
|
}
|
|
17680
17296
|
// @ts-ignore
|
|
17681
|
-
result += '<' + tag
|
|
17297
|
+
result += '<' + tag(node) + [].map.call(node.attributes, attributeString).join('') + '>';
|
|
17682
17298
|
}
|
|
17683
17299
|
|
|
17684
17300
|
/**
|
|
17685
17301
|
* @param {Node} node
|
|
17686
17302
|
*/
|
|
17687
17303
|
function close(node) {
|
|
17688
|
-
result += '</' + tag
|
|
17304
|
+
result += '</' + tag(node) + '>';
|
|
17689
17305
|
}
|
|
17690
17306
|
|
|
17691
17307
|
/**
|
|
@@ -18936,7 +18552,7 @@ const stories = [
|
|
|
18936
18552
|
LinkButton,
|
|
18937
18553
|
EmailRegistration,
|
|
18938
18554
|
CloseButton,
|
|
18939
|
-
|
|
18555
|
+
sqmInvoiceTableView.TaxForm,
|
|
18940
18556
|
RadioCard,
|
|
18941
18557
|
ProgressBar$1,
|
|
18942
18558
|
TaxFormSlots,
|