@saasquatch/mint-components 2.5.9 → 2.5.10-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +30 -22
  2. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +4 -4
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +61 -5
  4. package/dist/cjs/{sqm-user-info-form-view-b2a78083.js → sqm-user-info-form-view-df5b95be.js} +6 -2
  5. package/dist/cjs/{useIndirectTaxForm-c5f31c83.js → useIndirectTaxForm-76b94531.js} +2 -1
  6. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +55 -2
  7. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +6 -2
  8. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +10 -10
  9. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +2 -2
  10. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +6 -2
  11. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +11 -11
  12. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -1
  13. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +10 -10
  14. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +1 -1
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  16. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -1
  17. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  18. package/dist/esm/sqm-banking-info-form_10.entry.js +30 -22
  19. package/dist/esm/sqm-big-stat_47.entry.js +4 -4
  20. package/dist/esm/sqm-stencilbook.entry.js +61 -5
  21. package/dist/esm/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-d35324ba.js} +6 -2
  22. package/dist/esm/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-6ea561e4.js} +2 -1
  23. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  24. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  25. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  26. package/dist/esm-es5/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-d35324ba.js} +1 -1
  27. package/dist/esm-es5/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-6ea561e4.js} +2 -2
  28. package/dist/mint-components/mint-components.esm.js +1 -1
  29. package/dist/mint-components/{p-51c9df1e.system.js → p-1cb0fc65.system.js} +2 -2
  30. package/dist/mint-components/{p-60c70417.js → p-2401753b.js} +1 -1
  31. package/dist/mint-components/p-4314e5c9.entry.js +147 -0
  32. package/dist/mint-components/p-477fe6fa.system.entry.js +1 -0
  33. package/dist/mint-components/{p-71a5086d.js → p-59f9d9bb.js} +1 -1
  34. package/dist/mint-components/{p-33075c60.system.entry.js → p-615dbc66.system.entry.js} +1 -1
  35. package/dist/mint-components/{p-9ccb9494.system.js → p-98659a12.system.js} +1 -1
  36. package/dist/mint-components/p-9e90f38e.entry.js +83 -0
  37. package/dist/mint-components/{p-3a5e63e3.entry.js → p-aaf05ef1.entry.js} +2 -2
  38. package/dist/mint-components/p-db8e74e0.system.entry.js +1 -0
  39. package/dist/mint-components/p-e78ec46b.system.js +1 -1
  40. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +3 -0
  41. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -4
  42. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  43. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -4
  44. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -0
  45. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -4
  46. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -4
  47. package/dist/types/components.d.ts +32 -32
  48. package/docs/docs.docx +0 -0
  49. package/docs/raisins.json +1 -1
  50. package/docs/stats.json +197 -195
  51. package/grapesjs/grapesjs.js +1 -1
  52. package/package.json +1 -1
  53. package/dist/mint-components/p-197eaa29.system.entry.js +0 -1
  54. package/dist/mint-components/p-e0f614a2.entry.js +0 -147
  55. package/dist/mint-components/p-f05c18b9.system.entry.js +0 -1
  56. package/dist/mint-components/p-fabc805a.entry.js +0 -83
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,n){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:n})}else{e.raw=n}return e};var __extends=this&&this.__extends||function(){var e=function(n,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))e[t]=n[t]};return e(n,t)};return function(n,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function a(){this.constructor=n}n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++){n=arguments[t];for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r))e[r]=n[r]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,n,t,a){function r(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{l(a.next(e))}catch(e){i(e)}}function o(e){try{l(a["throw"](e))}catch(e){i(e)}}function l(e){e.done?t(e.value):r(e.value).then(s,o)}l((a=a.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,r,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(n){return l([e,n])}}function l(o){if(a)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(t=0)),t)try{if(a=1,r&&(i=o[0]&2?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;if(r=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;r=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1];i=o;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(o);break}if(i[2])t.ops.pop();t.trys.pop();continue}o=n.call(e,t)}catch(e){o=[6,e];r=0}finally{a=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(e,n){var t={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0)t[a]=e[a];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++){if(n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r]))t[a[r]]=e[a[r]]}return t};var __spreadArray=this&&this.__spreadArray||function(e,n,t){if(t||arguments.length===2)for(var a=0,r=n.length,i;a<r;a++){if(i||!(a in n)){if(!i)i=Array.prototype.slice.call(n,0,a);i[a]=n[a]}}return e.concat(i||Array.prototype.slice.call(n))};System.register(["./p-8740794e.system.js","./p-643a756b.system.js","./p-7cc0fcf8.system.js","./p-843c9997.system.js","./p-dd7e8c95.system.js","./p-e33839b3.system.js","./p-442744e1.system.js","./p-49d4188a.system.js","./p-03a74fc7.system.js","./p-13a3aa65.system.js","./p-df75ffd2.system.js","./p-f686c142.system.js","./p-8886a874.system.js","./p-9ccb9494.system.js","./p-3aab5e80.system.js","./p-0650e0f1.system.js","./p-9bb5076e.system.js","./p-2af001d4.system.js","./p-ab1e96ea.system.js","./p-a6c96b8a.system.js","./p-cb714df1.system.js","./p-ed18f6a0.system.js","./p-64c93b03.system.js","./p-54750a6f.system.js","./p-d253e8eb.system.js","./p-e5eea3a2.system.js","./p-8a6494c7.system.js","./p-04eaa3bb.system.js","./p-edc8d9bc.system.js","./p-0da266a0.system.js","./p-a0e6ccbc.system.js","./p-16a23aba.system.js","./p-6333265f.system.js","./p-79ede698.system.js","./p-a43a9fa9.system.js","./p-85dad572.system.js","./p-046111cd.system.js","./p-eac100d1.system.js","./p-029ee766.system.js"],(function(e){"use strict";var n,t,a,r,i,s,o,l,d,u,c,m,p,g,f,h,v,b,y,w,_,x,T,S,E,C,R,I,D,A,k,q,P,N,F,L,O,U,B,M,G,V,W,j,H,z,Y,J,K,X,$,Q,Z,ee,ne,te,ae,re,ie,se,oe,le,de,ue,ce,me,pe,ge,fe,he,ve,be,ye,we,_e,xe,Te,Se,Ee,Ce,Re,Ie,De,Ae,ke,qe,Pe,Ne,Fe,Le,Oe,Ue,Be,Me,Ge,Ve,We,je,He,ze,Ye,Je,Ke,Xe,$e,Qe,Ze,en,nn,tn,an,rn,sn,on,ln,dn,un,cn,mn,pn,gn,fn;return{setters:[function(e){n=e.h;t=e.r;a=e.c},function(e){r=e.a;i=e.u;s=e.k;o=e.c;l=e.j;d=e.d;u=e.n},function(e){c=e.S;m=e.B;p=e.a;g=e.P;f=e.b;h=e.c;v=e.u;b=e.T;y=e.C;w=e.d;_=e.e;x=e.D;T=e.E;S=e.L;E=e.H;C=e.I;R=e.N;I=e.f;D=e.g;A=e.h;k=e.R;q=e.i;P=e.r;N=e.j;F=e.k;L=e.l;O=e.m;U=e.n;B=e.o;M=e.p;G=e.q;V=e.s;W=e.t;j=e.v;H=e.w;z=e.x;Y=e.y;J=e.z;K=e.A;X=e.F;$=e.G;Q=e.J;Z=e.K;ee=e.M;ne=e.O;te=e.Q;ae=e.U;re=e.V},function(e){ie=e.C},function(e){se=e.c},function(e){oe=e.N},function(e){le=e.N},function(e){de=e.P;ue=e.a},function(e){ce=e.P},function(e){me=e.K;pe=e.L;ge=e.M;fe=e.N;he=e.O;ve=e.P;be=e.S;ye=e.Q;we=e.R;_e=e.T;xe=e.U;Te=e.V;Se=e.W;Ee=e.X;Ce=e.Y;Re=e.Z;Ie=e._;De=e.$;Ae=e.a0;ke=e.n;qe=e.a1;Pe=e.a2;Ne=e.a3;Fe=e.a4;Le=e.t;Oe=e.C;Ue=e.a5;Be=e.d;Me=e.a6;Ge=e.G;Ve=e.E;We=e.a7},function(e){je=e.b;He=e.P;ze=e.a;Ye=e.c},function(e){Je=e.C},function(e){Ke=e.G},function(e){Xe=e.I;$e=e.T;Qe=e.O;Ze=e.U},function(e){en=e.L},function(e){nn=e.L},function(e){tn=e.P},function(e){an=e.P},function(e){rn=e.P},function(e){sn=e.Q},function(e){on=e.l},function(e){ln=e.t;dn=e.L;un=e.I;cn=e.a},function(e){mn=e.E},function(e){pn=e.L},function(e){gn=e.L},function(e){fn=e.P},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var hn=this;function vn(e){return typeof(e===null||e===void 0?void 0:e.then)==="function"}var bn=Array.prototype.find?function(e,n){return Array.prototype.find.call(e,n)}:function(e,n){for(var t=0;t<e.length;t++){var a=e[t];if(n(a)){return a}}};var yn=Object.values||function(e){return Object.keys(e).map((function(n){return e[n]}))};function wn(e,n,t){var a;var r=e instanceof Error?e:new Error("Unexpected error value: "+me(e));if(Array.isArray(r.path)){return r}return new pe(r.message,(a=r.nodes)!==null&&a!==void 0?a:n,r.source,r.positions,t,r)}var _n=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function xn(e){typeof e==="string"||ge(0,"Expected name to be a string.");if(e.length>1&&e[0]==="_"&&e[1]==="_"){return new pe('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'))}if(!_n.test(e)){return new pe('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}}var Tn=Object.entries||function(e){return Object.keys(e).map((function(n){return[n,e[n]]}))};function Sn(e,n){return e.reduce((function(e,t){e[n(t)]=t;return e}),Object.create(null))}function En(e,n){var t=Object.create(null);for(var a=0,r=Tn(e);a<r.length;a++){var i=r[a];var s=i[0];var o=i[1];t[s]=n(o,s)}return t}function Cn(e){if(Object.getPrototypeOf(e)===null){return e}var n=Object.create(null);for(var t=0,a=Tn(e);t<a.length;t++){var r=a[t];var i=r[0];var s=r[1];n[i]=s}return n}function Rn(e,n,t){return e.reduce((function(e,a){e[n(a)]=t(a);return e}),Object.create(null))}var In=5;function Dn(e,n){var t=typeof e==="string"?[e,n]:[undefined,e],a=t[0],r=t[1];var i=" Did you mean ";if(a){i+=a+" "}var s=r.map((function(e){return'"'.concat(e,'"')}));switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}var o=s.slice(0,In);var l=o.pop();return i+o.join(", ")+", or "+l+"?"}function An(e){return e}function kn(e,n){var t=0;var a=0;while(t<e.length&&a<n.length){var r=e.charCodeAt(t);var i=n.charCodeAt(a);if(Nn(r)&&Nn(i)){var s=0;do{++t;s=s*10+r-qn;r=e.charCodeAt(t)}while(Nn(r)&&s>0);var o=0;do{++a;o=o*10+i-qn;i=n.charCodeAt(a)}while(Nn(i)&&o>0);if(s<o){return-1}if(s>o){return 1}}else{if(r<i){return-1}if(r>i){return 1}++t;++a}}return e.length-n.length}var qn=48;var Pn=57;function Nn(e){return!isNaN(e)&&qn<=e&&e<=Pn}function Fn(e,n){var t=Object.create(null);var a=new Ln(e);var r=Math.floor(e.length*.4)+1;for(var i=0;i<n.length;i++){var s=n[i];var o=a.measure(s,r);if(o!==undefined){t[s]=o}}return Object.keys(t).sort((function(e,n){var a=t[e]-t[n];return a!==0?a:kn(e,n)}))}var Ln=function(){function e(e){this._input=e;this._inputLowerCase=e.toLowerCase();this._inputArray=On(this._inputLowerCase);this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}var n=e.prototype;n.measure=function e(n,t){if(this._input===n){return 0}var a=n.toLowerCase();if(this._inputLowerCase===a){return 1}var r=On(a);var i=this._inputArray;if(r.length<i.length){var s=r;r=i;i=s}var o=r.length;var l=i.length;if(o-l>t){return undefined}var d=this._rows;for(var u=0;u<=l;u++){d[0][u]=u}for(var c=1;c<=o;c++){var m=d[(c-1)%3];var p=d[c%3];var g=p[0]=c;for(var f=1;f<=l;f++){var h=r[c-1]===i[f-1]?0:1;var v=Math.min(m[f]+1,p[f-1]+1,m[f-1]+h);if(c>1&&f>1&&r[c-1]===i[f-2]&&r[c-2]===i[f-1]){var b=d[(c-2)%3][f-2];v=Math.min(v,b+1)}if(v<g){g=v}p[f]=v}if(g>t){return undefined}}var y=d[o%3][l];return y<=t?y:undefined};return e}();function On(e){var n=e.length;var t=new Array(n);for(var a=0;a<n;++a){t[a]=e.charCodeAt(a)}return t}function Un(e,n){switch(e.kind){case fe.NULL:return null;case fe.INT:return parseInt(e.value,10);case fe.FLOAT:return parseFloat(e.value);case fe.STRING:case fe.ENUM:case fe.BOOLEAN:return e.value;case fe.LIST:return e.values.map((function(e){return Un(e,n)}));case fe.OBJECT:return Rn(e.fields,(function(e){return e.name.value}),(function(e){return Un(e.value,n)}));case fe.VARIABLE:return n===null||n===void 0?void 0:n[e.name.value]}he(0,"Unexpected value node: "+me(e))}function Bn(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}function Mn(e,n,t){if(n)Bn(e.prototype,n);if(t)Bn(e,t);return e}function Gn(e){return Wn(e)||jn(e)||Hn(e)||zn(e)||Yn(e)||Jn(e)||Kn(e)||Xn(e)}function Vn(e){if(!Gn(e)){throw new Error("Expected ".concat(me(e)," to be a GraphQL type."))}return e}function Wn(e){return ve(e,mt)}function jn(e){return ve(e,pt)}function Hn(e){return ve(e,wt)}function zn(e){return ve(e,_t)}function Yn(e){return ve(e,Tt)}function Jn(e){return ve(e,Ct)}function Kn(e){return ve(e,tt)}function Xn(e){return ve(e,at)}function $n(e){return Wn(e)||Yn(e)||Jn(e)||rt(e)&&$n(e.ofType)}function Qn(e){return Wn(e)||jn(e)||Hn(e)||zn(e)||Yn(e)||rt(e)&&Qn(e.ofType)}function Zn(e){return Wn(e)||Yn(e)}function et(e){return jn(e)||Hn(e)||zn(e)}function nt(e){return Hn(e)||zn(e)}function tt(e){if(this instanceof tt){this.ofType=Vn(e)}else{return new tt(e)}}tt.prototype.toString=function e(){return"["+String(this.ofType)+"]"};tt.prototype.toJSON=function e(){return this.toString()};Object.defineProperty(tt.prototype,be,{get:function e(){return"GraphQLList"}});ye(tt);function at(e){if(this instanceof at){this.ofType=st(e)}else{return new at(e)}}at.prototype.toString=function e(){return String(this.ofType)+"!"};at.prototype.toJSON=function e(){return this.toString()};Object.defineProperty(at.prototype,be,{get:function e(){return"GraphQLNonNull"}});ye(at);function rt(e){return Kn(e)||Xn(e)}function it(e){return Gn(e)&&!Xn(e)}function st(e){if(!it(e)){throw new Error("Expected ".concat(me(e)," to be a GraphQL nullable type."))}return e}function ot(e){if(e){return Xn(e)?e.ofType:e}}function lt(e){return Wn(e)||jn(e)||Hn(e)||zn(e)||Yn(e)||Jn(e)}function dt(e){if(e){var n=e;while(rt(n)){n=n.ofType}return n}}function ut(e){return typeof e==="function"?e():e}function ct(e){return e&&e.length>0?e:undefined}var mt=function(){function e(e){var n,t,a;var r=(n=e.parseValue)!==null&&n!==void 0?n:An;this.name=e.name;this.description=e.description;this.specifiedByUrl=e.specifiedByUrl;this.serialize=(t=e.serialize)!==null&&t!==void 0?t:An;this.parseValue=r;this.parseLiteral=(a=e.parseLiteral)!==null&&a!==void 0?a:function(e,n){return r(Un(e,n))};this.extensions=e.extensions&&Cn(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=ct(e.extensionASTNodes);typeof e.name==="string"||ge(0,"Must provide name.");e.specifiedByUrl==null||typeof e.specifiedByUrl==="string"||ge(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(me(e.specifiedByUrl),"."));e.serialize==null||typeof e.serialize==="function"||ge(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.'));if(e.parseLiteral){typeof e.parseValue==="function"&&typeof e.parseLiteral==="function"||ge(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.'))}}var n=e.prototype;n.toConfig=function e(){var n;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}};n.toString=function e(){return this.name};n.toJSON=function e(){return this.toString()};Mn(e,[{key:be,get:function e(){return"GraphQLScalarType"}}]);return e}();ye(mt);var pt=function(){function e(e){this.name=e.name;this.description=e.description;this.isTypeOf=e.isTypeOf;this.extensions=e.extensions&&Cn(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=ct(e.extensionASTNodes);this._fields=ft.bind(undefined,e);this._interfaces=gt.bind(undefined,e);typeof e.name==="string"||ge(0,"Must provide name.");e.isTypeOf==null||typeof e.isTypeOf==="function"||ge(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(me(e.isTypeOf),"."))}var n=e.prototype;n.getFields=function e(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields};n.getInterfaces=function e(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces};n.toConfig=function e(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:vt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}};n.toString=function e(){return this.name};n.toJSON=function e(){return this.toString()};Mn(e,[{key:be,get:function e(){return"GraphQLObjectType"}}]);return e}();ye(pt);function gt(e){var n;var t=(n=ut(e.interfaces))!==null&&n!==void 0?n:[];Array.isArray(t)||ge(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array."));return t}function ft(e){var n=ut(e.fields);ht(n)||ge(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object."));return En(n,(function(n,t){var a;ht(n)||ge(0,"".concat(e.name,".").concat(t," field config must be an object."));!("isDeprecated"in n)||ge(0,"".concat(e.name,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".'));n.resolve==null||typeof n.resolve==="function"||ge(0,"".concat(e.name,".").concat(t," field resolver must be a function if ")+"provided, but got: ".concat(me(n.resolve),"."));var r=(a=n.args)!==null&&a!==void 0?a:{};ht(r)||ge(0,"".concat(e.name,".").concat(t," args must be an object with argument names as keys."));var i=Tn(r).map((function(e){var n=e[0],t=e[1];return{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&Cn(t.extensions),astNode:t.astNode}}));return{name:t,description:n.description,type:n.type,args:i,resolve:n.resolve,subscribe:n.subscribe,isDeprecated:n.deprecationReason!=null,deprecationReason:n.deprecationReason,extensions:n.extensions&&Cn(n.extensions),astNode:n.astNode}}))}function ht(e){return _e(e)&&!Array.isArray(e)}function vt(e){return En(e,(function(e){return{description:e.description,type:e.type,args:bt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function bt(e){return Rn(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function yt(e){return Xn(e.type)&&e.defaultValue===undefined}var wt=function(){function e(e){this.name=e.name;this.description=e.description;this.resolveType=e.resolveType;this.extensions=e.extensions&&Cn(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=ct(e.extensionASTNodes);this._fields=ft.bind(undefined,e);this._interfaces=gt.bind(undefined,e);typeof e.name==="string"||ge(0,"Must provide name.");e.resolveType==null||typeof e.resolveType==="function"||ge(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(me(e.resolveType),"."))}var n=e.prototype;n.getFields=function e(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields};n.getInterfaces=function e(){if(typeof this._interfaces==="function"){this._interfaces=this._interfaces()}return this._interfaces};n.toConfig=function e(){var n;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:vt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}};n.toString=function e(){return this.name};n.toJSON=function e(){return this.toString()};Mn(e,[{key:be,get:function e(){return"GraphQLInterfaceType"}}]);return e}();ye(wt);var _t=function(){function e(e){this.name=e.name;this.description=e.description;this.resolveType=e.resolveType;this.extensions=e.extensions&&Cn(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=ct(e.extensionASTNodes);this._types=xt.bind(undefined,e);typeof e.name==="string"||ge(0,"Must provide name.");e.resolveType==null||typeof e.resolveType==="function"||ge(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(me(e.resolveType),"."))}var n=e.prototype;n.getTypes=function e(){if(typeof this._types==="function"){this._types=this._types()}return this._types};n.toConfig=function e(){var n;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}};n.toString=function e(){return this.name};n.toJSON=function e(){return this.toString()};Mn(e,[{key:be,get:function e(){return"GraphQLUnionType"}}]);return e}();ye(_t);function xt(e){var n=ut(e.types);Array.isArray(n)||ge(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,"."));return n}var Tt=function(){function e(e){this.name=e.name;this.description=e.description;this.extensions=e.extensions&&Cn(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=ct(e.extensionASTNodes);this._values=Et(this.name,e.values);this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]})));this._nameLookup=Sn(this._values,(function(e){return e.name}));typeof e.name==="string"||ge(0,"Must provide name.")}var n=e.prototype;n.getValues=function e(){return this._values};n.getValue=function e(n){return this._nameLookup[n]};n.serialize=function e(n){var t=this._valueLookup.get(n);if(t===undefined){throw new pe('Enum "'.concat(this.name,'" cannot represent value: ').concat(me(n)))}return t.name};n.parseValue=function e(n){if(typeof n!=="string"){var t=me(n);throw new pe('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(t,".")+St(this,t))}var a=this.getValue(n);if(a==null){throw new pe('Value "'.concat(n,'" does not exist in "').concat(this.name,'" enum.')+St(this,n))}return a.value};n.parseLiteral=function e(n,t){if(n.kind!==fe.ENUM){var a=we(n);throw new pe('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(a,".")+St(this,a),n)}var r=this.getValue(n.value);if(r==null){var i=we(n);throw new pe('Value "'.concat(i,'" does not exist in "').concat(this.name,'" enum.')+St(this,i),n)}return r.value};n.toConfig=function e(){var n;var t=Rn(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}};n.toString=function e(){return this.name};n.toJSON=function e(){return this.toString()};Mn(e,[{key:be,get:function e(){return"GraphQLEnumType"}}]);return e}();ye(Tt);function St(e,n){var t=e.getValues().map((function(e){return e.name}));var a=Fn(n,t);return Dn("the enum value",a)}function Et(e,n){ht(n)||ge(0,"".concat(e," values must be an object with value names as keys."));return Tn(n).map((function(n){var t=n[0],a=n[1];ht(a)||ge(0,"".concat(e,".").concat(t,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(me(a),"."));!("isDeprecated"in a)||ge(0,"".concat(e,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".'));return{name:t,description:a.description,value:a.value!==undefined?a.value:t,isDeprecated:a.deprecationReason!=null,deprecationReason:a.deprecationReason,extensions:a.extensions&&Cn(a.extensions),astNode:a.astNode}}))}var Ct=function(){function e(e){this.name=e.name;this.description=e.description;this.extensions=e.extensions&&Cn(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=ct(e.extensionASTNodes);this._fields=Rt.bind(undefined,e);typeof e.name==="string"||ge(0,"Must provide name.")}var n=e.prototype;n.getFields=function e(){if(typeof this._fields==="function"){this._fields=this._fields()}return this._fields};n.toConfig=function e(){var n;var t=En(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}};n.toString=function e(){return this.name};n.toJSON=function e(){return this.toString()};Mn(e,[{key:be,get:function e(){return"GraphQLInputObjectType"}}]);return e}();ye(Ct);function Rt(e){var n=ut(e.fields);ht(n)||ge(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object."));return En(n,(function(n,t){!("resolve"in n)||ge(0,"".concat(e.name,".").concat(t," field has a resolve property, but Input Types cannot define resolvers."));return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Cn(n.extensions),astNode:n.astNode}}))}function It(e){return Xn(e.type)&&e.defaultValue===undefined}function Dt(e,n){if(e===n){return true}if(Xn(e)&&Xn(n)){return Dt(e.ofType,n.ofType)}if(Kn(e)&&Kn(n)){return Dt(e.ofType,n.ofType)}return false}function At(e,n,t){if(n===t){return true}if(Xn(t)){if(Xn(n)){return At(e,n.ofType,t.ofType)}return false}if(Xn(n)){return At(e,n.ofType,t)}if(Kn(t)){if(Kn(n)){return At(e,n.ofType,t.ofType)}return false}if(Kn(n)){return false}return nt(t)&&(Hn(n)||jn(n))&&e.isSubType(t,n)}function kt(e,n,t){if(n===t){return true}if(nt(n)){if(nt(t)){return e.getPossibleTypes(n).some((function(n){return e.isSubType(t,n)}))}return e.isSubType(n,t)}if(nt(t)){return e.isSubType(t,n)}return false}var qt=Array.from||function(e,n,t){if(e==null){throw new TypeError("Array.from requires an array-like object - not null or undefined")}var a=e[xe];if(typeof a==="function"){var r=a.call(e);var i=[];var s;for(var o=0;!(s=r.next()).done;++o){i.push(n.call(t,s.value,o));if(o>9999999){throw new TypeError("Near-infinite iteration.")}}return i}var l=e.length;if(typeof l==="number"&&l>=0&&l%1===0){var d=[];for(var u=0;u<l;++u){if(Object.prototype.hasOwnProperty.call(e,u)){d.push(n.call(t,e[u],u))}}return d}return[]};var Pt=Number.isFinite||function(e){return typeof e==="number"&&isFinite(e)};function Nt(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Nt=function e(n){return typeof n}}else{Nt=function e(n){return n&&typeof Symbol==="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n}}return Nt(e)}function Ft(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(e){return e};if(e==null||Nt(e)!=="object"){return null}if(Array.isArray(e)){return e.map(n)}var t=e[xe];if(typeof t==="function"){var a=t.call(e);var r=[];var i;for(var s=0;!(i=a.next()).done;++s){r.push(n(i.value,s))}return r}var o=e.length;if(typeof o==="number"&&o>=0&&o%1===0){var l=[];for(var d=0;d<o;++d){if(!Object.prototype.hasOwnProperty.call(e,d)){return null}l.push(n(e[String(d)],d))}return l}return null}var Lt=Number.isInteger||function(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e};var Ot=2147483647;var Ut=-2147483648;function Bt(e){var n=Ht(e);if(typeof n==="boolean"){return n?1:0}var t=n;if(typeof n==="string"&&n!==""){t=Number(n)}if(!Lt(t)){throw new pe("Int cannot represent non-integer value: ".concat(me(n)))}if(t>Ot||t<Ut){throw new pe("Int cannot represent non 32-bit signed integer value: "+me(n))}return t}function Mt(e){if(!Lt(e)){throw new pe("Int cannot represent non-integer value: ".concat(me(e)))}if(e>Ot||e<Ut){throw new pe("Int cannot represent non 32-bit signed integer value: ".concat(e))}return e}var Gt=new mt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:Bt,parseValue:Mt,parseLiteral:function e(n){if(n.kind!==fe.INT){throw new pe("Int cannot represent non-integer value: ".concat(we(n)),n)}var t=parseInt(n.value,10);if(t>Ot||t<Ut){throw new pe("Int cannot represent non 32-bit signed integer value: ".concat(n.value),n)}return t}});function Vt(e){var n=Ht(e);if(typeof n==="boolean"){return n?1:0}var t=n;if(typeof n==="string"&&n!==""){t=Number(n)}if(!Pt(t)){throw new pe("Float cannot represent non numeric value: ".concat(me(n)))}return t}function Wt(e){if(!Pt(e)){throw new pe("Float cannot represent non numeric value: ".concat(me(e)))}return e}var jt=new mt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:Vt,parseValue:Wt,parseLiteral:function e(n){if(n.kind!==fe.FLOAT&&n.kind!==fe.INT){throw new pe("Float cannot represent non numeric value: ".concat(we(n)),n)}return parseFloat(n.value)}});function Ht(e){if(_e(e)){if(typeof e.valueOf==="function"){var n=e.valueOf();if(!_e(n)){return n}}if(typeof e.toJSON==="function"){return e.toJSON()}}return e}function zt(e){var n=Ht(e);if(typeof n==="string"){return n}if(typeof n==="boolean"){return n?"true":"false"}if(Pt(n)){return n.toString()}throw new pe("String cannot represent value: ".concat(me(e)))}function Yt(e){if(typeof e!=="string"){throw new pe("String cannot represent a non string value: ".concat(me(e)))}return e}var Jt=new mt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:zt,parseValue:Yt,parseLiteral:function e(n){if(n.kind!==fe.STRING){throw new pe("String cannot represent a non string value: ".concat(we(n)),n)}return n.value}});function Kt(e){var n=Ht(e);if(typeof n==="boolean"){return n}if(Pt(n)){return n!==0}throw new pe("Boolean cannot represent a non boolean value: ".concat(me(n)))}function Xt(e){if(typeof e!=="boolean"){throw new pe("Boolean cannot represent a non boolean value: ".concat(me(e)))}return e}var $t=new mt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Kt,parseValue:Xt,parseLiteral:function e(n){if(n.kind!==fe.BOOLEAN){throw new pe("Boolean cannot represent a non boolean value: ".concat(we(n)),n)}return n.value}});function Qt(e){var n=Ht(e);if(typeof n==="string"){return n}if(Lt(n)){return String(n)}throw new pe("ID cannot represent value: ".concat(me(e)))}function Zt(e){if(typeof e==="string"){return e}if(Lt(e)){return e.toString()}throw new pe("ID cannot represent value: ".concat(me(e)))}var ea=new mt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:Qt,parseValue:Zt,parseLiteral:function e(n){if(n.kind!==fe.STRING&&n.kind!==fe.INT){throw new pe("ID cannot represent a non-string and non-integer value: "+we(n),n)}return n.value}});var na=Object.freeze([Jt,Gt,jt,$t,ea]);function ta(e){return na.some((function(n){var t=n.name;return e.name===t}))}function aa(e,n){if(Xn(n)){var t=aa(e,n.ofType);if((t===null||t===void 0?void 0:t.kind)===fe.NULL){return null}return t}if(e===null){return{kind:fe.NULL}}if(e===undefined){return null}if(Kn(n)){var a=n.ofType;var r=Ft(e);if(r!=null){var i=[];for(var s=0;s<r.length;s++){var o=r[s];var l=aa(o,a);if(l!=null){i.push(l)}}return{kind:fe.LIST,values:i}}return aa(e,a)}if(Jn(n)){if(!_e(e)){return null}var d=[];for(var u=0,c=yn(n.getFields());u<c.length;u++){var m=c[u];var p=aa(e[m.name],m.type);if(p){d.push({kind:fe.OBJECT_FIELD,name:{kind:fe.NAME,value:m.name},value:p})}}return{kind:fe.OBJECT,fields:d}}if(Zn(n)){var g=n.serialize(e);if(g==null){return null}if(typeof g==="boolean"){return{kind:fe.BOOLEAN,value:g}}if(typeof g==="number"&&Pt(g)){var f=String(g);return ra.test(f)?{kind:fe.INT,value:f}:{kind:fe.FLOAT,value:f}}if(typeof g==="string"){if(Yn(n)){return{kind:fe.ENUM,value:g}}if(n===ea&&ra.test(g)){return{kind:fe.INT,value:g}}return{kind:fe.STRING,value:g}}throw new TypeError("Cannot convert value to AST: ".concat(me(g),"."))}he(0,"Unexpected input type: "+me(n))}var ra=/^-?(?:0|[1-9][0-9]*)$/;var ia=new pt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function e(){return{description:{type:Jt,resolve:function e(n){return n.description}},types:{description:"A list of all types supported by this server.",type:new at(new tt(new at(la))),resolve:function e(n){return yn(n.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new at(la),resolve:function e(n){return n.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:la,resolve:function e(n){return n.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:la,resolve:function e(n){return n.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new at(new tt(new at(sa))),resolve:function e(n){return n.getDirectives()}}}}});var sa=new pt({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:function e(){return{name:{type:new at(Jt),resolve:function e(n){return n.name}},description:{type:Jt,resolve:function e(n){return n.description}},isRepeatable:{type:new at($t),resolve:function e(n){return n.isRepeatable}},locations:{type:new at(new tt(new at(oa))),resolve:function e(n){return n.locations}},args:{type:new at(new tt(new at(ua))),args:{includeDeprecated:{type:$t,defaultValue:false}},resolve:function e(n,t){var a=t.includeDeprecated;return a?n.args:n.args.filter((function(e){return e.deprecationReason==null}))}}}}});var oa=new Tt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Te.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Te.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Te.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Te.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Te.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Te.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Te.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Te.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Te.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Te.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Te.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Te.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Te.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Te.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Te.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Te.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Te.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Te.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Te.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});var la=new pt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function e(){return{kind:{type:new at(pa),resolve:function e(n){if(Wn(n)){return ma.SCALAR}if(jn(n)){return ma.OBJECT}if(Hn(n)){return ma.INTERFACE}if(zn(n)){return ma.UNION}if(Yn(n)){return ma.ENUM}if(Jn(n)){return ma.INPUT_OBJECT}if(Kn(n)){return ma.LIST}if(Xn(n)){return ma.NON_NULL}he(0,'Unexpected type: "'.concat(me(n),'".'))}},name:{type:Jt,resolve:function e(n){return n.name!==undefined?n.name:undefined}},description:{type:Jt,resolve:function e(n){return n.description!==undefined?n.description:undefined}},specifiedByUrl:{type:Jt,resolve:function e(n){return n.specifiedByUrl!==undefined?n.specifiedByUrl:undefined}},fields:{type:new tt(new at(da)),args:{includeDeprecated:{type:$t,defaultValue:false}},resolve:function e(n,t){var a=t.includeDeprecated;if(jn(n)||Hn(n)){var r=yn(n.getFields());return a?r:r.filter((function(e){return e.deprecationReason==null}))}}},interfaces:{type:new tt(new at(la)),resolve:function e(n){if(jn(n)||Hn(n)){return n.getInterfaces()}}},possibleTypes:{type:new tt(new at(la)),resolve:function e(n,t,a,r){var i=r.schema;if(nt(n)){return i.getPossibleTypes(n)}}},enumValues:{type:new tt(new at(ca)),args:{includeDeprecated:{type:$t,defaultValue:false}},resolve:function e(n,t){var a=t.includeDeprecated;if(Yn(n)){var r=n.getValues();return a?r:r.filter((function(e){return e.deprecationReason==null}))}}},inputFields:{type:new tt(new at(ua)),args:{includeDeprecated:{type:$t,defaultValue:false}},resolve:function e(n,t){var a=t.includeDeprecated;if(Jn(n)){var r=yn(n.getFields());return a?r:r.filter((function(e){return e.deprecationReason==null}))}}},ofType:{type:la,resolve:function e(n){return n.ofType!==undefined?n.ofType:undefined}}}}});var da=new pt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function e(){return{name:{type:new at(Jt),resolve:function e(n){return n.name}},description:{type:Jt,resolve:function e(n){return n.description}},args:{type:new at(new tt(new at(ua))),args:{includeDeprecated:{type:$t,defaultValue:false}},resolve:function e(n,t){var a=t.includeDeprecated;return a?n.args:n.args.filter((function(e){return e.deprecationReason==null}))}},type:{type:new at(la),resolve:function e(n){return n.type}},isDeprecated:{type:new at($t),resolve:function e(n){return n.deprecationReason!=null}},deprecationReason:{type:Jt,resolve:function e(n){return n.deprecationReason}}}}});var ua=new pt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function e(){return{name:{type:new at(Jt),resolve:function e(n){return n.name}},description:{type:Jt,resolve:function e(n){return n.description}},type:{type:new at(la),resolve:function e(n){return n.type}},defaultValue:{type:Jt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function e(n){var t=n.type,a=n.defaultValue;var r=aa(a,t);return r?we(r):null}},isDeprecated:{type:new at($t),resolve:function e(n){return n.deprecationReason!=null}},deprecationReason:{type:Jt,resolve:function e(n){return n.deprecationReason}}}}});var ca=new pt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function e(){return{name:{type:new at(Jt),resolve:function e(n){return n.name}},description:{type:Jt,resolve:function e(n){return n.description}},isDeprecated:{type:new at($t),resolve:function e(n){return n.deprecationReason!=null}},deprecationReason:{type:Jt,resolve:function e(n){return n.deprecationReason}}}}});var ma=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"});var pa=new Tt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ma.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ma.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ma.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ma.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ma.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ma.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ma.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ma.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});var ga={name:"__schema",type:new at(ia),description:"Access the current type schema of this server.",args:[],resolve:function e(n,t,a,r){var i=r.schema;return i},isDeprecated:false,deprecationReason:undefined,extensions:undefined,astNode:undefined};var fa={name:"__type",type:la,description:"Request the type information of a single type.",args:[{name:"name",description:undefined,type:new at(Jt),defaultValue:undefined,deprecationReason:undefined,extensions:undefined,astNode:undefined}],resolve:function e(n,t,a,r){var i=t.name;var s=r.schema;return s.getType(i)},isDeprecated:false,deprecationReason:undefined,extensions:undefined,astNode:undefined};var ha={name:"__typename",type:new at(Jt),description:"The name of the current Object type at runtime.",args:[],resolve:function e(n,t,a,r){var i=r.parentType;return i.name},isDeprecated:false,deprecationReason:undefined,extensions:undefined,astNode:undefined};var va=Object.freeze([ia,sa,oa,la,da,ua,ca,pa]);function ba(e){return va.some((function(n){var t=n.name;return e.name===t}))}function ya(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}function wa(e,n,t){if(n)ya(e.prototype,n);if(t)ya(e,t);return e}function _a(e){return ve(e,xa)}var xa=function(){function e(e){var n,t;this.name=e.name;this.description=e.description;this.locations=e.locations;this.isRepeatable=(n=e.isRepeatable)!==null&&n!==void 0?n:false;this.extensions=e.extensions&&Cn(e.extensions);this.astNode=e.astNode;e.name||ge(0,"Directive must be named.");Array.isArray(e.locations)||ge(0,"@".concat(e.name," locations must be an Array."));var a=(t=e.args)!==null&&t!==void 0?t:{};_e(a)&&!Array.isArray(a)||ge(0,"@".concat(e.name," args must be an object with argument names as keys."));this.args=Tn(a).map((function(e){var n=e[0],t=e[1];return{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&Cn(t.extensions),astNode:t.astNode}}))}var n=e.prototype;n.toConfig=function e(){return{name:this.name,description:this.description,locations:this.locations,args:bt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}};n.toString=function e(){return"@"+this.name};n.toJSON=function e(){return this.toString()};wa(e,[{key:be,get:function e(){return"GraphQLDirective"}}]);return e}();ye(xa);var Ta=new xa({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Te.FIELD,Te.FRAGMENT_SPREAD,Te.INLINE_FRAGMENT],args:{if:{type:new at($t),description:"Included when true."}}});var Sa=new xa({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Te.FIELD,Te.FRAGMENT_SPREAD,Te.INLINE_FRAGMENT],args:{if:{type:new at($t),description:"Skipped when true."}}});var Ea="No longer supported";var Ca=new xa({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Te.FIELD_DEFINITION,Te.ARGUMENT_DEFINITION,Te.INPUT_FIELD_DEFINITION,Te.ENUM_VALUE],args:{reason:{type:Jt,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Ea}}});var Ra=new xa({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[Te.SCALAR],args:{url:{type:new at(Jt),description:"The URL that specifies the behaviour of this scalar."}}});var Ia=Object.freeze([Ta,Sa,Ca,Ra]);function Da(e){return Ia.some((function(n){var t=n.name;return t===e.name}))}function Aa(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}function ka(e,n,t){if(n)Aa(e.prototype,n);if(t)Aa(e,t);return e}function qa(e){return ve(e,Na)}function Pa(e){if(!qa(e)){throw new Error("Expected ".concat(me(e)," to be a GraphQL schema."))}return e}var Na=function(){function e(e){var n;this.__validationErrors=e.assumeValid===true?[]:undefined;_e(e)||ge(0,"Must provide configuration object.");!e.types||Array.isArray(e.types)||ge(0,'"types" must be Array if provided but got: '.concat(me(e.types),"."));!e.directives||Array.isArray(e.directives)||ge(0,'"directives" must be Array if provided but got: '+"".concat(me(e.directives),"."));this.description=e.description;this.extensions=e.extensions&&Cn(e.extensions);this.astNode=e.astNode;this.extensionASTNodes=e.extensionASTNodes;this._queryType=e.query;this._mutationType=e.mutation;this._subscriptionType=e.subscription;this._directives=(n=e.directives)!==null&&n!==void 0?n:Ia;var t=new Set(e.types);if(e.types!=null){for(var a=0,r=e.types;a<r.length;a++){var i=r[a];t.delete(i);Fa(i,t)}}if(this._queryType!=null){Fa(this._queryType,t)}if(this._mutationType!=null){Fa(this._mutationType,t)}if(this._subscriptionType!=null){Fa(this._subscriptionType,t)}for(var s=0,o=this._directives;s<o.length;s++){var l=o[s];if(_a(l)){for(var d=0,u=l.args;d<u.length;d++){var c=u[d];Fa(c.type,t)}}}Fa(ia,t);this._typeMap=Object.create(null);this._subTypeMap=Object.create(null);this._implementationsMap=Object.create(null);for(var m=0,p=qt(t);m<p.length;m++){var g=p[m];if(g==null){continue}var f=g.name;f||ge(0,"One of the provided types for building the Schema is missing a name.");if(this._typeMap[f]!==undefined){throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(f,'".'))}this._typeMap[f]=g;if(Hn(g)){for(var h=0,v=g.getInterfaces();h<v.length;h++){var b=v[h];if(Hn(b)){var y=this._implementationsMap[b.name];if(y===undefined){y=this._implementationsMap[b.name]={objects:[],interfaces:[]}}y.interfaces.push(g)}}}else if(jn(g)){for(var w=0,_=g.getInterfaces();w<_.length;w++){var x=_[w];if(Hn(x)){var T=this._implementationsMap[x.name];if(T===undefined){T=this._implementationsMap[x.name]={objects:[],interfaces:[]}}T.objects.push(g)}}}}}var n=e.prototype;n.getQueryType=function e(){return this._queryType};n.getMutationType=function e(){return this._mutationType};n.getSubscriptionType=function e(){return this._subscriptionType};n.getTypeMap=function e(){return this._typeMap};n.getType=function e(n){return this.getTypeMap()[n]};n.getPossibleTypes=function e(n){return zn(n)?n.getTypes():this.getImplementations(n).objects};n.getImplementations=function e(n){var t=this._implementationsMap[n.name];return t!==null&&t!==void 0?t:{objects:[],interfaces:[]}};n.isPossibleType=function e(n,t){return this.isSubType(n,t)};n.isSubType=function e(n,t){var a=this._subTypeMap[n.name];if(a===undefined){a=Object.create(null);if(zn(n)){for(var r=0,i=n.getTypes();r<i.length;r++){var s=i[r];a[s.name]=true}}else{var o=this.getImplementations(n);for(var l=0,d=o.objects;l<d.length;l++){var u=d[l];a[u.name]=true}for(var c=0,m=o.interfaces;c<m.length;c++){var p=m[c];a[p.name]=true}}this._subTypeMap[n.name]=a}return a[t.name]!==undefined};n.getDirectives=function e(){return this._directives};n.getDirective=function e(n){return bn(this.getDirectives(),(function(e){return e.name===n}))};n.toConfig=function e(){var n;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:yn(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[],assumeValid:this.__validationErrors!==undefined}};ka(e,[{key:be,get:function e(){return"GraphQLSchema"}}]);return e}();function Fa(e,n){var t=dt(e);if(!n.has(t)){n.add(t);if(zn(t)){for(var a=0,r=t.getTypes();a<r.length;a++){var i=r[a];Fa(i,n)}}else if(jn(t)||Hn(t)){for(var s=0,o=t.getInterfaces();s<o.length;s++){var l=o[s];Fa(l,n)}for(var d=0,u=yn(t.getFields());d<u.length;d++){var c=u[d];Fa(c.type,n);for(var m=0,p=c.args;m<p.length;m++){var g=p[m];Fa(g.type,n)}}}else if(Jn(t)){for(var f=0,h=yn(t.getFields());f<h.length;f++){var v=h[f];Fa(v.type,n)}}}return n}function La(e){Pa(e);if(e.__validationErrors){return e.__validationErrors}var n=new Ua(e);Ba(n);Ga(n);Wa(n);var t=n.getErrors();e.__validationErrors=t;return t}function Oa(e){var n=La(e);if(n.length!==0){throw new Error(n.map((function(e){return e.message})).join("\n\n"))}}var Ua=function(){function e(e){this._errors=[];this.schema=e}var n=e.prototype;n.reportError=function e(n,t){var a=Array.isArray(t)?t.filter(Boolean):t;this.addError(new pe(n,a))};n.addError=function e(n){this._errors.push(n)};n.getErrors=function e(){return this._errors};return e}();function Ba(e){var n=e.schema;var t=n.getQueryType();if(!t){e.reportError("Query root type must be provided.",n.astNode)}else if(!jn(t)){var a;e.reportError("Query root type must be Object type, it cannot be ".concat(me(t),"."),(a=Ma(n,"query"))!==null&&a!==void 0?a:t.astNode)}var r=n.getMutationType();if(r&&!jn(r)){var i;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(me(r),"."),(i=Ma(n,"mutation"))!==null&&i!==void 0?i:r.astNode)}var s=n.getSubscriptionType();if(s&&!jn(s)){var o;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(me(s),"."),(o=Ma(n,"subscription"))!==null&&o!==void 0?o:s.astNode)}}function Ma(e,n){var t=Za(e,(function(e){return e.operationTypes}));for(var a=0;a<t.length;a++){var r=t[a];if(r.operation===n){return r.type}}return undefined}function Ga(e){for(var n=0,t=e.schema.getDirectives();n<t.length;n++){var a=t[n];if(!_a(a)){e.reportError("Expected directive but got: ".concat(me(a),"."),a===null||a===void 0?void 0:a.astNode);continue}Va(e,a);for(var r=0,i=a.args;r<i.length;r++){var s=i[r];Va(e,s);if(!$n(s.type)){e.reportError("The type of @".concat(a.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat(me(s.type),"."),s.astNode)}if(yt(s)&&s.deprecationReason!=null){var o;e.reportError("Required argument @".concat(a.name,"(").concat(s.name,":) cannot be deprecated."),[tr(s.astNode),(o=s.astNode)===null||o===void 0?void 0:o.type])}}}}function Va(e,n){var t=xn(n.name);if(t){e.addError(wn(t,n.astNode))}}function Wa(e){var n=$a(e);var t=e.schema.getTypeMap();for(var a=0,r=yn(t);a<r.length;a++){var i=r[a];if(!lt(i)){e.reportError("Expected GraphQL named type but got: ".concat(me(i),"."),i.astNode);continue}if(!ba(i)){Va(e,i)}if(jn(i)){ja(e,i);Ha(e,i)}else if(Hn(i)){ja(e,i);Ha(e,i)}else if(zn(i)){Ja(e,i)}else if(Yn(i)){Ka(e,i)}else if(Jn(i)){Xa(e,i);n(i)}}}function ja(e,n){var t=yn(n.getFields());if(t.length===0){e.reportError("Type ".concat(n.name," must define one or more fields."),Qa(n))}for(var a=0;a<t.length;a++){var r=t[a];Va(e,r);if(!Qn(r.type)){var i;e.reportError("The type of ".concat(n.name,".").concat(r.name," must be Output Type ")+"but got: ".concat(me(r.type),"."),(i=r.astNode)===null||i===void 0?void 0:i.type)}for(var s=0,o=r.args;s<o.length;s++){var l=o[s];var d=l.name;Va(e,l);if(!$n(l.type)){var u;e.reportError("The type of ".concat(n.name,".").concat(r.name,"(").concat(d,":) must be Input ")+"Type but got: ".concat(me(l.type),"."),(u=l.astNode)===null||u===void 0?void 0:u.type)}if(yt(l)&&l.deprecationReason!=null){var c;e.reportError("Required argument ".concat(n.name,".").concat(r.name,"(").concat(d,":) cannot be deprecated."),[tr(l.astNode),(c=l.astNode)===null||c===void 0?void 0:c.type])}}}}function Ha(e,n){var t=Object.create(null);for(var a=0,r=n.getInterfaces();a<r.length;a++){var i=r[a];if(!Hn(i)){e.reportError("Type ".concat(me(n)," must only implement Interface types, ")+"it cannot implement ".concat(me(i),"."),er(n,i));continue}if(n===i){e.reportError("Type ".concat(n.name," cannot implement itself because it would create a circular reference."),er(n,i));continue}if(t[i.name]){e.reportError("Type ".concat(n.name," can only implement ").concat(i.name," once."),er(n,i));continue}t[i.name]=true;Ya(e,n,i);za(e,n,i)}}function za(e,n,t){var a=n.getFields();for(var r=0,i=yn(t.getFields());r<i.length;r++){var s=i[r];var o=s.name;var l=a[o];if(!l){e.reportError("Interface field ".concat(t.name,".").concat(o," expected but ").concat(n.name," does not provide it."),[s.astNode].concat(Qa(n)));continue}if(!At(e.schema,l.type,s.type)){var d,u;e.reportError("Interface field ".concat(t.name,".").concat(o," expects type ")+"".concat(me(s.type)," but ").concat(n.name,".").concat(o," ")+"is type ".concat(me(l.type),"."),[(d=s.astNode)===null||d===void 0?void 0:d.type,(u=l.astNode)===null||u===void 0?void 0:u.type])}var c=function a(r,i){var s=i[r];var d=s.name;var u=bn(l.args,(function(e){return e.name===d}));if(!u){e.reportError("Interface field argument ".concat(t.name,".").concat(o,"(").concat(d,":) expected but ").concat(n.name,".").concat(o," does not provide it."),[s.astNode,l.astNode]);return"continue"}if(!Dt(s.type,u.type)){var c,m;e.reportError("Interface field argument ".concat(t.name,".").concat(o,"(").concat(d,":) ")+"expects type ".concat(me(s.type)," but ")+"".concat(n.name,".").concat(o,"(").concat(d,":) is type ")+"".concat(me(u.type),"."),[(c=s.astNode)===null||c===void 0?void 0:c.type,(m=u.astNode)===null||m===void 0?void 0:m.type])}};for(var m=0,p=s.args;m<p.length;m++){var g=c(m,p);if(g==="continue")continue}var f=function a(r,i){var l=i[r];var d=l.name;var u=bn(s.args,(function(e){return e.name===d}));if(!u&&yt(l)){e.reportError("Object field ".concat(n.name,".").concat(o," includes required argument ").concat(d," that is missing from the Interface field ").concat(t.name,".").concat(o,"."),[l.astNode,s.astNode])}};for(var h=0,v=l.args;h<v.length;h++){f(h,v)}}}function Ya(e,n,t){var a=n.getInterfaces();for(var r=0,i=t.getInterfaces();r<i.length;r++){var s=i[r];if(a.indexOf(s)===-1){e.reportError(s===n?"Type ".concat(n.name," cannot implement ").concat(t.name," because it would create a circular reference."):"Type ".concat(n.name," must implement ").concat(s.name," because it is implemented by ").concat(t.name,"."),[].concat(er(t,s),er(n,t)))}}}function Ja(e,n){var t=n.getTypes();if(t.length===0){e.reportError("Union type ".concat(n.name," must define one or more member types."),Qa(n))}var a=Object.create(null);for(var r=0;r<t.length;r++){var i=t[r];if(a[i.name]){e.reportError("Union type ".concat(n.name," can only include type ").concat(i.name," once."),nr(n,i.name));continue}a[i.name]=true;if(!jn(i)){e.reportError("Union type ".concat(n.name," can only include Object types, ")+"it cannot include ".concat(me(i),"."),nr(n,String(i)))}}}function Ka(e,n){var t=n.getValues();if(t.length===0){e.reportError("Enum type ".concat(n.name," must define one or more values."),Qa(n))}for(var a=0;a<t.length;a++){var r=t[a];var i=r.name;Va(e,r);if(i==="true"||i==="false"||i==="null"){e.reportError("Enum type ".concat(n.name," cannot include value: ").concat(i,"."),r.astNode)}}}function Xa(e,n){var t=yn(n.getFields());if(t.length===0){e.reportError("Input Object type ".concat(n.name," must define one or more fields."),Qa(n))}for(var a=0;a<t.length;a++){var r=t[a];Va(e,r);if(!$n(r.type)){var i;e.reportError("The type of ".concat(n.name,".").concat(r.name," must be Input Type ")+"but got: ".concat(me(r.type),"."),(i=r.astNode)===null||i===void 0?void 0:i.type)}if(It(r)&&r.deprecationReason!=null){var s;e.reportError("Required input field ".concat(n.name,".").concat(r.name," cannot be deprecated."),[tr(r.astNode),(s=r.astNode)===null||s===void 0?void 0:s.type])}}}function $a(e){var n=Object.create(null);var t=[];var a=Object.create(null);return r;function r(i){if(n[i.name]){return}n[i.name]=true;a[i.name]=t.length;var s=yn(i.getFields());for(var o=0;o<s.length;o++){var l=s[o];if(Xn(l.type)&&Jn(l.type.ofType)){var d=l.type.ofType;var u=a[d.name];t.push(l);if(u===undefined){r(d)}else{var c=t.slice(u);var m=c.map((function(e){return e.name})).join(".");e.reportError('Cannot reference Input Object "'.concat(d.name,'" within itself through a series of non-null fields: "').concat(m,'".'),c.map((function(e){return e.astNode})))}t.pop()}}a[i.name]=undefined}}function Qa(e){var n=e.astNode,t=e.extensionASTNodes;return n?t?[n].concat(t):[n]:t!==null&&t!==void 0?t:[]}function Za(e,n){var t=[];for(var a=0,r=Qa(e);a<r.length;a++){var i;var s=r[a];t=t.concat((i=n(s))!==null&&i!==void 0?i:[])}return t}function er(e,n){return Za(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===n.name}))}function nr(e,n){return Za(e,(function(e){return e.types})).filter((function(e){return e.name.value===n}))}function tr(e){var n;return e===null||e===void 0?void 0:(n=e.directives)===null||n===void 0?void 0:n.find((function(e){return e.name.value===Ca.name}))}function ar(e,n){var t;if(n.kind===fe.LIST_TYPE){t=ar(e,n.type);return t&&new tt(t)}if(n.kind===fe.NON_NULL_TYPE){t=ar(e,n.type);return t&&new at(t)}if(n.kind===fe.NAMED_TYPE){return e.getType(n.name.value)}he(0,"Unexpected type node: "+me(n))}var rr=function(){function e(e,n,t){this._schema=e;this._typeStack=[];this._parentTypeStack=[];this._inputTypeStack=[];this._fieldDefStack=[];this._defaultValueStack=[];this._directive=null;this._argument=null;this._enumValue=null;this._getFieldDef=n!==null&&n!==void 0?n:ir;if(t){if($n(t)){this._inputTypeStack.push(t)}if(et(t)){this._parentTypeStack.push(t)}if(Qn(t)){this._typeStack.push(t)}}}var n=e.prototype;n.getType=function e(){if(this._typeStack.length>0){return this._typeStack[this._typeStack.length-1]}};n.getParentType=function e(){if(this._parentTypeStack.length>0){return this._parentTypeStack[this._parentTypeStack.length-1]}};n.getInputType=function e(){if(this._inputTypeStack.length>0){return this._inputTypeStack[this._inputTypeStack.length-1]}};n.getParentInputType=function e(){if(this._inputTypeStack.length>1){return this._inputTypeStack[this._inputTypeStack.length-2]}};n.getFieldDef=function e(){if(this._fieldDefStack.length>0){return this._fieldDefStack[this._fieldDefStack.length-1]}};n.getDefaultValue=function e(){if(this._defaultValueStack.length>0){return this._defaultValueStack[this._defaultValueStack.length-1]}};n.getDirective=function e(){return this._directive};n.getArgument=function e(){return this._argument};n.getEnumValue=function e(){return this._enumValue};n.enter=function e(n){var t=this._schema;switch(n.kind){case fe.SELECTION_SET:{var a=dt(this.getType());this._parentTypeStack.push(et(a)?a:undefined);break}case fe.FIELD:{var r=this.getParentType();var i;var s;if(r){i=this._getFieldDef(t,r,n);if(i){s=i.type}}this._fieldDefStack.push(i);this._typeStack.push(Qn(s)?s:undefined);break}case fe.DIRECTIVE:this._directive=t.getDirective(n.name.value);break;case fe.OPERATION_DEFINITION:{var o;switch(n.operation){case"query":o=t.getQueryType();break;case"mutation":o=t.getMutationType();break;case"subscription":o=t.getSubscriptionType();break}this._typeStack.push(jn(o)?o:undefined);break}case fe.INLINE_FRAGMENT:case fe.FRAGMENT_DEFINITION:{var l=n.typeCondition;var d=l?ar(t,l):dt(this.getType());this._typeStack.push(Qn(d)?d:undefined);break}case fe.VARIABLE_DEFINITION:{var u=ar(t,n.type);this._inputTypeStack.push($n(u)?u:undefined);break}case fe.ARGUMENT:{var c;var m;var p;var g=(c=this.getDirective())!==null&&c!==void 0?c:this.getFieldDef();if(g){m=bn(g.args,(function(e){return e.name===n.name.value}));if(m){p=m.type}}this._argument=m;this._defaultValueStack.push(m?m.defaultValue:undefined);this._inputTypeStack.push($n(p)?p:undefined);break}case fe.LIST:{var f=ot(this.getInputType());var h=Kn(f)?f.ofType:f;this._defaultValueStack.push(undefined);this._inputTypeStack.push($n(h)?h:undefined);break}case fe.OBJECT_FIELD:{var v=dt(this.getInputType());var b;var y;if(Jn(v)){y=v.getFields()[n.name.value];if(y){b=y.type}}this._defaultValueStack.push(y?y.defaultValue:undefined);this._inputTypeStack.push($n(b)?b:undefined);break}case fe.ENUM:{var w=dt(this.getInputType());var _;if(Yn(w)){_=w.getValue(n.value)}this._enumValue=_;break}}};n.leave=function e(n){switch(n.kind){case fe.SELECTION_SET:this._parentTypeStack.pop();break;case fe.FIELD:this._fieldDefStack.pop();this._typeStack.pop();break;case fe.DIRECTIVE:this._directive=null;break;case fe.OPERATION_DEFINITION:case fe.INLINE_FRAGMENT:case fe.FRAGMENT_DEFINITION:this._typeStack.pop();break;case fe.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case fe.ARGUMENT:this._argument=null;this._defaultValueStack.pop();this._inputTypeStack.pop();break;case fe.LIST:case fe.OBJECT_FIELD:this._defaultValueStack.pop();this._inputTypeStack.pop();break;case fe.ENUM:this._enumValue=null;break}};return e}();function ir(e,n,t){var a=t.name.value;if(a===ga.name&&e.getQueryType()===n){return ga}if(a===fa.name&&e.getQueryType()===n){return fa}if(a===ha.name&&et(n)){return ha}if(jn(n)||Hn(n)){return n.getFields()[a]}}function sr(e,n){return{enter:function t(a){e.enter(a);var r=Ee(n,a.kind,false);if(r){var i=r.apply(n,arguments);if(i!==undefined){e.leave(a);if(Se(i)){e.enter(i)}}return i}},leave:function t(a){var r=Ee(n,a.kind,true);var i;if(r){i=r.apply(n,arguments)}e.leave(a);return i}}}function or(e){return e.kind===fe.OPERATION_DEFINITION||e.kind===fe.FRAGMENT_DEFINITION}function lr(e){return e.kind===fe.SCHEMA_DEFINITION||dr(e)||e.kind===fe.DIRECTIVE_DEFINITION}function dr(e){return e.kind===fe.SCALAR_TYPE_DEFINITION||e.kind===fe.OBJECT_TYPE_DEFINITION||e.kind===fe.INTERFACE_TYPE_DEFINITION||e.kind===fe.UNION_TYPE_DEFINITION||e.kind===fe.ENUM_TYPE_DEFINITION||e.kind===fe.INPUT_OBJECT_TYPE_DEFINITION}function ur(e){return e.kind===fe.SCHEMA_EXTENSION||cr(e)}function cr(e){return e.kind===fe.SCALAR_TYPE_EXTENSION||e.kind===fe.OBJECT_TYPE_EXTENSION||e.kind===fe.INTERFACE_TYPE_EXTENSION||e.kind===fe.UNION_TYPE_EXTENSION||e.kind===fe.ENUM_TYPE_EXTENSION||e.kind===fe.INPUT_OBJECT_TYPE_EXTENSION}function mr(e){return{Document:function n(t){for(var a=0,r=t.definitions;a<r.length;a++){var i=r[a];if(!or(i)){var s=i.kind===fe.SCHEMA_DEFINITION||i.kind===fe.SCHEMA_EXTENSION?"schema":'"'+i.name.value+'"';e.reportError(new pe("The ".concat(s," definition is not executable."),i))}}return false}}}function pr(e){var n=Object.create(null);return{OperationDefinition:function t(a){var r=a.name;if(r){if(n[r.value]){e.reportError(new pe('There can be only one operation named "'.concat(r.value,'".'),[n[r.value],r]))}else{n[r.value]=r}}return false},FragmentDefinition:function e(){return false}}}function gr(e){var n=0;return{Document:function e(t){n=t.definitions.filter((function(e){return e.kind===fe.OPERATION_DEFINITION})).length},OperationDefinition:function t(a){if(!a.name&&n>1){e.reportError(new pe("This anonymous operation must be the only defined operation.",a))}}}}function fr(e){return{OperationDefinition:function n(t){if(t.operation==="subscription"){if(t.selectionSet.selections.length!==1){e.reportError(new pe(t.name?'Subscription "'.concat(t.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",t.selectionSet.selections.slice(1)))}}}}}function hr(e){var n=e.getSchema();var t=n?n.getTypeMap():Object.create(null);var a=Object.create(null);for(var r=0,i=e.getDocument().definitions;r<i.length;r++){var s=i[r];if(dr(s)){a[s.name.value]=true}}var o=Object.keys(t).concat(Object.keys(a));return{NamedType:function n(r,i,s,l,d){var u=r.name.value;if(!t[u]&&!a[u]){var c;var m=(c=d[2])!==null&&c!==void 0?c:s;var p=m!=null&&yr(m);if(p&&br(u)){return}var g=Fn(u,p?vr.concat(o):o);e.reportError(new pe('Unknown type "'.concat(u,'".')+Dn(g),r))}}}}var vr=[].concat(na,va).map((function(e){return e.name}));function br(e){return vr.indexOf(e)!==-1}function yr(e){return!Array.isArray(e)&&(lr(e)||ur(e))}function wr(e){return{InlineFragment:function n(t){var a=t.typeCondition;if(a){var r=ar(e.getSchema(),a);if(r&&!et(r)){var i=we(a);e.reportError(new pe('Fragment cannot condition on non composite type "'.concat(i,'".'),a))}}},FragmentDefinition:function n(t){var a=ar(e.getSchema(),t.typeCondition);if(a&&!et(a)){var r=we(t.typeCondition);e.reportError(new pe('Fragment "'.concat(t.name.value,'" cannot condition on non composite type "').concat(r,'".'),t.typeCondition))}}}}function _r(e){return{VariableDefinition:function n(t){var a=ar(e.getSchema(),t.type);if(a&&!$n(a)){var r=t.variable.name.value;var i=we(t.type);e.reportError(new pe('Variable "$'.concat(r,'" cannot be non-input type "').concat(i,'".'),t.type))}}}}function xr(e){return{Field:function n(t){var a=e.getType();var r=t.selectionSet;if(a){if(Zn(dt(a))){if(r){var i=t.name.value;var s=me(a);e.reportError(new pe('Field "'.concat(i,'" must not have a selection since type "').concat(s,'" has no subfields.'),r))}}else if(!r){var o=t.name.value;var l=me(a);e.reportError(new pe('Field "'.concat(o,'" of type "').concat(l,'" must have a selection of subfields. Did you mean "').concat(o,' { ... }"?'),t))}}}}}function Tr(e){return{Field:function n(t){var a=e.getParentType();if(a){var r=e.getFieldDef();if(!r){var i=e.getSchema();var s=t.name.value;var o=Dn("to use an inline fragment on",Sr(i,a,s));if(o===""){o=Dn(Er(a,s))}e.reportError(new pe('Cannot query field "'.concat(s,'" on type "').concat(a.name,'".')+o,t))}}}}}function Sr(e,n,t){if(!nt(n)){return[]}var a=new Set;var r=Object.create(null);for(var i=0,s=e.getPossibleTypes(n);i<s.length;i++){var o=s[i];if(!o.getFields()[t]){continue}a.add(o);r[o.name]=1;for(var l=0,d=o.getInterfaces();l<d.length;l++){var u;var c=d[l];if(!c.getFields()[t]){continue}a.add(c);r[c.name]=((u=r[c.name])!==null&&u!==void 0?u:0)+1}}return qt(a).sort((function(n,t){var a=r[t.name]-r[n.name];if(a!==0){return a}if(Hn(n)&&e.isSubType(n,t)){return-1}if(Hn(t)&&e.isSubType(t,n)){return 1}return kn(n.name,t.name)})).map((function(e){return e.name}))}function Er(e,n){if(jn(e)||Hn(e)){var t=Object.keys(e.getFields());return Fn(n,t)}return[]}function Cr(e){var n=Object.create(null);return{OperationDefinition:function e(){return false},FragmentDefinition:function t(a){var r=a.name.value;if(n[r]){e.reportError(new pe('There can be only one fragment named "'.concat(r,'".'),[n[r],a.name]))}else{n[r]=a.name}return false}}}function Rr(e){return{FragmentSpread:function n(t){var a=t.name.value;var r=e.getFragment(a);if(!r){e.reportError(new pe('Unknown fragment "'.concat(a,'".'),t.name))}}}}function Ir(e){var n=[];var t=[];return{OperationDefinition:function e(t){n.push(t);return false},FragmentDefinition:function e(n){t.push(n);return false},Document:{leave:function a(){var r=Object.create(null);for(var i=0;i<n.length;i++){var s=n[i];for(var o=0,l=e.getRecursivelyReferencedFragments(s);o<l.length;o++){var d=l[o];r[d.name.value]=true}}for(var u=0;u<t.length;u++){var c=t[u];var m=c.name.value;if(r[m]!==true){e.reportError(new pe('Fragment "'.concat(m,'" is never used.'),c))}}}}}}function Dr(e){return{InlineFragment:function n(t){var a=e.getType();var r=e.getParentType();if(et(a)&&et(r)&&!kt(e.getSchema(),a,r)){var i=me(r);var s=me(a);e.reportError(new pe('Fragment cannot be spread here as objects of type "'.concat(i,'" can never be of type "').concat(s,'".'),t))}},FragmentSpread:function n(t){var a=t.name.value;var r=Ar(e,a);var i=e.getParentType();if(r&&i&&!kt(e.getSchema(),r,i)){var s=me(i);var o=me(r);e.reportError(new pe('Fragment "'.concat(a,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(o,'".'),t))}}}}function Ar(e,n){var t=e.getFragment(n);if(t){var a=ar(e.getSchema(),t.typeCondition);if(et(a)){return a}}}function kr(e){var n=Object.create(null);var t=[];var a=Object.create(null);return{OperationDefinition:function e(){return false},FragmentDefinition:function e(n){r(n);return false}};function r(i){if(n[i.name.value]){return}var s=i.name.value;n[s]=true;var o=e.getFragmentSpreads(i.selectionSet);if(o.length===0){return}a[s]=t.length;for(var l=0;l<o.length;l++){var d=o[l];var u=d.name.value;var c=a[u];t.push(d);if(c===undefined){var m=e.getFragment(u);if(m){r(m)}}else{var p=t.slice(c);var g=p.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new pe('Cannot spread fragment "'.concat(u,'" within itself')+(g!==""?" via ".concat(g,"."):"."),p))}t.pop()}a[s]=undefined}}function qr(e){var n=Object.create(null);return{OperationDefinition:function e(){n=Object.create(null)},VariableDefinition:function t(a){var r=a.variable.name.value;if(n[r]){e.reportError(new pe('There can be only one variable named "$'.concat(r,'".'),[n[r],a.variable.name]))}else{n[r]=a.variable.name}}}}function Pr(e){var n=Object.create(null);return{OperationDefinition:{enter:function e(){n=Object.create(null)},leave:function t(a){var r=e.getRecursiveVariableUsages(a);for(var i=0;i<r.length;i++){var s=r[i];var o=s.node;var l=o.name.value;if(n[l]!==true){e.reportError(new pe(a.name?'Variable "$'.concat(l,'" is not defined by operation "').concat(a.name.value,'".'):'Variable "$'.concat(l,'" is not defined.'),[o,a]))}}}},VariableDefinition:function e(t){n[t.variable.name.value]=true}}}function Nr(e){var n=[];return{OperationDefinition:{enter:function e(){n=[]},leave:function t(a){var r=Object.create(null);var i=e.getRecursiveVariableUsages(a);for(var s=0;s<i.length;s++){var o=i[s];var l=o.node;r[l.name.value]=true}for(var d=0,u=n;d<u.length;d++){var c=u[d];var m=c.variable.name.value;if(r[m]!==true){e.reportError(new pe(a.name?'Variable "$'.concat(m,'" is never used in operation "').concat(a.name.value,'".'):'Variable "$'.concat(m,'" is never used.'),c))}}}},VariableDefinition:function e(t){n.push(t)}}}function Fr(e){var n=Object.create(null);var t=e.getSchema();var a=t?t.getDirectives():Ia;for(var r=0;r<a.length;r++){var i=a[r];n[i.name]=i.locations}var s=e.getDocument().definitions;for(var o=0;o<s.length;o++){var l=s[o];if(l.kind===fe.DIRECTIVE_DEFINITION){n[l.name.value]=l.locations.map((function(e){return e.value}))}}return{Directive:function t(a,r,i,s,o){var l=a.name.value;var d=n[l];if(!d){e.reportError(new pe('Unknown directive "@'.concat(l,'".'),a));return}var u=Lr(o);if(u&&d.indexOf(u)===-1){e.reportError(new pe('Directive "@'.concat(l,'" may not be used on ').concat(u,"."),a))}}}}function Lr(e){var n=e[e.length-1];!Array.isArray(n)||he(0);switch(n.kind){case fe.OPERATION_DEFINITION:return Or(n.operation);case fe.FIELD:return Te.FIELD;case fe.FRAGMENT_SPREAD:return Te.FRAGMENT_SPREAD;case fe.INLINE_FRAGMENT:return Te.INLINE_FRAGMENT;case fe.FRAGMENT_DEFINITION:return Te.FRAGMENT_DEFINITION;case fe.VARIABLE_DEFINITION:return Te.VARIABLE_DEFINITION;case fe.SCHEMA_DEFINITION:case fe.SCHEMA_EXTENSION:return Te.SCHEMA;case fe.SCALAR_TYPE_DEFINITION:case fe.SCALAR_TYPE_EXTENSION:return Te.SCALAR;case fe.OBJECT_TYPE_DEFINITION:case fe.OBJECT_TYPE_EXTENSION:return Te.OBJECT;case fe.FIELD_DEFINITION:return Te.FIELD_DEFINITION;case fe.INTERFACE_TYPE_DEFINITION:case fe.INTERFACE_TYPE_EXTENSION:return Te.INTERFACE;case fe.UNION_TYPE_DEFINITION:case fe.UNION_TYPE_EXTENSION:return Te.UNION;case fe.ENUM_TYPE_DEFINITION:case fe.ENUM_TYPE_EXTENSION:return Te.ENUM;case fe.ENUM_VALUE_DEFINITION:return Te.ENUM_VALUE;case fe.INPUT_OBJECT_TYPE_DEFINITION:case fe.INPUT_OBJECT_TYPE_EXTENSION:return Te.INPUT_OBJECT;case fe.INPUT_VALUE_DEFINITION:{var t=e[e.length-3];return t.kind===fe.INPUT_OBJECT_TYPE_DEFINITION?Te.INPUT_FIELD_DEFINITION:Te.ARGUMENT_DEFINITION}}}function Or(e){switch(e){case"query":return Te.QUERY;case"mutation":return Te.MUTATION;case"subscription":return Te.SUBSCRIPTION}he(0,"Unexpected operation: "+me(e))}function Ur(e){var n=Object.create(null);var t=e.getSchema();var a=t?t.getDirectives():Ia;for(var r=0;r<a.length;r++){var i=a[r];n[i.name]=!i.isRepeatable}var s=e.getDocument().definitions;for(var o=0;o<s.length;o++){var l=s[o];if(l.kind===fe.DIRECTIVE_DEFINITION){n[l.name.value]=!l.repeatable}}var d=Object.create(null);var u=Object.create(null);return{enter:function t(a){if(a.directives==null){return}var r;if(a.kind===fe.SCHEMA_DEFINITION||a.kind===fe.SCHEMA_EXTENSION){r=d}else if(dr(a)||cr(a)){var i=a.name.value;r=u[i];if(r===undefined){u[i]=r=Object.create(null)}}else{r=Object.create(null)}for(var s=0,o=a.directives;s<o.length;s++){var l=o[s];var c=l.name.value;if(n[c]){if(r[c]){e.reportError(new pe('The directive "@'.concat(c,'" can only be used once at this location.'),[r[c],l]))}else{r[c]=l}}}}}}function Br(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);if(n)a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}));t.push.apply(t,a)}return t}function Mr(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};if(n%2){Br(Object(t),true).forEach((function(n){Gr(e,n,t[n])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{Br(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}}return e}function Gr(e,n,t){if(n in e){Object.defineProperty(e,n,{value:t,enumerable:true,configurable:true,writable:true})}else{e[n]=t}return e}function Vr(e){return Mr(Mr({},Wr(e)),{},{Argument:function n(t){var a=e.getArgument();var r=e.getFieldDef();var i=e.getParentType();if(!a&&r&&i){var s=t.name.value;var o=r.args.map((function(e){return e.name}));var l=Fn(s,o);e.reportError(new pe('Unknown argument "'.concat(s,'" on field "').concat(i.name,".").concat(r.name,'".')+Dn(l),t))}}})}function Wr(e){var n=Object.create(null);var t=e.getSchema();var a=t?t.getDirectives():Ia;for(var r=0;r<a.length;r++){var i=a[r];n[i.name]=i.args.map((function(e){return e.name}))}var s=e.getDocument().definitions;for(var o=0;o<s.length;o++){var l=s[o];if(l.kind===fe.DIRECTIVE_DEFINITION){var d;var u=(d=l.arguments)!==null&&d!==void 0?d:[];n[l.name.value]=u.map((function(e){return e.name.value}))}}return{Directive:function t(a){var r=a.name.value;var i=n[r];if(a.arguments&&i){for(var s=0,o=a.arguments;s<o.length;s++){var l=o[s];var d=l.name.value;if(i.indexOf(d)===-1){var u=Fn(d,i);e.reportError(new pe('Unknown argument "'.concat(d,'" on directive "@').concat(r,'".')+Dn(u),l))}}}return false}}}function jr(e){var n=Object.create(null);return{Field:function e(){n=Object.create(null)},Directive:function e(){n=Object.create(null)},Argument:function t(a){var r=a.name.value;if(n[r]){e.reportError(new pe('There can be only one argument named "'.concat(r,'".'),[n[r],a.name]))}else{n[r]=a.name}return false}}}function Hr(e){return{ListValue:function n(t){var a=ot(e.getParentInputType());if(!Kn(a)){zr(e,t);return false}},ObjectValue:function n(t){var a=dt(e.getInputType());if(!Jn(a)){zr(e,t);return false}var r=Sn(t.fields,(function(e){return e.name.value}));for(var i=0,s=yn(a.getFields());i<s.length;i++){var o=s[i];var l=r[o.name];if(!l&&It(o)){var d=me(o.type);e.reportError(new pe('Field "'.concat(a.name,".").concat(o.name,'" of required type "').concat(d,'" was not provided.'),t))}}},ObjectField:function n(t){var a=dt(e.getParentInputType());var r=e.getInputType();if(!r&&Jn(a)){var i=Fn(t.name.value,Object.keys(a.getFields()));e.reportError(new pe('Field "'.concat(t.name.value,'" is not defined by type "').concat(a.name,'".')+Dn(i),t))}},NullValue:function n(t){var a=e.getInputType();if(Xn(a)){e.reportError(new pe('Expected value of type "'.concat(me(a),'", found ').concat(we(t),"."),t))}},EnumValue:function n(t){return zr(e,t)},IntValue:function n(t){return zr(e,t)},FloatValue:function n(t){return zr(e,t)},StringValue:function n(t){return zr(e,t)},BooleanValue:function n(t){return zr(e,t)}}}function zr(e,n){var t=e.getInputType();if(!t){return}var a=dt(t);if(!Zn(a)){var r=me(t);e.reportError(new pe('Expected value of type "'.concat(r,'", found ').concat(we(n),"."),n));return}try{var i=a.parseLiteral(n,undefined);if(i===undefined){var s=me(t);e.reportError(new pe('Expected value of type "'.concat(s,'", found ').concat(we(n),"."),n))}}catch(a){var o=me(t);if(a instanceof pe){e.reportError(a)}else{e.reportError(new pe('Expected value of type "'.concat(o,'", found ').concat(we(n),"; ")+a.message,n,undefined,undefined,undefined,a))}}}function Yr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);if(n)a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}));t.push.apply(t,a)}return t}function Jr(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};if(n%2){Yr(Object(t),true).forEach((function(n){Kr(e,n,t[n])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{Yr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}}return e}function Kr(e,n,t){if(n in e){Object.defineProperty(e,n,{value:t,enumerable:true,configurable:true,writable:true})}else{e[n]=t}return e}function Xr(e){return Jr(Jr({},$r(e)),{},{Field:{leave:function n(t){var a;var r=e.getFieldDef();if(!r){return false}var i=(a=t.arguments)!==null&&a!==void 0?a:[];var s=Sn(i,(function(e){return e.name.value}));for(var o=0,l=r.args;o<l.length;o++){var d=l[o];var u=s[d.name];if(!u&&yt(d)){var c=me(d.type);e.reportError(new pe('Field "'.concat(r.name,'" argument "').concat(d.name,'" of type "').concat(c,'" is required, but it was not provided.'),t))}}}}})}function $r(e){var n=Object.create(null);var t=e.getSchema();var a=t?t.getDirectives():Ia;for(var r=0;r<a.length;r++){var i=a[r];n[i.name]=Sn(i.args.filter(yt),(function(e){return e.name}))}var s=e.getDocument().definitions;for(var o=0;o<s.length;o++){var l=s[o];if(l.kind===fe.DIRECTIVE_DEFINITION){var d;var u=(d=l.arguments)!==null&&d!==void 0?d:[];n[l.name.value]=Sn(u.filter(Qr),(function(e){return e.name.value}))}}return{Directive:{leave:function t(a){var r=a.name.value;var i=n[r];if(i){var s;var o=(s=a.arguments)!==null&&s!==void 0?s:[];var l=Sn(o,(function(e){return e.name.value}));for(var d=0,u=Object.keys(i);d<u.length;d++){var c=u[d];if(!l[c]){var m=i[c].type;var p=Gn(m)?me(m):we(m);e.reportError(new pe('Directive "@'.concat(r,'" argument "').concat(c,'" of type "').concat(p,'" is required, but it was not provided.'),a))}}}}}}}function Qr(e){return e.type.kind===fe.NON_NULL_TYPE&&e.defaultValue==null}function Zr(e){var n=Object.create(null);return{OperationDefinition:{enter:function e(){n=Object.create(null)},leave:function t(a){var r=e.getRecursiveVariableUsages(a);for(var i=0;i<r.length;i++){var s=r[i];var o=s.node;var l=s.type;var d=s.defaultValue;var u=o.name.value;var c=n[u];if(c&&l){var m=e.getSchema();var p=ar(m,c.type);if(p&&!ei(m,p,c.defaultValue,l,d)){var g=me(p);var f=me(l);e.reportError(new pe('Variable "$'.concat(u,'" of type "').concat(g,'" used in position expecting type "').concat(f,'".'),[c,o]))}}}}},VariableDefinition:function e(t){n[t.variable.name.value]=t}}}function ei(e,n,t,a,r){if(Xn(a)&&!Xn(n)){var i=t!=null&&t.kind!==fe.NULL;var s=r!==undefined;if(!i&&!s){return false}var o=a.ofType;return At(e,n,o)}return At(e,n,a)}function ni(e){if(Array.isArray(e)){return e.map((function(e){var n=e[0],t=e[1];return'subfields "'.concat(n,'" conflict because ')+ni(t)})).join(" and ")}return e}function ti(e){var n=new vi;var t=new Map;return{SelectionSet:function a(r){var i=ai(e,t,n,e.getParentType(),r);for(var s=0;s<i.length;s++){var o=i[s];var l=o[0];var d=l[0];var u=l[1];var c=o[1];var m=o[2];var p=ni(u);e.reportError(new pe('Fields "'.concat(d,'" conflict because ').concat(p,". Use different aliases on the fields to fetch both if this was intentional."),c.concat(m)))}}}}function ai(e,n,t,a,r){var i=[];var s=pi(e,n,a,r),o=s[0],l=s[1];oi(e,i,n,t,o);if(l.length!==0){for(var d=0;d<l.length;d++){ri(e,i,n,t,false,o,l[d]);for(var u=d+1;u<l.length;u++){ii(e,i,n,t,false,l[d],l[u])}}}return i}function ri(e,n,t,a,r,i,s){var o=e.getFragment(s);if(!o){return}var l=gi(e,t,o),d=l[0],u=l[1];if(i===d){return}li(e,n,t,a,r,i,d);for(var c=0;c<u.length;c++){var m=u[c];if(a.has(m,s,r)){continue}a.add(m,s,r);ri(e,n,t,a,r,i,u[c])}}function ii(e,n,t,a,r,i,s){if(i===s){return}if(a.has(i,s,r)){return}a.add(i,s,r);var o=e.getFragment(i);var l=e.getFragment(s);if(!o||!l){return}var d=gi(e,t,o),u=d[0],c=d[1];var m=gi(e,t,l),p=m[0],g=m[1];li(e,n,t,a,r,u,p);for(var f=0;f<g.length;f++){ii(e,n,t,a,r,i,g[f])}for(var h=0;h<c.length;h++){ii(e,n,t,a,r,c[h],s)}}function si(e,n,t,a,r,i,s,o){var l=[];var d=pi(e,n,r,i),u=d[0],c=d[1];var m=pi(e,n,s,o),p=m[0],g=m[1];li(e,l,n,t,a,u,p);if(g.length!==0){for(var f=0;f<g.length;f++){ri(e,l,n,t,a,u,g[f])}}if(c.length!==0){for(var h=0;h<c.length;h++){ri(e,l,n,t,a,p,c[h])}}for(var v=0;v<c.length;v++){for(var b=0;b<g.length;b++){ii(e,l,n,t,a,c[v],g[b])}}return l}function oi(e,n,t,a,r){for(var i=0,s=Tn(r);i<s.length;i++){var o=s[i];var l=o[0];var d=o[1];if(d.length>1){for(var u=0;u<d.length;u++){for(var c=u+1;c<d.length;c++){var m=di(e,t,a,false,l,d[u],d[c]);if(m){n.push(m)}}}}}}function li(e,n,t,a,r,i,s){for(var o=0,l=Object.keys(i);o<l.length;o++){var d=l[o];var u=s[d];if(u){var c=i[d];for(var m=0;m<c.length;m++){for(var p=0;p<u.length;p++){var g=di(e,t,a,r,d,c[m],u[p]);if(g){n.push(g)}}}}}}function di(e,n,t,a,r,i,s){var o=i[0],l=i[1],d=i[2];var u=s[0],c=s[1],m=s[2];var p=a||o!==u&&jn(o)&&jn(u);if(!p){var g,f;var h=l.name.value;var v=c.name.value;if(h!==v){return[[r,'"'.concat(h,'" and "').concat(v,'" are different fields')],[l],[c]]}var b=(g=l.arguments)!==null&&g!==void 0?g:[];var y=(f=c.arguments)!==null&&f!==void 0?f:[];if(!ui(b,y)){return[[r,"they have differing arguments"],[l],[c]]}}var w=d===null||d===void 0?void 0:d.type;var _=m===null||m===void 0?void 0:m.type;if(w&&_&&mi(w,_)){return[[r,'they return conflicting types "'.concat(me(w),'" and "').concat(me(_),'"')],[l],[c]]}var x=l.selectionSet;var T=c.selectionSet;if(x&&T){var S=si(e,n,t,p,dt(w),x,dt(_),T);return hi(S,r,l,c)}}function ui(e,n){if(e.length!==n.length){return false}return e.every((function(e){var t=bn(n,(function(n){return n.name.value===e.name.value}));if(!t){return false}return ci(e.value,t.value)}))}function ci(e,n){return we(e)===we(n)}function mi(e,n){if(Kn(e)){return Kn(n)?mi(e.ofType,n.ofType):true}if(Kn(n)){return true}if(Xn(e)){return Xn(n)?mi(e.ofType,n.ofType):true}if(Xn(n)){return true}if(Zn(e)||Zn(n)){return e!==n}return false}function pi(e,n,t,a){var r=n.get(a);if(!r){var i=Object.create(null);var s=Object.create(null);fi(e,t,a,i,s);r=[i,Object.keys(s)];n.set(a,r)}return r}function gi(e,n,t){var a=n.get(t.selectionSet);if(a){return a}var r=ar(e.getSchema(),t.typeCondition);return pi(e,n,r,t.selectionSet)}function fi(e,n,t,a,r){for(var i=0,s=t.selections;i<s.length;i++){var o=s[i];switch(o.kind){case fe.FIELD:{var l=o.name.value;var d=void 0;if(jn(n)||Hn(n)){d=n.getFields()[l]}var u=o.alias?o.alias.value:l;if(!a[u]){a[u]=[]}a[u].push([n,o,d]);break}case fe.FRAGMENT_SPREAD:r[o.name.value]=true;break;case fe.INLINE_FRAGMENT:{var c=o.typeCondition;var m=c?ar(e.getSchema(),c):n;fi(e,m,o.selectionSet,a,r);break}}}}function hi(e,n,t,a){if(e.length>0){return[[n,e.map((function(e){var n=e[0];return n}))],e.reduce((function(e,n){var t=n[1];return e.concat(t)}),[t]),e.reduce((function(e,n){var t=n[2];return e.concat(t)}),[a])]}}var vi=function(){function e(){this._data=Object.create(null)}var n=e.prototype;n.has=function e(n,t,a){var r=this._data[n];var i=r&&r[t];if(i===undefined){return false}if(a===false){return i===false}return true};n.add=function e(n,t,a){this._pairSetAdd(n,t,a);this._pairSetAdd(t,n,a)};n._pairSetAdd=function e(n,t,a){var r=this._data[n];if(!r){r=Object.create(null);this._data[n]=r}r[t]=a};return e}();function bi(e){var n=[];var t=Object.create(null);return{ObjectValue:{enter:function e(){n.push(t);t=Object.create(null)},leave:function e(){t=n.pop()}},ObjectField:function n(a){var r=a.name.value;if(t[r]){e.reportError(new pe('There can be only one input field named "'.concat(r,'".'),[t[r],a.name]))}else{t[r]=a.name}}}}var yi=3;function wi(e){function n(t){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Object.create(null);var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(t.kind===fe.FRAGMENT_SPREAD){var i=t.name.value;if(a[i]===true){return false}var s=e.getFragment(i);if(!s){return false}try{a[i]=true;return n(s,a,r)}finally{a[i]=null}}if(t.kind===fe.FIELD&&(t.name.value==="fields"||t.name.value==="interfaces"||t.name.value==="possibleTypes"||t.name.value==="inputFields")){r++;if(r>=yi){return true}}if("selectionSet"in t&&t.selectionSet){for(var o=0,l=t.selectionSet.selections;o<l.length;o++){var d=l[o];if(n(d,a,r)){return true}}}return false}return{Field:function t(a){if(a.name.value==="__schema"||a.name.value==="__type"){if(n(a)){e.reportError(new pe("Maximum introspection depth exceeded",[a]));return false}}}}}function _i(e){var n,t,a;var r=e.getSchema();var i=(n=(t=(a=r===null||r===void 0?void 0:r.astNode)!==null&&a!==void 0?a:r===null||r===void 0?void 0:r.getQueryType())!==null&&t!==void 0?t:r===null||r===void 0?void 0:r.getMutationType())!==null&&n!==void 0?n:r===null||r===void 0?void 0:r.getSubscriptionType();var s=0;return{SchemaDefinition:function n(t){if(i){e.reportError(new pe("Cannot define a new schema within a schema extension.",t));return}if(s>0){e.reportError(new pe("Must provide only one schema definition.",t))}++s}}}function xi(e){var n=e.getSchema();var t=Object.create(null);var a=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:r,SchemaExtension:r};function r(n){var r;var i=(r=n.operationTypes)!==null&&r!==void 0?r:[];for(var s=0;s<i.length;s++){var o=i[s];var l=o.operation;var d=t[l];if(a[l]){e.reportError(new pe("Type for ".concat(l," already defined in the schema. It cannot be redefined."),o))}else if(d){e.reportError(new pe("There can be only one ".concat(l," type in schema."),[d,o]))}else{t[l]=o}}return false}}function Ti(e){var n=Object.create(null);var t=e.getSchema();return{ScalarTypeDefinition:a,ObjectTypeDefinition:a,InterfaceTypeDefinition:a,UnionTypeDefinition:a,EnumTypeDefinition:a,InputObjectTypeDefinition:a};function a(a){var r=a.name.value;if(t!==null&&t!==void 0&&t.getType(r)){e.reportError(new pe('Type "'.concat(r,'" already exists in the schema. It cannot also be defined in this type definition.'),a.name));return}if(n[r]){e.reportError(new pe('There can be only one type named "'.concat(r,'".'),[n[r],a.name]))}else{n[r]=a.name}return false}}function Si(e){var n=e.getSchema();var t=n?n.getTypeMap():Object.create(null);var a=Object.create(null);return{EnumTypeDefinition:r,EnumTypeExtension:r};function r(n){var r;var i=n.name.value;if(!a[i]){a[i]=Object.create(null)}var s=(r=n.values)!==null&&r!==void 0?r:[];var o=a[i];for(var l=0;l<s.length;l++){var d=s[l];var u=d.name.value;var c=t[i];if(Yn(c)&&c.getValue(u)){e.reportError(new pe('Enum value "'.concat(i,".").concat(u,'" already exists in the schema. It cannot also be defined in this type extension.'),d.name))}else if(o[u]){e.reportError(new pe('Enum value "'.concat(i,".").concat(u,'" can only be defined once.'),[o[u],d.name]))}else{o[u]=d.name}}return false}}function Ei(e){var n=e.getSchema();var t=n?n.getTypeMap():Object.create(null);var a=Object.create(null);return{InputObjectTypeDefinition:r,InputObjectTypeExtension:r,InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(n){var r;var i=n.name.value;if(!a[i]){a[i]=Object.create(null)}var s=(r=n.fields)!==null&&r!==void 0?r:[];var o=a[i];for(var l=0;l<s.length;l++){var d=s[l];var u=d.name.value;if(Ci(t[i],u)){e.reportError(new pe('Field "'.concat(i,".").concat(u,'" already exists in the schema. It cannot also be defined in this type extension.'),d.name))}else if(o[u]){e.reportError(new pe('Field "'.concat(i,".").concat(u,'" can only be defined once.'),[o[u],d.name]))}else{o[u]=d.name}}return false}}function Ci(e,n){if(jn(e)||Hn(e)||Jn(e)){return e.getFields()[n]!=null}return false}function Ri(e){var n=Object.create(null);var t=e.getSchema();return{DirectiveDefinition:function a(r){var i=r.name.value;if(t!==null&&t!==void 0&&t.getDirective(i)){e.reportError(new pe('Directive "@'.concat(i,'" already exists in the schema. It cannot be redefined.'),r.name));return}if(n[i]){e.reportError(new pe('There can be only one directive named "@'.concat(i,'".'),[n[i],r.name]))}else{n[i]=r.name}return false}}}var Ii;function Di(e,n,t){if(n in e){Object.defineProperty(e,n,{value:t,enumerable:true,configurable:true,writable:true})}else{e[n]=t}return e}function Ai(e){var n=e.getSchema();var t=Object.create(null);for(var a=0,r=e.getDocument().definitions;a<r.length;a++){var i=r[a];if(dr(i)){t[i.name.value]=i}}return{ScalarTypeExtension:s,ObjectTypeExtension:s,InterfaceTypeExtension:s,UnionTypeExtension:s,EnumTypeExtension:s,InputObjectTypeExtension:s};function s(a){var r=a.name.value;var i=t[r];var s=n===null||n===void 0?void 0:n.getType(r);var o;if(i){o=ki[i.kind]}else if(s){o=qi(s)}if(o){if(o!==a.kind){var l=Pi(a.kind);e.reportError(new pe("Cannot extend non-".concat(l,' type "').concat(r,'".'),i?[i,a]:a))}}else{var d=Object.keys(t);if(n){d=d.concat(Object.keys(n.getTypeMap()))}var u=Fn(r,d);e.reportError(new pe('Cannot extend type "'.concat(r,'" because it is not defined.')+Dn(u),a.name))}}}var ki=(Ii={},Di(Ii,fe.SCALAR_TYPE_DEFINITION,fe.SCALAR_TYPE_EXTENSION),Di(Ii,fe.OBJECT_TYPE_DEFINITION,fe.OBJECT_TYPE_EXTENSION),Di(Ii,fe.INTERFACE_TYPE_DEFINITION,fe.INTERFACE_TYPE_EXTENSION),Di(Ii,fe.UNION_TYPE_DEFINITION,fe.UNION_TYPE_EXTENSION),Di(Ii,fe.ENUM_TYPE_DEFINITION,fe.ENUM_TYPE_EXTENSION),Di(Ii,fe.INPUT_OBJECT_TYPE_DEFINITION,fe.INPUT_OBJECT_TYPE_EXTENSION),Ii);function qi(e){if(Wn(e)){return fe.SCALAR_TYPE_EXTENSION}if(jn(e)){return fe.OBJECT_TYPE_EXTENSION}if(Hn(e)){return fe.INTERFACE_TYPE_EXTENSION}if(zn(e)){return fe.UNION_TYPE_EXTENSION}if(Yn(e)){return fe.ENUM_TYPE_EXTENSION}if(Jn(e)){return fe.INPUT_OBJECT_TYPE_EXTENSION}he(0,"Unexpected type: "+me(e))}function Pi(e){switch(e){case fe.SCALAR_TYPE_EXTENSION:return"scalar";case fe.OBJECT_TYPE_EXTENSION:return"object";case fe.INTERFACE_TYPE_EXTENSION:return"interface";case fe.UNION_TYPE_EXTENSION:return"union";case fe.ENUM_TYPE_EXTENSION:return"enum";case fe.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}he(0,"Unexpected kind: "+me(e))}var Ni=Object.freeze([wi]);var Fi=Object.freeze([mr,pr,gr,fr,hr,wr,_r,xr,Tr,Cr,Rr,Ir,Dr,kr,qr,Pr,Nr,Fr,Ur,Vr,jr,Hr,Xr,Zr,ti,bi].concat(Ni));var Li=Object.freeze([_i,xi,Ti,Si,Ei,Ri,hr,Fr,Ur,Ai,Wr,jr,bi,$r]);function Oi(e,n){e.prototype=Object.create(n.prototype);e.prototype.constructor=e;e.__proto__=n}var Ui=function(){function e(e,n){this._ast=e;this._fragments=undefined;this._fragmentSpreads=new Map;this._recursivelyReferencedFragments=new Map;this._onError=n}var n=e.prototype;n.reportError=function e(n){this._onError(n)};n.getDocument=function e(){return this._ast};n.getFragment=function e(n){var t=this._fragments;if(!t){this._fragments=t=this.getDocument().definitions.reduce((function(e,n){if(n.kind===fe.FRAGMENT_DEFINITION){e[n.name.value]=n}return e}),Object.create(null))}return t[n]};n.getFragmentSpreads=function e(n){var t=this._fragmentSpreads.get(n);if(!t){t=[];var a=[n];while(a.length!==0){var r=a.pop();for(var i=0,s=r.selections;i<s.length;i++){var o=s[i];if(o.kind===fe.FRAGMENT_SPREAD){t.push(o)}else if(o.selectionSet){a.push(o.selectionSet)}}}this._fragmentSpreads.set(n,t)}return t};n.getRecursivelyReferencedFragments=function e(n){var t=this._recursivelyReferencedFragments.get(n);if(!t){t=[];var a=Object.create(null);var r=[n.selectionSet];while(r.length!==0){var i=r.pop();for(var s=0,o=this.getFragmentSpreads(i);s<o.length;s++){var l=o[s];var d=l.name.value;if(a[d]!==true){a[d]=true;var u=this.getFragment(d);if(u){t.push(u);r.push(u.selectionSet)}}}}this._recursivelyReferencedFragments.set(n,t)}return t};return e}();var Bi=function(e){Oi(n,e);function n(n,t,a){var r;r=e.call(this,n,a)||this;r._schema=t;return r}var t=n.prototype;t.getSchema=function e(){return this._schema};return n}(Ui);var Mi=function(e){Oi(n,e);function n(n,t,a,r){var i;i=e.call(this,t,r)||this;i._schema=n;i._typeInfo=a;i._variableUsages=new Map;i._recursiveVariableUsages=new Map;return i}var t=n.prototype;t.getSchema=function e(){return this._schema};t.getVariableUsages=function e(n){var t=this._variableUsages.get(n);if(!t){var a=[];var r=new rr(this._schema);Ce(n,sr(r,{VariableDefinition:function e(){return false},Variable:function e(n){a.push({node:n,type:r.getInputType(),defaultValue:r.getDefaultValue()})}}));t=a;this._variableUsages.set(n,t)}return t};t.getRecursiveVariableUsages=function e(n){var t=this._recursiveVariableUsages.get(n);if(!t){t=this.getVariableUsages(n);for(var a=0,r=this.getRecursivelyReferencedFragments(n);a<r.length;a++){var i=r[a];t=t.concat(this.getVariableUsages(i))}this._recursiveVariableUsages.set(n,t)}return t};t.getType=function e(){return this._typeInfo.getType()};t.getParentType=function e(){return this._typeInfo.getParentType()};t.getInputType=function e(){return this._typeInfo.getInputType()};t.getParentInputType=function e(){return this._typeInfo.getParentInputType()};t.getFieldDef=function e(){return this._typeInfo.getFieldDef()};t.getDirective=function e(){return this._typeInfo.getDirective()};t.getArgument=function e(){return this._typeInfo.getArgument()};t.getEnumValue=function e(){return this._typeInfo.getEnumValue()};return n}(Ui);function Gi(e,n){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Fi;var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:new rr(e);var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{maxErrors:undefined};n||ge(0,"Must provide document.");Oa(e);var i=Object.freeze({});var s=[];var o=new Mi(e,n,a,(function(e){if(r.maxErrors!=null&&s.length>=r.maxErrors){s.push(new pe("Too many validation errors, error limit reached. Validation aborted."));throw i}s.push(e)}));var l=Re(t.map((function(e){return e(o)})));try{Ce(n,sr(a,l))}catch(e){if(e!==i){throw e}}return s}function Vi(e,n){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Li;var a=[];var r=new Bi(e,n,(function(e){a.push(e)}));var i=t.map((function(e){return e(r)}));Ce(e,Re(i));return a}function Wi(e){var n=Vi(e);if(n.length!==0){throw new Error(n.map((function(e){return e.message})).join("\n\n"))}}function ji(e){var n;return function t(a,r,i){if(!n){n=new WeakMap}var s=n.get(a);var o;if(s){o=s.get(r);if(o){var l=o.get(i);if(l!==undefined){return l}}}else{s=new WeakMap;n.set(a,s)}if(!o){o=new WeakMap;s.set(r,o)}var d=e(a,r,i);o.set(i,d);return d}}function Hi(e,n,t){return e.reduce((function(e,t){return vn(e)?e.then((function(e){return n(e,t)})):n(e,t)}),t)}function zi(e){var n=Object.keys(e);var t=n.map((function(n){return e[n]}));return Promise.all(t).then((function(e){return e.reduce((function(e,t,a){e[n[a]]=t;return e}),Object.create(null))}))}function Yi(e,n,t){return{prev:e,key:n,typename:t}}function Ji(e){var n=[];var t=e;while(t){n.push(t.key);t=t.prev}return n.reverse()}function Ki(e,n){if(n.operation==="query"){var t=e.getQueryType();if(!t){throw new pe("Schema does not define the required query root type.",n)}return t}if(n.operation==="mutation"){var a=e.getMutationType();if(!a){throw new pe("Schema is not configured for mutations.",n)}return a}if(n.operation==="subscription"){var r=e.getSubscriptionType();if(!r){throw new pe("Schema is not configured for subscriptions.",n)}return r}throw new pe("Can only have query, mutation and subscription operations.",n)}function Xi(e){return e.map((function(e){return typeof e==="number"?"["+e.toString()+"]":"."+e})).join("")}function $i(e,n,t){if(!e){return}if(e.kind===fe.VARIABLE){var a=e.name.value;if(t==null||t[a]===undefined){return}var r=t[a];if(r===null&&Xn(n)){return}return r}if(Xn(n)){if(e.kind===fe.NULL){return}return $i(e,n.ofType,t)}if(e.kind===fe.NULL){return null}if(Kn(n)){var i=n.ofType;if(e.kind===fe.LIST){var s=[];for(var o=0,l=e.values;o<l.length;o++){var d=l[o];if(Qi(d,t)){if(Xn(i)){return}s.push(null)}else{var u=$i(d,i,t);if(u===undefined){return}s.push(u)}}return s}var c=$i(e,i,t);if(c===undefined){return}return[c]}if(Jn(n)){if(e.kind!==fe.OBJECT){return}var m=Object.create(null);var p=Sn(e.fields,(function(e){return e.name.value}));for(var g=0,f=yn(n.getFields());g<f.length;g++){var h=f[g];var v=p[h.name];if(!v||Qi(v.value,t)){if(h.defaultValue!==undefined){m[h.name]=h.defaultValue}else if(Xn(h.type)){return}continue}var b=$i(v.value,h.type,t);if(b===undefined){return}m[h.name]=b}return m}if(Zn(n)){var y;try{y=n.parseLiteral(e,t)}catch(e){return}if(y===undefined){return}return y}he(0,"Unexpected input type: "+me(n))}function Qi(e,n){return e.kind===fe.VARIABLE&&(n==null||n[e.name.value]===undefined)}function Zi(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);if(n)a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}));t.push.apply(t,a)}return t}function es(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};if(n%2){Zi(Object(t),true).forEach((function(n){ns(e,n,t[n])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{Zi(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}}return e}function ns(e,n,t){if(n in e){Object.defineProperty(e,n,{value:t,enumerable:true,configurable:true,writable:true})}else{e[n]=t}return e}function ts(e,n){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:as;return rs(e,n,t)}function as(e,n,t){var a="Invalid value "+me(n);if(e.length>0){a+=' at "value'.concat(Xi(e),'"')}t.message=a+": "+t.message;throw t}function rs(e,n,t,a){if(Xn(n)){if(e!=null){return rs(e,n.ofType,t,a)}t(Ji(a),e,new pe('Expected non-nullable type "'.concat(me(n),'" not to be null.')));return}if(e==null){return null}if(Kn(n)){var r=n.ofType;var i=Ft(e,(function(e,n){var i=Yi(a,n,undefined);return rs(e,r,t,i)}));if(i!=null){return i}return[rs(e,r,t,a)]}if(Jn(n)){if(!_e(e)){t(Ji(a),e,new pe('Expected type "'.concat(n.name,'" to be an object.')));return}var s=Object.create(null);var o=n.getFields();for(var l=0,d=yn(o);l<d.length;l++){var u=d[l];var c=e[u.name];if(c===undefined){if(u.defaultValue!==undefined){s[u.name]=u.defaultValue}else if(Xn(u.type)){var m=me(u.type);t(Ji(a),e,new pe('Field "'.concat(u.name,'" of required type "').concat(m,'" was not provided.')))}continue}s[u.name]=rs(c,u.type,t,Yi(a,u.name,n.name))}for(var p=0,g=Object.keys(e);p<g.length;p++){var f=g[p];if(!o[f]){var h=Fn(f,Object.keys(n.getFields()));t(Ji(a),e,new pe('Field "'.concat(f,'" is not defined by type "').concat(n.name,'".')+Dn(h)))}}return es({},s)}if(Zn(n)){var v;try{v=n.parseValue(e)}catch(r){if(r instanceof pe){t(Ji(a),e,r)}else{t(Ji(a),e,new pe('Expected type "'.concat(n.name,'". ')+r.message,undefined,undefined,undefined,undefined,r))}return}if(v===undefined){t(Ji(a),e,new pe('Expected type "'.concat(n.name,'".')))}return v}he(0,"Unexpected input type: "+me(n))}function is(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);if(n)a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}));t.push.apply(t,a)}return t}function ss(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};if(n%2){is(Object(t),true).forEach((function(n){os(e,n,t[n])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{is(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}}return e}function os(e,n,t){if(n in e){Object.defineProperty(e,n,{value:t,enumerable:true,configurable:true,writable:true})}else{e[n]=t}return e}function ls(e,n,t,a){var r=[];var i=a===null||a===void 0?void 0:a.maxErrors;try{var s=ds(e,n,t,(function(e){if(i!=null&&r.length>=i){throw new pe("Too many errors processing variables, error limit reached. Execution aborted.")}r.push(e)}));if(r.length===0){return{coerced:s}}}catch(e){r.push(e)}return{errors:r}}function ds(e,n,t,a){var r=Object.create(null);var i=function i(s){var o=n[s];var l=o.variable.name.value;var d=ar(e,o.type);if(!$n(d)){var u=we(o.type);a(new pe('Variable "$'.concat(l,'" expected value of type "').concat(u,'" which cannot be used as an input type.'),o.type));return"continue"}if(!ms(t,l)){if(o.defaultValue){r[l]=$i(o.defaultValue,d)}else if(Xn(d)){var c=me(d);a(new pe('Variable "$'.concat(l,'" of required type "').concat(c,'" was not provided.'),o))}return"continue"}var m=t[l];if(m===null&&Xn(d)){var p=me(d);a(new pe('Variable "$'.concat(l,'" of non-null type "').concat(p,'" must not be null.'),o));return"continue"}r[l]=ts(m,d,(function(e,n,t){var r='Variable "$'.concat(l,'" got invalid value ')+me(n);if(e.length>0){r+=' at "'.concat(l).concat(Xi(e),'"')}a(new pe(r+"; "+t.message,o,undefined,undefined,undefined,t.originalError))}))};for(var s=0;s<n.length;s++){var o=i(s);if(o==="continue")continue}return ss({},r)}function us(e,n,t){var a;var r=Object.create(null);var i=(a=n.arguments)!==null&&a!==void 0?a:[];var s=Sn(i,(function(e){return e.name.value}));for(var o=0,l=e.args;o<l.length;o++){var d=l[o];var u=d.name;var c=d.type;var m=s[u];if(!m){if(d.defaultValue!==undefined){r[u]=d.defaultValue}else if(Xn(c)){throw new pe('Argument "'.concat(u,'" of required type "').concat(me(c),'" ')+"was not provided.",n)}continue}var p=m.value;var g=p.kind===fe.NULL;if(p.kind===fe.VARIABLE){var f=p.name.value;if(t==null||!ms(t,f)){if(d.defaultValue!==undefined){r[u]=d.defaultValue}else if(Xn(c)){throw new pe('Argument "'.concat(u,'" of required type "').concat(me(c),'" ')+'was provided the variable "$'.concat(f,'" which was not provided a runtime value.'),p)}continue}g=t[f]==null}if(g&&Xn(c)){throw new pe('Argument "'.concat(u,'" of non-null type "').concat(me(c),'" ')+"must not be null.",p)}var h=$i(p,c,t);if(h===undefined){throw new pe('Argument "'.concat(u,'" has invalid value ').concat(we(p),"."),p)}r[u]=h}return ss({},r)}function cs(e,n,t){var a=n.directives&&bn(n.directives,(function(n){return n.name.value===e.name}));if(a){return us(e,a,t)}}function ms(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function ps(e,n,t,a,r,i,s,o){return arguments.length===1?gs(e):gs({schema:e,document:n,rootValue:t,contextValue:a,variableValues:r,operationName:i,fieldResolver:s,typeResolver:o})}function gs(e){var n=e.schema,t=e.document,a=e.rootValue,r=e.contextValue,i=e.variableValues,s=e.operationName,o=e.fieldResolver,l=e.typeResolver;hs(n,t,i);var d=vs(n,t,a,r,i,s,o,l);if(Array.isArray(d)){return{errors:d}}var u=bs(d,d.operation,a);return fs(d,u)}function fs(e,n){if(vn(n)){return n.then((function(n){return fs(e,n)}))}return e.errors.length===0?{data:n}:{errors:e.errors,data:n}}function hs(e,n,t){n||ge(0,"Must provide document.");Oa(e);t==null||_e(t)||ge(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function vs(e,n,t,a,r,i,s,o){var l,d;var u;var c=Object.create(null);for(var m=0,p=n.definitions;m<p.length;m++){var g=p[m];switch(g.kind){case fe.OPERATION_DEFINITION:if(i==null){if(u!==undefined){return[new pe("Must provide operation name if query contains multiple operations.")]}u=g}else if(((l=g.name)===null||l===void 0?void 0:l.value)===i){u=g}break;case fe.FRAGMENT_DEFINITION:c[g.name.value]=g;break}}if(!u){if(i!=null){return[new pe('Unknown operation named "'.concat(i,'".'))]}return[new pe("Must provide an operation.")]}var f=(d=u.variableDefinitions)!==null&&d!==void 0?d:[];var h=ls(e,f,r!==null&&r!==void 0?r:{},{maxErrors:50});if(h.errors){return h.errors}return{schema:e,fragments:c,rootValue:t,contextValue:a,operation:u,variableValues:h.coerced,fieldResolver:s!==null&&s!==void 0?s:Bs,typeResolver:o!==null&&o!==void 0?o:Us,errors:[]}}function bs(e,n,t){var a=Ki(e.schema,n);var r=_s(e,a,n.selectionSet,Object.create(null),Object.create(null));var i=undefined;try{var s=n.operation==="mutation"?ys(e,a,t,i,r):ws(e,a,t,i,r);if(vn(s)){return s.then(undefined,(function(n){e.errors.push(n);return Promise.resolve(null)}))}return s}catch(n){e.errors.push(n);return null}}function ys(e,n,t,a,r){return Hi(Object.keys(r),(function(i,s){var o=r[s];var l=Yi(a,s,n.name);var d=Es(e,n,t,o,l);if(d===undefined){return i}if(vn(d)){return d.then((function(e){i[s]=e;return i}))}i[s]=d;return i}),Object.create(null))}function ws(e,n,t,a,r){var i=Object.create(null);var s=false;try{for(var o=0,l=Object.keys(r);o<l.length;o++){var d=l[o];var u=r[d];var c=Yi(a,d,n.name);var m=Es(e,n,t,u,c);if(m!==undefined){i[d]=m;if(vn(m)){s=true}}}}catch(e){if(s){return zi(i).finally((function(){throw e}))}throw e}if(!s){return i}return zi(i)}function _s(e,n,t,a,r){for(var i=0,s=t.selections;i<s.length;i++){var o=s[i];switch(o.kind){case fe.FIELD:{if(!xs(e,o)){continue}var l=Ss(o);if(!a[l]){a[l]=[]}a[l].push(o);break}case fe.INLINE_FRAGMENT:{if(!xs(e,o)||!Ts(e,o,n)){continue}_s(e,n,o.selectionSet,a,r);break}case fe.FRAGMENT_SPREAD:{var d=o.name.value;if(r[d]||!xs(e,o)){continue}r[d]=true;var u=e.fragments[d];if(!u||!Ts(e,u,n)){continue}_s(e,n,u.selectionSet,a,r);break}}}return a}function xs(e,n){var t=cs(Sa,n,e.variableValues);if((t===null||t===void 0?void 0:t.if)===true){return false}var a=cs(Ta,n,e.variableValues);if((a===null||a===void 0?void 0:a.if)===false){return false}return true}function Ts(e,n,t){var a=n.typeCondition;if(!a){return true}var r=ar(e.schema,a);if(r===t){return true}if(nt(r)){return e.schema.isSubType(r,t)}return false}function Ss(e){return e.alias?e.alias.value:e.name.value}function Es(e,n,t,a,r){var i;var s=a[0];var o=s.name.value;var l=Ms(e.schema,n,o);if(!l){return}var d=l.type;var u=(i=l.resolve)!==null&&i!==void 0?i:e.fieldResolver;var c=Cs(e,l,a,n,r);try{var m=us(l,a[0],e.variableValues);var p=e.contextValue;var g=u(t,m,p,c);var f;if(vn(g)){f=g.then((function(n){return Is(e,d,a,c,r,n)}))}else{f=Is(e,d,a,c,r,g)}if(vn(f)){return f.then(undefined,(function(n){var t=wn(n,a,Ji(r));return Rs(t,d,e)}))}return f}catch(n){var h=wn(n,a,Ji(r));return Rs(h,d,e)}}function Cs(e,n,t,a,r){return{fieldName:n.name,fieldNodes:t,returnType:n.type,parentType:a,path:r,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Rs(e,n,t){if(Xn(n)){throw e}t.errors.push(e);return null}function Is(e,n,t,a,r,i){if(i instanceof Error){throw i}if(Xn(n)){var s=Is(e,n.ofType,t,a,r,i);if(s===null){throw new Error("Cannot return null for non-nullable field ".concat(a.parentType.name,".").concat(a.fieldName,"."))}return s}if(i==null){return null}if(Kn(n)){return Ds(e,n,t,a,r,i)}if(Zn(n)){return As(n,i)}if(nt(n)){return ks(e,n,t,a,r,i)}if(jn(n)){return Ps(e,n,t,a,r,i)}he(0,"Cannot complete value of unexpected output type: "+me(n))}function Ds(e,n,t,a,r,i){var s=n.ofType;var o=false;var l=Ft(i,(function(n,i){var l=Yi(r,i,undefined);try{var d;if(vn(n)){d=n.then((function(n){return Is(e,s,t,a,l,n)}))}else{d=Is(e,s,t,a,l,n)}if(vn(d)){o=true;return d.then(undefined,(function(n){var a=wn(n,t,Ji(l));return Rs(a,s,e)}))}return d}catch(n){var u=wn(n,t,Ji(l));return Rs(u,s,e)}}));if(l==null){throw new pe('Expected Iterable, but did not find one for field "'.concat(a.parentType.name,".").concat(a.fieldName,'".'))}return o?Promise.all(l):l}function As(e,n){var t=e.serialize(n);if(t===undefined){throw new Error('Expected a value of type "'.concat(me(e),'" but ')+"received: ".concat(me(n)))}return t}function ks(e,n,t,a,r,i){var s;var o=(s=n.resolveType)!==null&&s!==void 0?s:e.typeResolver;var l=e.contextValue;var d=o(i,l,a,n);if(vn(d)){return d.then((function(s){return Ps(e,qs(s,e,n,t,a,i),t,a,r,i)}))}return Ps(e,qs(d,e,n,t,a,i),t,a,r,i)}function qs(e,n,t,a,r,i){if(e==null){throw new pe('Abstract type "'.concat(t.name,'" must resolve to an Object type at runtime for field "').concat(r.parentType.name,".").concat(r.fieldName,'". Either the "').concat(t.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),a)}var s=lt(e)?e.name:e;if(typeof s!=="string"){throw new pe('Abstract type "'.concat(t.name,'" must resolve to an Object type at runtime for field "').concat(r.parentType.name,".").concat(r.fieldName,'" with ')+"value ".concat(me(i),', received "').concat(me(e),'".'))}var o=n.schema.getType(s);if(o==null){throw new pe('Abstract type "'.concat(t.name,'" was resolve to a type "').concat(s,'" that does not exist inside schema.'),a)}if(!jn(o)){throw new pe('Abstract type "'.concat(t.name,'" was resolve to a non-object type "').concat(s,'".'),a)}if(!n.schema.isSubType(t,o)){throw new pe('Runtime Object type "'.concat(o.name,'" is not a possible type for "').concat(t.name,'".'),a)}return o}function Ps(e,n,t,a,r,i){if(n.isTypeOf){var s=n.isTypeOf(i,e.contextValue,a);if(vn(s)){return s.then((function(a){if(!a){throw Ns(n,i,t)}return Fs(e,n,t,r,i)}))}if(!s){throw Ns(n,i,t)}}return Fs(e,n,t,r,i)}function Ns(e,n,t){return new pe('Expected value of type "'.concat(e.name,'" but got: ').concat(me(n),"."),t)}function Fs(e,n,t,a,r){var i=Ls(e,n,t);return ws(e,n,r,a,i)}var Ls=ji(Os);function Os(e,n,t){var a=Object.create(null);var r=Object.create(null);for(var i=0;i<t.length;i++){var s=t[i];if(s.selectionSet){a=_s(e,n,s.selectionSet,a,r)}}return a}var Us=function e(n,t,a,r){if(_e(n)&&typeof n.__typename==="string"){return n.__typename}var i=a.schema.getPossibleTypes(r);var s=[];for(var o=0;o<i.length;o++){var l=i[o];if(l.isTypeOf){var d=l.isTypeOf(n,t,a);if(vn(d)){s[o]=d}else if(d){return l.name}}}if(s.length){return Promise.all(s).then((function(e){for(var n=0;n<e.length;n++){if(e[n]){return i[n].name}}}))}};var Bs=function e(n,t,a,r){if(_e(n)||typeof n==="function"){var i=n[r.fieldName];if(typeof i==="function"){return n[r.fieldName](t,a,r)}return i}};function Ms(e,n,t){if(t===ga.name&&e.getQueryType()===n){return ga}else if(t===fa.name&&e.getQueryType()===n){return fa}else if(t===ha.name){return ha}return n.getFields()[t]}function Gs(e,n,t,a,r,i,s,o){var l=arguments.length===1?Vs(e):Vs({schema:e,source:n,rootValue:t,contextValue:a,variableValues:r,operationName:i,fieldResolver:s,typeResolver:o});if(vn(l)){throw new Error("GraphQL execution failed to complete synchronously.")}return l}function Vs(e){var n=e.schema,t=e.source,a=e.rootValue,r=e.contextValue,i=e.variableValues,s=e.operationName,o=e.fieldResolver,l=e.typeResolver;var d=La(n);if(d.length>0){return{errors:d}}var u;try{u=Ie(t)}catch(e){return{errors:[e]}}var c=Gi(n,u);if(c.length>0){return{errors:c}}return ps({schema:n,document:u,rootValue:a,contextValue:r,variableValues:i,operationName:s,fieldResolver:o,typeResolver:l})}function Ws(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);if(n)a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}));t.push.apply(t,a)}return t}function js(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};if(n%2){Ws(Object(t),true).forEach((function(n){Hs(e,n,t[n])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{Ws(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}}return e}function Hs(e,n,t){if(n in e){Object.defineProperty(e,n,{value:t,enumerable:true,configurable:true,writable:true})}else{e[n]=t}return e}function zs(e,n,t){var a,r,i,s;var o=[];var l=Object.create(null);var d=[];var u;var c=[];for(var m=0,p=n.definitions;m<p.length;m++){var g=p[m];if(g.kind===fe.SCHEMA_DEFINITION){u=g}else if(g.kind===fe.SCHEMA_EXTENSION){c.push(g)}else if(dr(g)){o.push(g)}else if(cr(g)){var f=g.name.value;var h=l[f];l[f]=h?h.concat([g]):[g]}else if(g.kind===fe.DIRECTIVE_DEFINITION){d.push(g)}}if(Object.keys(l).length===0&&o.length===0&&d.length===0&&c.length===0&&u==null){return e}var v=Object.create(null);for(var b=0,y=e.types;b<y.length;b++){var w=y[b];v[w.name]=D(w)}for(var _=0;_<o.length;_++){var x;var T=o[_];var S=T.name.value;v[S]=(x=Ys[S])!==null&&x!==void 0?x:J(T)}var E=js(js({query:e.query&&R(e.query),mutation:e.mutation&&R(e.mutation),subscription:e.subscription&&R(e.subscription)},u&&U([u])),U(c));return js(js({description:(a=u)===null||a===void 0?void 0:(r=a.description)===null||r===void 0?void 0:r.value},E),{},{types:yn(v),directives:[].concat(e.directives.map(I),d.map(G)),extensions:undefined,astNode:(i=u)!==null&&i!==void 0?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(c),assumeValid:(s=t===null||t===void 0?void 0:t.assumeValid)!==null&&s!==void 0?s:false});function C(e){if(Kn(e)){return new tt(C(e.ofType))}if(Xn(e)){return new at(C(e.ofType))}return R(e)}function R(e){return v[e.name]}function I(e){var n=e.toConfig();return new xa(js(js({},n),{},{args:En(n.args,O)}))}function D(e){if(ba(e)||ta(e)){return e}if(Wn(e)){return q(e)}if(jn(e)){return P(e)}if(Hn(e)){return N(e)}if(zn(e)){return F(e)}if(Yn(e)){return k(e)}if(Jn(e)){return A(e)}he(0,"Unexpected type: "+me(e))}function A(e){var n;var t=e.toConfig();var a=(n=l[t.name])!==null&&n!==void 0?n:[];return new Ct(js(js({},t),{},{fields:function e(){return js(js({},En(t.fields,(function(e){return js(js({},e),{},{type:C(e.type)})}))),j(a))},extensionASTNodes:t.extensionASTNodes.concat(a)}))}function k(e){var n;var t=e.toConfig();var a=(n=l[e.name])!==null&&n!==void 0?n:[];return new Tt(js(js({},t),{},{values:js(js({},t.values),H(a)),extensionASTNodes:t.extensionASTNodes.concat(a)}))}function q(e){var n;var t=e.toConfig();var a=(n=l[t.name])!==null&&n!==void 0?n:[];var r=t.specifiedByUrl;for(var i=0;i<a.length;i++){var s;var o=a[i];r=(s=Ks(o))!==null&&s!==void 0?s:r}return new mt(js(js({},t),{},{specifiedByUrl:r,extensionASTNodes:t.extensionASTNodes.concat(a)}))}function P(e){var n;var t=e.toConfig();var a=(n=l[t.name])!==null&&n!==void 0?n:[];return new pt(js(js({},t),{},{interfaces:function n(){return[].concat(e.getInterfaces().map(R),z(a))},fields:function e(){return js(js({},En(t.fields,L)),V(a))},extensionASTNodes:t.extensionASTNodes.concat(a)}))}function N(e){var n;var t=e.toConfig();var a=(n=l[t.name])!==null&&n!==void 0?n:[];return new wt(js(js({},t),{},{interfaces:function n(){return[].concat(e.getInterfaces().map(R),z(a))},fields:function e(){return js(js({},En(t.fields,L)),V(a))},extensionASTNodes:t.extensionASTNodes.concat(a)}))}function F(e){var n;var t=e.toConfig();var a=(n=l[t.name])!==null&&n!==void 0?n:[];return new _t(js(js({},t),{},{types:function n(){return[].concat(e.getTypes().map(R),Y(a))},extensionASTNodes:t.extensionASTNodes.concat(a)}))}function L(e){return js(js({},e),{},{type:C(e.type),args:En(e.args,O)})}function O(e){return js(js({},e),{},{type:C(e.type)})}function U(e){var n={};for(var t=0;t<e.length;t++){var a;var r=e[t];var i=(a=r.operationTypes)!==null&&a!==void 0?a:[];for(var s=0;s<i.length;s++){var o=i[s];n[o.operation]=B(o.type)}}return n}function B(e){var n;var t=e.name.value;var a=(n=Ys[t])!==null&&n!==void 0?n:v[t];if(a===undefined){throw new Error('Unknown type: "'.concat(t,'".'))}return a}function M(e){if(e.kind===fe.LIST_TYPE){return new tt(M(e.type))}if(e.kind===fe.NON_NULL_TYPE){return new at(M(e.type))}return B(e)}function G(e){var n=e.locations.map((function(e){var n=e.value;return n}));return new xa({name:e.name.value,description:Xs(e,t),locations:n,isRepeatable:e.repeatable,args:W(e.arguments),astNode:e})}function V(e){var n=Object.create(null);for(var a=0;a<e.length;a++){var r;var i=e[a];var s=(r=i.fields)!==null&&r!==void 0?r:[];for(var o=0;o<s.length;o++){var l=s[o];n[l.name.value]={type:M(l.type),description:Xs(l,t),args:W(l.arguments),deprecationReason:Js(l),astNode:l}}}return n}function W(e){var n=e!==null&&e!==void 0?e:[];var a=Object.create(null);for(var r=0;r<n.length;r++){var i=n[r];var s=M(i.type);a[i.name.value]={type:s,description:Xs(i,t),defaultValue:$i(i.defaultValue,s),deprecationReason:Js(i),astNode:i}}return a}function j(e){var n=Object.create(null);for(var a=0;a<e.length;a++){var r;var i=e[a];var s=(r=i.fields)!==null&&r!==void 0?r:[];for(var o=0;o<s.length;o++){var l=s[o];var d=M(l.type);n[l.name.value]={type:d,description:Xs(l,t),defaultValue:$i(l.defaultValue,d),deprecationReason:Js(l),astNode:l}}}return n}function H(e){var n=Object.create(null);for(var a=0;a<e.length;a++){var r;var i=e[a];var s=(r=i.values)!==null&&r!==void 0?r:[];for(var o=0;o<s.length;o++){var l=s[o];n[l.name.value]={description:Xs(l,t),deprecationReason:Js(l),astNode:l}}}return n}function z(e){var n=[];for(var t=0;t<e.length;t++){var a;var r=e[t];var i=(a=r.interfaces)!==null&&a!==void 0?a:[];for(var s=0;s<i.length;s++){var o=i[s];n.push(B(o))}}return n}function Y(e){var n=[];for(var t=0;t<e.length;t++){var a;var r=e[t];var i=(a=r.types)!==null&&a!==void 0?a:[];for(var s=0;s<i.length;s++){var o=i[s];n.push(B(o))}}return n}function J(e){var n;var a=e.name.value;var r=Xs(e,t);var i=(n=l[a])!==null&&n!==void 0?n:[];switch(e.kind){case fe.OBJECT_TYPE_DEFINITION:{var s=i;var o=[e].concat(s);return new pt({name:a,description:r,interfaces:function e(){return z(o)},fields:function e(){return V(o)},astNode:e,extensionASTNodes:s})}case fe.INTERFACE_TYPE_DEFINITION:{var d=i;var u=[e].concat(d);return new wt({name:a,description:r,interfaces:function e(){return z(u)},fields:function e(){return V(u)},astNode:e,extensionASTNodes:d})}case fe.ENUM_TYPE_DEFINITION:{var c=i;var m=[e].concat(c);return new Tt({name:a,description:r,values:H(m),astNode:e,extensionASTNodes:c})}case fe.UNION_TYPE_DEFINITION:{var p=i;var g=[e].concat(p);return new _t({name:a,description:r,types:function e(){return Y(g)},astNode:e,extensionASTNodes:p})}case fe.SCALAR_TYPE_DEFINITION:{var f=i;return new mt({name:a,description:r,specifiedByUrl:Ks(e),astNode:e,extensionASTNodes:f})}case fe.INPUT_OBJECT_TYPE_DEFINITION:{var h=i;var v=[e].concat(h);return new Ct({name:a,description:r,fields:function e(){return j(v)},astNode:e,extensionASTNodes:h})}}he(0,"Unexpected type definition node: "+me(e))}}var Ys=Sn(na.concat(va),(function(e){return e.name}));function Js(e){var n=cs(Ca,e);return n===null||n===void 0?void 0:n.reason}function Ks(e){var n=cs(Ra,e);return n===null||n===void 0?void 0:n.url}function Xs(e,n){if(e.description){return e.description.value}if((n===null||n===void 0?void 0:n.commentDescriptions)===true){var t=$s(e);if(t!==undefined){return De("\n"+t)}}}function $s(e){var n=e.loc;if(!n){return}var t=[];var a=n.startToken.prev;while(a!=null&&a.kind===Ae.COMMENT&&a.next&&a.prev&&a.line+1===a.next.line&&a.line!==a.prev.line){var r=String(a.value);t.push(r);a=a.prev}return t.length>0?t.reverse().join("\n"):undefined}function Qs(e,n){e!=null&&e.kind===fe.DOCUMENT||ge(0,"Must provide valid Document AST.");if((n===null||n===void 0?void 0:n.assumeValid)!==true&&(n===null||n===void 0?void 0:n.assumeValidSDL)!==true){Wi(e)}var t={description:undefined,types:[],directives:[],extensions:undefined,extensionASTNodes:[],assumeValid:false};var a=zs(t,e,n);if(a.astNode==null){for(var r=0,i=a.types;r<i.length;r++){var s=i[r];switch(s.name){case"Query":a.query=s;break;case"Mutation":a.mutation=s;break;case"Subscription":a.subscription=s;break}}}var o=a.directives;var l=function e(n){var t=Ia[n];if(o.every((function(e){return e.name!==t.name}))){o.push(t)}};for(var d=0;d<Ia.length;d++){l(d)}return new Na(a)}function Zs(e,n){var t=Ie(e,{noLocation:n===null||n===void 0?void 0:n.noLocation,allowLegacySDLEmptyFields:n===null||n===void 0?void 0:n.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:n===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:n===null||n===void 0?void 0:n.experimentalFragmentVariables});return Qs(t,{commentDescriptions:n===null||n===void 0?void 0:n.commentDescriptions,assumeValidSDL:n===null||n===void 0?void 0:n.assumeValidSDL,assumeValid:n===null||n===void 0?void 0:n.assumeValid})}var eo=1/0;var no="[object Symbol]";var to=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ao=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var ro="\\ud800-\\udfff",io="\\u0300-\\u036f\\ufe20-\\ufe23",so="\\u20d0-\\u20f0",oo="\\u2700-\\u27bf",lo="a-z\\xdf-\\xf6\\xf8-\\xff",uo="\\xac\\xb1\\xd7\\xf7",co="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mo="\\u2000-\\u206f",po=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",go="A-Z\\xc0-\\xd6\\xd8-\\xde",fo="\\ufe0e\\ufe0f",ho=uo+co+mo+po;var vo="['’]",bo="["+ro+"]",yo="["+ho+"]",wo="["+io+so+"]",_o="\\d+",xo="["+oo+"]",To="["+lo+"]",So="[^"+ro+ho+_o+oo+lo+go+"]",Eo="\\ud83c[\\udffb-\\udfff]",Co="(?:"+wo+"|"+Eo+")",Ro="[^"+ro+"]",Io="(?:\\ud83c[\\udde6-\\uddff]){2}",Do="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+go+"]",ko="\\u200d";var qo="(?:"+To+"|"+So+")",Po="(?:"+Ao+"|"+So+")",No="(?:"+vo+"(?:d|ll|m|re|s|t|ve))?",Fo="(?:"+vo+"(?:D|LL|M|RE|S|T|VE))?",Lo=Co+"?",Oo="["+fo+"]?",Uo="(?:"+ko+"(?:"+[Ro,Io,Do].join("|")+")"+Oo+Lo+")*",Bo=Oo+Lo+Uo,Mo="(?:"+[xo,Io,Do].join("|")+")"+Bo,Go="(?:"+[Ro+wo+"?",wo,Io,Do,bo].join("|")+")";var Vo=RegExp(vo,"g");var Wo=RegExp(wo,"g");var jo=RegExp(Eo+"(?="+Eo+")|"+Go+Bo,"g");var Ho=RegExp([Ao+"?"+To+"+"+No+"(?="+[yo,Ao,"$"].join("|")+")",Po+"+"+Fo+"(?="+[yo,Ao+qo,"$"].join("|")+")",Ao+"?"+qo+"+"+No,Ao+"+"+Fo,_o,Mo].join("|"),"g");var zo=RegExp("["+ko+ro+io+so+fo+"]");var Yo=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Jo={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"};var Ko=typeof r=="object"&&r&&r.Object===Object&&r;var Xo=typeof self=="object"&&self&&self.Object===Object&&self;var $o=Ko||Xo||Function("return this")();function Qo(e,n,t,a){var r=-1,i=e?e.length:0;if(a&&i){t=e[++r]}while(++r<i){t=n(t,e[r],r,e)}return t}function Zo(e){return e.split("")}function el(e){return e.match(to)||[]}function nl(e){return function(n){return e==null?undefined:e[n]}}var tl=nl(Jo);function al(e){return zo.test(e)}function rl(e){return Yo.test(e)}function il(e){return al(e)?sl(e):Zo(e)}function sl(e){return e.match(jo)||[]}function ol(e){return e.match(Ho)||[]}var ll=Object.prototype;var dl=ll.toString;var ul=$o.Symbol;var cl=ul?ul.prototype:undefined,ml=cl?cl.toString:undefined;function pl(e,n,t){var a=-1,r=e.length;if(n<0){n=-n>r?0:r+n}t=t>r?r:t;if(t<0){t+=r}r=n>t?0:t-n>>>0;n>>>=0;var i=Array(r);while(++a<r){i[a]=e[a+n]}return i}function gl(e){if(typeof e=="string"){return e}if(yl(e)){return ml?ml.call(e):""}var n=e+"";return n=="0"&&1/e==-eo?"-0":n}function fl(e,n,t){var a=e.length;t=t===undefined?a:t;return!n&&t>=a?e:pl(e,n,t)}function hl(e){return function(n){n=wl(n);var t=al(n)?il(n):undefined;var a=t?t[0]:n.charAt(0);var r=t?fl(t,1).join(""):n.slice(1);return a[e]()+r}}function vl(e){return function(n){return Qo(Sl(_l(n).replace(Vo,"")),e,"")}}function bl(e){return!!e&&typeof e=="object"}function yl(e){return typeof e=="symbol"||bl(e)&&dl.call(e)==no}function wl(e){return e==null?"":gl(e)}function _l(e){e=wl(e);return e&&e.replace(ao,tl).replace(Wo,"")}var xl=vl((function(e,n,t){return e+(t?" ":"")+Tl(n)}));var Tl=hl("toUpperCase");function Sl(e,n,t){e=wl(e);n=t?undefined:n;if(n===undefined){return rl(e)?ol(e):el(e)}return e.match(n)||[]}var El=xl;var Cl=false;function Rl(e){if(e.sheet){return e.sheet}for(var n=0;n<document.styleSheets.length;n++){if(document.styleSheets[n].ownerNode===e){return document.styleSheets[n]}}return undefined}function Il(e){var n=document.createElement("style");n.setAttribute("data-emotion",e.key);if(e.nonce!==undefined){n.setAttribute("nonce",e.nonce)}n.appendChild(document.createTextNode(""));n.setAttribute("data-s","");return n}var Dl=function(){function e(e){var n=this;this._insertTag=function(e){var t;if(n.tags.length===0){if(n.insertionPoint){t=n.insertionPoint.nextSibling}else if(n.prepend){t=n.container.firstChild}else{t=n.before}}else{t=n.tags[n.tags.length-1].nextSibling}n.container.insertBefore(e,t);n.tags.push(e)};this.isSpeedy=e.speedy===undefined?!Cl:e.speedy;this.tags=[];this.ctr=0;this.nonce=e.nonce;this.key=e.key;this.container=e.container;this.prepend=e.prepend;this.insertionPoint=e.insertionPoint;this.before=null}var n=e.prototype;n.hydrate=function e(n){n.forEach(this._insertTag)};n.insert=function e(n){if(this.ctr%(this.isSpeedy?65e3:1)===0){this._insertTag(Il(this))}var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Rl(t);try{a.insertRule(n,a.cssRules.length)}catch(e){}}else{t.appendChild(document.createTextNode(n))}this.ctr++};n.flush=function e(){this.tags.forEach((function(e){var n;return(n=e.parentNode)==null?void 0:n.removeChild(e)}));this.tags=[];this.ctr=0};return e}();var Al="-ms-";var kl="-moz-";var ql="-webkit-";var Pl="comm";var Nl="rule";var Fl="decl";var Ll="@import";var Ol="@keyframes";var Ul="@layer";var Bl=Math.abs;var Ml=String.fromCharCode;var Gl=Object.assign;function Vl(e,n){return Yl(e,0)^45?(((n<<2^Yl(e,0))<<2^Yl(e,1))<<2^Yl(e,2))<<2^Yl(e,3):0}function Wl(e){return e.trim()}function jl(e,n){return(e=n.exec(e))?e[0]:e}function Hl(e,n,t){return e.replace(n,t)}function zl(e,n){return e.indexOf(n)}function Yl(e,n){return e.charCodeAt(n)|0}function Jl(e,n,t){return e.slice(n,t)}function Kl(e){return e.length}function Xl(e){return e.length}function $l(e,n){return n.push(e),e}function Ql(e,n){return e.map(n).join("")}var Zl=1;var ed=1;var nd=0;var td=0;var ad=0;var rd="";function id(e,n,t,a,r,i,s){return{value:e,root:n,parent:t,type:a,props:r,children:i,line:Zl,column:ed,length:s,return:""}}function sd(e,n){return Gl(id("",null,null,"",null,null,0),e,{length:-e.length},n)}function od(){return ad}function ld(){ad=td>0?Yl(rd,--td):0;if(ed--,ad===10)ed=1,Zl--;return ad}function dd(){ad=td<nd?Yl(rd,td++):0;if(ed++,ad===10)ed=1,Zl++;return ad}function ud(){return Yl(rd,td)}function cd(){return td}function md(e,n){return Jl(rd,e,n)}function pd(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 gd(e){return Zl=ed=1,nd=Kl(rd=e),td=0,[]}function fd(e){return rd="",e}function hd(e){return Wl(md(td-1,yd(e===91?e+2:e===40?e+1:e)))}function vd(e){while(ad=ud())if(ad<33)dd();else break;return pd(e)>2||pd(ad)>3?"":" "}function bd(e,n){while(--n&&dd())if(ad<48||ad>102||ad>57&&ad<65||ad>70&&ad<97)break;return md(e,cd()+(n<6&&ud()==32&&dd()==32))}function yd(e){while(dd())switch(ad){case e:return td;case 34:case 39:if(e!==34&&e!==39)yd(ad);break;case 40:if(e===41)yd(e);break;case 92:dd();break}return td}function wd(e,n){while(dd())if(e+ad===47+10)break;else if(e+ad===42+42&&ud()===47)break;return"/*"+md(n,td-1)+"*"+Ml(e===47?e:dd())}function _d(e){while(!pd(ud()))dd();return md(e,td)}function xd(e){return fd(Td("",null,null,null,[""],e=gd(e),0,[0],e))}function Td(e,n,t,a,r,i,s,o,l){var d=0;var u=0;var c=s;var m=0;var p=0;var g=0;var f=1;var h=1;var v=1;var b=0;var y="";var w=r;var _=i;var x=a;var T=y;while(h)switch(g=b,b=dd()){case 40:if(g!=108&&Yl(T,c-1)==58){if(zl(T+=Hl(hd(b),"&","&\f"),"&\f")!=-1)v=-1;break}case 34:case 39:case 91:T+=hd(b);break;case 9:case 10:case 13:case 32:T+=vd(g);break;case 92:T+=bd(cd()-1,7);continue;case 47:switch(ud()){case 42:case 47:$l(Ed(wd(dd(),cd()),n,t),l);break;default:T+="/"}break;case 123*f:o[d++]=Kl(T)*v;case 125*f:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:if(v==-1)T=Hl(T,/\f/g,"");if(p>0&&Kl(T)-c)$l(p>32?Cd(T+";",a,t,c-1):Cd(Hl(T," ","")+";",a,t,c-2),l);break;case 59:T+=";";default:$l(x=Sd(T,n,t,d,u,r,o,y,w=[],_=[],c),i);if(b===123)if(u===0)Td(T,n,x,x,w,i,c,o,_);else switch(m===99&&Yl(T,3)===110?100:m){case 100:case 108:case 109:case 115:Td(e,x,x,a&&$l(Sd(e,x,x,0,0,r,o,y,r,w=[],c),_),r,_,c,o,a?w:_);break;default:Td(T,x,x,x,[""],_,0,o,_)}}d=u=p=0,f=v=1,y=T="",c=s;break;case 58:c=1+Kl(T),p=g;default:if(f<1)if(b==123)--f;else if(b==125&&f++==0&&ld()==125)continue;switch(T+=Ml(b),b*f){case 38:v=u>0?1:(T+="\f",-1);break;case 44:o[d++]=(Kl(T)-1)*v,v=1;break;case 64:if(ud()===45)T+=hd(dd());m=ud(),u=c=Kl(y=T+=_d(cd())),b++;break;case 45:if(g===45&&Kl(T)==2)f=0}}return i}function Sd(e,n,t,a,r,i,s,o,l,d,u){var c=r-1;var m=r===0?i:[""];var p=Xl(m);for(var g=0,f=0,h=0;g<a;++g)for(var v=0,b=Jl(e,c+1,c=Bl(f=s[g])),y=e;v<p;++v)if(y=Wl(f>0?m[v]+" "+b:Hl(b,/&\f/g,m[v])))l[h++]=y;return id(e,n,t,r===0?Nl:o,l,d,u)}function Ed(e,n,t){return id(e,n,t,Pl,Ml(od()),Jl(e,2,-2),0)}function Cd(e,n,t,a){return id(e,n,t,Fl,Jl(e,0,a),Jl(e,a+1,-1),a)}function Rd(e,n){var t="";var a=Xl(e);for(var r=0;r<a;r++)t+=n(e[r],r,e,n)||"";return t}function Id(e,n,t,a){switch(e.type){case Ul:if(e.children.length)break;case Ll:case Fl:return e.return=e.return||e.value;case Pl:return"";case Ol:return e.return=e.value+"{"+Rd(e.children,a)+"}";case Nl:e.value=e.props.join(",")}return Kl(t=Rd(e.children,a))?e.return=e.value+"{"+t+"}":""}function Dd(e){var n=Xl(e);return function(t,a,r,i){var s="";for(var o=0;o<n;o++)s+=e[o](t,a,r,i)||"";return s}}function Ad(e){return function(n){if(!n.root)if(n=n.return)e(n)}}var kd=function e(n){var t=new WeakMap;return function(e){if(t.has(e)){return t.get(e)}var a=n(e);t.set(e,a);return a}};function qd(e){var n=Object.create(null);return function(t){if(n[t]===undefined)n[t]=e(t);return n[t]}}var Pd=typeof document!=="undefined";var Nd=function e(n,t,a){var r=0;var i=0;while(true){r=i;i=ud();if(r===38&&i===12){t[a]=1}if(pd(i)){break}dd()}return md(n,td)};var Fd=function e(n,t){var a=-1;var r=44;do{switch(pd(r)){case 0:if(r===38&&ud()===12){t[a]=1}n[a]+=Nd(td-1,t,a);break;case 2:n[a]+=hd(r);break;case 4:if(r===44){n[++a]=ud()===58?"&\f":"";t[a]=n[a].length;break}default:n[a]+=Ml(r)}}while(r=dd());return n};var Ld=function e(n,t){return fd(Fd(gd(n),t))};var Od=new WeakMap;var Ud=function e(n){if(n.type!=="rule"||!n.parent||n.length<1){return}var t=n.value;var a=n.parent;var r=n.column===a.column&&n.line===a.line;while(a.type!=="rule"){a=a.parent;if(!a)return}if(n.props.length===1&&t.charCodeAt(0)!==58&&!Od.get(a)){return}if(r){return}Od.set(n,true);var i=[];var s=Ld(t,i);var o=a.props;for(var l=0,d=0;l<s.length;l++){for(var u=0;u<o.length;u++,d++){n.props[d]=i[l]?s[l].replace(/&\f/g,o[u]):o[u]+" "+s[l]}}};var Bd=function e(n){if(n.type==="decl"){var t=n.value;if(t.charCodeAt(0)===108&&t.charCodeAt(2)===98){n["return"]="";n.value=""}}};function Md(e,n){switch(Vl(e,n)){case 5103:return ql+"print-"+e+e;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 ql+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ql+e+kl+e+Al+e+e;case 6828:case 4268:return ql+e+Al+e+e;case 6165:return ql+e+Al+"flex-"+e+e;case 5187:return ql+e+Hl(e,/(\w+).+(:[^]+)/,ql+"box-$1$2"+Al+"flex-$1$2")+e;case 5443:return ql+e+Al+"flex-item-"+Hl(e,/flex-|-self/,"")+e;case 4675:return ql+e+Al+"flex-line-pack"+Hl(e,/align-content|flex-|-self/,"")+e;case 5548:return ql+e+Al+Hl(e,"shrink","negative")+e;case 5292:return ql+e+Al+Hl(e,"basis","preferred-size")+e;case 6060:return ql+"box-"+Hl(e,"-grow","")+ql+e+Al+Hl(e,"grow","positive")+e;case 4554:return ql+Hl(e,/([^-])(transform)/g,"$1"+ql+"$2")+e;case 6187:return Hl(Hl(Hl(e,/(zoom-|grab)/,ql+"$1"),/(image-set)/,ql+"$1"),e,"")+e;case 5495:case 3959:return Hl(e,/(image-set\([^]*)/,ql+"$1"+"$`$1");case 4968:return Hl(Hl(e,/(.+:)(flex-)?(.*)/,ql+"box-pack:$3"+Al+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ql+e+e;case 4095:case 3583:case 4068:case 2532:return Hl(e,/(.+)-inline(.+)/,ql+"$1$2")+e;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(Kl(e)-1-n>6)switch(Yl(e,n+1)){case 109:if(Yl(e,n+4)!==45)break;case 102:return Hl(e,/(.+:)(.+)-([^]+)/,"$1"+ql+"$2-$3"+"$1"+kl+(Yl(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~zl(e,"stretch")?Md(Hl(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Yl(e,n+1)!==115)break;case 6444:switch(Yl(e,Kl(e)-3-(~zl(e,"!important")&&10))){case 107:return Hl(e,":",":"+ql)+e;case 101:return Hl(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ql+(Yl(e,14)===45?"inline-":"")+"box$3"+"$1"+ql+"$2$3"+"$1"+Al+"$2box$3")+e}break;case 5936:switch(Yl(e,n+11)){case 114:return ql+e+Al+Hl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ql+e+Al+Hl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ql+e+Al+Hl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ql+e+Al+e+e}return e}var Gd=function e(n,t,a,r){if(n.length>-1)if(!n["return"])switch(n.type){case Fl:n["return"]=Md(n.value,n.length);break;case Ol:return Rd([sd(n,{value:Hl(n.value,"@","@"+ql)})],r);case Nl:if(n.length)return Ql(n.props,(function(e){switch(jl(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rd([sd(n,{props:[Hl(e,/:(read-\w+)/,":"+kl+"$1")]})],r);case"::placeholder":return Rd([sd(n,{props:[Hl(e,/:(plac\w+)/,":"+ql+"input-$1")]}),sd(n,{props:[Hl(e,/:(plac\w+)/,":"+kl+"$1")]}),sd(n,{props:[Hl(e,/:(plac\w+)/,Al+"input-$1")]})],r)}return""}))}};var Vd=Pd?undefined:kd((function(){return qd((function(){return{}}))}));var Wd=[Gd];var jd=function e(n){var t=n.key;if(Pd&&t==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){var n=e.getAttribute("data-emotion");if(n.indexOf(" ")===-1){return}document.head.appendChild(e);e.setAttribute("data-s","")}))}var r=n.stylisPlugins||Wd;var i={};var s;var o=[];if(Pd){s=n.container||document.head;Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){var n=e.getAttribute("data-emotion").split(" ");for(var t=1;t<n.length;t++){i[n[t]]=true}o.push(e)}))}var l;var d=[Ud,Bd];if(!Vd){var u;var c=[Id,Ad((function(e){u.insert(e)}))];var m=Dd(d.concat(r,c));var p=function e(n){return Rd(xd(n),m)};l=function e(n,t,a,r){u=a;p(n?n+"{"+t.styles+"}":t.styles);if(r){y.inserted[t.name]=true}}}else{var g=[Id];var f=Dd(d.concat(r,g));var h=function e(n){return Rd(xd(n),f)};var v=Vd(r)(t);var b=function e(n,t){var a=t.name;if(v[a]===undefined){v[a]=h(n?n+"{"+t.styles+"}":t.styles)}return v[a]};l=function e(n,t,a,r){var i=t.name;var s=b(n,t);if(y.compat===undefined){if(r){y.inserted[i]=true}return s}else{if(r){y.inserted[i]=s}else{return s}}}}var y={key:t,sheet:new Dl({key:t,container:s,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:i,registered:{},insert:l};y.sheet.hydrate(o);return y};function Hd(e){var n=0;var t,a=0,r=e.length;for(;r>=4;++a,r-=4){t=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24;t=(t&65535)*1540483477+((t>>>16)*59797<<16);t^=t>>>24;n=(t&65535)*1540483477+((t>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16)}switch(r){case 3:n^=(e.charCodeAt(a+2)&255)<<16;case 2:n^=(e.charCodeAt(a+1)&255)<<8;case 1:n^=e.charCodeAt(a)&255;n=(n&65535)*1540483477+((n>>>16)*59797<<16)}n^=n>>>13;n=(n&65535)*1540483477+((n>>>16)*59797<<16);return((n^n>>>15)>>>0).toString(36)}var zd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Yd=false;var Jd=/[A-Z]|^ms/g;var Kd=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var Xd=function e(n){return n.charCodeAt(1)===45};var $d=function e(n){return n!=null&&typeof n!=="boolean"};var Qd=qd((function(e){return Xd(e)?e:e.replace(Jd,"-$&").toLowerCase()}));var Zd=function e(n,t){switch(n){case"animation":case"animationName":{if(typeof t==="string"){return t.replace(Kd,(function(e,n,t){ru={name:n,styles:t,next:ru};return n}))}}}if(zd[n]!==1&&!Xd(n)&&typeof t==="number"&&t!==0){return t+"px"}return t};var eu="Component selectors can only be used in conjunction with "+"@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware "+"compiler transform.";function nu(e,n,t){if(t==null){return""}var a=t;if(a.__emotion_styles!==undefined){return a}switch(typeof t){case"boolean":{return""}case"object":{var r=t;if(r.anim===1){ru={name:r.name,styles:r.styles,next:ru};return r.name}var i=t;if(i.styles!==undefined){var s=i.next;if(s!==undefined){while(s!==undefined){ru={name:s.name,styles:s.styles,next:ru};s=s.next}}var o=i.styles+";";return o}return tu(e,n,t)}case"function":{if(e!==undefined){var l=ru;var d=t(e);ru=l;return nu(e,n,d)}break}}var u=t;if(n==null){return u}var c=n[u];return c!==undefined?c:u}function tu(e,n,t){var a="";if(Array.isArray(t)){for(var r=0;r<t.length;r++){a+=nu(e,n,t[r])+";"}}else{for(var i in t){var s=t[i];if(typeof s!=="object"){var o=s;if(n!=null&&n[o]!==undefined){a+=i+"{"+n[o]+"}"}else if($d(o)){a+=Qd(i)+":"+Zd(i,o)+";"}}else{if(i==="NO_COMPONENT_SELECTOR"&&Yd){throw new Error(eu)}if(Array.isArray(s)&&typeof s[0]==="string"&&(n==null||n[s[0]]===undefined)){for(var l=0;l<s.length;l++){if($d(s[l])){a+=Qd(i)+":"+Zd(i,s[l])+";"}}}else{var d=nu(e,n,s);switch(i){case"animation":case"animationName":{a+=Qd(i)+":"+d+";";break}default:{a+=i+"{"+d+"}"}}}}}}return a}var au=/label:\s*([^\s;{]+)\s*(;|$)/g;var ru;function iu(e,n,t){if(e.length===1&&typeof e[0]==="object"&&e[0]!==null&&e[0].styles!==undefined){return e[0]}var a=true;var r="";ru=undefined;var i=e[0];if(i==null||i.raw===undefined){a=false;r+=nu(t,n,i)}else{var s=i;r+=s[0]}for(var o=1;o<e.length;o++){r+=nu(t,n,e[o]);if(a){var l=i;r+=l[o]}}au.lastIndex=0;var d="";var u;while((u=au.exec(r))!==null){d+="-"+u[1]}var c=Hd(r)+d;return{name:c,styles:r,next:ru}}var su=typeof document!=="undefined";function ou(e,n,t){var a="";t.split(" ").forEach((function(t){if(e[t]!==undefined){n.push(e[t]+";")}else if(t){a+=t+" "}}));return a}var lu=function e(n,t,a){var r=n.key+"-"+t.name;if((a===false||su===false&&n.compat!==undefined)&&n.registered[r]===undefined){n.registered[r]=t.styles}};var du=function e(n,t,a){lu(n,t,a);var r=n.key+"-"+t.name;if(n.inserted[t.name]===undefined){var i="";var s=t;do{var o=n.insert(t===s?"."+r:"",s,n.sheet,true);if(!su&&o!==undefined){i+=o}s=s.next}while(s!==undefined);if(!su&&i.length!==0){return i}}};function uu(e,n){if(e.inserted[n.name]===undefined){return e.insert("",n,e.sheet,true)}}function cu(e,n,t){var a=[];var r=ou(e,a,t);if(a.length<2){return t}return r+n(a)}var mu=function e(n){var t=jd(n);t.sheet.speedy=function(e){this.isSpeedy=e};t.compat=true;var a=function e(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++){a[r]=arguments[r]}var i=iu(a,t.registered,undefined);du(t,i,false);return t.key+"-"+i.name};var r=function e(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++){a[r]=arguments[r]}var i=iu(a,t.registered);var s="animation-"+i.name;uu(t,{name:i.name,styles:"@keyframes "+s+"{"+i.styles+"}"});return s};var i=function e(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++){a[r]=arguments[r]}var i=iu(a,t.registered);uu(t,i)};var s=function e(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++){r[i]=arguments[i]}return cu(t.registered,a,pu(r))};return{css:a,cx:s,injectGlobal:i,keyframes:r,hydrate:function e(n){n.forEach((function(e){t.inserted[e]=true}))},flush:function e(){t.registered={};t.inserted={};t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:ou.bind(null,t.registered),merge:cu.bind(null,t.registered,a)}};var pu=function e(n){var t="";for(var a=0;a<n.length;a++){var r=n[a];if(r==null)continue;var i=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r)){i=e(r)}else{i="";for(var s in r){if(r[s]&&s){i&&(i+=" ");i+=s}}}break}default:{i=r}}if(i){t&&(t+=" ");t+=i}}return t};var gu=mu({key:"css"}),fu=gu.css;var hu=fu(__makeTemplateObject(['\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'],['\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 vu(e,n){var t;var a=n.story.title.split("/");var r=a[1]?a[0]:"_";var i=a[1]||a[0];return __assign(__assign({},e),(t={},t[r]=__spreadArray(__spreadArray([],e[r]||[],true),[{story:__assign(__assign({},n.story),{title:i}),subs:n.subs}],false).sort((function(e,n){return e.story.title.localeCompare(n.story.title)})),t))}function bu(e){var n=e.default,t=__rest(e,["default"]);return{story:n,subs:t}}function yu(e,n){var t,a;if(!e)return void 0;var r=decodeURIComponent(e).split("-");var i=r[0];var s=r[1];var o=r[2];var l=(t=n==null?void 0:n[i])==null?void 0:t.find((function(e){return e.story.title===s}));var d=(a=l==null?void 0:l.subs)==null?void 0:a[o];var u={key:e,story:d,parent:l==null?void 0:l.story,label:d==null?void 0:d.name};if(u.key&&u.story&&u.parent&&u.label)return u;else return void 0}function wu(e,t){var a=t.h,r=a===void 0?n:a,o=t.title,l=o===void 0?"Stencilbook":o,d=t.homepage,u=d===void 0?r("h3",null,"Select a story!"):d,c=t.addons,m=c===void 0?[]:c;var p=i((function(){return e.map(bu).reduce(vu,{_:[]})}),e);var g=decodeURIComponent(window.location.hash).replace("#","");var f=s(yu(g,p)),h=f[0],v=f[1];var b=h==null?void 0:h.key;function y(e){window.location.hash=encodeURIComponent(e);v(yu(e,p))}var w=s(true),_=w[0],x=w[1];var T=s(false),S=T[0],E=T[1];var C=function(){return r("div",{class:"dynamic-display-wrapper"},r("button",{class:S?"active":"",onClick:function(){return E((function(e){return!e}))}},"Toggle Dark Background"),r("button",{class:_?"active":"",onClick:function(){return x((function(e){return!e}))}},"Toggle Sidebar"))};var R="1124px";var I=fu(__makeTemplateObject(["\n\t\tmax-width: ",";\n\t\tmargin-left: ",";\n\t"],["\n\t\tmax-width: ",";\n\t\tmargin-left: ",";\n\t"]),R,_?"250px":"0px");var D=fu(__makeTemplateObject(["\n\t\tdisplay: none;\n\t"],["\n\t\tdisplay: none;\n\t"]));if(S){document.body.style.backgroundColor="#232323"}else{document.body.style.backgroundColor="#fafafa"}var A=function(e){var n=e.selected;var t=m.reduce((function(e,t){return function(){return r(t,{story:__assign({},n)},r(e,null))}}),n==null?void 0:n.story);return r(t,null)};var k=function(){v(void 0)};var q=function(){return r("div",{class:"story-book-outer-div"},r("div",{class:"story-div ".concat(!_?D:"")},r("div",{class:"header",onClick:function(){return k()}},r("h2",null,l)),r("ul",{class:"parentStoryList"},Object.keys(p).sort().map((function(e){return r("div",{class:"group-wrapper"},e!=="_"&&r("h4",{class:"group-header"},e),p[e].map((function(n){return r("li",{class:"parentStory"},r("details",{style:{marginBottom:"10px"}},r("summary",{style:{outline:"none"}},n.story.title),n.subs&&Object.keys(n.subs).map((function(t){var a="".concat(e,"-").concat(n.story.title,"-").concat(t);var i=n.subs[t];var s=i.storyName||El(t);return r("div",{class:"subStory ".concat(b===a?"selected":"")},r("a",{onClick:function(){return y(a)}},s))}))))})))})))),r(C,null),r("div",{class:"component ".concat(I)},!b&&u,b&&r("div",null,r("h3",null,h.label),r(A,{selected:h}))))};return{class:hu,children:r(q,null),View:q,selected:h}}var _u={title:"New Portal"};var xu={HeaderSubtitleBold:{"font-weight":500,"text-decoration":"underline"}};var Tu=se(xu);var Su=Tu.toString();var Eu={states:{active:false},data:{label:"Dashboard",icon:"house",path:"/"}};var Cu={states:{active:true},data:{label:"Activity",icon:"bar-chart",path:"/"}};var Ru=function(){return n(oe,null,n(le,__assign({},Eu)),n(le,__assign({},Cu)))};var Iu=function(){var e={copyString:"https://ssqt.co/johnsmithrox",open:false,disabled:false,tooltiptext:"Share link copied",onClick:function(){return console.log("Share link copied")}};var t={copyString:"JOHNSMITH1",open:false,disabled:false,tooltiptext:"Share code copied",onClick:function(){return console.log("Share code copied")}};var a={medium:"twitter",loading:false,disabled:false,pill:true,type:"default",size:"medium",icon:"twitter",hideicon:false,iconslot:"prefix",onClick:function(){return"Facebook share clicked"},hide:false};var r={medium:"facebook",loading:false,disabled:false,pill:true,type:"default",size:"medium",icon:"facebook",hideicon:false,iconslot:"prefix",onClick:function(){return"Facebook share clicked"},hide:false};var i={medium:"linkedin",loading:false,disabled:false,pill:true,type:"default",size:"medium",icon:"linkedin",hideicon:false,iconslot:"prefix",onClick:function(){return"Facebook share clicked"},hide:false};return n("sqm-divided-layout",{direction:"row"},n("style",{type:"text/css"},Su),n(Ru,null),n("sqm-divided-layout",{direction:"column"},n(de,__assign({direction:"column",padding:"xxx-large",gap:"xxx-large"}),n(ue,__assign({labelMargin:"xx-small",padding:"none",label:n("sqm-text",null,n("p",null,"Welcome back,")),content:n("sqm-text",null,n("h1",null,"John Smith"))})),n(c,__assign({space:"64px"}),n(m,__assign({statvalue:"2,345",value:234500,loading:false}),"Clicks"),n(m,__assign({statvalue:"58",value:58,loading:false}),"Referrals"),n(m,__assign({statvalue:"$10,540",value:1054e3,loading:false}),"Earned"),n(m,__assign({statvalue:"$2,305",value:230500,loading:false}),"Awaiting Payout"))),n(de,__assign({direction:"column",padding:"xxx-large",gap:"xxx-large"}),n(ue,__assign({labelMargin:"x-large",padding:"none",label:n("sqm-text",null,n("h2",null,"Partner and Profit")),content:n("sqm-text",null,n("p",null,"Get rewarded for referring potential customers to MyCompany. Earn commission for each successful lead you send our way"))})),n(ue,__assign({labelMargin:"small",padding:"none",label:n("sqm-text",null,n("h3",null,"Share your referral link")),content:n(ie,__assign({},e))})),n(ue,__assign({labelMargin:"small",padding:"none",label:n("sqm-text",null,n("h3",null,"Share your referral code")),content:n(ie,__assign({},t))})),n(ue,__assign({labelMargin:"small",padding:"none",label:n("sqm-text",null,n("h3",null,"Share via social media")),content:n(de,__assign({direction:"row",padding:"large",gap:"xxx-large",minWidth:"150px"}),n(p,__assign({},a),"Post about us on X"),n(p,__assign({},r),"Share on Facebook"),n(p,__assign({},i),"Post on Linkedin"))})))))};var Du=function(){return n("sqm-divided-layout",{direction:"row"},n("style",{type:"text/css"},Su),n(Ru,null),n("sqm-divided-layout",{direction:"column"},n(ce,__assign({states:{success:false,loading:false,submitDisabled:false,showCountry:false,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}})),n(g,__assign({states:{open:true,error:"",loading:false,success:false,content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:function(){return console.log("open")},submit:function(){return console.log("submit")}}}))))};var Au=function(){return n("sqm-divided-layout",{direction:"row"},n("style",{type:"text/css"},Su),n(Ru,null),n("sqm-divided-layout",{direction:"column"},n(de,__assign({direction:"column",padding:"xxx-large",gap:"xxx-large"}),n(ue,__assign({labelMargin:"xx-small",padding:"none",label:n("sqm-text",null,n("h2",null,"Commissions")),content:n("sqm-text",null,n("p",null,"for the"," ",n("span",{class:Tu.classes.HeaderSubtitleBold},"Partner Program #1")," ","program"))})),n(c,__assign({space:"64px"}),n(m,__assign({statvalue:"$ 1,000",value:1e5,loading:false}),"Total Earned"),n(m,__assign({statvalue:"$ 800",value:8e4,loading:false}),"Available"),n(m,__assign({statvalue:"$ 180",value:18e3,loading:false}),"Pending"),n(m,__assign({statvalue:"$ 20",value:2e3,loading:false}),"Redeemed")))))};var ku=function(){return n("sqm-divided-layout",{direction:"row"},n("style",{type:"text/css"},Su),n(Ru,null),n("sqm-divided-layout",{direction:"column"},n(de,__assign({direction:"column",padding:"xxx-large",gap:"xxx-large"}),n(ue,__assign({labelMargin:"xx-small",padding:"none",label:n("sqm-text",null,n("h2",null,"Activity")),content:n("sqm-text",null,n("p",null,"for the"," ",n("span",{class:Tu.classes.HeaderSubtitleBold},"Partner Program #1")," ","program"))})),n(ue,__assign({labelMargin:"x-large",padding:"none",label:n("sqm-text",null,n("h3",null,"Referral Activity")),content:n(c,__assign({space:"64px"}),n(m,__assign({statvalue:"1,000",value:1e5,loading:false}),"Total Referrals"),n(m,__assign({statvalue:"800",value:800,loading:false}),"Converted"),n(m,__assign({statvalue:"180",value:180,loading:false}),"Pending"),n(m,__assign({statvalue:"20",value:20,loading:false}),"Disqualified"))}))),n(ue,__assign({labelMargin:"x-large",padding:"xxx-large",label:n("sqm-text",null,n("h3",null,"Traffic Generated")),content:n(c,__assign({space:"64px"}),n(m,__assign({statvalue:"1,000",value:1e3,loading:false}),"Clicks"),n(m,__assign({statvalue:"800",value:800,loading:false}),"From share link"),n(m,__assign({statvalue:"180",value:180,loading:false}),"From share mediums"))}))))};var qu=Object.freeze({__proto__:null,default:_u,Dashboard:Iu,EditProfile:Du,Commissions:Au,Activity:ku});var Pu=function(e,t){var a=e.story;var r;var i=(r=a.story.parameters)===null||r===void 0?void 0:r.hookStory;if(!i){return t}var s=Math.round(Math.random()*1e5);var o="sqm-hook-story-container-"+s;return n(o,null,n("sqm-hook-story-container",{hookStory:i}))};function Nu(e){var t=function(){return n("div",null)};t.parameters={hookStory:e};return t}var Fu='<sqm-portal-protected-route require-email-verification="true" redirect-to="/login"\n redirect-to-unverified="/emailVerification"></sqm-portal-protected-route>\n<sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large">\n <sqm-text>\n <h1>Activity</h1>\n </sqm-text>\n <sqm-payout-status-alert cash-payouts-page-url="/taxAndCash"></sqm-payout-status-alert>\n <sqm-stat-container alignment="left" space="xxxx-large" display="grid"><sqm-big-stat flex-reverse="true"\n alignment="left" stat-type="/referralsCount"><sqm-text>\n <p>Referrals</p>\n </sqm-text></sqm-big-stat>\n <sqm-big-stat flex-reverse="true" alignment="left" stat-type="/rewardsCountFiltered/AVAILABLE"><sqm-text>\n <p>Rewards Earned</p>\n </sqm-text></sqm-big-stat>\n <sqm-big-stat flex-reverse="true" alignment="left" stat-type="/rewardBalance/CREDIT/CENTS"><sqm-text>\n <p>Reward Balance</p>\n </sqm-text></sqm-big-stat>\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column column-title="Referred"\n date-shown="dateReferralStarted"></sqm-referral-table-date-column> </sqm-referral-table></sqm-portal-container>';var Lu='<sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large"\n ><sqm-titled-section label-margin="xx-small"\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot="content">\n <h1>\n <sqm-user-name fallback="Anonymous User"></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n><sqm-portal-container direction="column" padding="xxx-large" gap="xxx-large">\n <sqm-titled-section padding="none" label-margin="x-large"\n ><sqm-text slot="label"> <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot="content">\n <p>\n Get rewarded for referring potential customers to SaaSquatch. Earn\n commission for each successful lead you send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin="small" padding="none"\n ><sqm-text slot="label"> <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot="content"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin="small" padding="none">\n <sqm-text slot="label"> <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot="content"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin="small" padding="none"\n ><sqm-text slot="label"> <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot="content"\n direction="row"\n padding="none"\n gap="xxx-large"\n min-width="160px"\n ><sqm-share-button\n icon="envelope"\n medium="email"\n size="medium"\n pill="true"\n >Email a friend</sqm-share-button\n ><sqm-share-button medium="twitter" size="medium" pill="true"\n >Post about us on X</sqm-share-button\n ><sqm-share-button medium="facebook" size="medium" pill="true"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n>\n';var Ou='<sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n></sqm-portal-protected-route>\n<sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n><sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-password></sqm-portal-change-password>\n</sqm-portal-container>\n<sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-marketing></sqm-portal-change-marketing>\n</sqm-portal-container>\n';var Uu='<sqm-portal-protected-route redirect-to="/login"></sqm-portal-protected-route>\n<sqm-portal-email-verification></sqm-portal-email-verification>\n';var Bu="<sqm-portal-verify-email></sqm-portal-verify-email>\n";var Mu='<sqm-hero background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80">\n <sqm-portal-forgot-password\n email-label="Business Email"\n ></sqm-portal-forgot-password>\n</sqm-hero>\n';var Gu="<sqm-referral-iframe></sqm-referral-iframe>\n";var Vu='<sqm-hero background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80">\n <sqm-portal-login></sqm-portal-login>\n</sqm-hero>\n';var Wu='<sqm-portal-frame>\n <a slot="header" href="/">\n <sqm-text style="height: 60px">\n <img\n style="height: 60px"\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id="referral-program-1">\n <sqm-router>\n <template\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\n >\n <sqm-hero\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\n >\n <sqm-router>\n <template path="/register">\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path="/emailVerification">\n <sqm-portal-protected-route\n redirect-to="/login"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path="/login">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path="/verifyEmail">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path="/forgotPassword">\n <sqm-portal-forgot-password\n email-label="Business Email"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path="/resetPassword">\n <sqm-portal-reset-password\n confirm-password="true"\n ></sqm-portal-reset-password>\n </template>\n <template path="/logout">\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\n <sqm-divided-layout\n direction="row"\n style="\n border-top: var(--sqm-border-thickness, 1px) solid #eaeaea;\n border-bottom: var(--sqm-border-thickness, 1px) solid #eaeaea;\n "\n >\n <sqm-navigation-sidebar>\n <sqm-program-menu>\n <sl-menu-item value="referral-program-1"\n >Referral Program 1</sl-menu-item\n >\n <sl-menu-item value="referral-program-2"\n >Referral Program 2</sl-menu-item\n >\n </sqm-program-menu>\n <sqm-navigation-sidebar-item\n path="/"\n icon="house"\n label="Dashboard"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/activity"\n icon="bar-chart"\n label="Activity"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/editProfile"\n icon="person"\n label="Edit Profile"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/logout"\n icon="box-arrow-right"\n label="Logout"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction="column">\n <sqm-router>\n <template path="/">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqb-program-switch>\n <template program-id="referral-program-1">\n <sqb-widget\n widget-type="p/referral-program-1/w/referrerWidget"\n track-loads="true"\n ></sqb-widget>\n </template>\n <template program-id="referral-program-2">\n <sqb-widget\n widget-type="p/referral-program-2/w/referrerWidget"\n track-loads="true"\n ></sqb-widget>\n </template>\n </sqb-program-switch>\n </template>\n <template path="/editProfile">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-profile></sqm-portal-profile></sqm-portal-container\n ><sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path="/activity">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title="Referred"\n date-shown="dateReferralStarted"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot="footer"\n support-email="support@example.com"\n terms-link="https://example.com"\n faq-link="https://example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n';var ju='<sqm-portal-frame>\n <a slot="header" href="/">\n <sqm-text style="height: 60px">\n <img\n style="height: 60px"\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id="referral-program-1">\n <sqm-hero\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\n >\n <sqm-router>\n <template path="/register">\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path="/emailVerification">\n <sqm-portal-protected-route\n redirect-to="/login"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path="/login">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path="/verifyEmail">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path="/forgotPassword">\n <sqm-portal-forgot-password\n email-label="Business Email"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path="/resetPassword">\n <sqm-portal-reset-password\n confirm-password="true"\n ></sqm-portal-reset-password>\n </template>\n <template path="/logout">\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n <sqm-router>\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\n <sqm-divided-layout\n direction="row"\n style="\n border-top: var(--sqm-border-thickness, 1px) solid #eaeaea;\n border-bottom: var(--sqm-border-thickness, 1px) solid #eaeaea;\n "\n >\n <sqm-navigation-sidebar>\n <sqm-program-menu>\n <sl-menu-item value="referral-program-1"\n >Referral Program 1</sl-menu-item\n >\n <sl-menu-item value="referral-program-2"\n >Referral Program 2</sl-menu-item\n >\n </sqm-program-menu>\n <sqm-navigation-sidebar-item\n path="/"\n icon="house"\n label="Dashboard"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/activity"\n icon="bar-chart"\n label="Activity"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/editProfile"\n icon="person"\n label="Edit Profile"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/logout"\n icon="box-arrow-right"\n label="Logout"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction="column">\n <sqm-router>\n <template path="/">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route\n ><sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n ><sqm-titled-section label-margin="xx-small"\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot="content">\n <h1>\n <sqm-user-name\n fallback="Anonymous User"\n ></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n ><sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-titled-section padding="none" label-margin="x-large"\n ><sqm-text slot="label">\n <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot="content">\n <p>\n Get rewarded for referring potential customers to\n SaaSquatch. Earn commission for each successful lead you\n send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin="small" padding="none"\n ><sqm-text slot="label">\n <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot="content"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin="small" padding="none">\n <sqm-text slot="label">\n <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot="content"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin="small" padding="none"\n ><sqm-text slot="label">\n <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot="content"\n direction="row"\n padding="none"\n gap="xxx-large"\n min-width="160px"\n ><sqm-share-button\n icon="envelope"\n medium="email"\n size="medium"\n pill="true"\n >Email a friend</sqm-share-button\n ><sqm-share-button\n medium="twitter"\n size="medium"\n pill="true"\n >Post about us on X</sqm-share-button\n ><sqm-share-button\n medium="facebook"\n size="medium"\n pill="true"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n >\n </template>\n <template path="/editProfile">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path="/activity">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title="Referred"\n date-shown="dateReferralStarted"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot="footer"\n support-email="support@example.com"\n terms-link="https://example.com"\n faq-link="https://example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n';var Hu='<sqm-portal-frame>\n <a slot="header" href="/">\n <sqm-text style="height: 60px">\n <img\n style="height: 60px"\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id="referral-program">\n <sqm-router>\n <template\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\n >\n <sqm-hero\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\n >\n <sqm-router>\n <template path="/register">\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path="/emailVerification">\n <sqm-portal-protected-route\n redirect-to="/login"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path="/login">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path="/verifyEmail">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path="/forgotPassword">\n <sqm-portal-forgot-password\n email-label="Business Email"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path="/resetPassword">\n <sqm-portal-reset-password\n confirm-password="true"\n ></sqm-portal-reset-password>\n </template>\n <template path="/logout">\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\n <sqm-divided-layout\n direction="row"\n style="\n border-top: var(--sqm-border-thickness, 1px) solid #eaeaea;\n border-bottom: var(--sqm-border-thickness, 1px) solid #eaeaea;\n "\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path="/"\n icon="house"\n label="Dashboard"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/activity"\n icon="bar-chart"\n label="Activity"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/editProfile"\n icon="person"\n label="Edit Profile"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/logout"\n icon="box-arrow-right"\n label="Logout"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction="column">\n <sqm-router>\n <template path="/">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type="p/referral-program/w/referrerWidget"\n track-loads="true"\n ></sqb-widget>\n </template>\n <template path="/editProfile">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n\n <template path="/activity">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title="Referred"\n date-shown="dateReferralStarted"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot="footer"\n support-email="support@example.com"\n terms-link="https://example.com"\n faq-link="https://example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n';var zu='<sqm-portal-frame>\n <a slot="header" href="/">\n <sqm-text style="height: 60px">\n <img\n style="height: 60px"\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id="referral-program">\n <sqm-router>\n <template\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\n >\n <sqm-hero\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\n >\n <sqm-router>\n <template path="/register">\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path="/emailVerification">\n <sqm-portal-protected-route\n redirect-to="/login"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path="/login">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path="/verifyEmail">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path="/forgotPassword">\n <sqm-portal-forgot-password\n email-label="Business Email"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path="/resetPassword">\n <sqm-portal-reset-password\n confirm-password="true"\n ></sqm-portal-reset-password>\n </template>\n <template path="/logout">\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?">\n <sqm-divided-layout\n direction="row"\n style="\n border-top: var(--sqm-border-thickness, 1px) solid #eaeaea;\n border-bottom: var(--sqm-border-thickness, 1px) solid #eaeaea;\n "\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path="/"\n icon="house"\n label="Dashboard"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/refer"\n icon="inbox"\n label="Submit A Lead"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/activity"\n icon="bar-chart"\n label="Activity"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/editProfile"\n icon="person"\n label="Edit Profile"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/logout"\n icon="box-arrow-right"\n label="Logout"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction="column">\n <sqm-router>\n <template path="/">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type="p/referral-program/w/referrerWidget"\n track-loads="true"\n ></sqb-widget>\n </template>\n <template path="/editProfile">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path="/refer">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path="/activity">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title="Referred"\n date-shown="dateReferralStarted"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot="footer"\n support-email="support@example.com"\n terms-link="https://example.com"\n faq-link="https://example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n';var Yu='<sqm-portal-frame>\n <a slot="header" href="/">\n <sqm-text style="height: 60px">\n <img\n style="height: 60px"\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id="referral-program">\n <sqm-router>\n <template\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\n >\n <sqm-hero\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\n >\n <sqm-router>\n <template path="/register">\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path="/emailVerification">\n <sqm-portal-protected-route\n redirect-to="/login"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path="/login">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path="/verifyEmail">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path="/forgotPassword">\n <sqm-portal-forgot-password\n email-label="Business Email"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path="/resetPassword">\n <sqm-portal-reset-password\n confirm-password="true"\n ></sqm-portal-reset-password>\n </template>\n <template path="/logout">\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?">\n <sqm-divided-layout\n direction="row"\n style="\n border-top: var(--sqm-border-thickness, 1px) solid #eaeaea;\n border-bottom: var(--sqm-border-thickness, 1px) solid #eaeaea;\n "\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path="/"\n icon="house"\n label="Dashboard"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/refer"\n icon="inbox"\n label="Submit A Lead"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/activity"\n icon="bar-chart"\n label="Activity"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/editProfile"\n icon="person"\n label="Edit Profile"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/logout"\n icon="box-arrow-right"\n label="Logout"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction="column">\n <sqm-router>\n <template path="/">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n ><sqm-titled-section label-margin="xx-small"\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot="content">\n <h1>\n <sqm-user-name\n fallback="Anonymous User"\n ></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n ><sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-titled-section padding="none" label-margin="x-large"\n ><sqm-text slot="label">\n <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot="content">\n <p>\n Get rewarded for referring potential customers to\n SaaSquatch. Earn commission for each successful lead you\n send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin="small" padding="none"\n ><sqm-text slot="label">\n <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot="content"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin="small" padding="none">\n <sqm-text slot="label">\n <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot="content"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin="small" padding="none"\n ><sqm-text slot="label">\n <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot="content"\n direction="row"\n padding="none"\n gap="xxx-large"\n min-width="160px"\n ><sqm-share-button\n icon="envelope"\n medium="email"\n size="medium"\n pill="true"\n >Email a friend</sqm-share-button\n ><sqm-share-button\n medium="twitter"\n size="medium"\n pill="true"\n >Post about us on X</sqm-share-button\n ><sqm-share-button\n medium="facebook"\n size="medium"\n pill="true"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n >\n </template>\n <template path="/editProfile">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path="/refer">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path="/activity">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title="Referred"\n date-shown="dateReferralStarted"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot="footer"\n support-email="support@example.com"\n terms-link="https://example.com"\n faq-link="https://example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n';var Ju='<sqm-portal-frame>\n <a slot="header" href="/">\n <sqm-text style="height: 60px">\n <img\n style="height: 60px"\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id="referral-program">\n <sqm-router>\n <template\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\n >\n <sqm-hero\n background="https://res.cloudinary.com/saasquatch/image/upload/v1683589787/Portal%20Assets/photo-1599676821464-3555954838dc.jpg"\n >\n <sqm-router>\n <template path="/register">\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path="/emailVerification">\n <sqm-portal-protected-route\n redirect-to="/login"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path="/login">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path="/verifyEmail">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path="/forgotPassword">\n <sqm-portal-forgot-password\n email-label="Business Email"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path="/resetPassword">\n <sqm-portal-reset-password\n confirm-password="true"\n ></sqm-portal-reset-password>\n </template>\n <template path="/logout">\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b)?">\n <sqm-divided-layout\n direction="row"\n style="\n border-top: var(--sqm-border-thickness, 1px) solid #eaeaea;\n border-bottom: var(--sqm-border-thickness, 1px) solid #eaeaea;\n "\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path="/"\n icon="house"\n label="Dashboard"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/activity"\n icon="bar-chart"\n label="Activity"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/editProfile"\n icon="person"\n label="Edit Profile"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/logout"\n icon="box-arrow-right"\n label="Logout"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction="column">\n <sqm-router>\n <template path="/">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n ><sqm-titled-section label-margin="xx-small"\n ><sqm-text slot="label"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot="content">\n <h1>\n <sqm-user-name\n fallback="Anonymous User"\n ></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n ><sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-titled-section padding="none" label-margin="x-large"\n ><sqm-text slot="label">\n <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot="content">\n <p>\n Get rewarded for referring potential customers to\n SaaSquatch. Earn commission for each successful lead you\n send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin="small" padding="none"\n ><sqm-text slot="label">\n <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot="content"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin="small" padding="none">\n <sqm-text slot="label">\n <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot="content"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin="small" padding="none"\n ><sqm-text slot="label">\n <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot="content"\n direction="row"\n padding="none"\n gap="xxx-large"\n min-width="160px"\n ><sqm-share-button\n icon="envelope"\n medium="email"\n size="medium"\n pill="true"\n >Email a friend</sqm-share-button\n ><sqm-share-button\n medium="twitter"\n size="medium"\n pill="true"\n >Post about us on X</sqm-share-button\n ><sqm-share-button\n medium="facebook"\n size="medium"\n pill="true"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n >\n </template>\n <template path="/editProfile">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n\n <template path="/activity">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title="Referred"\n date-shown="dateReferralStarted"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot="footer"\n support-email="support@example.com"\n terms-link="https://example.com"\n faq-link="https://example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n';var Ku='<sqm-hero\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\n>\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n </sqm-portal-register>\n</sqm-hero>\n';var Xu='<sqm-portal-reset-password confirm-password="true"></sqm-portal-reset-password>\n';var $u='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n<html\n xmlns="http://www.w3.org/1999/xhtml"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:v="urn:schemas-microsoft-com:vml"\n>\n <head>\n \x3c!--[if gte mso 9\n ]><xml\n ><o:OfficeDocumentSettings\n ><o:AllowPNG /><o:PixelsPerInch\n >96</o:PixelsPerInch\n ></o:OfficeDocumentSettings\n ></xml\n ><!\n [endif]--\x3e\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />\n <meta content="width=device-width" name="viewport" />\n \x3c!--[if !mso]>\x3c!--\x3e\n <meta content="IE=edge" http-equiv="X-UA-Compatible" />\n \x3c!--<![endif]--\x3e\n <title></title>\n \x3c!--[if !mso]>\x3c!--\x3e\n \x3c!--<![endif]--\x3e\n <style type="text/css">\n body {\n margin: 0;\n padding: 0;\n }\n\n table,\n td,\n tr {\n vertical-align: top;\n border-collapse: collapse;\n }\n\n * {\n line-height: inherit;\n }\n\n a[x-apple-data-detectors="true"] {\n color: inherit !important;\n text-decoration: none !important;\n }\n </style>\n <style id="media-query" type="text/css">\n @media (max-width: 520px) {\n .block-grid,\n .col {\n min-width: 320px !important;\n max-width: 100% !important;\n display: block !important;\n }\n\n .block-grid {\n width: 100% !important;\n }\n\n .col {\n width: 100% !important;\n }\n\n .col_cont {\n margin: 0 auto;\n }\n\n img.fullwidth,\n img.fullwidthOnMobile {\n max-width: 100% !important;\n }\n\n .no-stack .col {\n min-width: 0 !important;\n display: table-cell !important;\n }\n\n .no-stack.two-up .col {\n width: 50% !important;\n }\n\n .no-stack .col.num2 {\n width: 16.6% !important;\n }\n\n .no-stack .col.num3 {\n width: 25% !important;\n }\n\n .no-stack .col.num4 {\n width: 33% !important;\n }\n\n .no-stack .col.num5 {\n width: 41.6% !important;\n }\n\n .no-stack .col.num6 {\n width: 50% !important;\n }\n\n .no-stack .col.num7 {\n width: 58.3% !important;\n }\n\n .no-stack .col.num8 {\n width: 66.6% !important;\n }\n\n .no-stack .col.num9 {\n width: 75% !important;\n }\n\n .no-stack .col.num10 {\n width: 83.3% !important;\n }\n\n .video-block {\n max-width: none !important;\n }\n\n .mobile_hide {\n min-height: 0px;\n max-height: 0px;\n max-width: 0px;\n display: none;\n overflow: hidden;\n font-size: 0px;\n }\n\n .desktop_hide {\n display: block !important;\n max-height: none !important;\n }\n }\n </style>\n <style id="icon-media-query" type="text/css">\n @media (max-width: 520px) {\n .icons-inner {\n text-align: center;\n }\n\n .icons-inner td {\n margin: 0 auto;\n }\n }\n </style>\n </head>\n <body\n class="clean-body"\n style="\n margin: 0;\n padding: 0;\n -webkit-text-size-adjust: 100%;\n background-color: #ffffff;\n "\n >\n \x3c!--[if IE]><div class="ie-browser"><![endif]--\x3e\n <table\n bgcolor="#FFFFFF"\n cellpadding="0"\n cellspacing="0"\n class="nl-container"\n role="presentation"\n style="\n table-layout: fixed;\n vertical-align: top;\n min-width: 320px;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n background-color: #ffffff;\n width: 100%;\n "\n valign="top"\n width="100%"\n >\n <tbody>\n <tr style="vertical-align: top" valign="top">\n <td style="word-break: break-word; vertical-align: top" valign="top">\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#FFFFFF"><![endif]--\x3e\n <div style="background-color: transparent">\n <div\n class="block-grid"\n style="\n min-width: 320px;\n max-width: 500px;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-word;\n margin: 0 auto;\n background-color: transparent;\n "\n >\n <div\n style="\n border-collapse: collapse;\n display: table;\n width: 100%;\n background-color: transparent;\n "\n >\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px"><tr class="layout-full-width" style="background-color:transparent"><![endif]--\x3e\n \x3c!--[if (mso)|(IE)]><td align="center" width="500" style="background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]--\x3e\n <div\n class="col num12"\n style="\n min-width: 320px;\n max-width: 500px;\n display: table-cell;\n vertical-align: top;\n width: 500px;\n "\n >\n <div class="col_cont" style="width: 100% !important">\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\n <div\n style="\n border-top: 0px solid transparent;\n border-left: 0px solid transparent;\n border-bottom: 0px solid transparent;\n border-right: 0px solid transparent;\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 0px;\n padding-left: 0px;\n "\n >\n \x3c!--<![endif]--\x3e\n <table\n cellpadding="0"\n cellspacing="0"\n role="presentation"\n style="\n table-layout: fixed;\n vertical-align: top;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n "\n valign="top"\n width="100%"\n >\n <tr style="vertical-align: top" valign="top">\n <td\n align="center"\n style="\n word-break: break-word;\n vertical-align: top;\n padding-bottom: 20px;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n text-align: center;\n width: 100%;\n "\n valign="top"\n width="100%"\n >\n <h1\n style="\n color: #444445;\n direction: ltr;\n font-family: \'Helvetica Neue\', Helvetica,\n Arial, sans-serif;\n font-size: 20px;\n font-weight: normal;\n letter-spacing: normal;\n line-height: 120%;\n text-align: left;\n margin-top: 0;\n margin-bottom: 0;\n "\n >\n <strong>Reset your password</strong>\n </h1>\n </td>\n </tr>\n </table>\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif"><![endif]--\x3e\n <div\n style="\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.8;\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n "\n >\n <div\n class="txtTinyMce-wrapper"\n style="\n font-size: 14px;\n line-height: 1.8;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 25px;\n "\n >\n <p\n style="\n margin: 0;\n font-size: 14px;\n line-height: 1.8;\n word-break: break-word;\n mso-line-height-alt: 25px;\n margin-top: 0;\n margin-bottom: 0;\n "\n >\n <span style="font-size: 14px"\n >We received a request to reset your password.\n Click the button below to reset your\n password.</span\n >\n </p>\n </div>\n </div>\n <div\n align="center"\n class="button-container"\n style="\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n "\n >\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" target="_blank" href={{validationLink}} style="height:31.5pt;width:390pt;v-text-anchor:middle;" arcsize="12%" stroke="false" fillcolor="#2270ee"><w:anchorlock/><v:textbox inset="0,0,0,0"><center style="color:#ffffff; font-family:Arial, sans-serif; font-size:14px"><!\n [endif]--\x3e<a\n href="{{validationLink}}"\n target="_blank"\n style="\n -webkit-text-size-adjust: none;\n text-decoration: none;\n display: block;\n color: #ffffff;\n background-color: #2270ee;\n border-radius: 5px;\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n width: 100%;\n width: calc(100% - 2px);\n border-top: var(--sqm-border-thickness, 1px) solid\n #2270ee;\n border-right: var(--sqm-border-thickness, 1px)\n solid #2270ee;\n border-bottom: var(--sqm-border-thickness, 1px)\n solid #2270ee;\n border-left: var(--sqm-border-thickness, 1px)\n solid #2270ee;\n padding-top: 5px;\n padding-bottom: 5px;\n font-family: \'Helvetica Neue\', Helvetica, Arial,\n sans-serif;\n text-align: center;\n mso-border-alt: none;\n word-break: keep-all;\n "\n target="_blank"\n ><span\n style="\n padding-left: 20px;\n padding-right: 20px;\n font-size: 14px;\n display: inline-block;\n letter-spacing: undefined;\n "\n ><span\n style="\n font-size: 16px;\n line-height: 2;\n word-break: break-word;\n mso-line-height-alt: 32px;\n "\n ><span\n style="font-size: 14px; line-height: 28px"\n >Reset Password</span\n ></span\n ></span\n ></a\n >\n \x3c!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]--\x3e\n </div>\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 15px; padding-bottom: 15px; font-family: Arial, sans-serif"><![endif]--\x3e\n <div\n style="\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.2;\n padding-top: 15px;\n padding-right: 10px;\n padding-bottom: 15px;\n padding-left: 10px;\n "\n >\n <div\n class="txtTinyMce-wrapper"\n style="\n font-size: 14px;\n line-height: 1.2;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 17px;\n "\n >\n <p\n style="\n margin: 0;\n font-size: 12px;\n line-height: 1.2;\n word-break: break-word;\n mso-line-height-alt: 14px;\n margin-top: 0;\n margin-bottom: 0;\n "\n >\n <span style="font-size: 12px"\n >If you didn\'t request a password reset please\n ignore this email. Your password will not\n change.</span\n >\n </p>\n </div>\n </div>\n \x3c!--[if mso]></td></tr></table><![endif]--\x3e\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\n </div>\n \x3c!--<![endif]--\x3e\n </div>\n </div>\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\n \x3c!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]--\x3e\n </div>\n </div>\n </div>\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\n </td>\n </tr>\n </tbody>\n </table>\n \x3c!--[if (IE)]></div><![endif]--\x3e\n </body>\n</html>\n';var Qu='<sqm-portal-frame>\n <a slot="header" href="/">\n <sqm-text style="height: 60px">\n <img\n style="height: 60px"\n src="https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id="referral-program">\n <sqm-router>\n <template\n path="/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)"\n >\n <sqm-hero\n background="https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"\n >\n <sqm-router>\n <template path="/register">\n <sqm-portal-login></sqm-portal-login>\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path="/emailVerification">\n <sqm-portal-protected-route\n redirect-to="/login"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path="/login">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path="/verifyEmail">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path="/forgotPassword">\n <sqm-portal-forgot-password\n email-label="Business Email"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path="/resetPassword">\n <sqm-portal-reset-password\n confirm-password="true"\n ></sqm-portal-reset-password>\n </template>\n <template path="/logout">\n <sqm-portal-logout next-page="/login"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path="/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?">\n <sqm-divided-layout\n direction="row"\n style="\n border-top: var(--sqm-border-thickness, 1px) solid #eaeaea;\n border-bottom: var(--sqm-border-thickness, 1px) solid #eaeaea;\n "\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path="/"\n icon="house"\n label="Dashboard"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/activity"\n icon="bar-chart"\n label="Activity"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/editProfile"\n icon="person"\n label="Edit Profile"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/taxAndCash"\n icon="file-earmark-text"\n label="Tax & Payout Settings"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path="/logout"\n icon="box-arrow-right"\n label="Logout"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction="column" content-area-width="1200px">\n <sqm-router>\n <template path="/">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type="p/referral-program/w/referrerWidget"\n track-loads="true"\n ></sqb-widget>\n </template>\n <template path="/editProfile">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction="column" gap="xxx-large">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path="/refer">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path="/activity">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction="column"\n padding="xxx-large"\n gap="xxx-large"\n >\n <sqm-text>\n <h1>Activity</h1>\n </sqm-text>\n <sqm-stat-container space="xxxx-large"\n ><sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n ><sqm-text>\n <p>Referrals</p>\n </sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsCountFiltered/AVAILABLE"\n ><sqm-text>\n <p>Rewards Earned</p>\n </sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/CENTS"\n ><sqm-text>\n <p>Reward Balance</p>\n </sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title="Referred"\n date-shown="dateReferralStarted"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n <template path="/taxAndCash">\n <sqm-portal-protected-route\n require-email-verification="true"\n redirect-to="/login"\n redirect-to-unverified="/emailVerification"\n ></sqm-portal-protected-route>\n <sqm-tax-and-cash\n step-1_first-name="First name"\n step-1_last-name="Last name"\n step-1_email="Email"\n step-1_country="Country"\n step-1_phone-number="Phone number"\n step-1_address="Address"\n step-1_city="City"\n step-1_state="State"\n step-1_province="Province"\n step-1_region="Region"\n step-1_postal-code="Postal code"\n step-1_currency="Currency"\n step-1_currency-help-text="Choose your preferred payout currency"\n step-1_allow-banking-collection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information"\n step-1_personal-information="Personal Information"\n step-1_terms-and-conditions-label="terms and conditions"\n step-1_terms-and-conditions-link="/payout-terms-and-conditions"\n step-1_search-for-currency-text="Search for currency.."\n step-2_indirect-tax="Indirect Tax"\n step-2_indirect-tax-description="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments."\n step-2_indirect-tax-details="Indirect tax details"\n step-2_other-region="Registered for indirect tax"\n step-2_other-region-subtext="If you’ve registered with your tax authority, add your information to stay tax compliant."\n step-2_not-registered="Not registered for indirect tax"\n step-2_not-registered-subtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered."\n step-2_selected-region="Country / region of indirect tax"\n step-2_indirect-tax-number="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}"\n step-2_province="Province"\n step-2_indirect-tax-number-error="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required"\n step-2_qst-number="QST number"\n step-2_is-registered-q-s-t="I am registered for QST Tax"\n step-2_is-registered-sub-region-income-tax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me."\n step-2_sub-region="Sub-region"\n step-2_sub-region-tax-number-label="Income Tax Number"\n step-2_cannot-change-info-alert="Changes to your personal and indirect tax information can only be made through our Support team after you complete this step. Make sure these are correct before continuing."\n step-3_tax-form="Tax form"\n step-3_tax-form-label="{documentType} Tax Form"\n step-3_participant-type="Participant type"\n step-3_business-entity="I represent a business"\n step-3_individual-participant="I am an individual participant"\n step-3_tax-form-description="Participants based in the US need to submit a {documentType} form."\n step-3_tax-form-description-individual-participant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form."\n step-3_tax-form-description-business-entity="Participants residing outside of the US working with a US Brand need to submit a {documentType} form."\n step-3_docusign-expired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue."\n step-3_docusign-session-warning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes."\n step-3_docusign-error="There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support."\n step-3_refresh-button="Refresh Page"\n step-3_exit-button="Exit"\n step-3_modal-title="Important Note"\n step-3_modal-description="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout."\n step-3_modal-button-text="I understand"\n step-4_tax-and-payouts="Payouts"\n step-4_directly-to-bank-account="Directly to my bank account"\n step-4_to-pay-pal-account="PayPal (2% processing fee capped to {feeCap})"\n step-4_payment-schedule-balance-threshold="Pay me when my balance reaches a threshold"\n step-4_payment-schedule-fixed-day="Pay me on a fixed day of the month"\n step-4_payment-day-select-label="Payment Day"\n step-4_payment-threshold-select-label="Payment threshold"\n step-4_payment-day-first-of-month-label-text="1st of the month"\n step-4_payment-day-fifteenth-of-month-label-text="15th of the month"\n step-4_payment-method="Payment method"\n step-4_payment-schedule="Payment schedule"\n step-4_payment-method-subtext="Payouts will be sent from our referral program provider, impact.com."\n step-4_pay-pal-input-label="PayPal email"\n step-4_bank-location-label="Bank country location"\n step-4_beneficiary-account-name-label="Account holder name"\n step-4_beneficiary-account-name-description="The beneficiary name of your bank account. Ensure this matches the name on your tax form."\n step-4_bank-account-type-label="Bank account type"\n step-4_checking-select-item-label="Checking"\n step-4_savings-select-item-label="Savings"\n step-4_bank-account-number-label="Bank account number"\n step-4_iban-label="IBAN"\n step-4_swift-code-label="SWIFT code"\n step-4_routing-code-label="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }"\n step-4_bank-name-label="Bank name"\n step-4_classification-entity-label="Classification entity"\n step-4_business-select-item-label="Business"\n step-4_individual-select-item-label="Individual"\n step-4_foreign-select-item-label="Foreign"\n step-4_classification-c-p-f-label="Classification CPF"\n step-4_patronymic-name-label="Patronymic name"\n step-4_vo-code-label="VO code"\n step-4_agency-code-label="Agency code"\n step-4_branch-code-label="Branch code"\n step-4_branch-name-label="Branch name"\n step-4_classification-label="Classification"\n step-4_classification-code-label="KBE code"\n step-4_tax-payer-id-label="Beneficiary INN"\n step-4-bank-address-label="Bank address"\n step-4_bank-city-label="Bank city"\n step-4_bank-state-label="Bank Province / State"\n step-4_bank-postal-code-label="Bank postal code"\n step-4_eft-withdrawal-label="EFT Withdrawal (free)"\n step-4_fx-wire-processing-fee-label="FX Wire (Processing Fee {currency}{defaultFxFee}.00)"\n step-4_modal-title="Important Note"\n step-4_modal-description="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped."\n step-4_modal-button-text="I understand, update my information"\n dashboard_status-text-active="Active"\n dashboard_status-text-not-active="Invalid Tax Form"\n dashboard_status-text-not-verified="Not Verified"\n dashboard_badge-text-submitted-on="Submitted on {dateSubmitted}."\n dashboard_badge-text-submitted-on-w-8="Submitted on {dateSubmitted}. Valid for three years after submission."\n dashboard_badge-text-awaiting-review="Awaiting review. Submitted on {dateSubmitted}."\n dashboard_tax-alert-header-not-active-w-9="Your W-9 tax form has personal information that doesn’t match your profile"\n dashboard_tax-alert-header-not-active-w-8="{documentType} tax form is invalid"\n dashboard_tax-alert-not-active-message-w-9="Please resubmit a new {documentType} form."\n dashboard_tax-alert-not-active-message-w-8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form."\n dashboard_invalid-form="Make sure your information is correct and submit new form."\n dashboard_banking-information-section-header="Payout Information"\n dashboard_tax-document-section-header="Tax documents"\n dashboard_tax-document-section-sub-header="{documentType} tax form"\n dashboard_no-form-needed-subtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand."\n dashboard_indirect-tax-info-section-header="Indirect tax"\n dashboard_indirect-tax-info-spain="Registered in {country}, {subRegion}"\n dashboard_indirect-tax-info-other-country="Registered in {country}"\n dashboard_indirect-tax-info-canada="Registered in {province}, {country}"\n dashboard_indirect-tax-tooltip-support="To make changes to your indirect tax information, please contact Support."\n dashboard_indirect-tax-details="{indirectTaxType} number: {indirectTaxNumber}"\n dashboard_new-form-button="Submit new tax form"\n dashboard_edit-payment-information-button="Edit payout information"\n dashboard_not-registered-for-tax="Not registered for indirect tax. If you’ve previously registered with your tax authority, contact Support to add your information to stay tax compliant."\n dashboard_qst-number="QST number: {qstNumber}"\n dashboard_sub-region-tax-number="Income tax number: {subRegionTaxNumber}"\n dashboard_status-badge-text="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }"\n dashboard_threshold-payout-text="Next payout occurs when balance is {thresholdBalance}"\n dashboard_account-text="Account"\n dashboard_invoice-column-title="Invoice"\n dashboard_date-column-title="Date"\n dashboard_earnings-column-title="Earnings"\n dashboard_indirect-tax-column-title="Indirect tax"\n dashboard_payout-from-impact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com."\n dashboard_earnings-after-tax-column-title="Earnings after tax"\n dashboard_error-title-text="Your payout is on hold "\n dashboard_error-description-text="If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com."\n dashboard_payout-missing-information-text="Missing banking information, go to Impact.com to resolve."\n dashboard_invoice-description="View and download your invoices to report your earnings and stay tax compliant."\n dashboard_invoice-prev-label="Prev"\n dashboard_invoice-more-label="Next"\n dashboard_invoice-header="Invoices"\n dashboard_invoice-empty-state-header="View your invoice details"\n dashboard_invoice-empty-state-text="Refer a friend to view the status of your invoices and rewards earned"\n dashboard_replace-tax-form-modal-header="Replace existing tax form"\n dashboard_replace-tax-form-modal-body-text="Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout."\n form-step="Step {step} of {count}"\n general-error-title="There was a problem submitting your information"\n general-error-description="Please review your information and try again. If this problem continues, contact Support."\n field-required-error="{fieldName} is required"\n invalid-character-error="{fieldName} includes characters that aren\'t supported."\n field-invalid-error="{fieldName} is invalid"\n continue-button="Continue"\n back-button="Back"\n cancel-button="Cancel"\n is-partner-alert-header="An account with this email already exists with our referral program provider, impact.com"\n is-partner-alert-description="If you don’t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email."\n search-for-country-text="Search for country.."\n loading-error-alert-header="There was a problem loading your form"\n loading-error-alert-description="Please refresh the page and try again. If this problem continues, contact Support."\n tax-and-payouts-description="Submit your tax documents and add your banking information to receive your rewards."\n ></sqm-tax-and-cash>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot="footer"\n support-email="support@example.com"\n terms-link="https://example.com"\n faq-link="https://example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n';var Zu='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n<html\n xmlns="http://www.w3.org/1999/xhtml"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:v="urn:schemas-microsoft-com:vml"\n>\n <head>\n \x3c!--[if gte mso 9\n ]><xml\n ><o:OfficeDocumentSettings\n ><o:AllowPNG /><o:PixelsPerInch\n >96</o:PixelsPerInch\n ></o:OfficeDocumentSettings\n ></xml\n ><!\n [endif]--\x3e\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />\n <meta content="width=device-width" name="viewport" />\n \x3c!--[if !mso]>\x3c!--\x3e\n <meta content="IE=edge" http-equiv="X-UA-Compatible" />\n \x3c!--<![endif]--\x3e\n <title></title>\n \x3c!--[if !mso]>\x3c!--\x3e\n \x3c!--<![endif]--\x3e\n <style type="text/css">\n body {\n margin: 0;\n padding: 0;\n }\n\n table,\n td,\n tr {\n vertical-align: top;\n border-collapse: collapse;\n }\n\n * {\n line-height: inherit;\n }\n\n a[x-apple-data-detectors="true"] {\n color: inherit !important;\n text-decoration: none !important;\n }\n </style>\n <style id="media-query" type="text/css">\n @media (max-width: 520px) {\n .block-grid,\n .col {\n min-width: 320px !important;\n max-width: 100% !important;\n display: block !important;\n }\n\n .block-grid {\n width: 100% !important;\n }\n\n .col {\n width: 100% !important;\n }\n\n .col_cont {\n margin: 0 auto;\n }\n\n img.fullwidth,\n img.fullwidthOnMobile {\n max-width: 100% !important;\n }\n\n .no-stack .col {\n min-width: 0 !important;\n display: table-cell !important;\n }\n\n .no-stack.two-up .col {\n width: 50% !important;\n }\n\n .no-stack .col.num2 {\n width: 16.6% !important;\n }\n\n .no-stack .col.num3 {\n width: 25% !important;\n }\n\n .no-stack .col.num4 {\n width: 33% !important;\n }\n\n .no-stack .col.num5 {\n width: 41.6% !important;\n }\n\n .no-stack .col.num6 {\n width: 50% !important;\n }\n\n .no-stack .col.num7 {\n width: 58.3% !important;\n }\n\n .no-stack .col.num8 {\n width: 66.6% !important;\n }\n\n .no-stack .col.num9 {\n width: 75% !important;\n }\n\n .no-stack .col.num10 {\n width: 83.3% !important;\n }\n\n .video-block {\n max-width: none !important;\n }\n\n .mobile_hide {\n min-height: 0px;\n max-height: 0px;\n max-width: 0px;\n display: none;\n overflow: hidden;\n font-size: 0px;\n }\n\n .desktop_hide {\n display: block !important;\n max-height: none !important;\n }\n }\n </style>\n <style id="icon-media-query" type="text/css">\n @media (max-width: 520px) {\n .icons-inner {\n text-align: center;\n }\n\n .icons-inner td {\n margin: 0 auto;\n }\n }\n </style>\n </head>\n <body\n class="clean-body"\n style="\n margin: 0;\n padding: 0;\n -webkit-text-size-adjust: 100%;\n background-color: #ffffff;\n "\n >\n \x3c!--[if IE]><div class="ie-browser"><![endif]--\x3e\n <table\n bgcolor="#FFFFFF"\n cellpadding="0"\n cellspacing="0"\n class="nl-container"\n role="presentation"\n style="\n table-layout: fixed;\n vertical-align: top;\n min-width: 320px;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n background-color: #ffffff;\n width: 100%;\n "\n valign="top"\n width="100%"\n >\n <tbody>\n <tr style="vertical-align: top" valign="top">\n <td style="word-break: break-word; vertical-align: top" valign="top">\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#FFFFFF"><![endif]--\x3e\n <div style="background-color: transparent">\n <div\n class="block-grid"\n style="\n min-width: 320px;\n max-width: 500px;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-word;\n margin: 0 auto;\n background-color: transparent;\n "\n >\n <div\n style="\n border-collapse: collapse;\n display: table;\n width: 100%;\n background-color: transparent;\n "\n >\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px"><tr class="layout-full-width" style="background-color:transparent"><![endif]--\x3e\n \x3c!--[if (mso)|(IE)]><td align="center" width="500" style="background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]--\x3e\n <div\n class="col num12"\n style="\n min-width: 320px;\n max-width: 500px;\n display: table-cell;\n vertical-align: top;\n width: 500px;\n "\n >\n <div class="col_cont" style="width: 100% !important">\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\n <div\n style="\n border-top: 0px solid transparent;\n border-left: 0px solid transparent;\n border-bottom: 0px solid transparent;\n border-right: 0px solid transparent;\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 0px;\n padding-left: 0px;\n "\n >\n \x3c!--<![endif]--\x3e\n <table\n cellpadding="0"\n cellspacing="0"\n role="presentation"\n style="\n table-layout: fixed;\n vertical-align: top;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n "\n valign="top"\n width="100%"\n >\n <tr style="vertical-align: top" valign="top">\n <td\n align="center"\n style="\n word-break: break-word;\n vertical-align: top;\n padding-bottom: 20px;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n text-align: center;\n width: 100%;\n "\n valign="top"\n width="100%"\n >\n <h1\n style="\n color: #444445;\n direction: ltr;\n font-family: \'Helvetica Neue\', Helvetica,\n Arial, sans-serif;\n font-size: 20px;\n font-weight: normal;\n letter-spacing: normal;\n line-height: 120%;\n text-align: left;\n margin-top: 0;\n margin-bottom: 0;\n "\n >\n <strong>Submit your tax and payout info to receive your rewards</strong>\n </h1>\n </td>\n </tr>\n </table>\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif"><![endif]--\x3e\n <div\n style="\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.8;\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n "\n >\n <div\n class="txtTinyMce-wrapper"\n style="\n font-size: 14px;\n line-height: 1.8;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 25px;\n "\n >\n <p\n style="\n margin: 0;\n font-size: 14px;\n line-height: 1.8;\n word-break: break-word;\n mso-line-height-alt: 25px;\n margin-top: 0;\n margin-bottom: 0;\n "\n >\n <span style="font-size: 14px"\n >Congratulations! You earned a cash reward in our {{programName}}. To\n receive your reward payment, log in to your account and submit your\n tax and payout information.</span\n >\n </p>\n </div>\n </div>\n \x3c!--[if mso]></td></tr></table><![endif]--\x3e\n <div\n align="center"\n class="button-container"\n style="\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n "\n >\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" target="_blank" href={{validationLink}} style="height:31.5pt;width:390pt;v-text-anchor:middle;" arcsize="12%" stroke="false" fillcolor="#2270ee"><w:anchorlock/><v:textbox inset="0,0,0,0"><center style="color:#ffffff; font-family:Arial, sans-serif; font-size:14px"><!\n [endif]--\x3e<a\n href={{loginLink}}\n\t\t\t\t\t\t\ttarget="_blank"\n style="\n -webkit-text-size-adjust: none;\n text-decoration: none;\n display: block;\n color: #ffffff;\n background-color: #2270ee;\n border-radius: 5px;\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n width: 100%;\n width: calc(100% - 2px);\n border-top: var(--sqm-border-thickness, 1px) solid #2270ee;\n border-right: var(--sqm-border-thickness, 1px) solid #2270ee;\n border-bottom: var(--sqm-border-thickness, 1px) solid #2270ee;\n border-left: var(--sqm-border-thickness, 1px) solid #2270ee;\n padding-top: 5px;\n padding-bottom: 5px;\n font-family: \'Helvetica Neue\', Helvetica, Arial,\n sans-serif;\n text-align: center;\n mso-border-alt: none;\n word-break: keep-all;\n "\n target="_blank"\n ><span\n style="\n padding-left: 20px;\n padding-right: 20px;\n font-size: 14px;\n display: inline-block;\n letter-spacing: undefined;\n "\n ><span\n style="\n font-size: 16px;\n line-height: 2;\n word-break: break-word;\n mso-line-height-alt: 32px;\n "\n ><span\n style="font-size: 14px; line-height: 28px"\n >Log In</span\n ></span\n ></span\n ></a\n >\n \x3c!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]--\x3e\n </div>\n \x3c!--<![endif]--\x3e\n </div>\n </div>\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\n \x3c!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]--\x3e\n </div>\n </div>\n </div>\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\n </td>\n </tr>\n </tbody>\n </table>\n \x3c!--[if (IE)]></div><![endif]--\x3e\n </body>\n</html>';var ec='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n<html\n xmlns="http://www.w3.org/1999/xhtml"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:v="urn:schemas-microsoft-com:vml"\n>\n <head>\n \x3c!--[if gte mso 9\n ]><xml\n ><o:OfficeDocumentSettings\n ><o:AllowPNG /><o:PixelsPerInch\n >96</o:PixelsPerInch\n ></o:OfficeDocumentSettings\n ></xml\n ><!\n [endif]--\x3e\n <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />\n <meta content="width=device-width" name="viewport" />\n \x3c!--[if !mso]>\x3c!--\x3e\n <meta content="IE=edge" http-equiv="X-UA-Compatible" />\n \x3c!--<![endif]--\x3e\n <title></title>\n \x3c!--[if !mso]>\x3c!--\x3e\n \x3c!--<![endif]--\x3e\n <style type="text/css">\n body {\n margin: 0;\n padding: 0;\n }\n\n table,\n td,\n tr {\n vertical-align: top;\n border-collapse: collapse;\n }\n\n * {\n line-height: inherit;\n }\n\n a[x-apple-data-detectors="true"] {\n color: inherit !important;\n text-decoration: none !important;\n }\n </style>\n <style id="media-query" type="text/css">\n @media (max-width: 520px) {\n .block-grid,\n .col {\n min-width: 320px !important;\n max-width: 100% !important;\n display: block !important;\n }\n\n .block-grid {\n width: 100% !important;\n }\n\n .col {\n width: 100% !important;\n }\n\n .col_cont {\n margin: 0 auto;\n }\n\n img.fullwidth,\n img.fullwidthOnMobile {\n max-width: 100% !important;\n }\n\n .no-stack .col {\n min-width: 0 !important;\n display: table-cell !important;\n }\n\n .no-stack.two-up .col {\n width: 50% !important;\n }\n\n .no-stack .col.num2 {\n width: 16.6% !important;\n }\n\n .no-stack .col.num3 {\n width: 25% !important;\n }\n\n .no-stack .col.num4 {\n width: 33% !important;\n }\n\n .no-stack .col.num5 {\n width: 41.6% !important;\n }\n\n .no-stack .col.num6 {\n width: 50% !important;\n }\n\n .no-stack .col.num7 {\n width: 58.3% !important;\n }\n\n .no-stack .col.num8 {\n width: 66.6% !important;\n }\n\n .no-stack .col.num9 {\n width: 75% !important;\n }\n\n .no-stack .col.num10 {\n width: 83.3% !important;\n }\n\n .video-block {\n max-width: none !important;\n }\n\n .mobile_hide {\n min-height: 0px;\n max-height: 0px;\n max-width: 0px;\n display: none;\n overflow: hidden;\n font-size: 0px;\n }\n\n .desktop_hide {\n display: block !important;\n max-height: none !important;\n }\n }\n </style>\n <style id="icon-media-query" type="text/css">\n @media (max-width: 520px) {\n .icons-inner {\n text-align: center;\n }\n\n .icons-inner td {\n margin: 0 auto;\n }\n }\n </style>\n </head>\n <body\n class="clean-body"\n style="\n margin: 0;\n padding: 0;\n -webkit-text-size-adjust: 100%;\n background-color: #ffffff;\n "\n >\n \x3c!--[if IE]><div class="ie-browser"><![endif]--\x3e\n <table\n bgcolor="#FFFFFF"\n cellpadding="0"\n cellspacing="0"\n class="nl-container"\n role="presentation"\n style="\n table-layout: fixed;\n vertical-align: top;\n min-width: 320px;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n background-color: #ffffff;\n width: 100%;\n "\n valign="top"\n width="100%"\n >\n <tbody>\n <tr style="vertical-align: top" valign="top">\n <td style="word-break: break-word; vertical-align: top" valign="top">\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color:#FFFFFF"><![endif]--\x3e\n <div style="background-color: transparent">\n <div\n class="block-grid"\n style="\n min-width: 320px;\n max-width: 500px;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-word;\n margin: 0 auto;\n background-color: transparent;\n "\n >\n <div\n style="\n border-collapse: collapse;\n display: table;\n width: 100%;\n background-color: transparent;\n "\n >\n \x3c!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color:transparent;"><tr><td align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px"><tr class="layout-full-width" style="background-color:transparent"><![endif]--\x3e\n \x3c!--[if (mso)|(IE)]><td align="center" width="500" style="background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;"><![endif]--\x3e\n <div\n class="col num12"\n style="\n min-width: 320px;\n max-width: 500px;\n display: table-cell;\n vertical-align: top;\n width: 500px;\n "\n >\n <div class="col_cont" style="width: 100% !important">\n \x3c!--[if (!mso)&(!IE)]>\x3c!--\x3e\n <div\n style="\n border-top: 0px solid transparent;\n border-left: 0px solid transparent;\n border-bottom: 0px solid transparent;\n border-right: 0px solid transparent;\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 0px;\n padding-left: 0px;\n "\n >\n \x3c!--<![endif]--\x3e\n <table\n cellpadding="0"\n cellspacing="0"\n role="presentation"\n style="\n table-layout: fixed;\n vertical-align: top;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n "\n valign="top"\n width="100%"\n >\n <tr style="vertical-align: top" valign="top">\n <td\n align="center"\n style="\n word-break: break-word;\n vertical-align: top;\n padding-bottom: 20px;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n text-align: center;\n width: 100%;\n "\n valign="top"\n width="100%"\n >\n <h1\n style="\n color: #444445;\n direction: ltr;\n font-family: \'Helvetica Neue\', Helvetica,\n Arial, sans-serif;\n font-size: 20px;\n font-weight: normal;\n letter-spacing: normal;\n line-height: 120%;\n text-align: left;\n margin-top: 0;\n margin-bottom: 0;\n "\n >\n <strong>Verify your email address</strong>\n </h1>\n </td>\n </tr>\n </table>\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif"><![endif]--\x3e\n <div\n style="\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.8;\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n "\n >\n <div\n class="txtTinyMce-wrapper"\n style="\n font-size: 14px;\n line-height: 1.8;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 25px;\n "\n >\n <p\n style="\n margin: 0;\n font-size: 14px;\n line-height: 1.8;\n word-break: break-word;\n mso-line-height-alt: 25px;\n margin-top: 0;\n margin-bottom: 0;\n "\n >\n <span style="font-size: 14px"\n >Thank you for signing up! Please click the button below\n to verify your email address.</span\n >\n </p>\n </div>\n </div>\n \x3c!--[if mso]></td></tr></table><![endif]--\x3e\n <div\n align="center"\n class="button-container"\n style="\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n "\n >\n \x3c!--[if mso]><table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;"><tr><td style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px" align="center"><v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" target="_blank" href={{validationLink}} style="height:31.5pt;width:390pt;v-text-anchor:middle;" arcsize="12%" stroke="false" fillcolor="#2270ee"><w:anchorlock/><v:textbox inset="0,0,0,0"><center style="color:#ffffff; font-family:Arial, sans-serif; font-size:14px"><!\n [endif]--\x3e<a\n href={{validationLink}}\n\t\t\t\t\t\t\ttarget="_blank"\n style="\n -webkit-text-size-adjust: none;\n text-decoration: none;\n display: block;\n color: #ffffff;\n background-color: #2270ee;\n border-radius: 5px;\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n width: 100%;\n width: calc(100% - 2px);\n border-top: var(--sqm-border-thickness, 1px) solid #2270ee;\n border-right: var(--sqm-border-thickness, 1px) solid #2270ee;\n border-bottom: var(--sqm-border-thickness, 1px) solid #2270ee;\n border-left: var(--sqm-border-thickness, 1px) solid #2270ee;\n padding-top: 5px;\n padding-bottom: 5px;\n font-family: \'Helvetica Neue\', Helvetica, Arial,\n sans-serif;\n text-align: center;\n mso-border-alt: none;\n word-break: keep-all;\n "\n target="_blank"\n ><span\n style="\n padding-left: 20px;\n padding-right: 20px;\n font-size: 14px;\n display: inline-block;\n letter-spacing: undefined;\n "\n ><span\n style="\n font-size: 16px;\n line-height: 2;\n word-break: break-word;\n mso-line-height-alt: 32px;\n "\n ><span\n style="font-size: 14px; line-height: 28px"\n >Verify Email</span\n ></span\n ></span\n ></a\n >\n \x3c!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]--\x3e\n </div>\n \x3c!--<![endif]--\x3e\n </div>\n </div>\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\n \x3c!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]--\x3e\n </div>\n </div>\n </div>\n \x3c!--[if (mso)|(IE)]></td></tr></table><![endif]--\x3e\n </td>\n </tr>\n </tbody>\n </table>\n \x3c!--[if (IE)]></div><![endif]--\x3e\n </body>\n</html>';function nc(e){var t=e.callbacks,a=e.states,r=e.template;return n("div",null,n("button",{onClick:function(){return t.setPreviewTemplate(a.editedTemplate)}},"Update Preview"),n("button",{style:{marginLeft:"10px"},onClick:function(){return t.setPreviewTemplate(r)}},"Preview Dashboard"))}function tc(e){var t=e.states,a=e.callbacks;return n("div",{style:{height:"50vh"}},n("textarea",{style:{width:"100%",height:"300px"},onChange:function(e){return a.setEditedTemplate(e.target.value)}},t.editedTemplate),n(nc,{states:t,callbacks:a,template:e.template}),n("h2",null,"Navigation"),n("div",{style:{display:"grid",gridTemplateColumns:"repeat(9, 80px)",gridGap:"10px"}},n("button",{onClick:function(){return ke.push("/")}},"Dashboard"),e.leadSubmit&&n("button",{onClick:function(){return ke.push("/refer")}},"Submit a Referral"),n("button",{onClick:function(){return ke.push("/activity")}},"Activity"),n("button",{onClick:function(){return ke.push("/editProfile")}},"Edit Profile"),n("button",{onClick:function(){return ke.push("/login")}},"Login"),n("button",{onClick:function(){return ke.push("/register")}},"Register"),n("button",{onClick:function(){return ke.push("/emailVerification")}},"Email Verification"),n("button",{onClick:function(){return ke.push("/verifyEmail")}},"Verify Email"),n("button",{onClick:function(){return ke.push("/forgotPassword")}},"Forgot Password"),n("button",{onClick:function(){return ke.push("/resetPassword")}},"Reset Password")),n("br",null),n("div",{innerHTML:t.previewTemplate}))}var ac=o((function(e,n){(function(n,t){e.exports=t()})(r,(function(){function e(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||false;a.configurable=true;if("value"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}function n(n,t,a){if(t)e(n.prototype,t);if(a)e(n,a);return n}function t(e,n){if(!e)return;if(typeof e==="string")return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor)t=e.constructor.name;if(t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}function a(e,n){if(n==null||n>e.length)n=e.length;for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function r(e,n){var a=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=t(e))||n&&e&&typeof e.length==="number"){if(a)e=a;var r=0;return function(){if(r>=e.length)return{done:true};return{done:false,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i={exports:{}};function s(){return{baseUrl:null,breaks:false,extensions:null,gfm:true,headerIds:true,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:true,pedantic:false,renderer:null,sanitize:false,sanitizer:null,silent:false,smartLists:false,smartypants:false,tokenizer:null,walkTokens:null,xhtml:false}}function o(e){i.exports.defaults=e}i.exports={defaults:s(),getDefaults:s,changeDefaults:o};var l=/[&<>"']/;var d=/[&<>"']/g;var u=/[<>"']|&(?!#?\w+;)/;var c=/[<>"']|&(?!#?\w+;)/g;var m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var p=function e(n){return m[n]};function g(e,n){if(n){if(l.test(e)){return e.replace(d,p)}}else{if(u.test(e)){return e.replace(c,p)}}return e}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(f,(function(e,n){n=n.toLowerCase();if(n==="colon")return":";if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""}))}var v=/(^|[^\[])\^/g;function b(e,n){e=e.source||e;n=n||"";var t={replace:function n(a,r){r=r.source||r;r=r.replace(v,"$1");e=e.replace(a,r);return t},getRegex:function t(){return new RegExp(e,n)}};return t}var y=/[^\w:]/g;var w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _(e,n,t){if(e){var a;try{a=decodeURIComponent(h(t)).replace(y,"").toLowerCase()}catch(e){return null}if(a.indexOf("javascript:")===0||a.indexOf("vbscript:")===0||a.indexOf("data:")===0){return null}}if(n&&!w.test(t)){t=C(n,t)}try{t=encodeURI(t).replace(/%25/g,"%")}catch(e){return null}return t}var x={};var T=/^[^:]+:\/*[^/]*$/;var S=/^([^:]+:)[\s\S]*$/;var E=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(e,n){if(!x[" "+e]){if(T.test(e)){x[" "+e]=e+"/"}else{x[" "+e]=A(e,"/",true)}}e=x[" "+e];var t=e.indexOf(":")===-1;if(n.substring(0,2)==="//"){if(t){return n}return e.replace(S,"$1")+n}else if(n.charAt(0)==="/"){if(t){return n}return e.replace(E,"$1")+n}else{return e+n}}var R={exec:function e(){}};function I(e){var n=1,t,a;for(;n<arguments.length;n++){t=arguments[n];for(a in t){if(Object.prototype.hasOwnProperty.call(t,a)){e[a]=t[a]}}}return e}function D(e,n){var t=e.replace(/\|/g,(function(e,n,t){var a=false,r=n;while(--r>=0&&t[r]==="\\"){a=!a}if(a){return"|"}else{return" |"}})),a=t.split(/ \|/);var r=0;if(!a[0].trim()){a.shift()}if(!a[a.length-1].trim()){a.pop()}if(a.length>n){a.splice(n)}else{while(a.length<n){a.push("")}}for(;r<a.length;r++){a[r]=a[r].trim().replace(/\\\|/g,"|")}return a}function A(e,n,t){var a=e.length;if(a===0){return""}var r=0;while(r<a){var i=e.charAt(a-r-1);if(i===n&&!t){r++}else if(i!==n&&t){r++}else{break}}return e.substr(0,a-r)}function k(e,n){if(e.indexOf(n[1])===-1){return-1}var t=e.length;var a=0,r=0;for(;r<t;r++){if(e[r]==="\\"){r++}else if(e[r]===n[0]){a++}else if(e[r]===n[1]){a--;if(a<0){return r}}}return-1}function q(e){if(e&&e.sanitize&&!e.silent){console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}function P(e,n){if(n<1){return""}var t="";while(n>1){if(n&1){t+=e}n>>=1;e+=e}return t+e}var N={escape:g,unescape:h,edit:b,cleanUrl:_,resolveUrl:C,noopTest:R,merge:I,splitCells:D,rtrim:A,findClosingBracket:k,checkSanitizeDeprecation:q,repeatString:P};var F=i.exports.defaults;var L=N.rtrim,O=N.splitCells,U=N.escape,B=N.findClosingBracket;function M(e,n,t,a){var r=n.href;var i=n.title?U(n.title):null;var s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){a.state.inLink=true;var o={type:"link",raw:t,href:r,title:i,text:s,tokens:a.inlineTokens(s,[])};a.state.inLink=false;return o}else{return{type:"image",raw:t,href:r,title:i,text:U(s)}}}function G(e,n){var t=e.match(/^(\s+)(?:```)/);if(t===null){return n}var a=t[1];return n.split("\n").map((function(e){var n=e.match(/^\s+/);if(n===null){return e}var t=n[0];if(t.length>=a.length){return e.slice(a.length)}return e})).join("\n")}var V=function(){function e(e){this.options=e||F}var n=e.prototype;n.space=function e(n){var t=this.rules.block.newline.exec(n);if(t){if(t[0].length>1){return{type:"space",raw:t[0]}}return{raw:"\n"}}};n.code=function e(n){var t=this.rules.block.code.exec(n);if(t){var a=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:!this.options.pedantic?L(a,"\n"):a}}};n.fences=function e(n){var t=this.rules.block.fences.exec(n);if(t){var a=t[0];var r=G(a,t[3]||"");return{type:"code",raw:a,lang:t[2]?t[2].trim():t[2],text:r}}};n.heading=function e(n){var t=this.rules.block.heading.exec(n);if(t){var a=t[2].trim();if(/#$/.test(a)){var r=L(a,"#");if(this.options.pedantic){a=r.trim()}else if(!r||/ $/.test(r)){a=r.trim()}}var i={type:"heading",raw:t[0],depth:t[1].length,text:a,tokens:[]};this.lexer.inline(i.text,i.tokens);return i}};n.hr=function e(n){var t=this.rules.block.hr.exec(n);if(t){return{type:"hr",raw:t[0]}}};n.blockquote=function e(n){var t=this.rules.block.blockquote.exec(n);if(t){var a=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(a,[]),text:a}}};n.list=function e(n){var t=this.rules.block.list.exec(n);if(t){var a,r,i,s,o,l,d,u,c,m;var p=t[1].trim();var g=p.length>1;var e={type:"list",raw:"",ordered:g,start:g?+p.slice(0,-1):"",loose:false,items:[]};p=g?"\\d{1,9}\\"+p.slice(-1):"\\"+p;if(this.options.pedantic){p=g?p:"[*+-]"}var f=new RegExp("^( {0,3}"+p+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");while(n){if(this.rules.block.hr.test(n)){break}if(!(t=f.exec(n))){break}c=t[2].split("\n");if(this.options.pedantic){s=2;m=c[0].trimLeft()}else{s=t[2].search(/[^ ]/);s=t[1].length+(s>4?1:s);m=c[0].slice(s-t[1].length)}l=false;a=t[0];if(!c[0]&&/^ *$/.test(c[1])){a=t[1]+c.slice(0,2).join("\n")+"\n";e.loose=true;c=[]}var h=new RegExp("^ {0,"+Math.min(3,s-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(o=1;o<c.length;o++){u=c[o];if(this.options.pedantic){u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")}if(h.test(u)){a=t[1]+c.slice(0,o).join("\n")+"\n";break}if(!l){if(!u.trim()){l=true}if(u.search(/[^ ]/)>=s){m+="\n"+u.slice(s)}else{m+="\n"+u}continue}if(u.search(/[^ ]/)>=s||!u.trim()){m+="\n"+u.slice(s);continue}else{a=t[1]+c.slice(0,o).join("\n")+"\n";break}}if(!e.loose){if(d){e.loose=true}else if(/\n *\n *$/.test(a)){d=true}}if(this.options.gfm){r=/^\[[ xX]\] /.exec(m);if(r){i=r[0]!=="[ ] ";m=m.replace(/^\[[ xX]\] +/,"")}}e.items.push({type:"list_item",raw:a,task:!!r,checked:i,loose:false,text:m});e.raw+=a;n=n.slice(a.length)}e.items[e.items.length-1].raw=a.trimRight();e.items[e.items.length-1].text=m.trimRight();e.raw=e.raw.trimRight();var v=e.items.length;for(o=0;o<v;o++){this.lexer.state.top=false;e.items[o].tokens=this.lexer.blockTokens(e.items[o].text,[]);if(e.items[o].tokens.some((function(e){return e.type==="space"}))){e.loose=true;e.items[o].loose=true}}return e}};n.html=function e(n){var t=this.rules.block.html.exec(n);if(t){var a={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){a.type="paragraph";a.text=this.options.sanitizer?this.options.sanitizer(t[0]):U(t[0]);a.tokens=[];this.lexer.inline(a.text,a.tokens)}return a}};n.def=function e(n){var t=this.rules.block.def.exec(n);if(t){if(t[3])t[3]=t[3].substring(1,t[3].length-1);var a=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:a,raw:t[0],href:t[2],title:t[3]}}};n.table=function e(n){var t=this.rules.block.table.exec(n);if(t){var a={type:"table",header:O(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(a.header.length===a.align.length){a.raw=t[0];var r=a.align.length;var i,s,o,l;for(i=0;i<r;i++){if(/^ *-+: *$/.test(a.align[i])){a.align[i]="right"}else if(/^ *:-+: *$/.test(a.align[i])){a.align[i]="center"}else if(/^ *:-+ *$/.test(a.align[i])){a.align[i]="left"}else{a.align[i]=null}}r=a.rows.length;for(i=0;i<r;i++){a.rows[i]=O(a.rows[i],a.header.length).map((function(e){return{text:e}}))}r=a.header.length;for(s=0;s<r;s++){a.header[s].tokens=[];this.lexer.inlineTokens(a.header[s].text,a.header[s].tokens)}r=a.rows.length;for(s=0;s<r;s++){l=a.rows[s];for(o=0;o<l.length;o++){l[o].tokens=[];this.lexer.inlineTokens(l[o].text,l[o].tokens)}}return a}}};n.lheading=function e(n){var t=this.rules.block.lheading.exec(n);if(t){var a={type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:[]};this.lexer.inline(a.text,a.tokens);return a}};n.paragraph=function e(n){var t=this.rules.block.paragraph.exec(n);if(t){var a={type:"paragraph",raw:t[0],text:t[1].charAt(t[1].length-1)==="\n"?t[1].slice(0,-1):t[1],tokens:[]};this.lexer.inline(a.text,a.tokens);return a}};n.text=function e(n){var t=this.rules.block.text.exec(n);if(t){var a={type:"text",raw:t[0],text:t[0],tokens:[]};this.lexer.inline(a.text,a.tokens);return a}};n.escape=function e(n){var t=this.rules.inline.escape.exec(n);if(t){return{type:"escape",raw:t[0],text:U(t[1])}}};n.tag=function e(n){var t=this.rules.inline.tag.exec(n);if(t){if(!this.lexer.state.inLink&&/^<a /i.test(t[0])){this.lexer.state.inLink=true}else if(this.lexer.state.inLink&&/^<\/a>/i.test(t[0])){this.lexer.state.inLink=false}if(!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])){this.lexer.state.inRawBlock=true}else if(this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])){this.lexer.state.inRawBlock=false}return{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):U(t[0]):t[0]}}};n.link=function e(n){var t=this.rules.inline.link.exec(n);if(t){var a=t[2].trim();if(!this.options.pedantic&&/^</.test(a)){if(!/>$/.test(a)){return}var r=L(a.slice(0,-1),"\\");if((a.length-r.length)%2===0){return}}else{var i=B(t[2],"()");if(i>-1){var s=t[0].indexOf("!")===0?5:4;var o=s+t[1].length+i;t[2]=t[2].substring(0,i);t[0]=t[0].substring(0,o).trim();t[3]=""}}var l=t[2];var d="";if(this.options.pedantic){var e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);if(e){l=e[1];d=e[3]}}else{d=t[3]?t[3].slice(1,-1):""}l=l.trim();if(/^</.test(l)){if(this.options.pedantic&&!/>$/.test(a)){l=l.slice(1)}else{l=l.slice(1,-1)}}return M(t,{href:l?l.replace(this.rules.inline._escapes,"$1"):l,title:d?d.replace(this.rules.inline._escapes,"$1"):d},t[0],this.lexer)}};n.reflink=function e(n,t){var a;if((a=this.rules.inline.reflink.exec(n))||(a=this.rules.inline.nolink.exec(n))){var r=(a[2]||a[1]).replace(/\s+/g," ");r=t[r.toLowerCase()];if(!r||!r.href){var i=a[0].charAt(0);return{type:"text",raw:i,text:i}}return M(a,r,a[0],this.lexer)}};n.emStrong=function e(n,t,a){if(a===void 0){a=""}var r=this.rules.inline.emStrong.lDelim.exec(n);if(!r)return;if(r[3]&&a.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))return;var i=r[1]||r[2]||"";if(!i||i&&(a===""||this.rules.inline.punctuation.exec(a))){var s=r[0].length-1;var o,l,d=s,u=0;var c=r[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;c.lastIndex=0;t=t.slice(-1*n.length+s);while((r=c.exec(t))!=null){o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6];if(!o)continue;l=o.length;if(r[3]||r[4]){d+=l;continue}else if(r[5]||r[6]){if(s%3&&!((s+l)%3)){u+=l;continue}}d-=l;if(d>0)continue;l=Math.min(l,l+d+u);if(Math.min(s,l)%2){var m=n.slice(1,s+r.index+l);return{type:"em",raw:n.slice(0,s+r.index+l+1),text:m,tokens:this.lexer.inlineTokens(m,[])}}var p=n.slice(2,s+r.index+l-1);return{type:"strong",raw:n.slice(0,s+r.index+l+1),text:p,tokens:this.lexer.inlineTokens(p,[])}}}};n.codespan=function e(n){var t=this.rules.inline.code.exec(n);if(t){var a=t[2].replace(/\n/g," ");var r=/[^ ]/.test(a);var i=/^ /.test(a)&&/ $/.test(a);if(r&&i){a=a.substring(1,a.length-1)}a=U(a,true);return{type:"codespan",raw:t[0],text:a}}};n.br=function e(n){var t=this.rules.inline.br.exec(n);if(t){return{type:"br",raw:t[0]}}};n.del=function e(n){var t=this.rules.inline.del.exec(n);if(t){return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}};n.autolink=function e(n,t){var a=this.rules.inline.autolink.exec(n);if(a){var r,i;if(a[2]==="@"){r=U(this.options.mangle?t(a[1]):a[1]);i="mailto:"+r}else{r=U(a[1]);i=r}return{type:"link",raw:a[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}};n.url=function e(n,t){var a;if(a=this.rules.inline.url.exec(n)){var r,i;if(a[2]==="@"){r=U(this.options.mangle?t(a[0]):a[0]);i="mailto:"+r}else{var s;do{s=a[0];a[0]=this.rules.inline._backpedal.exec(a[0])[0]}while(s!==a[0]);r=U(a[0]);if(a[1]==="www."){i="http://"+r}else{i=r}}return{type:"link",raw:a[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}};n.inlineText=function e(n,t){var a=this.rules.inline.text.exec(n);if(a){var r;if(this.lexer.state.inRawBlock){r=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):U(a[0]):a[0]}else{r=U(this.options.smartypants?t(a[0]):a[0])}return{type:"text",raw:a[0],text:r}}};return e}();var W=N.noopTest,j=N.edit,H=N.merge;var z={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:"+"<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)"+"|comment[^\\n]*(\\n+|$)"+"|<\\?[\\s\\S]*?(?:\\?>\\n*|$)"+"|<![A-Z][\\s\\S]*?(?:>\\n*|$)"+"|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)"+"|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+"|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+"|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+")",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:W,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};z._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;z._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;z.def=j(z.def).replace("label",z._label).replace("title",z._title).getRegex();z.bullet=/(?:[*+-]|\d{1,9}[.)])/;z.listItemStart=j(/^( *)(bull) */).replace("bull",z.bullet).getRegex();z.list=j(z.list).replace(/bull/g,z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+z.def.source+")").getRegex();z._tag="address|article|aside|base|basefont|blockquote|body|caption"+"|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption"+"|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe"+"|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option"+"|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr"+"|track|ul";z._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;z.html=j(z.html,"i").replace("comment",z._comment).replace("tag",z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();z.paragraph=j(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",z._tag).getRegex();z.blockquote=j(z.blockquote).replace("paragraph",z.paragraph).getRegex();z.normal=H({},z);z.gfm=H({},z.normal,{table:"^ *([^\\n ].*\\|.*)\\n"+" {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?"+"(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});z.gfm.table=j(z.gfm.table).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",z._tag).getRegex();z.pedantic=H({},z.normal,{html:j("^ *(?:comment *(?:\\n|\\s*$)"+"|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)"+"|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z._comment).replace(/tag/g,"(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub"+"|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)"+"\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:W,paragraph:j(z.normal._paragraph).replace("hr",z.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Y={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:W,tag:"^comment"+"|^</[a-zA-Z][\\w:-]*\\s*>"+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+"|^<\\?[\\s\\S]*?\\?>"+"|^<![a-zA-Z]+\\s[\\s\\S]*?>"+"|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:W,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Y._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";Y.punctuation=j(Y.punctuation).replace(/punctuation/g,Y._punctuation).getRegex();Y.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;Y.escapedEmSt=/\\\*|\\_/g;Y._comment=j(z._comment).replace("(?:--\x3e|$)","--\x3e").getRegex();Y.emStrong.lDelim=j(Y.emStrong.lDelim).replace(/punct/g,Y._punctuation).getRegex();Y.emStrong.rDelimAst=j(Y.emStrong.rDelimAst,"g").replace(/punct/g,Y._punctuation).getRegex();Y.emStrong.rDelimUnd=j(Y.emStrong.rDelimUnd,"g").replace(/punct/g,Y._punctuation).getRegex();Y._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;Y._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Y._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;Y.autolink=j(Y.autolink).replace("scheme",Y._scheme).replace("email",Y._email).getRegex();Y._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Y.tag=j(Y.tag).replace("comment",Y._comment).replace("attribute",Y._attribute).getRegex();Y._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Y._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Y._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Y.link=j(Y.link).replace("label",Y._label).replace("href",Y._href).replace("title",Y._title).getRegex();Y.reflink=j(Y.reflink).replace("label",Y._label).getRegex();Y.reflinkSearch=j(Y.reflinkSearch,"g").replace("reflink",Y.reflink).replace("nolink",Y.nolink).getRegex();Y.normal=H({},Y);Y.pedantic=H({},Y.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:j(/^!?\[(label)\]\((.*?)\)/).replace("label",Y._label).getRegex(),reflink:j(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Y._label).getRegex()});Y.gfm=H({},Y.normal,{escape:j(Y.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});Y.gfm.url=j(Y.gfm.url,"i").replace("email",Y.gfm._extended_email).getRegex();Y.breaks=H({},Y.gfm,{br:j(Y.br).replace("{2,}","*").getRegex(),text:j(Y.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var J={block:z,inline:Y};var K=V;var X=i.exports.defaults;var $=J.block,Q=J.inline;var Z=N.repeatString;function ee(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function ne(e){var n="",t,a;var r=e.length;for(t=0;t<r;t++){a=e.charCodeAt(t);if(Math.random()>.5){a="x"+a.toString(16)}n+="&#"+a+";"}return n}var te=function(){function e(e){this.tokens=[];this.tokens.links=Object.create(null);this.options=e||X;this.options.tokenizer=this.options.tokenizer||new K;this.tokenizer=this.options.tokenizer;this.tokenizer.options=this.options;this.tokenizer.lexer=this;this.inlineQueue=[];this.state={inLink:false,inRawBlock:false,top:true};var n={block:$.normal,inline:Q.normal};if(this.options.pedantic){n.block=$.pedantic;n.inline=Q.pedantic}else if(this.options.gfm){n.block=$.gfm;if(this.options.breaks){n.inline=Q.breaks}else{n.inline=Q.gfm}}this.tokenizer.rules=n}e.lex=function n(t,a){var r=new e(a);return r.lex(t)};e.lexInline=function n(t,a){var r=new e(a);return r.inlineTokens(t)};var t=e.prototype;t.lex=function e(n){n=n.replace(/\r\n|\r/g,"\n").replace(/\t/g," ");this.blockTokens(n,this.tokens);var t;while(t=this.inlineQueue.shift()){this.inlineTokens(t.src,t.tokens)}return this.tokens};t.blockTokens=function e(n,t){var a=this;if(t===void 0){t=[]}if(this.options.pedantic){n=n.replace(/^ +$/gm,"")}var r,i,s,o;while(n){if(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(e){if(r=e.call({lexer:a},n,t)){n=n.substring(r.raw.length);t.push(r);return true}return false}))){continue}if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length);if(r.type){t.push(r)}continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length);i=t[t.length-1];if(i&&(i.type==="paragraph"||i.type==="text")){i.raw+="\n"+r.raw;i.text+="\n"+r.text;this.inlineQueue[this.inlineQueue.length-1].src=i.text}else{t.push(r)}continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length);i=t[t.length-1];if(i&&(i.type==="paragraph"||i.type==="text")){i.raw+="\n"+r.raw;i.text+="\n"+r.raw;this.inlineQueue[this.inlineQueue.length-1].src=i.text}else if(!this.tokens.links[r.tag]){this.tokens.links[r.tag]={href:r.href,title:r.title}}continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length);t.push(r);continue}s=n;if(this.options.extensions&&this.options.extensions.startBlock){(function(){var e=Infinity;var t=n.slice(1);var r=void 0;a.options.extensions.startBlock.forEach((function(n){r=n.call({lexer:this},t);if(typeof r==="number"&&r>=0){e=Math.min(e,r)}}));if(e<Infinity&&e>=0){s=n.substring(0,e+1)}})()}if(this.state.top&&(r=this.tokenizer.paragraph(s))){i=t[t.length-1];if(o&&i.type==="paragraph"){i.raw+="\n"+r.raw;i.text+="\n"+r.text;this.inlineQueue.pop();this.inlineQueue[this.inlineQueue.length-1].src=i.text}else{t.push(r)}o=s.length!==n.length;n=n.substring(r.raw.length);continue}if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length);i=t[t.length-1];if(i&&i.type==="text"){i.raw+="\n"+r.raw;i.text+="\n"+r.text;this.inlineQueue.pop();this.inlineQueue[this.inlineQueue.length-1].src=i.text}else{t.push(r)}continue}if(n){var l="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(l);break}else{throw new Error(l)}}}this.state.top=true;return t};t.inline=function e(n,t){this.inlineQueue.push({src:n,tokens:t})};t.inlineTokens=function e(n,t){var a=this;if(t===void 0){t=[]}var r,i,s;var o=n;var l;var d,u;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0){while((l=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null){if(c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))){o=o.slice(0,l.index)+"["+Z("a",l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)}}}}while((l=this.tokenizer.rules.inline.blockSkip.exec(o))!=null){o=o.slice(0,l.index)+"["+Z("a",l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex)}while((l=this.tokenizer.rules.inline.escapedEmSt.exec(o))!=null){o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex)}while(n){if(!d){u=""}d=false;if(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(e){if(r=e.call({lexer:a},n,t)){n=n.substring(r.raw.length);t.push(r);return true}return false}))){continue}if(r=this.tokenizer.escape(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.tag(n)){n=n.substring(r.raw.length);i=t[t.length-1];if(i&&r.type==="text"&&i.type==="text"){i.raw+=r.raw;i.text+=r.text}else{t.push(r)}continue}if(r=this.tokenizer.link(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(r.raw.length);i=t[t.length-1];if(i&&r.type==="text"&&i.type==="text"){i.raw+=r.raw;i.text+=r.text}else{t.push(r)}continue}if(r=this.tokenizer.emStrong(n,o,u)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.codespan(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.br(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.del(n)){n=n.substring(r.raw.length);t.push(r);continue}if(r=this.tokenizer.autolink(n,ne)){n=n.substring(r.raw.length);t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(n,ne))){n=n.substring(r.raw.length);t.push(r);continue}s=n;if(this.options.extensions&&this.options.extensions.startInline){(function(){var e=Infinity;var t=n.slice(1);var r=void 0;a.options.extensions.startInline.forEach((function(n){r=n.call({lexer:this},t);if(typeof r==="number"&&r>=0){e=Math.min(e,r)}}));if(e<Infinity&&e>=0){s=n.substring(0,e+1)}})()}if(r=this.tokenizer.inlineText(s,ee)){n=n.substring(r.raw.length);if(r.raw.slice(-1)!=="_"){u=r.raw.slice(-1)}d=true;i=t[t.length-1];if(i&&i.type==="text"){i.raw+=r.raw;i.text+=r.text}else{t.push(r)}continue}if(n){var m="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(m);break}else{throw new Error(m)}}}return t};n(e,null,[{key:"rules",get:function e(){return{block:$,inline:Q}}}]);return e}();var ae=i.exports.defaults;var re=N.cleanUrl,ie=N.escape;var se=function(){function e(e){this.options=e||ae}var n=e.prototype;n.code=function e(n,t,a){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(n,r);if(i!=null&&i!==n){a=true;n=i}}n=n.replace(/\n$/,"")+"\n";if(!r){return"<pre><code>"+(a?n:ie(n,true))+"</code></pre>\n"}return'<pre><code class="'+this.options.langPrefix+ie(r,true)+'">'+(a?n:ie(n,true))+"</code></pre>\n"};n.blockquote=function e(n){return"<blockquote>\n"+n+"</blockquote>\n"};n.html=function e(n){return n};n.heading=function e(n,t,a,r){if(this.options.headerIds){return"<h"+t+' id="'+this.options.headerPrefix+r.slug(a)+'">'+n+"</h"+t+">\n"}return"<h"+t+">"+n+"</h"+t+">\n"};n.hr=function e(){return this.options.xhtml?"<hr/>\n":"<hr>\n"};n.list=function e(n,t,a){var r=t?"ol":"ul",i=t&&a!==1?' start="'+a+'"':"";return"<"+r+i+">\n"+n+"</"+r+">\n"};n.listitem=function e(n){return"<li>"+n+"</li>\n"};n.checkbox=function e(n){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "};n.paragraph=function e(n){return"<p>"+n+"</p>\n"};n.table=function e(n,t){if(t)t="<tbody>"+t+"</tbody>";return"<table>\n"+"<thead>\n"+n+"</thead>\n"+t+"</table>\n"};n.tablerow=function e(n){return"<tr>\n"+n+"</tr>\n"};n.tablecell=function e(n,t){var a=t.header?"th":"td";var r=t.align?"<"+a+' align="'+t.align+'">':"<"+a+">";return r+n+"</"+a+">\n"};n.strong=function e(n){return"<strong>"+n+"</strong>"};n.em=function e(n){return"<em>"+n+"</em>"};n.codespan=function e(n){return"<code>"+n+"</code>"};n.br=function e(){return this.options.xhtml?"<br/>":"<br>"};n.del=function e(n){return"<del>"+n+"</del>"};n.link=function e(n,t,a){n=re(this.options.sanitize,this.options.baseUrl,n);if(n===null){return a}var r='<a href="'+ie(n)+'"';if(t){r+=' title="'+t+'"'}r+=">"+a+"</a>";return r};n.image=function e(n,t,a){n=re(this.options.sanitize,this.options.baseUrl,n);if(n===null){return a}var r='<img src="'+n+'" alt="'+a+'"';if(t){r+=' title="'+t+'"'}r+=this.options.xhtml?"/>":">";return r};n.text=function e(n){return n};return e}();var oe=function(){function e(){}var n=e.prototype;n.strong=function e(n){return n};n.em=function e(n){return n};n.codespan=function e(n){return n};n.del=function e(n){return n};n.html=function e(n){return n};n.text=function e(n){return n};n.link=function e(n,t,a){return""+a};n.image=function e(n,t,a){return""+a};n.br=function e(){return""};return e}();var le=function(){function e(){this.seen={}}var n=e.prototype;n.serialize=function e(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")};n.getNextSafeSlug=function e(n,t){var a=n;var r=0;if(this.seen.hasOwnProperty(a)){r=this.seen[n];do{r++;a=n+"-"+r}while(this.seen.hasOwnProperty(a))}if(!t){this.seen[n]=r;this.seen[a]=0}return a};n.slug=function e(n,t){if(t===void 0){t={}}var e=this.serialize(n);return this.getNextSafeSlug(e,t.dryrun)};return e}();var de=se;var ue=oe;var ce=le;var me=i.exports.defaults;var pe=N.unescape;var ge=function(){function e(e){this.options=e||me;this.options.renderer=this.options.renderer||new de;this.renderer=this.options.renderer;this.renderer.options=this.options;this.textRenderer=new ue;this.slugger=new ce}e.parse=function n(t,a){var r=new e(a);return r.parse(t)};e.parseInline=function n(t,a){var r=new e(a);return r.parseInline(t)};var n=e.prototype;n.parse=function e(n,t){if(t===void 0){t=true}var a="",r,i,s,o,l,d,u,c,m,p,g,f,h,v,b,y,w,_,x;var T=n.length;for(r=0;r<T;r++){p=n[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]){x=this.options.extensions.renderers[p.type].call({parser:this},p);if(x!==false||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)){a+=x||"";continue}}switch(p.type){case"space":{continue}case"hr":{a+=this.renderer.hr();continue}case"heading":{a+=this.renderer.heading(this.parseInline(p.tokens),p.depth,pe(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue}case"code":{a+=this.renderer.code(p.text,p.lang,p.escaped);continue}case"table":{c="";u="";o=p.header.length;for(i=0;i<o;i++){u+=this.renderer.tablecell(this.parseInline(p.header[i].tokens),{header:true,align:p.align[i]})}c+=this.renderer.tablerow(u);m="";o=p.rows.length;for(i=0;i<o;i++){d=p.rows[i];u="";l=d.length;for(s=0;s<l;s++){u+=this.renderer.tablecell(this.parseInline(d[s].tokens),{header:false,align:p.align[s]})}m+=this.renderer.tablerow(u)}a+=this.renderer.table(c,m);continue}case"blockquote":{m=this.parse(p.tokens);a+=this.renderer.blockquote(m);continue}case"list":{g=p.ordered;f=p.start;h=p.loose;o=p.items.length;m="";for(i=0;i<o;i++){b=p.items[i];y=b.checked;w=b.task;v="";if(b.task){_=this.renderer.checkbox(y);if(h){if(b.tokens.length>0&&b.tokens[0].type==="paragraph"){b.tokens[0].text=_+" "+b.tokens[0].text;if(b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"){b.tokens[0].tokens[0].text=_+" "+b.tokens[0].tokens[0].text}}else{b.tokens.unshift({type:"text",text:_})}}else{v+=_}}v+=this.parse(b.tokens,h);m+=this.renderer.listitem(v,w,y)}a+=this.renderer.list(m,g,f);continue}case"html":{a+=this.renderer.html(p.text);continue}case"paragraph":{a+=this.renderer.paragraph(this.parseInline(p.tokens));continue}case"text":{m=p.tokens?this.parseInline(p.tokens):p.text;while(r+1<T&&n[r+1].type==="text"){p=n[++r];m+="\n"+(p.tokens?this.parseInline(p.tokens):p.text)}a+=t?this.renderer.paragraph(m):m;continue}default:{var S='Token with "'+p.type+'" type was not found.';if(this.options.silent){console.error(S);return}else{throw new Error(S)}}}}return a};n.parseInline=function e(n,t){t=t||this.renderer;var a="",r,i,s;var o=n.length;for(r=0;r<o;r++){i=n[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==false||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){a+=s||"";continue}}switch(i.type){case"escape":{a+=t.text(i.text);break}case"html":{a+=t.html(i.text);break}case"link":{a+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break}case"image":{a+=t.image(i.href,i.title,i.text);break}case"strong":{a+=t.strong(this.parseInline(i.tokens,t));break}case"em":{a+=t.em(this.parseInline(i.tokens,t));break}case"codespan":{a+=t.codespan(i.text);break}case"br":{a+=t.br();break}case"del":{a+=t.del(this.parseInline(i.tokens,t));break}case"text":{a+=t.text(i.text);break}default:{var l='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(l);return}else{throw new Error(l)}}}}return a};return e}();var fe=te;var he=ge;var ve=V;var be=se;var ye=oe;var we=le;var _e=N.merge,xe=N.checkSanitizeDeprecation,Te=N.escape;var Se=i.exports.getDefaults,Ee=i.exports.changeDefaults,Ce=i.exports.defaults;function Re(e,n,t){if(typeof e==="undefined"||e===null){throw new Error("marked(): input parameter is undefined or null")}if(typeof e!=="string"){throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected")}if(typeof n==="function"){t=n;n=null}n=_e({},Re.defaults,n||{});xe(n);if(t){var a=n.highlight;var r;try{r=fe.lex(e,n)}catch(e){return t(e)}var i=function e(i){var s;if(!i){try{if(n.walkTokens){Re.walkTokens(r,n.walkTokens)}s=he.parse(r,n)}catch(e){i=e}}n.highlight=a;return i?t(i):t(null,s)};if(!a||a.length<3){return i()}delete n.highlight;if(!r.length)return i();var s=0;Re.walkTokens(r,(function(e){if(e.type==="code"){s++;setTimeout((function(){a(e.text,e.lang,(function(n,t){if(n){return i(n)}if(t!=null&&t!==e.text){e.text=t;e.escaped=true}s--;if(s===0){i()}}))}),0)}}));if(s===0){i()}return}try{var o=fe.lex(e,n);if(n.walkTokens){Re.walkTokens(o,n.walkTokens)}return he.parse(o,n)}catch(e){e.message+="\nPlease report this to https://github.com/markedjs/marked.";if(n.silent){return"<p>An error occurred:</p><pre>"+Te(e.message+"",true)+"</pre>"}throw e}}Re.options=Re.setOptions=function(e){_e(Re.defaults,e);Ee(Re.defaults);return Re};Re.getDefaults=Se;Re.defaults=Ce;Re.use=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++){n[t]=arguments[t]}var a=_e.apply(void 0,[{}].concat(n));var r=Re.defaults.extensions||{renderers:{},childTokens:{}};var i;n.forEach((function(e){if(e.extensions){i=true;e.extensions.forEach((function(e){if(!e.name){throw new Error("extension name required")}if(e.renderer){var n=r.renderers?r.renderers[e.name]:null;if(n){r.renderers[e.name]=function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++){a[r]=arguments[r]}var i=e.renderer.apply(this,a);if(i===false){i=n.apply(this,a)}return i}}else{r.renderers[e.name]=e.renderer}}if(e.tokenizer){if(!e.level||e.level!=="block"&&e.level!=="inline"){throw new Error("extension level must be 'block' or 'inline'")}if(r[e.level]){r[e.level].unshift(e.tokenizer)}else{r[e.level]=[e.tokenizer]}if(e.start){if(e.level==="block"){if(r.startBlock){r.startBlock.push(e.start)}else{r.startBlock=[e.start]}}else if(e.level==="inline"){if(r.startInline){r.startInline.push(e.start)}else{r.startInline=[e.start]}}}}if(e.childTokens){r.childTokens[e.name]=e.childTokens}}))}if(e.renderer){(function(){var n=Re.defaults.renderer||new be;var t=function t(a){var r=n[a];n[a]=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++){i[s]=arguments[s]}var o=e.renderer[a].apply(n,i);if(o===false){o=r.apply(n,i)}return o}};for(var r in e.renderer){t(r)}a.renderer=n})()}if(e.tokenizer){(function(){var n=Re.defaults.tokenizer||new ve;var t=function t(a){var r=n[a];n[a]=function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++){i[s]=arguments[s]}var o=e.tokenizer[a].apply(n,i);if(o===false){o=r.apply(n,i)}return o}};for(var r in e.tokenizer){t(r)}a.tokenizer=n})()}if(e.walkTokens){var n=Re.defaults.walkTokens;a.walkTokens=function(t){e.walkTokens.call(this,t);if(n){n.call(this,t)}}}if(i){a.extensions=r}Re.setOptions(a)}))};Re.walkTokens=function(e,n){var t=function e(){var t=i.value;n.call(Re,t);switch(t.type){case"table":{for(var a=r(t.header),s;!(s=a()).done;){var o=s.value;Re.walkTokens(o.tokens,n)}for(var l=r(t.rows),d;!(d=l()).done;){var u=d.value;for(var c=r(u),m;!(m=c()).done;){var p=m.value;Re.walkTokens(p.tokens,n)}}break}case"list":{Re.walkTokens(t.items,n);break}default:{if(Re.defaults.extensions&&Re.defaults.extensions.childTokens&&Re.defaults.extensions.childTokens[t.type]){Re.defaults.extensions.childTokens[t.type].forEach((function(e){Re.walkTokens(t[e],n)}))}else if(t.tokens){Re.walkTokens(t.tokens,n)}}}};for(var a=r(e),i;!(i=a()).done;){t()}};Re.parseInline=function(e,n){if(typeof e==="undefined"||e===null){throw new Error("marked.parseInline(): input parameter is undefined or null")}if(typeof e!=="string"){throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected")}n=_e({},Re.defaults,n||{});xe(n);try{var t=fe.lexInline(e,n);if(n.walkTokens){Re.walkTokens(t,n.walkTokens)}return he.parseInline(t,n)}catch(e){e.message+="\nPlease report this to https://github.com/markedjs/marked.";if(n.silent){return"<p>An error occurred:</p><pre>"+Te(e.message+"",true)+"</pre>"}throw e}};Re.Parser=he;Re.parser=he.parse;Re.Renderer=be;Re.TextRenderer=ye;Re.Lexer=fe;Re.lexer=fe.lex;Re.Tokenizer=ve;Re.Slugger=we;Re.parse=Re;var Ie=Re;return Ie}))}));function rc(e){var t=e.states,a=e.callbacks,r=e.readme;return[n("textarea",{style:{width:"100%",height:"300px"},onChange:function(e){return a.setEditedTemplate(e.target.value)}},t.editedTemplate),n("button",{onClick:function(){return a.setPreviewTemplate(t.editedTemplate)}},"Update Preview"),r?n("details",null,n("summary",null,"Props readme"),n("div",{innerHTML:ac(r)})):"",n("div",{innerHTML:t.previewTemplate})]}var ic={title:"Templates / Microsite"};function sc(e){var n=s(e),t=n[0],a=n[1];var r=s(e),i=r[0],o=r[1];return{states:{previewTemplate:i,editedTemplate:t},callbacks:{setEditedTemplate:a,setPreviewTemplate:o}}}var oc=Nu((function(){var e=sc(Hu),t=e.states,a=e.callbacks;return n(tc,{states:t,callbacks:a,template:Ju})}));var lc=Nu((function(){var e=sc(Wu),t=e.states,a=e.callbacks;return n(tc,{states:t,callbacks:a,template:ju})}));var dc=Nu((function(){var e=sc(zu),t=e.states,a=e.callbacks;return n(tc,{states:t,callbacks:a,template:Yu,leadSubmit:true})}));var uc=Nu((function(){var e=sc(Qu),t=e.states,a=e.callbacks;return n(tc,{states:t,callbacks:a,template:Qu})}));var cc=Nu((function(){var e=sc(Vu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var mc=Nu((function(){var e=sc(Mu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var pc=Nu((function(){var e=sc(Ku),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var gc=Nu((function(){var e=sc(Lu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var fc=Nu((function(){var e=sc(Gu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var hc=Nu((function(){var e=sc(Fu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var vc=Nu((function(){var e=sc(Ou),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var bc=Nu((function(){var e=sc(Xu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var yc=Nu((function(){var e=sc(Uu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var wc=Nu((function(){var e=sc(Bu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var _c=Nu((function(){return n("sqb-widget",{"widget-type":"p/Vacay-referral/w/referrerWidget",demoData:{data:{html:Lu}}})}));var xc=Nu((function(){var e=sc($u),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var Tc=Nu((function(){var e=sc(ec),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var Sc=Nu((function(){var e=sc(Zu),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var Ec=Object.freeze({__proto__:null,default:ic,DefaultMicrosite:oc,MultiProgramMicrosite:lc,LeadSubmitMicrosite:dc,TaxAndCash:uc,Login:cc,ForgotPassword:mc,Register:pc,Dashboard:gc,LeadSubmitIframe:fc,Activity:hc,EditProfile:vc,ResetPassword:bc,EmailVerification:yc,EmailVerified:wc,Widget:_c,ResetPasswordEmail:xc,VerifyEmail:Tc,taxPayoutReminderEmail:Sc});var Cc={title:"Powered By"};var Rc=function(){return n(f,null)};var Ic=function(){return n(f,{color:"salmon"})};var Dc=function(){return n(f,{width:300,height:50})};var Ac=Object.freeze({__proto__:null,default:Cc,Default:Rc,CustomColor:Ic,CustomWidthAndHeight:Dc});var kc='<sqm-brand brand-color="#4225c4" brand-font="Nunito Sans">\n <sqm-portal-container\n direction="column"\n padding="small"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n background-color="#ffffff"\n >\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n >\n <sqm-hero-image\n image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png"\n header="MyCompany Rewards"\n description="Refer a friend and earn up to $1200 in rewards"\n layout="columns"\n image-pos="right"\n background-color="#F9F9F9"\n >\n </sqm-hero-image>\n </sqm-portal-container>\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n max-width="770px"\n center\n display="grid"\n >\n <sqm-stat-container space="xxx-large" display="flex">\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n >\n <p>Referrals</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/integrationRewardsCountFiltered/AVAILABLE/global"\n >\n <p>Giftcards</p>\n </sqm-big-stat>\n </sqm-stat-container>\n <sqm-portal-container\n gap="large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n text-align="center"\n label-margin="xxx-small"\n padding="none"\n >\n <h3 slot="label">Get rewarded when your friend uses our product</h3>\n </sqm-titled-section>\n <sqm-referral-card vertical-alignment="start">\n <sqm-portal-container\n gap="large"\n slot="left"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>\n They’ll get a $50 credit towards a new account and you’ll get:\n </p>\n <sqm-timeline icon="circle">\n <sqm-timeline-entry\n reward="$50"\n unit="visa giftcard"\n desc="Your friend purchases a Business plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$200"\n unit="visa giftcard"\n desc="Our sales team qualifies your friend as a good fit for our Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$1000"\n unit="visa giftcard"\n desc="Your friend purchases an Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-portal-container\n gap="large"\n slot="right"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>>Choose how you want to share</p>\n <p><sub>Your unique referral link:</sub></p>\n <sqm-share-link\n tooltip-text="Copied to Clipboard"\n tooltip-lifespan="1000"\n >\n </sqm-share-link>\n <sqm-portal-container\n gap="x-small"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-share-button\n medium="email"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium="linkedin"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium="twitter"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Post about us on X\n </sqm-share-button>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-referral-card>\n </sqm-portal-container>\n <sqm-portal-container\n gap="large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n padding="none"\n text-align="center"\n label-margin="xx-small"\n >\n <h3 slot="label">Referral History</h3>\n </sqm-titled-section>\n <sqm-referral-table\n per-page="4"\n hidden-columns="2"\n more-label="Next"\n prev-label="Prev"\n sm-breakpoint="599"\n md-breakpoint="799"\n >\n <sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-received-text="Reward received on"\n status-text="{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} }" \n status-long-text="{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} }"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n slot="empty"\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n ></sqm-empty>\n </sqm-referral-table>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email="support@example.com"\n terms-link="https:\\/\\/example.com"\n faq-link="https:\\/\\/example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n padding-bottom="none"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n';var qc='<sqm-brand brand-color="#4225c4" brand-font="Nunito Sans">\n <sqm-portal-container\n direction="column"\n padding="small"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n background-color="#ffffff"\n >\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n >\n <sqm-hero-image\n image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png"\n header="MyCompany Rewards"\n description="Refer friends and complete tasks to earn rewards"\n layout="columns"\n image-pos="right"\n background-color="#F9F9F9"\n image-mobile-pos="top"\n image-percentage="50"\n padding-image="none"\n padding-text="xxxx-large"\n >\n </sqm-hero-image>\n </sqm-portal-container>\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n max-width="770px"\n center\n display="grid"\n >\n <sqm-stat-container space="xxx-large" display="flex">\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n >\n <p>Referrals</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/integrationRewardsCountFiltered/AVAILABLE/global"\n >\n <p>Giftcards Earned</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/POINT/value/global"\n >\n <p>Points Balance</p>\n </sqm-big-stat>\n </sqm-stat-container>\n <sqm-portal-container\n gap="xx-large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n text-align="center"\n label-margin="xxx-small"\n padding="none"\n >\n <h3 slot="label">Share $50 with friends</h3>\n <p slot="content">\n They’ll get a $50 credit towards a new account and you’ll get up to\n $1200\n </p>\n </sqm-titled-section>\n <sqm-referral-card vertical-alignment="start">\n <sqm-portal-container\n gap="large"\n slot="left"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>\n They’ll get a $50 credit towards a new account and you’ll get:\n </p>\n <sqm-timeline icon="circle">\n <sqm-timeline-entry\n reward="$50"\n unit="visa giftcard"\n desc="Your friend purchases a Business plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$200"\n unit="visa giftcard"\n desc="Our sales team qualifies your friend as a good fit for our Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$1000"\n unit="visa giftcard"\n desc="Your friend purchases an Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-portal-container\n gap="large"\n slot="right"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>Choose how you want to share:</p>\n <p><sub>Your unique referral link:</sub></p>\n <sqm-share-link\n tooltip-text="Copied to Clipboard"\n tooltip-lifespan="1000"\n >\n </sqm-share-link>\n <sqm-portal-container\n gap="x-small"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-share-button\n medium="email"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium="linkedin"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium="twitter"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Post about us on X\n </sqm-share-button>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-referral-card>\n <sqm-portal-container\n gap="xx-large"\n direction="column"\n display="grid"\n max-width="100%"\n min-width=""\n padding="none"\n >\n <sqm-titled-section text-align="center" label-margin="xxx-small">\n <h3 slot="label">Earn more rewards</h3>\n <p slot="content">\n Get points while using our product. Use those points to redeem\n rewards like one free month of Enterprise or two plane tickets to\n anywhere in North America\n </p>\n </sqm-titled-section>\n <sqm-card-feed gap="24" width="347">\n <sqm-task-card\n reward-amount="20"\n goal="1"\n card-title="Complete a Survey"\n description="Fill out our NPS survey and get 20 points for giving us honest feedback."\n button-text="Take survey"\n reward-unit="Points"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n finite="0"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount="250"\n goal="500"\n show-progress-bar\n card-title="Spend $500"\n description="Earn 250 points when you spend $500 or more."\n button-text="See plans"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n progress-bar-unit="$"\n finite="0"\n reward-unit="Points"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n goal="1"\n reward-amount="50"\n card-title="Follow Us on X"\n description="Earn 50 points when you Follow Us on X!"\n button-text="Follow"\n button-link="https://twitter.com/"\n open-new-tab="true"\n event-key="socialFollow"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n finite="0"\n reward-unit="Points"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount="1"\n reward-unit="Free Month"\n goal="1"\n card-title="Upgrade Your Plan"\n description="Receive one free month for being a committed customer when you upgrade your plan."\n button-text="Upgrade"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n open-new-tab="false"\n finite="0"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n </sqm-card-feed>\n </sqm-portal-container>\n <sqm-tabs>\n <sqm-tab header="Referral history">\n <sqm-referral-table\n per-page="4"\n hidden-columns="2"\n more-label="Next"\n prev-label="Prev"\n sm-breakpoint="599"\n md-breakpoint="799"\n >\n <sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-received-text="Reward received on"\n status-text="{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} }" \n status-long-text="{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} }"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n slot="empty"\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n >\n </sqm-empty>\n </sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table\n per-page="4"\n program-id=""\n hidden-columns="0"\n more-label="Next"\n prev-label="Prev"\n sm-breakpoint="599"\n md-breakpoint="799"\n >\n <sqm-rewards-table-reward-column\n available-text="{availableAmount} remaining"\n column-title="Reward"\n copy-text="Copied!"\n redeemed-text="{redeemedAmount} redeemed"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user="Your Friend"\n column-title="Source"\n deleted-user="Deleted User"\n referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"\n reward-exchange-text="Reward Exchange"\n reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title="Status"\n expiry-text="Expires on "\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title="Date received"\n date-shown="dateGiven"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n slot="empty"\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"\n empty-state-header="View your rewards"\n empty-state-text="Refer friends and complete tasks to view the details of your rewards"\n >\n </sqm-empty>\n </sqm-rewards-table>\n </sqm-tab>\n </sqm-tabs>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email="support@example.com"\n terms-link="https:\\/\\/example.com"\n faq-link="https:\\/\\/example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n padding-bottom="none"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n';var Pc='<sqm-brand brand-color="#4225c4" brand-font="Nunito Sans">\n <sqm-portal-container\n direction="column"\n padding="small"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n background-color="#ffffff"\n >\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n >\n <sqm-hero-image\n image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png"\n header="MyCompany Rewards"\n description="Refer a friend and earn up to $1200 in rewards"\n layout="columns"\n image-pos="right"\n background-color="#F9F9F9"\n >\n </sqm-hero-image>\n </sqm-portal-container>\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n max-width="770px"\n center\n display="grid"\n >\n <sqm-stat-container space="xxx-large" display="flex">\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n >\n <p>Referrals</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/integrationRewardsCountFiltered/AVAILABLE/global"\n >\n <p>Giftcards</p>\n </sqm-big-stat>\n </sqm-stat-container>\n <sqm-portal-container\n gap="large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n text-align="center"\n label-margin="xxx-small"\n padding="none"\n >\n <h3 slot="label">Get rewarded when your friend uses our product</h3>\n </sqm-titled-section>\n <sqm-referral-card vertical-alignment="start">\n <sqm-portal-container\n gap="large"\n slot="left"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>\n They’ll get a $50 credit towards a new account and you’ll get:\n </p>\n <sqm-timeline icon="circle">\n <sqm-timeline-entry\n reward="$50"\n unit="visa giftcard"\n desc="Your friend purchases a Business plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$200"\n unit="visa giftcard"\n desc="Our sales team qualifies your friend as a good fit for our Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$1000"\n unit="visa giftcard"\n desc="Your friend purchases an Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-referral-codes slot="right">\n <sqm-pagination slot="pagination"></sqm-pagination>\n <sqm-referral-code\n slot="shareCodes"\n show-notification-text="true"\n ></sqm-referral-code>\n <sqm-portal-container gap="small" slot="shareButtons">\n <sqm-share-button medium="email"\n >Share via email</sqm-share-button\n >\n <sqm-share-button medium="fbmessenger"\n >Share on Facebook</sqm-share-button\n >\n <sqm-share-button medium="whatsapp"\n >Share on WhatsApp</sqm-share-button\n >\n </sqm-portal-container>\n </sqm-referral-codes>\n </sqm-referral-card>\n </sqm-portal-container>\n <sqm-portal-container\n gap="large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n padding="none"\n text-align="center"\n label-margin="xx-small"\n >\n <h3 slot="label">Referral History</h3>\n </sqm-titled-section>\n <sqm-referral-table\n per-page="4"\n hidden-columns="2"\n more-label="Next"\n prev-label="Prev"\n sm-breakpoint="599"\n md-breakpoint="799"\n >\n <sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-received-text="Reward received on"\n status-text="{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} }" \n status-long-text="{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} }"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n slot="empty"\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n ></sqm-empty>\n </sqm-referral-table>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email="support@example.com"\n terms-link="https:\\/\\/example.com"\n faq-link="https:\\/\\/example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n padding-bottom="none"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n';var Nc='<sqm-brand brand-color="#4225c4" brand-font="Nunito Sans">\n <sqm-portal-container\n direction="column"\n padding="small"\n gap="xxxx-large"\n display="grid"\n max-width="100%"\n background-color="#ffffff"\n >\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n >\n <sqm-hero-image\n image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png"\n header="MyCompany Rewards"\n description="Complete tasks to earn rewards"\n layout="overlay"\n padding-image="xxxx-large"\n padding-text="xxx-large"\n image-pos="center"\n overlay-color="#5e5669"\n overlay-opacity="0.9"\n >\n </sqm-hero-image>\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n max-width="770px"\n center\n display="grid"\n >\n <sqm-program-explainer header="How it works">\n <sqm-program-explainer-step\n description="Complete tasks like uploading your first video or sharing videos with friends"\n header="Earn points for using our product"\n icon="cash-stack"\n text-color="#000000"\n >\n </sqm-program-explainer-step>\n <sqm-program-explainer-step\n description="Redeem rewards like one free month of Enterprise or two plane tickets to anywhere in North America"\n header="Redeem rewards with your points"\n icon="people"\n text-color="#000000"\n >\n </sqm-program-explainer-step>\n </sqm-program-explainer>\n <sqm-portal-container\n center\n direction="row"\n display="flex"\n justify-content="space-between"\n gap="xxx-large"\n max-width="100%"\n padding="none"\n >\n <sqm-stat-container space="xxx-large" display="flex">\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardsRedeemed/CREDIT/POINTS"\n >\n <p>Points Redeemed</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/POINT/value/global"\n >\n <p>Points Balance</p>\n </sqm-big-stat>\n </sqm-stat-container>\n </sqm-portal-container>\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xx-large"\n display="grid"\n max-width="100%"\n >\n <sqm-titled-section\n label-margin="small"\n padding="none"\n text-align="center"\n >\n <h3 slot="label">Earn points</h3>\n </sqm-titled-section>\n <sqm-card-feed gap="24" width="347">\n <sqm-task-card\n reward-amount="20"\n goal="1"\n card-title="Complete a Survey"\n description="Fill out our NPS survey and get 20 points for giving us honest feedback."\n button-text="Take survey"\n reward-unit="Points"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n finite="0"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount="250"\n goal="500"\n show-progress-bar\n card-title="Spend $500"\n description="Earn 250 points when you spend $500 or more."\n button-text="See plans"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n progress-bar-unit="$"\n finite="0"\n reward-unit="Points"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n goal="1"\n reward-amount="50"\n card-title="Follow Us on X"\n description="Earn 50 points when you Follow Us on X!"\n button-text="Follow"\n button-link="https://twitter.com/"\n open-new-tab="true"\n event-key="socialFollow"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n finite="0"\n reward-unit="Points"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount="1"\n reward-unit="Free Month"\n goal="1"\n card-title="Upgrade Your Plan"\n description="Receive one free month for being a committed customer when you upgrade your plan."\n button-text="Upgrade"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n open-new-tab="false"\n finite="0"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n </sqm-card-feed>\n <sqm-portal-container\n gap="large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n padding="none"\n text-align="center"\n label-margin="xx-small"\n >\n <h3 slot="label">Reward History</h3>\n </sqm-titled-section>\n <sqm-rewards-table\n per-page="4"\n hidden-columns="0"\n more-label="Next"\n prev-label="Prev"\n sm-breakpoint="599"\n md-breakpoint="799"\n >\n <sqm-rewards-table-reward-column\n available-text="{availableAmount} remaining"\n column-title="Reward"\n copy-text="Copied!"\n redeemed-text="{redeemedAmount} redeemed"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user="Your Friend"\n column-title="Source"\n deleted-user="Deleted User"\n referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"\n reward-exchange-text="Reward Exchange"\n reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title="Status"\n expiry-text="Expires on "\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title="Date received"\n date-shown="dateGiven"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n slot="empty"\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"\n empty-state-header="View your rewards"\n empty-state-text="Refer friends and complete tasks to view the details of your rewards"\n >\n </sqm-empty>\n </sqm-rewards-table>\n </sqm-portal-container>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email="support@example.com"\n terms-link="https:\\/\\/example.com"\n faq-link="https:\\/\\/example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n padding-bottom="none"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n';var Fc='<sqm-hero\n background="https://res.cloudinary.com/saasquatch/image/upload/v1683589933/Portal%20Assets/Screen-Shot-2022-01-06-at-3.23.58-AM.png"\n columns="2"\n padding-size="medium"\n wrap-direction="wrap"\n secondary-background="#FFFFFF"\n min-height="200"\n ><sqm-referral-card\n vertical-alignment="start"\n slot="secondary-column"\n padding-bottom="small"\n padding-left="x-large"\n padding-right="x-large"\n padding-top="small"\n >\n <sqm-titled-section\n text-align="center"\n label-margin="none"\n padding="none"\n slot="header"\n ><h1 slot="label">Invite your friends to unlock rewards!</h1>\n <p slot="content">\n They&#x2019;ll get a &#x24;50 credit towards a new account and\n you&#x2019;ll get a &#x24;50 in credit for each friend you refer.\n </p></sqm-titled-section\n >\n <sqm-portal-container\n gap="small"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n slot="left"\n >\n <p style="margin: 0">Choose how you want to share:</p>\n <sqm-share-link\n tooltip-text="Copied to Clipboard"\n tooltip-lifespan="1000"\n >\n </sqm-share-link>\n <sqm-share-button\n medium="email"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium="linkedin"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium="twitter"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Post about us on X\n </sqm-share-button> </sqm-portal-container\n ><sqm-portal-container\n display="flex"\n slot="footer"\n gap="small"\n justify-content="center"\n >\n <sqm-logout-current-user\n user-identification-text="{email}"\n switch-user-link="#"\n switch-user-text="not you?"\n email-error-text="Error fetching email"\n ></sqm-logout-current-user>\n <sqm-portal-footer\n support-email="support@example.com"\n show-powered-by="true"\n padding-bottom="x-small"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n hide-support-text\n terms-text="Terms And Conditions"\n terms-link="https://example.com"\n ></sqm-portal-footer></sqm-portal-container\n ></sqm-referral-card>\n</sqm-hero>\n';var Lc='<sqm-hero\n background="https://res.cloudinary.com/saasquatch/image/upload/v1683589933/Portal%20Assets/Screen-Shot-2022-01-06-at-3.23.58-AM.png"\n columns="2"\n padding-size="medium"\n wrap-direction="wrap"\n secondary-background="#FFFFFF"\n>\n <sqm-referral-card\n vertical-alignment="start"\n padding-bottom="small"\n padding-left="x-large"\n padding-right="x-large"\n padding-top="small"\n slot="secondary-column"\n >\n <sqm-portal-container\n gap="large"\n direction="column"\n display="flex"\n justify-content="center"\n max-width="100%"\n padding="none"\n slot="header"\n >\n <sqm-titled-section\n text-align="center"\n label-margin="xxx-small"\n padding="none"\n >\n <h1 slot="label">You got &#x24;50 off thanks to a friend!</h1>\n <p slot="content">\n <span> Use this reward to get &#x24;50 off your next purchase. </span>\n </p>\n </sqm-titled-section>\n\n <sqm-coupon-code copy-button-style="button-outside"></sqm-coupon-code>\n </sqm-portal-container>\n\n <sqm-portal-footer\n slot="footer"\n show-powered-by="true"\n padding-bottom="none"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n hide-support-text\n terms-text="Terms And Conditions"\n terms-link="https://example.com"\n ></sqm-portal-footer>\n </sqm-referral-card>\n</sqm-hero>\n';var Oc='<sqm-hero\n background="https://res.cloudinary.com/saasquatch/image/upload/v1683589933/Portal%20Assets/Screen-Shot-2022-01-06-at-3.23.58-AM.png"\n columns="2"\n padding-size="medium"\n wrap-direction="wrap"\n secondary-background="#FFFFFF"\n ><sqm-instant-access-registration\n padding-bottom="small"\n padding-left="x-large"\n padding-right="x-large"\n padding-top="small"\n slot="secondary-column"\n ><sqm-titled-section\n text-align="center"\n label-margin="small"\n padding="none"\n slot="top"\n ><div slot="label"><h1>Invite your friends to unlock rewards!</h1></div>\n\n <p slot="content">\n They&#x2019;ll get a &#x24;50 credit towards a new account and\n you&#x2019;ll get a &#x24;50 in credit for each friend you refer.\n </p> </sqm-titled-section\n ><sqm-portal-footer\n slot="bottom"\n support-email="support@example.com"\n show-powered-by="true"\n padding-bottom="x-small"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n hide-support-text\n terms-text="Terms And Conditions"\n terms-link="https://example.com"\n ></sqm-portal-footer\n ></sqm-instant-access-registration>\n</sqm-hero>\n';var Uc='<sqm-hero\n background="https://res.cloudinary.com/saasquatch/image/upload/v1683589933/Portal%20Assets/Screen-Shot-2022-01-06-at-3.23.58-AM.png"\n columns="2"\n padding-size="medium"\n wrap-direction="wrap"\n secondary-background="#FFFFFF"\n ><sqm-referred-registration\n slot="secondary-column"\n register-label="Get $50 off"\n padding-bottom="small"\n padding-left="x-large"\n padding-right="x-large"\n padding-top="small"\n ><sqm-titled-section\n text-align="center"\n label-margin="small"\n padding="none"\n slot="top"\n ><h1 slot="label">You got &#x24;50 off thanks to a friend!</h1>\n <p slot="content">\n <span>Use this reward to get &#x24;50 off your next purchase.</span>\n </p>\n </sqm-titled-section>\n <div slot="bottom">\n <p style="text-align: center">*Valid on purchases of &#x24;75 or more</p>\n <sqm-portal-footer\n slot="footer"\n show-powered-by="true"\n padding-bottom="none"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n hide-support-text\n terms-text="Terms And Conditions"\n terms-link="https://example.com"\n ></sqm-portal-footer>\n </div> </sqm-referred-registration\n></sqm-hero>\n';var Bc='<sqm-brand brand-color="#4225c4" brand-font="Nunito Sans">\n <sqm-portal-container\n direction="column"\n padding="small"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n background-color="#ffffff"\n >\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n >\n <sqm-hero-image\n image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png"\n header="MyCompany Rewards"\n description="Refer a friend and earn up to $1200 in rewards"\n layout="columns"\n image-pos="right"\n background-color="#F9F9F9"\n >\n </sqm-hero-image>\n </sqm-portal-container>\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n max-width="770px"\n center\n display="grid"\n >\n <sqm-stat-container space="xxx-large" display="flex">\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n >\n <p>Referrals</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/integrationRewardsCountFiltered/AVAILABLE/global"\n >\n <p>Giftcards</p>\n </sqm-big-stat>\n </sqm-stat-container>\n <sqp-account-details\n schedule-header-text="Schedule"\n integration-alert-text="Looks like this feature is turned off at the moment. Come back later to see if it’s enabled. "\n integration-alert-header="PayPal payouts are currently disabled"\n details-header-text="Payout details"\n pay-pal-account-header-text="PayPal account"\n connect-pay-pal-description-text="Connect your PayPal account to automatically receive payments/cash rewards."\n connect-pay-pal-account-button-text="Connect account"\n w-9-tax-label="Awaiting W-9 tax form"\n upcoming-payment-label="Upcoming"\n recent-payment-label="Recent payment"\n other-currencies-label="other currencies"\n next-payout-label="Next payout"\n next-payment-label="Next payment"\n header-text="PayPal account"\n edit-text="Edit"\n account-label="Account"\n success-message="Success!"\n submit-pay-pal-account-button-text="Connect account"\n pay-pal-email-label-help-text="Enter the email used for your PayPal account."\n pay-pal-email-label="PayPal email"\n modal-connect-pay-pal-account-header="Connect PayPal account"\n disconnect-account-header-text="Disconnect account"\n disconnect-account-description-text="You will not be able to receive payments if you disconnect your PayPal account."\n ></sqp-account-details>\n <sqm-portal-container\n gap="large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n text-align="center"\n label-margin="xxx-small"\n padding="none"\n >\n <h3 slot="label">Get rewarded when your friend uses our product</h3>\n </sqm-titled-section>\n <sqm-referral-card vertical-alignment="start">\n <sqm-portal-container\n gap="large"\n slot="left"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>\n They’ll get a $50 credit towards a new account and you’ll get:\n </p>\n <sqm-timeline icon="circle">\n <sqm-timeline-entry\n reward="$50"\n unit="visa giftcard"\n desc="Your friend purchases a Business plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$200"\n unit="visa giftcard"\n desc="Our sales team qualifies your friend as a good fit for our Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$1000"\n unit="visa giftcard"\n desc="Your friend purchases an Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-portal-container\n gap="large"\n slot="right"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>>Choose how you want to share</p>\n <p><sub>Your unique referral link:</sub></p>\n <sqm-share-link\n tooltip-text="Copied to Clipboard"\n tooltip-lifespan="1000"\n >\n </sqm-share-link>\n <sqm-portal-container\n gap="x-small"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-share-button\n medium="email"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium="linkedin"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium="twitter"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Post about us on X\n </sqm-share-button>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-referral-card>\n </sqm-portal-container>\n <sqm-portal-container\n gap="large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n padding="none"\n text-align="center"\n label-margin="xx-small"\n >\n <h3 slot="label">Referral History</h3>\n </sqm-titled-section>\n <sqm-referral-table\n per-page="4"\n hidden-columns="2"\n more-label="Next"\n prev-label="Prev"\n sm-breakpoint="599"\n md-breakpoint="799"\n >\n <sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqp-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-blocked-text="Payout blocked on {date}."\n reward-on-hold-text="Payout on hold and in review since {date}."\n reward-paid-out-text="Paid out on {date}."\n reward-payout-failed-text="This payout will be retried up to 3 times. If it still fails it will be retried in the next payout cycle. Last attempted on {date}."\n reward-payout-in-progress-text="Payout processing started on {date}."\n reward-received-text="Reward received on"\n reward-refunded-text="Payout refunded on {date}."\n reward-returned-text="The email you provided does not link to an existing PayPal account. Payout expired on {date}."\n reward-reversed-text="Payout reversed on {date}."\n reward-unclaimed-text="The email you provided does not link to an existing PayPal account. Payout expires on {date}."\n status-text="{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} }" \n status-long-text="{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} }"\n ></sqp-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n slot="empty"\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n ></sqm-empty>\n </sqm-referral-table>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email="support@example.com"\n terms-link="https:\\/\\/example.com"\n faq-link="https:\\/\\/example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n padding-bottom="none"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n';var Mc='<sqm-brand brand-color="#4225c4" brand-font="Nunito Sans">\n <sqm-portal-container\n direction="column"\n padding="small"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n background-color="#ffffff"\n >\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n display="grid"\n max-width="100%"\n >\n <sqm-hero-image\n image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png"\n header="MyCompany Rewards"\n description="Refer friends and complete tasks to earn rewards"\n layout="columns"\n image-pos="right"\n background-color="#F9F9F9"\n image-mobile-pos="top"\n image-percentage="50"\n padding-image="none"\n padding-text="xxxx-large"\n >\n </sqm-hero-image>\n </sqm-portal-container>\n <sqm-portal-container\n direction="column"\n padding="none"\n gap="xxx-large"\n max-width="770px"\n center\n display="grid"\n >\n <sqm-stat-container space="xxx-large" display="flex">\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/referralsCount"\n >\n <p>Referrals</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/integrationRewardsCountFiltered/AVAILABLE/global"\n >\n <p>Giftcards Earned</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse="true"\n alignment="left"\n stat-type="/rewardBalance/CREDIT/POINT/value/global"\n >\n <p>Points Balance</p>\n </sqm-big-stat>\n </sqm-stat-container>\n <sqp-account-details\n schedule-header-text="Schedule"\n integration-alert-text="Looks like this feature is turned off at the moment. Come back later to see if it’s enabled. "\n integration-alert-header="PayPal payouts are currently disabled"\n details-header-text="Payout details"\n pay-pal-account-header-text="PayPal account"\n connect-pay-pal-description-text="Connect your PayPal account to automatically receive payments/cash rewards."\n connect-pay-pal-account-button-text="Connect account"\n w-9-tax-label="Awaiting W-9 tax form"\n upcoming-payment-label="Upcoming"\n recent-payment-label="Recent payment"\n other-currencies-label="other currencies"\n next-payout-label="Next payout"\n next-payment-label="Next payment"\n header-text="PayPal account"\n edit-text="Edit"\n account-label="Account"\n success-message="Success!"\n submit-pay-pal-account-button-text="Connect account"\n pay-pal-email-label-help-text="Enter the email used for your PayPal account."\n pay-pal-email-label="PayPal email"\n modal-connect-pay-pal-account-header="Connect PayPal account"\n disconnect-account-header-text="Disconnect account"\n disconnect-account-description-text="You will not be able to receive payments if you disconnect your PayPal account."\n ></sqp-account-details>\n <sqm-portal-container\n gap="xx-large"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-titled-section\n text-align="center"\n label-margin="xxx-small"\n padding="none"\n >\n <h3 slot="label">Share $50 with friends</h3>\n <p slot="content">\n They’ll get a $50 credit towards a new account and you’ll get up to\n $1200\n </p>\n </sqm-titled-section>\n <sqm-referral-card vertical-alignment="start">\n <sqm-portal-container\n gap="large"\n slot="left"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>\n They’ll get a $50 credit towards a new account and you’ll get:\n </p>\n <sqm-timeline icon="circle">\n <sqm-timeline-entry\n reward="$50"\n unit="visa giftcard"\n desc="Your friend purchases a Business plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$200"\n unit="visa giftcard"\n desc="Our sales team qualifies your friend as a good fit for our Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward="$1000"\n unit="visa giftcard"\n desc="Your friend purchases an Enterprise plan"\n icon="circle"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-portal-container\n gap="large"\n slot="right"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <p>Choose how you want to share:</p>\n <p><sub>Your unique referral link:</sub></p>\n <sqm-share-link\n tooltip-text="Copied to Clipboard"\n tooltip-lifespan="1000"\n >\n </sqm-share-link>\n <sqm-portal-container\n gap="x-small"\n direction="column"\n display="grid"\n max-width="100%"\n padding="none"\n >\n <sqm-share-button\n medium="email"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium="linkedin"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium="twitter"\n icon-slot="prefix"\n size="medium"\n type="default"\n >\n Post about us on X\n </sqm-share-button>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-referral-card>\n <sqm-portal-container\n gap="xx-large"\n direction="column"\n display="grid"\n max-width="100%"\n min-width=""\n padding="none"\n >\n <sqm-titled-section text-align="center" label-margin="xxx-small">\n <h3 slot="label">Earn more rewards</h3>\n <p slot="content">\n Get points while using our product. Use those points to redeem\n rewards like one free month of Enterprise or two plane tickets to\n anywhere in North America\n </p>\n </sqm-titled-section>\n <sqm-card-feed gap="24" width="347">\n <sqm-task-card\n reward-amount="20"\n goal="1"\n card-title="Complete a Survey"\n description="Fill out our NPS survey and get 20 points for giving us honest feedback."\n button-text="Take survey"\n reward-unit="Points"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n finite="0"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount="250"\n goal="500"\n show-progress-bar\n card-title="Spend $500"\n description="Earn 250 points when you spend $500 or more."\n button-text="See plans"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n progress-bar-unit="$"\n finite="0"\n reward-unit="Points"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n goal="1"\n reward-amount="50"\n card-title="Follow Us on X"\n description="Earn 50 points when you Follow Us on X!"\n button-text="Follow"\n button-link="https://twitter.com/"\n open-new-tab="true"\n event-key="socialFollow"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n finite="0"\n reward-unit="Points"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount="1"\n reward-unit="Free Month"\n goal="1"\n card-title="Upgrade Your Plan"\n description="Receive one free month for being a committed customer when you upgrade your plan."\n button-text="Upgrade"\n completed-text="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}"\n ended-message="Ended {endDate}"\n expiry-message="Ends {endDate}"\n open-new-tab="false"\n finite="0"\n starts-on-message="Starts {startDate}"\n >\n </sqm-task-card>\n </sqm-card-feed>\n </sqm-portal-container>\n <sqm-tabs>\n <sqm-tab header="Referral history">\n <sqm-referral-table\n per-page="4"\n hidden-columns="2"\n more-label="Next"\n prev-label="Prev"\n sm-breakpoint="599"\n md-breakpoint="799"\n >\n <sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqp-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-blocked-text="Payout blocked on {date}."\n reward-on-hold-text="Payout on hold and in review since {date}."\n reward-paid-out-text="Paid out on {date}."\n reward-payout-failed-text="This payout will be retried up to 3 times. If it still fails it will be retried in the next payout cycle. Last attempted on {date}."\n reward-payout-in-progress-text="Payout processing started on {date}."\n reward-received-text="Reward received on"\n reward-refunded-text="Payout refunded on {date}."\n reward-returned-text="The email you provided does not link to an existing PayPal account. Payout expired on {date}."\n reward-reversed-text="Payout reversed on {date}."\n reward-unclaimed-text="The email you provided does not link to an existing PayPal account. Payout expires on {date}."\n status-text="{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} }" \n status-long-text="{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} }"\n ></sqp-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n slot="empty"\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n >\n </sqm-empty>\n </sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table\n per-page="4"\n program-id=""\n hidden-columns="0"\n more-label="Next"\n prev-label="Prev"\n sm-breakpoint="599"\n md-breakpoint="799"\n >\n <sqm-rewards-table-reward-column\n available-text="{availableAmount} remaining"\n column-title="Reward"\n copy-text="Copied!"\n redeemed-text="{redeemedAmount} redeemed"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user="Your Friend"\n column-title="Source"\n deleted-user="Deleted User"\n referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"\n reward-exchange-text="Reward Exchange"\n reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"\n >\n </sqm-rewards-table-source-column>\n <sqp-status-column\n column-title="Status"\n expiry-text="Expires on "\n pending-scheduled="Until"\n pending-unhandled="Fulfillment error"\n pending-us-tax="W-9 required"\n reward-blocked-text="Payout blocked on"\n reward-on-hold-text="Payout on hold and in review since"\n reward-paid-out-text="Paid out on"\n reward-payout-failed-text="This payout will be retried up to 3 times. If it still fails it will be retried in the next payout cycle. Last attempted on"\n reward-payout-in-progress-text="Payout processing started on"\n reward-refunded-text="Payout refunded on"\n reward-returned-text="The email you provided does not link to an existing PayPal account. Payout expired on"\n reward-reversed-text="Payout reversed on"\n reward-unclaimed-text="The email you provided does not link to an existing PayPal account. Payout expires on"\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} EXPIRED {Expired} REDEEMED {Redeemed} PENDING {Pending} SUCCESS {Paid Out} FAILED {Failed} PAYPAL_PENDING {In progress} UNCLAIMED {Unclaimed} ONHOLD {In progress} REFUNDED {Refunded} RETURNED {Returned} REVERSED {Reversed} BLOCKED {Blocked} other {Not available} }"\n ></sqp-status-column>\n <sqm-rewards-table-date-column\n column-title="Date received"\n date-shown="dateGiven"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n slot="empty"\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"\n empty-state-header="View your rewards"\n empty-state-text="Refer friends and complete tasks to view the details of your rewards"\n >\n </sqm-empty>\n </sqm-rewards-table>\n </sqm-tab>\n </sqm-tabs>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email="support@example.com"\n terms-link="https://example.com"\n faq-link="https://example.com"\n terms-text="Terms And Conditions"\n faq-text="FAQ"\n show-powered-by="true"\n padding-bottom="none"\n padding-left="none"\n padding-right="none"\n padding-top="none"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n';var Gc={title:"Templates / Widgets"};function Vc(e){var n=s(e),t=n[0],a=n[1];var r=s(e),i=r[0],o=r[1];return{states:{previewTemplate:i,editedTemplate:t},callbacks:{setEditedTemplate:a,setPreviewTemplate:o}}}var Wc=Nu((function(){var e=Vc(kc),t=e.states,a=e.callbacks;return n(tc,{states:t,callbacks:a,template:kc})}));var jc=Nu((function(){var e=Vc(qc),t=e.states,a=e.callbacks;return n(tc,{states:t,callbacks:a,template:qc})}));var Hc=Nu((function(){var e=Vc(Nc),t=e.states,a=e.callbacks;return n(tc,{states:t,callbacks:a,template:Nc})}));var zc=Nu((function(){var e=Vc(Pc),t=e.states,a=e.callbacks;return n(tc,{states:t,callbacks:a,template:kc})}));var Yc=Nu((function(){var e=Vc(Fc),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var Jc=Nu((function(){var e=Vc(Mc),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var Kc=Nu((function(){var e=Vc(Bc),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var Xc=Nu((function(){var e=Vc(Lc),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var $c=Nu((function(){var e=Vc(Oc),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var Qc=Nu((function(){var e=Vc(Uc),t=e.states,a=e.callbacks;return n(rc,{states:t,callbacks:a})}));var Zc=Object.freeze({__proto__:null,default:Gc,ReferralWidget:Wc,MonoWidget:jc,Loyalty:Hc,PromoCodeReferralWidget:zc,InstantAccessReferrerShareWidget:Yc,PaypalMonoWidget:Jc,PaypalReferralWidget:Kc,InstantAccessFriendCouponWidget:Xc,InstantAccessReferrerRegistrationWidget:$c,InstantAccessFriendRegistrationWidget:Qc});var em={title:"Components/Microsite Base Registration"};var nm={states:{validationErrors:{}},callbacks:{handleEmailSubmit:function(){return console.log("Submit!")}},content:{pageLabel:"Register",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address",googleButton:n("sl-button",null,"Register with Google"),secondaryButton:n("span",null,"Already have an account?"," ",n("sl-button",{padding:"0",style:{width:"60px"},size:"large",type:"text"},"Sign in")," ")}};var tm=__assign(__assign({},nm),{states:{validationErrors:{error:"Something went wrong. Please try again."}}});var am=function(){return n(h,__assign({},nm))};var rm=function(){return n(h,__assign({},tm))};var im=Object.freeze({__proto__:null,default:em,Default:am,EmailError:rm});var sm='@author:sam\n@owner:sam\nFeature: Big Stat\n\n Big stat is a component for displaying a statistic as a large number with a label\n\n @minutia\n Scenario: Demo hook retrieves label using stat pattern\n Given isDemo() returns true\n And the component renders with props:\n | type |\n | /referralsCount |\n Then the label is: "REFERRALS - COUNT"\n And the value is: "12345"\n\n @minutia\n Scenario: Demo hook falls back to default label on invalid path\n Given isDemo() returns true\n And the component renders with props:\n | type |\n | a bad path |\n Then the label is: "Demo Label"\n And the value is: "12345"\n\n @motivating\n Scenario: Displays error on unrecognized path\n Given isDemo() returns false\n And the component renders with props:\n | type |\n | /(doesNotExistNopeNotHere) |\n Then the label is: "BAD PROP TYPE"\n And the value is: "!!!"\n\n @motivating\n Scenario Outline: Label displays correctly\n Given the type prop is set to <type>\n When the component renders\n Then the label is <label>\n Given isDemo() returns true\n When the component renders\n Then the label is <inferredLabel>\n Examples:\n | path | label | inferredLabel |\n | rewardsAssigned | Rewards Earned | Rewards Assigned |\n | rewardsRedeemed | Rewards Paid | Rewards Redeemed |\n | rewardsAvailable | Rewards Available | Rewards Available |\n | referralsCount | Referrals - Count | Referrals Count |\n | referralsMonth | Referrals - This Month | Referrals Month |\n | referralsWeek | Referrals - This Week | Referrals Week |\n | rewardsCount | Rewards - Count | Rewards Count |\n | rewardsMonth | Rewards - This Month | Rewards Month |\n | rewardsWeek | Rewards - This Week | Rewards Week |\n | rewardBalance | Balance - Credit Earned | Reward Balance |\n | customField | Custom Fields | Custom Fields |\n | programGoals | Program Goals | Program Goals |\n\n @motivating\n Scenario: Display user\'s credit\n Given isDemo() returns false\n And the user has earned 34 COFFEE from the program\n And the component renders with props:\n | type |\n | /rewardBalance/CREDIT/COFFEE/prettyValue |\n Then the label is: "Balance - Credit Earned"\n And the value is: "34 COFFEE"\n\n @minutia\n Scenario: Memoizes most recent query\n Given isDemo() returns false\n And the component\'s type prop is set to a variable named PATH\n And PATH is "/referralsWeek"\n Then the component shows a loading state before showing the result\n When the component reloads given some external reload\n Then the component doesn\'t show a loading state\n When PATH is set to "/rewardsWeek"\n Then the component shows a loading state before showing the result\n When PATH is set to "/referralsWeek"\n Then the component shows a loading state before showing the result\n\n @motivating\n Scenario: Stat has a loading state\n Given isDemo() returns false\n And the component\'s stat type prop is valid\n When the component renders\n Then The stat value displays "..."\n And when the stat query is completed\n And the stat value displays a value\n\n @motivating\n Scenario Outline: Program Goal stat requires metricType and goalId\n Given the statType prop is <statType>\n When the component renders\n Then the label is <label>\n And the stat value is <InvalidStatValue>\n Examples:\n | statType | label | InvalidStatValue |\n | /programGoals | BAD PROP TYPE | true |\n | /programGoals/count | BAD PROP TYPE | true |\n | /programGoals/conversionCount | BAD PROP TYPE | true |\n | /programGoals/My-Goal | BAD PROP TYPE | true |\n | /programGoals/count/My-Goal | Program Goals | false |\n | /programGoals/conversionCount/My-Goal | Program Goals | false |\n\n @motivating\n Scenario Outline: rewardCountFiltered supports many formats\n Given the statType begins with "/rewardCountFiltered"\n When the component renders with <statType>\n Then the stat <mayRender> a value\n Examples:\n | statType | mayRender |\n | /rewardsCountFiltered | renders |\n | /rewardsCountFiltered/COFFEE | doesn\'t render |\n | /rewardsCountFiltered/global | renders |\n | /rewardsCountFiltered/INTEGRATION | renders |\n | /rewardsCountFiltered/INTEGRATION/global | renders |\n | /rewardsCountFiltered/PCT_DISCOUNT | renders |\n | /rewardsCountFiltered/PCT_DISCOUNT/global | renders |\n | /rewardsCountFiltered/CREDIT | renders |\n | /rewardsCountFiltered/CREDIT/COFFEE | renders |\n | /rewardsCountFiltered/CREDIT/global | renders |\n | /rewardsCountFiltered/CREDIT/COFFEE/PENDING | renders |\n | /rewardsCountFiltered/CREDIT/COFFEE/AVAILABLE | renders |\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD | renders |\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/global | renders |\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/PENDING | renders |\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/PENDING/global | renders |\n\n @motivating\n Scenario Outline: Program Goals and Reward units with currencies must be encoded\n Given the statType is <statType>\n When the stat is queried\n Then the stat is filtered by <decodedFilter>\n And a value <mayBe> rendered\n Examples:\n | statType | decodedFilter | may |\n | /rewardBalance/CREDIT/COFFEE | COFFEE | is |\n | /rewardBalance/CREDIT/CENTS | CENTS | is |\n | /rewardBalance/CREDIT/COFFEE%2FUSD | COFFEE/USD | is |\n | /rewardBalance/CREDIT/COFFEE/USD | COFFEE | is |\n | /rewardBalance/CREDIT/CASH | CASH | is |\n | /rewardBalance/CREDIT/CASH/USD | CASH | is |\n | /rewardBalance/CREDIT/CASH%2FUSD | CASH/USD | is |\n | /programGoals/count/My-Goal | My-Goal | is |\n | /programGoals/count/My-Goal/referrals | | isn\'t |\n | /programGoals/count/My-Goal%2Freferrals | My-Goal/referrals | is |\n\n @motivating\n Scenario Outline: User custom fields can be queried\n Given the StatType is <statType>\n When the stat is queried\n Then the value matches that of the users <customField>\n Examples:\n | statType | customField |\n | /customFields/videosShared | videosShared |\n | /customFields/totalPurchaseCount | totalPurchaseCount |\n\n @motivating\n Scenario Outline: Some stats can use a global value instead of filtered by program\n Given the stat <statName>\n Then the global value <mayBe> available\n Examples:\n | statName | mayBe |\n | referralsCount | isn\'t |\n | referralsMonth | isn\'t |\n | referralsWeek | isn\'t |\n | rewardsCount | is |\n | rewardsCountFiltered | is |\n | integrationRewardsCountFiltered | is |\n | rewardsMonth | is |\n | rewardsWeek | is |\n | rewardsAssigned | is |\n | rewardsRedeemed | is |\n | rewardsRedeemedWeek | is |\n | rewardsRedeemedMonth | is |\n | rewardsPending | is |\n | rewardsAvailable | is |\n | rewardBalance | is |\n\n @motivating\n Scenario Outline: referralsCount stat can be filtered by Converted and Started\n Given statType prop is <statType>\n Then the stat returned has a <filter>\n Examples:\n | statType | filter |\n | /referralsCount | { programId_eq: programId } |\n | /referralsCount/converted | { programId_eq: programId, dateConverted_exists: true } |\n | /referralsCount/started | { programId_eq: programId, dateConverted_exists: false } |\n\n @motivating\n Scenario: Program context is used by default to source the programId used for queries\n Given a valid "statType"\n And its not a global stat\n And the stat is loaded in an environment for "program-a"\n And the "program-id" prop is not used\n When the stat is queried\n Then the query is filtered by "{ programId_eq: \'program-a\' }"\n And only results from "program-a" are returned\n\n @motivating\n Scenario Outline: ProgramId can be specified to overwrite the program context default\n Given a valid "statType"\n And its not a global stat\n And the "program-id" prop has <value>\n When the stat is queried\n Then the query has a <filter>\n And only results from <value> are returned\n Examples:\n | value | filter |\n | program-b | { programId_eq: "program-b" } |\n | program-c | { programId_eq: "program-c" } |\n\n\n @motivating\n Scenario: "/rewardsReedemedWeek" stat shows rewards that have been redeemed this week\n Given a user reeemed the following rewards\n | reward | dateRedeemed | programId |\n | $1.00 USD | 2023-08-18 | A |\n | $1.00 CAD | 2023-08-18 | A |\n | $1.00 AUD | 2023-08-18 | A |\n | $1.00 USD | 2023-08-10 | A |\n | $20.00 USD | 2023-08-18 | B |\n | $20.00 CAD | 2023-08-18 | B |\n | $20.00 AUD | 2023-08-18 | B |\n | $20.00 USD | 2023-08-01 | B |\n | $20.00 GBP | 2023-08-01 | B |\n | $20.00 GBP | 2023-08-20 | |\n And the current date is "2023-08-22"\n And the program of the stat is <programId>\n And the statType is <statType>\n Then the stat displays <statValue>\n | programId | statType | statValue |\n | A | /rewardsReedemedWeek/CREDIT/USD | USD1.00 |\n | A | /rewardsReedemedWeek/CREDIT/CAD | CAD1.00 |\n | A | /rewardsReedemedWeek/CREDIT/AUD | AUD1.00 |\n | B | /rewardsReedemedWeek/CREDIT/USD | USD20.00 |\n | B | /rewardsReedemedWeek/CREDIT/CAD | CAD20.00 |\n | B | /rewardsReedemedWeek/CREDIT/AUD | AUD20.00 |\n | N/A | /rewardsReedemedWeek/CREDIT/USD/global | USD21.00 |\n | N/A | /rewardsReedemedWeek/CREDIT/CAD/global | CAD21.00 |\n | N/A | /rewardsReedemedWeek/CREDIT/GBP/global | GBP20.00 |\n\n @motivating\n Scenario: "/rewardsReedemedMonth" stat shows rewards that have been redeemed this month\n Given a user reeemed the following rewards\n | reward | dateRedeemed | programId |\n | $1.00 USD | 2023-08-18 | A |\n | $1.00 CAD | 2023-08-18 | A |\n | $1.00 AUD | 2023-08-18 | A |\n | $1.00 USD | 2023-07-31 | A |\n | $20.00 USD | 2023-08-18 | B |\n | $20.00 CAD | 2023-08-18 | B |\n | $20.00 AUD | 2023-08-18 | B |\n | $20.00 USD | 2023-08-01 | B |\n | $20.00 GBP | 2023-08-01 | B |\n | $20.00 GBP | 2023-08-20 | |\n | $20.00 GBP | 2023-07-31 | |\n And the current date is "2023-08-22"\n And the program of the stat is <programId>\n And the statType is <statType>\n Then the stat displays <statValue>\n | programId | statType | statValue |\n | A | /rewardsReedemedMonth/CREDIT/USD | USD1.00 |\n | A | /rewardsReedemedMonth/CREDIT/CAD | CAD1.00 |\n | A | /rewardsReedemedMonth/CREDIT/AUD | AUD1.00 |\n | B | /rewardsReedemedMonth/CREDIT/USD | USD20.00 |\n | B | /rewardsReedemedMonth/CREDIT/CAD | CAD20.00 |\n | B | /rewardsReedemedMonth/CREDIT/AUD | AUD20.00 |\n | N/A | /rewardsReedemedMonth/CREDIT/USD/global | USD41.00 |\n | N/A | /rewardsReedemedMonth/CREDIT/CAD/global | CAD21.00 |\n | N/A | /rewardsReedemedMonth/CREDIT/GBP/global | GBP40.00 |\n\n\n @landmine\n Scenario Outline: Rewards redeemed by week and month stats only include rewards that have been fully redeemed\n Given statType prop is <statType>\n And the user has fully redeemed a $50.00 USD reward\n And the user has redeemed <amountRedeemed> of a $50.00 USD reward\n Then the stat displays <statValue>\n Examples:\n | statType | amountRedeemed | statValue |\n | /rewardsRedeemed/CREDIT/USD/global | $0.00 | $50.00 |\n | /rewardsRedeemedWeek/CREDIT/USD/global | $0.00 | $50.00 |\n | /rewardsRedeemedMonth/CREDIT/USD/global | $0.00 | $50.00 |\n | /rewardsRedeemed/CREDIT/USD/global | $25.00 | $75.00 |\n | /rewardsRedeemedWeek/CREDIT/USD/global | $25.00 | $50.00 |\n | /rewardsRedeemedMonth/CREDIT/USD/global | $25.00 | $50.00 |\n | /rewardsRedeemed/CREDIT/USD/global | $50.00 | $100.00 |\n | /rewardsRedeemedWeek/CREDIT/USD/global | $50.00 | $100.00 |\n | /rewardsRedeemedMonth/CREDIT/USD/global | $50.00 | $100.00 |\n\n @landmine\n Scenario Outline: Rewards redeemed by week and month stats can only count up to 1000 redeemed rewards during the period\n Given statType prop is <statType>\n And the user has fully redeemed 1001 $1.00 USD rewards in the past <timeframe>\n Then the stat displays <statValue>\n Examples:\n | statType | timeframe | statValue |\n | /rewardsRedeemed/CREDIT/USD/global | N/A | $1001.00 |\n | /rewardsRedeemedWeek/CREDIT/USD/global | week | $1000.00 |\n | /rewardsRedeemedMonth/CREDIT/USD/global | month | $1000.00 |\n';var om={title:"Components/Big Stat",parameters:{scenario:sm}};var lm=function(){var e={value:99e4,statvalue:"9.900,00",loading:false};return n(m,__assign({},e),"Big stat")};var dm=function(){var e={value:500,statvalue:"500",alignment:"left",loading:false};return n(m,__assign({},e),"Big stat")};var um=function(){var e={value:500,statvalue:"500",alignment:"right",loading:false};return n(m,__assign({},e),"Big stat")};var cm=function(){var e={value:500,statvalue:"500",flexReverse:true,loading:false};return n(m,__assign({},e),"Big stat")};var mm=function(){var e={value:500,statvalue:"500",flexReverse:true,alignment:"right",loading:false};return n(m,__assign({},e),"Big stat")};var pm=function(){var e={value:500,statvalue:"500",flexReverse:true,alignment:"left",loading:false};return n(m,__assign({},e),"Big stat")};var gm=function(){var e={value:0,statvalue:"...",loading:false};return n(m,__assign({},e),"Big stat")};var fm=function(){var e={value:0,statvalue:"!!!",loading:false};return n(m,__assign({},e),"Big stat")};var hm=function(){return n("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},n("p",null,"Giftcards Earned"))};var vm=function(){return n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/referralsCount"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance"))))};var bm=function(){return n("sqm-stat-container",{space:"xxx-large",display:"grid",alignment:"center","hide-border":"true"},n("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},n("p",null,"Giftcards Earned")),n("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},n("p",null,"Referrals")),n("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},n("p",null,"Points balance")))};var ym=Object.freeze({__proto__:null,default:om,Default:lm,LeftAlign:dm,RightAlign:um,FlexReverse:cm,FlexReverseRight:mm,FlexReverseLeft:pm,NoStatValue:gm,InvalidStatValue:fm,CustomStyles:hm,MultipleStats:vm,MultipleStatsWithCustomBranding:bm});var wm;(function(e){e["TYPE"]="VisitSchemaKind.TYPE";e["SCALAR_TYPE"]="VisitSchemaKind.SCALAR_TYPE";e["ENUM_TYPE"]="VisitSchemaKind.ENUM_TYPE";e["COMPOSITE_TYPE"]="VisitSchemaKind.COMPOSITE_TYPE";e["OBJECT_TYPE"]="VisitSchemaKind.OBJECT_TYPE";e["INPUT_OBJECT_TYPE"]="VisitSchemaKind.INPUT_OBJECT_TYPE";e["ABSTRACT_TYPE"]="VisitSchemaKind.ABSTRACT_TYPE";e["UNION_TYPE"]="VisitSchemaKind.UNION_TYPE";e["INTERFACE_TYPE"]="VisitSchemaKind.INTERFACE_TYPE";e["ROOT_OBJECT"]="VisitSchemaKind.ROOT_OBJECT";e["QUERY"]="VisitSchemaKind.QUERY";e["MUTATION"]="VisitSchemaKind.MUTATION";e["SUBSCRIPTION"]="VisitSchemaKind.SUBSCRIPTION"})(wm||(wm={}));var _m;(function(e){e["TYPE"]="MapperKind.TYPE";e["SCALAR_TYPE"]="MapperKind.SCALAR_TYPE";e["ENUM_TYPE"]="MapperKind.ENUM_TYPE";e["COMPOSITE_TYPE"]="MapperKind.COMPOSITE_TYPE";e["OBJECT_TYPE"]="MapperKind.OBJECT_TYPE";e["INPUT_OBJECT_TYPE"]="MapperKind.INPUT_OBJECT_TYPE";e["ABSTRACT_TYPE"]="MapperKind.ABSTRACT_TYPE";e["UNION_TYPE"]="MapperKind.UNION_TYPE";e["INTERFACE_TYPE"]="MapperKind.INTERFACE_TYPE";e["ROOT_OBJECT"]="MapperKind.ROOT_OBJECT";e["QUERY"]="MapperKind.QUERY";e["MUTATION"]="MapperKind.MUTATION";e["SUBSCRIPTION"]="MapperKind.SUBSCRIPTION";e["DIRECTIVE"]="MapperKind.DIRECTIVE";e["FIELD"]="MapperKind.FIELD";e["COMPOSITE_FIELD"]="MapperKind.COMPOSITE_FIELD";e["OBJECT_FIELD"]="MapperKind.OBJECT_FIELD";e["ROOT_FIELD"]="MapperKind.ROOT_FIELD";e["QUERY_ROOT_FIELD"]="MapperKind.QUERY_ROOT_FIELD";e["MUTATION_ROOT_FIELD"]="MapperKind.MUTATION_ROOT_FIELD";e["SUBSCRIPTION_ROOT_FIELD"]="MapperKind.SUBSCRIPTION_ROOT_FIELD";e["INTERFACE_FIELD"]="MapperKind.INTERFACE_FIELD";e["INPUT_OBJECT_FIELD"]="MapperKind.INPUT_OBJECT_FIELD";e["ARGUMENT"]="MapperKind.ARGUMENT";e["ENUM_VALUE"]="MapperKind.ENUM_VALUE"})(_m||(_m={}));function xm(e){if(jn(e)||Hn(e)||Jn(e)){var n=e.getFields();var t=Object.keys(n);return t.length===1&&n[t[0]].name==="_fake"}return false}function Tm(e){switch(e.name){case Gt.name:return Gt;case jt.name:return jt;case Jt.name:return Jt;case $t.name:return $t;case ea.name:return ea;default:return e}}function Sm(e,n){var t=Object.create(null);Object.keys(e).forEach((function(n){t[n]=e[n]}));var a=Object.create(null);Object.keys(t).forEach((function(e){var n=t[e];if(n==null||e.startsWith("__")){return}var r=n.name;if(r.startsWith("__")){return}if(a[r]!=null){throw new Error("Duplicate schema type name ".concat(r))}a[r]=n}));Object.keys(a).forEach((function(e){a[e]=o(a[e])}));var r=n.map((function(e){return i(e)}));return{typeMap:a,directives:r};function i(e){if(Da(e)){return e}var n=e.toConfig();n.args=s(n.args);return new xa(n)}function s(e){var n={};Object.keys(e).forEach((function(t){var a=e[t];var r=c(a.type);if(r!=null){a.type=r;n[t]=a}}));return n}function o(e){if(jn(e)){var n=e.toConfig();var t=__assign(__assign({},n),{fields:function(){return l(n.fields)},interfaces:function(){return u(n.interfaces)}});return new pt(t)}else if(Hn(e)){var a=e.toConfig();var t=__assign(__assign({},a),{fields:function(){return l(a.fields)}});if("interfaces"in t){t.interfaces=function(){return u(a.interfaces)}}return new wt(t)}else if(zn(e)){var r=e.toConfig();var t=__assign(__assign({},r),{types:function(){return u(r.types)}});return new _t(t)}else if(Jn(e)){var i=e.toConfig();var t=__assign(__assign({},i),{fields:function(){return d(i.fields)}});return new Ct(t)}else if(Yn(e)){var s=e.toConfig();return new Tt(s)}else if(Wn(e)){if(ta(e)){return e}var o=e.toConfig();return new mt(o)}throw new Error("Unexpected schema type: ".concat(e))}function l(e){var n={};Object.keys(e).forEach((function(t){var a=e[t];var r=c(a.type);if(r!=null){a.type=r;a.args=s(a.args);n[t]=a}}));return n}function d(e){var n={};Object.keys(e).forEach((function(t){var a=e[t];var r=c(a.type);if(r!=null){a.type=r;n[t]=a}}));return n}function u(e){var n=[];e.forEach((function(e){var t=c(e);if(t!=null){n.push(t)}}));return n}function c(e){if(Kn(e)){var n=c(e.ofType);return n!=null?new tt(n):null}else if(Xn(e)){var n=c(e.ofType);return n!=null?new at(n):null}else if(lt(e)){var n=t[e.name];if(n===undefined){n=xm(e)?Tm(e):o(e);a[n.name]=t[e.name]=n}return n!=null?a[n.name]:null}return null}}function Em(e,n,t,a){if(t===void 0){t=null}if(a===void 0){a=null}if(n==null){return n}var r=ot(e);if(Zn(r)){return t!=null?t(r,n):n}else if(Kn(r)){return n.map((function(e){return Em(r.ofType,e,t,a)}))}else if(Jn(r)){var i=r.getFields();var s={};Object.keys(n).forEach((function(e){var r=i[e];if(r!=null){s[e]=Em(r.type,n[e],t,a)}}));return a!=null?a(r,s):s}}function Cm(e,n){return Em(e,n,(function(e,n){return e.serialize(n)}))}function Rm(e,n){return Em(e,n,(function(e,n){return e.parseValue(n)}))}function Im(e,n){if(n===void 0){n={}}var t=e.getTypeMap();var a=km(t,e,Cm);a=Dm(a,e,n,(function(e){return Zn(e)}));a=Am(a,e,n);a=km(a,e,Rm);a=Dm(a,e,n,(function(e){return!Zn(e)}));a=Pm(a,e,n);a=Nm(a,e,n);var r=e.getDirectives();var i=Fm(r,e,n);var s=e.getQueryType();var o=e.getMutationType();var l=e.getSubscriptionType();var d=s!=null?a[s.name]!=null?a[s.name].name:undefined:undefined;var u=o!=null?a[o.name]!=null?a[o.name].name:undefined:undefined;var c=l!=null?a[l.name]!=null?a[l.name].name:undefined:undefined;var m=Sm(a,i),p=m.typeMap,g=m.directives;return new Na(__assign(__assign({},e.toConfig()),{query:d?p[d]:undefined,mutation:u?p[u]:undefined,subscription:c!=null?p[c]:undefined,types:Object.keys(p).map((function(e){return p[e]})),directives:g}))}function Dm(e,n,t,a){if(a===void 0){a=function(){return true}}var r={};Object.keys(e).forEach((function(i){if(!i.startsWith("__")){var s=e[i];if(s==null||!a(s)){r[i]=s;return}var o=Om(n,t,i);if(o==null){r[i]=s;return}var l=o(s,n);if(l===undefined){r[i]=s;return}r[i]=l}}));return r}function Am(e,n,t){var a;var r=Vm(t);if(!r){return e}return Dm(e,n,(a={},a[_m.ENUM_TYPE]=function(e){var t=e.toConfig();var a=t.values;var i={};Object.keys(a).forEach((function(t){var s=a[t];var o=r(s,e.name,n,t);if(o===undefined){i[t]=s}else if(Array.isArray(o)){var l=o[0],d=o[1];i[l]=d===undefined?s:d}else if(o!==null){i[t]=o}}));return Wm(new Tt(__assign(__assign({},t),{values:i})))},a),(function(e){return Yn(e)}))}function km(e,n,t){var a,r;var i=Nm(e,n,(a={},a[_m.ARGUMENT]=function(n){if(n.defaultValue===undefined){return n}var a=qm(e,n.type);if(a!=null){return __assign(__assign({},n),{defaultValue:t(a,n.defaultValue)})}},a));return Pm(i,n,(r={},r[_m.INPUT_OBJECT_FIELD]=function(e){if(e.defaultValue===undefined){return e}var n=qm(i,e.type);if(n!=null){return __assign(__assign({},e),{defaultValue:t(n,e.defaultValue)})}},r))}function qm(e,n){if(Kn(n)){var t=qm(e,n.ofType);return t!=null?new tt(t):null}else if(Xn(n)){var t=qm(e,n.ofType);return t!=null?new at(t):null}else if(lt(n)){var t=e[n.name];return t!=null?t:null}return null}function Pm(e,n,t){var a={};Object.keys(e).forEach((function(r){if(!r.startsWith("__")){var i=e[r];if(!jn(i)&&!Hn(i)&&!Jn(i)){a[r]=i;return}var s=Bm(n,t,r);if(s==null){a[r]=i;return}var o=i.toConfig();var l=o.fields;var d={};Object.keys(l).forEach((function(e){var t=l[e];var a=s(t,e,r,n);if(a===undefined){d[e]=t}else if(Array.isArray(a)){var i=a[0],o=a[1];if(o.astNode!=null){o.astNode=__assign(__assign({},o.astNode),{name:__assign(__assign({},o.astNode.name),{value:i})})}d[i]=o===undefined?t:o}else if(a!==null){d[e]=a}}));if(jn(i)){a[r]=Wm(new pt(__assign(__assign({},o),{fields:d})))}else if(Hn(i)){a[r]=Wm(new wt(__assign(__assign({},o),{fields:d})))}else{a[r]=Wm(new Ct(__assign(__assign({},o),{fields:d})))}}}));return a}function Nm(e,n,t){var a={};Object.keys(e).forEach((function(r){if(!r.startsWith("__")){var i=e[r];if(!jn(i)&&!Hn(i)){a[r]=i;return}var s=Mm(t);if(s==null){a[r]=i;return}var o=i.toConfig();var l=o.fields;var d={};Object.keys(l).forEach((function(e){var t=l[e];var a=t.args;if(a==null){d[e]=t;return}var i=Object.keys(a);if(!i.length){d[e]=t;return}var o={};i.forEach((function(t){var i=a[t];var l=s(i,e,r,n);if(l===undefined){o[t]=i}else if(Array.isArray(l)){var d=l[0],u=l[1];o[d]=u}else if(l!==null){o[t]=l}}));d[e]=__assign(__assign({},t),{args:o})}));if(jn(i)){a[r]=new pt(__assign(__assign({},o),{fields:d}))}else if(Hn(i)){a[r]=new wt(__assign(__assign({},o),{fields:d}))}else{a[r]=new Ct(__assign(__assign({},o),{fields:d}))}}}));return a}function Fm(e,n,t){var a=Gm(t);if(a==null){return e.slice()}var r=[];e.forEach((function(e){var t=a(e,n);if(t===undefined){r.push(e)}else if(t!==null){r.push(t)}}));return r}function Lm(e,n){var t=e.getType(n);var a=[_m.TYPE];if(jn(t)){a.push(_m.COMPOSITE_TYPE,_m.OBJECT_TYPE);var r=e.getQueryType();var i=e.getMutationType();var s=e.getSubscriptionType();if(r!=null&&n===r.name){a.push(_m.ROOT_OBJECT,_m.QUERY)}else if(i!=null&&n===i.name){a.push(_m.ROOT_OBJECT,_m.MUTATION)}else if(s!=null&&n===s.name){a.push(_m.ROOT_OBJECT,_m.SUBSCRIPTION)}}else if(Jn(t)){a.push(_m.INPUT_OBJECT_TYPE)}else if(Hn(t)){a.push(_m.COMPOSITE_TYPE,_m.ABSTRACT_TYPE,_m.INTERFACE_TYPE)}else if(zn(t)){a.push(_m.COMPOSITE_TYPE,_m.ABSTRACT_TYPE,_m.UNION_TYPE)}else if(Yn(t)){a.push(_m.ENUM_TYPE)}else if(Wn(t)){a.push(_m.SCALAR_TYPE)}return a}function Om(e,n,t){var a=Lm(e,t);var r;var i=__spreadArray([],a,true);while(!r&&i.length>0){var s=i.pop();r=n[s]}return r!=null?r:null}function Um(e,n){var t=e.getType(n);var a=[_m.FIELD];if(jn(t)){a.push(_m.COMPOSITE_FIELD,_m.OBJECT_FIELD);var r=e.getQueryType();var i=e.getMutationType();var s=e.getSubscriptionType();if(r!=null&&n===r.name){a.push(_m.ROOT_FIELD,_m.QUERY_ROOT_FIELD)}else if(i!=null&&n===i.name){a.push(_m.ROOT_FIELD,_m.MUTATION_ROOT_FIELD)}else if(s!=null&&n===s.name){a.push(_m.ROOT_FIELD,_m.SUBSCRIPTION_ROOT_FIELD)}}else if(Hn(t)){a.push(_m.COMPOSITE_FIELD,_m.INTERFACE_FIELD)}else if(Jn(t)){a.push(_m.INPUT_OBJECT_FIELD)}return a}function Bm(e,n,t){var a=Um(e,t);var r;var i=__spreadArray([],a,true);while(!r&&i.length>0){var s=i.pop();r=n[s]}return r!=null?r:null}function Mm(e){var n=e[_m.ARGUMENT];return n!=null?n:null}function Gm(e){var n=e[_m.DIRECTIVE];return n!=null?n:null}function Vm(e){var n=e[_m.ENUM_VALUE];return n!=null?n:null}function Wm(e){if(jn(e)){var n=e.toConfig();if(n.astNode!=null){var t=[];Object.values(n.fields).forEach((function(e){if(e.astNode!=null){t.push(e.astNode)}}));n.astNode=__assign(__assign({},n.astNode),{kind:fe.OBJECT_TYPE_DEFINITION,fields:t})}if(n.extensionASTNodes!=null){n.extensionASTNodes=n.extensionASTNodes.map((function(e){return __assign(__assign({},e),{kind:fe.OBJECT_TYPE_EXTENSION,fields:undefined})}))}return new pt(n)}else if(Hn(e)){var n=e.toConfig();if(n.astNode!=null){var a=[];Object.values(n.fields).forEach((function(e){if(e.astNode!=null){a.push(e.astNode)}}));n.astNode=__assign(__assign({},n.astNode),{kind:fe.INTERFACE_TYPE_DEFINITION,fields:a})}if(n.extensionASTNodes!=null){n.extensionASTNodes=n.extensionASTNodes.map((function(e){return __assign(__assign({},e),{kind:fe.INTERFACE_TYPE_EXTENSION,fields:undefined})}))}return new wt(n)}else if(Jn(e)){var n=e.toConfig();if(n.astNode!=null){var r=[];Object.values(n.fields).forEach((function(e){if(e.astNode!=null){r.push(e.astNode)}}));n.astNode=__assign(__assign({},n.astNode),{kind:fe.INPUT_OBJECT_TYPE_DEFINITION,fields:r})}if(n.extensionASTNodes!=null){n.extensionASTNodes=n.extensionASTNodes.map((function(e){return __assign(__assign({},e),{kind:fe.INPUT_OBJECT_TYPE_EXTENSION,fields:undefined})}))}return new Ct(n)}else if(Yn(e)){var n=e.toConfig();if(n.astNode!=null){var i=[];Object.values(n.values).forEach((function(e){if(e.astNode!=null){i.push(e.astNode)}}));n.astNode=__assign(__assign({},n.astNode),{values:i})}if(n.extensionASTNodes!=null){n.extensionASTNodes=n.extensionASTNodes.map((function(e){return __assign(__assign({},e),{values:undefined})}))}return new Tt(n)}else{return e}}function jm(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=Math.random()*16|0;var t=e=="x"?n:n&3|8;return t.toString(16)}))}var Hm=new Map;Hm.set("Int",(function(){return Math.round(Math.random()*200)-100}));Hm.set("Float",(function(){return Math.random()*200-100}));Hm.set("String",(function(){return"Hello World"}));Hm.set("Boolean",(function(){return Math.random()>.5}));Hm.set("ID",(function(){return jm()}));function zm(e){var n;var t=this;var a=e.schema,r=e.mocks,i=r===void 0?{}:r,s=e.preserveResolvers,o=s===void 0?false:s;if(!a){throw new Error("Must provide schema to mock")}if(!qa(a)){throw new Error('Value at "schema" must be of type GraphQLSchema')}if(!Ym(i)){throw new Error("mocks must be of type Object")}var l=new Map;Object.keys(i).forEach((function(e){l.set(e,i[e])}));l.forEach((function(e,n){if(typeof e!=="function"){throw new Error("mockFunctionMap[".concat(n,"] must be a function"))}}));var d=function(e,n,t){return function(n,r,i,s){var o=ot(e);var u=dt(o);if(t&&n&&typeof n[t]!=="undefined"){var c=void 0;if(typeof n[t]==="function"){c=n[t](r,i,s);if(Zm(c)){c=c.mock(n,r,i,s,o,d)}}else{c=n[t]}if(l.has(u.name)){var m=l.get(u.name);c=Qm(m.bind(null,n,r,i,s),c)}return c}if(Kn(o)){return[d(o.ofType)(n,r,i,s),d(o.ofType)(n,r,i,s)]}if(l.has(o.name)&&!nt(o)){var m=l.get(o.name);return m(n,r,i,s)}if(jn(o)){return{}}if(nt(o)){var p=void 0;var g={};if(l.has(o.name)){var m=l.get(o.name);g=m(n,r,i,s);if(!g||!g.__typename){return Error('Please return a __typename in "'.concat(o.name,'"'))}p=a.getType(g.__typename)}else{var f=a.getPossibleTypes(o);p=Jm(f)}return __assign(__assign({__typename:p},g),d(p)(n,r,i,s))}if(Yn(o)){return Jm(o.getValues()).value}if(Hm.has(o.name)){var h=Hm.get(o.name);return h(n,r,i,s)}return Error('No mock defined for type "'.concat(o.name,'"'))}};return Im(a,(n={},n[_m.ABSTRACT_TYPE]=function(e){var n=e.resolveType;if(o&&n!=null&&n.length){return}var t=function(e,n,t){return t.schema.getType(e.__typename)};if(Hn(e)){return new wt(__assign(__assign({},e.toConfig()),{resolveType:t}))}else{return new _t(__assign(__assign({},e.toConfig()),{resolveType:t}))}},n[_m.OBJECT_FIELD]=function(e,n,r){var i=e.type;var s=e.resolve;var u=__assign({},e);var c=d(i,r,n);var m=a.getQueryType();var p=m!=null&&m.name===r;var g=a.getMutationType();var f=g!=null&&g.name===r;var h=a.getSubscriptionType();var v=h!=null&&h.name===r;if(p||f||v){if(l.has(r)){var b=l.get(r);if(typeof b(undefined,{},{},{})[n]==="function"){c=function(t,a,i,s){var o=t!==null&&t!==void 0?t:{};o[n]=b(t,a,i,s)[n];var l=d(e.type,r,n)(o,a,i,s);return l}}}}if(!o||!s){u.resolve=c}else{var y=s;u.resolve=function(e,n,t,a){return Promise.all([c(e,n,t,a),y(e,n,t,a)]).then((function(e){var n=e[0],t=e[1];if(n instanceof Error){if(undefined===t){throw n}return t}if(t instanceof Date&&n instanceof Date){return undefined!==t?t:n}if(Ym(n)&&Ym(t)){var a=Object.create(Object.getPrototypeOf(t));return $m(a,t,n)}return undefined!==t?t:n}))}}var w=e.subscribe;var _=function(){var e;var n=[];for(var t=0;t<arguments.length;t++){n[t]=arguments[t]}return e={},e[Symbol.asyncIterator]=function(){return{next:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,{done:true,value:{}}]}))}))}}},e};if(!o||!w){u.subscribe=_}else{u.subscribe=function(e,n,a,r){return __awaiter(t,void 0,void 0,(function(){var t,i,s;return __generator(this,(function(o){switch(o.label){case 0:return[4,Promise.all([_(e,n,a,r),w(e,n,a,r)])];case 1:t=o.sent(),i=t[0],s=t[1];return[2,s||i]}}))}))}}return u},n))}function Ym(e){return e===Object(e)&&!Array.isArray(e)}function Jm(e){var n=Math.floor(Math.random()*e.length);return e[n]}function Km(e,n){return Object.assign(e,n)}function Xm(e,n){Object.getOwnPropertyNames(n).forEach((function(t){if(!Object.getOwnPropertyDescriptor(e,t)){var a=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,a==null?{}:a)}}))}function $m(e){var n=[];for(var t=1;t<arguments.length;t++){n[t-1]=arguments[t]}n.forEach((function(n){var t=n;while(t!=null){Xm(e,t);t=Object.getPrototypeOf(t)}}));return e}function Qm(e,n){if(Array.isArray(n)){return n.map((function(n){return Qm(e,n)}))}if(n instanceof Promise){return n.then((function(n){return Km(e(),n)}))}if(Ym(n)){return Km(e(),n)}return n}function Zm(e){if(typeof(e===null||e===void 0?void 0:e.len)==="number"||Array.isArray(e===null||e===void 0?void 0:e.len)&&typeof(e===null||e===void 0?void 0:e.len[0])==="number"){if(typeof e.wrappedFunction==="undefined"||typeof e.wrappedFunction==="function"){return true}}return false}var ep=function(){function e(e,n){this.len=e;if(typeof n!=="undefined"){if(typeof n!=="function"){throw new Error("Second argument to MockList must be a function or undefined")}this.wrappedFunction=n}}e.prototype.mock=function(e,n,t,a,r,i){var s;if(Array.isArray(this.len)){s=new Array(this.randint(this.len[0],this.len[1]))}else{s=new Array(this.len)}for(var o=0;o<s.length;o++){if(typeof this.wrappedFunction==="function"){var l=this.wrappedFunction(e,n,t,a);if(Zm(l)){var d=ot(r.ofType);s[o]=l.mock(e,n,t,a,d,i)}else{s[o]=l}}else{s[o]=i(r.ofType)(e,n,t,a)}}return s};e.prototype.randint=function(e,n){return Math.floor(Math.random()*(n-e+1)+e)};return e}();var np=Date.UTC(2026,9,1,17,0,0);var tp=24*60*60*1e3;var ap=Math.random;function rp(e,n){var t=Math.random;ap=sp(ip(e));Math.random=ap;try{return n()}finally{Math.random=t;ap=t}}function ip(e){var n=2166136261;for(var t=0;t<e.length;t++){n^=e.charCodeAt(t);n=Math.imul(n,16777619)}return n>>>0}function sp(e){return function(){e|=0;e=e+1831565813|0;var n=Math.imul(e^e>>>15,1|e);n=n+Math.imul(n^n>>>7,61|n)^n;return((n^n>>>14)>>>0)/4294967296}}var op=function(e,n){return Math.floor(ap()*(n-e+1))+e};var lp=function(e){return e[op(0,e.length-1)]};var dp=[["Jane","Doe"],["Marcus","Chen"],["Priya","Patel"],["Diego","Alvarez"],["Aisha","Okafor"],["Liam","O'Brien"],["Sofia","Rossi"],["Noah","Kim"]];var up=function(){var e=lp(dp),n=e[0],t=e[1];var a="".concat(n).concat(t).replace(/[^a-z]/gi,"");return{firstName:n,lastName:t,lastInitial:t[0],displayName:"".concat(n," ").concat(t),email:"".concat(a.toLowerCase(),"@example.com"),referralCode:a.toUpperCase(),code:a.toUpperCase(),shareLink:"https://ssqt.co/".concat(a.toLowerCase()),shortUrl:"https://ssqt.co/".concat(a.toLowerCase())}};var cp=function(){return"$".concat(op(1,10)*5,".00")};var mp=function(){return op(0,16777215).toString(16).padStart(6,"0")+op(0,16777215).toString(16).padStart(6,"0")};var pp=function(){return"".concat(lp(["SAVE","GIFT","FUEL","WELCOME"]),"-").concat(op(0,1048575).toString(36).toUpperCase().padStart(4,"0"))};var gp="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="320" height="180"><rect width="100%" height="100%" fill="#e7e5f5"/><text x="50%" y="50%" fill="#4225c4" font-family="sans-serif" font-size="20" text-anchor="middle" dominant-baseline="middle">Reward</text></svg>');function fp(e,n){var t=e.toLowerCase();var a=hp(up());if(t in a)return a[t];if(t.startsWith("pretty")||t==="formatrewardprettyvalue")return cp();if(t==="balance")return cp();if(/image|logo|icon|avatar|picture/.test(t))return gp;if(t==="textvalue")return String(op(1,25));if(t.endsWith("code")&&!/country|currency|postal|error|reason|language/.test(t)){return pp()}if(t.endsWith("url")||t.endsWith("link")){return"https://example.com/".concat(n.toLowerCase(),"/").concat(e)}if(t==="currency"||t==="currencycode")return"USD";if(t==="unit"||t.endsWith("unit"))return"USD";if(t.includes("country"))return"US";if(t==="locale")return"en_US";if(t==="id"||t.endsWith("id")||t==="uid"||t==="key")return mp();if(t==="name")return"".concat(n," ").concat(op(1,9));if(t==="description")return"Give $10, get $10 when your friend signs up";if(t==="status")return"ACTIVE";if(t.includes("phone"))return"+1 604-555-0134";if(t.includes("postalcode"))return"V6B 1A1";if(t.includes("city"))return"Vancouver";if(t.includes("state")||t.includes("region"))return"BC";if(t.includes("address"))return"123 Main St";if(t.includes("message")||t.includes("error"))return"";return"Example ".concat(e)}var hp=function(e){var n={};for(var t=0,a=Object.keys(e);t<a.length;t++){var r=a[t];n[r.toLowerCase()]=e[r]}return n};var vp=function(e){var n,t,a;return{fieldName:(n=e==null?void 0:e.fieldName)!=null?n:"",parentType:(a=(t=e==null?void 0:e.parentType)==null?void 0:t.name)!=null?a:""}};var bp={String:function(e,n,t,a){var r=vp(a),i=r.fieldName,s=r.parentType;if(/reasoncode$/i.test(i))return null;return fp(i,s)},ID:function(){return mp()},Boolean:function(e,n,t,a){var r=vp(a).fieldName.toLowerCase();if(/^(is)?enabled$|^valid$|^success$|^available$|^connected$/.test(r)){return true}if(/hold|error|fraud/.test(r))return false;return ap()<.5},Int:function(){return op(1,25)},Float:function(e,n,t,a){var r=vp(a).fieldName.toLowerCase();if(/vat|tax|fee/.test(r))return op(100,1500)/100;return op(2e3,4e4)/100},Long:function(e,n,t,a){var r=vp(a).fieldName.toLowerCase();if(r.startsWith("date"))return np-op(1,90)*tp;return op(1,25)},RSDate:function(){return np-op(1,90)*tp},RSCountryCode:function(){return"US"},RSCurrencyCode:function(){return"USD"},RSLanguageCode:function(){return"en"},RSLocale:function(){return"en_US"},RSTimeZoneId:function(){return"America/Vancouver"},RSJsonNode:function(){return{}},RSShallowMap:function(){return{}},JsonSchema:function(){return{type:"object",properties:{}}},JsonPointer:function(){return"/"},JSONata:function(){return"true"},GraphQLQueryString:function(){return"{ viewer { ... on User { id } } }"},DateTimeFormatPattern:function(){return"yyyy-MM-dd"},IsoDuration:function(){return"P1M"},IsoInterval:function(){return"2026-09-01T00:00:00Z/2026-10-01T00:00:00Z"},RSRelativeTimeframe:function(){return"P1Y"},JobType:function(){return"EXPORT"},PredefinedRewardType:function(){return"CREDIT"},RewardUnitSettingsId:function(){return"CASH/USD"},SegmentKey:function(){return"vip"},SegmentOperation:function(){return"ADD"},TranslatableAssetId:function(){return"asset"},TranslationInstanceId:function(){return"default"},WebhookType:function(){return"user.created"},WebhookTypeOperation:function(){return"SUBSCRIBE"},WidgetType:function(){return"p/referral-program/w/referrerWidget"}};function yp(e){var n={};var t=function(e){if(!(e instanceof pt)||e.name.startsWith("__")){return"continue"}var t=e.getFields();if(!("firstName"in t)&&!("email"in t))return"continue";n[e.name]=function(){var e=up();var n={};for(var a=0,r=Object.keys(e);a<r.length;a++){var i=r[a];if(i in t)n[i]=e[i]}return n}};for(var a=0,r=Object.values(e.getTypeMap());a<r.length;a++){var i=r[a];t(i)}return n}function wp(e){var n={};var t=function(e){if(!(e instanceof pt))return"continue";var t=e.getFields();var a=t.data;if(!a||!Kn(Xn(a.type)?a.type.ofType:a.type)){return"continue"}var r=6+ip(e.name)%7;n[e.name]=function(e,n){var a=typeof(n==null?void 0:n.offset)==="number"?Math.max(0,n.offset):0;var i=typeof(n==null?void 0:n.limit)==="number"?n.limit:r;var s=Math.max(0,Math.min(i,r-a));var o={data:function(){return new ep(s)}};if("totalCount"in t)o.totalCount=r;if("count"in t)o.count=s;return o}};for(var a=0,r=Object.values(e.getTypeMap());a<r.length;a++){var i=r[a];t(i)}return n}var _p={Viewer:function(){return{__typename:"User"}},WidgetConfig:function(){return{__typename:"ProgramWidgetConfig"}}};var xp="jane@example.com";function Tp(e){var n,t;var a=Object.values((t=(n=e.getMutationType())==null?void 0:n.getFields())!=null?t:{}).filter((function(e){return dt(e.type).name==="ManagedIdentityAuthenticationResult"}));if(!a.length)return{};var r=function(e){return{email:e,token:Oe({user:{id:e,accountId:e,email:e}})}};var i={};for(var s=0,o=a;s<o.length;s++){var l=o[s];i[l.name]=function(e){var n=Object.values(e!=null?e:{}).map((function(e){return e==null?void 0:e.email})).find((function(e){return typeof e==="string"}));return r(n!=null?n:xp)}}return{ManagedIdentityAuthenticationResult:function(){return r(xp)},Mutation:function(){return i}}}var Sp={Mutation:function(){return{upsertUser:function(e){var n=e.userInput;var t={};for(var a=0,r=Object.keys(n);a<r.length;a++){var i=r[a];var s=n[i];if(s===null||typeof s!=="object")t[i]=s}return t}}}};function Ep(e){return Cp(Pe(Pe(Pe(Pe(Pe({},bp),yp(e)),wp(e)),_p),Tp(e)),Sp)}function Cp(e,n){if(n===void 0){n={}}var t=Pe({},e);var a=function(n,a){var r=e[n];t[n]=r?function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var t=r.apply(void 0,e);var i=a.apply(void 0,e);return Rp(t)&&Rp(i)?Pe(Pe({},t),i):i}:a};for(var r=0,i=Object.entries(n);r<i.length;r++){var s=i[r],o=s[0],l=s[1];a(o,l)}return t}var Rp=function(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof ep)};var Ip='"""\nA pattern for formatting a date, e.g., "d MMM uuuu"\n"""\nscalar DateTimeFormatPattern\n"""\nA GraphQL query string\n"""\nscalar GraphQLQueryString\n"""\nAn ISO 8601 formatted string duration. e.g. "P3Y6M4DT12H30M5S"\n"""\nscalar IsoDuration\n"""\nAn ISO 8601 interval. e.g. "2007-03-01T13:00:00Z/2008-05-11T15:30:00Z\n"""\nscalar IsoInterval\nscalar JobType\n"""\nA JSON schema\n"""\nscalar JsonSchema\n"""\nA JSONata expression\n"""\nscalar JSONata\n"""\nA JSON Pointer of specification https://datatracker.ietf.org/doc/html/rfc6901\n"""\nscalar JsonPointer\n"""\nA 64-bit integer\n"""\nscalar Long\n"""\nA unique ID for a predefined reward. e.g. "p/program1/r/reward1" or "r/reward2"\n"""\nscalar PredefinedRewardType\n"""\nThe id of RewardUnitSettings. e.g. "USD" or "CASH/USD"\n"""\nscalar RewardUnitSettingsId\n"""\nAn ISO 3166-1 Alpha-2 country code. e.g. "CA" for Canada and "ES" for Spain\n"""\nscalar RSCountryCode\n"""\nA 3-letter ISO 4217 currency code\n"""\nscalar RSCurrencyCode\n"""\nA timestamp expressed as the number of milliseconds since epoch.\n"""\nscalar RSDate\n"""\nAn abitrary JSON node\n"""\nscalar RSJsonNode\n"""\nAn ISO 639-1 language code. e.g. "en" for English and "fr" for French\n"""\nscalar RSLanguageCode\n"""\nA language-country locale pair separated by an underscore. e.g. "en_US"\n"""\nscalar RSLocale\n"""\nA relative timeframe string based on relative time. e.g. "last_7_days" or "this_year"\n"""\nscalar RSRelativeTimeframe\n"""\nA shallow JSON object\n"""\nscalar RSShallowMap\n"""\nA time-zone ID, such as America/Vancouver\n"""\nscalar RSTimeZoneId\nscalar SegmentKey\nscalar SegmentOperation\n"""\nA unique ID for a TranslatableAsset. e.g. "p/program1/r/reward1" or "w/widget1"\n"""\nscalar TranslatableAssetId\n"""\nA unique ID for a TranslationInstance. e.g. "p/program1/r/reward1/en_CA" or "w/widget1/es_ES"\n"""\nscalar TranslationInstanceId\n"""\nThe type of a webhook. e.g. "user.created" or "reward.created"\n"""\nscalar WebhookType\n"""\nOperation for adding/deleting WebhookTypes. e.g. "user.created" or "~reward.created"\n"""\nscalar WebhookTypeOperation\n"""\nA unique ID for a widget type. e.g. "p/program1/w/widget1" or "w/widget2"\n"""\nscalar WidgetType\n\n"""\nThe operations under Query are operation that are side-effect free.\n"""\ntype Query {\n """\n The mathematic identity function. Useful for returning input variables.\n """\n identityFunction(value: RSJsonNode): RSJsonNode\n formatCurrentDate(\n formatPattern: DateTimeFormatPattern!\n timeZone: RSTimeZoneId\n locale: RSLocale\n ): String!\n """\n Lookup a user by its id and accountId\n """\n user(accountId: String!, id: String!): User\n """\n List all the users in a tenant.\n - Can be filtered\n - Is paginated\n """\n users(\n filter: UserFilterInput\n """\n A very inefficient query string. This should be treated as deprecated.\n """\n query: String\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): UserList\n """\n Lookup a single Account based on ID.\n """\n account(accountId: String!): PaymentAccount\n """\n Preview a user creation\n """\n previewUserCreation(\n previewUserCreationInput: PreviewUserCreationInput!\n ): PreviewUserCreationResult!\n simulateReferralStart(\n simulateReferralStartInput: SimulateReferralStartInput!\n ): SimulateReferralStartResult!\n simulateReferredUserEvent(\n simulateReferredUserEventInput: SimulateReferredUserEventInput!\n ): SimulateReferredUserEventResult!\n """\n Lookup a reward by id\n """\n reward(id: ID!): FlatReward\n """\n Lookup a list of rewards\n """\n rewards(\n filter: RewardFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): FlatRewardList!\n """\n Lookup a referral by id\n """\n referral(id: ID!): Referral\n """\n List all the referrals in a tenant.\n - Can be filtered\n - Is paginated\n """\n referrals(\n filter: ReferralFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): ReferralList\n """\n Get information for current tenant\n """\n tenant: Tenant\n """\n Lookup a tenant by its impactBrandId\n """\n tenantByImpactBrandId(impactBrandId: ID!): Tenant\n """\n Look up the details of a portal project by id or get the current portal project in scope.\n """\n portalProject(id: ID): PortalProject\n """\n Look up the settings of the current tenant\n """\n tenantSettings: TenantSettings\n activeProgramTrigger: ProgramTrigger @deprecated(reason: "Internal field")\n activeProgram: Program @deprecated(reason: "Internal field")\n activeUser: User @deprecated(reason: "Internal field")\n activeReward: FlatReward @deprecated(reason: "Internal field")\n activeFormSubmissionRecord: FormSubmissionRecord\n @deprecated(reason: "Internal field")\n activeFormInitialDataResult: FormInitialDataResult!\n @deprecated(reason: "Internal field")\n activeFormValidationResult: FormValidationResult!\n @deprecated(reason: "Internal field")\n activeUserEvents: [UserEventData!] @deprecated(reason: "Internal field")\n """\n Get Maxmind geo data for an IP address\n """\n geoData(ip: String!): RSJsonNode\n """\n Generate a set of unique SaaSquach IDs for use with rewards, referrals and the Program Engine.\n """\n ids(length: Int!): [ID!]!\n jwks: RSJsonNode!\n dateTime(epochMilli: RSDate, timeZone: String! = "UTC"): ZonedDateTime!\n """\n Lookup the details for a currency\n """\n currency(currencyCode: RSCurrencyCode!): RSCurrency\n """\n Lookup all the currencies supported by the system\n """\n currencies(limit: Int! = 20, offset: Int! = 0): RSCurrencyList!\n """\n Lookup the details of a country\n """\n country(countryCode: RSCountryCode!): RSCountry\n """\n Lookup the details of a country by an Impact country code\n """\n countryByImpactCountryCode(impactCountryCode: String!): RSCountry\n """\n Lookup all the countries supported by the system\n """\n countries(limit: Int! = 20, offset: Int! = 0): RSCountryList!\n """\n Lookup all the countries supported by Impact payouts\n """\n impactPayoutCountries(limit: Int! = 20, offset: Int! = 0): RSCountryList!\n """\n Lookup the details of a language\n """\n language(languageCode: RSLanguageCode!): RSLanguage\n """\n Lookup all the languages supported by the system\n """\n languages(limit: Int! = 20, offset: Int! = 0): RSLanguageList!\n """\n Lookup the details of a time zone\n """\n timeZone(timeZone: RSTimeZoneId!): RSTimeZone\n """\n Lookup all the time zones supported by the system\n """\n timeZones(\n query: String\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): RSTimeZoneList!\n """\n List all programs installed in the current tenant.\n - Is paginated\n - Can be filtered\n """\n programs(\n filter: ProgramFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): ProgramList!\n """\n Lookup an individual program\n """\n program(id: ID!): Program\n """\n Get all the program templates installable for the current tenant\n """\n programTemplates: [ProgramTemplate!]!\n """\n Get all the integration templates installable for the current tenant\n """\n integrationTemplates(\n limit: Int! = 20\n offset: Int! = 0\n ): IntegrationTemplateList!\n """\n Get the JWT token for an integration.\n Used in the SaaSquatch portal for providing authentication to the integrations connected to an account.\n """\n integrationToken(\n """\n The human readable name of the integration\n """\n name: String!\n """\n The optional integration service or clientId\n """\n service: String\n ): String!\n """\n List the custom codes\n - Is paginated\n - Can be filtered by their use\n """\n customCodes(\n predefinedRewardType: PredefinedRewardType!\n used: Boolean @deprecated(reason: "Use filter instead.")\n filter: CustomCodeFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): CustomCodeList!\n """\n List all of the integrations that can be enabled in a tenant, and details about their connection status.\n - Is paginated\n """\n integrations(\n type: IntegrationType\n limit: Int! = 20\n offset: Int! = 0\n ): TenantIntegrationList!\n integration(service: String!): TenantIntegration\n """\n Get the first 100 TranslatableAssets\n """\n translatableAssets: [TranslatableAsset!]!\n @deprecated(reason: "Use TranslatableAssetList instead.")\n """\n Look up all the translatable assets in a Tenant.\n Useful for internationalization (i18n). This returns a node about things that can be translated,\n and for each can query the Graph connections to retrieve the translated copies for each language.\n """\n translatableAssetList(\n limit: Int! = 20\n offset: Int! = 0\n ): TranslatableAssetList!\n """\n Look up an individual translation of a translatable asset.\n """\n translationInstance(id: TranslationInstanceId!): TranslationInstance\n """\n List all the import, export and batch jobs in the tenant.\n Useful for seeing if there are any long-running jobs still active.\n - Is paginated\n - Can be filtered\n """\n jobs(\n filter: JobFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): JobList!\n """\n Lookup an individual import, export or batch job given it\'s ID.\n Useful for integrations and data synchronization proceses to poll for the status of a job.\n Can also use the \\`job.completed\\` webhook.\n """\n job(id: ID!): Job\n jobToken(id: ID!): JobToken!\n """\n Lookup a single segment.\n Useful for seeing if a segment is in use, details about it, and showing the segment\n metadata in the user interface.\n """\n segment(key: SegmentKey!): Segment\n """\n List all segments\n Useful for seeing which segments are in use, and details about their use.\n - Is paginated\n """\n segments(\n filter: SegmentFilterInput\n limit: Int! = 20\n offset: Int! = 0\n ): SegmentList!\n """\n List of all user metrics.\n Useful for seeing which custom fields are being automatically calculated.\n - Is paginated\n """\n userMetrics(limit: Int! = 20, offset: Int! = 0): UserMetricList!\n """\n Get a custom field by key\n """\n customField(key: String!): CustomField\n """\n List of all custom fields\n Useful for seeing which custom fields are currently in use, details about them, and showing that in the user interface.\n - Is paginated\n """\n customFields(\n query: String\n limit: Int! = 20\n offset: Int! = 0\n ): CustomFieldList!\n """\n Same as mutation->logUserEvent, but it doesn\'t apply the side effects,\n and it returns all the side effects as a preview.\n - Useful for confirming that programs are configured as desired.\n - Useful for pre-validating data to be submitted before manually submitting data.\n """\n previewUserEvent(userEventInput: UserEventInput!): UserEventResult!\n """\n Given a User ID and Account Id, generates a non-reversible hash for GDPR opt-out tracking.\n """\n calculateUserDoNotTrackIdentifierHash(\n id: String!\n accountId: String!\n ): String!\n """\n List all users that are in the Do Not Track list, by their hashed non-reversible identifiers.\n """\n userDoNotTrackIdentifiers(\n limit: Int! = 20\n offset: Int! = 0\n ): UserDoNotTrackIdentifierList!\n programEmailTransaction(id: ID): ProgramEmailTransaction\n """\n List all emails sent, queued or attempted by a program.\n Useful for auditing if emails were sent, their status.\n - Is paginated\n - Can be filtered\n """\n programEmailTransactions(\n filter: ProgramEmailTransactionFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): ProgramEmailTransactionList!\n """\n List all event types\n Useful for checking which event types are currently in use, and details about those events.\n - Is paginated\n Note: Only events from the past 2 years will be included\n """\n userEvents(\n """\n Only one field can be filtered here\n """\n filter: UserEventDataFilterInput\n """\n The time zone to be used for relative date based filters\n """\n timeZone: String\n """\n The time zone offset in seconds used for relative date based filters\n """\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): UserEventDataList!\n """\n List all the event keys that have been seen by this tenant\n """\n userEventKeys(limit: Int! = 20, offset: Int! = 0): UserEventKeyList!\n """\n Get a UserEventMeta by key\n """\n userEventMeta(key: String): UserEventMeta\n """\n List all the UserEventMetas that have been tracked by this tenant\n """\n userEventMetas(\n query: String\n limit: Int! = 20\n offset: Int! = 0\n ): UserEventMetaList!\n userEventFieldsSchema(key: String!): JsonSchema\n @deprecated(reason: "Internal field")\n """\n Preview the moderation a set of graph nodes.\n Useful for fraud management, this lets you preview the side-effects of canceling\n a set of referrals, rewards, user events or any other graph node.\n\n - Is paginated\n - Can be filtered\n """\n moderateGraphNodes(\n graphNodeType: GraphNodeType!\n """\n Can be RewardFilterInput, ProgramEmailTransactionFilterInput,\n ReferralFilterInput, or UserEventDataFilterInput depending on the type\n """\n filter: RSJsonNode!\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n moderationInput: ModerationInput!\n ): GraphNodeModerationResultList!\n """\n Lookup webhook history.\n Useful for auditing webhook delivery failures.\n Note that we only keep track of webhooks for 30 days.\n """\n webhooks(\n filter: WebhookFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): WebhookList!\n """\n Lists all the URLs that are currently subscribed to receive events via webhooks\n Useful for managing integrations and their connections. Note that integrations can also\n use managed webhooks to ensure the webhook exists as long as the integration is enabled.\n """\n webhookSubscriptions(\n limit: Int! = 20\n offset: Int! = 0\n ): WebhookSubscriptionList!\n """\n Lookup one RewardUnitSettings by id.\n Useful for seeing details about a type of reward in use.\n """\n rewardUnitSettings(id: RewardUnitSettingsId!): RewardUnitSettings\n """\n List all Reward Unit settings.\n Useful for seeing which reward units are in use, details about them, and to show that in the user interface.\n """\n rewardUnitSettingsList(\n limit: Int! = 20\n offset: Int! = 0\n ): RewardUnitSettingsList!\n analyticsKey: String! @deprecated(reason: "Internal field.")\n """\n Lookup one GlobalRewardConfig by key\n """\n globalRewardConfig(key: String!): GlobalRewardConfig\n """\n Lookup all the GlobalRewardConfigs\n """\n globalRewardConfigs(\n limit: Int! = 20\n offset: Int! = 0\n ): GlobalRewardConfigList!\n """\n Lookup all the IsPredefinedRewards\n """\n predefinedRewards(\n limit: Int! = 20\n offset: Int! = 0\n """\n If true, ProgramRewardConfigs that are links to GlobalRewardConfigs and ProgramReferralCodeFuelTanks are excluded.\n """\n excludeLinkedRewards: Boolean! = false\n ): IsPredefinedRewardList!\n """\n Lookup one IsPredefinedReward by predefinedRewardType\n """\n predefinedReward(\n predefinedRewardType: PredefinedRewardType!\n ): IsPredefinedReward\n """\n Lookup all the IsPredefinedRewards that represent fuel tank rewards\n """\n fuelTankPredefinedRewards(\n limit: Int! = 20\n offset: Int! = 0\n ): IsPredefinedRewardList!\n """\n Lookup a link code\n """\n linkCode(linkCode: String!): LinkCode\n """\n Validate whether a new link code can be created\n """\n validateLinkCode(linkCode: String!): ValidateLinkCodeResult!\n """\n Lookup a referral code\n """\n referralCode(referralCode: String!): ReferralCode\n """\n Check whether the system will block an email\n """\n isBlockedEmail(email: String!): IsBlockedEmailResult!\n """\n Lookup a form by key\n """\n form(key: String!): Form\n """\n Lookup all the forms\n """\n forms(limit: Int! = 20, offset: Int! = 0, sortBy: [RSSortByInput!]): FormList!\n """\n Validate form data against a form\n """\n validateForm(formValidationInput: FormValidationInput!): FormValidationResult!\n """\n Preview the form meta of a potentially unsaved form\n """\n formMetaPreview(formInput: FormInput!): FormMeta!\n """\n Lookup a single form submission record by id\n """\n formSubmissionRecord(id: ID!): FormSubmissionRecord\n """\n Lookup form submission records for this tenant\n """\n formSubmissionRecords(\n filter: FormSubmissionRecordFilterInput\n sortBy: [RSSortByInput!]\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): FormSubmissionRecordList!\n """\n Lookup a GlobalEmailConfig by key\n """\n globalEmailConfig(key: String!): GlobalEmailConfig\n """\n Lookup all the GlobalEmailConfigs\n """\n globalEmailConfigs(\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): GlobalEmailConfigList!\n """\n Lookup a GlobalWidgetConfig by key\n """\n globalWidgetConfig(key: String!): GlobalWidgetConfig\n """\n Lookup all the GlobalWidgetConfigs\n """\n globalWidgetConfigs(\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): GlobalWidgetConfigList!\n """\n Render a widget\n """\n renderWidget(\n user: UserIdInput\n widgetType: WidgetType\n engagementMedium: UserEngagementMedium\n locale: RSLocale\n ): WidgetResponse!\n """\n Format the pretty value of an arbitrary reward unit\n """\n formatRewardPrettyValue(\n """\n The value of the rewrad to format\n """\n value: Int!\n """\n The unit of the reward to format\n """\n unit: String!\n """\n The locale to use for formatting\n """\n locale: RSLocale\n """\n The type of the formatting\n """\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n """\n Get the user leaderboard by type\n """\n userLeaderboard(\n """\n The type of the user leaderboard. Built-in types include topStartedReferrers,\n topConvertedReferrers, and topPointEarners.\n """\n type: String!\n """\n The filter for this user leaderboard\n """\n filter: UserLeaderboardFilterInput\n ): UserLeaderboard!\n """\n Access all the user leaderboard types\n """\n userLeaderboards: UserLeaderboards!\n """\n Validate a JobInput\n """\n validateJobCreation(jobInput: JobInput!): ValidateJobCreationResult!\n managedIdentitySession: ManagedIdentitySessionResult\n """\n Get the microsite hosting config\n """\n micrositeHostingConfig: MicrositeHostingConfig!\n """\n Get the managed identity config\n """\n managedIdentityConfig: ManagedIdentityConfig!\n """\n Lookup a microsite layout config by key\n """\n micrositeLayoutConfig(key: String!): MicrositeLayoutConfig\n """\n List microsite layout configs\n """\n micrositeLayoutConfigs(\n limit: Int! = 20\n offset: Int! = 0\n ): MicrositeLayoutConfigList!\n """\n Lookup a microsite page config by key\n """\n micrositePageConfig(key: String!): MicrositePageConfig\n """\n List microsite page configs\n """\n micrositePageConfigs(\n limit: Int! = 20\n offset: Int! = 0\n ): MicrositePageConfigList!\n """\n Renders a microsite page by its URL path. The rendered result contains the HTML for the page\n as well as the HTML for all of the templates that it depends on.\n\n The returned HTML is translated into the given locale (if translations exist).\n """\n renderMicrositePage(\n urlPath: String!\n locale: RSLocale\n ): RenderMicrositePageResult!\n """\n Get a microsite template by its key\n """\n micrositeTemplate(key: String!): MicrositeTemplate\n """\n List microsite templates\n """\n micrositeTemplates(limit: Int! = 20, offset: Int! = 0): MicrositeTemplateList!\n """\n Get a reward exchange rule by its key\n """\n rewardExchangeRule(key: String!): RewardExchangeRule\n """\n List reward exchange rules\n """\n rewardExchangeRules(\n limit: Int! = 20\n offset: Int! = 0\n ): RewardExchangeRuleList!\n """\n Preview a visible reward exchange\n """\n previewVisibleRewardExchangeItem(\n rewardExchangeRuleInput: RewardExchangeRuleInput!\n ): VisibleRewardExchangeItem!\n """\n Query the current portal users organization, or provide a organization id\n """\n organization(organizationId: ID!): Organization\n """\n Get internal configurations needed by the portal\n """\n squatchPortalConfig: RSJsonNode! @deprecated(reason: "Internal field.")\n impactFinanceNetworkSettings(\n filter: ImpactFinanceNetworkSettingsFilterInput\n limit: Int! = 20\n offset: Int! = 0\n ): ImpactFinanceNetworkSettingList!\n impactPartnerInviteUrl(impactProgramId: ID!): String!\n impactPrograms(limit: Int! = 20, offset: Int! = 0): ImpactProgramList!\n """\n Get a portal storage entry by key and optional external program id\n """\n portalStorageEntry(key: ID!, programId: ID): PortalStorageEntry\n impactEventTypes(limit: Int! = 20, offset: Int! = 0): ImpactEventTypeList!\n convertEmailHtmlContentToJson(\n htmlContent: String!\n ): ConvertEmailHtmlContentToJsonResult!\n convertEmailJsonContentToHtml(\n jsonContent: RSJsonNode!\n ): ConvertEmailJsonContentToHtmlResult!\n beefreeServerSideLogin: BeefreeServerSideLoginResult!\n cloudinaryUploadSignature(paramsToSign: RSJsonNode!): String!\n enabledFuelTankSyncSettings: [FuelTankSyncSetting!]!\n cookieUser(cookieId: ID!): CookieUser\n cookieUsers(limit: Int! = 20, offset: Int! = 0): CookieUserList!\n """\n Details about the subject currently accessing the API.\n See the \\`Viewer\\` type for more details.\n """\n viewer: Viewer\n}\n\ntype Mutation {\n """\n Creates a new program from a Program Template ID\n """\n createProgram(id: ID, name: String!, programTemplateId: String!): Program!\n """\n Updates an existing program by id\n """\n updateProgram(programInput: ProgramInput!): Program!\n updateProgramId(id: ID!, newId: ID!): Program!\n """\n Update the draft of an existing program. If a draft does not exist, one will be created automatically.\n """\n updateProgramDraft(programInput: ProgramInput!): Program!\n """\n Delete the draft of an existing program\n """\n deleteProgramDraft(programId: ID!): ProgramDraftDeleteResult!\n """\n Publish the draft of an existing program\n """\n publishProgramDraft(programId: ID!): Program!\n deleteProgram(id: String!): ProgramDeleteResult!\n """\n Create a user. If the user already exists, this mutation will cause an error.\n """\n createUser(userInput: UserInput!): User!\n """\n Create a user or update the user if the user already exists.\n """\n upsertUser(userInput: UserInput!): User!\n """\n Batched version of upsertUser. It allows a maximum of 100 UserInputs.\n """\n upsertUsers(userInputs: [UserInput!]!): [UserUpsertResult!]!\n """\n Request an email verification code for a participant\'s email or the connected publisher\'s email\n """\n requestUserEmailVerification(\n user: UserIdInput!\n ): RequestUserEmailVerificationResult!\n """\n Submit the code received from requestUserEmailVerification\n """\n verifyUserEmail(user: UserIdInput!, code: String!): User!\n """\n Create a connection to an Impact User and Publisher\n """\n createImpactConnection(\n impactConnectionInput: ImpactConnectionInput!\n ): CreateImpactConnectionResult!\n """\n Create connection with limited Impact User and Publisher fields\n """\n startImpactConnection(\n impactConnectionInput: ImpactConnectionInput!\n ): CreateImpactConnectionResult!\n """\n Fill in missing Impact User and Publisher fields, this will not overwrite existing fields or modify the connection mapping\n """\n completeImpactConnection(\n impactConnectionInput: ImpactConnectionInput!\n ): CreateImpactConnectionResult!\n """\n Create a tax document for an Impact Publisher\n """\n createImpactPublisherTaxDocument(\n createImpactPublisherTaxDocumentInput: CreateImpactPublisherTaxDocumentInput!\n ): ImpactPublisherTaxDocumentUrl!\n """\n Create identity verification session for an Impact Publisher\n """\n createImpactPublisherIdentityVerificationSession(\n user: UserIdInput!\n ): ImpactPublisherIdentityVerificationSessionUrl!\n """\n Mark the user\'s current tax document as complete\n """\n completeImpactPublisherTaxDocument(\n user: UserIdInput!\n ): CompleteImpactPublisherTaxDocumentResult!\n """\n Set withdrawal settings for an Impact Publisher\n """\n setImpactPublisherWithdrawalSettings(\n setImpactPublisherWithdrawalSettingsInput: SetImpactPublisherWithdrawalSettingsInput!\n ): SetImpactPublisherWithdrawalSettingsResult!\n """\n Request an email verification code for a participant\'s email or the connected publisher\'s email\n """\n requestImpactPublisherEmail2FA(\n user: UserIdInput!\n ): RequestImpactPublisherEmail2FAResult!\n """\n Submit the code received from requestUserEmailVerification\n """\n submitImpactPublisherEmail2FACode(\n user: UserIdInput!\n code: String!\n ): ImpactPublisherEmail2FAResult!\n """\n Update withdrawal settings for an Impact Publisher. Requires valid 2fa access key.\n """\n updateImpactPublisherWithdrawalSettings(\n updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!\n ): SetImpactPublisherWithdrawalSettingsResult!\n """\n Create or update an instant access user\n """\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: AuthenticateManagedIdentityWithInstantAccessInput!\n ): ManagedIdentityAuthenticationResult!\n """\n Creates an anonymous cookie user that can be upgraded to a regular\n """\n createCookieUser(\n createCookieUserInput: CreateCookieUserInput!\n ): CreateCookieUserResult!\n """\n Sends a preview of either a program email (if programId is specified) or a global email.\n\n The placeholders in the template will not be replaced with resolved values as no context\n is speficied, however this can be used to ensure that the general layout of an email looks\n correct in email clients.\n """\n sendPreviewEmail(\n programId: String\n emailKey: String!\n values: RSJsonNode\n toAddress: String!\n locale: String\n ): Boolean! @deprecated(reason: "Internal field.")\n updateTenant(tenantInput: TenantInput!): Tenant!\n updateTenantSettings(\n tenantSettingsInput: TenantSettingsInput!\n ): TenantSettings!\n testProgramSchedule(epochMilli: Long): [RSJsonNode!]!\n """\n Bulk custom code uploading for fueltank rewards\n """\n addCustomCodes(data: CustomCodesInput!): CustomCodeInsertResult!\n upsertCustomCodes(data: CustomCodesInput!): CustomCodeUpsertResult!\n deleteCustomCodes(\n data: CustomCodesInput!\n createdBefore: RSDate\n ): CustomCodeDeleteResult!\n upsertTranslationInstance(\n translationInstanceInput: TranslationInstanceInput!\n ): TranslationInstance!\n deleteTranslationInstance(\n id: TranslationInstanceId!\n ): TranslationInstanceDeleteResult!\n createJob(jobInput: JobInput!): Job!\n deleteJob(id: ID!): JobDeleteResult!\n rerunJob(rerunJobInput: RerunJobInput!): Job!\n upsertSegment(segmentInput: SegmentInput!): Segment!\n upsertUserMetric(userMetricInput: UserMetricInput!): UserMetric!\n @deprecated(reason: "User createUserMetric and setUserMetric instead.")\n """\n Create a UserMetric. Returns an error if a UserMetric with the given customFieldKey already exists.\n """\n createUserMetric(userMetricInput: UserMetricInput!): UserMetric!\n """\n Update an existing UserMetric. Returns an error if a UserMetric with the given customFieldKey does not exist.\n """\n setUserMetric(userMetricInput: UserMetricInput!): UserMetric!\n """\n Delete a UserMetric by customFieldKey\n """\n deleteUserMetric(customFieldKey: String!): UserMetricDeleteResult!\n """\n Log user events for a single user.\n This mutation is not available for Impact tenants and programs.\n """\n logUserEvent(userEventInput: UserEventInput!): UserEventResult!\n """\n Bulk version of logUserEvent\n """\n logUserEvents(userEventInputs: [UserEventInput!]!): [BulkUserEventResult!]!\n markRevenueEventAsTest(userEventId: ID!): MarkRevenueEventAsTestResult!\n blockUser(accountId: String!, id: String!): UserBlockingResult!\n unblockUser(accountId: String!, id: String!): UserBlockingResult!\n deleteUser(\n accountId: String!\n id: String!\n doNotTrack: Boolean! = false\n """\n Whether the account should be preserved if there are no users left\n """\n preserveEmptyAccount: Boolean! = true\n ): Boolean!\n deleteAccount(accountId: String!, doNotTrack: Boolean! = false): Boolean!\n deleteUserDoNotTrackIdentifier(\n id: String!\n accountId: String!\n ): UserDoNotTrackIdentifierDeleteResult!\n createReward(\n """\n https://docs.saasquatch.com/api/methods/#create_reward\n """\n rewardInput: RSJsonNode\n """\n The key for the GlobalRewardConfig to create this reward from\n """\n globalRewardKey: String\n """\n The ID of the program this reward should be attributed to\n """\n programId: ID\n userId: String!\n accountId: String!\n """\n The optional initial RewardStatus\n """\n status: RewardStatus\n ): FlatReward!\n updateRewardStatus(id: ID!, status: RewardStatus!): FlatReward!\n """\n Fully or partially redeem a credit reward\n """\n redeemRewardCredit(\n """\n The reward id to redeem\n """\n id: ID!\n """\n Additional options for redeeming the reward\n """\n redeemCreditInput: RedeemCreditInput!\n ): RedeemCreditResult!\n """\n Redeem one or multiple rewards of the given value for a user\n """\n redeemUserCredit(\n userId: String!\n accountId: String!\n """\n Additional options for redeeming the reward\n """\n redeemCreditInput: RedeemCreditInput!\n ): RedeemCreditResult!\n """\n Exchange a set amount of credit for another reward\n """\n exchangeReward(\n exchangeRewardInput: ExchangeRewardInput!\n ): ExchangeRewardResult!\n updateProgramEmailTransactionStatus(\n id: ID!\n status: EmailTransactionStatus!\n ): ProgramEmailTransaction!\n deleteProgramEmailTransaction(id: ID!): ProgramEmailTransactionDeleteResult!\n createUserAnalyticsEvent(eventMeta: UserAnalyticsEvent!): Boolean!\n moderateGraphNodes(\n graphNodeType: GraphNodeType!\n """\n Can be RewardFilterInput, ProgramEmailTransactionFilterInput,\n ReferralFilterInput, or UserEventDataFilterInput depending on the type\n """\n filter: RSJsonNode!\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n moderationInput: ModerationInput!\n ): GraphNodeModerationResultList!\n updatePortalProject(portalProjectInput: PortalProjectInput!): PortalProject!\n """\n Create or update a tenant integration\n """\n upsertIntegration(\n integrationInput: TenantIntegrationInput!\n ): TenantIntegration\n deleteIntegration(service: String!): TenantIntegrationDeleteResult!\n """\n Patch the config of a TenantIntegration\n """\n patchIntegrationConfig(\n service: String!\n """\n JSON Patch format (http://jsonpatch.com/)\n """\n configPatch: RSJsonNode!\n ): TenantIntegration!\n """\n Subscribes a URL to receive events via webhooks\n """\n upsertWebhookSubscription(\n webhookSubscriptionInput: WebhookSubscriptionInput!\n ): WebhookSubscription!\n """\n Removes a URL from receiving events via webhooks\n """\n deleteWebhookSubscription(\n endpointUrl: String!\n ): WebhookSubscriptionDeleteResult!\n """\n Sends a test event to the specified webhook\n """\n testWebhookSubscription(endpointUrl: String!): TestWebhookSubscriptionResult!\n """\n Upsert external metadata for a reward\n """\n upsertRewardMeta(rewardMetaInput: RewardMetaInput!): FlatReward!\n """\n Upsert the same external metadata for multiple rewards\n """\n bulkUpsertRewardMeta(\n bulkRewardMetaInput: BulkRewardMetaInput!\n ): BulkUpsertRewardMetaResult!\n """\n Upsert a RewardUnitSettings\n """\n upsertRewardUnitSettings(\n rewardUnitSettingsInput: RewardUnitSettingsInput!\n ): RewardUnitSettings!\n """\n Delete a RewardUnitSettings\n """\n deleteRewardUnitSettings(\n id: RewardUnitSettingsId!\n ): RewardUnitSettingsDeleteResult!\n """\n Clear the current tenant data if it\'s a test tenant\n """\n deleteTestTenantData: Boolean!\n """\n Set this tenant to hide classic or not\n """\n setHideClassic(hideClassic: Boolean!): Boolean!\n @deprecated(reason: "Internal field.")\n """\n Upsert a GlobalRewardConfig\n """\n upsertGlobalRewardConfig(\n globalRewardConfigInput: GlobalRewardConfigInput!\n ): GlobalRewardConfig!\n """\n Delete a GlobalRewardConfig\n """\n deleteGlobalRewardConfig(key: String!): GlobalRewardConfigDeleteResult!\n """\n Insert a new share link code\n """\n addShareLinkCode(\n addShareLinkCodeInput: AddShareLinkCodeInput!\n ): AddShareLinkCodeResult!\n """\n Delete a link code\n """\n deleteLinkCode(linkCode: String!): LinkCodeDeleteResult!\n """\n Make a share link code primary for its referral code\n """\n makeShareLinkCodePrimaryForReferralCode(\n linkCode: String!\n ): MakeShareLinkCodePrimaryResult!\n """\n Make a share link code primary for its program\n """\n makeShareLinkCodePrimaryForProgram(\n linkCode: String!\n ): MakeShareLinkCodePrimaryResult!\n """\n Insert a new referral code\n """\n addReferralCode(\n addReferralCodeInput: AddReferralCodeInput!\n ): AddReferralCodeResult!\n """\n Delete a referral code\n """\n deleteReferralCode(referralCode: String!): ReferralCodeDeleteResult!\n """\n Make a referral code primary for its program\n """\n makeReferralCodePrimaryForProgram(\n referralCode: String!\n ): MakeReferralCodePrimaryResult!\n """\n Edit a share link code\n """\n editShareLinkCode(\n editShareLinkCodeInput: EditShareLinkCodeInput!\n ): EditShareLinkCodeResult!\n """\n Edit a referral code\n """\n editReferralCode(\n editReferralCodeInput: EditReferralCodeInput!\n ): EditReferralCodeResult!\n markReferralCodeCopied(referralCode: String!): MarkReferralCodeCopiedResult!\n """\n Create a form\n """\n createForm(formInput: FormInput!): Form!\n """\n Update a form\n """\n updateForm(formInput: FormInput!): Form!\n """\n Delete a form by key. A form with more than 1000 submissions cannot be deleted.\n """\n deleteForm(key: String!): FormDeleteResult!\n """\n Submit a form\n """\n submitForm(formSubmissionInput: FormSubmissionInput!): FormSubmissionResult!\n """\n Delete a FormSubmissionRecord by id\n """\n deleteFormSubmissionRecord(id: ID!): FormSubmissionRecordDeleteResult!\n """\n Create a GlobalEmailConfig\n """\n createGlobalEmailConfig(\n globalEmailConfigInput: GlobalEmailConfigInput!\n ): GlobalEmailConfig!\n """\n Update a GlobalEmailConfig\n """\n updateGlobalEmailConfig(\n globalEmailConfigInput: GlobalEmailConfigInput!\n ): GlobalEmailConfig!\n """\n Delete a GlobalEmailConfig by key\n """\n deleteGlobalEmailConfig(key: String!): GlobalEmailConfigDeleteResult!\n """\n Create a GlobalWidgetConfig\n """\n createGlobalWidgetConfig(\n globalWidgetConfigInput: GlobalWidgetConfigInput!\n ): GlobalWidgetConfig!\n """\n Update a GlobalWidgetConfig\n """\n updateGlobalWidgetConfig(\n globalWidgetConfigInput: GlobalWidgetConfigInput!\n ): GlobalWidgetConfig!\n """\n Delete a GlobalWidgetConfig by key\n """\n deleteGlobalWidgetConfig(key: String!): GlobalWidgetConfigDeleteResult!\n """\n Queue a global email for sending\n """\n queueGlobalEmail(\n queueGlobalEmailInput: QueueGlobalEmailInput!\n ): ProgramEmailTransaction!\n """\n Registers a user with managed identity, given an email and password\n """\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: RegisterManagedIdentityWithEmailAndPasswordInput!\n ): ManagedIdentityAuthenticationResult!\n @deprecated(reason: "Use registration forms instead.")\n """\n Authenticate a user with managed identity, given an email and password\n """\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: AuthenticateManagedIdentityWithEmailAndPasswordInput!\n ): ManagedIdentityAuthenticationResult!\n """\n Authenticate a user with managed identity, given a Google ID token\n """\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: AuthenticateManagedIdentityWithGoogleInput!\n ): ManagedIdentityAuthenticationResult!\n """\n Change a user\'s managed identity password\n """\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: ChangeManagedIdentityPasswordInput!\n ): ManagedIdentitySuccessResult!\n """\n Request a new email verification email for a given identity.\n\n If no managed identity exists with the given email, or that identity is already verified,\n no email will be sent.\n """\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: RequestManagedIdentityEmailInput!\n ): ManagedIdentitySuccessResult!\n """\n Verify a managed identity email address with an out-of-band (OOB) code\n """\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: VerifyManagedIdentityEmailInput!\n ): ManagedIdentitySuccessResult!\n """\n Request a password reset email for a given identity.\n\n If no managed identity exists with the given email, no email will be sent.\n """\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: RequestManagedIdentityEmailInput!\n ): ManagedIdentitySuccessResult!\n """\n Verify a managed identity password reset out-of-band (OOB) code\n """\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: VerifyManagedIdentityPasswordResetCodeInput!\n ): ManagedIdentitySuccessResult!\n """\n Change the password of a managed identity, given a new password and an out-of-band (OOB) code\n """\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: ResetManagedIdentityPasswordInput!\n ): ManagedIdentityAuthenticationResult!\n """\n Set the current tenant\'s microsite hosting config\n """\n setMicrositeHostingConfig(\n """\n Schema defined at https://fast.ssqt.io/npm/@saasquatch/schema/json/HostedPortalConfig.schema.json\n """\n config: RSJsonNode!\n ): MicrositeHostingConfig!\n """\n Set the current tenant\'s managed identity config\n """\n setManagedIdentityConfig(\n """\n Schema defined at https://fast.ssqt.io/npm/@saasquatch/schema/json/ManagedIdentityConfig.schema.json\n """\n config: RSJsonNode!\n ): ManagedIdentityConfig!\n """\n Create a new microsite layout config\n - The provided key must uniquely identify the new layout config\n - The parentKey (if provided) must refer to an existing layout config\n """\n createMicrositeLayoutConfig(\n micrositeLayoutConfigInput: MicrositeLayoutConfigInput!\n ): MicrositeLayoutConfig!\n """\n Update a microsite layout config\n """\n updateMicrositeLayoutConfig(\n micrositeLayoutConfigInput: MicrositeLayoutConfigInput!\n ): MicrositeLayoutConfig!\n """\n Delete a microsite layout config\n """\n deleteMicrositeLayoutConfig(key: String!): MicrositeLayoutConfigDeleteResult!\n """\n Create a new microsite page config\n - The provided key must uniquely identify the new page config\n - The provided urlPath must be unique amongst all pages\n """\n createMicrositePageConfig(\n micrositePageConfigInput: MicrositePageConfigInput!\n ): MicrositePageConfig!\n """\n Update a microsite page config\n """\n updateMicrositePageConfig(\n micrositePageConfigInput: MicrositePageConfigInput!\n ): MicrositePageConfig!\n """\n Delete a microsite page config\n """\n deleteMicrositePageConfig(key: String!): MicrositePageConfigDeleteResult!\n """\n Auto setup a microsite, creating all of the components required for the given template.\n If a programId is provided, the mircosite sqb-program-section component will use this program id\n\n Requirements:\n - Microsite hosting has never been enabled\n - Managed identity has never been enabled\n - That none of the forms, emails, layouts, or pages that would be created by the template\n already exist\n """\n autoSetupMicrosite(\n templateKey: String!\n """\n Handlebars context that will be applied to the html of the Page and Layout templates.\n Templates will default to valid values if no context is provided\n """\n context: RSJsonNode\n ): AutoSetupMicrositeResult!\n """\n Destroy all microsite components from any microsite template. Useful for testing.\n """\n destroyMicrosite: Boolean! @deprecated(reason: "Internal field.")\n """\n Set multiple portal users\' role within this project. Administrators cannot change their own role.\n """\n setPortalUserRoles(identities: [ID!]!, roleId: ID!): SetPortalUserRolesResult!\n """\n Remove multiple portal users from this project. Administrators cannot remove themselves from the project.\n """\n removePortalUsersFromPortalProject(\n identities: [ID!]!\n ): RemovePortalUsersFromPortalProjectResult!\n """\n Invite email addresses to a project with a given role. Invite emails will be sent to new users.\n """\n inviteEmailsToPortalProject(\n emails: [String!]!\n roleId: ID!\n ): InviteEmailsToPortalProjectResult!\n """\n Resend an invite to a pending portal user.\n """\n resendPortalProjectInviteEmail(\n identity: ID!\n ): ResendPortalProjectInviteEmailResult!\n """\n Send a portal email to the specified recipients.\n This mutation requires the machine portal user permission.\n """\n sendPortalEmail(\n sendPortalEmailInput: SendPortalEmailInput!\n ): SendPortalEmailResult!\n """\n Reset the tenant API key to a new one that is randomly generated\n """\n regenerateTenantApiKey: String!\n createRewardExchangeRule(\n rewardExchangeRuleInput: RewardExchangeRuleInput!\n ): RewardExchangeRule!\n updateRewardExchangeRule(\n rewardExchangeRuleInput: RewardExchangeRuleInput!\n ): RewardExchangeRule!\n deleteRewardExchangeRule(key: String!): RewardExchangeRuleDeleteResult!\n """\n Create a domain under the current users organization\n Optionally specify domain uses\n """\n createDomain(domainInput: DomainInput!): Domain!\n """\n Delete a domain\n """\n deleteDomain(domain: String!): DomainDeleteResult!\n """\n Select which uses you wish to use theis domain for.\n """\n addDomainUses(domain: String!, domainUses: [DomainUse!]!): Domain!\n """\n Set a domain\'s required auth type\n """\n setDomainRequiredAuthType(\n domain: String!\n requiredAuthType: DomainAuthType!\n ): Domain!\n """\n Check DNS records and configuration state of a domain and updates the domain.\n """\n checkDomainConfigurationState(domain: String!): Domain!\n """\n Starts the SSO setup process and will generate a ssoSetupUrl on the domain\n """\n setupSsoForDomain(domain: String!): Domain!\n """\n Sets primary and secondary custom link domains for the tenant. Null input fields will unset values.\n """\n setTenantCustomLinkDomains(\n tenantCustomLinkDomainsInput: TenantCustomLinkDomainsInput!\n ): TenantSettings!\n startImpactSession(token: String!): StartImpactSessionResult!\n endImpactSession(token: String!): EndImpactSessionResult!\n deleteReferral(id: ID!): ReferralDeleteResult!\n refreshMatchedImpactPartnerForUser(\n user: UserIdInput!\n ): RefreshMatchedImpactPartnerForUserResult!\n createRelationshipBetweenPartnerAndProgram(\n impactPartnerId: ID!\n impactProgramId: ID!\n ): CreateRelationshipBetweenPartnerAndProgramResult!\n setEnforceUsTaxCompliance(\n enforceUsTaxComplianceOption: EnforceTaxComplianceOption!\n ): TenantSettings!\n refreshImpactPublisherFinanceStatus(user: UserIdInput!): User!\n """\n Set a portal storage entry\n """\n upsertPortalStorageEntry(\n portalStorageEntryInput: PortalStorageEntryInput!\n ): PortalStorageEntry!\n deletePortalStorageEntry(\n key: ID!\n programId: ID\n ): PortalStorageEntryDeleteResult!\n deleteCookieUser(cookieId: ID!): CookieUserDeleteResult!\n}\n\ninput PortalStorageEntryInput {\n """\n The key of the portal storage entry\n """\n key: ID!\n """\n Optionally scope the entry to a program by program id\n """\n programId: ID\n """\n The JSON object to store\n """\n values: RSJsonNode!\n dateExpires: RSDate\n}\n\ntype PortalStorageEntry {\n key: ID!\n programId: ID\n values: RSJsonNode!\n dateCreated: RSDate!\n dateModified: RSDate\n dateExpires: RSDate\n}\n\ntype PortalStorageEntryDeleteResult {\n deletedCount: Long!\n}\n\ntype RequestUserEmailVerificationResult {\n success: Boolean!\n}\n\ntype RequestImpactPublisherEmail2FAResult {\n success: Boolean!\n}\n\ntype ImpactPublisherEmail2FAResult {\n """\n The email that was used for 2fa verification\n """\n verifiedEmail: String!\n """\n Time limited single use access key\n """\n accessKey: String!\n}\n\ninput SetImpactPublisherWithdrawalSettingsInput {\n user: UserIdInput!\n paymentMethod: ImpactPublisherPaymentMethod!\n paypalEmailAddress: String\n beneficiaryAccountName: String\n bankCountry: String\n beneficiaryClassification: ImpactPublisherBeneficiaryClassification\n beneficiaryAlternativeName: String\n beneficiaryTaxPayerId: String\n bankAccountType: ImpactPublisherBankAccountType\n bankAccountNumber: String\n swiftCode: String\n routingCode: String\n voCode: String\n agencyCode: String\n bankAddress: String\n bankPostalCode: String\n bankCity: String\n bankState: String\n bankName: String\n branchCode: String\n branchName: String\n classificationCode: String\n paymentSchedulingType: ImpactPublisherPaymentSchedulingType\n paymentThreshold: String\n paymentDay: String\n}\n\ninput UpdateImpactPublisherWithdrawalSettingsInput {\n user: UserIdInput!\n paymentMethod: ImpactPublisherPaymentMethod!\n accessKey: String!\n paypalEmailAddress: String\n beneficiaryAccountName: String\n bankCountry: String\n beneficiaryClassification: ImpactPublisherBeneficiaryClassification\n beneficiaryAlternativeName: String\n beneficiaryTaxPayerId: String\n bankAccountType: ImpactPublisherBankAccountType\n bankAccountNumber: String\n swiftCode: String\n routingCode: String\n voCode: String\n agencyCode: String\n bankAddress: String\n bankPostalCode: String\n bankCity: String\n bankState: String\n bankName: String\n branchCode: String\n branchName: String\n classificationCode: String\n paymentSchedulingType: ImpactPublisherPaymentSchedulingType\n paymentThreshold: String\n paymentDay: String\n}\n\n"""\nInput for creating or updating an impact partner for a user\n"""\ninput ImpactConnectionInput {\n user: UserIdInput!\n firstName: String!\n lastName: String!\n address: String\n city: String\n state: String\n postalCode: String\n countryCode: RSCountryCode!\n currency: RSCurrencyCode!\n phoneNumberCountryCode: RSCountryCode\n phoneNumber: String\n indirectTaxCountryCode: RSCountryCode\n indirectTaxRegion: String\n indirectTaxId: String\n additionalTaxId: String\n withholdingTaxId: String\n}\n\ninput CreateImpactPublisherTaxDocumentInput {\n user: UserIdInput!\n isBusinessEntity: Boolean @deprecated(reason: "Ignored by COMPLY_EXCHANGE")\n provider: ImpactPublisherTaxDocumentProvider\n @deprecated(reason: "COMPLY_EXCHANGE will always be used")\n}\n\nenum ImpactPublisherTaxDocumentProvider {\n DOCUSIGN @deprecated(reason: "COMPLY_EXCHANGE will always be used")\n COMPLY_EXCHANGE\n}\n\n"""\nDomain input for creating domains and setting uses\n"""\ninput DomainInput {\n """\n The domain name\n """\n domain: String!\n """\n The intended uses for this domain\n """\n domainUses: [DomainUse!]!\n """\n The organization ID\n """\n organizationId: ID!\n}\n\ninput DomainFilterInput {\n AND: [DomainFilterInput!]\n OR: [DomainFilterInput!]\n domain_eq: String\n domain_in: [String!]\n dateOwnershipVerified_exists: Boolean\n}\n\n"""\nUser ID input that identifies a user\n"""\ninput UserIdInput {\n """\n User ID\n """\n id: String!\n """\n Account ID\n """\n accountId: String!\n}\n\n"""\nA SaaSquatch form\n"""\ntype Form {\n """\n The form key\n """\n key: String!\n """\n The human readable name of the form\n """\n name: String\n """\n The type of the form\n """\n type: FormType!\n """\n The JSON schema used for validating form data\n """\n schema: JsonSchema\n """\n The date this form was created. This field is auto generated.\n """\n dateCreated: RSDate!\n """\n The date this form was last modified. This field is auto generated.\n """\n dateModified: RSDate\n """\n The JSONata expression that produces the initial data\n """\n initialDataTransformer: JSONata\n """\n The JSONata expression that checks if this form is enabled\n """\n isEnabledPredicate: JSONata\n """\n Email addresses to receive successful form submission notifications\n """\n successNotificationEmails: [String!]!\n """\n Email addresses to receive failed form submission notifications\n """\n failureNotificationEmails: [String!]!\n """\n Segment operations to apply to a user for successful form submissions\n """\n successSegments: [SegmentOperation!]!\n """\n Segment operations to apply to a user for failed form submissions\n """\n failureSegments: [SegmentOperation!]!\n """\n Detailed information of successSegments\n """\n successSegmentsDetails: [SegmentOperationDetails!]!\n """\n Detailed information of failureSegments\n """\n failureSegmentsDetails: [SegmentOperationDetails!]!\n """\n The meta of this form\n """\n meta: FormMeta!\n """\n Get the initial data of this form in the current context\n """\n initialData(\n """\n Optional user identifier\n """\n user: UserIdInput\n ): FormInitialDataResult!\n """\n Get the integration specific config for a service\n """\n integrationConfig(service: String!): RSJsonNode\n """\n Get all the integration specific configs of this form\n """\n integrationConfigs: [FormIntegrationConfig!]!\n """\n The global level config\n """\n globalConfig: RSJsonNode!\n """\n Whether anonymous submissions without identified users are allowed\n """\n allowAnonymousSubmissions: Boolean!\n}\n\n"""\nInput of submitForm\n"""\ninput FormSubmissionInput {\n """\n The form key\n """\n key: String!\n """\n The form data to submit\n """\n formData: RSJsonNode!\n """\n Optional user identifier\n """\n user: UserIdInput\n}\n\n"""\nInput of validateForm\n"""\ninput FormValidationInput {\n """\n The form key\n """\n key: String!\n """\n The form data to submit\n """\n formData: RSJsonNode!\n """\n Optional user identifier\n """\n user: UserIdInput\n}\n\n"""\nThe result of the form initial data request\n"""\ntype FormInitialDataResult {\n """\n The initial data result\n """\n initialData: RSJsonNode\n """\n Whether this form is enabled in the current context\n """\n isEnabled: Boolean!\n """\n The optional error message for why a form is disabled\n """\n isEnabledErrorMessage: String\n """\n The results from individual form handlers\n """\n results: [FormHandlerInitialDataResultResponse!]!\n """\n The form for this initial data result\n """\n form: Form!\n}\n\n"""\nThe response of a form handler initial data request\n"""\nunion FormHandlerInitialDataResultResponse =\n | FormHandlerInitialDataResult\n | FormHandlerError\n\n"""\nThe single result from a form handler of an initial data request\n"""\ntype FormHandlerInitialDataResult {\n """\n The input data for initial data of this form handler\n """\n inputData: RSJsonNode\n """\n The form handler\n """\n formHandler: FormHandler\n}\n\n"""\nA form handler\n"""\ntype FormHandler {\n """\n The name of this form handler\n """\n name: String\n """\n The endpoint URL of this form handler\n """\n endpointUrl: String!\n """\n The integration that manages this form handler\n """\n integration: TenantIntegration\n """\n The namespace of this FormHandler.\n It should match the namespace of its integration, if there is one.\n """\n namespace: String!\n """\n Get the meta for a form key\n """\n meta(key: String!): FormHandlerMetaResponse!\n}\n\n"""\nThe meta information of a form\n"""\ntype FormMeta {\n """\n The meta for individual form handlers\n """\n formHandlerMeta: [FormHandlerMetaResponse!]!\n """\n The JSON schema of the input data for initial data\n """\n inputDataSchema: JsonSchema!\n}\n\n"""\nThe response of a form handler meta request\n"""\nunion FormHandlerMetaResponse = FormHandlerMeta | FormHandlerError\n\n"""\nMeta result from a form handler\n"""\ntype FormHandlerMeta {\n """\n The actions this form handler is supposed to perform\n """\n actions: [FormHandlerMetaAction!]!\n """\n The input data this form handler is supposed to provide\n """\n inputData: [FormHandlerMetaInputDataInfo!]!\n """\n The schema of the input data provided by this form handler\n """\n inputDataSchema: JsonSchema!\n """\n The form handler\n """\n formHandler: FormHandler\n}\n\n"""\nThe form handler action metadata\n"""\ntype FormHandlerMetaAction {\n """\n The action name\n """\n name: String!\n """\n Optional description\n """\n description: String\n}\n\n"""\nThe form handler input data metadata\n"""\ntype FormHandlerMetaInputDataInfo {\n """\n The input data field name\n """\n name: String!\n """\n Optional description\n """\n description: String\n}\n\n"""\nPagination list for Form\n"""\ntype FormList {\n data: [Form!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nResult for deleteForm\n"""\ntype FormDeleteResult {\n deletedCount: Long!\n}\n\n"""\nIntegration specific config for a form\n"""\ntype FormIntegrationConfig {\n """\n The integration service\n """\n service: String!\n """\n The config JSON\n """\n config: RSJsonNode\n """\n The integration corresponding to the service\n """\n integration: TenantIntegration\n}\n\n"""\nInput for a SaaSquatch form\n"""\ninput FormInput {\n """\n The form key\n """\n key: String!\n """\n The human readable name of the form\n """\n name: String\n """\n The type of the form\n """\n type: FormType\n """\n The JSON schema used for validating form data\n """\n schema: JsonSchema\n """\n The JSONata expression that produces the initial data\n """\n initialDataTransformer: JSONata\n """\n The JSONata expression that checks if this form is enabled\n """\n isEnabledPredicate: JSONata\n """\n Email addresses to receive successful form submission notifications\n """\n successNotificationEmails: [String!]\n """\n Email addresses to receive failed form submission notifications\n """\n failureNotificationEmails: [String!]\n """\n Segment operations to apply to a user for successful form submissions\n """\n successSegments: [SegmentOperation!]\n """\n Segment operations to apply to a user for failed form submissions\n """\n failureSegments: [SegmentOperation!]\n """\n All the integration configs of this form\n """\n integrationConfigs: [FormIntegrationConfigInput!]\n """\n The global level config\n """\n globalConfig: RSJsonNode\n """\n Whether anonymous submissions without identified users are allowed. False by default.\n """\n allowAnonymousSubmissions: Boolean\n}\n\nenum FormType {\n """\n A custom form with a user-specified schema\n """\n CUSTOM\n """\n A registration form to be used with microsite registration\n """\n REGISTRATION\n}\n\n"""\nInput for FormIntegrationConfig\n"""\ninput FormIntegrationConfigInput {\n """\n The integration service\n """\n service: String!\n """\n The JSON config\n """\n config: RSJsonNode\n}\n\n"""\nUnified error type from a form handler\n"""\ntype FormHandlerError {\n """\n The form handler\n """\n formHandler: FormHandler\n """\n The type of this error\n """\n errorType: FormHandlerErrorType!\n """\n The human readable error message\n """\n error: String\n """\n The error code defined by the form handler\n """\n errorCode: String\n}\n\n"""\nThe type of a form handler error\n"""\nenum FormHandlerErrorType {\n """\n The form handler cannot be connected\n """\n CONNECTION_ERROR\n """\n The form handler can be connected, but returns unexpected status codes\n """\n UNEXPECTED_STATUS_CODE\n """\n The form handler returns with invalid response format\n """\n INVALID_RESPONSE\n """\n The form handler returns a valid error\n """\n DOWNSTREAM_ERROR\n}\n\n"""\nResult of a form submission\n"""\ntype FormSubmissionResult {\n """\n Whether this submission is valid\n """\n success: Boolean!\n """\n Individual results from form handlers\n """\n results: [FormHandlerSubmissionResponse!]!\n """\n The resulting form submission record\n """\n formSubmissionRecord: FormSubmissionRecord\n}\n\n"""\nResult of a form submission\n"""\ntype FormValidationResult {\n """\n Whether this validation is valid\n """\n valid: Boolean!\n """\n Individual results from form handlers\n """\n results: [FormHandlerValidationResponse!]!\n}\n\n"""\nThe response of a form handler submission request\n"""\nunion FormHandlerSubmissionResponse =\n | FormHandlerSubmissionResult\n | FormHandlerError\n\n"""\nSubmission result from a form handler\n"""\ntype FormHandlerSubmissionResult {\n """\n The form handler\n """\n formHandler: FormHandler\n """\n The JSON result from the form handler\n """\n result: RSJsonNode!\n}\n\n"""\nThe response of a form handler validation request\n"""\nunion FormHandlerValidationResponse =\n | FormHandlerValidationResult\n | FormHandlerError\n\n"""\nValidation result from a form handler\n"""\ntype FormHandlerValidationResult {\n """\n The form handler\n """\n formHandler: FormHandler\n """\n The JSON result from the form handler\n """\n result: RSJsonNode!\n}\n\n"""\nA record for a form submission\n"""\ntype FormSubmissionRecord {\n """\n Randomly generated unique ID\n """\n id: ID!\n """\n The key of the form that did the submission\n """\n formKey: String!\n """\n The schema of the form at the time of the submission\n """\n schema: JsonSchema\n """\n Email addresses to receive successful form submission notifications at the time of submission\n """\n successNotificationEmails: [String!]!\n """\n Email addresses to receive failed form submission notifications at the time of submission\n """\n failureNotificationEmails: [String!]!\n """\n Segment operations to apply to a user for successful form submissions at the time of submission\n """\n successSegments: [SegmentOperation!]!\n """\n Segment operations to apply to a user for failed form submissions at the time of submission\n """\n failureSegments: [SegmentOperation!]!\n """\n The effective logical segment operations that were actually applied for this submission\n """\n effectiveSegments: [SegmentOperation!]!\n """\n Detailed information of successSegments\n """\n successSegmentsDetails: [SegmentOperationDetails!]!\n """\n Detailed information of failureSegments\n """\n failureSegmentsDetails: [SegmentOperationDetails!]!\n """\n Detailed information of effectiveSegments\n """\n effectiveSegmentsDetails: [SegmentOperationDetails!]!\n """\n The form data\n """\n formData: RSJsonNode\n """\n The user that submitted the form\n """\n user: User\n """\n The date the form was submitted\n """\n dateSubmitted: RSDate!\n """\n Whether the submission was successful\n """\n success: Boolean!\n """\n Submission results\n """\n results: [FormSubmissionRecordResponse!]!\n """\n Access log information about this form submission\n """\n updatedBy: RSUpdatedBy\n """\n The form that did the submission\n """\n form: Form\n}\n\n"""\nPagination list for FormSubmissionRecord\n"""\ntype FormSubmissionRecordList {\n data: [FormSubmissionRecord!]!\n count: Int!\n}\n\n"""\nResult for deleteFormSubmissionRecord\n"""\ntype FormSubmissionRecordDeleteResult {\n deletedCount: Long!\n}\n\n"""\nThe recorded response in a FormSubmissionRecord\n"""\nunion FormSubmissionRecordResponse =\n | FormSubmissionRecordResult\n | FormSubmissionRecordError\n\n"""\nThe submission result of a form stored in FormSubmissionRecord\n"""\ntype FormSubmissionRecordResult {\n """\n The form handler that generated this result\n """\n formHandler: FormHandler\n """\n The result received from the form handler\n """\n result: RSJsonNode!\n}\n\n"""\nThe submission error result of a form stored in FormSubmissionRecord\n"""\ntype FormSubmissionRecordError {\n """\n The form handler that generated this result\n """\n formHandler: FormHandler\n """\n The type of this error\n """\n errorType: FormHandlerErrorType!\n """\n The error message\n """\n error: String\n """\n The error code defined by the form handler\n """\n errorCode: String\n}\n\n"""\nFilter type for FormSubmissionRecord\n"""\ninput FormSubmissionRecordFilterInput {\n id_eq: ID\n formKey_eq: String\n dateSubmitted_gte: RSDate\n dateSubmitted_lt: RSDate\n dateSubmitted_timeframe: RSRelativeTimeframe\n dateSubmitted_interval: IsoInterval\n success_eq: Boolean\n}\n\ninput EditReferralCodeInput {\n """\n The existing referral code to be edited\n """\n existingReferralCode: String!\n """\n The new referral code\n """\n newReferralCode: String!\n """\n Whether the existing referral code should be replaced/deleted. false by default.\n """\n deleteExisting: Boolean\n """\n Whether the share links associated with the existing referral code should be\n transferred to the new referral code. false by default.\n """\n transferShareLinks: Boolean\n}\n\ntype EditReferralCodeResult {\n referralCode: ReferralCode!\n}\n\ntype MarkReferralCodeCopiedResult {\n referralCode: ReferralCode!\n}\n\ninput EditShareLinkCodeInput {\n """\n The existing share link code to be edited\n """\n existingLinkCode: String!\n """\n The new share link code\n """\n newLinkCode: String!\n """\n Whether the existing share link code should be replaced/deleted. false by default.\n """\n deleteExisting: Boolean\n}\n\ntype EditShareLinkCodeResult {\n linkCode: ShareLinkCode!\n}\n\ntype LinkCodeDeleteResult {\n deletedCount: Long!\n}\n\ntype MakeShareLinkCodePrimaryResult {\n """\n The new primary share link code\n """\n linkCode: ShareLinkCode!\n """\n The previous primary share link code if one exists\n """\n previousPrimary: ShareLinkCode\n}\n\ninput AddShareLinkCodeInput {\n linkCode: String!\n referralCode: String\n userId: String!\n accountId: String!\n programId: ID!\n """\n Whether the added share link should be set as the primary for the referral code.\n false by default.\n """\n makeShareLinkCodePrimaryForReferralCode: Boolean\n}\n\n"""\nA link code for a share link or message link\n"""\ninterface LinkCode {\n linkCode: String!\n """\n The link this link code represents in the default custom short domain, if available.\n """\n shortUrl(\n shareMedium: ReferralShareMedium! = UNKNOWN\n engagementMedium: UserEngagementMedium! = UNKNOWN\n ): String!\n """\n The link domains this link code can be used with\n """\n supportedLinkDomains: [LinkDomain!]!\n}\n\n"""\nA link code for a share link\n"""\ntype ShareLinkCode implements LinkCode {\n linkCode: String!\n shortUrl(\n shareMedium: ReferralShareMedium! = UNKNOWN\n engagementMedium: UserEngagementMedium! = UNKNOWN\n ): String!\n supportedLinkDomains: [LinkDomain!]!\n referralCode: ReferralCode\n user: User\n program: Program\n """\n Whether this link code is the primary for its referral code\n """\n isPrimaryForReferralCode: Boolean!\n """\n Whether this link code is the primary for its program\n """\n isPrimaryForProgram: Boolean!\n """\n Whether this link code is a manually created vanity code\n """\n isVanity: Boolean!\n}\n\n"""\nA link code for a message link\n"""\ntype MessageLinkCode implements LinkCode {\n linkCode: String!\n shortUrl(\n shareMedium: ReferralShareMedium! = UNKNOWN\n engagementMedium: UserEngagementMedium! = UNKNOWN\n ): String!\n supportedLinkDomains: [LinkDomain!]!\n user: User\n program: Program\n}\n\n"""\nA link code for a fallback URL\n"""\ntype FallbackLinkCode implements LinkCode {\n linkCode: String!\n shortUrl(\n shareMedium: ReferralShareMedium! = UNKNOWN\n engagementMedium: UserEngagementMedium! = UNKNOWN\n ): String!\n supportedLinkDomains: [LinkDomain!]!\n}\n\n"""\nA link code for a classic widget preview URL\n"""\ntype PreviewLinkCode implements LinkCode {\n linkCode: String!\n shortUrl(\n shareMedium: ReferralShareMedium! = UNKNOWN\n engagementMedium: UserEngagementMedium! = UNKNOWN\n ): String!\n supportedLinkDomains: [LinkDomain!]!\n}\n\n"""\nA link code for a generic shortened URL\n"""\ntype ShortenedUrlLinkCode implements LinkCode {\n linkCode: String!\n shortUrl(\n shareMedium: ReferralShareMedium! = UNKNOWN\n engagementMedium: UserEngagementMedium! = UNKNOWN\n ): String!\n supportedLinkDomains: [LinkDomain!]!\n """\n The destination url for this link code\n """\n destinationUrl: String!\n}\n\ntype ShareLinkCodeList {\n data: [ShareLinkCode!]!\n count: Int!\n totalCount: Long\n}\n\ntype AddShareLinkCodeResult {\n linkCode: ShareLinkCode!\n}\n\ntype ValidateLinkCodeResult {\n valid: Boolean!\n invalidReason: LinkCodeInvalidReason\n}\n\nenum LinkCodeInvalidReason {\n BLANK_CODE\n MAX_LENGTH_EXCEEDED\n INVALID_CHARACTER\n CUSTOM_LINK_DOMAIN_REQUIRED\n BLOCKED_WORD\n EXISTING_CODE_CONFLICT\n}\n\n"""\nA referral code\n"""\ntype ReferralCode {\n """\n The referral code string\n """\n code: String!\n """\n Whether this referral code is the primary for its program\n """\n isPrimaryForProgram: Boolean!\n fuelTank: Boolean!\n singleUse: Boolean!\n dateUsed: RSDate\n dateCopied: RSDate\n """\n The program for this code\n """\n program: Program\n programId: ID\n """\n The user for this code\n """\n user: User\n """\n The share link codes associated with this referral code\n """\n shareLinkCodes(limit: Int! = 20, offset: Int! = 0): ShareLinkCodeList!\n referrals(\n filter: ReferralFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): ReferralList\n}\n\ntype ReferralCodeList {\n data: [ReferralCode!]!\n count: Int!\n totalCount: Long\n}\n\ntype ReferralCodeDeleteResult {\n deletedCount: Long!\n}\n\ntype MakeReferralCodePrimaryResult {\n """\n The new primary referral code\n """\n referralCode: ReferralCode!\n """\n The previous primary referral code, if one exists\n """\n previousPrimary: ReferralCode\n}\n\ninput AddReferralCodeInput {\n referralCode: String!\n programId: ID!\n userId: String!\n accountId: String!\n """\n Whether the added referral code should be set as the primary for the program.\n false by default.\n """\n makeReferralCodePrimaryForProgram: Boolean\n}\n\ntype AddReferralCodeResult {\n referralCode: ReferralCode!\n}\n\ninput ReferralCodeFilterInput {\n AND: [ReferralCodeFilterInput!]\n OR: [ReferralCodeFilterInput!]\n programId_eq: ID\n programId_in: [ID!]\n fuelTank_eq: Boolean\n singleUse_eq: Boolean\n dateUsed_exists: Boolean\n dateCopied_exists: Boolean\n}\n\n"""\nA custom domain for links, e.g. "example.com"\n"""\ntype LinkDomain {\n host: String!\n scheme: String!\n}\n\ninput RewardMetaInput {\n """\n The id of the reward to be updated\n """\n rewardId: ID!\n """\n The status of the RewardMeta\n """\n status: RewardMetaStatus!\n """\n The message of the RewardMeta\n """\n message: String\n """\n The internal message of the RewardMeta\n """\n internalMessage: String\n """\n The integration service that manages this RewardMeta\n """\n integrationService: String\n """\n The custom defined metadata\n """\n customMeta: RSJsonNode\n}\n\ninput BulkRewardMetaInput {\n """\n The ids of the rewards to be updated\n """\n rewardIds: [ID!]!\n """\n The status of the RewardMeta\n """\n status: RewardMetaStatus!\n """\n The message of the RewardMeta\n """\n message: String\n """\n The internal message of the RewardMeta\n """\n internalMessage: String\n """\n The integration service that manages this RewardMeta\n """\n integrationService: String\n """\n The custom defined metadata\n """\n customMeta: RSJsonNode\n}\n\ntype BulkUpsertRewardMetaResult {\n success: Boolean!\n}\n\nenum RSSortOrder {\n ASC\n DESC\n}\n\ninput RSSortByInput {\n field: String!\n order: RSSortOrder!\n}\n\ntype ZonedDateTime {\n offset: String!\n zone: String!\n year: Int!\n monthValue: Int!\n month: Month!\n dayOfMonth: Int!\n dayOfYear: Int!\n dayOfWeek: DayOfWeek!\n hour: Int!\n minute: Int!\n second: Int!\n nano: Int!\n epochMilli: RSDate!\n}\n\nenum Month {\n JANUARY\n FEBRUARY\n MARCH\n APRIL\n MAY\n JUNE\n JULY\n AUGUST\n SEPTEMBER\n OCTOBER\n NOVEMBER\n DECEMBER\n}\n\nenum DayOfWeek {\n MONDAY\n TUESDAY\n WEDNESDAY\n THURSDAY\n FRIDAY\n SATURDAY\n SUNDAY\n}\n\n"""\nStatic information about currencies. See: https://www.geoips.com/en/resources/currencies\n"""\ntype RSCurrency {\n """\n 3-letter ISO standard currency code e.g. "USD" or "GBP"\n """\n currencyCode: RSCurrencyCode!\n """\n Human-readable currency name e.g. "US Dollars" or "Euro"\n """\n displayName(locale: RSLocale): String!\n """\n The display name for the default locale of this currency.\n """\n localizedDisplayName: String!\n """\n The symbol of this currency for the specified locale.\n For example, for the US Dollar, the symbol is "$" if the specified locale is the US,\n while for other locales it may be "US$".\n If no symbol can be determined, the ISO 4217 currency code is returned.\n """\n symbol(locale: RSLocale): String!\n """\n The symbol for the default locale of this currency.\n Note that the result may be incorrect for non-circulating currencies.\n """\n localizedSymbol: String!\n """\n The ISO 4217 numeric code of this currency.\n """\n numericCode: Int!\n """\n The default number of fraction digits used with this currency.\n For example, the default number of fraction digits for the Euro is 2,\n while for Libyan Dinar it\'s 3.\n """\n fractionDigits: Int!\n """\n Human-readable non-plural name of the factional unit. e.g. "Cent" See:\n https://www.geoips.com/en/resources/currencies\n """\n fractionalUnit: String\n """\n An integer representing the fractional unit to basic unit conversion. Usually 100.\n """\n numberToBasic: Int!\n format(\n number: Float!\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n formatFractionalUnit(\n number: Float!\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n}\n\ntype RSCurrencyList {\n data: [RSCurrency!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nStatic information about a country\n"""\ntype RSCountry {\n """\n The ISO 3166-1 Alpha-2 country code\n """\n countryCode: RSCountryCode!\n """\n Human-readable country name e.g. "Canada"\n """\n displayName(locale: RSLocale): String!\n """\n The default locale of this country in the system\n """\n defaultLocale: RSLocale\n """\n The Impact country code\n """\n impactCountryCode: String\n}\n\n"""\nPagination list for RSCountry\n"""\ntype RSCountryList {\n data: [RSCountry!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nStatic information about a language\n"""\ntype RSLanguage {\n """\n The ISO 639-1 language code\n """\n languageCode: RSLanguageCode!\n """\n Human-readable language name, e.g. "Spanish"\n """\n displayName(locale: RSLocale): String!\n}\n\n"""\nPagination list for RSLanguage\n"""\ntype RSLanguageList {\n data: [RSLanguage!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nStatic information about a time zone\n"""\ntype RSTimeZone {\n """\n The time zone ID, e.g. "America/Vancouver"\n """\n id: RSTimeZoneId!\n """\n The full human readable display name, e.g. "Pacific Time"\n """\n fullDisplayName(locale: RSLocale): String!\n """\n Get the amount of daylight savings at the specified time, or null for current time\n """\n daylightSavingsDuration(at: RSDate): IsoDuration!\n """\n Get the amount of offset at the specified time, or null for current time\n """\n offsetDuration(at: RSDate): IsoDuration!\n}\n\ntype RSTimeZoneList {\n data: [RSTimeZone!]!\n count: Int!\n totalCount: Long!\n}\n\ntype RewardUnit {\n key: String!\n name: String!\n currency: RSCurrency\n}\n\n"""\nSettings for a reward unit\n"""\ntype RewardUnitSettings implements TranslatableAsset {\n id: RewardUnitSettingsId!\n """\n The reward unit represented by this reward unit settings\n """\n rewardUnit: RewardUnit\n config: RSJsonNode!\n translationInfo: TranslationInfo!\n """\n All the RewardExchangeRules that use this reward unit\n """\n usedByRewardExchangeRules(\n limit: Int! = 20\n offset: Int! = 0\n ): RewardExchangeRuleList!\n """\n Get all the Programs that use this reward unit\n """\n usedByPrograms(limit: Int! = 20, offset: Int! = 0): ProgramList!\n """\n Get all the integrations that use this reward unit\n """\n usedByIntegrations(limit: Int! = 20, offset: Int! = 0): TenantIntegrationList!\n """\n Get all the GlobalRewardConfigs that use this reward unit\n """\n usedByGlobalRewardConfigs(\n limit: Int! = 20\n offset: Int! = 0\n ): GlobalRewardConfigList!\n}\n\n"""\nA list of RewardUnitSettings\n"""\ntype RewardUnitSettingsList {\n data: [RewardUnitSettings!]!\n count: Int!\n totalCount: Long!\n}\n\ntype RewardUnitSettingsDeleteResult {\n deletedCount: Long!\n}\n\ninput RewardUnitSettingsInput {\n id: RewardUnitSettingsId!\n config: RSJsonNode!\n}\n\ninterface Viewer {\n permissions: [String!]!\n}\n\ninterface GraphNodeData {\n id: ID!\n moderationPreview(\n moderationInput: ModerationInput!\n ): GraphNodeModerationPreviewList!\n}\n\nenum GraphNodeType {\n REWARD\n PROGRAM_EMAIL\n REFERRAL\n USER_EVENT\n}\n\ntype GraphNode {\n data: GraphNodeData\n parent: GraphNodeData\n depth: Int!\n}\n\ninput ModerationInput {\n """\n The moderation action, can be "APPROVE" or "DENY"\n """\n action: String!\n """\n The max depth of side effects\n """\n maxDepth: Int!\n """\n graph lookup size limit.\n Default to 20 for query, and 1000 for moderation.\n """\n limit: Int\n """\n graph lookup offset.\n Default to 0.\n """\n offset: Int\n """\n Graph nodes must meet this condition to be moderated.\n Graph nodes that don\'t meet this condition will still show up in the result,\n but the action will be NOTHING.\n """\n actionPredicate: ModerationActionPredicateInput\n}\n\ninput ModerationActionPredicateInput {\n programId_eq: ID\n}\n\ntype ModerationInputView {\n action: String!\n maxDepth: Int!\n limit: Int\n offset: Int\n}\n\ntype GraphNodeList {\n data: [GraphNode!]!\n count: Int!\n totalCount: Long!\n}\n\ntype GraphNodeModerationPreview {\n data: GraphNodeData\n parent: GraphNodeData\n depth: Int\n action: String\n description: String\n}\n\ntype GraphNodeModerationPreviewList {\n data: [GraphNodeModerationPreview!]!\n count: Int!\n totalCount: Long!\n}\n\ntype GraphNodeModerationResult {\n data: GraphNodeData\n moderationResults: GraphNodeModerationPreviewList\n}\n\ntype GraphNodeModerationResultList {\n data: [GraphNodeModerationResult!]!\n count: Int!\n """\n totalCount is null for USER_EVENT\n """\n totalCount: Long\n}\n\ninterface ProgramTrigger {\n id: ID!\n type: ProgramTriggerType!\n time: RSDate!\n user: User\n}\n\ntype AfterUserCreatedOrUpdatedTrigger implements ProgramTrigger {\n id: ID!\n type: ProgramTriggerType!\n time: RSDate!\n user: User\n previous: User\n events: [UserEventData!]!\n}\n\ntype ScheduledProgramTrigger implements ProgramTrigger {\n id: ID!\n type: ProgramTriggerType!\n time: RSDate!\n user: User\n scheduleKey: String\n}\n\ntype RewardScheduledProgramTrigger implements ProgramTrigger {\n id: ID!\n type: ProgramTriggerType!\n time: RSDate!\n user: User\n reward: FlatReward\n scheduleKey: String\n}\n\ntype ReferralProgramTrigger implements ProgramTrigger {\n id: ID!\n type: ProgramTriggerType!\n time: RSDate!\n user: User\n referral: Referral!\n referralEventType: ReferralEventType!\n}\n\ntype AfterUserEventProcessedTrigger implements ProgramTrigger {\n id: ID!\n type: ProgramTriggerType!\n time: RSDate!\n user: User\n events: [UserEventData!]!\n}\n\nenum ProgramTriggerType {\n AFTER_USER_CREATED_OR_UPDATED\n SCHEDULED\n REWARD_SCHEDULED\n REFERRAL\n AFTER_USER_EVENT_PROCESSED\n}\n\nenum ReferralEventType {\n STARTED\n MODERATION_ACTION_APPLIED\n AUTOMODERATION_COMPLETE\n}\n\nenum GAProgramType {\n ACQUISITION\n LOYALTY\n RETENTION\n}\n\ntype ProgramTransaction {\n id: ID!\n mutations: [ProgramMutation!]!\n analytics: [ProgramAnalyticsData!]!\n program: Program\n}\n\nunion ProgramMutation =\n | ProgramCreateRewardMutation\n | ProgramSendEmailMutation\n | ProgramModerateGraphNodesMutation\n | ProgramExchangeRewardMutation\n | ProgramRetractReferralConversionMutation\n\ntype ProgramCreateRewardMutation {\n key: String\n rewardConfig: ProgramRewardConfig\n template: ProgramRewardTemplate\n user: User\n userId: String\n accountId: String\n rewardSource: RewardSourceType\n metadata: RSJsonNode\n}\n\ntype ProgramSendEmailMutation {\n key: String\n emailConfig: ProgramEmailConfig\n template: ProgramEmailTemplate\n user: User\n userId: String\n accountId: String\n status: EmailTransactionStatus\n metadata: RSJsonNode\n}\n\ntype ProgramModerateGraphNodesMutation {\n graphNodeType: GraphNodeType\n moderationInput: ModerationInputView\n moderationPreview: GraphNodeModerationResultList\n metadata: RSJsonNode\n}\n\ntype ProgramExchangeRewardMutation {\n user: User\n redeemCreditInput: RedeemCreditInputType\n rewardInput: RSJsonNode\n globalRewardKey: String\n status: RewardStatus\n repeat: Boolean!\n metadata: RSJsonNode\n}\n\ntype ProgramRetractReferralConversionMutation {\n referralId: ID!\n referral: Referral\n metadata: RSJsonNode\n}\n\nunion ProgramAnalyticsData =\n | ProgramEvaluatedAnalyticsData\n | ProgramGoalAnalyticsData\n\ntype ProgramEvaluatedAnalyticsData {\n user: User\n timestamp: RSDate\n analyticsKey: String\n analyticsDedupeId: String\n programType: GAProgramType\n metadata: RSJsonNode\n}\n\ntype ProgramGoalAnalyticsData {\n user: User\n timestamp: RSDate\n analyticsKey: String\n analyticsDedupeId: String\n programType: GAProgramType\n isConversion: Boolean\n metadata: RSJsonNode\n}\n\nunion UserUpsertResult = User | ApiError\n\ntype ApiError {\n message: String!\n statusCode: Int!\n rsCode: String\n}\n\ntype User implements Viewer {\n id: String!\n accountId: String!\n firstName: String\n lastName: String\n lastInitial: String\n account: PaymentAccount!\n referralCode(programId: ID): String\n referralCodes: RSShallowMap!\n imageUrl: String\n email: String\n emailVerified: Boolean!\n cookieId: ID\n paymentProviderId: String @deprecated\n """\n The locale of this user\n """\n locale: RSLocale\n """\n The country code of the user\n """\n countryCode: RSCountryCode\n """\n Whether this user can be referred\n """\n referable: Boolean\n """\n key value pair\n """\n customFields: RSJsonNode\n """\n Get the metadata of this user\'s existing custom fields\n """\n customFieldsMetas: [CustomField!]!\n firstSeenIP: String\n lastSeenIP: String\n firstSeenIPLocation: LatLon\n lastSeenIPLocation: LatLon\n """\n Maxmind geo data\n """\n firstSeenGeoData: RSJsonNode\n """\n Maxmind geo data\n """\n lastSeenGeoData: RSJsonNode\n firstSeenUserAgent: String\n lastSeenUserAgent: String\n dateCreated: RSDate\n dateModified: RSDate\n dateBlocked: RSDate\n emailHash: String\n referralSource: String @deprecated\n """\n Legacy share links format.\n https://docs.saasquatch.com/api/methods/#get_sharelinks\n """\n incompleteShareLinks: RSJsonNode\n @deprecated(reason: "Use shareLinks instead.")\n """\n https://docs.saasquatch.com/api/methods/#get_shareurls\n """\n shareLinks(\n programId: ID\n shareMedium: ReferralShareMedium\n engagementMedium: UserEngagementMedium\n shareMediums: [ReferralShareMedium!]! = []\n engagementMediums: [UserEngagementMedium!] = []\n ): RSJsonNode\n """\n Share links for up to 10 active programs\n """\n programShareLinks(\n shareMediums: [ReferralShareMedium!]! = [UNKNOWN]\n engagementMediums: [UserEngagementMedium!] = [UNKNOWN]\n ): RSJsonNode\n shareLink(\n programId: ID\n shareMedium: ReferralShareMedium! = UNKNOWN\n engagementMedium: UserEngagementMedium! = UNKNOWN\n """\n Whether the URL parameters of the resulting link should be removed\n """\n useCleanLink: Boolean! = false\n ): String\n messageLink(\n programId: ID\n shareMedium: ReferralShareMedium! = UNKNOWN\n engagementMedium: UserEngagementMedium! = UNKNOWN\n ): String\n shareLinkOpenGraph(programId: ID): RSJsonNode\n messageLinkOpenGraph(programId: ID): RSJsonNode\n referredBy: UserReferredByInfo\n @deprecated(reason: "Use referredByReferral instead.")\n referredByReferral(programId: ID): Referral\n referredByReferrals: [Referral!]!\n """\n All the referral codes this user is referred by\n """\n referredByCodes: [String!]!\n rewards(\n filter: RewardFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): FlatRewardList!\n # All the rewards earned by this user that are accessible with instant access\n instantAccessRewards(\n filter: RewardFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): FlatRewardList!\n """\n Get all the RewardRedemptionTransactions for this user\n """\n rewardRedemptionTransactions(\n limit: Int! = 20\n offset: Int! = 0\n ): RewardRedemptionTransactionList!\n """\n https://docs.saasquatch.com/api/methods/#list_balances\n """\n rewardBalances(\n rewardType: RewardType\n programId: ID\n locale: RSLocale\n ): RSJsonNode @deprecated(reason: "Use rewardBalanceDetails instead")\n rewardBalanceDetails(\n filter: RewardBalanceFilterInput\n rewardFilter: RewardFilterInput\n programId: ID\n locale: RSLocale\n ): [RewardBalance!]!\n referrals(\n filter: ReferralFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): ReferralList!\n """\n Render a widget for this user\n """\n widget(\n widgetType: WidgetType\n engagementMedium: UserEngagementMedium\n locale: RSLocale\n ): WidgetResponse!\n segments: [SegmentKey!]!\n fraudFlags: [FraudFlag!]!\n stats: UserStats\n """\n Query user events. Note: Only events from the past 2 years will be included. For all historic events request a user event export.\n """\n userEvents(\n """\n Only dateTriggered field can be filtered for purchase and refund events.\n Nothing can be filtered for other events.\n """\n filter: UserEventDataFilterInput\n """\n The time zone to be used for relative date based filters\n """\n timeZone: String\n """\n The time zone offset in seconds used for relative date based filters\n """\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): UserEventDataList!\n programEmailTransactions(\n filter: ProgramEmailTransactionFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): ProgramEmailTransactionList!\n """\n Get all the share link codes for this user\n """\n shareLinkCodes(limit: Int! = 20, offset: Int! = 0): ShareLinkCodeList!\n """\n Get all the referral codes for this user\n """\n referralCodeList(\n filter: ReferralCodeFilterInput\n limit: Int! = 20\n offset: Int! = 0\n ): ReferralCodeList!\n """\n Lookup form submission records for this user\n """\n formSubmissionRecords(\n filter: FormSubmissionRecordFilterInput\n sortBy: [RSSortByInput!]\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): FormSubmissionRecordList!\n """\n User localization information\n """\n localization: UserLocalization!\n """\n The program goals this user has achieved\n """\n programGoals: [ProgramGoal!]!\n """\n The US taxable values by year\n """\n usTaxableValues: [AnnualTaxableValue!]!\n """\n The total pending US taxable value of all time\n """\n totalPendingUsTaxableValue: TotalPendingTaxableValue!\n """\n The date this user submitted the US tax form\n """\n dateUsTaxFormSubmitted: RSDate\n marketingEmailOptIn: Boolean!\n marketingEmailOptInDate: RSDate\n marketingEmailOptOutDate: RSDate\n """\n Whether US tax compliance is enforced for this user\n """\n enforceUsTaxCompliance: Boolean!\n """\n The rank of this user in a leaderboard, if available\n """\n leaderboardRank(\n """\n The type of the user leaderboard. Can be topStartedReferrers or topConvertedReferrers.\n """\n type: String!\n """\n The filter for this user leaderboard\n """\n filter: UserLeaderboardFilterInput\n ): LeaderboardRank\n """\n Access this user\'s ranks in all user leaderboards\n """\n leaderboardRanks: UserLeaderboardRanks!\n """\n Get all the reward exchanges visible to this user\n """\n visibleRewardExchangeItems(\n limit: Int! = 20\n offset: Int! = 0\n ): VisibleRewardExchangeItemList!\n """\n The managed identity information for this user, if available\n """\n managedIdentity: ManagedIdentityResult\n marketingEmailUnsubscribeUrl: String!\n """\n Details of attached Impact Partner Account\n """\n impactConnection: ImpactConnection!\n matchedImpactPartner: MatchedImpactPartner\n addresses: [UserAddress!]!\n hashedCreditCards: [String!]!\n permissions: [String!]!\n}\n\ntype UserStats {\n """\n The last time this user\'s stats was last refreshed\n """\n dateModified: RSDate\n """\n The number of times this user\'s share links have been clicked across all programs\n """\n traffic: Int\n """\n The number of referrals this user has made across all programs\n """\n referrals: Int\n """\n The number of converted referrals this user has made across all programs\n """\n conversions: Int\n """\n The number of program goals this user has achieved across all programs\n """\n goals: Int\n """\n The number of rewards this user has earned across all programs\n """\n rewards: Int\n """\n The number of times this user has loaded a widget across all programs\n """\n widgetLoads: Int\n """\n The estimated amount of revenue in USD this user has purchased\n """\n revenue: Float\n """\n The estimated amount of program revenue in USD this user has generated\n """\n generatedRevenue: Float\n """\n The estimated amount of referred revenue in USD this user has influenced\n """\n referredRevenue: Float\n}\n\n"""\nUser localization information\n"""\ntype UserLocalization {\n """\n The user\'s locale. If the user does not have a locale, it\'s inferred based on its countryCode.\n """\n locale: RSLocale\n """\n The language of the user based on its locale. If the user does not have a locale,\n it\'s inferred based on its countryCode.\n """\n language: RSLanguage\n """\n The country of the user based on its countryCode. If the user does not have a\n countryCode, it\'s inferred based on its locale.\n """\n country: RSCountry\n}\n\n"""\nThe taxable value for a year\n"""\ntype AnnualTaxableValue {\n """\n The tax year\n """\n year: Int!\n """\n The taxable value\n """\n value: Int!\n """\n The number of rewards\n """\n count: Int!\n}\n\n"""\nThe total pending taxable values of all time\n"""\ntype TotalPendingTaxableValue {\n """\n The taxable value\n """\n value: Int!\n """\n The number of rewards\n """\n count: Int!\n}\n\ntype PaymentAccount {\n id: String!\n dateCreated: RSDate\n dateModified: RSDate\n users(limit: Int! = 20, offset: Int! = 0): UserList!\n}\n\ntype WidgetResponse {\n template: String!\n jsOptions: RSJsonNode\n user: User\n brandingConfig: RSJsonNode\n """\n The config of this widget, if available\n """\n widgetConfig: WidgetConfig\n}\n\ntype LatLon {\n lat: Float!\n lon: Float!\n}\n\nenum ReferralShareMedium {\n FACEBOOK\n TWITTER\n EMAIL\n DIRECT\n LINKEDIN\n SMS\n FBMESSENGER\n WHATSAPP\n LINEMESSENGER\n PINTEREST\n REMINDER\n UNKNOWN\n}\n\nenum UserEngagementMedium {\n NOCONTENT\n EMBED\n HOSTED\n MOBILE\n POPUP\n DEMO_EMBED\n DEMO\n EMPTY\n EMAIL\n UNKNOWN\n}\n\ntype FlatRewardList {\n data: [FlatReward!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nA transaction of a single reward redemption or a bulk reward redemption\n"""\ntype RewardRedemptionTransaction {\n """\n The redemption ID\n """\n id: ID!\n """\n The amount of redeemed credit\n """\n creditRedeemed: Int!\n """\n Pretty value of redeemed credit\n """\n prettyRedeemedCredit(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n """\n The unit redeemed\n """\n unit: String\n """\n The date of the redemption\n """\n dateRedeemed: RSDate!\n """\n Rewards that have been redeemed for this redemption\n """\n redeemedRewards(limit: Int! = 20, offset: Int! = 0): FlatRewardList!\n """\n Rewards that have been exchanged for this redemption\n """\n exchangedRewards(limit: Int! = 20, offset: Int! = 0): FlatRewardList!\n}\n\ntype RewardRedemptionTransactionList {\n data: [RewardRedemptionTransaction!]!\n count: Int!\n totalCount: Long!\n}\n\ntype UserReferredByInfo {\n isConverted: Boolean\n code: String\n newlyReferred: Boolean\n referredReward: RSJsonNode\n}\n\ntype UserList {\n data: [User]!\n count: Int!\n totalCount: Long!\n}\n\ninput RewardFilterInput {\n AND: [RewardFilterInput!]\n OR: [RewardFilterInput!]\n id_eq: ID\n id_in: [ID!]\n type_eq: RewardType\n type_in: [RewardType!]\n """\n only applies to credit rewards\n """\n unit_eq: String\n """\n only applies to credit rewards\n """\n unit_in: [String!]\n """\n only applies to credit rewards\n """\n unit_ne: String\n """\n only applies to credit rewards\n """\n unit_nin: [String!]\n """\n only applies to credit rewards\n """\n baseUnit_in: [String!]\n dateCreated_gte: RSDate\n dateCreated_lt: RSDate\n dateCreated_timeframe: RSRelativeTimeframe\n dateCreated_interval: IsoInterval\n dateGiven_gte: RSDate\n dateGiven_lt: RSDate\n dateGiven_timeframe: RSRelativeTimeframe\n dateGiven_interval: IsoInterval\n dateGiven_exists: Boolean\n dateExpires_gte: RSDate\n dateExpires_lt: RSDate\n dateExpires_timeframe: RSRelativeTimeframe\n dateExpires_interval: IsoInterval\n dateExpires_exists: Boolean\n dateCancelled_gte: RSDate\n dateCancelled_lt: RSDate\n dateCancelled_timeframe: RSRelativeTimeframe\n dateCancelled_interval: IsoInterval\n dateCancelled_exists: Boolean\n dateScheduledFor_gte: RSDate\n dateScheduledFor_lt: RSDate\n dateScheduledFor_timeframe: RSRelativeTimeframe\n dateScheduledFor_interval: IsoInterval\n dateScheduledFor_exists: Boolean\n dateRedeemed_gte: RSDate\n dateRedeemed_lt: RSDate\n dateRedeemed_timeframe: RSRelativeTimeframe\n dateRedeemed_interval: IsoInterval\n dateRedeemed_exists: Boolean\n dateModified_gte: RSDate\n dateModified_lt: RSDate\n dateModified_timeframe: RSRelativeTimeframe\n dateModified_interval: IsoInterval\n datePendingForUsTax_gte: RSDate\n datePendingForUsTax_lt: RSDate\n datePendingForUsTax_timeframe: RSRelativeTimeframe\n datePendingForUsTax_interval: IsoInterval\n datePendingForUsTax_exists: Boolean\n datePendingForUnhandledError_gte: RSDate\n datePendingForUnhandledError_lt: RSDate\n datePendingForUnhandledError_timeframe: RSRelativeTimeframe\n datePendingForUnhandledError_interval: IsoInterval\n datePendingForUnhandledError_exists: Boolean\n datePendingForSuspectedFraud_gte: RSDate\n datePendingForSuspectedFraud_lt: RSDate\n datePendingForSuspectedFraud_timeframe: RSRelativeTimeframe\n datePendingForSuspectedFraud_interval: IsoInterval\n datePendingForSuspectedFraud_exists: Boolean\n datePendingForMissingPayoutConfiguration_gte: RSDate\n datePendingForMissingPayoutConfiguration_lt: RSDate\n datePendingForMissingPayoutConfiguration_timeframe: RSRelativeTimeframe\n datePendingForMissingPayoutConfiguration_interval: IsoInterval\n datePendingForMissingPayoutConfiguration_exists: Boolean\n datePendingForErrorSyncingFuelTankCode_gte: RSDate\n datePendingForErrorSyncingFuelTankCode_lt: RSDate\n datePendingForErrorSyncingFuelTankCode_timeframe: RSRelativeTimeframe\n datePendingForErrorSyncingFuelTankCode_interval: IsoInterval\n datePendingForErrorSyncingFuelTankCode_exists: Boolean\n datePendingForCashHold_gte: RSDate\n datePendingForCashHold_lt: RSDate\n datePendingForCashHold_timeframe: RSRelativeTimeframe\n datePendingForCashHold_interval: IsoInterval\n datePendingForCashHold_exists: Boolean\n rewardSource_eq: RewardSourceType\n rewardSource_in: [RewardSourceType!]\n userId_eq: String\n accountId_eq: String\n currency_eq: RSCurrencyCode\n currency_in: [RSCurrencyCode!]\n programId_eq: ID\n programId_in: [ID!]\n programId_exists: Boolean\n programRewardKey_eq: String\n programRewardKey_in: [String!]\n programRewardKey_exists: Boolean\n globalRewardKey_eq: String\n globalRewardKey_in: [String!]\n globalRewardKey_exists: Boolean\n referralId_eq: ID\n rewardedCash_eq: Boolean\n """\n statuses contains\n """\n statuses_eq: RewardStatusFilterInput\n """\n statuses does not contain\n """\n statuses_ne: RewardStatusFilterInput\n """\n statuses contains any\n """\n statuses_in: [RewardStatusFilterInput!]\n """\n statuses contains all\n """\n statuses_all: [RewardStatusFilterInput!]\n """\n statuses contains none\n """\n statuses_nin: [RewardStatusFilterInput!]\n}\n\n"""\nInput for RewardStatus filter\n"""\ninput RewardStatusFilterInput {\n """\n The status\n """\n status: RewardStatus!\n """\n At a specific point in time\n """\n at: RSDate\n}\n\ninput RewardBalanceFilterInput {\n type_eq: RewardType\n unit_eq: String\n unit_in: [String!]\n unitType_eq: String\n currency_eq: RSCurrencyCode\n}\n\ntype FlatReward implements GraphNodeData {\n id: ID!\n uniqueId: ID\n """\n The type of reward\n """\n type: RewardType!\n """\n The value of the reward\n """\n value: Int!\n """\n A human-readable formatted string value based on the reward\'s unit\n """\n prettyValue(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n availableValue(\n """\n For getting the available value at a specific point in time\n """\n at: RSDate\n ): Int!\n prettyAvailableValue(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n """\n For getting the available value at a specific point in time\n """\n at: RSDate\n ): String!\n """\n The unit represented by the value of this reward\n """\n unit: String!\n """\n The base unit of this reward\n """\n baseUnit: String!\n """\n The detailed information about the reward unit\n """\n rewardUnit: RewardUnit!\n """\n The displayable name for the reward\n """\n name: String\n """\n The date the reward was created\n """\n dateCreated: RSDate\n """\n The date the reward is scheduled to be given\n """\n dateScheduledFor: RSDate\n """\n The date the reward was given\n """\n dateGiven: RSDate\n """\n The date the reward expires (null if it doesn\'t expire)\n """\n dateExpires: RSDate\n """\n The date the reward was cancelled\n """\n dateCancelled: RSDate\n """\n The date this reward was cancelled because of a program graph moderation\n """\n dateCancelledForProgramGraphModeration: RSDate\n """\n The date this reward was cancelled because of suspected fraud\n """\n dateCancelledForSuspectedFraud: RSDate\n """\n The date the reward was fully redeemed\n """\n dateRedeemed: RSDate\n """\n The date the reward was last modified\n """\n dateModified: RSDate\n """\n The source of the reward (i.e. by friend referral, manual, etc)\n """\n rewardSource: RewardSourceType\n """\n The fuel tank code associated with the reward if this is fuel tank reward\n """\n fuelTankCode: String\n """\n The fuel tank type associated with the reward if this is a fuel tank reward\n """\n fuelTankType: FuelTankType\n """\n Status of the code sync to external integration\n """\n fuelTankSyncSetting: FuelTankSyncSetting\n """\n The currency the reward was associated with if applicable (gift cards are associated with a currency)\n """\n currency: RSCurrencyCode\n cancellable: Boolean!\n redeemable: Boolean!\n """\n External metadata set by integrations or third-parties\n """\n meta: RewardMeta\n """\n The id of the program that created this reward\n """\n programId: String\n """\n The corresponding reward key in the program that created this reward\n """\n programRewardKey: String\n """\n The corresponding reward key in the GlobalRewardConfig that created this reward\n """\n globalRewardKey: String\n """\n The program that created this reward\n """\n program: Program\n """\n The user this reward belongs to\n """\n user: User\n integrationId: ID @deprecated(reason: "Use integration instead.")\n """\n The integration that\'s used to fulfill this reward\n """\n integration: TenantIntegration\n integrationServiceId: String\n integrationServiceData: RSJsonNode\n description: String\n assignedCredit: Int\n redeemedCredit(\n """\n For getting the redeemed credit at a specific point in time\n """\n at: RSDate\n ): Int\n prettyAssignedCredit(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n prettyRedeemedCredit(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n """\n For getting the redeemed credit at a specific point in time\n """\n at: RSDate\n ): String\n """\n The id of the referral that caused this reward\n """\n referralId: ID\n """\n The referral that caused this reward\n """\n referral: Referral\n """\n The user event that caused this reward. Note: Only events from the past 2 years will be included\n """\n userEvent: UserEventData\n statuses(\n """\n For getting the statuses at a specific point in time\n """\n at: RSDate\n ): [RewardStatus!]!\n """\n All the RewardRedemptionTransactions where this reward has been redeemed\n """\n rewardRedemptionTransactions(\n limit: Int! = 20\n offset: Int! = 0\n ): RewardRedemptionTransactionList!\n """\n The RewardRedemptionTransaction that exchanged for this reward\n """\n exchangedRewardRedemptionTransaction: RewardRedemptionTransaction\n moderationPreview(\n moderationInput: ModerationInput!\n ): GraphNodeModerationPreviewList!\n """\n Get all the reasons this reward is pending\n """\n pendingReasons: [RewardPendingReason!]!\n """\n Get the reason this reward is cancelled\n """\n cancelledReason: RewardCancelledReason\n """\n The date this reward went to pending because of US tax reasons\n """\n datePendingForUsTax: RSDate\n """\n The date this reward went to pending because of missing payout configuration\n """\n datePendingForMissingPayoutConfiguration: RSDate\n """\n The date this reward went to pending because of an error syncing the fuel tank code\n """\n datePendingForErrorSyncingFuelTankCode: RSDate\n """\n The date this reward went to pending because of an unhandled error\n """\n datePendingForUnhandledError: RSDate\n """\n The date this reward went to pending because of suspected fraud\n """\n datePendingForSuspectedFraud: RSDate\n """\n The date this reward went to pending because of a hold for review of banking details\n """\n datePendingForCashHold: RSDate\n """\n The US taxable value of this reward\n """\n usTaxableValue(\n """\n For getting the US taxable value at a specific point in time\n """\n at: RSDate\n ): Int!\n """\n The USD value based on the currency exchange when the reward was given\n """\n usdValue: Float\n partnerFundsTransferId: String\n partnerFundsTransfer: PartnerFundsTransfer\n isFulfilledByCashPayout: Boolean!\n rewardedCash: Boolean!\n}\n\ntype PartnerFundsTransfer {\n id: String!\n status: String\n dateCreated: RSDate\n dateScheduled: RSDate\n dateTransferred: RSDate\n}\n\n"""\nExternal metadata for a reward intended to be used by external integrations\n"""\ntype RewardMeta {\n status: RewardMetaStatus!\n """\n A message displayed in the portal and widgets, often used by integrations\n (e.g. Credit Applied in Stripe)\n """\n message: String\n """\n A message that\'s only shown in the portal for tracking notes on the reward\n reason. Note: end users could still potentially find this.\n """\n internalMessage: String\n integrationService: String\n integration: TenantIntegration\n dateModified: RSDate\n customMeta: RSJsonNode\n}\n\nenum RewardMetaStatus {\n SUCCESS\n IN_PROGRESS\n WARN\n ERROR\n}\n\nenum RewardValueFormatType {\n """\n Formatted number only\n """\n NUMBER_FORMATTED\n """\n Formatted integer only with rounding\n """\n INTEGER_FORMATTED\n """\n Full currency format with number and currency code\n """\n UNIT_FORMATTED\n NUMBER_UNFORMATTED\n INTEGER_UNFORMATTED\n}\n\n"""\nThe reason a reward is pending\n"""\nenum RewardPendingReason {\n """\n The reward is pending because it was scheduled\n """\n SCHEDULED\n """\n The reward is pending due to an unhandled error\n """\n UNHANDLED_ERROR\n """\n The reward is pending due to US tax reasons\n """\n US_TAX\n """\n The reward is pending due to suspected fraud\n """\n SUSPECTED_FRAUD\n """\n The reward is pending due to missing banking details\n """\n MISSING_PAYOUT_CONFIGURATION\n """\n The fuel tank reward is configured to be synced externally, and the sync failed\n """\n ERROR_SYNCING_FUEL_TANK_CODE\n """\n The reward is pending for a review of the publisher banking details\n """\n CASH_HOLD\n}\n\n"""\nThe reason a reward is cancelled\n"""\nenum RewardCancelledReason {\n UNKNOWN\n """\n The reward is cancelled due to a program graph moderation\n """\n PROGRAM_GRAPH_MODERATION\n """\n The reward is cancelled due to suspected fraud\n """\n SUSPECTED_FRAUD\n}\n\ntype RewardValueLimits {\n minValue: Int\n maxValue: Int\n fixedValues: [Int!]\n}\n\ninterface RewardBalance {\n type: RewardType!\n unit: String!\n rewardUnit: RewardUnit!\n availableValue: Int!\n prettyAvailableValue(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n}\n\ntype CreditRewardBalance implements RewardBalance {\n type: RewardType!\n unit: String!\n rewardUnit: RewardUnit!\n availableValue: Int!\n prettyAvailableValue(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n count: Int!\n totalPendingCredit: Int!\n totalAssignedCredit: Int!\n totalRedeemedCredit: Int!\n totalExpiredCredit: Int!\n totalCancelledCredit: Int!\n prettyPendingCredit(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n prettyAssignedCredit(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n prettyRedeemedCredit(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n prettyExpiredCredit(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n prettyCancelledCredit(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n}\n\ntype DiscountPercentRewardBalance implements RewardBalance {\n type: RewardType!\n unit: String!\n rewardUnit: RewardUnit!\n availableValue: Int!\n prettyAvailableValue(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n totalDiscountPercent: Int!\n referredDiscountPercent: Int!\n referrerDiscountPercent: Int!\n}\n\ntype FuelTankRewardBalance implements RewardBalance {\n type: RewardType!\n unit: String!\n rewardUnit: RewardUnit!\n availableValue: Int!\n prettyAvailableValue(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n totalFuelTankCodes: Int!\n}\n\ntype IntegrationRewardBalance implements RewardBalance {\n type: RewardType!\n unit: String!\n rewardUnit: RewardUnit!\n availableValue: Int!\n prettyAvailableValue(\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n """\n Shallow map of string to integer\n """\n unitBalances: RSShallowMap!\n}\n\nenum RewardStatus {\n PENDING\n CANCELLED\n EXPIRED\n REDEEMED\n AVAILABLE\n}\n\nenum RewardType {\n PCT_DISCOUNT\n CREDIT\n FUELTANK\n INTEGRATION\n}\n\nenum RewardSourceType {\n """\n This source type designates a reward that was given to a user (A) for their friend (B)\n signing up.\n """\n FRIEND_SIGNUP\n """\n This source type designates a reward that was given to a user for signing up by referral\n """\n REFERRED\n """\n This source type designates a reward that was manually added to a user via portal or API\n """\n MANUAL\n PROGRAM @deprecated(reason: "use AUTOMATED instead")\n ACTIVATION\n ACQUISITION\n RETENTION\n REACTIVATION\n """\n Reward given by a program\n """\n AUTOMATED\n}\n\nenum FuelTankType {\n PCT_DISCOUNT\n CREDIT\n}\n\nenum FuelTankSyncSetting {\n NONE\n SHOPIFY\n}\n\n"""\nThe input for redeeming credit\n"""\ninput RedeemCreditInput {\n """\n The amount to redeem\n """\n amount: Int!\n """\n The unit to redeem\n """\n unit: String!\n}\n\n"""\nA type matching RedeemCreditInput used as a return type\n"""\ntype RedeemCreditInputType {\n """\n The amount to redeem\n """\n amount: Int!\n """\n The unit to redeem\n """\n unit: String!\n """\n The pretty value of the credit to redeem\n """\n prettyValue(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n}\n\n"""\nThe result for redeeming credit\n"""\ntype RedeemCreditResult {\n """\n The unit redeemed\n """\n unit: String!\n """\n The amount of redeemed credit\n """\n creditRedeemed: Int!\n """\n The amount of available credit\n """\n creditAvailable: Int!\n}\n\n"""\nInput for a reward exchange\n"""\ninput ExchangeRewardInput {\n userId: String!\n accountId: String!\n redeemCreditInput: RedeemCreditInput!\n """\n https://docs.saasquatch.com/api/methods/#create_reward\n """\n rewardInput: RSJsonNode\n """\n The key for the GlobalRewardConfig to create this reward from. When this is present\n """\n globalRewardKey: String\n """\n The ID of the program the created reward should be attributed to\n """\n programId: ID\n """\n The optional initial RewardStatus\n """\n status: RewardStatus\n}\n\n"""\nResult for a reward exchange\n"""\ntype ExchangeRewardResult {\n """\n The RewardRedemptionTransaction related to this reward exchange\n """\n rewardRedemptionTransaction: RewardRedemptionTransaction!\n """\n The created reward\n """\n reward: FlatReward!\n}\n\ntype Referral implements GraphNodeData {\n """\n Id of this referral\n """\n id: ID!\n """\n Id of the corresponding program (non-legacy referrals)\n """\n programId: ID\n program: Program\n """\n public meta available on this referral\n """\n publicMeta: RSJsonNode @deprecated(reason: "Always returns null.")\n """\n private meta available on this referral\n """\n privateMeta: RSJsonNode @deprecated(reason: "Always returns null.")\n referredUser: User\n referrerUser: User\n """\n The reward earned for this referral by the referred user\n """\n referredReward: FlatReward @deprecated(reason: "Use rewards instead.")\n """\n The reward earned for this referral by the referrer\n """\n referrerReward: FlatReward @deprecated(reason: "Use rewards instead.")\n """\n The overall moderation status for the referral\n """\n moderationStatus: ReferralModerationStatus\n """\n The moderation status of the referred user\n """\n referredModerationStatus: ReferralSideModerationStatus\n """\n The moderation status of the referrer user\n """\n referrerModerationStatus: ReferralSideModerationStatus\n """\n The date the referral was made\n """\n dateReferralStarted: RSDate\n """\n The date the referral converted to paid\n """\n dateReferralPaid: RSDate\n """\n The date the referred user stopped payment\n """\n dateReferralEnded: RSDate\n """\n The last date the referral was moderated\n """\n dateModerated: RSDate\n dateUserModified: RSDate\n dateFraudChecksCompleted: RSDate @deprecated(reason: "Internal field.")\n dateConverted: RSDate\n dateConversionRetracted: RSDate\n dateModified: RSDate\n fraudSignals: RSJsonNode @deprecated(reason: "Use fraudFlags instead.")\n fraudFlags: [FraudFlag!]!\n """\n True if this referral is exempt from fraud moderation\n """\n isFraudExempt: Boolean!\n """\n The referral code used for this referral\n """\n referralCodeUsed: String\n """\n The share link used for this referral\n """\n shareLinkUsed: String\n rewards(filter: RewardFilterInput): [FlatReward!]!\n childNodes(\n maxDepth: Int! = 5\n """\n graph lookup size limit\n """\n limit: Int! = 20\n """\n graph lookup offset\n """\n offset: Int! = 0\n ): GraphNodeList!\n moderationPreview(\n moderationInput: ModerationInput!\n ): GraphNodeModerationPreviewList!\n """\n Program goals of the referred user for the current program\n """\n referredProgramGoals: [ProgramGoal!]!\n """\n Program goals of the referrer user for the current program\n """\n referrerProgramGoals: [ProgramGoal!]!\n fraudData: ReferralFraudData\n}\n\ntype ReferralFraudData {\n inputData: ReferralFraudInputData!\n overallScore: Float!\n scores: [ReferralFraudTypeScore!]!\n moderationStatus: ReferralSideModerationStatus\n autoModerationStatus: ReferralSideModerationStatus\n manualModerationStatus: ReferralSideModerationStatus\n dateManuallyModerated: RSDate\n dateAutoModerated: RSDate\n}\n\ntype ReferralFraudInputData {\n referrerInputData: ReferralFraudUserInputData!\n referredInputData: ReferralFraudUserInputData!\n}\n\ntype ReferralFraudUserInputData {\n email: String\n firstName: String\n lastName: String\n firstSeenIP: String\n lastSeenIP: String\n addresses: [UserAddress!]!\n hashedCreditCards: [String!]!\n}\n\ntype ReferralFraudTypeScore {\n type: FraudType!\n score: Float!\n weight: Float!\n}\n\ntype ReferralList {\n data: [Referral!]!\n count: Int!\n totalCount: Long!\n}\n\ntype FraudFlag {\n type: FraudType!\n message: String!\n}\n\nenum FraudType {\n IP\n EMAIL\n NAME\n RATE\n DAILY_REFERRAL_REWARD_LIMIT\n TEMP_EMAIL\n BLOCKED_USER\n BLOCKED_IP\n CREDIT_CARD\n ADDRESS\n}\n\nenum ReferralModerationStatus {\n PENDING\n ACTIONED\n}\n\nenum ReferralSideModerationStatus {\n PENDING\n APPROVED\n DENIED\n}\n\ntype UserAddress {\n address1: String\n address2: String\n city: String\n province: String\n provinceCode: String\n postalCode: String\n countryCode: RSCountryCode\n country: RSCountry\n latitude: Float\n longitude: Float\n}\n\ntype Organization {\n """\n The ID of this organization\n """\n id: ID!\n """\n The date this organization was created\n """\n dateCreated: RSDate!\n """\n The human readable name of this organization\n """\n name: String\n """\n The portal projects that are a part of this organization\n """\n portalProjects(\n limit: Int! = 20\n offset: Int! = 0\n query: String\n ): PortalProjectList!\n """\n The domains that have been added to this organization\n """\n domains(\n limit: Int! = 20\n offset: Int! = 0\n query: String\n filter: DomainFilterInput\n ): DomainList!\n """\n A domain that is in the organization by domain string or ID\n """\n domain(domain: String!): Domain\n impactBrandId: ID\n}\n\nenum DomainOwnershipVerificationMethod {\n MANUAL\n TXT_RECORD\n SUBDOMAIN\n}\n\ninterface DomainOwnershipVerification {\n method: DomainOwnershipVerificationMethod!\n}\n\ntype ManualDomainOwnershipVerification implements DomainOwnershipVerification {\n method: DomainOwnershipVerificationMethod!\n}\n\ntype TxtRecordDomainOwnershipVerification implements DomainOwnershipVerification {\n method: DomainOwnershipVerificationMethod!\n requiredDnsRecord: RequiredDnsRecord!\n}\n\ntype SubdomainDomainOwnershipVerification implements DomainOwnershipVerification {\n method: DomainOwnershipVerificationMethod!\n apexDomain: Domain\n}\n\nenum DomainAuthType {\n NONE\n LOGIN_DISALLOWED\n SSO\n GOOGLE_OAUTH\n}\n\ntype RequiredDnsRecord {\n recordType: String!\n host: String!\n data: String!\n recommendedTtl: Int!\n}\n\ntype Domain {\n domain: String!\n apexDomain: String!\n organization: Organization\n dateCreated: RSDate!\n dateOwnershipVerified: RSDate\n ownershipVerification: DomainOwnershipVerification\n requiredAuthType: DomainAuthType!\n ssoSetupUrl: String\n ssoConnectionType: String\n ssoSetupConnectionState: DomainSsoConnectionState!\n hostingConfigurationState: DomainHostingConfigurationState!\n requiredHostingDnsRecords: [RequiredDnsRecord!]!\n emailConfigurationState: DomainEmailConfigurationState!\n requiredManagedEmailDnsRecords: [RequiredDnsRecord!]!\n portalUsers(\n filter: PortalUserFilterInput\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): PortalUserList!\n usedByEmailConfigs(\n limit: Int! = 20\n offset: Int! = 0\n ): DomainUsedByEmailConfigList!\n usedByMicrositeForTenant: Tenant\n usedByLinksForTenants: [Tenant!]!\n}\n\ntype DomainDeleteResult {\n deletedCount: Long!\n}\n\ninterface DomainUsedByEmailConfig {\n tenant: Tenant!\n}\n\ntype DomainUsedByGlobalEmailConfig implements DomainUsedByEmailConfig {\n tenant: Tenant!\n key: String!\n}\n\ntype DomainUsedByProgramEmailConfig implements DomainUsedByEmailConfig {\n tenant: Tenant!\n programId: ID!\n key: String!\n}\n\ntype DomainUsedByClassicThemeEmailConfig implements DomainUsedByEmailConfig {\n tenant: Tenant!\n key: String!\n}\n\ntype DomainUsedByEmailConfigList {\n data: [DomainUsedByEmailConfig!]!\n count: Int!\n totalCount: Long!\n}\n\nenum DomainHostingConfigurationState {\n ERROR\n UNINITIATED\n PENDING_DNS_RECORD_VERIFICATION\n PENDING_TLS_SUBSCRIPTION\n CONFIGURED\n}\n\nenum DomainEmailConfigurationState {\n ERROR\n UNINITIATED\n ENABLED\n ENABLED_AND_DNS_VERIFIED\n}\n\nenum DomainSsoConnectionState {\n ERROR\n NONE\n INACTIVE\n ACTIVE\n}\n\nenum DomainUse {\n HOSTING\n EMAIL_FROM_ADDRESS\n}\n\nenum ImpactConnectionStatus {\n NOT_STARTED\n STARTED\n COMPLETED\n}\n\ntype DomainList {\n data: [Domain!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ImpactConnection {\n connected: Boolean!\n connectionStatus: ImpactConnectionStatus!\n taxHandlingEnabled: Boolean!\n emailCanBeUsed: Boolean!\n user: ImpactUser\n publisher: ImpactPublisher\n}\n\ntype ImpactUser {\n id: String!\n firstName: String!\n lastName: String!\n email: String!\n}\n\ntype ImpactPublisher {\n id: String!\n brandedSignup: Boolean!\n countryCode: RSCountryCode!\n currency: RSCurrencyCode!\n billingAddress: String\n billingCity: String\n billingState: String\n billingCountryCode: RSCountryCode\n billingPostalCode: String\n phoneNumberCountryCode: RSCountryCode\n phoneNumber: String\n taxInformation: ImpactPublisherTaxInformation\n requiredTaxDocumentType: TaxDocumentType\n currentTaxDocument: ImpactPublisherCurrentTaxDocument\n withdrawalSettings: ImpactPublisherWithdrawalSettings\n payoutsAccount: ImpactPublisherPayoutsAccount\n invoices(limit: Int! = 20, offset: Int! = 0): ImpactPublisherInvoiceList!\n}\n\ntype ImpactPublisherTaxInformation {\n indirectTaxId: String!\n indirectTaxCountryCode: RSCountryCode!\n indirectTaxRegion: String\n additionalTaxId: String\n withholdingTaxId: String\n withholdingTaxCountryCode: RSCountryCode\n}\n\ntype ImpactPublisherCurrentTaxDocument {\n status: TaxDocumentStatus!\n type: TaxDocumentType!\n dateCreated: RSDate\n}\n\ntype ImpactPublisherPayoutsAccount {\n hold: Boolean!\n holdReasons: [String!]!\n balance: String!\n balanceAmount: Int!\n currencyCode: String!\n}\n\ntype SetImpactPublisherWithdrawalSettingsResult {\n success: Boolean!\n validationErrors: [ImpactApiValidationError!]!\n}\n\ntype CreateImpactConnectionResult {\n success: Boolean!\n message: String\n validationErrors: [ImpactApiValidationError!]!\n user: User!\n}\n\ntype ImpactApiValidationError {\n field: String\n message: String\n code: String\n}\n\ntype ImpactPublisherWithdrawalSettings {\n paymentMethod: ImpactPublisherPaymentMethod!\n paypalEmailAddress: String\n bankCountry: RSCountryCode\n bankAccountNumber: String\n paymentSchedulingType: ImpactPublisherPaymentSchedulingType!\n paymentThreshold: String\n paymentDay: String\n}\n\ntype ImpactPublisherTaxDocumentUrl {\n documentUrl: String!\n}\n\ntype ImpactPublisherIdentityVerificationSessionUrl {\n sessionUrl: String!\n}\n\ntype CompleteImpactPublisherTaxDocumentResult {\n success: Boolean!\n}\n\nenum ImpactPublisherPaymentMethod {\n PAYPAL\n BANK_TRANSFER\n}\n\nenum ImpactPublisherBankAccountType {\n CHECKING\n SAVINGS\n NOT_SET\n}\n\nenum ImpactPublisherBeneficiaryClassification {\n BUSINESS\n INDIVIDUAL\n CPF\n CNPJ\n}\n\nenum ImpactPublisherPaymentSchedulingType {\n BALANCE_THRESHOLD\n FIXED_DAY\n}\n\nenum TaxDocumentType {\n W9\n W8BEN\n W8BENE\n W8ECI\n W8EXP\n W8IMY\n UNKNOWN\n}\n\nenum TaxDocumentStatus {\n NOT_VERIFIED\n ACTIVE\n INACTIVE\n}\n\ntype ImpactFinanceNetworkSettingList {\n data: [ImpactFinanceNetworkSetting!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ImpactFinanceNetworkSetting {\n countryCode: RSCountryCode\n currency: RSCurrencyCode\n defaultFinancePaymentMethodId: Int\n thresholdOptions: String\n withdrawalSettingId: Int\n internationalEftFee: Float\n foreignFxFee: Float\n defaultFxFee: Float\n}\n\ninput ImpactFinanceNetworkSettingsFilterInput {\n countryCode_eq: RSCountryCode\n currency_eq: RSCurrencyCode\n}\n\ntype ImpactProgram {\n id: ID!\n name: String\n description: String\n shortDescription: String\n type: String\n state: String\n sourceProgramId: ID\n}\n\ntype ImpactProgramList {\n data: [ImpactProgram!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ImpactEventTypeList {\n data: [ImpactEventType!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ImpactEventType {\n id: ID!\n name: String\n type: String\n programId: ID\n programName: String\n participantSharing: Boolean\n}\n\ntype CreateRelationshipBetweenPartnerAndProgramResult {\n success: Boolean!\n}\n\ntype ImpactPublisherInvoiceList {\n data: [ImpactPublisherInvoice!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ImpactPublisherInvoice {\n id: String!\n dateCreated: RSDate\n currency: RSCurrencyCode\n totalAmount: Float\n totalVatAmount: Float\n downloadUrl: String\n}\n\ntype MatchedImpactPartner {\n impactPartnerId: ID!\n privacyLevel: String!\n reachRating: Float\n sizeRating: String\n creatorTier: String\n programSubtypes: [String!]!\n address: MatchedImpactPartnerAddress\n mediaProperties: MatchedImpactPartnerMediaProperties!\n brandRelationship: MatchedImpactPartnerBrandRelationship\n brandRelationships: [MatchedImpactPartnerBrandRelationship!]!\n}\n\ntype MatchedImpactPartnerMediaProperties {\n instagram: MatchedImpactPartnerMediaProperty\n twitter: MatchedImpactPartnerMediaProperty\n youtube: MatchedImpactPartnerMediaProperty\n tiktok: MatchedImpactPartnerMediaProperty\n}\n\ntype MatchedImpactPartnerAddress {\n address: String\n countryCode: RSCountryCode\n region: String\n}\n\ntype MatchedImpactPartnerMediaProperty {\n type: String!\n url: String\n socialHandle: String\n followers: Long\n isVerified: Boolean\n}\n\ntype MatchedImpactPartnerBrandRelationship {\n impactProgramId: ID!\n impactProgram: ImpactProgram\n state: MatchedImpactPartnerRelationshipState!\n originalJoinDate: RSDate\n}\n\ntype MatchedImpactPartnerRelationshipState {\n state: String!\n category: String!\n}\n\ntype CookieUser {\n cookieId: ID!\n dateCreated: RSDate!\n dateUsed: RSDate\n referredByCodes: [String!]\n cookies: String\n}\n\ntype CookieUserList {\n data: [CookieUser!]!\n count: Int!\n totalCount: Long!\n}\n\ntype CookieUserDeleteResult {\n deletedCount: Long!\n}\n\ntype PortalProjectList {\n data: [PortalProject!]!\n count: Int!\n totalCount: Long!\n}\n\ntype PortalUser implements Viewer {\n identity: ID!\n """\n The type of this PortalUser\n """\n type: PortalUserType!\n email: String!\n portalProjects: [PortalProject!]!\n tenants: [Tenant!]!\n """\n The organization this PortalUser belongs to\n """\n organization: Organization\n permissions: [String!]!\n internalReferralProgram: InternalReferralProgramInfo!\n @deprecated(reason: "Internal field.")\n """\n The full name of this portal user\n """\n name: String\n """\n The URL pointing to this portal user\'s profile picture\n """\n imageUrl: String\n dateLastSignedIn: RSDate\n """\n The role of this user in the current project.\n """\n role: PortalUserRole!\n impactUserId: ID\n impactUsername: String\n}\n\n"""\nThe type of a PortalUser\n"""\nenum PortalUserType {\n """\n A PortalUser that has not signed up yet\n """\n PENDING\n """\n A PortalUser authenticated with OAuth\n """\n OAUTH\n """\n A PortalUser authenticated with SSO\n """\n SSO\n """\n A PortalUser authenticated with a password\n """\n PASSWORD\n """\n A PortalUser that is not human\n """\n MACHINE\n IMPACT\n}\n\n"""\nThe role of a user in a project. There are a number of built in roles:\n - Full Access: full administrative access to all resources\n - Program Manager: allowed to modify programs and content\n - Support: access to participants for support purposes\n - View Only: read-only access to most resources\n"""\ntype PortalUserRole {\n """\n Unique role id.\n """\n id: ID!\n """\n Human-readable role name.\n """\n name: String!\n """\n Description of the role.\n """\n description: String\n """\n The list of permissions granted by the role.\n """\n permissions: [String!]!\n}\n\n"""\nA filter for portal users.\n"""\ninput PortalUserFilterInput {\n AND: [PortalUserFilterInput!]\n OR: [PortalUserFilterInput!]\n email_eq: String\n type_eq: PortalUserType\n}\n\ntype PortalUserList {\n data: [PortalUser!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ImpactTempAccessUser implements Viewer {\n email: String!\n portalProject: PortalProject!\n role: PortalUserRole!\n permissions: [String!]!\n}\n\ntype Tenant implements Viewer {\n tenantAlias: ID!\n """\n The API key for this tenant\n """\n apiKey: String @deprecated(reason: "Use apiKeys instead.")\n """\n The API keys for this tenant\n """\n apiKeys(limit: Int! = 20, offset: Int! = 0): TenantApiKeyList!\n isLiveMode: Boolean!\n emailAddress: String\n dateCreated: RSDate\n rateLimitMultiplier: Float\n settings: TenantSettings\n theme: TenantTheme\n clockOffsetMillis: Long\n clockOffsetDuration: IsoDuration\n """\n The portal project this tenant is in\n """\n portalProject: PortalProject!\n permissions: [String!]!\n impactBrandId: ID\n featureFlags: [String!]\n allowedCurrencies: [RSCurrencyCode!]\n flavor: SquatchFlavor!\n}\n\nenum SquatchFlavor {\n SAASQUATCH\n IMPACT\n}\n\ntype TenantApiKey {\n id: ID\n secret: String!\n}\n\ntype TenantApiKeyList {\n data: [TenantApiKey!]!\n count: Int!\n totalCount: Long!\n}\n\ninput ReferralFilterInput {\n AND: [ReferralFilterInput!]\n OR: [ReferralFilterInput!]\n id_eq: ID\n id_in: [ID!]\n programId_eq: ID\n programId_in: [ID!]\n programId_exists: Boolean\n dateReferralStarted_gte: RSDate\n dateReferralStarted_lt: RSDate\n dateReferralStarted_timeframe: RSRelativeTimeframe\n dateReferralStarted_interval: IsoInterval\n dateReferralPaid_gte: RSDate\n dateReferralPaid_lt: RSDate\n dateReferralPaid_timeframe: RSRelativeTimeframe\n dateReferralPaid_exists: Boolean\n dateReferralEnded_gte: RSDate\n dateReferralEnded_lt: RSDate\n dateReferralEnded_timeframe: RSRelativeTimeframe\n dateReferralEnded_exists: Boolean\n dateConverted_gte: RSDate\n dateConverted_lt: RSDate\n dateConverted_timeframe: RSRelativeTimeframe\n dateConverted_interval: IsoInterval\n dateConverted_exists: Boolean\n dateModerated_gte: RSDate\n dateModerated_lt: RSDate\n dateModerated_timeframe: RSRelativeTimeframe\n dateModerated_exists: Boolean\n dateModified_gte: RSDate\n dateModified_lt: RSDate\n dateModified_timeframe: RSRelativeTimeframe\n referredModerationStatus_eq: ReferralSideModerationStatus\n referredModerationStatus_in: [ReferralSideModerationStatus!]\n referrerModerationStatus_eq: ReferralSideModerationStatus\n referrerModerationStatus_in: [ReferralSideModerationStatus!]\n moderationStatus_eq: ReferralModerationStatus\n moderationStatus_in: [ReferralModerationStatus!]\n fraudData_exists: Boolean\n fraudData: ReferralFraudDataFilterInput\n}\n\ninput ReferralFraudDataFilterInput {\n overallScore_gte: Float\n overallScore_lt: Float\n moderationStatus_eq: ReferralSideModerationStatus\n autoModerationStatus_eq: ReferralSideModerationStatus\n manualModerationStatus_eq: ReferralSideModerationStatus\n}\n\ntype TenantSettings {\n signupPage: String\n companyName: String\n hasUtmOnSignupPage: Boolean\n referredAutoApprove: Boolean\n referrerAutoApprove: Boolean\n suspectedFraudModerationState: SuspectedFraudModerationState\n potentialFraudNotificationFrequency: String @deprecated\n fraudCheckSettings: FraudCheckSettings\n fraudRateLimit: Int\n fraudRateLimitPeriodSeconds: Int @deprecated\n dailyReferralRewardLimit: Int\n rewardSettings: RSJsonNode\n allowReferralInvites: Boolean @deprecated\n multiProgramEnabled: Boolean\n """\n The custom short domain host, e.g. "example.com"\n """\n customShortDomain: String @deprecated\n """\n The active custom link domain for short links\n """\n primaryLinkDomain: LinkDomain\n """\n The backup custom link domains for short links\n """\n secondaryLinkDomains: [LinkDomain!]!\n """\n If true, the referralCodes field will create new referral codes for user and set them as\n primary even if the user already has referral codes. Otherwise, the referralCodes field\n will only attempt to create one referral code per program when one doesn\'t already exist.\n """\n allowReferralCodeEditOnUserUpsert: Boolean\n """\n Whether enforcing US tax compliance is enabled\n """\n enforceUsTaxCompliance: EnforceTaxComplianceOption\n """\n The permission strings for this TenantSettings\n """\n permissions: [String!]!\n timeZone: RSTimeZoneId\n hideClassic: Boolean!\n requireFullAccessForPublishProgramDraft: Boolean!\n fraudStrictness: FraudStrictness!\n collectUserBillingDataFromStorefronts: Boolean!\n billingFraudTypesEnabled: Boolean!\n impactBrandCurrency: RSCurrencyCode\n partnerFundsTransferDelayDuration: IsoDuration\n impactMicrositeSubdomains: [String!]!\n impactBrandCountryCode: RSCountryCode\n impactBrandIndirectTaxCountryCode: RSCountryCode\n cookieUserEnabled: Boolean!\n}\n\n"""\nOption of enforcing tax compliance\n"""\nenum EnforceTaxComplianceOption {\n """\n Tax compliance is enforced for no users\n """\n NONE\n """\n Tax compliance is enforced for users with the explicit matching countryCode\n """\n EXPLICIT_COUNTRY_CODE\n """\n Tax compliance is enforced for users with the explicit matching countryCode\n and users without a country code but a locale with the matching countryCode\n """\n IMPLIED_COUNTRY_CODE\n """\n Tax compliance is enforced for all users\n """\n ALL\n """\n Tax compliance is enforced for all rewards that are fulfilled by Impact Cash Payouts only\n """\n CASH_ONLY\n """\n Impact Cash Payouts require payout information, but does not require a tax form to earn rewards for US/USD publishers\n """\n CASH_ONLY_DEFER_W9\n}\n\nenum SuspectedFraudModerationState {\n DENY\n PENDING\n IGNORE\n}\n\ntype FraudCheckSettings {\n ipCheckEnabled: Boolean\n nameCheckEnabled: Boolean\n emailCheckEnabled: Boolean\n rateCheckEnabled: Boolean\n tempMailCheckEnabled: Boolean\n customEmailDomainBlacklist: [String!]\n dailyReferralRewardLimitEnabled: Boolean\n}\n\nenum FraudStrictness {\n OFF\n LOW\n MEDIUM\n HIGH\n}\n\ntype TenantTheme implements TranslatableAsset {\n id: ID!\n variables(locale: String): RSJsonNode\n variablesSchema: RSJsonNode\n themeConfig: ThemeConfig\n translationInfo: TranslationInfo!\n}\n\ntype ThemeConfig {\n vcs: GitConfig\n themeAssetVersion: String\n templateFileNames: [String!]\n}\n\ntype GitConfig {\n repositoryUrl: String\n branch: String\n username: String\n password: String\n}\n\ntype UserBlockingResult {\n user: User\n}\n\ninput TenantInput {\n clockOffsetMillis: Long\n clockOffsetDuration: IsoDuration\n}\n\ninput TenantSettingsInput {\n companyName: String\n multiProgramEnabled: Boolean\n allowReferralCodeEditOnUserUpsert: Boolean\n timeZone: RSTimeZoneId\n fraudStrictness: FraudStrictness\n collectUserBillingDataFromStorefronts: Boolean\n billingFraudTypesEnabled: Boolean\n partnerFundsTransferDelayDuration: IsoDuration\n}\n\ninput TenantCustomLinkDomainsInput {\n primaryLinkDomain: String\n secondaryLinkDomains: [String!]\n}\n\ninput UserInput {\n id: String\n accountId: String\n firstName: String\n lastName: String\n """\n Deprecated. Ignored field. Use lastName instead.\n """\n lastInitial: String\n referralCode: String\n referralCodes: RSShallowMap\n """\n Optionally create vanity links.\n Example:\n shareLinks: {\n program1: "https://example.com/foobar"\n }\n """\n shareLinks: RSShallowMap\n imageUrl: String\n email: String\n cookieId: ID\n """\n Deprecated. Ignored field.\n """\n paymentProviderId: String\n """\n The locale of the user\n """\n locale: RSLocale\n """\n The country code of the user\n """\n countryCode: RSCountryCode\n """\n Deprecated. Use referredByCodes instead.\n """\n referredBy: RSJsonNode\n """\n All the referral codes this user is referred by\n """\n referredByCodes: [String!]\n """\n The Base64URL encoded attribution cookie values.\n """\n cookies: String\n """\n Whether this user can be referred\n """\n referable: Boolean\n """\n The user\'s custom fields\n """\n customFields: RSJsonNode\n """\n The segment operations to be applied to this user\n """\n segments: [SegmentOperation!]\n """\n The date a user is created. Useful for creating historic users.\n """\n dateCreated: RSDate\n """\n Historical program goals to be imported for a user\n """\n programGoals: [ProgramGoalInput!]\n """\n The date this user submitted the US tax form\n """\n dateUsTaxFormSubmitted: RSDate\n marketingEmailOptIn: Boolean\n}\n\ninput AuthenticateManagedIdentityWithInstantAccessInput {\n email: String!\n firstName: String\n lastName: String\n """\n The locale of the user\n """\n locale: RSLocale\n """\n The country code of the user\n """\n countryCode: RSCountryCode\n """\n The Base64URL encoded attribution cookie values.\n """\n cookies: String\n}\n\n"""\nfilter to find only relevant users to trigger a program with\n"""\ninput UserFilterInput {\n AND: [UserFilterInput!]\n OR: [UserFilterInput!]\n id_eq: String\n accountId_eq: String\n firstName_eq: String\n lastName_eq: String\n email_eq: String\n email_in: [String!]\n email_exists: Boolean\n locale_eq: RSLocale\n locale_in: [RSLocale!]\n countryCode_eq: RSCountryCode\n countryCode_in: [RSCountryCode!]\n firstSeenIP_eq: String\n lastSeenIP_eq: String\n dateBlocked_exists: Boolean\n dateCreated_gte: RSDate\n dateCreated_lt: RSDate\n dateCreated_timeframe: RSRelativeTimeframe\n dateCreated_interval: IsoInterval\n customFields: RSJsonNode\n """\n contains\n """\n segments_eq: String\n """\n does not contain\n """\n segments_ne: String\n """\n contains any\n """\n segments_in: [String!]\n """\n contains all\n """\n segments_all: [String!]\n """\n contains none\n """\n segments_nin: [String!]\n fraudFlags_exists: Boolean\n fraudFlags_in: [FraudType!]\n fraudFlags_all: [FraudType!]\n stats: UserStatsFilterInput\n marketingEmailOptIn_eq: Boolean\n matchedImpactPartner_exists: Boolean\n matchedImpactPartner: MatchedImpactPartnerFilterInput\n impactConnection_exists: Boolean\n impactPublisherFinanceStatus: ImpactPublisherFinanceStatusFilterInput\n}\n\ninput CreateCookieUserInput {\n cookieId: ID!\n cookies: String\n referredByCodes: [String!]\n}\n\ntype CreateCookieUserResult {\n success: Boolean!\n}\n\ninput ImpactPublisherFinanceStatusFilterInput {\n hold_eq: Boolean\n holdReasons_eq: String\n holdReasons_in: [String!]\n}\n\ninput UserStatsFilterInput {\n traffic_gte: Int\n traffic_lt: Int\n referrals_gte: Int\n referrals_lt: Int\n conversions_gte: Int\n conversions_lt: Int\n goals_gte: Int\n goals_lt: Int\n rewards_gte: Int\n rewards_lt: Int\n widgetLoads_gte: Int\n widgetLoads_lt: Int\n revenue_gte: Int\n revenue_lt: Int\n generatedRevenue_gte: Int\n generatedRevenue_lt: Int\n referredRevenue_gte: Int\n referredRevenue_lt: Int\n}\n\ninput MatchedImpactPartnerFilterInput {\n reachRating_gte: Float\n reachRating_lt: Float\n sizeRating_eq: String\n sizeRating_in: [String!]\n creatorTier_eq: String\n creatorTier_in: [String!]\n programSubtypes_eq: String\n programSubtypes_in: [String]\n address: MatchedImpactPartnerAddressFilterInput\n mediaProperties: MatchedImpactPartnerMediaPropertiesFilterInput\n brandRelationship_exists: Boolean\n brandRelationship: MatchedImpactPartnerBrandRelationshipFilterInput\n}\n\ninput MatchedImpactPartnerAddressFilterInput {\n countryCode_eq: RSCountryCode\n countryCode_in: [RSCountryCode!]\n}\n\ninput MatchedImpactPartnerMediaPropertiesFilterInput {\n instagram_exists: Boolean\n twitter_exists: Boolean\n youtube_exists: Boolean\n tiktok_exists: Boolean\n}\n\ninput MatchedImpactPartnerBrandRelationshipFilterInput {\n state: MatchedImpactPartnerRelationshipStateFilterInput\n}\n\ninput MatchedImpactPartnerRelationshipStateFilterInput {\n state_eq: String\n state_in: [String!]\n category_eq: String\n category_in: [String!]\n}\n\n"""\nResult of a user creation preview\n"""\ntype PreviewUserCreationResult {\n """\n All the program transactions resulted in the user creation\n """\n programTransactions: [ProgramTransaction!]!\n """\n All the rewards that would be earned by the created user\n """\n rewards: [RewardPreview!]!\n}\n\n"""\nInput for a user creation preview\n"""\ninput PreviewUserCreationInput {\n """\n The locale of this user\n """\n locale: RSLocale\n """\n The country code of the user\n """\n countryCode: RSCountryCode\n """\n All the referral codes this user is referred by\n """\n referredByCodes: [String!]\n """\n The Base64URL encoded attribution cookie values.\n """\n cookies: String\n """\n The user\'s custom fields\n """\n customFields: RSJsonNode\n """\n The segment operations to be applied to this user\n """\n segments: [SegmentOperation!]\n """\n Whether this user can be referred\n """\n referable: Boolean\n}\n\ntype SimulateReferralStartResult {\n programTransactions: [ProgramTransaction!]!\n}\n\ninput SimulateReferralStartInput {\n useProgramDraft: Boolean\n programId: ID!\n dateReferralStarted: RSDate\n referredUser: SimulateReferralStartUserInput!\n referrerUser: SimulateReferralStartUserInput!\n}\n\ninput SimulateReferralStartUserInput {\n id: String\n accountId: String\n segments: [SegmentOperation!]\n customFields: RSJsonNode\n}\n\ntype SimulateReferredUserEventResult {\n programTransactions: [ProgramTransaction!]!\n}\n\ninput SimulateReferredUserEventInput {\n useProgramDraft: Boolean\n programId: ID!\n dateReferralStarted: RSDate\n dateConverted: RSDate\n referredUser: SimulateReferredUserEventUserInput!\n referrerUser: SimulateReferredUserEventUserInput!\n userEventInput: SimulateReferredUserEventUserEventInput!\n}\n\ninput SimulateReferredUserEventUserInput {\n id: String\n accountId: String\n segments: [SegmentOperation!]\n customFields: RSJsonNode\n}\n\ninput SimulateReferredUserEventUserEventInput {\n key: String!\n fields: RSJsonNode\n dateTriggered: RSDate\n isModification: Boolean\n}\n\n"""\nMinimal information of a previewed reward\n"""\ntype RewardPreview {\n """\n The type of reward\n """\n type: RewardType!\n """\n The value of the reward\n """\n value: Int!\n """\n A human-readable formatted string value based on the reward\'s unit\n """\n prettyValue(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n """\n The unit represented by the value of this reward\n """\n unit: String!\n """\n The detailed information about the reward unit\n """\n rewardUnit: RewardUnit!\n """\n The source of the reward (i.e. by friend referral, manual, etc)\n """\n rewardSource: RewardSourceType\n """\n The id of the program that created this reward\n """\n programId: String\n """\n The corresponding reward key in the program that created this reward\n """\n programRewardKey: String\n """\n The date the reward is scheduled to be given\n """\n dateScheduledFor: RSDate\n """\n The date the reward expires (null if it doesn\'t expire)\n """\n dateExpires: RSDate\n}\n\ntype PersistedEvent {\n meta: RSJsonNode\n blob: RSJsonNode\n}\n\ntype PersistedEventList {\n data: [PersistedEvent!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nA program installed in a tenant based on a program template\n"""\ntype Program {\n id: ID!\n name: String!\n status: ProgramStatus!\n """\n Program template ID\n """\n templateId: ID!\n """\n Program template with introspection\n """\n template: ProgramTemplate!\n rawTemplate: ProgramTemplate! @deprecated(reason: "Internal field.")\n """\n Preview a program introspection with unsaved rules\n """\n introspectionPreview(\n introspectionPreviewInput: ProgramIntrospectionPreviewInput!\n ): ProgramTemplate!\n """\n Preview a program introspection with unsaved rules\n """\n introspectionPreview2(\n introspectionPreviewInput: ProgramIntrospectionPreviewInput!\n ): ProgramIntrospectionResult!\n emails: [ProgramEmailConfig!]\n email(key: String!): ProgramEmailConfig\n rewards: [ProgramRewardConfig!]\n reward(key: String!): ProgramRewardConfig\n widgets: [ProgramWidgetConfig!]\n widget(key: String!): ProgramWidgetConfig\n sharing: ProgramSharingConfig\n """\n An instance of the values in the Program Template\'s rules schema\n """\n rules: RSJsonNode\n analytics: RSJsonNode\n dateCreated: RSDate!\n lastActivatedDate: RSDate\n taskState(key: String! = "default"): ProgramTaskState\n taskStates: [ProgramTaskState!]\n rewardsGiven(\n filter: RewardFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): FlatRewardList!\n referrals(\n filter: ReferralFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): ReferralList\n transactionEvents(\n createdAfter: RSDate\n createdBefore: RSDate\n metaFilter: RSJsonNode\n limit: Int! = 20\n offset: Int! = 0\n ): PersistedEventList @deprecated\n """\n Get the first 100 TranslatableAssets for this program\n """\n translatableAssets: [TranslatableAsset!]!\n @deprecated(reason: "Use translatableAssetList instead.")\n """\n Get all the TranslatableAssets for this Program\n """\n translatableAssetList(\n limit: Int! = 20\n offset: Int! = 0\n ): TranslatableAssetList!\n programEmailTransactions(\n filter: ProgramEmailTransactionFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): ProgramEmailTransactionList!\n validation(key: String!): ProgramValidationResult\n validations: [ProgramValidationResult!]\n """\n Get the JSON schema for program trigger variables\n """\n programTriggerVariablesSchema: ProgramTriggerVariablesSchema!\n """\n The draft for this program, if available\n """\n draft: Program\n """\n Details of the impact program, if it exists\n """\n impactProgram: ImpactProgram\n}\n\n"""\nWrapper type for requesting the trigger variables schema for different trigger types\n"""\ntype ProgramTriggerVariablesSchema {\n afterUserCreatedOrUpdated: JsonSchema\n referral: JsonSchema\n afterUserEventProcessed(userEventKey: String!): JsonSchema\n}\n\nenum ProgramStatus {\n LIVE\n PAUSED\n ARCHIVED\n}\n\ntype ProgramList {\n data: [Program!]\n count: Int!\n totalCount: Long!\n}\n\ntype ProgramDeleteResult {\n deletedCount: Long!\n}\n\ntype ProgramDraftDeleteResult {\n deletedCount: Long!\n}\n\n"""\nA type of email sent by a program. e.g. "VIP Reward Limit Reached Email"\n"""\ntype ProgramEmailTemplate {\n key: String!\n name: String!\n description: String!\n defaults: RSJsonNode!\n}\n\n"""\nConfig values for a program email type\n"""\ntype ProgramEmailConfig implements TranslatableAsset {\n key: String!\n enabled: Boolean!\n values: RSJsonNode!\n """\n be less strict about locale\n """\n preview(values: RSJsonNode, locale: String): EmailPreview!\n translationInfo: TranslationInfo!\n}\n\n"""\nConfig values for a global email type\n"""\ntype GlobalEmailConfig implements TranslatableAsset {\n key: String!\n values: RSJsonNode!\n marketing: Boolean!\n """\n Whether this GlobalEmailConfig can be deleted\n """\n canDelete: Boolean!\n """\n Whether this GlobalEmailConfig is used by the US tax notification email\n """\n usedByUsTaxNotificationEmail: Boolean!\n """\n Whether this GlobalEmailConfig is used by the monthly cash notification email\n """\n usedByMonthlyCashNotificationEmail: Boolean!\n """\n Whether this GlobalEmailConfig is used by managed identity reset password email\n """\n usedByManagedIdentityResetPasswordEmail: Boolean!\n """\n Whether this GlobalEmailConfig is used by managed identity verify email\n """\n usedByManagedIdentityVerifyEmail: Boolean!\n """\n Translation details of this email\n """\n translationInfo: TranslationInfo!\n}\n\n"""\nInput for GlobalEmailConfig\n"""\ninput GlobalEmailConfigInput {\n key: String!\n values: RSJsonNode!\n marketing: Boolean\n}\n\ntype GlobalEmailConfigList {\n data: [GlobalEmailConfig!]!\n count: Int!\n totalCount: Long!\n}\n\ntype GlobalEmailConfigDeleteResult {\n deletedCount: Long!\n}\n\n"""\nInput for queueing a global email\n"""\ninput QueueGlobalEmailInput {\n """\n Global email key\n """\n key: String!\n """\n The recipient user\n """\n user: UserIdInput!\n """\n The GraphQL request for generating the rendering context\n """\n contextGraphQLRequest: GraphQLRequestInput\n dateScheduledFor: RSDate\n """\n If provided, emails will only be sent to email addresses in the list.\n If the user email address is updated to outside of this list, the email\n transaction will fail.\n """\n allowedEmails: [String!]\n}\n\n"""\nA GraphQL request\n"""\ntype GraphQLRequest {\n """\n The GraphQL query string\n """\n query: GraphQLQueryString!\n """\n The GraphQL query variables\n """\n variables: RSJsonNode\n """\n The operation name\n """\n operationName: String\n}\n\n"""\nInput for a GraphQL request\n"""\ninput GraphQLRequestInput {\n """\n The GraphQL query string\n """\n query: GraphQLQueryString!\n """\n The GraphQL query variables\n """\n variables: RSJsonNode\n """\n The operation name\n """\n operationName: String\n}\n\n"""\nConfig values for a widget\n"""\ninterface WidgetConfig {\n """\n The config value\n """\n values: RSJsonNode!\n}\n\n"""\nConfig values for a program widget type\n"""\ntype ProgramWidgetConfig implements TranslatableAsset & WidgetConfig {\n key: String!\n """\n The config value\n """\n values: RSJsonNode!\n widgetType: WidgetType!\n translationInfo: TranslationInfo!\n}\n\n"""\nConfig values for a global widget type\n"""\ntype GlobalWidgetConfig implements TranslatableAsset & WidgetConfig {\n key: String!\n values: RSJsonNode!\n """\n Translation details of this widget\n """\n translationInfo: TranslationInfo!\n}\n\n"""\nInput for GlobalWidgetConfig\n"""\ninput GlobalWidgetConfigInput {\n key: String!\n values: RSJsonNode!\n}\n\ntype GlobalWidgetConfigList {\n data: [GlobalWidgetConfig!]!\n count: Int!\n totalCount: Long!\n}\n\ntype GlobalWidgetConfigDeleteResult {\n deletedCount: Long!\n}\n\ntype ProgramSharingConfig {\n redirectUrl: ProgramRedirectUrlConfig\n linkConfig: ProgramLinkConfig\n referralCodeConfig: ProgramReferralCodeConfig\n}\n\ntype ProgramRedirectUrlConfig {\n url: String!\n fallbackUrl: String!\n """\n Expiry duration for referral code cookies\n """\n cookieExpiryDuration: IsoDuration!\n rules: RSJsonNode\n}\n\ntype ProgramLinkConfig implements TranslatableAsset {\n messaging: ProgramMessagingConfig!\n translationInfo: TranslationInfo!\n}\n\ntype ProgramReferralCodeConfig {\n fuelTank: Boolean!\n singleUse: Boolean!\n codesPerUser: Int!\n alertCodeCountThreshold: Long!\n}\n\ntype ProgramMessagingConfig {\n messages: [ProgramMessageConfig!]\n messageLinkOpenGraph: ProgramOpenGraphMetaConfig\n shareLinkOpenGraph: ProgramOpenGraphMetaConfig\n}\n\ntype ProgramMessageConfig {\n shareMedium: ReferralShareMedium!\n config: RSJsonNode\n}\n\ntype ProgramOpenGraphMetaConfig {\n title: String\n description: String\n image: String\n source: ProgramOpenGraphSource\n}\n\nenum ProgramOpenGraphSource {\n HOSTED\n LANDING_PAGE\n}\n\ntype EmailPreview {\n headers: RSJsonNode\n body: String\n}\n\ntype ProgramTaskState {\n key: String!\n invocationNumber: Long!\n status: ScheduledTaskStatus!\n}\n\nenum ScheduledTaskStatus {\n RUNNING\n IDLE\n}\n\ntype ProgramValidationResult {\n key: String!\n results: [ProgramRequirementValidationResult!]\n requirement: ProgramRequirement\n}\n\ntype ProgramRequirementValidationResult {\n status: ProgramRequirementValidationStatus!\n message: String!\n """\n An optional longer description of the validation result with instructions to fix it, if applicable\n """\n longDescription: String\n}\n\nenum ProgramRequirementValidationStatus {\n SUCCESS\n WARN\n ERROR\n}\n\ntype ProgramTemplate {\n """\n A unique global ID for this program\n """\n id: String!\n """\n A human friendly name of the program\n """\n name: String!\n summary: String!\n longDescription: String!\n installGuide: String\n """\n An external link to the docs refererence for this program\'s install guide\n """\n installGuideUrl: String\n """\n A list of email types sent by this program template\n """\n emails: [ProgramEmailTemplate!]\n """\n A list of named reward types\n """\n rewards: [ProgramRewardTemplate!]\n """\n A list of widgets used by this program template\n """\n widgets: [ProgramWidgetTemplate!]\n """\n A JSON schema describing how a program should be configured\n """\n rules: RSJsonNode\n """\n A JSON UI schema describing how the rules form should look\n """\n rulesUISchema: RSJsonNode\n """\n A webtask.io / Auth0 Extend URL to call to execute the code\n """\n url: String\n """\n The name of the icon for the program\n """\n icon: String\n """\n Program logo\n """\n logo: String\n @deprecated(\n reason: "No longer populated. Will be removed once the frontend stops querying it."\n )\n """\n Program attribution settings if the program supports attribution\n """\n sharing: ProgramTemplateSharingSettings\n """\n Settings related to program trigger rules\n """\n trigger: ProgramTemplateTriggerSettings\n requirements: [ProgramRequirement!]\n """\n Script for migrating program rules\n """\n rulesMigrationScript: String\n """\n The template of program goals provided by this program\n """\n goals: [ProgramGoalTemplate!]\n}\n\ntype ProgramTemplateSharingSettings {\n """\n Whether attribution is enabled or not\n """\n enabled: Boolean!\n}\n\ntype ProgramTemplateTriggerSettings {\n """\n The list of event keys the program listens to\n """\n userEventKeys: [String!]!\n """\n The list of custom field keys the program evaluates on\n """\n customFieldKeys: [String!]!\n}\n\ntype ProgramRewardTemplate {\n key: String\n name: String!\n description: String!\n isDynamic: Boolean!\n}\n\ntype ProgramWidgetTemplate {\n key: String\n name: String!\n description: String!\n """\n Whether this widget is supposed to support instant access. If true, the widget\n can still potentially be configured to be incompatible with instant access.\n """\n supportsInstantAccess: Boolean!\n defaults: RSJsonNode!\n}\n\n"""\nTemplate for ProgramGoal\n"""\ntype ProgramGoalTemplate {\n """\n The goal ID\n """\n goalId: String!\n """\n The human readable name\n """\n name: String\n}\n\n"""\nInput for program introspection preview\n"""\ninput ProgramIntrospectionPreviewInput {\n rules: RSJsonNode!\n}\n\ntype ProgramIntrospectionResult {\n template: ProgramTemplate!\n errors: [ProgramIntrospectionError!]!\n}\n\ntype ProgramIntrospectionError {\n key: String!\n jsonPointer: JsonPointer\n description: String\n}\n\n"""\nInterface type for either a ProgramRewardConfig or a GlobalRewardConfig\n"""\ninterface IsPredefinedReward {\n """\n Unique global ID for predefined rewards\n """\n predefinedRewardType: PredefinedRewardType!\n}\n\n"""\nConfig for a program reward\n"""\ntype ProgramRewardConfig implements IsPredefinedReward & TranslatableAsset {\n key: String!\n """\n The key for the linked GlobalRewardConfig\n """\n globalRewardKey: String\n """\n The linked GlobalRewardConfig\n """\n globalRewardConfig: GlobalRewardConfig\n name: String\n description: String\n rewardType: RewardType\n amount: Int\n unit: String\n currency: RSCurrencyCode\n """\n The corresponding RewardUnitSettings, if one exists\n """\n rewardUnitSettings: RewardUnitSettings\n monthsDiscountIsValid: Int\n @deprecated(reason: "Use validityDuration instead.")\n """\n The duration between reward creation and reward expiry\n """\n validityDuration: IsoDuration\n """\n The duration between reward creation and reward given\n """\n pendingDuration: IsoDuration\n fuelTankType: FuelTankType\n fuelTankSyncSetting: FuelTankSyncSetting\n fuelTankAutoCreateCodePrefix: String\n integrationId: ID @deprecated(reason: "Use integration instead")\n integration: TenantIntegration\n """\n Integration specific configuration (i.e. external gift card identifiers)\n """\n integrationSettings: RSJsonNode\n allowsInstantAccess: Boolean!\n translationInfo: TranslationInfo!\n """\n Unique global ID for predefined rewards\n """\n predefinedRewardType: PredefinedRewardType!\n """\n The custom codes used for FUELTANK rewards\n """\n customCodes(\n used: Boolean @deprecated(reason: "Use filter instead.")\n filter: CustomCodeFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): CustomCodeList!\n prettyValue(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n """\n The limits of integration reward values\n """\n valueLimits: RewardValueLimits\n """\n The program that has this reward config\n """\n program: Program\n}\n\n"""\nConfig for a global reward\n"""\ntype GlobalRewardConfig implements IsPredefinedReward {\n key: String!\n name: String\n description: String\n rewardType: RewardType\n amount: Int\n unit: String\n currency: RSCurrencyCode\n """\n The corresponding RewardUnitSettings, if one exists\n """\n rewardUnitSettings: RewardUnitSettings\n """\n The duration between reward creation and reward expiry\n """\n validityDuration: IsoDuration\n """\n The duration between reward creation and reward given\n """\n pendingDuration: IsoDuration\n fuelTankType: FuelTankType\n fuelTankSyncSetting: FuelTankSyncSetting\n fuelTankAutoCreateCodePrefix: String\n integration: TenantIntegration\n """\n Integration specific configuration (i.e. external gift card identifiers)\n """\n integrationSettings: RSJsonNode\n allowsInstantAccess: Boolean!\n """\n Unique global ID for predefined rewards\n """\n predefinedRewardType: PredefinedRewardType!\n """\n The custom codes used for FUELTANK rewards\n """\n customCodes(\n used: Boolean @deprecated(reason: "Use filter instead.")\n filter: CustomCodeFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): CustomCodeList!\n prettyValue(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n """\n The limits of integration reward values\n """\n valueLimits: RewardValueLimits\n """\n All the RewardExchangeRules that use this GlobalRewardConfig\n """\n usedByRewardExchangeRules(\n limit: Int! = 20\n offset: Int! = 0\n ): RewardExchangeRuleList!\n """\n Get all the Programs with rewards that reference this GlobalRewardConfig\n """\n usedByPrograms(limit: Int! = 20, offset: Int! = 0): ProgramList!\n}\n\ntype GlobalRewardConfigList {\n data: [GlobalRewardConfig!]!\n count: Int!\n totalCount: Long!\n}\n\ntype GlobalRewardConfigDeleteResult {\n deletedCount: Long!\n}\n\ntype IsPredefinedRewardList {\n data: [IsPredefinedReward!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ProgramReferralCodeFuelTank implements IsPredefinedReward {\n predefinedRewardType: PredefinedRewardType!\n program: Program!\n customCodes(\n filter: CustomCodeFilterInput\n timeZone: String\n timeZoneOffset: Int\n limit: Int! = 20\n offset: Int! = 0\n ): CustomCodeList!\n}\n\ntype ProgramRequirement {\n key: String!\n name: String\n description: String\n longDescription: String\n query: String @deprecated(reason: "Internal field.")\n queryVariables: RSJsonNode @deprecated(reason: "Internal field.")\n}\n\ntype ProgramEmailTransaction implements GraphNodeData {\n id: ID!\n programId: ID\n """\n Program that generated the email\n """\n program: Program\n """\n Program email key\n """\n key: String @deprecated(reason: "Use programEmailKey instead")\n """\n Program email key\n """\n programEmailKey: String\n """\n Global email key\n """\n globalEmailKey: String\n """\n User receiving the email\n """\n user: User!\n """\n Program generated context query for email rendering\n """\n query: String! @deprecated(reason: "Use contextGraphQLRequest instead")\n queryVariables: RSJsonNode!\n @deprecated(reason: "Use contextGraphQLRequest instead")\n """\n The GraphQL request for generating the rendering context\n """\n contextGraphQLRequest: GraphQLRequest\n """\n Date the transaction was created\n """\n dateCreated: RSDate!\n """\n Date the transaction was queued\n """\n dateQueued: RSDate\n """\n Date the email was sent\n """\n dateSent: RSDate\n dateScheduledFor: RSDate\n status: EmailTransactionStatus!\n rewardId: ID\n reward: FlatReward\n moderationPreview(\n moderationInput: ModerationInput!\n ): GraphNodeModerationPreviewList!\n}\n\nenum EmailTransactionStatus {\n PENDING\n QUEUED\n SENT\n FAILED\n}\n\ntype ProgramEmailTransactionList {\n data: [ProgramEmailTransaction!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ProgramEmailTransactionDeleteResult {\n deletedCount: Long!\n}\n\ninput ProgramEmailTransactionFilterInput {\n AND: [ProgramEmailTransactionFilterInput!]\n OR: [ProgramEmailTransactionFilterInput!]\n id_eq: ID\n id_in: [ID!]\n programId_eq: ID\n programId_exists: Boolean\n """\n Deprecated. Use programEmailKey_eq instead.\n """\n key_eq: String\n """\n Deprecated. Use globalEmailKey_eq instead.\n """\n key_in: [String!]\n programEmailKey_eq: String\n programEmailKey_in: [String!]\n globalEmailKey_eq: String\n globalEmailKey_in: [String!]\n dateCreated_gte: RSDate\n dateCreated_lt: RSDate\n dateCreated_timeframe: RSRelativeTimeframe\n dateQueued_gte: RSDate\n dateQueued_lt: RSDate\n dateQueued_timeframe: RSRelativeTimeframe\n dateSent_gte: RSDate\n dateSent_lt: RSDate\n dateSent_timeframe: RSRelativeTimeframe\n status_eq: EmailTransactionStatus\n status_in: [EmailTransactionStatus!]\n}\n\n"""\nAn external integration template\n"""\ntype IntegrationTemplate {\n """\n Human-readable name of the integration\n """\n name: String!\n """\n Unique client ID for the integration\n """\n clientId: String!\n """\n URL for the integration\'s configuration UI\n """\n configUrl: String\n """\n URL for the integration\'s introspection endpoint\n """\n introspectionUrl: String\n """\n Description of the integration\n """\n description: String\n """\n URL to the integration\'s logo image\n """\n logo: String\n """\n URL to the integration\'s icon image\n """\n icon: String\n """\n Heading text for the integration panel\n """\n panelHeading: String\n """\n Whether the integration can be installed from the portal\n """\n portalInstallable: Boolean!\n """\n List of feature flags required for this integration to be available\n """\n requiredFeatureFlags: [String!]\n """\n Namespace for the integration (used for form handlers)\n """\n namespace: String\n """\n Whether the integration supports classic SaaSquatch\n """\n supportsClassic: Boolean\n """\n The flavors supported by this integration\n """\n supportedFlavors: [SquatchFlavor!]!\n """\n The integration configuration JSON\n """\n integrationConfig: RSJsonNode\n}\n\ntype IntegrationTemplateList {\n data: [IntegrationTemplate!]!\n count: Int!\n totalCount: Long!\n}\n\ntype TenantIntegration {\n id: ID! @deprecated(reason: "use service instead")\n service: String!\n name: String!\n type: IntegrationType\n enabled: Boolean!\n """\n A url pointing to the integration logo\n """\n logo: String\n """\n A url pointing to the integration icon\n """\n icon: String\n config: RSJsonNode\n """\n The form handler managed by this integration\n """\n formHandler: FormHandler\n """\n The namespace of this integration\n """\n namespace: String\n}\n\nenum IntegrationType {\n LINK_GENERATOR\n EMAIL_DELIVERY\n REWARD_PROVIDER\n}\n\ntype TenantIntegrationList {\n data: [TenantIntegration!]!\n count: Int!\n totalCount: Long!\n}\n\ntype TenantIntegrationDeleteResult {\n deletedCount: Long!\n}\n\ninput TenantIntegrationInput {\n service: String!\n enabled: Boolean\n config: RSJsonNode\n}\n\n"""\nA webhook with its payload\n"""\ntype Webhook {\n id: ID!\n type: WebhookType!\n dateCreated: RSDate!\n data: RSJsonNode\n """\n Get the delivery attempt logs for this webhook\n """\n subscriptionLog(\n limit: Int! = 20\n offset: Int! = 0\n ): WebhookSubscriptionLogList!\n}\n\n"""\nDelivery attempt logs for one WebhookSubscription\n"""\ntype WebhookSubscriptionLog {\n """\n The url of the endpoint that receives events\n """\n endpointUrl: String!\n subscription: WebhookSubscription\n """\n The list of HTTP request attempts to this webhook subscription\n """\n attempts(limit: Int! = 20, offset: Int! = 0): WebhookDeliveryAttemptList!\n}\n\n"""\nA list of WebhookSubscriptionLogs\n"""\ntype WebhookSubscriptionLogList {\n data: [WebhookSubscriptionLog!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nThe result of one HTTP request attempt to a webhook subscription\n"""\ntype WebhookDeliveryAttempt {\n """\n The date this attempt was made\n """\n dateAttempted: RSDate!\n """\n The status received from the endpoint. Null if we weren\'t able to connect.\n """\n status: Int\n}\n\n"""\nA list of WebhookDeliveryAttempts\n"""\ntype WebhookDeliveryAttemptList {\n data: [WebhookDeliveryAttempt!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nA list of Webhooks\n"""\ntype WebhookList {\n data: [Webhook!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nA webhook subscription to an endpoint\n"""\ntype WebhookSubscription {\n """\n The url of the endpoint that receives events\n """\n endpointUrl: String!\n """\n Display name\n """\n name: String\n source: WebhookSubscriptionSourceType!\n webhookTypes: [WebhookType!]!\n """\n The status of this webhook subscription\n """\n status: WebhookSubscriptionStatus!\n integration: TenantIntegration\n}\n\n"""\nThe status of a WebhookSubscription\n"""\ntype WebhookSubscriptionStatus {\n """\n The type of this status\n """\n type: WebhookSubscriptionStatusType!\n """\n The message of this status\n """\n message: String\n}\n\n"""\nThe type of a WebhookSubscriptionStatus\n"""\nenum WebhookSubscriptionStatusType {\n ENABLED\n DISABLED\n}\n\n"""\nThe source that created a WebhookSubscription\n"""\nenum WebhookSubscriptionSourceType {\n """\n Created through the portal or API\n """\n MANUAL\n """\n Managed by an integration\n """\n INTEGRATION\n}\n\n"""\nA list of WebhookSubscriptions\n"""\ntype WebhookSubscriptionList {\n data: [WebhookSubscription!]!\n count: Int!\n totalCount: Long!\n}\n\ntype WebhookSubscriptionDeleteResult {\n deletedCount: Long!\n}\n\ninput WebhookSubscriptionInput {\n """\n The url of the endpoint that receives events\n """\n endpointUrl: String!\n """\n Optional name of the endpoint that receives events\n """\n name: String\n """\n Operations for adding/deleting WebhookTypes for this WebhookSubscription\n """\n webhookTypes: [WebhookTypeOperation!]\n}\n\ninput WebhookFilterInput {\n AND: [WebhookFilterInput!]\n OR: [WebhookFilterInput!]\n id_eq: ID\n type_eq: WebhookType\n dateCreated_gte: RSDate\n dateCreated_lt: RSDate\n dateCreated_timeframe: RSRelativeTimeframe\n}\n\ntype TestWebhookSubscriptionResult {\n subscription: WebhookSubscription!\n}\n\n"""\nCodes used for FUELTANK rewards\n"""\ntype CustomCode {\n code: String!\n dateUploaded: RSDate\n """\n The date when a custom code was allocated to someone,\n not necessarily when it was redeemed.\n """\n dateUsed: RSDate\n predefinedRewardType: PredefinedRewardType!\n reward: FlatReward\n referralCode: ReferralCode\n dateFirstUsedInReferral: RSDate\n dateLastUsedInReferral: RSDate\n}\n\ntype CustomCodeList {\n data: [CustomCode!]!\n count: Int!\n totalCount: Long!\n}\n\ninput CustomCodeFilterInput {\n AND: [CustomCodeFilterInput!]\n OR: [CustomCodeFilterInput!]\n code_eq: String\n code_in: [String!]\n dateUsed_gte: RSDate\n dateUsed_lt: RSDate\n dateUsed_timeframe: RSRelativeTimeframe\n dateUsed_interval: IsoInterval\n dateUsed_exists: Boolean\n dateFirstUsedInReferral_exists: Boolean\n dateLastUsedInReferral_exists: Boolean\n}\n\ninput CustomCodesInput {\n """\n See IsPredefinedReward\n """\n predefinedRewardType: PredefinedRewardType!\n codes: [String!]!\n}\n\ntype RejectedCustomCode {\n code: String\n rejectReason: String\n}\n\ntype CustomCodeInsertResult {\n rejectedCodes: [RejectedCustomCode!]!\n numCodesRejected: Int!\n numCodesAccepted: Int!\n}\n\ntype CustomCodeUpsertResult {\n rejectedCodes: [RejectedCustomCode!]!\n numCodesRejected: Int!\n numCodesInserted: Int!\n numCodesUpdated: Int!\n}\n\ntype CustomCodeDeleteResult {\n deletedCount: Long!\n}\n\ninput ProgramFilterInput {\n AND: [ProgramFilterInput!]\n OR: [ProgramFilterInput!]\n id_eq: ID\n id_in: [ID!]\n name_eq: String\n name_in: [String!]\n status_eq: ProgramStatus\n status_ne: ProgramStatus\n status_in: [ProgramStatus!]\n dateCreated_gte: RSDate\n dateCreated_lt: RSDate\n dateCreated_timeframe: RSRelativeTimeframe\n referralsEnabled: Boolean\n}\n\ninput ProgramInput {\n id: ID!\n name: String\n status: ProgramStatus\n emails: [ProgramEmailConfigInput!]\n rewards: [ProgramRewardConfigInput!]\n widgets: [ProgramWidgetConfigInput!]\n sharing: ProgramSharingConfigInput\n """\n An instance of the values in the Program Template\'s rules schema\n """\n rules: RSJsonNode\n analytics: RSJsonNode\n """\n Deprecated. Use taskStates instead.\n """\n taskState: ProgramTaskStateInput\n taskStates: [ProgramTaskStateInput!]\n}\n\ninput ProgramEmailConfigInput {\n key: String\n enabled: Boolean!\n values: RSJsonNode!\n}\n\n"""\nInput type for ProgramRewardConfig\n"""\ninput ProgramRewardConfigInput {\n key: String!\n """\n The key for GlobalRewardConfig to be linked. When this field is present, all of the\n other fields must be null.\n """\n globalRewardKey: String\n name: String\n description: String\n rewardType: RewardType\n amount: Int\n unit: String\n """\n Deprecated. Use unit with an ISO currency code instead.\n """\n currency: String\n """\n Deprecated. Use validityDuration instead.\n """\n monthsDiscountIsValid: Int\n validityDuration: IsoDuration\n pendingDuration: IsoDuration\n fuelTankType: FuelTankType\n fuelTankSyncSetting: FuelTankSyncSetting\n fuelTankAutoCreateCodePrefix: String\n integrationId: ID\n integrationSettings: RSJsonNode\n allowsInstantAccess: Boolean\n}\n\n"""\nInput type for GlobalRewardConfig\n"""\ninput GlobalRewardConfigInput {\n key: String!\n name: String\n description: String\n rewardType: RewardType!\n amount: Int\n unit: String\n validityDuration: IsoDuration\n pendingDuration: IsoDuration\n fuelTankType: FuelTankType\n fuelTankSyncSetting: FuelTankSyncSetting\n fuelTankAutoCreateCodePrefix: String\n integrationId: ID\n integrationSettings: RSJsonNode\n allowsInstantAccess: Boolean\n}\n\ninput ProgramWidgetConfigInput {\n key: String!\n values: RSJsonNode!\n}\n\ninput ProgramSharingConfigInput {\n redirectUrl: ProgramRedirectUrlConfigInput\n linkConfig: ProgramLinkConfigInput\n referralCodeConfig: ProgramReferralCodeConfigInput\n}\n\ninput ProgramRedirectUrlConfigInput {\n url: String!\n fallbackUrl: String\n """\n Expiry duration for referral code cookies\n """\n cookieExpiryDuration: IsoDuration\n rules: RSJsonNode\n}\n\ninput ProgramLinkConfigInput {\n messaging: RSJsonNode\n}\n\ninput ProgramReferralCodeConfigInput {\n fuelTank: Boolean\n singleUse: Boolean\n codesPerUser: Int\n alertCodeCountThreshold: Long\n}\n\ninput ProgramTaskStateInput {\n key: String!\n invocationNumber: Long!\n status: ScheduledTaskStatus!\n}\n\ninterface TranslatableAsset {\n translationInfo: TranslationInfo!\n}\n\ntype TranslatableAssetList {\n data: [TranslatableAsset!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nInformation of a TranslatableAsset\n"""\ntype TranslationInfo {\n """\n The unique ID of this TranslatableAsset\n """\n id: TranslatableAssetId!\n """\n The TranslatableAsset itself\n """\n translatableAsset: TranslatableAsset!\n """\n The program this TranslatableAsset is attached to, if available\n """\n program: Program\n """\n The program ID this TranslatableAsset is attached to, if available\n """\n programId: ID\n """\n The key of this TranslatableAsset\n """\n translatableAssetKey: String\n """\n The original untranslated content\n """\n content: RSJsonNode\n """\n All the translations\n """\n translations: [TranslationInstance!]!\n """\n All the translated locales\n """\n locales: [RSLocale!]!\n}\n\n"""\nA translation of a TranslatableAsset\n"""\ntype TranslationInstance {\n """\n The unique ID of this TranslationInstance\n """\n id: TranslationInstanceId!\n """\n The program this TranslationInstance is attached to, if available\n """\n program: Program\n """\n The program ID this TranslationInstance is attached to, if available\n """\n programId: ID\n """\n The key of the TranslatableAsset\n """\n translatableAssetKey: String\n """\n The locale of the translation\n """\n locale: RSLocale!\n """\n The translated content\n """\n content: RSJsonNode!\n dateCreated: RSDate\n dateModified: RSDate\n}\n\ntype TranslationInstanceDeleteResult {\n deletedCount: Long!\n}\n\ninput TranslationInstanceInput {\n id: TranslationInstanceId!\n content: RSJsonNode!\n}\n\ntype Job {\n id: ID!\n type: JobType!\n name: String\n requester: String\n dateCreated: RSDate\n dateCompleted: RSDate\n outputFormat: DataFileFormat\n dateExpires: RSDate\n status: JobStatus!\n mailtoEmail: String\n downloadUrl(publicLink: Boolean! = false): String\n downloadErrorUrl(publicLink: Boolean! = false): String\n downloadFileRefUrl(publicLink: Boolean! = false): String\n params: RSJsonNode\n fileRef: String\n stats: JobStats\n rerunJobId: ID\n}\n\ntype JobList {\n data: [Job!]!\n count: Int!\n totalCount: Long!\n}\n\ntype JobStats {\n recordsProcessed: Long!\n errors: Long!\n}\n\nenum DataFileFormat {\n CSV\n XLSX\n JSONL\n}\n\ntype JobToken {\n token: String\n}\n\nenum JobStatus {\n PENDING\n ABORTED\n COMPLETED\n}\n\ntype JobDeleteResult {\n deletedCount: Long!\n}\n\ninput JobInput {\n type: JobType!\n name: String\n requester: String\n outputFormat: DataFileFormat\n mailtoEmail: String\n fileRef: String\n params: RSJsonNode\n}\n\ninput JobFilterInput {\n AND: [JobFilterInput!]\n OR: [JobFilterInput!]\n\n id_eq: ID\n id_in: [ID!]\n type_eq: JobType\n type_in: [JobType!]\n type_ne: JobType\n type_nin: [JobType!]\n dateCreated_gte: RSDate\n dateCreated_lt: RSDate\n dateCreated_timeframe: RSRelativeTimeframe\n dateCompleted_gte: RSDate\n dateCompleted_lt: RSDate\n dateCompleted_timeframe: RSRelativeTimeframe\n status_eq: JobStatus\n status_ne: JobStatus\n status_in: [JobStatus!]\n}\n\ninput RerunJobInput {\n id: ID!\n name: String\n params: RSJsonNode\n requester: String\n}\n\n"""\nResult of validateJobCreation\n"""\ntype ValidateJobCreationResult {\n """\n A list of errors. Empty when the input is valid.\n """\n errors: [String!]!\n jobCreationErrors: [JobCreationError!]!\n """\n The total number of lines read by the validation, or null if the file cannot be read\n """\n totalLinesRead: Int\n}\n\nenum JobCreationErrorType {\n FILE_REF_IO\n CSV_PARSING\n MISSING_HEADERS\n MISSING_FIELDS\n INVALID_FIELD\n INVALID_JOB_PARAM\n}\n\ntype JobCreationError {\n type: JobCreationErrorType!\n lineNumber: Long\n error: RSJsonNode\n}\n\ntype Segment {\n key: SegmentKey!\n name: String\n status: SegmentStatus\n dateCreated: RSDate\n dateModified: RSDate\n participantsCount: Long!\n}\n\nenum SegmentStatus {\n ACTIVE\n ARCHIVED\n}\n\ntype SegmentList {\n data: [Segment!]!\n count: Int!\n totalCount: Long!\n}\n\ninput SegmentInput {\n key: SegmentKey!\n name: String\n status: SegmentStatus\n}\n\ninput SegmentFilterInput {\n key_eq: SegmentKey\n key_in: [SegmentKey!]\n status_eq: SegmentStatus\n status_in: [SegmentStatus!]\n}\n\n"""\nDetailed information of a segment operation\n"""\ntype SegmentOperationDetails {\n """\n The raw SegmentOperation string\n """\n segmentOperation: SegmentOperation!\n """\n The type of this segment operation\n """\n type: SegmentOperationType!\n """\n The segment inside the segment operation\n """\n segment: Segment\n}\n\n"""\nThe type of a segment operation\n"""\nenum SegmentOperationType {\n """\n Add a segment\n """\n ADD\n """\n Delete a segment\n """\n DELETE\n """\n Clear all segments\n """\n CLEAR\n}\n\n"""\nAn input object to associate one or more events with a user.\n"""\ninput UserEventInput {\n """\n The id of the user to associate the events with.\n """\n userId: String!\n\n """\n The account id of the user to associate the events with.\n """\n accountId: String!\n\n """\n The idempotency key for a logUserEvent request.\n\n To prevent processing an event more than once, you can provide an idempotency\n key to achieve "at most once" processing semantics. The idempotency key\n uniquely identifies the event, and is generated by the caller.\n\n The idempotency key can be any string identifier that your system associates\n with the event, with the following restrictions:\n\n - It must be at least 8 characters long\n - It must be no more than 64 characters long\n - It can only contain alphanumerics characters, as well as the `.`, `-`,\n or `_` characters\n\n For example, a good choice for an idempotency key is a UUID, in particular\n a random version 4 UUID like `ec524601-975c-458a-9948-ae4448ce8944`.\n\n Idempotency keys are guaranteed to be stored by SaaSquatch for at least 24 hours,\n such that any event inputs with the same idempotency key within 24 hours will\n be guaranteed to process the events only once.\n\n Subsequent attempts to process an event with an idempotency key that has already\n been processed once will result in an HTTP 409 Conflict response, so you will\n need to ensure that you are handling this status code in your request logic.\n """\n idempotencyKey: String\n\n """\n A list of `UserEventDataInput` objects which specify the details of the events.\n """\n events: [UserEventDataInput!]\n}\n\n"""\nAn input object specifying the details of a user event.\n\nEvents have a `key` to specify the type of the event, and an arbitrary JSON object\nwhich holds the `fields`.\n\nEvents are processed immediately, but you can specify the `dateTriggered` indicating\nwhen the event actually took place.\n"""\ninput UserEventDataInput {\n """\n Deprecated. This field is ignored.\n """\n id: ID\n\n """\n The key of the event, like `purchase` or `refund`.\n """\n key: String!\n\n """\n The fields of the event, which can be an arbitrary JSON object.\n\n A an example event may contain the fields:\n\n ```json\n {\n "currency": "USD",\n "revenue": 50\n }\n ```\n """\n fields: RSJsonNode\n\n """\n The trigger date of an event indicates when the event took place.\n\n Specifying `dateTriggered` is optional - if it is not provided then the event\n is assumed to have taken place at the time that it is received.\n """\n dateTriggered: RSDate\n}\n\n"""\nResult of a bulk user event request\n"""\nunion BulkUserEventResult = UserEventResult | ApiError\n\ntype UserEventResult {\n userId: String!\n accountId: String!\n user: User\n events: [UserEventData!]!\n programTransactions: [ProgramTransaction!]\n}\n\ntype UserEventData implements GraphNodeData {\n id: ID!\n userId: String!\n accountId: String!\n user: User\n key: String!\n fields: RSJsonNode\n dateTriggered: RSDate\n dateReceived: RSDate\n dateProcessed: RSDate\n dateMarkedAsTest: RSDate\n isRevenueEvent: Boolean!\n isModification: Boolean!\n updatedBy: RSUpdatedBy\n currency: RSCurrencyCode\n totalAmountPostDiscount: Float\n originalCurrency: RSCurrencyCode\n originalTotalAmountPostDiscount: Float\n moderationPreview(\n moderationInput: ModerationInput!\n ): GraphNodeModerationPreviewList!\n}\n\ntype UserEventDataList {\n data: [UserEventData!]!\n count: Int!\n}\n\ninput UserEventDataFilterInput {\n key: String\n id_eq: ID\n dateTriggered_gte: RSDate\n dateTriggered_lt: RSDate\n dateTriggered_timeframe: RSRelativeTimeframe\n dateTriggered_interval: IsoInterval\n dateReceived_gte: RSDate\n dateReceived_lt: RSDate\n dateReceived_timeframe: RSRelativeTimeframe\n dateReceived_interval: IsoInterval\n dateProcessed_gte: RSDate\n dateProcessed_lt: RSDate\n dateProcessed_timeframe: RSRelativeTimeframe\n dateProcessed_interval: IsoInterval\n isRevenueEvent_eq: Boolean\n isModification_eq: Boolean\n userId_eq: String\n accountId_eq: String\n fields: RSJsonNode\n}\n\ntype UserEventKeyList {\n data: [String!]!\n count: Int!\n totalCount: Long!\n}\n\ninput UserMetricInput {\n customFieldKey: String!\n name: String\n aggregateId: ID\n aggregateRules: RSJsonNode\n userEventKey: String\n dateTriggeredWindow: IsoInterval\n """\n Deprecated. The fieldsFilters field no longer functions. Use the JSONata based filter instead.\n """\n fieldsFilters: [GenericFieldFilterInput!]\n """\n An JSONata expression to filter events, the provided context is defined in\n https://fast.ssqt.io/npm/@saasquatch/schema/json/UserMetricJSONataFilterContext.schema.json\n """\n filter: JSONata\n}\n\ntype UserAggregate {\n id: String!\n name: String!\n """\n JSON schema\n """\n rules: RSJsonNode\n}\n\ntype UserMetric {\n customFieldKey: String!\n customField: CustomField!\n name: String!\n aggregate: UserAggregate!\n aggregateRules: RSJsonNode\n userEvent: UserEventMeta!\n dateTriggeredWindow: IsoInterval\n fieldsFilters: [GenericFieldFilter!]\n @deprecated(\n reason: "The fieldsFilters field no longer functions. Use the JSONata based filter instead."\n )\n filter: JSONata\n """\n The recalculation job that is currently updating users for this UserMetric, if one exists\n """\n pendingRecalculationJob: Job\n}\n\ntype UserMetricList {\n data: [UserMetric!]!\n count: Int!\n totalCount: Long!\n}\n\ntype UserMetricDeleteResult {\n deletedCount: Long!\n}\n\ntype UserEventMeta {\n key: String!\n name: String\n fields: [String!]!\n """\n Get all the UserMetrics that use this event key\n """\n usedByUserMetrics(limit: Int! = 20, offset: Int! = 0): UserMetricList!\n """\n Get all the Programs that use this event key\n """\n usedByPrograms(limit: Int! = 20, offset: Int! = 0): ProgramList!\n """\n Get the potentially inferred JSON schema for event fields\n """\n fieldsSchema: JsonSchema\n """\n The integration that manages this event key\n """\n integration: TenantIntegration\n}\n\ntype MarkRevenueEventAsTestResult {\n userEvent: UserEventData!\n}\n\ntype UserEventMetaList {\n data: [UserEventMeta!]!\n count: Int!\n totalCount: Long!\n}\n\ntype CustomField {\n key: String!\n name: String\n schema: JsonSchema\n """\n The UserMetric that updates this custom field, if there is one\n """\n userMetric: UserMetric\n """\n Get all the Programs that use this custom field\n """\n usedByPrograms(limit: Int! = 20, offset: Int! = 0): ProgramList!\n """\n The integration that manages this custom field\n """\n integration: TenantIntegration\n}\n\ntype CustomFieldList {\n data: [CustomField!]!\n count: Int!\n totalCount: Long!\n}\n\n"""\nStatistical information of a program goal\n"""\ntype ProgramGoal {\n """\n The program goal ID\n """\n goalId: String!\n """\n The program ID this goal ID is for\n """\n programId: ID\n """\n The program this goal ID is for\n """\n program: Program\n """\n The number of times this goal has been achieved\n """\n count: Int!\n """\n The date this goal was achieved for the first time\n """\n firstDate: RSDate!\n """\n The date this goal was achieved for the last time\n """\n lastDate: RSDate!\n """\n The number of conversions\n """\n conversionCount: Int!\n """\n The template for this program goal\n """\n template: ProgramGoalTemplate!\n}\n\n"""\nInput for importing program goals\n"""\ninput ProgramGoalInput {\n """\n The program goal ID\n """\n goalId: String!\n """\n The program ID this goal ID is for\n """\n programId: ID!\n """\n The number of times this goal has been achieved\n """\n count: Int!\n """\n The date this goal was achieved for the first time\n """\n firstDate: RSDate!\n """\n The date this goal was achieved for the last time\n """\n lastDate: RSDate!\n """\n The number of conversions\n """\n conversionCount: Int!\n}\n\n"""\nAccess log on who performed an action\n"""\ntype RSUpdatedBy {\n """\n The subject that initiated the action (on behalf of the executor)\n """\n initiator: RSSubject\n """\n The subject that executed the action\n """\n executor: RSSubject\n}\n\ntype RSSubject {\n subjectType: RSSubjectType!\n subjectId: String!\n email: String\n user: User\n integration: TenantIntegration\n}\n\nenum RSSubjectType {\n PORTAL_USER\n DEFAULT_MACHINE\n INTEGRATION\n ADMIN\n USER\n}\n\ntype UserDoNotTrackIdentifier {\n hash: String!\n dateCreated: RSDate!\n}\n\ntype UserDoNotTrackIdentifierList {\n data: [UserDoNotTrackIdentifier!]!\n count: Int!\n totalCount: Long!\n}\n\ntype UserDoNotTrackIdentifierDeleteResult {\n deletedCount: Long!\n}\n\ninput UserAnalyticsEvent {\n """\n user identifier\n """\n id: String!\n """\n account identifier\n """\n accountId: String!\n """\n program associated with this analytics event - required (default to \'classic\')\n """\n programId: ID!\n """\n the type of analytic to fire\n """\n type: UserAnalyticsEventType!\n """\n event metat data that will be included along with the analytic and validated via user analytic json schema\n """\n meta: RSJsonNode!\n}\n\nenum UserAnalyticsEventType {\n USER_REFERRAL_PROGRAM_LOADED_EVENT\n USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT\n}\n\ntype GenericFieldFilter {\n field: String\n operator: GenericFieldFilterOperator!\n value: RSJsonNode!\n}\n\ninput GenericFieldFilterInput {\n field: String\n operator: GenericFieldFilterOperator!\n value: RSJsonNode!\n}\n\nenum GenericFieldFilterOperator {\n eq\n gt\n gte\n lt\n lte\n exists\n or\n}\n\ntype PortalProject {\n id: ID!\n name: String\n """\n The date this portal project was created\n """\n dateCreated: RSDate\n """\n The end date of the trial period this portal project, or null if the project already has a payment plan.\n """\n trialEndDate: RSDate\n liveTenant: Tenant\n testTenant: Tenant\n """\n List of portal users with access to this project.\n """\n portalUsers(\n filter: PortalUserFilterInput\n limit: Int! = 20\n offset: Int! = 0\n sortBy: [RSSortByInput!]\n ): PortalUserList!\n """\n List of SaaSquatch staff users with access to this project.\n """\n staffUsers(limit: Int! = 20, offset: Int! = 0): PortalUserList!\n """\n List of available portal user roles.\n """\n portalUserRoles: [PortalUserRole!]\n """\n Get the invoice history of this portal project\n """\n invoices(limit: Int! = 20, offset: Int! = 0): PortalProjectInvoiceList!\n """\n The organization that this project is a part of\n """\n organization: Organization\n impactBrandId: ID\n}\n\ninput PortalProjectInput {\n name: String\n}\n\ntype PortalProjectInvoice {\n """\n The unique ID of this invoice\n """\n id: ID!\n """\n The date this invoice was created\n """\n dateCreated: RSDate\n """\n The due date of this invoice\n """\n dueDate: RSDate\n """\n The state of this invoice\n """\n state: String\n """\n The total of this invoice in its currency\'s fractional unit\n """\n total: Int\n """\n The currency of this invoice\n """\n currency: RSCurrencyCode\n """\n The formatted human readable value of the total of this invoice\n """\n prettyValue(\n locale: RSLocale\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String!\n """\n The URL for downloading the invoice PDF.\n The returned URL requires a valid portal session.\n """\n downloadPdfUrl: String!\n}\n\ntype PortalProjectInvoiceList {\n data: [PortalProjectInvoice!]!\n count: Int!\n}\n\n"""\nThe result for checking whether an email is blocked\n"""\ntype IsBlockedEmailResult {\n """\n Whether the email is blocked\n """\n isBlocked: Boolean!\n """\n The reason why the email is blocked, if available\n """\n reason: BlockedEmailReason\n}\n\n"""\nReason for a blocked email\n"""\nenum BlockedEmailReason {\n """\n Email is blocked because it\'s in the static disposable email domains list\n """\n DISPOSABLE_EMAIL_DOMAINS\n """\n Email is blocked because it\'s in the custom email domains list\n """\n CUSTOM_EMAIL_DOMAINS\n}\n\n"""\nType for accessing all available user leaderboards\n"""\ntype UserLeaderboards {\n """\n Leaderboard based on the number of rewards\n """\n rewardCount(filter: RewardLeaderboardFilterInput): UserLeaderboard!\n """\n Leaderboard based on the sum of reward values.\n Note that the reward values are naively summed regardless of the units.\n """\n rewardValueSum(filter: RewardLeaderboardFilterInput): UserLeaderboard!\n """\n Leaderboard based on the sum of reward values of a single unit.\n Note that the reward values are naively summed regardless of the units.\n """\n singleUnitRewardValueSum(\n unit: String!\n filter: RewardLeaderboardFilterInput\n ): UserLeaderboard!\n """\n Leaderboard based on the number of referrals\n """\n referralCount(filter: ReferralLeaderboardFilterInput): UserLeaderboard!\n}\n\n"""\nUser leaderboard information\n"""\ntype UserLeaderboard {\n """\n The top rows of this leaderboard\n """\n rows(limit: Int! = 10): [UserLeaderboardRow!]!\n """\n The date this leaderboard was last updated\n """\n dateModified: RSDate\n}\n\n"""\nOne row of a leaderboard\n"""\ntype UserLeaderboardRow {\n """\n The value of this row, e.g. the number of referrals\n """\n value: Long!\n """\n The formatted value, which may be the reward unit prettyValue\n """\n textValue(locale: RSLocale): String\n """\n The first name of the user\n """\n firstName: String\n """\n The last initial of the user\n """\n lastInitial: String\n """\n The rank of this row in the leaderboard\n """\n rank: LeaderboardRank!\n}\n\n"""\nThe filter for a leaderboard\n"""\ninput UserLeaderboardFilterInput {\n programId_eq: ID\n """\n The interval of this leaderboard\n """\n interval: IsoInterval\n}\n\n"""\nThe filter for the reward leaderboard\n"""\ninput RewardLeaderboardFilterInput {\n programId_eq: ID\n programId_in: [ID!]\n programId_exists: Boolean\n type_eq: RewardType\n type_in: [RewardType!]\n dateCreated_interval: IsoInterval\n dateGiven_interval: IsoInterval\n dateGiven_exists: Boolean\n unit_eq: String\n unit_in: [String!]\n rewardSource_eq: RewardSourceType\n rewardSource_in: [RewardSourceType!]\n """\n statuses contains\n """\n statuses_eq: RewardStatusFilterInput\n """\n statuses does not contain\n """\n statuses_ne: RewardStatusFilterInput\n """\n statuses contains any\n """\n statuses_in: [RewardStatusFilterInput!]\n """\n statuses contains all\n """\n statuses_all: [RewardStatusFilterInput!]\n """\n statuses contains none\n """\n statuses_nin: [RewardStatusFilterInput!]\n}\n\n"""\nThe filter for referral leaderboards\n"""\ninput ReferralLeaderboardFilterInput {\n programId_eq: ID\n programId_in: [ID!]\n programId_exists: Boolean\n dateReferralStarted_interval: IsoInterval\n dateConverted_interval: IsoInterval\n dateConverted_exists: Boolean\n}\n\n"""\nType for accessing all available user leaderboard ranks\n"""\ntype UserLeaderboardRanks {\n """\n Leaderboard based on the number of rewards\n """\n rewardCount(filter: RewardLeaderboardFilterInput): LeaderboardRank\n """\n Leaderboard based on the sum of reward values.\n Note that the reward values are naively summed regardless of the units.\n """\n rewardValueSum(filter: RewardLeaderboardFilterInput): LeaderboardRank\n """\n Leaderboard based on the sum of reward values of a single unit.\n Note that the reward values are naively summed regardless of the units.\n """\n singleUnitRewardValueSum(\n unit: String!\n filter: RewardLeaderboardFilterInput\n ): LeaderboardRank\n """\n Leaderboard based on the number of referrals\n """\n referralCount(filter: ReferralLeaderboardFilterInput): LeaderboardRank\n}\n\n"""\nA rank in a leaderboard.\nFor more information about the difference between rank, denseRank, and rowNumber,\nsee: https://codingsight.com/similarities-and-differences-among-rank-dense_rank-and-row_number-functions/\n"""\ntype LeaderboardRank {\n """\n The value of the corresponding leaderboard row, e.g. the number of referrals\n """\n value: Long!\n """\n The formatted value of the corresponding leaderboard row, which may be the reward unit prettyValue\n """\n textValue(locale: RSLocale): String\n """\n The rank of the row within the leaderboard with possible gaps between values\n """\n rank: Long!\n """\n The rank of the row within the leaderboard without possible gaps between values\n """\n denseRank: Long!\n """\n The row number of the row within the leaderboard\n """\n rowNumber: Long!\n}\n\n"""\nInternal type not intended for public use\n"""\ntype InternalReferralProgramInfo {\n tenantAlias: String!\n userToken: String!\n}\n\n"""\nA rule that permits users to exchange certain rewards\n"""\ntype RewardExchangeRule implements TranslatableAsset {\n """\n The unique key of this RewardExchangeRule\n """\n key: String!\n """\n The type of this RewardExchangeRule\n """\n ruleType: RewardExchangeRuleType\n """\n The human readable name for end users\n """\n name: String\n """\n The human readable name for portal display\n """\n internalName: String\n """\n The long description\n """\n description: String\n """\n The URL of the thumbnail\n """\n imageUrl: String\n """\n A list of country codes where this reward exchange is visible.\n An empty list means this reward exchange is available in all countries.\n """\n visibilityCountryCodes: [RSCountryCode!]!\n """\n JSONata expression that calculates whether this reward exchange is visible to a user\n """\n visibilityPredicate: JSONata\n """\n JSONata expression that calculates whether this reward exchange is available to a user\n """\n availabilityPredicate: JSONata\n """\n The arbitrary list order\n """\n listOrder: Int!\n """\n The unit of the reward being redeemed\n """\n sourceUnit: String\n """\n The unit of the destination reward, applicable to VARIABLE_CREDIT_REWARD\n """\n destinationUnit: String\n """\n The key of the destination global reward, applicable to FIXED_GLOBAL_REWARD\n and VARIABLE_GLOBAL_REWARD\n """\n globalRewardKey: String\n """\n The GlobalRewardConfig object corresponding to the globalRewardKey, if one exists\n """\n globalRewardConfig: GlobalRewardConfig\n """\n The RewardUnitSettings for the sourc unit\n """\n sourceRewardUnitSettings: RewardUnitSettings\n """\n The RewardUnitSettings for the destination unit, or the global reward config, if one exists\n """\n destinationRewardUnitSettings: RewardUnitSettings\n """\n The value of the reward being redeemed for fixed exchanges\n """\n sourceValue: Int\n """\n The rate of this reward exchange, applicable to VARIABLE_GLOBAL_REWARD and\n VARIABLE_CREDIT_REWARD\n """\n rate: Float\n """\n The step of this reward exchange, applicable to VARIABLE_GLOBAL_REWARD and\n VARIABLE_CREDIT_REWARD\n """\n step: Int\n """\n The min value of the reward being redeemed for variable exchanges\n """\n sourceMinValue: Int\n """\n The max value of the reward being redeemed for variable exchanges\n """\n sourceMaxValue: Int\n """\n The steps of this reward exchange, if applicable.\n """\n steps: [RewardExchangeRuleStep!]!\n """\n The date this RewardExchangeRule was created. This field is auto generated.\n """\n dateCreated: RSDate!\n """\n The date this RewardExchangeRule was last modified. This field is auto generated.\n """\n dateModified: RSDate\n """\n Translation info of this RewardExchangeRule\n """\n translationInfo: TranslationInfo!\n """\n Preview a visible reward exchange\n """\n previewVisibleRewardExchangeItem: VisibleRewardExchangeItem!\n}\n\n"""\nThe type of a RewardExchangeRule\n"""\nenum RewardExchangeRuleType {\n """\n A reward exchange where the destination is a fixed global reward\n """\n FIXED_GLOBAL_REWARD\n """\n A reward exchange where the destination is a global reward with a value override\n """\n VARIABLE_GLOBAL_REWARD\n """\n A reward exchange where the destination is a dynamic CREDIT reward\n """\n VARIABLE_CREDIT_REWARD\n """\n A reward exchange where the destination is a list of fixed global rewards\n """\n STEPPED_FIXED_GLOBAL_REWARD\n}\n\ntype RewardExchangeRuleStep {\n sourceValue: Int!\n globalRewardKey: String!\n}\n\ntype RewardExchangeRuleList {\n data: [RewardExchangeRule!]!\n count: Int!\n totalCount: Long!\n}\n\ntype RewardExchangeRuleDeleteResult {\n deletedCount: Long!\n}\n\ninput RewardExchangeRuleInput {\n key: String!\n """\n The type of this RewardExchangeRule\n """\n ruleType: RewardExchangeRuleType!\n """\n The human readable name for end users\n """\n name: String\n """\n The human readable name for portal display\n """\n internalName: String\n """\n The long description\n """\n description: String\n """\n The URL of the thumbnail\n """\n imageUrl: String\n """\n A list of country codes where this reward exchange is visible.\n An empty list means this reward exchange is available in all countries.\n """\n visibilityCountryCodes: [RSCountryCode!]\n """\n JSONata expression that calculates whether this reward exchange is visible to a user\n """\n visibilityPredicate: JSONata\n """\n JSONata expression that calculates whether this reward exchange is available to a user\n """\n availabilityPredicate: JSONata\n """\n The arbitrary list order\n """\n listOrder: Int\n """\n The unit of the reward being redeemed\n """\n sourceUnit: String\n """\n The unit of the destination reward, applicable to VARIABLE_CREDIT_REWARD\n """\n destinationUnit: String\n """\n The key of the destination global reward, applicable to FIXED_GLOBAL_REWARD\n and VARIABLE_GLOBAL_REWARD\n """\n globalRewardKey: String\n """\n The value of the reward being redeemed for fixed exchanges\n """\n sourceValue: Int\n """\n The rate of this reward exchange, applicable to VARIABLE_GLOBAL_REWARD and\n VARIABLE_CREDIT_REWARD\n """\n rate: Float\n """\n The step of this reward exchange, applicable to VARIABLE_GLOBAL_REWARD and\n VARIABLE_CREDIT_REWARD\n """\n step: Int\n """\n The min value of the reward being redeemed for variable exchanges\n """\n sourceMinValue: Int\n """\n The max value of the reward being redeemed for variable exchanges\n """\n sourceMaxValue: Int\n """\n The steps of this reward exchange, if applicable.\n """\n steps: [RewardExchangeRuleStepInput!]\n}\n\ninput RewardExchangeRuleStepInput {\n sourceValue: Int!\n globalRewardKey: String!\n}\n\n"""\nA reward exchanges that is visible to a user\n"""\ntype VisibleRewardExchangeItem {\n """\n The unique key of the corresponding RewardExchangeRule\n """\n key: String!\n """\n The human readable name\n """\n name: String\n """\n The long description\n """\n description: String\n """\n The URL of the thumbnail\n """\n imageUrl: String\n """\n The type of this RewardExchangeRule\n """\n ruleType: RewardExchangeRuleType!\n """\n Whether this reward exchange is available to this user\n """\n available: Boolean!\n """\n The machine readable code of the reason of this reward exchange being unavailable\n Possibilities are INSUFFICIENT_REDEEMABLE_CREDIT, US_TAX, MISSING_PAYOUT_CONFIGURATION,\n and AVAILABILITY_PREDICATE.\n If the availabilityPredicate of the corresponding RewardExchangeRule returns a\n non-null string, then that will be returned here.\n """\n unavailableReasonCode: String\n """\n The unit of the reward being redeemed\n """\n sourceUnit: String\n """\n The value of the reward being redeemed for fixed exchanges\n """\n sourceValue: Int\n """\n Formatted sourceValue\n """\n prettySourceValue(\n """\n The locale to use for formatting\n """\n locale: RSLocale\n """\n The type of the formatting\n """\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n """\n The min value of the reward being redeemed for variable exchanges\n """\n sourceMinValue: Int\n """\n Formatted sourceMinValue\n """\n prettySourceMinValue(\n """\n The locale to use for formatting\n """\n locale: RSLocale\n """\n The type of the formatting\n """\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n """\n The max value of the reward being redeemed for variable exchanges\n """\n sourceMaxValue: Int\n """\n Formatted sourceMaxValue\n """\n prettySourceMaxValue(\n """\n The locale to use for formatting\n """\n locale: RSLocale\n """\n The type of the formatting\n """\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n """\n The min value of the destination reward for variable exchanges\n """\n destinationMinValue: Int\n """\n Formatted destinationMinValue\n """\n prettyDestinationMinValue(\n """\n The locale to use for formatting\n """\n locale: RSLocale\n """\n The type of the formatting\n """\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n """\n The max value of the destination reward for variable exchanges\n """\n destinationMaxValue: Int\n """\n Formatted destinationMaxValue\n """\n prettyDestinationMaxValue(\n """\n The locale to use for formatting\n """\n locale: RSLocale\n """\n The type of the formatting\n """\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n """\n The key of the destination global reward, applicable to FIXED_GLOBAL_REWARD\n and VARIABLE_GLOBAL_REWARD\n """\n globalRewardKey: String\n """\n The unit of the destination reward, applicable to VARIABLE_CREDIT_REWARD\n """\n destinationUnit: String\n """\n The RewardUnitSettings for the sourc unit\n """\n sourceRewardUnitSettings: RewardUnitSettings\n """\n The RewardUnitSettings for the destination unit, or the global reward config, if one exists\n """\n destinationRewardUnitSettings: RewardUnitSettings\n """\n The steps of this reward exchange, if applicable. If this reward exchange has\n over 1000 steps, then only the first 1000 will be returned.\n """\n steps: [VisibleRewardExchangeItemStep!]!\n}\n\n"""\nA step of a visible reward exchange\n"""\ntype VisibleRewardExchangeItemStep {\n """\n The value of the reward being redeemed\n """\n sourceValue: Int!\n """\n Formatted sourceValue\n """\n prettySourceValue(\n """\n The locale to use for formatting\n """\n locale: RSLocale\n """\n The type of the formatting\n """\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n """\n The value of the destination reward\n """\n destinationValue: Int\n """\n Formatted destinationValue\n """\n prettyDestinationValue(\n """\n The locale to use for formatting\n """\n locale: RSLocale\n """\n The type of the formatting\n """\n formatType: RewardValueFormatType! = UNIT_FORMATTED\n ): String\n """\n The key of the destination global reward, applicable to STEPPED_FIXED_GLOBAL_REWARD.\n """\n globalRewardKey: String\n """\n The destination global reward config, applicable to STEPPED_FIXED_GLOBAL_REWARD.\n """\n globalRewardConfig: GlobalRewardConfig\n """\n The rewardInput for exchanging a reward with this step\'s override destination value,\n applicable to VARIABLE_GLOBAL_REWARD\n """\n rewardInput: RSJsonNode\n """\n Whether this step is available to the current user\n """\n available: Boolean!\n """\n The machine readable code of the reason of this step being unavailable.\n Possibilities are INSUFFICIENT_REDEEMABLE_CREDIT and US_TAX.\n """\n unavailableReasonCode: String\n}\n\ntype VisibleRewardExchangeItemList {\n data: [VisibleRewardExchangeItem!]!\n count: Int!\n totalCount: Long!\n}\n\ntype ManagedIdentityAuthenticationResult {\n """\n A JWT session token for the user\n """\n token: String!\n """\n The user\'s email address\n """\n email: String\n """\n Whether the user has verified their email address\n """\n emailVerified: Boolean\n """\n Additional session data used by managed identity session handlers\n """\n sessionData: RSJsonNode\n}\n\ntype ManagedIdentitySessionResult {\n """\n The user\'s email address\n """\n email: String\n """\n Whether the user has verified their email address\n """\n emailVerified: Boolean\n """\n Additional session data used by managed identity session handlers\n """\n sessionData: RSJsonNode\n}\n\ntype ManagedIdentitySuccessResult {\n success: Boolean!\n}\n\ntype SetPortalUserRolesResult {\n success: Boolean!\n}\n\ntype RemovePortalUsersFromPortalProjectResult {\n success: Boolean!\n}\n\ntype ResendPortalProjectInviteEmailResult {\n success: Boolean!\n}\n\ntype InviteEmailsToPortalProjectResult {\n success: Boolean!\n}\n\ninput RegisterManagedIdentityWithEmailAndPasswordInput {\n """\n The user\'s email address\n """\n email: String!\n """\n The new password for the user\n """\n password: String!\n """\n Additional data provided by the form\n """\n formData: RSJsonNode\n """\n The URL path to direct the user to for email verification, defaults to /verifyEmail\n """\n redirectPath: String\n}\n\ninput AuthenticateManagedIdentityWithEmailAndPasswordInput {\n """\n The user\'s email address\n """\n email: String!\n """\n The user\'s password\n """\n password: String!\n}\n\ninput AuthenticateManagedIdentityWithGoogleInput {\n """\n A valid Google OAuth ID token\n """\n idToken: String!\n}\n\ninput ChangeManagedIdentityPasswordInput {\n """\n The new password for the user\n """\n password: String!\n}\n\ninput RequestManagedIdentityEmailInput {\n """\n The user\'s email address\n """\n email: String!\n urlParams: RSJsonNode\n """\n defaults to /verifyEmail and /resetPassword\n """\n redirectPath: String\n}\n\ninput VerifyManagedIdentityEmailInput {\n """\n The out-of-band (OOB) code for the email verification\n """\n oobCode: String!\n}\n\ninput VerifyManagedIdentityPasswordResetCodeInput {\n """\n The out-of-band (OOB) code for the password reset\n """\n oobCode: String!\n}\n\ninput ResetManagedIdentityPasswordInput {\n """\n The user\'s new password\n """\n password: String!\n """\n The out-of-band (OOB) code for the password reset\n """\n oobCode: String!\n}\n\ntype ManagedIdentityResult {\n """\n Whether or not the user is disabled: true for disabled; false for enabled\n """\n disabled: Boolean!\n """\n The user\'s display name\n """\n displayName: String!\n """\n The user\'s primary email\n """\n email: String!\n """\n Whether or not the user\'s primary email is verified\n """\n emailVerified: Boolean!\n """\n The user\'s uid\n """\n uid: String!\n """\n The user\'s sign in methods if set\n """\n providerData: [ManagedIdentityProviderUserInfo!]!\n """\n The date the user was created\n """\n dateCreated: RSDate!\n """\n The time at which the user was last active (ID token refreshed).\n Returns null if the user was never active.\n """\n dateLastRefreshed: RSDate\n """\n The date the user last signed in\n """\n dateLastSignedIn: RSDate\n}\n\ntype ManagedIdentityProviderUserInfo {\n """\n The user identifier for the linked provider.\n """\n uid: String\n """\n The display name for the linked provider.\n """\n displayName: String\n """\n The email for the linked provider.\n """\n email: String\n """\n The phone number for the linked provider.\n """\n phoneNumber: String\n """\n The photo URL for the linked provider.\n """\n photoURL: String\n """\n The linked provider ID (for example, "google.com" for the Google provider).\n """\n providerId: String!\n}\n\ntype MicrositeLayoutConfig implements TranslatableAsset {\n """\n The unique key of this MicrositeLayoutConfig\n """\n key: String!\n """\n The human readable name\n """\n name: String\n """\n The key of the parent MicrositeLayoutConfig, if there is one.\n """\n parentKey: String\n """\n The date this MicrositeLayoutConfig was created. This field is auto generated.\n """\n dateCreated: RSDate!\n """\n The date this MicrositeLayoutConfig was last modified. This field is auto generated.\n """\n dateModified: RSDate\n """\n The config values JSON.\n Schema defined at https://fast.ssqt.io/npm/@saasquatch/schema/json/microsite/MicrositeLayoutConfigValues.schema.json\n """\n values: RSJsonNode!\n """\n The ancestry layouts of this layout\n """\n layoutAncestry: [MicrositeLayoutConfig!]!\n """\n Whether this MicrositeLayoutConfig can be deleted\n """\n canDelete: Boolean!\n """\n Get all the MicrositeLayoutConfigs that have this MicrositeLayoutConfig as the parent\n """\n usedByMicrositeLayoutConfigs: [MicrositeLayoutConfig!]!\n """\n Get all the MicrositePageConfigs that have this MicrositeLayoutConfig as the parent\n """\n usedByMicrositePageConfigs: [MicrositePageConfig!]!\n translationInfo: TranslationInfo!\n}\n\ninput MicrositeLayoutConfigInput {\n """\n The unique key of this MicrositeLayoutConfig\n """\n key: String!\n """\n The human readable name\n """\n name: String\n """\n The key of the parent MicrositeLayoutConfig\n """\n parentKey: String\n """\n The config values JSON.\n Schema defined at https://fast.ssqt.io/npm/@saasquatch/schema/json/microsite/MicrositeLayoutConfigValues.schema.json\n """\n values: RSJsonNode\n}\n\nenum MicrositePageAllowedUsersOption {\n """\n Users who have logged in and verified their email address\n """\n VERIFIED\n """\n Users who have logged in, but haven\'t yet verified their email address\n """\n UNVERIFIED\n """\n Users who are not logged in\n """\n PUBLIC\n}\n\ntype MicrositePageConfig implements TranslatableAsset {\n """\n The unique key of this MicrositePageConfig\n """\n key: String!\n """\n The key of the corresponding MicrositeLayoutConfig\n """\n layoutKey: String\n """\n The URL path this page should be served under (must be unique for each page)\n """\n urlPath: String!\n """\n The URL path to redirect users who are not of the type allowedUsers\n """\n disallowedUrlPath: String\n """\n The users who are allowed to view this page\n """\n allowedUsers: MicrositePageAllowedUsersOption!\n """\n The date this MicrositePageConfig was created. This field is auto generated.\n """\n dateCreated: RSDate!\n """\n The date this MicrositePageConfig was last modified. This field is auto generated.\n """\n dateModified: RSDate\n """\n The config values JSON.\n Schema defined at https://fast.ssqt.io/npm/@saasquatch/schema/json/microsite/MicrositePageConfigValues.schema.json\n """\n values: RSJsonNode!\n """\n The ancestry layouts of this page\n """\n layoutAncestry: [MicrositeLayoutConfig!]!\n """\n Whether this MicrositePageConfig can be deleted\n """\n canDelete: Boolean!\n """\n Whether this MicrositePageConfig is used as the 404 not found page\n """\n usedAsNotFound: Boolean!\n translationInfo: TranslationInfo!\n}\n\ninput MicrositePageConfigInput {\n """\n The unique key of this MicrositePageConfig\n """\n key: String!\n """\n The key of the corresponding MicrositeLayoutConfig\n """\n layoutKey: String\n """\n The URL path this page should be served under\n """\n urlPath: String\n """\n The URL path to redirect users who are not of the type allowedUsers\n """\n disallowedUrlPath: String\n """\n The users who are allowed to view this page\n """\n allowedUsers: MicrositePageAllowedUsersOption\n """\n The config values JSON.\n Schema defined at https://fast.ssqt.io/npm/@saasquatch/schema/json/microsite/MicrositePageConfigValues.schema.json\n """\n values: RSJsonNode\n}\n\ntype MicrositeLayoutConfigList {\n data: [MicrositeLayoutConfig!]!\n count: Int!\n totalCount: Long!\n}\n\ntype MicrositePageConfigList {\n data: [MicrositePageConfig!]!\n count: Int!\n totalCount: Long!\n}\n\ntype MicrositeLayoutConfigDeleteResult {\n deletedCount: Int!\n}\n\ntype MicrositePageConfigDeleteResult {\n deletedCount: Int!\n}\n\ntype RenderMicrositePageResult {\n """\n The (potentially translated) microsite page config\n """\n micrositePageConfig: MicrositePageConfig!\n """\n The list of (potentially translated) microsite layout configs forming the layout ancestry\n of the page\n """\n micrositeLayoutConfigs: [MicrositeLayoutConfig!]!\n}\n\ntype AutoSetupMicrositeResult {\n success: Boolean!\n}\n\ntype MicrositeTemplate {\n """\n The unique key of this microsite template\n """\n key: String!\n """\n The human readable name\n """\n name: String!\n """\n The human readable long description\n """\n description: String!\n """\n Determine whether a microsite can be automatically setup for the given microsite template.\n\n This checks ensures that:\n - Microsite hosting has never been enabled, see MicrositeHostingConfig.isModified\n - Managed identity has never been enabled, see ManagedIdentityConfig.isModified\n - That none of the forms, emails, layouts, or pages that would be created by the template already exist\n """\n canAutoSetup: Boolean!\n """\n All the GlobalEmailConfigs defined by this template that already exist, disallowing auto setup\n """\n existingGlobalEmailConfigs: [GlobalEmailConfig!]!\n """\n All the Forms defined by this template that already exist, disallowing auto setup\n """\n existingForms: [Form!]!\n """\n All the MicrositeLayoutConfigs defined by this template that already exist, disallowing auto setup\n """\n existingMicrositeLayoutConfigs: [MicrositeLayoutConfig!]!\n """\n All the MicrositePageConfigs defined by this template that already exist, disallowing auto setup\n """\n existingMicrositePageConfigs: [MicrositePageConfig!]!\n}\n\ntype MicrositeTemplateList {\n data: [MicrositeTemplate!]!\n count: Int!\n totalCount: Long!\n}\n\ntype MicrositeHostingConfig {\n """\n The default (auto-generated) domain for the microsite\n """\n defaultDomain: String!\n """\n Wether the microsite is based on a single global widget (legacy) or pages/layouts\n """\n isSingleGlobalWidget: Boolean!\n """\n Whether this MicrositeHostingConfig has been modified\n """\n isModified: Boolean!\n """\n Schema defined at https://fast.ssqt.io/npm/@saasquatch/schema/json/HostedPortalConfig.schema.json\n """\n config: RSJsonNode!\n}\n\ntype ManagedIdentityConfig {\n """\n Whether this ManagedIdentityConfig has been modified\n """\n isModified: Boolean!\n """\n Schema defined at https://fast.ssqt.io/npm/@saasquatch/schema/json/ManagedIdentityConfig.schema.json\n """\n config: RSJsonNode!\n}\n\ninput SendPortalEmailInput {\n """\n The name of the internal email template\n """\n templateName: String!\n """\n The rendering context of the email\n """\n context: RSJsonNode!\n """\n The recipients of the email.\n Each email address will receive a separate email as the sole recipient.\n """\n emails: [String!]!\n}\n\ntype SendPortalEmailResult {\n """\n The subject of the email\n """\n subject: String\n """\n The body of the email\n """\n body: String\n}\n\ntype StartImpactSessionResult {\n success: Boolean!\n}\n\ntype EndImpactSessionResult {\n success: Boolean!\n}\n\ntype ReferralDeleteResult {\n deletedCount: Long!\n}\n\ntype RefreshMatchedImpactPartnerForUserResult {\n user: User!\n}\n\ntype BeefreeServerSideLoginResult {\n accessToken: String!\n}\n\ntype ConvertEmailHtmlContentToJsonResult {\n jsonContent: RSJsonNode!\n}\n\ntype ConvertEmailJsonContentToHtmlResult {\n htmlContent: String!\n}\n\nschema {\n query: Query\n mutation: Mutation\n}\n';var Dp="test_canned";var Ap="https://canned.invalid";var kp=100;var qp;function Pp(){if(!qp)qp=Zs(Ip);return qp}var Np=function(){function e(e){if(e===void 0){e={}}Ue(this,"options",e);Ue(this,"schema");var n=Pp();this.schema=zm({schema:n,mocks:Cp(Ep(n),e.mocks)})}e.prototype.request=function(e,n,t){return __awaiter(this,void 0,void 0,(function(){var t,a,r,i,s;var o=this;return __generator(this,(function(l){switch(l.label){case 0:r=typeof e==="string"?e:we(e);i="".concat((t=this.options.seed)!=null?t:"","|").concat(r,"|").concat(JSON.stringify(n!=null?n:{}));s=rp(i,(function(){return Gs({schema:o.schema,source:r,variableValues:n})}));if(!this.options.latency)return[3,2];return[4,new Promise((function(e){return setTimeout(e,o.options.latency)}))];case 1:l.sent();l.label=2;case 2:if((a=s.errors)==null?void 0:a.length){throw new Be.ClientError({data:s.data,errors:s.errors.map(Me),status:200},{query:r,variables:n})}return[2,s.data]}}))}))};return e}();function Fp(e){return new Np(e)}function Lp(e,n){var t=n instanceof Np?n:Fp(n);var a=new d({element:e,contextName:Ge,initialState:t}).start();return function(){return a.stop()}}var Op=new WeakMap;function Up(e){var n=window.fetch;var t=true;var a="".concat(Ap,"/api/v1/").concat(Dp,"/graphql");var r=function(e){return new Response(JSON.stringify(e),{status:200,headers:{"Content-Type":"application/json"}})};window.fetch=function i(s,o){return __awaiter(this,void 0,void 0,(function(){var i,l,d,u,c,m,p,g,f,h,v,b,y,w;var _;return __generator(this,(function(x){switch(x.label){case 0:m=typeof s==="string"?s:s instanceof URL?s.href:s.url;if(!t||m!==a)return[2,n.call(this,s,o)];if(!((i=o==null?void 0:o.body)!=null))return[3,1];g=i;return[3,5];case 1:if(!(typeof s==="string"||s instanceof URL))return[3,2];f=void 0;return[3,4];case 2:return[4,s.clone().text()];case 3:f=x.sent();x.label=4;case 4:g=f;x.label=5;case 5:p=g;h=JSON.parse(String(p!=null?p:"{}")),v=h.query,b=h.variables;x.label=6;case 6:x.trys.push([6,8,,9]);y=r;_={};return[4,e.request(v,b)];case 7:return[2,y.apply(void 0,[(_.data=x.sent(),_)])];case 8:w=x.sent();return[2,r({data:(d=(l=w==null?void 0:w.response)==null?void 0:l.data)!=null?d:null,errors:(c=(u=w==null?void 0:w.response)==null?void 0:u.errors)!=null?c:[{message:String(w)}]})];case 9:return[2]}}))}))};var i=window.fetch;return function(){t=false;Op.set(i,n);if(window.fetch!==i)return;var e=n;while(Op.has(e))e=Op.get(e);window.fetch=e}}function Bp(e){if(e===void 0){e={}}var n=e,t=n.user,a=n.programId,r=n.widgetIdent,s=qe(n,["user","programId","widgetIdent"]);window.widgetIdent=Pe({tenantAlias:Dp,appDomain:Ap,programId:a},r);var o=i((function(){var e={};Mp=e;Ne(window.widgetIdent.programId);var n=r==null?void 0:r.locale;var t=Fp(Fe(Pe({latency:kp},s),{mocks:n?Cp({User:function(){return{locale:n}}},s.mocks):s.mocks}));var a=Lp(document.body,t);var i=Up(t);return{story:e,stop:function(){a();i()}}}),[]),d=o.story,u=o.stop;l((function(){Le(Gp(t,r));return function(){u();if(Mp!==d)return;Mp=void 0;window.widgetIdent=void 0;Le(void 0)}}),[])}var Mp;function Gp(e,n){if(e){return{id:e.id,accountId:e.accountId,email:e.email,jwt:Oe({user:e})}}var t=n!=null?n:{},a=t.userId,r=t.accountId,i=t.token,s=t.email;if(a&&r&&i){return{id:a,accountId:r,email:s,jwt:i}}return void 0}var Vp={title:"Hooks / useBigStat"};function Wp(){var e="zach.harrison@referralsaasquatch.com";var n=e;var t="klip-referral-program";Bp({programId:t,user:{id:e,accountId:n}})}var jp=function(e,t,a){Wp();return n("div",null,n("b",null,"Stat format:"),n("pre",null,t),n("br",null),n("b",null,"Stat selected:")," ",n("pre",{style:{color:"green"}},e),n("sqm-big-stat",{"stat-type":e},a))};var Hp=function(){var e=s("/someRandomThing/with/someArguments/1234"),t=e[0],a=e[1];var r=v({statType:t,render:function(){},disconnectedCallback:function(){},ignored:true}),i=r.props,o=r.label;return n("div",null,n("div",null,"Stat type:"," ",n("input",{style:{width:"300px"},type:"text",value:t,onInput:function(e){return a(e.target.value)}})),n("hr",null),n("div",null,n(m,__assign({},i),o)))};var zp=Nu(Hp);var Yp=Nu((function(){return jp("/referralsCount","/(referralsCount)/:status?")}));var Jp=Nu((function(){return jp("/referralsCount/converted","/(referralsCount)/:status?")}));var Kp=Nu((function(){return jp("/referralsCount/started","/(referralsCount)/:status?")}));var Xp=Nu((function(){return jp("/referralsMonth","/(referralsMonth)")}));var $p=Nu((function(){return jp("/referralsWeek","/(referralsWeek)")}));var Qp=Nu((function(){return jp("/rewardsCount","/(rewardsCount)/:global?")}));var Zp=Nu((function(){return jp("/rewardsCount/global","/(rewardsCount)/:global")}));var eg=Nu((function(){return jp("/rewardsCountFiltered/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var ng=Nu((function(){return jp("/rewardsCountFiltered/PCT_DISCOUNT/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var tg=Nu((function(){return jp("/rewardsCountFiltered/PCT_DISCOUNT/PENDING/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var ag=Nu((function(){return jp("/rewardsCountFiltered/CREDIT/COFFEE","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var rg=Nu((function(){return jp("/rewardsCountFiltered/CREDIT/COFFEE/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var ig=Nu((function(){return jp("/rewardsCountFiltered/CREDIT/COFFEE/PENDING/global","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var sg=Nu((function(){return jp("/rewardsCountFiltered/AVAILABLE","/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var og=Nu((function(){return jp("/integrationRewardsCountFiltered/AVAILABLE/global","/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var lg=Nu((function(){return jp("/integrationRewardsCountFiltered/PENDING/global","/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?")}));var dg=Nu((function(){return jp("/rewardsMonth","/(rewardsMonth)/:global?")}));var ug=Nu((function(){return jp("/rewardsWeek","/(rewardsWeek)/:global?")}));var cg=Nu((function(){return jp("/rewardsAssigned/CREDIT/COFFEE","/(rewardsAssigned)/:statType/:unit/:global?")}));var mg=Nu((function(){return jp("/rewardsAssigned/CREDIT/CASH%2FUSD","/(rewardsAssigned)/:statType/:unit/:global?")}));var pg=Nu((function(){return jp("/rewardsPending/CREDIT/USD","/(rewardsPending)/:statType/:unit/:global?")}));var gg=Nu((function(){return jp("/rewardsPending/CREDIT/USD/global","/(rewardsPending)/:statType/:unit/:global?")}));var fg=Nu((function(){return jp("/rewardsRedeemed/CREDIT/USD","/(rewardsRedeemed)/:statType/:unit/:global?")}));var hg=Nu((function(){return jp("/rewardsRedeemedWeek/CREDIT/USD","/(rewardsRedeemedWeek)/:statType/:unit/:global?")}));var vg=Nu((function(){return jp("/rewardsRedeemedMonth/CREDIT/USD","/(rewardsRedeemedMonth)/:statType/:unit/:global?")}));var bg=Nu((function(){return jp("/rewardsRedeemed/CREDIT/USD/global","/(rewardsRedeemed)/:statType/:unit/:global?")}));var yg=Nu((function(){return jp("/rewardsRedeemedWeek/CREDIT/USD/global","/(rewardsRedeemedWeek)/:statType/:unit/:global?")}));var wg=Nu((function(){return jp("/rewardsRedeemedMonth/CREDIT/USD/global","/(rewardsRedeemedMonth)/:statType/:unit/:global?")}));var _g=Nu((function(){return jp("/rewardsAvailable/CREDIT/COFFEE","/(rewardsAvailable)/:statType/:unit/:global?")}));var xg=Nu((function(){return jp("/rewardsAvailable/CREDIT/CASH%2FUSD","/(rewardsAvailable)/:statType/:unit/:global?")}));var Tg=Nu((function(){return jp("/rewardBalance/CREDIT/COFFEE/prettyValue","/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?")}));var Sg=Nu((function(){var e=encodeURIComponent("CASH/USD");return jp("/rewardBalance/CREDIT/".concat(e,"/prettyValue"),"/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?")}));var Eg=Nu((function(){var e=encodeURIComponent("Paid-Member-Goal/referrals");return jp("/programGoals/count/".concat(e),"/(programGoals)/:metricType/:goalId")}));var Cg=Nu((function(){return jp("/customFields/thingCount","/(customFields)/:customField")}));var Rg=Nu((function(){return jp("/customFields/thingCount","/(customFields)/:customField",n("sqm-text",null,"Thing Count"))}));var Ig=Nu((function(){return jp("/customFields/thingCount","/(customFields)/:customField"," ")}));var Dg=Nu((function(){return jp("/customFields/thingCount","/(customFields)/:customField","\n ")}));var Ag=Nu((function(){return jp("/customFields/thingCount","/(customFields)/:customField","Thing Count")}));var kg=Nu((function(){return jp("/traffic","/(traffic)")}));var qg=Nu((function(){return jp("/userStats/traffic","/(userStat)/:statId","Traffic")}));var Pg=Nu((function(){return jp("/userStats/referrals","/(userStat)/:statId","Referrals")}));var Ng=Nu((function(){return jp("/userStats/conversions","/(userStat)/:statId","Conversions")}));var Fg=Nu((function(){return jp("/userStats/goals","/(userStat)/:statId","Goals")}));var Lg=Nu((function(){return jp("/userStats/rewards","/(userStat)/:statId","Rewards")}));var Og=Nu((function(){return jp("/userStats/widgetLoads","/(userStat)/:statId","Widget Loads")}));var Ug=Nu((function(){return jp("/userStats/revenue","/(userStat)/:statId","Revenue")}));var Bg=Nu((function(){return jp("/userStats/generatedRevenue","/(userStat)/:statId","Generated Revenue")}));var Mg=Nu((function(){return jp("/userStats/referredRevenue","/(userStat)/:statId","Referred Revenue")}));var Gg=Nu((function(){return jp("/payoutBalance","/(payoutBalance)")}));var Vg=Object.freeze({__proto__:null,default:Vp,Demo:zp,ReferralsCount:Yp,referralsConvertedCount:Jp,referralsStartedCount:Kp,ReferralsMonth:Xp,ReferralsWeek:$p,RewardsCount:Qp,GlobalRewardsCount:Zp,GlobalRewardsCountFiltered:eg,GlobalRewardsCountPctDiscount:ng,GlobalRewardsCountPctDiscountPending:tg,RewardsCountByUnit:ag,GlobalRewardsCountByUnit:rg,GlobalPendingRewardsCount:ig,RewardsAvailableCount:sg,GlobalRewardsCountByIntegration:og,GlobalRewardsCountByPendingIntegration:lg,RewardsMonth:dg,RewardsWeek:ug,RewardsAssigned:cg,RewardsAssignedCashUSD:mg,RewardsPending:pg,RewardsPendingGlobal:gg,RewardsRedeemed:fg,RewardsRedeemedWeek:hg,RewardsRedeemedMonth:vg,RewardsRedeemedGlobal:bg,RewardsRedeemedWeekGlobal:yg,RewardsRedeemedMonthGlobal:wg,RewardsAvailable:_g,RewardsAvailableWithSlash:xg,RewardBalance:Tg,RewardBalanceCashUSD:Sg,ProgramGoals:Eg,CustomField:Cg,CustomFieldWithLabel:Rg,CustomFieldWithEmptyLabel:Ig,CustomFieldWithEmptySpaceLabel:Dg,CustomFieldWithTextLabel:Ag,Traffic:kg,TrafficTwo:qg,Referrals:Pg,Conversions:Ng,Goals:Fg,Rewards:Lg,WidgetLoads:Og,Revenue:Ug,GeneratedRevenue:Bg,ReferredRevenue:Mg,PayoutBalance:Gg});var Wg='@author:derek\n@owner:logan\nFeature: Brand Configuration\n\n\t@motivating\n\tScenario: The brand components creates a colour pallet from a brand colour and applies it to children\n\t\tGiven a brand component with "brand-color" "#4225c4"\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the following css variables are set\n\t\t\t| variable | value |\n\t\t\t| --sl-color-primary-50 | hsla(251, 68%, 95%, 1) |\n\t\t\t| --sl-color-primary-100 | hsla(251, 68%, 86%, 1) |\n\t\t\t| --sl-color-primary-200 | hsla(251, 68%, 76%, 1) |\n\t\t\t| --sl-color-primary-300 | hsla(251, 68%, 66%, 1) |\n\t\t\t| --sl-color-primary-400 | hsla(251, 68%, 56%, 1) |\n\t\t\t| --sl-color-primary-500 | hsla(251, 68%, 46%, 1) |\n\t\t\t| --sl-color-primary-600 | hsla(251, 68%, 39%, 1) |\n\t\t\t| --sl-color-primary-700 | hsla(251, 68%, 32%, 1) |\n\t\t\t| --sl-color-primary-800 | hsla(251, 68%, 25%, 1) |\n\t\t\t| --sl-color-primary-900 | hsla(251, 68%, 18%, 1) |\n\t\t\t| --sl-color-primary-950 | hsla(251, 68%, 15%, 1) |\n\t\t\t| --sl-focus-ring-color-primary | var(--sl-color-primary-100) |\n\t\t\t| --sl-input-border-color-focus | var(--sl-color-primary-500) |\n\t\t\t| --sl-color-primary-hue | var(--sl-color-primary-500) |\n\t\tAnd they are applied to the children components\n\t\tBut they are not applied to any components outside of the brand component\n\t\tAnd they are not applied to any vanilla components\n\n\t@minutia\n\tScenario Outline: The brand colour can be hex, HSL or rgb\n\t\tGiven a brand component with "brand-color" <colour>\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the colour is used to create a brand palete\n\t\tAnd it is applied to the children components\n\t\tExamples:\n\t\t\t| colour |\n\t\t\t| #4225c4 |\n\t\t\t| rgb(66, 37, 196) |\n\t\t\t| hsl(251, 68%, 46%) |\n\t\t\t| hsla(251, 68%, 46%, 1) |\n\n\t@motivating\n\tScenario: The brand component can apply a brand font to children components\n\t\tGiven a brand component with "brand-font" "Nunito Sans"\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the following css variables are set\n\t\t\t| variable | value |\n\t\t\t| --sl-font-sans | "Nunito Sans", arial |\n\t\t\t| --sl-input-font-family | "Nunito Sans", arial |\n\t\t\t| --sl-tooltip-font-family | "Nunito Sans", arial |\n\t\t\t| font-family | "Nunito Sans", arial |\n\t\tAnd they are applied to the children components\n\t\tAnd the children component\'s text is "Nunito Sans"';var jg={title:"Components/Brand",parameters:{scenario:Wg}};var Hg=function(){return n("div",{style:{padding:"10px",border:"5px solid #EEE"}},n("div",{style:{display:"flex",gap:"5px",padding:"5px"}},n("sl-button",{type:"default"},"Default"),n("sl-button",{type:"primary"},"Primary"),n("sl-button",{type:"success"},"Success"),n("sl-button",{type:"neutral"},"Neutral"),n("sl-button",{type:"warning"},"Warning"),n("sl-button",{type:"danger"},"Danger")),n("div",{style:{display:"flex",gap:"5px",padding:"5px"}},n("sl-badge",{type:"primary"},"Primary"),n("sl-badge",{type:"success"},"Success"),n("sl-badge",{type:"neutral"},"Neutral"),n("sl-badge",{type:"warning"},"Warning"),n("sl-badge",{type:"danger"},"Danger")),n("div",{class:"color-palette"},n("div",{class:"color-palette__name"},"Primary",n("br",null),n("code",null,"--sl-color-primary-",n("em",null,"{n}"))),n("div",{style:{display:"flex",gap:"5px"}},n(Jg,{depth:50}),n(Jg,{depth:100}),n(Jg,{depth:200}),n(Jg,{depth:300}),n(Jg,{depth:400}),n(Jg,{depth:500}),n(Jg,{depth:600}),n(Jg,{depth:700}),n(Jg,{depth:800}),n(Jg,{depth:900}),n(Jg,{depth:950}))))};var zg=function(){return n("div",null,n(Hg,null),n("sqm-brand",{"brand-color":"#FF0000"},n(Hg,null)),n("sqm-brand",{"brand-color":"#00FF00"},n(Hg,null)),n("sqm-brand",{"brand-color":"#0000FF"},n(Hg,null)),n("sqm-brand",{"brand-color":"#000000"},n(Hg,null)))};var Yg=function(){return n("div",null,"Default ",n(Hg,null),n("sqm-brand",{"brand-color":"#FF0000"},"Red:",n(Hg,null),n("sqm-brand",{"brand-color":"#00FF00"},"Green:",n(Hg,null),n("sqm-brand",{"brand-color":"#0000FF"},"Blue:",n(Hg,null),n("sqm-brand",{"brand-color":"#000000"},"Black:",n(Hg,null))))))};function Jg(e){var t=e.depth;return n("div",{style:{backgroundColor:"var(--sl-color-primary-".concat(t,")"),color:"var(--sl-color-neutral-".concat(1e3-t,")"),width:"50px",height:"50px",display:"flex",justifyContent:"center",alignItems:"center"}},t)}var Kg=function(){return n("div",null,n(Hg,null),n("sqm-brand",{"brand-font":"Roboto"},"Roboto",n(Hg,null)),n("sqm-brand",{"brand-font":"Open Sans"},"Open Sans",n(Hg,null)),n("sqm-brand",{"brand-font":"Lato"},"Lato",n(Hg,null)),n("sqm-brand",{"brand-font":"Oswald"},"Oswald",n(Hg,null)))};var Xg=Object.freeze({__proto__:null,default:jg,Examples:zg,Nested:Yg,Fonts:Kg});var $g='@author:kutay\n@owner:kutay\nFeature: Card Feed\n\n\tThe Card Feed component displays Task Card components in a grid layout.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Card Feed component\n\n\t@motivating\n\tScenario: The Card Feed component displays Task Cards given as children slots\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tWhen the user views the Card Feed\n\t\tThen the task cards are displayed in a masonry layout\n\t\tWhen the card feed with grows or shrinks in width\n\t\tThen the number of columns adjust to the given width\n\n\t@motivating\n\t@ui\n\tScenario Outline: The Card Feed component can have a maximum width\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tAnd has prop "width" has a provided <value>\n\t\tThen the task cards are displayed in a masonry layout\n\t\tWhen the card feed with grows or shrinks in width\n\t\tThen the number of columns adjust to the given width\n\t\tAnd the task cards do not exceed <width>\n\t\tExamples:\n\t\t\t| value | width |\n\t\t\t| | 347px |\n\t\t\t| 200 | 200px |\n\t\t\t| 400 | 400px |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The Card Feed component gap between task cards can be customized\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tAnd has prop "gap" has a provided <value>\n\t\tThen the task cards are displayed in a masonry layout\n\t\tAnd the gap between the columns is the <gap>\n\t\tExamples:\n\t\t\t| value | gap |\n\t\t\t| | 24px |\n\t\t\t| 20 | 20px |\n\t\t\t| 50 | 50px |';var Qg={title:"Components/Card Feed",parameters:{scenario:$g}};var Zg={callbacks:{sendEvent:function(){return void 0},onClick:function(){return void 0}},content:{rewardAmount:"20",rewardUnit:"SaaSquatch Points",cardTitle:"Complete a survey",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",repeatable:false,showProgressBar:false,steps:false,buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:false,rewardDuration:null,completedText:"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",expiryMessage:"Ends {endDate}",startsOnMessage:"Starts {startDate}",endedMessage:"Ended {endDate}",finite:0,goal:1,locale:"en"},states:{progress:0,loading:false,loadingEvent:false}};var ef={callbacks:{sendEvent:function(){return void 0},onClick:function(){return void 0}},content:{rewardAmount:"40",rewardUnit:"SaaSquatch Points",cardTitle:"Comment on 5 articles",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",repeatable:false,showProgressBar:true,steps:true,buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:false,completedText:"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",rewardDuration:null,expiryMessage:"Ends {endDate}",startsOnMessage:"Starts {startDate}",endedMessage:"Ended {endDate}",finite:0,goal:5,locale:"en"},states:{progress:1,loading:false,loadingEvent:false}};var nf={callbacks:{sendEvent:function(){return void 0},onClick:function(){return void 0}},content:{rewardAmount:"150",rewardUnit:"SaaSquatch Points",cardTitle:"Spend $500 at our Store",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",repeatable:false,completedText:"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",showProgressBar:true,steps:false,progressBarUnit:"$",buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:false,rewardDuration:null,expiryMessage:"Ends {endDate}",startsOnMessage:"Starts {startDate}",endedMessage:"Ended {endDate}",finite:0,goal:500,locale:"en"},states:{progress:100,loading:false,loadingEvent:false}};var tf=function(){return n(y,{width:347,gap:24},n(b,__assign({},Zg)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},ef)),n(b,__assign({},ef)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},nf)))};var af=function(){return n(y,{width:400,gap:150},n(b,__assign({},Zg)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},ef)),n(b,__assign({},ef)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},nf)))};var rf=function(){return n(y,{width:400,gap:12},n(b,__assign({},Zg)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},ef)),n(b,__assign({},ef)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},nf)))};var sf=function(){return n(y,{width:1e3,gap:24},n(b,__assign({},Zg)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},ef)),n(b,__assign({},ef)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},nf)))};var of=function(){return n(y,{width:250,gap:24},n(b,__assign({},Zg)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},ef)),n(b,__assign({},ef)),n("div",null,n(b,__assign({},ef))),n("div",null,n("div",null,n(b,__assign({},Zg)))),n(b,__assign({},nf)))};var lf=function(){return n(y,{width:300,gap:24},n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-flex",alignItems:"center",justifyContent:"center"}},"PLACEHOLDER"),n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"))};var df=Object.freeze({__proto__:null,default:Qg,TaskCardGrid:tf,TaskCardGridHighGap:af,TaskCardGridLowGap:rf,TaskCardGridHighWidth:sf,TaskCardGridLowWidth:of,CardFeedGeneric:lf});var uf='@owner:sam\n@author:sam\nFeature: Checkbox Field\n\n Field to be used to be used as a checkbox during registration. A motivating use case is to use this component as a terms\n and conditions field, to sastisfy legal requirements that a customer might have for their end users.\n\n Background: A user is on the portal registration page\n Given a user is viewing the "/register"\n And "/register" contains the registration form\n And the registration form has the following fields\n | fields |\n | first name |\n | last name |\n | email |\n | password |\n | checkbox |\n\n @motivating\n Scenario: Checkbox is required by default\n Given the user is filling out the registration form\n And the name fields have valid input\n And the email field has valid input\n And the password field has valid input\n And the checkbox is not checked\n When they try to register\n Then the checkbox is highlighted in red\n And the error message says "Must be checked"\n\n @landmine\n Scenario: Checkboxes with the same "checkbox-name" are not submitted in the form data\n Given the register form has the following html\n """\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n <sqm-checkbox-field\n slot="formData"\n checkbox-label="I am not a robot"\n error-message="Cannot be a robot"\n checkbox-name="isHuman"\n ></sqm-checkbox-field>\n <div slot="terms">\n <sqm-checkbox-field checkbox-name="isHuman"></sqm-checkbox-field>\n </div>\n </sqm-portal-register>\n """\n And the checkboxes are checked\n When the user tries to register\n Then the form is submitted\n But no field with key "isHuman" is included in the form data\n\n @motivating\n Scenario: Multiple checkboxes need different "checkbox-name" values\n Given the register form has the following html\n """\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n <sqm-checkbox-field\n slot="formData"\n checkbox-label="I am not a robot"\n error-message="Cannot be a robot"\n checkbox-name="isHuman"\n ></sqm-checkbox-field>\n <div slot="terms">\n <sqm-checkbox-field checkbox-name="myCheckbox"></sqm-checkbox-field>\n </div>\n </sqm-portal-register>\n """\n And the checkboxes are not checked\n When the user tries to register\n Then both checkboxes are bordered in red\n And the checkboxes have different error messages\n When the user checks the boxes\n And tries to register\n Then the form is submitted\n And the following fields are included in the form data\n | feilds |\n | isHuman |\n | myCheckbox |\n\n @motivating\n Scenario: Checkboxes can be optional\n Given the register form has the following html\n """\n <sqm-portal-register>\n <sqm-name-fields slot="formData"></sqm-name-fields>\n <sqm-checkbox-field\n slot="formData"\n checkbox-label="I am not a robot"\n checkbox-optional="true"\n checkbox-name="isHuman"\n />\n </sqm-portal-register>\n """\n And the checkbox is not checked\n When the user tries to register\n Then there is no error for the checkbox\n\n @minutia\n Scenario Outline: Validation error message is configurable\n The error message string is evaluated as an ICU string, but currently is provided no context\n Given the checkbox is required\n And the checkbox has prop "error-message" with <propValue>\n When the user tries to register\n But they havent checked the checkbox\n Then they see <errorMessage> below\n Examples:\n | propValue | errorMessage |\n | | Must be checked |\n | My Custom Message | My Custom Message |\n\n @motivating\n Scenario Outline: Checkbox text and link are configurable\n Given the checkbox has the following prop values\n | prop | value |\n | checkbox-label | <labelText> |\n | checkbox-label-link | <labelLink> |\n | checkbox-label-link-text | <labelLinkText> |\n When the user views the checkbox\n Then they see <text>\n And when they click <labelLinkText> they are redirected to <labelLink>\n #First example below is the defaults set by the controller\n Examples:\n | labelText | labelLinkText | labelLink | text |\n | By signing up you agree to the {labelLink} | Terms and Conditions | https://example.com | By signing up you agree to the Terms and Conditions |\n | Read our {labelLink} before registration | Terms of Service | https://example.com/terms | Read our Terms of Service before registration |\n | By registering you agree to our terms and conditions | N/A | N/A | By registering you agree to our terms and conditions |\n\n @motivating\n Scenario: The form field name attribute is configurable\n Given the checkbox has prop "checkbox-name" with value "myCheckBox"\n When the user checks the box\n And they register\n Then the boolean value of the checkbox is submitted under "myCheckBox" field\n\n @minutia\n Scenario Outline: The checkbox field component fails fast if a checkbox name isn\'t provided\n Given the checkbox <mayHave> prop "checkbox-name"\n And it <mayHavePropValue>\n When a user views the checkbox\n Then an alert with an error message is displayed in place of the checkbox\n And it has a details section\n When "More details" is clicked\n Then the following information is displayed\n | information |\n | component being used |\n | missing attribute(s) |\n Examples:\n | mayBeAnAttribute | mayHavePropValue |\n | doesn\'t have | N/A |\n | has | "" |\n | has | |';var cf={title:"Components/Checkbox Field",parameters:{scenario:uf}};var mf={states:{registrationFormState:{validationErrors:{}},checked:false},content:{checkboxName:"terms",checkboxLabel:"By signing up you agree to the {labelLink}",checkboxLabelLink:"https://example.com",checkboxLabelLinkText:"Terms and Conditions",errorMessage:"Must be checked"},callbacks:{setChecked:function(){}}};var pf={states:{registrationFormState:{},error:"",loading:false,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}};var gf=Nu((function(){return n(w,__assign({},mf))}));var ff=Nu((function(){return n(w,__assign(__assign({},mf),{states:__assign(__assign({},mf.states),{checked:true})}))}));var hf=Nu((function(){return n(w,__assign(__assign({},mf),{content:__assign(__assign({},mf.content),{checkboxLabel:"I Agree"})}))}));var vf=Nu((function(){return n(w,__assign(__assign({},mf),{states:__assign(__assign({},mf.states),{registrationFormState:{validationErrors:{agree:"Must be checked"}}})}))}));var bf=Nu((function(){return n(w,__assign(__assign({},mf),{states:__assign(__assign({},mf.states),{registrationFormState:{validationErrors:{agree:"Must be checked"}}}),content:__assign(__assign({},mf.content),{errorMessage:"This checkbox must be checked to continue"})}))}));var yf=Nu((function(){return n(je,__assign(__assign({},pf),{content:__assign(__assign({},pf.content),{terms:n("p",null,n("sqm-checkbox-field",null))})}))}));var wf=Nu((function(){return n(je,__assign(__assign({},pf),{content:__assign(__assign({},pf.content),{terms:n("p",null,"By signing up you agree to the"," ",n("a",{href:"https://example.com",target:"_blank"},"Terms and Conditions"),n("sqm-checkbox-field",{"checkbox-label":"I agree"}))})}))}));var _f=Nu((function(){return n(je,__assign(__assign({},pf),{content:__assign(__assign({},pf.content),{terms:n("sqm-checkbox-field",{"checkbox-label":"Participants must be at least 18 years of age and a legal resident of the U.S. or Canada. By signing up to participate in the rewards program, you agree to the {labelLink}.","checkbox-label-link":"https://www.example.com","checkbox-label-link-text":"terms","checkbox-name":"termsAndConditions"})})}))}));var xf=Object.freeze({__proto__:null,default:cf,Default:gf,DefaultChecked:ff,CustomLabel:hf,Error:vf,CustomError:bf,TermsAndConditions:yf,TermsAndConditionsCustomLabel:wf,TermsAndConditionsLongCustomLabel:_f});var Tf={title:"Hooks / useCheckboxField",parameters:{scenario:uf}};function Sf(){var e="testestest";var n=e;var t="sam-partner-test-2";Bp({programId:t,user:{id:e,accountId:n}});return{id:e,accountId:n}}var Ef=Nu((function(){Sf();return n("sqm-portal-register",null,n("div",{slot:"terms"},n("sqm-checkbox-field",{"checkbox-name":"terms"})))}));var Cf=Nu((function(){Sf();return n("sqm-portal-register",null,n("div",{slot:"terms"},n("sqm-checkbox-field",{"checkbox-label":"I agree","checkbox-name":"terms"})))}));var Rf=Nu((function(){Sf();return n("sqm-portal-register",null,n("sqm-name-fields",{slot:"formData"}),n("sqm-checkbox-field",{slot:"formData","checkbox-label":"I am not a robot","error-message":"Cannot be a robot","checkbox-name":"isHuman"}),n("div",{slot:"terms"},n("sqm-checkbox-field",{"checkbox-name":"otherCheckbox"})))}));var If=Nu((function(){Sf();return n("sqm-portal-register",null,n("sqm-name-fields",{slot:"formData"}),n("sqm-checkbox-field",{slot:"formData","checkbox-label":"I am not a robot","checkbox-optional":"true","checkbox-name":"isHuman"}),n("div",{slot:"terms"},n("sqm-checkbox-field",{"checkbox-name":"required"})))}));var Df=Nu((function(){Sf();return n("sqm-portal-register",null,n("div",{slot:"terms"},n("sqm-checkbox-field",null)))}));var Af=Object.freeze({__proto__:null,default:Tf,TermsAndConditions:Ef,TermsAndConditionsWithLabel:Cf,MultipleCheckboxes:Rf,OptionalCheckboxes:If,MissingName:Df});var kf={title:"Components/Close Button",parameters:{}};var qf={};var Pf={position:"relative",width:"500px",height:"500px",border:"1px solid black",padding:"25px"};var Nf=function(){return n(Je,__assign({},qf))};var Ff=function(){return n("div",{style:Pf},n(Je,__assign({},qf)))};var Lf=function(){return n("div",{style:Pf},n(Je,__assign({},__assign(__assign({},qf),{color:"blue"}))))};var Of=Object.freeze({__proto__:null,default:kf,Default:Nf,InAContainer:Ff,CustomColor:Lf});var Uf='@author:truman\n@owner:truman\nFeature: Coupon Code\n\n The coupon code component is a box that allows users to see and copy their coupon code for a given program\n\n @motivating\n Scenario: Component only fetches codes from current program\n Given a user has multiple rewards from various programs\n When the component is loaded\n Then it fetches the user\'s rewards from only the program associated with the widget\n\n @motivating\n Scenario: Component only looks at fueltank rewards\n Given a user has multiple rewards of different types\n When the component is loaded\n Then it filters the user\'s reward to only return FUELTANK rewards\n\n\n @motivating\n Scenario: The first (i.e. most recently received) reward is the reward that is displayed\n Given a user has at least one fueltank reward\n And the fueltank reward is available\n Then the coupon code component shows the first reward returned\n And this reward is the most recently received reward by the user\n\n @motivating\n Scenario Outline: Coupon code has multiple states depending on reward status\n Given a user has at least one fueltank reward\n And the reward has most recent status <status>\n And the dateScheduledFor field is <dateScheduledFor>\n Then the component\'s status is set to <componentStatus>\n And the <errorMessageTextProp> is displayed under the input field\n\n Examples:\n | status | dateScheduledFor | componentStatus | errorMessageTextProp |\n | AVAILABLE | null | AVAILABLE | N/A |\n | EXPIRED | null | EXPIRED | expiredErrorMessage |\n | REDEEMED | null | REDEEMED | redeemedMessage |\n | CANCELLED | null | CANCELLED | cancelledErrorMessage |\n | PENDING | null | EMPTY_TANK | fullfillmentErrorMessage |\n | PENDING | 123412341234 | PENDING | pendingErrorMessage |\n | null | null | ERROR | genericErrorMessage |\n\n Scenario Outline: Coupon code\'s error message text props are grouped\n Given an end user is viewing the coupon code component in the widget editor\n And they are looking at the component\'s properties\n Then they see <prop>\n And <prop> is grouped under "Coupon code error"\n Examples:\n | prop |\n | N/A |\n | expiredErrorMessage |\n | redeemedMessage |\n | cancelledErrorMessage |\n | fullfillmentErrorMessage |\n | pendingErrorMessage |\n | genericErrorMessage |\n\n @minutia\n Scenario: Tooltip lifespan defaults to 2000\n Given the tooltip\'s lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip appears for ~2 seconds\n\n @ui\n Scenario: Component shows an error state when there is an error\n Given a user is viewing the coupon code component\n When there is an error in the coupon code\n Then in place of the coupon code is an alert banner\n And the alert banner gives information about the error to the user\n\n @ui\n Scenario: Component shows an loading state\n Given a user is viewing the coupon code component\n When the coupon code is loading in\n Then the text inside the input is "Loading..."\n And the coupon code input box has a gray background\n And the cursor is set to "default"\n And the user cannot copy the text\n\n @ui\n Scenario Outline: User can edit the alignment of the coupon code text\n Given a user is editing the coupon code component\n Then they see "Align text" props\n And the default value is "left"\n When they change the option to <option>\n Then they see the text in <position>\n Examples:\n | option | position |\n | left | left |\n | center | center |\n | right | right |\n\n @ui\n Scenario Outline: The position of the copy button can be changed\n Given a user is editing the coupon code component\n Then they see "Style" props\n And the default value is "icon"\n When they change the option to <option>\n Then they see the copy button in <position>\n Examples:\n | option | position |\n | button outside | outside the input, on the right |\n | button below | outside the input, below |\n | icon | inside the input as an icon |\n\n @minutia\n Scenario: ICU string converts to a date\n Given a user is viewing a live coupon code code component\n And the "pendingErrorText" has the "{unpendDate}" ICU string\n And the program is configured for rewards to be pending\n Then the user will see an info alert banner\n And the ICU string is converted to the unpend date\n';var Bf={title:"Components/Coupon Code",parameters:{scenario:Uf}};var Mf={tooltiptext:"Copied to Clipboard",copyString:"THANKSJANE125uv125",open:false,copyButtonLabel:"Copy Coupon",inputPlaceholderText:"CODE ERROR",couponCodeLabel:"Your coupon code:",error:false,buttonType:"primary"};var Gf=function(){return n("sqm-coupon-code",{tooltiptext:"Copied to Clipboard"})};var Vf=function(){return n("sqm-coupon-code",{tooltiptext:"Copied to Clipboard",buttonType:"secondary",buttonStyle:"button-outside"})};var Wf=function(){return n("sqm-coupon-code",{tooltiptext:"CUSTOM TOOLTIP TEXT"})};var jf=function(){return n("sqm-coupon-code",{tooltiplifespan:5e3,tooltiptext:"CUSTOM TOOLTIP TEXT"})};var Hf=function(){return n("sqm-coupon-code",{textAlign:"center"})};var zf=function(){return n("sqm-coupon-code",{textAlign:"right"})};var Yf=function(){return n("sqm-coupon-code",__assign(__assign({},Mf),{buttonStyle:"button-outside"}))};var Jf=function(){return n("sqm-coupon-code",__assign(__assign({},Mf),{buttonStyle:"button-outside","copy-button-label":"test long custom label"}))};var Kf=function(){return n("sqm-coupon-code",__assign(__assign({},Mf),{buttonStyle:"button-below"}))};var Xf=function(){return n("sqm-coupon-code",__assign(__assign({},Mf),{buttonStyle:"button-below","copy-button-label":"test long custom label"}))};var $f=function(){return n(_,__assign(__assign({},Mf),{loading:true}))};var Qf=function(){return n(_,__assign(__assign({},Mf),{buttonStyle:"button-outside",loading:true}))};var Zf=function(){return n(_,__assign(__assign({},Mf),{buttonStyle:"button-below",loading:true}))};var eh=function(){return n(_,__assign(__assign({},Mf),{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."}))};var nh=function(){return n(_,__assign(__assign({},Mf),{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!"}))};var th=function(){return n(_,__assign(__assign({},Mf),{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."}))};var ah=function(){return n(_,__assign(__assign({},Mf),{errorType:"warning",error:true,errorText:"This code has been cancelled. Please reach out to the Support team for help resolving this issue."}))};var rh=function(){return n(_,__assign(__assign({},Mf),{errorType:"warning",error:true,errorText:"Looks like this code has expired. Please reach out to the Support team for help resolving this issue."}))};var ih=function(){return n(_,__assign(__assign({},Mf),{errorType:"success",error:true,errorText:"Looks like you’ve already redeemed this code."}))};var sh=Object.freeze({__proto__:null,default:Bf,CouponCode:Gf,CouponCodeWithSecondaryButtonType:Vf,CustomTooltipText:Wf,CustomTooltipDuration:jf,TextAlignCenter:Hf,TextAlignRight:zf,CopyButton:Yf,CopyButtonCustomLabel:Jf,CopyButtonBelow:Kf,CopyButtonBelowCustomLabel:Xf,Loading:$f,CopyButtonLoading:Qf,CopyButtonBelowLoading:Zf,ErrorGeneric:eh,ErrorPending:nh,ErrorFullfillment:th,ErrorCancelled:ah,ErrorExpired:rh,ErrorRedeemed:ih});var oh={title:"Components/Divided Layout"};var lh={states:{active:false},data:{label:"Dashboard",icon:"house",path:"/"}};var dh={states:{active:true},data:{label:"Activity",icon:"bar-chart",path:"/"}};var uh=function(){return n(oe,null,n(le,__assign({},lh)),n(le,__assign({},dh)))};var ch=function(){return n("sqm-divided-layout",{direction:"row"},n(uh,null),n("div",{style:{padding:"48px"}},n(ue,__assign({labelMargin:"xx-small",padding:"none",label:n("sqm-text",null,n("p",null,"Welcome back,")),content:n("sqm-text",null,n("h1",null,"Joe Smith"))}))))};var mh=function(){return n("sqm-divided-layout",{direction:"column"},n(uh,null),n("div",{style:{padding:"48px"}},n(ue,__assign({labelMargin:"xx-small",padding:"none",label:n("sqm-text",null,n("p",null,"Welcome back,")),content:n("sqm-text",null,n("h1",null,"Joe Smith"))}))))};var ph=function(){return n("sqm-divided-layout",{direction:"column",dividerStyle:"1px solid red"},n(uh,null),n("div",{style:{padding:"48px"}},n(ue,__assign({labelMargin:"xx-small",padding:"none",label:n("sqm-text",null,n("p",null,"Welcome back,")),content:n("sqm-text",null,n("h1",null,"Joe Smith"))}))))};var gh=Object.freeze({__proto__:null,default:oh,Row:ch,Column:mh,ColumnCustomDivider:ph});var fh={title:"Components/Dropdown Field"};var hh={states:{registrationFormState:{}},content:{dropdownName:"options",dropdownLabel:"Select an option",errorMessage:"Must select an option",selectOptions:[n("sl-menu-item",{value:"option-1"},"Option 1"),n("sl-menu-item",{value:"option-2"},"Option 2"),n("sl-menu-item",{value:"option-3"},"Option 3")]}};var vh=Nu((function(){return n(x,__assign({},hh))}));var bh=Nu((function(){return n(x,__assign(__assign({},hh),{content:__assign(__assign({},hh.content),{dropdownLabel:"Pick your favorite"})}))}));var yh=Nu((function(){return n(x,__assign(__assign({},hh),{states:__assign(__assign({},hh.states),{registrationFormState:{validationErrors:{options:"Must select an option"}}})}))}));var wh=Nu((function(){return n(x,__assign(__assign({},hh),{content:__assign(__assign({},hh.content),{errorMessage:"An option must be selected to continue"}),states:__assign(__assign({},hh.states),{registrationFormState:{validationErrors:{options:"Must select an option"}}})}))}));var _h=Object.freeze({__proto__:null,default:fh,Default:vh,CustomLabel:bh,Error:yh,CustomError:wh});var xh={title:"Hooks / useDropdownField"};function Th(){var e="testestest";var n=e;var t="sam-partner-test-2";Bp({programId:t,user:{id:e,accountId:n}});return{id:e,accountId:n}}var Sh=Nu((function(){Th();return n("sqm-portal-register",null,n("sqm-dropdown-field",{slot:"formData","dropdown-label":"Select an option","dropdown-name":"options"},n("sl-menu-item",{value:"option-1"},"Option 1"),n("sl-menu-item",{value:"option-2"},"Option 2"),n("sl-menu-item",{value:"option-3"},"Option 3")))}));var Eh=Nu((function(){Th();return n("sqm-portal-register",null,n("sqm-dropdown-field",{slot:"formData","dropdown-label":"Country","dropdown-name":"countryCode"},n("sl-menu-item",{value:"CA"},"Canada"),n("sl-menu-item",{value:"US"},"United States"),n("sl-menu-item",{value:"GB"},"United Kingdom")))}));var Ch=Nu((function(){Th();return n("sqm-portal-register",null,n("sqm-dropdown-field",{slot:"formData","dropdown-label":"Country"},n("sl-menu-item",{value:"CA"},"Canada"),n("sl-menu-item",{value:"US"},"United States"),n("sl-menu-item",{value:"GB"},"United Kingdom")))}));var Rh=Object.freeze({__proto__:null,default:xh,SelectOptions:Sh,Countries:Eh,MissingName:Ch});var Ih={title:"Components/Edit Profile Form"};var Dh={states:{loading:false,submitDisabled:false,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:false,text:{editprofileheader:"Edit Profile",editprofiletext:"Update your profile.",firstnametext:"Bill",lastnametext:"Bob",canceltext:"Cancel",updatetext:"Update",currentregiontext:"Canada"}},callbacks:{onSubmit:function(e){console.log(e)},resetForm:function(){console.log("reset")},onChange:function(){console.log("change")},setShowEdit:function(e){console.log(e)}}};var Ah=function(){var e=Dh;return n(T,__assign({},e))};var kh=function(){var e=__assign(__assign({},Dh),{states:__assign(__assign({},Dh.states),{showEdit:true})});return n(T,__assign({},e))};var qh=function(){return n("sqm-edit-profile",{editprofileheader:"Edit Profile",editprofiletext:"Update your profile.",firstnametext:"Bill",lastnametext:"Bob",canceltext:"Cancel",updatetext:"Update",currentregiontext:"Current Region",showregion:true})};var Ph=Object.freeze({__proto__:null,default:Ih,EditProfileFormDisabled:Ah,EditProfileFormEnabled:kh,FullStackFrameWithMenu:qh});function Nh(){var e="worried-camera@uexwltgh.mailosaur.net";var n=e;var t="a-referral-program";Bp({programId:t,user:{id:e,accountId:n}})}var Fh={title:"Hooks / useEditProfile"};var Lh=Nu((function(){Nh();return n("sqm-edit-profile",__assign({editprofileheader:"HEADER",editprofiletext:"TEXT",firstnametext:"FIRST NAME",lastnametext:"LAST NAME",canceltext:"CANCEL",updatetext:"UPDATE",currentregiontext:"CURRENT REGION TEXT"}))}));var Oh=Object.freeze({__proto__:null,default:Fh,RegularView:Lh});var Uh='@author:derek\n@owner:derek\nFeature: Empty State\n\n The sqm-empty component acts as a universal template for the empty states that are used accross our mint components.\n\n @motivating\n @ui\n Scenario: The empty state displays an image, a header and description text\n Given a empty component with the following props\n | prop | value |\n | empty-state-image | https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png |\n | empty-state-header | My Custom Empty State |\n | empty-state-text | Description about why this empty state is being shown! |\n And it is wrapped by a component with an "empty" slot\n When a user views a component using the empty state\n Then it is displayed in the "empty" slot\n And they see an image\n And below they see "My Custom Empty State"\n And below they see "Description about why this empty state is being shown!"\n And the images/text are centered aligned';var Bh={title:"Components/Empty State",parameters:{scenario:Uh}};var Mh={usersheading:"TOP REFERRERS",statsheading:"NEW CUSTOMERS"};var Gh=function(){return n("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"})};var Vh={empty:n("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"}),essentials:n("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg","empty-state-header":"Leaderboards aren’t available on your plan","empty-state-text":"Contact {supportText} to upgrade your plan and start leveraging gamification in your program.","support-text":"Support"}),loadingstate:n("slot",{name:"loading"},n("table",null,__spreadArray([],Array(10),true).map((function(){return n("tr",null,n("td",null,n("sqm-skeleton",null)))}))))};var Wh=function(){var e={states:{loading:false,hasLeaders:false,isEssentials:false,styles:__assign({},Mh)},data:{rankType:"rowNumber",leaderboard:[],rowNumber:10,showUser:true,userRank:{firstName:"Kutay",lastInitial:"C",value:8,rowNumber:11,rank:23}},elements:__assign({},Vh)};return n(S,__assign({},e))};var jh=Object.freeze({__proto__:null,default:Bh,Empty:Gh,SlottedIntoComponent:Wh});var Hh={title:"Components/Form Message"};var zh=function(){return n("sqm-form-message",{type:"success"},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var Yh=function(){return n("sqm-form-message",{type:"error"},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var Jh=function(){return n("sqm-form-message",{type:"warning"},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var Kh=function(){return n("sqm-form-message",{type:"info"},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var Xh=function(){return n("sqm-form-message",{type:"success",transparent:true},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var $h=function(){return n("sqm-form-message",{type:"error",transparent:true},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var Qh=function(){return n("sqm-form-message",{type:"warning",transparent:true},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var Zh=function(){return n("sqm-form-message",{type:"info",transparent:true},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var ev=function(){return n("sqm-form-message",{type:"success",loading:true},n("p",{part:"alert-title"},"This is the title"),n("p",{part:"alert-description"},"This is the description"))};var nv=Object.freeze({__proto__:null,default:Hh,SuccessAlert:zh,ErrorAlert:Yh,WarningAlert:Jh,InfoAlert:Kh,SuccessAlertTransparent:Xh,ErrorAlertTransparent:$h,WarningAlertTransparent:Qh,InfoAlertTransparent:Zh,Loading:ev});var tv='@author:kutay\n@owner:kutay\nFeature: Hero Image\n\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Hero Image component\n\n\t@motivating\n\t@ui\n\tScenario: Overlay image displays header, description, and button with brand color\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "overlay" |\n\t\tThen they see their image\n\t\tAnd the image has no padding\n\t\tAnd it has a brand colour overlay\n\t\tAnd "Klip Rewards" is displayed over top of the image in xxx-large font\n\t\tAnd below "Refer friends or complete tasks while using Klip to earn rewards" is displayed over top of the image in x-large font\n\t\tAnd below they see a brand coloured button with text "Start earning"\n\t\tAnd the text section has xxx-large padding\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is scaled to fit content\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay image crop can be aligned left, center or right\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "overlay" |\n\t\t\t| image-pos | <value> |\n\t\tThen the image with overlay is displayed\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is <alignment> to fit content\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| left | left aligned |\n\t\t\t| center | centered |\n\t\t\t| right | right aligned |\n\t\t\t| N/A | centered |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay padding is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "overlay" |\n\t\t\t| padding-text | <value> |\n\t\tThen the image with overlay is displayed\n\t\tAnd <padding> is applied around header, description and button\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay color and background is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "overlay" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| overlay-color | <overlayColor> |\n\t\t\t| overlay-opacity | <overlayOpacity> |\n\t\tThen the image with overlay is displayed\n\t\tAnd the overlay is <overlayColor>\n\t\tAnd the overlay has <overlayOpacity>\n\t\tAnd the text is <textColor>\n\t\tExamples:\n\t\t\t| textColor | overlayColor | overlayOpacity |\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\n\t\t\t| #1d0314 | #4baa1a | 0 |\n\t\t\t| #211a27 | #aa481a | 1 |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "columns" |\n\t\tThen the image is displayed on the left\n\t\tAnd the following elements are displayed on the right\n\t\t\t| elements |\n\t\t\t| header |\n\t\t\t| description |\n\t\t\t| button |\n\t\tWhen the component is scaled down to 599px\n\t\tThen the two-column layout switches to a row layout\n\t\tAnd the image is displayed on top\n\t\tAnd the content is displayed below\n\n\t@motivating\n\t@ui\n\tScenario Outline: Image position is configurable for desktop and mobile\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "columns" |\n\t\t\t| image-pos | <imagePos> |\n\t\t\t| image-mobile-pos | <imageMobilePos> |\n\t\tThen the image is displayed on the <imagePos>\n\t\tWhen the component is scaled down to 599px\n\t\tThen two-column layout switches to a row layout\n\t\tAnd image is displayed on the <imageMobilePos>\n\t\tExamples:\n\t\t\t| imagePos | imageMobilePos |\n\t\t\t| left | top |\n\t\t\t| right | bottom |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "columns" |\n\t\t\t| padding-text | <paddingText> |\n\t\t\t| padding-image | <paddingImage> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image has padding <paddingImage>\n\t\tAnd the text has padding <paddingText>\n\t\tExamples:\n\t\t\t| paddingText | paddingImage |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| none | none |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Two-column layout image division percentage is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "columns" |\n\t\t\t| image-percentage | <percent> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image takes up <percent> of the two-column layout\n\t\tAnd the text elements take up the remainder of the space\n\t\tExamples:\n\t\t\t| percent |\n\t\t\t| 25% |\n\t\t\t| 42% |\n\t\t\t| 66% |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout text and background color is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | "https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" |\n\t\t\t| header | "Klip Rewards" |\n\t\t\t| description | "Refer friends or complete tasks while using Klip to earn rewards" |\n\t\t\t| button-text | "Start earning" |\n\t\t\t| layout | "columns" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| background-color | <backgroundColor> |\n\t\tThen the two column layout is displayed\n\t\tAnd the text has color <textColor>\n\t\tAnd the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| textColor | backgroundColor |\n\t\t\t| #fffc4b | #ff7f7f |\n\t\t\t| #1d0314 | #4baa1a |\n\t\t\t| #211a27 | #aa481a |';var av={title:"Components/Hero Image",parameters:{scenario:tv}};var rv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",layout:"overlay","padding-image":"none","padding-text":"xxxx-large"})};var iv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards",layout:"overlay","padding-image":"none","padding-text":"xxxx-large"})};var sv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"overlay","padding-image":"none","padding-text":"xxxx-large"})};var ov=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"overlay","padding-image":"none","padding-text":"xxx-small"})};var lv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum","button-text":"Start earning",layout:"overlay","padding-image":"none","padding-text":"xxxx-large"})};var dv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"overlay","image-pos":"left","padding-image":"none","padding-text":"xxxx-large"})};var uv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"overlay","image-pos":"center","padding-image":"none","padding-text":"xxxx-large"})};var cv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"overlay","image-pos":"right","padding-image":"none","padding-text":"xxxx-large"})};var mv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning","text-color":"#fffc4b","overlay-color":"#ff7f7f","overlay-opacity":"0.9",layout:"overlay","padding-image":"none","padding-text":"xxxx-large"})};var pv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning","text-color":"#fffc4b","overlay-color":"#ff7f7f","overlay-opacity":"0.3",layout:"overlay","padding-image":"none","padding-text":"xxxx-large"})};var gv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"columns","padding-image":"none","padding-text":"xxxx-large"})};var fv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"columns","padding-image":"xxxx-large","padding-text":"large"})};var hv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png",header:"Klip Rewards",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum","button-text":"Start earning",layout:"columns","padding-image":"none","padding-text":"xxxx-large"})};var vv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"columns",imagePos:"right",imageMobilePos:"bottom","padding-image":"none","padding-text":"xxxx-large"})};var bv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png",description:"Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!",layout:"columns","image-percentage":"33%","padding-image":"large","padding-text":"large","background-color":"#EFF8FE"})};var yv=function(){return n("sqm-hero-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png",header:"Klip Rewards",description:"Refer friends or complete tasks while using Klip to earn rewards","button-text":"Start earning",layout:"columns","text-color":"#fffc4b","background-color":"#ff7f7f","padding-image":"none","padding-text":"xxxx-large"})};var wv=Object.freeze({__proto__:null,default:av,OverlayHeader:rv,OverlayDescription:iv,OverlayButton:sv,OverlayPadding:ov,OverlayLong:lv,OverlayLeft:dv,OverlayCenter:uv,OverlayRight:cv,OverlayCustomColors:mv,OverlayCustomOpacity:pv,Columns:gv,ColumnsPadding:fv,ColumnsLong:hv,ColumnsReverse:vv,ColumnsCustomPercentage:bv,ColumnsCustomColors:yv});var _v='@author:noah\n@owner:noah\n\nFeature: Hero Unit\n\n Background: A portal with a hero unit exists\n Given a hosted portal\n And the portal has hero unit on the login page\n And a user is viewing the login page\n\n Scenario: The hero unit defaults to a single column layout\n Given a hero unit does not have a "columns" prop\n But the following html is wrapped by the hero unit\n """\n <sqm-portal-login></sqm-portal-login>\n <div slot="secondary-column">\n <h1 style="text-align:center">Get Referring!</h1>\n <p style="text-align:center">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur.\n </p>\n </div>\n """\n Then only a single column will be displayed\n And within it will be the login component\n\n Scenario Outline: Hero layout can hide a column at 1023px or less\n Given the user is viewing a hero unit with a "primary" and "secondary" column\n And the "column-to-hide-in-mobile" is set to <columnToHide>\n When the user views the hero unit at 1023px or less\n Then the <columnToHide> column <isHidden>\n\n Examples:\n | column_to_hide | isHidden |\n | primary | is hidden |\n | secondary | is hidden |\n | none | is not hidden|\n\n Scenario Outline: The hero unit supports single or dual column layouts\n Given a hero unit with prop "columns" having <columnValue>\n And it wraps <html>\n Then the hero unit displays <columnValue> columns\n Examples:\n | columnValue | html |\n | 1 | <h1>Column 1!</h1> |\n | 2 | <h1>Column 1!</h1><div slot="secondary-column"><h1 style="text-align:center">Column 2!</h1></div> |\n\n Scenario: HTML to be displayed in the second column comes from the "secondary-column" slot\n Given a hero unit with "columns" "2"\n And the following html\n """\n <h1>Column 1!</h1>\n <div>\n <h1 style="text-align:center">Column 2!</h1>\n </div>\n """\n When the hero unit is rendered\n Then only one column is displayed with content\n And column 1 will contain the "Column 1!" text\n And column 1 will contain the "Column 2!" text\n When the div for column two is updated to have \'slot="secondary-column"\'\n Then the two columns are displayed with content\n And column 1 will contain the "Column 1!" text\n And column 2 will contain the "Column 2!" text\n\n Scenario Outline: A background for the hero unit can be set as an image or colour\n Given a hero unit with <backgroundPropValue>\n Then the background will be <background>\n Examples:\n | background | background |\n | https://images.unsplash.com/photo-1599676821464-3555954838dc | image of misty mountains |\n | LightSlateGrey | light slate grey |\n | #00FF00 | green |\n | rgb(128,0,128) | purple |\n\n Scenario Outline: Wrap Direction can be configured for mobile experiences\n Given a hero unit with the following HTML\n """\n <h1>Column 1!</h1>\n <div slot="secondary-column">\n <h1 style="text-align:center">Column 2!</h1>\n </div>\n """\n And prop "wrap-direction" has <value>\n When the window width is less than 600px\n Then the two columns will stack\n And <column> will be on top\n Examples:\n | value | column |\n | wrap | 1 |\n | wrap-reverse | 2 |\n | <null> | 1 |\n\n Scenario Outline: Minimum height can be customized\n Given the option "Mininum Height (in px)" is <value>\n Then the hero image minimum height is <effectiveValue>\n And the change is reflected in mobile view\n Examples:\n | value | effectiveValue |\n | unset (default value) | 200px |\n | 200px | 500px |';var xv={title:"Components/Hero Layout",parameters:{scenario:_v}};var Tv=function(){var e={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",minHeight:0},content:{primaryColumn:[n("h1",{style:{textAlign:"center"}},"Get Referring!"),n("sqm-portal-login",null)]}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var Sv=function(){return n("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"},n("sqm-portal-login",null))};var Ev=function(){var e={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",minHeight:0,background:"LightSlateGrey"},content:{primaryColumn:n("sqm-portal-login",null)}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var Cv=function(){var e={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",minHeight:0,background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"},content:{primaryColumn:n("sqm-portal-login",null)}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var Rv=function(){var e={states:{columns:2,wrapDirection:"wrap",paddingSize:"large",minHeight:0,background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:n("sqm-portal-login",null),secondaryColumn:n("div",null,n("h1",{style:{textAlign:"center"}},"Get Referring!"),n("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var Iv=function(){var e={states:{columns:2,wrapDirection:"wrap",paddingSize:"medium",minHeight:0,background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:n("sqm-portal-login",null),secondaryColumn:n("div",null,n("h1",{style:{textAlign:"center"}},"Get Referring!"),n("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var Dv=function(){var e={states:{columns:2,wrapDirection:"wrap",paddingSize:"small",minHeight:0,background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:n("sqm-portal-login",null),secondaryColumn:n("div",null,n("h1",{style:{textAlign:"center"}},"Get Referring!"),n("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var Av=function(){var e={states:{columns:2,wrapDirection:"wrap",paddingSize:"none",minHeight:0,background:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80",secondaryBackground:"LightSlateGrey"},content:{primaryColumn:n("sqm-portal-login",null),secondaryColumn:n("div",null,n("h1",{style:{textAlign:"center"}},"Get Referring!"),n("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var kv=function(){var e={states:{columns:2,wrapDirection:"wrap-reverse",background:"LightSlateGrey",paddingSize:"large",minHeight:0,secondaryBackground:"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80"},content:{primaryColumn:n("sqm-portal-change-password",null),secondaryColumn:n("div",null,n("h1",{style:{textAlign:"center"}},"Get Referring!"),n("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."))}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var qv=function(){var e={states:{columns:2,wrapDirection:"wrap",paddingSize:"large",minHeight:0},content:{primaryColumn:n("div",null,n("h1",{style:{textAlign:"center"}},"Get Referring!"),n("sqm-portal-login",null)),secondaryColumn:n("div",null,n("img",{src:"https://images.unsplash.com/photo-1487528278747-ba99ed528ebc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80"}),n("p",null,"Pellentesque mauris urna, lacinia non turpis sed, pulvinar congue ligula. Sed mattis condimentum eros nec vulputate. Cras consectetur eget libero at viverra. Aliquam suscipit feugiat ante sit amet sagittis. Fusce pulvinar interdum odio ut dapibus. Nulla aliquet ultricies augue nec dignissim. Morbi vulputate hendrerit sem."))}};return n("div",{style:{height:"800px"}},n(E,__assign({},e)))};var Pv=function(){var e={states:{columns:2,wrapDirection:"wrap",paddingSize:"large",minHeight:600,background:"https://images.unsplash.com/photo-1487528278747-ba99ed528ebc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80"},content:{secondaryColumn:n("div",null,n("h1",{style:{textAlign:"center"}},"Get Referring!"),n("sqm-portal-login",null))}};return n(E,__assign({},e))};var Nv=function(){return n("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"},n("sqm-referred-registration",{slot:"secondary-column","register-label":"Get $50 off","padding-bottom":"small","padding-left":"x-large","padding-right":"x-large","padding-top":"small"},n("sqm-titled-section",{"text-align":"center","label-margin":"small",padding:"none",slot:"top"},n("h1",{slot:"label"},"You got $50 off thanks to a friend!"),n("p",{slot:"content"},n("span",null,"Use this reward to get $50 off your next purchase."))),n("div",{slot:"bottom"},n("p",{style:{textAlign:"center"}},"*Valid on purchases of $75 or more"),n("sqm-portal-footer",{slot:"footer","show-powered-by":"true","padding-bottom":"none","padding-left":"none","padding-right":"none","padding-top":"none","hide-support-text":true,"terms-text":"Terms And Conditions","terms-link":"https://example.com"}))))};var Fv=Object.freeze({__proto__:null,default:xv,LoginOneColumn:Tv,LoginOneColumnWithMinHeight:Sv,LoginOneColumnWithColor:Ev,LoginOneColumnWithImage:Cv,TwoColumnLoginLargePadding:Rv,TwoColumnLoginMediumPadding:Iv,TwoColumnLoginSmallPadding:Dv,TwoColumnLoginNoPadding:Av,TwoColumnLoginReverseWrap:kv,TwoColumnLoginWithImgElement:qv,MinHeight:Pv,InstantAccessLoggedOutView:Nv});var Lv='@author:kutay\n@owner:kutay\nFeature: Image\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the image component\n\n\t@motivating\n\t@ui\n\tScenario: Image is displayed from URL\n\t\tGiven an Image component\n\t\tAnd prop "image-url" is provided with a valid image url\n\t\tThen the image is displayed\n\t\tAnd it is centered\n\n\t@motivating\n\t@ui\n\tScenario Outline: Images can be aligned left, center or right\n\t\tGiven an Image component\n\t\tAnd prop "image-url" is provided with a valid image url\n\t\tAnd prop "align" has <value>\n\t\tThen the image is displayed\n\t\tAnd it is aligned to the <value>\n\t\tExamples:\n\t\t\t| value |\n\t\t\t| left |\n\t\t\t| center |\n\t\t\t| right |\n\n\t@motivating\n\t@ui\n\tScenario: Image background can be assigned a color\n\t\tGiven an Image component\n\t\tAnd prop "image-url" is provided with a valid image url\n\t\tAnd prop "background-color" is provided a color\n\t\tThen the image is displayed\n\t\tAnd the background is the provided color\n\n\t@motivating\n\t@ui\n\tScenario: Image minimum height can be constrained\n\t\tGiven an Image component\n\t\tAnd prop "image-url" is provided\n\t\tAnd prop "min-height" is given a minimum value\n\t\tThen the image is displayed\n\t\tAnd the container size changes\n\t\tThen the image does not shrink below its minimum height';var Ov={title:"Components/Image",parameters:{scenario:Lv}};var Uv=function(){return n("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png"})};var Bv=function(){return n("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png",alignment:"left"})};var Mv=function(){return n("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png",alignment:"center"})};var Gv=function(){return n("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png",alignment:"right"})};var Vv=function(){return n("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png","background-color":"firebrick",alignment:"center"})};var Wv=function(){return n("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000255/squatch-assets/oIiVdMM.jpg",minHeight:"192px"})};var jv=Object.freeze({__proto__:null,default:Ov,Image:Uv,ImageAlignmentLeft:Bv,ImageAlignmentCenter:Mv,ImageAlignmentRight:Gv,ImageBackground:Vv,MinimumHeight:Wv});var Hv='@author:derek\n@owner:derek\nFeature: Form Input Field\n\n This component is used as a custom registration field during registration. The field can be text,\n a date or phone number. A motivating use case is to ask for a users company name, this value would then be mapped\n through the Managed Identity Service and upserted on the user after registration.\n\n Background: A user exists and is viewing the hosted portal registration\n Given a user is viewing "/register"\n And "/register" contains the registration form\n And the registration form has a custom input field\n\n @motivating\n Scenario Outline: Input fields are required by default but can be optional\n Given the input has prop "field-optional" with <value>\n And the input is empty\n When the user tries to register\n Then the input <mayBe> highlighted in red\n And an error message <mayAppear> in red below\n And form submission <mayBe> blocked\n Examples:\n | value | mayBe | mayAppear |\n | false | is | appears |\n | | is | appears |\n | true | isn\'t | doesn\'t appear |\n\n @motivating\n Scenario: Input field labels are configurable\n Given the input has prop "field-label" with value "My Custom Input"\n When the user views the registration form\n Then they see the input field\n And it has label "My Custom Input" above the input\n\n @minutia\n Scenario Outline: The validation error message is configurable\n The error message string is evaluated as an ICU string, but currently is provided no context\n Given the input is required\n And it has prop "error-message" with <value>\n When the user tries to register\n But they haven\'t filled in the input\n Then they see <errorMessage> below\n Examples:\n | value | errorMessage |\n | | Cannot be empty |\n | My Custom Message | My Custom Message |\n\n @motivating\n Scenario: Form data attribute name is configurable\n Given the input has prop "field-name" with value "myCustomField"\n When the user types "testing testing" into the input\n And they register\n Then "testing testing" is submitted under "myCustomField" in the form data\n\n @motivating\n Scenario Outline: The input field is a text input by default\n Given the input <mayHave> prop "field-type" with <value>\n When the user views the input field\n Then it is a text input\n Examples:\n | mayHave | value |\n | has | text |\n | doesn\'t have | |\n\n @motivating\n Scenario: Date type inputs are supported\n Given the input has prop "field-type" "date"\n When the user views the input field\n Then they see "mm/dd/yyyy" as a placeholder\n And they see a calendar icon on the right\n When they start typing a date\n Then it maintains the "mm/dd/yyyy" format\n When they click the calendar icon\n Then a dropdown appears\n And they see a calendar\n When they select a date\n Then it is applied to the input\n\n @landmine\n Scenario: The clear text button in the date picker does not clear the date\n Due to an incompatibility between our shoelace version and the browser, the clear funtionality is not supported currently\n Given the input has prop "field-type" "date"\n And the user has entered a date\n When they click the calendar icon\n And click the \'clear\' text button\n Then their selected date is not cleared\n\n @motivating\n Scenario: Phone number type inputs are supported\n Given the input has prop "field-type" with value "tel"\n When the user starts typing a phone number in the input\n Then it is formatted into the following form "(XXX) XXX-XXXX"\n When they pre-fix their phone number with a "1"\n Then it is formatted into the following form "1 (XXX) XXX-XXXX"\n\n @landmine\n Scenario: Telephone formatting is removed after 10 numbers\n Given a user using a phone number input field\n And they entered their 10 character phone number\n And it was not prefixed with a 1\n When they add another character\n Then the formatting is removed\n\n @landmine\n Scenario Outline: Input values are always recorded as strings in the form data\n Given the input has prop "field-type" with <value>\n And it has a "field-name"\n When the user inputs <formInput>\n And they register\n Then <formData> is recorded in the form data as a string\n Examples:\n | value | formInput | formData |\n | text | Hello there | Hello there |\n | date | 05/07/2021 | 2021-05-07 |\n | tel | (250) 234-9877 | (250) 234-9877 |\n\n @minutia\n Scenario Outline: The input field component fails fast if a field name isn\'t provided\n Given the input <mayHave> prop "field-name"\n And it <mayHavePropValue>\n When a user views the input\n Then an alert with an error message is displayed in place of the input\n And it has a details section\n When "More details" is clicked\n Then the following information is displayed\n | information |\n | component being used |\n | missing attribute(s) |\n Examples:\n | mayBeAnAttribute | mayHavePropValue |\n | doesn\'t have | N/A |\n | has | "" |\n | has | |';var zv={title:"Components/Input Field",parameters:{scenario:Hv}};var Yv={states:{registrationFormState:{validationErrors:{}}},content:{fieldName:"field",fieldLabel:"My Custom Input",fieldType:"text",fieldOptional:true,errorMessage:"Cannot be empty"}};var Jv={states:{registrationFormState:{},error:"",loading:false,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}};var Kv=function(){return n(C,__assign({},Yv))};var Xv=function(){return n(C,__assign(__assign({},Yv),{content:__assign(__assign({},Yv.content),{fieldLabel:"My Label"})}))};var $v=function(){return n(C,__assign(__assign({},Yv),{states:__assign(__assign({},Yv.states),{registrationFormState:{validationErrors:{field:"Cannot be empty"}}})}))};var Qv=function(){return n(C,__assign(__assign({},Yv),{content:__assign(__assign({},Yv.content),{errorMessage:"A value must be entered to continue"}),states:__assign(__assign({},Yv.states),{registrationFormState:{validationErrors:{field:"Cannot be empty"}}})}))};var Zv=function(){return n(C,__assign(__assign({},Yv),{content:__assign(__assign({},Yv.content),{fieldLabel:"Date",fieldType:"date"})}))};var eb=function(){return n(C,__assign(__assign({},Yv),{content:__assign(__assign({},Yv.content),{fieldLabel:"Phone Number",fieldType:"tel"})}))};var nb=function(){return n(je,__assign(__assign({},Jv),{content:__assign(__assign({},Jv.content),{formData:n(C,__assign({},Yv))})}))};var tb=function(){return n(je,__assign(__assign({},Jv),{content:__assign(__assign({},Jv.content),{formData:n(C,__assign(__assign({},Yv),{content:__assign(__assign({},Yv.content),{fieldLabel:"Data"})}))})}))};var ab=Object.freeze({__proto__:null,default:zv,Default:Kv,CustomLabel:Xv,Error:$v,CustomError:Qv,DateType:Zv,TelType:eb,RegistrationField:nb,RegistrationFieldCustomLabel:tb});var rb={title:"Hooks / useInputField",parameters:{scenario:Hv}};function ib(){var e="testestest";var n=e;var t="sam-partner-test-2";Bp({programId:t,user:{id:e,accountId:n}});return{id:e,accountId:n}}var sb=Nu((function(){ib();return n("sqm-portal-register",null,n("div",{slot:"formData"},n("sqm-input-field",{"field-name":"myData"})))}));var ob=Nu((function(){ib();return n("sqm-portal-register",null,n("div",{slot:"formData"},n("sqm-input-field",{"field-label":"Custom Label","field-name":"myData"})))}));var lb=Nu((function(){ib();return n("sqm-portal-register",null,n("sqm-name-fields",{slot:"formData"}),n("sqm-input-field",{slot:"formData","field-label":"Field One","field-name":"fieldOne"}),n("sqm-input-field",{slot:"formData","field-label":"Field Two","field-name":"fieldTwo"}))}));var db=Nu((function(){ib();return n("sqm-portal-register",null,n("sqm-name-fields",{slot:"formData"}),n("sqm-input-field",{slot:"formData","field-label":"Optional Field","field-optional":"true","field-name":"optionalField"}))}));var ub=Nu((function(){ib();return n("sqm-portal-register",null,n("sqm-name-fields",{slot:"formData"}),n("sqm-input-field",{slot:"formData","field-label":"Date","field-name":"date","field-type":"date"}))}));var cb=Nu((function(){ib();return n("sqm-portal-register",null,n("sqm-name-fields",{slot:"formData"}),n("sqm-input-field",{slot:"formData","field-label":"Phone Number","field-name":"tel","field-type":"tel"}))}));var mb=Nu((function(){ib();return n("sqm-portal-register",null,n("sqm-name-fields",{slot:"formData"}),n("sqm-input-field",{slot:"formData","field-label":"Phone Number","field-type":"tel"}))}));var pb=Object.freeze({__proto__:null,default:rb,FormData:sb,FormDataWithLabel:ob,MultipleInputs:lb,OptionalInputs:db,DateType:ub,TelType:cb,MissingName:mb});var gb={title:"Components/Invoice Table Cell",parameters:{}};var fb=function(){return n("sqm-invoice-table-cell",{innerTemplate:"Table Cell Text"})};var hb=function(){return n("sqm-invoice-table-cell",{innerTemplate:"12345-67"})};var vb=function(){return n("sqm-invoice-table-cell",{innerTemplate:"US$20.00"})};var bb=function(){return n("sqm-invoice-table-cell",{innerTemplate:"US$15.00"})};var yb=function(){return n("sqm-invoice-table-cell",{innerTemplate:"US$5.00"})};var wb=function(){return n("sqm-invoice-table-download-cell",{downloadUrl:"https://www.example.com"})};var _b=function(){return n("sqm-sqm-invoice-table-cell",null,"-")};var xb=function(){return n("sqm-invoice-table-date-cell",{date:1710203213e3})};var Tb=Object.freeze({__proto__:null,default:gb,TableCell:fb,InvoiceNumberCell:hb,EarningsCell:vb,EarningsAfterTaxCell:bb,IndirectTaxCell:yb,DownloadCell:wb,EmptyCell:_b,DateCell:xb});var Sb={title:"Components/Invoice Table"};var Eb=n("div",{slot:"loading",style:{display:"contents"}},n("sqm-table-row",null,n("sqm-table-cell",{colspan:6},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:6},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:6},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:6},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:6},n("sqm-skeleton",null))));var Cb=n("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1710363322/squatch-assets/invoice-table-empty.png","empty-state-header":"View your invoice details","empty-state-text":"Track the status of your invoices and rewards earned by referring friends"});var Rb={states:{hasPrev:false,hasNext:true,show:"rows",namespace:"sqm-invoice-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"Next"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:[n("span",null),"Date created","Invoice","Earnings","Indirect tax","Earnings after tax"],rows:[[n(wb,null),n(xb,null),n(hb,null),n(vb,null),n(yb,null),n(bb,null)],[n(wb,null),n(xb,null),n(hb,null),n(vb,null),n(yb,null),n(bb,null)],[n(wb,null),n(xb,null),n(hb,null),n(vb,null),n(yb,null),n(bb,null)]]}};var Ib=function(){return n(Xe,{header:"Invoices",description:"Invoice table description"},n(Ke,__assign({},Rb)))};var Db=function(){return n("sqm-invoice-table",{demoData:{states:{hasPrev:false,hasNext:false,show:"empty",namespace:"sqm-invoice-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:Cb,loadingElement:Eb,columns:["Name","Email","DOB"],rows:[]}}})};var Ab=function(){return n("sqm-invoice-table",{demoData:{states:{hasPrev:false,hasNext:false,show:"loading",namespace:"sqm-invoice-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:Cb,loadingElement:Eb,columns:["","Date created","Invoice","Earnings","Indirect tax","Earnings after tax"],rows:[]}}})};var kb=Object.freeze({__proto__:null,default:Sb,SimpleInvoiceTable:Ib,EmptyTable:Db,LoadingTable:Ab});var qb={title:"Hooks / useInvoiceTable"};function Pb(){var e="07bc01a0f123d20342b89ed8296946a747f770cc8bbd239d7f142fe629f826ac";var n="07bc01a0f123d20342b89ed8296946a747f770cc8bbd239d7f142fe629f826ac";var t="22999";Bp({programId:t,user:{id:e,accountId:n}});return{id:e,accountId:n}}var Nb=Nu((function(){Pb();Ne("22999");return n("sqm-invoice-table",null,n("sqm-invoice-table-download-column",null),n("sqm-invoice-table-date-column",{"column-title":"Date"}),n("sqm-invoice-table-data-column",{"column-title":"Invoice",property:"invoiceId"}),n("sqm-invoice-table-data-column",{"column-title":"Earnings",property:"earnings"}),n("sqm-invoice-table-data-column",{"column-title":"Indirect tax",property:"indirectTax"}),n("sqm-invoice-table-data-column",{"column-title":"Earnings after tax",property:"netEarnings"}))}));var Fb=Nu((function(){return n("sqm-invoice-table",null,n("sqm-invoice-table-download-column",null),n("sqm-invoice-table-date-column",{"column-title":"Date"}),n("sqm-invoice-table-data-column",{"column-title":"Invoice",property:"invoiceId"}),n("sqm-invoice-table-data-column",{"column-title":"Earnings",property:"earnings"}),n("sqm-invoice-table-data-column",{"column-title":"Indirect tax",property:"indirectTax"}),n("sqm-invoice-table-data-column",{"column-title":"Earnings after tax",property:"netEarnings"}))}));var Lb=Object.freeze({__proto__:null,default:qb,InvoiceTable:Nb,InvoiceTableDemoHook:Fb});var Ob='@owner:noah\n@author:noah\nFeature: Leaderboard Rank\n\n The leaderboard rank components displays the current users rank on the leaderboard.\n\n @minutiae\n Scenario: Users without a rank are shown a generic message\n Given a user has no rank\n Then the component displays a generic message\n And the message is the string from the prop "unrankedText"\n\n @motivating\n Scenario: Users with a rank are shown a message containing their rank\n Given a user has a valid rank\n And the prop "rankText" is an ICU message\n Then the ICU message is parsed to include the user\'s rank\n And the parsed message is displayed to the users\n\n @motivating\n Scenario Outline: Ranks from any of the three standard leaderboards can be displayed\n Given a leaderboard rank component with <leaderboardType>\n And a user has a valid rank\n When they view the leaderboard rank component\n Then they see their rank for <leaderboardType>\n Examples:\n | leaderboardType |\n | topStartedReferrers |\n | topConvertedReferrers |\n | topPointEarners |\n\n @motivating\n Scenario Outline: Leaderboard rank can be filtered with a time interval\n Given a leaderboard rank component with <leaderboardType>\n And it has prop "interval" with value "2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z"\n When they view the leaderboard rank component\n Then they see their rank for <results> from within "2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z"\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Program Context is used by default to filter leaderboard rank\n Given a <leaderboardType> leaderboard rank component loaded with program context for "my-program"\n When they view the leaderboard rank component\n Then they see their rank for <leaderboardType> from "my-program"\n Examples:\n | leaderboardType |\n | topStartedReferrers |\n | topConvertedReferrers |\n | topPointEarners |\n\n @motivating\n Scenario Outline: Program Id context can be overwritten with a prop\n Given a <leaderboardType> leaderboard rank component has prop "program-Id" with value "my-test-program"\n When they view the leaderboard rank component\n Then they see their rank for <leaderboardType> from "my-test-program"\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Global leaderboards ranks can be displayed by clearing program context\n #This can also be done with a program section in a similar manner\n Given a <leaderboardType> leaderboard rank component has prop "program-Id" with value ""\n When they view the leaderboard rank component\n Then they see global <results> rank\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario: Rank calculation is controlled by the "rankType" prop\n Given the current user is User C\n And User C has <points>\n And User A has <points>\n And User B has <points>\n And the value of the "rankType" prop is <rankType>\n Then the rank of the current user is <rank>\n Examples:\n | user | points | rankType | rank |\n | User A | 5 | rowNumber | 3 |\n | User B | 10 | rowNumber | 1 |\n | User C | 10 | rowNumber | 2 |\n\n | user | points | rankType | rank |\n | User A | 10 | rank | 1 |\n | User B | 10 | rank | 1 |\n | User C | 5 | rank | 3 |\n\n | user | points | rankType | rank |\n | User A | 10 | denseRank | 1 |\n | User B | 10 | denseRank | 1 |\n | User C | 5 | denseRank | 2 |';var Ub={title:"Components/Leaderboard Rank",parameters:{scenario:Ob}};var Bb=function(){var e={data:{rank:"1st"}};return n("p",null,"Your rank is ",n(en,__assign({},e))," on the leaderboard")};var Mb=function(){var e={data:{rank:"2nd"}};return n("p",null,"Your rank is ",n(en,__assign({},e))," on the leaderboard")};var Gb=function(){var e={data:{rank:"unranked"}};return n("p",null,"You are currently ",n(en,__assign({},e)),", refer a friend!")};var Vb=Object.freeze({__proto__:null,default:Ub,First:Bb,Second:Mb,Unranked:Gb});var Wb='@owner:noah @author:noah\nFeature: Leaderboard\n\tThe leaderboard supports three main cases\n\t- Top Started Referrers\n\t- Top Converted Referrers\n\t- Top Point Earners\n\tTo display these different types of leaderboards it uses the backends pre-canned options.\n\tThe backend supports filtering on programId and interval, programId is sourced from program context.\n\n Background: A user exists\n Given a user\n And they are viewing the leaderboard\n\n @motivating\n Scenario Outline: Two types of referrals leaderboards can be displayed\n Given a leaderboard has prop "leaderboard-type" with <value>\n And there are started referrals on the tenant\n And there are started converted on the tenant\n When the user views the leaderboard\n Then they see the referral <referralType> leaderboard\n\n Examples:\n | value | referralType |\n | topStartedReferrers | started |\n | topConvertedReferrers | converted |\n\n @motivating\n Scenario: The top point earners leaderboard can be displayed\n Given a leaderboard has prop "leaderboard-type" with value "topPointEarners"\n And there are users with points\n When the user views the leaderboard\n Then they see the top point earners leaderboard\n And text values are displayed for point counts\n\n @minutia\n Scenario Outline: Reward pretty value is used on the top point earners leaderboard\n Given top point earners leaderboard\n And the "POINT" reward unit has a pretty value for the following locales\n | locale |\n | en |\n | fr |\n | tr |\n When the user views the leaderboard\n And they have <locale>\n Then they see the translated pretty value in the stat value column\n\n @motivating\n Scenario Outline: Program Context is used by default to filter leaderboard results\n Given a <leaderboardType> leaderboard loaded with program context for "my-program"\n When the user views the leaderboard\n Then they only see <results> from "my-program"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Program Id context can be overwritten with a prop\n Given a <leaderboardType> leaderboard has prop "program-Id" with value "my-test-program"\n When the user views the leaderboard\n Then they only see <results> from "my-test-program"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Global leaderboards can be displayed by clearing program context\n\t\t#This is important for clients with use cases like StaffTracks global points leaderboard\n\t\t#This can also be done with a program section in a similar manner\n Given a <leaderboardType> leaderboard has prop "program-Id" with value ""\n When the user views the leaderboard\n Then they see global <results>\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario: Leaderboard results are shown in descending order\n Given there are leaderboard results\n When the user views the leaderboard\n Then they see up to the 10 top leaderboard results\n And leaderboard is in descending order\n\n @motivating\n Scenario Outline: Leaderboard results can be filtered with a time interval\n Given a <leaderboardType> leaderboard\n And it has prop "interval" with value "2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z"\n When the user views the leaderboard\n Then they only see <results> from within "2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z"\n\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Leaderboard rank type can be configured\n Given a leaderboard has prop "rank-type" with <value>\n When the user views the leaderboard\n Then their leaderboard rank is their <rank>\n\n Examples:\n | value | rank |\n | rowNumber | row number |\n | denseRank | dense rank |\n | rank | rank |\n\n @minutia\n Scenario Outline: The max number of leaderboard rows displayed can be configured but defaults to 10\n Given a leaderboard has prop "max-rows" with <value>\n And the leaderboard has <resultCount>\n When the user views the leaderboard\n Then they see <number> rows\n\n Examples:\n | value | resultCount | number |\n | | 10 | 10 |\n | 5 | 10 | 5 |\n | 3 | 1 | 1 |\n | 25 | 15 | 15 |\n\n @minutiae @ui\n Scenario: Leaderboards with no results show an empty state\n Given a leaderboard has no results\n When the user views the leaderboard\n Then an empty state is dislayed\n And they see an image of a leaderboard\n And below they see "View your rank in the leaderboard"\n And below they see "Be the first to refer a friend and reach the top of the leaderboard"\n And the text is center aligned\n\n @minutiae @ui\n Scenario: A custom empty state can be provided\n Given a leaderboard has no results\n When the user views the leaderboard\n Then the contents of the "empty" slot are displayed\n\n @minutiae @ui\n Scenario: User is on Essentials plan\n Given the user has an Essentials plan\n When they view the leaderboard\n Then a message telling them to upgrade their plan appears:\n """\n Contact Support to upgrade your plan and start leveraging\n gamification in your program.\n """\n And an empty table image is displayed\n\n @minutiae @ui\n Scenario: Leaderboard headings can be customized\n Given a leaderboard\n And it has the following props\n | prop | value |\n | rankheading | Place |\n | usersheading | Customer |\n | statsheading | Referral Count |\n | show-rank | true |\n When the user views the leaderboard\n Then they see the following columns with headings\n | column | heading |\n | rank | Place |\n | user | Customer |\n | stat | Referral Count |\n\n @motivating @ui\n Scenario Outline: Leaderboard rank can be hidden or shown\n Given a leaderboard\n And it has prop "show-rank" with <propValue>\n When the user views the leaderboard\n Then they <maySee> the rank column\n\n Examples:\n | propValue | maySee |\n | true | see |\n | false | don\'t see |\n | | don\'t see |\n\n Scenario Outline: Users names can be hidden or shown\n Given a leaderboard\n And it has prop "hide-names" with <propValue>\n When the user views the leaderboard\n Then they <maySee> the referrer column\n\n Examples:\n | propValue | maySee |\n | true | don\'t see |\n | false | see |\n | | see |\n\n @motivating @ui\n Scenario: Users in the top 10 of the leaderboard results see their leaderboard row highlighted\n Given a user in the top 10 of the leaderboard results\n When they view the leaderboard\n Then they see the row with their name highlighted with brand colour\n\n @motivating @ui\n Scenario Outline: Users not in the top 10 leaderboard results can see their progress at the bottom of the leaderboard\n Given a user <mayHave> completed actions counted by the leaderboard\n And they are not in the top 10 leaderboard results\n And the leaderboard has prop "show-user" with <value>\n When they view the leaderboard\n Then they <maySee> "..." under the top 10 leaderboard results\n And under "..." they <maySee> a row highlighted with brand colour\n And they <maySee> their name\n And they <maySee> their leaderboard value\n And they <maySeeRank>\n\n Examples:\n | mayHave | value | maySee | maySeeRank |\n | has | true | see | see their rank |\n | hasn\'t | true | see | don\'t see their rank |\n | N/A | false | don\'t see | don\'t see their rank |\n | hasn\'t | | see | don\'t see their rank |\n\n @minutiae\n Scenario: Users without names are displayed as an "Anonymous User"\n Given a user\n And they do not have a first name\n And they do not have a last initial\n When they view the leaderboard\n Then they see the user displayed as "Anonymous User"\n\n @minutiae\n Scenario Outline: If a user only has a first or last name, then only that is displayed\n Given a user\n And they only have a <name>\n When they view the leaderboard\n Then they only see their <name>\n\n Examples:\n | name |\n | firstName |\n | lastName |\n';var jb={title:"Components/Leaderboard",parameters:{scenario:Wb}};var Hb=[{firstName:"",lastInitial:"",textValue:"82",rank:1,rowNumber:1},{firstName:"MF",lastInitial:"D",textValue:"73",rank:2,rowNumber:2},{firstName:"Freddie",lastInitial:"G",textValue:"64",rank:3,rowNumber:3},{firstName:"Benny",lastInitial:"B",textValue:"55",rank:4,rowNumber:4},{firstName:"Mos",lastInitial:"D",textValue:"46",rank:5,rowNumber:5},{firstName:"Joe",lastInitial:"S",textValue:"42",rank:6,rowNumber:6},{firstName:"Zach",lastInitial:"H",textValue:"41",rank:7,rowNumber:7},{firstName:"Sarah",lastInitial:"S",textValue:"39",rank:8,rowNumber:8},{firstName:"James",lastInitial:"",textValue:"33",rank:9,rowNumber:9},{firstName:"",lastInitial:"J",textValue:"29",rank:10,rowNumber:10}];var zb=[{firstName:"Tom",lastInitial:"Smith",textValue:"82 Points",rank:1,rowNumber:1},{firstName:"MF",lastInitial:"D",textValue:"73 Points",rank:2,rowNumber:2},{firstName:"Freddie",lastInitial:"G",textValue:"64 Points",rank:3,rowNumber:3},{firstName:"Benny",lastInitial:"B",textValue:"55 Points",rank:4,rowNumber:4},{firstName:"Mos",lastInitial:"D",textValue:"46 Points",rank:5,rowNumber:5},{firstName:"Joe",lastInitial:"S",textValue:"42 Points",rank:6,rowNumber:6},{firstName:"Zach",lastInitial:"H",textValue:"41 Points",rank:7,rowNumber:7},{firstName:"Sarah",lastInitial:"S",textValue:"39 Points",rank:8,rowNumber:8},{firstName:"James",lastInitial:"",textValue:"33 Points",rank:9,rowNumber:9},{firstName:"",lastInitial:"J",textValue:"29 Points",rank:10,rowNumber:10}];var Yb={usersheading:"User",statsheading:"Referrals",rankheading:"Rank",anonymousUser:"Anonymous User",viewingUserText:"You",rankSuffix:"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}"};n("a",null,"Support");var Jb={empty:n("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"})};var Kb=function(){var e={states:{loading:false,hasLeaders:false,styles:__assign({},Yb)},data:{rankType:"rowNumber",leaderboard:[],rowNumber:10,viewerRank:{firstName:"Kutay",lastInitial:"C",textValue:"8",rowNumber:11,rank:23}},elements:__assign({},Jb)};return n(S,__assign({},e))};var Xb=function(){var e={states:{loading:true,hasLeaders:false,styles:__assign({},Yb)},data:{rankType:"rowNumber",rowNumber:10,leaderboard:[]},elements:__assign({},Jb)};return n(S,__assign({},e))};var $b=function(){var e={states:{loading:false,isEssentials:true,hasLeaders:false,styles:__assign({},Yb)},data:{rankType:"rowNumber",leaderboard:[],rowNumber:10,viewerRank:{firstName:"Kutay",lastInitial:"C",textValue:"8",rowNumber:11,rank:23}},elements:__assign({},Jb)};return n(S,__assign({},e))};var Qb=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign({},Yb)},data:{rankType:"rowNumber",rowNumber:1,leaderboard:[{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}],viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var Zb=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign({},Yb)},data:{rankType:"rowNumber",rowNumber:5,leaderboard:[{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1},{firstName:"MF",lastInitial:"D",textValue:"73",rank:2,rowNumber:2},{firstName:"Freddie",lastInitial:"G",textValue:"64",rank:3,rowNumber:3},{firstName:"Benny",lastInitial:"B",textValue:"55",rank:4,rowNumber:4},{firstName:"Mos",lastInitial:"D",textValue:"46",rank:5,rowNumber:5}],viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var ey=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign(__assign({},Yb),{rankheading:"Rank",usersheading:"User",statsheading:"Referrals",showRank:false})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var ny=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign(__assign({},Yb),{rankheading:"Rank",usersheading:"User",statsheading:"Referrals",showRank:true,textColor:"white",borderColor:"white",background:"slateblue",borderRadius:18,viewingUserHighlightColor:"yellow",viewingUserHighlightTextColor:"slateblue"})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var ty=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign(__assign({},Yb),{rankheading:"Rank",usersheading:"User",statsheading:"Referrals",showRank:false,maxWidth:"300px"})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var ay=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign(__assign({},Yb),{rankheading:"Rank",usersheading:"User",statsheading:"Points",showRank:false})},data:{rankType:"rowNumber",leaderboard:zb,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82 Points",rank:1,rowNumber:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var ry=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign(__assign({},Yb),{showRank:true})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var iy=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign(__assign({},Yb),{showRank:true})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:{firstName:"Kutay",lastInitial:"C",textValue:"8",rowNumber:11,rank:24}},elements:__assign({},Jb)};return n(S,__assign({},e))};var sy=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign(__assign({},Yb),{showRank:true})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:null},elements:__assign({},Jb)};return n(S,__assign({},e))};var oy=function(){var e={states:{loading:false,hasLeaders:true,styles:__assign(__assign({},Yb),{showRank:true,hideNames:true})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:{textValue:"8",rowNumber:11,rank:42}},elements:__assign({},Jb)};return n(S,__assign({},e))};var ly=function(){var e={states:{loading:false,hasLeaders:true,rowNumber:10,styles:__assign(__assign({},Yb),{showRank:true,hideViewer:true})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rowNumber:1,rank:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var dy=function(){var e={states:{loading:false,hasLeaders:true,rowNumber:10,styles:__assign(__assign({},Yb),{showRank:true,hideNames:true})},data:{rankType:"rowNumber",leaderboard:Hb,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rowNumber:1,rank:1}},elements:__assign({},Jb)};return n(S,__assign({},e))};var uy=function(){return n("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",width:"100%",gap:"50px"}},n("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"10px",maxWidth:"30%"}},n("sqm-image",{width:"70%",alignment:"center",imageUrl:"https://res.cloudinary.com/saasquatch-staging/image/upload/v1729728469/Leaderboard_image_z87lsm.png"}),n("h2",{style:{margin:"auto"}}," Top Performers"),n("p",{style:{margin:"0"}},"The leaderboard highlights the top performers in real-time. Stay motivated, stay competitive!")),n("sqm-leaderboard",{width:"300px",usersheading:"Referrer",statsheading:"Referrals","rank-type":"rank","leaderboard-type":"topStartedReferrers",rankheading:"Rank","show-rank":"true","hide-names":"true","hide-viewer":"true"},n("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"})))};var cy=Object.freeze({__proto__:null,default:jb,Empty:Kb,Loading:Xb,Essentials:$b,One:Qb,Five:Zb,ReferralLeaderboard:ey,ReferralLeaderboardWithCustomStyles:ny,ReferralLeaderboardWithMaxWidth:ty,PointsLeaderboard:ay,TenWithRank:ry,ViewerOutside:iy,ViewerAnonymous:sy,HideNamesWithViewerOutside:oy,HideViewer:ly,HideNames:dy,LeaderboardWithNoNamesAndGraphic:uy});var my={title:"Hooks / useLeaderboard"};function py(){var e="testestest";var n=e;var t="sam-partner-test-2";Bp({programId:t,user:{id:e,accountId:n}})}function gy(){var e="sam+klip@saasquat.ch";var n=e;var t="klip-referral-program";Bp({programId:t,user:{id:e,accountId:n},mocks:{Query:function(){return{userLeaderboard:function(){return{rows:[]}}}}}});return{id:e,accountId:n}}var fy=function(e){var t=__assign({"leaderboard-type":"topConvertedReferrers",showRank:true,"rank-type":"rowNumber",usersheading:"Top Referrers",statsheading:"Completed Referrals",interval:""},e);var a=t.leaderboardType,r=t.rankType;return n("div",{style:{marginBottom:"20px"}},n("sqm-divided-layout",{direction:"row"},n("div",{style:{padding:"10px"}},n("b",null,"Leaderboard Type"),n("pre",null,a)),n("div",{style:{padding:"10px"}},n("b",null,"Rank Type"),n("pre",null,r))),n("sqm-leaderboard",__assign({},t),n("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"})),n("hr",null))};var hy=Nu((function(){py();return[fy({}),fy({rankType:"rank"}),fy({rankType:"denseRank"})]}));var vy=Nu((function(){py();return[fy({leaderboardType:"topStartedReferrers",statsheading:"New Referrals"}),fy({leaderboardType:"topStartedReferrers",rankType:"rank",statsheading:"New Referrals"}),fy({leaderboardType:"topStartedReferrers",rankType:"denseRank",statsheading:"New Referrals"})]}));var by=Nu((function(){py();return[fy({leaderboardType:"topPointEarners",statsheading:"Points",usersheading:"Top Earners"}),fy({leaderboardType:"topPointEarners",rankType:"rank",statsheading:"Points",usersheading:"Top Earners"}),fy({leaderboardType:"topPointEarners",rankType:"denseRank",statsheading:"Points",usersheading:"Top Earners"})]}));var yy=Nu((function(){py();return[fy({leaderboardType:"topPointEarners",rankType:"rank",statsheading:"Points",usersheading:"Top Earners",programId:""}),fy({leaderboardType:"topStartedReferrers",rankType:"rank",statsheading:"Referrals",programId:""}),fy({leaderboardType:"topConvertedReferrers",rankType:"rank",statsheading:"Referrals",programId:""})]}));var wy=Nu((function(){py();return[fy({leaderboardType:"topStartedReferrers",maxRows:5,statsheading:"Referrals"})]}));var _y=Nu((function(){gy();return[fy({leaderboardType:"topStartedReferrers",statsheading:"New Referrals",interval:"2021-02-11T08:00:00.000Z/2021-02-13T08:00:00.000Z"}),fy({leaderboardType:"topStartedReferrers",rankType:"rank",statsheading:"New Referrals",interval:"2021-02-11T08:00:00.000Z/2021-02-13T08:00:00.000Z"}),fy({leaderboardType:"topStartedReferrers",rankType:"denseRank",statsheading:"New Referrals",interval:"2021-02-11T08:00:00.000Z/2021-02-13T08:00:00.000Z"})]}));var xy=Nu((function(){return n("sqm-leaderboard",{usersheading:"Referrer",statsheading:"Referrals","rank-type":"rank","leaderboard-type":"topStartedReferrers",rankheading:"Rank","show-rank":"true"},n("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"}))}));var Ty=Nu((function(){return n("sqm-leaderboard",{usersheading:"Referrer",statsheading:"Referrals","rank-type":"rank","leaderboard-type":"topStartedReferrers",rankheading:"Rank","show-rank":"true",demoData:{data:{rankType:"rank",leaderboard:[]},states:{loading:false,hasLeaders:false,styles:{usersheading:"Top referrers",statsheading:"New customers",rankheading:"Rank",anonymousUser:"Anonymous User",showRank:true}}}},n("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"}))}));var Sy=Object.freeze({__proto__:null,default:my,TopConvertedReferrers:hy,TopStartedReferrers:vy,topPointEarners:by,globalLeaderboards:yy,FiveResults:wy,EmptyLeaderboard:_y,DemoHook:xy,DemoHookEmpty:Ty});var Ey='@author:noah\n@owner:noah\n\nFeature: Link Button\n\n\t@ui\n\tScenario: Links can be opened in the same tab\n\t\tWhen a user clicks the button\n\t\tThen a link opens in the same tab\n\t\tAnd if the component is in an iFrame then the link is opened in the parent window not the iFrame\n\n\t@ui\n\tScenario: Links can be opened in a new tab\n\t\tWhen a user clicks the button\n\t\tThen a link opens in a new tab\n\t\tAnd if the component is in an iFrame then the link is still opened in a new tab\n\n\n\t@ui\n\tScenario: Props control the link and button text\n\t\tGiven the "link" prop is set to "https://www.example.com"\n\t\tAnd the "buttonText" prop is set to "Click me!"\n\t\tThen a button is shown with the text "Click me!"\n\t\tAnd when clicked the button opens https://www.example.com\n\n\t@ui\n\tScenario Outline: The button type can be set\n\t\tGiven the button type is set to <value>\n\t\tThen a <buttonType> is shown\n\t\tExamples:\n\t\t\t| value | buttonType |\n\t\t\t| <null> | primary |\n\t\t\t| default | default |\n\t\t\t| primary | primary |\n\t\t\t| success | success |\n\t\t\t| neutral | neutral |\n\t\t\t| warning | warning |\n\t\t\t| danger | danger |';var Cy={title:"Components/Link Button",parameters:{scenario:Ey}};var Ry={link:"https://example.com",openInNewTab:false,buttonText:"Button Text"};var Iy=function(){return n("sqm-link-button",__assign({},Ry))};var Dy=function(){return n("sqm-link-button",__assign({},__assign(__assign({},Ry),{openInNewTab:true})))};var Ay=Object.freeze({__proto__:null,default:Cy,Default:Iy,OpenInNewTab:Dy});var ky='@author:noah\n@owner:noah\n\nFeature: Logout Current User\n\n Background:\n Given a user viewing an instant access widget\n\n @motivating\n @ui\n Scenario: A user on an instant access widget\n Given the user is identified\n And the user is logged in\n Then the component identifies the user by displaying their email in an ICU string\n And the users email displayed in the ICU string using hte "{email}" variable\n\n @motivating\n @ui\n Scenario: Users can switch who they are identified as through a link\n Given the user is identified\n And the user is logged in\n When the user clicks the link in the component\n Then the saved user identity is emptied\n And they are sent back to the registration form to re-identify themselves\n\n @minutia\n Scenario: Logout link empties the saved User Identity\n Given a valid user identity\n And the user is viewing the "logged-in" template\n When they click the logout link\n Then the user identity is set to "undefined"\n And the user is returned to the "logged-out" template';var qy={title:"Components/Logout Current User",parameters:{scenario:ky}};var Py={filledInEmailText:"Currently showing referral data for noah.clarke@saasquatch.com",onSwitchClick:function(){return console.log("clicked")},switchUserText:"not you?",loading:false,emailErrorText:"Error fetching email"};var Ny=function(){return n(nn,__assign({},Py))};var Fy=Object.freeze({__proto__:null,default:qy,Default:Ny});var Ly='@owner:zach\n@author:zach\nFeature: Marketing Emails Checkbox\n\n A checkbox that is used to opt in for marketing emails.\n\n Background: The microsite registration form contains a marketing emails checkbox\n\n Scenario: The registration form can be configured to include a marketing emails checkbox\n Given a user is viewing the "/register"\n And "/register" contains the registration form\n And they have added a marketing emails checkbox to the form in the content editor\n Then the registration form has the following fields\n | fields |\n | first name |\n | last name |\n | email |\n | password |\n | Marketing Emails Checkbox |\n\n\n Scenario: The user can opt in to marketing emails\n Given the user is filling out the registration form\n And the fields have valid input\n And the marketing emails checkbox is checked\n When they try to register\n Then the form is submitted\n And there are no errors\n And the "marketingEmailOptIn" value is set to true\n And the user is opted in to marketing emails\n\n\n @motivating\n Scenario: Checkbox is optional by default\n Given the user is filling out the registration form\n And the name fields have valid input\n And the email field has valid input\n And the password field has valid input\n And the checkbox is not checked\n When they try to register\n Then the form is submitted\n And there is no error for the checkbox\n\n Scenario: The form field name is provided by default\n Given the customer has added a marketing emails checkbox to their registration form\n Then the field name is automatically set to "marketingEmailOptIn"\n And the name is not configurable';var Oy={title:"Components/Marketing Emails Checkbox",parameters:{scenario:Ly}};var Uy=function(){return n("sqm-marketing-emails-checkbox",null)};var By=Object.freeze({__proto__:null,default:Oy,Default:Uy});var My='@owner:sam\n@author:sam\n\nFeature: Name Fields\n\n Fields to be used to fill the first and last name of a user during registration\n\n Background:\n Given the current page is "/register"\n\n @motivating\n Scenario: Both first name and last name are required\n Given the email field has valid input\n And the password field has valid input\n And first name field is empty\n And last name field is empty\n When register is clicked\n Then the name fields will be highlighted in red\n And the error messages will say "Cannot be empty"\n\n @motivating\n Scenario: First and last name are upserted with the SaaSquatch user\n Given all fields have been filled with data\n | firstName | lastName | email | password |\n | Bob | Testerson | bob@example.com | SecurePassword1 |\n When register is clicked\n Then the email verification page will be loaded\n And the user will be upserted\n And the SaaSquatch user will contain data\n | firstName | lastName | email |\n | Bob | Testerson | bob@example.com |\n\n';var Gy={title:"Components/Name Fields",parameters:{scenario:My}};var Vy={states:{optional:false,registrationFormState:{validationErrors:undefined},content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}};var Wy={states:{optional:false,registrationFormState:{validationErrors:{firstName:"Cannot be empty",lastName:"Cannot be empty"}},content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}};var jy=function(){return n(R,__assign({},Vy))};var Hy=function(){return n(R,__assign({},Wy))};var zy=Object.freeze({__proto__:null,default:Gy,NameFields:jy,NameFieldsWithErrors:Hy});var Yy={title:"Components/Sidebar Item"};var Jy=function(){var e={states:{active:false},data:{label:"Dashboard",icon:"house",path:"/"}};return n(le,__assign({},e))};var Ky=function(){var e={states:{active:true},data:{label:"Dashboard",icon:"house",path:"/"}};return n(le,__assign({},e))};var Xy=Object.freeze({__proto__:null,default:Yy,InactiveItem:Jy,ActiveItem:Ky});var $y={title:"Components/Navigation Sidebar"};var Qy=function(){var e={states:{active:false},data:{label:"Dashboard",icon:"house",path:"/"}};var t={states:{active:true},data:{label:"Activity",icon:"bar-chart",path:"/"}};return n(oe,null,n(le,__assign({},e)),n(le,__assign({},t)))};var Zy=Object.freeze({__proto__:null,default:$y,DefaultNavigationSidebar:Qy});var ew={title:"Components/Link Button"};var nw=function(){return n("sqm-pagination",null)};var tw=Object.freeze({__proto__:null,default:ew,Default:nw});var aw={title:"Components/Microsite Password Field"};var rw=function(){return n("sqm-password-field",{demoData:{initValue:"",states:{enableValidation:true,registrationFormState:{validationErrors:{}},content:{fieldLabel:"Password"}}}})};var iw=function(){return n("sqm-password-field",{demoData:{initValue:"",states:{enableValidation:true,registrationFormState:{validationErrors:{password:"Cannot be empty"}},content:{fieldLabel:"Password"}}}})};var sw=function(){return n("sqm-password-field",{demoData:{initValue:"asdf",states:{enableValidation:true,registrationFormState:{validationErrors:{password:"Incomplete"}},content:{fieldLabel:"Password"}}}})};var ow=Object.freeze({__proto__:null,default:aw,Start:rw,EmptyError:iw,ValidationError:sw});var lw={title:"Components/Payout Scroll Button"};var dw={payoutSettingsComplete:true};var uw=function(){return n("sqm-payout-button-scroll",{demoData:{states:__assign(__assign({},dw),{payoutSettingsComplete:true})}})};var cw=function(){return n("sqm-portal-container",{display:"flex",maxWidth:"100%",minWidth:"100%","justify-content":"space-between",flexWrap:"nowrap"},n("sqm-portal-container",{display:"flex","max-width":"fit-content"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/referralsCount"},n("p",null,"Referrals")),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/payoutBalance"},n("p",null,"Cash Balance"))),n("sqm-payout-button-scroll",{demoData:{states:__assign(__assign({},dw),{payoutSettingsComplete:true})}}))};var mw=Object.freeze({__proto__:null,default:lw,CompletedTaxForm:uw,CompletedTaxFormWithStatsContainer:cw});var pw={title:"Components/Change Marketing Emails Status"};var gw={states:{success:false,loading:false,submitDisabled:false,formState:{marketingEmailOptIn:false,errors:null,error:""},user:{id:"zach",accountId:"zach",marketingEmailOptIn:false},text:{emailPreferencesHeader:"Email preferences",marketingCheckboxLabel:"I want to receive marketing emails and promotions for this referral program from impact.com",submitChangeButtonText:"Save",successMessage:"Opt-in preference has been changed."}},callbacks:{onSubmit:function(e){return console.log(e)},setChecked:function(e){return console.log(e)}}};var fw=function(){return n("sqm-portal-change-marketing",null)};var hw=function(){return n(I,__assign(__assign({},gw),{states:__assign(__assign({},gw.states),{loading:true})}))};var vw=function(){return n(I,__assign(__assign({},gw),{states:__assign(__assign({},gw.states),{formState:__assign(__assign({},gw.states.formState),{errors:{error:true},error:"An error string"})})}))};var bw=function(){return n(I,__assign(__assign({},gw),{states:__assign(__assign({},gw.states),{success:true})}))};var yw=Object.freeze({__proto__:null,default:pw,Default:fw,Loading:hw,Error:vw,Success:bw});var ww='Feature: Change Password\n\n @motivating\n Scenario: Users can change their password\n Given a user has registered for the portal\n And they have a password\n When they navigate to the edit profile page\n And click "Change your password..."\n Then a popup will appear\n When they enter their new password\n And confirm it\n And click "Change Password"\n Then they will see a success banner stating that the change was successful\n When they logout\n And try to login\n Then they will not be able to login with their old password\n But they will be able to login with their new password\n\n @motivating\n Scenario: Users must confirm their password change\n Given a user has registered for the portal\n When they navigate to the edit profile page\n And click "Change your password..."\n Then a popup will appear\n When they enter their new password\n But they enter a different password to confirm\n And click "Change Password"\n Then they will see an error banner stating that the passwords didnt match\n When they logout\n And try to login\n Then they will be able to login with their existing password\n\n @motivating\n Scenario: Users must enter a new password and confirm it to change their password\n Given a user has registered for the portal\n When they navigate to the edit profile page\n And click "Change your password..."\n Then a popup will appear\n When they click "Change password"\n Then a validation error will appear for the new password field\n And their password will not be changed\n When they enter a new password\n And they click "Change password"\n Then a validation error will appear for the confirm new password field\n And their password will not be changed\n\n @motivating\n Scenario: An error banner will be displayed if the password change fails\n Given a user has registered for the portal\n When they navigate to the edit profile page\n And click "Change your password..."\n When they enter their new password\n And confirm it\n And click "Change Password"\n But the change fails\n Then they will see an error banner stating that the change failed\n When they logout\n And try to login\n Then they will be able to login with their existing password';var _w={title:"Components/Change Password",parameters:{scenario:ww}};var xw={states:{open:false,loading:false,success:false,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:function(e){return console.log(e)},submit:function(e){return console.log("Submit",e)}}};var Tw={states:{open:true,loading:false,success:false,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:function(e){return console.log(e)},submit:function(e){return console.log("Submit",e)}}};var Sw={states:{open:true,loading:false,success:false,error:"Network error. Please try again.",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:function(e){return console.log(e)},submit:function(e){return console.log("Submit",e)}}};var Ew={states:{open:true,loading:false,success:false,error:"Passwords do not match.",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:function(e){return console.log(e)},submit:function(e){return console.log("Submit",e)}}};var Cw={states:{open:true,loading:true,success:false,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:function(e){return console.log(e)},submit:function(e){return console.log("Submit",e)}}};var Rw={states:{open:true,loading:false,success:true,error:"",content:{modalChangePasswordHeader:"Change Password",cancelText:"Cancel",changePasswordButtonText:"Change Password",passwordFieldLabel:"New Password",confirmPasswordFieldLabel:"Confirm new password",successMessage:"Your password has been updated.",portalChangePasswordHeader:"Password",portalChangePasswordButtonText:"Change your password..."}},callbacks:{setOpen:function(e){return console.log(e)},submit:function(e){return console.log("Submit",e)}}};var Iw=function(){return n(g,__assign({},xw))};var Dw=function(){return n(g,__assign({},Tw))};var Aw=function(){return n(g,__assign({},Sw))};var kw=function(){return n(g,__assign({},Ew))};var qw=function(){return n(g,__assign({},Cw))};var Pw=function(){return n(g,__assign({},Rw))};var Nw=Object.freeze({__proto__:null,default:_w,Default:Iw,Open:Dw,Error:Aw,PaswordError:kw,Loading:qw,Success:Pw});var Fw='@author:kutay\n@owner:noah\nFeature: Portal Container\n\n\t@motivating\n\t@ui\n\tScenario: Horizontal content overflows, but does not stretch\n\t\tGiven there are two element in the container\n\t\tAnd the first is small\n\t\tAnd the second would stretch the container wider than it\'s parent\n\t\tThen the second one is clipped\n\t\tAnd the first one doesn\'t stretch\n\n\t@landmine\n\t@ui\n\tScenario: `max-width` is required for displaying as a row\n\t\tGiven I have `direction` to "row"\n\t\tAnd I have not set a `max-width`\n\t\tThen it displays as a column\n\n\t@motivating\n\t@ui\n\tScenario Outline: Content padding can be customized\n\t\tGiven prop "padding" has <value>\n\t\tThen <padding> is applied to content\n\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\n\t@motivating\n\t@ui\n\tScenario Outline: Gap between content elements can be customized\n\t\tGiven prop "gap" has <value>\n\t\tThen <gap> is applied to elements between content\n\n\t\tExamples:\n\t\t\t| value | gap |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\t@minutia\n\t@ui\n\tScenario: Content can be center aligned in horizontal view\n\t\tGiven I have supplied the prop "center"\n\t\tThen the content is center aligned\n\n\t@minutia\n\t@ui\n\tScenario: Content in the last row can span full width with display in horizontal view\n\t\tGiven I have `display` to "flex"\n\t\tThen the content is full width on the last row\n\n\t@motivating\n\t@ui\n\tScenario Outline: Content can be aligned along the x-axis\n\t\tGiven prop "justify-content" has <value>\n\t\tThen content within the container is aligned <alignment>\n\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| none | no alignment |\n\t\t\t| start | to the start |\n\t\t\t| center | to the center |\n\t\t\t| end | to the end |\n\t\t\t| space-between | with space between |\n\t\t\t| space-around | with space around |\n\t\t\t| space-evenly | with space evenly |\n\n\n\t@motivating\n\t@ui\n\tScenario Outline: Component background color can be customized\n\t\tGiven a user is viewing the Portal Container component\n\t\tThen the default value is "#ffffff00"\n\t\tWhen the prop "background-color" has <value>\n\t\tThen the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| value | backgroundColor |\n\t\t\t| empty (default value) | var(--sl-color-neutral-0) (#ffffff) |\n\t\t\t| aquamarine | #7fffd4 |\n';var Lw={title:"Components/Microsite Container",parameters:{scenario:Fw}};var Ow=function(){return n("div",{style:{width:"200px",border:"1px dashed grey"}},n("sqm-portal-container",{gap:"xxx-large"},n("div",{style:{background:"grey",border:"1px solid red"}},"Small"),n("div",{style:{background:"lightblue",width:"1000px"}},"Too wide, content goes off the side of the page for ever and is hidden.")))};var Uw=function(){return n("div",{style:{width:"500px",border:"1px dashed grey"}},n("sqm-portal-container",{gap:"xxx-large",direction:"row","min-width":"160px"},n("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),n("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),n("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook")))};var Bw=function(){return n("div",{style:{width:"500px",border:"1px dashed grey"}},n("sqm-portal-container",{gap:"small",direction:"row","min-width":"160px"},n("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),n("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),n("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook")))};var Mw=function(){return n("div",{style:{width:"500px",border:"1px dashed grey"}},n("sqm-portal-container",{padding:"xxx-large",gap:"xxx-large",direction:"row","min-width":"160px"},n("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),n("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),n("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook")))};var Gw=function(){return n("div",{style:{width:"500px",border:"1px dashed grey"}},n("sqm-portal-container",{gap:"xxx-large",direction:"row",display:"flex","min-width":"160px"},n("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),n("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),n("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook")))};var Vw=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{gap:"xxx-large",direction:"row",minWidth:"160px",maxWidth:"50%"},n("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),n("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),n("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook")))};var Ww=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{gap:"xxx-large",direction:"row",minWidth:"160px",maxWidth:"50%",center:true},n("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),n("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),n("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook")))};var jw=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{gap:"xxx-large",direction:"row",maxWidth:"100%"},n("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),n("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),n("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook")))};var Hw=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{center:true,direction:"row",display:"flex","justify-content":"space-between"},n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance")))),n("sqm-scroll",{"scroll-id":"tab-2",outline:true,"button-type":"primary","button-text":"Redeem your rewards",mobile:true})))};var zw=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{center:true,direction:"row",display:"flex","justify-content":"space-around"},n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance")))),n("sqm-scroll",{"scroll-id":"tab-2",outline:true,"button-type":"primary","button-text":"Redeem your rewards",mobile:true})))};var Yw=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{center:true,direction:"row",display:"flex","justify-content":"space-evenly"},n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance")))),n("sqm-scroll",{"scroll-id":"tab-2",outline:true,"button-type":"primary","button-text":"Redeem your rewards",mobile:true})))};var Jw=function(){return n("div",{style:{width:"100%",maxWidth:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{center:true,direction:"row",display:"flex","justify-content":"space-between","flex-wrap":"nowrap"},n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance")))),n("sqm-scroll",{"scroll-id":"tab-2",outline:true,"button-type":"primary","button-text":"Redeem your rewards",mobile:true})))};var Kw=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{center:true,direction:"row",display:"flex","justify-content":"start"},n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance")))),n("sqm-scroll",{"scroll-id":"tab-2",outline:true,"button-type":"primary","button-text":"Redeem your rewards",mobile:true})))};var Xw=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{center:true,direction:"row",display:"flex","justify-content":"center"},n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance")))),n("sqm-scroll",{"scroll-id":"tab-2",outline:true,"button-type":"primary","button-text":"Redeem your rewards",mobile:true})))};var $w=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{center:true,direction:"row",display:"flex","justify-content":"end"},n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance")))),n("sqm-scroll",{"scroll-id":"tab-2",outline:true,"button-type":"primary","button-text":"Redeem your rewards",mobile:true})))};var Qw=function(){return n("div",{style:{width:"1000px",border:"1px dashed grey"}},n("sqm-portal-container",{center:true,direction:"row",display:"flex","justify-content":"start","background-color":"red"},n("sqm-stat-container",{space:"xxx-large",display:"flex"},n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},n("sqm-text",null,n("p",null,"Rewards Redeemed"))),n("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},n("sqm-text",null,n("p",null,"Points Balance")))),n("sqm-scroll",{"scroll-id":"tab-2",outline:true,"button-type":"primary","button-text":"Redeem your rewards",mobile:true})))};var Zw=Object.freeze({__proto__:null,default:Lw,TooWideColumn:Ow,TooWideRow:Uw,TooWideSmallGap:Bw,TooWidePadding:Mw,TooWideDisplayFlex:Gw,HalfWidth:Vw,HalfWidthCenter:Ww,FullWidth:jw,SpaceBetween:Hw,SpaceAround:zw,SpaceEvenly:Yw,ResponsiveBox:Jw,Start:Kw,Center:Xw,End:$w,BackgroundColor:Qw});var e_='@author:derek\n@owner:ian\nFeature: Email Verification\n\n @minutia\n Scenario: User\'s redirected from registration can re-send their verification email\n Given a user has registered\n And they have been sent a verification email\n When they are redirected to the email verification page\n Then a message is displayed\n And it reflects that a email has been sent to their email\n But they can still re-send the email\n When they click to "Resend-Email"\n Then they receive a verification email\n\n @motivating\n Scenario: Users are notified if sending the email verification message fails\n Given a user viewing the email verification component\n And they have an email stored in session data from registration\n When they click to "Resend-Email"\n Then the text link is disabled\n When an error occurs trying to send the verification email\n Then the user does not receive a verification email\n And an error banner is shown stating that they should try again\n\n @motivating\n Scenario: Users are notified if sending the email verification message succeeds\n Given a user viewing the email verification component\n And they have an email stored in session data from registration\n When they click to "Resend-Email"\n Then the text link is disabled\n When the email verification message sends\n Then the user receives a verification email\n And a success banner is shown stating that their email was resent\n\n @motivating\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to "/verifyEmail"\n Given a user viewing the email verification component\n And they have an email stored in session data from registration\n And the component <mayHave> "redirect-path" with <value>\n When they resend their verification email\n And they click the link in the email\n Then they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn\'t have | N/A | /verifyEmail |\n | has | /verifyMyEmail | /verifyMyEmail |\n\n @motivating\n Scenario Outline: Verification status is refetched on refresh\n Given a user viewing the email verification component\n And the component <mayHave> "redirect-path" with <value>\n And they verified their account on another device\n And the local storage verification state is outdated\n When they refresh the page the component is on\n Then their verification status is re-queried\n And the local storage managed identity state is updated\n And they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn\'t have | N/A | /verifyEmail |\n | has | /verifyMyEmail | /verifyMyEmail |\n\n @motivating\n Scenario Outline: Verification status is refetched every 10 seconds\n Given a user viewing the email verification component\n And the component <mayHave> "redirect-path" with <value>\n Then they see text "Checking verification status in 10" above the re-send verification text link\n And the time counts down from 10 to 0\n When the counter hits 0\n Then their verification status is re-queried\n And the text displays a spinner where the "in {seconds}" text was\n When they verify their account on another device\n And the count down hits 0 again from 10\n Then their verification status is re-queried\n And the local storage managed identity state is updated\n And they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn\'t have | N/A | /verifyEmail |\n | has | /verifyMyEmail | /verifyMyEmail |\n\n @minutia\n Scenario Outline: Verification refetch text is customizable\n Given the email verication has prop "verification-status-message" with <verificationPropValue>\n And has prop "verification-loading-message" with <loadingPropValue>\n And a user viewing the component\n When it is counting down\n Then they see <verificationTextValue>\n When it is refetching their verification status\n Examples:\n | verificationPropValue | verificationTextValue | loadingPropValue | loadingTextValue |\n | N/A | Checking verification status in {countdown} | N/A | Checking verification status |\n | {countdown} seconds till verification refresh | {countdown} seconds till verification refresh | Checking verification | Checking verification |\n\n\n @minutia\n Scenario: 10 second countdown pauses when minimizing or moving between tabs\n Given a user viewing the email verification component\n Then they see text "Checking verification status in 10" above the re-send verification text link\n And the time counts down from 10 to 7\n And the user changes to a different tab\n When the user goes back to the verification tab\n Then the countdown will still be 7\n When the counter hits 0\n Then their verification status is re-queried\n';var n_={title:"Components/Microsite Email Verification",parameters:{scenario:e_}};var t_={submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}};var a_={email:"email@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email",verificationStatusMessage:"Checking verification status in {countdown}",verificationLoadingMessage:"Checking verification status",verificationResentMessage:"Verification email resent to {email}"};var r_={error:"",loading:false,success:false,isVerified:false,loadingVerification:false,countdown:10};var i_={states:r_,callbacks:t_,content:a_};var s_={states:__assign(__assign({},r_),{error:"Something went wrong. Please try again."}),callbacks:t_,content:a_};var o_={states:__assign(__assign({},r_),{loading:true}),callbacks:t_,content:a_};var l_={states:__assign(__assign({},r_),{success:true,isVerified:true}),callbacks:t_,content:a_};var d_={states:__assign(__assign({},r_),{loadingVerification:true}),callbacks:t_,content:a_};var u_=function(){return n(tn,__assign({},i_))};var c_=function(){return n(tn,__assign({},s_))};var m_=function(){return n(tn,__assign({},o_))};var p_=function(){return n(tn,__assign({},d_))};var g_=function(){return n(tn,__assign({},l_))};var f_=Object.freeze({__proto__:null,default:n_,Default:u_,EmailVerificationWithError:c_,EmailVerificationLoading:m_,EmailVerificationCheckingVerification:p_,EmailVerificationSuccess:g_});var h_='Feature: Portal Footer\n\n Background: A user is viewing the portal\n Given a hosted portal\n And a user is viewing the portal\n And the portal has a footer\n\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\n Given the footer has prop "terms-link" with value "https://example.com/terms"\n And prop "terms-text" with value "Terms and Conditions"\n And prop "faq-link" with value "https://example.com/FAQ"\n And prop "faq-text" with value "Visit FAQ"\n When a user clicks on the "Visit FAQ" link\n Then they will be redirected to "https://example.com/FAQ" in a new page\n When they go back to the portal\n And click on the "Terms and Conditions" link\n Then they will be redirected to "https://example.com/terms" in a new page\n\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\n Given the footer does not have <linkProp>\n But it <mayHave> <textProp> with <value>\n Then the <link> will not be shown in the footer\n Examples:\n | linkProp | mayHave | textProp | value | link |\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\n | terms-link | doesn\'t have | | | T&C Link |\n | faq-link | doesn\'t have | | | FAQ Link |\n\n Scenario Outline: The support email and text is configurable but has a default\n Given the footer <mayHave> <emailPropWithValue>\n And the footer <mayAlsoHave> <textPropWithValue>\n Then the footer\'s support email text is <renderedEmailText>\n And the email address will be a mailto link with <mailtoEmail>\n When the user clicks on the email address mailto Link\n Then the users preferred email client will open with a draft email to <mailtoEmail>\n Examples:\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\n | doesn\'t have | N/A | doesn\'t have | N/A | support@example.com | For program support, contact support@example.com |\n\n Scenario Outline: Powered by SaaSquatch can be hidden\n Given the footer <mayHaveProp> "hide-powered-by" with <value>\n Then the powered by SaaSquatch image <mayBeShown>\n Examples:\n | mayHaveProp | value | mayBeShown |\n | has prop | true (default) | isn\'t shown |\n | has prop | false | is shown |\n | has prop | test | isn\'t shown |\n | has prop | | isn\'t shown |\n | doesn\'t have prop | | is shown |\n\n Scenario Outline: Support text can be hidden\n Given the footer <mayHaveProp> "hide-support-text" with <value>\n Then the support text <mayBeShown>\n Examples:\n | mayHaveProp | value | mayBeShown |\n | has prop | false (default) | is shown |\n | has prop | true | isn\'t shown |\n | has prop | test | isn\'t shown |\n | has prop | | isn\'t shown |\n | doesn\'t have prop | | is shown |\n\n Scenario: Powered By Saasquatch links out to marketing website\n Given the footer has the powered by SaaSquatch image\n When a user clicks on it\n Then they will be redirected to "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget" in a new page';var v_={title:"Components/Microsite Footer",parameters:{scenario:h_}};var b_={supportEmail:"support@example.com",supportText:"For program support, contact {email}",hidePoweredBy:false,poweredByLink:"https://impact.com/advocate/",paddingTop:"large",paddingRight:"large",paddingBottom:"large",paddingLeft:"large"};var y_=function(){return n(D,__assign({},b_))};var w_=function(){return n(D,__assign(__assign({},b_),{termsLink:"https://example.com",termsText:"Terms and Conditions"}))};var __=function(){return n(D,__assign(__assign({},b_),{faqLink:"https://example.com",faqText:"FAQ"}))};var x_=function(){return n(D,__assign(__assign({},b_),{termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ"}))};var T_=function(){return n(D,__assign(__assign({},b_),{termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ",hidePoweredBy:true}))};var S_=function(){return n(D,__assign(__assign({},b_),{termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ",hideSupportText:true}))};var E_=Object.freeze({__proto__:null,default:v_,DefaultFooter:y_,FooterWithTerms:w_,FooterWithFAQ:__,FooterWithTermsAndFAQ:x_,FooterNoPoweredBy:T_,FooterNoSupportText:S_});var C_='@author:derek\n@owner:ian\nFeature: Forgot Password\n\n @motivating\n Scenario: Users can request to reset their password\n Given a user enters their email address\n And that email address is linked to a previously created account\n When they click "Reset Password"\n Then the button enters a loading state\n When the password reset email is sent\n Then a confirmation banner is shown stating a password reset email was sent\n\n @motivating\n Scenario: Users are notified if sending their password reset email fails\n Given a user enters their email address\n And that email address is linked to a previously created account\n When they click "Reset Password"\n Then the button enters a loading state\n When the password reset email fails to send\n Then the user does not receive a password reset email\n And an error banner is shown stating that they should try again\n\n @motivating\n @landmine\n Scenario: If the input email is not associated to an account a success banner is shown but an email is not be sent\n Given the user entered an email address that is not associated to an accoun\n When they click "Reset Password"\n Then the button enters a loading state\n But no email is sent\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\n\n @motivating\n Scenario: Users can resend password reset email\n Given a user had previously requested to reset their password\n When they enter their email address\n And that email address is linked to a previously created account\n And they click "Reset Password"\n Then the user receives a second password reset email\n And a success banner is shown stating that their email was sent\n\n @motivating\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to "/resetPassword"\n Given a user viewing the password reset component\n And the component <mayHave> "redirect-path" with <value>\n When they request a password reset email\n And they click the link in the email\n Then they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn\'t have | N/A | /resetPassword |\n | has | /resetMyPassword | /resetMyPassword |\n\n @minutia\n Scenario Outline: Navigation back to the login page can be customized but defaults to "/login"\n Given a user viewing the password reset component\n And the component <mayHave> "login-path" with <value>\n Then they see a "Sign In" text button\n When they click "Sign In"\n Then they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn\'t have | N/A | /login |\n | has | /signin | /signin |';var R_={title:"Components/Microsite Forgot Password",parameters:{scenario:C_}};var I_={states:{error:"",loading:false,success:false,loginPath:"/login"},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}},content:{loginText:"Login",messageSlot:"Enter your email below to receive a password reset link."}};var D_={states:{error:"Something went wrong. Please try again.",loading:false,success:false,loginPath:"/login"},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}},content:{messageSlot:"Enter your email below to receive a password reset link.",loginText:"Login"}};var A_={states:{error:"",loading:true,success:false,loginPath:"/login"},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}},content:{loginText:"Login",messageSlot:"Enter your email below to receive a password reset link."}};var k_={states:{error:"",loading:false,success:true,loginPath:"/login"},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}},content:{loginText:"Login",messageSlot:"Enter your email below to receive a password reset link.",successAlertText:"An email has been sent with instructions to reset your password."}};var q_=function(){return n(He,__assign({},I_))};var P_=function(){return n("sqm-portal-forgot-password",null)};var N_=function(){return n(He,__assign({},D_))};var F_=function(){return n(He,__assign({},A_))};var L_=function(){return n(He,__assign({},k_))};var O_=Object.freeze({__proto__:null,default:R_,Default:q_,DemoDataTest:P_,ForgotPasswordWithError:N_,ForgotPasswordLoading:F_,ForgotPasswordSuccess:L_});function U_(){var e="worried-camera@uexwltgh.mailosaur.net";var n=e;var t="a-referral-program";window.SquatchAndroid=true;Bp({programId:t,widgetIdent:{token:Oe({user:{id:e,accountId:n}}),userId:e,accountId:n}});return{id:e,accountId:n}}function B_(){var e="a-referral-program";window.SquatchAndroid=true;Bp({programId:e})}var M_={title:"Components/Microsite Frame"};var G_={data:{footer:n("span",null,"example@example.com"),header:n("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},n("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Microsite Header"),n("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the microsite"))},callbacks:{rerender:function(){}},ref:{current:undefined}};var V_=function(){var e=__assign({},G_);return n(A,__assign({},e),n("sqm-navigation-menu",{"menu-label":"Menu"},n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),n("sl-menu-divider",null),n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")))};var W_=function(){var e=__assign({},G_);return n(A,__assign({},e))};var j_=Nu((function(){var e;U_();return n("div",null,n("sqm-portal-frame",null,n("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},n("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),n("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal")),n("a",{slot:"footer",class:"FooterEmail",href:"mailto:referrals@servicetitan.com"},"referrals@servicetitan.com"),n("sqm-navigation-menu",{"menu-label":"Menu"},n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),n("sl-menu-divider",null),n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")),n("h1",null,"Something")),n("p",null,"Current path:"," ",n("code",null,n("strong",null,(e=Ve())===null||e===void 0?void 0:e.pathname))),n("button",{onClick:ke.back},"Go Back"))}));var H_=Nu((function(){var e;B_();return n("div",null,n("sqm-portal-frame",null,n("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},n("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),n("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal")),n("span",{slot:"footer"},"sample@example.com"),n("sqm-navigation-menu",{"menu-label":"Menu"},n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),n("sl-menu-divider",null),n("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")),n("h1",null,"Something")),n("p",null,"Current path:"," ",n("code",null,n("strong",null,(e=Ve())===null||e===void 0?void 0:e.pathname))),n("button",{onClick:ke.back},"Go Back"))}));var z_=Object.freeze({__proto__:null,default:M_,FrameWithMenu:V_,FrameWithoutMenu:W_,FullStackFrame:j_,FullStackFrameLoggedOut:H_});var Y_={title:"Components/Microsite Google Register"};var J_={states:{error:"",loading:false,confirmPassword:false,hideInputs:false,loginPath:"/login",hidePasswords:true,registrationFormState:{initialData:{email:"testuser@example.com"}}},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",passwordField:null,formData:n("div",null," ",n(R,{states:{optional:false,registrationFormState:{validationErrors:undefined,disabled:true,initialData:{firstName:"Test",lastName:"User"}},content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}}),n("sl-input",{style:{marginBottom:"var(--sl-spacing-x-large)"},exportparts:"label: input-label, base: input-base",label:"Slotted Input",required:true}),n("sl-input",{exportparts:"label: input-label, base: input-base",label:"Slotted Input 2",required:true}))}};var K_=__assign(__assign({},J_),{states:{error:"Something went wrong. Please try again.",loading:false,confirmPassword:false,hideInputs:false,loginPath:"/login",hidePasswords:true,registrationFormState:{initialData:{email:"testuser@example.com"}}}});var X_=__assign(__assign({},J_),{states:{error:"",loading:true,hideInputs:false,loginPath:"/login",confirmPassword:false,hidePasswords:true,registrationFormState:{initialData:{email:"testuser@example.com"}}}});var $_=function(){return n("sqm-portal-google-registration-form",null)};var Q_=function(){return n(an,__assign({},K_))};var Z_=function(){return n(an,__assign({},X_))};var ex=function(){return n(an,__assign(__assign({},J_),{content:__assign(__assign({},J_.content),{terms:n("p",null,"By signing up you agree to the"," ",n("a",{href:"https://example.com",target:"_blank"},"Terms and Conditions"))})}))};var nx=Object.freeze({__proto__:null,default:Y_,Default:$_,RegisterWithError:Q_,RegisterLoading:Z_,TermsAndConditions:ex});var tx={title:"Components/Microsite Google Login"};var ax={states:{error:"",loading:false,forgotPasswordPath:"/forgotPassword",registerPath:"/register",showLoginForm:"manual"},callbacks:{googleSubmit:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){console.log("google submit");return[2]}))}))},submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))}},content:{googleButton:null}};var rx=function(){return n("sqm-portal-google-login",null)};var ix=function(){return n("sqm-portal-google-login",{demoData:{states:__assign(__assign({},ax.states),{error:"This is an error message"})}})};var sx=function(){return n("sqm-portal-google-login",{demoData:{states:__assign(__assign({},ax.states),{loading:true})}})};var ox=Object.freeze({__proto__:null,default:tx,Default:rx,WithError:ix,Loading:sx});var lx={title:"Components/Microsite Login"};var dx={states:{error:"",loading:false,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{googleSubmit:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}},content:{pageLabel:"Sign in to your account"}};var ux={states:{error:"Something went wrong. Please try again.",loading:false,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{googleSubmit:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}},content:{pageLabel:"Sign in to your account"}};var cx={states:{error:"",loading:true,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{googleSubmit:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}},content:{pageLabel:"Sign in to your account"}};var mx=__assign(__assign({},dx),{content:{secondaryButton:n("span",null,"Don't have an account?"," ",n("sl-button",{style:{width:"50px"},size:"large",type:"text"},"Register")),googleButton:n("sl-button",null,"Sign in with Google")}});var px=function(){return n("sqm-portal-login",{demoData:__assign({},dx)})};var gx=function(){return n(ze,__assign({},dx))};var fx=function(){return n("sqm-portal-login",{demoData:__assign({},mx)})};var hx=function(){return n("sqm-portal-login",{demoData:__assign({},ux)})};var vx=function(){return n("sqm-portal-login",{demoData:__assign({},cx)})};var bx=Object.freeze({__proto__:null,default:lx,Default:px,Text:gx,IsGoogle:fx,LoginWithError:hx,LoginLoading:vx});var yx={title:"Components/Microsite Profile"};var wx={states:{success:false,loading:false,submitDisabled:false,showCountry:true,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}};var _x={states:{success:false,loading:false,submitDisabled:false,showCountry:false,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}};var xx={states:{success:false,loading:true,submitDisabled:false,showCountry:true,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}};var Tx={states:{success:false,loading:false,submitDisabled:true,showCountry:true,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}};var Sx={states:{success:false,loading:false,submitDisabled:false,showCountry:true,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:"Something went wrong. Please try again."}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}};var Ex={states:{success:true,loading:false,submitDisabled:false,showCountry:true,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"5000"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(e){return console.log(e)},onChange:function(e){return console.log(e)}}};var Cx=function(){return n(ce,__assign({},wx))};var Rx=function(){return n(ce,__assign({},_x))};var Ix=function(){return n(ce,__assign({},xx))};var Dx=function(){return n(ce,__assign({},Tx))};var Ax=function(){return n(ce,__assign({},Sx))};var kx=function(){return n(ce,__assign({},Ex))};var qx=Object.freeze({__proto__:null,default:yx,Default:Cx,DefaultNoCountry:Rx,Loading:Ix,Disabled:Dx,Error:Ax,Success:kx});var Px={title:"Components/Microsite Register"};var Nx={states:{registrationFormState:{},error:"",loading:false,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}};var Fx={states:{error:"Something went wrong. Please try again.",registrationFormState:{},loading:false,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}};var Lx={states:{registrationFormState:{},error:"",loading:true,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}};var Ox={states:{registrationFormState:{},error:"",loading:false,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address",formData:n("div",null,n("sl-input",{style:{marginBottom:"var(--sl-spacing-x-large)"},exportparts:"label: input-label, base: input-base",label:"Slotted Input",required:true}),n("sl-input",{exportparts:"label: input-label, base: input-base",label:"Slotted Input 2",required:true}))}};var Ux=function(){return n(je,__assign({},Nx))};var Bx=function(){return n(je,__assign({},Fx))};var Mx=function(){return n(je,__assign({},Lx))};var Gx=function(){return n("sqm-portal-register",{demoData:{states:{registrationFormState:{},error:"",loading:true,confirmPassword:true,hideInputs:true,loginPath:"/login"}}})};var Vx=function(){return n(je,__assign({},Ox))};var Wx=function(){return n(je,__assign(__assign({},Nx),{content:__assign(__assign({},Nx.content),{terms:n("p",null,"By signing up you agree to the"," ",n("a",{href:"https://example.com",target:"_blank"},"Terms and Conditions"))})}))};var jx=Object.freeze({__proto__:null,default:Px,Default:Ux,RegisterWithError:Bx,RegisterLoading:Mx,FieldsHidden:Gx,SlottedInputs:Vx,TermsAndConditions:Wx});var Hx={title:"Components/Microsite Portal Register"};var zx={states:{error:"",loading:false,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}};var Yx={states:{error:"Something went wrong. Please try again.",loading:false,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}};var Jx={states:{error:"",loading:true,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}};var Kx={states:{error:"",loading:false,confirmPassword:true,hideInputs:false,loginPath:"/login"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",formData:n("div",null,n("sl-input",{style:{marginBottom:"var(--sl-spacing-x-large)"},exportparts:"label: input-label, base: input-base",label:"Slotted Input",required:true}),n("sl-input",{exportparts:"label: input-label, base: input-base",label:"Slotted Input 2",required:true}))}};var Xx=function(){return n(an,__assign({},zx))};var $x=function(){return n(an,__assign({},Yx))};var Qx=function(){return n(an,__assign({},Jx))};var Zx=function(){return n("sqm-portal-register",{demoData:{states:{error:"",loading:true,registrationFormState:{},confirmPassword:true,hideInputs:true,loginPath:"/login"}}})};var eT=function(){return n(an,__assign({},Kx))};var nT=function(){return n(an,__assign(__assign({},zx),{content:__assign(__assign({},zx.content),{emailOptIn:n("sqm-checkbox-field",{checkboxLabel:"I would like to receive marketing and promotional emails for this referral program"})})}))};var tT=function(){return n(an,__assign(__assign({},zx),{content:__assign(__assign({},zx.content),{terms:n("p",null,"By signing up you agree to the"," ",n("a",{href:"https://example.com",target:"_blank"},"Terms and Conditions"))})}))};var aT=Object.freeze({__proto__:null,default:Hx,Default:Xx,RegisterWithError:$x,RegisterLoading:Qx,FieldsHidden:Zx,SlottedInputs:eT,RegisterWithMarketingEmailsCheckbox:nT,TermsAndConditions:tT});var rT='@author:derek\n@owner:ian\nFeature: Reset Password\n\n Background: A user in on the password reset page\n Given a user who has been redirected to the password reset page\n\n @motivating\n Scenario: Users can reset their password\n Given a user has a valid oob code as a url query parameter\n When they enter their password twice\n And they click "Update"\n Then their password is updated\n And a banner with a success message is displayed\n And they can log in with their new password\n\n @motivating\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\n Given a user has a <oobCode> as a url query parameter\n And the component <mayHave> "failed-page" with <value>\n Then they see an error message saying that their password reset code is invalid/expired\n When they click "Continue"\n Then they are redirected to <redirectPath>\n Examples:\n | oobCode | mayHave | value | redirectPath |\n | invalid oob code | doesn\'t have | N/A | / |\n | non existant oob code | doesn\'t have | N/A | / |\n | invalid oob code | has | /login | /login |\n | non existant oob code | has | /login | /login |\n\n @motivating\n Scenario: Users must enter the same password twice to successfully reset their password\n Given a user has been redirected to the password reset page\n And they have a valid oob code as a url query parameter\n When they enter two different passwords into the password reset form\n And they click "Update"\n Then their password is not be reset\n And an error banner stating the input passwords must match appears\n And their password is not be reset\n When they enter the same password twice\n And they click "Update"\n Then a banner appears with a success message\n And they can log in with their new password\n\n @motivating\n Scenario: Users are notified if resetting their password fails\n Given a user has a valid oob code as a url query parameter\n When they enter their password twice\n And they click "Update"\n But the password reset fails\n Then the user\'s password does not reset\n And an error banner is shown\n\n @motivating\n Scenario: Users are redirected to "/" by default\n Given the component does not have prop "nextPage"\n And the users url does not contain a "nextPage" query parameter\n And a user has entered their password twice\n When they click "Update"\n Then their password is updated\n And they are redirected to "/"\n\n @motivating\n Scenario: Custom redirection can be configured\n Given the component has prop "nextPage" with value "/activity"\n And the users url does not contain a "nextPage" query parameter\n And a user has entered their password twice\n When they click "Update"\n Then their password is updated\n And they are redirected to "/activity"\n\n @motivating\n Scenario Outline: Users are redirected to the value of the nextPage url parameter as if it were a relative path\n Given the component is loaded at <currentUrl>\n When they click "Update"\n Then their password is updated\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://www.example.com?nextPage=./activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=/activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=www.google.com | https://www.example.com/www.google.com |\n | https://www.example.com?nextPage=//foo.com | https://www.example.com/ |\n | https://www.example.com?nextPage=https://malicious.example.com | https://www.example.com/ |\n | http://www.example.com/nest/page?oob=123&other&nextPage=activity#heading-1 | http://www.example.com/activity |\n | https://www.example.com?nextPage=activity?foo=bar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar#hash | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar%23hash | https://www.example.com/activity?foo=bar#hash |\n | https://www.example.com:1337?nextPage=activity | https://www.example.com:1337/activity |\n | http://1.1.1.1:1111?nextPage=activity | http://1.1.1.1:1111/activity |\n\n @landmine\n Scenario Outline: Username and password are not persisted on redirects\n Given the component is loaded at <currentUrl>\n When they click "Update"\n Then their password is updated\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://user:pass@www.example.com:444?nextPage=activity | https://www.example.com:444/activity |';var iT={title:"Components/Microsite Reset Password",parameters:{scenario:rT}};var sT={states:{error:"",loading:false,reset:false,confirmPassword:true,oobCodeValidating:false,oobCodeValid:true,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))},gotoNextPage:function(){return console.log("next page")},failed:function(){return console.log("failed")}}};var oT={states:{error:"",loading:false,reset:false,confirmPassword:false,oobCodeValidating:false,oobCodeValid:true,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))},gotoNextPage:function(){return console.log("next page")},failed:function(){return console.log("failed")}}};var lT={states:{error:"Something went wrong. Please try again.",loading:false,reset:false,confirmPassword:true,oobCodeValidating:false,oobCodeValid:true,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))},gotoNextPage:function(){return console.log("next page")},failed:function(){return console.log("failed")}}};var dT={states:{error:"",loading:true,reset:false,confirmPassword:true,oobCodeValidating:false,oobCodeValid:true,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))},gotoNextPage:function(){return console.log("next page")},failed:function(){return console.log("failed")}}};var uT={states:{error:"",loading:false,reset:true,confirmPassword:true,oobCodeValidating:false,oobCodeValid:true,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))},gotoNextPage:function(){return console.log("next page")},failed:function(){return console.log("failed")}}};var cT={states:{error:"",loading:false,reset:false,confirmPassword:true,oobCodeValidating:false,oobCodeValid:false,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))},gotoNextPage:function(){return console.log("next page")},failed:function(){return console.log("failed")}}};var mT=function(){return n(rn,__assign({},sT))};var pT=function(){return n(rn,__assign({},oT))};var gT=function(){return n(rn,__assign({},lT))};var fT=function(){return n(rn,__assign({},dT))};var hT=function(){return n(rn,__assign({},uT))};var vT=function(){return n(rn,__assign({},cT))};var bT=Object.freeze({__proto__:null,default:iT,Default:mT,DefaultWithoutConfirmField:pT,ResetPasswordWithError:gT,ResetPasswordLoading:fT,ResetPasswordSuccess:hT,CodeValidating:vT});var yT='@author:derek\n@owner:ian\nFeature: Verify Email\n\n Background: A user is on the email verification page\n Given a user who has been redirected to the email verification page\n\n @motivating\n Scenario: Verifying your email takes you to the portal login page\n Given a user has a valid oob code as a url query parameter\n When they click "Verify Email"\n Then the button enters a loading state\n When their email is validated\n Then a button that says "Continue" appears\n When they click "Continue"\n Then they are redirected to login\n\n @motivating\n Scenario: Users are automatically redirected if they dont click "Continue"\n Given a user has a valid oob code as a url query parameter\n When they click "Verify Email"\n Then the button enters a loading state\n When their email is validated\n Then a button that says "Continue" appears\n When they wait 5 seconds\n Then they are redirected to login\n\n @motivating\n Scenario: Users are notified if verifying their email has failed\n Given a user has a valid oob code as a url query parameter\n When they click "Verify Email"\n Then the button enters a loading state\n When their email fails to be validated\n Then an banner is shown stating that an error occured\n\n @motivating\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\n Given a user has a <oobCode> as a url query parameter\n And the component <mayHave> "failed-page" with <value>\n Then they see an error message saying that their verification code is invalid/expired\n When they click "Continue"\n Then they are redirected to <redirectPath>\n Examples:\n | oobCode | mayHave | value | redirectPath |\n | invalid oob code | doesn\'t have | N/A | / |\n | non existant oob code | doesn\'t have | N/A | / |\n | invalid oob code | has | /login | /login |\n | non existant oob code | has | /login | /login |\n\n @motivating\n Scenario: Users are redirected to "/" by default\n Given the component does not have prop "nextPage"\n And the users url does not contain a "nextPage" query parameter\n And a user has verified their email\n When they click "Continue"\n Then they are redirected to "/"\n\n @motivating\n Scenario: Custom redirection can be configured\n Given the component has prop "nextPage" with value "/activity"\n And the users url does not contain a "nextPage" query parameter\n And a user has verified their email\n When they click "Continue"\n Then they are redirected to "/activity"\n\n @motivating\n Scenario Outline: Users are redirected to the value of the nextPage url parameter if it exists\n Given the component <mayHave> prop "nextPage" with <nextPageValue>\n And the users url contains a "nextPage" query paramater with <nextPageParamValue>\n And the user has verified their email\n When they click "Continue"\n Then they are redirected to <nextPageParamValue>\n Examples:\n | mayHave | nextPageValue | nextPageParamValue |\n | has | /dashboard | /activity |\n | does not have | N/A | /activity |\n\n @motivating\n Scenario Outline: Users are redirected to the value of the nextPage url parameter as if it were a relative path\n Given the component is loaded at <currentUrl>\n And the user has verified their email\n When they click "Continue"\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://www.example.com?nextPage=./activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=/activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=www.google.com | https://www.example.com/www.google.com |\n | https://www.example.com?nextPage=//foo.com | https://www.example.com/ |\n | https://www.example.com?nextPage=https://malicious.example.com | https://www.example.com/ |\n | http://www.example.com/nest/page?oob=123&other&nextPage=activity#heading-1 | http://www.example.com/activity |\n | https://www.example.com?nextPage=activity?foo=bar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar#hash | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar%23hash | https://www.example.com/activity?foo=bar#hash |\n | https://www.example.com:1337?nextPage=activity | https://www.example.com:1337/activity |\n | http://1.1.1.1:1111?nextPage=activity | http://1.1.1.1:1111/activity |\n\n @landmine\n Scenario Outline: Username and password are not persisted on redirects\n Given the component is loaded at <currentUrl>\n And the user has verified their email\n When they click "Continue"\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://user:pass@www.example.com:444?nextPage=activity | https://www.example.com:444/activity |\n\n\n @minutia\n Scenario Outline: Users may be logged in or logged out depending on the verified status and logged in email\n Given an oobCode with email <oobCodeEmail> as a url query parameter\n And the user is logged in as <loggedInEmail>\n And the logged in user <isVerified>\n When the oobCode is submitted\n And the oobCode <isValid>\n Then the <submitState> screen is shown\n And after 3 seconds pass\n Then the user is redirected to <redirect>\n Examples:\n | oobCodeEmail | loggedInEmail | isVerified | isValid | submitState | redirect |\n | user1@example.com | N/A | false | is valid | success | /login |\n | user1@example.com | N/A | false | is not valid | error | /login |\n | user1@example.com | user1@example.com | false | is valid | success | /activity |\n | user1@example.com | user1@example.com | false | is not valid | error | N/A |\n | user1@example.com | user2@example.com | false | is valid | success | /login |\n | user1@example.com | user2@example.com | false | is not valid | error | /login |\n | user1@example.com | user1@example.com | true | is valid | success | /activity |\n | user1@example.com | user1@example.com | true | is not valid | success | /activity |\n | user1@example.com | user2@example.com | true | is not valid | error | /login |\n | N/A | N/A | false | is not valid | error | N/A |\n';var wT={title:"Components/Microsite Verify Email",parameters:{scenario:yT}};var _T={states:{error:"Something went wrong. Please try again.",loading:false,success:false},data:{oobCode:"abc123"},callbacks:{gotoNextPage:function(){return console.log("next page")},failed:function(){return console.log("failed")}},content:{verifyEmailText:"Verify your email",verifySuccessText:"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.",verifyInvalidText:"The email verification code is invalid or has expired, please try again."}};var xT={states:{error:"",loading:false,success:true},data:{oobCode:"abc123"},callbacks:{gotoNextPage:function(){return console.log("next page")},failed:function(){return console.log("failed")}},content:{}};var TT=function(){return n(Ye,__assign({},_T))};var ST=function(){return n(Ye,__assign({},xT))};var ET=Object.freeze({__proto__:null,default:wT,EmailVerificationWithError:TT,EmailVerificationSuccess:ST});var CT='@author:derek\n@owner:derek\nFeature: Program Explainer Step\n\n @motivating\n @ui\n Scenario: The program explainer step displays a icon, header and description\n Given a program explainer step with props\n | prop | value |\n | header | My Header |\n | description | My program explainer description |\n | icon | person-plus-fill |\n When a user views the explainer step\n Then they see an person icon with a + in the top left hand corner\n And the icon is weight 300 brand colour\n And below they see "My Header" in large bold font\n And below they see "My program explainer description" in medium font\n And the step background colour is weight 50 brand colour\n\n @motivating\n @ui\n Scenario: The program explainer can display an image in place of an icon\n Given a program explainer\n And it has an "image-url" prop with a value of a valid url to an image\n When a user views the explainer step\n Then the image is displayed in place of an incon in the top left hand corner\n\n @motivating\n @ui\n Scenario: Colours are customizable\n Given a program explainer step with props\n | prop | value |\n | text-color | purple |\n | background-color | grey |\n When a user views the explainer step\n Then they see the step background is grey\n And the header text is purple\n And the description text is purple\n';var RT={title:"Components/Program Explainer Step",parameters:{scenario:CT}};var IT=function(){return n("sqm-program-explainer-step",{header:"Get up to $1250 for inviting friends to Klip",description:"Send your referral link to a friend or share it through email, Twitter, or Facebook",icon:"person-plus-fill"})};var DT=function(){return n("sqm-program-explainer-step",{header:"Invite your friends to Klip",description:"Send your referral link to a friend or share it through email, Twitter, or Facebook","image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000265/squatch-assets/Uqn3aXw.png","text-color":"#fffc4b","background-color":"#ff7f7f"})};var AT=Object.freeze({__proto__:null,default:RT,ProgramExplainerStep:IT,ProgramExplainerStepCustom:DT});var kT='@author:derek\n@owner:derek\nFeature: Program Explainer\n\n @motivating\n @ui\n Scenario Outline: The program explainer wraps program explainer steps and aligns them\n Given a program explainer component\n And it has <number> program explainer steps as components\n When a user views the program explainer\n Then they see <number> steps aligned horizontally\n And they have equal height/width\n And equal padding in between\n When they are viewed on a screen smaller than 500px\n Then the steps stack vertically with equal padding in between\n And they have equal width\n But height may vary\n Examples:\n | number |\n | 2 |\n | 3 |\n | 4 |\n\n @motivating\n @ui\n Scenario: The program explainer displays a section header\n Given a program explainer step with props\n | prop | value |\n | header | My Header |\n And it has program explainer steps as children\n When a user views the program explainer\n Then they see "My Header" centered above the explainer steps\n\n @motivating\n @ui\n Scenario: Colours are customizable\n Given a program explainer with props\n | prop | value |\n | text-color | purple |\n | background-color | grey |\n When a user views the program explainer\n Then the header is purple\n And the background between steos is grey\n';var qT={title:"Components/Program Explainer",parameters:{scenario:kT}};var PT=function(){return n("sqm-program-explainer",{header:"How it works"},n("sqm-program-explainer-step",{header:"Get up to $1250 for inviting friends to Klip",description:"Share your referral link with a friend and earn up to $1250",icon:"person-plus-fill"}))};var NT=function(){return n("sqm-program-explainer",{header:"How it works"},n("sqm-program-explainer-step",{header:"Get up to $1250 for inviting friends to Klip",description:"Share your referral link with a friend and earn up to $1250",icon:"person-plus-fill"}),n("sqm-program-explainer-step",{header:"Earn points for using Klip",description:"Complete tasks like uploading your first video or sharing videos with friends",icon:"server"}))};var FT=function(){return n("sqm-program-explainer",{header:"How it works"},n("sqm-program-explainer-step",{header:"Get up to $1250 for inviting friends to Klip",description:"Share your referral link with a friend and earn up to $1250",icon:"person-plus-fill"}),n("sqm-program-explainer-step",{header:"Earn points for using Klip",description:"Complete tasks like uploading your first video or sharing videos with friends",icon:"server"}),n("sqm-program-explainer-step",{header:"Redeem rewards with your points",description:"Redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America",icon:"people-fill"}))};var LT=function(){return n("sqm-program-explainer",{header:"How it works","text-color":"#fffc4b","background-color":"#ff7f7f"},n("sqm-program-explainer-step",{header:"Get up to $1250 for inviting friends to Klip",description:"Share your referral link with a friend and earn up to $1250",icon:"person-plus-fill"}),n("sqm-program-explainer-step",{header:"Earn points for using Klip",description:"Complete tasks like uploading your first video or sharing videos with friends",icon:"server"}),n("sqm-program-explainer-step",{header:"Redeem rewards with your points",description:"Redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America",icon:"people-fill"}))};var OT=function(){return n("sqm-program-explainer",{header:"Anything and everything can be passed to this component!","text-color":"#eee","background-color":"#333"},n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333"}},"PLACEHOLDER"),n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333"}},"PLACEHOLDER"),n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333"}},"PLACEHOLDER"))};var UT=Object.freeze({__proto__:null,default:qT,OneStep:PT,TwoSteps:NT,ThreeSteps:FT,Custom:LT,ProgramExplainerGeneric:OT});var BT={title:"Components/Program Menu"};var MT=Nu((function(){return n("sqm-program-menu",null,n("sl-menu-item",{value:"referral-program"},"Referral Program"))}));var GT=Nu((function(){return n("sqm-program-menu",null,n("sl-menu-item",{value:"referral-program"},"Referral Program"),n("sl-menu-item",{value:"partner-program"},"Partner Program"))}));var VT=Nu((function(){return n("sqm-program-menu",null,n("sl-menu-item",{value:"program1"},"Program 1"),n("sl-menu-item",{value:"program2"},"Program 2"),n("sl-menu-item",{value:"program3"},"Program 3"),n("sl-menu-item",{value:"program4"},"Program 4"),n("sl-menu-item",{value:"program5"},"Program 5"))}));var WT=Nu((function(){return n("div",null,n("sqb-program-section",{"program-id":"Vacay-referral"},n("sqm-program-menu",null,n("sl-menu-item",{value:"Vacay-referral"},"Vacay-referral"),n("sl-menu-item",{value:"vacay-affiliates"},"vacay-affiliates")),n("sqb-program-switch",null,n("template",{"program-id":"Vacay-referral"},n("sqb-widget",{"widget-type":"p/Vacay-referral/w/referrerWidget",demoData:{data:{html:Lu}}})),n("template",{"program-id":"vacay-affiliates"},n("sqb-widget",{"widget-type":"p/vacay-affiliates/w/referrerWidget",demoData:{data:{html:Lu}}})))))}));var jT=Object.freeze({__proto__:null,default:BT,OneProgram:MT,TwoProgram:GT,FiveProgram:VT,ProgramMenuWithSwitch:WT});var HT={title:"Components/QR Code"};var zT={hideTitle:false,loading:false,alignment:"center",error:false,qrLink:"https://media.istockphoto.com/id/1251071788/vector/qr-code-bar-code-black-icon-digital-technology.jpg?s=612x612&w=0&k=20&c=maw4OqMSEegAdSo8Drm9HO7i1ddddvP2YaL1UuWbRig=",createDownloadable:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){console.log("Download QR Code clicked");return[2]}))}))},createPrintable:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){console.log("Print QR Code clicked");return[2]}))}))},titleText:"Share your QR code",downloadCodeText:"Download",printCodeText:"Print",errorHeaderText:"There was an error loading your QR code",errorDescriptionText:"Please refresh this page and try again"};var YT=function(){return n(sn,__assign({},zT))};var JT=function(){return n(sn,__assign(__assign({},zT),{hideTitle:true}))};var KT=function(){return n(sn,__assign(__assign({},zT),{alignment:"left"}))};var XT=function(){return n(sn,__assign(__assign({},zT),{alignment:"center"}))};var $T=function(){return n(sn,__assign(__assign({},zT),{alignment:"right"}))};var QT=function(){return n(sn,__assign(__assign({},zT),{loading:true}))};var ZT=function(){return n(sn,__assign(__assign({},zT),{error:true}))};var eS=function(){return n(sn,__assign(__assign({},zT),{error:true}))};var nS=Object.freeze({__proto__:null,default:HT,Default:YT,HideTitle:JT,LeftAlign:KT,CenterAlign:XT,RightAlign:$T,Loading:QT,Error:ZT,DownloadError:eS});var tS={Container:{borderRadius:"var(--sl-border-radius-large)",color:"var(--sl-color-neutral-900)",background:"var(--sl-color-neutral-0)",display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)",padding:"16px",cursor:"pointer"},TitleContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--sl-spacing-small)"}};var aS=se(tS);var rS=aS.toString();var iS="\n :host{\n display: block; \n }\n * {\n p {\n margin: 0;\n }\n }\n sl-checkbox::part(base) {\n\n position: absolute;\n top: 16px;\n right: 16px;\n }\n sl-checkbox::part(control) {\n border-radius: 50%;\n }\n sl-checkbox[checked]::part(control){\n background-color: var(--sqm-input-border-color-focus);\n }\n\n sl-checkbox[checked]::part(checked-icon){\n color: var(--sqm-input-background);\n }\n ";var sS=function(e){var t=e.title,a=e.icon,r=e.description,i=e.selected;var s=i?"var(--sqm-border-thickness) solid var(--sqm-primary-color)":"var(--sqm-border-thickness) solid var(--sqm-border-color)";return n("div",{part:"sqm-base",class:aS.classes.Container,style:{border:s}},n("style",{type:"text/css"},rS,iS),n("sl-checkbox",{checked:i}),n("div",{part:"sqm-title-container",class:aS.classes.TitleContainer},n("sl-icon",{name:a}),n("p",null,t)),n("p",null,r))};var oS={title:"Components/Radio Card"};var lS={selected:false,title:"Card Title",description:"Description text goes here",icon:"apple"};var dS=function(){return n(sS,__assign({},lS))};var uS=function(){return n(sS,__assign(__assign({},lS),{selected:true}))};var cS=Object.freeze({__proto__:null,default:oS,DefaultView:dS,Selected:uS});var mS='@author:kutay\n@owner:kutay\nFeature: Referral Card\n\n\tThe Referral Card component takes in two slots and displays them side by side.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Referral Card component\n\n\t@motivating\n\t@ui\n\tScenario: Referral Card component displays provided content in left and right slots side by side\n\t\tGiven a Referral Card component\n\t\tAnd a slot with the name "left"\n\t\tAnd a slot with the name "right"\n\t\tWhen the user views the referral card\n\t\tThen the slot contents are displayed the card with equal width\n\t\tWhen the component is scaled down to 499px\n\t\tThen the column layout switches to row layout\n\t\tAnd the "left" slot content is displayed above the "right" slot content\n\n\t@minutia\n\t@ui\n\tScenario: Left or right column content spans the whole card if there is no content in the other column\n\t\tGiven a Referral Card component\n\t\tAnd there content in one column\n\t\tAnd there is no content in the other column\n\t\tThen the column with content spans 100% of the card width\n\t\tAnd the column with content respects the container\'s padding\n\t\tAnd the column without content has zero width\n\n\t@motivating\n\t@ui\n\tScenario Outline: Referral Card component content can be vertically aligned start, center, end\n\t\tGiven a Referral Card component\n\t\tAnd a slot with the name "left"\n\t\tAnd a slot with the name "right"\n\t\tAnd the prop "vertical-alignment" has <value>\n\t\tThen slots contents are displayed inside the card\n\t\tAnd slots are vertically aligned to <alignment> of the card\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| start | the top |\n\t\t\t| center | the center |\n\t\t\t| end | the bottom |\n\t\t\t| N/A | the top |\n\n\t@ui\n\tScenario Outline: Container border can be toggled\n\t\tGiven a user is viewing the referral card component\n\t\tThen the default value for the prop "include-border" is "true"\n\t\tWhen "include-border" has <value>\n\t\tThen the referral card component\'s border <maybe> included\n\t\tExamples:\n\t\t\t| value | maybe |\n\t\t\t| true | is |\n\t\t\t| false | isn\'t |\n\t\t\t| empty (no value) | is |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Component background color can be customized\n\t\tGiven a user is viewing the Referral Card component\n\t\tThen the default value is "#ffffff"\n\t\tWhen the prop "background-color" has <value>\n\t\tThen the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| value | backgroundColor |\n\t\t\t| empty (default value) | var(--sl-color-neutral-0) (#ffffff) |\n\t\t\t| aquamarine | #7fffd4 |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Container padding can be customized\n\t\tGiven a user is looking at the component\n\t\tThen the default values for "padding-top", "padding-bottom", "padding-left", "padding-right" is "large"\n\t\tWhen prop "padding-top" has <value>\n\t\tThen <padding> is applied to content\n\t\tAnd the same applies to "padding-bottom", "padding-left", "padding-right"\n\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |';var pS={title:"Components/Referral Card",parameters:{scenario:mS}};var gS=function(e){return n("sqm-portal-container",{gap:"large",slot:e},n("sqm-hero-image",{header:"Get rewarded when your friend uses Klip","image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000227/squatch-assets/IqB7GeS.png"}))};var fS=function(e){return n("sqm-portal-container",{gap:"large",slot:e},n("sqm-text",null,"Choose how you want to share:"),n("sqm-text",null,n("sub",null,"Your unique referral link:"),n("sqm-share-code",null)),n("sqm-portal-container",{gap:"x-small"},n("sqm-share-button",{medium:"email"},"Share via email"),n("sqm-share-button",{medium:"facebook"},"Share on Facebook"),n("sqm-share-button",{medium:"twitter"},"Post about us on X")))};var hS=function(e){return n("sqm-portal-container",{gap:"large",slot:e},n("sqm-text",null,"Choose how you want to share:"),n("sqm-text",null,n("sub",null,"Share with your friends:"),n("sqm-share-code",null),n("sqm-share-link",null)),n("sqm-portal-container",{gap:"x-small"},n("sqm-share-button",{medium:"email"},"Share via email"),n("sqm-share-button",{medium:"facebook"},"Share on Facebook"),n("sqm-share-button",{medium:"twitter"},"Post about us on X"),n("sqm-portal-container",{gap:"x-small"},n("span",{style:{textAlign:"center",color:"var(--sl-color-gray-500)"}},"You have copied this code before"),n("sqm-pagination",null))))};var vS=function(e,t){return n("sqm-timeline",{slot:e,icon:"circle"},t>0&&n("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),t>1&&n("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),t>2&&n("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"}),t>3&&n("sqm-timeline-entry",{reward:"$1000",unit:"visa giftcard",desc:"Your friend purchases Klip Team"}))};var bS=function(){return n("sqm-referral-card",null,gS("left"),fS("right"))};var yS=function(){return n("sqm-referral-card",{limitWidth:true},gS("left"),fS("right"))};var wS=function(){return n("sqm-referral-card",null,vS("left",3),fS("right"))};var _S=function(){return n("sqm-referral-card",null,vS("left",4),hS("right"))};var xS=function(){return n("sqm-referral-card",{"vertical-alignment":"start"},vS("left",4),fS("right"))};var TS=function(){return n("sqm-referral-card",{"vertical-alignment":"center"},vS("left",4),fS("right"))};var SS=function(){return n("sqm-referral-card",{"vertical-alignment":"end"},vS("left",4),fS("right"))};var ES=function(){return n("sqm-referral-card",null,vS("right",3),fS("left"))};var CS=function(){return n("sqm-referral-card",null,vS("right",3))};var RS=function(){return n("sqm-referral-card",null,fS("left"))};var IS=function(){return n("sqm-referral-card",null,n("h3",{slot:"header"},"Header slot content"),vS("right",3),fS("left"))};var DS=function(){return n("sqm-referral-card",null,vS("right",3),fS("left"),n("sqm-portal-footer",{slot:"footer"}))};var AS=function(){return n("sqm-referral-card",{"hide-border":"true"},vS("right",3),fS("left"),n("sqm-portal-footer",{slot:"footer"}))};var kS=function(){return n("sqm-referral-card",{"background-color":"aquamarine"},vS("right",3),fS("left"),n("sqm-portal-footer",{slot:"footer"}))};var qS=function(){return n("sqm-referral-card",{"vertical-alignment":"center"},n("sqm-portal-container",{slot:"left",gap:"x-small"},n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333",textAlign:"center"}},"PLACEHOLDER")),n("sqm-portal-container",{slot:"right",gap:"x-small"},n("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333",textAlign:"center"}},"PLACEHOLDER")))};var PS=Object.freeze({__proto__:null,default:pS,ImageAndShareButtons:bS,LimitWidth:yS,TimelineAndShareButtons:wS,OneTimeUsePromoCodes:_S,StartAlignment:xS,CenterAlignment:TS,EndAlignment:SS,FlippedSlots:ES,NoLeft:CS,NoRight:RS,WithHeader:IS,WithFooter:DS,NoBorder:AS,BackgroundColor:kS,ReferralCardGeneric:qS});var NS='@author:sam\n@owner:sam\nFeature: Referral Code\n\n The referral code component is a box that allows users to see and copy their referral promo code for a given program\n\n Background: Environment\n Given there is a valid program ID in the environment\n And there is a valid user ID and account ID in the environment\n\n @motivating\n Scenario: A Users referral code can be copied to their clipboard\n Given tooltiptext is "hello tooltip"\n When the component renders\n Then there is a textbox with the user\'s referral code\n When the clipboard icon is clicked\n Then the code is copied to clipboard\n And a tooltip will appear for ~1 second\n\n @minutia\n Scenario: Tooltip lifespan can be customized\n Given the tooltip\'s lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip will appear for ~2 seconds\n\n @minutia\n Scenario: Demo\n Given isDemo() returns true\n Then the share code is "SHARECODE001"\n And the component won\'t be interactive\n And the tooltip is hidden\n\n @minutia\n Scenario: Program ID can be sourced from prop\n Given the programId prop is set to "program-a"\n And window.widgetIdent.programId is set to "program-b"\n When the component renders\n Then the share code is for "program-a"\n\n @minutia\n Scenario: Program ID can be sourced from window\n Given the programId prop is unset\n And window.widgetIdent.programId is set to "program-b"\n When the component renders\n Then the share code is for "program-b"\n\n @minutia\n Scenario: An analytic event is fired when a user copies their code\n Given a user viewing the referral code component\n And the component is rendered for "program-a"\n When they click to copy their code\n Then an "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT" analytic event is fired\n And it is for "program-a"\n And it has share medium "DIRECT"\n\n @ui\n Scenario Outline: user can edit the alignment of the share code text\n Given a user is editing the referral code component\n Then they see "Align text" props\n And the default value is "left"\n When they change the option to <option>\n Then they see the text in <position>\n Examples:\n | option | position |\n | left | left |\n | center | center |\n | right | right |\n\n @ui\n Scenario Outline: The position of the copy button can be changed\n Given a user is editing the referral code component\n Then they see "Style" props\n And the default value is "icon"\n When they change the option to <option>\n Then they see the copy button in <position>\n Examples:\n | option | position |\n | button outside | outside the input, on the right |\n | button below | outside the input, below |\n | icon | inside the input as an icon |\n';var FS={title:"Components/Referral Code",parameters:{scenario:NS}};var LS=function(){return n("sqm-referral-code",{tooltiptext:"Copied to Clipboard"})};var OS=function(){return n("sqm-referral-code",{showNotificationText:true,notificationText:"You've copied this code before"})};var US=function(){return n("sqm-referral-code",{textColor:"red",showNotificationText:true,notificationText:"You've copied this code before"})};var BS=function(){return n("sqm-referral-code",{showNotificationText:true,notificationText:"You've copied this code before",buttonStyle:"button-outside"})};var MS=function(){return n("sqm-referral-code",{showNotificationText:true,notificationText:"You've copied this code before",buttonStyle:"button-below"})};var GS=function(){return n("sqm-referral-code",{tooltiptext:"CUSTOM TOOLTIP TEXT"})};var VS=function(){return n("sqm-referral-code",{textAlign:"center"})};var WS=function(){return n("sqm-referral-code",{textAlign:"right"})};var jS=function(){return n("sqm-referral-code",{tooltiplifespan:5e3,tooltiptext:"CUSTOM TOOLTIP TEXT"})};var HS=function(){return n(ie,__assign({copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!",isCopyIcon:false,buttonStyle:"button-outside"}))};var zS=function(){return n(ie,__assign({copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!",buttonStyle:"button-below"}))};var YS=function(){var e={copyString:"https://noah.example.com",disabled:true,open:true,tooltiptext:"Copied!",error:true};return n(ie,__assign({},e))};var JS=Object.freeze({__proto__:null,default:FS,ReferralCode:LS,ShowNotificationText:OS,ShowNotificationTextRed:US,ShowNotificationTextWithButton:BS,ShowNotificationTextWithButtonBelow:MS,CustomTooltipText:GS,TextAlignCenter:VS,TextAlignRight:WS,CustomTooltipDuration:jS,CopyButton:HS,CopyButtonBelow:zS,Error:YS});var KS="@author:sam\n@owner:sam\n\nFeature: Referral Codes Component\n\n A paginated display of available and used promo codes for the user to share with others\n\n @motivating\n Scenario: Promo code can be shared using various share mediums\n Given an authenticated user\n And the program has promo codes configured\n When the promo code section is loaded\n Then the promo code can be copied directly\n And the promo code can be shared using <shareMedium>\n Examples:\n | shareMedium |\n | DIRECT |\n | EMAIL |\n | FBMESSENGER |\n | WHATSAPP |\n\n @minutia\n Scenario: Clicking any of the share mediums sets the code as copied\n Given an authenticated user\n And the program has promo codes configured\n When the promo code section is loaded\n When clicking <shareMedium> button\n Then the code is marked as copied\n And the copied notification text is shown\n Examples:\n | shareMedium |\n | DIRECT |\n | EMAIL |\n | FBMESSENGER |\n | WHATSAPP |\n\n @minutia\n Scenario Outline: User is notified if the currently viewed promo code has been copied already\n Given an authenticated user\n And the program has promo codes configured\n When the promo code section is loaded\n And the code has not been copied already\n Then no notification text is displayed\n When the code is changed to one that has been copied\n Then the <notificationText> is displayed\n Examples:\n | notificationText |\n | You've copied this code before |\n | Previously Copied |\n | foo |\n\n @minutia\n Scenario Outline: Share buttons slots use the link from referral codes instead of the default query\n Given an authenticated user\n And the program has promo codes configured\n And a <shareMedium> button is a child of `<sqm-referral-codes>`\n Then the <shareMedium> button is shown\n And the link uses <promoCode>\n Examples:\n | propName | shareMedium | promoCode |\n | hideSharelink | DIRECT | PROMOCODE1 |\n | hideEmail | EMAIL | PROMOCODE1 |\n | hideFbMessenger | FBMESSENGER | PROMOCODE1 |\n | hideWhatsApp | WHATSAPP | PROMOCODE1 |\n\n @minutia\n Scenario Outline: Number of codes is displayed in the pagination component\n Given an authenticated user\n And the program has promo codes configured\n When the promo code section is loaded\n And the user has <numCodes> available\n And the user is on <currentPage>\n Then the pagination text is <paginationText>\n Examples:\n | numCodes | currentPage | paginationText |\n | 5 | 1 | 1 of 5 |\n | 5 | 2 | 2 of 5 |\n | 5 | 3 | 3 of 5 |\n | 5 | 4 | 4 of 5 |\n | 5 | 5 | 5 of 5 |\n | 1 | 1 | 1 of 1 |\n | 0 | 0 | 0 of 0 |\n\n @minutia\n Scenario: Loading state is shown when changing code page\n Given an authenticated user\n And the program has promo codes configured\n When the promo code section is loaded\n And the user has more than 1 available\n When the next button is clicked\n Then a loading state is shown\n\n\n";var XS={title:"Components/Referral Codes",parameters:{scenario:KS}};var $S={titleText:"Start sharing",emptyStateHeaderText:"Your new codes and links aren’t ready yet",emptyStateDescriptionText:"Please contact our program support team to let them know you’re out of codes.",emptyStateImageUrl:"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png",states:{noCodes:false,loading:false}};var QS=function(e){return n("sqm-pagination",{slot:e})};var ZS=function(e){return n("sqm-portal-container",{gap:"small",slot:e},n("sqm-share-button",{medium:"email"},"Share via email"),n("sqm-share-button",{medium:"facebook"},"Share on Facebook"),n("sqm-share-button",{medium:"whatsapp"},"Share on WhatsApp"))};var eE=function(e){return n("sqm-referral-code",{slot:e})};var nE=function(e){return n("sqm-referral-code",{slot:e,showNotificationText:true,notificationText:"You’ve copied this before."})};var tE=function(){return n("sqm-referral-codes",null,QS("pagination"),eE("shareCodes"),ZS("shareButtons"))};var aE=function(){return n("sqm-referral-codes",null,QS("pagination"),nE("shareCodes"),ZS("shareButtons"))};var rE=function(){return n("sqm-referral-codes",{textColor:"red"},QS("pagination"),nE("shareCodes"),ZS("shareButtons"))};var iE=function(){return n("sqm-referral-codes",{demoData:{states:__assign(__assign({},$S.states),{noCodes:true})}},QS("pagination"),eE("shareCodes"),ZS("shareButtons"))};var sE=function(){return n("sqm-referral-codes",{emptyStateHeaderText:"Tus nuevos códigos y enlaces aún no están listos",emptyStateDescriptionText:"Comuníquese con nuestro equipo de soporte del programa para informarles que no tiene códigos.",emptyStateImageUrl:"https://img.freepik.com/free-vector/hand-drawn-no-data-concept_52683-127829.jpg?t=st=1738890457~exp=1738894057~hmac=2f0f32c1f0fc051f47d772a4517e2e4c4f38af5069fb855edc96d8331d9d1329&w=826",demoData:{states:__assign(__assign({},$S.states),{noCodes:true})}},QS("pagination"),eE("shareCodes"),ZS("shareButtons"))};var oE=function(){return n("sqm-referral-codes",{demoData:{states:__assign(__assign({},$S.states),{loading:true})}},QS("pagination"),eE("shareCodes"),ZS("shareButtons"))};var lE=function(e){return n("sqm-pagination",{slot:e,demoData:{states:{loading:true}}})};var dE=function(){return n("sqm-referral-codes",null,lE("pagination"),eE("shareCodes"),ZS("shareButtons"))};var uE=5;var cE=800;var mE=function(){var e=s(1),t=e[0],a=e[1];var r=s(false),i=r[0],o=r[1];var l=function(e){o(true);setTimeout((function(){a(e);o(false)}),cE)};var d=n("sqm-pagination",{slot:"pagination",demoData:{states:{currentPage:t,totalPages:uE,loading:i},callbacks:{onNext:function(){return l(t+1)},onPrev:function(){return l(t-1)}},text:{paginationText:"".concat(t," of ").concat(uE)}}});return n("sqm-referral-codes",{demoData:{states:{noCodes:false,loading:i}}},d,eE("shareCodes"),ZS("shareButtons"))};var pE=Nu(mE);var gE=Object.freeze({__proto__:null,default:XS,ReferralCodes:tE,WithPreviouslyCopiedCode:aE,WithPreviouslyCopiedCodeAndCustomColor:rE,Empty:iE,EmptyWithCustomTextAndImage:sE,Loading:oE,WithLoadingPagination:dE,FunctionalPagination:pE});var fE='@owner:sam\n@author:sam\n\nFeature: Referral Iframe\n\n\tUsed to provide an external form for submitting referral leads using the current user\'s referral code\n\n\tBackground: A user is logged in\n\t\tGiven there is a logged in user\n\n\t@motivating\n\tScenario: Referral code is passed to the iframe as a query parameter\n\t\tGiven the "iframe-src" is "https://example.com"\n\t\tAnd the user has navigated to "/refer"\n\t\tAnd the user\'s referral code is "BOBBYREFER"\n\t\tWhen the iframe content is loaded\n\t\tThen the iframe url will be "https://example.com?rsCode=BOBBYREFER"\n\n\t@ui\n\tScenario Outline: The height and width of the iFrame can be controlled via props\n\t\tGiven the "iframe-src" is "https://example.com"\n\t\tAnd the iframe content is 1000x1000\n\t\tAnd the "iframe-height" is set to <heightValue>\n\t\tAnd the "iframe-width" is set to <widthValue>\n\t\tThen the content of the iframe will be displayed with scrollbars\n\t\tAnd the dimension of the iFrame displayed will be 500x500\n\t\tWhen the "iframe-height" is set to <heightValue>\n\t\tAnd the "iframe-width" is set to <widthValue>\n\t\tThen the full content of the iframe will be displayed on the page\n\t\tAnd the dimension of the iFrame displayed will be 1000x1000\n\t\tExamples:\n\t\t| heightValue | widthValue |\n\t\t| 500px | 500px |\n\t\t| 50% | 50% |\n\n\t@minutia\n\tScenario Outline: The iFrame will fail fast if a iFrame source isn\'t provided\n\t\tGiven "iframe-src" <mayBeAnAttribute>\n\t\tAnd it <mayHaveValue>\n\t\tWhen a user views the referral iFrame component\n\t\tThen an alert with an error message is displayed in place of the iFrame\n\t\tAnd it has a details section\n\t\tWhen "More details" is clicked\n\t\tThen the following information will be displayed\n\t\t| component being used |\n\t\t| missing attribute(s) |\n\n\tExamples:\n\t\t| mayBeAnAttribute | mayHaveValue |\n\t\t| is not an attribute | N/A |\n\t\t| is an attribute | "" |\n\t\t| is an attribute | |';var hE={title:"Components/Referral Iframe",parameters:{scenario:fE}};var vE={data:{shareCode:"BOBBYREFER"},states:{content:{iframeSrc:"https://example.com",iframeHeight:"100%",iframeWidth:"100%",codeParam:"rsCode"}}};var bE=function(){return n("div",{style:{width:"1000px",height:"1000px"}},n(k,__assign({},vE)))};var yE=function(){return n("div",{style:{width:"1000px",height:"1000px"}},n("sqm-referral-iframe",null))};var wE=Object.freeze({__proto__:null,default:hE,ReferralIframe:bE,ReferralIframeError:yE});var _E='@author:noah\n@owner:noah\nFeature: Referral Table User Column\n\n Shows the same custom content for each referral\n\n Background:\n Given the column in included in the referral table\n\n @motivating\n Scenario: The title of the date column is configurable\n Given the "column-title" prop is set to "My column title"\n Then the date column is shown with "My column title"\n\n @motivating\n Scenario: The same custom content is shown for each referral\n Given there is at least one referral\n Then for each referral custom content is shown\n And the custom content is provided as slot content';var xE='@author:noah\n@owner:noah\nFeature: Referral Table Date Column\n\n Shows the date of each referral\n\n Background:\n Given the date column is included in the referral table\n\n @motivating\n @ui\n Scenario Outline: The title of the date column is configurable\n Given the "column-title" prop is set to <value>\n Then the date column is shown with <columTitle>\n Examples:\n | value | columnTitle |\n | | Date Converted |\n | My column title | My column title |\n\n @motivating\n Scenario Outline: A configurable date associated with the referral is shown for each referral\n Given the "date-shown" prop is set to <dateType>\n And referrals exist\n Then for each referral the <referralDate> is shown in the table\n And the date is localized to the users locale\n Examples:\n | dateType | referralDate |\n | dateReferralStarted | date referral started |\n | dateReferralPaid | date referral paid |\n | dateReferralEnded | date referral ended |\n | dateModerated | date moderated |\n | dateUserModified | date user modified |\n | dateConverted | date converted |\n | dateModified | date modified |\n | | date converted |';var TE='@author:noah @owner:noah\nFeature: Referral Table Reward Column\n Shows the reward associated with each referral\n\n Background:\n Given the status column is included in the referral table\n And at least one referral exists\n\n @motivating\n Scenario Outline: State precedence ladder\n Given a reward, its referral\'s fraud state, and the user\'s tax connection\n Then <rule> is produced\n And the <resultingState>, <resultingBadgeText>, and <resultingDescriptionBody> is determined in the following <order>:\n\n Examples:\n | order | rule | resultingState | resultingBadgeText | resultingDescriptionBody |\n | 1 | referral.fraudData.moderationStatus is "DENIED" | DENIED | Denied | Denied on Jan 1, 2026. Contact support. |\n | 2 | referral.fraudData.moderationStatus is "PENDING" | PENDING_REVIEW | Pending | Pending since Jan 1, 2026 |\n | 3 | reward.rewardedCash is true AND impactConnection is NOT connected | PENDING_PARTNER_CREATION | Pending | Complete your tax and cash payout setup to receive your rewards |\n | 4 | reward.rewardedCash is true AND impactConnection is connected AND publisher.withdrawalSettings is missing | PENDING_PARTNER_CREATION | Pending | Complete your tax and cash payout setup to receive your rewards |\n | 5 | partnerFundsTransfer.status is "REVERSED" | PAYOUT_CANCELLED | Payout Cancelled | If you think this is a mistake, contact our Support team. |\n | 6 | partnerFundsTransfer.status is "OVERDUE" | PAYOUT_FAILED | Payout Failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | 7 | partnerFundsTransfer.dateScheduled is in the future | PROCESSING | Payment Processing | Processing until Jan 1, 2026. Payout is then scheduled based on your settings. |\n | 8 | partnerFundsTransfer.status is "TRANSFERRED" / "NOT_YET_DUE", or dateScheduled has passed without REVERSED/OVERDUE | PAYOUT_APPROVED | Payout Approved | Processing until Jan 1, 2026. Payout is then scheduled based on your settings. |\n | 9 | reward.pendingReasons includes "US_TAX" AND impactConnection.taxHandlingEnabled is false | PENDING | Pending | Available on Jan 1, 2026 (if dateScheduledFor set; else no body line) |\n | 10 | reward.pendingReasons includes "US_TAX" AND impactConnection.connected is false | PENDING_PARTNER_CREATION | Pending | Complete your tax and cash payout setup to receive your rewards |\n | 11 | reward.pendingReasons includes "US_TAX" AND publisher.requiredTaxDocumentType is set AND publisher.currentTaxDocument is missing | PENDING_TAX_SUBMISSION | Pending | Submit your tax documents to receive your rewards |\n | 12 | reward.pendingReasons includes "US_TAX" AND publisher.currentTaxDocument.status is "INACTIVE" / "INVALID_W9_ELECTRONIC_DOCUMENT" / "INVALID_W9_ELECTRONIC_DOCUMENT_CHECK_INTERNAL" | PENDING_NEW_TAX_FORM | Pending | Invalid tax form. Submit a new form to receive your rewards. |\n | 13 | reward.pendingReasons includes "US_TAX" AND publisher.currentTaxDocument.status is "NOT_VERIFIED" | PENDING_TAX_REVIEW | Pending | Awaiting tax form review |\n | 14 | reward.pendingReasons includes "US_TAX" AND publisher.currentTaxDocument.status is "ACTIVE" AND publisher.withdrawalSettings missing | PENDING_PARTNER_CREATION | Pending | Complete your tax and cash payout setup to receive your rewards |\n | 15 | reward.pendingReasons includes "MISSING_PAYOUT_CONFIGURATION" | PENDING_PARTNER_CREATION | Pending | Complete your tax and cash payout setup to receive your rewards |\n | 16 | statuses includes "REDEEMED" | REDEEMED | Redeemed | (no state-specific body line) |\n | 17 | statuses includes "CANCELLED" | CANCELLED | Cancelled | Reward cancelled on Jan 1, 2026 |\n | 18 | statuses includes "EXPIRED" | EXPIRED | Expired | Reward expired on Jan 1, 2026 |\n | 19 | statuses includes "PENDING" | PENDING | Pending (or "Pending for {date}" overlay if dateScheduledFor set) | Available on Jan 1, 2026 (if dateScheduledFor set; else no body line) |\n | 20 | statuses includes "AVAILABLE" | AVAILABLE | Available (plus info pill "{expiringText} {relative}" if dateExpires set) | Reward expiring on Jan 1, 2026 |\n\n @motivating @ui\n Scenario Outline: The referral reward and its status are shown for each referral\n Then for each referral reward there exists a reward cell\n And the reward type and value is displayed in the cell\n And the status of each reward is displayed as a pill in the cell\n And rewards of <status> have a <pillColour> pill with the text <statusText>\n\n Examples:\n | status | pillColour | statusText |\n | Available | success | Available |\n | Pending | warning | Pending |\n | Pending Fraud Review | warning | Pending |\n | Pending Tax Review | warning | Pending |\n | Pending New Tax Form | warning | Pending |\n | Pending Tax Submission | warning | Pending |\n | Pending Partner Creation | warning | Pending |\n | Cancelled | danger | Cancelled |\n | Payout Overdue | danger | Payout Failed |\n | Payout Reversed | danger | Payout Cancelled |\n | Expired | danger | Expired |\n | Denied | danger | Denied |\n | Redeemed | primary | Redeemed |\n | Payout Transferred | primary | Payout Approved |\n | Payout Not Yet Due | primary | Payout Approved |\n | Payout Processing | primary | Payment Processing |\n\n @motivating\n Scenario: The pending period of a referral reward is shown inside the pill if scheduled\n Given a reward that is pending\n And the reward has a scheduled date in the future\n Then the status pill of the reward will contain the text "Pending for <relativeTime>"\n And the date is localized to the user\'s locale\n\n Examples:\n | relativeTime |\n | 2 days |\n | 1 week |\n | 3 months |\n\n @motivating\n Scenario: The expiry date of a reward is shown in a secondary pill\n Given a reward that is available\n And the reward has a set expiry date\n Then an additional info pill will appear next to the status pill with the text "Expiring in <relativeTime>"\n And the date is localized to the user\'s locale\n\n Examples:\n | relativeTime |\n | 2 days |\n | 1 week |\n\n @motivating @ui\n Scenario Outline: Expanding the reward cell shows specific detailed status messages\n When a reward cell is clicked\n Then it expands to show the detail view\n And if the reward status is <status>\n Then the detail text displays <detailMessage>\n\n Examples: Payout States\n | status | detailMessage |\n | Payout Approved | Processing until {date}. Payout is then scheduled based on your settings. |\n | Payout Failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | Payout Cancelled | If you think this is a mistake, contact our Support team. |\n | Processing | Processing until {date}. Payout is then scheduled based on your settings. |\n\n Examples: Tax Compliance States\n | status | detailMessage |\n | Pending Tax Review | Awaiting tax form review |\n | Pending New Tax Form | Invalid tax form. Submit a new form to receive your rewards. |\n | Pending Tax Submission | Submit your tax documents to receive your rewards |\n | Pending Partner Creation | Complete your tax and cash payout setup to receive your rewards |\n\n Examples: Standard States\n | status | detailMessage |\n | Available | Reward expiring on |\n | Cancelled | Reward cancelled on |\n | Pending | Available on |\n | Pending Review | Pending since |\n | Denied | Denied on |\n | Expired | Reward expired on |\n | Redeemed | Redeemed |\n\n @motivating\n Scenario: Fuel Tank codes are displayed in the expanded view\n Given a reward has a Fuel Tank code\n When the reward cell is clicked\n Then the expanded details display the text "Your code is"\n And the code <fuelTankCode> is displayed in bold\n\n @motivating\n Scenario: Fraud denial help text is displayed\n Given a reward has been denied due to fraud\n And the component has "deniedHelpText" configured\n When the reward cell is clicked\n Then the expanded details display the denied help text next to the denial date\n\n @minutia\n Scenario: Payout-related reward statuses are determined by the state of the Paid Funds Transfer\n Given a reward exists\n And the reward has a connected Paid Funds Transfer (PFT)\n When the PFT is in <pftState>\n Then the reward\'s status is <status>\n And the status text displays <text>\n And the status is displayed in a <pillColour> pill\n\n Examples:\n | pftState | status | text | pillColour |\n | transfer date is in the future | PROCESSING | Payment Processing | primary |\n | successfully transferred to payment provider | PAYOUT_TRANSFERRED | Payout Approved | primary |\n | approved but payout scheduled date not yet arrived | PAYOUT_NOT_YET_DUE | Payout Approved | primary |\n | failed due to fulfillment issue and retrying | PAYOUT_OVERDUE | Payout Failed | danger |\n | reversed or cancelled after being processed | PAYOUT_REVERSED | Payout Cancelled | danger |\n';var SE='@author:noah\n@owner:noah\nFeature: Referral Table Status Column\n\n Shows the status of each referral\n\n Background:\n Given the status column is included in the referral table\n\n @motivating\n @ui\n Scenario: The title of the date column is configurable\n Given the "column-title" prop is set to "My column title"\n Then the date column is shown with "My column title"\n\n @motivating\n Scenario: The status column\'s fraudStatus maps to the fraud status of the referral\n Given at least one referral\n Then the referral cell fraud status is set to `moderationStatus` of the referral\n\n @motivating\n Scenario Outline: The status column displays the status of each referral\n Given referrals exist\n Then the status of each referral is displayed\n And the status <status> is displayed as text from <statusTextProp> in a <pillColour> pill\n\n Examples:\n | status | statusTextProp | pillColour |\n | In Progress | inProgressStatusText | Orange |\n | Converted | convertedStatusText | Green |\n | Pending | pendingReviewStatusText | Orange |\n | Denied | deniedStatusText | Red |\n';var EE='@author:noah\n@owner:noah\nFeature: Referral Table User Column\n\n Shows the user of each referral\n\n Background:\n Given the user column is included in the referral table\n\n @motivating\n @ui\n Scenario: The title of the date column is configurable\n Given the "column-title" prop is set to "My column title"\n Then the date column is shown with "My column title"\n\n @motivating\n Scenario: The first and last name of the other user in the referral is displayed for each referral\n Given at least one referral exists\n Then for each referral where the other user\'s name is available their first and last name is displayed\n\n @motivating\n Scenario: Deleted users are displayed with a fallback name\n Given a referral exists where the other user was deleted\n Then in place of the name the text from the prop "deleted-user" is used\n\n @motivating\n Scenario: Anonymous users are displayed with a fallback name\n Given a referral exists where the other user was anonymous\n Then in place of the name the text from the prop "anonymous-user" is used';var CE=_E+xE+TE+SE+EE;var RE={title:"Components/Referral Table Cell",parameters:{scenario:CE}};var IE=function(){return n("sqm-referral-table-cell",{innerTemplate:"Table Cell Text"})};var DE=function(){return n("sqm-referral-table-user-cell",{name:"Table User Cell Text"})};var AE=function(){return n("sqm-sqm-referral-table-cell",null,"-")};var kE=function(){return n("sqm-referral-table-status-cell",{"status-text":"Converted","fraud-status":"APPROVED",converted:true})};var qE=function(){return n("sqm-referral-table-status-cell",{"status-text":"In Progress",converted:false})};var PE=function(){return n("sqm-referral-table-status-cell",{"status-text":"Pending","fraud-status":"PENDING_REVIEW",converted:false})};var NE=function(){return n("sqm-referral-table-status-cell",{"status-text":"Pending",converted:false})};var FE=function(){return n("sqm-referral-table-status-cell",{"status-text":"Denied","fraud-status":"DENIED",converted:false})};var LE=function(){return n("sqm-referral-table-date-cell",{date:9e11})};var OE={id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:16281468e5,dateExpires:16290108e5,dateCancelled:134400,dateRedeemed:0,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]}};var UE=[OE];var BE=function(){return n("sqm-referral-table-rewards-cell",{rewards:UE,statusText:"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",statusLongText:"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }",fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}"})};var ME=Object.freeze({__proto__:null,default:RE,TableCell:IE,TableUserCell:DE,EmptyCell:AE,Converted:kE,InProgress:qE,PendingReview:PE,Pending:NE,Denied:FE,DateCell:LE,RewardsCell:BE});var GE=_E+xE+TE+SE+EE;var VE={title:"Components/Referral Table Rewards Cell",parameters:{scenario:GE}};var WE={id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:TC(),dateExpires:SC(),dateCancelled:134400,dateRedeemed:0,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]}};var jE={id:"1234",type:"CREDIT",value:50,unit:"USD",name:"test",dateScheduledFor:TC(),dateExpires:SC(),dateCancelled:134400,dateRedeemed:0,fuelTankCode:null,fuelTankType:null,currency:"USD",prettyValue:"$50.00",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:null};var HE={id:"1234",type:"CREDIT",value:50,unit:"USD",name:"test",dateScheduledFor:TC(),dateExpires:SC(),datePayoutExpected:TC(),dateCancelled:134400,dateRedeemed:0,fuelTankCode:null,fuelTankType:null,currency:"USD",prettyValue:"$50.00",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:null,rewardedCash:true};var zE={dateExpires:null};var YE={dateScheduledFor:null};var JE={fuelTankCode:null};var KE={type:"PCT_DISCOUNT"};var XE={type:"CREDIT"};var $E={type:"FUELTANK"};var QE={type:"INTEGRATION"};var ZE={statuses:["AVAILABLE","PENDING"]};var eC={statuses:["PAYOUT_SENT"]};var nC={statuses:["PENDING","CANCELLED"],dateCancelled:16268508e5};var tC={statuses:["EXPIRED","AVAILABLE"],dateExpires:16268508e5};var aC={statuses:["DENIED"]};var rC={statuses:["PAYOUT_FAILED"]};var iC={statuses:["PAYOUT_CANCELLED"]};var sC={statuses:["PENDING_REVIEW"]};var oC={statuses:["PENDING_TAX_REVIEW"]};var lC={statuses:["PENDING_NEW_TAX_FORM"]};var dC={statuses:["PENDING_TAX_SUBMISSION"]};var uC={statuses:["PENDING_PARTNER_CREATION"]};var cC={statuses:["AVAILABLE","EXPIRED","REDEEMED"]};var mC={statuses:["AVAILABLE"]};var pC=[];var gC=[__assign(__assign({},WE),mC)];var fC=[__assign(__assign(__assign({},WE),KE),ZE),__assign(__assign({},WE),XE)];var hC=[__assign(__assign(__assign({},WE),$E),zE),__assign(__assign(__assign({},WE),$E),tC),__assign(__assign(__assign({},WE),ZE),JE)];var vC=[__assign(__assign({},WE),$E),__assign(__assign({},WE),QE),__assign(__assign({},WE),ZE),__assign(__assign(__assign(__assign({},WE),nC),zE),JE),__assign(__assign(__assign({},WE),tC),JE)];var bC=[__assign(__assign(__assign({},WE),cC),JE),__assign(__assign(__assign({},WE),mC),zE),__assign(__assign({},WE),ZE),__assign(__assign({},WE),nC),__assign(__assign({},WE),tC),__assign(__assign(__assign(__assign({},WE),ZE),zE),YE),__assign(__assign({},WE),nC),__assign(__assign({},WE),tC)];var yC=[__assign(__assign({},WE),QE),__assign(__assign({},WE),cC),__assign(__assign({},WE),mC),__assign(__assign(__assign({},WE),nC),zE),__assign(__assign({},WE),tC),__assign(__assign({},WE),ZE),__assign(__assign({},WE),KE),__assign(__assign({},WE),$E),__assign(__assign(__assign({},WE),nC),zE),__assign(__assign({},WE),XE)];function wC(){return on.DateTime.now().toMillis()+1e4}function _C(){return on.DateTime.now().toMillis()+4e5}function xC(){return on.DateTime.now().toMillis()+9e6}function TC(){return on.DateTime.now().toMillis()+6e8}function SC(){return on.DateTime.now().toMillis()+1e10}function EC(){return on.DateTime.now().toMillis()+2e11}var CC="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} 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} }";var RC="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment 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.} 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} }";var IC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),YE)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var DC=function(){return n("sqm-referral-table-rewards-cell",{hideDetails:true,rewards:[__assign(__assign(__assign({},WE),ZE),YE)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var AC=function(){return n("div",{style:{width:"250px"}},n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),{dateScheduledFor:TC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},WE),ZE)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"Pending for 300,000,000 months and some change",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),{dateScheduledFor:EC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}))};var kC=function(){return[n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),{dateScheduledFor:wC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),{dateScheduledFor:_C()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),{dateScheduledFor:xC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),{dateScheduledFor:TC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),{dateScheduledFor:SC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),ZE),{dateScheduledFor:EC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})]};var qC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),mC),zE)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var PC=function(){return[n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),mC),{dateExpires:wC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),mC),{dateExpires:_C()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),mC),{dateExpires:xC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),mC),{dateExpires:TC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),mC),{dateExpires:SC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},WE),mC),{dateExpires:EC()})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})]};var NC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},WE),cC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var FC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},HE),eC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var LC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},WE),nC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var OC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},WE),tC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var UC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},WE),aC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var BC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},HE),rC),{datePayoutRetried:TC(),dateGiven:null})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var MC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},HE),rC),{datePayoutRetried:TC(),dateGiven:null})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var GC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign(__assign({},HE),iC),{datePayoutRetried:TC(),dateGiven:null})],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var VC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},WE),sC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var WC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},jE),oC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var jC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},jE),lC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var HC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},jE),dC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var zC=function(){return n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},jE),uC)],statusText:CC,statusLongText:RC,fuelTankText:"Your code is",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var YC=function(){return n("sqm-referral-table-rewards-cell",{rewards:pC,statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var JC=function(){return n("sqm-referral-table-rewards-cell",{rewards:gC,statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var KC=function(){return n("sqm-referral-table-rewards-cell",{rewards:fC,statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var XC=function(){return n("sqm-referral-table-rewards-cell",{rewards:hC,statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var $C=function(){return n("sqm-referral-table-rewards-cell",{rewards:vC,statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var QC=function(){return n("sqm-referral-table-rewards-cell",{rewards:bC,statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var ZC=function(){return n("sqm-referral-table-rewards-cell",{rewards:yC,statusText:CC,statusLongText:RC,fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."})};var eR=Object.freeze({__proto__:null,default:VE,PendingNoUnpend:IC,PendingNoUnpendNoDetails:DC,NarrowColumnWithWideText:AC,PendingWithUnpend:kC,AvailableNoExpiry:qC,AvailableWithExpiry:PC,Redeemed:NC,PayoutSent:FC,Cancelled:LC,Expired:OC,Denied:UC,PayoutFailed:BC,PayoutDenied:MC,PayoutCancelled:GC,PendingReview:VC,PendingTaxReview:WC,PendingNewTaxForm:jC,PendingTaxSubmission:HC,PendingPartnerCreation:zC,EmptyCell:YC,oneRewardCell:JC,twoRewardsCell:KC,threeRewardsCell:XC,fiveRewardsCell:$C,eightRewardsCell:QC,tenRewardsCell:ZC});var nR='@owner:sam\n@author:sam\nFeature: Referral Table\n\n The Referral table component shows users a list of their referrals. The referral table it\'s self can be customized\n with a collection of columns.\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no referrals\n Given a user with no referrals\n When they view the referral table\n Then no referrals are displayed\n And they see an image with a user icon\n And "View your referral details" in bold\n And "Track the status of your referrals and rewards earned by referring friends" below the bolded text\n And the pagination buttons are disabled\n\n @motivating\n @ui\n Scenario: The empty state image and text are customizable\n Given the referral table has \'sqm-empty\' as a child with the following props\n | prop | value |\n | empty-state-imgage | https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png |\n | empty-state-header | View your referral history |\n | empty-state-text | See your previous referrals and what you earned! |\n And a user with no referrals\n When they view the referral table\n Then they see no referrals\n And they see the SaaSquatch logo\n And "View your referral history" in bold\n And "See your previous referrals and what you earned!" below the bolded text\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no referrals\n And a custom empty state has been supplied in the "empty" slot\n When they view the referral table\n Then they see the custom empty state\n\n @motivating\n @ui\n Scenario: The loading state is shown while referrals are loading\n Given the table is loading\n Then the loading state is shown in the table\n And a custom loading state can be supplied in the "loading" slot\n And the pagination buttons are disabled\n\n @motivating\n @ui\n Scenario Outline: The table becomes paginated when the number of referrals exceeds the per page limit\n Given the user has <number of referrals>\n And the table is configured to show <page limit> referrals per page\n Then the table will have <number of pages> page(s)\n And pagination buttons will allow users to navigate between pages\n And the pagination button to go to the next page is disabled on the last page of referrals\n And the pagination button to go to the previous page is disabled on the first page of referrals\n Examples:\n | number of referrals | page limit | number of pages |\n | 0 | 4 | 1 |\n | 1 | 4 | 1 |\n | 3 | 4 | 1 |\n | 5 | 4 | 2 |\n | 42 | 4 | 11 |\n\n @motivating\n @ui\n Scenario: The table converts to a card view on tablet and mobile window sizes\n Given a user with referrals\n When they view the table\n And their window size is smaller than "799px"\n Then referrals are displayed as cards\n And they are in two columns\n When their window size is smaller than "599px"\n Then the referrals are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario: Table and Mobile beakpoints can be configured\n Given the referral table has been configured with the following props\n | prop | value |\n | smBreakpoint | 599 |\n | mdBreakpoint | 799 |\n And a user with referrals\n When they view the table\n And their window size is smaller than "799px"\n Then referrals are displayed as cards\n And they are in two columns\n When their window size is smaller than "599px"\n Then the referrals are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario Outline: By default the first column heading is hidden in mobile, but others can be hidden\n Given a referral table with 4 columns\n And prop "hidden-columns" with <hideColumnValue>\n And a user with referrals\n When they view the referral table\n And their window size is below the tablet breakpoint\n Then referral cards are displayed\n And the titles of <columnsArehidden> within the card\n Examples:\n | hideColumnValue | columnsArehidden |\n | | the first column |\n | 0,1,2 | the first, second and third columns |\n | 3 | the fourth column |\n\n @motivating\n Scenario: The use who referred the current user can be shown in the table\n Given the table is configured with <showReferrer> set to true\n And the current user was referrered by <referrer>\n Then the first table row on the first page of the table is for <referrer>\n\n @motivating\n Scenario: Only referrals which occured in the program specific by program-id are shown\n Given the table is configured with "program-id"\n Then only referrals from the program with "program-id" are shown\n\n @motivating\n Scenario: Classic program shows only classic referrals\n Given the "program-id" of the table is set to "classic"\n Then only classic referrals are shown in the table\n\n @minutia\n @ui\n Scenario: Column heading can be hidden\n Given the table is configured with "hide-labels" set to "true"\n Then the table is displayed without column headings';var tR={title:"Components/Referral Table",parameters:{scenario:nR}};var aR=n("div",{slot:"loading",style:{display:"contents"}},n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))));var rR=n("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Track the status of your referrals and rewards earned by referring friends"});var iR={id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:16281468e5,dateExpires:16290108e5,dateCancelled:134400,dateRedeemed:0,fuelTankCode:"ABC",fuelTankType:"Code",currency:"null",prettyValue:"19 Points",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"19 Points",type:"CREDIT",fuelTankCode:"ABC",globalRewardKey:"Key"}]}}]},rewardedCash:false};var sR={statuses:["AVAILABLE","PENDING"]};var oR={statuses:["PENDING","CANCELLED"],dateCancelled:16268508e5};var lR={statuses:["EXPIRED","AVAILABLE"],dateExpires:16268508e5};var dR={statuses:["AVAILABLE"]};var uR={dateExpires:null};var cR={states:{hasPrev:false,hasNext:true,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:["Customer","Status","Date converted","Rewards"],rows:[[n("sqm-referral-table-user-cell",{name:"Joe Smith"}),n(NE,null),n(LE,null),n(IC,null)],[n("sqm-referral-table-user-cell",{name:"Bob Williams"}),n(qE,null),n(LE,null),n(qC,null)],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n(kE,null),n(LE,null),n(NC,null)],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n(kE,null),n(LE,null),n(FC,null)],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n(kE,null),n(LE,null),n(BC,null)],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n(kE,null),n(LE,null),n(GC,null)],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n(kE,null),n(LE,null),n(jC,null)],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n(kE,null),n(LE,null),n(zC,null)],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n(kE,null),n(LE,null),n(WC,null)],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n(kE,null),n(LE,null),n(HC,null)],[n("sqm-referral-table-user-cell",{name:"Tom Smith"}),n(PE,null),n(LE,null),n(VC,null)],[n("sqm-referral-table-user-cell",{name:"Tom Smith"}),n(FE,null),n(LE,null),n(UC,null)]]}};var mR={states:{hasPrev:false,hasNext:true,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:["Customer","Status","Date converted","Rewards"],rows:[[n("sqm-referral-table-user-cell",{name:"Bob Williams"}),n("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),n("sqm-referral-table-user-cell",{name:"09/05/1999"}),n(qC,null)]]}};var pR={data:{textOverrides:{showLabels:false,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599}};var gR={states:{hasPrev:true,hasNext:true,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"CUSTOM PREVIOUS TEXT",moreLabel:"CUSTOM NEXT TEXT"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599}};var fR={states:{hasPrev:false,hasNext:true,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:["Name","Email","DOB","City","State/Province","Country","Referrals","Reward Earnings","Status"],rows:[[n("sqm-referral-table-user-cell",{name:"Bartholomew Christopher-Johnston Wallace"}),n("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),n("sqm-referral-table-date-cell",{date:-220896e5}),n("sqm-referral-table-user-cell",{name:"Vancouver"}),n("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),n("sqm-referral-table-user-cell",{name:"Canada"}),n("sqm-referral-table-user-cell",{name:"14,000,000"}),n("sqm-referral-table-user-cell",{name:"$800,000,000,000"}),n("sqm-referral-table-status-cell",{statusText:"Complete",converted:true})],[n("sqm-referral-table-user-cell",{name:"Bob Williams"}),n("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),n("sqm-referral-table-date-cell",{date:8e11}),n("sqm-referral-table-user-cell",{name:"Los Angeles"}),n("sqm-referral-table-cell",{innerTemplate:"California"}),n("sqm-referral-table-user-cell",{name:"US"}),n("sqm-referral-table-user-cell",{name:"1"}),n("sqm-referral-table-user-cell",{name:"$5"}),n("sqm-referral-table-status-cell",{statusText:"In progress",converted:false}),,],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),n("sqm-referral-table-date-cell",{date:444703707e3}),n("sqm-referral-table-user-cell",{name:"Toronto"}),n("sqm-referral-table-cell",{innerTemplate:"Ontario"}),n("sqm-referral-table-user-cell",{name:"Canada"}),n("sqm-referral-table-user-cell",{name:"10"}),n("sqm-referral-table-user-cell",{name:"$71"}),n("sqm-referral-table-status-cell",{statusText:"Complete",converted:true}),,]]}};var hR={states:{hasPrev:false,hasNext:true,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:["Lorem ipsum dolor sit amet consectetur adipisicing elit.","Email","DOB","City","State/Province","Country","Referrals","Rewarddddddddddd Earningsssssssssssss","Status"],rows:[[n("sqm-referral-table-user-cell",{name:"Joe Smith"}),n("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),n("sqm-referral-table-date-cell",{date:-2128547493e3}),n("sqm-referral-table-user-cell",{name:"Vancouver"}),n("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),n("sqm-referral-table-user-cell",{name:"Canada"}),n("sqm-referral-table-user-cell",{name:"14"}),n("sqm-referral-table-user-cell",{name:"$88"}),n("sqm-referral-table-status-cell",{statusText:"Complete",converted:true})],[n("sqm-referral-table-user-cell",{name:"Bob Williams"}),n("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),n("sqm-referral-table-date-cell",{date:8e11}),n("sqm-referral-table-user-cell",{name:"Los Angeles"}),n("sqm-referral-table-cell",{innerTemplate:"California"}),n("sqm-referral-table-user-cell",{name:"US"}),n("sqm-referral-table-user-cell",{name:"1"}),n("sqm-referral-table-user-cell",{name:"$5"}),n("sqm-referral-table-status-cell",{statusText:"In progress",converted:false}),,],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),n("sqm-referral-table-date-cell",{date:444703707e3}),n("sqm-referral-table-user-cell",{name:"Toronto"}),n("sqm-referral-table-cell",{innerTemplate:"Ontario"}),n("sqm-referral-table-user-cell",{name:"Canada"}),n("sqm-referral-table-user-cell",{name:"10"}),n("sqm-referral-table-user-cell",{name:"$71"}),n("sqm-referral-table-status-cell",{statusText:"Complete",converted:true}),,]]}};var vR=function(e){if(e===void 0){e=false}return{states:{hasPrev:false,hasNext:true,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:e?"0,1,2,3,4,5,6,7,8":"-1",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:["Name","Email","DOB","City","State/Province","Country","Referrals","Reward Earnings","Status"],rows:[[n("sqm-referral-table-user-cell",{name:"Joe Smith"}),n("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),n("sqm-referral-table-date-cell",{date:-2128547493e3}),n("sqm-referral-table-user-cell",{name:"Vancouver"}),n("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),n("sqm-referral-table-user-cell",{name:"Canada"}),n("sqm-referral-table-user-cell",{name:"14"}),n("sqm-referral-table-user-cell",{name:"$88"}),n("sqm-referral-table-status-cell",{statusText:"Complete",converted:true})],[n("sqm-referral-table-user-cell",{name:"Bob Williams"}),n("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),n("sqm-referral-table-date-cell",{date:8e11}),n("sqm-referral-table-user-cell",{name:"Los Angeles"}),n("sqm-referral-table-cell",{innerTemplate:"California"}),n("sqm-referral-table-user-cell",{name:"US"}),n("sqm-referral-table-user-cell",{name:"1"}),n("sqm-referral-table-user-cell",{name:"$5"}),n("sqm-referral-table-status-cell",{statusText:"In progress",converted:false}),,],[n("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),n("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),n("sqm-referral-table-date-cell",{date:444703707e3}),n("sqm-referral-table-user-cell",{name:"Toronto"}),n("sqm-referral-table-cell",{innerTemplate:"Ontario"}),n("sqm-referral-table-user-cell",{name:"Canada"}),n("sqm-referral-table-user-cell",{name:"10"}),n("sqm-referral-table-user-cell",{name:"$71"}),n("sqm-referral-table-status-cell",{statusText:"Complete",converted:true}),,]]}}};var bR=function(){return n(Ke,__assign({},cR))};var yR=function(){return n(Ke,__assign({},mR))};var wR=function(){return n(Ke,__assign({},__assign(__assign({},cR),pR)))};var _R=function(){return n(Ke,__assign({},__assign(__assign({},cR),gR)))};var xR=function(){return n(Ke,__assign({},vR()))};var TR=function(){return n(Ke,__assign({},fR))};var SR=function(){return n(Ke,__assign({},hR))};var ER=function(){return n("sqm-referral-table",{demoData:{states:{hasPrev:false,hasNext:false,show:"empty",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:rR,loadingElement:aR,columns:["Name","Email","DOB"],rows:[]}}})};var CR=function(){return n("sqm-referral-table",{demoData:{states:{hasPrev:false,hasNext:false,show:"loading",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:rR,loadingElement:aR,columns:["Name","Email","DOB"],rows:[]}}})};var RR=function(){return n("sqm-referral-table",{demoData:{states:{hasPrev:false,hasNext:false,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"1",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:rR,loadingElement:aR,columns:["User","Rewards","Status","Date Started","Date Converted"],rows:[[n("sqm-referral-table-user-cell",{name:"Joe Smith"}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},iR),dR),__assign(__assign({},iR),sR),__assign(__assign({},iR),oR)],statusText:"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",statusLongText:"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }",fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}"}),n("sqm-referral-table-status-cell",{statusText:"Complete",converted:true}),n("sqm-referral-table-date-cell",{date:16267644e5}),n("sqm-referral-table-date-cell",{date:1627427794891})],[n("sqm-referral-table-user-cell",{name:"Sarah Williams"}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},iR),lR)],statusText:"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",statusLongText:"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }",fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}"}),n("sqm-referral-table-status-cell",{statusText:"Incomplete",converted:false}),n("sqm-referral-table-date-cell",{date:16267644e5}),n("sqm-referral-table-date-cell",{date:null})],[n("sqm-referral-table-user-cell",{name:"Marvin Smith"}),n("sqm-referral-table-rewards-cell",{rewards:[__assign(__assign({},iR),uR),__assign(__assign({},iR),sR)],statusText:"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",statusLongText:"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} REDEEMED {Redeemed} other {Not available} }",fuelTankText:"Your code is",rewardReceivedText:"Reward received on",expiringText:"Expiring in",pendingForText:"{status} for {date}"}),n("sqm-referral-table-status-cell",{statusText:"Complete",converted:true}),n("sqm-referral-table-date-cell",{date:16267644e5}),n("sqm-referral-table-date-cell",{date:1627427794891})]]}}})};var IR=function(){return n(Ke,__assign({},vR(true)))};var DR=Object.freeze({__proto__:null,default:tR,SimpleUserTable:bR,SingleEntry:yR,HiddenLabelsTable:wR,CustomButtonTextTable:_R,FullUserTable:xR,LongCellTextTable:TR,LongColumnTextTable:SR,EmptyTable:ER,LoadingTable:CR,FullRewardsTable:RR,ColumnsMobileHidden:IR});var AR={title:"Components/Tax And Cash Referral Table Rewards Cell"};var kR=16409952e5;var qR=27792576e5;var PR={id:"1234",type:"CREDIT",value:50,unit:"USD",name:"test",dateScheduledFor:null,dateExpires:null,dateCancelled:null,dateRedeemed:null,fuelTankCode:null,fuelTankType:null,currency:"USD",prettyValue:"$50.00",statuses:[],globalRewardKey:"Key",rewardRedemptionTransactions:null,partnerFundsTransfer:null,rewardedCash:true};var NR={connected:true,taxHandlingEnabled:true,publisher:{requiredTaxDocumentType:"W9",currentTaxDocument:{status:"ACTIVE",type:"W9",dateCreated:kR},withdrawalSettings:{paymentMethod:"BANK_TRANSFER"},payoutsAccount:null}};var FR={connected:true,taxHandlingEnabled:true,publisher:{requiredTaxDocumentType:"W9",currentTaxDocument:{status:"ACTIVE",type:"W9",dateCreated:kR},withdrawalSettings:null,payoutsAccount:null}};var LR={connected:false,taxHandlingEnabled:true,publisher:null};var OR={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} }",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 cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",rewardReceivedText:"Reward received on",hideDetails:false};var UR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{referral:{fraudData:{moderationStatus:"DENIED"}}})],taxConnection:NR},OR))};var BR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{referral:{fraudData:{moderationStatus:"PENDING"}}})],taxConnection:NR},OR))};var MR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:["AVAILABLE"]})],taxConnection:LR},OR))};var GR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{partnerFundsTransfer:{id:"pft-not-yet-due",status:"NOT_YET_DUE",dateCreated:kR,dateScheduled:qR,dateTransferred:null}})],taxConnection:FR},OR))};var VR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{partnerFundsTransfer:{id:"pft-reversed",status:"REVERSED",dateCreated:kR,dateScheduled:kR,dateTransferred:null}})],taxConnection:NR},OR))};var WR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{partnerFundsTransfer:{id:"pft-overdue",status:"OVERDUE",dateCreated:kR,dateScheduled:kR,dateTransferred:null}})],taxConnection:NR},OR))};var jR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{partnerFundsTransfer:{id:"pft-processing",status:null,dateCreated:kR,dateScheduled:qR,dateTransferred:null}})],taxConnection:NR},OR))};var HR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{partnerFundsTransfer:{id:"pft-transferred",status:"TRANSFERRED",dateCreated:kR,dateScheduled:kR,dateTransferred:kR}})],taxConnection:NR},OR))};var zR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:["PENDING"],pendingReasons:["US_TAX"]})],taxConnection:__assign(__assign({},NR),{taxHandlingEnabled:false})},OR))};var YR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:["PENDING"],pendingReasons:["US_TAX"]})],taxConnection:LR},OR))};var JR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:["PENDING"],pendingReasons:["US_TAX"]})],taxConnection:__assign(__assign({},NR),{publisher:__assign(__assign({},NR.publisher),{currentTaxDocument:null})})},OR))};var KR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:["PENDING"],pendingReasons:["US_TAX"]})],taxConnection:__assign(__assign({},NR),{publisher:__assign(__assign({},NR.publisher),{currentTaxDocument:{status:"INACTIVE",type:"W9",dateCreated:kR}})})},OR))};var XR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:["PENDING"],pendingReasons:["US_TAX"]})],taxConnection:__assign(__assign({},NR),{publisher:__assign(__assign({},NR.publisher),{currentTaxDocument:{status:"NOT_VERIFIED",type:"W9",dateCreated:kR}})})},OR))};var $R=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:["PENDING"],pendingReasons:["US_TAX"]})],taxConnection:FR},OR))};var QR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:["PENDING"],pendingReasons:["MISSING_PAYOUT_CONFIGURATION"]})],taxConnection:FR},OR))};var ZR=function(){return n("sqm-referral-table-rewards-cell",__assign({rewards:[__assign(__assign({},PR),{statuses:[]})],taxConnection:NR},OR))};var eI=HR;var nI=HR;var tI=jR;var aI=WR;var rI=VR;var iI=XR;var sI=KR;var oI=JR;var lI=MR;var dI=GR;var uI=zR;var cI=Object.freeze({__proto__:null,default:AR,RewardsCellFraudDenied:UR,RewardsCellFraudPendingReview:BR,RewardsCellPartnerNotCreatedSetupNotStarted:MR,RewardsCellPartnerCreatedSetupStartedButIncomplete:GR,RewardsCellPayoutCancelled:VR,RewardsCellPayoutFailed:WR,RewardsCellPayoutProcessing:jR,RewardsCellPayoutApproved:HR,RewardsCellPendingW9Required:zR,RewardsCellUsTaxPartnerNotConnected:YR,RewardsCellPendingTaxSubmission:JR,RewardsCellPendingNewTaxForm:KR,RewardsCellPendingTaxReview:XR,RewardsCellExistingTaxFormNoWithdrawalSettings:$R,RewardsCellMissingPayoutConfiguration:QR,RewardsCellNoMatchingRule:ZR,CashReward:eI,PayoutApproved:nI,PayoutProcessing:tI,PayoutFailed:aI,PayoutCancelled:rI,PendingTaxReview:iI,PendingNewTaxForm:sI,PendingTaxSubmission:oI,PartnerNotCreatedSetupNotStarted:lI,PartnerCreatedSetupStartedButIncomplete:dI,PendingW9:uI});var mI={title:"Components/Tax And Cash Referral Table"};var pI={states:{hasPrev:false,hasNext:true,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:true,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:["Customer","Status","Date converted","Rewards"],rows:[[n("sqm-referral-table-user-cell",{name:"Payout Approved User"}),n(kE,null),n(LE,null),n(nI,null)],[n("sqm-referral-table-user-cell",{name:"Payout Failed User"}),n(kE,null),n(LE,null),n(aI,null)],[n("sqm-referral-table-user-cell",{name:"Payout Cancelled User"}),n(kE,null),n(LE,null),n(rI,null)],[n("sqm-referral-table-user-cell",{name:"Tax Review User"}),n(kE,null),n(LE,null),n(iI,null)],[n("sqm-referral-table-user-cell",{name:"Payout Processing User"}),n(kE,null),n(LE,null),n(tI,null)],[n("sqm-referral-table-user-cell",{name:"New Tax Form User"}),n(kE,null),n(LE,null),n(sI,null)],[n("sqm-referral-table-user-cell",{name:"Tax Submission User"}),n(kE,null),n(LE,null),n(oI,null)],[n("sqm-referral-table-user-cell",{name:"Partner Creation User"}),n(kE,null),n(LE,null),n(lI,null)],[n("sqm-referral-table-user-cell",{name:"Missing W9 User"}),n(kE,null),n(LE,null),n(uI,null)],[n("sqm-referral-table-user-cell",{name:"Standard Cash User"}),n(kE,null),n(LE,null),n(eI,null)]]}};var gI=function(){return n(Ke,__assign({},pI))};var fI=Object.freeze({__proto__:null,default:mI,TaxAndCashReferralTable:gI});var hI={title:"Hooks / useReferralTable"};function vI(){var e="testestest";var n=e;Bp({user:{id:e,accountId:n}});return{id:e,accountId:n}}function bI(e){var n=e.id,t=e.locale;var a=n;Bp({user:{id:n,accountId:a},widgetIdent:{locale:t}});return{id:n,accountId:a}}var yI=Nu((function(){vI();Ne("sam-partner-test-2");return n("sqm-referral-table",null,n("sqm-referral-table-user-column",null),n("sqm-referral-table-status-column",null),n("sqm-referral-table-date-column",null),n("sqm-referral-table-rewards-column",null))}));var wI=Nu((function(){return n("sqm-referral-table",null,n("sqm-referral-table-user-column",null),n("sqm-referral-table-status-column",null),n("sqm-referral-table-date-column",null),n("sqm-referral-table-rewards-column",null))}));var _I=Nu((function(){return n("sqm-referral-table",{"show-referrer":"true"},n("sqm-referral-table-user-column",null),n("sqm-referral-table-status-column",null),n("sqm-referral-table-date-column",null),n("sqm-referral-table-rewards-column",null))}));var xI=Nu((function(){bI({id:"samenglish",locale:"en"});Ne("klip-referral-program");return n("sqm-referral-table",{"per-page":"4"},n("sqm-referral-table-user-column",{"column-title":"User"}),n("sqm-referral-table-status-column",{"column-title":"Referral Status"}),n("sqm-referral-table-rewards-column",null),n("sqm-referral-table-date-column",{"column-title":"Date Referred","date-shown":"dateReferralStarted"}))}));var TI=Nu((function(){bI({id:"samturkey",locale:"tr"});Ne("klip-referral-program");return n("sqm-referral-table",{"more-label":"Daha","prev-label":"Öncesi","empty-state-text":"Henüz Ödül Yok","per-page":"4"},n("sqm-referral-table-user-column",{"column-title":"Kullanıcılar","anonymous-user":"Anonim Kullanıcı","deleted-user":"Silinmiş Kullanıcı"}),n("sqm-referral-table-status-column",{"column-title":"Durumu","converted-status-text":"Dönüştür","in-progress-status-text":"Devam etmekte"}),n("sqm-referral-table-rewards-column",{"column-title":"Ödüller","status-text":"{status, select, AVAILABLE {Mevcut} CANCELLED {İptal edildi} PENDING {Bekliyor} EXPIRED {Süresi doldu} REDEEMED {Kullanıldı} other {Müsait değil} }","status-long-text":"{status, select, AVAILABLE {Ödül süresi doluyor} CANCELLED {Ödül iptal edildi} PENDING {üzerinde mevcut} EXPIRED {Ödülün süresi doldu} other {Müsait değil} }","reward-received-text":"Ödül şu tarihte alındı:"}),n("sqm-referral-table-date-column",{"column-title":"Tarih","date-shown":"dateReferralStarted"}))}));var SI=Nu((function(){bI({id:"samfrench",locale:"fr"});Ne("klip-referral-program");return n("sqm-referral-table",{"more-label":"Plus","prev-label":"Précédent","empty-state-text":"Aucune Référence Maintenant","per-page":"4"},n("sqm-referral-table-user-column",{"column-title":"Utilisateur","anonymous-user":"Utilisateur Anonyme","deleted-user":"Utilisateur Supprimé"}),n("sqm-referral-table-status-column",{"column-title":"Statut de Parrainage","converted-status-text":"Converti","in-progress-status-text":"En cours"}),n("sqm-referral-table-rewards-column",{"column-title":"Récompenses","status-text":"{status, select, AVAILABLE {Disponible} CANCELLED {Annulé} PENDING {En attente} EXPIRED {Expiré} REDEEMED {Racheté} other {Indisponible} }","status-long-text":"{status, select, AVAILABLE {Récompense expirant sur} CANCELLED {Récompense annulée sur} PENDING {Disponible sur} EXPIRED {Récompense expirée sur} other {Indisponible} }","reward-received-text":"Récompense reçue"}),n("sqm-referral-table-date-column",{"column-title":"Date de Référence","date-shown":"dateReferralStarted"}))}));var EI=Object.freeze({__proto__:null,default:hI,ReferralTable:yI,ReferralTableDemoHook:wI,ReferralTableDemoHookShowReferrer:_I,ReferralTableEn:xI,ReferralTableTr:TI,ReferralTableFr:SI});var CI='@author:derek\n@owner:derek\nFeature: Reward Exchange List\n\n The Reward Exchange List gives end users the power to exchange their rewards for other rewards.\n It populates a list from the reward exchange rules set up on a given tenant.\n\n Background:\n Given a tenant with reward exchange rules\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no visible exchanges\n Given a user with no visible exchanges\n When they view the reward exchange\n Then no exchange options are displayed\n And they see an image of a present\n And "Redeem Rewards" in bold\n And "Use your points to redeem rewards once they become available" below the bolded text\n And the pagination buttons are disabled\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no visible exchanges\n And a custom empty state has been supplied in the "empty" slot\n When they view the reward exchange\n Then they see the custom empty state\n\n @motivating\n @ui\n Scenario: A Loading Skeleton is displayed when the reward exchange rules are loading\n Given a user\n When they load the reward exchange list\n Then they see a loading Skeleton\n And it has 8 skeleton cards\n When the reward exchange rules have loaded\n Then the skeleton is replaced with reward exchange options\n\n @motivating\n Scenario: An error banner appears when the reward exchange list fails to load\n Given a user trying to view the reward exchange list\n But it fails to load\n Then an error banner is displayed\n And it displays "Unable to load reward exchange list. Please try again"\n\n @motivating\n @ui\n Scenario: The exchange progress bar progresses through the exchange process\n Given a user who is eligible for the tenants reward exchange rules\n When they view the reward exchange list\n Then the process bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with green outline, white fill and number 1 in green |\n | Step 2 `Select` title in grey |\n | Step 2 circle with grey fill and number 2 in white |\n | Step 3 `Confirm` title in grey |\n | Step 3 circle with grey fill and number 3 in white |\n | lines between all steps are greyed out |\n When they continue to the selection page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with green outline, white fill and number 2 in green |\n | Step 3 `Confirm` title in grey |\n | Step 3 circle with grey fill and number 3 in white |\n | Green line between step 1 and 2 |\n | Grey line between step 2 and 3 |\n When they continue to the confirmation page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with white checkmark and green fill |\n | Step 3 `Confirm` title in black |\n | Step 3 circle with green outline, white fill and number 3 in green |\n | Green line between all steps |\n When they continue to the redemption page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with white checkmark and green fill |\n | Step 3 `Confirm` title in black |\n | Step 3 circle with white checkmark and green fill |\n | Green line between all steps |\n\n @motivating\n Scenario: Users must choose a reward exchange option to continue to the selection page\n Given a user who is eligible for the tenants reward exchange rules\n When they view the reward exchange list\n Then the \'Continue\' button is disabled\n When they select a reward exchange card\n Then the card is outlined in brand colour with a brand colour cirlcular check box icon in the top right\n And the continue button is no longer disabled\n When they click "Continue"\n Then they are brought to the selection page\n\n @motivating\n @ui\n Scenario: Reward exchange rule names and images are used in the reward exchange cards\n Given a tenant reward exchange rule\n And it has name "My Visa Exchange Rule"\n And it has an image\n When a user views the reward exchange list\n Then they see a exchange card with title "My Visa Exchange Rule"\n And the exchange image on the left hand side of the card\n\n @motivating\n Scenario Outline: Reward exchange source values are displayed on reward exchange cards\n Given a <type> reward exchange rule\n When a user views the reward exchange list\n Then they see <text> under the name on the exchange option cards\n And the pretty values are localized to a user locale\n Examples:\n | type | text |\n | FIXED_GLOBAL_REWARD | the exchange source pretty value |\n | STEPPED_FIXED_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\n | VARIABLE_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\n | VARIABLE_CREDIT_REWARD | the exchange source min pretty value to the source max pretty value |\n\n @motivating\n Scenario Outline: Reward exchange cards can display customized error messages\n Given a reward exchange rule\n And it has <availabilityPredicate>\n And the reward exchange list has prop "not-available-error" with <value>\n When the user views the reward exchange list\n Then the card for the reward exchange rule is disabled\n And <message> is displayed\n Examples:\n | availabilityPredicate | value | message |\n | \'champion\' in user.segments ? "NOT_CHAMPION" : true | {unavailableReasonCode, select, NOT_CHAMPION {Sorry must be a champion!} other {unavailableReasonCode} } | Sorry must be a champion! |\n | user.customFields.purchaseCount < 10 ? "MORE_PURCHASE" : true | {unavailableReasonCode, select, MORE_PURCHASE {Complete 10 purchases to unlock} other {unavailableReasonCode} } | Complete 10 purchases to unlock |\n\n @motivating\n Scenario: Exchange options are disabled if they put a user over the W9 limit\n Given a user who is approaching their W9 limit\n And a reward exchange rule\n And its destination reward has a US taxable value that would put the user over their limit\n When they view the reward exchange list\n Then the reward exchange card is disabled\n And a "US Tax Limit" error message is displayed on to the right of a exclamation triangle icon\n And the text is orange\n And the icon is orange\n\n @motivating\n Scenario Outline: Exchange options are disabled if a users lacks enough credit to redeem\n Given a <type> reward exchange rule\n But the user lacks enough credit to exchange for it\n When they view the reward exchange list\n Then the reward exchange card is disabled\n And a <text> error message is displayed on to the right of a exclamation triangle icon\n And the text is orange\n And the icon is orange\n Examples:\n | type | text |\n | FIXED_GLOBAL_REWARD | {prettySourceValue} required |\n | STEPPED_FIXED_GLOBAL_REWARD | {prettySourceMinValue} required |\n | VARIABLE_GLOBAL_REWARD | {prettySourceMinValue} required |\n | VARIABLE_CREDIT_REWARD | {prettySourceMinValue} required |\n\n @motivating\n Scenario: Users can go back to the Rewards page from the Select page\n Given a user viewing the Select page\n Then they see a "Cancel" text button\n And a "Continue to confirmation" brand colour button in the bottom right corner\n When they click "Cancel"\n Then they return to the Rewards page\n\n @motivating\n Scenario: Users can go back to the Select Page from the Confirm page\n Given a user viewing the Confirm page\n Then they see a "Back" text button\n And a "Redeem" brand colour button in the bottom right corner\n When they click "Back"\n Then they return to the Select Page\n\n @motivating\n Scenario: Reward rules with visibility predicates that evaluates to false are not shown\n Given a tenant reward exchange rule with visibility predicates that evaluates to false\n When a user views the reward exchange list\n Then they do not see the card for that reward exchange rule\n\n @motivating\n Scenario Outline: Users can choose their reward option for variable rewards on the Select page\n Given a <type> exchange rule\n And it has the following fields\n | fields |\n | name |\n | description |\n | image |\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see the exchange rule image on the left hand side\n And on the right hand side they see the following in this order from top to bottom\n | elements |\n | exchange name |\n | exchange description |\n | select list with all exchange options using pretty values, destination reward above source reward |\n Examples:\n | type |\n | STEPPED_FIXED_GLOBAL_REWARD |\n | VARIABLE_GLOBAL_REWARD |\n | VARIABLE_CREDIT_REWARD |\n\n @motivating\n Scenario: Users who selected a fixed exchange rule see exchange information on the Select page\n Given a "FIXED_GLOBAL_REWARD" exchange rule\n And it has the following fields\n | fields |\n | name |\n | description |\n | image |\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see the exchange rule image on the left hand side\n And on the right hand side they see the following in this order from top to bottom\n | elements |\n | exchange name |\n | exchange source pretty value displayed in brand colour |\n | exchange description |\n\n @motivating\n Scenario Outline: Users selection variable rewards can only select rewards they are eligible to exchange for\n Given a <type> exchange rule\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see a drop down with all the reward exchange selections\n When they click on the drop down\n But they are not eligible for all of the exchanges options <dueToReason>\n Then the ineligble options are disabled\n And under the source value is <text>\n Examples:\n | type | dueToReason | text |\n | STEPPED_FIXED_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\n | VARIABLE_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\n | VARIABLE_CREDIT_REWARD | due to insufficent source value | {prettySourceValue} required |\n | STEPPED_FIXED_GLOBAL_REWARD | W9 | US Tax Limit |\n | VARIABLE_GLOBAL_REWARD | W9 | US Tax Limit |\n | VARIABLE_CREDIT_REWARD | W9 | US Tax Limit |\n\n @motivating\n Scenario Outline: The Confirm page allows users to view their exchange before committing\n Given a <type> exchange rule\n When a user views the reward exchange list\n And they select the exchange\n And they progress to Confirm page\n Then they see a row with title "Reward"\n And it contains the exchange name\n And it contains the exchange image\n And they <maySee> a row with title "Reward Amount"\n And it <mayContain> <amountTitle>\n And they see a row with title "Cost to Redeem"\n And it contains the source reward pretty value in bolded text\n Examples:\n | type | maySee | mayContain | amountTitle |\n | FIXED_GLOBAL_REWARD | don\'t | doesn\'t contain | N/A |\n | VARIABLE_GLOBAL_REWARD | see | contains | the pretty destination value |\n | STEPPED_FIXED_GLOBAL_REWARD | see | contains | the pretty destination value |\n | VARIABLE_CREDIT_REWARD | see | contains | the pretty destination value |\n\n @motivating\n Scenario: An error banner is displayed if an error occurs during redemeption\n Given a user has selected a reward to exchange\n And is on the confirmation page\n When they click "Redeem"\n But an error occurs\n Then an error banner appears\n And it contains details about the error\n And the reward exchange is not completed\n\n @motivating\n Scenario: Confetti is displayed when a reward exchange succeeds\n Given a user has selected a reward to exchange\n And they are on the confirmation page\n When they click "Redeem"\n And the exchange is successful\n Then they see confetti centered on the success page\n And they see text describing what they exchanged for their new reward\n And they see a "Done" brand colour button\n When they click "Done"\n Then they see the Rewards page\n\n @motivating\n Scenario: Fuel tank codes are shown when a reward exchange succeeds\n Given a user has selected to exchange for a fuel tank reward\n When they complete the reward exchange\n And are on the success page\n Then they see a textbox with their fuel tank code\n And a clipboard icon\n When they click the clipboard icon\n Then their fuel tank code is copied to their clipboard\n\n @motivating\n Scenario Outline: Users can exchange for any type of reward\n Given a <type> reward exchange rule for a <reward>\n And a user who has enough source credit to exchange for the reward\n When they go through the exchange flow\n And exchange for their reward\n Then their credit is exchanged for the <reward>\n Examples:\n | type | reward |\n | FIXED_GLOBAL_REWARD | gift card |\n | FIXED_GLOBAL_REWARD | fuel tank code |\n | FIXED_GLOBAL_REWARD | discount |\n | FIXED_GLOBAL_REWARD | credit reward |\n | STEPPED_FIXED_GLOBAL_REWARD | gift card |\n | STEPPED_FIXED_GLOBAL_REWARD | discount |\n | STEPPED_FIXED_GLOBAL_REWARD | credit reward |\n | VARIABLE_GLOBAL_REWARD | gift card |\n | VARIABLE_GLOBAL_REWARD | discount |\n | VARIABLE_GLOBAL_REWARD | credit reward |\n | VARIABLE_CREDIT_REWARD | credit reward |';var RI={title:"Components/Reward Exchange List",parameters:{scenario:CI}};var II=function(e){return n(q,__assign({},e))};var DI=function(){return II(X)};var AI=function(){return II(P)};var kI=function(){return II(N)};var qI=function(){return II(F)};var PI=function(){return II(L)};var NI=function(){return II(O)};var FI=function(){return II(U)};var LI=function(){return II(B)};var OI=function(){return II(M)};var UI=function(){return II(G)};var BI=function(){return II(V)};var MI=function(){return II(W)};var GI=function(){return II(j)};var VI=function(){return II(H)};var WI=function(){return II(z)};var jI=function(){return II(Y)};var HI=function(){return II(J)};var zI=function(){return II(K)};var YI=Object.freeze({__proto__:null,default:RI,ChooseReward:DI,CustomErrorMessage:AI,LongTextRewardExhange:kI,ChooseRewardSelected:qI,ChooseAmount:PI,ChooseAmountNoDescription:NI,ChooseAmountVariableAndStepped:FI,ChooseAmountVariableAndSteppedNoDescription:LI,chooseAmountVariableAndSteppedDisabled:OI,chooseAmountVariableAndSteppedUnavailable:UI,Confirm:BI,ConfirmVariableAndStepped:MI,RedemptionError:GI,QueryError:VI,SuccessPromo:WI,SuccessVariableAndStepped:jI,Loading:HI,Empty:zI});var JI=Be.gql(__makeTemplateObject(["\n mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {\n exchangeReward(exchangeRewardInput: $exchangeRewardInput) {\n reward {\n id\n }\n }\n }\n"],["\n mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {\n exchangeReward(exchangeRewardInput: $exchangeRewardInput) {\n reward {\n id\n }\n }\n }\n"]));var KI={title:"Hooks / useRewardExchange"};function XI(){var e="testestest";var n=e;var t="sam-partner-test-2";Bp({programId:t,user:{id:e,accountId:n}});return{id:e,accountId:n}}function $I(){var e=XI(),n=e.id,t=e.accountId;var a=s(10),r=a[0],i=a[1];var o=s(100),l=o[0],d=o[1];var u=We(JI),c=u[0],m=u[1],p=m.data,g=m.errors;return{states:{points:r,rate:l},data:{id:n,accountId:t,data:p,errors:g},callbacks:{exchange:c,setPoints:i,setRate:d}}}var QI=function(e){var t=e.states,a=e.data,r=e.callbacks;return n("div",null,n("div",null,n("label",null,"Rate:"),n("input",{value:t.rate,onInput:function(e){return r.setRate(e.target.value)}})),n("input",{value:t.points,onInput:function(e){return r.setPoints(e.target.value)}}),n("button",{onClick:function(){return r.exchange(e.input)}},"Exchange"),n("details",null,n("summary",null,"response"),n("h4",null,"data"),n("div",{style:{maxWidth:"500px"}},n("pre",{style:{width:"500px",whiteSpace:"pre-wrap"}},JSON.stringify(a.data))),n("h4",null,"errors"),n("div",{style:{maxWidth:"500px"}},n("pre",{style:{maxWidth:"500px",whiteSpace:"pre-wrap"}},JSON.stringify(a.errors)))))};var ZI=Nu((function(){XI();return n("sqm-reward-exchange-list",{"list-type":"something"})}));var eD=Nu((function(){var e=$I(),t=e.states,a=e.data,r=e.callbacks;return n(QI,{states:t,data:a,callbacks:r,input:{exchangeRewardInput:{userId:a.id,accountId:a.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},globalRewardKey:"gc1"}}})}));var nD=Nu((function(){var e=$I(),t=e.states,a=e.data,r=e.callbacks;return n(QI,{states:t,data:a,callbacks:r,input:{exchangeRewardInput:{userId:a.id,accountId:a.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},globalRewardKey:"gc1",rewardInput:{valueInCents:Math.ceil(t.points*t.rate)}}}})}));var tD=Nu((function(){var e=$I(),t=e.states,a=e.data,r=e.callbacks;return n(QI,{states:t,data:a,callbacks:r,input:{exchangeRewardInput:{userId:a.id,accountId:a.accountId,redeemCreditInput:{amount:t.points,unit:"POINT"},rewardInput:{type:"CREDIT",unit:"foo",assignedCredit:Math.ceil(t.points*t.rate)}}}})}));var aD=Object.freeze({__proto__:null,default:KI,RewardList:ZI,FixedGlobalReward:eD,VariableGlobalReward:nD,VariableCreditReward:tD});var rD='@author:derek\n@owner:derek\nFeature: Reward Table Date Column\n\n Shows the date of each reward\n\n Background:\n Given the date column is included in the reward table\n\n @motivating\n @ui\n Scenario Outline: The title of the date column is configurable\n Given the "column-title" prop is set to <value>\n Then the date column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Date received | |\n | My column title | My column title |\n\n @motivating\n Scenario Outline: A configurable date associated with the reward is shown for each reward\n Given the "date-shown" prop is set to <dateType>\n And a user with rewards\n When they view the date column\n Then for each reward the <rewardDate> is shown in the table\n And the date is localized to the users locale\n Examples:\n | dateType | rewardDate |\n | dateGiven | date given |\n | dateExpires | date expires |\n | dateCancelled | date cancelled |\n | dateRedeemed | date redeemed |\n | dateScheduledFor | date scheduled for |\n | | date given |';var iD='@author:derek\n@owner:derek\nFeature: Reward Table reward Column\n\n Shows the exact reward\n\n Background:\n Given the reward column is included in the reward table\n And rewards with translations exist\n\n @motivating\n @ui\n Scenario Outline: The title of the reward column is configurable\n Given the "column-title" prop is set to <value>\n Then the reward column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Reward | |\n | My column title | My column title |\n\n @motivating\n Scenario: The reward column displays the prettyValue of the reward given\n Given a user with a reward\n When they view the rewards table\n Then they see the name of their reward in the reward column\n And the name is the prettyValue translated for the users locale\n\n @motivating\n @ui\n Scenario: The reward column displays an availability bar if the reward is redeemable\n Given a user with a <status> credit reward of <value>\n But the user has <redeemedAmount>\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <availabilityText>\n Examples:\n | status | value | percentage | availableAmount | availabilityText |\n | AVAILABLE | 10 Points | 100% | 10 Points | 10 Points remaining |\n | AVAILABLE | 10 Points | 90% | 9 Points | 9 Points remaining |\n | AVAILABLE | 10 Points | 10% | 1 Point | 1 Point remaining |\n | PENDING | 10 Points | 100% | 10 Points | 10 Points remaining |\n | PENDING | 10 Points | 90% | 9 Points | 9 Points remaining |\n | PENDING | 10 Points | 10% | 1 Point | 1 Point remaining |\n\n @motivating\n @ui\n Scenario Outline: The reward column displays an availability bar if the reward was redeemable but had been cancelled or expired\n Given a user with a credit reward of <value>\n And the reward has <status>\n But the user has <redeemedAmount>\n When they view the rewards table\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <redeemedText>\n Examples:\n | status | value | percentage | redeemedAmount | redeemedText |\n | EXPIRED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | EXPIRED | 10 Points | 80% | 2 Point | 2 Point redeemed |\n | CANCELLED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | CANCELLED | 10 Points | 20% | 8 Point | 8 Point redeemed |\n\n @motivating\n @ui\n Scenario: The reward column doesn\'t display the availability bar if the reward is not redeemable\n Given a user with a non credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario Outline: The reward column doesn\'t display the availability bar if the reward is only 1 reward unit\n Given a user with a credit reward for 1 of a reward unit\n And it has <status>\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n Examples:\n | status |\n | AVAILABLE |\n | PENDING |\n | EXPIRED |\n | CANCELLED |\n\n @motivating\n @ui\n Scenario: The reward column doesn\'t display the availability bar for redeemed credit rewards\n Given a user with a "REDEEMED" credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario: Users can copy their fuel tank codes\n Given a user with a fuel tank reward\n When they view the rewards table\n Then they see their fuel tank reward\n And they see their fuel tank code bolded in blue\n When they click on their code\n Then a tool tip appears saying it has been copied to their clipboard\n And their code is copied to their clipboard';var sD='@author:derek @owner:derek\nFeature: Reward Table Source Column\n Shows the source of each reward\n\n @motivating @ui\n Scenario Outline: The title of the source column is configurable\n Given the "column-title" prop is set to <value>\n Then the source column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Source | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario: The source column displays manual if the reward is caused by a manual action\n Given a user with a "MANUAL" reward\n When they view the rewards table\n Then the source of their reward is displayed as "Manual"\n\n @motivating @ui\n Scenario: The source column displays the program name if the reward is caused automatically by a program\n Given a user with a "AUTOMATED" program reward\n And the program has name "Loyalty Program"\n When they view the rewards table\n Then the source of their reward is displayed as "Loyalty Program"\n\n @motivating @ui\n Scenario Outline: The source column displays customizable reward exchange text with amount if the reward is caused by reward exchange\n Given the "reward-exchange-text" prop is <propValue>\n And a user with a "MANUAL" reward\n But it was created by a reward exchange\n Then they view the rewards table\n Then the source displays <exchangeText>\n And under it displays the following\n | prettyRedeemedCredit → prettyValue |\n\n Examples:\n | propValue | exchangeText |\n | | Reward Exchange |\n | Exchanged | Exchanged |\n\n @motivating @ui\n Scenario Outline: The source column displays customizable referral information if the reward is from a referral\n Given the "reward-source-text" prop is <propValue>\n And a user with a referral reward\n And that reward has <rewardSource>\n When they view the rewards table\n Then then source displays <referralText>\n And under it displays the full name of the <referralUser>\n\n Examples:\n | propValue | rewardSource | referralText | referralUser |\n | | REFERRED | Referred by | referrer user |\n | | FRIEND_SIGNUP | Referral to | referred user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | REFERRED | Referred you | referrer user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | FRIEND_SIGNUP | You Referred | referred user |\n\n @motivating @ui\n Scenario Outline: The source column displays the existing name for a referral if either the first name or last name does not exist\n Given a user with a referral reward\n And referral user exists\n And referral user has <name>\n But referral user has no <otherName>\n When they view the rewards table\n Then referral user\'s name is displayed as <name>\n\n Examples:\n | name | otherName |\n | first.name | last.name |\n | last.name | first.name |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as "Your Friend" if the referral user has no names\n Given a user with a referral reward\n And that reward has <rewardSource>\n And the <referralUser> has no first name\n And the <referralUser> has no last name\n When they view the rewards table\n Then then source displays <sourceText>\n And under it displays "Your Friend"\n\n Examples:\n | rewardSource | referralUser | sourceText |\n | FRIEND_SIGNUP | referrer | Referral to |\n | REFERRED | referred user | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as "Deleted User" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays "Deleted User"\n\n Examples:\n | rewardSource | referral | sourceText |\n | "FRIEND_SIGNUP" | referrer | Referral to |\n | "REFERRED" | referred | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as "Deleted referral" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays "Deleted referral"\n\n Examples:\n | rewardSource | referral | sourceText |\n | "FRIEND_SIGNUP" | referrer | Referral to |\n | "REFERRED" | referred | Referred by |\n\n @minutia @ui\n Scenario Outline: Name fallbacks for referral users without names are customizable\n Given <prop> with <value>\n And a user with a referral reward\n But the referral user <hadAction>\n When they view the rewards table\n Then the source displays <value> as the referral user\n\n Examples:\n | prop | value | hadAction |\n | deleted-user | Former Customer | was deleted |\n | anonymous-user | Nameless User | had first and last name deleted |\n\n @motivating\n Scenario Outline: Source text can be customized\n Given the "reward-source-text" prop is "{rewardSource, select, MANUAL {Support} AUTOMATED {Loyalty Program} other {}}"\n And a user with a <rewardSource> reward\n When they view the rewards table\n Then the source is <sourceText>\n\n Examples:\n | rewardSource | sourceText |\n | MANUAL | Support |\n | AUTOMATED | Loyalty Program |\n';var oD='@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background:\n Given the status column is included in the reward table\n\n @motivating @ui\n Scenario Outline: The title of the status column is configurable\n Given the "column-title" prop is set to <value>\n Then the status column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Status | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario Outline: The status column displays the status of each reward\n Given a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Available | success |\n | CANCELLED | Cancelled | danger |\n | PENDING | Pending | warning |\n | EXPIRED | Expired | danger |\n | REDEEMED | Redeemed | primary |\n | PENDING_REVIEW | Pending | warning |\n | PAYOUT_TRANSFERRED | Payout Approved | primary |\n | PAYOUT_NOT_YET_DUE | Payout Approved | primary |\n | PAYOUT_OVERDUE | Payout Failed | danger |\n | PAYOUT_REVERSED | Payout Cancelled | danger |\n | PROCESSING | Processing | warning |\n | PENDING_TAX_REVIEW | Pending | warning |\n | PENDING_NEW_TAX_FORM | Pending | warning |\n | PENDING_TAX_SUBMISSION | Pending | warning |\n | PENDING_PARTNER_CREATION | Pending | warning |\n | DENIED | Denied | danger |\n\n @motivating\n Scenario Outline: Status precedence ladder\n Given a reward, its referral fraud state, the user\'s Impact tax connection\n Then <rule> is produced\n And the <resultingStatus>, <resultingBadgeText>, and <resultingDescription> is determined in the following <order>:\n\n Examples:\n | order | rule | resultingStatus | resultingBadgeText | resultingDescription |\n | 1 | referral.fraudData.moderationStatus is "DENIED" | DENIED | Denied | Detected self-referral |\n | 2 | referral.fraudData.moderationStatus is "PENDING" | PENDING_REVIEW | Pending | Awaiting review |\n | 3 | reward.rewardedCash is true AND impactConnection is NOT connected | PENDING | Pending | Complete your cash payout setup to receive your rewards. |\n | 4 | reward.rewardedCash is true AND impactConnection is connected AND publisher.withdrawalSettings is missing | PENDING | Pending | Complete your cash payout setup to receive your rewards. |\n | 5 | partnerFundsTransfer.status is "REVERSED" | PAYOUT_CANCELLED | Payout Cancelled | If you think this is a mistake, contact our Support team. |\n | 6 | partnerFundsTransfer.status is "OVERDUE" | PAYOUT_FAILED | Payout Failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | 7 | reward.pendingReasons includes "MISSING_PAYOUT_CONFIGURATION" AND publisher.withdrawalSettings is missing | PENDING | Pending | Complete your cash payout setup to receive your rewards. |\n | 8 | partnerFundsTransfer.dateScheduled is in the future | PROCESSING | Payment Processing | Processing until Jan 1, 2026. Payout is then scheduled based on your settings. |\n | 9 | partnerFundsTransfer.status is "TRANSFERRED" / "NOT_YET_DUE", or dateScheduled has passed without REVERSED/OVERDUE | PAYOUT_APPROVED | Payout Approved | Payout approved and scheduled for payment based on your settings. |\n | 10 | reward.dateCancelled is set | CANCELLED | Cancelled | Jan 1, 2026 |\n | 11 | reward.statuses includes "EXPIRED" | EXPIRED | Expired | Jan 1, 2026 |\n | 12 | reward.statuses includes "PENDING" | PENDING | Pending | Until Jan 1, 2026 |\n | 13 | statuses includes "REDEEMED" | REDEEMED | Redeemed | Jan 1, 2026 |\n | 14 | statuses includes "AVAILABLE" | AVAILABLE | Available | Expires Jan 1, 2026 |\n | 15 | statuses includes "CANCELLED" | CANCELLED | Cancelled | Jan 1, 2026 |\n# This spec should probably be inserted in to the above spec after rule 9 because it gets invoked when the reward state is pending\n# and does not hit the rules that output pending from above\n\n @motivating\n Scenario Outline: PENDING description precedence ladder\n Given a PENDING reward, its pendingReasons, and the user\'s Impact tax connection\n Then <rule> is produced\n And the <resultingStatus>, <resultingBadgeText>, and <resultingDescription> is determined in the following order:\n\n Examples:\n | order | rule | resultingStatus | resultingBadgeText | resultingDescription |\n | 1 | pendingReasons includes "US_TAX" AND impactConnection.taxHandlingEnabled is false | PENDING | Pending | W-9 required |\n | 2 | pendingReasons includes "US_TAX" AND impactConnection is NOT connected | PENDING | Pending | Complete your tax and cash payout setup to receive your rewards. |\n | 3 | pendingReasons includes "US_TAX" AND publisher.requiredTaxDocumentType is set AND publisher.currentTaxDocument is missing | PENDING | Pending | Submit your tax documents to receive your rewards. |\n | 4 | pendingReasons includes "US_TAX" AND publisher.requiredTaxDocumentType is set AND publisher.currentTaxDocument.status is "INACTIVE" | PENDING | Pending | Invalid tax form. Submit a new form to receive your rewards. |\n | 5 | pendingReasons includes "US_TAX" AND publisher.requiredTaxDocumentType is set AND publisher.currentTaxDocument.status is "NOT_VERIFIED" | PENDING | Pending | Awaiting tax form review. |\n | 6 | pendingReasons includes "US_TAX" AND publisher.withdrawalSettings is missing | PENDING | Pending | Complete your tax and cash payout setup to receive your rewards. |\n | 7 | pendingReasons includes "MISSING_PAYOUT_CONFIGURATION" | PENDING | Pending | Complete your tax and cash payout setup to receive your rewards. |\n | 8 | reward.rewardedCash is true AND impactConnection is NOT connected (fallback when no pendingReason returned) | PENDING | Pending | Complete your tax and cash payout setup to receive your rewards. |\n | 9 | reward.rewardedCash is true AND impactConnection is connected AND publisher.withdrawalSettings is missing (fallback) | PENDING | Pending | Complete your tax and cash payout setup to receive your rewards. |\n\n @motivating\n Scenario Outline: Reward status related information is displayed under status pills\n Given a user\n And they have a <reward>\n And their program is\n When they view the reward table\n Then they see their reward\n And under the pill is <text>\n And the date is localized to the users locale\n\n Examples: Standard Rewards\n | reward | text |\n | available reward with an expiry date | Expires <localized date> |\n | redeemed reward | <localized date> |\n | expired reward | <localized date> |\n | cancelled reward | <localized date> |\n | pending reward with a scheduled date | Until <localized date> |\n\n Examples: Tax & Payout Rewards\n | reward | text |\n | pending reward due to W9 | W-9 required |\n | pending reward due to fulfillment error | Fulfillment error |\n | reward pending review of referral | Awaiting review |\n | pending reward due to no connected Impact partner | Complete your tax and cash payout setup to receive your rewards. |\n | pending reward due to an invalid tax document | Invalid tax form. Submit a new form to receive your rewards. |\n | pending reward due to user required to submit a tax document | Submit your tax documents to receive your rewards. |\n | pending reward due to tax document being in review | Awaiting tax form review. |\n | reward whose payout is processing | Processing until <localized date>. Payout is then scheduled based on your settings. |\n | reward whose payout failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | reward whose payout was approved | Payout approved and scheduled for payment based on your settings. |\n | reward whose payout was cancelled | If you think this is a mistake, contact our Support team. |\n | cancelled reward from denied referral | Detected self-referral |\n\n @minutia\n Scenario Outline: Tax-related reward statuses are based on the user\'s Impact tax connection\n Given a user\n And they are in a program that has Impact tax handling enabled\n And they have at least one pending reward\n And the reward\'s pending reasons include "MISSING_PAYOUT_CONFIGURATION"\n Then the status description will be\n """\n Complete your tax and cash payout setup to receive your rewards.\n """\n\n @motivating\n Scenario Outline: Statuses can be customized via ICU format\n Given the "status-text" prop is "{status, select, AVAILABLE {Redeem me!} CANCELLED {Unavailable} PENDING {Coming soon!} EXPIRED {Past due} REDEEMED {Spent} PENDING_REVIEW {Pending Review!} PAYOUT_SENT {Payout Sent!} PAYOUT_FAILED {Payout Failed!} PENDING_TAX_REVIEW {Pending Tax Review!} PENDING_NEW_TAX_FORM {Pending new tax form!} PENDING_TAX_SUBMISSION {Pending tax submission!} PENDING_PARTNER_CREATION {Pending partner creation!} DENIED {Unlucky!}}"\n And a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Redeem me! | success |\n | CANCELLED | Unavailable | danger |\n | PENDING | Coming soon! | warning |\n | EXPIRED | Past due | danger |\n | REDEEMED | Spent | primary |\n | PENDING_REVIEW | Pending Review! | warning |\n | PAYOUT_TRANSFERRED | Payout Approved! | primary |\n | PAYOUT_NOT_YET_DUE | Payout Approved! | primary |\n | PAYOUT_OVERDUE | Payout Failed! | danger |\n | PAYOUT_REVERSED | Payout Cancelled! | danger |\n | DENIED | Unlucky! | danger |\n\n @minutia @ui\n Scenario Outline: Expiry status date text can be configured\n Given the "expiry-text" prop has <value>\n And a user with an available reward with an expiry date\n When they view the reward table\n Then they see <text> under the Available Status pill\n\n Examples:\n | value | text |\n | Expires | Expires <localized date> |\n | Redeem before | Redeem before <localized date> |\n\n @motivating\n Scenario: Payout-related reward statuses are determined by the state of the Paid Funds Transfer\n Given a user has a reward with a connected Paid Funds Transfer (PFT)\n When the PFT is in <pftState>\n Then the reward\'s status is <status>\n And the status is displayed in a <pillColour> pill with <text>\n And under the pill is <description>\n\n Examples:\n | pftState | status | text | pillColour | description |\n | transfer date is in the future | PROCESSING | Processing | warning | Processing until <localized date>. Payout is then scheduled based on your settings. |\n | successfully transferred to payment provider | PAYOUT_TRANSFERRED | Payout Approved | primary | Payout approved and scheduled for payment based on your settings. |\n | approved but payout scheduled date not yet arrived | PAYOUT_NOT_YET_DUE | Payout Approved | primary | Payout approved and scheduled for payment based on your settings. |\n | failed due to fulfillment issue and retrying | PAYOUT_OVERDUE | Payout Failed | danger | Payout failed due to a fulfillment issue and is currently being retried. |\n | reversed or cancelled after being processed | PAYOUT_REVERSED | Payout Cancelled | danger | If you think this is a mistake, contact our Support team. |\n';var lD=rD+iD+oD+sD;var dD={title:"Components/Rewards Table Cell",parameters:{scenario:lD}};var uD={id:"61c100117a82a376d8804166",type:"CREDIT",value:19,unit:"Points",name:null,dateGiven:1640038417468,meta:{message:"***CUSTOMER NOTE MESSAGE***"},dateExpires:null,dateCancelled:null,dateRedeemed:null,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"19 Points",prettyValueNumber:"19",prettyAvailableNumber:"19",prettyRedeemedNumber:"0",statuses:["AVAILABLE","PENDING"],pendingReasons:["US_TAX","MISSING_PAYOUT_CONFIGURATION"],globalRewardKey:null,rewardSource:"MANUAL",prettyRedeemedCredit:"0 Points",prettyAssignedCredit:"19 Points",prettyAvailableValue:"19 Points",exchangedRewardRedemptionTransaction:null,referral:null,rewardRedemptionTransactions:{data:null},partnerFundsTransfer:null};var cD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),wD)})};var mD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign({},uD),availableText:"{availableAmount} remaining"})};var pD={prettyAvailableValue:"10 Points",prettyRedeemedCredit:"9 Points",prettyRedeemedNumber:"9",dateRedeemed:1640038417468};var gD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),pD),availableText:"{availableAmount} remaining"})};var fD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),YD),redeemedText:"{redeemedAmount} redeemed"})};var hD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign(__assign({},uD),pD),KD),redeemedText:"{redeemedAmount} redeemed"})};var vD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),$D),availableText:"{availableAmount} remaining"})};var bD={prettyAvailableValue:"0 Points",prettyAvailableNumber:"0",prettyRedeemedCredit:"19 Points",prettyRedeemedNumber:"19",dateRedeemed:1640038417468};var yD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),bD),availableText:"{availableAmount} remaining"})};var wD={prettyValue:"1 Point",prettyValueNumber:"1"};var _D={prettyValue:"19 Points with a really really super duper longest name ever in the world wide web",prettyValueNumber:"19"};var xD=function(){return n("div",{style:{maxWidth:"222px"}},n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),_D),availableText:"{availableAmount} remaining"}))};var TD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),{type:"GIFTCARD",prettyValue:"SaaSquatch Giftcard"})})};var SD=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),{type:"FUELTANK",prettyValue:"Fueltank Reward",fuelTankCode:"AFUELTANKCODE"}),copyText:"Copied"})};var ED=function(){return n("div",{style:{maxWidth:"222px"}},n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},uD),{type:"FUELTANK",prettyValue:"Long Fueltank Reward",fuelTankCode:"AFUELTANKCODE123456789123456789123456789123456789"}),copyText:"Copied"}))};var CD=function(){return n("sqm-rewards-table-source-cell",{reward:uD,rewardSourceText:"Manual"})};var RD=function(){return n("sqm-rewards-table-source-cell",{reward:__assign(__assign({},uD),{rewardSource:"AUTOMATED",program:{name:"Klip Loyalty"}}),rewardSourceText:"{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"})};var ID={exchangedRewardRedemptionTransaction:{id:"61c100117a82a376d88041196",creditRedeemed:1,prettyRedeemedCredit:"1 Money",unit:"TESTUNIT",dateRedeemed:1640038417173,redeemedRewards:null,exchangedRewards:null}};var DD=function(){return n("sqm-rewards-table-source-cell",{reward:__assign(__assign({},uD),ID),rewardExchangeText:"Reward Exchange"})};var AD={firstName:"Bartholomew",lastName:"Christopher-Johnston Wallace",imageUrl:null};var kD={firstName:"John",lastName:"Doe",imageUrl:null};var qD={firstName:"",lastName:"",imageUrl:null};var PD=function(e){if(e===void 0){e=null}return{rewardSource:"FRIEND_SIGNUP",referral:{id:"123",dateConverted:1640038417173,dateReferralStarted:1640038417173,dateReferralPaid:1640038417173,dateModerated:1640038417173,dateReferralEnded:null,moderationStatus:null,rewards:null,referrerUser:e,referredUser:e}}};var ND=function(e){if(e===void 0){e=null}return{rewardSource:"REFERRED",referral:{id:"123",dateConverted:1640038417173,dateReferralStarted:1640038417173,dateReferralPaid:1640038417173,dateModerated:1640038417173,dateReferralEnded:null,moderationStatus:null,rewards:null,referrerUser:e,referredUser:e}}};var FD=function(){return{rewardSource:"REFERRED",referral:null}};var LD=function(){return n("sqm-rewards-table-source-cell",{reward:__assign(__assign({},uD),PD(kD)),referralText:"Referral to"})};var OD=function(){return n("div",{style:{width:"200px"}},n("sqm-rewards-table-source-cell",{reward:__assign(__assign({},uD),PD(AD)),referralText:"Referral to"}))};var UD=function(){return n("sqm-rewards-table-source-cell",{reward:__assign(__assign({},uD),ND(kD)),referralText:"Referred by"})};var BD=function(){return n("sqm-rewards-table-source-cell",{reward:__assign(__assign({},uD),PD(qD)),referralText:"Referral to",anonymousUserText:"Your Friend"})};var MD=function(){return n("sqm-rewards-table-source-cell",{reward:__assign(__assign({},uD),PD(null)),referralText:"Referral to",deletedUserText:"Deleted User"})};var GD=function(){return n("sqm-rewards-table-source-cell",{reward:__assign(__assign({},uD),FD()),referralText:"Referral to",deletedReferralText:"Deleted Referral"})};var VD=function(){return n("sqm-rewards-table-status-cell",{statusText:"Available",reward:uD})};var WD={dateExpires:1640038417468};var jD=function(){return n("sqm-rewards-table-status-cell",{statusText:"Available",reward:__assign(__assign({},uD),WD),expiryText:"Expires"})};var HD={statuses:["REDEEMED"],dateRedeemed:1640038417468};var zD=function(){return n("sqm-rewards-table-status-cell",{statusText:"Redeemed",reward:__assign(__assign({},uD),HD)})};var YD={statuses:["CANCELLED"],dateCancelled:1640038417468};var JD=function(){return n("sqm-rewards-table-status-cell",{statusText:"Cancelled",reward:__assign(__assign({},uD),YD)})};var KD={statuses:["EXPIRED"],dateExpires:1640038417468};var XD=function(){return n("sqm-rewards-table-status-cell",{statusText:"Expired",reward:__assign(__assign({},uD),KD)})};var $D={statuses:["PENDING"]};var QD={pendingReasons:["US_TAX"]};var ZD={pendingReasons:["SCHEDULED"],dateScheduledFor:1640038417468};var eA={pendingReasons:["UNHANDLED_ERROR"]};var nA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},uD),$D)})};var tA=function(){return n("div",{style:{width:"200px"}},n("sqm-rewards-table-status-cell",{statusText:"Pending for 300,000,000 months and some change",reward:__assign(__assign({},uD),$D)}))};var aA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign(__assign({},uD),$D),QD)})};var rA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign(__assign({},uD),$D),ZD)})};var iA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign(__assign({},uD),$D),eA)})};var sA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},uD),{referral:{id:"123",dateConverted:1640038417173,dateReferralStarted:1640038417173,dateReferralPaid:1640038417173,dateModerated:1640038417173,dateReferralEnded:null,moderationStatus:null,rewards:null,referrerUser:null,referredUser:null,fraudData:{moderationStatus:"PENDING",autoModerationStatus:"PENDING",manualModerationStatus:"PENDING"}}})})};var oA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Denied",reward:__assign(__assign({},uD),{dateCancelled:1e4,referral:{id:"123",dateConverted:1640038417173,dateReferralStarted:1640038417173,dateReferralPaid:1640038417173,dateModerated:1640038417173,dateReferralEnded:null,moderationStatus:null,rewards:null,referrerUser:null,referredUser:null,fraudData:{moderationStatus:"DENIED",autoModerationStatus:"DENIED",manualModerationStatus:"DENIED"}}})})};var lA=function(){return n("sqm-rewards-table-date-cell",{date:1640038417468})};var dA=function(){return n("sqm-rewards-table-customer-note-cell",{note:uD.meta.message})};var uA=function(){return n("sqm-rewards-table-date-cell",null)};var cA=Object.freeze({__proto__:null,default:dD,RewardsCellCreditSingle:cD,RewardsCellCreditFull:mD,RewardsCellCreditPartial:gD,RewardsCellCreditCancelled:fD,RewardsCellCreditExpired:hD,RewardsCellCreditPending:vD,RewardsCellCreditRedeemed:yD,RewardsCellCreditLong:xD,RewardsCellNonCredit:TD,RewardsCellFueltank:SD,RewardsCellFueltankLong:ED,SourceCellManual:CD,SourceCellProgram:RD,SourceCellExchange:DD,SourceCellReferral:LD,SourceCellWithLongText:OD,SourceCellReferred:UD,SourceCellAnonymousUser:BD,SourceCellDeletedUser:MD,SourceCellDeletedReferral:GD,StatusCellAvailable:VD,StatusCellAvailableExpiry:jD,StatusCellRedeemed:zD,StatusCellCancelled:JD,StatusCellExpired:XD,StatusCellPending:nA,StatusCellPendingWithLongText:tA,StatusCellPendingUsTax:aA,StatusCellPendingScheduled:rA,StatusCellPendingUnhandled:iA,StatusCellPendingReview:sA,StatusCellDenied:oA,DateCell:lA,CustomerNoteCell:dA,EmptyCell:uA});var mA='@owner:sam\n@author:sam\nFeature: Rewards Table\n\n Shows a list of rewards as a table\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no rewards\n Given a user with rewards\n When they view the reward table\n Then no rewards are displayed\n And they see an image with a user icon\n And "View your rewards" in bold\n And "See all the rewards you have earned from referring friends and completing tasks" below the bolded text\n And the pagination buttons are disabled\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no rewards\n And a custom empty state has been supplied in the "empty" slot\n When they view the reward table\n Then they see the custom empty state\n\n @minutia\n @ui\n Scenario: The loading state is shown while rewards are loading\n Given the table is loading\n Then the loading state is shown in the table\n And a custom loading state can be supplied in the "loading" slot\n And the pagination buttons are disabled\n\n @motivating\n @ui\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\n Given the user has <number of rewards>\n And the table is configured to show <page limit> rewards per page\n Then the table will have <number of pages> page(s)\n And pagination buttons will allow users to navigate between pages\n And the pagination button to go to the next page is disabled on the last page of rewards\n And the pagination button to go to the previous page is disabled on the first page of rewards\n Examples:\n | number of rewards | page limit | number of pages |\n | 0 | 4 | 1 |\n | 1 | 4 | 1 |\n | 3 | 4 | 1 |\n | 5 | 4 | 2 |\n | 42 | 4 | 11 |\n\n @motivating\n @ui\n Scenario: The table converts to a card view on tablet and mobile window sizes\n Given a user with rewards\n When they view the table\n And their window size is smaller than "799px"\n Then rewards are displayed as cards\n And they are in two columns\n When their window size is smaller than "599px"\n Then the rewards are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario: Table and Mobile beakpoints can be configured\n Given the reward table has been configured with the following props\n | prop | value |\n | smBreakpoint | 599 |\n | mdBreakpoint | 799 |\n And a user with rewards\n When they view the table\n And their window size is smaller than "799px"\n Then rewards are displayed as cards\n And they are in two columns\n When their window size is smaller than "599px"\n Then the rewards are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario Outline: By default the first column heading is hidden in mobile\n Given a reward table with 4 columns\n And prop "hidden-columns" with <hideColumnValue>\n And a user with rewards\n When they view the reward table\n And their window size is below the tablet breakpoint\n Then reward cards are displayed\n And the titles of <columnsArehidden> within the card\n Examples:\n | hideColumnValue | columnsArehidden |\n | | the first column |\n | 0,1,2 | the first, second and third columns |\n | 3 | the fourth column |\n\n @motivating\n Scenario: Only rewards which occured in the program specific by "program-id" are shown\n Given the table is configured with "program-id"\n Then only rewards from the program with "program-id" are shown\n\n @landmine\n Scenario: When a `classic` program Id is set then any reward without a programId is shown\n There is no easy way for the backend to filter for "classic" programs,\n thus we are filtering for rewards without programId\'s.\n\n Given the "program-id" of the table is set to "classic"\n Then rewards from classic programs are shown\n And manual rewards are shown\n\n @minutia\n @ui\n Scenario: Column heading can be hidden\n Given the table is configured with "hide-labels" set to "true"\n Then the table is displayed without column headings';var pA={title:"Components/Rewards Table",parameters:{scenario:mA}};var gA=n("div",{slot:"loading",style:{display:"contents"}},n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))),n("sqm-table-row",null,n("sqm-table-cell",{colspan:5},n("sqm-skeleton",null))));var fA=n("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png","empty-state-header":"View your rewards","empty-state-text":"See all the rewards you have earned from referring friends and completing tasks"});var hA=function(e,n,t,a,r,i){if(n===void 0){n=false}if(t===void 0){t=false}if(a===void 0){a="Prev"}if(r===void 0){r="Next"}if(i===void 0){i=""}return{states:{hasPrev:false,hasNext:true,show:n?"empty":t?"loading":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:true,prevLabel:a,moreLabel:r},hiddenColumns:i,mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:["Rewards","Status","Source","Date received"],rows:e,emptyElement:fA,loadingElement:gA}}};var vA=[n(mD,null),n(VD,null),n(LD,null),n(lA,null)];var bA=[n(gD,null),n(jD,null),n(UD,null),n(lA,null)];var yA=[n(fD,null),n(JD,null),n(GD,null),n(lA,null)];var wA=[n(fD,null),n(JD,null),n(MD,null),n(lA,null)];var _A=[n(yD,null),n(zD,null),n(CD,null),n(lA,null)];var xA=[n(yD,null),n(oA,null),n(CD,null),n(lA,null)];var TA=[n(yD,null),n(sA,null),n(CD,null),n(lA,null)];var SA=[n(xD,null),n(jD,null),n(UD,null),n(lA,null)];var EA=[n(SD,null),n(nA,null),n(CD,null),n(lA,null)];var CA=[n(ED,null),n(iA,null),n(CD,null),n(lA,null)];var RA=function(){return n(Ke,__assign({},hA([vA,_A,wA,yA,bA,xA,TA])))};var IA=function(){return n(Ke,__assign({},hA([EA])))};var DA=function(){return n(Ke,__assign({},hA([CA,SA])))};var AA=function(){return n(Ke,__assign({},hA([],true)))};var kA=function(){return n(Ke,__assign({},hA([],false,true)))};var qA=function(){return n(Ke,__assign({},hA([vA,_A,wA,bA],false,false,"CUSTOM PREVIOUS TEXT","CUSTOM NEXT TEXT")))};var PA=function(){return n(Ke,__assign({},hA([vA,_A,wA,bA],false,false,undefined,undefined,"0,1,2,3")))};var NA=Object.freeze({__proto__:null,default:pA,RewardsTable:RA,RewardsTableSingle:IA,RewardsTableLong:DA,RewardsTableEmpty:AA,RewardsTableLoading:kA,CustomButtonTextTable:qA,ColumnsMobileHidden:PA});var FA={title:"Components/Tax And Cash Rewards Table Cell"};var LA=16409952e5;var OA=27792576e5;var UA={id:"68c34fd98a6cb4f5f8394084",type:"CREDIT",value:59900,prettyValue:"$599.00",availableValue:0,prettyAvailableValue:"$0.00",prettyAssignedCredit:"$599.00",prettyRedeemedCredit:"$599.00",prettyValueNumber:"599",prettyAvailableNumber:"0",prettyRedeemedNumber:"599",unit:"CASH/USD",baseUnit:"CASH",rewardUnit:{key:"CASH/USD",name:"Cash"},name:null,dateCreated:LA,dateScheduledFor:null,dateGiven:LA,dateExpires:null,dateCancelled:null,dateRedeemed:null,dateModified:LA,rewardSource:"MANUAL",fuelTankCode:null,fuelTankType:null,fuelTankSyncSetting:null,currency:"USD",meta:null,programId:"40444",programRewardKey:null,globalRewardKey:"cash",program:{id:"40444",name:"Make Money Program",template:{id:"2qdmAx1fi31deo3P9O36sQ",name:"Referral Program With Objectives"}},partnerFundsTransfer:null,user:{id:"8da2c67e05e3e56de7ea638c2705017945211621c80e1cd4b4aac0e423d1cdb2",accountId:"8da2c67e05e3e56de7ea638c2705017945211621c80e1cd4b4aac0e423d1cdb2",firstName:"Billy",lastName:"Jean",email:"billy.jean@impact.com",impactConnection:{connected:true,taxHandlingEnabled:true,publisher:null}},referral:null,description:null,statuses:[],rewardRedemptionTransactions:{data:null},exchangedRewardRedemptionTransaction:null,pendingReasons:[],rewardedCash:true};var BA={connected:true,taxHandlingEnabled:true,connectionStatus:"COMPLETED",publisher:{requiredTaxDocumentType:"W9",currentTaxDocument:{status:"ACTIVE",type:"W9",dateCreated:LA},withdrawalSettings:{paymentMethod:"BANK_TRANSFER"},payoutsAccount:null}};var MA={connected:true,taxHandlingEnabled:true,connectionStatus:"COMPLETED",publisher:{requiredTaxDocumentType:"W9",currentTaxDocument:{status:"ACTIVE",type:"W9",dateCreated:LA},withdrawalSettings:null,payoutsAccount:null}};var GA={connected:false,taxHandlingEnabled:true,connectionStatus:"NOT_STARTED",publisher:null};var VA=function(){return n("sqm-rewards-table-reward-cell",{reward:__assign(__assign({},UA),{statuses:["REDEEMED"],dateRedeemed:LA}),availableText:"{availableAmount} remaining"})};var WA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Denied",reward:__assign(__assign({},UA),{referral:{fraudData:{moderationStatus:"DENIED"}}}),taxConnection:BA})};var jA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{referral:{fraudData:{moderationStatus:"PENDING"}}}),taxConnection:BA})};var HA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Payout Cancelled",reward:__assign(__assign({},UA),{partnerFundsTransfer:{id:"pft-reversed",status:"REVERSED",dateCreated:LA,dateScheduled:LA,dateTransferred:null}}),taxConnection:BA})};var zA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Payout Failed",reward:__assign(__assign({},UA),{partnerFundsTransfer:{id:"pft-overdue",status:"OVERDUE",dateCreated:LA,dateScheduled:LA,dateTransferred:null}}),taxConnection:BA})};var YA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{partnerFundsTransfer:{id:"pft-not-yet-due",status:"NOT_YET_DUE",dateCreated:LA,dateScheduled:OA,dateTransferred:null}}),taxConnection:MA})};var JA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:["US_TAX"]}),taxConnection:GA})};var KA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:["MISSING_PAYOUT_CONFIGURATION"]}),taxConnection:MA})};var XA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Processing",reward:__assign(__assign({},UA),{partnerFundsTransfer:{id:"pft-processing",status:null,dateCreated:LA,dateScheduled:OA,dateTransferred:null}}),taxConnection:BA})};var $A=function(){return n("sqm-rewards-table-status-cell",{statusText:"Payout Approved",reward:__assign(__assign({},UA),{partnerFundsTransfer:{id:"pft-transferred",status:"TRANSFERRED",dateCreated:LA,dateScheduled:LA,dateTransferred:LA}}),taxConnection:BA})};var QA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Cancelled",reward:__assign(__assign({},UA),{statuses:["CANCELLED"],dateCancelled:LA}),taxConnection:BA})};var ZA=function(){return n("sqm-rewards-table-status-cell",{statusText:"Expired",reward:__assign(__assign({},UA),{statuses:["EXPIRED"],dateExpires:LA}),taxConnection:BA})};var ek=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:["SCHEDULED"],dateScheduledFor:OA}),taxConnection:BA})};var nk=function(){return n("sqm-rewards-table-status-cell",{statusText:"",reward:__assign(__assign({},UA),{statuses:[]}),taxConnection:BA})};var tk=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:["US_TAX"]}),taxConnection:__assign(__assign({},BA),{taxHandlingEnabled:false})})};var ak=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:["US_TAX"]}),taxConnection:__assign(__assign({},BA),{publisher:__assign(__assign({},BA.publisher),{currentTaxDocument:null})})})};var rk=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:["US_TAX"]}),taxConnection:__assign(__assign({},BA),{publisher:__assign(__assign({},BA.publisher),{currentTaxDocument:{status:"INACTIVE",type:"W9",dateCreated:LA}})})})};var ik=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:["US_TAX"]}),taxConnection:__assign(__assign({},BA),{publisher:__assign(__assign({},BA.publisher),{currentTaxDocument:{status:"NOT_VERIFIED",type:"W9",dateCreated:LA}})})})};var sk=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:["US_TAX"]}),taxConnection:MA})};var ok=function(){return n("sqm-rewards-table-status-cell",{statusText:"Pending",reward:__assign(__assign({},UA),{statuses:["PENDING"],pendingReasons:[]}),taxConnection:{connected:true,taxHandlingEnabled:true,connectionStatus:"COMPLETED",publisher:{requiredTaxDocumentType:null,currentTaxDocument:null,withdrawalSettings:null,payoutsAccount:null}}})};var lk=$A;var dk=tk;var uk=Object.freeze({__proto__:null,default:FA,CashReward:VA,StatusCellFraudDenied:WA,StatusCellFraudPendingReview:jA,StatusCellPayoutCancelled:HA,StatusCellPayoutFailed:zA,StatusCellPartnerCreatedSetupStartedButIncomplete:YA,StatusCellPartnerNotCreatedSetupNotStarted:JA,StatusCellMissingPayoutConfiguration:KA,StatusCellPayoutProcessing:XA,StatusCellPayoutApproved:$A,StatusCellRewardCancelled:QA,StatusCellRewardExpired:ZA,StatusCellPendingScheduled:ek,StatusCellNoMatchingRule:nk,StatusCellPendingW9Required:tk,StatusCellPendingTaxSubmission:ak,StatusCellPendingNewTaxForm:rk,StatusCellPendingTaxReview:ik,StatusCellExistingTaxFormNoWithdrawalSettings:sk,StatusCellConnectedNoTaxRequiredNoWithdrawalSettings:ok,StatusCellPayoutSent:lk,StatusCellPendingW9:dk});var ck={title:"Components/Tax And Cash Rewards Table"};var mk=function(e,n,t,a,r,i){if(n===void 0){n=false}if(t===void 0){t=false}if(a===void 0){a="Prev"}if(r===void 0){r="Next"}if(i===void 0){i=""}return{states:{hasPrev:false,hasNext:true,show:n?"empty":t?"loading":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:true,prevLabel:a,moreLabel:r},hiddenColumns:i,mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},elements:{columns:["Rewards","Status","Source","Date received"],rows:e}}};var pk=[n(VA,null),n(rk,null),n(LD,null),n(lA,null)];var gk=[n(VA,null),n(ak,null),n(LD,null),n(lA,null)];var fk=[n(VA,null),n(ik,null),n(LD,null),n(lA,null)];var hk=[n(VA,null),n(JA,null),n(LD,null),n(lA,null)];var vk=[n(VA,null),n(dk,null),n(LD,null),n(lA,null)];var bk=[n(VA,null),n(lk,null),n(LD,null),n(lA,null)];var yk=[n(VA,null),n(XA,null),n(LD,null),n(lA,null)];var wk=[n(VA,null),n(zA,null),n(LD,null),n(lA,null)];var _k=[n(VA,null),n(HA,null),n(LD,null),n(lA,null)];var xk=function(){return n(Ke,__assign({},mk([pk,gk,fk,hk,vk,yk,bk,wk,_k])))};var Tk=Object.freeze({__proto__:null,default:ck,RewardsTable:xk});var Sk={title:"Hooks / useRewardsTable"};function Ek(){var e="testestest";var n=e;Bp({user:{id:e,accountId:n}});return{id:e,accountId:n}}function Ck(e){var n=e.id,t=e.locale;var a=n;Bp({user:{id:n,accountId:a},widgetIdent:{locale:t}});return{id:n,accountId:a}}var Rk=Nu((function(){return n("sqm-rewards-table",{"per-page":"4"},n("sqm-rewards-table-reward-column",null),n("sqm-rewards-table-source-column",null),n("sqm-rewards-table-status-column",null),n("sqm-rewards-table-date-column",null))}));var Ik=Nu((function(){Ek();Ne("sam-partner-test-2");return n("sqm-rewards-table",null,n("sqm-rewards-table-reward-column",null),n("sqm-rewards-table-status-column",null),n("sqm-rewards-table-source-column",null),n("sqm-rewards-table-date-column",null))}));var Dk=Nu((function(){Ek();Ne(undefined);return n("sqm-rewards-table",null,n("sqm-rewards-table-reward-column",null),n("sqm-rewards-table-status-column",null),n("sqm-rewards-table-source-column",null),n("sqm-rewards-table-date-column",null))}));var Ak=Nu((function(){Ck({id:"samenglish",locale:"en"});Ne(undefined);return n("sqm-rewards-table",{"per-page":"4"},n("sqm-rewards-table-reward-column",null),n("sqm-rewards-table-status-column",null),n("sqm-rewards-table-source-column",null),n("sqm-rewards-table-date-column",null))}));var kk=Nu((function(){Ck({id:"samturkey",locale:"tr"});Ne(undefined);return n("sqm-rewards-table",{"per-page":"4","more-label":"Daha","prev-label":"Öncesi","empty-state-text":"Henüz Referans Yok"},n("sqm-rewards-table-reward-column",{"column-title":"Ödüller","redeemed-text":"{redeemedAmount} kullanıldı","available-text":"{availableAmount} mevcut"}),n("sqm-rewards-table-source-column",{"column-title":"Kullanıcılar","anonymous-user":"Anonim Kullanıcı","deleted-user":"Silinmiş Kullanıcı","reward-exchange-text":"Ödülleri Kulannın","referral-text":"{rewardSource, select, FRIEND_SIGNUP {Referans} REFERRED {Yönlendiren} other {}}","reward-source-text":"{rewardSource, select, MANUAL {Manuel} AUTOMATED {Otomatik} other {}}"}),n("sqm-rewards-table-status-column",{"column-title":"Statut","status-text":"{status, select, AVAILABLE {Mevcut} PENDING {Bekleniyor} EXPIRED {Geçmiş} REDEEMED {Kullanılmış} CANCELED {İptal Edildi} other {Kullanılamaz} }","expiry-text":"Bitiyor "}),n("sqm-rewards-table-date-column",{"column-title":"Tarih"}))}));var qk=Nu((function(){Ck({id:"samfrench",locale:"fr"});Ne(undefined);return n("sqm-rewards-table",{"per-page":"4","more-label":"Plus","prev-label":"Précédent","empty-state-text":"Aucune Récompenses Maintenant"},n("sqm-rewards-table-reward-column",{"column-title":"Récompenses","redeemed-text":"{redeemedAmount} rachetée","available-text":"{availableAmount} disponible"}),n("sqm-rewards-table-source-column",{"column-title":"Utilisateur","anonymous-user":"Utilisateur Anonyme","deleted-user":"Utilisateur Supprimé","reward-exchange-text":"Échange de Récompenses","referral-text":"{rewardSource, select, FRIEND_SIGNUP {Référence à} REFERRED {Référencé par} other {}}","reward-source-text":"{rewardSource, select, MANUAL {Manuel} AUTOMATED {Automatique} other {}}"}),n("sqm-rewards-table-status-column",{"column-title":"Statut","status-text":"{status, select, AVAILABLE {Disponible} PENDING {Pendant} EXPIRED {Expiré} REDEEMED {Racheté} CANCELED {Annulé} other {Indisponible} }","expiry-text":"Expire sur "}),n("sqm-rewards-table-date-column",{"column-title":"Date de Réception"}))}));var Pk=Object.freeze({__proto__:null,default:Sk,RewardTableDemoHook:Rk,RewardsTableWithProgram:Ik,RewardsTableNoProgram:Dk,RewardsTableEn:Ak,RewardsTableTr:kk,RewardsTableFr:qk});var Nk={title:"Tests/Router"};var Fk='\n <template path="/foo"><h1>foo</h1>\n \n <p>These elements don\'t produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.\n\n Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what\'s inside. See the Accessibility concerns section below for more details.</p>\n </template>\n <template path="/bar"><h2>bar</h2>\n \n <p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.\n To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>\n </template>\n <template path="/baz/bang"><h3>baz/bang</h3>\n <pre>\n ▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄\n ░░▀███░░░░▀██░░░░██▀░░░░██░░\n ░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░\n ░░░░███░░░░░▀██▄█░░░░░░█░░░░\n ░░░░░███░░░░░▀██░░░░░░█▀░░░░\n ░░░░░░███░░░░▄███░░░░█▀░░░░░\n ░░░░░░░██▄░░▄▀░███░░█▀░░░░░░\n ░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░\n ░░░░░░░░▀██▀░░░░░███░░░░░░░░\n ░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░\n </pre>\n </template>\n <template path="/refer/:page"><h3>/refer/:page</h3>\n <pre>\n refer/:page\n </pre>\n </template>\n';var Lk='\n <sqm-route path="/foo"><h1>foo</h1>\n \n <p>These elements don\'t produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.\n\n Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what\'s inside. See the Accessibility concerns section below for more details.</p>\n </sqm-route>\n <sqm-route path="/bar"><h2>bar</h2>\n <p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.\n To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>\n </sqm-route>\n <sqm-route path="/baz/bang"><h3>baz/bang</h3>\n <pre>\n ▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄\n ░░▀███░░░░▀██░░░░██▀░░░░██░░\n ░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░\n ░░░░███░░░░░▀██▄█░░░░░░█░░░░\n ░░░░░███░░░░░▀██░░░░░░█▀░░░░\n ░░░░░░███░░░░▄███░░░░█▀░░░░░\n ░░░░░░░██▄░░▄▀░███░░█▀░░░░░░\n ░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░\n ░░░░░░░░▀██▀░░░░░███░░░░░░░░\n ░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░\n </pre>\n </sqm-route>\n <sqm-route path="/refer/:page"><h3>/refer/:page</h3>\n <pre>\n refer/:page\n </pre>\n </sqm-route>\n';var Ok=Nu((function(){return n("div",null,n("button",{onClick:function(){return ke.push("/")}},"/"),n("button",{onClick:function(){return ke.push("/foo")}},"/foo"),n("button",{onClick:function(){return ke.push("/bar")}},"/bar"),n("button",{onClick:function(){return ke.push("/baz/bang")}},"/baz/bang"),n("button",{onClick:function(){return ke.push("/refer")}},"/refer"),n("button",{onClick:function(){return ke.push("/refer/1")}},"/refer/1"),n("button",{onClick:function(){return ke.push("/refer/2")}},"/refer/2"),n("button",{onClick:function(){return ke.back()}},"Back"),n("button",{onClick:function(){return ke.forward()}},"Forward"),n("hr",null),n("sqm-router",{innerHTML:Fk}))}));var Uk=Nu((function(){return n("div",null,n("button",{onClick:function(){return ke.push("/")}},"/"),n("button",{onClick:function(){return ke.push("/foo")}},"/foo"),n("button",{onClick:function(){return ke.push("/bar")}},"/bar"),n("button",{onClick:function(){return ke.push("/baz/bang")}},"/baz/bang"),n("button",{onClick:function(){return ke.push("/refer")}},"/refer"),n("button",{onClick:function(){return ke.push("/refer/1")}},"/refer/1"),n("button",{onClick:function(){return ke.push("/refer/2")}},"/refer/2"),n("button",{onClick:function(){return ke.back()}},"Back"),n("button",{onClick:function(){return ke.forward()}},"Forward"),n("hr",null),n("sqm-router",{innerHTML:Lk}))}));var Bk=Nu((function(){return n("div",null,n("button",{onClick:function(){return ke.push("/")}},"/"),n("button",{onClick:function(){return ke.push("/foo")}},"/foo"),n("hr",null),n("div",{style:{display:"flex",justifyContent:"space-around"}},n("sqm-router",{innerHTML:'<template path="/">\n \n <div>Column 1</div>\n <div>Column 2 </div>\n </template>'})))}));function Mk(e){var n=s(e),t=n[0],a=n[1];var r=s(e),i=r[0],o=r[1];function l(e){ke.push(e.target.value)}return{states:{previewTemplate:i,editedTemplate:t},callbacks:{setEditedTemplate:a,setPreviewTemplate:o,setPath:l}}}var Gk='\n<sqm-router>\n <template path="/">\n <div>hello world</div>\n </template>\n</sqm-router>\n';function Vk(e){var t=e.states,a=e.callbacks;return[n("textarea",{style:{width:"100%",height:"300px"},onChange:function(e){return a.setEditedTemplate(e.target.value)}},t.editedTemplate),n("button",{onClick:function(){return a.setPreviewTemplate(t.editedTemplate)}},"Update Preview"),n("label",null,"Current path:",n("input",{onInput:a.setPath,value:"/"})),n("div",{innerHTML:t.previewTemplate})]}var Wk=Nu((function(){var e=Mk(Gk),t=e.states,a=e.callbacks;return n(Vk,{states:t,callbacks:a})}));var jk=Object.freeze({__proto__:null,default:Nk,TemplateNavigation:Ok,RouteNavigation:Uk,Styling:Bk,RouterPlayground:Wk});var Hk={title:"Components/Scroll"};var zk=function(){return n("div",{style:{position:"relative",height:"2000px"}},n("sqm-scroll",{"scroll-tag-name":"sqm-text","button-text":"Scroll","scroll-animation":"smooth"}),n("div",{style:{position:"absolute",bottom:"0"}},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards"),n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))))};var Yk=function(){return n("div",{style:{position:"relative",height:"2000px"}},n("sqm-scroll",{"button-text":"Scroll","scroll-id":"my-id","scroll-animation":"smooth"}),n("div",{style:{position:"absolute",bottom:"0"}},n("sqm-text",{slot:"label",id:"my-id"},n("h3",null,"Earn more rewards"),n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))))};var Jk=function(){return n("div",{style:{position:"relative",height:"2000px"}},n("sqm-scroll",{"button-text":"Scroll","scroll-id":"my-id","scroll-animation":"auto"}),n("div",{style:{position:"absolute",bottom:"0"}},n("sqm-text",{slot:"label",id:"my-id"},n("h3",null,"Earn more rewards"),n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))))};var Kk=function(){return n("div",{style:{position:"relative",height:"2000px"}},n("sqm-scroll",{"button-text":"Redeem rewards","scroll-id":"tab-3","scroll-animation":"smooth"}),n("div",{style:{position:"absolute",bottom:"0"},innerHTML:'\n <sqm-tabs>\n <sqm-tab header="Leaderboard">\n <sqm-hero-image\n image-url="https://i.imgur.com/MVgOJn7.png"\n description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"\n layout="columns"\n image-percentage="33%"\n padding-image="large"\n padding-text="large"\n background-color=""\n ></sqm-hero-image>\n <sqm-leaderboard></sqm-leaderboard>\n </sqm-tab>\n <sqm-tab header="Referral history"\n >\n <sqm-referral-table></sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table></sqm-rewards-table>\n </sqm-tab>\n <sqm-tab header="Redeem">\n <sqm-reward-exchange-list></sqm-reward-exchange-list>\n </sqm-tab>\n </sqm-tabs>\n '}))};var Xk=function(){return n("div",{style:{position:"relative",height:"2000px"}},n("sqm-scroll",{"button-text":"Redeem rewards","scroll-tag-name":"sqm-reward-exchange-list"}),n("div",{style:{position:"absolute",bottom:"0"},innerHTML:'\n <sqm-tabs>\n <sqm-tab header="Leaderboard">\n <sqm-hero-image\n image-url="https://i.imgur.com/MVgOJn7.png"\n description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"\n layout="columns"\n image-percentage="33%"\n padding-image="large"\n padding-text="large"\n background-color=""\n ></sqm-hero-image>\n <sqm-leaderboard></sqm-leaderboard>\n </sqm-tab>\n <sqm-tab header="Referral history"\n >\n <sqm-referral-table></sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table></sqm-rewards-table>\n </sqm-tab>\n <sqm-tab header="Redeem">\n <sqm-reward-exchange-list></sqm-reward-exchange-list>\n </sqm-tab>\n </sqm-tabs>\n '}))};var $k=function(){return n("div",null,n("div",{style:{display:"flex",gap:"60px"}},n("div",{style:{textAlign:"center"}},n("h3",null,"Type:"),n("sqm-scroll",{"button-type":"primary"},"Primary"),n("br",null),n("sqm-scroll",{"button-type":"success"},"Success"),n("br",null),n("sqm-scroll",{"button-type":"neutral"},"Neutral"),n("br",null),n("sqm-scroll",{"button-type":"warning"},"Warning"),n("br",null),n("sqm-scroll",{"button-type":"danger"},"Danger")),n("div",{style:{textAlign:"center"}},n("h3",null,"Outline:"),n("sqm-scroll",{outline:true,"button-type":"primary"},"Primary"),n("br",null),n("sqm-scroll",{outline:true,"button-type":"success"},"Success"),n("br",null),n("sqm-scroll",{outline:true,"button-type":"neutral"},"Neutral"),n("br",null),n("sqm-scroll",{outline:true,"button-type":"warning"},"Warning"),n("br",null),n("sqm-scroll",{outline:true,"button-type":"danger"},"Danger"))),n("br",null)," ",n("hr",null),n("h3",null,"Text:"),n("sqm-scroll",{"button-type":"text"},"Text"),n("br",null)," ",n("hr",null),n("h3",null,"Size:"),n("sqm-scroll",{size:"small"},"Small"),n("br",null),n("sqm-scroll",{size:"medium"},"Medium"),n("br",null),n("sqm-scroll",{size:"large"},"Large"),n("br",null)," ",n("hr",null),n("h3",null,"Pill:"),n("sqm-scroll",{pill:true},"Button"),n("br",null)," ",n("hr",null),n("h3",null,"Icon:"),n("sqm-scroll",{"button-type":"primary",iconName:"facebook"},"Icon Name"),n("br",null),n("sqm-scroll",{iconName:"gear",iconSlot:"prefix"},"Icon Slot Prefix"),n("br",null),n("sqm-scroll",{iconName:"gear",iconSlot:"suffix"},"Icon Slot Suffix"),n("br",null)," ",n("hr",null),n("h3",null,"Circle:"),n("sqm-scroll",{circle:true},"X"),n("br",null)," ",n("hr",null),n("h3",null,"Mobile Friendly:"),n("sqm-scroll",{mobile:true},"Button"),n("br",null)," ",n("hr",null))};var Qk=Object.freeze({__proto__:null,default:Hk,ScrollTag:zk,ScrollId:Yk,ScrollAutoAnimation:Jk,ScrollTabGroup:Kk,ScrollTabGroupInner:Xk,ShoelaceProps:$k});var Zk='@author:noah\n@owner:noah\nFeature: Share Button\n\n The share button redirects users to a platform where they can share their referral link\n\n @motivating\n @ui\n Scenario Outline: Share button displays for various platforms\n Given the share button\'s medium prop is "<medium>"\n And the button\'s child is text saying "BUTTON_TEXT"\n When the share button is rendered\n Then the button has text "BUTTON_TEXT"\n And the button is <colour>\n And it displays an <icon> beside the text\n And clicking the button redirects to an appropriate link\n Examples:\n | medium | colour | icon |\n | facebook | #1877f2 | facebook logo |\n | twitter | #000000 | twitter x logo |\n | email | #666666 | envelope |\n | direct | brand colour | paper plane |\n | linkedin | #0077b5 | linkedIn logo |\n | sms | #34DA50 | chat bubble |\n | fbmessenger | #0084ff | messenger logo |\n | whatsapp | #25d366 | whatsapp logo |\n | linemessenger | #00B300 | linemessenger logo |\n | pinterest | #e60023 | pinterest logo |\n\n @minutia\n @ui\n Scenario Outline: Default icons can be overwritten\n Given a share button for any medium with <iconPropValue>\n When the share button is rendered\n Then it displays a <iconPropValue> instead of the share mediums default icon\n Examples:\n | iconPropValue |\n | basket |\n | bluetooth |\n | bandaid |\n\n @motivating\n @ui\n Scenario Outline: Default share medium colours can be overwritten\n Given a share button for any medium with <backgroundColourPropValue>\n When the share button is rendered\n Then the share button is <backgroundColourPropValue>\n Examples:\n | backgroundColourPropValue |\n | blue |\n | black |\n | green |\n\n @minutia\n @ui\n Scenario Outline: Share medium icons and text can be hidden\n Given a share button with <prop> <value>\n When the share button is rendered\n Then <element> is hidden\n Examples:\n | prop | value | element |\n | hideicon | true | icon |\n | hidetext | true | text |\n\n @minutia\n @ui\n Scenario Outline: Icons can be on either side of the text\n Given a share button with <iconslotPropValue>\n When the share button is rendered\n Then the icon is displayed to the <direction> of the text\n Examples:\n | iconslotPropValue | direction |\n | suffix | right |\n | prefix | left |\n | prefix | left |\n\n @minutia\n Scenario: Unsupported browsers hide native share buttons\n Given the share button\'s medium prop is "direct"\n And your browser does not support the Web Share API\n Then the share button is hidden\n\n @minutia\n Scenario: SMS share buttons are hidden on non Android and iOS devices\n Given the share button\'s medium is "sms"\n And the share button is being viewed on a device which is not an Android or iOS device\n Then the share button is hidden\n\n @motivating\n Scenario: Facebook share buttons uses SquatchAndroid sharing features\n Given the share button\'s medium is "facebook"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is available\n Then tapping the share button opens the phone\'s Facebook app\n And a share activity is opened with the share link prefilled\n\n @motivating\n Scenario: SquatchAndroid falls back to the Facebook website if no app is available\n Given the share button\'s medium is "facebook"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is not available\n Then tapping the share button opens the the Facebook mobile site in the device\'s browser\n And a share activity is opened with the share link prefilled\n\n @minutia\n Scenario: A supplied program ID is used if available\n Given the program id is supplied to the component in the "programId" prop\n Then the program ID in the "programId" prop is used to retrieve share links\n\n @minutia\n Scenario: The program ID is automatically fetched from context\n Given the program id is not supplied to the component in the "programId" prop\n Then the program ID is retrieved from context';var eq={title:"Components/Share Button",parameters:{scenario:Zk}};var nq=function(){var e={medium:"whatsapp",iconslot:"prefix"};return n(p,__assign({},e),"Share")};var tq=function(){var e={medium:"whatsapp",iconslot:"suffix"};return n(p,__assign({},e),"Share")};var aq=function(){var e={medium:"facebook",icon:"person-badge"};return n(p,__assign({},e),"Share")};var rq=function(){var e={medium:"facebook",type:"text"};return n(p,__assign({},e),"Share")};var iq=function(){var e={medium:"facebook",hideicon:true};return n(p,__assign({},e),"Share")};var sq=function(){var e={medium:"facebook",hidetext:true};return n(p,__assign({},e),"Share")};var oq=function(){var e={medium:"facebook",type:"text",hideicon:true};return n(p,__assign({},e),"Share")};var lq=function(){var e={medium:"facebook",type:"text",backgroundcolor:"red",textcolor:"yellow",iconslot:"prefix",border:"2px solid yellow",borderradius:30};return n(p,__assign({},e),"Facebook")};var dq=function(){var e={medium:"facebook",type:"text",borderradius:8,iconslot:"prefix"};return n(p,__assign({},e),"Facebook")};var uq=function(){var e={medium:"facebook",type:"text",onClick:undefined,messageLink:"https://www.example.com"};return n(p,__assign({},e),"Click me")};var cq=function(){return n("div",null,n("sqm-share-button",{medium:"facebook"},n("span",null,"Facebook")),n("br",null),n("sqm-share-button",{medium:"email"},n("span",null,"Email")))};var mq=function(){return n("div",null,n("sqm-share-button",{medium:"facebook"},n("span",null,"Facebook")),n("br",null),n("sqm-share-button",{medium:"email"},n("span",null,"Email")),n("br",null),n("sqm-share-button",{medium:"whatsapp"},n("span",null,"WhatsApp")),n("br",null),n("sqm-share-button",{medium:"linkedin"},n("span",null,"Linkedin")),n("br",null),n("sqm-share-button",{medium:"twitter"},n("span",null,"Post on X")),n("br",null),n("sqm-share-button",{medium:"pinterest"},n("span",null,"Pinterest")),n("br",null),n("sqm-share-button",{medium:"fbmessenger"},n("span",null,"Messenger")),n("br",null),n("sqm-share-button",{medium:"sms"},n("span",null,"SMS")),n("br",null),n("sqm-share-button",{medium:"linemessenger"},n("span",null,"Line Messenger")),n("br",null),n("sqm-share-button",{medium:"direct"},n("span",null,"Share")))};var pq=Object.freeze({__proto__:null,default:eq,WithIconPrefix:nq,WithIconSuffix:tq,WithIconOverride:aq,TextStyle:rq,WithoutIcon:iq,WithoutText:sq,TextStyleWithoutIcon:oq,WithCustomColorsAndBranding:lq,WithCustomBorderRadius:dq,LinkLocationTest:uq,FullStackIcon:cq,AllMediums:mq});var gq={title:"Hooks / useShareButton"};function fq(){var e="testestest";var n=e;var t="sam-partner-test-2";Bp({programId:t,user:{id:e,accountId:n}})}var hq=Nu((function(){fq();var e="sam-partner-test-2";var t=[$({programId:e,medium:"facebook"}),$({programId:e,medium:"twitter"}),$({programId:e,medium:"email"}),$({programId:e,medium:"direct"}),$({programId:e,medium:"sms"})];return n("div",null,t.map((function(e){return n("div",null,n("button",{onClick:e.onClick},"Share link (",e.medium,")"))})))}));var vq=Nu((function(){fq();var e="sam-partner-test-2";var t=["facebook","twitter","email","direct","sms"];return n("div",null,t.map((function(t){return n("div",null,n("sqm-share-button",__assign({programId:e,medium:t}),"BUTTON_TEXT"))})))}));var bq=Object.freeze({__proto__:null,default:gq,BareBonesView:hq,RegularView:vq});var yq='@author:johan\n@owner:johan\nFeature: Share Code\n\n The share code component is a box that allows users to see and copy their referral code for a given program\n\n Background: Environment\n Given there is a valid program ID in the environment\n And there is a valid user ID and account ID in the environment\n\n @motivating\n Scenario: A Users referral code can be copied to their clipboard\n Given tooltiptext is "hello tooltip"\n When the component renders\n Then there is a textbox with the user\'s share code\n When the clipboard icon is clicked\n Then the code is copied to clipboard\n And a tooltip will appear for ~1 second\n\n @minutia\n Scenario: Tooltip lifespan defaults to 2000\n Given the tooltip\'s lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip will appear for ~2 seconds\n\n @minutia\n Scenario: Demo\n Given isDemo() returns true\n Then the share code is "SHARECODE001"\n And the component won\'t be interactive\n And the tooltip is hidden\n\n @minutia\n Scenario: Program ID can be sourced from prop\n Given the programId prop is set to "program-a"\n And window.widgetIdent.programId is set to "program-b"\n When the component renders\n Then the share code is for "program-a"\n\n @minutia\n Scenario: Program ID can be sourced from window\n Given the programId prop is unset\n And window.widgetIdent.programId is set to "program-b"\n When the component renders\n Then the share code is for "program-b"\n\n @minutia\n Scenario: An analytic event is fired when a user copies their code\n Given a user viewing the share code component\n And the component is rendered for "program-a"\n When they click to copy their code\n Then an "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT" analytic event is fired\n And it is for "program-a"\n And it has share medium "DIRECT"\n\n\n @ui\n Scenario Outline: user can edit the alignment of the share code text\n Given a user is editing the share code component\n Then they see "Align text" props\n And the default value is "left"\n When they change the option to <option>\n Then they see the text in <position>\n Examples:\n | option | position |\n | left | left |\n | center | center |\n | right | right |\n\n @ui\n Scenario Outline: The position of the copy button can be changed\n Given a user is editing the share code component\n Then they see "Style" props\n And the default value is "icon"\n When they change the option to <option>\n Then they see the copy button in <position>\n Examples:\n | option | position |\n | button outside | outside the input, on the right |\n | button below | outside the input, below |\n | icon | inside the input as an icon |\n';var wq={title:"Components/Share Code",parameters:{scenario:yq}};var _q=function(){return n("sqm-share-code",{tooltiptext:"Copied to Clipboard"})};var xq=function(){return n("sqm-share-code",{tooltiptext:"CUSTOM TOOLTIP TEXT"})};var Tq=function(){return n("sqm-share-code",{textAlign:"center"})};var Sq=function(){return n("sqm-share-code",{textAlign:"right"})};var Eq=function(){return n("sqm-share-code",{tooltiplifespan:5e3,tooltiptext:"CUSTOM TOOLTIP TEXT"})};var Cq=function(){return n(ie,__assign({copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!",isCopyIcon:false}))};var Rq=function(){return n(ie,__assign({copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!",buttonStyle:"button-below"}))};var Iq=function(){var e={copyString:"https://noah.example.com",disabled:true,open:true,tooltiptext:"Copied!",error:true};return n(ie,__assign({},e))};var Dq=Object.freeze({__proto__:null,default:wq,ShareCode:_q,CustomTooltipText:xq,TextAlignCenter:Tq,TextAlignRight:Sq,CustomTooltipDuration:Eq,CopyButton:Cq,CopyButtonBelow:Rq,Error:Iq});var Aq='@author:johan\n@owner:johan\nFeature: Share Link\n\n The share link component is a box that allows users to see and copy their share link for a given program\n\n Background: Environment\n Given there is a valid program ID in the environment\n And there is a valid user ID and account ID in the environment\n\n @motivating\n Scenario: A Users sharelink can be copied to their clipboard\n Given tooltipText is "hello tooltip"\n When the component renders\n Then there is a textbox with the user\'s share link\n When the clipboard icon is clicked\n Then the link is copied to clipboard\n And a tooltip appears for ~1 second\n\n @minutia\n Scenario: Tooltip lifespan defaults to 2000\n Given the tooltip\'s lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip appears for ~2 seconds\n\n @minutia\n Scenario: Demo\n Given isDemo() returns true\n Then the share link is "https://www.example.com/sharelink/abc"\n And the component won\'t be interactive\n And the tooltip is hidden\n\n @minutia\n Scenario: Program ID can be sourced from prop\n Given the programId prop is set to "program-a"\n And window.widgetIdent.programId is set to "program-b"\n When the component renders\n Then the share link is for "program-a"\n\n @minutia\n Scenario: Program ID can be sourced from window\n Given the programId prop is unset\n And window.widgetIdent.programId is set to "program-b"\n When the component renders\n Then the share link is for "program-b"\n\n @minutia\n Scenario: An analytic event is fired when a user copies their sharelink\n Given a user viewing the share link component\n And the component is rendered for "program-a"\n When they click to copy their link\n Then an "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT" analytic event is fired\n And it is for "program-a"\n And it has share medium "DIRECT"\n\n\n @ui\n Scenario Outline: user can edit the alignment of the share link text\n Given a user is editing the share link component\n Then they see "Align text" props\n And the default value is "left"\n When they change the option to <option>\n Then they see the text in <position>\n Examples:\n | option | position |\n | left | left |\n | center | center |\n | right | right |\n\n @ui\n Scenario Outline: The position of the copy button can be changed\n Given a user is editing the share link component\n Then they see "Style" props\n And the default value is "icon"\n When they change the option to <option>\n Then they see the copy button in <position>\n Examples:\n | option | position |\n | button outside | outside the input, on the right |\n | button below | outside the input, below |\n | icon | inside the input as an icon |\n';var kq={title:"Components/Share Link",parameters:{scenario:Aq}};var qq=function(){var e={copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!"};return n(ie,__assign({},e))};var Pq=function(){var e={copyString:"https://noah.example.com",tooltiptext:"Some text for the tooltip",open:true};return n(ie,__assign({},e))};var Nq=function(){var e={copyString:"https://noah.example.com",disabled:true,open:true,tooltiptext:"Copied!"};return n(ie,__assign({},e))};var Fq=function(){var e={copyString:"https://noah.example.com",disabled:true,open:true,tooltiptext:"Copied!",error:true};return n(ie,__assign({},e))};var Lq=function(){return n("sqm-share-link",{textAlign:"center"})};var Oq=function(){return n("sqm-share-link",{textAlign:"right"})};var Uq=function(){return n(ie,__assign({copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!",isCopyIcon:false}))};var Bq=function(){return n(ie,__assign({copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!",buttonStyle:"button-below"}))};var Mq=function(){var e={copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!",backgroundColor:"#1ed760",borderRadius:"30px",textColor:"#121212",buttonType:"primary"};return n(ie,__assign({},e))};var Gq=function(){return n("sqm-share-link",{demoData:{copyTextViewProps:{copyString:"https://noah.example.com",open:false,tooltiptext:"Copied!",backgroundColor:"#1ed760",borderRadius:"30px",textColor:"red",buttonType:"primary",borderColor:"#121212"}},backgroundColor:"#1ed760"})};var Vq=function(){return n("sqm-share-link",null)};var Wq=function(){};var jq={copyTextViewProps:{copyString:"https://ssqt.co/abc123",open:false,tooltiptext:"Copied!"},allowCustomization:true,customizeLinkLabel:"Customize Link",saveLabelText:"Save",savingLabelText:"Saving...",cancelLabelText:"Cancel",editLabelText:"Edit your link",charactersRemainingText:"{count} characters remaining",validatingLabelText:"Validating...",isEditing:false,editValue:"",domainPrefix:"https://ssqt.co/",editsRemaining:3,maxEdits:5,limitReached:false,validationError:null,isValidating:false,isSaving:false,characterLimit:30,minCharacters:3,charactersRemaining:30,editLimitText:"You can edit your link up to 5 times.",editLimitReachedText:"5 edit limit reached. To make more changes, please contact {supportLink}.",supportLinkText:"Support",customizeDisabled:false,customizeDisabledTooltip:"Link customization is not available.",minCharactersText:"Minimum 3 characters",onCustomizeClick:Wq,onEditValueChange:Wq,onSave:Wq,onCancel:Wq};var Hq=function(){return n(Q,__assign({},jq))};var zq=function(){return n(Q,__assign({},__assign(__assign({},jq),{isEditing:true,editValue:"nvoiwb18",charactersRemaining:7})))};var Yq=function(){return n(Q,__assign({},__assign(__assign({},jq),{copyTextViewProps:__assign(__assign({},jq.copyTextViewProps),{copyString:"https://ssqt.co/bobtesterson"})})))};var Jq=function(){return n(Q,__assign({},__assign(__assign({},jq),{copyTextViewProps:__assign(__assign({},jq.copyTextViewProps),{copyString:"https://ssqt.co/bobtesterson"}),editsRemaining:0,limitReached:true})))};var Kq=function(){return n(Q,__assign({},__assign(__assign({},jq),{customizeDisabled:true})))};var Xq=function(){return n(Q,__assign({},__assign(__assign({},jq),{isEditing:true,editValue:"nvoiwb18",charactersRemaining:7,validationError:{code:"EXISTING_CODE_CONFLICT",title:"This link is already taken",description:"Try adding numbers, a dash or underscore to create a unique link."}})))};var $q=function(){return n(Q,__assign({},__assign(__assign({},jq),{isEditing:true,editValue:"nvoiwb18",charactersRemaining:7,validationError:{code:"INVALID_CHARACTER",title:"Please use only letters, numbers, dashes and underscores",description:"Special characters can break the link when sharing."}})))};var Qq=function(){return n(Q,__assign({},__assign(__assign({},jq),{isEditing:true,editValue:"nvoiwb18",charactersRemaining:7,validationError:{code:"BLOCKED_WORD",title:"Please try a different link",description:"This link contains a restricted word."}})))};var Zq=function(){return n(Q,__assign({},__assign(__assign({},jq),{isEditing:true,editValue:"bobtesterson",isSaving:true})))};var eP=function(){return n("div",{style:{width:"320px",border:"1px dashed red"}},n(Q,__assign({},__assign(__assign({},jq),{isEditing:true,domainPrefix:"https://referral-marketing.mybrandname.com/"}))))};var nP=Object.freeze({__proto__:null,default:kq,Default:qq,Tooltip:Pq,Disabled:Nq,Error:Fq,TextAlignCenter:Lq,TextAlignRight:Oq,CopyButton:Uq,CopyButtonBelow:Bq,CustomStyles:Mq,CustomStylesWithDemoHooks:Gq,FullStack:Vq,CustomizeUrlDefault:Hq,CustomizeUrlEditing:zq,CustomizeUrlCustomized:Yq,CustomizeUrlLimitReached:Jq,CustomizeUrlDisabled:Kq,CustomizeUrlValidationError:Xq,CustomizeUrlInvalidCharacters:$q,CustomizeUrlProfanity:Qq,CustomizeUrlSaving:Zq,CustomizeUrlEditingMobileNarrow:eP});var tP={title:"Hooks / useShareLink"};function aP(){var e="zach.harrison@referralsaasquatch.com";var n=e;var t="klip-referral-program";Bp({programId:t,user:{id:e,accountId:n}})}var rP=Nu((function(){aP();var e=Z({programId:"klip-referral-program",tooltiplifespan:0,tooltiptext:""});return n("div",null,"Sharelink:"," ",n("code",{style:{borderStyle:"solid",borderWidth:"1px",padding:"2px"}},e.copyTextViewProps.copyString))}));var iP=Nu((function(){aP();return n(Q,__assign({},Z({programId:"klip-referral-program",tooltiptext:"Copied to clipboard",tooltiplifespan:1e3})))}));var sP=Nu((function(){aP();return n(Q,__assign({},Z({programId:"klip-referral-program",tooltiptext:"Copied to clipboard",tooltiplifespan:500})))}));var oP=Nu((function(){aP();return n(Q,__assign({},Z({programId:"klip-referral-program",tooltiptext:"Copied to clipboard",tooltiplifespan:1e3,allowCustomization:true})))}));var lP=Object.freeze({__proto__:null,default:tP,BareBonesView:rP,RegularView:iP,FastTooltip:sP,CustomizeUrlEnabled:oP});var dP='@author:Zach\n@owner:Zach\nFeature: Tabs\n\n The Tabs takes in the Tab component as children and maps through to display their header and content.\n\n Background: A user on the portal is viewing the widget\n Given a user viewing the Tabs component\n\n @motivating\n Scenario: Content inside the active tab is shown\n Given the header is set to <tabHeader>\n And the content inside is <tabContent>\n And the user has clicked <tabHeader>\n Then the <tabContent> is shown\n Examples:\n | tabHeader | tabContent |\n | Settings | This is the settings tab |\n | General | This is the general tab |\n | History | This is the history tab |\n\n @motivating\n @ui\n Scenario: The placement of the tabs is configurable\n Given The placement prop has been passed a valid <placement>\n Then tabs are placed on the <placementResult>\n Examples:\n | placement | placementResult |\n | | top of the content |\n | left | left hand side of the content |\n | right | right hand side of the content |\n | bottom | bottom of the content |\n\n\n @minutia\n @ui\n Scenario Outline: Tabs are setup to use the brand color\n Given the brand color is set to darkblue\n Then the text inside the active tab is darkblue\n And the underline of the active tab is darkblue\n\n @ui\n Scenario: Tabs are responsive\n Given the user is on a mobile device\n When there are more tabs than the horizontal space allows for\n Then clickable arrows appear on the left and right of the tabs\n And the tabs are scrollable\n\n @landmine\n Scenario: Program section cannot be used inside of tabs\n Given a tabs component\n And tab containing a program section with program-id "test123"\n And the program section wraps a component using program context\n When the tabs component is rendered\n Then the "sq:program-id" event listener for the program section is removed\n And the component does not use program-id "test123" to source its data\n And falls back to the global program id';var uP={title:"Components/Tabs",parameters:{scenario:dP}};var cP=function(){return n("div",{style:{maxWidth:"700px",margin:"auto"},innerHTML:'\n <sqm-tabs>\n <sqm-tab header="General">This is the general tab</sqm-tab>\n <sqm-tab header="Custom">This is the custom tab</sqm-tab>\n <sqm-tab header="Advanced">This is the advanced tab</sqm-tab>\n </sqm-tabs>\n '})};var mP=function(){return n("div",{style:{maxWidth:"700px",margin:"auto"},innerHTML:'\n <sqm-tabs text-color="red">\n <sqm-tab header="General">This is the general tab</sqm-tab>\n <sqm-tab header="Custom">This is the custom tab</sqm-tab>\n <sqm-tab header="Advanced">This is the advanced tab</sqm-tab>\n </sqm-tabs>\n '})};var pP=function(){return n("div",{style:{maxWidth:"700px",margin:"auto"},innerHTML:'\n <sqm-tabs>\n <sqm-tab header="General">This is the general tab</sqm-tab>\n <sqm-tab header="Custom">This is the custom tab</sqm-tab>\n <sqm-tab header="Advanced">This is the advanced tab</sqm-tab> \n <sqm-tab header="General">This is the general tab</sqm-tab>\n <sqm-tab header="Custom">This is the custom tab</sqm-tab>\n <sqm-tab header="Advanced">This is the advanced tab</sqm-tab>\n <sqm-tab header="General">This is the general tab</sqm-tab>\n <sqm-tab header="Custom">This is the custom tab</sqm-tab>\n <sqm-tab header="Advanced">This is the advanced tab</sqm-tab>\n <sqm-tab header="General">This is the general tab</sqm-tab>\n <sqm-tab header="Custom">This is the custom tab</sqm-tab>\n <sqm-tab header="Advanced">This is the advanced tab</sqm-tab>\n </sqm-tabs>\n '})};var gP=function(){return n("div",{style:{maxWidth:"700px",margin:"auto"},innerHTML:'\n <sqm-tabs>\n <sqm-tab header="Redeem">\n <sqm-reward-exchange-list></sqm-reward-exchange-list>\n </sqm-tab>\n </sqm-tabs>\n '})};var fP=function(){return n("div",{style:{maxWidth:"700px",margin:"auto"},innerHTML:'\n <sqm-tabs>\n <sqm-tab header="Leaderboard">\n <sqm-leaderboard></sqm-leaderboard>\n </sqm-tab>\n <sqm-tab header="Referral history">\n <sqm-referral-table>\n <sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-received-text="Reward received on"\n status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n >\n </sqm-empty\n ></sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table\n ><sqm-rewards-table-reward-column\n available-text="{availableAmount} remaining"\n column-title="Reward"\n copy-text="Copied!"\n redeemed-text="{redeemedAmount} redeemed"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user="Your Friend"\n column-title="Source"\n deleted-user="Deleted User"\n referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"\n reward-exchange-text="Reward Exchange"\n reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title="Status"\n expiry-text="Expires on "\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title="Date received"\n date-shown="dateGiven"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"\n empty-state-header="View your rewards"\n empty-state-text="Refer friends and complete tasks to view the details of your rewards"\n >\n </sqm-empty\n ></sqm-rewards-table>\n </sqm-tab>\n </sqm-tabs> \n '})};var hP=function(){return n("div",{style:{maxWidth:"700px",margin:"auto"},innerHTML:'\n <sqm-tabs placement="top">\n <sqm-tab header="Leaderboard">\n <sqm-hero-image\n image-url="https://i.imgur.com/MVgOJn7.png"\n description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"\n layout="columns"\n image-percentage="33%"\n padding-image="large"\n padding-text="large"\n background-color=""\n ></sqm-hero-image>\n <sqm-leaderboard></sqm-leaderboard>\n </sqm-tab>\n <sqm-tab header="Referral history">\n <sqm-referral-table>\n <sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-received-text="Reward received on"\n status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n >\n </sqm-empty\n ></sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table\n ><sqm-rewards-table-reward-column\n available-text="{availableAmount} remaining"\n column-title="Reward"\n copy-text="Copied!"\n redeemed-text="{redeemedAmount} redeemed"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user="Your Friend"\n column-title="Source"\n deleted-user="Deleted User"\n referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"\n reward-exchange-text="Reward Exchange"\n reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title="Status"\n expiry-text="Expires on "\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title="Date received"\n date-shown="dateGiven"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"\n empty-state-header="View your rewards"\n empty-state-text="Refer friends and complete tasks to view the details of your rewards"\n >\n </sqm-empty\n ></sqm-rewards-table>\n </sqm-tab>\n <sqm-tab header="Redeem">\n <sqm-reward-exchange-list></sqm-reward-exchange-list>\n </sqm-tab>\n </sqm-tabs> \n '})};var vP=function(){return n("div",{style:{maxWidth:"700px",margin:"auto"},innerHTML:'\n <sqm-tabs placement="bottom">\n <sqm-tab header="Leaderboard">\n <sqm-hero-image\n image-url="https://i.imgur.com/MVgOJn7.png"\n description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"\n layout="columns"\n image-percentage="33%"\n padding-image="large"\n padding-text="large"\n background-color=""\n ></sqm-hero-image>\n <sqm-leaderboard></sqm-leaderboard>\n </sqm-tab>\n <sqm-tab header="Referral history">\n <sqm-referral-table\n ><sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-received-text="Reward received on"\n status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n >\n </sqm-empty\n ></sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table\n ><sqm-rewards-table-reward-column\n available-text="{availableAmount} remaining"\n column-title="Reward"\n copy-text="Copied!"\n redeemed-text="{redeemedAmount} redeemed"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user="Your Friend"\n column-title="Source"\n deleted-user="Deleted User"\n referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"\n reward-exchange-text="Reward Exchange"\n reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title="Status"\n expiry-text="Expires on "\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title="Date received"\n date-shown="dateGiven"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"\n empty-state-header="View your rewards"\n empty-state-text="Refer friends and complete tasks to view the details of your rewards"\n >\n </sqm-empty\n ></sqm-rewards-table>\n </sqm-tab>\n <sqm-tab header="Redeem">\n <sqm-reward-exchange-list></sqm-reward-exchange-list>\n </sqm-tab>\n </sqm-tabs> \n '})};var bP=function(){return n("div",{style:{maxWidth:"900px",margin:"auto"},innerHTML:'\n <sqm-tabs placement="left">\n <sqm-tab header="Leaderboard">\n <sqm-hero-image\n image-url="https://i.imgur.com/MVgOJn7.png"\n description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"\n layout="columns"\n image-percentage="33%"\n padding-image="large"\n padding-text="large"\n background-color=""\n ></sqm-hero-image>\n <sqm-leaderboard></sqm-leaderboard>\n </sqm-tab>\n <sqm-tab header="Referral history">\n <sqm-referral-table\n ><sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-received-text="Reward received on"\n status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n >\n </sqm-empty\n ></sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table\n ><sqm-rewards-table-reward-column\n available-text="{availableAmount} remaining"\n column-title="Reward"\n copy-text="Copied!"\n redeemed-text="{redeemedAmount} redeemed"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user="Your Friend"\n column-title="Source"\n deleted-user="Deleted User"\n referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"\n reward-exchange-text="Reward Exchange"\n reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title="Status"\n expiry-text="Expires on "\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title="Date received"\n date-shown="dateGiven"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"\n empty-state-header="View your rewards"\n empty-state-text="Refer friends and complete tasks to view the details of your rewards"\n >\n </sqm-empty\n ></sqm-rewards-table>\n </sqm-tab>\n <sqm-tab header="Redeem">\n <sqm-reward-exchange-list></sqm-reward-exchange-list>\n </sqm-tab>\n </sqm-tabs> \n '})};var yP=function(){return n("div",{style:{maxWidth:"900px",margin:"auto"},innerHTML:'\n <sqm-tabs placement="right">\n <sqm-tab header="Leaderboard">\n <sqm-hero-image\n image-url="https://i.imgur.com/MVgOJn7.png"\n description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"\n layout="columns"\n image-percentage="33%"\n padding-image="large"\n padding-text="large"\n background-color=""\n ></sqm-hero-image>\n <sqm-leaderboard></sqm-leaderboard>\n </sqm-tab>\n <sqm-tab header="Referral history">\n <sqm-referral-table\n ><sqm-referral-table-user-column\n column-title="User"\n anonymous-user="Your Friend"\n deleted-user="Deleted User"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title="Referral status"\n converted-status-text="Converted"\n in-progress-status-text="In Progress"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title="Rewards"\n expiring-text="Expiring in"\n fuel-tank-text="Your code is"\n pending-for-text="{status} for {date}"\n reward-received-text="Reward received on"\n status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title="Date referred"\n date-shown="dateReferralStarted"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"\n empty-state-header="View your referral details"\n empty-state-text="Refer a friend to view the status of your referrals and rewards earned"\n >\n </sqm-empty\n ></sqm-referral-table>\n </sqm-tab>\n <sqm-tab header="Reward history">\n <sqm-rewards-table\n ><sqm-rewards-table-reward-column\n available-text="{availableAmount} remaining"\n column-title="Reward"\n copy-text="Copied!"\n redeemed-text="{redeemedAmount} redeemed"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user="Your Friend"\n column-title="Source"\n deleted-user="Deleted User"\n referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"\n reward-exchange-text="Reward Exchange"\n reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title="Status"\n expiry-text="Expires on "\n status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title="Date received"\n date-shown="dateGiven"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"\n empty-state-header="View your rewards"\n empty-state-text="Refer friends and complete tasks to view the details of your rewards"\n >\n </sqm-empty\n ></sqm-rewards-table>\n </sqm-tab>\n <sqm-tab header="Redeem">\n <sqm-reward-exchange-list></sqm-reward-exchange-list>\n </sqm-tab>\n </sqm-tabs> \n '})};var wP=Object.freeze({__proto__:null,default:uP,SimpleTabs:cP,CustomColor:mP,ManyTabs:pP,SingleTab:gP,ReferralProgram:fP,LoyaltyProgram:hP,BottomTabs:vP,LeftTabs:bP,RightTabs:yP});function _P(e){var t=e.matrix,a=e.props,r=e.Component;var i=Object.keys(t).map((function(e){var n=t[e];return n.map((function(n){var t;return t={},t[e]=n,t}))}));var s=TP.apply(void 0,i);var o=s.map((function(e){return e.reduce((function(e,n){return __assign(__assign({},e),n)}),{})}));return o.map((function(e){var t=__assign(__assign({},a),e);return n("div",null,n(xP,{values:t}),n("hr",null)," ",n("br",null),n(r,__assign({},t)),n("br",null))}))}function xP(e){var t=e.values;return n("table",null,n("tbody",null,Object.keys(t).map((function(e){return n("tr",null,n("th",null,e),n("td",null,JSON.stringify(t[e])))}))))}function TP(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var t=[],a=e.length-1;function r(n,i){for(var s=0,o=e[i].length;s<o;s++){var l=n.slice(0);l.push(e[i][s]);if(i==a)t.push(l);else r(l,i+1)}}r([],0);return t}var SP='@author:derek\n@owner:kutay\nFeature: Task Card\n\n\t@motivating\n\t@ui\n\tScenario: A header, body title and a CTA button are always displayed\n\t\tGiven the Task Card is configured with the following props\n\t\t\t| prop | value |\n\t\t\t| rewardAmount | "40" |\n\t\t\t| rewardUnit | "Points" |\n\t\t\t| cardTitle | Complete a survey |\n\t\t\t| buttonText | Take Survey |\n\t\tWhen a user views the Task Card\n\t\tThen they see "40 Points" as the heading\n\t\tAnd the "40" is bolded\n\t\tAnd they see "Complete a survey" bolded in the body\n\t\tAnd a details icon in the top right hand corner\n\t\tAnd a button with text "Take Survey" in the bottom right hand corner\n\t\tWhen they click the button\n\t\tThen they are redirected to "example.com" in a new window\n\n\t@motivating\n\t@ui\n\tScenario Outline: A Task Card description can be included but is not required\n\t\tGiven a Task Card\n\t\tAnd it has <descriptionPropValue>\n\t\tWhen a user views the Task card\n\t\tThen they <maySee> a chevron icon in the top right\n\t\tWhen they attempt to click the chevron\n\t\tThen they <maySee> the card description\n\t\tExamples:\n\t\t\t| descriptionPropValue | maySee |\n\t\t\t| This is my task card description | see |\n\t\t\t| | don\'t see |\n\n\t@motivating\n\tScenario Outline: CTA links can open in a new tab or the same tab\n\t\tGiven a Task Card\n\t\tAnd it has <openNewTabPropValue>\n\t\tWhen a user views the Task card\n\t\tAnd they click on the CTA\n\t\tThen they are redirected to the CTA link in <tab>\n\t\tExamples:\n\t\t\t| openNewTabPropValue | tab |\n\t\t\t| true | a new tab |\n\t\t\t| false | the same tab |\n\t\t\t| N/A | the same tab |\n\n\t@minutia\n\t@ui\n\tScenario: A loading state is displayed while the Task Card is loading\n\t\tGiven a Task Card component\n\t\tWhen a user views the Task Card\n\t\tThen a loading state is displayed\n\t\tWhen the Task Card has loaded\n\t\tThen the loading state disapears\n\n\t@motivating\n\t@ui\n\tScenario Outline: The Progress Bar can be shown or hidden but is hidden by default\n\t\tGiven a Task Card\n\t\tAnd it has <showProgressBarPropValue>\n\t\tWhen a user views the Task Card\n\t\tThen the progress bar <mayBe> displayed\n\t\tExamples:\n\t\t\t| showProgressBarPropValue | mayBe |\n\t\t\t| true | is |\n\t\t\t| false | isn\'t |\n\t\t\t| N/A | isn\'t |\n\n\t@motivating\n\tScenario: Clicking the CTA Button can trigger an event to be sent and refresh the widget\n\t\tGiven a Task card\n\t\tAnd it is configured to send an "test" event\n\t\tWhen a user views the Task card\n\t\tAnd clicks on the CTA\n\t\tThen a "test" event is sent to SSQT on the users behalf\n\t\tAnd the contents of the widget the card is dislayed within are refreshed\n\n\t@motivating\n\t@ui\n\tScenario Outline: Tasks can be repeatable or one-time only but are one-time only by default\n\t\tGiven a Task Card\n\t\tAnd it has <repeatablePropValue>\n\t\tAnd a user who has already completed the task\n\t\tWhen they view the Task Card\n\t\tThen they see a brand colour checkmark icon beside the card heading\n\t\tAnd the card <mayBe> brand colour\n\t\tAnd the CTA button <mayBe> disabled\n\t\tAnd the CTA button <mayBe> grey\n\t\tExamples:\n\t\t\t| repeatablePropValue | mayBe |\n\t\t\t| true | isn\'t |\n\t\t\t| false | is |\n\t\t\t| N/A | is |\n\n\t@motivating\n\tScenario Outline: Display duration hides or shows a task\n\t\tGiven a Task Card\n\t\tAnd it has a "display-duration" interval\n\t\tWhen a user views the Card on <day>\n\t\tThen card <mayBeHidden>\n\t\tExamples:\n\t\t\t| day | mayBeHidden |\n\t\t\t| a day before the interval | is hidden |\n\t\t\t| a day during the interval | is not hidden |\n\t\t\t| a day after the interval | is hidden |\n\n\t@motivating\n\tScenario: Task Expiries can be configured and disable the CTA after the expiry\n\t\tGiven a Task Card\n\t\tAnd it has an "reward-duration" interval\n\t\tWhen a user views the card on <day>\n\t\tThen the card <mayBeDisabled>\n\t\tAnd it <mayHaveAlert>\n\t\tAnd it <mayHaveExpiryText> on the bottom left hand side of the card\n\t\tExamples:\n\t\t\t| day | mayBeDisabled | mayHaveAlert | mayHaveExpiryText |\n\t\t\t| a day before the expiry interval | is disabled | has alert stating the month, date, year and time the task starts | doesn\'t have expiry text |\n\t\t\t| a day during the expiry interval | isn\'t disabled | doesn\'t have an alert | has the month, date, year and time the task expires |\n\t\t\t| a day after the expiry interval | is disabled | has alert stating the month, date, year and time the task expired | doesn\'t have expiry text |\n\n\t@motivating\n\tScenario Outline: Task Card dates support localization\n\t\tGiven a Task Card\n\t\tAnd it\'s configured with a expiry duration interval\n\t\tWhen a user with <locale> views the task card <atTime>\n\t\tThen they <seeDate> translated for <locale>\n\t\tExamples:\n\t\t\t| atTime | locale | seeDate |\n\t\t\t| before the interval | en | Task Start Date |\n\t\t\t| during the interval | en | Task End Date |\n\t\t\t| after the interval | en | Task Ended Date |\n\t\t\t| before the interval | fr | Task Start Date |\n\t\t\t| during the interval | fr | Task End Date |\n\t\t\t| after the interval | fr | Task Ended Date |\n\n\t@motivating\n\t@ui\n\tScenario Outline: A task completion count is displayed for repeatable tasks\n\t\tGiven a Task Card\n\t\tAnd it is configured for a repeatable task\n\t\tAnd has it has <goalValue>\n\t\tAnd a user with <userGoalProgress>\n\t\tWhen the user views the task card\n\t\tThen they see a repeat icon\n\t\tAnd the <text> in the bottom left hand corner\n\t\tAnd the <text> is brand colour\n\t\tExamples:\n\t\t\t| goalValue | userGoalProgress | text |\n\t\t\t| 2 | 0 | Completed 0 times |\n\t\t\t| 2 | 1 | Completed 0 times |\n\t\t\t| 2 | 2 | Completed 1 times |\n\t\t\t| 2 | 4 | Completed 2 times |\n\n\t@motivating\n\tScenario Outline: The source of a user\'s progress can be a custom field or a program goal\n\t\tGiven a Task Card\n\t\tAnd it is configured <progressSourcePath>\n\t\tWhen a user views the Task card\n\t\tThen the value at <progressSourcePath> is used to benchmark their progress against the "Goal Completion Count"\n\t\tExamples:\n\t\t\t| progressSourcePath |\n\t\t\t| /customFields/activityCount |\n\t\t\t| /customFields/purchaseTotal |\n\t\t\t| /programGoals/count%2FComment-on-Article |\n\t\t\t| /programGoals/count/Referral-Started%2Freferrals |\n\n\t@motivating\n\tScenario Outline: The users completion of a goal is calculated by the Goal Completion Number\n\t\tGiven a Task Card\n\t\tAnd it is configured for <goalValue>\n\t\tAnd a user who has <progressValue>\n\t\tWhen they view the Task Card\n\t\tThen they are shown to have <progressValue> towards <goalValue>\n\t\tWhen their progress grows larger than <goalValue>\n\t\tThen the task is marked as completed\n\t\tExamples:\n\t\t\t| goalValue | progressValue |\n\t\t\t| 1 | 0 |\n\t\t\t| 10 | 9 |\n\t\t\t| 5 | 2 |\n\n\t@motivating\n\tScenario: The Goal Completion Number defaults to 1\n\t\tGiven a Task Card without a configured "goal" value\n\t\tAnd a user who has <progressValue>\n\t\tWhen they view the Task Card\n\t\tThen it <mayBe> marked as completed\n\t\tExamples:\n\t\t\t| progressValue | mayBe |\n\t\t\t| 0 | isn\'t |\n\t\t\t| 1 | is |\n\t\t\t| 2 | is |\n\n\t@motivating\n\tScenario: CTA Button can be hidden on the task card\n\t\tGiven a Task Card\n\t\tAnd it has default prop values set\n\t\tAnd "hideButton" is true\n\t\tThen the task card is shown\n\t\tAnd the button is hidden\n';var EP='@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 |';var CP=function(e,t){return n("div",{class:"resizer"},t)};var RP=SP+EP;var IP={title:"Components/Task Card/",parameters:{scenario:RP}};var DP={display:"inline-flex",gap:"32px"};var AP={width:"347px",minWidth:"347px",resize:"horizontal",height:"fit-content",overflow:"hidden"};var kP={callbacks:{sendEvent:function(){return void 0},onClick:function(){return void 0}},content:{rewardAmount:"20",rewardUnit:"SaaSquatch Points",cardTitle:"Complete a survey",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",repeatable:false,showProgressBar:false,steps:false,buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:false,rewardDuration:null,completedText:"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",expiryMessage:"Ends {endDate}",startsOnMessage:"Starts {startDate}",endedMessage:"Ended {endDate}",finite:0,goal:1,locale:"en"},states:{progress:0,loading:false,loadingEvent:false}};var qP={callbacks:{sendEvent:function(){return void 0},onClick:function(){return void 0}},content:{rewardAmount:"40",rewardUnit:"SaaSquatch Points",cardTitle:"Comment on 5 articles",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",repeatable:false,showProgressBar:true,steps:true,buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:false,completedText:"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",rewardDuration:null,expiryMessage:"Ends {endDate}",startsOnMessage:"Starts {startDate}",endedMessage:"Ended {endDate}",finite:0,goal:5,locale:"en"},states:{progress:1,loading:false,loadingEvent:false}};var PP={callbacks:{sendEvent:function(){return void 0},onClick:function(){return void 0}},content:{rewardAmount:"150",rewardUnit:"SaaSquatch Points",cardTitle:"Spend $500 at our Store",description:"Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",repeatable:false,completedText:"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",showProgressBar:true,steps:false,progressBarUnit:"$",buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:false,rewardDuration:null,expiryMessage:"Ends {endDate}",startsOnMessage:"Starts {startDate}",endedMessage:"Ended {endDate}",finite:0,goal:500,locale:"en"},states:{progress:100,loading:false,loadingEvent:false}};var NP=function(){var e={rewardDuration:"2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z"};var t=__assign(__assign({},e),{repeatable:true});return n("div",{style:DP},n(CP,null,n("h4",null,"Not Repeatable"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{description:""}),states:__assign(__assign({},kP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{description:""}),states:__assign(__assign({},qP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{description:""}),states:__assign(__assign({},PP.states),{progress:230})}))),n(CP,null,n("h4",null,"Repeatable"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{repeatable:true}),states:__assign(__assign({},kP.states),{progress:2})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true}),states:__assign(__assign({},qP.states),{progress:7})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true}),states:__assign(__assign({},PP.states),{progress:650})}))),n(CP,null,n("h4",null,"Complete"),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:1})})),n("h5",null),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:5})})),n("h5",null),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:500})}))),n(CP,null,n("h4",null,"Unavailable"),n(b,__assign(__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:0})}),t)),n("h5",null),n(b,__assign(__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:3})}),t)),n("h5",null),n(b,__assign(__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:250})}),t))))};var FP=function(){return n("div",{style:DP},n("div",{style:AP},n("h4",null,"One Action"),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:1})})),n("h5",null)),n("div",{style:AP},n("h4",null,"A Couple Actions"),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1})})),n("h5",null),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:5})})),n("h5",null)),n("div",{style:AP},n("h4",null,"Many Actions"),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:230})})),n("h5",null),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:500})})),n("h5",null)))};var LP=function(){return n("div",{style:DP},n("div",{style:AP},n("h4",null,"One Action"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{repeatable:true}),states:__assign(__assign({},kP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{repeatable:true}),states:__assign(__assign({},kP.states),{progress:1})})),n("h5",null)),n("div",{style:AP},n("h4",null,"A Couple Actions"),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true}),states:__assign(__assign({},qP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true}),states:__assign(__assign({},qP.states),{progress:5})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true}),states:__assign(__assign({},qP.states),{progress:7})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true}),states:__assign(__assign({},qP.states),{progress:10})})),n("h5",null)),n("div",{style:AP},n("h4",null,"Many Actions"),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true}),states:__assign(__assign({},PP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true}),states:__assign(__assign({},PP.states),{progress:500})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true}),states:__assign(__assign({},PP.states),{progress:650})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true}),states:__assign(__assign({},PP.states),{progress:1e3})})),n("h5",null)))};var OP=function(){return n("div",{style:DP},n("div",{style:AP},n("h4",null,"One Action"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{repeatable:true,finite:2}),states:__assign(__assign({},kP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{repeatable:true,finite:2}),states:__assign(__assign({},kP.states),{progress:1})})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{repeatable:true,finite:2}),states:__assign(__assign({},kP.states),{progress:2})})),n("h5",null)),n("div",{style:AP},n("h4",null,"A Couple Actions"),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true,finite:2}),states:__assign(__assign({},qP.states),{progress:2})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true,finite:2}),states:__assign(__assign({},qP.states),{progress:5})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true,finite:2}),states:__assign(__assign({},qP.states),{progress:10})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true,finite:3}),states:__assign(__assign({},qP.states),{progress:12})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true,finite:3}),states:__assign(__assign({},qP.states),{progress:15})})),n("h5",null)),n("div",{style:AP},n("h4",null,"Many Actions"),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true,finite:2}),states:__assign(__assign({},PP.states),{progress:200})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true,finite:3}),states:__assign(__assign({},PP.states),{progress:500})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true,finite:2}),states:__assign(__assign({},PP.states),{progress:1e3})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true,finite:3}),states:__assign(__assign({},PP.states),{progress:1200})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true,finite:3}),states:__assign(__assign({},PP.states),{progress:1500})})),n("h5",null)))};var UP=function(){var e={rewardDuration:on.DateTime.now().minus({days:1}).toISO()+"/"+on.DateTime.now().plus({days:1}).toISO()};var t=__assign(__assign({},e),{repeatable:true});return n("div",{style:DP},n("div",{style:AP},n("h4",null,"One Action"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),e)})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),t)})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),t),states:__assign(__assign({},kP.states),{progress:1})})),n("h5",null)),n("div",{style:AP},n("h4",null,"A Couple Actions"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},qP.content),e)})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},qP.content),t)})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},qP.content),t),states:__assign(__assign({},qP.states),{progress:5})})),n("h5",null)),n("div",{style:AP},n("h4",null,"Many Actions"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},PP.content),e)})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},PP.content),t)})),n("h5",null),n(b,__assign(__assign({},kP),{content:__assign(__assign({},PP.content),t),states:__assign(__assign({},PP.states),{progress:1e3})})),n("h5",null)))};var BP=function(){var e={states:{loading:true,progress:0,loadingEvent:false}};return n("div",{style:DP},n("div",{style:AP},n("h4",null,"One Action"),n(b,__assign(__assign({},kP),e))," ",n("h5",null),n(b,__assign(__assign({},kP),e))," ",n("h5",null)),n("div",{style:AP},n("h4",null,"A Couple Actions"),n(b,__assign(__assign({},qP),e))," ",n("h5",null),n(b,__assign(__assign({},qP),e))," ",n("h5",null)),n("div",{style:AP},n("h4",null,"Many Actions"),n(b,__assign(__assign({},PP),e))," ",n("h5",null),n(b,__assign(__assign({},PP),e))," ",n("h5",null)))};var MP=function(){var e={rewardDuration:on.DateTime.now().plus({days:1}).toISO()+"/"+on.DateTime.now().plus({days:2}).toISO()};var t=__assign(__assign({},e),{repeatable:true});return n("div",{style:DP},n("div",{style:AP},n("h4",null,"One Action"),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:0}),content:__assign(__assign({},kP.content),e)})),n("h5",null),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:1}),content:__assign(__assign({},kP.content),e)})),n("h5",null),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:0}),content:__assign(__assign({},kP.content),t)})),n("h5",null),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:1}),content:__assign(__assign({},kP.content),t)})),n("h5",null)),n("div",{style:AP},n("h4",null,"A Couple Actions"),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1}),content:__assign(__assign({},qP.content),e)})),n("h5",null),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1}),content:__assign(__assign({},qP.content),e)})),n("h5",null),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1}),content:__assign(__assign({},qP.content),t)})),n("h5",null),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1}),content:__assign(__assign({},qP.content),t)})),n("h5",null)),n("div",{style:AP},n("h4",null,"Many Actions"),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:100}),content:__assign(__assign({},PP.content),e)})),n("h5",null),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:500}),content:__assign(__assign({},PP.content),e)})),n("h5",null),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:100}),content:__assign(__assign({},PP.content),t)})),n("h5",null),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:500}),content:__assign(__assign({},PP.content),t)})),n("h5",null)))};var GP=function(){var e={rewardDuration:on.DateTime.now().minus({days:2}).toISO()+"/"+on.DateTime.now().minus({days:1}).toISO()};var t=__assign(__assign({},e),{repeatable:true});return n("div",{style:DP},n("div",{style:AP},n("h4",null,"One Action"),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:0}),content:__assign(__assign({},kP.content),e)})),n("h5",null),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:1}),content:__assign(__assign({},kP.content),e)})),n("h5",null),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:0}),content:__assign(__assign({},kP.content),t)})),n("h5",null),n(b,__assign(__assign({},kP),{states:__assign(__assign({},kP.states),{progress:1}),content:__assign(__assign({},kP.content),t)})),n("h5",null)),n("div",{style:AP},n("h4",null,"A Couple Actions"),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1}),content:__assign(__assign({},qP.content),e)})),n("h5",null),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1}),content:__assign(__assign({},qP.content),e)})),n("h5",null),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1}),content:__assign(__assign({},qP.content),t)})),n("h5",null),n(b,__assign(__assign({},qP),{states:__assign(__assign({},qP.states),{progress:1}),content:__assign(__assign({},qP.content),t)})),n("h5",null)),n("div",{style:AP},n("h4",null,"Many Actions"),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:100}),content:__assign(__assign({},PP.content),e)})),n("h5",null),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:500}),content:__assign(__assign({},PP.content),e)})),n("h5",null),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:100}),content:__assign(__assign({},PP.content),t)})),n("h5",null),n(b,__assign(__assign({},PP),{states:__assign(__assign({},PP.states),{progress:500}),content:__assign(__assign({},PP.content),t)})),n("h5",null)))};var VP=function(){var e={rewardDuration:"2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z"};var t=__assign(__assign({},e),{repeatable:true});return n("div",{style:DP},n(CP,null,n("h4",null,"Not Repeatable"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{description:"",hideButton:true}),states:__assign(__assign({},kP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{description:"",hideButton:true}),states:__assign(__assign({},qP.states),{progress:0})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{description:"",hideButton:true}),states:__assign(__assign({},PP.states),{progress:230})}))),n(CP,null,n("h4",null,"Repeatable"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{repeatable:true,hideButton:true}),states:__assign(__assign({},kP.states),{progress:2})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{repeatable:true,hideButton:true}),states:__assign(__assign({},qP.states),{progress:7})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{repeatable:true,hideButton:true}),states:__assign(__assign({},PP.states),{progress:650})}))),n(CP,null,n("h4",null,"Complete"),n(b,__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{hideButton:true}),states:__assign(__assign({},kP.states),{progress:1})})),n("h5",null),n(b,__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{hideButton:true}),states:__assign(__assign({},qP.states),{progress:5})})),n("h5",null),n(b,__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{hideButton:true}),states:__assign(__assign({},PP.states),{progress:500})}))),n(CP,null,n("h4",null,"Unavailable"),n(b,__assign(__assign(__assign({},kP),{content:__assign(__assign({},kP.content),{hideButton:true}),states:__assign(__assign({},kP.states),{progress:0})}),t)),n("h5",null),n(b,__assign(__assign(__assign({},qP),{content:__assign(__assign({},qP.content),{hideButton:true}),states:__assign(__assign({},qP.states),{progress:3})}),t)),n("h5",null),n(b,__assign(__assign(__assign({},PP),{content:__assign(__assign({},PP.content),{hideButton:true}),states:__assign(__assign({},PP.states),{progress:250})}),t))))};var WP=function(){var e={progress:0,goal:500,progressBarUnit:"$"};return n("div",null,n(_P,{matrix:{progress:[0,100,500,650,1200]},props:e,Component:ee}))};var jP=function(){var e={progress:0,steps:true,goal:5};return n("div",null,n(_P,{matrix:{progress:[0,1,5,7,12]},props:e,Component:ee}))};var HP=function(){var e={progress:0,goal:500,progressBarUnit:"$",repeatable:true};return n("div",null,n(_P,{matrix:{progress:[0,250,500,750,1e3,1250]},props:e,Component:ee}))};var zP=function(){var e={progress:0,steps:true,goal:5,repeatable:true};return n("div",null,n(_P,{matrix:{progress:[0,1,5,7,12]},props:e,Component:ee}))};var YP=function(){var e={progress:0,goal:500,progressBarUnit:"$",repeatable:true,finite:2};return n("div",null,n(_P,{matrix:{progress:[0,250,500,750,1e3,1250]},props:e,Component:ee}))};var JP=function(){var e={progress:0,steps:true,goal:5,repeatable:true,finite:2};return n("div",null,n(_P,{matrix:{progress:[0,1,5,7,10,12]},props:e,Component:ee}))};var KP=Object.freeze({__proto__:null,default:IP,TaskCard:NP,TaskCardNotRepeatable:FP,TaskCardRepeatable:LP,TaskCardRepeatableFinite:OP,TaskCardEndDate:UP,TaskCardLoading:BP,TaskCardNotStarted:MP,TaskCardEnded:GP,TaskCardButtonHidden:VP,ProgressBar:WP,ProgressBarSteps:jP,ProgressBarRepeatable:HP,ProgressBarStepsRepeatable:zP,ProgressBarFinite:YP,ProgressBarStepsFinite:JP});var XP={title:"Hooks / useTaskCard"};function $P(){var e="sam+klip@saasquat.ch";var n=e;var t="klip-referral-program";Bp({programId:t,user:{id:e,accountId:n}});return{id:e,accountId:n}}var QP=Nu((function(){$P();return n("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})}));var ZP=Nu((function(){$P();return n("sqm-card-feed",null,n("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"}),n("sqb-program-section",{"program-id":"klip-loyalty"},n("sqm-task-card",{"reward-amount":"50","card-title":"Follow Us on X",description:"Earn 50 points when you Follow Us on X!","button-text":"Follow","button-link":"https://twitter.com/",goal:1,"stat-type":"/programGoals/count/Follow-on-Social-Media","open-new-tab":"true","event-key":"socialFollow"})),n("sqm-task-card",{"reward-amount":"250",goal:500,"show-progress-bar":"true","card-title":"Spend $500 on Klip Products",description:"Earn 250 points when you spend $500 or more on Klip products.","button-text":"See plans","button-link":"https://klip-staging.vercel.app/app/plans","stat-type":"/customFields/purchaseTotal","open-new-tab":"false"}),n("sqb-program-section",{"program-id":"klip-loyalty"},n("sqm-task-card",{"reward-amount":"25",goal:1,"card-title":"Upload Your First Video",description:"Earn 25 points for exploring the Klip platform when you upload your first video.","button-text":"Upload","button-link":"https://klip-staging.vercel.app/app","stat-type":"/programGoals/count/Record-First-Video","open-new-tab":"false"})),n("sqm-task-card",{"reward-amount":"100",goal:5,repeatable:true,"show-progress-bar":"true",steps:true,"card-title":"Share 5 Videos",description:"Earn 100 points for collaborating each time you share 5 videos.","button-text":"Share","button-link":"https://klip-staging.vercel.app/app","stat-type":"/customFields/videosShared","open-new-tab":"false"}),n("sqb-program-section",{"program-id":"klip-loyalty"},n("sqm-task-card",{"reward-amount":"1","reward-unit":"Free Month",goal:1,"card-title":"Upgrade Your Plan",description:"Buy a Business or Enterprise plan and get 1 free month of Klip for being a committed customer.","button-text":"Upgrade","button-link":"https://klip-staging.vercel.app/app/plans","stat-type":"/programGoals/count/Upgrade-Plan","open-new-tab":"false"})),n("sqm-task-card",{"reward-amount":"200",goal:5,"show-progress-bar":"","card-title":"Purchase 5 Seats",description:"Earn 200 points when you expand your Klip Team by purchasing 5 or more seats.","button-text":"Purchase seats","button-link":"https://klip-staging.vercel.app/app/plans","stat-type":"/customFields/seatCount"}),n("sqm-task-card",{"reward-amount":"250",goal:1,"show-progress-bar":"","card-title":"Upload 1 Hour of Video",description:"Record and upload an hour of video and get 250 points for being a super user.","button-text":"Upload","button-link":"https://klip-staging.vercel.app/app","stat-type":"/customFields/videoHoursCount","progress-bar-unit":"","reward-unit":"Points"}),n("sqb-program-section",{"program-id":"klip-loyalty"},n("sqm-task-card",{"reward-amount":"100",goal:1,"card-title":"Complete an NPS Survey",description:"Fill out our NPS survey and get 100 points for giving us honest feedback. Be sure to use your Klip account email when completing the survey.","button-text":"Complete survey","button-link":"https://y5tqgj96plv.typeform.com/to/p6N7lHUk","stat-type":"/programGoals/count/NPS-Survey","reward-unit":"Points","open-new-tab":"true"})),n("sqb-conditional-section",{condition:"'champion' in user.segments"},n("sqb-program-section",{"program-id":"klip-loyalty"},n("sqm-task-card",{"reward-amount":"$100",goal:1,"card-title":"Complete a Case Study",description:"Write a Klip case study and earn a $100 Visa Gift Card for letting us know how Klip has helped your team succeed.","button-text":"Complete case study","button-link":"https://y5tqgj96plv.typeform.com/to/CPhkFBBW","stat-type":"/programGoals/count/Case-Study","reward-unit":"Visa Gift Card","open-new-tab":"true"}))))}));var eN=Object.freeze({__proto__:null,default:XP,TaskCard:QP,TaskCardFeed:ZP});var nN={title:"Components/Progress Bar"};var tN={progress:2,goal:4,steps:true};var aN=function(){return n(ne,__assign(__assign({},tN),{stageCount:4,currentStage:2}))};var rN=Object.freeze({__proto__:null,default:nN,TaxAndPayoutsProgressBar:aN});var iN={title:"Components/Text"};var sN=function(){return n("sqm-text",{textColor:"slateblue"},n("p",null,"This is the text component"))};var oN=function(){return n("sqm-text",{fontSize:36},n("p",null,"This is the text component"))};var lN=Object.freeze({__proto__:null,default:iN,PurpleText:sN,CustomFontSize:oN});var dN='@author:derek\n@owner:kutay\nFeature: Timeline\n\n @motivating\n @ui\n Scenario: The timeline adds lines between timeline entries\n Given a timeline\n And it has many timeline entries as children\n When a user views the timeline\n Then they see all timeline entries are connected by brand colour lines\n And see that the last entry does not have a line\n\n @motivating\n @ui\n Scenario Outline: The timeline can set the icons used by its timeline entries\n Given a timeline with "icon" <iconPropValue>\n And it has many timeline entries as children\n When a user views the timeline\n Then they see the timeline entries have a <icon>\n Examples:\n | iconPropValue | icon |\n | gift | gift icon |\n | gift | gift icon |\n | circle | brand colour circle |\n';var uN='@author:derek\n@owner:kutay\nFeature: Timeline Entry\n\n @motivating\n @ui\n Scenario: Timeline entries have an icon, a reward and an entry desciption\n Given an timeline entry with the following props\n | prop | value |\n | unit | Visa Giftcard |\n | reward | 50$ |\n | desc | Earn a 50$ Visa Giftcard for each referral you make |\n When a user views the entry\n Then they see a gift icon\n And see "$50 VISA GIFTCARRD" to the right\n And "$50" is bolded with x-large font size\n And below they see "Earn a 50$ Visa Giftcard for each referral you make"\n\n @motivating\n @ui\n Scenario Outline: Icon can either be a gift or a brand colour cirle\n Given a timeline entry with "icon" <iconPropValue>\n When a user views the entry\n Then they see an <icon>\n Examples:\n | iconPropValue 1 | icon |\n | gift | gift |\n | circle | brand colour circle |\n | | gift |\n\n @motivating\n @ui\n Scenario: A timeline entry can display a line to connect it to another entry\n Given a timeline entry with "line" "true"\n When a user views the entry\n Then they see the entry\n But it has a brand colour line connecting it to the next timeline entry\n';var cN=dN+uN;var mN={title:"Components/Timeline",parameters:{scenario:cN}};var pN=function(){return n("div",null,n("sqm-timeline",null,n("sqm-timeline-entry",{textColor:"red",lineColor:"red",reward:"75",unit:"points",desc:"Your friends signs up for a free trial"})),n("br",null)," ",n("hr",null)," ",n("br",null),n("sqm-timeline",{icon:"circle"},n("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"})))};var gN=function(){return n("div",null,n("sqm-timeline",null,n("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),n("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"})),n("br",null)," ",n("hr",null)," ",n("br",null),n("sqm-timeline",{icon:"circle"},n("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),n("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"})))};var fN=function(){return n("div",null,n("sqm-timeline",null,n("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),n("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),n("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"})),n("br",null)," ",n("hr",null)," ",n("br",null),n("sqm-timeline",{icon:"circle"},n("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),n("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),n("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"})))};var hN=function(){return n("div",null,n("sqm-timeline",null,n("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),n("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),n("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"}),n("sqm-timeline-entry",{reward:"$1000",unit:"visa giftcard",desc:"Your friend purchases Klip Team"})),n("br",null)," ",n("hr",null)," ",n("br",null),n("sqm-timeline",{icon:"circle"},n("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),n("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),n("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"}),n("sqm-timeline-entry",{reward:"$1000",unit:"visa giftcard",desc:"Your friend purchases Klip Team"})))};var vN=function(){return n("sqm-timeline",null,n("sqm-timeline-entry",{"text-color":"red","line-color":"red",reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),n("sqm-timeline-entry",{"text-color":"red","line-color":"red",reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),n("sqm-timeline-entry",{"text-color":"red","line-color":"red",reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"}),n("sqm-timeline-entry",{"text-color":"red","line-color":"red",reward:"$1000",unit:"visa giftcard",desc:"Your friend purchases Klip Team"}))};var bN=Object.freeze({__proto__:null,default:mN,TimelineWith1Reward:pN,TimelineWith2Rewards:gN,TimelineWith3Rewards:fN,TimelineWith4Rewards:hN,TimelineWithCustomColors:vN});var yN='@author:derek\n@owner:noah\nFeature: Titled Section\n\n Background: The titled section has a label and content\n Given a titled section\n And it has a label\n And it has content in the content slot\n\n @motivating\n @ui\n Scenario: Text alignment defaults to left align but can be configured\n Given the titled section has "text-align" <textAlignPropValue>\n When a user views the titled section\n Then the text in the label is <aligned>\n And the text in the content is <aligned>\n Examples:\n | textAlignPropValue | aligned |\n | center | center |\n | left | left |\n | right | right |\n | | left |\n\n @minutia\n @ui\n Scenario: Label margin is configurable\n Given the titled section has "label-margin" <marginPropValue>\n When a user views the titled section\n Then <marginPropValue> margin is between the label and content\n Examples:\n | marginPropValue | margin |\n | none | no |\n | xxx-small | xxx-small |\n | xx-small | xx-small |\n | x-small | x-small |\n | small | small |\n | medium | medium |\n | large | large |\n | x-large | x-large |\n | xx-large | xx-large |\n | xxx-large | xxx-large |\n | xxxx-large | xxxx-large |\n | | no |\n\n @minutia\n @ui\n Scenario Outline: Titled section padding is configurable\n Given the titled section has "padding" <paddingPropValue>\n When a user views the titled section\n Then <paddingPropValue> padding is applied around the titled section\n Examples:\n | paddingPropValue | padding |\n | none | no |\n | xxx-small | xxx-small |\n | xx-small | xx-small |\n | x-small | x-small |\n | small | small |\n | medium | medium |\n | large | large |\n | x-large | x-large |\n | xx-large | xx-large |\n | xxx-large | xxx-large |\n | xxxx-large | xxxx-large |\n | | no |';var wN={title:"Components/Titled Section",parameters:{scenario:yN}};var _N=function(){return n("sqm-titled-section",{"text-align":"left"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards"),n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America")))};var xN=function(){return n("sqm-titled-section",{"text-align":"center"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards"),n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America")))};var TN=function(){return n("sqm-titled-section",{"text-align":"right"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards"),n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America")))};var SN=function(){return n("div",null,n("h3",null,"None"),n("sqm-titled-section",{padding:"none"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xxx-small"),n("sqm-titled-section",{padding:"xxx-small"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xx-small"),n("sqm-titled-section",{padding:"xx-small"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"x-small"),n("sqm-titled-section",{padding:"x-small"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"small"),n("sqm-titled-section",{padding:"small"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"medium"),n("sqm-titled-section",{padding:"medium"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"large"),n("sqm-titled-section",{padding:"large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"x-large"),n("sqm-titled-section",{padding:"x-large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xx-large"),n("sqm-titled-section",{padding:"xx-large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xxx-large"),n("sqm-titled-section",{padding:"xxx-large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xxxx-large"),n("sqm-titled-section",{padding:"xxxx-large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))))};var EN=function(){return n("div",null,n("h3",null,"None"),n("sqm-titled-section",{"label-margin":"none"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xxx-small"),n("sqm-titled-section",{"label-margin":"xxx-small"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xx-small"),n("sqm-titled-section",{"label-margin":"xx-small"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"x-small"),n("sqm-titled-section",{"label-margin":"x-small"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"small"),n("sqm-titled-section",{"label-margin":"small"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"medium"),n("sqm-titled-section",{"label-margin":"medium"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"large"),n("sqm-titled-section",{"label-margin":"large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"x-large"),n("sqm-titled-section",{"label-margin":"x-large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xx-large"),n("sqm-titled-section",{"label-margin":"xx-large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xxx-large"),n("sqm-titled-section",{"label-margin":"xxx-large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))),n("br",null),n("hr",null),n("br",null),n("h3",null,"xxxx-large"),n("sqm-titled-section",{"label-margin":"xxxx-large"},n("sqm-text",{slot:"label"},n("h3",null,"Earn more rewards")),n("sqm-text",{slot:"content"},n("p",null,"Get points while using Klip. Use those points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America"))))};var CN=Object.freeze({__proto__:null,default:wN,AlignLeft:_N,AlignCenter:xN,AlignRight:TN,Padding:SN,LabelMargin:EN});var RN={title:"Tests/User Name"};var IN=function(){return n("sqm-user-name",{demoData:{loading:false,loadingText:"...",username:"Test Testerson"}})};var DN=function(){return n("sqm-user-name",null)};var AN=Object.freeze({__proto__:null,default:RN,DemoData:IN,Username:DN});var kN={title:"Components/Widget Code Verification"};var qN={initialiseLoading:false,email:"testemail@example.com",loading:false,verifyFailed:false,emailResent:false};var PN=function(){return n("sqm-code-verification",{demoData:{states:qN}})};var NN=function(){return n("sqm-code-verification",{demoData:{states:__assign(__assign({},qN),{initialiseLoading:true})}})};var FN=function(){return n("sqm-code-verification",{demoData:{states:__assign(__assign({},qN),{loading:true})}})};var LN=function(){return n("sqm-code-verification",{demoData:{states:__assign(__assign({},qN),{emailResent:true})}})};var ON=function(){return n("sqm-code-verification",{demoData:{states:__assign(__assign({},qN),{verifyFailed:true})}})};var UN=Object.freeze({__proto__:null,default:kN,Default:PN,InitialLoading:NN,Loading:FN,CodeResent:LN,VerificationFailed:ON});var BN={title:"Components/Widget Email Verification"};var MN={email:"",error:false,loading:false,initialLoading:false,sendCodeError:false};var GN=function(){return n("sqm-email-verification",{demoData:{}})};var VN=function(){return n("div",null,n("sqm-text",null,n("h4",null,"Verify your email")),n("sqm-text",null,n("sub",null,"To get your cash paid out directly to your bank account, please complete your account setup")),n("sqm-email-verification",{demoData:{states:__assign(__assign({},MN),{email:"test@example.com"})}}))};var WN=function(){return n("sqm-email-verification",{demoData:{states:__assign(__assign({},MN),{initialLoading:true})}})};var jN=function(){return n("sqm-email-verification",{demoData:{states:__assign(__assign({},MN),{loading:true})}})};var HN=function(){return n("div",null,n("sqm-text",null,n("h4",null,"Verify your email")),n("sqm-text",null,n("sub",null,"To get your cash paid out directly to your bank account, please complete your account setup")),n("sqm-email-verification",{demoData:{states:__assign(__assign({},MN),{email:"test@example.com"})}}))};var zN=function(){return n("sqm-email-verification",{demoData:{states:__assign(__assign({},MN),{error:true})}})};var YN=function(){return n("sqm-email-verification",{demoData:{states:__assign(__assign({},MN),{sendCodeError:true})}})};var JN=Object.freeze({__proto__:null,default:BN,Default:GN,EmailIsPrefilled:VN,Loading:WN,SaveLoading:jN,WithHeader:HN,InvalidEmail:zN,SendCodeError:YN});var KN={title:"Components/Banking Information Form"};var XN={states:{showVerification:false,hideSteps:false,disabled:false,loading:false,hideBackButton:false,formState:{bankCountry:"US",paymentMethodChecked:"toBankAccount"},hasPayPal:false,isPartner:false,saveDisabled:false,thresholds:[],currency:"USD",loadingError:false,email:"test@example.com",showModal:false},callbacks:{onVerificationHide:function(){},onVerification:function(){},onSubmit:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2,console.log("Submit")]}))}))},setPaymentMethodChecked:function(){},setPaymentScheduleChecked:function(){},setCountrySearch:function(){},onBack:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2,console.log("back")]}))}))},onModalOpen:function(){},onModalClose:function(){}},refs:{formRef:{current:null}}};var $N=function(){return n("sqm-banking-info-form",null)};var QN=function(){return n("sqm-banking-info-form",{demoData:{states:__assign(__assign({},XN.states),{loading:true})}})};var ZN=function(){return n("sqm-banking-info-form",{demoData:{states:__assign(__assign({},XN.states),{loading:true,loadingError:true})}})};var eF=function(){return n("sqm-banking-info-form",{demoData:{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{errors:{inputErrors:{beneficiaryAccountName:{type:"required"},bankAccountType:{type:"required"},bankAccountNumber:{type:"required"},iban:{type:"required"},swiftCode:{type:"required"},routingCode:{type:"required"},bankName:{type:"required"},beneficiaryClassification:{type:"required"},patronymicName:{type:"required"},voCode:{type:"required"},agencyCode:{type:"required"},bankAddress:{type:"required"},bankCity:{type:"required"},bankCountry:{type:"required"},bankState:{type:"required"},bankPostalCode:{type:"required"},branchCode:{type:"required"},balanceThreshold:{type:"required"},fixedDay:{type:"required"}}}})})}})};var nF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:{bankCountry:"US"},currency:"USD"})})})};var tF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{errors:{general:true}})})})})};var aF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:{bankCountry:"US"},loading:true,currency:"USD"})})})};var rF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{bankCountry:"AR",paymentScheduleChecked:"FIXED_DAY",paymentMethodChecked:"toBankAccount"}),currency:"ARS"})})})};var iF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{bankCountry:"MX",paymentScheduleChecked:"FIXED_DAY",paymentMethodChecked:"toBankAccount"}),currency:"MXN"})})})};var sF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{bankCountry:"US"}),currency:"GBP"})})})};var oF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{bankCountry:"CA"}),currency:"CAD"})})})};var lF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{bankCountry:"CA"}),currency:"USD"})})})};var dF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{bankCountry:"ES"}),currency:"USD"})})})};var uF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{isPartner:true,currency:"USD"})})})};var cF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{paymentMethodChecked:"toPayPalAccount"})})})})};var mF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{loading:true,formState:__assign(__assign({},XN.states.formState),{paymentMethodChecked:"toPayPalAccount"})})})})};var pF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{bankCountry:"US",paymentScheduleChecked:"BALANCE_THRESHOLD"}),currency:"USD"})})})};var gF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({errors:{inputErrors:{balanceThreshold:{type:"required"}}}},XN.states.formState),{bankCountry:"US",paymentScheduleChecked:"BALANCE_THRESHOLD"}),currency:"USD"})})})};var fF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{loading:true,formState:__assign(__assign({},XN.states.formState),{bankCountry:"US",paymentScheduleChecked:"BALANCE_THRESHOLD"}),currency:"USD"})})})};var hF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({},XN.states.formState),{bankCountry:"US",paymentScheduleChecked:"FIXED_DAY"}),currency:"USD"})})})};var vF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{formState:__assign(__assign({errors:{inputErrors:{fixedDay:{type:"required"}}}},XN.states.formState),{bankCountry:"US",paymentScheduleChecked:"FIXED_DAY"}),currency:"USD"})})})};var bF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{loading:true,formState:__assign(__assign({},XN.states.formState),{bankCountry:"US",paymentScheduleChecked:"FIXED_DAY"}),currency:"USD"})})})};var yF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{isPartner:true,showVerification:true,formState:__assign(__assign({},XN.states.formState),{bankCountry:"US",paymentScheduleChecked:"FIXED_DAY"}),currency:"USD"})})})};var wF=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},XN),{states:__assign(__assign({},XN.states),{showModal:true})})})};var _F=Object.freeze({__proto__:null,default:KN,BankingInfoFormDefault:$N,BankingInfoFormDefaultLoading:QN,BankingInfoFormDefaultWithLoadingError:ZN,BankingInfoFormDefaultWithValidationErrors:eF,BankingInfoFormCountryUSCurrencyUSD:nF,BankingInfoFormGeneralError:tF,BankingInfoFormCountryUSCurrencyUSDLoading:aF,BankingInfoFormCountryARCurrencyARS:rF,BankingInfoFormCountryMXCurrencyMXN:iF,BankingInfoFormCountryUSCurrencyGBP:sF,BankingInfoFormCountryCanadaCurrencyCAD:oF,BankingInfoFormCountryCanadaCurrencyUSD:lF,BankingInfoFormCountrySpainCurrencyUSD:dF,BankingInfoFormIsPartner:uF,BankingInfoFormPaypalChecked:cF,BankingInfoFormPaypalCheckedLoading:mF,BankingInfoFormWithBalanceThresholdPaymentSchedule:pF,BankingInfoFormWithBalanceThresholdPaymentScheduleWithError:gF,BankingInfoFormWithBalanceThresholdPaymentScheduleLoading:fF,BankingInfoFormWithFixedDayPaymentSchedule:hF,BankingInfoFormWithFixedDayPaymentScheduleWithError:vF,BankingInfoFormWithFixedDayPaymentScheduleLoading:bF,BankingInfoFormVerififyIdentityModal:yF,BankingInfoFormModalOpen:wF});var xF={title:"Components/Tax And Cash Dashboard View"};var TF={statusTextActive:"Active",statusTextNotActive:"Invalid Tax Form",statusTextNotVerified:"Not Verified",statusTextRequired:"Required",requiredTaxForm:"Your payouts are on hold until you submit a {taxFormType} tax form.",badgeTextSubmittedOn:"Submitted on {dateSubmitted}.",badgeTextSubmittedOnW8:"Submitted on {dateSubmitted}. Valid for three years after submission.",badgeTextAwaitingReview:"Awaiting review. Submitted on {dateSubmitted}.",taxAlertHeaderNotActiveW9:"Your W-9 tax form has personal information that doesn't match your profile",taxAlertHeaderNotActiveW8:"{documentType} tax form is invalid",taxAlertNotActiveMessageW9:"Please resubmit a new {documentType} form.",taxAlertNotActiveMessageW8:"Your tax form may have expired or has personal information that doesn't match your profile. Please submit a new {documentType} form.",invalidForm:"Make sure your information is correct and submit new form.",bankingInformationSectionHeader:"Payout information",taxDocumentSectionHeader:"Tax documents",taxDocumentSectionSubHeader:"{documentType} tax form",taxDocumentSectionSubHeaderNoDocument:"Tax form",indirectTaxInfoSectionHeader:"Indirect tax",indirectTaxInfoCanada:"Registered in {province}, {country}",indirectTaxInfoOtherCountry:"Registered in {country}",indirectTaxInfoSpain:"Registered in {country}, {subRegion}",indirectTaxTooltipSupport:"To make changes to your indirect tax information, please contact our {supportLink}.",indirectTaxDetails:"{indirectTaxType} number: {indirectTaxNumber}",newFormButton:"Submit new tax form",editPaymentInformationButton:"Edit payout information",notRegisteredForTax:"Not registered for indirect tax. If you've previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.",qstNumber:"QST number: {qstNumber}",subRegionTaxNumber:"Income tax number: {subRegionTaxNumber}",invoiceColumnTitle:"Invoice",dateColumnTitle:"Date",earningsColumnTitle:"Earnings",indirectTaxColumnTitle:"Indirect tax",earningsAfterTaxColumnTitle:"Earnings after tax",invoiceDescription:"View and download your invoices to report your earnings and stay tax compliant.",invoicePrevLabel:"Prev",invoiceMoreLabel:"Next",invoiceHeader:"Invoices",invoiceEmptyStateHeader:"View your invoice details",invoiceEmptyStateText:"Refer a friend to view the status of your invoices and rewards earned",payoutFromImpact:"Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.",replaceTaxFormModalHeader:"Replace existing tax form",replaceTaxFormModalBodyText:"Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.",supportLink:"support team",cancelButton:"Cancel",payoutHoldAlertHeader:"Your payout is on hold",payoutHoldAlertDescription:"Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.",verificationRequiredHeader:"Verify your identity",verificationRequiredDescription:"Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.",verificationRequiredButtonText:"Start Verification",verificationRequiredInternalHeader:"Identity verification in progress",verificationRequiredInternalDescription:"Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.",verificationReviewInternalHeader:"Identity verification under review",verificationReviewInternalDescription:"Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.",verificationFailedInternalHeader:"Identity verification unsuccessful",verificationFailedInternalDescription:"Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.",w9RequiredHeader:"Your next payout is on hold",w9RequiredDescription:"You have surpassed the $2000 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.",w9RequiredButtonText:"Submit W-9",accountReviewHeader:"Your account is under review",accountReviewDescription:"This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.",balanceUnderThresholdHeader:"Your balance is under the minimum payout",balanceUnderThresholdDescription:"Your total balance is under {minPayoutAmount}, the minimum required for payout.",paymentHoldOnChangeHeader:"We are reviewing your new payout settings",paymentHoldOnChangeDescription:"Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.",beneficiaryNameInvalidHeader:"Your payment information does not match your tax form",beneficiaryNameInvalidDescription:"The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",beneficiaryNameMismatchHeader:"Your payment information does not match your tax form",beneficiaryNameMismatchDescription:"The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",bankTaxNameMismatchHeader:"Your payment information does not match your tax form",bankTaxNameMismatchDescription:"The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",withdrawalSettingsInvalidHeader:"Your payment information is incomplete or includes invalid characters",withdrawalSettingsInvalidDescription:"There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.",paymentReturnedHeader:"Payout unsuccessful",paymentReturnedDescription:"Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.",termsAndConditions:"Terms and Conditions",error:{generalTitle:"There was a problem submitting your information",generalDescription:"Please review your information and try again. If this problem continues, contact our {supportLink}.",loadingErrorAlertHeader:"There was a problem loading your form",loadingErrorAlertDescription:"Please refresh the page and try again. If this problem continues, contact our {supportLink}."}};var SF={onClick:function(){},onVerifyClick:function(){},onEditPayoutInfo:function(){},onNewFormCancel:function(){},onNewFormClick:function(){}};var EF=function(e){if(e===void 0){e={}}return{payoutDetailsCardSlot:n("sqm-payout-details-card",{demoData:{states:__assign({badgeStatus:"nextPayout"},e)}})}};var CF=EF();var RF={payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"ACTIVE",documentType:"W9",documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,country:"United States",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false,loading:false,loadingError:false};var IF=function(){return n($e,{states:RF,text:TF,callbacks:SF,slots:CF})};var DF=function(){return n($e,{states:__assign(__assign({},RF),{status:undefined,documentType:"W9",documentTypeString:ln("W9"),noFormNeeded:false}),text:TF,callbacks:SF,slots:CF})};var AF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"NEW_PAYEE_REVIEW"}),text:TF,callbacks:SF,slots:CF})};var kF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"PAYMENT_HOLD_ON_CHANGE"}),text:TF,callbacks:SF,slots:CF})};var qF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"DONE",belowPayoutThreshold:true,minPayoutAmount:"USD50.00"}),text:TF,callbacks:SF,slots:EF({belowPayoutThreshold:true})})};var PF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"NEW_PAYEE_REVIEW",belowPayoutThreshold:true,minPayoutAmount:"USD50.00"}),text:TF,callbacks:SF,slots:EF({belowPayoutThreshold:true})})};var NF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"BENEFICIARY_NAME_INVALID"}),text:TF,callbacks:SF,slots:CF})};var FF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"BENEFICIARY_NAME_MISMATCH"}),text:TF,callbacks:SF,slots:CF})};var LF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"BANK_TAX_NAME_MISMATCH"}),text:TF,callbacks:SF,slots:CF})};var OF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"WITHDRAWAL_SETTINGS_INVALID"}),text:TF,callbacks:SF,slots:CF})};var UF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"PAYMENT_RETURNED"}),text:TF,callbacks:SF,slots:CF})};var BF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"OVER_W9_THRESHOLD",enforceUsTaxComplianceOption:"HARD_BLOCK",status:undefined}),text:TF,callbacks:SF,slots:CF})};var MF=function(){return n($e,{states:__assign(__assign({},RF),{payoutStatus:"VERIFICATION:REQUIRED",veriffLoading:true,notRegistered:true}),text:TF,callbacks:SF,slots:CF})};var GF=function(){return n($e,{states:__assign(__assign({},RF),{loading:true}),text:TF,callbacks:SF,slots:CF})};var VF=function(){return n($e,{states:__assign(__assign({},RF),{loadingError:true}),text:TF,callbacks:SF,slots:CF})};var WF=function(){return n($e,{states:__assign(__assign({},RF),{errors:{general:true}}),text:TF,callbacks:SF,slots:CF})};var jF=function(){return n($e,{states:__assign(__assign({},RF),{disabled:true}),text:TF,callbacks:SF,slots:CF})};var HF=Object.freeze({__proto__:null,default:xF,ActiveW9Form:IF,TaxFormRequired:DF,AccountUnderReview:AF,PaymentHoldOnChange:kF,BalanceUnderThreshold:qF,BalanceUnderThresholdWithHold:PF,BeneficiaryNameInvalid:NF,BeneficiaryNameMismatch:FF,BankTaxNameMismatch:LF,WithdrawalSettingsInvalid:OF,PaymentReturned:UF,W9ThresholdReachedHardBlock:BF,VerificationRequiredLoading:MF,Loading:GF,LoadingError:VF,GeneralError:WF,Disabled:jF});var zF={title:"Components/Tax Form"};var YF={states:{step:"1",hideSteps:false,hideState:false,loading:false,disabled:false,isPartner:false,isUser:false,isPartnerLegacy:false,isUserLegacy:false,loadingError:false,formState:{firstName:"Bob",lastName:"Testerson",email:"bobtesterson@example.com",phoneNumberCountryCode:"US",phoneNumber:"555 555 5555",countryCode:"US",currency:"CAD",address:"2/1337 Johnson Street",city:"Vancouver",state:"BC",postalCode:"555 555",errors:{}}},data:{partnerData:{},regionLabelEnum:"STATE",regions:[],phoneCountries:[{countryCode:"CA",displayName:"Canada"}],countries:[{countryCode:"CA",displayName:"Canada"},{countryCode:"ES",displayName:"Spain"},{countryCode:"UK",displayName:"United Kingdom"},{countryCode:"US",displayName:"United States"},{countryCode:"AR",displayName:"Argentina"},{countryCode:"AU",displayName:"Australia"},{countryCode:"ZW",displayName:"Zimbabwe"}],currencies:[{currencyCode:"CAD",displayName:"CAD"},{currencyCode:"GBP",displayName:"GBP"},{currencyCode:"USD",displayName:"USD"}],allCountries:[{countryCode:"CA",displayName:"Canada"},{countryCode:"ES",displayName:"Spain"},{countryCode:"UK",displayName:"United Kingdom"},{countryCode:"US",displayName:"United States"}],allCurrencies:[{currencyCode:"CAD",displayName:"CAD"},{currencyCode:"GBP",displayName:"GBP"},{currencyCode:"USD",displayName:"USD"}],userData:{firstName:"",lastName:""}},refs:{formRef:{current:null},currencyRef:{current:null},phoneCountryRef:{current:null}}};var JF={states:{step:"2",hideSteps:false,disabled:false,loading:false,isPartner:false,isPartnerLegacy:false,loadingError:false,formState:{checked:undefined,errors:{}}},callbacks:{onSubmit:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2,console.log("Submit")]}))}))},onChange:function(){return console.log("Submit")},onBack:function(){return console.log("Submit")},onFormChange:function(e,n){return console.log(e,n)},onQstToggle:function(){},onSpainToggle:function(){},setCountrySearch:function(e){return console.log(e)}},data:{esRegions:un,countries:[{countryCode:"CA",displayName:"Canada"},{countryCode:"ES",displayName:"Spain"},{countryCode:"UK",displayName:"United Kingdom"},{countryCode:"US",displayName:"United States"}],allCountries:[{countryCode:"CA",displayName:"Canada"},{countryCode:"ES",displayName:"Spain"},{countryCode:"UK",displayName:"United Kingdom"},{countryCode:"US",displayName:"United States"}],provinces:cn},slotProps:{formState:{errors:{}}},refs:{formRef:{current:null}}};var KF={states:{showVerification:false,step:"4",hideSteps:false,disabled:false,loading:false,hasPayPal:false,isPartner:false,hideBackButton:false,saveDisabled:false,thresholds:[],loadingError:false,email:"test@example.com",formState:{paymentMethodChecked:"toBankAccount"},showModal:false},callbacks:{onVerificationHide:function(){},onVerification:function(){},onSubmit:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2,console.log("Submit")]}))}))},setPaymentMethodChecked:function(){},setPaymentScheduleChecked:function(){},onBack:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2,console.log("back")]}))}))},setCountrySearch:function(){},onModalOpen:function(){},onModalClose:function(){}},refs:{formRef:{current:null}}};var XF={states:{showExitButton:true,step:"3",urlLoading:false,docusignStatus:undefined,hideSteps:false,documentType:"W9",documentTypeString:"W9",loading:false,disabled:false,participantTypeDisabled:false,loadingError:false,formState:{participantType:"individualParticipant",errors:{},taxFormExpired:false},showModal:false},callbacks:{onExit:function(){},completeDocument:function(){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},setParticipantType:function(e){return console.log({p:e})},setDocusignStatus:function(e){return console.log(e)},onModalOpen:function(){},onModalClose:function(){}}};var $F={states:{veriffLoading:false,payoutStatus:"DONE",canEditPayoutInfo:true,disabled:false,status:"ACTIVE",documentType:"W9",documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,country:"United Kingdom",indirectTaxNumber:"123456",indirectTaxType:"VAT",showNewFormDialog:false,hasHold:false},slots:{payoutDetailsCardSlot:n("sqm-payout-details-card",{demoData:{states:{badgeStatus:"nextPayout"}}})}};var QF=function(){return n(dn,null)};var ZF=function(){return n("sqm-form-message",{type:"error"},n("p",{part:"alert-title"},"There was a problem loading your form"),n("p",{part:"alert-description"},"Please refresh the page and try again. If this problem continues, contact our support team."))};var eL=function(){return n("sqm-user-info-form",{demoData:YF})};var nL=function(){return n("sqm-user-info-form",{demoData:{states:__assign(__assign({},YF.states),{loading:true})}})};var tL=function(){return n("sqm-user-info-form",{demoData:{states:__assign(__assign({},YF.states),{disabled:true})}})};var aL=function(){return n("sqm-user-info-form",{demoData:{states:__assign(__assign({},YF.states),{isUser:true})}})};var rL=function(){return n("sqm-user-info-form",{demoData:{states:__assign(__assign({},YF.states),{disabled:true,isPartner:true})}})};var iL=function(){return n("sqm-user-info-form",{demoData:{states:__assign(__assign({},YF.states),{formState:__assign(__assign({},YF.states.formState),{errors:{firstName:true,lastName:true,email:true,countryCode:true,currency:true,participantType:true,allowBankingCollection:true}})})}})};var sL=function(){return n("sqm-user-info-form",{demoData:{states:__assign(__assign({},YF.states),{formState:__assign(__assign({},YF.states.formState),{errors:{general:true}})})}})};var oL=function(){return n("sqm-user-info-form",{demoData:{states:__assign(__assign({},YF.states),{loadingError:true,loading:true,formState:__assign({},YF.states.formState)})}})};var lL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{loading:true})}})};var dL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{loading:true,loadingError:true})}})};var uL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{disabled:true})}})};var cL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{isPartner:true})}})};var mL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{errors:{general:true}})})}})};var pL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"UK",indirectTaxNumber:"123456",errors:{}}}}})};var gL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"CA",province:"BRITISHCOLUMBIA",indirectTaxNumber:"123456",errors:{}}}}})};var fL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"CA",province:"QUEBEC",indirectTaxNumber:"123456",errors:{}}}}})};var hL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"CA",province:"QUEBEC",qstNumber:"654321",hasQst:true,errors:{}}}}})};var vL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"ES",subRegion:"CANARYISLANDS",errors:{}}}}})};var bL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"ES",subRegion:"CANARYISLANDS",hasSubRegionTaxNumber:true,subRegionTaxNumber:"654321",errors:{}}}}})};var yL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:{checked:"otherRegion",errors:{}}}),slotProps:{formState:{province:"",selectedRegion:"GB",errors:{selectedRegion:true,indirectTaxNumber:true}}}}})};var wL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"CA",province:"BC",errors:{province:true,indirectTaxNumber:true}}}}})};var _L=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"CA",province:"QUEBEC",hasQst:true,errors:{province:true,indirectTaxNumber:true,qstNumber:true}}}}})};var xL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"otherRegion"})}),slotProps:{formState:{selectedRegion:"ES",hasSubRegionTaxNumber:true,errors:{indirectTaxNumber:true,subRegionTaxNumberError:true,subRegion:true}}}}})};var TL=function(){return n("sqm-indirect-tax-form",{demoData:{states:__assign(__assign({},JF.states),{formState:__assign(__assign({},JF.states.formState),{checked:"notRegistered"})})}})};var SL=function(){return n("sqm-docusign-form",{demoData:{states:__assign({documentType:"W9",documentTypeString:ln("W9")},XF.states)}})};var EL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{documentType:"W8BEN",documentTypeString:ln("W8BEN")})}})};var CL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{documentType:"W8BENE",documentTypeString:ln("W8BENE"),formState:{taxFormExpired:false,participantType:"businessEntity",errors:{participantType:"",general:false}}})}})};var RL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{docusignStatus:"ttl_expired",formState:{participantType:"individualParticipant",taxFormExpired:true,errors:{}}})}})};var IL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{docusignStatus:"signing_complete",formState:{participantType:"individualParticipant",taxFormExpired:false,errors:{}}})}})};var DL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{docusignStatus:"exception",formState:__assign(__assign({},XF.states.formState),{errors:{formSubmission:true}})})}})};var AL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{formState:__assign(__assign({},XF.states.formState),{errors:{general:true}})})}})};var kL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{loadingError:true,formState:__assign({},XF.states.formState)})}})};var qL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{loading:true})}})};var PL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({},XF.states),{disabled:true})}})};var NL=function(){return n("sqm-docusign-form",{demoData:{states:__assign(__assign({documentType:"W9",documentTypeString:ln("W9")},XF.states),{showModal:true})}})};var FL=function(){return n("sqm-banking-info-form",null)};var LL=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},KF),{states:__assign(__assign({},KF.states),{isPartner:true,formState:__assign({},KF.states.formState)})})})};var OL=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},KF),{states:__assign(__assign({},KF.states),{formState:__assign({},KF.states.formState)})})})};var UL=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},KF),{states:__assign(__assign({},KF.states),{formState:__assign(__assign({},KF.states.formState),{paymentMethodChecked:"toPayPalAccount"})})})})};var BL=function(){return n("sqm-banking-info-form",{demoData:__assign(__assign({},KF),{states:__assign(__assign({},KF.states),{showVerification:true,isPartner:true,formState:__assign(__assign({},KF.states.formState),{paymentMethodChecked:"toPayPalAccount"})})})})};var ML=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign({},$F)})};var GL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,noFormNeeded:false,canEditPayoutInfo:true,documentType:"W8BEN",documentTypeString:ln("W8BEN"),country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false}})})};var VL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,noFormNeeded:false,canEditPayoutInfo:true,documentType:"W8BENE",documentTypeString:ln("W8BENE"),country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false}})})};var WL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{veriffLoading:false,noFormNeeded:true,canEditPayoutInfo:true,status:"INACTIVE",documentType:"W9",documentTypeString:ln("W9"),country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,payoutStatus:"OVER_W9_THRESHOLD",hasHold:false}})})};var jL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,noFormNeeded:false,canEditPayoutInfo:true,status:"INACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false}})})};var HL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,noFormNeeded:true,canEditPayoutInfo:true,status:"INACTIVE",documentType:"W8BEN",documentTypeString:"",country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false}})})};var zL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",canEditPayoutInfo:true,disabled:false,status:"NOT_VERIFIED",documentType:"W9",documentTypeString:ln("W9"),noFormNeeded:false,country:"United States",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false,veriffLoading:false}})})};var YL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"NOT_VERIFIED",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false}})})};var JL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"NOT_VERIFIED",documentType:"W8BENE",documentTypeString:ln("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false}})})};var KL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"NOT_ACTIVE",documentType:"W8BENE",documentTypeString:ln("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,indirectTaxNumber:"123456",indirectTaxType:"VAT",country:"United Kingdom",showNewFormDialog:false,hasHold:false}})})};var XL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,documentType:"W9",documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:true,province:"Ontario",country:"Canada",indirectTaxNumber:"123456",indirectTaxType:"GST",showNewFormDialog:false,hasHold:false}})})};var $L=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",disabled:false,documentType:"W8BENE",documentTypeString:ln("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,province:"Ontario",country:"Canada",indirectTaxType:"GST",indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false}})})};var QL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",disabled:false,documentType:"W8BENE",documentTypeString:ln("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,province:"Quebec",country:"Canada",indirectTaxType:"GST",indirectTaxNumber:"123456",qstNumber:"44212",showNewFormDialog:false,hasHold:false}})})};var ZL=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",disabled:false,documentType:"W8BENE",documentTypeString:ln("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,country:"Spain",subRegion:"Spain Proper",indirectTaxType:"VAT",indirectTaxNumber:"123456",subRegionTaxNumber:"44212",showNewFormDialog:false,hasHold:false}})})};var eO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,notRegistered:true,showNewFormDialog:false,hasHold:false}})})};var nO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"VERIFICATION:REQUIRED",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,notRegistered:true,showNewFormDialog:false,hasHold:false}})})};var tO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"VERIFICATION:INTERNAL",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,notRegistered:true,showNewFormDialog:false,hasHold:false}})})};var aO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"VERIFICATION:REVIEW",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,notRegistered:true,showNewFormDialog:false,hasHold:false}})})};var rO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"VERIFICATION:FAILED",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,notRegistered:true,showNewFormDialog:false,hasHold:false}})})};var iO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"OVER_W9_THRESHOLD",veriffLoading:false,canEditPayoutInfo:true,status:null,documentType:"W9",documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,notRegistered:false,showNewFormDialog:false,hasHold:false,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}})})};var sO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,notRegistered:true,showNewFormDialog:true,hasHold:false}})})};var oO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"HOLD",veriffLoading:false,canEditPayoutInfo:true,disabled:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,indirectTaxNumber:"123456",country:"Slovania",showNewFormDialog:false,hasHold:false}})})};var lO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",belowPayoutThreshold:true,minPayoutAmount:"USD50.00",veriffLoading:false,canEditPayoutInfo:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,indirectTaxNumber:"123456",showNewFormDialog:false,hasHold:false}})})};var dO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"BENEFICIARY_NAME_INVALID",veriffLoading:false,canEditPayoutInfo:true,disabled:true,status:"ACTIVE",documentType:undefined,documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:true,indirectTaxNumber:"123456",country:"USA",showNewFormDialog:false,hasHold:false}})})};var uO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"BENEFICIARY_NAME_INVALID",veriffLoading:false,canEditPayoutInfo:true,disabled:true,status:"ACTIVE",documentType:undefined,documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:true,indirectTaxNumber:"123456",country:"USA",showNewFormDialog:false,hasHold:true,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}})})};var cO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"ACTIVE",documentType:undefined,documentTypeString:"",dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,indirectTaxNumber:"123456",country:"United Kingdom",showNewFormDialog:false,hasHold:false}})})};var mO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:undefined,documentType:undefined,documentTypeString:"",dateSubmitted:undefined,noFormNeeded:true,indirectTaxNumber:"123456",country:"United Kingdom",showNewFormDialog:false,hasHold:false}})})};var pO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"ACTIVE",documentType:"W9",documentTypeString:ln("W9"),dateSubmitted:"Mar 15, 2025",noFormNeeded:false,indirectTaxNumber:"123456",country:"USA",showNewFormDialog:false,hasHold:false,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}})})};var gO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Feb 20, 2025",noFormNeeded:false,indirectTaxNumber:"654321",country:"Canada",showNewFormDialog:false,hasHold:false,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}})})};var fO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:undefined,documentType:undefined,documentTypeString:"",dateSubmitted:undefined,noFormNeeded:true,indirectTaxNumber:"123456",country:"USA",showNewFormDialog:false,hasHold:false,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}})})};var hO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"ACTIVE",documentType:"W9",documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,loading:true,showNewFormDialog:false,hasHold:false}})})};var vO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,disabled:false,canEditPayoutInfo:true,status:"ACTIVE",documentType:"W9",documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,loading:true,loadingError:true,showNewFormDialog:false,hasHold:false}})})};var bO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:false,status:"ACTIVE",documentType:"W9",documentTypeString:ln("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,indirectTaxNumber:"123456",indirectTaxType:"VAT",country:"Slovania",showNewFormDialog:false,hasHold:false,errors:{general:true}}})})};var yO=function(){return n("sqm-tax-and-cash-dashboard",{demoData:__assign(__assign({},$F),{states:{payoutStatus:"DONE",veriffLoading:false,canEditPayoutInfo:true,disabled:true,status:"ACTIVE",documentType:"W8BEN",documentTypeString:ln("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:false,indirectTaxNumber:"123456",country:"Slovania",showNewFormDialog:false,hasHold:false}})})};var wO=function(){return n("sqm-tax-and-cash",{demoData:{showTextProps:true}})};var _O=Object.freeze({__proto__:null,default:zF,GeneralLoadingView:QF,GeneralErrorView:ZF,StepOne:eL,StepOneLoading:nL,StepOneDisabled:tL,StepOneIsUser:aL,StepOneIsPartner:rL,StepOneWithErrors:iL,StepOneWithGeneralError:sL,StepOneWithLoadingError:oL,StepTwoLoading:lL,StepTwoLoadingError:dL,StepTwoDisabled:uL,StepTwoIsPartner:cL,StepTwoWithGeneralError:mL,StepTwoOtherRegionChecked:pL,StepTwoOtherRegionCheckedCanada:gL,StepTwoOtherRegionCheckedCanadaGST:fL,StepTwoOtherRegionCheckedCanadaGSTAndQST:hL,StepTwoOtherRegionCheckedOtherCountrySubRegion:vL,StepTwoOtherRegionCheckedOtherCountrySubRegionIncomeTax:bL,StepTwoOtherRegionCheckedWithInputErrors:yL,StepTwoOtherRegionCheckedCanadaWithProvinceError:wL,StepTwoOtherRegionCheckedCanadaGSTAndQSTError:_L,StepTwoOtherRegionCheckedOtherCountrySubRegionErrors:xL,StepTwoNotRegisteredChecked:TL,StepThreeWithDocusign:SL,StepThreeWithDocusignW8BEN:EL,StepThreeWithDocusignW8BENE:CL,StepThreeWithDocusignExpired:RL,StepThreeWithDocusignCompleted:IL,StepThreeDocusignWithError:DL,StepThreeDocusignWithGeneralError:AL,StepThreeDocusignWithLoadingError:kL,StepThreeDocusignLoading:qL,StepThreeDocusignDisabled:PL,StepThreeWithDocusignModalOpen:NL,StepFourDefault:FL,StepFourIsPartner:LL,StepFourDirectToBankChecked:OL,StepFourToPaypalChecked:UL,StepFourReVerifyEmail:BL,TaxAndCashDashboardActiveW9Form:ML,TaxAndCashDashboardActiveW8BENForm:GL,TaxAndCashDashboardActiveW8BENEForm:VL,TaxAndCashDashboardNotActiveW9Form:WL,TaxAndCashDashboardNotActiveW8Form:jL,TaxAndCashDashboardNotActiveNoForm:HL,TaxAndCashDashboardNotVerifiedW9Form:zL,TaxAndCashDashboardNotVerifiedW8BENForm:YL,TaxAndCashDashboardNotVerifiedW8BENEForm:JL,TaxAndCashDashboardNotActiveW8BENEForm:KL,TaxAndCashDashboardNoFormNeeded:XL,TaxAndCashDashboardIndirectTaxCanada:$L,TaxAndCashDashboardIndirectTaxCanadaQuebec:QL,TaxAndCashDashboardIndirectTaxSpain:ZL,TaxAndCashDashboardIndirectTaxNotRegistered:eO,TaxAndCashDashboardIdentityVerifcationRequired:nO,TaxAndCashDashboardIdentityVerifcationRequiredInternal:tO,TaxAndCashDashboardIdentityVerifcationReviewInternal:aO,TaxAndCashDashboardIdentityVerifcationFailedInternal:rO,TaxAndCashDashboardW9ThresholdReached:iO,TaxAndCashDashboardNewTaxForm:sO,TaxAndCashDashboardPayoutsOnHold:oO,TaxAndCashDashboardBalanceUnderThreshold:lO,TaxAndCashDashboardNoTaxFormRequiredAndBeneficiaryNameInvalid:dO,TaxAndCashDashboardNoTaxFormRequiredAndBeneficiaryNameInvalidUS:uO,TaxAndCashDashboardNoDocumentType:cO,TaxAndCashDashboardNoDocumentTypeNoFormNeeded:mO,TaxAndCashDashboardFallbackDocumentTypeW9:pO,TaxAndCashDashboardFallbackDocumentTypeW8BEN:gO,TaxAndCashDashboardDeferW9NoDocumentType:fO,TaxAndCashDashboardLoading:hO,TaxAndCashDashboardWithLoadingError:vO,TaxAndCashDashboardWithGeneralError:bO,TaxAndCashDashboardDisabled:yO,TaxAndCashTextProps:wO});var xO={title:"Components/Payout Details Card"};var TO=function(){return n("sqm-payout-details-card",{demoData:{states:{loading:true}}})};var SO=function(){return n("sqm-payout-details-card",{demoData:{states:{badgeStatus:"nextPayout"}}})};var EO=function(){return n("sqm-payout-details-card",{demoData:{states:{badgeStatus:"payoutToday"}}})};var CO=function(){return n("sqm-payout-details-card",{demoData:{states:{thresholdBalance:"50 USD",badgeStatus:"thresholdPayout"}}})};var RO=function(){return n("sqm-payout-details-card",{demoData:{states:{badgeStatus:"nextPayout",belowPayoutThreshold:true}}})};var IO=function(){return n("sqm-payout-details-card",{demoData:{states:{badgeStatus:"payoutToday",belowPayoutThreshold:true}}})};var DO=function(){return n("sqm-payout-details-card",{demoData:{states:{thresholdBalance:"50 USD",badgeStatus:"thresholdPayout",belowPayoutThreshold:true}}})};var AO=function(){return n("sqm-payout-details-card",{demoData:{states:{payoutType:"PAYPAL"}}})};var kO=function(){return n("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}},n("sqm-payout-details-card",{"status-badge-text":"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }",demoData:{states:{badgeStatus:"nextPayout"}}}),n("sqm-payout-details-card",{"status-badge-text":"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }",demoData:{states:{badgeStatus:"payoutToday"}}}),n("sqm-payout-details-card",{"status-badge-text":"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }",demoData:{states:{badgeStatus:"error"}}}))};var qO=Object.freeze({__proto__:null,default:xO,Loading:TO,NextPayout:SO,PayoutToday:EO,ThresholdPayout:CO,BelowPayoutThresholdFixedDay:RO,BelowPayoutThresholdPayoutToday:IO,BelowPayoutThresholdBalanceThreshold:DO,PaypalPayout:AO,BadgeTextICUParsing:kO});var PO={title:"Components/Payout Status Alert"};var NO={error:false,status:"INFORMATION_REQUIRED",loading:false,veriffLoading:false};var FO=function(){return n("sqm-payout-status-alert",{demoData:{states:NO}})};var LO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"VERIFICATION:REQUIRED"})}})};var OO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"VERIFICATION:INTERNAL"})}})};var UO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"VERIFICATION:REVIEW"})}})};var BO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"VERIFICATION:FAILED"})}})};var MO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9",status:"OVER_W9_THRESHOLD"})}})};var GO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"HOLD"})}})};var VO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{loading:true})}})};var WO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{error:true})}})};var jO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"NEW_PAYEE_REVIEW"})}})};var HO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"PAYMENT_HOLD_ON_CHANGE"})}})};var zO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"DONE",belowPayoutThreshold:true,minPayoutAmount:"USD50.00"})}})};var YO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"NEW_PAYEE_REVIEW",belowPayoutThreshold:true,minPayoutAmount:"USD50.00"})}})};var JO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"BENEFICIARY_NAME_INVALID"})}})};var KO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"BENEFICIARY_NAME_MISMATCH"})}})};var XO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"BANK_TAX_NAME_MISMATCH"})}})};var $O=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"WITHDRAWAL_SETTINGS_INVALID"})}})};var QO=function(){return n("sqm-payout-status-alert",{demoData:{states:__assign(__assign({},NO),{status:"PAYMENT_RETURNED"})}})};var ZO=Object.freeze({__proto__:null,default:PO,InformationRequired:FO,VerifyIdentity:LO,VerifyIdentityRequiredInternal:OO,VerifyIdentityReviewInternal:UO,VerifyIdentityFailedInternal:BO,W9ThresholdReached:MO,Hold:GO,Loading:VO,Error:WO,NewPayeeReview:jO,PaymentHoldOnChange:HO,BalanceUnderThreshold:zO,BalanceUnderThresholdWithHold:YO,BeneficiaryNameInvalid:JO,BeneficiaryNameMismatch:KO,BankTaxNameMismatch:XO,WithdrawalSettingsInvalid:$O,PaymentReturned:QO});var eU={selectedRegion:"Country / Region of Indirect Tax",searchForCountryText:"",province:"Province",indirectTaxNumber:"Indirect Tax",isRegisteredQST:"I am registered for QST Tax",isRegisteredSubRegionIncomeTax:"I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.",qstNumber:"QST Number",subRegion:"Sub-region",subRegionTaxNumberLabel:"Income tax number",error:{indirectTaxNumber:"Indirect Tax is required",fieldRequiredError:"{fieldName} is required"}};var nU={Container:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",gap:"10px",margin:"auto",textAlign:"center",border:"var(--sqm-border-thickness) solid var(--sqm-border-color)"}};var tU=se(nU);var aU=tU.toString();var rU=function(e){var t=tU.classes;var a=e.text;return n("div",null,n("style",{type:"text/css"},aU),n("div",{class:t.Container},n("sl-icon",{style:{width:"50px",height:"50px",color:"var(--sl-color-neutral-500)"},name:"clock"}),n("p",{style:{margin:"0"}},a.docusignExpired)))};var iU={title:"Components/Tax Form Slot Views"};var sU={states:{loading:false,hide:false,formState:{selectedRegion:"United Kindom",vatNumber:12345,countryCode:"UK"}},data:{countries:[{countryCode:"CA",displayName:"Canada"}]},text:eU};var oU={states:{loading:false,hide:false,formState:{province:"British Columbia",indirectTaxNumber:1234}},data:{countries:[{countryCode:"CA",displayName:"Canada"}]},text:eU};var lU=function(){return n(Qe,__assign({},sU))};var dU=function(){return n(IndirectDetailsSlotView,__assign({},oU))};var uU=function(){return n(Qe,__assign(__assign({},sU),{states:__assign(__assign({},sU.states),{formState:__assign(__assign({},sU.states.formState),{errors:{vatNumber:true,selectedRegion:true}})})}))};var cU=function(){return n(IndirectDetailsSlotView,__assign(__assign({},oU),{states:__assign(__assign({},oU.states),{formState:__assign(__assign({},oU.states.formState),{errors:{province:true,indirectTaxNumber:true}})})}))};var mU=function(){return n(rU,null)};var pU=Object.freeze({__proto__:null,default:iU,RegisteredInOtherRegion:lU,RegisteredInCanada:dU,RegisteredInOtherRegionWithErrors:uU,RegisteredInCanadaWithErrors:cU,DocusignExpired:mU});var gU={title:"Components/Email Registration",parameters:{}};var fU={states:{error:"",loading:false},callbacks:{submit:function(e){return __awaiter(hn,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,e];case 1:return[2,n.sent()]}}))}))}},content:{invalidEmailErrorMessage:"Must be a valid email address",requiredFieldErrorMessage:"Cannot be empty",paddingTop:"large",paddingRight:"large",paddingBottom:"large",paddingLeft:"large",fraudErrorMessage:"Our team will review this referral. If approved, you and your friend will receive your rewards. Need help? Reach out to our Support team.",fraudErrorMessageTitle:"Looks like you tried referring yourself"}};var hU=function(){return n(mn,__assign({},fU))};var vU=function(){return n(mn,__assign({},__assign(__assign({},fU),{content:__assign(__assign({},fU.content),{includeName:true})})))};var bU=function(){return n(mn,__assign({},__assign(__assign({},fU),{content:__assign(__assign({},fU.content),{topSlot:n("div",null,"Hello this is the top slot"),bottomSlot:n("div",null,"Hello this is the bottom slot")})})))};var yU=function(){return n(mn,__assign({},__assign(__assign({},fU),{content:__assign(__assign({},fU.content),{hideBorder:true})})))};var wU=function(){return n(mn,__assign({},__assign(__assign({},fU),{content:__assign(__assign({},fU.content),{backgroundColor:"aquamarine"})})))};var _U=function(){return n(mn,__assign({},__assign(__assign({},fU),{states:{error:"",loading:true}})))};var xU=function(){return n(mn,__assign({},__assign(__assign({},fU),{states:{error:"Something went wrong. Please try again.",loading:false}})))};var TU=function(){return n(mn,__assign({},__assign(__assign({},fU),{states:{error:"FRAUD",loading:false}})))};var SU=function(){return n(mn,__assign({},__assign(__assign({},fU),{states:{error:"Something went wrong. Please try again.",loading:false,registrationFormState:{validationErrors:{email:"Email cannot be empty"}}}})))};var EU=Object.freeze({__proto__:null,default:gU,Default:hU,HasFirstNameLastName:vU,WithSlots:bU,NoBorder:yU,BackgroundColor:wU,Loading:_U,Error:xU,FraudError:TU,EmptyEmailError:SU});var CU={title:"Components/Lead Form"};var RU={states:{success:false,leadFormState:{},error:"",loading:false,referralCode:"ABC123"},callbacks:{submit:function(){return console.log("Submit!")},inputFunction:function(){},resetForm:function(){}},refs:{formRef:{}},content:{submitLabel:"Submit",pageLabel:"Submit your information",resubmitFormLabel:"Refer Another Friend",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address",submitSuccessHeader:"Referral submitted",submitSuccessDescription:"Our team will contact your friend to see if they’re a good fit. In the meantime, you can track this referral on Activity page.",submitErrorHeader:"An error occurred while submitting",submitErrorDescription:"Please try again later. If the problem continues, contact Support"}};var IU=__assign(__assign({},RU),{states:__assign(__assign({},RU.states),{success:true,error:null}),content:__assign(__assign({},RU.content),{pageLabel:"Refer your friend"})});var DU=__assign(__assign({},RU),{states:__assign(__assign({},RU.states),{error:"Something went wrong. Please try again.",leadFormState:{validationErrors:{firstName:"Please enter a first name",lastName:"Please enter a last name",email:"Please enter a valid email"}}})});var AU=__assign(__assign({},RU),{states:__assign(__assign({},RU.states),{loading:true})});var kU=__assign(__assign({},RU),{content:__assign(__assign({},RU.content),{formData:n("div",null,n("sqm-lead-input-field",{"field-name":"firstName","field-label":"First Name","field-type":"text","required-field-error-message":"Please enter a first name"}),n("sqm-lead-input-field",{"field-name":"lastName","field-label":"Last Name","field-type":"text","required-field-error-message":"Please enter a last name"}),n("sqm-lead-input-field",{"field-name":"email","field-label":"Email","field-type":"email","required-field-error-message":"Please enter a valid email address"}),n("sqm-lead-dropdown-field",null))})});var qU=function(){return n(te,__assign({},RU))};var PU=function(){return n(te,__assign({},IU))};var NU=function(){return n(te,__assign({},DU))};var FU=function(){return n(te,__assign({},AU))};var LU=function(){return n("sqm-lead-form",{demoData:{states:{leadFormState:{},error:"",success:false,loading:true,referralCode:"ABC123"}}})};var OU=function(){return n(te,__assign({},kU))};var UU=Object.freeze({__proto__:null,default:CU,Default:qU,LeadSubmitSuccess:PU,LeadSubmitWithErrors:NU,LeadSubmitLoading:FU,FieldsHidden:LU,SlottedInputs:OU});var BU={title:"Components/Lead Form Input Field"};var MU={states:{leadFormState:{validationErrors:{},loading:false,disabled:false,initialData:{}}},content:{fieldName:"firstName",fieldLabel:"First Name",fieldType:"text",optionalLabel:"(Optional)",requiredFieldErrorMessage:"Please {fieldAction} a {fieldLabel}",fieldOptional:false}};var GU=function(){return n(pn,__assign({},MU))};var VU=function(){return n(pn,__assign(__assign({},MU),{states:__assign(__assign({},MU.states),{leadFormState:__assign(__assign({},MU.states.leadFormState),{validationErrors:{firstName:"Please enter a first name"}})})}))};var WU=function(){return n(pn,__assign(__assign({},MU),{states:__assign(__assign({},MU.states),{leadFormState:__assign(__assign({},MU.states.leadFormState),{disabled:true})})}))};var jU=function(){return n(pn,__assign(__assign({},MU),{states:__assign(__assign({},MU.states),{leadFormState:__assign(__assign({},MU.states.leadFormState),{initialData:{firstName:"Jane"}})})}))};var HU=Object.freeze({__proto__:null,default:BU,Default:GU,WithError:VU,Disabled:WU,WithInitialValue:jU});var zU={title:"Components/Lead Form Dropdown Field"};var YU={states:{leadFormState:{validationErrors:{},loading:false,disabled:false,initialData:{}}},content:{dropdownName:"country",dropdownLabel:"Country",requiredFieldErrorMessage:"Please select a country",optionalLabel:"(Optional)",dropdownOptional:false,multiple:false,selectOptions:[n("sl-menu-item",{value:"red"},"Canada"),n("sl-menu-item",{value:"blue"},"United States"),n("sl-menu-item",{value:"green"},"Mexico")]}};var JU=function(){return n(ae,__assign({},YU))};var KU=function(){return n(ae,__assign(__assign({},YU),{content:__assign(__assign({},YU.content),{multiple:true})}))};var XU=function(){return n(ae,__assign(__assign({},YU),{states:__assign(__assign({},YU.states),{leadFormState:__assign(__assign({},YU.states.leadFormState),{validationErrors:{country:"Please select a country"}})})}))};var $U=function(){return n(ae,__assign(__assign({},YU),{states:__assign(__assign({},YU.states),{leadFormState:__assign(__assign({},YU.states.leadFormState),{disabled:true})})}))};var QU=function(){return n(ae,__assign(__assign({},YU),{states:__assign(__assign({},YU.states),{leadFormState:__assign(__assign({},YU.states.leadFormState),{loading:true})})}))};var ZU=function(){return n(ae,__assign(__assign({},YU),{states:__assign(__assign({},YU.states),{leadFormState:__assign(__assign({},YU.states.leadFormState),{initialData:{country:"Canada"}})})}))};var eB=Object.freeze({__proto__:null,default:zU,Default:JU,Multiple:KU,WithError:XU,Disabled:$U,Loading:QU,WithInitialValue:ZU});var nB={title:"Components/Lead Checkbox Field"};var tB={states:{leadFormState:{validationErrors:{}}},content:{checkboxName:"terms",checkboxLabel:"By signing up you agree to the {labelLink}",checkboxLabelLink:"https://example.com",checkboxLabelLinkText:"Terms and Conditions",errorMessage:"{checkboxLabel} Must be checked"}};var aB=Nu((function(){return n(gn,__assign({},tB))}));var rB=Nu((function(){return n(gn,__assign(__assign({},tB),{content:__assign(__assign({},tB.content),{checkboxLabel:"I Agree"})}))}));var iB=Nu((function(){return n(gn,__assign(__assign({},tB),{states:__assign(__assign({},tB.states),{leadFormState:{validationErrors:{terms:"{checkboxLabel} Must be checked"}}})}))}));var sB=Nu((function(){return n(gn,__assign(__assign({},tB),{states:__assign(__assign({},tB.states),{leadFormState:{validationErrors:{terms:"{checkboxLabel} Must be checked"}}}),content:__assign(__assign({},tB.content),{errorMessage:"This checkbox must be checked to continue"})}))}));var oB=Object.freeze({__proto__:null,default:nB,Default:aB,CustomLabel:rB,Error:iB,CustomError:sB});var lB={title:"Components/Skeleton"};var dB=function(){return n("sqm-skeleton",null)};var uB=function(){return n("sqm-skeleton",{width:"100px"})};var cB=function(){return n("sqm-skeleton",{height:"100px"})};var mB=function(){return n("sqm-skeleton",{width:"150px",height:"50px"})};var pB=Object.freeze({__proto__:null,default:lB,Default:dB,CustomWidth:uB,CustomHeight:cB,CustomWidthAndHeight:mB});var gB={title:"Components/User Info Form View"};var fB=[{countryCode:"US",displayName:"United States"},{countryCode:"CA",displayName:"Canada"},{countryCode:"GB",displayName:"United Kingdom"},{countryCode:"AU",displayName:"Australia"},{countryCode:"DE",displayName:"Germany"},{countryCode:"FR",displayName:"France"},{countryCode:"ES",displayName:"Spain"},{countryCode:"CD",displayName:"Congo, The Democratic Republic of the Congo"}];var hB=[{currencyCode:"USD",displayName:"US Dollar"},{currencyCode:"CAD",displayName:"Canadian Dollar"},{currencyCode:"GBP",displayName:"British Pound"},{currencyCode:"EUR",displayName:"Euro"},{currencyCode:"AUD",displayName:"Australian Dollar"}];var vB=[{label:"California",value:"CA"},{label:"New York",value:"NY"},{label:"Texas",value:"TX"},{label:"Florida",value:"FL"},{label:"Washington",value:"WA"}];var bB={id:"partner-123",brandedSignup:true,countryCode:"US",currency:"USD",billingAddress:"123 Main St",billingCity:"San Francisco",billingState:"CA",billingCountryCode:"US",billingPostalCode:"94102",phoneNumberCountryCode:"US",phoneNumber:"4155551234",currentTaxDocument:null,taxInformation:null,requiredTaxDocumentType:null,withdrawalSettings:{paymentMethod:"PAYPAL",paypalEmailAddress:null,bankCountry:null,bankAccountNumber:null,paymentSchedulingType:"BALANCE_THRESHOLD",paymentThreshold:null,paymentDay:null},payoutsAccount:{hold:false,holdReasons:[],balance:"$0.00",balanceAmount:0,currencyCode:"USD"}};var yB={formStep:"Step {step} of {count}",firstName:"First Name",lastName:"Last Name",email:"Email",country:"Country",phoneNumber:"Phone Number",address:"Address",city:"City",state:"State",province:"Province",region:"Region",postalCode:"Postal Code",currency:"Currency",allowBankingCollection:"I agree to the {termsAndConditionsLink}",personalInformation:"Personal Information",continueButton:"Continue",isPartnerAlertHeader:"Partner Account Detected",isPartnerAlertDescription:"Some fields are pre-filled from your partner account. Contact {supportLink} if you need to make changes.",termsAndConditionsLabel:"Terms and Conditions",termsAndConditionsLink:"https://example.com/terms",taxAndPayoutsDescription:"Please provide your information for tax and payout purposes.",supportLink:"support@example.com",error:{generalTitle:"Error",generalDescription:"An error occurred. Please contact {supportLink} for assistance.",invalidCharacterError:"Invalid characters detected",fieldRequiredError:"{fieldName} is required",fieldInvalidError:"Invalid value",loadingErrorAlertHeader:"Loading Error",loadingErrorAlertDescription:"Failed to load form data. Please contact {supportLink}."},searchForCountryText:"Search for country...",searchForCurrencyText:"Search for currency..."};var wB={states:{step:"1",hideState:false,hideSteps:false,disabled:false,loadingError:false,loading:false,isPartner:false,isUser:false,isPartnerLegacy:false,isUserLegacy:false,formState:{firstName:"",lastName:"",email:"user@example.com",countryCode:"US",currency:"USD",phoneNumberCountryCode:"US",phoneNumber:"",address:"",city:"",state:"",postalCode:"",allowBankingCollection:false,errors:{}}},data:{regionLabelEnum:"STATE",regions:vB,countries:fB,phoneCountries:fB,allCountries:fB,allCurrencies:hB,currencies:hB,partnerData:undefined,userData:undefined},callbacks:{setCurrencySearch:function(e){return console.log("setCurrencySearch",e)},setCountrySearch:function(e){return console.log("setCountrySearch",e)},setPhoneCountrySearch:function(e){return console.log("setPhoneCountrySearch",e)},onSubmit:function(e){return console.log("onSubmit",e)},onFormChange:function(e,n){return console.log("onFormChange",e,n)}},text:yB,refs:{formRef:{current:null},currencyRef:{current:null},phoneCountryRef:{current:null}}};var _B=function(){return n(Ze,__assign({},wB))};var xB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{formState:__assign(__assign({},wB.states.formState),{firstName:"John",lastName:"Doe",email:"john.doe@example.com",countryCode:"US",currency:"USD",phoneNumberCountryCode:"US",phoneNumber:"4155551234",address:"123 Main St",city:"San Francisco",state:"CA",postalCode:"94102"})})}))};var TB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{loading:true})}))};var SB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{loadingError:true})}))};var EB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{formState:__assign(__assign({},wB.states.formState),{firstName:"John",lastName:"Doe",errors:{firstName:"First Name is required",lastName:"Last Name is required",phoneNumber:"Phone Number is required",address:"Address contains invalid characters",city:"City is required",state:"State is required",postalCode:"Postal Code is required",currency:"Currency is required",countryCode:"Country is required",allowBankingCollection:"You must accept the terms and conditions"}})})}))};var CB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{formState:__assign(__assign({},wB.states.formState),{errors:{general:"An error occurred. Please contact support for assistance."}})})}))};var RB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{isPartner:true,isPartnerLegacy:true,formState:__assign(__assign({},wB.states.formState),{firstName:"Jane",lastName:"Smith",email:"jane.smith@example.com",countryCode:"US",currency:"USD",phoneNumberCountryCode:"US",phoneNumber:"4155551234",address:"123 Main St",city:"San Francisco",state:"CA",postalCode:"94102"})}),data:__assign(__assign({},wB.data),{partnerData:bB})}))};var IB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{isPartner:true,isUser:true,isPartnerLegacy:false,isUserLegacy:false,formState:__assign(__assign({},wB.states.formState),{firstName:"Jane",lastName:"Smith",email:"jane.smith@example.com",countryCode:"US",currency:"USD",phoneNumberCountryCode:undefined,phoneNumber:undefined,address:undefined,city:undefined,state:undefined,postalCode:undefined})}),data:__assign(__assign({},wB.data),{partnerData:__assign(__assign({},bB),{billingAddress:undefined,billingCity:undefined,billingState:undefined,billingPostalCode:undefined,phoneNumber:undefined,phoneNumberCountryCode:undefined}),userData:{firstName:"Jane",lastName:"Smith"}})}))};var DB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{isUser:true,isUserLegacy:true,formState:__assign(__assign({},wB.states.formState),{firstName:"Bob",lastName:"Johnson",email:"bob.johnson@example.com"})}),data:__assign(__assign({},wB.data),{userData:{firstName:"Bob",lastName:"Johnson"}})}))};var AB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{isUser:true,isUserLegacy:true,formState:__assign(__assign({},wB.states.formState),{firstName:"Bob",lastName:undefined,email:"bob.johnson@example.com"})}),data:__assign(__assign({},wB.data),{userData:{firstName:"Bob",lastName:undefined}})}))};var kB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{formState:__assign(__assign({},wB.states.formState),{firstName:"Alice",lastName:"Martin",countryCode:"CA",state:"BC"})}),data:__assign(__assign({},wB.data),{regionLabelEnum:"PROVINCE",regions:[{label:"British Columbia",value:"BC"},{label:"Ontario",value:"ON"},{label:"Quebec",value:"QC"},{label:"Alberta",value:"AB"}]})}))};var qB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{hideState:true,formState:__assign(__assign({},wB.states.formState),{firstName:"Pierre",lastName:"Dubois",countryCode:"FR"})}),data:__assign(__assign({},wB.data),{regionLabelEnum:undefined,regions:[]})}))};var PB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{hideSteps:true})}))};var NB=function(){return n(Ze,__assign(__assign({},wB),{states:__assign(__assign({},wB.states),{disabled:true,formState:__assign(__assign({},wB.states.formState),{firstName:"Disabled",lastName:"User"})})}))};var FB=Object.freeze({__proto__:null,default:gB,Default:_B,WithPrefilledData:xB,Loading:TB,LoadingError:SB,WithValidationErrors:EB,WithGeneralError:CB,PartnerAccount:RB,EarlyPartnerFromModal:IB,UserAccount:DB,UserAccountMissingLastName:AB,CanadianAddress:kB,NoStateRegion:qB,HideSteps:PB,DisabledForm:NB});var LB={title:"Components/Partner Info Modal"};var OB=[{countryCode:"US",displayName:"United States"},{countryCode:"CA",displayName:"Canada"},{countryCode:"GB",displayName:"United Kingdom"},{countryCode:"AU",displayName:"Australia"},{countryCode:"DE",displayName:"Germany"},{countryCode:"FR",displayName:"France"},{countryCode:"JP",displayName:"Japan"}];var UB=[{currencyCode:"USD",displayName:"US Dollar"},{currencyCode:"CAD",displayName:"Canadian Dollar"},{currencyCode:"GBP",displayName:"British Pound"},{currencyCode:"EUR",displayName:"Euro"},{currencyCode:"AUD",displayName:"Australian Dollar"}];var BB={onFirstNameChange:function(e){return console.log("First name changed:",e)},onLastNameChange:function(e){return console.log("Last name changed:",e)},onCountryChange:function(e){return console.log("Country changed:",e)},onCurrencyChange:function(e){return console.log("Currency changed:",e)},onCheckboxChange:function(e){return console.log("Checkbox changed:",e)},setCountrySearch:function(e){return console.log("Country search:",e)},setCurrencySearch:function(e){return console.log("Currency search:",e)},onSubmit:function(){return console.log("Submit")},onClose:function(){return console.log("Close")}};var MB={modalHeader:"Let's get you ready for rewards",modalHeaderExistingPartner:"We found an existing account",descriptionNewPartner:"Confirm your country and currency now to get your future rewards faster.",descriptionExistingPartner:"We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.",supportDescriptionExistingPartner:"If this is a mistake, please contact Support or sign up for this referral program with a different email.",supportLink:"Support",countryLabel:"Country",currencyLabel:"Currency",submitButtonLabel:"Submit",confirmButtonLabel:"Confirm",searchCountryPlaceholder:"Search for a country",searchCurrencyPlaceholder:"Search for a currency",bankingCollectionText:"",allowBankingCollection:"I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",termsAndConditionsLabel:"terms and conditions",termsAndConditionsLink:"https://terms.advocate.impact.com/PayoutTermsAndConditions.html",emailVerificationErrorText:"Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.",loginLinkText:"impact.com"};var GB={states:{open:true,loading:false,submitting:false,isExistingPartner:false,shouldDisplayNameFields:false,firstName:"",lastName:"",countryCode:"",currency:"",error:"",emailCanBeUsed:true,success:false,filteredCountries:OB,filteredCurrencies:UB,allowBankingCollection:false,disabled:false},callbacks:BB,text:MB};var VB=function(){return n(fn,__assign({},GB))};var WB=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{countryCode:"US",currency:""})});return n(fn,__assign({},e))};var jB=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{countryCode:"US",currency:"USD"})});return n(fn,__assign({},e))};var HB=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{isExistingPartner:true,countryCode:"CA",currency:"CAD"})});return n(fn,__assign({},e))};var zB=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{isExistingPartner:true,countryCode:"",currency:""})});return n(fn,__assign({},e))};var YB=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{countryCode:"GB",currency:"GBP",submitting:true})});return n(fn,__assign({},e))};var JB=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{countryCode:"US",currency:"USD",error:"An error occurred while creating your partner account. Please try again."})});return n(fn,__assign({},e))};var KB=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{countryCode:"",currency:"",error:"Please select both a country and currency."})});return n(fn,__assign({},e))};var XB=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{countryCode:"US",currency:"USD",emailCanBeUsed:false})});return n(fn,__assign({},e))};var $B=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{open:false})});return n(fn,__assign({},e))};var QB=function(){return n("sqm-partner-info-modal",{"support-link":"Support","support-description-existing-partner":"If this is a mistake, please contact {supportLink} or sign up for this referral program with a different email.","allow-banking-collection":"I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information","terms-and-conditions-label":"terms and conditions","terms-and-conditions-link":"https://terms.advocate.impact.com/PayoutTermsAndConditions.html",demoData:{states:{open:true,isExistingPartner:true}}})};var ZB=function(){return n("sqm-partner-info-modal",{demoData:{states:{open:true,isExistingPartner:false}}})};var eM=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{firstName:"John",lastName:"Doe"})});return n(fn,__assign({},e))};var nM=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{firstName:"John",lastName:"",shouldDisplayNameFields:true})});return n(fn,__assign({},e))};var tM=function(){var e=__assign(__assign({},GB),{states:__assign(__assign({},GB.states),{loading:true})});return n(fn,__assign({},e))};var aM=Object.freeze({__proto__:null,default:LB,NewPartnerEmpty:VB,NewPartnerPrefilled:WB,NewPartnerFullySelected:jB,ExistingPartnerConfirm:HB,ExistingPartnerEmpty:zB,Submitting:YB,WithError:JB,ValidationError:KB,EmailVerificationRequired:XB,Closed:$B,SQMComponentExistingPartner:QB,SQMComponentNewPartner:ZB,PartnerHasFirstAndLastName:eM,PartnerHasFirstNameOnly:nM,Loading:tM});var rM={title:"Components/Widget Verification"};var iM=function(){return n("sqm-widget-verification",{stateController:JSON.stringify({"sqm-widget-verification":{showCode:false}})})};var sM=function(){return n("sqm-widget-verification",{stateController:JSON.stringify({"sqm-widget-verification":{showCode:true}})})};var oM=function(){return n("sqm-widget-verification",{stateController:JSON.stringify({"sqm-widget-verification":{showPartnerModal:true}})})};var lM=function(){return n("sqm-widget-verification",{stateController:JSON.stringify({"sqm-widget-verification":{loading:true}})})};var dM=Object.freeze({__proto__:null,default:rM,Step1Email:iM,Step2Code:sM,Step3PartnerModal:oM,Loading:lM});var uM='@owner:zach @author:zach\nFeature: User Attribute\n Displays a user\'s custom field value.\n\n Background: A user exists\n Given a user is logged in\n And the user has custom fields\n\n @motivating\n Scenario: A custom field value is displayed\n Given the component has prop "value" with value "firstName"\n And the user has a custom field "firstName" with value "John"\n When the component is rendered\n Then the text "John" is displayed\n\n @landmine\n Scenario: Nothing is rendered when the custom field does not exist\n Given the component has prop "value" with value "nonExistentField"\n And the user does not have a custom field "nonExistentField"\n Then component is not rendered\n And nothing is displayed\n\n @motivating\n Scenario: Nothing is rendered while user data is loading\n Given the component is loading user data\n When the component is rendered\n Then component is not rendered\n And nothing is displayed\n\n @motivating\n Scenario Outline: Optional styling props can be applied to customize the text appearance\n Given the component has prop <prop> with value <value>\n When the component is rendered\n Then the text is displayed with <cssProperty> set to <value>\n\n Examples:\n | prop | value | cssProperty |\n | fontSize | 24 | font-size |\n | color | #E91E63 | color |\n | fontWeight | 700 | font-weight |\n\n @minutia\n Scenario: Style props are optional and default to no custom styling\n Given the component has no style props set\n When the component is rendered\n Then the text is displayed with default browser styles\n';var cM={title:"Components/User Attribute",parameters:{scenario:uM}};var mM=function(){return n("sqm-user-attribute",{demoData:{loading:false,value:"impact.com"}})};var pM=function(){return n("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}},n("div",{style:{background:"#e0e0e0",padding:"8px"}},"Above"),n("sqm-user-attribute",{demoData:{loading:false,value:null}}),n("div",{style:{background:"#e0e0e0",padding:"8px"}},"Below"))};var gM=function(){return n("sqm-user-attribute",{demoData:{loading:true,value:"impact.com"}})};var fM=function(){return n("sqm-user-attribute",{demoData:{loading:false,value:"impact.com",fontSize:24,color:"#4CAF50",fontWeight:700}})};var hM=Object.freeze({__proto__:null,default:cM,Default:mM,InvalidValue:pM,Loading:gM,WithCustomStyles:fM});function vM(e){if(e instanceof Map){e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}}else if(e instanceof Set){e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}}Object.freeze(e);Object.getOwnPropertyNames(e).forEach((function(n){var t=e[n];if(typeof t=="object"&&!Object.isFrozen(t)){vM(t)}}));return e}var bM=vM;var yM=vM;bM.default=yM;var wM=function(){function e(e){if(e.data===undefined)e.data={};this.data=e.data;this.isMatchIgnored=false}e.prototype.ignoreMatch=function(){this.isMatchIgnored=true};return e}();function _M(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function xM(e){var n=[];for(var t=1;t<arguments.length;t++){n[t-1]=arguments[t]}var a=Object.create(null);for(var r in e){a[r]=e[r]}n.forEach((function(e){for(var n in e){a[n]=e[n]}}));return a}var TM="</span>";var SM=function(e){return!!e.kind};var EM=function(){function e(e,n){this.buffer="";this.classPrefix=n.classPrefix;e.walk(this)}e.prototype.addText=function(e){this.buffer+=_M(e)};e.prototype.openNode=function(e){if(!SM(e))return;var n=e.kind;if(!e.sublanguage){n="".concat(this.classPrefix).concat(n)}this.span(n)};e.prototype.closeNode=function(e){if(!SM(e))return;this.buffer+=TM};e.prototype.value=function(){return this.buffer};e.prototype.span=function(e){this.buffer+='<span class="'.concat(e,'">')};return e}();var CM=function(){function e(){this.rootNode={children:[]};this.stack=[this.rootNode]}Object.defineProperty(e.prototype,"top",{get:function(){return this.stack[this.stack.length-1]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"root",{get:function(){return this.rootNode},enumerable:false,configurable:true});e.prototype.add=function(e){this.top.children.push(e)};e.prototype.openNode=function(e){var n={kind:e,children:[]};this.add(n);this.stack.push(n)};e.prototype.closeNode=function(){if(this.stack.length>1){return this.stack.pop()}return undefined};e.prototype.closeAllNodes=function(){while(this.closeNode());};e.prototype.toJSON=function(){return JSON.stringify(this.rootNode,null,4)};e.prototype.walk=function(e){return this.constructor._walk(e,this.rootNode)};e._walk=function(e,n){var t=this;if(typeof n==="string"){e.addText(n)}else if(n.children){e.openNode(n);n.children.forEach((function(n){return t._walk(e,n)}));e.closeNode(n)}return e};e._collapse=function(n){if(typeof n==="string")return;if(!n.children)return;if(n.children.every((function(e){return typeof e==="string"}))){n.children=[n.children.join("")]}else{n.children.forEach((function(n){e._collapse(n)}))}};return e}();var RM=function(e){__extends(n,e);function n(n){var t=e.call(this)||this;t.options=n;return t}n.prototype.addKeyword=function(e,n){if(e===""){return}this.openNode(n);this.addText(e);this.closeNode()};n.prototype.addText=function(e){if(e===""){return}this.add(e)};n.prototype.addSublanguage=function(e,n){var t=e.root;t.kind=n;t.sublanguage=true;this.add(t)};n.prototype.toHTML=function(){var e=new EM(this,this.options);return e.value()};n.prototype.finalize=function(){return true};return n}(CM);function IM(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function DM(e){if(!e)return null;if(typeof e==="string")return e;return e.source}function AM(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var t=e.map((function(e){return DM(e)})).join("");return t}function kM(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var t="("+e.map((function(e){return DM(e)})).join("|")+")";return t}function qM(e){return new RegExp(e.toString()+"|").exec("").length-1}function PM(e,n){var t=e&&e.exec(n);return t&&t.index===0}var NM=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function FM(e,n){if(n===void 0){n="|"}var t=0;return e.map((function(e){t+=1;var n=t;var a=DM(e);var r="";while(a.length>0){var i=NM.exec(a);if(!i){r+=a;break}r+=a.substring(0,i.index);a=a.substring(i.index+i[0].length);if(i[0][0]==="\\"&&i[1]){r+="\\"+String(Number(i[1])+n)}else{r+=i[0];if(i[0]==="("){t++}}}return r})).map((function(e){return"(".concat(e,")")})).join(n)}var LM=/\b\B/;var OM="[a-zA-Z]\\w*";var UM="[a-zA-Z_]\\w*";var BM="\\b\\d+(\\.\\d+)?";var MM="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";var GM="\\b(0b[01]+)";var VM="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";var WM=function(e){if(e===void 0){e={}}var n=/^#![ ]*\//;if(e.binary){e.begin=AM(n,/.*\b/,e.binary,/\b.*/)}return xM({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":function(e,n){if(e.index!==0)n.ignoreMatch()}},e)};var jM={begin:"\\\\[\\s\\S]",relevance:0};var HM={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[jM]};var zM={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[jM]};var YM={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/};var JM=function(e,n,t){if(t===void 0){t={}}var a=xM({className:"comment",begin:e,end:n,contains:[]},t);a.contains.push(YM);a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0});return a};var KM=JM("//","$");var XM=JM("/\\*","\\*/");var $M=JM("#","$");var QM={className:"number",begin:BM,relevance:0};var ZM={className:"number",begin:MM,relevance:0};var eG={className:"number",begin:GM,relevance:0};var nG={className:"number",begin:BM+"("+"%|em|ex|ch|rem"+"|vw|vh|vmin|vmax"+"|cm|mm|in|pt|pc|px"+"|deg|grad|rad|turn"+"|s|ms"+"|Hz|kHz"+"|dpi|dpcm|dppx"+")?",relevance:0};var tG={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[jM,{begin:/\[/,end:/\]/,relevance:0,contains:[jM]}]}]};var aG={className:"title",begin:OM,relevance:0};var rG={className:"title",begin:UM,relevance:0};var iG={begin:"\\.\\s*"+UM,relevance:0};var sG=function(e){return Object.assign(e,{"on:begin":function(e,n){n.data._beginMatch=e[1]},"on:end":function(e,n){if(n.data._beginMatch!==e[1])n.ignoreMatch()}})};var oG=Object.freeze({__proto__:null,MATCH_NOTHING_RE:LM,IDENT_RE:OM,UNDERSCORE_IDENT_RE:UM,NUMBER_RE:BM,C_NUMBER_RE:MM,BINARY_NUMBER_RE:GM,RE_STARTERS_RE:VM,SHEBANG:WM,BACKSLASH_ESCAPE:jM,APOS_STRING_MODE:HM,QUOTE_STRING_MODE:zM,PHRASAL_WORDS_MODE:YM,COMMENT:JM,C_LINE_COMMENT_MODE:KM,C_BLOCK_COMMENT_MODE:XM,HASH_COMMENT_MODE:$M,NUMBER_MODE:QM,C_NUMBER_MODE:ZM,BINARY_NUMBER_MODE:eG,CSS_NUMBER_MODE:nG,REGEXP_MODE:tG,TITLE_MODE:aG,UNDERSCORE_TITLE_MODE:rG,METHOD_GUARD:iG,END_SAME_AS_BEGIN:sG});function lG(e,n){var t=e.input[e.index-1];if(t==="."){n.ignoreMatch()}}function dG(e,n){if(!n)return;if(!e.beginKeywords)return;e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)";e.__beforeBegin=lG;e.keywords=e.keywords||e.beginKeywords;delete e.beginKeywords;if(e.relevance===undefined)e.relevance=0}function uG(e,n){if(!Array.isArray(e.illegal))return;e.illegal=kM.apply(void 0,e.illegal)}function cG(e,n){if(!e.match)return;if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match;delete e.match}function mG(e,n){if(e.relevance===undefined)e.relevance=1}var pG=["of","and","for","in","not","or","if","then","parent","list","value"];var gG="keyword";function fG(e,n,t){if(t===void 0){t=gG}var a={};if(typeof e==="string"){r(t,e.split(" "))}else if(Array.isArray(e)){r(t,e)}else{Object.keys(e).forEach((function(t){Object.assign(a,fG(e[t],n,t))}))}return a;function r(e,t){if(n){t=t.map((function(e){return e.toLowerCase()}))}t.forEach((function(n){var t=n.split("|");a[t[0]]=[e,hG(t[0],t[1])]}))}}function hG(e,n){if(n){return Number(n)}return vG(e)?0:1}function vG(e){return pG.includes(e.toLowerCase())}function bG(e,n){var t=n.plugins;function a(n,t){return new RegExp(DM(n),"m"+(e.case_insensitive?"i":"")+(t?"g":""))}var r=function(){function e(){this.matchIndexes={};this.regexes=[];this.matchAt=1;this.position=0}e.prototype.addRule=function(e,n){n.position=this.position++;this.matchIndexes[this.matchAt]=n;this.regexes.push([n,e]);this.matchAt+=qM(e)+1};e.prototype.compile=function(){if(this.regexes.length===0){this.exec=function(){return null}}var e=this.regexes.map((function(e){return e[1]}));this.matcherRe=a(FM(e),true);this.lastIndex=0};e.prototype.exec=function(e){this.matcherRe.lastIndex=this.lastIndex;var n=this.matcherRe.exec(e);if(!n){return null}var t=n.findIndex((function(e,n){return n>0&&e!==undefined}));var a=this.matchIndexes[t];n.splice(0,t);return Object.assign(n,a)};return e}();var i=function(){function e(){this.rules=[];this.multiRegexes=[];this.count=0;this.lastIndex=0;this.regexIndex=0}e.prototype.getMatcher=function(e){if(this.multiRegexes[e])return this.multiRegexes[e];var n=new r;this.rules.slice(e).forEach((function(e){var t=e[0],a=e[1];return n.addRule(t,a)}));n.compile();this.multiRegexes[e]=n;return n};e.prototype.resumingScanAtSamePosition=function(){return this.regexIndex!==0};e.prototype.considerAll=function(){this.regexIndex=0};e.prototype.addRule=function(e,n){this.rules.push([e,n]);if(n.type==="begin")this.count++};e.prototype.exec=function(e){var n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;var t=n.exec(e);if(this.resumingScanAtSamePosition()){if(t&&t.index===this.lastIndex);else{var a=this.getMatcher(0);a.lastIndex=this.lastIndex+1;t=a.exec(e)}}if(t){this.regexIndex+=t.position+1;if(this.regexIndex===this.count){this.considerAll()}}return t};return e}();function s(e){var n=new i;e.contains.forEach((function(e){return n.addRule(e.begin,{rule:e,type:"begin"})}));if(e.terminatorEnd){n.addRule(e.terminatorEnd,{type:"end"})}if(e.illegal){n.addRule(e.illegal,{type:"illegal"})}return n}function o(n,t){var r=n;if(n.isCompiled)return r;[cG].forEach((function(e){return e(n,t)}));e.compilerExtensions.forEach((function(e){return e(n,t)}));n.__beforeBegin=null;[dG,uG,mG].forEach((function(e){return e(n,t)}));n.isCompiled=true;var i=null;if(typeof n.keywords==="object"){i=n.keywords.$pattern;delete n.keywords.$pattern}if(n.keywords){n.keywords=fG(n.keywords,e.case_insensitive)}if(n.lexemes&&i){throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ")}i=i||n.lexemes||/\w+/;r.keywordPatternRe=a(i,true);if(t){if(!n.begin)n.begin=/\B|\b/;r.beginRe=a(n.begin);if(n.endSameAsBegin)n.end=n.begin;if(!n.end&&!n.endsWithParent)n.end=/\B|\b/;if(n.end)r.endRe=a(n.end);r.terminatorEnd=DM(n.end)||"";if(n.endsWithParent&&t.terminatorEnd){r.terminatorEnd+=(n.end?"|":"")+t.terminatorEnd}}if(n.illegal)r.illegalRe=a(n.illegal);if(!n.contains)n.contains=[];n.contains=[].concat.apply([],n.contains.map((function(e){return wG(e==="self"?n:e)})));n.contains.forEach((function(e){o(e,r)}));if(n.starts){o(n.starts,t)}r.matcher=s(r);return r}if(!e.compilerExtensions)e.compilerExtensions=[];if(e.contains&&e.contains.includes("self")){throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")}e.classNameAliases=xM(e.classNameAliases||{});return o(e)}function yG(e){if(!e)return false;return e.endsWithParent||yG(e.starts)}function wG(e){if(e.variants&&!e.cachedVariants){e.cachedVariants=e.variants.map((function(n){return xM(e,{variants:null},n)}))}if(e.cachedVariants){return e.cachedVariants}if(yG(e)){return xM(e,{starts:e.starts?xM(e.starts):null})}if(Object.isFrozen(e)){return xM(e)}return e}var _G="10.7.3";function xG(e){return Boolean(e||e==="")}function TG(e){var n={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:false}},computed:{className:function(){if(this.unknownLanguage)return"";return"hljs "+this.detectedLanguage},highlighted:function(){if(!this.autoDetect&&!e.getLanguage(this.language)){console.warn('The language "'.concat(this.language,'" you specified could not be found.'));this.unknownLanguage=true;return _M(this.code)}var n={};if(this.autoDetect){n=e.highlightAuto(this.code);this.detectedLanguage=n.language}else{n=e.highlight(this.language,this.code,this.ignoreIllegals);this.detectedLanguage=this.language}return n.value},autoDetect:function(){return!this.language||xG(this.autodetect)},ignoreIllegals:function(){return true}},render:function(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};var t={install:function(e){e.component("highlightjs",n)}};return{Component:n,VuePlugin:t}}var SG={"after:highlightElement":function(e){var n=e.el,t=e.result,a=e.text;var r=CG(n);if(!r.length)return;var i=document.createElement("div");i.innerHTML=t.value;t.value=RG(r,CG(i),a)}};function EG(e){return e.nodeName.toLowerCase()}function CG(e){var n=[];(function e(t,a){for(var r=t.firstChild;r;r=r.nextSibling){if(r.nodeType===3){a+=r.nodeValue.length}else if(r.nodeType===1){n.push({event:"start",offset:a,node:r});a=e(r,a);if(!EG(r).match(/br|hr|img|input/)){n.push({event:"stop",offset:a,node:r})}}}return a})(e,0);return n}function RG(e,n,t){var a=0;var r="";var i=[];function s(){if(!e.length||!n.length){return e.length?e:n}if(e[0].offset!==n[0].offset){return e[0].offset<n[0].offset?e:n}return n[0].event==="start"?e:n}function o(e){function n(e){return" "+e.nodeName+'="'+_M(e.value)+'"'}r+="<"+EG(e)+[].map.call(e.attributes,n).join("")+">"}function l(e){r+="</"+EG(e)+">"}function d(e){(e.event==="start"?o:l)(e.node)}while(e.length||n.length){var u=s();r+=_M(t.substring(a,u[0].offset));a=u[0].offset;if(u===e){i.reverse().forEach(l);do{d(u.splice(0,1)[0]);u=s()}while(u===e&&u.length&&u[0].offset===a);i.reverse().forEach(o)}else{if(u[0].event==="start"){i.push(u[0].node)}else{i.pop()}d(u.splice(0,1)[0])}}return r+_M(t.substr(a))}var IG={};var DG=function(e){console.error(e)};var AG=function(e){var n=[];for(var t=1;t<arguments.length;t++){n[t-1]=arguments[t]}console.log.apply(console,__spreadArray(["WARN: ".concat(e)],n,false))};var kG=function(e,n){if(IG["".concat(e,"/").concat(n)])return;console.log("Deprecated as of ".concat(e,". ").concat(n));IG["".concat(e,"/").concat(n)]=true};var qG=_M;var PG=xM;var NG=Symbol("nomatch");var FG=function(e){var n=Object.create(null);var t=Object.create(null);var a=[];var r=true;var i=/(^(<[^>]+>|\t|)+|\n)/gm;var s="Could not find the language '{}', did you forget to load/include a language module?";var o={disableAutodetect:true,name:"Plain text",contains:[]};var l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:false,languages:null,__emitter:RM};function d(e){return l.noHighlightRe.test(e)}function u(e){var n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";var t=l.languageDetectRe.exec(n);if(t){var a=k(t[1]);if(!a){AG(s.replace("{}",t[1]));AG("Falling back to no-highlight mode for this block.",e)}return a?t[1]:"no-highlight"}return n.split(/\s+/).find((function(e){return d(e)||k(e)}))}function c(e,n,t,a){var r="";var i="";if(typeof n==="object"){r=e;t=n.ignoreIllegals;i=n.language;a=undefined}else{kG("10.7.0","highlight(lang, code, ...args) has been deprecated.");kG("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277");i=e;r=n}var s={code:r,language:i};L("before:highlight",s);var o=s.result?s.result:m(s.language,s.code,t,a);o.code=s.code;L("after:highlight",o);return o}function m(e,t,i,o){function d(e,n){var t=T.case_insensitive?n[0].toLowerCase():n[0];return Object.prototype.hasOwnProperty.call(e.keywords,t)&&e.keywords[t]}function u(){if(!C.keywords){I.addText(D);return}var e=0;C.keywordPatternRe.lastIndex=0;var n=C.keywordPatternRe.exec(D);var t="";while(n){t+=D.substring(e,n.index);var a=d(C,n);if(a){var r=a[0],i=a[1];I.addText(t);t="";A+=i;if(r.startsWith("_")){t+=n[0]}else{var s=T.classNameAliases[r]||r;I.addKeyword(n[0],s)}}else{t+=n[0]}e=C.keywordPatternRe.lastIndex;n=C.keywordPatternRe.exec(D)}t+=D.substr(e);I.addText(t)}function c(){if(D==="")return;var e=null;if(typeof C.subLanguage==="string"){if(!n[C.subLanguage]){I.addText(D);return}e=m(C.subLanguage,D,true,R[C.subLanguage]);R[C.subLanguage]=e.top}else{e=g(D,C.subLanguage.length?C.subLanguage:null)}if(C.relevance>0){A+=e.relevance}I.addSublanguage(e.emitter,e.language)}function p(){if(C.subLanguage!=null){c()}else{u()}D=""}function f(e){if(e.className){I.openNode(T.classNameAliases[e.className]||e.className)}C=Object.create(e,{parent:{value:C}});return C}function h(e,n,t){var a=PM(e.endRe,t);if(a){if(e["on:end"]){var r=new wM(e);e["on:end"](n,r);if(r.isMatchIgnored)a=false}if(a){while(e.endsParent&&e.parent){e=e.parent}return e}}if(e.endsWithParent){return h(e.parent,n,t)}}function v(e){if(C.matcher.regexIndex===0){D+=e[0];return 1}else{N=true;return 0}}function b(e){var n=e[0];var t=e.rule;var a=new wM(t);var r=[t.__beforeBegin,t["on:begin"]];for(var i=0,s=r;i<s.length;i++){var o=s[i];if(!o)continue;o(e,a);if(a.isMatchIgnored)return v(n)}if(t&&t.endSameAsBegin){t.endRe=IM(n)}if(t.skip){D+=n}else{if(t.excludeBegin){D+=n}p();if(!t.returnBegin&&!t.excludeBegin){D=n}}f(t);return t.returnBegin?0:n.length}function y(e){var n=e[0];var a=t.substr(e.index);var r=h(C,e,a);if(!r){return NG}var i=C;if(i.skip){D+=n}else{if(!(i.returnEnd||i.excludeEnd)){D+=n}p();if(i.excludeEnd){D=n}}do{if(C.className){I.closeNode()}if(!C.skip&&!C.subLanguage){A+=C.relevance}C=C.parent}while(C!==r.parent);if(r.starts){if(r.endSameAsBegin){r.starts.endRe=r.endRe}f(r.starts)}return i.returnEnd?0:n.length}function w(){var e=[];for(var n=C;n!==T;n=n.parent){if(n.className){e.unshift(n.className)}}e.forEach((function(e){return I.openNode(e)}))}var _={};function x(n,a){var s=a&&a[0];D+=n;if(s==null){p();return 0}if(_.type==="begin"&&a.type==="end"&&_.index===a.index&&s===""){D+=t.slice(a.index,a.index+1);if(!r){var o=new Error("0 width match regex");o.languageName=e;o.badRule=_.rule;throw o}return 1}_=a;if(a.type==="begin"){return b(a)}else if(a.type==="illegal"&&!i){var o=new Error('Illegal lexeme "'+s+'" for mode "'+(C.className||"<unnamed>")+'"');o.mode=C;throw o}else if(a.type==="end"){var l=y(a);if(l!==NG){return l}}if(a.type==="illegal"&&s===""){return 1}if(P>1e5&&P>a.index*3){var o=new Error("potential infinite loop, way more iterations than matches");throw o}D+=s;return s.length}var T=k(e);if(!T){DG(s.replace("{}",e));throw new Error('Unknown language: "'+e+'"')}var S=bG(T,{plugins:a});var E="";var C=o||S;var R={};var I=new l.__emitter(l);w();var D="";var A=0;var q=0;var P=0;var N=false;try{C.matcher.considerAll();for(;;){P++;if(N){N=false}else{C.matcher.considerAll()}C.matcher.lastIndex=q;var F=C.matcher.exec(t);if(!F)break;var L=t.substring(q,F.index);var O=x(L,F);q=F.index+O}x(t.substr(q));I.closeAllNodes();I.finalize();E=I.toHTML();return{relevance:Math.floor(A),value:E,language:e,illegal:false,emitter:I,top:C}}catch(n){if(n.message&&n.message.includes("Illegal")){return{illegal:true,illegalBy:{msg:n.message,context:t.slice(q-100,q+100),mode:n.mode},sofar:E,relevance:0,value:qG(t),emitter:I}}else if(r){return{illegal:false,relevance:0,value:qG(t),emitter:I,language:e,top:C,errorRaised:n}}else{throw n}}}function p(e){var n={relevance:0,emitter:new l.__emitter(l),value:qG(e),illegal:false,top:o};n.emitter.addText(e);return n}function g(e,t){t=t||l.languages||Object.keys(n);var a=p(e);var r=t.filter(k).filter(P).map((function(n){return m(n,e,false)}));r.unshift(a);var i=r.sort((function(e,n){if(e.relevance!==n.relevance)return n.relevance-e.relevance;if(e.language&&n.language){if(k(e.language).supersetOf===n.language){return 1}else if(k(n.language).supersetOf===e.language){return-1}}return 0}));var s=i[0],o=i[1];var d=s;d.second_best=o;return d}function f(e){if(!(l.tabReplace||l.useBR)){return e}return e.replace(i,(function(e){if(e==="\n"){return l.useBR?"<br>":e}else if(l.tabReplace){return e.replace(/\t/g,l.tabReplace)}return e}))}function h(e,n,a){var r=n?t[n]:a;e.classList.add("hljs");if(r)e.classList.add(r)}var v={"before:highlightElement":function(e){var n=e.el;if(l.useBR){n.innerHTML=n.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n")}},"after:highlightElement":function(e){var n=e.result;if(l.useBR){n.value=n.value.replace(/\n/g,"<br>")}}};var b=/^(<[^>]+>|\t)+/gm;var y={"after:highlightElement":function(e){var n=e.result;if(l.tabReplace){n.value=n.value.replace(b,(function(e){return e.replace(/\t/g,l.tabReplace)}))}}};function w(e){var n=null;var t=u(e);if(d(t))return;L("before:highlightElement",{el:e,language:t});n=e;var a=n.textContent;var r=t?c(a,{language:t,ignoreIllegals:true}):g(a);L("after:highlightElement",{el:e,result:r,text:a});e.innerHTML=r.value;h(e,t,r.language);e.result={language:r.language,re:r.relevance,relavance:r.relevance};if(r.second_best){e.second_best={language:r.second_best.language,re:r.second_best.relevance,relavance:r.second_best.relevance}}}function _(e){if(e.useBR){kG("10.3.0","'useBR' will be removed entirely in v11.0");kG("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")}l=PG(l,e)}var x=function(){if(x.called)return;x.called=true;kG("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");var e=document.querySelectorAll("pre code");e.forEach(w)};function T(){kG("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead.");S=true}var S=false;function E(){if(document.readyState==="loading"){S=true;return}var e=document.querySelectorAll("pre code");e.forEach(w)}function C(){if(S)E()}if(typeof window!=="undefined"&&window.addEventListener){window.addEventListener("DOMContentLoaded",C,false)}function R(t,a){var i=null;try{i=a(e)}catch(e){DG("Language definition for '{}' could not be registered.".replace("{}",t));if(!r){throw e}else{DG(e)}i=o}if(!i.name)i.name=t;n[t]=i;i.rawDefinition=a.bind(null,e);if(i.aliases){q(i.aliases,{languageName:t})}}function I(e){delete n[e];for(var a=0,r=Object.keys(t);a<r.length;a++){var i=r[a];if(t[i]===e){delete t[i]}}}function D(){return Object.keys(n)}function A(e){kG("10.4.0","requireLanguage will be removed entirely in v11.");kG("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");var n=k(e);if(n){return n}var t=new Error("The '{}' language is required, but not loaded.".replace("{}",e));throw t}function k(e){e=(e||"").toLowerCase();return n[e]||n[t[e]]}function q(e,n){var a=n.languageName;if(typeof e==="string"){e=[e]}e.forEach((function(e){t[e.toLowerCase()]=a}))}function P(e){var n=k(e);return n&&!n.disableAutodetect}function N(e){if(e["before:highlightBlock"]&&!e["before:highlightElement"]){e["before:highlightElement"]=function(n){e["before:highlightBlock"](Object.assign({block:n.el},n))}}if(e["after:highlightBlock"]&&!e["after:highlightElement"]){e["after:highlightElement"]=function(n){e["after:highlightBlock"](Object.assign({block:n.el},n))}}}function F(e){N(e);a.push(e)}function L(e,n){var t=e;a.forEach((function(e){if(e[t]){e[t](n)}}))}function O(e){kG("10.2.0","fixMarkup will be removed entirely in v11.0");kG("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534");return f(e)}function U(e){kG("10.7.0","highlightBlock will be removed entirely in v12.0");kG("10.7.0","Please use highlightElement now.");return w(e)}Object.assign(e,{highlight:c,highlightAuto:g,highlightAll:E,fixMarkup:O,highlightElement:w,highlightBlock:U,configure:_,initHighlighting:x,initHighlightingOnLoad:T,registerLanguage:R,unregisterLanguage:I,listLanguages:D,getLanguage:k,registerAliases:q,requireLanguage:A,autoDetection:P,inherit:PG,addPlugin:F,vuePlugin:TG(e).VuePlugin});e.debugMode=function(){r=false};e.safeMode=function(){r=true};e.versionString=_G;for(var B in oG){if(typeof oG[B]==="object"){bM(oG[B])}}Object.assign(e,oG);e.addPlugin(v);e.addPlugin(SG);e.addPlugin(y);return e};var LG=FG({});var OG=LG;function UG(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}var BG=UG;OG.registerLanguage("gherkin",BG);var MG=function(e,t){var a=e.story;var r;var i=(r=a.parent.parameters)===null||r===void 0?void 0:r.scenario;var s;try{s=OG.highlight("gherkin",i)}catch(e){}return n("div",null,n("details",null,n("summary",null,"Specs"),s&&n("pre",{innerHTML:s.value})),t)};var GG=[FB,kb,Tb,Lb,pq,tw,nP,ym,cy,jh,Vb,lP,bq,Vg,Oh,Sy,Af,Rh,pb,jk,z_,Ph,nv,qu,Xy,Zy,bx,jx,O_,f_,bT,ET,gh,Nw,qx,DR,ME,eR,AN,ow,KP,Ec,Zc,jT,Ac,E_,Fv,wE,zy,xf,By,_h,ab,YI,aD,eN,Pk,UT,AT,Xg,df,Zw,cA,NA,EI,wv,PS,bN,jv,CN,Qk,wP,Dq,sh,JS,gE,Fy,Ay,EU,Of,_O,cS,rN,pU,qO,_F,aT,yw,im,nx,ox,JN,UN,mw,ZO,nS,lN,UU,HU,eB,oB,pB,uk,Tk,cI,fI,HF,aM,dM,hM];var VG=e("sqm_stencilbook",function(){function e(e){t(this,e);this.ignored=true;u(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=wu(GG,{h:n,title:"Mint Components",addons:[Pu,re,MG]}),t=e.class,r=e.children;s("Default");s(true);return n(a,{class:t,onClick:{}},n("sqm-brand-selector",null),r)};return e}())}}}));