@saasquatch/mint-components 2.1.8-21 → 2.1.8-22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sqm-share-link.cjs.entry.js +271 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1144 -588
- package/dist/cjs/useShareLink-1282123e.js +422 -0
- package/dist/cjs/useShareLink-3c22b1b9.js +448 -0
- package/dist/cjs/useShareLink-54e24928.js +448 -0
- package/dist/cjs/useShareLink-b664fbc7.js +450 -0
- package/dist/cjs/useShareLink-bf04b25c.js +450 -0
- package/dist/cjs/useShareLink-e8e2ae6d.js +448 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +2 -28
- package/dist/esm/sqm-share-link.entry.js +267 -0
- package/dist/esm/sqm-stencilbook.entry.js +3327 -2771
- package/dist/esm/useShareLink-023284f3.js +445 -0
- package/dist/esm/useShareLink-436e9cad.js +445 -0
- package/dist/esm/useShareLink-4ba01373.js +447 -0
- package/dist/esm/useShareLink-79056582.js +445 -0
- package/dist/esm/useShareLink-a3329e33.js +419 -0
- package/dist/esm/useShareLink-bc20ec4c.js +447 -0
- package/dist/esm-es5/sqm-share-link.entry.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/useShareLink-023284f3.js +1 -0
- package/dist/esm-es5/useShareLink-436e9cad.js +1 -0
- package/dist/esm-es5/useShareLink-4ba01373.js +1 -0
- package/dist/esm-es5/useShareLink-79056582.js +1 -0
- package/dist/esm-es5/useShareLink-a3329e33.js +1 -0
- package/dist/esm-es5/useShareLink-bc20ec4c.js +1 -0
- package/dist/mint-components/sqm-share-link.entry.js +267 -0
- package/dist/mint-components/sqm-share-link.system.entry.js +1 -0
- package/dist/mint-components/sqm-stencilbook.entry.js +22106 -0
- package/dist/mint-components/sqm-stencilbook.system.entry.js +1 -0
- package/dist/mint-components/useShareLink-023284f3.js +445 -0
- package/dist/mint-components/useShareLink-1d7c9fd8.system.js +1 -0
- package/dist/mint-components/useShareLink-211e061c.system.js +1 -0
- package/dist/mint-components/useShareLink-2de7ffce.system.js +1 -0
- package/dist/mint-components/useShareLink-436e9cad.js +445 -0
- package/dist/mint-components/useShareLink-454939f5.system.js +1 -0
- package/dist/mint-components/useShareLink-4ba01373.js +447 -0
- package/dist/mint-components/useShareLink-79056582.js +445 -0
- package/dist/mint-components/useShareLink-a3329e33.js +419 -0
- package/dist/mint-components/useShareLink-bc20ec4c.js +447 -0
- package/dist/mint-components/useShareLink-c05fe151.system.js +1 -0
- package/dist/mint-components/useShareLink-cb5abd96.system.js +1 -0
- package/package.json +1 -1
|
@@ -2,42 +2,78 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
require('./global-
|
|
7
|
-
const domContextHooks_module = require('./dom-context-hooks.module-
|
|
8
|
-
const index_module = require('./index.module-
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
11
|
-
const JSS = require('./JSS-
|
|
12
|
-
require('./
|
|
13
|
-
require('./
|
|
14
|
-
|
|
15
|
-
require('./
|
|
16
|
-
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-90cd89e3.js');
|
|
17
|
-
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-020f661c.js');
|
|
18
|
-
const GenericTableView = require('./GenericTableView-be5648e4.js');
|
|
19
|
-
require('./useChildElements-89bc50a9.js');
|
|
20
|
-
const luxon = require('./luxon-c1ad356a.js');
|
|
21
|
-
const sqmCloseButtonView = require('./sqm-close-button-view-e9f2a454.js');
|
|
22
|
-
require('./index-8c6255f5.js');
|
|
5
|
+
const index = require('./index-fd67d7bc.js');
|
|
6
|
+
require('./global-746daf93.js');
|
|
7
|
+
const domContextHooks_module = require('./dom-context-hooks.module-224e09d4.js');
|
|
8
|
+
const index_module = require('./index.module-c79bd5b0.js');
|
|
9
|
+
require('./GoogleFonts-039d880f.js');
|
|
10
|
+
require('./jss-preset-default.esm-b48f0c33.js');
|
|
11
|
+
const JSS = require('./JSS-518e9b4d.js');
|
|
12
|
+
require('./mixins-f51b04f1.js');
|
|
13
|
+
const sqmCloseButtonView = require('./sqm-close-button-view-f0739ccb.js');
|
|
14
|
+
require('./utils-e326d1b5.js');
|
|
15
|
+
require('./index-9a829282.js');
|
|
23
16
|
require('./imageUrl-a7880cab.js');
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
require('./
|
|
33
|
-
const
|
|
34
|
-
require('./
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
const
|
|
17
|
+
require('./cjs-2bf512b9.js');
|
|
18
|
+
const emailRegistrationView = require('./email-registration-view-efcb8798.js');
|
|
19
|
+
const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-66bf79c7.js');
|
|
20
|
+
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-141b8e74.js');
|
|
21
|
+
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-edbe1348.js');
|
|
22
|
+
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-c9f45972.js');
|
|
23
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-dfa1e885.js');
|
|
24
|
+
require('./data-7eb11f12.js');
|
|
25
|
+
require('./sqm-text-span-view-ca0a70ba.js');
|
|
26
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-f24758ec.js');
|
|
27
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-5950c3eb.js');
|
|
28
|
+
require('./utilities-25747d38.js');
|
|
29
|
+
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5264d4ba.js');
|
|
30
|
+
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-93b37b10.js');
|
|
31
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-ba89eede.js');
|
|
32
|
+
require('./ErrorView-dd328bfc.js');
|
|
33
|
+
const sqmQrCodeView = require('./sqm-qr-code-view-914906e4.js');
|
|
34
|
+
require('./useReferralCodes-4304f68f.js');
|
|
35
|
+
const sqmBigStatView = require('./sqm-big-stat-view-b695364f.js');
|
|
36
|
+
const useShareButton = require('./useShareButton-51b74885.js');
|
|
37
|
+
const copyTextView = require('./copy-text-view-fd17b89a.js');
|
|
38
|
+
const sqmPortalSectionView = require('./sqm-portal-section-view-f9b0ae2c.js');
|
|
39
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-39599a6d.js');
|
|
40
|
+
const sqmStatContainerView = require('./sqm-stat-container-view-731eadab.js');
|
|
41
|
+
const sqmPortalChangePasswordView = require('./sqm-portal-change-password-view-aa777a10.js');
|
|
42
|
+
const sqmPortalFooterView = require('./sqm-portal-footer-view-9d4a593d.js');
|
|
43
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-a08708f4.js');
|
|
44
|
+
require('./useChildElements-708e8262.js');
|
|
45
|
+
const useDemoBigStat = require('./useDemoBigStat-4fb173ba.js');
|
|
46
|
+
const sqmCardFeedView = require('./sqm-card-feed-view-46b4a93a.js');
|
|
47
|
+
const luxon = require('./luxon-99375875.js');
|
|
48
|
+
const sqmTaskCardView = require('./sqm-task-card-view-34f94a28.js');
|
|
49
|
+
const sqmPortalRegisterView = require('./sqm-portal-register-view-c04ac7eb.js');
|
|
50
|
+
const sqmCheckboxFieldView = require('./sqm-checkbox-field-view-09bcdb50.js');
|
|
51
|
+
const sqmCouponCodeView = require('./sqm-coupon-code-view-7a7ca5bb.js');
|
|
52
|
+
const sqmDropdownFieldView = require('./sqm-dropdown-field-view-e8493bb3.js');
|
|
53
|
+
const sqmEditProfileView = require('./sqm-edit-profile-view-2eb33fff.js');
|
|
54
|
+
const ShadowViewAddon = require('./ShadowViewAddon-bb6d86c8.js');
|
|
55
|
+
const sqmHeroView = require('./sqm-hero-view-b48fa1bd.js');
|
|
56
|
+
const sqmInputFieldView = require('./sqm-input-field-view-2268467f.js');
|
|
57
|
+
const GenericTableView = require('./GenericTableView-6ca805d1.js');
|
|
58
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-31892cf3.js');
|
|
59
|
+
const sqmNameFieldsView = require('./sqm-name-fields-view-98361d92.js');
|
|
60
|
+
const sqmPortalChangeMarketingView = require('./sqm-portal-change-marketing-view-8961e575.js');
|
|
61
|
+
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-3ff8e40d.js');
|
|
62
|
+
const sqmPortalFrameView = require('./sqm-portal-frame-view-d07af74c.js');
|
|
63
|
+
const sqmPortalLoginView = require('./sqm-portal-login-view-f5ac5571.js');
|
|
64
|
+
const sqmReferralIframeView = require('./sqm-referral-iframe-view-ad358e47.js');
|
|
65
|
+
const RewardExchangeListData = require('./RewardExchangeListData-7d1aff90.js');
|
|
66
|
+
const useShareLink = require('./useShareLink-1282123e.js');
|
|
67
|
+
const LoadingView = require('./LoadingView-a567e2eb.js');
|
|
68
|
+
const subregions = require('./subregions-d43680d2.js');
|
|
69
|
+
const utils = require('./utils-a63cf4f4.js');
|
|
70
|
+
require('./countries-473a6e62.js');
|
|
71
|
+
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-d8458b7b.js');
|
|
72
|
+
const sqmLeadFormView = require('./sqm-lead-form-view-21432255.js');
|
|
73
|
+
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-2569b521.js');
|
|
74
|
+
const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-07e55fbc.js');
|
|
75
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-68d199ec.js');
|
|
76
|
+
const Themes = require('./Themes-77883dd2.js');
|
|
41
77
|
|
|
42
78
|
/**
|
|
43
79
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -691,7 +727,7 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
691
727
|
_this.tags.push(tag);
|
|
692
728
|
};
|
|
693
729
|
|
|
694
|
-
this.isSpeedy = options.speedy === undefined ? "
|
|
730
|
+
this.isSpeedy = options.speedy === undefined ? "development" === 'production' : options.speedy;
|
|
695
731
|
this.tags = [];
|
|
696
732
|
this.ctr = 0;
|
|
697
733
|
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
@@ -718,6 +754,18 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
718
754
|
|
|
719
755
|
var tag = this.tags[this.tags.length - 1];
|
|
720
756
|
|
|
757
|
+
if ("development" !== 'production') {
|
|
758
|
+
var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
759
|
+
|
|
760
|
+
if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
|
|
761
|
+
// this would only cause problem in speedy mode
|
|
762
|
+
// but we don't want enabling speedy to affect the observable behavior
|
|
763
|
+
// so we report this error at all times
|
|
764
|
+
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.');
|
|
765
|
+
}
|
|
766
|
+
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
|
|
767
|
+
}
|
|
768
|
+
|
|
721
769
|
if (this.isSpeedy) {
|
|
722
770
|
var sheet = sheetForTag(tag);
|
|
723
771
|
|
|
@@ -726,6 +774,9 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
726
774
|
// the big drawback is that the css won't be editable in devtools
|
|
727
775
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
728
776
|
} catch (e) {
|
|
777
|
+
if ("development" !== 'production' && !/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(rule)) {
|
|
778
|
+
console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
|
779
|
+
}
|
|
729
780
|
}
|
|
730
781
|
} else {
|
|
731
782
|
tag.appendChild(document.createTextNode(rule));
|
|
@@ -741,12 +792,31 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
741
792
|
});
|
|
742
793
|
this.tags = [];
|
|
743
794
|
this.ctr = 0;
|
|
795
|
+
|
|
796
|
+
if ("development" !== 'production') {
|
|
797
|
+
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
798
|
+
}
|
|
744
799
|
};
|
|
745
800
|
|
|
746
801
|
return StyleSheet;
|
|
747
802
|
}();
|
|
748
803
|
|
|
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 ""}))}}
|
|
804
|
+
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var s="@page";var u="@media";var i="@import";var f="@charset";var o="@viewport";var l="@supports";var v="@document";var h="@namespace";var p="@keyframes";var b="@font-face";var w="@counter-style";var $="@font-feature-values";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 W(e){return U(Y(T(e)))}function X(e){while(F=N())if(F<33)L();else break;return R(e)>2||R(F)>3?"":" "}function Y(e){while(L())switch(R(F)){case 0:O(re(E-1),e);break;case 2:O(V(F),e);break;default:O(d(F),e);}return e}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 ""}))}}function he(e){switch(e.type){case n:e.props=e.props.map((function(r){return S(W(r),(function(r,a,c){switch(z(r,0)){case 12:return C(r,1,A(r));case 0:case 40:case 43:case 62:case 126:return r;case 58:if(c[++a]==="global")c[a]="",c[++a]="\f"+C(c[a],a=1,-1);case 32:return a===1?"":r;default:switch(a){case 0:e=r;return M(c)>1?"":r;case a=M(c)-1:case 2:return a===2?r+e+e:r+e;default:return r}}}))}));}}
|
|
805
|
+
|
|
806
|
+
var weakMemoize = function weakMemoize(func) {
|
|
807
|
+
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
808
|
+
var cache = new WeakMap();
|
|
809
|
+
return function (arg) {
|
|
810
|
+
if (cache.has(arg)) {
|
|
811
|
+
// $FlowFixMe
|
|
812
|
+
return cache.get(arg);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
var ret = func(arg);
|
|
816
|
+
cache.set(arg, ret);
|
|
817
|
+
return ret;
|
|
818
|
+
};
|
|
819
|
+
};
|
|
750
820
|
|
|
751
821
|
function memoize(fn) {
|
|
752
822
|
var cache = Object.create(null);
|
|
@@ -756,6 +826,10 @@ function memoize(fn) {
|
|
|
756
826
|
};
|
|
757
827
|
}
|
|
758
828
|
|
|
829
|
+
var last = function last(arr) {
|
|
830
|
+
return arr.length ? arr[arr.length - 1] : null;
|
|
831
|
+
};
|
|
832
|
+
|
|
759
833
|
var toRules = function toRules(parsed, points) {
|
|
760
834
|
// pretend we've started with a comma
|
|
761
835
|
var index = -1;
|
|
@@ -857,12 +931,79 @@ var removeLabel = function removeLabel(element) {
|
|
|
857
931
|
}
|
|
858
932
|
}
|
|
859
933
|
};
|
|
934
|
+
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
|
935
|
+
|
|
936
|
+
var isIgnoringComment = function isIgnoringComment(element) {
|
|
937
|
+
return !!element && element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
|
941
|
+
return function (element, index, children) {
|
|
942
|
+
if (element.type !== 'rule') return;
|
|
943
|
+
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
944
|
+
|
|
945
|
+
if (unsafePseudoClasses && cache.compat !== true) {
|
|
946
|
+
var prevElement = index > 0 ? children[index - 1] : null;
|
|
947
|
+
|
|
948
|
+
if (prevElement && isIgnoringComment(last(prevElement.children))) {
|
|
949
|
+
return;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
|
953
|
+
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
var isImportRule = function isImportRule(element) {
|
|
960
|
+
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
|
|
964
|
+
for (var i = index - 1; i >= 0; i--) {
|
|
965
|
+
if (!isImportRule(children[i])) {
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
return false;
|
|
971
|
+
}; // use this to remove incorrect elements from further processing
|
|
972
|
+
// so they don't get handed to the `sheet` (or anything else)
|
|
973
|
+
// as that could potentially lead to additional logs which in turn could be overhelming to the user
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
var nullifyElement = function nullifyElement(element) {
|
|
977
|
+
element.type = '';
|
|
978
|
+
element.value = '';
|
|
979
|
+
element["return"] = '';
|
|
980
|
+
element.children = '';
|
|
981
|
+
element.props = '';
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
|
985
|
+
if (!isImportRule(element)) {
|
|
986
|
+
return;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
if (element.parent) {
|
|
990
|
+
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.");
|
|
991
|
+
nullifyElement(element);
|
|
992
|
+
} else if (isPrependedWithRegularRules(index, children)) {
|
|
993
|
+
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
|
994
|
+
nullifyElement(element);
|
|
995
|
+
}
|
|
996
|
+
};
|
|
860
997
|
|
|
861
998
|
var defaultStylisPlugins = [ve];
|
|
862
999
|
|
|
863
1000
|
var createCache = function createCache(options) {
|
|
864
1001
|
var key = options.key;
|
|
865
1002
|
|
|
1003
|
+
if ("development" !== 'production' && !key) {
|
|
1004
|
+
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.");
|
|
1005
|
+
}
|
|
1006
|
+
|
|
866
1007
|
if ( key === 'css') {
|
|
867
1008
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
868
1009
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
@@ -888,6 +1029,13 @@ var createCache = function createCache(options) {
|
|
|
888
1029
|
|
|
889
1030
|
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
890
1031
|
|
|
1032
|
+
if ("development" !== 'production') {
|
|
1033
|
+
// $FlowFixMe
|
|
1034
|
+
if (/[^a-z-]/.test(key)) {
|
|
1035
|
+
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
|
|
891
1039
|
var inserted = {}; // $FlowFixMe
|
|
892
1040
|
|
|
893
1041
|
var container;
|
|
@@ -912,9 +1060,28 @@ var createCache = function createCache(options) {
|
|
|
912
1060
|
|
|
913
1061
|
var omnipresentPlugins = [compat, removeLabel];
|
|
914
1062
|
|
|
1063
|
+
if ("development" !== 'production') {
|
|
1064
|
+
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
1065
|
+
get compat() {
|
|
1066
|
+
return cache.compat;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
}), incorrectImportAlarm);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
915
1072
|
{
|
|
916
1073
|
var currentSheet;
|
|
917
|
-
var finalizingPlugins = [fe,
|
|
1074
|
+
var finalizingPlugins = [fe, "development" !== 'production' ? function (element) {
|
|
1075
|
+
if (!element.root) {
|
|
1076
|
+
if (element["return"]) {
|
|
1077
|
+
currentSheet.insert(element["return"]);
|
|
1078
|
+
} else if (element.value && element.type !== c) {
|
|
1079
|
+
// insert empty rule in non-production environments
|
|
1080
|
+
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
|
1081
|
+
currentSheet.insert(element.value + "{}");
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
} : le(function (rule) {
|
|
918
1085
|
currentSheet.insert(rule);
|
|
919
1086
|
})];
|
|
920
1087
|
var serializer = oe(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -926,6 +1093,14 @@ var createCache = function createCache(options) {
|
|
|
926
1093
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
927
1094
|
currentSheet = sheet;
|
|
928
1095
|
|
|
1096
|
+
if ("development" !== 'production' && serialized.map !== undefined) {
|
|
1097
|
+
currentSheet = {
|
|
1098
|
+
insert: function insert(rule) {
|
|
1099
|
+
sheet.insert(rule + serialized.map);
|
|
1100
|
+
}
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
|
|
929
1104
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
930
1105
|
|
|
931
1106
|
if (shouldCache) {
|
|
@@ -1055,6 +1230,8 @@ var unitlessKeys = {
|
|
|
1055
1230
|
strokeWidth: 1
|
|
1056
1231
|
};
|
|
1057
1232
|
|
|
1233
|
+
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";
|
|
1234
|
+
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).";
|
|
1058
1235
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
1059
1236
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
1060
1237
|
|
|
@@ -1095,12 +1272,43 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
1095
1272
|
return value;
|
|
1096
1273
|
};
|
|
1097
1274
|
|
|
1275
|
+
if ("development" !== 'production') {
|
|
1276
|
+
var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
1277
|
+
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
|
|
1278
|
+
var oldProcessStyleValue = processStyleValue;
|
|
1279
|
+
var msPattern = /^-ms-/;
|
|
1280
|
+
var hyphenPattern = /-(.)/g;
|
|
1281
|
+
var hyphenatedCache = {};
|
|
1282
|
+
|
|
1283
|
+
processStyleValue = function processStyleValue(key, value) {
|
|
1284
|
+
if (key === 'content') {
|
|
1285
|
+
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) !== "'")) {
|
|
1286
|
+
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
var processed = oldProcessStyleValue(key, value);
|
|
1291
|
+
|
|
1292
|
+
if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
|
|
1293
|
+
hyphenatedCache[key] = true;
|
|
1294
|
+
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) {
|
|
1295
|
+
return _char.toUpperCase();
|
|
1296
|
+
}) + "?");
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
return processed;
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1098
1303
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1099
1304
|
if (interpolation == null) {
|
|
1100
1305
|
return '';
|
|
1101
1306
|
}
|
|
1102
1307
|
|
|
1103
1308
|
if (interpolation.__emotion_styles !== undefined) {
|
|
1309
|
+
if ("development" !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
|
1310
|
+
throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
|
|
1311
|
+
}
|
|
1104
1312
|
|
|
1105
1313
|
return interpolation;
|
|
1106
1314
|
}
|
|
@@ -1140,6 +1348,10 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1140
1348
|
|
|
1141
1349
|
var styles = interpolation.styles + ";";
|
|
1142
1350
|
|
|
1351
|
+
if ("development" !== 'production' && interpolation.map !== undefined) {
|
|
1352
|
+
styles += interpolation.map;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1143
1355
|
return styles;
|
|
1144
1356
|
}
|
|
1145
1357
|
|
|
@@ -1153,10 +1365,28 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1153
1365
|
var result = interpolation(mergedProps);
|
|
1154
1366
|
cursor = previousCursor;
|
|
1155
1367
|
return handleInterpolation(mergedProps, registered, result);
|
|
1368
|
+
} else if ("development" !== 'production') {
|
|
1369
|
+
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}`");
|
|
1156
1370
|
}
|
|
1157
1371
|
|
|
1158
1372
|
break;
|
|
1159
1373
|
}
|
|
1374
|
+
|
|
1375
|
+
case 'string':
|
|
1376
|
+
if ("development" !== 'production') {
|
|
1377
|
+
var matched = [];
|
|
1378
|
+
var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
|
|
1379
|
+
var fakeVarName = "animation" + matched.length;
|
|
1380
|
+
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
|
|
1381
|
+
return "${" + fakeVarName + "}";
|
|
1382
|
+
});
|
|
1383
|
+
|
|
1384
|
+
if (matched.length) {
|
|
1385
|
+
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 + "`"));
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
break;
|
|
1160
1390
|
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
1161
1391
|
|
|
1162
1392
|
|
|
@@ -1186,7 +1416,7 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1186
1416
|
string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
|
|
1187
1417
|
}
|
|
1188
1418
|
} else {
|
|
1189
|
-
if (_key === 'NO_COMPONENT_SELECTOR' && "
|
|
1419
|
+
if (_key === 'NO_COMPONENT_SELECTOR' && "development" !== 'production') {
|
|
1190
1420
|
throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
|
|
1191
1421
|
}
|
|
1192
1422
|
|
|
@@ -1209,6 +1439,9 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1209
1439
|
|
|
1210
1440
|
default:
|
|
1211
1441
|
{
|
|
1442
|
+
if ("development" !== 'production' && _key === 'undefined') {
|
|
1443
|
+
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
1444
|
+
}
|
|
1212
1445
|
|
|
1213
1446
|
string += _key + "{" + interpolated + "}";
|
|
1214
1447
|
}
|
|
@@ -1222,6 +1455,11 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1222
1455
|
}
|
|
1223
1456
|
|
|
1224
1457
|
var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
|
|
1458
|
+
var sourceMapPattern;
|
|
1459
|
+
|
|
1460
|
+
if ("development" !== 'production') {
|
|
1461
|
+
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
1462
|
+
} // this is the cursor for keyframes
|
|
1225
1463
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
1226
1464
|
|
|
1227
1465
|
|
|
@@ -1240,6 +1478,9 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1240
1478
|
stringMode = false;
|
|
1241
1479
|
styles += handleInterpolation(mergedProps, registered, strings);
|
|
1242
1480
|
} else {
|
|
1481
|
+
if ("development" !== 'production' && strings[0] === undefined) {
|
|
1482
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1483
|
+
}
|
|
1243
1484
|
|
|
1244
1485
|
styles += strings[0];
|
|
1245
1486
|
} // we start at 1 since we've already handled the first arg
|
|
@@ -1249,11 +1490,23 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1249
1490
|
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
1250
1491
|
|
|
1251
1492
|
if (stringMode) {
|
|
1493
|
+
if ("development" !== 'production' && strings[i] === undefined) {
|
|
1494
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1495
|
+
}
|
|
1252
1496
|
|
|
1253
1497
|
styles += strings[i];
|
|
1254
1498
|
}
|
|
1255
1499
|
}
|
|
1256
1500
|
|
|
1501
|
+
var sourceMap;
|
|
1502
|
+
|
|
1503
|
+
if ("development" !== 'production') {
|
|
1504
|
+
styles = styles.replace(sourceMapPattern, function (match) {
|
|
1505
|
+
sourceMap = match;
|
|
1506
|
+
return '';
|
|
1507
|
+
});
|
|
1508
|
+
} // using a global regex with .exec is stateful so lastIndex has to be reset each time
|
|
1509
|
+
|
|
1257
1510
|
|
|
1258
1511
|
labelPattern.lastIndex = 0;
|
|
1259
1512
|
var identifierName = '';
|
|
@@ -1266,6 +1519,19 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1266
1519
|
|
|
1267
1520
|
var name = murmur2(styles) + identifierName;
|
|
1268
1521
|
|
|
1522
|
+
if ("development" !== 'production') {
|
|
1523
|
+
// $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
|
|
1524
|
+
return {
|
|
1525
|
+
name: name,
|
|
1526
|
+
styles: styles,
|
|
1527
|
+
map: sourceMap,
|
|
1528
|
+
next: cursor,
|
|
1529
|
+
toString: function toString() {
|
|
1530
|
+
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).";
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1269
1535
|
return {
|
|
1270
1536
|
name: name,
|
|
1271
1537
|
styles: styles,
|
|
@@ -1333,6 +1599,9 @@ var createEmotion = function createEmotion(options) {
|
|
|
1333
1599
|
var cache = createCache(options); // $FlowFixMe
|
|
1334
1600
|
|
|
1335
1601
|
cache.sheet.speedy = function (value) {
|
|
1602
|
+
if ("development" !== 'production' && this.ctr !== 0) {
|
|
1603
|
+
throw new Error('speedy must be changed before any rules are inserted');
|
|
1604
|
+
}
|
|
1336
1605
|
|
|
1337
1606
|
this.isSpeedy = value;
|
|
1338
1607
|
};
|
|
@@ -1451,9 +1720,18 @@ var classnames = function classnames(args) {
|
|
|
1451
1720
|
var _createEmotion = createEmotion({
|
|
1452
1721
|
key: 'css'
|
|
1453
1722
|
}),
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1723
|
+
flush = _createEmotion.flush,
|
|
1724
|
+
hydrate = _createEmotion.hydrate,
|
|
1725
|
+
cx = _createEmotion.cx,
|
|
1726
|
+
merge$1 = _createEmotion.merge,
|
|
1727
|
+
getRegisteredStyles$1 = _createEmotion.getRegisteredStyles,
|
|
1728
|
+
injectGlobal = _createEmotion.injectGlobal,
|
|
1729
|
+
keyframes = _createEmotion.keyframes,
|
|
1730
|
+
css = _createEmotion.css,
|
|
1731
|
+
sheet = _createEmotion.sheet,
|
|
1732
|
+
cache = _createEmotion.cache;
|
|
1733
|
+
|
|
1734
|
+
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=domContextHooks_module.useMemo(function(){return l.map(p$1).reduce(d$1,{_:[]})},l),C=decodeURIComponent(window.location.hash).replace("#",""),z=domContextHooks_module.useState(f$1(C,S)),O=z[0],j=z[1],I=null==O?void 0:O.key,R=domContextHooks_module.useState(!0),U=R[0],_=R[1],B=domContextHooks_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}}
|
|
1457
1735
|
|
|
1458
1736
|
const NewPortal_stories = {
|
|
1459
1737
|
title: "New Portal",
|
|
@@ -1464,8 +1742,8 @@ const style = {
|
|
|
1464
1742
|
"text-decoration": "underline",
|
|
1465
1743
|
},
|
|
1466
1744
|
};
|
|
1467
|
-
const sheet = JSS.createStyleSheet(style);
|
|
1468
|
-
const styleString = sheet.toString();
|
|
1745
|
+
const sheet$1 = JSS.createStyleSheet(style);
|
|
1746
|
+
const styleString = sheet$1.toString();
|
|
1469
1747
|
const item1Props = {
|
|
1470
1748
|
states: {
|
|
1471
1749
|
active: false,
|
|
@@ -1550,7 +1828,7 @@ const Dashboard = () => {
|
|
|
1550
1828
|
index.h(Sidebar, null),
|
|
1551
1829
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
1552
1830
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
1553
|
-
index.h(
|
|
1831
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1554
1832
|
labelMargin: "xx-small",
|
|
1555
1833
|
padding: "none",
|
|
1556
1834
|
label: (index.h("sqm-text", null,
|
|
@@ -1558,13 +1836,13 @@ const Dashboard = () => {
|
|
|
1558
1836
|
content: (index.h("sqm-text", null,
|
|
1559
1837
|
index.h("h1", null, "John Smith"))),
|
|
1560
1838
|
})),
|
|
1561
|
-
index.h(
|
|
1562
|
-
index.h(
|
|
1563
|
-
index.h(
|
|
1564
|
-
index.h(
|
|
1565
|
-
index.h(
|
|
1839
|
+
index.h(sqmStatContainerView.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
1840
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "2,345", value: 234500, loading: false }), "Clicks"),
|
|
1841
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "58", value: 58, loading: false }), "Referrals"),
|
|
1842
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$10,540", value: 1054000, loading: false }), "Earned"),
|
|
1843
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$2,305", value: 230500, loading: false }), "Awaiting Payout"))),
|
|
1566
1844
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
1567
|
-
index.h(
|
|
1845
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1568
1846
|
labelMargin: "x-large",
|
|
1569
1847
|
padding: "none",
|
|
1570
1848
|
label: (index.h("sqm-text", null,
|
|
@@ -1572,21 +1850,21 @@ const Dashboard = () => {
|
|
|
1572
1850
|
content: (index.h("sqm-text", null,
|
|
1573
1851
|
index.h("p", null, "Get rewarded for referring potential customers to MyCompany. Earn commission for each successful lead you send our way"))),
|
|
1574
1852
|
})),
|
|
1575
|
-
index.h(
|
|
1853
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1576
1854
|
labelMargin: "small",
|
|
1577
1855
|
padding: "none",
|
|
1578
1856
|
label: (index.h("sqm-text", null,
|
|
1579
1857
|
index.h("h3", null, "Share your referral link"))),
|
|
1580
1858
|
content: index.h(copyTextView.CopyTextView, Object.assign({}, sharelinkProps)),
|
|
1581
1859
|
})),
|
|
1582
|
-
index.h(
|
|
1860
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1583
1861
|
labelMargin: "small",
|
|
1584
1862
|
padding: "none",
|
|
1585
1863
|
label: (index.h("sqm-text", null,
|
|
1586
1864
|
index.h("h3", null, "Share your referral code"))),
|
|
1587
1865
|
content: index.h(copyTextView.CopyTextView, Object.assign({}, sharecodeProps)),
|
|
1588
1866
|
})),
|
|
1589
|
-
index.h(
|
|
1867
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1590
1868
|
labelMargin: "small",
|
|
1591
1869
|
padding: "none",
|
|
1592
1870
|
label: (index.h("sqm-text", null,
|
|
@@ -1597,9 +1875,9 @@ const Dashboard = () => {
|
|
|
1597
1875
|
gap: "xxx-large",
|
|
1598
1876
|
minWidth: "150px",
|
|
1599
1877
|
}),
|
|
1600
|
-
index.h(
|
|
1601
|
-
index.h(
|
|
1602
|
-
index.h(
|
|
1878
|
+
index.h(useShareButton.ShareButtonView, Object.assign({}, twitterButtonProps), "Post about us on X"),
|
|
1879
|
+
index.h(useShareButton.ShareButtonView, Object.assign({}, facebookButtonProps), "Share on Facebook"),
|
|
1880
|
+
index.h(useShareButton.ShareButtonView, Object.assign({}, linkedinButtonProps), "Post on Linkedin"))),
|
|
1603
1881
|
}))))));
|
|
1604
1882
|
};
|
|
1605
1883
|
const EditProfile = () => {
|
|
@@ -1643,7 +1921,7 @@ const EditProfile = () => {
|
|
|
1643
1921
|
onChange: (e) => console.log(e),
|
|
1644
1922
|
},
|
|
1645
1923
|
})),
|
|
1646
|
-
index.h(
|
|
1924
|
+
index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, {
|
|
1647
1925
|
states: {
|
|
1648
1926
|
open: true,
|
|
1649
1927
|
error: "",
|
|
@@ -1672,7 +1950,7 @@ const Commissions = () => {
|
|
|
1672
1950
|
index.h(Sidebar, null),
|
|
1673
1951
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
1674
1952
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
1675
|
-
index.h(
|
|
1953
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1676
1954
|
labelMargin: "xx-small",
|
|
1677
1955
|
padding: "none",
|
|
1678
1956
|
label: (index.h("sqm-text", null,
|
|
@@ -1681,15 +1959,15 @@ const Commissions = () => {
|
|
|
1681
1959
|
index.h("p", null,
|
|
1682
1960
|
"for the",
|
|
1683
1961
|
" ",
|
|
1684
|
-
index.h("span", { class: sheet.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
1962
|
+
index.h("span", { class: sheet$1.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
1685
1963
|
" ",
|
|
1686
1964
|
"program"))),
|
|
1687
1965
|
})),
|
|
1688
|
-
index.h(
|
|
1689
|
-
index.h(
|
|
1690
|
-
index.h(
|
|
1691
|
-
index.h(
|
|
1692
|
-
index.h(
|
|
1966
|
+
index.h(sqmStatContainerView.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
1967
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 1,000", value: 100000, loading: false }), "Total Earned"),
|
|
1968
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 800", value: 80000, loading: false }), "Available"),
|
|
1969
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 180", value: 18000, loading: false }), "Pending"),
|
|
1970
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 20", value: 2000, loading: false }), "Redeemed"))))));
|
|
1693
1971
|
};
|
|
1694
1972
|
const Activity = () => {
|
|
1695
1973
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
@@ -1697,7 +1975,7 @@ const Activity = () => {
|
|
|
1697
1975
|
index.h(Sidebar, null),
|
|
1698
1976
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
1699
1977
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
1700
|
-
index.h(
|
|
1978
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1701
1979
|
labelMargin: "xx-small",
|
|
1702
1980
|
padding: "none",
|
|
1703
1981
|
label: (index.h("sqm-text", null,
|
|
@@ -1706,30 +1984,30 @@ const Activity = () => {
|
|
|
1706
1984
|
index.h("p", null,
|
|
1707
1985
|
"for the",
|
|
1708
1986
|
" ",
|
|
1709
|
-
index.h("span", { class: sheet.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
1987
|
+
index.h("span", { class: sheet$1.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
1710
1988
|
" ",
|
|
1711
1989
|
"program"))),
|
|
1712
1990
|
})),
|
|
1713
|
-
index.h(
|
|
1991
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1714
1992
|
labelMargin: "x-large",
|
|
1715
1993
|
padding: "none",
|
|
1716
1994
|
label: (index.h("sqm-text", null,
|
|
1717
1995
|
index.h("h3", null, "Referral Activity"))),
|
|
1718
|
-
content: (index.h(
|
|
1719
|
-
index.h(
|
|
1720
|
-
index.h(
|
|
1721
|
-
index.h(
|
|
1722
|
-
index.h(
|
|
1996
|
+
content: (index.h(sqmStatContainerView.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
1997
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "1,000", value: 100000, loading: false }), "Total Referrals"),
|
|
1998
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "800", value: 800, loading: false }), "Converted"),
|
|
1999
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "180", value: 180, loading: false }), "Pending"),
|
|
2000
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "20", value: 20, loading: false }), "Disqualified"))),
|
|
1723
2001
|
}))),
|
|
1724
|
-
index.h(
|
|
2002
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
1725
2003
|
labelMargin: "x-large",
|
|
1726
2004
|
padding: "xxx-large",
|
|
1727
2005
|
label: (index.h("sqm-text", null,
|
|
1728
2006
|
index.h("h3", null, "Traffic Generated"))),
|
|
1729
|
-
content: (index.h(
|
|
1730
|
-
index.h(
|
|
1731
|
-
index.h(
|
|
1732
|
-
index.h(
|
|
2007
|
+
content: (index.h(sqmStatContainerView.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
2008
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "1,000", value: 1000, loading: false }), "Clicks"),
|
|
2009
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "800", value: 800, loading: false }), "From share link"),
|
|
2010
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "180", value: 180, loading: false }), "From share mediums"))),
|
|
1733
2011
|
})))));
|
|
1734
2012
|
};
|
|
1735
2013
|
|
|
@@ -1844,8 +2122,11 @@ var marked = domContextHooks_module.createCommonjsModule(function (module, expor
|
|
|
1844
2122
|
*/
|
|
1845
2123
|
|
|
1846
2124
|
(function (global, factory) {
|
|
1847
|
-
|
|
1848
|
-
|
|
2125
|
+
'object' === 'object' && 'object' !== 'undefined' ? module.exports = factory() :
|
|
2126
|
+
typeof undefined === 'function' && undefined.amd ? undefined(factory) :
|
|
2127
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.marked = factory());
|
|
2128
|
+
}(domContextHooks_module.commonjsGlobal, (function () { 'use strict';
|
|
2129
|
+
|
|
1849
2130
|
function _defineProperties(target, props) {
|
|
1850
2131
|
for (var i = 0; i < props.length; i++) {
|
|
1851
2132
|
var descriptor = props[i];
|
|
@@ -4927,13 +5208,13 @@ const PoweredByImg_stories = {
|
|
|
4927
5208
|
title: "Powered By",
|
|
4928
5209
|
};
|
|
4929
5210
|
const Default = () => {
|
|
4930
|
-
return index.h(
|
|
5211
|
+
return index.h(sqmPortalFooterView.PoweredByImg, null);
|
|
4931
5212
|
};
|
|
4932
5213
|
const CustomColor = () => {
|
|
4933
|
-
return index.h(
|
|
5214
|
+
return index.h(sqmPortalFooterView.PoweredByImg, { color: "salmon" });
|
|
4934
5215
|
};
|
|
4935
5216
|
const CustomWidthAndHeight = () => {
|
|
4936
|
-
return index.h(
|
|
5217
|
+
return index.h(sqmPortalFooterView.PoweredByImg, { width: 300, height: 50 });
|
|
4937
5218
|
};
|
|
4938
5219
|
|
|
4939
5220
|
const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
@@ -5067,10 +5348,10 @@ const errorProps = {
|
|
|
5067
5348
|
},
|
|
5068
5349
|
};
|
|
5069
5350
|
const Default$1 = () => {
|
|
5070
|
-
return index.h(
|
|
5351
|
+
return index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, Object.assign({}, defaultProps));
|
|
5071
5352
|
};
|
|
5072
5353
|
const EmailError = () => {
|
|
5073
|
-
return index.h(
|
|
5354
|
+
return index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, Object.assign({}, errorProps));
|
|
5074
5355
|
};
|
|
5075
5356
|
|
|
5076
5357
|
const BaseRegistrationForm = /*#__PURE__*/Object.freeze({
|
|
@@ -5090,7 +5371,7 @@ const BigStat_stories = {
|
|
|
5090
5371
|
};
|
|
5091
5372
|
const Default$2 = () => {
|
|
5092
5373
|
const props = { value: 990000, statvalue: "9.900,00", loading: false };
|
|
5093
|
-
return index.h(
|
|
5374
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
5094
5375
|
};
|
|
5095
5376
|
const LeftAlign = () => {
|
|
5096
5377
|
const props = {
|
|
@@ -5099,7 +5380,7 @@ const LeftAlign = () => {
|
|
|
5099
5380
|
alignment: "left",
|
|
5100
5381
|
loading: false,
|
|
5101
5382
|
};
|
|
5102
|
-
return index.h(
|
|
5383
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
5103
5384
|
};
|
|
5104
5385
|
const RightAlign = () => {
|
|
5105
5386
|
const props = {
|
|
@@ -5108,7 +5389,7 @@ const RightAlign = () => {
|
|
|
5108
5389
|
alignment: "right",
|
|
5109
5390
|
loading: false,
|
|
5110
5391
|
};
|
|
5111
|
-
return index.h(
|
|
5392
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
5112
5393
|
};
|
|
5113
5394
|
const FlexReverse = () => {
|
|
5114
5395
|
const props = {
|
|
@@ -5117,7 +5398,7 @@ const FlexReverse = () => {
|
|
|
5117
5398
|
flexReverse: true,
|
|
5118
5399
|
loading: false,
|
|
5119
5400
|
};
|
|
5120
|
-
return index.h(
|
|
5401
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
5121
5402
|
};
|
|
5122
5403
|
const FlexReverseRight = () => {
|
|
5123
5404
|
const props = {
|
|
@@ -5127,7 +5408,7 @@ const FlexReverseRight = () => {
|
|
|
5127
5408
|
alignment: "right",
|
|
5128
5409
|
loading: false,
|
|
5129
5410
|
};
|
|
5130
|
-
return index.h(
|
|
5411
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
5131
5412
|
};
|
|
5132
5413
|
const FlexReverseLeft = () => {
|
|
5133
5414
|
const props = {
|
|
@@ -5137,7 +5418,7 @@ const FlexReverseLeft = () => {
|
|
|
5137
5418
|
alignment: "left",
|
|
5138
5419
|
loading: false,
|
|
5139
5420
|
};
|
|
5140
|
-
return index.h(
|
|
5421
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
5141
5422
|
};
|
|
5142
5423
|
const NoStatValue = () => {
|
|
5143
5424
|
const props = {
|
|
@@ -5145,7 +5426,7 @@ const NoStatValue = () => {
|
|
|
5145
5426
|
statvalue: "...",
|
|
5146
5427
|
loading: false,
|
|
5147
5428
|
};
|
|
5148
|
-
return index.h(
|
|
5429
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
5149
5430
|
};
|
|
5150
5431
|
const InvalidStatValue = () => {
|
|
5151
5432
|
const props = {
|
|
@@ -5153,7 +5434,7 @@ const InvalidStatValue = () => {
|
|
|
5153
5434
|
statvalue: "!!!",
|
|
5154
5435
|
loading: false,
|
|
5155
5436
|
};
|
|
5156
|
-
return index.h(
|
|
5437
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
5157
5438
|
};
|
|
5158
5439
|
const CustomStyles = () => {
|
|
5159
5440
|
return (index.h("sqm-big-stat", { "stat-font-weight": "500", "stat-text-color": "#1ed760", "stat-font-size": "45", "description-text-color": "#121212", "description-font-size": "18", alignment: "center", "stat-type": "/integrationRewardsCountFiltered/AVAILABLE/global", "flex-reverse": true },
|
|
@@ -5236,7 +5517,7 @@ const View = (statType, format, label) => {
|
|
|
5236
5517
|
};
|
|
5237
5518
|
const DemoView = () => {
|
|
5238
5519
|
const [type, setType] = domContextHooks_module.useState("/someRandomThing/with/someArguments/1234");
|
|
5239
|
-
const { props, label } =
|
|
5520
|
+
const { props, label } = useDemoBigStat.useDemoBigStat({
|
|
5240
5521
|
statType: type,
|
|
5241
5522
|
render: () => { },
|
|
5242
5523
|
disconnectedCallback: () => { },
|
|
@@ -5249,7 +5530,7 @@ const DemoView = () => {
|
|
|
5249
5530
|
index.h("input", { style: { width: "300px" }, type: "text", value: type, onInput: (e) => setType(e.target.value) })),
|
|
5250
5531
|
index.h("hr", null),
|
|
5251
5532
|
index.h("div", null,
|
|
5252
|
-
index.h(
|
|
5533
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, props), label))));
|
|
5253
5534
|
};
|
|
5254
5535
|
const Demo = createHookStory(DemoView);
|
|
5255
5536
|
const ReferralsCount = createHookStory(() => View("/referralsCount", "/(referralsCount)/:status?"));
|
|
@@ -5582,92 +5863,92 @@ const manyActions = {
|
|
|
5582
5863
|
states: { progress: 100, loading: false, loadingEvent: false },
|
|
5583
5864
|
};
|
|
5584
5865
|
const TaskCardGrid = () => {
|
|
5585
|
-
return (index.h(
|
|
5586
|
-
index.h(
|
|
5866
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 347, gap: 24 },
|
|
5867
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)),
|
|
5587
5868
|
index.h("div", null,
|
|
5588
|
-
index.h(
|
|
5869
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5589
5870
|
index.h("div", null,
|
|
5590
5871
|
index.h("div", null,
|
|
5591
|
-
index.h(
|
|
5592
|
-
index.h(
|
|
5593
|
-
index.h(
|
|
5872
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5873
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5874
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5594
5875
|
index.h("div", null,
|
|
5595
|
-
index.h(
|
|
5876
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5596
5877
|
index.h("div", null,
|
|
5597
5878
|
index.h("div", null,
|
|
5598
|
-
index.h(
|
|
5599
|
-
index.h(
|
|
5879
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5880
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions))));
|
|
5600
5881
|
};
|
|
5601
5882
|
const TaskCardGridHighGap = () => {
|
|
5602
|
-
return (index.h(
|
|
5603
|
-
index.h(
|
|
5883
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 400, gap: 150 },
|
|
5884
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)),
|
|
5604
5885
|
index.h("div", null,
|
|
5605
|
-
index.h(
|
|
5886
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5606
5887
|
index.h("div", null,
|
|
5607
5888
|
index.h("div", null,
|
|
5608
|
-
index.h(
|
|
5609
|
-
index.h(
|
|
5610
|
-
index.h(
|
|
5889
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5890
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5891
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5611
5892
|
index.h("div", null,
|
|
5612
|
-
index.h(
|
|
5893
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5613
5894
|
index.h("div", null,
|
|
5614
5895
|
index.h("div", null,
|
|
5615
|
-
index.h(
|
|
5616
|
-
index.h(
|
|
5896
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5897
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions))));
|
|
5617
5898
|
};
|
|
5618
5899
|
const TaskCardGridLowGap = () => {
|
|
5619
|
-
return (index.h(
|
|
5620
|
-
index.h(
|
|
5900
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 400, gap: 12 },
|
|
5901
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)),
|
|
5621
5902
|
index.h("div", null,
|
|
5622
|
-
index.h(
|
|
5903
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5623
5904
|
index.h("div", null,
|
|
5624
5905
|
index.h("div", null,
|
|
5625
|
-
index.h(
|
|
5626
|
-
index.h(
|
|
5627
|
-
index.h(
|
|
5906
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5907
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5908
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5628
5909
|
index.h("div", null,
|
|
5629
|
-
index.h(
|
|
5910
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5630
5911
|
index.h("div", null,
|
|
5631
5912
|
index.h("div", null,
|
|
5632
|
-
index.h(
|
|
5633
|
-
index.h(
|
|
5913
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5914
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions))));
|
|
5634
5915
|
};
|
|
5635
5916
|
const TaskCardGridHighWidth = () => {
|
|
5636
|
-
return (index.h(
|
|
5637
|
-
index.h(
|
|
5917
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 1000, gap: 24 },
|
|
5918
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)),
|
|
5638
5919
|
index.h("div", null,
|
|
5639
|
-
index.h(
|
|
5920
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5640
5921
|
index.h("div", null,
|
|
5641
5922
|
index.h("div", null,
|
|
5642
|
-
index.h(
|
|
5643
|
-
index.h(
|
|
5644
|
-
index.h(
|
|
5923
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5924
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5925
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5645
5926
|
index.h("div", null,
|
|
5646
|
-
index.h(
|
|
5927
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5647
5928
|
index.h("div", null,
|
|
5648
5929
|
index.h("div", null,
|
|
5649
|
-
index.h(
|
|
5650
|
-
index.h(
|
|
5930
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5931
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions))));
|
|
5651
5932
|
};
|
|
5652
5933
|
const TaskCardGridLowWidth = () => {
|
|
5653
|
-
return (index.h(
|
|
5654
|
-
index.h(
|
|
5934
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 250, gap: 24 },
|
|
5935
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)),
|
|
5655
5936
|
index.h("div", null,
|
|
5656
|
-
index.h(
|
|
5937
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5657
5938
|
index.h("div", null,
|
|
5658
5939
|
index.h("div", null,
|
|
5659
|
-
index.h(
|
|
5660
|
-
index.h(
|
|
5661
|
-
index.h(
|
|
5940
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5941
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5942
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions)),
|
|
5662
5943
|
index.h("div", null,
|
|
5663
|
-
index.h(
|
|
5944
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions))),
|
|
5664
5945
|
index.h("div", null,
|
|
5665
5946
|
index.h("div", null,
|
|
5666
|
-
index.h(
|
|
5667
|
-
index.h(
|
|
5947
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction)))),
|
|
5948
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions))));
|
|
5668
5949
|
};
|
|
5669
5950
|
const CardFeedGeneric = () => {
|
|
5670
|
-
return (index.h(
|
|
5951
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 300, gap: 24 },
|
|
5671
5952
|
index.h("div", { style: {
|
|
5672
5953
|
padding: "100px",
|
|
5673
5954
|
border: "1px dashed black",
|
|
@@ -5774,16 +6055,16 @@ const defaultRegisterProps = {
|
|
|
5774
6055
|
invalidEmailErrorMessage: "Must be a valid email address",
|
|
5775
6056
|
},
|
|
5776
6057
|
};
|
|
5777
|
-
const Default$3 = createHookStory(() => (index.h(
|
|
5778
|
-
const DefaultChecked = createHookStory(() => (index.h(
|
|
6058
|
+
const Default$3 = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$1))));
|
|
6059
|
+
const DefaultChecked = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$1, { states: {
|
|
5779
6060
|
...defaultProps$1.states,
|
|
5780
6061
|
checked: true,
|
|
5781
6062
|
} }))));
|
|
5782
|
-
const CustomLabel = createHookStory(() => (index.h(
|
|
6063
|
+
const CustomLabel = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$1, { content: {
|
|
5783
6064
|
...defaultProps$1.content,
|
|
5784
6065
|
checkboxLabel: "I Agree",
|
|
5785
6066
|
} }))));
|
|
5786
|
-
const Error$1 = createHookStory(() => (index.h(
|
|
6067
|
+
const Error$1 = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$1, { states: {
|
|
5787
6068
|
...defaultProps$1.states,
|
|
5788
6069
|
registrationFormState: {
|
|
5789
6070
|
validationErrors: {
|
|
@@ -5791,7 +6072,7 @@ const Error$1 = createHookStory(() => (index.h(ShadowViewAddon.CheckboxFieldView
|
|
|
5791
6072
|
},
|
|
5792
6073
|
},
|
|
5793
6074
|
} }))));
|
|
5794
|
-
const CustomError = createHookStory(() => (index.h(
|
|
6075
|
+
const CustomError = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$1, { states: {
|
|
5795
6076
|
...defaultProps$1.states,
|
|
5796
6077
|
registrationFormState: {
|
|
5797
6078
|
validationErrors: {
|
|
@@ -5802,14 +6083,14 @@ const CustomError = createHookStory(() => (index.h(ShadowViewAddon.CheckboxField
|
|
|
5802
6083
|
...defaultProps$1.content,
|
|
5803
6084
|
errorMessage: "This checkbox must be checked to continue",
|
|
5804
6085
|
} }))));
|
|
5805
|
-
const TermsAndConditions = createHookStory(() => (index.h(
|
|
6086
|
+
const TermsAndConditions = createHookStory(() => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
5806
6087
|
//@ts-ignore
|
|
5807
6088
|
content: {
|
|
5808
6089
|
...defaultRegisterProps.content,
|
|
5809
6090
|
terms: (index.h("p", null,
|
|
5810
6091
|
index.h("sqm-checkbox-field", null))),
|
|
5811
6092
|
} }))));
|
|
5812
|
-
const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(
|
|
6093
|
+
const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
5813
6094
|
//@ts-ignore
|
|
5814
6095
|
content: {
|
|
5815
6096
|
...defaultRegisterProps.content,
|
|
@@ -5819,7 +6100,7 @@ const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(sqmPortalVe
|
|
|
5819
6100
|
index.h("a", { href: "https://example.com", target: "_blank" }, "Terms and Conditions"),
|
|
5820
6101
|
index.h("sqm-checkbox-field", { "checkbox-label": "I agree" }))),
|
|
5821
6102
|
} }))));
|
|
5822
|
-
const TermsAndConditionsLongCustomLabel = createHookStory(() => (index.h(
|
|
6103
|
+
const TermsAndConditionsLongCustomLabel = createHookStory(() => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
5823
6104
|
//@ts-ignore
|
|
5824
6105
|
content: {
|
|
5825
6106
|
...defaultRegisterProps.content,
|
|
@@ -5996,31 +6277,31 @@ const CopyButtonBelowCustomLabel = () => {
|
|
|
5996
6277
|
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$3, { buttonStyle: "button-below", "copy-button-label": "test long custom label" })));
|
|
5997
6278
|
};
|
|
5998
6279
|
const Loading = () => {
|
|
5999
|
-
return index.h(
|
|
6280
|
+
return index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { loading: true }));
|
|
6000
6281
|
};
|
|
6001
6282
|
const CopyButtonLoading = () => {
|
|
6002
|
-
return (index.h(
|
|
6283
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { buttonStyle: "button-outside", loading: true })));
|
|
6003
6284
|
};
|
|
6004
6285
|
const CopyButtonBelowLoading = () => {
|
|
6005
|
-
return (index.h(
|
|
6286
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { buttonStyle: "button-below", loading: true })));
|
|
6006
6287
|
};
|
|
6007
6288
|
const ErrorGeneric = () => {
|
|
6008
|
-
return (index.h(
|
|
6289
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { 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." })));
|
|
6009
6290
|
};
|
|
6010
6291
|
const ErrorPending = () => {
|
|
6011
|
-
return (index.h(
|
|
6292
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { 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!" })));
|
|
6012
6293
|
};
|
|
6013
6294
|
const ErrorFullfillment = () => {
|
|
6014
|
-
return (index.h(
|
|
6295
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { 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." })));
|
|
6015
6296
|
};
|
|
6016
6297
|
const ErrorCancelled = () => {
|
|
6017
|
-
return (index.h(
|
|
6298
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { errorType: "warning", error: true, errorText: "This code has been cancelled. Please reach out to the Support team for help resolving this issue." })));
|
|
6018
6299
|
};
|
|
6019
6300
|
const ErrorExpired = () => {
|
|
6020
|
-
return (index.h(
|
|
6301
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { errorType: "warning", error: true, errorText: "Looks like this code has expired. Please reach out to the Support team for help resolving this issue." })));
|
|
6021
6302
|
};
|
|
6022
6303
|
const ErrorRedeemed = () => {
|
|
6023
|
-
return (index.h(
|
|
6304
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$3, { errorType: "success", error: true, errorText: "Looks like you\u2019ve already redeemed this code." })));
|
|
6024
6305
|
};
|
|
6025
6306
|
|
|
6026
6307
|
const CouponCode$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -6079,7 +6360,7 @@ const Row = () => {
|
|
|
6079
6360
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
6080
6361
|
index.h(Sidebar$1, null),
|
|
6081
6362
|
index.h("div", { style: { padding: "48px" } },
|
|
6082
|
-
index.h(
|
|
6363
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
6083
6364
|
labelMargin: "xx-small",
|
|
6084
6365
|
padding: "none",
|
|
6085
6366
|
label: (index.h("sqm-text", null,
|
|
@@ -6092,7 +6373,7 @@ const Column = () => {
|
|
|
6092
6373
|
return (index.h("sqm-divided-layout", { direction: "column" },
|
|
6093
6374
|
index.h(Sidebar$1, null),
|
|
6094
6375
|
index.h("div", { style: { padding: "48px" } },
|
|
6095
|
-
index.h(
|
|
6376
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
6096
6377
|
labelMargin: "xx-small",
|
|
6097
6378
|
padding: "none",
|
|
6098
6379
|
label: (index.h("sqm-text", null,
|
|
@@ -6105,7 +6386,7 @@ const ColumnCustomDivider = () => {
|
|
|
6105
6386
|
return (index.h("sqm-divided-layout", { direction: "column", dividerStyle: "1px solid red" },
|
|
6106
6387
|
index.h(Sidebar$1, null),
|
|
6107
6388
|
index.h("div", { style: { padding: "48px" } },
|
|
6108
|
-
index.h(
|
|
6389
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
6109
6390
|
labelMargin: "xx-small",
|
|
6110
6391
|
padding: "none",
|
|
6111
6392
|
label: (index.h("sqm-text", null,
|
|
@@ -6141,12 +6422,12 @@ const defaultProps$4 = {
|
|
|
6141
6422
|
],
|
|
6142
6423
|
},
|
|
6143
6424
|
};
|
|
6144
|
-
const Default$5 = createHookStory(() => (index.h(
|
|
6145
|
-
const CustomLabel$1 = createHookStory(() => (index.h(
|
|
6425
|
+
const Default$5 = createHookStory(() => (index.h(sqmDropdownFieldView.DropdownFieldView, Object.assign({}, defaultProps$4))));
|
|
6426
|
+
const CustomLabel$1 = createHookStory(() => (index.h(sqmDropdownFieldView.DropdownFieldView, Object.assign({}, defaultProps$4, { content: {
|
|
6146
6427
|
...defaultProps$4.content,
|
|
6147
6428
|
dropdownLabel: "Pick your favorite",
|
|
6148
6429
|
} }))));
|
|
6149
|
-
const Error$2 = createHookStory(() => (index.h(
|
|
6430
|
+
const Error$2 = createHookStory(() => (index.h(sqmDropdownFieldView.DropdownFieldView, Object.assign({}, defaultProps$4, { states: {
|
|
6150
6431
|
...defaultProps$4.states,
|
|
6151
6432
|
registrationFormState: {
|
|
6152
6433
|
validationErrors: {
|
|
@@ -6154,7 +6435,7 @@ const Error$2 = createHookStory(() => (index.h(ShadowViewAddon.DropdownFieldView
|
|
|
6154
6435
|
},
|
|
6155
6436
|
},
|
|
6156
6437
|
} }))));
|
|
6157
|
-
const CustomError$1 = createHookStory(() => (index.h(
|
|
6438
|
+
const CustomError$1 = createHookStory(() => (index.h(sqmDropdownFieldView.DropdownFieldView, Object.assign({}, defaultProps$4, { content: {
|
|
6158
6439
|
...defaultProps$4.content,
|
|
6159
6440
|
errorMessage: "An option must be selected to continue",
|
|
6160
6441
|
}, states: {
|
|
@@ -6281,14 +6562,14 @@ const defaultProps$5 = {
|
|
|
6281
6562
|
};
|
|
6282
6563
|
const EditProfileFormDisabled = () => {
|
|
6283
6564
|
const props = defaultProps$5;
|
|
6284
|
-
return index.h(
|
|
6565
|
+
return index.h(sqmEditProfileView.EditProfileView, Object.assign({}, props));
|
|
6285
6566
|
};
|
|
6286
6567
|
const EditProfileFormEnabled = () => {
|
|
6287
6568
|
const props = {
|
|
6288
6569
|
...defaultProps$5,
|
|
6289
6570
|
states: { ...defaultProps$5.states, showEdit: true },
|
|
6290
6571
|
};
|
|
6291
|
-
return index.h(
|
|
6572
|
+
return index.h(sqmEditProfileView.EditProfileView, Object.assign({}, props));
|
|
6292
6573
|
};
|
|
6293
6574
|
const FullStackFrameWithMenu = () => {
|
|
6294
6575
|
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 }));
|
|
@@ -6567,7 +6848,7 @@ const LoginOneColumn = () => {
|
|
|
6567
6848
|
},
|
|
6568
6849
|
};
|
|
6569
6850
|
return (index.h("div", { style: { height: "800px" } },
|
|
6570
|
-
index.h(
|
|
6851
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6571
6852
|
};
|
|
6572
6853
|
const LoginOneColumnWithMinHeight = () => {
|
|
6573
6854
|
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" },
|
|
@@ -6587,7 +6868,7 @@ const LoginOneColumnWithColor = () => {
|
|
|
6587
6868
|
},
|
|
6588
6869
|
};
|
|
6589
6870
|
return (index.h("div", { style: { height: "800px" } },
|
|
6590
|
-
index.h(
|
|
6871
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6591
6872
|
};
|
|
6592
6873
|
const LoginOneColumnWithImage = () => {
|
|
6593
6874
|
const props = {
|
|
@@ -6601,7 +6882,7 @@ const LoginOneColumnWithImage = () => {
|
|
|
6601
6882
|
content: { primaryColumn: index.h("sqm-portal-login", null) },
|
|
6602
6883
|
};
|
|
6603
6884
|
return (index.h("div", { style: { height: "800px" } },
|
|
6604
|
-
index.h(
|
|
6885
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6605
6886
|
};
|
|
6606
6887
|
const TwoColumnLoginLargePadding = () => {
|
|
6607
6888
|
const props = {
|
|
@@ -6621,7 +6902,7 @@ const TwoColumnLoginLargePadding = () => {
|
|
|
6621
6902
|
},
|
|
6622
6903
|
};
|
|
6623
6904
|
return (index.h("div", { style: { height: "800px" } },
|
|
6624
|
-
index.h(
|
|
6905
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6625
6906
|
};
|
|
6626
6907
|
const TwoColumnLoginMediumPadding = () => {
|
|
6627
6908
|
const props = {
|
|
@@ -6641,7 +6922,7 @@ const TwoColumnLoginMediumPadding = () => {
|
|
|
6641
6922
|
},
|
|
6642
6923
|
};
|
|
6643
6924
|
return (index.h("div", { style: { height: "800px" } },
|
|
6644
|
-
index.h(
|
|
6925
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6645
6926
|
};
|
|
6646
6927
|
const TwoColumnLoginSmallPadding = () => {
|
|
6647
6928
|
const props = {
|
|
@@ -6661,7 +6942,7 @@ const TwoColumnLoginSmallPadding = () => {
|
|
|
6661
6942
|
},
|
|
6662
6943
|
};
|
|
6663
6944
|
return (index.h("div", { style: { height: "800px" } },
|
|
6664
|
-
index.h(
|
|
6945
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6665
6946
|
};
|
|
6666
6947
|
const TwoColumnLoginNoPadding = () => {
|
|
6667
6948
|
const props = {
|
|
@@ -6681,7 +6962,7 @@ const TwoColumnLoginNoPadding = () => {
|
|
|
6681
6962
|
},
|
|
6682
6963
|
};
|
|
6683
6964
|
return (index.h("div", { style: { height: "800px" } },
|
|
6684
|
-
index.h(
|
|
6965
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6685
6966
|
};
|
|
6686
6967
|
const TwoColumnLoginReverseWrap = () => {
|
|
6687
6968
|
const props = {
|
|
@@ -6701,7 +6982,7 @@ const TwoColumnLoginReverseWrap = () => {
|
|
|
6701
6982
|
},
|
|
6702
6983
|
};
|
|
6703
6984
|
return (index.h("div", { style: { height: "800px" } },
|
|
6704
|
-
index.h(
|
|
6985
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6705
6986
|
};
|
|
6706
6987
|
const TwoColumnLoginWithImgElement = () => {
|
|
6707
6988
|
const props = {
|
|
@@ -6721,7 +7002,7 @@ const TwoColumnLoginWithImgElement = () => {
|
|
|
6721
7002
|
},
|
|
6722
7003
|
};
|
|
6723
7004
|
return (index.h("div", { style: { height: "800px" } },
|
|
6724
|
-
index.h(
|
|
7005
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
6725
7006
|
};
|
|
6726
7007
|
const MinHeight = () => {
|
|
6727
7008
|
const props = {
|
|
@@ -6738,7 +7019,7 @@ const MinHeight = () => {
|
|
|
6738
7019
|
index.h("sqm-portal-login", null))),
|
|
6739
7020
|
},
|
|
6740
7021
|
};
|
|
6741
|
-
return index.h(
|
|
7022
|
+
return index.h(sqmHeroView.HeroView, Object.assign({}, props));
|
|
6742
7023
|
};
|
|
6743
7024
|
const InstantAccessLoggedOutView = () => {
|
|
6744
7025
|
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: 2, "padding-size": "medium", "wrap-direction": "wrap", "secondary-background": "var(--sqm-portal-background)", "column-to-hide-in-mobile": "primary" },
|
|
@@ -6852,9 +7133,9 @@ const defaultRegisterProps$1 = {
|
|
|
6852
7133
|
invalidEmailErrorMessage: "Must be a valid email address",
|
|
6853
7134
|
},
|
|
6854
7135
|
};
|
|
6855
|
-
const Default$6 = () => index.h(
|
|
6856
|
-
const CustomLabel$2 = () => (index.h(
|
|
6857
|
-
const Error$3 = () => (index.h(
|
|
7136
|
+
const Default$6 = () => index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$6));
|
|
7137
|
+
const CustomLabel$2 = () => (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$6, { content: { ...defaultProps$6.content, fieldLabel: "My Label" } })));
|
|
7138
|
+
const Error$3 = () => (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$6, { states: {
|
|
6858
7139
|
...defaultProps$6.states,
|
|
6859
7140
|
registrationFormState: {
|
|
6860
7141
|
validationErrors: {
|
|
@@ -6862,7 +7143,7 @@ const Error$3 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assign({},
|
|
|
6862
7143
|
},
|
|
6863
7144
|
},
|
|
6864
7145
|
} })));
|
|
6865
|
-
const CustomError$2 = () => (index.h(
|
|
7146
|
+
const CustomError$2 = () => (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$6, { content: {
|
|
6866
7147
|
...defaultProps$6.content,
|
|
6867
7148
|
errorMessage: "A value must be entered to continue",
|
|
6868
7149
|
}, states: {
|
|
@@ -6874,26 +7155,26 @@ const CustomError$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assi
|
|
|
6874
7155
|
},
|
|
6875
7156
|
} })));
|
|
6876
7157
|
const DateType = () => {
|
|
6877
|
-
return (index.h(
|
|
7158
|
+
return (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$6, { content: {
|
|
6878
7159
|
...defaultProps$6.content,
|
|
6879
7160
|
fieldLabel: "Date",
|
|
6880
7161
|
fieldType: "date",
|
|
6881
7162
|
} })));
|
|
6882
7163
|
};
|
|
6883
7164
|
const TelType = () => {
|
|
6884
|
-
return (index.h(
|
|
7165
|
+
return (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$6, { content: {
|
|
6885
7166
|
...defaultProps$6.content,
|
|
6886
7167
|
fieldLabel: "Phone Number",
|
|
6887
7168
|
fieldType: "tel",
|
|
6888
7169
|
} })));
|
|
6889
7170
|
};
|
|
6890
|
-
const RegistrationField = () => (index.h(
|
|
7171
|
+
const RegistrationField = () => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps$1, { content: {
|
|
6891
7172
|
...defaultRegisterProps$1.content,
|
|
6892
|
-
formData: index.h(
|
|
7173
|
+
formData: index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$6)),
|
|
6893
7174
|
} })));
|
|
6894
|
-
const RegistrationFieldCustomLabel = () => (index.h(
|
|
7175
|
+
const RegistrationFieldCustomLabel = () => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps$1, { content: {
|
|
6895
7176
|
...defaultRegisterProps$1.content,
|
|
6896
|
-
formData: (index.h(
|
|
7177
|
+
formData: (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$6, { content: {
|
|
6897
7178
|
...defaultProps$6.content,
|
|
6898
7179
|
fieldLabel: "Data",
|
|
6899
7180
|
} }))),
|
|
@@ -7117,7 +7398,7 @@ const simpleInvoiceTableProps = {
|
|
|
7117
7398
|
},
|
|
7118
7399
|
};
|
|
7119
7400
|
const SimpleInvoiceTable = () => {
|
|
7120
|
-
return (index.h(
|
|
7401
|
+
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: "Invoices", description: "Invoice table description" },
|
|
7121
7402
|
index.h(GenericTableView.GenericTableView, Object.assign({}, simpleInvoiceTableProps))));
|
|
7122
7403
|
};
|
|
7123
7404
|
const EmptyTable = () => {
|
|
@@ -7217,6 +7498,12 @@ function setupGraphQL$5() {
|
|
|
7217
7498
|
const InvoiceTable$1 = createHookStory(() => {
|
|
7218
7499
|
setupGraphQL$5();
|
|
7219
7500
|
index_module.setProgramId("22999");
|
|
7501
|
+
const props = {
|
|
7502
|
+
listType: "",
|
|
7503
|
+
render: () => { },
|
|
7504
|
+
disconnectedCallback: () => { },
|
|
7505
|
+
ignored: true,
|
|
7506
|
+
};
|
|
7220
7507
|
return (index.h("sqm-invoice-table", null,
|
|
7221
7508
|
index.h("sqm-invoice-table-download-column", null),
|
|
7222
7509
|
index.h("sqm-invoice-table-date-column", { "column-title": "Date" }),
|
|
@@ -7441,6 +7728,7 @@ const defaultStyles$1 = {
|
|
|
7441
7728
|
rankSuffix: "{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}",
|
|
7442
7729
|
};
|
|
7443
7730
|
const link = index.h("a", null, "Support");
|
|
7731
|
+
const tag = "Contact" + link + "about upgrading your plan";
|
|
7444
7732
|
const defaultElements$1 = {
|
|
7445
7733
|
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" })),
|
|
7446
7734
|
};
|
|
@@ -8281,10 +8569,10 @@ const errorProps$1 = {
|
|
|
8281
8569
|
},
|
|
8282
8570
|
};
|
|
8283
8571
|
const NameFields = () => {
|
|
8284
|
-
return index.h(
|
|
8572
|
+
return index.h(sqmNameFieldsView.NameFieldsView, Object.assign({}, props));
|
|
8285
8573
|
};
|
|
8286
8574
|
const NameFieldsWithErrors = () => {
|
|
8287
|
-
return index.h(
|
|
8575
|
+
return index.h(sqmNameFieldsView.NameFieldsView, Object.assign({}, errorProps$1));
|
|
8288
8576
|
};
|
|
8289
8577
|
|
|
8290
8578
|
const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -8335,6 +8623,20 @@ const NavigationSidebar_stories = {
|
|
|
8335
8623
|
title: "Components/Navigation Sidebar",
|
|
8336
8624
|
};
|
|
8337
8625
|
const DefaultNavigationSidebar = () => {
|
|
8626
|
+
const barProps = {
|
|
8627
|
+
data: {
|
|
8628
|
+
programs: [
|
|
8629
|
+
{
|
|
8630
|
+
key: "program1",
|
|
8631
|
+
label: "My Referral Program",
|
|
8632
|
+
},
|
|
8633
|
+
{
|
|
8634
|
+
key: "program2",
|
|
8635
|
+
label: "My Rewards Program",
|
|
8636
|
+
},
|
|
8637
|
+
],
|
|
8638
|
+
},
|
|
8639
|
+
};
|
|
8338
8640
|
const item1Props = {
|
|
8339
8641
|
states: {
|
|
8340
8642
|
active: false,
|
|
@@ -8369,6 +8671,11 @@ const NavigationSidebar = /*#__PURE__*/Object.freeze({
|
|
|
8369
8671
|
const Pagination_stories = {
|
|
8370
8672
|
title: "Components/Link Button",
|
|
8371
8673
|
};
|
|
8674
|
+
const defaultProps$9 = {
|
|
8675
|
+
link: "https://example.com",
|
|
8676
|
+
openInNewTab: false,
|
|
8677
|
+
buttonText: "Button Text",
|
|
8678
|
+
};
|
|
8372
8679
|
const Default$a = () => {
|
|
8373
8680
|
return index.h("sqm-pagination", null);
|
|
8374
8681
|
};
|
|
@@ -8436,17 +8743,17 @@ const PasswordField = /*#__PURE__*/Object.freeze({
|
|
|
8436
8743
|
const PayoutButtonScroll_stories = {
|
|
8437
8744
|
title: "Components/Payout Scroll Button",
|
|
8438
8745
|
};
|
|
8439
|
-
const defaultProps$
|
|
8746
|
+
const defaultProps$a = {
|
|
8440
8747
|
payoutSettingsComplete: true,
|
|
8441
8748
|
};
|
|
8442
|
-
const CompletedTaxForm = () => (index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$
|
|
8749
|
+
const CompletedTaxForm = () => (index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$a, payoutSettingsComplete: true } } }));
|
|
8443
8750
|
const CompletedTaxFormWithStatsContainer = () => (index.h("sqm-portal-container", { display: "flex", maxWidth: "100%", minWidth: "100%", "justify-content": "space-between", flexWrap: "nowrap" },
|
|
8444
8751
|
index.h("sqm-portal-container", { display: "flex", "max-width": "fit-content" },
|
|
8445
8752
|
index.h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/referralsCount" },
|
|
8446
8753
|
index.h("p", null, "Referrals")),
|
|
8447
8754
|
index.h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/payoutBalance" },
|
|
8448
8755
|
index.h("p", null, "Cash Balance"))),
|
|
8449
|
-
index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$
|
|
8756
|
+
index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$a, payoutSettingsComplete: true } } })));
|
|
8450
8757
|
|
|
8451
8758
|
const PayoutButtonScroll = /*#__PURE__*/Object.freeze({
|
|
8452
8759
|
__proto__: null,
|
|
@@ -8458,7 +8765,7 @@ const PayoutButtonScroll = /*#__PURE__*/Object.freeze({
|
|
|
8458
8765
|
const ChangeMarketing_stories = {
|
|
8459
8766
|
title: "Components/Change Marketing Emails Status",
|
|
8460
8767
|
};
|
|
8461
|
-
const defaultProps$
|
|
8768
|
+
const defaultProps$b = {
|
|
8462
8769
|
states: {
|
|
8463
8770
|
success: false,
|
|
8464
8771
|
loading: false,
|
|
@@ -8489,21 +8796,21 @@ const Default$b = () => {
|
|
|
8489
8796
|
return index.h("sqm-portal-change-marketing", null);
|
|
8490
8797
|
};
|
|
8491
8798
|
const Loading$3 = () => {
|
|
8492
|
-
return (index.h(
|
|
8799
|
+
return (index.h(sqmPortalChangeMarketingView.ChangeMarktingView, Object.assign({}, defaultProps$b, { states: { ...defaultProps$b.states, loading: true } })));
|
|
8493
8800
|
};
|
|
8494
8801
|
const Error$4 = () => {
|
|
8495
|
-
return (index.h(
|
|
8496
|
-
...defaultProps$
|
|
8802
|
+
return (index.h(sqmPortalChangeMarketingView.ChangeMarktingView, Object.assign({}, defaultProps$b, { states: {
|
|
8803
|
+
...defaultProps$b.states,
|
|
8497
8804
|
formState: {
|
|
8498
|
-
...defaultProps$
|
|
8805
|
+
...defaultProps$b.states.formState,
|
|
8499
8806
|
errors: { error: true },
|
|
8500
8807
|
error: "An error string",
|
|
8501
8808
|
},
|
|
8502
8809
|
} })));
|
|
8503
8810
|
};
|
|
8504
8811
|
const Success = () => {
|
|
8505
|
-
return (index.h(
|
|
8506
|
-
...defaultProps$
|
|
8812
|
+
return (index.h(sqmPortalChangeMarketingView.ChangeMarktingView, Object.assign({}, defaultProps$b, { states: {
|
|
8813
|
+
...defaultProps$b.states,
|
|
8507
8814
|
success: true,
|
|
8508
8815
|
} })));
|
|
8509
8816
|
};
|
|
@@ -8525,7 +8832,7 @@ const ChangePassword_stories = {
|
|
|
8525
8832
|
scenario: scenario$g,
|
|
8526
8833
|
},
|
|
8527
8834
|
};
|
|
8528
|
-
const defaultProps$
|
|
8835
|
+
const defaultProps$c = {
|
|
8529
8836
|
states: {
|
|
8530
8837
|
open: false,
|
|
8531
8838
|
loading: false,
|
|
@@ -8657,12 +8964,12 @@ const successProps = {
|
|
|
8657
8964
|
submit: (e) => console.log("Submit", e),
|
|
8658
8965
|
},
|
|
8659
8966
|
};
|
|
8660
|
-
const Default$c = () => index.h(
|
|
8661
|
-
const Open = () => index.h(
|
|
8662
|
-
const Error$5 = () => index.h(
|
|
8663
|
-
const PaswordError = () => (index.h(
|
|
8664
|
-
const Loading$4 = () => index.h(
|
|
8665
|
-
const Success$1 = () => index.h(
|
|
8967
|
+
const Default$c = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, defaultProps$c));
|
|
8968
|
+
const Open = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, openProps));
|
|
8969
|
+
const Error$5 = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, errorProps$2));
|
|
8970
|
+
const PaswordError = () => (index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, passwordErrorProps)));
|
|
8971
|
+
const Loading$4 = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, loadingProps));
|
|
8972
|
+
const Success$1 = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, successProps));
|
|
8666
8973
|
|
|
8667
8974
|
const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
8668
8975
|
__proto__: null,
|
|
@@ -8868,7 +9175,7 @@ const defaultStates = {
|
|
|
8868
9175
|
loadingVerification: false,
|
|
8869
9176
|
countdown: 10,
|
|
8870
9177
|
};
|
|
8871
|
-
const defaultProps$
|
|
9178
|
+
const defaultProps$d = {
|
|
8872
9179
|
states: defaultStates,
|
|
8873
9180
|
callbacks: defaultCallbacks,
|
|
8874
9181
|
content: defaultContent,
|
|
@@ -8906,7 +9213,7 @@ const loadingVerificationProps = {
|
|
|
8906
9213
|
callbacks: defaultCallbacks,
|
|
8907
9214
|
content: defaultContent,
|
|
8908
9215
|
};
|
|
8909
|
-
const Default$d = () => index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, defaultProps$
|
|
9216
|
+
const Default$d = () => index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, defaultProps$d));
|
|
8910
9217
|
const EmailVerificationWithError = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, errorProps$3)));
|
|
8911
9218
|
const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingProps$1)));
|
|
8912
9219
|
const EmailVerificationCheckingVerification = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingVerificationProps)));
|
|
@@ -8930,7 +9237,7 @@ const PortalFooter_stories = {
|
|
|
8930
9237
|
scenario: scenario$j,
|
|
8931
9238
|
},
|
|
8932
9239
|
};
|
|
8933
|
-
const defaultProps$
|
|
9240
|
+
const defaultProps$e = {
|
|
8934
9241
|
supportEmail: "support@example.com",
|
|
8935
9242
|
supportText: "For program support, contact {email}",
|
|
8936
9243
|
hidePoweredBy: false,
|
|
@@ -8940,12 +9247,12 @@ const defaultProps$d = {
|
|
|
8940
9247
|
paddingBottom: "large",
|
|
8941
9248
|
paddingLeft: "large",
|
|
8942
9249
|
};
|
|
8943
|
-
const DefaultFooter = () => index.h(
|
|
8944
|
-
const FooterWithTerms = () => (index.h(
|
|
8945
|
-
const FooterWithFAQ = () => (index.h(
|
|
8946
|
-
const FooterWithTermsAndFAQ = () => (index.h(
|
|
8947
|
-
const FooterNoPoweredBy = () => (index.h(
|
|
8948
|
-
const FooterNoSupportText = () => (index.h(
|
|
9250
|
+
const DefaultFooter = () => index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$e));
|
|
9251
|
+
const FooterWithTerms = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$e, { termsLink: "https://example.com", termsText: "Terms and Conditions" })));
|
|
9252
|
+
const FooterWithFAQ = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$e, { faqLink: "https://example.com", faqText: "FAQ" })));
|
|
9253
|
+
const FooterWithTermsAndFAQ = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$e, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ" })));
|
|
9254
|
+
const FooterNoPoweredBy = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$e, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hidePoweredBy: true })));
|
|
9255
|
+
const FooterNoSupportText = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$e, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hideSupportText: true })));
|
|
8949
9256
|
|
|
8950
9257
|
const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
8951
9258
|
__proto__: null,
|
|
@@ -8966,7 +9273,7 @@ const PortalForgotPassword_stories = {
|
|
|
8966
9273
|
scenario: scenario$k,
|
|
8967
9274
|
},
|
|
8968
9275
|
};
|
|
8969
|
-
const defaultProps$
|
|
9276
|
+
const defaultProps$f = {
|
|
8970
9277
|
states: {
|
|
8971
9278
|
error: "",
|
|
8972
9279
|
loading: false,
|
|
@@ -9027,11 +9334,11 @@ const successProps$2 = {
|
|
|
9027
9334
|
successAlertText: "An email has been sent with instructions to reset your password.",
|
|
9028
9335
|
},
|
|
9029
9336
|
};
|
|
9030
|
-
const Default$e = () => index.h(
|
|
9337
|
+
const Default$e = () => index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, defaultProps$f));
|
|
9031
9338
|
const DemoDataTest = () => (index.h("sqm-portal-forgot-password", null));
|
|
9032
|
-
const ForgotPasswordWithError = () => (index.h(
|
|
9033
|
-
const ForgotPasswordLoading = () => (index.h(
|
|
9034
|
-
const ForgotPasswordSuccess = () => (index.h(
|
|
9339
|
+
const ForgotPasswordWithError = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, errorProps$4)));
|
|
9340
|
+
const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, loadingProps$2)));
|
|
9341
|
+
const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps$2)));
|
|
9035
9342
|
|
|
9036
9343
|
const PortalForgotPassword = /*#__PURE__*/Object.freeze({
|
|
9037
9344
|
__proto__: null,
|
|
@@ -9076,7 +9383,7 @@ function setupLoggedOut() {
|
|
|
9076
9383
|
const PortalFrame_stories = {
|
|
9077
9384
|
title: "Components/Microsite Frame",
|
|
9078
9385
|
};
|
|
9079
|
-
const defaultProps$
|
|
9386
|
+
const defaultProps$g = {
|
|
9080
9387
|
data: {
|
|
9081
9388
|
footer: index.h("span", null, "example@example.com"),
|
|
9082
9389
|
header: (index.h("div", { slot: "header", style: { display: "flex", flexDirection: "column" } },
|
|
@@ -9093,9 +9400,9 @@ const defaultProps$f = {
|
|
|
9093
9400
|
};
|
|
9094
9401
|
const FrameWithMenu = () => {
|
|
9095
9402
|
const props = {
|
|
9096
|
-
...defaultProps$
|
|
9403
|
+
...defaultProps$g,
|
|
9097
9404
|
};
|
|
9098
|
-
return (index.h(
|
|
9405
|
+
return (index.h(sqmPortalFrameView.PortalFrameView, Object.assign({}, props),
|
|
9099
9406
|
index.h("sqm-navigation-menu", { "menu-label": "Menu" },
|
|
9100
9407
|
index.h("sl-menu-item", { exportparts: "base: menuitem-base", value: "/widget" }, "Dashboard"),
|
|
9101
9408
|
index.h("sl-menu-item", { exportparts: "base: menuitem-base", value: "/editProfile" }, "Edit Profile"),
|
|
@@ -9104,9 +9411,9 @@ const FrameWithMenu = () => {
|
|
|
9104
9411
|
};
|
|
9105
9412
|
const FrameWithoutMenu = () => {
|
|
9106
9413
|
const props = {
|
|
9107
|
-
...defaultProps$
|
|
9414
|
+
...defaultProps$g,
|
|
9108
9415
|
};
|
|
9109
|
-
return index.h(
|
|
9416
|
+
return index.h(sqmPortalFrameView.PortalFrameView, Object.assign({}, props));
|
|
9110
9417
|
};
|
|
9111
9418
|
const FullStackFrame = () => {
|
|
9112
9419
|
var _a;
|
|
@@ -9171,7 +9478,7 @@ const PortalFrame = /*#__PURE__*/Object.freeze({
|
|
|
9171
9478
|
const PortalGoogleRegistrationForm_stories = {
|
|
9172
9479
|
title: "Components/Microsite Google Register",
|
|
9173
9480
|
};
|
|
9174
|
-
const defaultProps$
|
|
9481
|
+
const defaultProps$h = {
|
|
9175
9482
|
states: {
|
|
9176
9483
|
error: "",
|
|
9177
9484
|
loading: false,
|
|
@@ -9197,7 +9504,7 @@ const defaultProps$g = {
|
|
|
9197
9504
|
passwordField: null,
|
|
9198
9505
|
formData: (index.h("div", null,
|
|
9199
9506
|
" ",
|
|
9200
|
-
index.h(
|
|
9507
|
+
index.h(sqmNameFieldsView.NameFieldsView, { states: {
|
|
9201
9508
|
optional: false,
|
|
9202
9509
|
registrationFormState: {
|
|
9203
9510
|
validationErrors: undefined,
|
|
@@ -9217,7 +9524,7 @@ const defaultProps$g = {
|
|
|
9217
9524
|
},
|
|
9218
9525
|
};
|
|
9219
9526
|
const errorProps$5 = {
|
|
9220
|
-
...defaultProps$
|
|
9527
|
+
...defaultProps$h,
|
|
9221
9528
|
states: {
|
|
9222
9529
|
error: "Something went wrong. Please try again.",
|
|
9223
9530
|
loading: false,
|
|
@@ -9233,7 +9540,7 @@ const errorProps$5 = {
|
|
|
9233
9540
|
},
|
|
9234
9541
|
};
|
|
9235
9542
|
const loadingProps$3 = {
|
|
9236
|
-
...defaultProps$
|
|
9543
|
+
...defaultProps$h,
|
|
9237
9544
|
states: {
|
|
9238
9545
|
error: "",
|
|
9239
9546
|
loading: true,
|
|
@@ -9251,8 +9558,8 @@ const loadingProps$3 = {
|
|
|
9251
9558
|
const Default$f = () => (index.h("sqm-portal-google-registration-form", null));
|
|
9252
9559
|
const RegisterWithError = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, errorProps$5)));
|
|
9253
9560
|
const RegisterLoading = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, loadingProps$3)));
|
|
9254
|
-
const TermsAndConditions$2 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
9255
|
-
...defaultProps$
|
|
9561
|
+
const TermsAndConditions$2 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$h, { content: {
|
|
9562
|
+
...defaultProps$h.content,
|
|
9256
9563
|
terms: (index.h("p", null,
|
|
9257
9564
|
"By signing up you agree to the",
|
|
9258
9565
|
" ",
|
|
@@ -9316,7 +9623,7 @@ const PortalGoogleLoginFormStories = /*#__PURE__*/Object.freeze({
|
|
|
9316
9623
|
const PortalLogin_stories = {
|
|
9317
9624
|
title: "Components/Microsite Login",
|
|
9318
9625
|
};
|
|
9319
|
-
const defaultProps$
|
|
9626
|
+
const defaultProps$i = {
|
|
9320
9627
|
states: {
|
|
9321
9628
|
error: "",
|
|
9322
9629
|
loading: false,
|
|
@@ -9362,7 +9669,7 @@ const loadingProps$4 = {
|
|
|
9362
9669
|
},
|
|
9363
9670
|
};
|
|
9364
9671
|
const googleProps = {
|
|
9365
|
-
...defaultProps$
|
|
9672
|
+
...defaultProps$i,
|
|
9366
9673
|
content: {
|
|
9367
9674
|
secondaryButton: (index.h("span", null,
|
|
9368
9675
|
"Don't have an account?",
|
|
@@ -9371,8 +9678,8 @@ const googleProps = {
|
|
|
9371
9678
|
googleButton: index.h("sl-button", null, "Sign in with Google"),
|
|
9372
9679
|
},
|
|
9373
9680
|
};
|
|
9374
|
-
const Default$h = () => (index.h("sqm-portal-login", { demoData: { ...defaultProps$
|
|
9375
|
-
const Text = () => index.h(
|
|
9681
|
+
const Default$h = () => (index.h("sqm-portal-login", { demoData: { ...defaultProps$i } }));
|
|
9682
|
+
const Text = () => index.h(sqmPortalLoginView.PortalLoginView, Object.assign({}, defaultProps$i));
|
|
9376
9683
|
const IsGoogle = () => (index.h("sqm-portal-login", { demoData: { ...googleProps } }));
|
|
9377
9684
|
const LoginWithError = () => (index.h("sqm-portal-login", { demoData: { ...errorProps$6 } }));
|
|
9378
9685
|
const LoginLoading = () => (index.h("sqm-portal-login", { demoData: { ...loadingProps$4 } }));
|
|
@@ -9390,7 +9697,7 @@ const PortalLogin = /*#__PURE__*/Object.freeze({
|
|
|
9390
9697
|
const PortalProfile_stories = {
|
|
9391
9698
|
title: "Components/Microsite Profile",
|
|
9392
9699
|
};
|
|
9393
|
-
const defaultProps$
|
|
9700
|
+
const defaultProps$j = {
|
|
9394
9701
|
states: {
|
|
9395
9702
|
success: false,
|
|
9396
9703
|
loading: false,
|
|
@@ -9606,7 +9913,7 @@ const successProps$3 = {
|
|
|
9606
9913
|
onChange: (e) => console.log(e),
|
|
9607
9914
|
},
|
|
9608
9915
|
};
|
|
9609
|
-
const Default$i = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, defaultProps$
|
|
9916
|
+
const Default$i = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, defaultProps$j));
|
|
9610
9917
|
const DefaultNoCountry = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, noCountry));
|
|
9611
9918
|
const Loading$6 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, loadingProps$5));
|
|
9612
9919
|
const Disabled = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, disabledProps));
|
|
@@ -9627,7 +9934,7 @@ const PortalProfile = /*#__PURE__*/Object.freeze({
|
|
|
9627
9934
|
const PortalRegister_stories = {
|
|
9628
9935
|
title: "Components/Microsite Register",
|
|
9629
9936
|
};
|
|
9630
|
-
const defaultProps$
|
|
9937
|
+
const defaultProps$k = {
|
|
9631
9938
|
states: {
|
|
9632
9939
|
registrationFormState: {},
|
|
9633
9940
|
error: "",
|
|
@@ -9722,9 +10029,9 @@ const slottedProps = {
|
|
|
9722
10029
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", label: "Slotted Input 2", required: true }))),
|
|
9723
10030
|
},
|
|
9724
10031
|
};
|
|
9725
|
-
const Default$j = () => index.h(
|
|
9726
|
-
const RegisterWithError$1 = () => index.h(
|
|
9727
|
-
const RegisterLoading$1 = () => index.h(
|
|
10032
|
+
const Default$j = () => index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultProps$k));
|
|
10033
|
+
const RegisterWithError$1 = () => index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, errorProps$8));
|
|
10034
|
+
const RegisterLoading$1 = () => index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, loadingProps$6));
|
|
9728
10035
|
const FieldsHidden = () => {
|
|
9729
10036
|
return (index.h("sqm-portal-register", { demoData: {
|
|
9730
10037
|
states: {
|
|
@@ -9737,9 +10044,9 @@ const FieldsHidden = () => {
|
|
|
9737
10044
|
},
|
|
9738
10045
|
} }));
|
|
9739
10046
|
};
|
|
9740
|
-
const SlottedInputs = () => index.h(
|
|
9741
|
-
const TermsAndConditions$3 = () => (index.h(
|
|
9742
|
-
...defaultProps$
|
|
10047
|
+
const SlottedInputs = () => index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, slottedProps));
|
|
10048
|
+
const TermsAndConditions$3 = () => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultProps$k, { content: {
|
|
10049
|
+
...defaultProps$k.content,
|
|
9743
10050
|
terms: (index.h("p", null,
|
|
9744
10051
|
"By signing up you agree to the",
|
|
9745
10052
|
" ",
|
|
@@ -9761,7 +10068,7 @@ const PortalRegistrationForm_stories = {
|
|
|
9761
10068
|
title: "Components/Microsite Portal Register",
|
|
9762
10069
|
};
|
|
9763
10070
|
// TODO: Figure out if we can delete this component and it's stories since we have a duplicate
|
|
9764
|
-
const defaultProps$
|
|
10071
|
+
const defaultProps$l = {
|
|
9765
10072
|
states: {
|
|
9766
10073
|
error: "",
|
|
9767
10074
|
loading: false,
|
|
@@ -9838,7 +10145,7 @@ const slottedProps$1 = {
|
|
|
9838
10145
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", label: "Slotted Input 2", required: true }))),
|
|
9839
10146
|
},
|
|
9840
10147
|
};
|
|
9841
|
-
const Default$k = () => index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
10148
|
+
const Default$k = () => index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$l));
|
|
9842
10149
|
const RegisterWithError$2 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, errorProps$9)));
|
|
9843
10150
|
const RegisterLoading$2 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, loadingProps$7)));
|
|
9844
10151
|
const FieldsHidden$1 = () => {
|
|
@@ -9854,12 +10161,12 @@ const FieldsHidden$1 = () => {
|
|
|
9854
10161
|
} }));
|
|
9855
10162
|
};
|
|
9856
10163
|
const SlottedInputs$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, slottedProps$1)));
|
|
9857
|
-
const RegisterWithMarketingEmailsCheckbox = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
9858
|
-
...defaultProps$
|
|
10164
|
+
const RegisterWithMarketingEmailsCheckbox = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$l, { content: {
|
|
10165
|
+
...defaultProps$l.content,
|
|
9859
10166
|
emailOptIn: (index.h("sqm-checkbox-field", { checkboxLabel: "I would like to receive marketing and promotional emails for this referral program" })),
|
|
9860
10167
|
} })));
|
|
9861
|
-
const TermsAndConditions$4 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
9862
|
-
...defaultProps$
|
|
10168
|
+
const TermsAndConditions$4 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$l, { content: {
|
|
10169
|
+
...defaultProps$l.content,
|
|
9863
10170
|
terms: (index.h("p", null,
|
|
9864
10171
|
"By signing up you agree to the",
|
|
9865
10172
|
" ",
|
|
@@ -9886,7 +10193,7 @@ const PortalResetPassword_stories = {
|
|
|
9886
10193
|
scenario: scenario$l,
|
|
9887
10194
|
},
|
|
9888
10195
|
};
|
|
9889
|
-
const defaultProps$
|
|
10196
|
+
const defaultProps$m = {
|
|
9890
10197
|
states: {
|
|
9891
10198
|
error: "",
|
|
9892
10199
|
loading: false,
|
|
@@ -10024,7 +10331,7 @@ const validatingCodeProps = {
|
|
|
10024
10331
|
failed: () => console.log("failed"),
|
|
10025
10332
|
},
|
|
10026
10333
|
};
|
|
10027
|
-
const Default$l = () => index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultProps$
|
|
10334
|
+
const Default$l = () => index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultProps$m));
|
|
10028
10335
|
const DefaultWithoutConfirmField = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultPropsNoConfirm)));
|
|
10029
10336
|
const ResetPasswordWithError = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, errorProps$a)));
|
|
10030
10337
|
const ResetPasswordLoading = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, loadingProps$8)));
|
|
@@ -10226,7 +10533,7 @@ const ProgramMenu = /*#__PURE__*/Object.freeze({
|
|
|
10226
10533
|
const QRCode_stories = {
|
|
10227
10534
|
title: "Components/QR Code",
|
|
10228
10535
|
};
|
|
10229
|
-
const defaultProps$
|
|
10536
|
+
const defaultProps$n = {
|
|
10230
10537
|
hideTitle: false,
|
|
10231
10538
|
loading: false,
|
|
10232
10539
|
alignment: "center",
|
|
@@ -10245,28 +10552,28 @@ const defaultProps$m = {
|
|
|
10245
10552
|
errorDescriptionText: "Please refresh this page and try again",
|
|
10246
10553
|
};
|
|
10247
10554
|
const Default$m = () => {
|
|
10248
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
10555
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$n));
|
|
10249
10556
|
};
|
|
10250
10557
|
const HideTitle = () => {
|
|
10251
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
10558
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$n, { hideTitle: true }));
|
|
10252
10559
|
};
|
|
10253
10560
|
const LeftAlign$1 = () => {
|
|
10254
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
10561
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$n, { alignment: "left" }));
|
|
10255
10562
|
};
|
|
10256
10563
|
const CenterAlign = () => {
|
|
10257
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
10564
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$n, { alignment: "center" }));
|
|
10258
10565
|
};
|
|
10259
10566
|
const RightAlign$1 = () => {
|
|
10260
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
10567
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$n, { alignment: "right" }));
|
|
10261
10568
|
};
|
|
10262
10569
|
const Loading$7 = () => {
|
|
10263
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
10570
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$n, { loading: true }));
|
|
10264
10571
|
};
|
|
10265
10572
|
const Error$7 = () => {
|
|
10266
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
10573
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$n, { error: true }));
|
|
10267
10574
|
};
|
|
10268
10575
|
const DownloadError = () => {
|
|
10269
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
10576
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$n, { error: true }));
|
|
10270
10577
|
};
|
|
10271
10578
|
|
|
10272
10579
|
const QRCode = /*#__PURE__*/Object.freeze({
|
|
@@ -10301,8 +10608,8 @@ const style$1 = {
|
|
|
10301
10608
|
gap: "var(--sl-spacing-small)",
|
|
10302
10609
|
},
|
|
10303
10610
|
};
|
|
10304
|
-
const sheet$
|
|
10305
|
-
const styleString$1 = sheet$
|
|
10611
|
+
const sheet$2 = JSS.createStyleSheet(style$1);
|
|
10612
|
+
const styleString$1 = sheet$2.toString();
|
|
10306
10613
|
const vanillaStyle = `
|
|
10307
10614
|
:host{
|
|
10308
10615
|
display: block;
|
|
@@ -10333,14 +10640,14 @@ const RadioCardView = ({ title, icon, description, selected, }) => {
|
|
|
10333
10640
|
const border = selected
|
|
10334
10641
|
? "var(--sqm-border-thickness) solid var(--sqm-primary-color)"
|
|
10335
10642
|
: "var(--sqm-border-thickness) solid var(--sqm-border-color)";
|
|
10336
|
-
return (index.h("div", { part: "sqm-base", class: sheet$
|
|
10643
|
+
return (index.h("div", { part: "sqm-base", class: sheet$2.classes.Container, style: {
|
|
10337
10644
|
border,
|
|
10338
10645
|
} },
|
|
10339
10646
|
index.h("style", { type: "text/css" },
|
|
10340
10647
|
styleString$1,
|
|
10341
10648
|
vanillaStyle),
|
|
10342
10649
|
index.h("sl-checkbox", { checked: selected }),
|
|
10343
|
-
index.h("div", { part: "sqm-title-container", class: sheet$
|
|
10650
|
+
index.h("div", { part: "sqm-title-container", class: sheet$2.classes.TitleContainer },
|
|
10344
10651
|
index.h("sl-icon", { name: icon }),
|
|
10345
10652
|
index.h("p", null, title)),
|
|
10346
10653
|
index.h("p", null, description)));
|
|
@@ -10349,17 +10656,17 @@ const RadioCardView = ({ title, icon, description, selected, }) => {
|
|
|
10349
10656
|
const RadioCard_stories = {
|
|
10350
10657
|
title: "Components/Radio Card",
|
|
10351
10658
|
};
|
|
10352
|
-
const defaultProps$
|
|
10659
|
+
const defaultProps$o = {
|
|
10353
10660
|
selected: false,
|
|
10354
10661
|
title: "Card Title",
|
|
10355
10662
|
description: "Description text goes here",
|
|
10356
10663
|
icon: "apple",
|
|
10357
10664
|
};
|
|
10358
10665
|
const DefaultView = () => {
|
|
10359
|
-
return index.h(RadioCardView, Object.assign({}, defaultProps$
|
|
10666
|
+
return index.h(RadioCardView, Object.assign({}, defaultProps$o));
|
|
10360
10667
|
};
|
|
10361
10668
|
const Selected = () => {
|
|
10362
|
-
return index.h(RadioCardView, Object.assign({}, defaultProps$
|
|
10669
|
+
return index.h(RadioCardView, Object.assign({}, defaultProps$o, { selected: true }));
|
|
10363
10670
|
};
|
|
10364
10671
|
|
|
10365
10672
|
const RadioCard = /*#__PURE__*/Object.freeze({
|
|
@@ -10709,7 +11016,7 @@ const props$1 = {
|
|
|
10709
11016
|
};
|
|
10710
11017
|
const ReferralIframe = () => {
|
|
10711
11018
|
return (index.h("div", { style: { width: "1000px", height: "1000px" } },
|
|
10712
|
-
index.h(
|
|
11019
|
+
index.h(sqmReferralIframeView.ReferralIframeView, Object.assign({}, props$1))));
|
|
10713
11020
|
};
|
|
10714
11021
|
const ReferralIframeError = () => {
|
|
10715
11022
|
return (index.h("div", { style: { width: "1000px", height: "1000px" } },
|
|
@@ -11860,14 +12167,14 @@ const defaultTaxDocument = {
|
|
|
11860
12167
|
type: "W9",
|
|
11861
12168
|
dateCreated: luxon.luxon.DateTime.now().toMillis() - 1000000,
|
|
11862
12169
|
};
|
|
11863
|
-
const defaultProps$
|
|
12170
|
+
const defaultProps$p = {
|
|
11864
12171
|
statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",
|
|
11865
12172
|
statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",
|
|
11866
12173
|
rewardReceivedText: "Reward received on",
|
|
11867
12174
|
hideDetails: false,
|
|
11868
12175
|
};
|
|
11869
12176
|
const CashReward = () => {
|
|
11870
|
-
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [{ ...cashReward }], taxConnection: taxConnection }, defaultProps$
|
|
12177
|
+
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [{ ...cashReward }], taxConnection: taxConnection }, defaultProps$p)));
|
|
11871
12178
|
};
|
|
11872
12179
|
const PayoutApproved = () => {
|
|
11873
12180
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11879,7 +12186,7 @@ const PayoutApproved = () => {
|
|
|
11879
12186
|
dateScheduled: Date.now() - 600000000,
|
|
11880
12187
|
},
|
|
11881
12188
|
},
|
|
11882
|
-
], taxConnection: taxConnection }, defaultProps$
|
|
12189
|
+
], taxConnection: taxConnection }, defaultProps$p)));
|
|
11883
12190
|
};
|
|
11884
12191
|
const PayoutProcessing = () => {
|
|
11885
12192
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11891,7 +12198,7 @@ const PayoutProcessing = () => {
|
|
|
11891
12198
|
dateScheduled: getDays$1(),
|
|
11892
12199
|
},
|
|
11893
12200
|
},
|
|
11894
|
-
], taxConnection: taxConnection }, defaultProps$
|
|
12201
|
+
], taxConnection: taxConnection }, defaultProps$p)));
|
|
11895
12202
|
};
|
|
11896
12203
|
const PayoutFailed$1 = () => {
|
|
11897
12204
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11903,7 +12210,7 @@ const PayoutFailed$1 = () => {
|
|
|
11903
12210
|
dateScheduled: Date.now() - 100000,
|
|
11904
12211
|
},
|
|
11905
12212
|
},
|
|
11906
|
-
], taxConnection: taxConnection }, defaultProps$
|
|
12213
|
+
], taxConnection: taxConnection }, defaultProps$p)));
|
|
11907
12214
|
};
|
|
11908
12215
|
const PayoutCancelled$1 = () => {
|
|
11909
12216
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11915,7 +12222,7 @@ const PayoutCancelled$1 = () => {
|
|
|
11915
12222
|
dateScheduled: Date.now() - 100000,
|
|
11916
12223
|
},
|
|
11917
12224
|
},
|
|
11918
|
-
], taxConnection: taxConnection }, defaultProps$
|
|
12225
|
+
], taxConnection: taxConnection }, defaultProps$p)));
|
|
11919
12226
|
};
|
|
11920
12227
|
const PendingTaxReview$1 = () => {
|
|
11921
12228
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11933,7 +12240,7 @@ const PendingTaxReview$1 = () => {
|
|
|
11933
12240
|
status: "NOT_VERIFIED",
|
|
11934
12241
|
},
|
|
11935
12242
|
},
|
|
11936
|
-
} }, defaultProps$
|
|
12243
|
+
} }, defaultProps$p)));
|
|
11937
12244
|
};
|
|
11938
12245
|
const PendingNewTaxForm$1 = () => {
|
|
11939
12246
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11951,7 +12258,7 @@ const PendingNewTaxForm$1 = () => {
|
|
|
11951
12258
|
status: "INACTIVE",
|
|
11952
12259
|
},
|
|
11953
12260
|
},
|
|
11954
|
-
} }, defaultProps$
|
|
12261
|
+
} }, defaultProps$p)));
|
|
11955
12262
|
};
|
|
11956
12263
|
const PendingTaxSubmission$1 = () => {
|
|
11957
12264
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11966,7 +12273,7 @@ const PendingTaxSubmission$1 = () => {
|
|
|
11966
12273
|
...taxConnection.publisher,
|
|
11967
12274
|
currentTaxDocument: null,
|
|
11968
12275
|
},
|
|
11969
|
-
} }, defaultProps$
|
|
12276
|
+
} }, defaultProps$p)));
|
|
11970
12277
|
};
|
|
11971
12278
|
const PendingPartnerCreation$1 = () => {
|
|
11972
12279
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11978,7 +12285,7 @@ const PendingPartnerCreation$1 = () => {
|
|
|
11978
12285
|
], taxConnection: {
|
|
11979
12286
|
...taxConnection,
|
|
11980
12287
|
connected: false,
|
|
11981
|
-
} }, defaultProps$
|
|
12288
|
+
} }, defaultProps$p)));
|
|
11982
12289
|
};
|
|
11983
12290
|
const PendingW9 = () => {
|
|
11984
12291
|
return (index.h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
@@ -11990,7 +12297,7 @@ const PendingW9 = () => {
|
|
|
11990
12297
|
], taxConnection: {
|
|
11991
12298
|
...taxConnection,
|
|
11992
12299
|
taxHandlingEnabled: false,
|
|
11993
|
-
} }, defaultProps$
|
|
12300
|
+
} }, defaultProps$p)));
|
|
11994
12301
|
};
|
|
11995
12302
|
|
|
11996
12303
|
const TaxAndCashReferralTableRewardsCell = /*#__PURE__*/Object.freeze({
|
|
@@ -12156,6 +12463,12 @@ function setupGraphQLKlip({ token, id }) {
|
|
|
12156
12463
|
const ReferralTable$1 = createHookStory(() => {
|
|
12157
12464
|
setupGraphQL$8();
|
|
12158
12465
|
index_module.setProgramId("sam-partner-test-2");
|
|
12466
|
+
const props = {
|
|
12467
|
+
listType: "",
|
|
12468
|
+
render: () => { },
|
|
12469
|
+
disconnectedCallback: () => { },
|
|
12470
|
+
ignored: true,
|
|
12471
|
+
};
|
|
12159
12472
|
return (index.h("sqm-referral-table", null,
|
|
12160
12473
|
index.h("sqm-referral-table-user-column", null),
|
|
12161
12474
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -12163,6 +12476,14 @@ const ReferralTable$1 = createHookStory(() => {
|
|
|
12163
12476
|
index.h("sqm-referral-table-rewards-column", null)));
|
|
12164
12477
|
});
|
|
12165
12478
|
const ReferralTableDemoHook = createHookStory(() => {
|
|
12479
|
+
// setupGraphQL();
|
|
12480
|
+
// setProgramId("sam-partner-test-2");
|
|
12481
|
+
const props = {
|
|
12482
|
+
listType: "",
|
|
12483
|
+
render: () => { },
|
|
12484
|
+
disconnectedCallback: () => { },
|
|
12485
|
+
ignored: true,
|
|
12486
|
+
};
|
|
12166
12487
|
return (index.h("sqm-referral-table", null,
|
|
12167
12488
|
index.h("sqm-referral-table-user-column", null),
|
|
12168
12489
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -12170,6 +12491,14 @@ const ReferralTableDemoHook = createHookStory(() => {
|
|
|
12170
12491
|
index.h("sqm-referral-table-rewards-column", null)));
|
|
12171
12492
|
});
|
|
12172
12493
|
const ReferralTableDemoHookShowReferrer = createHookStory(() => {
|
|
12494
|
+
// setupGraphQL();
|
|
12495
|
+
// setProgramId("sam-partner-test-2");
|
|
12496
|
+
const props = {
|
|
12497
|
+
listType: "",
|
|
12498
|
+
render: () => { },
|
|
12499
|
+
disconnectedCallback: () => { },
|
|
12500
|
+
ignored: true,
|
|
12501
|
+
};
|
|
12173
12502
|
return (index.h("sqm-referral-table", { "show-referrer": "true" },
|
|
12174
12503
|
index.h("sqm-referral-table-user-column", null),
|
|
12175
12504
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -12182,6 +12511,12 @@ const ReferralTableEn = createHookStory(() => {
|
|
|
12182
12511
|
id: "samenglish",
|
|
12183
12512
|
});
|
|
12184
12513
|
index_module.setProgramId("klip-referral-program");
|
|
12514
|
+
const props = {
|
|
12515
|
+
listType: "",
|
|
12516
|
+
render: () => { },
|
|
12517
|
+
disconnectedCallback: () => { },
|
|
12518
|
+
ignored: true,
|
|
12519
|
+
};
|
|
12185
12520
|
return (index.h("sqm-referral-table", { "per-page": "4" },
|
|
12186
12521
|
index.h("sqm-referral-table-user-column", { "column-title": "User" }),
|
|
12187
12522
|
index.h("sqm-referral-table-status-column", { "column-title": "Referral Status" }),
|
|
@@ -12194,6 +12529,12 @@ const ReferralTableTr = createHookStory(() => {
|
|
|
12194
12529
|
id: "samturkey",
|
|
12195
12530
|
});
|
|
12196
12531
|
index_module.setProgramId("klip-referral-program");
|
|
12532
|
+
const props = {
|
|
12533
|
+
listType: "",
|
|
12534
|
+
render: () => { },
|
|
12535
|
+
disconnectedCallback: () => { },
|
|
12536
|
+
ignored: true,
|
|
12537
|
+
};
|
|
12197
12538
|
return (index.h("sqm-referral-table", { "more-label": "Daha", "prev-label": "\u00D6ncesi", "empty-state-text": "Hen\u00FCz \u00D6d\u00FCl Yok", "per-page": "4" },
|
|
12198
12539
|
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" }),
|
|
12199
12540
|
index.h("sqm-referral-table-status-column", { "column-title": "Durumu", "converted-status-text": "D\u00F6n\u00FC\u015Ft\u00FCr", "in-progress-status-text": "Devam etmekte" }),
|
|
@@ -12206,6 +12547,12 @@ const ReferralTableFr = createHookStory(() => {
|
|
|
12206
12547
|
id: "samfrench",
|
|
12207
12548
|
});
|
|
12208
12549
|
index_module.setProgramId("klip-referral-program");
|
|
12550
|
+
const props = {
|
|
12551
|
+
listType: "",
|
|
12552
|
+
render: () => { },
|
|
12553
|
+
disconnectedCallback: () => { },
|
|
12554
|
+
ignored: true,
|
|
12555
|
+
};
|
|
12209
12556
|
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" },
|
|
12210
12557
|
index.h("sqm-referral-table-user-column", { "column-title": "Utilisateur", "anonymous-user": "Utilisateur Anonyme", "deleted-user": "Utilisateur Supprim\u00E9" }),
|
|
12211
12558
|
index.h("sqm-referral-table-status-column", { "column-title": "Statut de Parrainage", "converted-status-text": "Converti", "in-progress-status-text": "En cours" }),
|
|
@@ -12233,26 +12580,26 @@ const RewardExchangeList_stories = {
|
|
|
12233
12580
|
},
|
|
12234
12581
|
};
|
|
12235
12582
|
const StoryBase = (props) => {
|
|
12236
|
-
return index.h(
|
|
12237
|
-
};
|
|
12238
|
-
const ChooseReward = () => StoryBase(
|
|
12239
|
-
const CustomErrorMessage = () => StoryBase(
|
|
12240
|
-
const LongTextRewardExhange = () => StoryBase(
|
|
12241
|
-
const ChooseRewardSelected = () => StoryBase(
|
|
12242
|
-
const ChooseAmount = () => StoryBase(
|
|
12243
|
-
const ChooseAmountNoDescription = () => StoryBase(
|
|
12244
|
-
const ChooseAmountVariableAndStepped = () => StoryBase(
|
|
12245
|
-
const ChooseAmountVariableAndSteppedNoDescription = () => StoryBase(
|
|
12246
|
-
const chooseAmountVariableAndSteppedDisabled = () => StoryBase(
|
|
12247
|
-
const chooseAmountVariableAndSteppedUnavailable = () => StoryBase(
|
|
12248
|
-
const Confirm = () => StoryBase(
|
|
12249
|
-
const ConfirmVariableAndStepped = () => StoryBase(
|
|
12250
|
-
const RedemptionError = () => StoryBase(
|
|
12251
|
-
const QueryError = () => StoryBase(
|
|
12252
|
-
const SuccessPromo = () => StoryBase(
|
|
12253
|
-
const SuccessVariableAndStepped = () => StoryBase(
|
|
12254
|
-
const Loading$9 = () => StoryBase(
|
|
12255
|
-
const Empty$3 = () => StoryBase(
|
|
12583
|
+
return index.h(RewardExchangeListData.RewardExchangeView, Object.assign({}, props));
|
|
12584
|
+
};
|
|
12585
|
+
const ChooseReward = () => StoryBase(RewardExchangeListData.rewardExchange);
|
|
12586
|
+
const CustomErrorMessage = () => StoryBase(RewardExchangeListData.rewardExchangeCustomErrorMsg);
|
|
12587
|
+
const LongTextRewardExhange = () => StoryBase(RewardExchangeListData.rewardExchangeLongText);
|
|
12588
|
+
const ChooseRewardSelected = () => StoryBase(RewardExchangeListData.rewardExchangeSelected);
|
|
12589
|
+
const ChooseAmount = () => StoryBase(RewardExchangeListData.chooseAmountFixed);
|
|
12590
|
+
const ChooseAmountNoDescription = () => StoryBase(RewardExchangeListData.chooseAmountFixedNoDescription);
|
|
12591
|
+
const ChooseAmountVariableAndStepped = () => StoryBase(RewardExchangeListData.chooseAmountVariable);
|
|
12592
|
+
const ChooseAmountVariableAndSteppedNoDescription = () => StoryBase(RewardExchangeListData.chooseAmountVariableNoDescription);
|
|
12593
|
+
const chooseAmountVariableAndSteppedDisabled = () => StoryBase(RewardExchangeListData.chooseAmountVariableDisabled);
|
|
12594
|
+
const chooseAmountVariableAndSteppedUnavailable = () => StoryBase(RewardExchangeListData.chooseAmountVariableUnavailable);
|
|
12595
|
+
const Confirm = () => StoryBase(RewardExchangeListData.confirmFixed);
|
|
12596
|
+
const ConfirmVariableAndStepped = () => StoryBase(RewardExchangeListData.confirmVariable);
|
|
12597
|
+
const RedemptionError = () => StoryBase(RewardExchangeListData.redemptionError);
|
|
12598
|
+
const QueryError = () => StoryBase(RewardExchangeListData.queryError);
|
|
12599
|
+
const SuccessPromo = () => StoryBase(RewardExchangeListData.success);
|
|
12600
|
+
const SuccessVariableAndStepped = () => StoryBase(RewardExchangeListData.successVariable);
|
|
12601
|
+
const Loading$9 = () => StoryBase(RewardExchangeListData.loading);
|
|
12602
|
+
const Empty$3 = () => StoryBase(RewardExchangeListData.empty);
|
|
12256
12603
|
|
|
12257
12604
|
const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
12258
12605
|
__proto__: null,
|
|
@@ -12358,6 +12705,12 @@ const DefaultView$1 = (props) => {
|
|
|
12358
12705
|
};
|
|
12359
12706
|
const RewardList = createHookStory(() => {
|
|
12360
12707
|
setupGraphQL$9();
|
|
12708
|
+
const props = {
|
|
12709
|
+
listType: "",
|
|
12710
|
+
render: () => { },
|
|
12711
|
+
disconnectedCallback: () => { },
|
|
12712
|
+
ignored: true,
|
|
12713
|
+
};
|
|
12361
12714
|
return (index.h("sqm-reward-exchange-list", { "list-type": "something" }));
|
|
12362
12715
|
});
|
|
12363
12716
|
const FixedGlobalReward = createHookStory(() => {
|
|
@@ -12467,6 +12820,112 @@ const rewardsData$1 = {
|
|
|
12467
12820
|
},
|
|
12468
12821
|
partnerFundsTransfer: null,
|
|
12469
12822
|
};
|
|
12823
|
+
const cashReward$1 = {
|
|
12824
|
+
id: "68c34fd98a6cb4f5f8394084",
|
|
12825
|
+
type: "CREDIT",
|
|
12826
|
+
value: 59900,
|
|
12827
|
+
prettyValue: "$599.00",
|
|
12828
|
+
availableValue: 0,
|
|
12829
|
+
prettyAvailableValue: "$0.00",
|
|
12830
|
+
prettyAssignedCredit: "$599.00",
|
|
12831
|
+
prettyRedeemedCredit: "$599.00",
|
|
12832
|
+
prettyValueNumber: "599",
|
|
12833
|
+
prettyAvailableNumber: "0",
|
|
12834
|
+
prettyRedeemedNumber: "599",
|
|
12835
|
+
unit: "CASH/USD",
|
|
12836
|
+
baseUnit: "CASH",
|
|
12837
|
+
rewardUnit: {
|
|
12838
|
+
key: "CASH/USD",
|
|
12839
|
+
name: "Cash",
|
|
12840
|
+
},
|
|
12841
|
+
name: null,
|
|
12842
|
+
dateCreated: 1757630425085,
|
|
12843
|
+
dateScheduledFor: 1757631025115,
|
|
12844
|
+
dateGiven: 1757630737115,
|
|
12845
|
+
dateExpires: null,
|
|
12846
|
+
dateCancelled: null,
|
|
12847
|
+
dateRedeemed: 1757630737115,
|
|
12848
|
+
dateModified: 1757630737115,
|
|
12849
|
+
rewardSource: "MANUAL",
|
|
12850
|
+
fuelTankCode: null,
|
|
12851
|
+
fuelTankType: null,
|
|
12852
|
+
fuelTankSyncSetting: null,
|
|
12853
|
+
currency: "USD",
|
|
12854
|
+
meta: null,
|
|
12855
|
+
programId: "40444",
|
|
12856
|
+
programRewardKey: null,
|
|
12857
|
+
globalRewardKey: "cash",
|
|
12858
|
+
program: {
|
|
12859
|
+
id: "40444",
|
|
12860
|
+
name: "Make Money Program",
|
|
12861
|
+
template: {
|
|
12862
|
+
id: "2qdmAx1fi31deo3P9O36sQ",
|
|
12863
|
+
name: "Referral Program With Objectives",
|
|
12864
|
+
},
|
|
12865
|
+
},
|
|
12866
|
+
partnerFundsTransfer: {
|
|
12867
|
+
id: "693503",
|
|
12868
|
+
status: "TRANSFERRED",
|
|
12869
|
+
dateScheduled: 1768583958000,
|
|
12870
|
+
dateTransferred: 1768583958000,
|
|
12871
|
+
dateCreated: 1767979159000,
|
|
12872
|
+
},
|
|
12873
|
+
user: {
|
|
12874
|
+
id: "8da2c67e05e3e56de7ea638c2705017945211621c80e1cd4b4aac0e423d1cdb2",
|
|
12875
|
+
accountId: "8da2c67e05e3e56de7ea638c2705017945211621c80e1cd4b4aac0e423d1cdb2",
|
|
12876
|
+
firstName: "Billy",
|
|
12877
|
+
lastName: "Jean",
|
|
12878
|
+
email: "billy.jean@impact.com",
|
|
12879
|
+
impactConnection: {
|
|
12880
|
+
connected: true,
|
|
12881
|
+
taxHandlingEnabled: true,
|
|
12882
|
+
publisher: null,
|
|
12883
|
+
},
|
|
12884
|
+
},
|
|
12885
|
+
referral: null,
|
|
12886
|
+
description: null,
|
|
12887
|
+
statuses: ["REDEEMED"],
|
|
12888
|
+
// rewardRedemptionTransactions: {
|
|
12889
|
+
// data: [
|
|
12890
|
+
// {
|
|
12891
|
+
// exchangedRewards: {
|
|
12892
|
+
// data: [],
|
|
12893
|
+
// },
|
|
12894
|
+
// redeemedRewards: {
|
|
12895
|
+
// data: [
|
|
12896
|
+
// {
|
|
12897
|
+
// prettyValue: "$599.00",
|
|
12898
|
+
// },
|
|
12899
|
+
// ],
|
|
12900
|
+
// },
|
|
12901
|
+
// creditRedeemed: 59900,
|
|
12902
|
+
// prettyRedeemedCredit: "$599.00",
|
|
12903
|
+
// dateRedeemed: 1757630737115,
|
|
12904
|
+
// },
|
|
12905
|
+
// ],
|
|
12906
|
+
// },
|
|
12907
|
+
rewardRedemptionTransactions: {
|
|
12908
|
+
data: null,
|
|
12909
|
+
},
|
|
12910
|
+
exchangedRewardRedemptionTransaction: null,
|
|
12911
|
+
pendingReasons: [],
|
|
12912
|
+
};
|
|
12913
|
+
const taxConnection$1 = {
|
|
12914
|
+
connected: true,
|
|
12915
|
+
taxHandlingEnabled: true,
|
|
12916
|
+
publisher: {
|
|
12917
|
+
requiredTaxDocumentType: "W8BEN",
|
|
12918
|
+
currentTaxDocument: {
|
|
12919
|
+
status: "NOT_VERIFIED",
|
|
12920
|
+
type: "W8BEN",
|
|
12921
|
+
dateCreated: 321321487,
|
|
12922
|
+
},
|
|
12923
|
+
withdrawalSettings: {
|
|
12924
|
+
paymentMethod: "BANK_TRANSFER",
|
|
12925
|
+
},
|
|
12926
|
+
payoutsAccount: null,
|
|
12927
|
+
},
|
|
12928
|
+
};
|
|
12470
12929
|
const RewardsCellCreditSingle = () => {
|
|
12471
12930
|
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...rewardsData$1, ...singleRedeemed } }));
|
|
12472
12931
|
};
|
|
@@ -12635,7 +13094,7 @@ const SourceCellDeletedUser = () => {
|
|
|
12635
13094
|
const SourceCellDeletedReferral = () => {
|
|
12636
13095
|
return (index.h("sqm-rewards-table-source-cell", {
|
|
12637
13096
|
//@ts-ignore
|
|
12638
|
-
reward: { ...rewardsData$1, ...deletedReferral() }, referralText: "Referral to", deletedReferralText: "Deleted Referral" }));
|
|
13097
|
+
reward: { ...rewardsData$1, ...deletedReferral(null) }, referralText: "Referral to", deletedReferralText: "Deleted Referral" }));
|
|
12639
13098
|
};
|
|
12640
13099
|
const StatusCellAvailable = () => {
|
|
12641
13100
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Available", reward: rewardsData$1 }));
|
|
@@ -12953,7 +13412,7 @@ const RewardsTable$1 = /*#__PURE__*/Object.freeze({
|
|
|
12953
13412
|
const TaxAndCashRewardsTableCell_stories = {
|
|
12954
13413
|
title: "Components/Tax And Cash Rewards Table Cell",
|
|
12955
13414
|
};
|
|
12956
|
-
const cashReward$
|
|
13415
|
+
const cashReward$2 = {
|
|
12957
13416
|
id: "68c34fd98a6cb4f5f8394084",
|
|
12958
13417
|
type: "CREDIT",
|
|
12959
13418
|
value: 59900,
|
|
@@ -13021,6 +13480,16 @@ const cashReward$1 = {
|
|
|
13021
13480
|
const pending$1 = {
|
|
13022
13481
|
statuses: ["PENDING"],
|
|
13023
13482
|
};
|
|
13483
|
+
const payoutSent = {
|
|
13484
|
+
statuses: ["PAYOUT_APPROVED"],
|
|
13485
|
+
};
|
|
13486
|
+
const payoutFailed = {
|
|
13487
|
+
statuses: ["PAYOUT_FAILED"],
|
|
13488
|
+
};
|
|
13489
|
+
const payoutCancelled = {
|
|
13490
|
+
statuses: ["PAYOUT_CANCELLED"],
|
|
13491
|
+
dateCancelled: 1355612521321,
|
|
13492
|
+
};
|
|
13024
13493
|
const processingPFT = {
|
|
13025
13494
|
partnerFundsTransfer: {
|
|
13026
13495
|
id: "123",
|
|
@@ -13030,7 +13499,7 @@ const processingPFT = {
|
|
|
13030
13499
|
dateTransferred: null,
|
|
13031
13500
|
},
|
|
13032
13501
|
};
|
|
13033
|
-
const taxConnection$
|
|
13502
|
+
const taxConnection$2 = {
|
|
13034
13503
|
connected: true,
|
|
13035
13504
|
taxHandlingEnabled: true,
|
|
13036
13505
|
publisher: {
|
|
@@ -13047,23 +13516,23 @@ const taxConnection$1 = {
|
|
|
13047
13516
|
},
|
|
13048
13517
|
};
|
|
13049
13518
|
const CashReward$1 = () => {
|
|
13050
|
-
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...cashReward$
|
|
13519
|
+
return (index.h("sqm-rewards-table-reward-cell", { reward: { ...cashReward$2 }, availableText: "{availableAmount} remaining" }));
|
|
13051
13520
|
};
|
|
13052
13521
|
const StatusCellPendingTaxReview = () => {
|
|
13053
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...cashReward$
|
|
13054
|
-
...taxConnection$
|
|
13522
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...cashReward$2, ...pending$1, pendingReasons: ["US_TAX"] }, taxConnection: {
|
|
13523
|
+
...taxConnection$2,
|
|
13055
13524
|
publisher: {
|
|
13056
13525
|
requiredTaxDocumentType: "W8BEN",
|
|
13057
13526
|
currentTaxDocument: {
|
|
13058
13527
|
status: "",
|
|
13059
13528
|
},
|
|
13060
|
-
...taxConnection$
|
|
13529
|
+
...taxConnection$2.publisher,
|
|
13061
13530
|
},
|
|
13062
13531
|
} }));
|
|
13063
13532
|
};
|
|
13064
13533
|
const StatusCellPendingNewTaxForm = () => {
|
|
13065
13534
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
|
|
13066
|
-
...cashReward$
|
|
13535
|
+
...cashReward$2,
|
|
13067
13536
|
statuses: ["PENDING"],
|
|
13068
13537
|
pendingReasons: ["US_TAX"],
|
|
13069
13538
|
}, taxConnection: {
|
|
@@ -13084,10 +13553,10 @@ const StatusCellPendingNewTaxForm = () => {
|
|
|
13084
13553
|
} }));
|
|
13085
13554
|
};
|
|
13086
13555
|
const StatusCellPendingTaxSubmission = () => {
|
|
13087
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...cashReward$
|
|
13088
|
-
...taxConnection$
|
|
13556
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: { ...cashReward$2, ...pending$1, pendingReasons: ["US_TAX"] }, taxConnection: {
|
|
13557
|
+
...taxConnection$2,
|
|
13089
13558
|
publisher: {
|
|
13090
|
-
...taxConnection$
|
|
13559
|
+
...taxConnection$2.publisher,
|
|
13091
13560
|
requiredTaxDocumentType: "W8BEN",
|
|
13092
13561
|
currentTaxDocument: null,
|
|
13093
13562
|
},
|
|
@@ -13095,27 +13564,27 @@ const StatusCellPendingTaxSubmission = () => {
|
|
|
13095
13564
|
};
|
|
13096
13565
|
const StatusCellPendingPartnerCreation = () => {
|
|
13097
13566
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
|
|
13098
|
-
...cashReward$
|
|
13567
|
+
...cashReward$2,
|
|
13099
13568
|
...pending$1,
|
|
13100
13569
|
pendingReasons: ["US_TAX"],
|
|
13101
13570
|
}, taxConnection: {
|
|
13102
|
-
...taxConnection$
|
|
13571
|
+
...taxConnection$2,
|
|
13103
13572
|
connected: false,
|
|
13104
13573
|
} }));
|
|
13105
13574
|
};
|
|
13106
13575
|
const StatusCellPendingW9 = () => {
|
|
13107
13576
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
|
|
13108
|
-
...cashReward$
|
|
13577
|
+
...cashReward$2,
|
|
13109
13578
|
...pending$1,
|
|
13110
13579
|
pendingReasons: ["US_TAX"],
|
|
13111
13580
|
}, taxConnection: {
|
|
13112
|
-
...taxConnection$
|
|
13581
|
+
...taxConnection$2,
|
|
13113
13582
|
taxHandlingEnabled: false,
|
|
13114
13583
|
} }));
|
|
13115
13584
|
};
|
|
13116
13585
|
const StatusCellPayoutSent = () => {
|
|
13117
13586
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Sent", reward: {
|
|
13118
|
-
...cashReward$
|
|
13587
|
+
...cashReward$2,
|
|
13119
13588
|
partnerFundsTransfer: {
|
|
13120
13589
|
id: "transfer-123",
|
|
13121
13590
|
status: "TRANSFERRED",
|
|
@@ -13123,11 +13592,11 @@ const StatusCellPayoutSent = () => {
|
|
|
13123
13592
|
dateTransferred: 1640995200000,
|
|
13124
13593
|
dateCreated: 1640995200000,
|
|
13125
13594
|
},
|
|
13126
|
-
}, taxConnection: taxConnection$
|
|
13595
|
+
}, taxConnection: taxConnection$2 }));
|
|
13127
13596
|
};
|
|
13128
13597
|
const StatusCellPayoutFailed = () => {
|
|
13129
13598
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Failed", reward: {
|
|
13130
|
-
...cashReward$
|
|
13599
|
+
...cashReward$2,
|
|
13131
13600
|
partnerFundsTransfer: {
|
|
13132
13601
|
id: "transfer-failed",
|
|
13133
13602
|
status: "OVERDUE",
|
|
@@ -13138,11 +13607,11 @@ const StatusCellPayoutFailed = () => {
|
|
|
13138
13607
|
} }));
|
|
13139
13608
|
};
|
|
13140
13609
|
const StatusCellPayoutProcessing = () => {
|
|
13141
|
-
return (index.h("sqm-rewards-table-status-cell", { statusText: "Payment Processing", reward: { ...cashReward$
|
|
13610
|
+
return (index.h("sqm-rewards-table-status-cell", { statusText: "Payment Processing", reward: { ...cashReward$2, ...processingPFT } }));
|
|
13142
13611
|
};
|
|
13143
13612
|
const StatusCellPayoutCancelled = () => {
|
|
13144
13613
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Payout Cancelled", reward: {
|
|
13145
|
-
...cashReward$
|
|
13614
|
+
...cashReward$2,
|
|
13146
13615
|
partnerFundsTransfer: {
|
|
13147
13616
|
id: "transfer-reversed",
|
|
13148
13617
|
status: "REVERSED",
|
|
@@ -13330,6 +13799,14 @@ function setupGraphQLKlip$1({ token, id }) {
|
|
|
13330
13799
|
return { id, accountId };
|
|
13331
13800
|
}
|
|
13332
13801
|
const RewardTableDemoHook = createHookStory(() => {
|
|
13802
|
+
// setupGraphQL();
|
|
13803
|
+
// setProgramId("sam-partner-test-2");
|
|
13804
|
+
const props = {
|
|
13805
|
+
listType: "",
|
|
13806
|
+
render: () => { },
|
|
13807
|
+
disconnectedCallback: () => { },
|
|
13808
|
+
ignored: true,
|
|
13809
|
+
};
|
|
13333
13810
|
return (index.h("sqm-rewards-table", { "per-page": "4" },
|
|
13334
13811
|
index.h("sqm-rewards-table-reward-column", null),
|
|
13335
13812
|
index.h("sqm-rewards-table-source-column", null),
|
|
@@ -13339,6 +13816,12 @@ const RewardTableDemoHook = createHookStory(() => {
|
|
|
13339
13816
|
const RewardsTableWithProgram = createHookStory(() => {
|
|
13340
13817
|
setupGraphQL$a();
|
|
13341
13818
|
index_module.setProgramId("sam-partner-test-2");
|
|
13819
|
+
const props = {
|
|
13820
|
+
listType: "",
|
|
13821
|
+
render: () => { },
|
|
13822
|
+
disconnectedCallback: () => { },
|
|
13823
|
+
ignored: true,
|
|
13824
|
+
};
|
|
13342
13825
|
return (index.h("sqm-rewards-table", null,
|
|
13343
13826
|
index.h("sqm-rewards-table-reward-column", null),
|
|
13344
13827
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -13348,6 +13831,12 @@ const RewardsTableWithProgram = createHookStory(() => {
|
|
|
13348
13831
|
const RewardsTableNoProgram = createHookStory(() => {
|
|
13349
13832
|
setupGraphQL$a();
|
|
13350
13833
|
index_module.setProgramId(undefined);
|
|
13834
|
+
const props = {
|
|
13835
|
+
listType: "",
|
|
13836
|
+
render: () => { },
|
|
13837
|
+
disconnectedCallback: () => { },
|
|
13838
|
+
ignored: true,
|
|
13839
|
+
};
|
|
13351
13840
|
return (index.h("sqm-rewards-table", null,
|
|
13352
13841
|
index.h("sqm-rewards-table-reward-column", null),
|
|
13353
13842
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -13360,6 +13849,12 @@ const RewardsTableEn = createHookStory(() => {
|
|
|
13360
13849
|
id: "samenglish",
|
|
13361
13850
|
});
|
|
13362
13851
|
index_module.setProgramId(undefined);
|
|
13852
|
+
const props = {
|
|
13853
|
+
listType: "",
|
|
13854
|
+
render: () => { },
|
|
13855
|
+
disconnectedCallback: () => { },
|
|
13856
|
+
ignored: true,
|
|
13857
|
+
};
|
|
13363
13858
|
return (index.h("sqm-rewards-table", { "per-page": "4" },
|
|
13364
13859
|
index.h("sqm-rewards-table-reward-column", null),
|
|
13365
13860
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -13372,6 +13867,12 @@ const RewardsTableTr = createHookStory(() => {
|
|
|
13372
13867
|
id: "samturkey",
|
|
13373
13868
|
});
|
|
13374
13869
|
index_module.setProgramId(undefined);
|
|
13870
|
+
const props = {
|
|
13871
|
+
listType: "",
|
|
13872
|
+
render: () => { },
|
|
13873
|
+
disconnectedCallback: () => { },
|
|
13874
|
+
ignored: true,
|
|
13875
|
+
};
|
|
13375
13876
|
return (index.h("sqm-rewards-table", { "per-page": "4", "more-label": "Daha", "prev-label": "\u00D6ncesi", "empty-state-text": "Hen\u00FCz Referans Yok" },
|
|
13376
13877
|
index.h("sqm-rewards-table-reward-column", { "column-title": "\u00D6d\u00FCller", "redeemed-text": "{redeemedAmount} kullan\u0131ld\u0131", "available-text": "{availableAmount} mevcut" }),
|
|
13377
13878
|
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 {}}" }),
|
|
@@ -13384,6 +13885,12 @@ const RewardsTableFr = createHookStory(() => {
|
|
|
13384
13885
|
id: "samfrench",
|
|
13385
13886
|
});
|
|
13386
13887
|
index_module.setProgramId(undefined);
|
|
13888
|
+
const props = {
|
|
13889
|
+
listType: "",
|
|
13890
|
+
render: () => { },
|
|
13891
|
+
disconnectedCallback: () => { },
|
|
13892
|
+
ignored: true,
|
|
13893
|
+
};
|
|
13387
13894
|
return (index.h("sqm-rewards-table", { "per-page": "4", "more-label": "Plus", "prev-label": "Pr\u00E9c\u00E9dent", "empty-state-text": "Aucune R\u00E9compenses Maintenant" },
|
|
13388
13895
|
index.h("sqm-rewards-table-reward-column", { "column-title": "R\u00E9compenses", "redeemed-text": "{redeemedAmount} rachet\u00E9e", "available-text": "{availableAmount} disponible" }),
|
|
13389
13896
|
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 {}}" }),
|
|
@@ -13731,37 +14238,37 @@ const WithIconPrefix = () => {
|
|
|
13731
14238
|
medium: "whatsapp",
|
|
13732
14239
|
iconslot: "prefix",
|
|
13733
14240
|
};
|
|
13734
|
-
return index.h(
|
|
14241
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
13735
14242
|
};
|
|
13736
14243
|
const WithIconSuffix = () => {
|
|
13737
14244
|
const props = { medium: "whatsapp", iconslot: "suffix" };
|
|
13738
|
-
return index.h(
|
|
14245
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
13739
14246
|
};
|
|
13740
14247
|
const WithIconOverride = () => {
|
|
13741
14248
|
const props = {
|
|
13742
14249
|
medium: "facebook",
|
|
13743
14250
|
icon: "person-badge",
|
|
13744
14251
|
};
|
|
13745
|
-
return index.h(
|
|
14252
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
13746
14253
|
};
|
|
13747
14254
|
const TextStyle = () => {
|
|
13748
14255
|
const props = {
|
|
13749
14256
|
medium: "facebook",
|
|
13750
14257
|
type: "text",
|
|
13751
14258
|
};
|
|
13752
|
-
return index.h(
|
|
14259
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
13753
14260
|
};
|
|
13754
14261
|
const WithoutIcon = () => {
|
|
13755
14262
|
const props = { medium: "facebook", hideicon: true };
|
|
13756
|
-
return index.h(
|
|
14263
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
13757
14264
|
};
|
|
13758
14265
|
const WithoutText = () => {
|
|
13759
14266
|
const props = { medium: "facebook", hidetext: true };
|
|
13760
|
-
return index.h(
|
|
14267
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
13761
14268
|
};
|
|
13762
14269
|
const TextStyleWithoutIcon = () => {
|
|
13763
14270
|
const props = { medium: "facebook", type: "text", hideicon: true };
|
|
13764
|
-
return index.h(
|
|
14271
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
13765
14272
|
};
|
|
13766
14273
|
const WithCustomColorsAndBranding = () => {
|
|
13767
14274
|
const props = {
|
|
@@ -13773,7 +14280,7 @@ const WithCustomColorsAndBranding = () => {
|
|
|
13773
14280
|
border: "2px solid yellow",
|
|
13774
14281
|
borderradius: 30,
|
|
13775
14282
|
};
|
|
13776
|
-
return index.h(
|
|
14283
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Facebook");
|
|
13777
14284
|
};
|
|
13778
14285
|
const WithCustomBorderRadius = () => {
|
|
13779
14286
|
const props = {
|
|
@@ -13782,7 +14289,7 @@ const WithCustomBorderRadius = () => {
|
|
|
13782
14289
|
borderradius: 8,
|
|
13783
14290
|
iconslot: "prefix",
|
|
13784
14291
|
};
|
|
13785
|
-
return index.h(
|
|
14292
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Facebook");
|
|
13786
14293
|
};
|
|
13787
14294
|
const LinkLocationTest = () => {
|
|
13788
14295
|
const props = {
|
|
@@ -13791,7 +14298,7 @@ const LinkLocationTest = () => {
|
|
|
13791
14298
|
onClick: undefined,
|
|
13792
14299
|
messageLink: "https://www.example.com",
|
|
13793
14300
|
};
|
|
13794
|
-
return index.h(
|
|
14301
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Click me");
|
|
13795
14302
|
};
|
|
13796
14303
|
const FullStackIcon = () => {
|
|
13797
14304
|
return (index.h("div", null,
|
|
@@ -13880,11 +14387,11 @@ const BareBonesView = createHookStory(() => {
|
|
|
13880
14387
|
setupGraphQL$b();
|
|
13881
14388
|
const programId = "sam-partner-test-2";
|
|
13882
14389
|
const res = [
|
|
13883
|
-
|
|
13884
|
-
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
14390
|
+
useShareButton.useShareButton({ programId, medium: "facebook" }),
|
|
14391
|
+
useShareButton.useShareButton({ programId, medium: "twitter" }),
|
|
14392
|
+
useShareButton.useShareButton({ programId, medium: "email" }),
|
|
14393
|
+
useShareButton.useShareButton({ programId, medium: "direct" }),
|
|
14394
|
+
useShareButton.useShareButton({ programId, medium: "sms" }),
|
|
13888
14395
|
];
|
|
13889
14396
|
return (index.h("div", null, res.map((r) => (index.h("div", null,
|
|
13890
14397
|
index.h("button", { onClick: r.onClick },
|
|
@@ -14105,10 +14612,10 @@ const defaultCustomizeProps = {
|
|
|
14105
14612
|
onCancel: noopFn,
|
|
14106
14613
|
};
|
|
14107
14614
|
const CustomizeUrlDefault = () => {
|
|
14108
|
-
return index.h(
|
|
14615
|
+
return index.h(useShareLink.ShareLinkView, Object.assign({}, defaultCustomizeProps));
|
|
14109
14616
|
};
|
|
14110
14617
|
const CustomizeUrlEditing = () => {
|
|
14111
|
-
return (index.h(
|
|
14618
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, {
|
|
14112
14619
|
...defaultCustomizeProps,
|
|
14113
14620
|
isEditing: true,
|
|
14114
14621
|
editValue: "nvoiwb18",
|
|
@@ -14116,7 +14623,7 @@ const CustomizeUrlEditing = () => {
|
|
|
14116
14623
|
})));
|
|
14117
14624
|
};
|
|
14118
14625
|
const CustomizeUrlCustomized = () => {
|
|
14119
|
-
return (index.h(
|
|
14626
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, {
|
|
14120
14627
|
...defaultCustomizeProps,
|
|
14121
14628
|
copyTextViewProps: {
|
|
14122
14629
|
...defaultCustomizeProps.copyTextViewProps,
|
|
@@ -14125,7 +14632,7 @@ const CustomizeUrlCustomized = () => {
|
|
|
14125
14632
|
})));
|
|
14126
14633
|
};
|
|
14127
14634
|
const CustomizeUrlLimitReached = () => {
|
|
14128
|
-
return (index.h(
|
|
14635
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, {
|
|
14129
14636
|
...defaultCustomizeProps,
|
|
14130
14637
|
copyTextViewProps: {
|
|
14131
14638
|
...defaultCustomizeProps.copyTextViewProps,
|
|
@@ -14136,13 +14643,13 @@ const CustomizeUrlLimitReached = () => {
|
|
|
14136
14643
|
})));
|
|
14137
14644
|
};
|
|
14138
14645
|
const CustomizeUrlDisabled = () => {
|
|
14139
|
-
return (index.h(
|
|
14646
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, {
|
|
14140
14647
|
...defaultCustomizeProps,
|
|
14141
14648
|
customizeDisabled: true,
|
|
14142
14649
|
})));
|
|
14143
14650
|
};
|
|
14144
14651
|
const CustomizeUrlValidationError = () => {
|
|
14145
|
-
return (index.h(
|
|
14652
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, {
|
|
14146
14653
|
...defaultCustomizeProps,
|
|
14147
14654
|
isEditing: true,
|
|
14148
14655
|
editValue: "nvoiwb18",
|
|
@@ -14155,7 +14662,7 @@ const CustomizeUrlValidationError = () => {
|
|
|
14155
14662
|
})));
|
|
14156
14663
|
};
|
|
14157
14664
|
const CustomizeUrlInvalidCharacters = () => {
|
|
14158
|
-
return (index.h(
|
|
14665
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, {
|
|
14159
14666
|
...defaultCustomizeProps,
|
|
14160
14667
|
isEditing: true,
|
|
14161
14668
|
editValue: "nvoiwb18",
|
|
@@ -14168,7 +14675,7 @@ const CustomizeUrlInvalidCharacters = () => {
|
|
|
14168
14675
|
})));
|
|
14169
14676
|
};
|
|
14170
14677
|
const CustomizeUrlProfanity = () => {
|
|
14171
|
-
return (index.h(
|
|
14678
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, {
|
|
14172
14679
|
...defaultCustomizeProps,
|
|
14173
14680
|
isEditing: true,
|
|
14174
14681
|
editValue: "nvoiwb18",
|
|
@@ -14181,7 +14688,7 @@ const CustomizeUrlProfanity = () => {
|
|
|
14181
14688
|
})));
|
|
14182
14689
|
};
|
|
14183
14690
|
const CustomizeUrlSaving = () => {
|
|
14184
|
-
return (index.h(
|
|
14691
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, {
|
|
14185
14692
|
...defaultCustomizeProps,
|
|
14186
14693
|
isEditing: true,
|
|
14187
14694
|
editValue: "bobtesterson",
|
|
@@ -14241,7 +14748,7 @@ function setupGraphQL$c() {
|
|
|
14241
14748
|
}
|
|
14242
14749
|
const BareBonesView$1 = createHookStory(() => {
|
|
14243
14750
|
setupGraphQL$c();
|
|
14244
|
-
const res =
|
|
14751
|
+
const res = useShareLink.useShareLink({
|
|
14245
14752
|
programId: "klip-referral-program",
|
|
14246
14753
|
tooltiplifespan: 0,
|
|
14247
14754
|
tooltiptext: "",
|
|
@@ -14253,7 +14760,7 @@ const BareBonesView$1 = createHookStory(() => {
|
|
|
14253
14760
|
});
|
|
14254
14761
|
const RegularView$2 = createHookStory(() => {
|
|
14255
14762
|
setupGraphQL$c();
|
|
14256
|
-
return (index.h(
|
|
14763
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, useShareLink.useShareLink({
|
|
14257
14764
|
programId: "klip-referral-program",
|
|
14258
14765
|
tooltiptext: "Copied to clipboard",
|
|
14259
14766
|
tooltiplifespan: 1000,
|
|
@@ -14261,7 +14768,7 @@ const RegularView$2 = createHookStory(() => {
|
|
|
14261
14768
|
});
|
|
14262
14769
|
const FastTooltip = createHookStory(() => {
|
|
14263
14770
|
setupGraphQL$c();
|
|
14264
|
-
return (index.h(
|
|
14771
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, useShareLink.useShareLink({
|
|
14265
14772
|
programId: "klip-referral-program",
|
|
14266
14773
|
tooltiptext: "Copied to clipboard",
|
|
14267
14774
|
tooltiplifespan: 500,
|
|
@@ -14269,7 +14776,7 @@ const FastTooltip = createHookStory(() => {
|
|
|
14269
14776
|
});
|
|
14270
14777
|
const CustomizeUrlEnabled = createHookStory(() => {
|
|
14271
14778
|
setupGraphQL$c();
|
|
14272
|
-
return (index.h(
|
|
14779
|
+
return (index.h(useShareLink.ShareLinkView, Object.assign({}, useShareLink.useShareLink({
|
|
14273
14780
|
programId: "klip-referral-program",
|
|
14274
14781
|
tooltiptext: "Copied to clipboard",
|
|
14275
14782
|
tooltiplifespan: 1000,
|
|
@@ -14869,6 +15376,31 @@ const scenarioTaskCard = "@author:derek\n@owner:kutay\nFeature: Task Card\n\n\t@
|
|
|
14869
15376
|
|
|
14870
15377
|
const scenarioProgressBar = "@author:kutay\n@owner:kutay\nFeature: The progress bar can be shown as a continuous line with progress and end goal. \n\n\t@motivating\n\t@ui\n\tScenario Outline: The progress bar displays a continuous bar with the goal represented by a present\n\t\tGiven a Task Card component\n\t\tAnd the users progress is <progress>\n\t\tAnd the task goal is \"500\"\n\t\tAnd the task is not repeatable\n\t\tThen I have <progressBar>\n\t\tAnd the <progressBar> shows <progress> with <unit> on the right\n\t\tAnd the circle on the progress bar is brand colour\n\t\tAnd the line behind the circle is brand colour\n\t\tAnd the line infront of the circle is grey\n\t\tAnd the gift icon has <color>\n\t\tAnd the gift icon shows \"500\" with <unit> below\n\t\tExamples:\n\t\t\t| progress | progressBar | unit | color |\n\t\t\t| 0 | ●――――――――――――――――――🎁 | $ | no |\n\t\t\t| 100 | ―――●―――――――――――――――🎁 | $ | no |\n\t\t\t| 500 | ―――――――――――――――――――🎁 | $ | yes |\n\t\t\t| 650 | ―――――――――――――――――――🎁 | $ | yes |\n\t\t\t| 1200 | ―――――――――――――――――――🎁 | $ | yes |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The progress bar can be displayed with steps instead of a continuous line\n\t\tGiven a Task Card component\n\t\tAnd the user progress is <progress>\n\t\tAnd the goal is \"5\"\n\t\tAnd steps are enabled\n\t\tThen I have <progressBar>\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\n\t\tAnd the steps behind the users progress are brand colour\n\t\tAnd the steps infront of the users progress are grey\n\t\tAnd the gift icon has <color>\n\t\tAnd the gift icon shows \"5\" below\n\t\tExamples:\n\t\t\t| progress | progressBar | color |\n\t\t\t| 0 | ―――○―――○―――○―――○―――🎁 | no |\n\t\t\t| 1 | ―――●―――○―――○―――○―――🎁 | no |\n\t\t\t| 5 | ―――●―――●―――●―――●―――🎁 | yes |\n\t\t\t| 7 | ―――●―――●―――●―――●―――🎁 | yes |\n\t\t\t| 12 | ―――●―――●―――●―――●―――🎁 | yes |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The continuous progress bar will continue to progress for repeatable rewards\n\t\tGiven a Task Card component\n\t\tAnd the user progress is <progress>\n\t\tAnd the goal is \"500\"\n\t\tAnd it is repeatable\n\t\tThen I have <progressBar>\n\t\tAnd the <progressBar> shows <progress> with <unit> to the right\n\t\tAnd the first <icon1> is <color1> with <text1> displayed below\n\t\tAnd the second <icon2> is <color2> with <text2> displayed below\n\t\tAnd the third <icon3> is <color3> with <text3> displayed below\n\t\tAnd the circle on the progress bar is brand colour\n\t\tAnd the line behind the circle is brand colour\n\t\tAnd the line infront of the circle is grey\n\t\tExamples:\n\t\t\t| progress | progressBar | unit | icon1 | color1 | text1 | icon2 | color2 | text 2 | icon3 | color3 | text 3 |\n\t\t\t| 250 | ――――●――――🎁―――――――🎁 | $ | NA | NA | NA | gift | greyscale | 500 | gift | greyscale | 1000 |\n\t\t\t| 500 | ―――――――――🎁―――――――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\n\t\t\t| 750 | ―――――――――🎁―――●―――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\n\t\t\t| 1000 | 🎁―――――――🎁―――――――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\n\t\t\t| 1250 | 🎁―――――――🎁―――●―――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The stepped progress bar will continue to progress for repeatable rewards\n\t\tGiven a Task Card component\n\t\tAnd the user progress is <progress>\n\t\tAnd the goal is \"5\"\n\t\tAnd steps are enabled\n\t\tAnd it is repeatable\n\t\tThen I have <progressBar>\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\n\t\tAnd the first <icon1> is <color1>\n\t\tAnd the second <icon2> is <color2>\n\t\tAnd the third <icon3> is <color3>\n\t\tAnd the steps behind the users progress are brand colour\n\t\tAnd the steps infront of the users progress are grey\n\t\tExamples:\n\t\t\t| progress | progressBar | icon1 | color1 | icon2 | color2 | icon3 | color3 |\n\t\t\t| 0 | ―――○―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\n\t\t\t| 1 | ―――●―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\n\t\t\t| 5 | ―――●―●―●―●―🎁―○―○―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\n\t\t\t| 7 | ―――●―●―●―●―🎁―●―●―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\n\t\t\t| 12 | 🎁―●―●―●―●―🎁―●―●―○―○―🎁 | gift | colorful | gift | colorful | gift | greyscale |";
|
|
14871
15378
|
|
|
15379
|
+
const ResizerStylesheet = `
|
|
15380
|
+
|
|
15381
|
+
:root{
|
|
15382
|
+
--checker-color-1: #ffffff00;
|
|
15383
|
+
--checker-color-2: #ffffff00;
|
|
15384
|
+
--checker-size: 7px;
|
|
15385
|
+
--checker-gradient: linear-gradient(45deg, var(--checker-color-1) 25%, transparent 25%, transparent 75%, var(--checker-color-1) 75%);
|
|
15386
|
+
}
|
|
15387
|
+
.resizer{
|
|
15388
|
+
resize: horizontal;
|
|
15389
|
+
border: 2px dashed gray;
|
|
15390
|
+
margin: -2px;
|
|
15391
|
+
padding: 12px;
|
|
15392
|
+
height: fit-content;
|
|
15393
|
+
overflow: hidden;
|
|
15394
|
+
width: 100%;
|
|
15395
|
+
}
|
|
15396
|
+
|
|
15397
|
+
.resizer{
|
|
15398
|
+
background-color: var(--checker-color-2);
|
|
15399
|
+
background-image: var(--checker-gradient), var(--checker-gradient);
|
|
15400
|
+
background-position: 0 0, var(--checker-size) var(--checker-size);
|
|
15401
|
+
background-size: calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
|
|
15402
|
+
}
|
|
15403
|
+
`;
|
|
14872
15404
|
const Resizer = (_, children) => (index.h("div", { class: "resizer" }, children));
|
|
14873
15405
|
|
|
14874
15406
|
const scenario$D = scenarioTaskCard + scenarioProgressBar;
|
|
@@ -14987,116 +15519,116 @@ const TaskCard = () => {
|
|
|
14987
15519
|
return (index.h("div", { style: storyFrame },
|
|
14988
15520
|
index.h(Resizer, null,
|
|
14989
15521
|
index.h("h4", null, "Not Repeatable"),
|
|
14990
|
-
index.h(
|
|
15522
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, description: "" }, states: { ...oneAction$1.states, progress: 0 } })),
|
|
14991
15523
|
index.h("h5", null),
|
|
14992
|
-
index.h(
|
|
15524
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, description: "" }, states: { ...coupleActions$1.states, progress: 0 } })),
|
|
14993
15525
|
index.h("h5", null),
|
|
14994
|
-
index.h(
|
|
15526
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, description: "" }, states: { ...manyActions$1.states, progress: 230 } }))),
|
|
14995
15527
|
index.h(Resizer, null,
|
|
14996
15528
|
index.h("h4", null, "Repeatable"),
|
|
14997
|
-
index.h(
|
|
15529
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, repeatable: true }, states: { ...oneAction$1.states, progress: 2 } })),
|
|
14998
15530
|
index.h("h5", null),
|
|
14999
|
-
index.h(
|
|
15531
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true }, states: { ...coupleActions$1.states, progress: 7 } })),
|
|
15000
15532
|
index.h("h5", null),
|
|
15001
|
-
index.h(
|
|
15533
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true }, states: { ...manyActions$1.states, progress: 650 } }))),
|
|
15002
15534
|
index.h(Resizer, null,
|
|
15003
15535
|
index.h("h4", null, "Complete"),
|
|
15004
|
-
index.h(
|
|
15536
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 1 } })),
|
|
15005
15537
|
index.h("h5", null),
|
|
15006
|
-
index.h(
|
|
15538
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 5 } })),
|
|
15007
15539
|
index.h("h5", null),
|
|
15008
|
-
index.h(
|
|
15540
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 500 } }))),
|
|
15009
15541
|
index.h(Resizer, null,
|
|
15010
15542
|
index.h("h4", null, "Unavailable"),
|
|
15011
|
-
index.h(
|
|
15543
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 0 } }, expireRepeat)),
|
|
15012
15544
|
index.h("h5", null),
|
|
15013
|
-
index.h(
|
|
15545
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 3 } }, expireRepeat)),
|
|
15014
15546
|
index.h("h5", null),
|
|
15015
|
-
index.h(
|
|
15547
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 250 } }, expireRepeat)))));
|
|
15016
15548
|
};
|
|
15017
15549
|
const TaskCardNotRepeatable = () => {
|
|
15018
15550
|
return (index.h("div", { style: storyFrame },
|
|
15019
15551
|
index.h("div", { style: resizable },
|
|
15020
15552
|
index.h("h4", null, "One Action"),
|
|
15021
|
-
index.h(
|
|
15553
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 0 } })),
|
|
15022
15554
|
index.h("h5", null),
|
|
15023
|
-
index.h(
|
|
15555
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 1 } })),
|
|
15024
15556
|
index.h("h5", null)),
|
|
15025
15557
|
index.h("div", { style: resizable },
|
|
15026
15558
|
index.h("h4", null, "A Couple Actions"),
|
|
15027
|
-
index.h(
|
|
15559
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 } })),
|
|
15028
15560
|
index.h("h5", null),
|
|
15029
|
-
index.h(
|
|
15561
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 5 } })),
|
|
15030
15562
|
index.h("h5", null)),
|
|
15031
15563
|
index.h("div", { style: resizable },
|
|
15032
15564
|
index.h("h4", null, "Many Actions"),
|
|
15033
|
-
index.h(
|
|
15565
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 230 } })),
|
|
15034
15566
|
index.h("h5", null),
|
|
15035
|
-
index.h(
|
|
15567
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 500 } })),
|
|
15036
15568
|
index.h("h5", null))));
|
|
15037
15569
|
};
|
|
15038
15570
|
const TaskCardRepeatable = () => {
|
|
15039
15571
|
return (index.h("div", { style: storyFrame },
|
|
15040
15572
|
index.h("div", { style: resizable },
|
|
15041
15573
|
index.h("h4", null, "One Action"),
|
|
15042
|
-
index.h(
|
|
15574
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, repeatable: true }, states: { ...oneAction$1.states, progress: 0 } })),
|
|
15043
15575
|
index.h("h5", null),
|
|
15044
|
-
index.h(
|
|
15576
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, repeatable: true }, states: { ...oneAction$1.states, progress: 1 } })),
|
|
15045
15577
|
index.h("h5", null)),
|
|
15046
15578
|
index.h("div", { style: resizable },
|
|
15047
15579
|
index.h("h4", null, "A Couple Actions"),
|
|
15048
|
-
index.h(
|
|
15580
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true }, states: { ...coupleActions$1.states, progress: 0 } })),
|
|
15049
15581
|
index.h("h5", null),
|
|
15050
|
-
index.h(
|
|
15582
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true }, states: { ...coupleActions$1.states, progress: 5 } })),
|
|
15051
15583
|
index.h("h5", null),
|
|
15052
|
-
index.h(
|
|
15584
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true }, states: { ...coupleActions$1.states, progress: 7 } })),
|
|
15053
15585
|
index.h("h5", null),
|
|
15054
|
-
index.h(
|
|
15586
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true }, states: { ...coupleActions$1.states, progress: 10 } })),
|
|
15055
15587
|
index.h("h5", null)),
|
|
15056
15588
|
index.h("div", { style: resizable },
|
|
15057
15589
|
index.h("h4", null, "Many Actions"),
|
|
15058
|
-
index.h(
|
|
15590
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true }, states: { ...manyActions$1.states, progress: 0 } })),
|
|
15059
15591
|
index.h("h5", null),
|
|
15060
|
-
index.h(
|
|
15592
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true }, states: { ...manyActions$1.states, progress: 500 } })),
|
|
15061
15593
|
index.h("h5", null),
|
|
15062
|
-
index.h(
|
|
15594
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true }, states: { ...manyActions$1.states, progress: 650 } })),
|
|
15063
15595
|
index.h("h5", null),
|
|
15064
|
-
index.h(
|
|
15596
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true }, states: { ...manyActions$1.states, progress: 1000 } })),
|
|
15065
15597
|
index.h("h5", null))));
|
|
15066
15598
|
};
|
|
15067
15599
|
const TaskCardRepeatableFinite = () => {
|
|
15068
15600
|
return (index.h("div", { style: storyFrame },
|
|
15069
15601
|
index.h("div", { style: resizable },
|
|
15070
15602
|
index.h("h4", null, "One Action"),
|
|
15071
|
-
index.h(
|
|
15603
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, repeatable: true, finite: 2 }, states: { ...oneAction$1.states, progress: 0 } })),
|
|
15072
15604
|
index.h("h5", null),
|
|
15073
|
-
index.h(
|
|
15605
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, repeatable: true, finite: 2 }, states: { ...oneAction$1.states, progress: 1 } })),
|
|
15074
15606
|
index.h("h5", null),
|
|
15075
|
-
index.h(
|
|
15607
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, repeatable: true, finite: 2 }, states: { ...oneAction$1.states, progress: 2 } })),
|
|
15076
15608
|
index.h("h5", null)),
|
|
15077
15609
|
index.h("div", { style: resizable },
|
|
15078
15610
|
index.h("h4", null, "A Couple Actions"),
|
|
15079
|
-
index.h(
|
|
15611
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true, finite: 2 }, states: { ...coupleActions$1.states, progress: 2 } })),
|
|
15080
15612
|
index.h("h5", null),
|
|
15081
|
-
index.h(
|
|
15613
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true, finite: 2 }, states: { ...coupleActions$1.states, progress: 5 } })),
|
|
15082
15614
|
index.h("h5", null),
|
|
15083
|
-
index.h(
|
|
15615
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true, finite: 2 }, states: { ...coupleActions$1.states, progress: 10 } })),
|
|
15084
15616
|
index.h("h5", null),
|
|
15085
|
-
index.h(
|
|
15617
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true, finite: 3 }, states: { ...coupleActions$1.states, progress: 12 } })),
|
|
15086
15618
|
index.h("h5", null),
|
|
15087
|
-
index.h(
|
|
15619
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, repeatable: true, finite: 3 }, states: { ...coupleActions$1.states, progress: 15 } })),
|
|
15088
15620
|
index.h("h5", null)),
|
|
15089
15621
|
index.h("div", { style: resizable },
|
|
15090
15622
|
index.h("h4", null, "Many Actions"),
|
|
15091
|
-
index.h(
|
|
15623
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true, finite: 2 }, states: { ...manyActions$1.states, progress: 200 } })),
|
|
15092
15624
|
index.h("h5", null),
|
|
15093
|
-
index.h(
|
|
15625
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true, finite: 3 }, states: { ...manyActions$1.states, progress: 500 } })),
|
|
15094
15626
|
index.h("h5", null),
|
|
15095
|
-
index.h(
|
|
15627
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true, finite: 2 }, states: { ...manyActions$1.states, progress: 1000 } })),
|
|
15096
15628
|
index.h("h5", null),
|
|
15097
|
-
index.h(
|
|
15629
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true, finite: 3 }, states: { ...manyActions$1.states, progress: 1200 } })),
|
|
15098
15630
|
index.h("h5", null),
|
|
15099
|
-
index.h(
|
|
15631
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, repeatable: true, finite: 3 }, states: { ...manyActions$1.states, progress: 1500 } })),
|
|
15100
15632
|
index.h("h5", null))));
|
|
15101
15633
|
};
|
|
15102
15634
|
const TaskCardEndDate = () => {
|
|
@@ -15109,27 +15641,27 @@ const TaskCardEndDate = () => {
|
|
|
15109
15641
|
return (index.h("div", { style: storyFrame },
|
|
15110
15642
|
index.h("div", { style: resizable },
|
|
15111
15643
|
index.h("h4", null, "One Action"),
|
|
15112
|
-
index.h(
|
|
15644
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, ...expire } })),
|
|
15113
15645
|
index.h("h5", null),
|
|
15114
|
-
index.h(
|
|
15646
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, ...expireRepeat } })),
|
|
15115
15647
|
index.h("h5", null),
|
|
15116
|
-
index.h(
|
|
15648
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, ...expireRepeat }, states: { ...oneAction$1.states, progress: 1 } })),
|
|
15117
15649
|
index.h("h5", null)),
|
|
15118
15650
|
index.h("div", { style: resizable },
|
|
15119
15651
|
index.h("h4", null, "A Couple Actions"),
|
|
15120
|
-
index.h(
|
|
15652
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...coupleActions$1.content, ...expire } })),
|
|
15121
15653
|
index.h("h5", null),
|
|
15122
|
-
index.h(
|
|
15654
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...coupleActions$1.content, ...expireRepeat } })),
|
|
15123
15655
|
index.h("h5", null),
|
|
15124
|
-
index.h(
|
|
15656
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...coupleActions$1.content, ...expireRepeat }, states: { ...coupleActions$1.states, progress: 5 } })),
|
|
15125
15657
|
index.h("h5", null)),
|
|
15126
15658
|
index.h("div", { style: resizable },
|
|
15127
15659
|
index.h("h4", null, "Many Actions"),
|
|
15128
|
-
index.h(
|
|
15660
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...manyActions$1.content, ...expire } })),
|
|
15129
15661
|
index.h("h5", null),
|
|
15130
|
-
index.h(
|
|
15662
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...manyActions$1.content, ...expireRepeat } })),
|
|
15131
15663
|
index.h("h5", null),
|
|
15132
|
-
index.h(
|
|
15664
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...manyActions$1.content, ...expireRepeat }, states: { ...manyActions$1.states, progress: 1000 } })),
|
|
15133
15665
|
index.h("h5", null))));
|
|
15134
15666
|
};
|
|
15135
15667
|
const TaskCardLoading = () => {
|
|
@@ -15139,26 +15671,26 @@ const TaskCardLoading = () => {
|
|
|
15139
15671
|
return (index.h("div", { style: storyFrame },
|
|
15140
15672
|
index.h("div", { style: resizable },
|
|
15141
15673
|
index.h("h4", null, "One Action"),
|
|
15142
|
-
index.h(
|
|
15674
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, loading)),
|
|
15143
15675
|
" ",
|
|
15144
15676
|
index.h("h5", null),
|
|
15145
|
-
index.h(
|
|
15677
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, loading)),
|
|
15146
15678
|
" ",
|
|
15147
15679
|
index.h("h5", null)),
|
|
15148
15680
|
index.h("div", { style: resizable },
|
|
15149
15681
|
index.h("h4", null, "A Couple Actions"),
|
|
15150
|
-
index.h(
|
|
15682
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, loading)),
|
|
15151
15683
|
" ",
|
|
15152
15684
|
index.h("h5", null),
|
|
15153
|
-
index.h(
|
|
15685
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, loading)),
|
|
15154
15686
|
" ",
|
|
15155
15687
|
index.h("h5", null)),
|
|
15156
15688
|
index.h("div", { style: resizable },
|
|
15157
15689
|
index.h("h4", null, "Many Actions"),
|
|
15158
|
-
index.h(
|
|
15690
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, loading)),
|
|
15159
15691
|
" ",
|
|
15160
15692
|
index.h("h5", null),
|
|
15161
|
-
index.h(
|
|
15693
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, loading)),
|
|
15162
15694
|
" ",
|
|
15163
15695
|
index.h("h5", null))));
|
|
15164
15696
|
};
|
|
@@ -15172,33 +15704,33 @@ const TaskCardNotStarted = () => {
|
|
|
15172
15704
|
return (index.h("div", { style: storyFrame },
|
|
15173
15705
|
index.h("div", { style: resizable },
|
|
15174
15706
|
index.h("h4", null, "One Action"),
|
|
15175
|
-
index.h(
|
|
15707
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 0 }, content: { ...oneAction$1.content, ...expire } })),
|
|
15176
15708
|
index.h("h5", null),
|
|
15177
|
-
index.h(
|
|
15709
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 1 }, content: { ...oneAction$1.content, ...expire } })),
|
|
15178
15710
|
index.h("h5", null),
|
|
15179
|
-
index.h(
|
|
15711
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 0 }, content: { ...oneAction$1.content, ...expireRepeat } })),
|
|
15180
15712
|
index.h("h5", null),
|
|
15181
|
-
index.h(
|
|
15713
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 1 }, content: { ...oneAction$1.content, ...expireRepeat } })),
|
|
15182
15714
|
index.h("h5", null)),
|
|
15183
15715
|
index.h("div", { style: resizable },
|
|
15184
15716
|
index.h("h4", null, "A Couple Actions"),
|
|
15185
|
-
index.h(
|
|
15717
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 }, content: { ...coupleActions$1.content, ...expire } })),
|
|
15186
15718
|
index.h("h5", null),
|
|
15187
|
-
index.h(
|
|
15719
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 }, content: { ...coupleActions$1.content, ...expire } })),
|
|
15188
15720
|
index.h("h5", null),
|
|
15189
|
-
index.h(
|
|
15721
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 }, content: { ...coupleActions$1.content, ...expireRepeat } })),
|
|
15190
15722
|
index.h("h5", null),
|
|
15191
|
-
index.h(
|
|
15723
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 }, content: { ...coupleActions$1.content, ...expireRepeat } })),
|
|
15192
15724
|
index.h("h5", null)),
|
|
15193
15725
|
index.h("div", { style: resizable },
|
|
15194
15726
|
index.h("h4", null, "Many Actions"),
|
|
15195
|
-
index.h(
|
|
15727
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 100 }, content: { ...manyActions$1.content, ...expire } })),
|
|
15196
15728
|
index.h("h5", null),
|
|
15197
|
-
index.h(
|
|
15729
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 500 }, content: { ...manyActions$1.content, ...expire } })),
|
|
15198
15730
|
index.h("h5", null),
|
|
15199
|
-
index.h(
|
|
15731
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 100 }, content: { ...manyActions$1.content, ...expireRepeat } })),
|
|
15200
15732
|
index.h("h5", null),
|
|
15201
|
-
index.h(
|
|
15733
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 500 }, content: { ...manyActions$1.content, ...expireRepeat } })),
|
|
15202
15734
|
index.h("h5", null))));
|
|
15203
15735
|
};
|
|
15204
15736
|
const TaskCardEnded = () => {
|
|
@@ -15211,33 +15743,33 @@ const TaskCardEnded = () => {
|
|
|
15211
15743
|
return (index.h("div", { style: storyFrame },
|
|
15212
15744
|
index.h("div", { style: resizable },
|
|
15213
15745
|
index.h("h4", null, "One Action"),
|
|
15214
|
-
index.h(
|
|
15746
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 0 }, content: { ...oneAction$1.content, ...expire } })),
|
|
15215
15747
|
index.h("h5", null),
|
|
15216
|
-
index.h(
|
|
15748
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 1 }, content: { ...oneAction$1.content, ...expire } })),
|
|
15217
15749
|
index.h("h5", null),
|
|
15218
|
-
index.h(
|
|
15750
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 0 }, content: { ...oneAction$1.content, ...expireRepeat } })),
|
|
15219
15751
|
index.h("h5", null),
|
|
15220
|
-
index.h(
|
|
15752
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { states: { ...oneAction$1.states, progress: 1 }, content: { ...oneAction$1.content, ...expireRepeat } })),
|
|
15221
15753
|
index.h("h5", null)),
|
|
15222
15754
|
index.h("div", { style: resizable },
|
|
15223
15755
|
index.h("h4", null, "A Couple Actions"),
|
|
15224
|
-
index.h(
|
|
15756
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 }, content: { ...coupleActions$1.content, ...expire } })),
|
|
15225
15757
|
index.h("h5", null),
|
|
15226
|
-
index.h(
|
|
15758
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 }, content: { ...coupleActions$1.content, ...expire } })),
|
|
15227
15759
|
index.h("h5", null),
|
|
15228
|
-
index.h(
|
|
15760
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 }, content: { ...coupleActions$1.content, ...expireRepeat } })),
|
|
15229
15761
|
index.h("h5", null),
|
|
15230
|
-
index.h(
|
|
15762
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { states: { ...coupleActions$1.states, progress: 1 }, content: { ...coupleActions$1.content, ...expireRepeat } })),
|
|
15231
15763
|
index.h("h5", null)),
|
|
15232
15764
|
index.h("div", { style: resizable },
|
|
15233
15765
|
index.h("h4", null, "Many Actions"),
|
|
15234
|
-
index.h(
|
|
15766
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 100 }, content: { ...manyActions$1.content, ...expire } })),
|
|
15235
15767
|
index.h("h5", null),
|
|
15236
|
-
index.h(
|
|
15768
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 500 }, content: { ...manyActions$1.content, ...expire } })),
|
|
15237
15769
|
index.h("h5", null),
|
|
15238
|
-
index.h(
|
|
15770
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 100 }, content: { ...manyActions$1.content, ...expireRepeat } })),
|
|
15239
15771
|
index.h("h5", null),
|
|
15240
|
-
index.h(
|
|
15772
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { states: { ...manyActions$1.states, progress: 500 }, content: { ...manyActions$1.content, ...expireRepeat } })),
|
|
15241
15773
|
index.h("h5", null))));
|
|
15242
15774
|
};
|
|
15243
15775
|
const TaskCardButtonHidden = () => {
|
|
@@ -15248,48 +15780,48 @@ const TaskCardButtonHidden = () => {
|
|
|
15248
15780
|
return (index.h("div", { style: storyFrame },
|
|
15249
15781
|
index.h(Resizer, null,
|
|
15250
15782
|
index.h("h4", null, "Not Repeatable"),
|
|
15251
|
-
index.h(
|
|
15783
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, description: "", hideButton: true }, states: { ...oneAction$1.states, progress: 0 } })),
|
|
15252
15784
|
index.h("h5", null),
|
|
15253
|
-
index.h(
|
|
15785
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: {
|
|
15254
15786
|
...coupleActions$1.content,
|
|
15255
15787
|
description: "",
|
|
15256
15788
|
hideButton: true,
|
|
15257
15789
|
}, states: { ...coupleActions$1.states, progress: 0 } })),
|
|
15258
15790
|
index.h("h5", null),
|
|
15259
|
-
index.h(
|
|
15791
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: {
|
|
15260
15792
|
...manyActions$1.content,
|
|
15261
15793
|
description: "",
|
|
15262
15794
|
hideButton: true,
|
|
15263
15795
|
}, states: { ...manyActions$1.states, progress: 230 } }))),
|
|
15264
15796
|
index.h(Resizer, null,
|
|
15265
15797
|
index.h("h4", null, "Repeatable"),
|
|
15266
|
-
index.h(
|
|
15798
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, repeatable: true, hideButton: true }, states: { ...oneAction$1.states, progress: 2 } })),
|
|
15267
15799
|
index.h("h5", null),
|
|
15268
|
-
index.h(
|
|
15800
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: {
|
|
15269
15801
|
...coupleActions$1.content,
|
|
15270
15802
|
repeatable: true,
|
|
15271
15803
|
hideButton: true,
|
|
15272
15804
|
}, states: { ...coupleActions$1.states, progress: 7 } })),
|
|
15273
15805
|
index.h("h5", null),
|
|
15274
|
-
index.h(
|
|
15806
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: {
|
|
15275
15807
|
...manyActions$1.content,
|
|
15276
15808
|
repeatable: true,
|
|
15277
15809
|
hideButton: true,
|
|
15278
15810
|
}, states: { ...manyActions$1.states, progress: 650 } }))),
|
|
15279
15811
|
index.h(Resizer, null,
|
|
15280
15812
|
index.h("h4", null, "Complete"),
|
|
15281
|
-
index.h(
|
|
15813
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, hideButton: true }, states: { ...oneAction$1.states, progress: 1 } })),
|
|
15282
15814
|
index.h("h5", null),
|
|
15283
|
-
index.h(
|
|
15815
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, hideButton: true }, states: { ...coupleActions$1.states, progress: 5 } })),
|
|
15284
15816
|
index.h("h5", null),
|
|
15285
|
-
index.h(
|
|
15817
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, hideButton: true }, states: { ...manyActions$1.states, progress: 500 } }))),
|
|
15286
15818
|
index.h(Resizer, null,
|
|
15287
15819
|
index.h("h4", null, "Unavailable"),
|
|
15288
|
-
index.h(
|
|
15820
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1, { content: { ...oneAction$1.content, hideButton: true }, states: { ...oneAction$1.states, progress: 0 } }, expireRepeat)),
|
|
15289
15821
|
index.h("h5", null),
|
|
15290
|
-
index.h(
|
|
15822
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1, { content: { ...coupleActions$1.content, hideButton: true }, states: { ...coupleActions$1.states, progress: 3 } }, expireRepeat)),
|
|
15291
15823
|
index.h("h5", null),
|
|
15292
|
-
index.h(
|
|
15824
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1, { content: { ...manyActions$1.content, hideButton: true }, states: { ...manyActions$1.states, progress: 250 } }, expireRepeat)))));
|
|
15293
15825
|
};
|
|
15294
15826
|
const ProgressBar = () => {
|
|
15295
15827
|
const props = {
|
|
@@ -15298,7 +15830,7 @@ const ProgressBar = () => {
|
|
|
15298
15830
|
progressBarUnit: "$",
|
|
15299
15831
|
};
|
|
15300
15832
|
return (index.h("div", null,
|
|
15301
|
-
index.h(MatrixStory, { matrix: { progress: [0, 100, 500, 650, 1200] }, props: props, Component:
|
|
15833
|
+
index.h(MatrixStory, { matrix: { progress: [0, 100, 500, 650, 1200] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
15302
15834
|
};
|
|
15303
15835
|
const ProgressBarSteps = () => {
|
|
15304
15836
|
const props = {
|
|
@@ -15307,7 +15839,7 @@ const ProgressBarSteps = () => {
|
|
|
15307
15839
|
goal: 5,
|
|
15308
15840
|
};
|
|
15309
15841
|
return (index.h("div", null,
|
|
15310
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component:
|
|
15842
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
15311
15843
|
};
|
|
15312
15844
|
const ProgressBarRepeatable = () => {
|
|
15313
15845
|
const props = {
|
|
@@ -15317,7 +15849,7 @@ const ProgressBarRepeatable = () => {
|
|
|
15317
15849
|
repeatable: true,
|
|
15318
15850
|
};
|
|
15319
15851
|
return (index.h("div", null,
|
|
15320
|
-
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component:
|
|
15852
|
+
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
15321
15853
|
};
|
|
15322
15854
|
const ProgressBarStepsRepeatable = () => {
|
|
15323
15855
|
const props = {
|
|
@@ -15327,7 +15859,7 @@ const ProgressBarStepsRepeatable = () => {
|
|
|
15327
15859
|
repeatable: true,
|
|
15328
15860
|
};
|
|
15329
15861
|
return (index.h("div", null,
|
|
15330
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component:
|
|
15862
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
15331
15863
|
};
|
|
15332
15864
|
const ProgressBarFinite = () => {
|
|
15333
15865
|
const props = {
|
|
@@ -15338,7 +15870,7 @@ const ProgressBarFinite = () => {
|
|
|
15338
15870
|
finite: 2,
|
|
15339
15871
|
};
|
|
15340
15872
|
return (index.h("div", null,
|
|
15341
|
-
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component:
|
|
15873
|
+
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
15342
15874
|
};
|
|
15343
15875
|
const ProgressBarStepsFinite = () => {
|
|
15344
15876
|
const props = {
|
|
@@ -15349,7 +15881,7 @@ const ProgressBarStepsFinite = () => {
|
|
|
15349
15881
|
finite: 2,
|
|
15350
15882
|
};
|
|
15351
15883
|
return (index.h("div", null,
|
|
15352
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 10, 12] }, props: props, Component:
|
|
15884
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 10, 12] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
15353
15885
|
};
|
|
15354
15886
|
|
|
15355
15887
|
const TaskCard$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -15401,10 +15933,22 @@ function setupGraphQL$d() {
|
|
|
15401
15933
|
}
|
|
15402
15934
|
const TaskCard$2 = createHookStory(() => {
|
|
15403
15935
|
setupGraphQL$d();
|
|
15936
|
+
const props = {
|
|
15937
|
+
listType: "",
|
|
15938
|
+
render: () => { },
|
|
15939
|
+
disconnectedCallback: () => { },
|
|
15940
|
+
ignored: true,
|
|
15941
|
+
};
|
|
15404
15942
|
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 }));
|
|
15405
15943
|
});
|
|
15406
15944
|
const TaskCardFeed = createHookStory(() => {
|
|
15407
15945
|
setupGraphQL$d();
|
|
15946
|
+
const props = {
|
|
15947
|
+
listType: "",
|
|
15948
|
+
render: () => { },
|
|
15949
|
+
disconnectedCallback: () => { },
|
|
15950
|
+
ignored: true,
|
|
15951
|
+
};
|
|
15408
15952
|
return (index.h("sqm-card-feed", null,
|
|
15409
15953
|
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" }),
|
|
15410
15954
|
index.h("sqb-program-section", { "program-id": "klip-loyalty" },
|
|
@@ -15434,13 +15978,13 @@ const UseTaskCard = /*#__PURE__*/Object.freeze({
|
|
|
15434
15978
|
const ProgressBar_stories = {
|
|
15435
15979
|
title: "Components/Progress Bar",
|
|
15436
15980
|
};
|
|
15437
|
-
const defaultProps$
|
|
15981
|
+
const defaultProps$q = {
|
|
15438
15982
|
progress: 2,
|
|
15439
15983
|
goal: 4,
|
|
15440
15984
|
steps: true,
|
|
15441
15985
|
};
|
|
15442
15986
|
const TaxAndPayoutsProgressBar = () => {
|
|
15443
|
-
return index.h(
|
|
15987
|
+
return index.h(RewardExchangeListData.ProgressBar, Object.assign({}, defaultProps$q, { stageCount: 4, currentStage: 2 }));
|
|
15444
15988
|
};
|
|
15445
15989
|
|
|
15446
15990
|
const ProgressBar$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -15816,35 +16360,35 @@ const UserName = /*#__PURE__*/Object.freeze({
|
|
|
15816
16360
|
const WidgetCodeVerification_stories = {
|
|
15817
16361
|
title: "Components/Widget Code Verification",
|
|
15818
16362
|
};
|
|
15819
|
-
const defaultProps$
|
|
16363
|
+
const defaultProps$r = {
|
|
15820
16364
|
initialiseLoading: false,
|
|
15821
16365
|
email: "testemail@example.com",
|
|
15822
16366
|
loading: false,
|
|
15823
16367
|
verifyFailed: false,
|
|
15824
16368
|
emailResent: false,
|
|
15825
16369
|
};
|
|
15826
|
-
const Default$o = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$
|
|
16370
|
+
const Default$o = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$r } }));
|
|
15827
16371
|
const InitialLoading = () => (index.h("sqm-code-verification", { demoData: {
|
|
15828
16372
|
states: {
|
|
15829
|
-
...defaultProps$
|
|
16373
|
+
...defaultProps$r,
|
|
15830
16374
|
initialiseLoading: true,
|
|
15831
16375
|
},
|
|
15832
16376
|
} }));
|
|
15833
16377
|
const Loading$a = () => (index.h("sqm-code-verification", { demoData: {
|
|
15834
16378
|
states: {
|
|
15835
|
-
...defaultProps$
|
|
16379
|
+
...defaultProps$r,
|
|
15836
16380
|
loading: true,
|
|
15837
16381
|
},
|
|
15838
16382
|
} }));
|
|
15839
16383
|
const CodeResent = () => (index.h("sqm-code-verification", { demoData: {
|
|
15840
16384
|
states: {
|
|
15841
|
-
...defaultProps$
|
|
16385
|
+
...defaultProps$r,
|
|
15842
16386
|
emailResent: true,
|
|
15843
16387
|
},
|
|
15844
16388
|
} }));
|
|
15845
16389
|
const VerificationFailed = () => (index.h("sqm-code-verification", { demoData: {
|
|
15846
16390
|
states: {
|
|
15847
|
-
...defaultProps$
|
|
16391
|
+
...defaultProps$r,
|
|
15848
16392
|
verifyFailed: true,
|
|
15849
16393
|
},
|
|
15850
16394
|
} }));
|
|
@@ -15862,7 +16406,7 @@ const WidgetCodeVerification = /*#__PURE__*/Object.freeze({
|
|
|
15862
16406
|
const WidgetEmailVerification_stories = {
|
|
15863
16407
|
title: "Components/Widget Email Verification",
|
|
15864
16408
|
};
|
|
15865
|
-
const defaultProps$
|
|
16409
|
+
const defaultProps$s = {
|
|
15866
16410
|
email: "",
|
|
15867
16411
|
error: false,
|
|
15868
16412
|
loading: false,
|
|
@@ -15877,19 +16421,19 @@ const EmailIsPrefilled = () => (index.h("div", null,
|
|
|
15877
16421
|
index.h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
|
|
15878
16422
|
index.h("sqm-email-verification", { demoData: {
|
|
15879
16423
|
states: {
|
|
15880
|
-
...defaultProps$
|
|
16424
|
+
...defaultProps$s,
|
|
15881
16425
|
email: "test@example.com",
|
|
15882
16426
|
},
|
|
15883
16427
|
} })));
|
|
15884
16428
|
const Loading$b = () => (index.h("sqm-email-verification", { demoData: {
|
|
15885
16429
|
states: {
|
|
15886
|
-
...defaultProps$
|
|
16430
|
+
...defaultProps$s,
|
|
15887
16431
|
initialLoading: true,
|
|
15888
16432
|
},
|
|
15889
16433
|
} }));
|
|
15890
16434
|
const SaveLoading = () => (index.h("sqm-email-verification", { demoData: {
|
|
15891
16435
|
states: {
|
|
15892
|
-
...defaultProps$
|
|
16436
|
+
...defaultProps$s,
|
|
15893
16437
|
loading: true,
|
|
15894
16438
|
},
|
|
15895
16439
|
} }));
|
|
@@ -15900,19 +16444,19 @@ const WithHeader$1 = () => (index.h("div", null,
|
|
|
15900
16444
|
index.h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
|
|
15901
16445
|
index.h("sqm-email-verification", { demoData: {
|
|
15902
16446
|
states: {
|
|
15903
|
-
...defaultProps$
|
|
16447
|
+
...defaultProps$s,
|
|
15904
16448
|
email: "test@example.com",
|
|
15905
16449
|
},
|
|
15906
16450
|
} })));
|
|
15907
16451
|
const InvalidEmail = () => (index.h("sqm-email-verification", { demoData: {
|
|
15908
16452
|
states: {
|
|
15909
|
-
...defaultProps$
|
|
16453
|
+
...defaultProps$s,
|
|
15910
16454
|
error: true,
|
|
15911
16455
|
},
|
|
15912
16456
|
} }));
|
|
15913
16457
|
const SendCodeError = () => (index.h("sqm-email-verification", { demoData: {
|
|
15914
16458
|
states: {
|
|
15915
|
-
...defaultProps$
|
|
16459
|
+
...defaultProps$s,
|
|
15916
16460
|
sendCodeError: true,
|
|
15917
16461
|
},
|
|
15918
16462
|
} }));
|
|
@@ -16469,7 +17013,7 @@ const stepTwoProps = {
|
|
|
16469
17013
|
setCountrySearch: (c) => console.log(c),
|
|
16470
17014
|
},
|
|
16471
17015
|
data: {
|
|
16472
|
-
esRegions:
|
|
17016
|
+
esRegions: subregions.INDIRECT_TAX_SPAIN_REGIONS,
|
|
16473
17017
|
countries: [
|
|
16474
17018
|
{
|
|
16475
17019
|
countryCode: "CA",
|
|
@@ -16506,7 +17050,7 @@ const stepTwoProps = {
|
|
|
16506
17050
|
displayName: "United States",
|
|
16507
17051
|
},
|
|
16508
17052
|
],
|
|
16509
|
-
provinces:
|
|
17053
|
+
provinces: subregions.INDIRECT_TAX_PROVINCES,
|
|
16510
17054
|
},
|
|
16511
17055
|
slotProps: {
|
|
16512
17056
|
formState: {
|
|
@@ -16584,7 +17128,7 @@ const dashboardProps = {
|
|
|
16584
17128
|
disabled: false,
|
|
16585
17129
|
status: "ACTIVE",
|
|
16586
17130
|
documentType: "W9",
|
|
16587
|
-
documentTypeString:
|
|
17131
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
16588
17132
|
dateSubmitted: "Jan 18th, 2025",
|
|
16589
17133
|
noFormNeeded: false,
|
|
16590
17134
|
country: "United Kingdom",
|
|
@@ -16602,7 +17146,7 @@ const dashboardProps = {
|
|
|
16602
17146
|
},
|
|
16603
17147
|
};
|
|
16604
17148
|
const GeneralLoadingView = () => {
|
|
16605
|
-
return index.h(
|
|
17149
|
+
return index.h(LoadingView.LoadingView, null);
|
|
16606
17150
|
};
|
|
16607
17151
|
const GeneralErrorView = () => {
|
|
16608
17152
|
return (index.h("sqm-form-message", { type: "error" },
|
|
@@ -16941,7 +17485,7 @@ const StepThreeWithDocusign = () => {
|
|
|
16941
17485
|
return (index.h("sqm-docusign-form", { demoData: {
|
|
16942
17486
|
states: {
|
|
16943
17487
|
documentType: "W9",
|
|
16944
|
-
documentTypeString:
|
|
17488
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
16945
17489
|
...docusignFormProps.states,
|
|
16946
17490
|
},
|
|
16947
17491
|
} }));
|
|
@@ -16951,7 +17495,7 @@ const StepThreeWithDocusignW8BEN = () => {
|
|
|
16951
17495
|
states: {
|
|
16952
17496
|
...docusignFormProps.states,
|
|
16953
17497
|
documentType: "W8BEN",
|
|
16954
|
-
documentTypeString:
|
|
17498
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
16955
17499
|
},
|
|
16956
17500
|
} }));
|
|
16957
17501
|
};
|
|
@@ -16960,7 +17504,7 @@ const StepThreeWithDocusignW8BENE = () => {
|
|
|
16960
17504
|
states: {
|
|
16961
17505
|
...docusignFormProps.states,
|
|
16962
17506
|
documentType: "W8BENE",
|
|
16963
|
-
documentTypeString:
|
|
17507
|
+
documentTypeString: utils.taxTypeToName("W8BENE"),
|
|
16964
17508
|
formState: {
|
|
16965
17509
|
taxFormExpired: false,
|
|
16966
17510
|
participantType: "businessEntity",
|
|
@@ -17056,7 +17600,7 @@ const StepThreeWithDocusignModalOpen = () => {
|
|
|
17056
17600
|
return (index.h("sqm-docusign-form", { demoData: {
|
|
17057
17601
|
states: {
|
|
17058
17602
|
documentType: "W9",
|
|
17059
|
-
documentTypeString:
|
|
17603
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17060
17604
|
...docusignFormProps.states,
|
|
17061
17605
|
showModal: true,
|
|
17062
17606
|
},
|
|
@@ -17129,7 +17673,7 @@ const TaxAndCashDashboardActiveW8BENForm = () => {
|
|
|
17129
17673
|
noFormNeeded: false,
|
|
17130
17674
|
canEditPayoutInfo: true,
|
|
17131
17675
|
documentType: "W8BEN",
|
|
17132
|
-
documentTypeString:
|
|
17676
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17133
17677
|
country: "United Kingdom",
|
|
17134
17678
|
indirectTaxType: "VAT",
|
|
17135
17679
|
indirectTaxNumber: "123456",
|
|
@@ -17147,7 +17691,7 @@ const TaxAndCashDashboardActiveW8BENEForm = () => {
|
|
|
17147
17691
|
noFormNeeded: false,
|
|
17148
17692
|
canEditPayoutInfo: true,
|
|
17149
17693
|
documentType: "W8BENE",
|
|
17150
|
-
documentTypeString:
|
|
17694
|
+
documentTypeString: utils.taxTypeToName("W8BENE"),
|
|
17151
17695
|
country: "United Kingdom",
|
|
17152
17696
|
indirectTaxType: "VAT",
|
|
17153
17697
|
indirectTaxNumber: "123456",
|
|
@@ -17165,7 +17709,7 @@ const TaxAndCashDashboardNotActiveW9Form = () => {
|
|
|
17165
17709
|
canEditPayoutInfo: true,
|
|
17166
17710
|
status: "INACTIVE",
|
|
17167
17711
|
documentType: "W9",
|
|
17168
|
-
documentTypeString:
|
|
17712
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17169
17713
|
country: "United Kingdom",
|
|
17170
17714
|
indirectTaxType: "VAT",
|
|
17171
17715
|
indirectTaxNumber: "123456",
|
|
@@ -17185,7 +17729,7 @@ const TaxAndCashDashboardNotActiveW8Form = () => {
|
|
|
17185
17729
|
canEditPayoutInfo: true,
|
|
17186
17730
|
status: "INACTIVE",
|
|
17187
17731
|
documentType: "W8BEN",
|
|
17188
|
-
documentTypeString:
|
|
17732
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17189
17733
|
country: "United Kingdom",
|
|
17190
17734
|
indirectTaxType: "VAT",
|
|
17191
17735
|
indirectTaxNumber: "123456",
|
|
@@ -17222,7 +17766,7 @@ const TaxAndCashDashboardNotVerifiedW9Form = () => {
|
|
|
17222
17766
|
disabled: false,
|
|
17223
17767
|
status: "NOT_VERIFIED",
|
|
17224
17768
|
documentType: "W9",
|
|
17225
|
-
documentTypeString:
|
|
17769
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17226
17770
|
noFormNeeded: false,
|
|
17227
17771
|
country: "United States",
|
|
17228
17772
|
indirectTaxType: "VAT",
|
|
@@ -17243,7 +17787,7 @@ const TaxAndCashDashboardNotVerifiedW8BENForm = () => {
|
|
|
17243
17787
|
disabled: false,
|
|
17244
17788
|
status: "NOT_VERIFIED",
|
|
17245
17789
|
documentType: "W8BEN",
|
|
17246
|
-
documentTypeString:
|
|
17790
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17247
17791
|
dateSubmitted: "Jan 18th, 2025",
|
|
17248
17792
|
noFormNeeded: false,
|
|
17249
17793
|
country: "United Kingdom",
|
|
@@ -17264,7 +17808,7 @@ const TaxAndCashDashboardNotVerifiedW8BENEForm = () => {
|
|
|
17264
17808
|
disabled: false,
|
|
17265
17809
|
status: "NOT_VERIFIED",
|
|
17266
17810
|
documentType: "W8BENE",
|
|
17267
|
-
documentTypeString:
|
|
17811
|
+
documentTypeString: utils.taxTypeToName("W8BENE"),
|
|
17268
17812
|
dateSubmitted: "Jan 18th, 2025",
|
|
17269
17813
|
noFormNeeded: false,
|
|
17270
17814
|
country: "United Kingdom",
|
|
@@ -17285,7 +17829,7 @@ const TaxAndCashDashboardNotActiveW8BENEForm = () => {
|
|
|
17285
17829
|
disabled: false,
|
|
17286
17830
|
status: "NOT_ACTIVE",
|
|
17287
17831
|
documentType: "W8BENE",
|
|
17288
|
-
documentTypeString:
|
|
17832
|
+
documentTypeString: utils.taxTypeToName("W8BENE"),
|
|
17289
17833
|
dateSubmitted: "Jan 18th, 2025",
|
|
17290
17834
|
noFormNeeded: false,
|
|
17291
17835
|
indirectTaxNumber: "123456",
|
|
@@ -17305,7 +17849,7 @@ const TaxAndCashDashboardNoFormNeeded = () => {
|
|
|
17305
17849
|
canEditPayoutInfo: true,
|
|
17306
17850
|
disabled: false,
|
|
17307
17851
|
documentType: "W9",
|
|
17308
|
-
documentTypeString:
|
|
17852
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17309
17853
|
dateSubmitted: "Jan 18th, 2025",
|
|
17310
17854
|
noFormNeeded: true,
|
|
17311
17855
|
province: "Ontario",
|
|
@@ -17327,7 +17871,7 @@ const TaxAndCashDashboardIndirectTaxCanada = () => {
|
|
|
17327
17871
|
status: "ACTIVE",
|
|
17328
17872
|
disabled: false,
|
|
17329
17873
|
documentType: "W8BENE",
|
|
17330
|
-
documentTypeString:
|
|
17874
|
+
documentTypeString: utils.taxTypeToName("W8BENE"),
|
|
17331
17875
|
dateSubmitted: "Jan 18th, 2025",
|
|
17332
17876
|
noFormNeeded: false,
|
|
17333
17877
|
province: "Ontario",
|
|
@@ -17349,7 +17893,7 @@ const TaxAndCashDashboardIndirectTaxCanadaQuebec = () => {
|
|
|
17349
17893
|
status: "ACTIVE",
|
|
17350
17894
|
disabled: false,
|
|
17351
17895
|
documentType: "W8BENE",
|
|
17352
|
-
documentTypeString:
|
|
17896
|
+
documentTypeString: utils.taxTypeToName("W8BENE"),
|
|
17353
17897
|
dateSubmitted: "Jan 18th, 2025",
|
|
17354
17898
|
noFormNeeded: false,
|
|
17355
17899
|
province: "Quebec",
|
|
@@ -17372,7 +17916,7 @@ const TaxAndCashDashboardIndirectTaxSpain = () => {
|
|
|
17372
17916
|
status: "ACTIVE",
|
|
17373
17917
|
disabled: false,
|
|
17374
17918
|
documentType: "W8BENE",
|
|
17375
|
-
documentTypeString:
|
|
17919
|
+
documentTypeString: utils.taxTypeToName("W8BENE"),
|
|
17376
17920
|
dateSubmitted: "Jan 18th, 2025",
|
|
17377
17921
|
noFormNeeded: false,
|
|
17378
17922
|
country: "Spain",
|
|
@@ -17394,7 +17938,7 @@ const TaxAndCashDashboardIndirectTaxNotRegistered = () => {
|
|
|
17394
17938
|
canEditPayoutInfo: true,
|
|
17395
17939
|
status: "ACTIVE",
|
|
17396
17940
|
documentType: "W8BEN",
|
|
17397
|
-
documentTypeString:
|
|
17941
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17398
17942
|
dateSubmitted: "Jan 18th, 2025",
|
|
17399
17943
|
noFormNeeded: false,
|
|
17400
17944
|
notRegistered: true,
|
|
@@ -17412,7 +17956,7 @@ const TaxAndCashDashboardIdentityVerifcationRequired = () => {
|
|
|
17412
17956
|
canEditPayoutInfo: true,
|
|
17413
17957
|
status: "ACTIVE",
|
|
17414
17958
|
documentType: "W8BEN",
|
|
17415
|
-
documentTypeString:
|
|
17959
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17416
17960
|
dateSubmitted: "Jan 18th, 2025",
|
|
17417
17961
|
noFormNeeded: false,
|
|
17418
17962
|
notRegistered: true,
|
|
@@ -17430,7 +17974,7 @@ const TaxAndCashDashboardIdentityVerifcationRequiredInternal = () => {
|
|
|
17430
17974
|
canEditPayoutInfo: true,
|
|
17431
17975
|
status: "ACTIVE",
|
|
17432
17976
|
documentType: "W8BEN",
|
|
17433
|
-
documentTypeString:
|
|
17977
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17434
17978
|
dateSubmitted: "Jan 18th, 2025",
|
|
17435
17979
|
noFormNeeded: false,
|
|
17436
17980
|
notRegistered: true,
|
|
@@ -17448,7 +17992,7 @@ const TaxAndCashDashboardIdentityVerifcationReviewInternal = () => {
|
|
|
17448
17992
|
canEditPayoutInfo: true,
|
|
17449
17993
|
status: "ACTIVE",
|
|
17450
17994
|
documentType: "W8BEN",
|
|
17451
|
-
documentTypeString:
|
|
17995
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17452
17996
|
dateSubmitted: "Jan 18th, 2025",
|
|
17453
17997
|
noFormNeeded: false,
|
|
17454
17998
|
notRegistered: true,
|
|
@@ -17466,7 +18010,7 @@ const TaxAndCashDashboardIdentityVerifcationFailedInternal = () => {
|
|
|
17466
18010
|
canEditPayoutInfo: true,
|
|
17467
18011
|
status: "ACTIVE",
|
|
17468
18012
|
documentType: "W8BEN",
|
|
17469
|
-
documentTypeString:
|
|
18013
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17470
18014
|
dateSubmitted: "Jan 18th, 2025",
|
|
17471
18015
|
noFormNeeded: false,
|
|
17472
18016
|
notRegistered: true,
|
|
@@ -17484,7 +18028,7 @@ const TaxAndCashDashboardW9ThresholdReached = () => {
|
|
|
17484
18028
|
canEditPayoutInfo: true,
|
|
17485
18029
|
status: null,
|
|
17486
18030
|
documentType: "W9",
|
|
17487
|
-
documentTypeString:
|
|
18031
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17488
18032
|
dateSubmitted: "Jan 18th, 2025",
|
|
17489
18033
|
noFormNeeded: false,
|
|
17490
18034
|
notRegistered: false,
|
|
@@ -17503,7 +18047,7 @@ const TaxAndCashDashboardNewTaxForm = () => {
|
|
|
17503
18047
|
canEditPayoutInfo: true,
|
|
17504
18048
|
status: "ACTIVE",
|
|
17505
18049
|
documentType: "W8BEN",
|
|
17506
|
-
documentTypeString:
|
|
18050
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17507
18051
|
dateSubmitted: "Jan 18th, 2025",
|
|
17508
18052
|
noFormNeeded: false,
|
|
17509
18053
|
notRegistered: true,
|
|
@@ -17522,7 +18066,7 @@ const TaxAndCashDashboardPayoutsOnHold = () => {
|
|
|
17522
18066
|
disabled: true,
|
|
17523
18067
|
status: "ACTIVE",
|
|
17524
18068
|
documentType: "W8BEN",
|
|
17525
|
-
documentTypeString:
|
|
18069
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17526
18070
|
dateSubmitted: "Jan 18th, 2025",
|
|
17527
18071
|
noFormNeeded: false,
|
|
17528
18072
|
indirectTaxNumber: "123456",
|
|
@@ -17542,7 +18086,7 @@ const TaxAndCashDashboardNoTaxFormRequiredAndBeneficiaryNameInvalid = () => {
|
|
|
17542
18086
|
disabled: true,
|
|
17543
18087
|
status: "ACTIVE",
|
|
17544
18088
|
documentType: undefined,
|
|
17545
|
-
documentTypeString:
|
|
18089
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17546
18090
|
dateSubmitted: "Jan 18th, 2025",
|
|
17547
18091
|
noFormNeeded: true,
|
|
17548
18092
|
indirectTaxNumber: "123456",
|
|
@@ -17562,7 +18106,7 @@ const TaxAndCashDashboardNoTaxFormRequiredAndBeneficiaryNameInvalidUS = () => {
|
|
|
17562
18106
|
disabled: true,
|
|
17563
18107
|
status: "ACTIVE",
|
|
17564
18108
|
documentType: undefined,
|
|
17565
|
-
documentTypeString:
|
|
18109
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17566
18110
|
dateSubmitted: "Jan 18th, 2025",
|
|
17567
18111
|
noFormNeeded: true,
|
|
17568
18112
|
indirectTaxNumber: "123456",
|
|
@@ -17623,7 +18167,7 @@ const TaxAndCashDashboardFallbackDocumentTypeW9 = () => {
|
|
|
17623
18167
|
disabled: false,
|
|
17624
18168
|
status: "ACTIVE",
|
|
17625
18169
|
documentType: "W9",
|
|
17626
|
-
documentTypeString:
|
|
18170
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17627
18171
|
dateSubmitted: "Mar 15, 2025",
|
|
17628
18172
|
noFormNeeded: false,
|
|
17629
18173
|
indirectTaxNumber: "123456",
|
|
@@ -17644,7 +18188,7 @@ const TaxAndCashDashboardFallbackDocumentTypeW8BEN = () => {
|
|
|
17644
18188
|
disabled: false,
|
|
17645
18189
|
status: "ACTIVE",
|
|
17646
18190
|
documentType: "W8BEN",
|
|
17647
|
-
documentTypeString:
|
|
18191
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17648
18192
|
dateSubmitted: "Feb 20, 2025",
|
|
17649
18193
|
noFormNeeded: false,
|
|
17650
18194
|
indirectTaxNumber: "654321",
|
|
@@ -17686,7 +18230,7 @@ const TaxAndCashDashboardLoading = () => {
|
|
|
17686
18230
|
disabled: false,
|
|
17687
18231
|
status: "ACTIVE",
|
|
17688
18232
|
documentType: "W9",
|
|
17689
|
-
documentTypeString:
|
|
18233
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17690
18234
|
dateSubmitted: "Jan 18th, 2025",
|
|
17691
18235
|
noFormNeeded: false,
|
|
17692
18236
|
loading: true,
|
|
@@ -17705,7 +18249,7 @@ const TaxAndCashDashboardWithLoadingError = () => {
|
|
|
17705
18249
|
canEditPayoutInfo: true,
|
|
17706
18250
|
status: "ACTIVE",
|
|
17707
18251
|
documentType: "W9",
|
|
17708
|
-
documentTypeString:
|
|
18252
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17709
18253
|
dateSubmitted: "Jan 18th, 2025",
|
|
17710
18254
|
noFormNeeded: false,
|
|
17711
18255
|
loading: true,
|
|
@@ -17725,7 +18269,7 @@ const TaxAndCashDashboardWithGeneralError = () => {
|
|
|
17725
18269
|
disabled: false,
|
|
17726
18270
|
status: "ACTIVE",
|
|
17727
18271
|
documentType: "W9",
|
|
17728
|
-
documentTypeString:
|
|
18272
|
+
documentTypeString: utils.taxTypeToName("W9"),
|
|
17729
18273
|
dateSubmitted: "Jan 18th, 2025",
|
|
17730
18274
|
noFormNeeded: false,
|
|
17731
18275
|
indirectTaxNumber: "123456",
|
|
@@ -17749,7 +18293,7 @@ const TaxAndCashDashboardDisabled = () => {
|
|
|
17749
18293
|
disabled: true,
|
|
17750
18294
|
status: "ACTIVE",
|
|
17751
18295
|
documentType: "W8BEN",
|
|
17752
|
-
documentTypeString:
|
|
18296
|
+
documentTypeString: utils.taxTypeToName("W8BEN"),
|
|
17753
18297
|
dateSubmitted: "Jan 18th, 2025",
|
|
17754
18298
|
noFormNeeded: false,
|
|
17755
18299
|
indirectTaxNumber: "123456",
|
|
@@ -17900,45 +18444,45 @@ const PayoutDetailsCard = /*#__PURE__*/Object.freeze({
|
|
|
17900
18444
|
const PayoutStatusAlert_stories = {
|
|
17901
18445
|
title: "Components/Payout Status Alert",
|
|
17902
18446
|
};
|
|
17903
|
-
const defaultProps$
|
|
18447
|
+
const defaultProps$t = {
|
|
17904
18448
|
error: false,
|
|
17905
18449
|
status: "INFORMATION_REQUIRED",
|
|
17906
18450
|
loading: false,
|
|
17907
18451
|
veriffLoading: false,
|
|
17908
18452
|
};
|
|
17909
|
-
const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$
|
|
17910
|
-
const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
17911
|
-
const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
18453
|
+
const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$t } }));
|
|
18454
|
+
const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, status: "VERIFICATION:REQUIRED" } } }));
|
|
18455
|
+
const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, status: "VERIFICATION:INTERNAL" } } }));
|
|
17912
18456
|
const VerifyIdentityReviewInternal = () => (index.h("sqm-payout-status-alert", { demoData: {
|
|
17913
18457
|
states: {
|
|
17914
|
-
...defaultProps$
|
|
18458
|
+
...defaultProps$t,
|
|
17915
18459
|
status: "VERIFICATION:REVIEW",
|
|
17916
18460
|
},
|
|
17917
18461
|
} }));
|
|
17918
|
-
const VerifyIdentityFailedInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
18462
|
+
const VerifyIdentityFailedInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, status: "VERIFICATION:FAILED" } } }));
|
|
17919
18463
|
const W9ThresholdReached = () => (index.h("sqm-payout-status-alert", { demoData: {
|
|
17920
18464
|
states: {
|
|
17921
|
-
...defaultProps$
|
|
18465
|
+
...defaultProps$t,
|
|
17922
18466
|
enforceUsTaxComplianceOption: "CASH_ONLY_DEFER_W9",
|
|
17923
18467
|
status: "OVER_W9_THRESHOLD",
|
|
17924
18468
|
},
|
|
17925
18469
|
} }));
|
|
17926
|
-
const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
17927
|
-
const Loading$d = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
17928
|
-
const Error$b = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
17929
|
-
const NewPayeeReview = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
17930
|
-
const PaymentHoldOnChange = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
18470
|
+
const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, status: "HOLD" } } }));
|
|
18471
|
+
const Loading$d = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, loading: true } } }));
|
|
18472
|
+
const Error$b = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, error: true } } }));
|
|
18473
|
+
const NewPayeeReview = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, status: "NEW_PAYEE_REVIEW" } } }));
|
|
18474
|
+
const PaymentHoldOnChange = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
|
|
17931
18475
|
const BeneficiaryNameInvalid = () => (index.h("sqm-payout-status-alert", { demoData: {
|
|
17932
|
-
states: { ...defaultProps$
|
|
18476
|
+
states: { ...defaultProps$t, status: "BENEFICIARY_NAME_INVALID" },
|
|
17933
18477
|
} }));
|
|
17934
18478
|
const BeneficiaryNameMismatch = () => (index.h("sqm-payout-status-alert", { demoData: {
|
|
17935
|
-
states: { ...defaultProps$
|
|
18479
|
+
states: { ...defaultProps$t, status: "BENEFICIARY_NAME_MISMATCH" },
|
|
17936
18480
|
} }));
|
|
17937
|
-
const BankTaxNameMismatch = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
18481
|
+
const BankTaxNameMismatch = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, status: "BANK_TAX_NAME_MISMATCH" } } }));
|
|
17938
18482
|
const WithdrawalSettingsInvalid = () => (index.h("sqm-payout-status-alert", { demoData: {
|
|
17939
|
-
states: { ...defaultProps$
|
|
18483
|
+
states: { ...defaultProps$t, status: "WITHDRAWAL_SETTINGS_INVALID" },
|
|
17940
18484
|
} }));
|
|
17941
|
-
const PaymentReturned = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
18485
|
+
const PaymentReturned = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$t, status: "PAYMENT_RETURNED" } } }));
|
|
17942
18486
|
|
|
17943
18487
|
const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
17944
18488
|
__proto__: null,
|
|
@@ -17993,10 +18537,10 @@ const style$2 = {
|
|
|
17993
18537
|
border: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
|
|
17994
18538
|
},
|
|
17995
18539
|
};
|
|
17996
|
-
const sheet$
|
|
17997
|
-
const styleString$2 = sheet$
|
|
18540
|
+
const sheet$3 = JSS.createStyleSheet(style$2);
|
|
18541
|
+
const styleString$2 = sheet$3.toString();
|
|
17998
18542
|
const DocusignExpiredView = (props) => {
|
|
17999
|
-
const { classes } = sheet$
|
|
18543
|
+
const { classes } = sheet$3;
|
|
18000
18544
|
const { text } = props;
|
|
18001
18545
|
return (index.h("div", null,
|
|
18002
18546
|
index.h("style", { type: "text/css" }, styleString$2),
|
|
@@ -18043,13 +18587,13 @@ const registeredInCanada = {
|
|
|
18043
18587
|
text: indirectDetailsSlotText,
|
|
18044
18588
|
};
|
|
18045
18589
|
const RegisteredInOtherRegion = () => {
|
|
18046
|
-
return index.h(
|
|
18590
|
+
return index.h(IndirectTaxDetailsView.OtherRegionSlotView, Object.assign({}, registeredInOtherRegion));
|
|
18047
18591
|
};
|
|
18048
18592
|
const RegisteredInCanada = () => {
|
|
18049
18593
|
return index.h(IndirectDetailsSlotView, Object.assign({}, registeredInCanada));
|
|
18050
18594
|
};
|
|
18051
18595
|
const RegisteredInOtherRegionWithErrors = () => {
|
|
18052
|
-
return (index.h(
|
|
18596
|
+
return (index.h(IndirectTaxDetailsView.OtherRegionSlotView, Object.assign({}, registeredInOtherRegion, { states: {
|
|
18053
18597
|
...registeredInOtherRegion.states,
|
|
18054
18598
|
formState: {
|
|
18055
18599
|
...registeredInOtherRegion.states.formState,
|
|
@@ -18093,7 +18637,7 @@ const EmailRegistration_stories = {
|
|
|
18093
18637
|
// scenario,
|
|
18094
18638
|
},
|
|
18095
18639
|
};
|
|
18096
|
-
const defaultProps$
|
|
18640
|
+
const defaultProps$u = {
|
|
18097
18641
|
states: {
|
|
18098
18642
|
error: "",
|
|
18099
18643
|
loading: false,
|
|
@@ -18112,59 +18656,59 @@ const defaultProps$t = {
|
|
|
18112
18656
|
fraudErrorMessageTitle: "Looks like you tried referring yourself",
|
|
18113
18657
|
},
|
|
18114
18658
|
};
|
|
18115
|
-
const Default$q = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$
|
|
18659
|
+
const Default$q = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$u));
|
|
18116
18660
|
const HasFirstNameLastName = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
18117
|
-
...defaultProps$
|
|
18661
|
+
...defaultProps$u,
|
|
18118
18662
|
content: {
|
|
18119
|
-
...defaultProps$
|
|
18663
|
+
...defaultProps$u.content,
|
|
18120
18664
|
includeName: true,
|
|
18121
18665
|
},
|
|
18122
18666
|
})));
|
|
18123
18667
|
const WithSlots = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
18124
|
-
...defaultProps$
|
|
18668
|
+
...defaultProps$u,
|
|
18125
18669
|
content: {
|
|
18126
|
-
...defaultProps$
|
|
18670
|
+
...defaultProps$u.content,
|
|
18127
18671
|
topSlot: index.h("div", null, "Hello this is the top slot"),
|
|
18128
18672
|
bottomSlot: index.h("div", null, "Hello this is the bottom slot"),
|
|
18129
18673
|
},
|
|
18130
18674
|
})));
|
|
18131
18675
|
const NoBorder$1 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
18132
|
-
...defaultProps$
|
|
18676
|
+
...defaultProps$u,
|
|
18133
18677
|
content: {
|
|
18134
|
-
...defaultProps$
|
|
18678
|
+
...defaultProps$u.content,
|
|
18135
18679
|
hideBorder: true,
|
|
18136
18680
|
},
|
|
18137
18681
|
})));
|
|
18138
18682
|
const BackgroundColor$2 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
18139
|
-
...defaultProps$
|
|
18683
|
+
...defaultProps$u,
|
|
18140
18684
|
content: {
|
|
18141
|
-
...defaultProps$
|
|
18685
|
+
...defaultProps$u.content,
|
|
18142
18686
|
backgroundColor: "aquamarine",
|
|
18143
18687
|
},
|
|
18144
18688
|
})));
|
|
18145
18689
|
const Loading$e = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
18146
|
-
...defaultProps$
|
|
18690
|
+
...defaultProps$u,
|
|
18147
18691
|
states: {
|
|
18148
18692
|
error: "",
|
|
18149
18693
|
loading: true,
|
|
18150
18694
|
},
|
|
18151
18695
|
})));
|
|
18152
18696
|
const Error$c = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
18153
|
-
...defaultProps$
|
|
18697
|
+
...defaultProps$u,
|
|
18154
18698
|
states: {
|
|
18155
18699
|
error: "Something went wrong. Please try again.",
|
|
18156
18700
|
loading: false,
|
|
18157
18701
|
},
|
|
18158
18702
|
})));
|
|
18159
18703
|
const FraudError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
18160
|
-
...defaultProps$
|
|
18704
|
+
...defaultProps$u,
|
|
18161
18705
|
states: {
|
|
18162
18706
|
error: "FRAUD",
|
|
18163
18707
|
loading: false,
|
|
18164
18708
|
},
|
|
18165
18709
|
})));
|
|
18166
18710
|
const EmptyEmailError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
18167
|
-
...defaultProps$
|
|
18711
|
+
...defaultProps$u,
|
|
18168
18712
|
states: {
|
|
18169
18713
|
error: "Something went wrong. Please try again.",
|
|
18170
18714
|
loading: false,
|
|
@@ -18191,7 +18735,7 @@ const EmailRegistration = /*#__PURE__*/Object.freeze({
|
|
|
18191
18735
|
const LeadForm_stories = {
|
|
18192
18736
|
title: "Components/Lead Form",
|
|
18193
18737
|
};
|
|
18194
|
-
const defaultProps$
|
|
18738
|
+
const defaultProps$v = {
|
|
18195
18739
|
states: {
|
|
18196
18740
|
success: false,
|
|
18197
18741
|
leadFormState: {},
|
|
@@ -18220,21 +18764,21 @@ const defaultProps$u = {
|
|
|
18220
18764
|
},
|
|
18221
18765
|
};
|
|
18222
18766
|
const successProps$5 = {
|
|
18223
|
-
...defaultProps$
|
|
18767
|
+
...defaultProps$v,
|
|
18224
18768
|
states: {
|
|
18225
|
-
...defaultProps$
|
|
18769
|
+
...defaultProps$v.states,
|
|
18226
18770
|
success: true,
|
|
18227
18771
|
error: null,
|
|
18228
18772
|
},
|
|
18229
18773
|
content: {
|
|
18230
|
-
...defaultProps$
|
|
18774
|
+
...defaultProps$v.content,
|
|
18231
18775
|
pageLabel: "Refer your friend",
|
|
18232
18776
|
},
|
|
18233
18777
|
};
|
|
18234
18778
|
const errorProps$c = {
|
|
18235
|
-
...defaultProps$
|
|
18779
|
+
...defaultProps$v,
|
|
18236
18780
|
states: {
|
|
18237
|
-
...defaultProps$
|
|
18781
|
+
...defaultProps$v.states,
|
|
18238
18782
|
error: "Something went wrong. Please try again.",
|
|
18239
18783
|
leadFormState: {
|
|
18240
18784
|
validationErrors: {
|
|
@@ -18246,16 +18790,16 @@ const errorProps$c = {
|
|
|
18246
18790
|
},
|
|
18247
18791
|
};
|
|
18248
18792
|
const loadingProps$9 = {
|
|
18249
|
-
...defaultProps$
|
|
18793
|
+
...defaultProps$v,
|
|
18250
18794
|
states: {
|
|
18251
|
-
...defaultProps$
|
|
18795
|
+
...defaultProps$v.states,
|
|
18252
18796
|
loading: true,
|
|
18253
18797
|
},
|
|
18254
18798
|
};
|
|
18255
18799
|
const slottedProps$2 = {
|
|
18256
|
-
...defaultProps$
|
|
18800
|
+
...defaultProps$v,
|
|
18257
18801
|
content: {
|
|
18258
|
-
...defaultProps$
|
|
18802
|
+
...defaultProps$v.content,
|
|
18259
18803
|
formData: (index.h("div", null,
|
|
18260
18804
|
index.h("sqm-lead-input-field", { "field-name": "firstName", "field-label": "First Name", "field-type": "text", "required-field-error-message": "Please enter a first name" }),
|
|
18261
18805
|
index.h("sqm-lead-input-field", { "field-name": "lastName", "field-label": "Last Name", "field-type": "text", "required-field-error-message": "Please enter a last name" }),
|
|
@@ -18263,10 +18807,10 @@ const slottedProps$2 = {
|
|
|
18263
18807
|
index.h("sqm-lead-dropdown-field", null))),
|
|
18264
18808
|
},
|
|
18265
18809
|
};
|
|
18266
|
-
const Default$r = () => index.h(
|
|
18267
|
-
const LeadSubmitSuccess = () => index.h(
|
|
18268
|
-
const LeadSubmitWithErrors = () => index.h(
|
|
18269
|
-
const LeadSubmitLoading = () => index.h(
|
|
18810
|
+
const Default$r = () => index.h(sqmLeadFormView.LeadFormView, Object.assign({}, defaultProps$v));
|
|
18811
|
+
const LeadSubmitSuccess = () => index.h(sqmLeadFormView.LeadFormView, Object.assign({}, successProps$5));
|
|
18812
|
+
const LeadSubmitWithErrors = () => index.h(sqmLeadFormView.LeadFormView, Object.assign({}, errorProps$c));
|
|
18813
|
+
const LeadSubmitLoading = () => index.h(sqmLeadFormView.LeadFormView, Object.assign({}, loadingProps$9));
|
|
18270
18814
|
const FieldsHidden$2 = () => {
|
|
18271
18815
|
return (index.h("sqm-lead-form", { demoData: {
|
|
18272
18816
|
states: {
|
|
@@ -18278,7 +18822,7 @@ const FieldsHidden$2 = () => {
|
|
|
18278
18822
|
},
|
|
18279
18823
|
} }));
|
|
18280
18824
|
};
|
|
18281
|
-
const SlottedInputs$2 = () => index.h(
|
|
18825
|
+
const SlottedInputs$2 = () => index.h(sqmLeadFormView.LeadFormView, Object.assign({}, slottedProps$2));
|
|
18282
18826
|
|
|
18283
18827
|
const LeadForm = /*#__PURE__*/Object.freeze({
|
|
18284
18828
|
__proto__: null,
|
|
@@ -18294,7 +18838,7 @@ const LeadForm = /*#__PURE__*/Object.freeze({
|
|
|
18294
18838
|
const LeadInputField_stories = {
|
|
18295
18839
|
title: "Components/Lead Form Input Field",
|
|
18296
18840
|
};
|
|
18297
|
-
const defaultProps$
|
|
18841
|
+
const defaultProps$w = {
|
|
18298
18842
|
states: {
|
|
18299
18843
|
leadFormState: {
|
|
18300
18844
|
validationErrors: {},
|
|
@@ -18312,27 +18856,27 @@ const defaultProps$v = {
|
|
|
18312
18856
|
fieldOptional: false,
|
|
18313
18857
|
},
|
|
18314
18858
|
};
|
|
18315
|
-
const Default$s = () => index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$
|
|
18316
|
-
const WithError$1 = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$
|
|
18317
|
-
...defaultProps$
|
|
18859
|
+
const Default$s = () => index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$w));
|
|
18860
|
+
const WithError$1 = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$w, { states: {
|
|
18861
|
+
...defaultProps$w.states,
|
|
18318
18862
|
leadFormState: {
|
|
18319
|
-
...defaultProps$
|
|
18863
|
+
...defaultProps$w.states.leadFormState,
|
|
18320
18864
|
validationErrors: {
|
|
18321
18865
|
firstName: "Please enter a first name",
|
|
18322
18866
|
},
|
|
18323
18867
|
},
|
|
18324
18868
|
} })));
|
|
18325
|
-
const Disabled$2 = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$
|
|
18326
|
-
...defaultProps$
|
|
18869
|
+
const Disabled$2 = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$w, { states: {
|
|
18870
|
+
...defaultProps$w.states,
|
|
18327
18871
|
leadFormState: {
|
|
18328
|
-
...defaultProps$
|
|
18872
|
+
...defaultProps$w.states.leadFormState,
|
|
18329
18873
|
disabled: true,
|
|
18330
18874
|
},
|
|
18331
18875
|
} })));
|
|
18332
|
-
const WithInitialValue = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$
|
|
18333
|
-
...defaultProps$
|
|
18876
|
+
const WithInitialValue = () => (index.h(sqmLeadInputFieldView.LeadInputFieldView, Object.assign({}, defaultProps$w, { states: {
|
|
18877
|
+
...defaultProps$w.states,
|
|
18334
18878
|
leadFormState: {
|
|
18335
|
-
...defaultProps$
|
|
18879
|
+
...defaultProps$w.states.leadFormState,
|
|
18336
18880
|
initialData: {
|
|
18337
18881
|
firstName: "Jane",
|
|
18338
18882
|
},
|
|
@@ -18351,7 +18895,7 @@ const LeadInputField = /*#__PURE__*/Object.freeze({
|
|
|
18351
18895
|
const LeadFormDropdownField_stories = {
|
|
18352
18896
|
title: "Components/Lead Form Dropdown Field",
|
|
18353
18897
|
};
|
|
18354
|
-
const defaultProps$
|
|
18898
|
+
const defaultProps$x = {
|
|
18355
18899
|
states: {
|
|
18356
18900
|
leadFormState: {
|
|
18357
18901
|
validationErrors: {},
|
|
@@ -18374,35 +18918,35 @@ const defaultProps$w = {
|
|
|
18374
18918
|
],
|
|
18375
18919
|
},
|
|
18376
18920
|
};
|
|
18377
|
-
const Default$t = () => index.h(
|
|
18378
|
-
const Multiple = () => (index.h(
|
|
18379
|
-
const WithError$2 = () => (index.h(
|
|
18380
|
-
...defaultProps$
|
|
18921
|
+
const Default$t = () => index.h(sqmLeadDropdownFieldView.LeadDropdownFieldView, Object.assign({}, defaultProps$x));
|
|
18922
|
+
const Multiple = () => (index.h(sqmLeadDropdownFieldView.LeadDropdownFieldView, Object.assign({}, defaultProps$x, { content: { ...defaultProps$x.content, multiple: true } })));
|
|
18923
|
+
const WithError$2 = () => (index.h(sqmLeadDropdownFieldView.LeadDropdownFieldView, Object.assign({}, defaultProps$x, { states: {
|
|
18924
|
+
...defaultProps$x.states,
|
|
18381
18925
|
leadFormState: {
|
|
18382
|
-
...defaultProps$
|
|
18926
|
+
...defaultProps$x.states.leadFormState,
|
|
18383
18927
|
validationErrors: {
|
|
18384
18928
|
country: "Please select a country",
|
|
18385
18929
|
},
|
|
18386
18930
|
},
|
|
18387
18931
|
} })));
|
|
18388
|
-
const Disabled$3 = () => (index.h(
|
|
18389
|
-
...defaultProps$
|
|
18932
|
+
const Disabled$3 = () => (index.h(sqmLeadDropdownFieldView.LeadDropdownFieldView, Object.assign({}, defaultProps$x, { states: {
|
|
18933
|
+
...defaultProps$x.states,
|
|
18390
18934
|
leadFormState: {
|
|
18391
|
-
...defaultProps$
|
|
18935
|
+
...defaultProps$x.states.leadFormState,
|
|
18392
18936
|
disabled: true,
|
|
18393
18937
|
},
|
|
18394
18938
|
} })));
|
|
18395
|
-
const Loading$f = () => (index.h(
|
|
18396
|
-
...defaultProps$
|
|
18939
|
+
const Loading$f = () => (index.h(sqmLeadDropdownFieldView.LeadDropdownFieldView, Object.assign({}, defaultProps$x, { states: {
|
|
18940
|
+
...defaultProps$x.states,
|
|
18397
18941
|
leadFormState: {
|
|
18398
|
-
...defaultProps$
|
|
18942
|
+
...defaultProps$x.states.leadFormState,
|
|
18399
18943
|
loading: true,
|
|
18400
18944
|
},
|
|
18401
18945
|
} })));
|
|
18402
|
-
const WithInitialValue$1 = () => (index.h(
|
|
18403
|
-
...defaultProps$
|
|
18946
|
+
const WithInitialValue$1 = () => (index.h(sqmLeadDropdownFieldView.LeadDropdownFieldView, Object.assign({}, defaultProps$x, { states: {
|
|
18947
|
+
...defaultProps$x.states,
|
|
18404
18948
|
leadFormState: {
|
|
18405
|
-
...defaultProps$
|
|
18949
|
+
...defaultProps$x.states.leadFormState,
|
|
18406
18950
|
initialData: {
|
|
18407
18951
|
country: "Canada",
|
|
18408
18952
|
},
|
|
@@ -18423,7 +18967,7 @@ const LeadFormDropdownField = /*#__PURE__*/Object.freeze({
|
|
|
18423
18967
|
const LeadCheckboxField_stories = {
|
|
18424
18968
|
title: "Components/Lead Checkbox Field",
|
|
18425
18969
|
};
|
|
18426
|
-
const defaultProps$
|
|
18970
|
+
const defaultProps$y = {
|
|
18427
18971
|
states: {
|
|
18428
18972
|
leadFormState: {
|
|
18429
18973
|
validationErrors: {},
|
|
@@ -18437,28 +18981,28 @@ const defaultProps$x = {
|
|
|
18437
18981
|
errorMessage: "{checkboxLabel} Must be checked",
|
|
18438
18982
|
},
|
|
18439
18983
|
};
|
|
18440
|
-
const Default$u = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$
|
|
18441
|
-
const CustomLabel$3 = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$
|
|
18442
|
-
...defaultProps$
|
|
18984
|
+
const Default$u = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$y))));
|
|
18985
|
+
const CustomLabel$3 = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$y, { content: {
|
|
18986
|
+
...defaultProps$y.content,
|
|
18443
18987
|
checkboxLabel: "I Agree",
|
|
18444
18988
|
} }))));
|
|
18445
|
-
const Error$d = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$
|
|
18446
|
-
...defaultProps$
|
|
18989
|
+
const Error$d = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$y, { states: {
|
|
18990
|
+
...defaultProps$y.states,
|
|
18447
18991
|
leadFormState: {
|
|
18448
18992
|
validationErrors: {
|
|
18449
18993
|
terms: "{checkboxLabel} Must be checked",
|
|
18450
18994
|
},
|
|
18451
18995
|
},
|
|
18452
18996
|
} }))));
|
|
18453
|
-
const CustomError$3 = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$
|
|
18454
|
-
...defaultProps$
|
|
18997
|
+
const CustomError$3 = createHookStory(() => (index.h(sqmLeadCheckboxFieldView.LeadCheckboxFieldView, Object.assign({}, defaultProps$y, { states: {
|
|
18998
|
+
...defaultProps$y.states,
|
|
18455
18999
|
leadFormState: {
|
|
18456
19000
|
validationErrors: {
|
|
18457
19001
|
terms: "{checkboxLabel} Must be checked",
|
|
18458
19002
|
},
|
|
18459
19003
|
},
|
|
18460
19004
|
}, content: {
|
|
18461
|
-
...defaultProps$
|
|
19005
|
+
...defaultProps$y.content,
|
|
18462
19006
|
errorMessage: "This checkbox must be checked to continue",
|
|
18463
19007
|
} }))));
|
|
18464
19008
|
|
|
@@ -20164,7 +20708,7 @@ const mergeHTMLPlugin = {
|
|
|
20164
20708
|
/**
|
|
20165
20709
|
* @param {Node} node
|
|
20166
20710
|
*/
|
|
20167
|
-
function tag(node) {
|
|
20711
|
+
function tag$1(node) {
|
|
20168
20712
|
return node.nodeName.toLowerCase();
|
|
20169
20713
|
}
|
|
20170
20714
|
|
|
@@ -20188,7 +20732,7 @@ function nodeStream(node) {
|
|
|
20188
20732
|
// Prevent void elements from having an end tag that would actually
|
|
20189
20733
|
// double them in the output. There are more void elements in HTML
|
|
20190
20734
|
// but we list only those realistically expected in code display.
|
|
20191
|
-
if (!tag(child).match(/br|hr|img|input/)) {
|
|
20735
|
+
if (!tag$1(child).match(/br|hr|img|input/)) {
|
|
20192
20736
|
result.push({
|
|
20193
20737
|
event: 'stop',
|
|
20194
20738
|
offset: offset,
|
|
@@ -20247,14 +20791,14 @@ function mergeStreams(original, highlighted, value) {
|
|
|
20247
20791
|
return ' ' + attr.nodeName + '="' + escapeHTML(attr.value) + '"';
|
|
20248
20792
|
}
|
|
20249
20793
|
// @ts-ignore
|
|
20250
|
-
result += '<' + tag(node) + [].map.call(node.attributes, attributeString).join('') + '>';
|
|
20794
|
+
result += '<' + tag$1(node) + [].map.call(node.attributes, attributeString).join('') + '>';
|
|
20251
20795
|
}
|
|
20252
20796
|
|
|
20253
20797
|
/**
|
|
20254
20798
|
* @param {Node} node
|
|
20255
20799
|
*/
|
|
20256
20800
|
function close(node) {
|
|
20257
|
-
result += '</' + tag(node) + '>';
|
|
20801
|
+
result += '</' + tag$1(node) + '>';
|
|
20258
20802
|
}
|
|
20259
20803
|
|
|
20260
20804
|
/**
|
|
@@ -21547,8 +22091,20 @@ const StencilStorybook = class {
|
|
|
21547
22091
|
});
|
|
21548
22092
|
const [selectedTheme, setSelected] = domContextHooks_module.useState("Default");
|
|
21549
22093
|
const [checkerboard, setCheckerboard] = domContextHooks_module.useState(true);
|
|
22094
|
+
const themes = Object.keys(Themes.Themes);
|
|
22095
|
+
const theme = Themes.Themes[selectedTheme];
|
|
21550
22096
|
return (index.h(index.Host, { class: Style, onClick: {} }, index.h("sqm-brand-selector", null), children));
|
|
21551
22097
|
}
|
|
21552
22098
|
};
|
|
22099
|
+
function ColorScale() {
|
|
22100
|
+
return (index.h("span", null, index.h(ColorToken, null), index.h(ColorToken, { type: "success" }), index.h(ColorToken, { type: "warning" }), index.h(ColorToken, { type: "danger" }), index.h(ColorToken, { type: "neutral" })));
|
|
22101
|
+
}
|
|
22102
|
+
function ColorToken({ type = "primary" }) {
|
|
22103
|
+
return (index.h("span", { style: {
|
|
22104
|
+
width: "1em",
|
|
22105
|
+
marginRight: "2px",
|
|
22106
|
+
padding: "0 4px",
|
|
22107
|
+
}, title: type }, type.charAt(0)));
|
|
22108
|
+
}
|
|
21553
22109
|
|
|
21554
22110
|
exports.sqm_stencilbook = StencilStorybook;
|