@saasquatch/mint-components 2.5.9 → 2.5.10

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 (69) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +44 -38
  2. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +5 -5
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +63 -6
  4. package/dist/cjs/{sqm-user-info-form-view-b2a78083.js → sqm-user-info-form-view-9b773a7c.js} +7 -3
  5. package/dist/cjs/{subregions-fd4e4ee2.js → subregions-77aac151.js} +8 -0
  6. package/dist/cjs/{useIndirectTaxForm-c5f31c83.js → useIndirectTaxForm-102d5c24.js} +2 -1
  7. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +56 -2
  8. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +6 -2
  9. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +11 -11
  10. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -0
  11. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +2 -2
  12. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +6 -2
  13. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +11 -11
  14. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -1
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +10 -10
  16. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +1 -1
  17. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  18. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -1
  19. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  20. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +13 -16
  21. package/dist/collection/components/tax-and-cash/utils.js +7 -0
  22. package/dist/esm/sqm-banking-info-form_10.entry.js +44 -38
  23. package/dist/esm/sqm-big-stat_47.entry.js +5 -5
  24. package/dist/esm/sqm-stencilbook.entry.js +63 -6
  25. package/dist/esm/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-0d95c791.js} +7 -3
  26. package/dist/esm/{subregions-c7df98a1.js → subregions-ec4682c7.js} +8 -1
  27. package/dist/esm/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-09809605.js} +2 -1
  28. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  29. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  30. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  31. package/dist/esm-es5/{sqm-user-info-form-view-3b420e99.js → sqm-user-info-form-view-0d95c791.js} +1 -1
  32. package/dist/esm-es5/{subregions-c7df98a1.js → subregions-ec4682c7.js} +1 -1
  33. package/dist/esm-es5/{useIndirectTaxForm-733f5cf4.js → useIndirectTaxForm-09809605.js} +2 -2
  34. package/dist/mint-components/mint-components.esm.js +1 -1
  35. package/dist/mint-components/{p-3a5e63e3.entry.js → p-24d56265.entry.js} +2 -2
  36. package/dist/mint-components/p-2bd3f2ac.system.js +6 -0
  37. package/dist/mint-components/p-363bf460.system.entry.js +1 -0
  38. package/dist/mint-components/{p-9ccb9494.system.js → p-3dc446ec.system.js} +1 -1
  39. package/dist/mint-components/{p-089c0803.js → p-461a068d.js} +1 -1
  40. package/dist/mint-components/p-71b1cd71.entry.js +83 -0
  41. package/dist/mint-components/p-99d4ddee.js +107 -0
  42. package/dist/mint-components/p-b1d6a6f2.system.js +1 -0
  43. package/dist/mint-components/p-c0e26b94.entry.js +147 -0
  44. package/dist/mint-components/{p-33075c60.system.entry.js → p-df62cb1b.system.entry.js} +1 -1
  45. package/dist/mint-components/p-e78ec46b.system.js +1 -1
  46. package/dist/mint-components/p-ec78006c.system.entry.js +1 -0
  47. package/dist/mint-components/{p-60c70417.js → p-f15ad5b6.js} +1 -1
  48. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +3 -0
  49. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
  50. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -4
  51. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  52. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -4
  53. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +1 -0
  54. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -4
  55. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -4
  56. package/dist/types/components/tax-and-cash/utils.d.ts +3 -1
  57. package/dist/types/components.d.ts +32 -32
  58. package/docs/docs.docx +0 -0
  59. package/docs/raisins.json +1 -1
  60. package/docs/stats.json +279 -276
  61. package/grapesjs/grapesjs.js +1 -1
  62. package/package.json +1 -1
  63. package/dist/mint-components/p-197eaa29.system.entry.js +0 -1
  64. package/dist/mint-components/p-51c9df1e.system.js +0 -6
  65. package/dist/mint-components/p-71a5086d.js +0 -107
  66. package/dist/mint-components/p-e0f614a2.entry.js +0 -147
  67. package/dist/mint-components/p-ed18f6a0.system.js +0 -1
  68. package/dist/mint-components/p-f05c18b9.system.entry.js +0 -1
  69. package/dist/mint-components/p-fabc805a.entry.js +0 -83
@@ -0,0 +1,147 @@
1
+ import{h as e,r as n,c as t}from"./p-834cd992.js";import{a,u as r,k as i,c as o,j as s,d as l,n as d}from"./p-056845fb.js";import{S as u,B as c,a as m,P as p,b as h,c as g,u as f,T as b,C as y,d as w,e as v,D as x,E as T,L as S,H as E,I as C,N as R,f as D,g as I,h as A,R as q,i as k,r as P,j as N,k as F,l as L,m as _,n as U,o as O,p as B,q as M,s as G,t as V,v as W,w as j,x as H,y as J,z as Y,A as z,F as K,G as $,J as X,K as Z,M as Q,O as ee,Q as ne,U as te,V as ae}from"./p-1db95c9f.js";import{C as re}from"./p-6e00edce.js";import{c as ie}from"./p-af9d3491.js";import{N as oe}from"./p-2b052eed.js";import{N as se}from"./p-b961a246.js";import{P as le,a as de}from"./p-9cabd2d1.js";import{P as ue}from"./p-6b289ca6.js";import{K as ce,L as me,M as pe,N as he,O as ge,P as fe,S as be,Q as ye,R as we,T as ve,U as xe,V as Te,W as Se,X as Ee,Y as Ce,Z as Re,_ as De,$ as Ie,a0 as Ae,n as qe,a1 as ke,a2 as Pe,a3 as Ne,a4 as Fe,t as Le,C as _e,a5 as Ue,d as Oe,a6 as Be,G as Me,E as Ge,a7 as Ve}from"./p-807b9f18.js";import{b as We,P as je,a as He,c as Je}from"./p-74a9ff43.js";import{C as Ye}from"./p-71759064.js";import{G as ze}from"./p-acd3e9e3.js";import{I as Ke,T as $e,O as Xe,U as Ze}from"./p-f15ad5b6.js";import{L as Qe}from"./p-72f11f03.js";import{L as en}from"./p-159a9368.js";import{P as nn}from"./p-ecdc2ea3.js";import{P as tn}from"./p-732ac03d.js";import{P as an}from"./p-ac32d96a.js";import{Q as rn}from"./p-a8e2f45b.js";import{l as on}from"./p-eba82926.js";import{t as sn,L as ln,I as dn,a as un}from"./p-461a068d.js";import{E as cn}from"./p-3b7eac48.js";import{L as mn}from"./p-78a9b530.js";import{L as pn}from"./p-a12e40cb.js";import{P as hn}from"./p-fe642b83.js";import"./p-49b20dae.js";import"./p-3595dbe3.js";import"./p-df45273e.js";import"./p-d3b0d256.js";import"./p-5a2c495f.js";import"./p-78892897.js";import"./p-9ec99ced.js";import"./p-83a203f4.js";import"./p-f75de169.js";import"./p-e7c7a146.js";import"./p-f9f604a7.js";import"./p-aadbe44d.js";import"./p-8d85f34c.js";function gn(e){return"function"==typeof(null==e?void 0:e.then)}var fn=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}},bn=Object.values||function(e){return Object.keys(e).map((function(n){return e[n]}))};function yn(e,n,t){var a,r=e instanceof Error?e:new Error("Unexpected error value: "+ce(e));return Array.isArray(r.path)?r:new me(r.message,null!==(a=r.nodes)&&void 0!==a?a:n,r.source,r.positions,t,r)}var wn=/^[_a-zA-Z][_a-zA-Z0-9]*$/,vn=Object.entries||function(e){return Object.keys(e).map((function(n){return[n,e[n]]}))};function xn(e,n){return e.reduce((function(e,t){return e[n(t)]=t,e}),Object.create(null))}function Tn(e,n){for(var t=Object.create(null),a=0,r=vn(e);a<r.length;a++){var i=r[a],o=i[0];t[o]=n(i[1],o)}return t}function Sn(e){if(null===Object.getPrototypeOf(e))return e;for(var n=Object.create(null),t=0,a=vn(e);t<a.length;t++){var r=a[t];n[r[0]]=r[1]}return n}function En(e,n,t){return e.reduce((function(e,a){return e[n(a)]=t(a),e}),Object.create(null))}function Cn(e,n){var t="string"==typeof e?[e,n]:[void 0,e],a=t[0],r=" Did you mean ";a&&(r+=a+" ");var i=t[1].map((function(e){return'"'.concat(e,'"')}));switch(i.length){case 0:return"";case 1:return r+i[0]+"?";case 2:return r+i[0]+" or "+i[1]+"?"}var o=i.slice(0,5),s=o.pop();return r+o.join(", ")+", or "+s+"?"}function Rn(e){return e}function Dn(e,n){for(var t=0,a=0;t<e.length&&a<n.length;){var r=e.charCodeAt(t),i=n.charCodeAt(a);if(An(r)&&An(i)){var o=0;do{++t,o=10*o+r-In,r=e.charCodeAt(t)}while(An(r)&&o>0);var s=0;do{++a,s=10*s+i-In,i=n.charCodeAt(a)}while(An(i)&&s>0);if(o<s)return-1;if(o>s)return 1}else{if(r<i)return-1;if(r>i)return 1;++t,++a}}return e.length-n.length}var In=48;function An(e){return!isNaN(e)&&In<=e&&e<=57}function qn(e,n){for(var t=Object.create(null),a=new kn(e),r=Math.floor(.4*e.length)+1,i=0;i<n.length;i++){var o=n[i],s=a.measure(o,r);void 0!==s&&(t[o]=s)}return Object.keys(t).sort((function(e,n){var a=t[e]-t[n];return 0!==a?a:Dn(e,n)}))}var kn=function(){function e(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Pn(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)]}return e.prototype.measure=function(e,n){if(this._input===e)return 0;var t=e.toLowerCase();if(this._inputLowerCase===t)return 1;var a=Pn(t),r=this._inputArray;if(a.length<r.length){var i=a;a=r,r=i}var o=a.length,s=r.length;if(!(o-s>n)){for(var l=this._rows,d=0;d<=s;d++)l[0][d]=d;for(var u=1;u<=o;u++){for(var c=l[(u-1)%3],m=l[u%3],p=m[0]=u,h=1;h<=s;h++){var g=Math.min(c[h]+1,m[h-1]+1,c[h-1]+(a[u-1]===r[h-1]?0:1));u>1&&h>1&&a[u-1]===r[h-2]&&a[u-2]===r[h-1]&&(g=Math.min(g,l[(u-2)%3][h-2]+1)),g<p&&(p=g),m[h]=g}if(p>n)return}var f=l[o%3][s];return f<=n?f:void 0}},e}();function Pn(e){for(var n=e.length,t=new Array(n),a=0;a<n;++a)t[a]=e.charCodeAt(a);return t}function Nn(e,n){switch(e.kind){case he.NULL:return null;case he.INT:return parseInt(e.value,10);case he.FLOAT:return parseFloat(e.value);case he.STRING:case he.ENUM:case he.BOOLEAN:return e.value;case he.LIST:return e.values.map((function(e){return Nn(e,n)}));case he.OBJECT:return En(e.fields,(function(e){return e.name.value}),(function(e){return Nn(e.value,n)}));case he.VARIABLE:return null==n?void 0:n[e.name.value]}ge(0,"Unexpected value node: "+ce(e))}function Fn(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Ln(e,n,t){return n&&Fn(e.prototype,n),t&&Fn(e,t),e}function _n(e){return Un(e)||On(e)||Bn(e)||Mn(e)||Gn(e)||Vn(e)||Wn(e)||jn(e)}function Un(e){return fe(e,rt)}function On(e){return fe(e,it)}function Bn(e){return fe(e,mt)}function Mn(e){return fe(e,pt)}function Gn(e){return fe(e,gt)}function Vn(e){return fe(e,bt)}function Wn(e){return fe(e,$n)}function jn(e){return fe(e,Xn)}function Hn(e){return Un(e)||Gn(e)||Vn(e)||Zn(e)&&Hn(e.ofType)}function Jn(e){return Un(e)||On(e)||Bn(e)||Mn(e)||Gn(e)||Zn(e)&&Jn(e.ofType)}function Yn(e){return Un(e)||Gn(e)}function zn(e){return On(e)||Bn(e)||Mn(e)}function Kn(e){return Bn(e)||Mn(e)}function $n(e){if(!(this instanceof $n))return new $n(e);this.ofType=function(e){if(!_n(e))throw new Error("Expected ".concat(ce(e)," to be a GraphQL type."));return e}(e)}function Xn(e){if(!(this instanceof Xn))return new Xn(e);this.ofType=function(e){if(!function(e){return _n(e)&&!jn(e)}(e))throw new Error("Expected ".concat(ce(e)," to be a GraphQL nullable type."));return e}(e)}function Zn(e){return Wn(e)||jn(e)}function Qn(e){if(e)return jn(e)?e.ofType:e}function et(e){return Un(e)||On(e)||Bn(e)||Mn(e)||Gn(e)||Vn(e)}function nt(e){if(e){for(var n=e;Zn(n);)n=n.ofType;return n}}function tt(e){return"function"==typeof e?e():e}function at(e){return e&&e.length>0?e:void 0}$n.prototype.toString=function(){return"["+String(this.ofType)+"]"},$n.prototype.toJSON=function(){return this.toString()},Object.defineProperty($n.prototype,be,{get:function(){return"GraphQLList"}}),ye($n),Xn.prototype.toString=function(){return String(this.ofType)+"!"},Xn.prototype.toJSON=function(){return this.toString()},Object.defineProperty(Xn.prototype,be,{get:function(){return"GraphQLNonNull"}}),ye(Xn);var rt=function(){function e(e){var n,t,a,r=null!==(n=e.parseValue)&&void 0!==n?n:Rn;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(t=e.serialize)&&void 0!==t?t:Rn,this.parseValue=r,this.parseLiteral=null!==(a=e.parseLiteral)&&void 0!==a?a:function(e,n){return r(Nn(e,n))},this.extensions=e.extensions&&Sn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=at(e.extensionASTNodes),"string"==typeof e.name||pe(0,"Must provide name."),null==e.specifiedByUrl||"string"==typeof e.specifiedByUrl||pe(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(ce(e.specifiedByUrl),".")),null==e.serialize||"function"==typeof e.serialize||pe(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.')),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||pe(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var n=e.prototype;return n.toConfig=function(){var e;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:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:be,get:function(){return"GraphQLScalarType"}}]),e}();ye(rt);var it=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&Sn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=at(e.extensionASTNodes),this._fields=st.bind(void 0,e),this._interfaces=ot.bind(void 0,e),"string"==typeof e.name||pe(0,"Must provide name."),null==e.isTypeOf||"function"==typeof e.isTypeOf||pe(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(ce(e.isTypeOf),"."))}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:dt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:be,get:function(){return"GraphQLObjectType"}}]),e}();function ot(e){var n,t=null!==(n=tt(e.interfaces))&&void 0!==n?n:[];return Array.isArray(t)||pe(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function st(e){var n=tt(e.fields);return lt(n)||pe(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Tn(n,(function(n,t){var a;lt(n)||pe(0,"".concat(e.name,".").concat(t," field config must be an object.")),!("isDeprecated"in n)||pe(0,"".concat(e.name,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".')),null==n.resolve||"function"==typeof n.resolve||pe(0,"".concat(e.name,".").concat(t," field resolver must be a function if ")+"provided, but got: ".concat(ce(n.resolve),"."));var r=null!==(a=n.args)&&void 0!==a?a:{};lt(r)||pe(0,"".concat(e.name,".").concat(t," args must be an object with argument names as keys."));var i=vn(r).map((function(e){var n=e[1];return{name:e[0],description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Sn(n.extensions),astNode:n.astNode}}));return{name:t,description:n.description,type:n.type,args:i,resolve:n.resolve,subscribe:n.subscribe,isDeprecated:null!=n.deprecationReason,deprecationReason:n.deprecationReason,extensions:n.extensions&&Sn(n.extensions),astNode:n.astNode}}))}function lt(e){return ve(e)&&!Array.isArray(e)}function dt(e){return Tn(e,(function(e){return{description:e.description,type:e.type,args:ut(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function ut(e){return En(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 ct(e){return jn(e.type)&&void 0===e.defaultValue}ye(it);var mt=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Sn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=at(e.extensionASTNodes),this._fields=st.bind(void 0,e),this._interfaces=ot.bind(void 0,e),"string"==typeof e.name||pe(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||pe(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(ce(e.resolveType),"."))}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.getInterfaces=function(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},n.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:dt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:be,get:function(){return"GraphQLInterfaceType"}}]),e}();ye(mt);var pt=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&Sn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=at(e.extensionASTNodes),this._types=ht.bind(void 0,e),"string"==typeof e.name||pe(0,"Must provide name."),null==e.resolveType||"function"==typeof e.resolveType||pe(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(ce(e.resolveType),"."))}var n=e.prototype;return n.getTypes=function(){return"function"==typeof this._types&&(this._types=this._types()),this._types},n.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:be,get:function(){return"GraphQLUnionType"}}]),e}();function ht(e){var n=tt(e.types);return Array.isArray(n)||pe(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),n}ye(pt);var gt=function(){function e(e){var n,t;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Sn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=at(e.extensionASTNodes),this._values=(n=this.name,lt(t=e.values)||pe(0,"".concat(n," values must be an object with value names as keys.")),vn(t).map((function(e){var t=e[0],a=e[1];return lt(a)||pe(0,"".concat(n,".").concat(t,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(ce(a),".")),!("isDeprecated"in a)||pe(0,"".concat(n,".").concat(t,' should provide "deprecationReason" instead of "isDeprecated".')),{name:t,description:a.description,value:void 0!==a.value?a.value:t,isDeprecated:null!=a.deprecationReason,deprecationReason:a.deprecationReason,extensions:a.extensions&&Sn(a.extensions),astNode:a.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=xn(this._values,(function(e){return e.name})),"string"==typeof e.name||pe(0,"Must provide name.")}var n=e.prototype;return n.getValues=function(){return this._values},n.getValue=function(e){return this._nameLookup[e]},n.serialize=function(e){var n=this._valueLookup.get(e);if(void 0===n)throw new me('Enum "'.concat(this.name,'" cannot represent value: ').concat(ce(e)));return n.name},n.parseValue=function(e){if("string"!=typeof e){var n=ce(e);throw new me('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(n,".")+ft(this,n))}var t=this.getValue(e);if(null==t)throw new me('Value "'.concat(e,'" does not exist in "').concat(this.name,'" enum.')+ft(this,e));return t.value},n.parseLiteral=function(e){if(e.kind!==he.ENUM){var n=we(e);throw new me('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(n,".")+ft(this,n),e)}var t=this.getValue(e.value);if(null==t){var a=we(e);throw new me('Value "'.concat(a,'" does not exist in "').concat(this.name,'" enum.')+ft(this,a),e)}return t.value},n.toConfig=function(){var e,n=En(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:n,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:be,get:function(){return"GraphQLEnumType"}}]),e}();function ft(e,n){return Cn("the enum value",qn(n,e.getValues().map((function(e){return e.name}))))}ye(gt);var bt=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&Sn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=at(e.extensionASTNodes),this._fields=yt.bind(void 0,e),"string"==typeof e.name||pe(0,"Must provide name.")}var n=e.prototype;return n.getFields=function(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields},n.toConfig=function(){var e,n=Tn(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:n,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},n.toString=function(){return this.name},n.toJSON=function(){return this.toString()},Ln(e,[{key:be,get:function(){return"GraphQLInputObjectType"}}]),e}();function yt(e){var n=tt(e.fields);return lt(n)||pe(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),Tn(n,(function(n,t){return!("resolve"in n)||pe(0,"".concat(e.name,".").concat(t," field has a resolve property, but Input Types cannot define resolvers.")),{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Sn(n.extensions),astNode:n.astNode}}))}function wt(e){return jn(e.type)&&void 0===e.defaultValue}function vt(e,n){return e===n||(jn(e)&&jn(n)||!(!Wn(e)||!Wn(n)))&&vt(e.ofType,n.ofType)}function xt(e,n,t){return n===t||(jn(t)?!!jn(n)&&xt(e,n.ofType,t.ofType):jn(n)?xt(e,n.ofType,t):Wn(t)?!!Wn(n)&&xt(e,n.ofType,t.ofType):!Wn(n)&&Kn(t)&&(Bn(n)||On(n))&&e.isSubType(t,n))}function Tt(e,n,t){return n===t||(Kn(n)?Kn(t)?e.getPossibleTypes(n).some((function(n){return e.isSubType(t,n)})):e.isSubType(n,t):!!Kn(t)&&e.isSubType(t,n))}ye(bt);var St=Array.from||function(e,n,t){if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var a=e[xe];if("function"==typeof a){for(var r,i=a.call(e),o=[],s=0;!(r=i.next()).done;++s)if(o.push(n.call(t,r.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return o}var l=e.length;if("number"==typeof l&&l>=0&&l%1==0){for(var d=[],u=0;u<l;++u)Object.prototype.hasOwnProperty.call(e,u)&&d.push(n.call(t,e[u],u));return d}return[]},Et=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)};function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function Rt(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||"object"!==Ct(e))return null;if(Array.isArray(e))return e.map(n);var t=e[xe];if("function"==typeof t){for(var a,r=t.call(e),i=[],o=0;!(a=r.next()).done;++o)i.push(n(a.value,o));return i}var s=e.length;if("number"==typeof s&&s>=0&&s%1==0){for(var l=[],d=0;d<s;++d){if(!Object.prototype.hasOwnProperty.call(e,d))return null;l.push(n(e[String(d)],d))}return l}return null}var Dt=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},It=2147483647,At=-2147483648,qt=new rt({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:function(e){var n=Pt(e);if("boolean"==typeof n)return n?1:0;var t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),!Dt(t))throw new me("Int cannot represent non-integer value: ".concat(ce(n)));if(t>It||t<At)throw new me("Int cannot represent non 32-bit signed integer value: "+ce(n));return t},parseValue:function(e){if(!Dt(e))throw new me("Int cannot represent non-integer value: ".concat(ce(e)));if(e>It||e<At)throw new me("Int cannot represent non 32-bit signed integer value: ".concat(e));return e},parseLiteral:function(e){if(e.kind!==he.INT)throw new me("Int cannot represent non-integer value: ".concat(we(e)),e);var n=parseInt(e.value,10);if(n>It||n<At)throw new me("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return n}}),kt=new rt({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:function(e){var n=Pt(e);if("boolean"==typeof n)return n?1:0;var t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),!Et(t))throw new me("Float cannot represent non numeric value: ".concat(ce(n)));return t},parseValue:function(e){if(!Et(e))throw new me("Float cannot represent non numeric value: ".concat(ce(e)));return e},parseLiteral:function(e){if(e.kind!==he.FLOAT&&e.kind!==he.INT)throw new me("Float cannot represent non numeric value: ".concat(we(e)),e);return parseFloat(e.value)}});function Pt(e){if(ve(e)){if("function"==typeof e.valueOf){var n=e.valueOf();if(!ve(n))return n}if("function"==typeof e.toJSON)return e.toJSON()}return e}var Nt=new rt({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:function(e){var n=Pt(e);if("string"==typeof n)return n;if("boolean"==typeof n)return n?"true":"false";if(Et(n))return n.toString();throw new me("String cannot represent value: ".concat(ce(e)))},parseValue:function(e){if("string"!=typeof e)throw new me("String cannot represent a non string value: ".concat(ce(e)));return e},parseLiteral:function(e){if(e.kind!==he.STRING)throw new me("String cannot represent a non string value: ".concat(we(e)),e);return e.value}}),Ft=new rt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:function(e){var n=Pt(e);if("boolean"==typeof n)return n;if(Et(n))return 0!==n;throw new me("Boolean cannot represent a non boolean value: ".concat(ce(n)))},parseValue:function(e){if("boolean"!=typeof e)throw new me("Boolean cannot represent a non boolean value: ".concat(ce(e)));return e},parseLiteral:function(e){if(e.kind!==he.BOOLEAN)throw new me("Boolean cannot represent a non boolean value: ".concat(we(e)),e);return e.value}}),Lt=new rt({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:function(e){var n=Pt(e);if("string"==typeof n)return n;if(Dt(n))return String(n);throw new me("ID cannot represent value: ".concat(ce(e)))},parseValue:function(e){if("string"==typeof e)return e;if(Dt(e))return e.toString();throw new me("ID cannot represent value: ".concat(ce(e)))},parseLiteral:function(e){if(e.kind!==he.STRING&&e.kind!==he.INT)throw new me("ID cannot represent a non-string and non-integer value: "+we(e),e);return e.value}}),_t=Object.freeze([Nt,qt,kt,Ft,Lt]);function Ut(e){return _t.some((function(n){return e.name===n.name}))}function Ot(e,n){if(jn(n)){var t=Ot(e,n.ofType);return(null==t?void 0:t.kind)===he.NULL?null:t}if(null===e)return{kind:he.NULL};if(void 0===e)return null;if(Wn(n)){var a=n.ofType,r=Rt(e);if(null!=r){for(var i=[],o=0;o<r.length;o++){var s=Ot(r[o],a);null!=s&&i.push(s)}return{kind:he.LIST,values:i}}return Ot(e,a)}if(Vn(n)){if(!ve(e))return null;for(var l=[],d=0,u=bn(n.getFields());d<u.length;d++){var c=u[d],m=Ot(e[c.name],c.type);m&&l.push({kind:he.OBJECT_FIELD,name:{kind:he.NAME,value:c.name},value:m})}return{kind:he.OBJECT,fields:l}}if(Yn(n)){var p=n.serialize(e);if(null==p)return null;if("boolean"==typeof p)return{kind:he.BOOLEAN,value:p};if("number"==typeof p&&Et(p)){var h=String(p);return Bt.test(h)?{kind:he.INT,value:h}:{kind:he.FLOAT,value:h}}if("string"==typeof p)return Gn(n)?{kind:he.ENUM,value:p}:n===Lt&&Bt.test(p)?{kind:he.INT,value:p}:{kind:he.STRING,value:p};throw new TypeError("Cannot convert value to AST: ".concat(ce(p),"."))}ge(0,"Unexpected input type: "+ce(n))}var Bt=/^-?(?:0|[1-9][0-9]*)$/,Mt=new it({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(){return{description:{type:Nt,resolve:function(e){return e.description}},types:{description:"A list of all types supported by this server.",type:new Xn(new $n(new Xn(Wt))),resolve:function(e){return bn(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Xn(Wt),resolve:function(e){return e.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Wt,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Wt,resolve:function(e){return e.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new Xn(new $n(new Xn(Gt))),resolve:function(e){return e.getDirectives()}}}}}),Gt=new it({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(){return{name:{type:new Xn(Nt),resolve:function(e){return e.name}},description:{type:Nt,resolve:function(e){return e.description}},isRepeatable:{type:new Xn(Ft),resolve:function(e){return e.isRepeatable}},locations:{type:new Xn(new $n(new Xn(Vt))),resolve:function(e){return e.locations}},args:{type:new Xn(new $n(new Xn(Ht))),args:{includeDeprecated:{type:Ft,defaultValue:!1}},resolve:function(e,n){return n.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}}}}}),Vt=new gt({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."}}}),Wt=new it({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(){return{kind:{type:new Xn(zt),resolve:function(e){return Un(e)?Yt.SCALAR:On(e)?Yt.OBJECT:Bn(e)?Yt.INTERFACE:Mn(e)?Yt.UNION:Gn(e)?Yt.ENUM:Vn(e)?Yt.INPUT_OBJECT:Wn(e)?Yt.LIST:jn(e)?Yt.NON_NULL:void ge(0,'Unexpected type: "'.concat(ce(e),'".'))}},name:{type:Nt,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:Nt,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:Nt,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new $n(new Xn(jt)),args:{includeDeprecated:{type:Ft,defaultValue:!1}},resolve:function(e,n){var t=n.includeDeprecated;if(On(e)||Bn(e)){var a=bn(e.getFields());return t?a:a.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new $n(new Xn(Wt)),resolve:function(e){if(On(e)||Bn(e))return e.getInterfaces()}},possibleTypes:{type:new $n(new Xn(Wt)),resolve:function(e,n,t,a){var r=a.schema;if(Kn(e))return r.getPossibleTypes(e)}},enumValues:{type:new $n(new Xn(Jt)),args:{includeDeprecated:{type:Ft,defaultValue:!1}},resolve:function(e,n){var t=n.includeDeprecated;if(Gn(e)){var a=e.getValues();return t?a:a.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new $n(new Xn(Ht)),args:{includeDeprecated:{type:Ft,defaultValue:!1}},resolve:function(e,n){var t=n.includeDeprecated;if(Vn(e)){var a=bn(e.getFields());return t?a:a.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:Wt,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}}),jt=new it({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(){return{name:{type:new Xn(Nt),resolve:function(e){return e.name}},description:{type:Nt,resolve:function(e){return e.description}},args:{type:new Xn(new $n(new Xn(Ht))),args:{includeDeprecated:{type:Ft,defaultValue:!1}},resolve:function(e,n){return n.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new Xn(Wt),resolve:function(e){return e.type}},isDeprecated:{type:new Xn(Ft),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:Nt,resolve:function(e){return e.deprecationReason}}}}}),Ht=new it({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(){return{name:{type:new Xn(Nt),resolve:function(e){return e.name}},description:{type:Nt,resolve:function(e){return e.description}},type:{type:new Xn(Wt),resolve:function(e){return e.type}},defaultValue:{type:Nt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(e){var n=Ot(e.defaultValue,e.type);return n?we(n):null}},isDeprecated:{type:new Xn(Ft),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:Nt,resolve:function(e){return e.deprecationReason}}}}}),Jt=new it({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(){return{name:{type:new Xn(Nt),resolve:function(e){return e.name}},description:{type:Nt,resolve:function(e){return e.description}},isDeprecated:{type:new Xn(Ft),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:Nt,resolve:function(e){return e.deprecationReason}}}}}),Yt=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),zt=new gt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Yt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Yt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Yt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Yt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Yt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Yt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Yt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Yt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Kt={name:"__schema",type:new Xn(Mt),description:"Access the current type schema of this server.",args:[],resolve:function(e,n,t,a){return a.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},$t={name:"__type",type:Wt,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Xn(Nt),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,n,t,a){return a.schema.getType(n.name)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Xt={name:"__typename",type:new Xn(Nt),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,n,t,a){return a.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Zt=Object.freeze([Mt,Gt,Vt,Wt,jt,Ht,Jt,zt]);function Qt(e){return Zt.some((function(n){return e.name===n.name}))}function ea(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function na(e){return fe(e,ta)}var ta=function(){function e(e){var n,t;this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(n=e.isRepeatable)&&void 0!==n&&n,this.extensions=e.extensions&&Sn(e.extensions),this.astNode=e.astNode,e.name||pe(0,"Directive must be named."),Array.isArray(e.locations)||pe(0,"@".concat(e.name," locations must be an Array."));var a=null!==(t=e.args)&&void 0!==t?t:{};ve(a)&&!Array.isArray(a)||pe(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=vn(a).map((function(e){var n=e[1];return{name:e[0],description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Sn(n.extensions),astNode:n.astNode}}))}var n,t,a=e.prototype;return a.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:ut(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},a.toString=function(){return"@"+this.name},a.toJSON=function(){return this.toString()},n=e,(t=[{key:be,get:function(){return"GraphQLDirective"}}])&&ea(n.prototype,t),e}();ye(ta);var aa=new ta({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 Xn(Ft),description:"Included when true."}}}),ra=new ta({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 Xn(Ft),description:"Skipped when true."}}}),ia=new ta({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:Nt,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:"No longer supported"}}}),oa=new ta({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[Te.SCALAR],args:{url:{type:new Xn(Nt),description:"The URL that specifies the behaviour of this scalar."}}}),sa=Object.freeze([aa,ra,ia,oa]);function la(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function da(e){return fe(e,ua)}var ua=function(){function e(e){var n;this.__validationErrors=!0===e.assumeValid?[]:void 0,ve(e)||pe(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||pe(0,'"types" must be Array if provided but got: '.concat(ce(e.types),".")),!e.directives||Array.isArray(e.directives)||pe(0,'"directives" must be Array if provided but got: '+"".concat(ce(e.directives),".")),this.description=e.description,this.extensions=e.extensions&&Sn(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:sa;var t=new Set(e.types);if(null!=e.types)for(var a=0,r=e.types;a<r.length;a++){var i=r[a];t.delete(i),ca(i,t)}null!=this._queryType&&ca(this._queryType,t),null!=this._mutationType&&ca(this._mutationType,t),null!=this._subscriptionType&&ca(this._subscriptionType,t);for(var o=0,s=this._directives;o<s.length;o++){var l=s[o];if(na(l))for(var d=0,u=l.args;d<u.length;d++)ca(u[d].type,t)}ca(Mt,t),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var c=0,m=St(t);c<m.length;c++){var p=m[c];if(null!=p){var h=p.name;if(h||pe(0,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[h])throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(h,'".'));if(this._typeMap[h]=p,Bn(p))for(var g=0,f=p.getInterfaces();g<f.length;g++){var b=f[g];if(Bn(b)){var y=this._implementationsMap[b.name];void 0===y&&(y=this._implementationsMap[b.name]={objects:[],interfaces:[]}),y.interfaces.push(p)}}else if(On(p))for(var w=0,v=p.getInterfaces();w<v.length;w++){var x=v[w];if(Bn(x)){var T=this._implementationsMap[x.name];void 0===T&&(T=this._implementationsMap[x.name]={objects:[],interfaces:[]}),T.objects.push(p)}}}}}var n,t,a=e.prototype;return a.getQueryType=function(){return this._queryType},a.getMutationType=function(){return this._mutationType},a.getSubscriptionType=function(){return this._subscriptionType},a.getTypeMap=function(){return this._typeMap},a.getType=function(e){return this.getTypeMap()[e]},a.getPossibleTypes=function(e){return Mn(e)?e.getTypes():this.getImplementations(e).objects},a.getImplementations=function(e){var n=this._implementationsMap[e.name];return null!=n?n:{objects:[],interfaces:[]}},a.isPossibleType=function(e,n){return this.isSubType(e,n)},a.isSubType=function(e,n){var t=this._subTypeMap[e.name];if(void 0===t){if(t=Object.create(null),Mn(e))for(var a=0,r=e.getTypes();a<r.length;a++)t[r[a].name]=!0;else{for(var i=this.getImplementations(e),o=0,s=i.objects;o<s.length;o++)t[s[o].name]=!0;for(var l=0,d=i.interfaces;l<d.length;l++)t[d[l].name]=!0}this._subTypeMap[e.name]=t}return void 0!==t[n.name]},a.getDirectives=function(){return this._directives},a.getDirective=function(e){return fn(this.getDirectives(),(function(n){return n.name===e}))},a.toConfig=function(){var e;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:bn(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[],assumeValid:void 0!==this.__validationErrors}},n=e,(t=[{key:be,get:function(){return"GraphQLSchema"}}])&&la(n.prototype,t),e}();function ca(e,n){var t=nt(e);if(!n.has(t))if(n.add(t),Mn(t))for(var a=0,r=t.getTypes();a<r.length;a++)ca(r[a],n);else if(On(t)||Bn(t)){for(var i=0,o=t.getInterfaces();i<o.length;i++)ca(o[i],n);for(var s=0,l=bn(t.getFields());s<l.length;s++){var d=l[s];ca(d.type,n);for(var u=0,c=d.args;u<c.length;u++)ca(c[u].type,n)}}else if(Vn(t))for(var m=0,p=bn(t.getFields());m<p.length;m++)ca(p[m].type,n);return n}function ma(e){if(function(e){if(!da(e))throw new Error("Expected ".concat(ce(e)," to be a GraphQL schema."))}(e),e.__validationErrors)return e.__validationErrors;var n=new ha(e);!function(e){var n=e.schema,t=n.getQueryType();if(t){if(!On(t)){var a;e.reportError("Query root type must be Object type, it cannot be ".concat(ce(t),"."),null!==(a=ga(n,"query"))&&void 0!==a?a:t.astNode)}}else e.reportError("Query root type must be provided.",n.astNode);var r,i=n.getMutationType();i&&!On(i)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(ce(i),"."),null!==(r=ga(n,"mutation"))&&void 0!==r?r:i.astNode);var o,s=n.getSubscriptionType();s&&!On(s)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(ce(s),"."),null!==(o=ga(n,"subscription"))&&void 0!==o?o:s.astNode)}(n),function(e){for(var n=0,t=e.schema.getDirectives();n<t.length;n++){var a=t[n];if(na(a)){fa(e,a);for(var r=0,i=a.args;r<i.length;r++){var o,s=i[r];fa(e,s),Hn(s.type)||e.reportError("The type of @".concat(a.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat(ce(s.type),"."),s.astNode),ct(s)&&null!=s.deprecationReason&&e.reportError("Required argument @".concat(a.name,"(").concat(s.name,":) cannot be deprecated."),[Ia(s.astNode),null===(o=s.astNode)||void 0===o?void 0:o.type])}}else e.reportError("Expected directive but got: ".concat(ce(a),"."),null==a?void 0:a.astNode)}}(n),function(e){for(var n=function(e){var n=Object.create(null),t=[],a=Object.create(null);return function r(i){if(!n[i.name]){n[i.name]=!0,a[i.name]=t.length;for(var o=bn(i.getFields()),s=0;s<o.length;s++){var l=o[s];if(jn(l.type)&&Vn(l.type.ofType)){var d=l.type.ofType,u=a[d.name];if(t.push(l),void 0===u)r(d);else{var c=t.slice(u),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]=void 0}}}(e),t=e.schema.getTypeMap(),a=0,r=bn(t);a<r.length;a++){var i=r[a];et(i)?(Qt(i)||fa(e,i),On(i)||Bn(i)?(ba(e,i),ya(e,i)):Mn(i)?xa(e,i):Gn(i)?Ta(e,i):Vn(i)&&(Sa(e,i),n(i))):e.reportError("Expected GraphQL named type but got: ".concat(ce(i),"."),i.astNode)}}(n);var t=n.getErrors();return e.__validationErrors=t,t}function pa(e){var n=ma(e);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}var ha=function(){function e(e){this._errors=[],this.schema=e}var n=e.prototype;return n.reportError=function(e,n){var t=Array.isArray(n)?n.filter(Boolean):n;this.addError(new me(e,t))},n.addError=function(e){this._errors.push(e)},n.getErrors=function(){return this._errors},e}();function ga(e,n){for(var t=Ca(e,(function(e){return e.operationTypes})),a=0;a<t.length;a++){var r=t[a];if(r.operation===n)return r.type}}function fa(e,n){var t,a=("string"==typeof(t=n.name)||pe(0,"Expected name to be a string."),t.length>1&&"_"===t[0]&&"_"===t[1]?new me('Name "'.concat(t,'" must not begin with "__", which is reserved by GraphQL introspection.')):wn.test(t)?void 0:new me('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(t,'" does not.')));a&&e.addError(yn(a,n.astNode))}function ba(e,n){var t=bn(n.getFields());0===t.length&&e.reportError("Type ".concat(n.name," must define one or more fields."),Ea(n));for(var a=0;a<t.length;a++){var r,i=t[a];fa(e,i),Jn(i.type)||e.reportError("The type of ".concat(n.name,".").concat(i.name," must be Output Type ")+"but got: ".concat(ce(i.type),"."),null===(r=i.astNode)||void 0===r?void 0:r.type);for(var o=0,s=i.args;o<s.length;o++){var l,d,u=s[o],c=u.name;fa(e,u),Hn(u.type)||e.reportError("The type of ".concat(n.name,".").concat(i.name,"(").concat(c,":) must be Input ")+"Type but got: ".concat(ce(u.type),"."),null===(l=u.astNode)||void 0===l?void 0:l.type),ct(u)&&null!=u.deprecationReason&&e.reportError("Required argument ".concat(n.name,".").concat(i.name,"(").concat(c,":) cannot be deprecated."),[Ia(u.astNode),null===(d=u.astNode)||void 0===d?void 0:d.type])}}}function ya(e,n){for(var t=Object.create(null),a=0,r=n.getInterfaces();a<r.length;a++){var i=r[a];Bn(i)?n!==i?t[i.name]?e.reportError("Type ".concat(n.name," can only implement ").concat(i.name," once."),Ra(n,i)):(t[i.name]=!0,va(e,n,i),wa(e,n,i)):e.reportError("Type ".concat(n.name," cannot implement itself because it would create a circular reference."),Ra(n,i)):e.reportError("Type ".concat(ce(n)," must only implement Interface types, ")+"it cannot implement ".concat(ce(i),"."),Ra(n,i))}}function wa(e,n,t){for(var a=n.getFields(),r=0,i=bn(t.getFields());r<i.length;r++){var o=i[r],s=o.name,l=a[s];if(l){var d,u;xt(e.schema,l.type,o.type)||e.reportError("Interface field ".concat(t.name,".").concat(s," expects type ")+"".concat(ce(o.type)," but ").concat(n.name,".").concat(s," ")+"is type ".concat(ce(l.type),"."),[null===(d=o.astNode)||void 0===d?void 0:d.type,null===(u=l.astNode)||void 0===u?void 0:u.type]);for(var c=function(a,r){var i,o,d=r[a],u=d.name,c=fn(l.args,(function(e){return e.name===u}));if(!c)return e.reportError("Interface field argument ".concat(t.name,".").concat(s,"(").concat(u,":) expected but ").concat(n.name,".").concat(s," does not provide it."),[d.astNode,l.astNode]),"continue";vt(d.type,c.type)||e.reportError("Interface field argument ".concat(t.name,".").concat(s,"(").concat(u,":) ")+"expects type ".concat(ce(d.type)," but ")+"".concat(n.name,".").concat(s,"(").concat(u,":) is type ")+"".concat(ce(c.type),"."),[null===(i=d.astNode)||void 0===i?void 0:i.type,null===(o=c.astNode)||void 0===o?void 0:o.type])},m=0,p=o.args;m<p.length;m++)c(m,p);for(var h=function(a,r){var i=r[a],l=i.name;!fn(o.args,(function(e){return e.name===l}))&&ct(i)&&e.reportError("Object field ".concat(n.name,".").concat(s," includes required argument ").concat(l," that is missing from the Interface field ").concat(t.name,".").concat(s,"."),[i.astNode,o.astNode])},g=0,f=l.args;g<f.length;g++)h(g,f)}else e.reportError("Interface field ".concat(t.name,".").concat(s," expected but ").concat(n.name," does not provide it."),[o.astNode].concat(Ea(n)))}}function va(e,n,t){for(var a=n.getInterfaces(),r=0,i=t.getInterfaces();r<i.length;r++){var o=i[r];-1===a.indexOf(o)&&e.reportError(o===n?"Type ".concat(n.name," cannot implement ").concat(t.name," because it would create a circular reference."):"Type ".concat(n.name," must implement ").concat(o.name," because it is implemented by ").concat(t.name,"."),[].concat(Ra(t,o),Ra(n,t)))}}function xa(e,n){var t=n.getTypes();0===t.length&&e.reportError("Union type ".concat(n.name," must define one or more member types."),Ea(n));for(var a=Object.create(null),r=0;r<t.length;r++){var i=t[r];a[i.name]?e.reportError("Union type ".concat(n.name," can only include type ").concat(i.name," once."),Da(n,i.name)):(a[i.name]=!0,On(i)||e.reportError("Union type ".concat(n.name," can only include Object types, ")+"it cannot include ".concat(ce(i),"."),Da(n,String(i))))}}function Ta(e,n){var t=n.getValues();0===t.length&&e.reportError("Enum type ".concat(n.name," must define one or more values."),Ea(n));for(var a=0;a<t.length;a++){var r=t[a],i=r.name;fa(e,r),"true"!==i&&"false"!==i&&"null"!==i||e.reportError("Enum type ".concat(n.name," cannot include value: ").concat(i,"."),r.astNode)}}function Sa(e,n){var t=bn(n.getFields());0===t.length&&e.reportError("Input Object type ".concat(n.name," must define one or more fields."),Ea(n));for(var a=0;a<t.length;a++){var r,i,o=t[a];fa(e,o),Hn(o.type)||e.reportError("The type of ".concat(n.name,".").concat(o.name," must be Input Type ")+"but got: ".concat(ce(o.type),"."),null===(r=o.astNode)||void 0===r?void 0:r.type),wt(o)&&null!=o.deprecationReason&&e.reportError("Required input field ".concat(n.name,".").concat(o.name," cannot be deprecated."),[Ia(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type])}}function Ea(e){var n=e.astNode,t=e.extensionASTNodes;return n?t?[n].concat(t):[n]:null!=t?t:[]}function Ca(e,n){for(var t=[],a=0,r=Ea(e);a<r.length;a++){var i;t=t.concat(null!==(i=n(r[a]))&&void 0!==i?i:[])}return t}function Ra(e,n){return Ca(e,(function(e){return e.interfaces})).filter((function(e){return e.name.value===n.name}))}function Da(e,n){return Ca(e,(function(e){return e.types})).filter((function(e){return e.name.value===n}))}function Ia(e){var n;return null==e||null===(n=e.directives)||void 0===n?void 0:n.find((function(e){return e.name.value===ia.name}))}function Aa(e,n){var t;return n.kind===he.LIST_TYPE?(t=Aa(e,n.type))&&new $n(t):n.kind===he.NON_NULL_TYPE?(t=Aa(e,n.type))&&new Xn(t):n.kind===he.NAMED_TYPE?e.getType(n.name.value):void ge(0,"Unexpected type node: "+ce(n))}var qa=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=null!=n?n:ka,t&&(Hn(t)&&this._inputTypeStack.push(t),zn(t)&&this._parentTypeStack.push(t),Jn(t)&&this._typeStack.push(t))}var n=e.prototype;return n.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},n.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},n.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},n.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},n.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},n.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},n.getDirective=function(){return this._directive},n.getArgument=function(){return this._argument},n.getEnumValue=function(){return this._enumValue},n.enter=function(e){var n=this._schema;switch(e.kind){case he.SELECTION_SET:var t=nt(this.getType());this._parentTypeStack.push(zn(t)?t:void 0);break;case he.FIELD:var a,r,i=this.getParentType();i&&(a=this._getFieldDef(n,i,e))&&(r=a.type),this._fieldDefStack.push(a),this._typeStack.push(Jn(r)?r:void 0);break;case he.DIRECTIVE:this._directive=n.getDirective(e.name.value);break;case he.OPERATION_DEFINITION:var o;switch(e.operation){case"query":o=n.getQueryType();break;case"mutation":o=n.getMutationType();break;case"subscription":o=n.getSubscriptionType()}this._typeStack.push(On(o)?o:void 0);break;case he.INLINE_FRAGMENT:case he.FRAGMENT_DEFINITION:var s=e.typeCondition,l=s?Aa(n,s):nt(this.getType());this._typeStack.push(Jn(l)?l:void 0);break;case he.VARIABLE_DEFINITION:var d=Aa(n,e.type);this._inputTypeStack.push(Hn(d)?d:void 0);break;case he.ARGUMENT:var u,c,m,p=null!==(u=this.getDirective())&&void 0!==u?u:this.getFieldDef();p&&(c=fn(p.args,(function(n){return n.name===e.name.value})))&&(m=c.type),this._argument=c,this._defaultValueStack.push(c?c.defaultValue:void 0),this._inputTypeStack.push(Hn(m)?m:void 0);break;case he.LIST:var h=Qn(this.getInputType()),g=Wn(h)?h.ofType:h;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Hn(g)?g:void 0);break;case he.OBJECT_FIELD:var f,b,y=nt(this.getInputType());Vn(y)&&(b=y.getFields()[e.name.value])&&(f=b.type),this._defaultValueStack.push(b?b.defaultValue:void 0),this._inputTypeStack.push(Hn(f)?f:void 0);break;case he.ENUM:var w,v=nt(this.getInputType());Gn(v)&&(w=v.getValue(e.value)),this._enumValue=w}},n.leave=function(e){switch(e.kind){case he.SELECTION_SET:this._parentTypeStack.pop();break;case he.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case he.DIRECTIVE:this._directive=null;break;case he.OPERATION_DEFINITION:case he.INLINE_FRAGMENT:case he.FRAGMENT_DEFINITION:this._typeStack.pop();break;case he.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case he.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case he.LIST:case he.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case he.ENUM:this._enumValue=null}},e}();function ka(e,n,t){var a=t.name.value;return a===Kt.name&&e.getQueryType()===n?Kt:a===$t.name&&e.getQueryType()===n?$t:a===Xt.name&&zn(n)?Xt:On(n)||Bn(n)?n.getFields()[a]:void 0}function Pa(e,n){return{enter:function(t){e.enter(t);var a=Ee(n,t.kind,!1);if(a){var r=a.apply(n,arguments);return void 0!==r&&(e.leave(t),Se(r)&&e.enter(r)),r}},leave:function(t){var a,r=Ee(n,t.kind,!0);return r&&(a=r.apply(n,arguments)),e.leave(t),a}}}function Na(e){return e.kind===he.OPERATION_DEFINITION||e.kind===he.FRAGMENT_DEFINITION}function Fa(e){return e.kind===he.SCALAR_TYPE_DEFINITION||e.kind===he.OBJECT_TYPE_DEFINITION||e.kind===he.INTERFACE_TYPE_DEFINITION||e.kind===he.UNION_TYPE_DEFINITION||e.kind===he.ENUM_TYPE_DEFINITION||e.kind===he.INPUT_OBJECT_TYPE_DEFINITION}function La(e){return e.kind===he.SCALAR_TYPE_EXTENSION||e.kind===he.OBJECT_TYPE_EXTENSION||e.kind===he.INTERFACE_TYPE_EXTENSION||e.kind===he.UNION_TYPE_EXTENSION||e.kind===he.ENUM_TYPE_EXTENSION||e.kind===he.INPUT_OBJECT_TYPE_EXTENSION}function _a(e){for(var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),a=Object.create(null),r=0,i=e.getDocument().definitions;r<i.length;r++){var o=i[r];Fa(o)&&(a[o.name.value]=!0)}var s=Object.keys(t).concat(Object.keys(a));return{NamedType:function(n,r,i,o,l){var d,u=n.name.value;if(!t[u]&&!a[u]){var c,m=null!==(c=l[2])&&void 0!==c?c:i,p=null!=m&&(d=m,!Array.isArray(d)&&(function(e){return e.kind===he.SCHEMA_DEFINITION||Fa(e)||e.kind===he.DIRECTIVE_DEFINITION}(d)||function(e){return e.kind===he.SCHEMA_EXTENSION||La(e)}(d)));if(p&&function(e){return-1!==Ua.indexOf(e)}(u))return;var h=qn(u,p?Ua.concat(s):s);e.reportError(new me('Unknown type "'.concat(u,'".')+Cn(h),n))}}}}var Ua=[].concat(_t,Zt).map((function(e){return e.name}));function Oa(e){for(var n=Object.create(null),t=e.getSchema(),a=t?t.getDirectives():sa,r=0;r<a.length;r++){var i=a[r];n[i.name]=i.locations}for(var o=e.getDocument().definitions,s=0;s<o.length;s++){var l=o[s];l.kind===he.DIRECTIVE_DEFINITION&&(n[l.name.value]=l.locations.map((function(e){return e.value})))}return{Directive:function(t,a,r,i,o){var s=t.name.value,l=n[s];if(l){var d=function(e){var n=e[e.length-1];switch(!Array.isArray(n)||ge(0),n.kind){case he.OPERATION_DEFINITION:return function(e){switch(e){case"query":return Te.QUERY;case"mutation":return Te.MUTATION;case"subscription":return Te.SUBSCRIPTION}ge(0,"Unexpected operation: "+ce(e))}(n.operation);case he.FIELD:return Te.FIELD;case he.FRAGMENT_SPREAD:return Te.FRAGMENT_SPREAD;case he.INLINE_FRAGMENT:return Te.INLINE_FRAGMENT;case he.FRAGMENT_DEFINITION:return Te.FRAGMENT_DEFINITION;case he.VARIABLE_DEFINITION:return Te.VARIABLE_DEFINITION;case he.SCHEMA_DEFINITION:case he.SCHEMA_EXTENSION:return Te.SCHEMA;case he.SCALAR_TYPE_DEFINITION:case he.SCALAR_TYPE_EXTENSION:return Te.SCALAR;case he.OBJECT_TYPE_DEFINITION:case he.OBJECT_TYPE_EXTENSION:return Te.OBJECT;case he.FIELD_DEFINITION:return Te.FIELD_DEFINITION;case he.INTERFACE_TYPE_DEFINITION:case he.INTERFACE_TYPE_EXTENSION:return Te.INTERFACE;case he.UNION_TYPE_DEFINITION:case he.UNION_TYPE_EXTENSION:return Te.UNION;case he.ENUM_TYPE_DEFINITION:case he.ENUM_TYPE_EXTENSION:return Te.ENUM;case he.ENUM_VALUE_DEFINITION:return Te.ENUM_VALUE;case he.INPUT_OBJECT_TYPE_DEFINITION:case he.INPUT_OBJECT_TYPE_EXTENSION:return Te.INPUT_OBJECT;case he.INPUT_VALUE_DEFINITION:return e[e.length-3].kind===he.INPUT_OBJECT_TYPE_DEFINITION?Te.INPUT_FIELD_DEFINITION:Te.ARGUMENT_DEFINITION}}(o);d&&-1===l.indexOf(d)&&e.reportError(new me('Directive "@'.concat(s,'" may not be used on ').concat(d,"."),t))}else e.reportError(new me('Unknown directive "@'.concat(s,'".'),t))}}}function Ba(e){for(var n=Object.create(null),t=e.getSchema(),a=t?t.getDirectives():sa,r=0;r<a.length;r++){var i=a[r];n[i.name]=!i.isRepeatable}for(var o=e.getDocument().definitions,s=0;s<o.length;s++){var l=o[s];l.kind===he.DIRECTIVE_DEFINITION&&(n[l.name.value]=!l.repeatable)}var d=Object.create(null),u=Object.create(null);return{enter:function(t){if(null!=t.directives){var a;if(t.kind===he.SCHEMA_DEFINITION||t.kind===he.SCHEMA_EXTENSION)a=d;else if(Fa(t)||La(t)){var r=t.name.value;void 0===(a=u[r])&&(u[r]=a=Object.create(null))}else a=Object.create(null);for(var i=0,o=t.directives;i<o.length;i++){var s=o[i],l=s.name.value;n[l]&&(a[l]?e.reportError(new me('The directive "@'.concat(l,'" can only be used once at this location.'),[a[l],s])):a[l]=s)}}}}}function Ma(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function Ga(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ma(Object(t),!0).forEach((function(n){Va(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ma(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Va(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Wa(e){for(var n=Object.create(null),t=e.getSchema(),a=t?t.getDirectives():sa,r=0;r<a.length;r++){var i=a[r];n[i.name]=i.args.map((function(e){return e.name}))}for(var o=e.getDocument().definitions,s=0;s<o.length;s++){var l=o[s];if(l.kind===he.DIRECTIVE_DEFINITION){var d,u=null!==(d=l.arguments)&&void 0!==d?d:[];n[l.name.value]=u.map((function(e){return e.name.value}))}}return{Directive:function(t){var a=t.name.value,r=n[a];if(t.arguments&&r)for(var i=0,o=t.arguments;i<o.length;i++){var s=o[i],l=s.name.value;if(-1===r.indexOf(l)){var d=qn(l,r);e.reportError(new me('Unknown argument "'.concat(l,'" on directive "@').concat(a,'".')+Cn(d),s))}}return!1}}}function ja(e){var n=Object.create(null);return{Field:function(){n=Object.create(null)},Directive:function(){n=Object.create(null)},Argument:function(t){var a=t.name.value;return n[a]?e.reportError(new me('There can be only one argument named "'.concat(a,'".'),[n[a],t.name])):n[a]=t.name,!1}}}function Ha(e,n){var t=e.getInputType();if(t){var a=nt(t);if(Yn(a))try{if(void 0===a.parseLiteral(n,void 0)){var r=ce(t);e.reportError(new me('Expected value of type "'.concat(r,'", found ').concat(we(n),"."),n))}}catch(a){var i=ce(t);e.reportError(a instanceof me?a:new me('Expected value of type "'.concat(i,'", found ').concat(we(n),"; ")+a.message,n,void 0,void 0,void 0,a))}else{var o=ce(t);e.reportError(new me('Expected value of type "'.concat(o,'", found ').concat(we(n),"."),n))}}}function Ja(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function Ya(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ja(Object(t),!0).forEach((function(n){za(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ja(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function za(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ka(e){for(var n=Object.create(null),t=e.getSchema(),a=t?t.getDirectives():sa,r=0;r<a.length;r++){var i=a[r];n[i.name]=xn(i.args.filter(ct),(function(e){return e.name}))}for(var o=e.getDocument().definitions,s=0;s<o.length;s++){var l=o[s];if(l.kind===he.DIRECTIVE_DEFINITION){var d,u=null!==(d=l.arguments)&&void 0!==d?d:[];n[l.name.value]=xn(u.filter($a),(function(e){return e.name.value}))}}return{Directive:{leave:function(t){var a=t.name.value,r=n[a];if(r)for(var i,o=xn(null!==(i=t.arguments)&&void 0!==i?i:[],(function(e){return e.name.value})),s=0,l=Object.keys(r);s<l.length;s++){var d=l[s];if(!o[d]){var u=r[d].type,c=_n(u)?ce(u):we(u);e.reportError(new me('Directive "@'.concat(a,'" argument "').concat(d,'" of type "').concat(c,'" is required, but it was not provided.'),t))}}}}}}function $a(e){return e.type.kind===he.NON_NULL_TYPE&&null==e.defaultValue}function Xa(e,n,t,a,r){return jn(a)&&!jn(n)?(null!=t&&t.kind!==he.NULL||void 0!==r)&&xt(e,n,a.ofType):xt(e,n,a)}function Za(e){return Array.isArray(e)?e.map((function(e){var n=e[1];return'subfields "'.concat(e[0],'" conflict because ')+Za(n)})).join(" and "):e}function Qa(e,n,t,a,r,i,o){var s=e.getFragment(o);if(s){var l=ir(e,t,s),d=l[0],u=l[1];if(i!==d){nr(e,n,t,a,r,i,d);for(var c=0;c<u.length;c++){var m=u[c];a.has(m,o,r)||(a.add(m,o,r),Qa(e,n,t,a,r,i,u[c]))}}}}function er(e,n,t,a,r,i,o){if(i!==o&&!a.has(i,o,r)){a.add(i,o,r);var s=e.getFragment(i),l=e.getFragment(o);if(s&&l){var d=ir(e,t,s),u=d[0],c=d[1],m=ir(e,t,l),p=m[1];nr(e,n,t,a,r,u,m[0]);for(var h=0;h<p.length;h++)er(e,n,t,a,r,i,p[h]);for(var g=0;g<c.length;g++)er(e,n,t,a,r,c[g],o)}}}function nr(e,n,t,a,r,i,o){for(var s=0,l=Object.keys(i);s<l.length;s++){var d=l[s],u=o[d];if(u)for(var c=i[d],m=0;m<c.length;m++)for(var p=0;p<u.length;p++){var h=tr(e,t,a,r,d,c[m],u[p]);h&&n.push(h)}}}function tr(e,n,t,a,r,i,o){var s,l,d=i[0],u=i[1],c=i[2],m=o[0],p=o[1],h=o[2],g=a||d!==m&&On(d)&&On(m);if(!g){var f,b,y=u.name.value,w=p.name.value;if(y!==w)return[[r,'"'.concat(y,'" and "').concat(w,'" are different fields')],[u],[p]];if(s=null!==(f=u.arguments)&&void 0!==f?f:[],l=null!==(b=p.arguments)&&void 0!==b?b:[],s.length!==l.length||!s.every((function(e){var n,t=fn(l,(function(n){return n.name.value===e.name.value}));return!!t&&(n=t.value,we(e.value)===we(n))})))return[[r,"they have differing arguments"],[u],[p]]}var v=null==c?void 0:c.type,x=null==h?void 0:h.type;if(v&&x&&ar(v,x))return[[r,'they return conflicting types "'.concat(ce(v),'" and "').concat(ce(x),'"')],[u],[p]];var T=u.selectionSet,S=p.selectionSet;if(T&&S){var E=function(e,n,t,a,r,i,o,s){var l=[],d=rr(e,n,r,i),u=d[0],c=d[1],m=rr(e,n,o,s),p=m[0],h=m[1];if(nr(e,l,n,t,a,u,p),0!==h.length)for(var g=0;g<h.length;g++)Qa(e,l,n,t,a,u,h[g]);if(0!==c.length)for(var f=0;f<c.length;f++)Qa(e,l,n,t,a,p,c[f]);for(var b=0;b<c.length;b++)for(var y=0;y<h.length;y++)er(e,l,n,t,a,c[b],h[y]);return l}(e,n,t,g,nt(v),T,nt(x),S);return function(e,n,t,a){if(e.length>0)return[[n,e.map((function(e){return e[0]}))],e.reduce((function(e,n){return e.concat(n[1])}),[t]),e.reduce((function(e,n){return e.concat(n[2])}),[a])]}(E,r,u,p)}}function ar(e,n){return Wn(e)?!Wn(n)||ar(e.ofType,n.ofType):!!Wn(n)||(jn(e)?!jn(n)||ar(e.ofType,n.ofType):!!jn(n)||!(!Yn(e)&&!Yn(n))&&e!==n)}function rr(e,n,t,a){var r=n.get(a);if(!r){var i=Object.create(null),o=Object.create(null);or(e,t,a,i,o),r=[i,Object.keys(o)],n.set(a,r)}return r}function ir(e,n,t){var a=n.get(t.selectionSet);if(a)return a;var r=Aa(e.getSchema(),t.typeCondition);return rr(e,n,r,t.selectionSet)}function or(e,n,t,a,r){for(var i=0,o=t.selections;i<o.length;i++){var s=o[i];switch(s.kind){case he.FIELD:var l=s.name.value,d=void 0;(On(n)||Bn(n))&&(d=n.getFields()[l]);var u=s.alias?s.alias.value:l;a[u]||(a[u]=[]),a[u].push([n,s,d]);break;case he.FRAGMENT_SPREAD:r[s.name.value]=!0;break;case he.INLINE_FRAGMENT:var c=s.typeCondition,m=c?Aa(e.getSchema(),c):n;or(e,m,s.selectionSet,a,r)}}}var sr,lr=function(){function e(){this._data=Object.create(null)}var n=e.prototype;return n.has=function(e,n,t){var a=this._data[e],r=a&&a[n];return void 0!==r&&(!1!==t||!1===r)},n.add=function(e,n,t){this._pairSetAdd(e,n,t),this._pairSetAdd(n,e,t)},n._pairSetAdd=function(e,n,t){var a=this._data[e];a||(a=Object.create(null),this._data[e]=a),a[n]=t},e}();function dr(e){var n=[],t=Object.create(null);return{ObjectValue:{enter:function(){n.push(t),t=Object.create(null)},leave:function(){t=n.pop()}},ObjectField:function(n){var a=n.name.value;t[a]?e.reportError(new me('There can be only one input field named "'.concat(a,'".'),[t[a],n.name])):t[a]=n.name}}}function ur(e,n){return!!(On(e)||Bn(e)||Vn(e))&&null!=e.getFields()[n]}function cr(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var mr=(cr(sr={},he.SCALAR_TYPE_DEFINITION,he.SCALAR_TYPE_EXTENSION),cr(sr,he.OBJECT_TYPE_DEFINITION,he.OBJECT_TYPE_EXTENSION),cr(sr,he.INTERFACE_TYPE_DEFINITION,he.INTERFACE_TYPE_EXTENSION),cr(sr,he.UNION_TYPE_DEFINITION,he.UNION_TYPE_EXTENSION),cr(sr,he.ENUM_TYPE_DEFINITION,he.ENUM_TYPE_EXTENSION),cr(sr,he.INPUT_OBJECT_TYPE_DEFINITION,he.INPUT_OBJECT_TYPE_EXTENSION),sr),pr=Object.freeze([function(e){function n(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(t.kind===he.FRAGMENT_SPREAD){var i=t.name.value;if(!0===a[i])return!1;var o=e.getFragment(i);if(!o)return!1;try{return a[i]=!0,n(o,a,r)}finally{a[i]=null}}if(t.kind===he.FIELD&&("fields"===t.name.value||"interfaces"===t.name.value||"possibleTypes"===t.name.value||"inputFields"===t.name.value)&&++r>=3)return!0;if("selectionSet"in t&&t.selectionSet)for(var s=0,l=t.selectionSet.selections;s<l.length;s++){var d=l[s];if(n(d,a,r))return!0}return!1}return{Field:function(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&n(t))return e.reportError(new me("Maximum introspection depth exceeded",[t])),!1}}}]),hr=Object.freeze([function(e){return{Document:function(n){for(var t=0,a=n.definitions;t<a.length;t++){var r=a[t];Na(r)||e.reportError(new me("The ".concat(r.kind===he.SCHEMA_DEFINITION||r.kind===he.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"'," definition is not executable."),r))}return!1}}},function(e){var n=Object.create(null);return{OperationDefinition:function(t){var a=t.name;return a&&(n[a.value]?e.reportError(new me('There can be only one operation named "'.concat(a.value,'".'),[n[a.value],a])):n[a.value]=a),!1},FragmentDefinition:function(){return!1}}},function(e){var n=0;return{Document:function(e){n=e.definitions.filter((function(e){return e.kind===he.OPERATION_DEFINITION})).length},OperationDefinition:function(t){!t.name&&n>1&&e.reportError(new me("This anonymous operation must be the only defined operation.",t))}}},function(e){return{OperationDefinition:function(n){"subscription"===n.operation&&1!==n.selectionSet.selections.length&&e.reportError(new me(n.name?'Subscription "'.concat(n.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",n.selectionSet.selections.slice(1)))}}},_a,function(e){return{InlineFragment:function(n){var t=n.typeCondition;if(t){var a=Aa(e.getSchema(),t);if(a&&!zn(a)){var r=we(t);e.reportError(new me('Fragment cannot condition on non composite type "'.concat(r,'".'),t))}}},FragmentDefinition:function(n){var t=Aa(e.getSchema(),n.typeCondition);if(t&&!zn(t)){var a=we(n.typeCondition);e.reportError(new me('Fragment "'.concat(n.name.value,'" cannot condition on non composite type "').concat(a,'".'),n.typeCondition))}}}},function(e){return{VariableDefinition:function(n){var t=Aa(e.getSchema(),n.type);if(t&&!Hn(t)){var a=n.variable.name.value,r=we(n.type);e.reportError(new me('Variable "$'.concat(a,'" cannot be non-input type "').concat(r,'".'),n.type))}}}},function(e){return{Field:function(n){var t=e.getType(),a=n.selectionSet;if(t)if(Yn(nt(t))){if(a){var r=n.name.value,i=ce(t);e.reportError(new me('Field "'.concat(r,'" must not have a selection since type "').concat(i,'" has no subfields.'),a))}}else if(!a){var o=n.name.value,s=ce(t);e.reportError(new me('Field "'.concat(o,'" of type "').concat(s,'" must have a selection of subfields. Did you mean "').concat(o,' { ... }"?'),n))}}}},function(e){return{Field:function(n){var t=e.getParentType();if(t&&!e.getFieldDef()){var a=e.getSchema(),r=n.name.value,i=Cn("to use an inline fragment on",function(e,n,t){if(!Kn(n))return[];for(var a=new Set,r=Object.create(null),i=0,o=e.getPossibleTypes(n);i<o.length;i++){var s=o[i];if(s.getFields()[t]){a.add(s),r[s.name]=1;for(var l=0,d=s.getInterfaces();l<d.length;l++){var u,c=d[l];c.getFields()[t]&&(a.add(c),r[c.name]=(null!==(u=r[c.name])&&void 0!==u?u:0)+1)}}}return St(a).sort((function(n,t){var a=r[t.name]-r[n.name];return 0!==a?a:Bn(n)&&e.isSubType(n,t)?-1:Bn(t)&&e.isSubType(t,n)?1:Dn(n.name,t.name)})).map((function(e){return e.name}))}(a,t,r));""===i&&(i=Cn(function(e,n){return On(e)||Bn(e)?qn(n,Object.keys(e.getFields())):[]}(t,r))),e.reportError(new me('Cannot query field "'.concat(r,'" on type "').concat(t.name,'".')+i,n))}}}},function(e){var n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(t){var a=t.name.value;return n[a]?e.reportError(new me('There can be only one fragment named "'.concat(a,'".'),[n[a],t.name])):n[a]=t.name,!1}}},function(e){return{FragmentSpread:function(n){var t=n.name.value;e.getFragment(t)||e.reportError(new me('Unknown fragment "'.concat(t,'".'),n.name))}}},function(e){var n=[],t=[];return{OperationDefinition:function(e){return n.push(e),!1},FragmentDefinition:function(e){return t.push(e),!1},Document:{leave:function(){for(var a=Object.create(null),r=0;r<n.length;r++)for(var i=0,o=e.getRecursivelyReferencedFragments(n[r]);i<o.length;i++)a[o[i].name.value]=!0;for(var s=0;s<t.length;s++){var l=t[s],d=l.name.value;!0!==a[d]&&e.reportError(new me('Fragment "'.concat(d,'" is never used.'),l))}}}}},function(e){return{InlineFragment:function(n){var t=e.getType(),a=e.getParentType();if(zn(t)&&zn(a)&&!Tt(e.getSchema(),t,a)){var r=ce(a),i=ce(t);e.reportError(new me('Fragment cannot be spread here as objects of type "'.concat(r,'" can never be of type "').concat(i,'".'),n))}},FragmentSpread:function(n){var t=n.name.value,a=function(e,n){var t=e.getFragment(n);if(t){var a=Aa(e.getSchema(),t.typeCondition);if(zn(a))return a}}(e,t),r=e.getParentType();if(a&&r&&!Tt(e.getSchema(),a,r)){var i=ce(r),o=ce(a);e.reportError(new me('Fragment "'.concat(t,'" cannot be spread here as objects of type "').concat(i,'" can never be of type "').concat(o,'".'),n))}}}},function(e){var n=Object.create(null),t=[],a=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(e){return r(e),!1}};function r(i){if(!n[i.name.value]){var o=i.name.value;n[o]=!0;var s=e.getFragmentSpreads(i.selectionSet);if(0!==s.length){a[o]=t.length;for(var l=0;l<s.length;l++){var d=s[l],u=d.name.value,c=a[u];if(t.push(d),void 0===c){var m=e.getFragment(u);m&&r(m)}else{var p=t.slice(c),h=p.slice(0,-1).map((function(e){return'"'+e.name.value+'"'})).join(", ");e.reportError(new me('Cannot spread fragment "'.concat(u,'" within itself')+(""!==h?" via ".concat(h,"."):"."),p))}t.pop()}a[o]=void 0}}}},function(e){var n=Object.create(null);return{OperationDefinition:function(){n=Object.create(null)},VariableDefinition:function(t){var a=t.variable.name.value;n[a]?e.reportError(new me('There can be only one variable named "$'.concat(a,'".'),[n[a],t.variable.name])):n[a]=t.variable.name}}},function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(t){for(var a=e.getRecursiveVariableUsages(t),r=0;r<a.length;r++){var i=a[r].node,o=i.name.value;!0!==n[o]&&e.reportError(new me(t.name?'Variable "$'.concat(o,'" is not defined by operation "').concat(t.name.value,'".'):'Variable "$'.concat(o,'" is not defined.'),[i,t]))}}},VariableDefinition:function(e){n[e.variable.name.value]=!0}}},function(e){var n=[];return{OperationDefinition:{enter:function(){n=[]},leave:function(t){for(var a=Object.create(null),r=e.getRecursiveVariableUsages(t),i=0;i<r.length;i++)a[r[i].node.name.value]=!0;for(var o=0,s=n;o<s.length;o++){var l=s[o],d=l.variable.name.value;!0!==a[d]&&e.reportError(new me(t.name?'Variable "$'.concat(d,'" is never used in operation "').concat(t.name.value,'".'):'Variable "$'.concat(d,'" is never used.'),l))}}},VariableDefinition:function(e){n.push(e)}}},Oa,Ba,function(e){return Ga(Ga({},Wa(e)),{},{Argument:function(n){var t=e.getArgument(),a=e.getFieldDef(),r=e.getParentType();if(!t&&a&&r){var i=n.name.value,o=qn(i,a.args.map((function(e){return e.name})));e.reportError(new me('Unknown argument "'.concat(i,'" on field "').concat(r.name,".").concat(a.name,'".')+Cn(o),n))}}})},ja,function(e){return{ListValue:function(n){if(!Wn(Qn(e.getParentInputType())))return Ha(e,n),!1},ObjectValue:function(n){var t=nt(e.getInputType());if(!Vn(t))return Ha(e,n),!1;for(var a=xn(n.fields,(function(e){return e.name.value})),r=0,i=bn(t.getFields());r<i.length;r++){var o=i[r];if(!a[o.name]&&wt(o)){var s=ce(o.type);e.reportError(new me('Field "'.concat(t.name,".").concat(o.name,'" of required type "').concat(s,'" was not provided.'),n))}}},ObjectField:function(n){var t=nt(e.getParentInputType());if(!e.getInputType()&&Vn(t)){var a=qn(n.name.value,Object.keys(t.getFields()));e.reportError(new me('Field "'.concat(n.name.value,'" is not defined by type "').concat(t.name,'".')+Cn(a),n))}},NullValue:function(n){var t=e.getInputType();jn(t)&&e.reportError(new me('Expected value of type "'.concat(ce(t),'", found ').concat(we(n),"."),n))},EnumValue:function(n){return Ha(e,n)},IntValue:function(n){return Ha(e,n)},FloatValue:function(n){return Ha(e,n)},StringValue:function(n){return Ha(e,n)},BooleanValue:function(n){return Ha(e,n)}}},function(e){return Ya(Ya({},Ka(e)),{},{Field:{leave:function(n){var t,a=e.getFieldDef();if(!a)return!1;for(var r=xn(null!==(t=n.arguments)&&void 0!==t?t:[],(function(e){return e.name.value})),i=0,o=a.args;i<o.length;i++){var s=o[i];if(!r[s.name]&&ct(s)){var l=ce(s.type);e.reportError(new me('Field "'.concat(a.name,'" argument "').concat(s.name,'" of type "').concat(l,'" is required, but it was not provided.'),n))}}}}})},function(e){var n=Object.create(null);return{OperationDefinition:{enter:function(){n=Object.create(null)},leave:function(t){for(var a=e.getRecursiveVariableUsages(t),r=0;r<a.length;r++){var i=a[r],o=i.node,s=i.type,l=i.defaultValue,d=o.name.value,u=n[d];if(u&&s){var c=e.getSchema(),m=Aa(c,u.type);if(m&&!Xa(c,m,u.defaultValue,s,l)){var p=ce(m),h=ce(s);e.reportError(new me('Variable "$'.concat(d,'" of type "').concat(p,'" used in position expecting type "').concat(h,'".'),[u,o]))}}}}},VariableDefinition:function(e){n[e.variable.name.value]=e}}},function(e){var n=new lr,t=new Map;return{SelectionSet:function(a){for(var r=function(e,n,t,a,r){var i=[],o=rr(e,n,a,r),s=o[0],l=o[1];if(function(e,n,t,a,r){for(var i=0,o=vn(r);i<o.length;i++){var s=o[i],l=s[0],d=s[1];if(d.length>1)for(var u=0;u<d.length;u++)for(var c=u+1;c<d.length;c++){var m=tr(e,t,a,!1,l,d[u],d[c]);m&&n.push(m)}}}(e,i,n,t,s),0!==l.length)for(var d=0;d<l.length;d++){Qa(e,i,n,t,!1,s,l[d]);for(var u=d+1;u<l.length;u++)er(e,i,n,t,!1,l[d],l[u])}return i}(e,t,n,e.getParentType(),a),i=0;i<r.length;i++){var o=r[i],s=o[0],l=s[0],d=o[1],u=o[2],c=Za(s[1]);e.reportError(new me('Fields "'.concat(l,'" conflict because ').concat(c,". Use different aliases on the fields to fetch both if this was intentional."),d.concat(u)))}}}},dr].concat(pr)),gr=Object.freeze([function(e){var n,t,a,r=e.getSchema(),i=null!==(n=null!==(t=null!==(a=null==r?void 0:r.astNode)&&void 0!==a?a:null==r?void 0:r.getQueryType())&&void 0!==t?t:null==r?void 0:r.getMutationType())&&void 0!==n?n:null==r?void 0:r.getSubscriptionType(),o=0;return{SchemaDefinition:function(n){i?e.reportError(new me("Cannot define a new schema within a schema extension.",n)):(o>0&&e.reportError(new me("Must provide only one schema definition.",n)),++o)}}},function(e){var n=e.getSchema(),t=Object.create(null),a=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:r,SchemaExtension:r};function r(n){for(var r,i=null!==(r=n.operationTypes)&&void 0!==r?r:[],o=0;o<i.length;o++){var s=i[o],l=s.operation,d=t[l];a[l]?e.reportError(new me("Type for ".concat(l," already defined in the schema. It cannot be redefined."),s)):d?e.reportError(new me("There can be only one ".concat(l," type in schema."),[d,s])):t[l]=s}return!1}},function(e){var n=Object.create(null),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(null==t||!t.getType(r))return n[r]?e.reportError(new me('There can be only one type named "'.concat(r,'".'),[n[r],a.name])):n[r]=a.name,!1;e.reportError(new me('Type "'.concat(r,'" already exists in the schema. It cannot also be defined in this type definition.'),a.name))}},function(e){var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),a=Object.create(null);return{EnumTypeDefinition:r,EnumTypeExtension:r};function r(n){var r,i=n.name.value;a[i]||(a[i]=Object.create(null));for(var o=null!==(r=n.values)&&void 0!==r?r:[],s=a[i],l=0;l<o.length;l++){var d=o[l],u=d.name.value,c=t[i];Gn(c)&&c.getValue(u)?e.reportError(new me('Enum value "'.concat(i,".").concat(u,'" already exists in the schema. It cannot also be defined in this type extension.'),d.name)):s[u]?e.reportError(new me('Enum value "'.concat(i,".").concat(u,'" can only be defined once.'),[s[u],d.name])):s[u]=d.name}return!1}},function(e){var n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),a=Object.create(null);return{InputObjectTypeDefinition:r,InputObjectTypeExtension:r,InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(n){var r,i=n.name.value;a[i]||(a[i]=Object.create(null));for(var o=null!==(r=n.fields)&&void 0!==r?r:[],s=a[i],l=0;l<o.length;l++){var d=o[l],u=d.name.value;ur(t[i],u)?e.reportError(new me('Field "'.concat(i,".").concat(u,'" already exists in the schema. It cannot also be defined in this type extension.'),d.name)):s[u]?e.reportError(new me('Field "'.concat(i,".").concat(u,'" can only be defined once.'),[s[u],d.name])):s[u]=d.name}return!1}},function(e){var n=Object.create(null),t=e.getSchema();return{DirectiveDefinition:function(a){var r=a.name.value;if(null==t||!t.getDirective(r))return n[r]?e.reportError(new me('There can be only one directive named "@'.concat(r,'".'),[n[r],a.name])):n[r]=a.name,!1;e.reportError(new me('Directive "@'.concat(r,'" already exists in the schema. It cannot be redefined.'),a.name))}}},_a,Oa,Ba,function(e){for(var n=e.getSchema(),t=Object.create(null),a=0,r=e.getDocument().definitions;a<r.length;a++){var i=r[a];Fa(i)&&(t[i.name.value]=i)}return{ScalarTypeExtension:o,ObjectTypeExtension:o,InterfaceTypeExtension:o,UnionTypeExtension:o,EnumTypeExtension:o,InputObjectTypeExtension:o};function o(a){var r,i,o=a.name.value,s=t[o],l=null==n?void 0:n.getType(o);if(s?r=mr[s.kind]:l&&(r=Un(i=l)?he.SCALAR_TYPE_EXTENSION:On(i)?he.OBJECT_TYPE_EXTENSION:Bn(i)?he.INTERFACE_TYPE_EXTENSION:Mn(i)?he.UNION_TYPE_EXTENSION:Gn(i)?he.ENUM_TYPE_EXTENSION:Vn(i)?he.INPUT_OBJECT_TYPE_EXTENSION:void ge(0,"Unexpected type: "+ce(i))),r){if(r!==a.kind){var d=function(e){switch(e){case he.SCALAR_TYPE_EXTENSION:return"scalar";case he.OBJECT_TYPE_EXTENSION:return"object";case he.INTERFACE_TYPE_EXTENSION:return"interface";case he.UNION_TYPE_EXTENSION:return"union";case he.ENUM_TYPE_EXTENSION:return"enum";case he.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}ge(0,"Unexpected kind: "+ce(e))}(a.kind);e.reportError(new me("Cannot extend non-".concat(d,' type "').concat(o,'".'),s?[s,a]:a))}}else{var u=Object.keys(t);n&&(u=u.concat(Object.keys(n.getTypeMap())));var c=qn(o,u);e.reportError(new me('Cannot extend type "'.concat(o,'" because it is not defined.')+Cn(c),a.name))}}},Wa,ja,dr,Ka]);function fr(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n}var br=function(){function e(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}var n=e.prototype;return n.reportError=function(e){this._onError(e)},n.getDocument=function(){return this._ast},n.getFragment=function(e){var n=this._fragments;return n||(this._fragments=n=this.getDocument().definitions.reduce((function(e,n){return n.kind===he.FRAGMENT_DEFINITION&&(e[n.name.value]=n),e}),Object.create(null))),n[e]},n.getFragmentSpreads=function(e){var n=this._fragmentSpreads.get(e);if(!n){n=[];for(var t=[e];0!==t.length;)for(var a=0,r=t.pop().selections;a<r.length;a++){var i=r[a];i.kind===he.FRAGMENT_SPREAD?n.push(i):i.selectionSet&&t.push(i.selectionSet)}this._fragmentSpreads.set(e,n)}return n},n.getRecursivelyReferencedFragments=function(e){var n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];for(var t=Object.create(null),a=[e.selectionSet];0!==a.length;)for(var r=a.pop(),i=0,o=this.getFragmentSpreads(r);i<o.length;i++){var s=o[i].name.value;if(!0!==t[s]){t[s]=!0;var l=this.getFragment(s);l&&(n.push(l),a.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n},e}(),yr=function(e){function n(n,t,a){var r;return(r=e.call(this,n,a)||this)._schema=t,r}return fr(n,e),n.prototype.getSchema=function(){return this._schema},n}(br),wr=function(e){function n(n,t,a,r){var i;return(i=e.call(this,t,r)||this)._schema=n,i._typeInfo=a,i._variableUsages=new Map,i._recursiveVariableUsages=new Map,i}fr(n,e);var t=n.prototype;return t.getSchema=function(){return this._schema},t.getVariableUsages=function(e){var n=this._variableUsages.get(e);if(!n){var t=[],a=new qa(this._schema);Ce(e,Pa(a,{VariableDefinition:function(){return!1},Variable:function(e){t.push({node:e,type:a.getInputType(),defaultValue:a.getDefaultValue()})}})),this._variableUsages.set(e,n=t)}return n},t.getRecursiveVariableUsages=function(e){var n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(var t=0,a=this.getRecursivelyReferencedFragments(e);t<a.length;t++)n=n.concat(this.getVariableUsages(a[t]));this._recursiveVariableUsages.set(e,n)}return n},t.getType=function(){return this._typeInfo.getType()},t.getParentType=function(){return this._typeInfo.getParentType()},t.getInputType=function(){return this._typeInfo.getInputType()},t.getParentInputType=function(){return this._typeInfo.getParentInputType()},t.getFieldDef=function(){return this._typeInfo.getFieldDef()},t.getDirective=function(){return this._typeInfo.getDirective()},t.getArgument=function(){return this._typeInfo.getArgument()},t.getEnumValue=function(){return this._typeInfo.getEnumValue()},n}(br);function vr(e){var n=Object.keys(e),t=n.map((function(n){return e[n]}));return Promise.all(t).then((function(e){return e.reduce((function(e,t,a){return e[n[a]]=t,e}),Object.create(null))}))}function xr(e,n,t){return{prev:e,key:n,typename:t}}function Tr(e){for(var n=[],t=e;t;)n.push(t.key),t=t.prev;return n.reverse()}function Sr(e){return e.map((function(e){return"number"==typeof e?"["+e.toString()+"]":"."+e})).join("")}function Er(e,n,t){if(e){if(e.kind===he.VARIABLE){var a=e.name.value;if(null==t||void 0===t[a])return;var r=t[a];if(null===r&&jn(n))return;return r}if(jn(n)){if(e.kind===he.NULL)return;return Er(e,n.ofType,t)}if(e.kind===he.NULL)return null;if(Wn(n)){var i=n.ofType;if(e.kind===he.LIST){for(var o=[],s=0,l=e.values;s<l.length;s++){var d=l[s];if(Cr(d,t)){if(jn(i))return;o.push(null)}else{var u=Er(d,i,t);if(void 0===u)return;o.push(u)}}return o}var c=Er(e,i,t);if(void 0===c)return;return[c]}if(Vn(n)){if(e.kind!==he.OBJECT)return;for(var m=Object.create(null),p=xn(e.fields,(function(e){return e.name.value})),h=0,g=bn(n.getFields());h<g.length;h++){var f=g[h],b=p[f.name];if(b&&!Cr(b.value,t)){var y=Er(b.value,f.type,t);if(void 0===y)return;m[f.name]=y}else if(void 0!==f.defaultValue)m[f.name]=f.defaultValue;else if(jn(f.type))return}return m}if(Yn(n)){var w;try{w=n.parseLiteral(e,t)}catch(e){return}if(void 0===w)return;return w}ge(0,"Unexpected input type: "+ce(n))}}function Cr(e,n){return e.kind===he.VARIABLE&&(null==n||void 0===n[e.name.value])}function Rr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function Dr(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ir(e,n,t){var a="Invalid value "+ce(n);throw e.length>0&&(a+=' at "value'.concat(Sr(e),'"')),t.message=a+": "+t.message,t}function Ar(e,n,t,a){if(jn(n))return null!=e?Ar(e,n.ofType,t,a):void t(Tr(a),e,new me('Expected non-nullable type "'.concat(ce(n),'" not to be null.')));if(null==e)return null;if(Wn(n)){var r=n.ofType,i=Rt(e,(function(e,n){var i=xr(a,n,void 0);return Ar(e,r,t,i)}));return null!=i?i:[Ar(e,r,t,a)]}if(Vn(n)){if(!ve(e))return void t(Tr(a),e,new me('Expected type "'.concat(n.name,'" to be an object.')));for(var o=Object.create(null),s=n.getFields(),l=0,d=bn(s);l<d.length;l++){var u=d[l],c=e[u.name];if(void 0!==c)o[u.name]=Ar(c,u.type,t,xr(a,u.name,n.name));else if(void 0!==u.defaultValue)o[u.name]=u.defaultValue;else if(jn(u.type)){var m=ce(u.type);t(Tr(a),e,new me('Field "'.concat(u.name,'" of required type "').concat(m,'" was not provided.')))}}for(var p=0,h=Object.keys(e);p<h.length;p++){var g=h[p];if(!s[g]){var f=qn(g,Object.keys(n.getFields()));t(Tr(a),e,new me('Field "'.concat(g,'" is not defined by type "').concat(n.name,'".')+Cn(f)))}}return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rr(Object(t),!0).forEach((function(n){Dr(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},o)}if(Yn(n)){var b;try{b=n.parseValue(e)}catch(r){return void t(Tr(a),e,r instanceof me?r:new me('Expected type "'.concat(n.name,'". ')+r.message,void 0,void 0,void 0,void 0,r))}return void 0===b&&t(Tr(a),e,new me('Expected type "'.concat(n.name,'".'))),b}ge(0,"Unexpected input type: "+ce(n))}function qr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function kr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qr(Object(t),!0).forEach((function(n){Pr(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Pr(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Nr(e,n,t){for(var a,r=Object.create(null),i=xn(null!==(a=n.arguments)&&void 0!==a?a:[],(function(e){return e.name.value})),o=0,s=e.args;o<s.length;o++){var l=s[o],d=l.name,u=l.type,c=i[d];if(c){var m=c.value,p=m.kind===he.NULL;if(m.kind===he.VARIABLE){var h=m.name.value;if(null==t||!Lr(t,h)){if(void 0!==l.defaultValue)r[d]=l.defaultValue;else if(jn(u))throw new me('Argument "'.concat(d,'" of required type "').concat(ce(u),'" ')+'was provided the variable "$'.concat(h,'" which was not provided a runtime value.'),m);continue}p=null==t[h]}if(p&&jn(u))throw new me('Argument "'.concat(d,'" of non-null type "').concat(ce(u),'" ')+"must not be null.",m);var g=Er(m,u,t);if(void 0===g)throw new me('Argument "'.concat(d,'" has invalid value ').concat(we(m),"."),m);r[d]=g}else if(void 0!==l.defaultValue)r[d]=l.defaultValue;else if(jn(u))throw new me('Argument "'.concat(d,'" of required type "').concat(ce(u),'" ')+"was not provided.",n)}return kr({},r)}function Fr(e,n,t){var a=n.directives&&fn(n.directives,(function(n){return n.name.value===e.name}));if(a)return Nr(e,a,t)}function Lr(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function _r(e){var n=e.schema,t=e.document,a=e.rootValue,r=e.contextValue,i=e.variableValues,o=e.operationName,s=e.fieldResolver,l=e.typeResolver;!function(e,n,t){n||pe(0,"Must provide document."),pa(e),null==t||ve(t)||pe(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.")}(n,t,i);var d=function(e,n,t,a,r,i,o,s){for(var l,d,u,c=Object.create(null),m=0,p=n.definitions;m<p.length;m++){var h=p[m];switch(h.kind){case he.OPERATION_DEFINITION:if(null==i){if(void 0!==u)return[new me("Must provide operation name if query contains multiple operations.")];u=h}else(null===(l=h.name)||void 0===l?void 0:l.value)===i&&(u=h);break;case he.FRAGMENT_DEFINITION:c[h.name.value]=h}}if(!u)return null!=i?[new me('Unknown operation named "'.concat(i,'".'))]:[new me("Must provide an operation.")];var g=function(e,n,t,a){var r=[],i=null==a?void 0:a.maxErrors;try{var o=function(e,n,t,a){for(var r=Object.create(null),i=function(i){var o=n[i],s=o.variable.name.value,l=Aa(e,o.type);if(!Hn(l)){var d=we(o.type);return a(new me('Variable "$'.concat(s,'" expected value of type "').concat(d,'" which cannot be used as an input type.'),o.type)),"continue"}if(!Lr(t,s)){if(o.defaultValue)r[s]=Er(o.defaultValue,l);else if(jn(l)){var u=ce(l);a(new me('Variable "$'.concat(s,'" of required type "').concat(u,'" was not provided.'),o))}return"continue"}var c=t[s];if(null===c&&jn(l)){var m=ce(l);return a(new me('Variable "$'.concat(s,'" of non-null type "').concat(m,'" must not be null.'),o)),"continue"}r[s]=function(e,n){return Ar(e,n,arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ir)}(c,l,(function(e,n,t){var r='Variable "$'.concat(s,'" got invalid value ')+ce(n);e.length>0&&(r+=' at "'.concat(s).concat(Sr(e),'"')),a(new me(r+"; "+t.message,o,void 0,void 0,void 0,t.originalError))}))},o=0;o<n.length;o++)i(o);return kr({},r)}(e,n,t,(function(e){if(null!=i&&r.length>=i)throw new me("Too many errors processing variables, error limit reached. Execution aborted.");r.push(e)}));if(0===r.length)return{coerced:o}}catch(e){r.push(e)}return{errors:r}}(e,null!==(d=u.variableDefinitions)&&void 0!==d?d:[],null!=r?r:{},{maxErrors:50});return g.errors?g.errors:{schema:e,fragments:c,rootValue:t,contextValue:a,operation:u,variableValues:g.coerced,fieldResolver:null!=o?o:Qr,typeResolver:null!=s?s:Zr,errors:[]}}(n,t,a,r,i,o,s,l);if(Array.isArray(d))return{errors:d};var u=function(e,n,t){var a=function(e,n){if("query"===n.operation){var t=e.getQueryType();if(!t)throw new me("Schema does not define the required query root type.",n);return t}if("mutation"===n.operation){var a=e.getMutationType();if(!a)throw new me("Schema is not configured for mutations.",n);return a}if("subscription"===n.operation){var r=e.getSubscriptionType();if(!r)throw new me("Schema is not configured for subscriptions.",n);return r}throw new me("Can only have query, mutation and subscription operations.",n)}(e.schema,n),r=Br(e,a,n.selectionSet,Object.create(null),Object.create(null)),i=void 0;try{var o="mutation"===n.operation?function(e,n,t,a,r){return i=Object.keys(r),o=function(a,i){var o=r[i],s=xr(undefined,i,n.name),l=Vr(e,n,t,o,s);return void 0===l?a:gn(l)?l.then((function(e){return a[i]=e,a})):(a[i]=l,a)},s=Object.create(null),i.reduce((function(e,n){return gn(e)?e.then((function(e){return o(e,n)})):o(e,n)}),s);var i,o,s}(e,a,t,0,r):Or(e,a,t,i,r);return gn(o)?o.then(void 0,(function(n){return e.errors.push(n),Promise.resolve(null)})):o}catch(n){return e.errors.push(n),null}}(d,d.operation,a);return Ur(d,u)}function Ur(e,n){return gn(n)?n.then((function(n){return Ur(e,n)})):0===e.errors.length?{data:n}:{errors:e.errors,data:n}}function Or(e,n,t,a,r){var i=Object.create(null),o=!1;try{for(var s=0,l=Object.keys(r);s<l.length;s++){var d=l[s],u=Vr(e,n,t,r[d],xr(a,d,n.name));void 0!==u&&(i[d]=u,gn(u)&&(o=!0))}}catch(e){if(o)return vr(i).finally((function(){throw e}));throw e}return o?vr(i):i}function Br(e,n,t,a,r){for(var i=0,o=t.selections;i<o.length;i++){var s=o[i];switch(s.kind){case he.FIELD:if(!Mr(e,s))continue;var l=(c=s).alias?c.alias.value:c.name.value;a[l]||(a[l]=[]),a[l].push(s);break;case he.INLINE_FRAGMENT:if(!Mr(e,s)||!Gr(e,s,n))continue;Br(e,n,s.selectionSet,a,r);break;case he.FRAGMENT_SPREAD:var d=s.name.value;if(r[d]||!Mr(e,s))continue;r[d]=!0;var u=e.fragments[d];if(!u||!Gr(e,u,n))continue;Br(e,n,u.selectionSet,a,r)}}var c;return a}function Mr(e,n){var t=Fr(ra,n,e.variableValues);if(!0===(null==t?void 0:t.if))return!1;var a=Fr(aa,n,e.variableValues);return!1!==(null==a?void 0:a.if)}function Gr(e,n,t){var a=n.typeCondition;if(!a)return!0;var r=Aa(e.schema,a);return r===t||!!Kn(r)&&e.schema.isSubType(r,t)}function Vr(e,n,t,a,r){var i,o=function(e,n,t){return t===Kt.name&&e.getQueryType()===n?Kt:t===$t.name&&e.getQueryType()===n?$t:t===Xt.name?Xt:n.getFields()[t]}(e.schema,n,a[0].name.value);if(o){var s=o.type,l=null!==(i=o.resolve)&&void 0!==i?i:e.fieldResolver,d=function(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}}(e,o,a,n,r);try{var u,c=l(t,Nr(o,a[0],e.variableValues),e.contextValue,d);return u=gn(c)?c.then((function(n){return jr(e,s,a,d,r,n)})):jr(e,s,a,d,r,c),gn(u)?u.then(void 0,(function(n){return Wr(yn(n,a,Tr(r)),s,e)})):u}catch(n){return Wr(yn(n,a,Tr(r)),s,e)}}}function Wr(e,n,t){if(jn(n))throw e;return t.errors.push(e),null}function jr(e,n,t,a,r,i){if(i instanceof Error)throw i;if(jn(n)){var o=jr(e,n.ofType,t,a,r,i);if(null===o)throw new Error("Cannot return null for non-nullable field ".concat(a.parentType.name,".").concat(a.fieldName,"."));return o}return null==i?null:Wn(n)?function(e,n,t,a,r,i){var o=n.ofType,s=!1,l=Rt(i,(function(n,i){var l=xr(r,i,void 0);try{var d;return d=gn(n)?n.then((function(n){return jr(e,o,t,a,l,n)})):jr(e,o,t,a,l,n),gn(d)?(s=!0,d.then(void 0,(function(n){return Wr(yn(n,t,Tr(l)),o,e)}))):d}catch(n){return Wr(yn(n,t,Tr(l)),o,e)}}));if(null==l)throw new me('Expected Iterable, but did not find one for field "'.concat(a.parentType.name,".").concat(a.fieldName,'".'));return s?Promise.all(l):l}(e,n,t,a,r,i):Yn(n)?function(e,n){var t=e.serialize(n);if(void 0===t)throw new Error('Expected a value of type "'.concat(ce(e),'" but ')+"received: ".concat(ce(n)));return t}(n,i):Kn(n)?function(e,n,t,a,r,i){var o,s=(null!==(o=n.resolveType)&&void 0!==o?o:e.typeResolver)(i,e.contextValue,a,n);return gn(s)?s.then((function(o){return Jr(e,Hr(o,e,n,t,a,i),t,a,r,i)})):Jr(e,Hr(s,e,n,t,a,i),t,a,r,i)}(e,n,t,a,r,i):On(n)?Jr(e,n,t,a,r,i):void ge(0,"Cannot complete value of unexpected output type: "+ce(n))}function Hr(e,n,t,a,r,i){if(null==e)throw new me('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 o=et(e)?e.name:e;if("string"!=typeof o)throw new me('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(ce(i),', received "').concat(ce(e),'".'));var s=n.schema.getType(o);if(null==s)throw new me('Abstract type "'.concat(t.name,'" was resolve to a type "').concat(o,'" that does not exist inside schema.'),a);if(!On(s))throw new me('Abstract type "'.concat(t.name,'" was resolve to a non-object type "').concat(o,'".'),a);if(!n.schema.isSubType(t,s))throw new me('Runtime Object type "'.concat(s.name,'" is not a possible type for "').concat(t.name,'".'),a);return s}function Jr(e,n,t,a,r,i){if(n.isTypeOf){var o=n.isTypeOf(i,e.contextValue,a);if(gn(o))return o.then((function(a){if(!a)throw Yr(n,i,t);return zr(e,n,t,r,i)}));if(!o)throw Yr(n,i,t)}return zr(e,n,t,r,i)}function Yr(e,n,t){return new me('Expected value of type "'.concat(e.name,'" but got: ').concat(ce(n),"."),t)}function zr(e,n,t,a,r){return Or(e,n,r,a,Xr(e,n,t))}var Kr,$r,Xr=(Kr=function(e,n,t){for(var a=Object.create(null),r=Object.create(null),i=0;i<t.length;i++){var o=t[i];o.selectionSet&&(a=Br(e,n,o.selectionSet,a,r))}return a},function(e,n,t){$r||($r=new WeakMap);var a,r=$r.get(e);if(r){if(a=r.get(n)){var i=a.get(t);if(void 0!==i)return i}}else r=new WeakMap,$r.set(e,r);a||(a=new WeakMap,r.set(n,a));var o=Kr(e,n,t);return a.set(t,o),o}),Zr=function(e,n,t,a){if(ve(e)&&"string"==typeof e.__typename)return e.__typename;for(var r=t.schema.getPossibleTypes(a),i=[],o=0;o<r.length;o++){var s=r[o];if(s.isTypeOf){var l=s.isTypeOf(e,n,t);if(gn(l))i[o]=l;else if(l)return s.name}}return i.length?Promise.all(i).then((function(e){for(var n=0;n<e.length;n++)if(e[n])return r[n].name})):void 0},Qr=function(e,n,t,a){if(ve(e)||"function"==typeof e){var r=e[a.fieldName];return"function"==typeof r?e[a.fieldName](n,t,a):r}};function ei(e){var n,t=e.schema,a=e.source,r=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,d=e.typeResolver,u=ma(t);if(u.length>0)return{errors:u};try{n=De(a)}catch(e){return{errors:[e]}}var c=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hr,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new qa(e),r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{maxErrors:void 0};n||pe(0,"Must provide document."),pa(e);var i=Object.freeze({}),o=[],s=new wr(e,n,a,(function(e){if(null!=r.maxErrors&&o.length>=r.maxErrors)throw o.push(new me("Too many validation errors, error limit reached. Validation aborted.")),i;o.push(e)})),l=Re(t.map((function(e){return e(s)})));try{Ce(n,Pa(a,l))}catch(e){if(e!==i)throw e}return o}(t,n);return c.length>0?{errors:c}:function(e,n,t,a,r,i,o,s){return _r(1===arguments.length?e:{schema:e,document:n,rootValue:t,contextValue:a,variableValues:r,operationName:i,fieldResolver:o,typeResolver:s})}({schema:t,document:n,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:d})}function ni(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function ti(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ni(Object(t),!0).forEach((function(n){ai(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ni(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ai(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var ri=xn(_t.concat(Zt),(function(e){return e.name}));function ii(e){var n=Fr(ia,e);return null==n?void 0:n.reason}function oi(e){var n=Fr(oa,e);return null==n?void 0:n.url}function si(e,n){if(e.description)return e.description.value;if(!0===(null==n?void 0:n.commentDescriptions)){var t=function(e){var n=e.loc;if(n){for(var t=[],a=n.startToken.prev;null!=a&&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"):void 0}}(e);if(void 0!==t)return Ie("\n"+t)}}function li(e,n){return function(e,n){null!=e&&e.kind===he.DOCUMENT||pe(0,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e){var n=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gr,a=[],r=new yr(e,n,(function(e){a.push(e)})),i=t.map((function(e){return e(r)}));return Ce(e,Re(i)),a}(e);if(0!==n.length)throw new Error(n.map((function(e){return e.message})).join("\n\n"))}(e);var t=function(e,n,t){for(var a,r,i,o,s,l=[],d=Object.create(null),u=[],c=[],m=0,p=n.definitions;m<p.length;m++){var h=p[m];if(h.kind===he.SCHEMA_DEFINITION)s=h;else if(h.kind===he.SCHEMA_EXTENSION)c.push(h);else if(Fa(h))l.push(h);else if(La(h)){var g=h.name.value,f=d[g];d[g]=f?f.concat([h]):[h]}else h.kind===he.DIRECTIVE_DEFINITION&&u.push(h)}if(0===Object.keys(d).length&&0===l.length&&0===u.length&&0===c.length&&null==s)return e;for(var b=Object.create(null),y=0,w=e.types;y<w.length;y++){var v=w[y];b[v.name]=Qt(x=v)||Ut(x)?x:Un(x)?function(e){for(var n,t=e.toConfig(),a=null!==(n=d[t.name])&&void 0!==n?n:[],r=t.specifiedByUrl,i=0;i<a.length;i++){var o;r=null!==(o=oi(a[i]))&&void 0!==o?o:r}return new rt(ti(ti({},t),{},{specifiedByUrl:r,extensionASTNodes:t.extensionASTNodes.concat(a)}))}(x):On(x)?function(e){var n,t=e.toConfig(),a=null!==(n=d[t.name])&&void 0!==n?n:[];return new it(ti(ti({},t),{},{interfaces:function(){return[].concat(e.getInterfaces().map(I),O(a))},fields:function(){return ti(ti({},Tn(t.fields,A)),F(a))},extensionASTNodes:t.extensionASTNodes.concat(a)}))}(x):Bn(x)?function(e){var n,t=e.toConfig(),a=null!==(n=d[t.name])&&void 0!==n?n:[];return new mt(ti(ti({},t),{},{interfaces:function(){return[].concat(e.getInterfaces().map(I),O(a))},fields:function(){return ti(ti({},Tn(t.fields,A)),F(a))},extensionASTNodes:t.extensionASTNodes.concat(a)}))}(x):Mn(x)?function(e){var n,t=e.toConfig(),a=null!==(n=d[t.name])&&void 0!==n?n:[];return new pt(ti(ti({},t),{},{types:function(){return[].concat(e.getTypes().map(I),B(a))},extensionASTNodes:t.extensionASTNodes.concat(a)}))}(x):Gn(x)?function(e){var n,t=e.toConfig(),a=null!==(n=d[e.name])&&void 0!==n?n:[];return new gt(ti(ti({},t),{},{values:ti(ti({},t.values),U(a)),extensionASTNodes:t.extensionASTNodes.concat(a)}))}(x):Vn(x)?function(e){var n,t=e.toConfig(),a=null!==(n=d[t.name])&&void 0!==n?n:[];return new bt(ti(ti({},t),{},{fields:function(){return ti(ti({},Tn(t.fields,(function(e){return ti(ti({},e),{},{type:D(e.type)})}))),_(a))},extensionASTNodes:t.extensionASTNodes.concat(a)}))}(x):void ge(0,"Unexpected type: "+ce(x))}for(var x,T=0;T<l.length;T++){var S,E=l[T],C=E.name.value;b[C]=null!==(S=ri[C])&&void 0!==S?S:M(E)}var R=ti(ti({query:e.query&&I(e.query),mutation:e.mutation&&I(e.mutation),subscription:e.subscription&&I(e.subscription)},s&&k([s])),k(c));return ti(ti({description:null===(a=s)||void 0===a||null===(r=a.description)||void 0===r?void 0:r.value},R),{},{types:bn(b),directives:[].concat(e.directives.map((function(e){var n=e.toConfig();return new ta(ti(ti({},n),{},{args:Tn(n.args,q)}))})),u.map((function(e){var n=e.locations.map((function(e){return e.value}));return new ta({name:e.name.value,description:si(e,t),locations:n,isRepeatable:e.repeatable,args:L(e.arguments),astNode:e})}))),extensions:void 0,astNode:null!==(i=s)&&void 0!==i?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(c),assumeValid:null!==(o=null==t?void 0:t.assumeValid)&&void 0!==o&&o});function D(e){return Wn(e)?new $n(D(e.ofType)):jn(e)?new Xn(D(e.ofType)):I(e)}function I(e){return b[e.name]}function A(e){return ti(ti({},e),{},{type:D(e.type),args:Tn(e.args,q)})}function q(e){return ti(ti({},e),{},{type:D(e.type)})}function k(e){for(var n={},t=0;t<e.length;t++)for(var a,r=null!==(a=e[t].operationTypes)&&void 0!==a?a:[],i=0;i<r.length;i++){var o=r[i];n[o.operation]=P(o.type)}return n}function P(e){var n,t=e.name.value,a=null!==(n=ri[t])&&void 0!==n?n:b[t];if(void 0===a)throw new Error('Unknown type: "'.concat(t,'".'));return a}function N(e){return e.kind===he.LIST_TYPE?new $n(N(e.type)):e.kind===he.NON_NULL_TYPE?new Xn(N(e.type)):P(e)}function F(e){for(var n=Object.create(null),a=0;a<e.length;a++)for(var r,i=null!==(r=e[a].fields)&&void 0!==r?r:[],o=0;o<i.length;o++){var s=i[o];n[s.name.value]={type:N(s.type),description:si(s,t),args:L(s.arguments),deprecationReason:ii(s),astNode:s}}return n}function L(e){for(var n=null!=e?e:[],a=Object.create(null),r=0;r<n.length;r++){var i=n[r],o=N(i.type);a[i.name.value]={type:o,description:si(i,t),defaultValue:Er(i.defaultValue,o),deprecationReason:ii(i),astNode:i}}return a}function _(e){for(var n=Object.create(null),a=0;a<e.length;a++)for(var r,i=null!==(r=e[a].fields)&&void 0!==r?r:[],o=0;o<i.length;o++){var s=i[o],l=N(s.type);n[s.name.value]={type:l,description:si(s,t),defaultValue:Er(s.defaultValue,l),deprecationReason:ii(s),astNode:s}}return n}function U(e){for(var n=Object.create(null),a=0;a<e.length;a++)for(var r,i=null!==(r=e[a].values)&&void 0!==r?r:[],o=0;o<i.length;o++){var s=i[o];n[s.name.value]={description:si(s,t),deprecationReason:ii(s),astNode:s}}return n}function O(e){for(var n=[],t=0;t<e.length;t++)for(var a,r=null!==(a=e[t].interfaces)&&void 0!==a?a:[],i=0;i<r.length;i++)n.push(P(r[i]));return n}function B(e){for(var n=[],t=0;t<e.length;t++)for(var a,r=null!==(a=e[t].types)&&void 0!==a?a:[],i=0;i<r.length;i++)n.push(P(r[i]));return n}function M(e){var n,a=e.name.value,r=si(e,t),i=null!==(n=d[a])&&void 0!==n?n:[];switch(e.kind){case he.OBJECT_TYPE_DEFINITION:var o=i,s=[e].concat(o);return new it({name:a,description:r,interfaces:function(){return O(s)},fields:function(){return F(s)},astNode:e,extensionASTNodes:o});case he.INTERFACE_TYPE_DEFINITION:var l=i,u=[e].concat(l);return new mt({name:a,description:r,interfaces:function(){return O(u)},fields:function(){return F(u)},astNode:e,extensionASTNodes:l});case he.ENUM_TYPE_DEFINITION:var c=i,m=[e].concat(c);return new gt({name:a,description:r,values:U(m),astNode:e,extensionASTNodes:c});case he.UNION_TYPE_DEFINITION:var p=i,h=[e].concat(p);return new pt({name:a,description:r,types:function(){return B(h)},astNode:e,extensionASTNodes:p});case he.SCALAR_TYPE_DEFINITION:var g=i;return new rt({name:a,description:r,specifiedByUrl:oi(e),astNode:e,extensionASTNodes:g});case he.INPUT_OBJECT_TYPE_DEFINITION:var f=i,b=[e].concat(f);return new bt({name:a,description:r,fields:function(){return _(b)},astNode:e,extensionASTNodes:f})}ge(0,"Unexpected type definition node: "+ce(e))}}({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,n);if(null==t.astNode)for(var a=0,r=t.types;a<r.length;a++){var i=r[a];switch(i.name){case"Query":t.query=i;break;case"Mutation":t.mutation=i;break;case"Subscription":t.subscription=i}}for(var o=t.directives,s=function(e){var n=sa[e];o.every((function(e){return e.name!==n.name}))&&o.push(n)},l=0;l<sa.length;l++)s(l);return new ua(t)}(De(e,{noLocation:null==n?void 0:n.noLocation,allowLegacySDLEmptyFields:null==n?void 0:n.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==n?void 0:n.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==n?void 0:n.experimentalFragmentVariables}),{commentDescriptions:null==n?void 0:n.commentDescriptions,assumeValidSDL:null==n?void 0:n.assumeValidSDL,assumeValid:null==n?void 0:n.assumeValid})}var di,ui=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ci=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mi="\\ud800-\\udfff",pi="\\u0300-\\u036f\\ufe20-\\ufe23",hi="\\u20d0-\\u20f0",gi="\\u2700-\\u27bf",fi="a-z\\xdf-\\xf6\\xf8-\\xff",bi="A-Z\\xc0-\\xd6\\xd8-\\xde",yi="\\ufe0e\\ufe0f",wi="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",vi="["+mi+"]",xi="["+wi+"]",Ti="["+pi+hi+"]",Si="\\d+",Ei="["+gi+"]",Ci="["+fi+"]",Ri="[^"+mi+wi+Si+gi+fi+bi+"]",Di="\\ud83c[\\udffb-\\udfff]",Ii="[^"+mi+"]",Ai="(?:\\ud83c[\\udde6-\\uddff]){2}",qi="[\\ud800-\\udbff][\\udc00-\\udfff]",ki="["+bi+"]",Pi="\\u200d",Ni="(?:"+Ci+"|"+Ri+")",Fi="(?:"+ki+"|"+Ri+")",Li="(?:['’](?:d|ll|m|re|s|t|ve))?",_i="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ui="(?:"+Ti+"|"+Di+")?",Oi="["+yi+"]?",Bi=Oi+Ui+"(?:"+Pi+"(?:"+[Ii,Ai,qi].join("|")+")"+Oi+Ui+")*",Mi="(?:"+[Ei,Ai,qi].join("|")+")"+Bi,Gi="(?:"+[Ii+Ti+"?",Ti,Ai,qi,vi].join("|")+")",Vi=RegExp("['’]","g"),Wi=RegExp(Ti,"g"),ji=RegExp(Di+"(?="+Di+")|"+Gi+Bi,"g"),Hi=RegExp([ki+"?"+Ci+"+"+Li+"(?="+[xi,ki,"$"].join("|")+")",Fi+"+"+_i+"(?="+[xi,ki+Ni,"$"].join("|")+")",ki+"?"+Ni+"+"+Li,ki+"+"+_i,Si,Mi].join("|"),"g"),Ji=RegExp("["+Pi+mi+pi+hi+yi+"]"),Yi=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zi="object"==typeof self&&self&&self.Object===Object&&self,Ki="object"==typeof a&&a&&a.Object===Object&&a||zi||Function("return this")(),$i=(di={À:"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"},function(e){return null==di?void 0:di[e]});function Xi(e){return Ji.test(e)}var Zi=Object.prototype.toString,Qi=Ki.Symbol,eo=Qi?Qi.prototype:void 0,no=eo?eo.toString:void 0;function to(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Zi.call(e)}(e))return no?no.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}(e)}var ao,ro=(ao=function(e,n,t){return e+(t?" ":"")+io(n)},function(e){return function(e,n,t){for(var a=-1,r=e?e.length:0;++a<r;)t=n(t,e[a],a,e);return t}(function(e,n){return e=to(e),void 0===n?function(e){return Yi.test(e)}(e)?function(e){return e.match(Hi)||[]}(e):function(e){return e.match(ui)||[]}(e):e.match(n)||[]}(function(e){return(e=to(e))&&e.replace(ci,$i).replace(Wi,"")}(e).replace(Vi,"")),ao,"")}),io=("toUpperCase",function(e){var n,t,a,r,i=Xi(e=to(e))?function(e){return Xi(e)?function(e){return e.match(ji)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,o=i?i[0]:e.charAt(0),s=i?(n=i,t=1,r=n.length,a=void 0===a?r:a,!t&&a>=r?n:function(e,n,t){var a=-1,r=e.length;n<0&&(n=-n>r?0:r+n),(t=t>r?r:t)<0&&(t+=r),r=n>t?0:t-n>>>0,n>>>=0;for(var i=Array(r);++a<r;)i[a]=e[a+n];return i}(n,t,a)).join(""):e.slice(1);return o.toUpperCase()+s}),oo=ro,so=function(){function e(e){var n=this;this._insertTag=function(e){n.container.insertBefore(e,0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling),n.tags.push(e)},this.isSpeedy=void 0===e.speedy||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;return n.hydrate=function(e){e.forEach(this._insertTag)},n.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),void 0!==e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var t=function(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]}(n);try{t.insertRule(e,t.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},n.flush=function(){this.tags.forEach((function(e){var n;return null==(n=e.parentNode)?void 0:n.removeChild(e)})),this.tags=[],this.ctr=0},e}(),lo="-ms-",uo="-moz-",co="-webkit-",mo="comm",po="rule",ho="decl",go="@keyframes",fo=Math.abs,bo=String.fromCharCode,yo=Object.assign;function wo(e){return e.trim()}function vo(e,n,t){return e.replace(n,t)}function xo(e,n){return e.indexOf(n)}function To(e,n){return 0|e.charCodeAt(n)}function So(e,n,t){return e.slice(n,t)}function Eo(e){return e.length}function Co(e){return e.length}function Ro(e,n){return n.push(e),e}var Do=1,Io=1,Ao=0,qo=0,ko=0,Po="";function No(e,n,t,a,r,i,o){return{value:e,root:n,parent:t,type:a,props:r,children:i,line:Do,column:Io,length:o,return:""}}function Fo(e,n){return yo(No("",null,null,"",null,null,0),e,{length:-e.length},n)}function Lo(){return ko=qo<Ao?To(Po,qo++):0,Io++,10===ko&&(Io=1,Do++),ko}function _o(){return To(Po,qo)}function Uo(){return qo}function Oo(e,n){return So(Po,e,n)}function Bo(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 Mo(e){return Do=Io=1,Ao=Eo(Po=e),qo=0,[]}function Go(e){return Po="",e}function Vo(e){return wo(Oo(qo-1,Ho(91===e?e+2:40===e?e+1:e)))}function Wo(e){for(;(ko=_o())&&ko<33;)Lo();return Bo(e)>2||Bo(ko)>3?"":" "}function jo(e,n){for(;--n&&Lo()&&!(ko<48||ko>102||ko>57&&ko<65||ko>70&&ko<97););return Oo(e,Uo()+(n<6&&32==_o()&&32==Lo()))}function Ho(e){for(;Lo();)switch(ko){case e:return qo;case 34:case 39:34!==e&&39!==e&&Ho(ko);break;case 40:41===e&&Ho(e);break;case 92:Lo()}return qo}function Jo(e,n){for(;Lo()&&e+ko!==57&&(e+ko!==84||47!==_o()););return"/*"+Oo(n,qo-1)+"*"+bo(47===e?e:Lo())}function Yo(e){for(;!Bo(_o());)Lo();return Oo(e,qo)}function zo(e){return Go(Ko("",null,null,null,[""],e=Mo(e),0,[0],e))}function Ko(e,n,t,a,r,i,o,s,l){for(var d=0,u=0,c=o,m=0,p=0,h=0,g=1,f=1,b=1,y=0,w="",v=r,x=i,T=a,S=w;f;)switch(h=y,y=Lo()){case 40:if(108!=h&&58==To(S,c-1)){-1!=xo(S+=vo(Vo(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=Vo(y);break;case 9:case 10:case 13:case 32:S+=Wo(h);break;case 92:S+=jo(Uo()-1,7);continue;case 47:switch(_o()){case 42:case 47:Ro(Xo(Jo(Lo(),Uo()),n,t),l);break;default:S+="/"}break;case 123*g:s[d++]=Eo(S)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:f=0;case 59+u:-1==b&&(S=vo(S,/\f/g,"")),p>0&&Eo(S)-c&&Ro(p>32?Zo(S+";",a,t,c-1):Zo(vo(S," ","")+";",a,t,c-2),l);break;case 59:S+=";";default:if(Ro(T=$o(S,n,t,d,u,r,s,w,v=[],x=[],c),i),123===y)if(0===u)Ko(S,n,T,T,v,i,c,s,x);else switch(99===m&&110===To(S,3)?100:m){case 100:case 108:case 109:case 115:Ko(e,T,T,a&&Ro($o(e,T,T,0,0,r,s,w,r,v=[],c),x),r,x,c,s,a?v:x);break;default:Ko(S,T,T,T,[""],x,0,s,x)}}d=u=p=0,g=b=1,w=S="",c=o;break;case 58:c=1+Eo(S),p=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==(ko=qo>0?To(Po,--qo):0,Io--,10===ko&&(Io=1,Do--),ko))continue;switch(S+=bo(y),y*g){case 38:b=u>0?1:(S+="\f",-1);break;case 44:s[d++]=(Eo(S)-1)*b,b=1;break;case 64:45===_o()&&(S+=Vo(Lo())),m=_o(),u=c=Eo(w=S+=Yo(Uo())),y++;break;case 45:45===h&&2==Eo(S)&&(g=0)}}return i}function $o(e,n,t,a,r,i,o,s,l,d,u){for(var c=r-1,m=0===r?i:[""],p=Co(m),h=0,g=0,f=0;h<a;++h)for(var b=0,y=So(e,c+1,c=fo(g=o[h])),w=e;b<p;++b)(w=wo(g>0?m[b]+" "+y:vo(y,/&\f/g,m[b])))&&(l[f++]=w);return No(e,n,t,0===r?po:s,l,d,u)}function Xo(e,n,t){return No(e,n,t,mo,bo(ko),So(e,2,-2),0)}function Zo(e,n,t,a){return No(e,n,t,ho,So(e,0,a),So(e,a+1,-1),a)}function Qo(e,n){for(var t="",a=Co(e),r=0;r<a;r++)t+=n(e[r],r,e,n)||"";return t}function es(e,n,t,a){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ho:return e.return=e.return||e.value;case mo:return"";case go:return e.return=e.value+"{"+Qo(e.children,a)+"}";case po:e.value=e.props.join(",")}return Eo(t=Qo(e.children,a))?e.return=e.value+"{"+t+"}":""}function ns(e){var n=Co(e);return function(t,a,r,i){for(var o="",s=0;s<n;s++)o+=e[s](t,a,r,i)||"";return o}}function ts(e){return function(n){n.root||(n=n.return)&&e(n)}}function as(e){var n=Object.create(null);return function(t){return void 0===n[t]&&(n[t]=e(t)),n[t]}}var rs="undefined"!=typeof document,is=function(e,n,t){for(var a=0,r=0;a=r,r=_o(),38===a&&12===r&&(n[t]=1),!Bo(r);)Lo();return Oo(e,qo)},os=function(e,n){return Go(function(e,n){var t=-1,a=44;do{switch(Bo(a)){case 0:38===a&&12===_o()&&(n[t]=1),e[t]+=is(qo-1,n,t);break;case 2:e[t]+=Vo(a);break;case 4:if(44===a){e[++t]=58===_o()?"&\f":"",n[t]=e[t].length;break}default:e[t]+=bo(a)}}while(a=Lo());return e}(Mo(e),n))},ss=new WeakMap,ls=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var n=e.value,t=e.parent,a=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===n.charCodeAt(0)||ss.get(t))&&!a){ss.set(e,!0);for(var r=[],i=os(n,r),o=t.props,s=0,l=0;s<i.length;s++)for(var d=0;d<o.length;d++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,o[d]):o[d]+" "+i[s]}}},ds=function(e){if("decl"===e.type){var n=e.value;108===n.charCodeAt(0)&&98===n.charCodeAt(2)&&(e.return="",e.value="")}};function us(e,n){switch(function(e,n){return 45^To(e,0)?(((n<<2^To(e,0))<<2^To(e,1))<<2^To(e,2))<<2^To(e,3):0}(e,n)){case 5103:return co+"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 co+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return co+e+uo+e+lo+e+e;case 6828:case 4268:return co+e+lo+e+e;case 6165:return co+e+lo+"flex-"+e+e;case 5187:return co+e+vo(e,/(\w+).+(:[^]+)/,co+"box-$1$2"+lo+"flex-$1$2")+e;case 5443:return co+e+lo+"flex-item-"+vo(e,/flex-|-self/,"")+e;case 4675:return co+e+lo+"flex-line-pack"+vo(e,/align-content|flex-|-self/,"")+e;case 5548:return co+e+lo+vo(e,"shrink","negative")+e;case 5292:return co+e+lo+vo(e,"basis","preferred-size")+e;case 6060:return co+"box-"+vo(e,"-grow","")+co+e+lo+vo(e,"grow","positive")+e;case 4554:return co+vo(e,/([^-])(transform)/g,"$1"+co+"$2")+e;case 6187:return vo(vo(vo(e,/(zoom-|grab)/,co+"$1"),/(image-set)/,co+"$1"),e,"")+e;case 5495:case 3959:return vo(e,/(image-set\([^]*)/,co+"$1$`$1");case 4968:return vo(vo(e,/(.+:)(flex-)?(.*)/,co+"box-pack:$3"+lo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+co+e+e;case 4095:case 3583:case 4068:case 2532:return vo(e,/(.+)-inline(.+)/,co+"$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(Eo(e)-1-n>6)switch(To(e,n+1)){case 109:if(45!==To(e,n+4))break;case 102:return vo(e,/(.+:)(.+)-([^]+)/,"$1"+co+"$2-$3$1"+uo+(108==To(e,n+3)?"$3":"$2-$3"))+e;case 115:return~xo(e,"stretch")?us(vo(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(115!==To(e,n+1))break;case 6444:switch(To(e,Eo(e)-3-(~xo(e,"!important")&&10))){case 107:return vo(e,":",":"+co)+e;case 101:return vo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+co+(45===To(e,14)?"inline-":"")+"box$3$1"+co+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(To(e,n+11)){case 114:return co+e+lo+vo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return co+e+lo+vo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return co+e+lo+vo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return co+e+lo+e+e}return e}var cs,ms,ps=rs?void 0:(cs=function(){return as((function(){return{}}))},ms=new WeakMap,function(e){if(ms.has(e))return ms.get(e);var n=cs();return ms.set(e,n),n}),hs=[function(e,n,t,a){if(e.length>-1&&!e.return)switch(e.type){case ho:e.return=us(e.value,e.length);break;case go:return Qo([Fo(e,{value:vo(e.value,"@","@"+co)})],a);case po:if(e.length)return function(e,n){return e.map(n).join("")}(e.props,(function(n){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(n)){case":read-only":case":read-write":return Qo([Fo(e,{props:[vo(n,/:(read-\w+)/,":-moz-$1")]})],a);case"::placeholder":return Qo([Fo(e,{props:[vo(n,/:(plac\w+)/,":"+co+"input-$1")]}),Fo(e,{props:[vo(n,/:(plac\w+)/,":-moz-$1")]}),Fo(e,{props:[vo(n,/:(plac\w+)/,lo+"input-$1")]})],a)}return""}))}}],gs=function(e){var n=e.key;if(rs&&"css"===n){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a,r,i=e.stylisPlugins||hs,o={},s=[];rs&&(a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),(function(e){for(var n=e.getAttribute("data-emotion").split(" "),t=1;t<n.length;t++)o[n[t]]=!0;s.push(e)})));var l=[ls,ds];if(ps){var d=ns(l.concat(i,[es])),u=ps(i)(n);r=function(e,n,t,a){var r=n.name,i=function(e,n){var t=n.name;return void 0===u[t]&&(u[t]=Qo(zo(e?e+"{"+n.styles+"}":n.styles),d)),u[t]}(e,n);return void 0===h.compat?(a&&(h.inserted[r]=!0),i):a?void(h.inserted[r]=i):i}}else{var c,m=[es,ts((function(e){c.insert(e)}))],p=ns(l.concat(i,m));r=function(e,n,t,a){c=t,Qo(zo(e?e+"{"+n.styles+"}":n.styles),p),a&&(h.inserted[n.name]=!0)}}var h={key:n,sheet:new so({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:r};return h.sheet.hydrate(s),h},fs={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},bs=/[A-Z]|^ms/g,ys=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ws=function(e){return 45===e.charCodeAt(1)},vs=function(e){return null!=e&&"boolean"!=typeof e},xs=as((function(e){return ws(e)?e:e.replace(bs,"-$&").toLowerCase()})),Ts=function(e,n){switch(e){case"animation":case"animationName":if("string"==typeof n)return n.replace(ys,(function(e,n,t){return Es={name:n,styles:t,next:Es},n}))}return 1===fs[e]||ws(e)||"number"!=typeof n||0===n?n:n+"px"};function Ss(e,n,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return Es={name:t.name,styles:t.styles,next:Es},t.name;var a=t;if(void 0!==a.styles){var r=a.next;if(void 0!==r)for(;void 0!==r;)Es={name:r.name,styles:r.styles,next:Es},r=r.next;return a.styles+";"}return function(e,n,t){var a="";if(Array.isArray(t))for(var r=0;r<t.length;r++)a+=Ss(e,n,t[r])+";";else for(var i in t){var o=t[i];if("object"!=typeof o){var s=o;null!=n&&void 0!==n[s]?a+=i+"{"+n[s]+"}":vs(s)&&(a+=xs(i)+":"+Ts(i,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=n&&void 0!==n[o[0]]){var l=Ss(e,n,o);switch(i){case"animation":case"animationName":a+=xs(i)+":"+l+";";break;default:a+=i+"{"+l+"}"}}else for(var d=0;d<o.length;d++)vs(o[d])&&(a+=xs(i)+":"+Ts(i,o[d])+";")}return a}(e,n,t);case"function":if(void 0!==e){var i=Es,o=t(e);return Es=i,Ss(e,n,o)}}if(null==n)return t;var s=n[t];return void 0!==s?s:t}var Es,Cs=/label:\s*([^\s;{]+)\s*(;|$)/g;function Rs(e,n,t){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,r="";Es=void 0;var i=e[0];null==i||void 0===i.raw?(a=!1,r+=Ss(t,n,i)):r+=i[0];for(var o=1;o<e.length;o++)r+=Ss(t,n,e[o]),a&&(r+=i[o]);Cs.lastIndex=0;for(var s,l="";null!==(s=Cs.exec(r));)l+="-"+s[1];var d=function(e){for(var n,t=0,a=0,r=e.length;r>=4;++a,r-=4)n=1540483477*(65535&(n=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+(59797*(n>>>16)<<16),t=1540483477*(65535&(n^=n>>>24))+(59797*(n>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(r){case 3:t^=(255&e.charCodeAt(a+2))<<16;case 2:t^=(255&e.charCodeAt(a+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(a)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)}(r)+l;return{name:d,styles:r,next:Es}}var Ds="undefined"!=typeof document;function Is(e,n,t){var a="";return t.split(" ").forEach((function(t){void 0!==e[t]?n.push(e[t]+";"):t&&(a+=t+" ")})),a}var As=function(e,n,t){!function(e,n,t){var a=e.key+"-"+n.name;(!1===t||!1===Ds&&void 0!==e.compat)&&void 0===e.registered[a]&&(e.registered[a]=n.styles)}(e,n,t);var a=e.key+"-"+n.name;if(void 0===e.inserted[n.name]){var r="",i=n;do{var o=e.insert(n===i?"."+a:"",i,e.sheet,!0);Ds||void 0===o||(r+=o),i=i.next}while(void 0!==i);if(!Ds&&0!==r.length)return r}};function qs(e,n){if(void 0===e.inserted[n.name])return e.insert("",n,e.sheet,!0)}function ks(e,n,t){var a=[],r=Is(e,a,t);return a.length<2?t:r+n(a)}var Ps=function e(n){for(var t="",a=0;a<n.length;a++){var r=n[a];if(null!=r){var i=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))i=e(r);else for(var o in i="",r)r[o]&&o&&(i&&(i+=" "),i+=o);break;default:i=r}i&&(t&&(t+=" "),t+=i)}}return t},Ns=function(){var e=gs({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var n=function(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];var r=Rs(t,e.registered,void 0);return As(e,r,!1),e.key+"-"+r.name};return{css:n,cx:function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return ks(e.registered,n,Ps(a))},injectGlobal:function(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];var r=Rs(t,e.registered);qs(e,r)},keyframes:function(){for(var n=arguments.length,t=new Array(n),a=0;a<n;a++)t[a]=arguments[a];var r=Rs(t,e.registered),i="animation-"+r.name;return qs(e,{name:r.name,styles:"@keyframes "+i+"{"+r.styles+"}"}),i},hydrate:function(n){n.forEach((function(n){e.inserted[n]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:Is.bind(null,e.registered),merge:ks.bind(null,e.registered,n)}}(),Fs=Ns.css,Ls=Fs`
2
+ width: 100vw;
3
+ height: 100vh;
4
+
5
+ .story-book-outer-div {
6
+ .story-div {
7
+ font-family: "Arial", sans-serif;
8
+ font-size: 12px;
9
+ }
10
+ padding-bottom: 500px;
11
+ }
12
+
13
+ .story-div {
14
+ position: fixed;
15
+ box-sizing: border-box;
16
+ top: 0;
17
+ width: 250px;
18
+ height: 100vh;
19
+ z-index: 999;
20
+ overflow-y: scroll;
21
+ background: white;
22
+ margin-bottom: 32px;
23
+ }
24
+
25
+ .header {
26
+ padding: 24px 0 16px 16px;
27
+ margin-bottom: 24px;
28
+ color: white;
29
+ background: #333;
30
+ cursor: pointer;
31
+
32
+ h2 {
33
+ letter-spacing: 3px;
34
+ font-weight: 400;
35
+ }
36
+ }
37
+
38
+ .parentStoryList {
39
+ list-style: none;
40
+ padding-left: 16px;
41
+
42
+ summary {
43
+ margin-bottom: 4px;
44
+ }
45
+ }
46
+ .parentStory {
47
+ cursor: pointer;
48
+ }
49
+ .parentStory.selected {
50
+ font-weight: bold;
51
+ }
52
+
53
+ .subStory {
54
+ font-size: 12px;
55
+ cursor: pointer;
56
+ line-height: 1.5em;
57
+ margin-top: 4px;
58
+
59
+ a {
60
+ display: block;
61
+ padding: 4px 4px 4px 16px;
62
+ }
63
+ }
64
+ .subStory:hover {
65
+ background-color: #eee;
66
+ }
67
+ .subStory.selected {
68
+ background-color: lightgreen;
69
+ }
70
+
71
+ .component {
72
+ padding: 24px 16px;
73
+ }
74
+
75
+ h4.group-header {
76
+ margin: 8px 0;
77
+ text-transform: uppercase;
78
+ font-weight: 600;
79
+ font-size: 14px;
80
+ color: #575757;
81
+ }
82
+
83
+ .group-wrapper {
84
+ margin-bottom: 24px;
85
+ }
86
+
87
+ .dynamic-display-wrapper {
88
+ position: fixed;
89
+ display: flex;
90
+ flex-direction: column;
91
+ bottom: 0;
92
+ left: 100%;
93
+ padding: 16px;
94
+ z-index: 1000;
95
+ background: white;
96
+ transform: translateX(-100%);
97
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
98
+
99
+ & > :not(:first-child) {
100
+ margin-top: 12px;
101
+ }
102
+
103
+ p {
104
+ font-size: 12px;
105
+ margin: 0;
106
+ padding: 0;
107
+ }
108
+
109
+ .button-wrapper {
110
+ display: flex;
111
+
112
+ & > :not(:first-child) {
113
+ margin-left: 12px;
114
+ }
115
+ }
116
+
117
+ & button {
118
+ border: 1px solid #eaeaea;
119
+ background: white;
120
+ border-radius: 4px;
121
+ color: #777;
122
+ padding: 4px 12px;
123
+ justify-content: center;
124
+ align-items: center;
125
+ text-align: center;
126
+
127
+ &.active {
128
+ background: #555;
129
+ border-color: #555;
130
+ color: white;
131
+ }
132
+ }
133
+ }
134
+ `;function _s(e,n){const t=n.story.title.split("/"),a=t[1]?t[0]:"_",r=t[1]||t[0];return{...e,[a]:[...e[a]||[],{story:{...n.story,title:r},subs:n.subs}].sort(((e,n)=>e.story.title.localeCompare(n.story.title)))}}function Us(e){const{default:n,...t}=e;return{story:n,subs:t}}function Os(e,n){var t,a;if(!e)return;const r=decodeURIComponent(e).split("-"),i=r[1],o=r[2],s=null==(t=null==n?void 0:n[r[0]])?void 0:t.find((e=>e.story.title===i)),l=null==(a=null==s?void 0:s.subs)?void 0:a[o],d={key:e,story:l,parent:null==s?void 0:s.story,label:null==l?void 0:l.name};return d.key&&d.story&&d.parent&&d.label?d:void 0}function Bs(n,{h:t=e,title:a="Stencilbook",homepage:o=t("h3",null,"Select a story!"),addons:s=[]}){const l=r((()=>n.map(Us).reduce(_s,{_:[]})),n),d=decodeURIComponent(window.location.hash).replace("#",""),[u,c]=i(Os(d,l)),m=null==u?void 0:u.key,[p,h]=i(!0),[g,f]=i(!1),b=()=>t("div",{class:"dynamic-display-wrapper"},t("button",{class:g?"active":"",onClick:()=>f((e=>!e))},"Toggle Dark Background"),t("button",{class:p?"active":"",onClick:()=>h((e=>!e))},"Toggle Sidebar")),y=Fs`
135
+ max-width: ${"1124px"};
136
+ margin-left: ${p?"250px":"0px"};
137
+ `,w=Fs`
138
+ display: none;
139
+ `;document.body.style.backgroundColor=g?"#232323":"#fafafa";const v=({selected:e})=>{const n=s.reduce(((n,a)=>()=>t(a,{story:{...e}},t(n,null))),null==e?void 0:e.story);return t(n,null)},x=()=>t("div",{class:"story-book-outer-div"},t("div",{class:`story-div ${p?"":w}`},t("div",{class:"header",onClick:()=>{c(void 0)}},t("h2",null,a)),t("ul",{class:"parentStoryList"},Object.keys(l).sort().map((e=>t("div",{class:"group-wrapper"},"_"!==e&&t("h4",{class:"group-header"},e),l[e].map((n=>t("li",{class:"parentStory"},t("details",{style:{marginBottom:"10px"}},t("summary",{style:{outline:"none"}},n.story.title),n.subs&&Object.keys(n.subs).map((a=>{const r=`${e}-${n.story.title}-${a}`,i=n.subs[a].storyName||oo(a);return t("div",{class:"subStory "+(m===r?"selected":"")},t("a",{onClick:()=>function(e){window.location.hash=encodeURIComponent(e),c(Os(e,l))}(r)},i))}))))))))))),t(b,null),t("div",{class:`component ${y}`},!m&&o,m&&t("div",null,t("h3",null,u.label),t(v,{selected:u}))));return{class:Ls,children:t(x,null),View:x,selected:u}}const Ms=ie({HeaderSubtitleBold:{"font-weight":500,"text-decoration":"underline"}}),Gs=Ms.toString(),Vs={states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}},Ws={states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}},js=()=>e(oe,null,e(se,{...Vs}),e(se,{...Ws})),Hs=Object.freeze({__proto__:null,default:{title:"New Portal"},Dashboard:()=>{const n={copyString:"https://ssqt.co/johnsmithrox",open:!1,disabled:!1,tooltiptext:"Share link copied",onClick:()=>console.log("Share link copied")},t={copyString:"JOHNSMITH1",open:!1,disabled:!1,tooltiptext:"Share code copied",onClick:()=>console.log("Share code copied")};return e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},Gs),e(js,null),e("sqm-divided-layout",{direction:"column"},e(le,{direction:"column",padding:"xxx-large",gap:"xxx-large"},e(de,{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"John Smith"))}),e(u,{space:"64px"},e(c,{statvalue:"2,345",value:234500,loading:!1},"Clicks"),e(c,{statvalue:"58",value:58,loading:!1},"Referrals"),e(c,{statvalue:"$10,540",value:1054e3,loading:!1},"Earned"),e(c,{statvalue:"$2,305",value:230500,loading:!1},"Awaiting Payout"))),e(le,{direction:"column",padding:"xxx-large",gap:"xxx-large"},e(de,{labelMargin:"x-large",padding:"none",label:e("sqm-text",null,e("h2",null,"Partner and Profit")),content:e("sqm-text",null,e("p",null,"Get rewarded for referring potential customers to MyCompany. Earn commission for each successful lead you send our way"))}),e(de,{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share your referral link")),content:e(re,{...n})}),e(de,{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share your referral code")),content:e(re,{...t})}),e(de,{labelMargin:"small",padding:"none",label:e("sqm-text",null,e("h3",null,"Share via social media")),content:e(le,{direction:"row",padding:"large",gap:"xxx-large",minWidth:"150px"},e(m,{medium:"twitter",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"twitter",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1},"Post about us on X"),e(m,{medium:"facebook",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"facebook",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1},"Share on Facebook"),e(m,{medium:"linkedin",loading:!1,disabled:!1,pill:!0,type:"default",size:"medium",icon:"linkedin",hideicon:!1,iconslot:"prefix",onClick:()=>"Facebook share clicked",hide:!1},"Post on Linkedin"))}))))},EditProfile:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},Gs),e(js,null),e("sqm-divided-layout",{direction:"column"},e(ue,{states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!1,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:e=>console.log(e),onChange:e=>console.log(e)}}),e(p,{states:{open:!0,error:"",loading:!1,success:!1,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:()=>console.log("open"),submit:()=>console.log("submit")}}))),Commissions:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},Gs),e(js,null),e("sqm-divided-layout",{direction:"column"},e(le,{direction:"column",padding:"xxx-large",gap:"xxx-large"},e(de,{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("h2",null,"Commissions")),content:e("sqm-text",null,e("p",null,"for the"," ",e("span",{class:Ms.classes.HeaderSubtitleBold},"Partner Program #1")," ","program"))}),e(u,{space:"64px"},e(c,{statvalue:"$ 1,000",value:1e5,loading:!1},"Total Earned"),e(c,{statvalue:"$ 800",value:8e4,loading:!1},"Available"),e(c,{statvalue:"$ 180",value:18e3,loading:!1},"Pending"),e(c,{statvalue:"$ 20",value:2e3,loading:!1},"Redeemed"))))),Activity:()=>e("sqm-divided-layout",{direction:"row"},e("style",{type:"text/css"},Gs),e(js,null),e("sqm-divided-layout",{direction:"column"},e(le,{direction:"column",padding:"xxx-large",gap:"xxx-large"},e(de,{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("h2",null,"Activity")),content:e("sqm-text",null,e("p",null,"for the"," ",e("span",{class:Ms.classes.HeaderSubtitleBold},"Partner Program #1")," ","program"))}),e(de,{labelMargin:"x-large",padding:"none",label:e("sqm-text",null,e("h3",null,"Referral Activity")),content:e(u,{space:"64px"},e(c,{statvalue:"1,000",value:1e5,loading:!1},"Total Referrals"),e(c,{statvalue:"800",value:800,loading:!1},"Converted"),e(c,{statvalue:"180",value:180,loading:!1},"Pending"),e(c,{statvalue:"20",value:20,loading:!1},"Disqualified"))})),e(de,{labelMargin:"x-large",padding:"xxx-large",label:e("sqm-text",null,e("h3",null,"Traffic Generated")),content:e(u,{space:"64px"},e(c,{statvalue:"1,000",value:1e3,loading:!1},"Clicks"),e(c,{statvalue:"800",value:800,loading:!1},"From share link"),e(c,{statvalue:"180",value:180,loading:!1},"From share mediums"))})))}),Js=({story:n},t)=>{var a;const r=null===(a=n.story.parameters)||void 0===a?void 0:a.hookStory;if(!r)return t;const i=Math.round(1e5*Math.random());return e("sqm-hook-story-container-"+i,null,e("sqm-hook-story-container",{hookStory:r}))};function Ys(n){const t=()=>e("div",null);return t.parameters={hookStory:n},t}const zs='<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',Ks='<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="This is usually temporary. Please review your information and try again in a few minutes. If the 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="Your email {emailAddress} already has an impact.com account"\n is-partner-alert-description="This is normal if you’ve used impact.com before or participated in another referral program provided by them. Fill in any missing fields to continue."\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';function $s({callbacks:n,states:t,template:a}){return e("div",null,e("button",{onClick:()=>n.setPreviewTemplate(t.editedTemplate)},"Update Preview"),e("button",{style:{marginLeft:"10px"},onClick:()=>n.setPreviewTemplate(a)},"Preview Dashboard"))}function Xs(n){const{states:t,callbacks:a}=n;return e("div",{style:{height:"50vh"}},e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>a.setEditedTemplate(e.target.value)},t.editedTemplate),e($s,{states:t,callbacks:a,template:n.template}),e("h2",null,"Navigation"),e("div",{style:{display:"grid",gridTemplateColumns:"repeat(9, 80px)",gridGap:"10px"}},e("button",{onClick:()=>qe.push("/")},"Dashboard"),n.leadSubmit&&e("button",{onClick:()=>qe.push("/refer")},"Submit a Referral"),e("button",{onClick:()=>qe.push("/activity")},"Activity"),e("button",{onClick:()=>qe.push("/editProfile")},"Edit Profile"),e("button",{onClick:()=>qe.push("/login")},"Login"),e("button",{onClick:()=>qe.push("/register")},"Register"),e("button",{onClick:()=>qe.push("/emailVerification")},"Email Verification"),e("button",{onClick:()=>qe.push("/verifyEmail")},"Verify Email"),e("button",{onClick:()=>qe.push("/forgotPassword")},"Forgot Password"),e("button",{onClick:()=>qe.push("/resetPassword")},"Reset Password")),e("br",null),e("div",{innerHTML:t.previewTemplate}))}var Zs=o((function(e){e.exports=function(){function e(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function t(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,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 a={exports:{}};function r(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}a.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:r,changeDefaults:function(e){a.exports.defaults=e}};var i=/[&<>"']/,o=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},u=function(e){return d[e]};var c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(c,(function(e,n){return"colon"===(n=n.toLowerCase())?":":"#"===n.charAt(0)?"x"===n.charAt(1)?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""}))}var p=/(^|[^\[])\^/g;var h=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var f={},b=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,w=/^([^:]+:\/*[^/]*)[\s\S]*$/;function v(e,n){f[" "+e]||(f[" "+e]=b.test(e)?e+"/":x(e,"/",!0));var t=-1===(e=f[" "+e]).indexOf(":");return"//"===n.substring(0,2)?t?n:e.replace(y,"$1")+n:"/"===n.charAt(0)?t?n:e.replace(w,"$1")+n:e+n}function x(e,n,t){var a=e.length;if(0===a)return"";for(var r=0;r<a;){var i=e.charAt(a-r-1);if(i!==n||t){if(i===n||!t)break;r++}else r++}return e.substr(0,a-r)}var T=function(e,n){if(n){if(i.test(e))return e.replace(o,u)}else if(s.test(e))return e.replace(l,u);return e},S=m,E=function(e,n){e=e.source||e,n=n||"";var t={replace:function(n,a){return a=(a=a.source||a).replace(p,"$1"),e=e.replace(n,a),t},getRegex:function(){return new RegExp(e,n)}};return t},C=function(e,n,t){if(e){var a;try{a=decodeURIComponent(m(t)).replace(h,"").toLowerCase()}catch(e){return null}if(0===a.indexOf("javascript:")||0===a.indexOf("vbscript:")||0===a.indexOf("data:"))return null}n&&!g.test(t)&&(t=v(n,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch(e){return null}return t},R={exec:function(){}},D=function(e){for(var n,t,a=1;a<arguments.length;a++)for(t in n=arguments[a])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},I=function(e){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")},A=function(e,n){if(n<1)return"";for(var t="";n>1;)1&n&&(t+=e),n>>=1,e+=e;return t+e},q=a.exports.defaults,k=x,P=function(e,n){var t=e.replace(/\|/g,(function(e,n,t){for(var a=!1,r=n;--r>=0&&"\\"===t[r];)a=!a;return a?"|":" |"})).split(/ \|/),a=0;if(t[0].trim()||t.shift(),t[t.length-1].trim()||t.pop(),t.length>n)t.splice(n);else for(;t.length<n;)t.push("");for(;a<t.length;a++)t[a]=t[a].trim().replace(/\\\|/g,"|");return t},N=T,F=function(e,n){if(-1===e.indexOf(n[1]))return-1;for(var t=e.length,a=0,r=0;r<t;r++)if("\\"===e[r])r++;else if(e[r]===n[0])a++;else if(e[r]===n[1]&&--a<0)return r;return-1};function L(e,n,t,a){var r=n.href,i=n.title?N(n.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){a.state.inLink=!0;var s={type:"link",raw:t,href:r,title:i,text:o,tokens:a.inlineTokens(o,[])};return a.state.inLink=!1,s}return{type:"image",raw:t,href:r,title:i,text:N(o)}}var _=function(){function e(e){this.options=e||q}var n=e.prototype;return n.space=function(e){var n=this.rules.block.newline.exec(e);if(n)return n[0].length>1?{type:"space",raw:n[0]}:{raw:"\n"}},n.code=function(e){var n=this.rules.block.code.exec(e);if(n){var t=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?t:k(t,"\n")}}},n.fences=function(e){var n=this.rules.block.fences.exec(e);if(n){var t=n[0],a=function(e,n){var t=e.match(/^(\s+)(?:```)/);if(null===t)return n;var a=t[1];return n.split("\n").map((function(e){var n=e.match(/^\s+/);return null===n?e:n[0].length>=a.length?e.slice(a.length):e})).join("\n")}(t,n[3]||"");return{type:"code",raw:t,lang:n[2]?n[2].trim():n[2],text:a}}},n.heading=function(e){var n=this.rules.block.heading.exec(e);if(n){var t=n[2].trim();if(/#$/.test(t)){var a=k(t,"#");this.options.pedantic?t=a.trim():a&&!/ $/.test(a)||(t=a.trim())}var r={type:"heading",raw:n[0],depth:n[1].length,text:t,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}},n.hr=function(e){var n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}},n.blockquote=function(e){var n=this.rules.block.blockquote.exec(e);if(n){var t=n[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:n[0],tokens:this.lexer.blockTokens(t,[]),text:t}}},n.list=function(e){var n=this.rules.block.list.exec(e);if(n){var t,a,r,i,o,s,l,d,u,c,m=n[1].trim(),p=m.length>1,h={type:"list",raw:"",ordered:p,start:p?+m.slice(0,-1):"",loose:!1,items:[]};m=p?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=p?m:"[*+-]");for(var g=new RegExp("^( {0,3}"+m+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");e&&!this.rules.block.hr.test(e)&&(n=g.exec(e));){u=n[2].split("\n"),this.options.pedantic?(i=2,c=u[0].trimLeft()):(i=n[2].search(/[^ ]/),c=u[0].slice((i=n[1].length+(i>4?1:i))-n[1].length)),s=!1,t=n[0],!u[0]&&/^ *$/.test(u[1])&&(t=n[1]+u.slice(0,2).join("\n")+"\n",h.loose=!0,u=[]);var f=new RegExp("^ {0,"+Math.min(3,i-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(o=1;o<u.length;o++){if(d=u[o],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),f.test(d)){t=n[1]+u.slice(0,o).join("\n")+"\n";break}if(s){if(!(d.search(/[^ ]/)>=i)&&d.trim()){t=n[1]+u.slice(0,o).join("\n")+"\n";break}c+="\n"+d.slice(i)}else d.trim()||(s=!0),d.search(/[^ ]/)>=i?c+="\n"+d.slice(i):c+="\n"+d}h.loose||(l?h.loose=!0:/\n *\n *$/.test(t)&&(l=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(c))&&(r="[ ] "!==a[0],c=c.replace(/^\[[ xX]\] +/,"")),h.items.push({type:"list_item",raw:t,task:!!a,checked:r,loose:!1,text:c}),h.raw+=t,e=e.slice(t.length)}h.items[h.items.length-1].raw=t.trimRight(),h.items[h.items.length-1].text=c.trimRight(),h.raw=h.raw.trimRight();var b=h.items.length;for(o=0;o<b;o++)this.lexer.state.top=!1,h.items[o].tokens=this.lexer.blockTokens(h.items[o].text,[]),h.items[o].tokens.some((function(e){return"space"===e.type}))&&(h.loose=!0,h.items[o].loose=!0);return h}},n.html=function(e){var n=this.rules.block.html.exec(e);if(n){var t={type:"html",raw:n[0],pre:!this.options.sanitizer&&("pre"===n[1]||"script"===n[1]||"style"===n[1]),text:n[0]};return this.options.sanitize&&(t.type="paragraph",t.text=this.options.sanitizer?this.options.sanitizer(n[0]):N(n[0]),t.tokens=[],this.lexer.inline(t.text,t.tokens)),t}},n.def=function(e){var n=this.rules.block.def.exec(e);if(n)return n[3]&&(n[3]=n[3].substring(1,n[3].length-1)),{type:"def",tag:n[1].toLowerCase().replace(/\s+/g," "),raw:n[0],href:n[2],title:n[3]}},n.table=function(e){var n=this.rules.block.table.exec(e);if(n){var t={type:"table",header:P(n[1]).map((function(e){return{text:e}})),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]?n[3].replace(/\n$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=n[0];var a,r,i,o,s=t.align.length;for(a=0;a<s;a++)t.align[a]=/^ *-+: *$/.test(t.align[a])?"right":/^ *:-+: *$/.test(t.align[a])?"center":/^ *:-+ *$/.test(t.align[a])?"left":null;for(s=t.rows.length,a=0;a<s;a++)t.rows[a]=P(t.rows[a],t.header.length).map((function(e){return{text:e}}));for(s=t.header.length,r=0;r<s;r++)t.header[r].tokens=[],this.lexer.inlineTokens(t.header[r].text,t.header[r].tokens);for(s=t.rows.length,r=0;r<s;r++)for(o=t.rows[r],i=0;i<o.length;i++)o[i].tokens=[],this.lexer.inlineTokens(o[i].text,o[i].tokens);return t}}},n.lheading=function(e){var n=this.rules.block.lheading.exec(e);if(n){var t={type:"heading",raw:n[0],depth:"="===n[2].charAt(0)?1:2,text:n[1],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}},n.paragraph=function(e){var n=this.rules.block.paragraph.exec(e);if(n){var t={type:"paragraph",raw:n[0],text:"\n"===n[1].charAt(n[1].length-1)?n[1].slice(0,-1):n[1],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}},n.text=function(e){var n=this.rules.block.text.exec(e);if(n){var t={type:"text",raw:n[0],text:n[0],tokens:[]};return this.lexer.inline(t.text,t.tokens),t}},n.escape=function(e){var n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:N(n[1])}},n.tag=function(e){var n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):N(n[0]):n[0]}},n.link=function(e){var n=this.rules.inline.link.exec(e);if(n){var t=n[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;var a=k(t.slice(0,-1),"\\");if((t.length-a.length)%2==0)return}else{var r=F(n[2],"()");if(r>-1){var i=(0===n[0].indexOf("!")?5:4)+n[1].length+r;n[2]=n[2].substring(0,r),n[0]=n[0].substring(0,i).trim(),n[3]=""}}var o=n[2],s="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(t)?o.slice(1):o.slice(1,-1)),L(n,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:s?s.replace(this.rules.inline._escapes,"$1"):s},n[0],this.lexer)}},n.reflink=function(e,n){var t;if((t=this.rules.inline.reflink.exec(e))||(t=this.rules.inline.nolink.exec(e))){var a=(t[2]||t[1]).replace(/\s+/g," ");if(!(a=n[a.toLowerCase()])||!a.href){var r=t[0].charAt(0);return{type:"text",raw:r,text:r}}return L(t,a,t[0],this.lexer)}},n.emStrong=function(e,n,t){void 0===t&&(t="");var a=this.rules.inline.emStrong.lDelim.exec(e);if(a&&(!a[3]||!t.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])/))){var r=a[1]||a[2]||"";if(!r||r&&(""===t||this.rules.inline.punctuation.exec(t))){var i,o,s=a[0].length-1,l=s,d=0,u="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u.lastIndex=0,n=n.slice(-1*e.length+s);null!=(a=u.exec(n));)if(i=a[1]||a[2]||a[3]||a[4]||a[5]||a[6])if(o=i.length,a[3]||a[4])l+=o;else if(!((a[5]||a[6])&&s%3)||(s+o)%3){if(!((l-=o)>0)){if(o=Math.min(o,o+l+d),Math.min(s,o)%2){var c=e.slice(1,s+a.index+o);return{type:"em",raw:e.slice(0,s+a.index+o+1),text:c,tokens:this.lexer.inlineTokens(c,[])}}var m=e.slice(2,s+a.index+o-1);return{type:"strong",raw:e.slice(0,s+a.index+o+1),text:m,tokens:this.lexer.inlineTokens(m,[])}}}else d+=o}}},n.codespan=function(e){var n=this.rules.inline.code.exec(e);if(n){var t=n[2].replace(/\n/g," "),a=/[^ ]/.test(t),r=/^ /.test(t)&&/ $/.test(t);return a&&r&&(t=t.substring(1,t.length-1)),t=N(t,!0),{type:"codespan",raw:n[0],text:t}}},n.br=function(e){var n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}},n.del=function(e){var n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2],[])}},n.autolink=function(e,n){var t,a,r=this.rules.inline.autolink.exec(e);if(r)return a="@"===r[2]?"mailto:"+(t=N(this.options.mangle?n(r[1]):r[1])):t=N(r[1]),{type:"link",raw:r[0],text:t,href:a,tokens:[{type:"text",raw:t,text:t}]}},n.url=function(e,n){var t;if(t=this.rules.inline.url.exec(e)){var a,r;if("@"===t[2])r="mailto:"+(a=N(this.options.mangle?n(t[0]):t[0]));else{var i;do{i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])[0]}while(i!==t[0]);a=N(t[0]),r="www."===t[1]?"http://"+a:a}return{type:"link",raw:t[0],text:a,href:r,tokens:[{type:"text",raw:a,text:a}]}}},n.inlineText=function(e,n){var t,a=this.rules.inline.text.exec(e);if(a)return t=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):N(a[0]):a[0]:N(this.options.smartypants?n(a[0]):a[0]),{type:"text",raw:a[0],text:t}},e}(),U=R,O=E,B=D,M={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:U,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};M.def=O(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.listItemStart=O(/^( *)(bull) */).replace("bull",M.bullet).getRegex(),M.list=O(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._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",M._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,M.html=O(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=O(M._paragraph).replace("hr",M.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",M._tag).getRegex(),M.blockquote=O(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=B({},M),M.gfm=B({},M.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.table=O(M.gfm.table).replace("hr",M.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",M._tag).getRegex(),M.pedantic=B({},M.normal,{html:O("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._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:U,paragraph:O(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var G={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:U,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:U,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};G.punctuation=O(G.punctuation).replace(/punctuation/g,G._punctuation).getRegex(),G.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,G.escapedEmSt=/\\\*|\\_/g,G._comment=O(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),G.emStrong.lDelim=O(G.emStrong.lDelim).replace(/punct/g,G._punctuation).getRegex(),G.emStrong.rDelimAst=O(G.emStrong.rDelimAst,"g").replace(/punct/g,G._punctuation).getRegex(),G.emStrong.rDelimUnd=O(G.emStrong.rDelimUnd,"g").replace(/punct/g,G._punctuation).getRegex(),G._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,G._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,G._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])?)+(?![-_])/,G.autolink=O(G.autolink).replace("scheme",G._scheme).replace("email",G._email).getRegex(),G._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,G.tag=O(G.tag).replace("comment",G._comment).replace("attribute",G._attribute).getRegex(),G._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,G._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,G._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,G.link=O(G.link).replace("label",G._label).replace("href",G._href).replace("title",G._title).getRegex(),G.reflink=O(G.reflink).replace("label",G._label).getRegex(),G.reflinkSearch=O(G.reflinkSearch,"g").replace("reflink",G.reflink).replace("nolink",G.nolink).getRegex(),G.normal=B({},G),G.pedantic=B({},G.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:O(/^!?\[(label)\]\((.*?)\)/).replace("label",G._label).getRegex(),reflink:O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G._label).getRegex()}),G.gfm=B({},G.normal,{escape:O(G.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),G.gfm.url=O(G.gfm.url,"i").replace("email",G.gfm._extended_email).getRegex(),G.breaks=B({},G.gfm,{br:O(G.br).replace("{2,}","*").getRegex(),text:O(G.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var V={block:M,inline:G},W=_,j=a.exports.defaults,H=V.block,J=V.inline,Y=A;function z(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 K(e){var n,t,a="",r=e.length;for(n=0;n<r;n++)t=e.charCodeAt(n),Math.random()>.5&&(t="x"+t.toString(16)),a+="&#"+t+";";return a}var $=function(){function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||j,this.options.tokenizer=this.options.tokenizer||new W,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:H.normal,inline:J.normal};this.options.pedantic?(n.block=H.pedantic,n.inline=J.pedantic):this.options.gfm&&(n.block=H.gfm,n.inline=this.options.breaks?J.breaks:J.gfm),this.tokenizer.rules=n}n.lex=function(e,t){return new n(t).lex(e)},n.lexInline=function(e,t){return new n(t).inlineTokens(e)};var t,a,r,i=n.prototype;return i.lex=function(e){var n;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens},i.blockTokens=function(e,n){var t,a,r,i,o=this;for(void 0===n&&(n=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(a){return!!(t=a.call({lexer:o},e,n))&&(e=e.substring(t.raw.length),n.push(t),!0)}))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),t.type&&n.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),!(a=n[n.length-1])||"paragraph"!==a.type&&"text"!==a.type?n.push(t):(a.raw+="\n"+t.raw,a.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),!(a=n[n.length-1])||"paragraph"!==a.type&&"text"!==a.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(a.raw+="\n"+t.raw,a.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),n.push(t);else if(r=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var n=1/0,t=e.slice(1),a=void 0;o.options.extensions.startBlock.forEach((function(e){"number"==typeof(a=e.call({lexer:this},t))&&a>=0&&(n=Math.min(n,a))})),n<1/0&&n>=0&&(r=e.substring(0,n+1))}(),this.state.top&&(t=this.tokenizer.paragraph(r)))a=n[n.length-1],i&&"paragraph"===a.type?(a.raw+="\n"+t.raw,a.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):n.push(t),i=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),(a=n[n.length-1])&&"text"===a.type?(a.raw+="\n"+t.raw,a.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):n.push(t);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,n},i.inline=function(e,n){this.inlineQueue.push({src:e,tokens:n})},i.inlineTokens=function(e,n){var t,a,r,i=this;void 0===n&&(n=[]);var o,s,l,d=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(d));)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,o.index)+"["+Y("a",o[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,o.index)+"["+Y("a",o[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,o.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(a){return!!(t=a.call({lexer:i},e,n))&&(e=e.substring(t.raw.length),n.push(t),!0)}))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),(a=n[n.length-1])&&"text"===t.type&&"text"===a.type?(a.raw+=t.raw,a.text+=t.text):n.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),(a=n[n.length-1])&&"text"===t.type&&"text"===a.type?(a.raw+=t.raw,a.text+=t.text):n.push(t);else if(t=this.tokenizer.emStrong(e,d,l))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),n.push(t);else if(t=this.tokenizer.autolink(e,K))e=e.substring(t.raw.length),n.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,K))){if(r=e,this.options.extensions&&this.options.extensions.startInline&&function(){var n=1/0,t=e.slice(1),a=void 0;i.options.extensions.startInline.forEach((function(e){"number"==typeof(a=e.call({lexer:this},t))&&a>=0&&(n=Math.min(n,a))})),n<1/0&&n>=0&&(r=e.substring(0,n+1))}(),t=this.tokenizer.inlineText(r,z))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(l=t.raw.slice(-1)),s=!0,(a=n[n.length-1])&&"text"===a.type?(a.raw+=t.raw,a.text+=t.text):n.push(t);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(t.raw.length),n.push(t);return n},t=n,r=[{key:"rules",get:function(){return{block:H,inline:J}}}],(a=null)&&e(t.prototype,a),r&&e(t,r),n}(),X=a.exports.defaults,Z=C,Q=T,ee=function(){function e(e){this.options=e||X}var n=e.prototype;return n.code=function(e,n,t){var a=(n||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,a);null!=r&&r!==e&&(t=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",a?'<pre><code class="'+this.options.langPrefix+Q(a,!0)+'">'+(t?e:Q(e,!0))+"</code></pre>\n":"<pre><code>"+(t?e:Q(e,!0))+"</code></pre>\n"},n.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},n.html=function(e){return e},n.heading=function(e,n,t,a){return this.options.headerIds?"<h"+n+' id="'+this.options.headerPrefix+a.slug(t)+'">'+e+"</h"+n+">\n":"<h"+n+">"+e+"</h"+n+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(e,n,t){var a=n?"ol":"ul";return"<"+a+(n&&1!==t?' start="'+t+'"':"")+">\n"+e+"</"+a+">\n"},n.listitem=function(e){return"<li>"+e+"</li>\n"},n.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(e){return"<p>"+e+"</p>\n"},n.table=function(e,n){return n&&(n="<tbody>"+n+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+n+"</table>\n"},n.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},n.tablecell=function(e,n){var t=n.header?"th":"td";return(n.align?"<"+t+' align="'+n.align+'">':"<"+t+">")+e+"</"+t+">\n"},n.strong=function(e){return"<strong>"+e+"</strong>"},n.em=function(e){return"<em>"+e+"</em>"},n.codespan=function(e){return"<code>"+e+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(e){return"<del>"+e+"</del>"},n.link=function(e,n,t){if(null===(e=Z(this.options.sanitize,this.options.baseUrl,e)))return t;var a='<a href="'+Q(e)+'"';return n&&(a+=' title="'+n+'"'),a+">"+t+"</a>"},n.image=function(e,n,t){if(null===(e=Z(this.options.sanitize,this.options.baseUrl,e)))return t;var a='<img src="'+e+'" alt="'+t+'"';return n&&(a+=' title="'+n+'"'),a+(this.options.xhtml?"/>":">")},n.text=function(e){return e},e}(),ne=function(){function e(){}var n=e.prototype;return n.strong=function(e){return e},n.em=function(e){return e},n.codespan=function(e){return e},n.del=function(e){return e},n.html=function(e){return e},n.text=function(e){return e},n.link=function(e,n,t){return""+t},n.image=function(e,n,t){return""+t},n.br=function(){return""},e}(),te=function(){function e(){this.seen={}}var n=e.prototype;return n.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},n.getNextSafeSlug=function(e,n){var t=e,a=0;if(this.seen.hasOwnProperty(t)){a=this.seen[e];do{t=e+"-"+ ++a}while(this.seen.hasOwnProperty(t))}return n||(this.seen[e]=a,this.seen[t]=0),t},n.slug=function(e,n){void 0===n&&(n={});var t=this.serialize(e);return this.getNextSafeSlug(t,n.dryrun)},e}(),ae=ee,re=ne,ie=te,oe=a.exports.defaults,se=S,le=function(){function e(e){this.options=e||oe,this.options.renderer=this.options.renderer||new ae,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new re,this.slugger=new ie}e.parse=function(n,t){return new e(t).parse(n)},e.parseInline=function(n,t){return new e(t).parseInline(n)};var n=e.prototype;return n.parse=function(e,n){void 0===n&&(n=!0);var t,a,r,i,o,s,l,d,u,c,m,p,h,g,f,b,y,w,v,x="",T=e.length;for(t=0;t<T;t++)if(c=e[t],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type])||!1===(v=this.options.extensions.renderers[c.type].call({parser:this},c))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))switch(c.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(c.tokens),c.depth,se(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(d="",l="",i=c.header.length,a=0;a<i;a++)l+=this.renderer.tablecell(this.parseInline(c.header[a].tokens),{header:!0,align:c.align[a]});for(d+=this.renderer.tablerow(l),u="",i=c.rows.length,a=0;a<i;a++){for(l="",o=(s=c.rows[a]).length,r=0;r<o;r++)l+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:c.align[r]});u+=this.renderer.tablerow(l)}x+=this.renderer.table(d,u);continue;case"blockquote":u=this.parse(c.tokens),x+=this.renderer.blockquote(u);continue;case"list":for(m=c.ordered,p=c.start,h=c.loose,i=c.items.length,u="",a=0;a<i;a++)b=(f=c.items[a]).checked,y=f.task,g="",f.task&&(w=this.renderer.checkbox(b),h?f.tokens.length>0&&"paragraph"===f.tokens[0].type?(f.tokens[0].text=w+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=w+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:w}):g+=w),g+=this.parse(f.tokens,h),u+=this.renderer.listitem(g,y,b);x+=this.renderer.list(u,m,p);continue;case"html":x+=this.renderer.html(c.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(u=c.tokens?this.parseInline(c.tokens):c.text;t+1<T&&"text"===e[t+1].type;)u+="\n"+((c=e[++t]).tokens?this.parseInline(c.tokens):c.text);x+=n?this.renderer.paragraph(u):u;continue;default:var S='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(S);throw new Error(S)}else x+=v||"";return x},n.parseInline=function(e,n){n=n||this.renderer;var t,a,r,i="",o=e.length;for(t=0;t<o;t++)if(a=e[t],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type])||!1===(r=this.options.extensions.renderers[a.type].call({parser:this},a))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type))switch(a.type){case"escape":case"text":i+=n.text(a.text);break;case"html":i+=n.html(a.text);break;case"link":i+=n.link(a.href,a.title,this.parseInline(a.tokens,n));break;case"image":i+=n.image(a.href,a.title,a.text);break;case"strong":i+=n.strong(this.parseInline(a.tokens,n));break;case"em":i+=n.em(this.parseInline(a.tokens,n));break;case"codespan":i+=n.codespan(a.text);break;case"br":i+=n.br();break;case"del":i+=n.del(this.parseInline(a.tokens,n));break;default:var s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}else i+=r||"";return i},e}(),de=$,ue=le,ce=_,me=ee,pe=ne,he=te,ge=D,fe=I,be=T,ye=a.exports.getDefaults,we=a.exports.changeDefaults,ve=a.exports.defaults;function xe(e,n,t){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof n&&(t=n,n=null),n=ge({},xe.defaults,n||{}),fe(n),t){var a,r=n.highlight;try{a=de.lex(e,n)}catch(e){return t(e)}var i=function(e){var i;if(!e)try{n.walkTokens&&xe.walkTokens(a,n.walkTokens),i=ue.parse(a,n)}catch(n){e=n}return n.highlight=r,e?t(e):t(null,i)};if(!r||r.length<3)return i();if(delete n.highlight,!a.length)return i();var o=0;return xe.walkTokens(a,(function(e){"code"===e.type&&(o++,setTimeout((function(){r(e.text,e.lang,(function(n,t){if(n)return i(n);null!=t&&t!==e.text&&(e.text=t,e.escaped=!0),0==--o&&i()}))}),0))})),void(0===o&&i())}try{var s=de.lex(e,n);return n.walkTokens&&xe.walkTokens(s,n.walkTokens),ue.parse(s,n)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",n.silent)return"<p>An error occurred:</p><pre>"+be(e.message+"",!0)+"</pre>";throw e}}return xe.options=xe.setOptions=function(e){return ge(xe.defaults,e),we(xe.defaults),xe},xe.getDefaults=ye,xe.defaults=ve,xe.use=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var a,r=ge.apply(void 0,[{}].concat(n)),i=xe.defaults.extensions||{renderers:{},childTokens:{}};n.forEach((function(e){if(e.extensions&&(a=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var n=i.renderers?i.renderers[e.name]:null;i.renderers[e.name]=n?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);return!1===i&&(i=n.apply(this,a)),i}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");i[e.level]?i[e.level].unshift(e.tokenizer):i[e.level]=[e.tokenizer],e.start&&("block"===e.level?i.startBlock?i.startBlock.push(e.start):i.startBlock=[e.start]:"inline"===e.level&&(i.startInline?i.startInline.push(e.start):i.startInline=[e.start]))}e.childTokens&&(i.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var n=xe.defaults.renderer||new me,t=function(t){var a=n[t];n[t]=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=e.renderer[t].apply(n,i);return!1===s&&(s=a.apply(n,i)),s}};for(var a in e.renderer)t(a);r.renderer=n}(),e.tokenizer&&function(){var n=xe.defaults.tokenizer||new ce,t=function(t){var a=n[t];n[t]=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=e.tokenizer[t].apply(n,i);return!1===s&&(s=a.apply(n,i)),s}};for(var a in e.tokenizer)t(a);r.tokenizer=n}(),e.walkTokens){var n=xe.defaults.walkTokens;r.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}a&&(r.extensions=i),xe.setOptions(r)}))},xe.walkTokens=function(e,n){for(var a,r=function(){var e=a.value;switch(n.call(xe,e),e.type){case"table":for(var r,i=t(e.header);!(r=i()).done;)xe.walkTokens(r.value.tokens,n);for(var o,s=t(e.rows);!(o=s()).done;)for(var l,d=t(o.value);!(l=d()).done;)xe.walkTokens(l.value.tokens,n);break;case"list":xe.walkTokens(e.items,n);break;default:xe.defaults.extensions&&xe.defaults.extensions.childTokens&&xe.defaults.extensions.childTokens[e.type]?xe.defaults.extensions.childTokens[e.type].forEach((function(t){xe.walkTokens(e[t],n)})):e.tokens&&xe.walkTokens(e.tokens,n)}},i=t(e);!(a=i()).done;)r()},xe.parseInline=function(e,n){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");n=ge({},xe.defaults,n||{}),fe(n);try{var t=de.lexInline(e,n);return n.walkTokens&&xe.walkTokens(t,n.walkTokens),ue.parseInline(t,n)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",n.silent)return"<p>An error occurred:</p><pre>"+be(e.message+"",!0)+"</pre>";throw e}},xe.Parser=ue,xe.parser=ue.parse,xe.Renderer=me,xe.TextRenderer=pe,xe.Lexer=de,xe.lexer=de.lex,xe.Tokenizer=ce,xe.Slugger=he,xe.parse=xe,xe}()}));function Qs(n){const{states:t,callbacks:a,readme:r}=n;return[e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>a.setEditedTemplate(e.target.value)},t.editedTemplate),e("button",{onClick:()=>a.setPreviewTemplate(t.editedTemplate)},"Update Preview"),r?e("details",null,e("summary",null,"Props readme"),e("div",{innerHTML:Zs(r)})):"",e("div",{innerHTML:t.previewTemplate})]}function el(e){const[n,t]=i(e),[a,r]=i(e);return{states:{previewTemplate:a,editedTemplate:n},callbacks:{setEditedTemplate:t,setPreviewTemplate:r}}}const nl=Ys((()=>{const{states:n,callbacks:t}=el('<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');return e(Xs,{states:n,callbacks:t,template:'<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'})})),tl=Ys((()=>{const{states:n,callbacks:t}=el('<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');return e(Xs,{states:n,callbacks:t,template:'<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'})})),al=Ys((()=>{const{states:n,callbacks:t}=el('<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');return e(Xs,{states:n,callbacks:t,template:'<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',leadSubmit:!0})})),rl=Ys((()=>{const{states:n,callbacks:t}=el(Ks);return e(Xs,{states:n,callbacks:t,template:Ks})})),il=Ys((()=>{const{states:n,callbacks:t}=el('<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');return e(Qs,{states:n,callbacks:t})})),ol=Ys((()=>{const{states:n,callbacks:t}=el('<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');return e(Qs,{states:n,callbacks:t})})),sl=Ys((()=>{const{states:n,callbacks:t}=el('<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');return e(Qs,{states:n,callbacks:t})})),ll=Ys((()=>{const{states:n,callbacks:t}=el(zs);return e(Qs,{states:n,callbacks:t})})),dl=Ys((()=>{const{states:n,callbacks:t}=el("<sqm-referral-iframe></sqm-referral-iframe>\n");return e(Qs,{states:n,callbacks:t})})),ul=Ys((()=>{const{states:n,callbacks:t}=el('<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>');return e(Qs,{states:n,callbacks:t})})),cl=Ys((()=>{const{states:n,callbacks:t}=el('<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');return e(Qs,{states:n,callbacks:t})})),ml=Ys((()=>{const{states:n,callbacks:t}=el('<sqm-portal-reset-password confirm-password="true"></sqm-portal-reset-password>\n');return e(Qs,{states:n,callbacks:t})})),pl=Ys((()=>{const{states:n,callbacks:t}=el('<sqm-portal-protected-route redirect-to="/login"></sqm-portal-protected-route>\n<sqm-portal-email-verification></sqm-portal-email-verification>\n');return e(Qs,{states:n,callbacks:t})})),hl=Ys((()=>{const{states:n,callbacks:t}=el("<sqm-portal-verify-email></sqm-portal-verify-email>\n");return e(Qs,{states:n,callbacks:t})})),gl=Ys((()=>e("sqb-widget",{"widget-type":"p/Vacay-referral/w/referrerWidget",demoData:{data:{html:zs}}}))),fl=Ys((()=>{const{states:n,callbacks:t}=el('<!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');return e(Qs,{states:n,callbacks:t})})),bl=Ys((()=>{const{states:n,callbacks:t}=el('<!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>');return e(Qs,{states:n,callbacks:t})})),yl=Ys((()=>{const{states:n,callbacks:t}=el('<!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>');return e(Qs,{states:n,callbacks:t})})),wl=Object.freeze({__proto__:null,default:{title:"Templates / Microsite"},DefaultMicrosite:nl,MultiProgramMicrosite:tl,LeadSubmitMicrosite:al,TaxAndCash:rl,Login:il,ForgotPassword:ol,Register:sl,Dashboard:ll,LeadSubmitIframe:dl,Activity:ul,EditProfile:cl,ResetPassword:ml,EmailVerification:pl,EmailVerified:hl,Widget:gl,ResetPasswordEmail:fl,VerifyEmail:bl,taxPayoutReminderEmail:yl}),vl=Object.freeze({__proto__:null,default:{title:"Powered By"},Default:()=>e(h,null),CustomColor:()=>e(h,{color:"salmon"}),CustomWidthAndHeight:()=>e(h,{width:300,height:50})}),xl='<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',Tl='<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',Sl='<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';function El(e){const[n,t]=i(e),[a,r]=i(e);return{states:{previewTemplate:a,editedTemplate:n},callbacks:{setEditedTemplate:t,setPreviewTemplate:r}}}const Cl=Ys((()=>{const{states:n,callbacks:t}=El(xl);return e(Xs,{states:n,callbacks:t,template:xl})})),Rl=Ys((()=>{const{states:n,callbacks:t}=El(Tl);return e(Xs,{states:n,callbacks:t,template:Tl})})),Dl=Ys((()=>{const{states:n,callbacks:t}=El(Sl);return e(Xs,{states:n,callbacks:t,template:Sl})})),Il=Ys((()=>{const{states:n,callbacks:t}=El('<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');return e(Xs,{states:n,callbacks:t,template:xl})})),Al=Ys((()=>{const{states:n,callbacks:t}=El('<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');return e(Qs,{states:n,callbacks:t})})),ql=Ys((()=>{const{states:n,callbacks:t}=El('<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');return e(Qs,{states:n,callbacks:t})})),kl=Ys((()=>{const{states:n,callbacks:t}=El('<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');return e(Qs,{states:n,callbacks:t})})),Pl=Ys((()=>{const{states:n,callbacks:t}=El('<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');return e(Qs,{states:n,callbacks:t})})),Nl=Ys((()=>{const{states:n,callbacks:t}=El('<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');return e(Qs,{states:n,callbacks:t})})),Fl=Ys((()=>{const{states:n,callbacks:t}=El('<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');return e(Qs,{states:n,callbacks:t})})),Ll=Object.freeze({__proto__:null,default:{title:"Templates / Widgets"},ReferralWidget:Cl,MonoWidget:Rl,Loyalty:Dl,PromoCodeReferralWidget:Il,InstantAccessReferrerShareWidget:Al,PaypalMonoWidget:ql,PaypalReferralWidget:kl,InstantAccessFriendCouponWidget:Pl,InstantAccessReferrerRegistrationWidget:Nl,InstantAccessFriendRegistrationWidget:Fl}),_l={states:{validationErrors:{}},callbacks:{handleEmailSubmit:()=>console.log("Submit!")},content:{pageLabel:"Register",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address",googleButton:e("sl-button",null,"Register with Google"),secondaryButton:e("span",null,"Already have an account?"," ",e("sl-button",{padding:"0",style:{width:"60px"},size:"large",type:"text"},"Sign in")," ")}},Ul={..._l,states:{validationErrors:{error:"Something went wrong. Please try again."}}},Ol=Object.freeze({__proto__:null,default:{title:"Components/Microsite Base Registration"},Default:()=>e(g,{..._l}),EmailError:()=>e(g,{...Ul})}),Bl=Object.freeze({__proto__:null,default:{title:"Components/Big Stat",parameters:{scenario:'@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'}},Default:()=>e(c,{value:99e4,statvalue:"9.900,00",loading:!1},"Big stat"),LeftAlign:()=>e(c,{value:500,statvalue:"500",alignment:"left",loading:!1},"Big stat"),RightAlign:()=>e(c,{value:500,statvalue:"500",alignment:"right",loading:!1},"Big stat"),FlexReverse:()=>e(c,{value:500,statvalue:"500",flexReverse:!0,loading:!1},"Big stat"),FlexReverseRight:()=>e(c,{value:500,statvalue:"500",flexReverse:!0,alignment:"right",loading:!1},"Big stat"),FlexReverseLeft:()=>e(c,{value:500,statvalue:"500",flexReverse:!0,alignment:"left",loading:!1},"Big stat"),NoStatValue:()=>e(c,{value:0,statvalue:"...",loading:!1},"Big stat"),InvalidStatValue:()=>e(c,{value:0,statvalue:"!!!",loading:!1},"Big stat"),CustomStyles:()=>e("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":!0},e("p",null,"Giftcards Earned")),MultipleStats:()=>e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/referralsCount"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),MultipleStatsWithCustomBranding:()=>e("sqm-stat-container",{space:"xxx-large",display:"grid",alignment:"center","hide-border":"true"},e("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":!0},e("p",null,"Giftcards Earned")),e("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":!0},e("p",null,"Referrals")),e("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":!0},e("p",null,"Points balance")))});var Ml,Gl;function Vl(e,n,t=null,a=null){if(null==n)return n;const r=Qn(e);if(Yn(r))return null!=t?t(r,n):n;if(Wn(r))return n.map((e=>Vl(r.ofType,e,t,a)));if(Vn(r)){const e=r.getFields(),i={};return Object.keys(n).forEach((r=>{const o=e[r];null!=o&&(i[r]=Vl(o.type,n[r],t,a))})),null!=a?a(r,i):i}}function Wl(e,n){return Vl(e,n,((e,n)=>e.serialize(n)))}function jl(e,n){return Vl(e,n,((e,n)=>e.parseValue(n)))}function Hl(e,n={}){let t=Yl(e.getTypeMap(),e,Wl);t=Jl(t,e,n,(e=>Yn(e))),t=function(e,n,t){const a=function(e){const n=e[Gl.ENUM_VALUE];return null!=n?n:null}(t);return a?Jl(e,n,{[Gl.ENUM_TYPE]:e=>{const t=e.toConfig(),r=t.values,i={};return Object.keys(r).forEach((t=>{const o=r[t],s=a(o,e.name,n,t);if(void 0===s)i[t]=o;else if(Array.isArray(s)){const[e,n]=s;i[e]=void 0===n?o:n}else null!==s&&(i[t]=s)})),Xl(new gt({...t,values:i}))}},(e=>Gn(e))):e}(t,e,n),t=Yl(t,e,jl),t=Jl(t,e,n,(e=>!Yn(e))),t=Kl(t,e,n),t=$l(t,e,n);const a=function(e,n,t){const a=function(e){const n=e[Gl.DIRECTIVE];return null!=n?n:null}(t);if(null==a)return e.slice();const r=[];return e.forEach((e=>{const t=a(e,n);void 0===t?r.push(e):null!==t&&r.push(t)})),r}(e.getDirectives(),e,n),r=e.getQueryType(),i=e.getMutationType(),o=e.getSubscriptionType(),s=null!=r&&null!=t[r.name]?t[r.name].name:void 0,l=null!=i&&null!=t[i.name]?t[i.name].name:void 0,d=null!=o&&null!=t[o.name]?t[o.name].name:void 0,{typeMap:u,directives:c}=function(e,n){const t=Object.create(null);Object.keys(e).forEach((n=>{t[n]=e[n]}));const a=Object.create(null);Object.keys(t).forEach((e=>{const n=t[e];if(null==n||e.startsWith("__"))return;const r=n.name;if(!r.startsWith("__")){if(null!=a[r])throw new Error(`Duplicate schema type name ${r}`);a[r]=n}})),Object.keys(a).forEach((e=>{a[e]=o(a[e])}));const r=n.map((e=>function(e){if(function(e){return sa.some((function(n){return n.name===e.name}))}(e))return e;const n=e.toConfig();return n.args=i(n.args),new ta(n)}(e)));return{typeMap:a,directives:r};function i(e){const n={};return Object.keys(e).forEach((t=>{const a=e[t],r=d(a.type);null!=r&&(a.type=r,n[t]=a)})),n}function o(e){if(On(e)){const n=e.toConfig(),t={...n,fields:()=>s(n.fields),interfaces:()=>l(n.interfaces)};return new it(t)}if(Bn(e)){const n=e.toConfig(),t={...n,fields:()=>s(n.fields)};return"interfaces"in t&&(t.interfaces=()=>l(n.interfaces)),new mt(t)}if(Mn(e)){const n=e.toConfig(),t={...n,types:()=>l(n.types)};return new pt(t)}if(Vn(e)){const n=e.toConfig(),t={...n,fields:()=>function(e){const n={};return Object.keys(e).forEach((t=>{const a=e[t],r=d(a.type);null!=r&&(a.type=r,n[t]=a)})),n}(n.fields)};return new bt(t)}if(Gn(e)){const n=e.toConfig();return new gt(n)}if(Un(e)){if(Ut(e))return e;const n=e.toConfig();return new rt(n)}throw new Error(`Unexpected schema type: ${e}`)}function s(e){const n={};return Object.keys(e).forEach((t=>{const a=e[t],r=d(a.type);null!=r&&(a.type=r,a.args=i(a.args),n[t]=a)})),n}function l(e){const n=[];return e.forEach((e=>{const t=d(e);null!=t&&n.push(t)})),n}function d(e){if(Wn(e)){const n=d(e.ofType);return null!=n?new $n(n):null}if(jn(e)){const n=d(e.ofType);return null!=n?new Xn(n):null}if(et(e)){let n=t[e.name];return void 0===n&&(n=function(e){if(On(e)||Bn(e)||Vn(e)){const n=e.getFields(),t=Object.keys(n);return 1===t.length&&"_fake"===n[t[0]].name}return!1}(e)?function(e){switch(e.name){case qt.name:return qt;case kt.name:return kt;case Nt.name:return Nt;case Ft.name:return Ft;case Lt.name:return Lt;default:return e}}(e):o(e),a[n.name]=t[e.name]=n),null!=n?a[n.name]:null}return null}}(t,a);return new ua({...e.toConfig(),query:s?u[s]:void 0,mutation:l?u[l]:void 0,subscription:null!=d?u[d]:void 0,types:Object.keys(u).map((e=>u[e])),directives:c})}function Jl(e,n,t,a=(()=>!0)){const r={};return Object.keys(e).forEach((i=>{if(!i.startsWith("__")){const o=e[i];if(null==o||!a(o))return void(r[i]=o);const s=function(e,n,t){const a=function(e,n){const t=e.getType(n),a=[Gl.TYPE];if(On(t)){a.push(Gl.COMPOSITE_TYPE,Gl.OBJECT_TYPE);const t=e.getQueryType(),r=e.getMutationType(),i=e.getSubscriptionType();null!=t&&n===t.name?a.push(Gl.ROOT_OBJECT,Gl.QUERY):null!=r&&n===r.name?a.push(Gl.ROOT_OBJECT,Gl.MUTATION):null!=i&&n===i.name&&a.push(Gl.ROOT_OBJECT,Gl.SUBSCRIPTION)}else Vn(t)?a.push(Gl.INPUT_OBJECT_TYPE):Bn(t)?a.push(Gl.COMPOSITE_TYPE,Gl.ABSTRACT_TYPE,Gl.INTERFACE_TYPE):Mn(t)?a.push(Gl.COMPOSITE_TYPE,Gl.ABSTRACT_TYPE,Gl.UNION_TYPE):Gn(t)?a.push(Gl.ENUM_TYPE):Un(t)&&a.push(Gl.SCALAR_TYPE);return a}(e,t);let r;const i=[...a];for(;!r&&i.length>0;)r=n[i.pop()];return null!=r?r:null}(n,t,i);if(null==s)return void(r[i]=o);const l=s(o,n);if(void 0===l)return void(r[i]=o);r[i]=l}})),r}function Yl(e,n,t){const a=$l(e,n,{[Gl.ARGUMENT]:n=>{if(void 0===n.defaultValue)return n;const a=zl(e,n.type);return null!=a?{...n,defaultValue:t(a,n.defaultValue)}:void 0}});return Kl(a,n,{[Gl.INPUT_OBJECT_FIELD]:e=>{if(void 0===e.defaultValue)return e;const n=zl(a,e.type);return null!=n?{...e,defaultValue:t(n,e.defaultValue)}:void 0}})}function zl(e,n){if(Wn(n)){const t=zl(e,n.ofType);return null!=t?new $n(t):null}if(jn(n)){const t=zl(e,n.ofType);return null!=t?new Xn(t):null}if(et(n)){const t=e[n.name];return null!=t?t:null}return null}function Kl(e,n,t){const a={};return Object.keys(e).forEach((r=>{if(!r.startsWith("__")){const i=e[r];if(!On(i)&&!Bn(i)&&!Vn(i))return void(a[r]=i);const o=function(e,n,t){const a=function(e,n){const t=e.getType(n),a=[Gl.FIELD];if(On(t)){a.push(Gl.COMPOSITE_FIELD,Gl.OBJECT_FIELD);const t=e.getQueryType(),r=e.getMutationType(),i=e.getSubscriptionType();null!=t&&n===t.name?a.push(Gl.ROOT_FIELD,Gl.QUERY_ROOT_FIELD):null!=r&&n===r.name?a.push(Gl.ROOT_FIELD,Gl.MUTATION_ROOT_FIELD):null!=i&&n===i.name&&a.push(Gl.ROOT_FIELD,Gl.SUBSCRIPTION_ROOT_FIELD)}else Bn(t)?a.push(Gl.COMPOSITE_FIELD,Gl.INTERFACE_FIELD):Vn(t)&&a.push(Gl.INPUT_OBJECT_FIELD);return a}(e,t);let r;const i=[...a];for(;!r&&i.length>0;)r=n[i.pop()];return null!=r?r:null}(n,t,r);if(null==o)return void(a[r]=i);const s=i.toConfig(),l=s.fields,d={};Object.keys(l).forEach((e=>{const t=l[e],a=o(t,e,r,n);if(void 0===a)d[e]=t;else if(Array.isArray(a)){const[e,n]=a;null!=n.astNode&&(n.astNode={...n.astNode,name:{...n.astNode.name,value:e}}),d[e]=void 0===n?t:n}else null!==a&&(d[e]=a)})),a[r]=On(i)?Xl(new it({...s,fields:d})):Bn(i)?Xl(new mt({...s,fields:d})):Xl(new bt({...s,fields:d}))}})),a}function $l(e,n,t){const a={};return Object.keys(e).forEach((r=>{if(!r.startsWith("__")){const i=e[r];if(!On(i)&&!Bn(i))return void(a[r]=i);const o=function(e){const n=e[Gl.ARGUMENT];return null!=n?n:null}(t);if(null==o)return void(a[r]=i);const s=i.toConfig(),l=s.fields,d={};Object.keys(l).forEach((e=>{const t=l[e],a=t.args;if(null==a)return void(d[e]=t);const i=Object.keys(a);if(!i.length)return void(d[e]=t);const s={};i.forEach((t=>{const i=a[t],l=o(i,e,r,n);if(void 0===l)s[t]=i;else if(Array.isArray(l)){const[e,n]=l;s[e]=n}else null!==l&&(s[t]=l)})),d[e]={...t,args:s}})),a[r]=On(i)?new it({...s,fields:d}):Bn(i)?new mt({...s,fields:d}):new bt({...s,fields:d})}})),a}function Xl(e){if(On(e)){const n=e.toConfig();if(null!=n.astNode){const e=[];Object.values(n.fields).forEach((n=>{null!=n.astNode&&e.push(n.astNode)})),n.astNode={...n.astNode,kind:he.OBJECT_TYPE_DEFINITION,fields:e}}return null!=n.extensionASTNodes&&(n.extensionASTNodes=n.extensionASTNodes.map((e=>({...e,kind:he.OBJECT_TYPE_EXTENSION,fields:void 0})))),new it(n)}if(Bn(e)){const n=e.toConfig();if(null!=n.astNode){const e=[];Object.values(n.fields).forEach((n=>{null!=n.astNode&&e.push(n.astNode)})),n.astNode={...n.astNode,kind:he.INTERFACE_TYPE_DEFINITION,fields:e}}return null!=n.extensionASTNodes&&(n.extensionASTNodes=n.extensionASTNodes.map((e=>({...e,kind:he.INTERFACE_TYPE_EXTENSION,fields:void 0})))),new mt(n)}if(Vn(e)){const n=e.toConfig();if(null!=n.astNode){const e=[];Object.values(n.fields).forEach((n=>{null!=n.astNode&&e.push(n.astNode)})),n.astNode={...n.astNode,kind:he.INPUT_OBJECT_TYPE_DEFINITION,fields:e}}return null!=n.extensionASTNodes&&(n.extensionASTNodes=n.extensionASTNodes.map((e=>({...e,kind:he.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0})))),new bt(n)}if(Gn(e)){const n=e.toConfig();if(null!=n.astNode){const e=[];Object.values(n.values).forEach((n=>{null!=n.astNode&&e.push(n.astNode)})),n.astNode={...n.astNode,values:e}}return null!=n.extensionASTNodes&&(n.extensionASTNodes=n.extensionASTNodes.map((e=>({...e,values:void 0})))),new gt(n)}return e}!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"}(Ml||(Ml={})),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"}(Gl||(Gl={}));const Zl=new Map;function Ql({schema:e,mocks:n={},preserveResolvers:t=!1}){if(!e)throw new Error("Must provide schema to mock");if(!da(e))throw new Error('Value at "schema" must be of type GraphQLSchema');if(!ed(n))throw new Error("mocks must be of type Object");const a=new Map;Object.keys(n).forEach((e=>{a.set(e,n[e])})),a.forEach(((e,n)=>{if("function"!=typeof e)throw new Error(`mockFunctionMap[${n}] must be a function`)}));const r=function(n,t,i){return(t,o,s,l)=>{const d=Qn(n),u=nt(d);if(i&&t&&void 0!==t[i]){let e;return"function"==typeof t[i]?(e=t[i](o,s,l),id(e)&&(e=e.mock(t,o,s,l,d,r))):e=t[i],a.has(u.name)&&(e=rd(a.get(u.name).bind(null,t,o,s,l),e)),e}if(Wn(d))return[r(d.ofType)(t,o,s,l),r(d.ofType)(t,o,s,l)];if(a.has(d.name)&&!Kn(d))return a.get(d.name)(t,o,s,l);if(On(d))return{};if(Kn(d)){let n,i={};if(a.has(d.name)){if(i=a.get(d.name)(t,o,s,l),!i||!i.__typename)return Error(`Please return a __typename in "${d.name}"`);n=e.getType(i.__typename)}else n=nd(e.getPossibleTypes(d));return{__typename:n,...i,...r(n)(t,o,s,l)}}return Gn(d)?nd(d.getValues()).value:Zl.has(d.name)?Zl.get(d.name)(t,o,s,l):Error(`No mock defined for type "${d.name}"`)}};return Hl(e,{[Gl.ABSTRACT_TYPE]:e=>{const n=e.resolveType;if(t&&null!=n&&n.length)return;const a=(e,n,t)=>t.schema.getType(e.__typename);return Bn(e)?new mt({...e.toConfig(),resolveType:a}):new pt({...e.toConfig(),resolveType:a})},[Gl.OBJECT_FIELD]:(n,i,o)=>{const s=n.type,l=n.resolve,d={...n};let u=r(s,o,i);const c=e.getQueryType(),m=null!=c&&c.name===o,p=e.getMutationType(),h=null!=p&&p.name===o,g=e.getSubscriptionType();if((m||h||null!=g&&g.name===o)&&a.has(o)){const e=a.get(o);"function"==typeof e(void 0,{},{},{})[i]&&(u=(t,a,s,l)=>{const d=null!=t?t:{};return d[i]=e(t,a,s,l)[i],r(n.type,o,i)(d,a,s,l)})}if(t&&l){const e=l;d.resolve=(n,t,a,r)=>Promise.all([u(n,t,a,r),e(n,t,a,r)]).then((e=>{const[n,t]=e;if(n instanceof Error){if(void 0===t)throw n;return t}return t instanceof Date&&n instanceof Date?void 0!==t?t:n:ed(n)&&ed(t)?function(e,...n){return n.forEach((n=>{let t=n;for(;null!=t;)ad(e,t),t=Object.getPrototypeOf(t)})),e}(Object.create(Object.getPrototypeOf(t)),t,n):void 0!==t?t:n}))}else d.resolve=u;const f=n.subscribe,b=()=>({[Symbol.asyncIterator]:()=>({next:async()=>({done:!0,value:{}})})});return d.subscribe=t&&f?async(e,n,t,a)=>{const[r,i]=await Promise.all([b(),f(e,n,t,a)]);return i||r}:b,d}})}function ed(e){return e===Object(e)&&!Array.isArray(e)}function nd(e){return e[Math.floor(Math.random()*e.length)]}function td(e,n){return Object.assign(e,n)}function ad(e,n){Object.getOwnPropertyNames(n).forEach((t=>{if(!Object.getOwnPropertyDescriptor(e,t)){const a=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,null==a?{}:a)}}))}function rd(e,n){return Array.isArray(n)?n.map((n=>rd(e,n))):n instanceof Promise?n.then((n=>td(e(),n))):ed(n)?td(e(),n):n}function id(e){return!(!("number"==typeof(null==e?void 0:e.len)||Array.isArray(null==e?void 0:e.len)&&"number"==typeof(null==e?void 0:e.len[0]))||void 0!==e.wrappedFunction&&"function"!=typeof e.wrappedFunction)}Zl.set("Int",(()=>Math.round(200*Math.random())-100)),Zl.set("Float",(()=>200*Math.random()-100)),Zl.set("String",(()=>"Hello World")),Zl.set("Boolean",(()=>Math.random()>.5)),Zl.set("ID",(()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=16*Math.random()|0;return("x"==e?n:3&n|8).toString(16)}))));class od{constructor(e,n){if(this.len=e,void 0!==n){if("function"!=typeof n)throw new Error("Second argument to MockList must be a function or undefined");this.wrappedFunction=n}}mock(e,n,t,a,r,i){let o;o=Array.isArray(this.len)?new Array(this.randint(this.len[0],this.len[1])):new Array(this.len);for(let s=0;s<o.length;s++)if("function"==typeof this.wrappedFunction){const l=this.wrappedFunction(e,n,t,a);if(id(l)){const d=Qn(r.ofType);o[s]=l.mock(e,n,t,a,d,i)}else o[s]=l}else o[s]=i(r.ofType)(e,n,t,a);return o}randint(e,n){return Math.floor(Math.random()*(n-e+1)+e)}}var sd=Date.UTC(2026,9,1,17,0,0),ld=864e5,dd=Math.random;function ud(e){let n=2166136261;for(let t=0;t<e.length;t++)n^=e.charCodeAt(t),n=Math.imul(n,16777619);return n>>>0}var cd=(e,n)=>Math.floor(dd()*(n-e+1))+e,md=e=>e[cd(0,e.length-1)],pd=[["Jane","Doe"],["Marcus","Chen"],["Priya","Patel"],["Diego","Alvarez"],["Aisha","Okafor"],["Liam","O'Brien"],["Sofia","Rossi"],["Noah","Kim"]],hd=()=>{const[e,n]=md(pd),t=`${e}${n}`.replace(/[^a-z]/gi,"");return{firstName:e,lastName:n,lastInitial:n[0],displayName:`${e} ${n}`,email:`${t.toLowerCase()}@example.com`,referralCode:t.toUpperCase(),code:t.toUpperCase(),shareLink:`https://ssqt.co/${t.toLowerCase()}`,shortUrl:`https://ssqt.co/${t.toLowerCase()}`}},gd=()=>cd(0,16777215).toString(16).padStart(6,"0")+cd(0,16777215).toString(16).padStart(6,"0"),fd="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 bd(e,n){const t=e.toLowerCase(),a=yd(hd());return t in a?a[t]:t.startsWith("pretty")||"formatrewardprettyvalue"===t||"balance"===t?`$${5*cd(1,10)}.00`:/image|logo|icon|avatar|picture/.test(t)?fd:"textvalue"===t?String(cd(1,25)):t.endsWith("code")&&!/country|currency|postal|error|reason|language/.test(t)?`${md(["SAVE","GIFT","FUEL","WELCOME"])}-${cd(0,1048575).toString(36).toUpperCase().padStart(4,"0")}`:t.endsWith("url")||t.endsWith("link")?`https://example.com/${n.toLowerCase()}/${e}`:"currency"===t||"currencycode"===t||"unit"===t||t.endsWith("unit")?"USD":t.includes("country")?"US":"locale"===t?"en_US":"id"===t||t.endsWith("id")||"uid"===t||"key"===t?gd():"name"===t?`${n} ${cd(1,9)}`:"description"===t?"Give $10, get $10 when your friend signs up":"status"===t?"ACTIVE":t.includes("phone")?"+1 604-555-0134":t.includes("postalcode")?"V6B 1A1":t.includes("city")?"Vancouver":t.includes("state")||t.includes("region")?"BC":t.includes("address")?"123 Main St":t.includes("message")||t.includes("error")?"":`Example ${e}`}var yd=e=>{const n={};for(const t of Object.keys(e))n[t.toLowerCase()]=e[t];return n},wd=e=>{var n,t,a;return{fieldName:null!=(n=null==e?void 0:e.fieldName)?n:"",parentType:null!=(a=null==(t=null==e?void 0:e.parentType)?void 0:t.name)?a:""}},vd={String:(e,n,t,a)=>{const{fieldName:r,parentType:i}=wd(a);return/reasoncode$/i.test(r)?null:bd(r,i)},ID:()=>gd(),Boolean:(e,n,t,a)=>{const r=wd(a).fieldName.toLowerCase();return!!/^(is)?enabled$|^valid$|^success$|^available$|^connected$/.test(r)||!/hold|error|fraud/.test(r)&&dd()<.5},Int:()=>cd(1,25),Float:(e,n,t,a)=>{const r=wd(a).fieldName.toLowerCase();return/vat|tax|fee/.test(r)?cd(100,1500)/100:cd(2e3,4e4)/100},Long:(e,n,t,a)=>wd(a).fieldName.toLowerCase().startsWith("date")?sd-cd(1,90)*ld:cd(1,25),RSDate:()=>sd-cd(1,90)*ld,RSCountryCode:()=>"US",RSCurrencyCode:()=>"USD",RSLanguageCode:()=>"en",RSLocale:()=>"en_US",RSTimeZoneId:()=>"America/Vancouver",RSJsonNode:()=>({}),RSShallowMap:()=>({}),JsonSchema:()=>({type:"object",properties:{}}),JsonPointer:()=>"/",JSONata:()=>"true",GraphQLQueryString:()=>"{ viewer { ... on User { id } } }",DateTimeFormatPattern:()=>"yyyy-MM-dd",IsoDuration:()=>"P1M",IsoInterval:()=>"2026-09-01T00:00:00Z/2026-10-01T00:00:00Z",RSRelativeTimeframe:()=>"P1Y",JobType:()=>"EXPORT",PredefinedRewardType:()=>"CREDIT",RewardUnitSettingsId:()=>"CASH/USD",SegmentKey:()=>"vip",SegmentOperation:()=>"ADD",TranslatableAssetId:()=>"asset",TranslationInstanceId:()=>"default",WebhookType:()=>"user.created",WebhookTypeOperation:()=>"SUBSCRIBE",WidgetType:()=>"p/referral-program/w/referrerWidget"},xd={Viewer:()=>({__typename:"User"}),WidgetConfig:()=>({__typename:"ProgramWidgetConfig"})},Td="jane@example.com",Sd={Mutation:()=>({upsertUser:({userInput:e})=>{const n={};for(const t of Object.keys(e)){const a=e[t];null!==a&&"object"==typeof a||(n[t]=a)}return n}})};function Ed(e,n={}){const t=Pe({},e);for(const[a,r]of Object.entries(n)){const n=e[a];t[a]=n?(...e)=>{const t=n(...e),a=r(...e);return Rd(t)&&Rd(a)?Pe(Pe({},t),a):a}:r}return t}var Cd,Rd=e=>!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof od),Dd="test_canned",Id="https://canned.invalid",Ad=class{constructor(e={}){Ue(this,"options",e),Ue(this,"schema");const n=(Cd||(Cd=li('"""\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')),Cd);var t;this.schema=Ql({schema:n,mocks:Ed((t=n,Ed(Pe(Pe(Pe(Pe(Pe({},vd),function(e){const n={};for(const t of Object.values(e.getTypeMap())){if(!(t instanceof it)||t.name.startsWith("__"))continue;const e=t.getFields();("firstName"in e||"email"in e)&&(n[t.name]=()=>{const n=hd(),t={};for(const a of Object.keys(n))a in e&&(t[a]=n[a]);return t})}return n}(t)),function(e){const n={};for(const t of Object.values(e.getTypeMap())){if(!(t instanceof it))continue;const e=t.getFields(),a=e.data;if(!a||!Wn(jn(a.type)?a.type.ofType:a.type))continue;const r=6+ud(t.name)%7;n[t.name]=(n,t)=>{const a="number"==typeof(null==t?void 0:t.offset)?Math.max(0,t.offset):0,i=Math.max(0,Math.min("number"==typeof(null==t?void 0:t.limit)?t.limit:r,r-a)),o={data:()=>new od(i)};return"totalCount"in e&&(o.totalCount=r),"count"in e&&(o.count=i),o}}return n}(t)),xd),function(e){var n,t;const a=Object.values(null!=(t=null==(n=e.getMutationType())?void 0:n.getFields())?t:{}).filter((e=>"ManagedIdentityAuthenticationResult"===nt(e.type).name));if(!a.length)return{};const r=e=>({email:e,token:_e({user:{id:e,accountId:e,email:e}})}),i={};for(const e of a)i[e.name]=e=>{const n=Object.values(null!=e?e:{}).map((e=>null==e?void 0:e.email)).find((e=>"string"==typeof e));return r(null!=n?n:Td)};return{ManagedIdentityAuthenticationResult:()=>r(Td),Mutation:()=>i}}(t)),Sd)),e.mocks)})}async request(e,n,t){var a,r;const i="string"==typeof e?e:we(e),o=function(e,n){const t=Math.random;dd=function(e){return function(){e=1831565813+(e|=0)|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}(ud(e)),Math.random=dd;try{return n()}finally{Math.random=t,dd=t}}(`${null!=(a=this.options.seed)?a:""}|${i}|${JSON.stringify(null!=n?n:{})}`,(()=>function(e,n,t,a,r,i,o,s){var l=ei(1===arguments.length?e:{schema:e,source:n,rootValue:t,contextValue:a,variableValues:r,operationName:i,fieldResolver:o,typeResolver:s});if(gn(l))throw new Error("GraphQL execution failed to complete synchronously.");return l}({schema:this.schema,source:i,variableValues:n})));if(this.options.latency&&await new Promise((e=>setTimeout(e,this.options.latency))),null==(r=o.errors)?void 0:r.length)throw new Oe.ClientError({data:o.data,errors:o.errors.map(Be),status:200},{query:i,variables:n});return o.data}};function qd(e){return new Ad(e)}var kd,Pd=new WeakMap;function Nd(e={}){const n=e,{user:t,programId:a,widgetIdent:i}=n,o=ke(n,["user","programId","widgetIdent"]);window.widgetIdent=Pe({tenantAlias:Dd,appDomain:Id,programId:a},i);const{story:d,stop:u}=r((()=>{const e={};kd=e,Ne(window.widgetIdent.programId);const n=null==i?void 0:i.locale,t=qd(Fe(Pe({latency:100},o),{mocks:n?Ed({User:()=>({locale:n})},o.mocks):o.mocks})),a=function(e,n){const t=n instanceof Ad?n:qd(n),a=new l({element:e,contextName:Me,initialState:t}).start();return()=>a.stop()}(document.body,t),r=function(e){const n=window.fetch;let t=!0;const a=`${Id}/api/v1/${Dd}/graphql`,r=e=>new Response(JSON.stringify(e),{status:200,headers:{"Content-Type":"application/json"}});window.fetch=async function(i,o){var s,l,d,u,c;const m="string"==typeof i?i:i instanceof URL?i.href:i.url;if(!t||m!==a)return n.call(this,i,o);const p=null!=(s=null==o?void 0:o.body)?s:"string"==typeof i||i instanceof URL?void 0:await i.clone().text(),{query:h,variables:g}=JSON.parse(String(null!=p?p:"{}"));try{return r({data:await e.request(h,g)})}catch(e){return r({data:null!=(d=null==(l=null==e?void 0:e.response)?void 0:l.data)?d:null,errors:null!=(c=null==(u=null==e?void 0:e.response)?void 0:u.errors)?c:[{message:String(e)}]})}};const i=window.fetch;return()=>{if(t=!1,Pd.set(i,n),window.fetch!==i)return;let e=n;for(;Pd.has(e);)e=Pd.get(e);window.fetch=e}}(t);return{story:e,stop:()=>{a(),r()}}}),[]);s((()=>(Le(function(e,n){if(e)return{id:e.id,accountId:e.accountId,email:e.email,jwt:_e({user:e})};const{userId:t,accountId:a,token:r,email:i}=null!=n?n:{};return t&&a&&r?{id:t,accountId:a,email:i,jwt:r}:void 0}(t,i)),()=>{u(),kd===d&&(kd=void 0,window.widgetIdent=void 0,Le(void 0))})),[])}const Fd=(n,t,a)=>(function(){const e="zach.harrison@referralsaasquatch.com";Nd({programId:"klip-referral-program",user:{id:e,accountId:e}})}(),e("div",null,e("b",null,"Stat format:"),e("pre",null,t),e("br",null),e("b",null,"Stat selected:")," ",e("pre",{style:{color:"green"}},n),e("sqm-big-stat",{"stat-type":n},a))),Ld=Ys((()=>{const[n,t]=i("/someRandomThing/with/someArguments/1234"),{props:a,label:r}=f({statType:n,render:()=>{},disconnectedCallback:()=>{},ignored:!0});return e("div",null,e("div",null,"Stat type:"," ",e("input",{style:{width:"300px"},type:"text",value:n,onInput:e=>t(e.target.value)})),e("hr",null),e("div",null,e(c,{...a},r)))})),_d=Ys((()=>Fd("/referralsCount","/(referralsCount)/:status?"))),Ud=Ys((()=>Fd("/referralsCount/converted","/(referralsCount)/:status?"))),Od=Ys((()=>Fd("/referralsCount/started","/(referralsCount)/:status?"))),Bd=Ys((()=>Fd("/referralsMonth","/(referralsMonth)"))),Md=Ys((()=>Fd("/referralsWeek","/(referralsWeek)"))),Gd=Ys((()=>Fd("/rewardsCount","/(rewardsCount)/:global?"))),Vd=Ys((()=>Fd("/rewardsCount/global","/(rewardsCount)/:global"))),Wd=Ys((()=>Fd("/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?"))),jd=Ys((()=>Fd("/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?"))),Hd=Ys((()=>Fd("/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?"))),Jd=Ys((()=>Fd("/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?"))),Yd=Ys((()=>Fd("/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?"))),zd=Ys((()=>Fd("/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?"))),Kd=Ys((()=>Fd("/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?"))),$d=Ys((()=>Fd("/integrationRewardsCountFiltered/AVAILABLE/global","/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Xd=Ys((()=>Fd("/integrationRewardsCountFiltered/PENDING/global","/(integrationRewardsCountFiltered)/:format([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"))),Zd=Ys((()=>Fd("/rewardsMonth","/(rewardsMonth)/:global?"))),Qd=Ys((()=>Fd("/rewardsWeek","/(rewardsWeek)/:global?"))),eu=Ys((()=>Fd("/rewardsAssigned/CREDIT/COFFEE","/(rewardsAssigned)/:statType/:unit/:global?"))),nu=Ys((()=>Fd("/rewardsAssigned/CREDIT/CASH%2FUSD","/(rewardsAssigned)/:statType/:unit/:global?"))),tu=Ys((()=>Fd("/rewardsPending/CREDIT/USD","/(rewardsPending)/:statType/:unit/:global?"))),au=Ys((()=>Fd("/rewardsPending/CREDIT/USD/global","/(rewardsPending)/:statType/:unit/:global?"))),ru=Ys((()=>Fd("/rewardsRedeemed/CREDIT/USD","/(rewardsRedeemed)/:statType/:unit/:global?"))),iu=Ys((()=>Fd("/rewardsRedeemedWeek/CREDIT/USD","/(rewardsRedeemedWeek)/:statType/:unit/:global?"))),ou=Ys((()=>Fd("/rewardsRedeemedMonth/CREDIT/USD","/(rewardsRedeemedMonth)/:statType/:unit/:global?"))),su=Ys((()=>Fd("/rewardsRedeemed/CREDIT/USD/global","/(rewardsRedeemed)/:statType/:unit/:global?"))),lu=Ys((()=>Fd("/rewardsRedeemedWeek/CREDIT/USD/global","/(rewardsRedeemedWeek)/:statType/:unit/:global?"))),du=Ys((()=>Fd("/rewardsRedeemedMonth/CREDIT/USD/global","/(rewardsRedeemedMonth)/:statType/:unit/:global?"))),uu=Ys((()=>Fd("/rewardsAvailable/CREDIT/COFFEE","/(rewardsAvailable)/:statType/:unit/:global?"))),cu=Ys((()=>Fd("/rewardsAvailable/CREDIT/CASH%2FUSD","/(rewardsAvailable)/:statType/:unit/:global?"))),mu=Ys((()=>Fd("/rewardBalance/CREDIT/COFFEE/prettyValue","/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?"))),pu=Ys((()=>{const e=encodeURIComponent("CASH/USD");return Fd(`/rewardBalance/CREDIT/${e}/prettyValue`,"/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?")})),hu=Ys((()=>{const e=encodeURIComponent("Paid-Member-Goal/referrals");return Fd(`/programGoals/count/${e}`,"/(programGoals)/:metricType/:goalId")})),gu=Ys((()=>Fd("/customFields/thingCount","/(customFields)/:customField"))),fu=Ys((()=>Fd("/customFields/thingCount","/(customFields)/:customField",e("sqm-text",null,"Thing Count")))),bu=Ys((()=>Fd("/customFields/thingCount","/(customFields)/:customField"," "))),yu=Ys((()=>Fd("/customFields/thingCount","/(customFields)/:customField","\n "))),wu=Ys((()=>Fd("/customFields/thingCount","/(customFields)/:customField","Thing Count"))),vu=Ys((()=>Fd("/traffic","/(traffic)"))),xu=Ys((()=>Fd("/userStats/traffic","/(userStat)/:statId","Traffic"))),Tu=Ys((()=>Fd("/userStats/referrals","/(userStat)/:statId","Referrals"))),Su=Ys((()=>Fd("/userStats/conversions","/(userStat)/:statId","Conversions"))),Eu=Ys((()=>Fd("/userStats/goals","/(userStat)/:statId","Goals"))),Cu=Ys((()=>Fd("/userStats/rewards","/(userStat)/:statId","Rewards"))),Ru=Ys((()=>Fd("/userStats/widgetLoads","/(userStat)/:statId","Widget Loads"))),Du=Ys((()=>Fd("/userStats/revenue","/(userStat)/:statId","Revenue"))),Iu=Ys((()=>Fd("/userStats/generatedRevenue","/(userStat)/:statId","Generated Revenue"))),Au=Ys((()=>Fd("/userStats/referredRevenue","/(userStat)/:statId","Referred Revenue"))),qu=Ys((()=>Fd("/payoutBalance","/(payoutBalance)"))),ku=Object.freeze({__proto__:null,default:{title:"Hooks / useBigStat"},Demo:Ld,ReferralsCount:_d,referralsConvertedCount:Ud,referralsStartedCount:Od,ReferralsMonth:Bd,ReferralsWeek:Md,RewardsCount:Gd,GlobalRewardsCount:Vd,GlobalRewardsCountFiltered:Wd,GlobalRewardsCountPctDiscount:jd,GlobalRewardsCountPctDiscountPending:Hd,RewardsCountByUnit:Jd,GlobalRewardsCountByUnit:Yd,GlobalPendingRewardsCount:zd,RewardsAvailableCount:Kd,GlobalRewardsCountByIntegration:$d,GlobalRewardsCountByPendingIntegration:Xd,RewardsMonth:Zd,RewardsWeek:Qd,RewardsAssigned:eu,RewardsAssignedCashUSD:nu,RewardsPending:tu,RewardsPendingGlobal:au,RewardsRedeemed:ru,RewardsRedeemedWeek:iu,RewardsRedeemedMonth:ou,RewardsRedeemedGlobal:su,RewardsRedeemedWeekGlobal:lu,RewardsRedeemedMonthGlobal:du,RewardsAvailable:uu,RewardsAvailableWithSlash:cu,RewardBalance:mu,RewardBalanceCashUSD:pu,ProgramGoals:hu,CustomField:gu,CustomFieldWithLabel:fu,CustomFieldWithEmptyLabel:bu,CustomFieldWithEmptySpaceLabel:yu,CustomFieldWithTextLabel:wu,Traffic:vu,TrafficTwo:xu,Referrals:Tu,Conversions:Su,Goals:Eu,Rewards:Cu,WidgetLoads:Ru,Revenue:Du,GeneratedRevenue:Iu,ReferredRevenue:Au,PayoutBalance:qu}),Pu=()=>e("div",{style:{padding:"10px",border:"5px solid #EEE"}},e("div",{style:{display:"flex",gap:"5px",padding:"5px"}},e("sl-button",{type:"default"},"Default"),e("sl-button",{type:"primary"},"Primary"),e("sl-button",{type:"success"},"Success"),e("sl-button",{type:"neutral"},"Neutral"),e("sl-button",{type:"warning"},"Warning"),e("sl-button",{type:"danger"},"Danger")),e("div",{style:{display:"flex",gap:"5px",padding:"5px"}},e("sl-badge",{type:"primary"},"Primary"),e("sl-badge",{type:"success"},"Success"),e("sl-badge",{type:"neutral"},"Neutral"),e("sl-badge",{type:"warning"},"Warning"),e("sl-badge",{type:"danger"},"Danger")),e("div",{class:"color-palette"},e("div",{class:"color-palette__name"},"Primary",e("br",null),e("code",null,"--sl-color-primary-",e("em",null,"{n}"))),e("div",{style:{display:"flex",gap:"5px"}},e(Nu,{depth:50}),e(Nu,{depth:100}),e(Nu,{depth:200}),e(Nu,{depth:300}),e(Nu,{depth:400}),e(Nu,{depth:500}),e(Nu,{depth:600}),e(Nu,{depth:700}),e(Nu,{depth:800}),e(Nu,{depth:900}),e(Nu,{depth:950}))));function Nu({depth:n}){return e("div",{style:{backgroundColor:`var(--sl-color-primary-${n})`,color:`var(--sl-color-neutral-${1e3-n})`,width:"50px",height:"50px",display:"flex",justifyContent:"center",alignItems:"center"}},n)}const Fu=Object.freeze({__proto__:null,default:{title:"Components/Brand",parameters:{scenario:'@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"'}},Examples:()=>e("div",null,e(Pu,null),e("sqm-brand",{"brand-color":"#FF0000"},e(Pu,null)),e("sqm-brand",{"brand-color":"#00FF00"},e(Pu,null)),e("sqm-brand",{"brand-color":"#0000FF"},e(Pu,null)),e("sqm-brand",{"brand-color":"#000000"},e(Pu,null))),Nested:()=>e("div",null,"Default ",e(Pu,null),e("sqm-brand",{"brand-color":"#FF0000"},"Red:",e(Pu,null),e("sqm-brand",{"brand-color":"#00FF00"},"Green:",e(Pu,null),e("sqm-brand",{"brand-color":"#0000FF"},"Blue:",e(Pu,null),e("sqm-brand",{"brand-color":"#000000"},"Black:",e(Pu,null)))))),Fonts:()=>e("div",null,e(Pu,null),e("sqm-brand",{"brand-font":"Roboto"},"Roboto",e(Pu,null)),e("sqm-brand",{"brand-font":"Open Sans"},"Open Sans",e(Pu,null)),e("sqm-brand",{"brand-font":"Lato"},"Lato",e(Pu,null)),e("sqm-brand",{"brand-font":"Oswald"},"Oswald",e(Pu,null)))}),Lu={callbacks:{sendEvent:()=>{},onClick:()=>{}},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:!1,showProgressBar:!1,steps:!1,buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:!1,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:!1,loadingEvent:!1}},_u={callbacks:{sendEvent:()=>{},onClick:()=>{}},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:!1,showProgressBar:!0,steps:!0,buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:!1,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:!1,loadingEvent:!1}},Uu={callbacks:{sendEvent:()=>{},onClick:()=>{}},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:!1,completedText:"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",showProgressBar:!0,steps:!1,progressBarUnit:"$",buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:!1,rewardDuration:null,expiryMessage:"Ends {endDate}",startsOnMessage:"Starts {startDate}",endedMessage:"Ended {endDate}",finite:0,goal:500,locale:"en"},states:{progress:100,loading:!1,loadingEvent:!1}},Ou=Object.freeze({__proto__:null,default:{title:"Components/Card Feed",parameters:{scenario:'@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 |'}},TaskCardGrid:()=>e(y,{width:347,gap:24},e(b,{...Lu}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{..._u}),e(b,{..._u}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{...Uu})),TaskCardGridHighGap:()=>e(y,{width:400,gap:150},e(b,{...Lu}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{..._u}),e(b,{..._u}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{...Uu})),TaskCardGridLowGap:()=>e(y,{width:400,gap:12},e(b,{...Lu}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{..._u}),e(b,{..._u}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{...Uu})),TaskCardGridHighWidth:()=>e(y,{width:1e3,gap:24},e(b,{...Lu}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{..._u}),e(b,{..._u}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{...Uu})),TaskCardGridLowWidth:()=>e(y,{width:250,gap:24},e(b,{...Lu}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{..._u}),e(b,{..._u}),e("div",null,e(b,{..._u})),e("div",null,e("div",null,e(b,{...Lu}))),e(b,{...Uu})),CardFeedGeneric:()=>e(y,{width:300,gap:24},e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-flex",alignItems:"center",justifyContent:"center"}},"PLACEHOLDER"),e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"),e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",display:"inline-block"}},"PLACEHOLDER"))}),Bu='@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 | |',Mu={title:"Components/Checkbox Field",parameters:{scenario:Bu}},Gu={states:{registrationFormState:{validationErrors:{}},checked:!1},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:()=>{}}},Vu={states:{registrationFormState:{},error:"",loading:!1,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}},Wu=Ys((()=>e(w,{...Gu}))),ju=Ys((()=>e(w,{...Gu,states:{...Gu.states,checked:!0}}))),Hu=Ys((()=>e(w,{...Gu,content:{...Gu.content,checkboxLabel:"I Agree"}}))),Ju=Ys((()=>e(w,{...Gu,states:{...Gu.states,registrationFormState:{validationErrors:{agree:"Must be checked"}}}}))),Yu=Ys((()=>e(w,{...Gu,states:{...Gu.states,registrationFormState:{validationErrors:{agree:"Must be checked"}}},content:{...Gu.content,errorMessage:"This checkbox must be checked to continue"}}))),zu=Ys((()=>e(We,{...Vu,content:{...Vu.content,terms:e("p",null,e("sqm-checkbox-field",null))}}))),Ku=Ys((()=>e(We,{...Vu,content:{...Vu.content,terms:e("p",null,"By signing up you agree to the"," ",e("a",{href:"https://example.com",target:"_blank"},"Terms and Conditions"),e("sqm-checkbox-field",{"checkbox-label":"I agree"}))}}))),$u=Ys((()=>e(We,{...Vu,content:{...Vu.content,terms:e("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"})}}))),Xu=Object.freeze({__proto__:null,default:Mu,Default:Wu,DefaultChecked:ju,CustomLabel:Hu,Error:Ju,CustomError:Yu,TermsAndConditions:zu,TermsAndConditionsCustomLabel:Ku,TermsAndConditionsLongCustomLabel:$u}),Zu={title:"Hooks / useCheckboxField",parameters:{scenario:Bu}};function Qu(){const e="testestest",n=e;return Nd({programId:"sam-partner-test-2",user:{id:e,accountId:n}}),{id:e,accountId:n}}const ec=Ys((()=>(Qu(),e("sqm-portal-register",null,e("div",{slot:"terms"},e("sqm-checkbox-field",{"checkbox-name":"terms"})))))),nc=Ys((()=>(Qu(),e("sqm-portal-register",null,e("div",{slot:"terms"},e("sqm-checkbox-field",{"checkbox-label":"I agree","checkbox-name":"terms"})))))),tc=Ys((()=>(Qu(),e("sqm-portal-register",null,e("sqm-name-fields",{slot:"formData"}),e("sqm-checkbox-field",{slot:"formData","checkbox-label":"I am not a robot","error-message":"Cannot be a robot","checkbox-name":"isHuman"}),e("div",{slot:"terms"},e("sqm-checkbox-field",{"checkbox-name":"otherCheckbox"})))))),ac=Ys((()=>(Qu(),e("sqm-portal-register",null,e("sqm-name-fields",{slot:"formData"}),e("sqm-checkbox-field",{slot:"formData","checkbox-label":"I am not a robot","checkbox-optional":"true","checkbox-name":"isHuman"}),e("div",{slot:"terms"},e("sqm-checkbox-field",{"checkbox-name":"required"})))))),rc=Ys((()=>(Qu(),e("sqm-portal-register",null,e("div",{slot:"terms"},e("sqm-checkbox-field",null)))))),ic=Object.freeze({__proto__:null,default:Zu,TermsAndConditions:ec,TermsAndConditionsWithLabel:nc,MultipleCheckboxes:tc,OptionalCheckboxes:ac,MissingName:rc}),oc={},sc={position:"relative",width:"500px",height:"500px",border:"1px solid black",padding:"25px"},lc=Object.freeze({__proto__:null,default:{title:"Components/Close Button",parameters:{}},Default:()=>e(Ye,{...oc}),InAContainer:()=>e("div",{style:sc},e(Ye,{...oc})),CustomColor:()=>e("div",{style:sc},e(Ye,{...{...oc,color:"blue"}}))}),dc={tooltiptext:"Copied to Clipboard",copyString:"THANKSJANE125uv125",open:!1,copyButtonLabel:"Copy Coupon",inputPlaceholderText:"CODE ERROR",couponCodeLabel:"Your coupon code:",error:!1,buttonType:"primary"},uc=Object.freeze({__proto__:null,default:{title:"Components/Coupon Code",parameters:{scenario:'@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'}},CouponCode:()=>e("sqm-coupon-code",{tooltiptext:"Copied to Clipboard"}),CouponCodeWithSecondaryButtonType:()=>e("sqm-coupon-code",{tooltiptext:"Copied to Clipboard",buttonType:"secondary",buttonStyle:"button-outside"}),CustomTooltipText:()=>e("sqm-coupon-code",{tooltiptext:"CUSTOM TOOLTIP TEXT"}),CustomTooltipDuration:()=>e("sqm-coupon-code",{tooltiplifespan:5e3,tooltiptext:"CUSTOM TOOLTIP TEXT"}),TextAlignCenter:()=>e("sqm-coupon-code",{textAlign:"center"}),TextAlignRight:()=>e("sqm-coupon-code",{textAlign:"right"}),CopyButton:()=>e("sqm-coupon-code",{...dc,buttonStyle:"button-outside"}),CopyButtonCustomLabel:()=>e("sqm-coupon-code",{...dc,buttonStyle:"button-outside","copy-button-label":"test long custom label"}),CopyButtonBelow:()=>e("sqm-coupon-code",{...dc,buttonStyle:"button-below"}),CopyButtonBelowCustomLabel:()=>e("sqm-coupon-code",{...dc,buttonStyle:"button-below","copy-button-label":"test long custom label"}),Loading:()=>e(v,{...dc,loading:!0}),CopyButtonLoading:()=>e(v,{...dc,buttonStyle:"button-outside",loading:!0}),CopyButtonBelowLoading:()=>e(v,{...dc,buttonStyle:"button-below",loading:!0}),ErrorGeneric:()=>e(v,{...dc,errorType:"warning",error:!0,errorText:"We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue."}),ErrorPending:()=>e(v,{...dc,errorType:"info",error:!0,errorText:"Your code will be available on April 24, 2023. Mark your calendar and come back then to redeem your reward!"}),ErrorFullfillment:()=>e(v,{...dc,errorType:"warning",error:!0,errorText:"We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue."}),ErrorCancelled:()=>e(v,{...dc,errorType:"warning",error:!0,errorText:"This code has been cancelled. Please reach out to the Support team for help resolving this issue."}),ErrorExpired:()=>e(v,{...dc,errorType:"warning",error:!0,errorText:"Looks like this code has expired. Please reach out to the Support team for help resolving this issue."}),ErrorRedeemed:()=>e(v,{...dc,errorType:"success",error:!0,errorText:"Looks like you’ve already redeemed this code."})}),cc={states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}},mc={states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}},pc=()=>e(oe,null,e(se,{...cc}),e(se,{...mc})),hc=Object.freeze({__proto__:null,default:{title:"Components/Divided Layout"},Row:()=>e("sqm-divided-layout",{direction:"row"},e(pc,null),e("div",{style:{padding:"48px"}},e(de,{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))}))),Column:()=>e("sqm-divided-layout",{direction:"column"},e(pc,null),e("div",{style:{padding:"48px"}},e(de,{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))}))),ColumnCustomDivider:()=>e("sqm-divided-layout",{direction:"column",dividerStyle:"1px solid red"},e(pc,null),e("div",{style:{padding:"48px"}},e(de,{labelMargin:"xx-small",padding:"none",label:e("sqm-text",null,e("p",null,"Welcome back,")),content:e("sqm-text",null,e("h1",null,"Joe Smith"))})))}),gc={states:{registrationFormState:{}},content:{dropdownName:"options",dropdownLabel:"Select an option",errorMessage:"Must select an option",selectOptions:[e("sl-menu-item",{value:"option-1"},"Option 1"),e("sl-menu-item",{value:"option-2"},"Option 2"),e("sl-menu-item",{value:"option-3"},"Option 3")]}},fc=Ys((()=>e(x,{...gc}))),bc=Ys((()=>e(x,{...gc,content:{...gc.content,dropdownLabel:"Pick your favorite"}}))),yc=Ys((()=>e(x,{...gc,states:{...gc.states,registrationFormState:{validationErrors:{options:"Must select an option"}}}}))),wc=Ys((()=>e(x,{...gc,content:{...gc.content,errorMessage:"An option must be selected to continue"},states:{...gc.states,registrationFormState:{validationErrors:{options:"Must select an option"}}}}))),vc=Object.freeze({__proto__:null,default:{title:"Components/Dropdown Field"},Default:fc,CustomLabel:bc,Error:yc,CustomError:wc});function xc(){const e="testestest",n=e;return Nd({programId:"sam-partner-test-2",user:{id:e,accountId:n}}),{id:e,accountId:n}}const Tc=Ys((()=>(xc(),e("sqm-portal-register",null,e("sqm-dropdown-field",{slot:"formData","dropdown-label":"Select an option","dropdown-name":"options"},e("sl-menu-item",{value:"option-1"},"Option 1"),e("sl-menu-item",{value:"option-2"},"Option 2"),e("sl-menu-item",{value:"option-3"},"Option 3")))))),Sc=Ys((()=>(xc(),e("sqm-portal-register",null,e("sqm-dropdown-field",{slot:"formData","dropdown-label":"Country","dropdown-name":"countryCode"},e("sl-menu-item",{value:"CA"},"Canada"),e("sl-menu-item",{value:"US"},"United States"),e("sl-menu-item",{value:"GB"},"United Kingdom")))))),Ec=Ys((()=>(xc(),e("sqm-portal-register",null,e("sqm-dropdown-field",{slot:"formData","dropdown-label":"Country"},e("sl-menu-item",{value:"CA"},"Canada"),e("sl-menu-item",{value:"US"},"United States"),e("sl-menu-item",{value:"GB"},"United Kingdom")))))),Cc=Object.freeze({__proto__:null,default:{title:"Hooks / useDropdownField"},SelectOptions:Tc,Countries:Sc,MissingName:Ec}),Rc={states:{loading:!1,submitDisabled:!1,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:!1,text:{editprofileheader:"Edit Profile",editprofiletext:"Update your profile.",firstnametext:"Bill",lastnametext:"Bob",canceltext:"Cancel",updatetext:"Update",currentregiontext:"Canada"}},callbacks:{onSubmit:e=>{console.log(e)},resetForm:()=>{console.log("reset")},onChange:()=>{console.log("change")},setShowEdit:e=>{console.log(e)}}},Dc=Object.freeze({__proto__:null,default:{title:"Components/Edit Profile Form"},EditProfileFormDisabled:()=>e(T,{...Rc}),EditProfileFormEnabled:()=>{const n={...Rc,states:{...Rc.states,showEdit:!0}};return e(T,{...n})},FullStackFrameWithMenu:()=>e("sqm-edit-profile",{editprofileheader:"Edit Profile",editprofiletext:"Update your profile.",firstnametext:"Bill",lastnametext:"Bob",canceltext:"Cancel",updatetext:"Update",currentregiontext:"Current Region",showregion:!0})}),Ic=Ys((()=>(function(){const e="worried-camera@uexwltgh.mailosaur.net";Nd({programId:"a-referral-program",user:{id:e,accountId:e}})}(),e("sqm-edit-profile",{editprofileheader:"HEADER",editprofiletext:"TEXT",firstnametext:"FIRST NAME",lastnametext:"LAST NAME",canceltext:"CANCEL",updatetext:"UPDATE",currentregiontext:"CURRENT REGION TEXT"})))),Ac=Object.freeze({__proto__:null,default:{title:"Hooks / useEditProfile"},RegularView:Ic}),qc={usersheading:"TOP REFERRERS",statsheading:"NEW CUSTOMERS"},kc={empty:e("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:e("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:e("slot",{name:"loading"},e("table",null,[...Array(10)].map((()=>e("tr",null,e("td",null,e("sqm-skeleton",null)))))))},Pc=Object.freeze({__proto__:null,default:{title:"Components/Empty State",parameters:{scenario:'@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'}},Empty:()=>e("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"}),SlottedIntoComponent:()=>{const n={states:{loading:!1,hasLeaders:!1,isEssentials:!1,styles:{...qc}},data:{rankType:"rowNumber",leaderboard:[],rowNumber:10,showUser:!0,userRank:{firstName:"Kutay",lastInitial:"C",value:8,rowNumber:11,rank:23}},elements:{...kc}};return e(S,{...n})}}),Nc=Object.freeze({__proto__:null,default:{title:"Components/Form Message"},SuccessAlert:()=>e("sqm-form-message",{type:"success"},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description")),ErrorAlert:()=>e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description")),WarningAlert:()=>e("sqm-form-message",{type:"warning"},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description")),InfoAlert:()=>e("sqm-form-message",{type:"info"},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description")),SuccessAlertTransparent:()=>e("sqm-form-message",{type:"success",transparent:!0},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description")),ErrorAlertTransparent:()=>e("sqm-form-message",{type:"error",transparent:!0},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description")),WarningAlertTransparent:()=>e("sqm-form-message",{type:"warning",transparent:!0},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description")),InfoAlertTransparent:()=>e("sqm-form-message",{type:"info",transparent:!0},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description")),Loading:()=>e("sqm-form-message",{type:"success",loading:!0},e("p",{part:"alert-title"},"This is the title"),e("p",{part:"alert-description"},"This is the description"))}),Fc=Object.freeze({__proto__:null,default:{title:"Components/Hero Image",parameters:{scenario:'@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 |'}},OverlayHeader:()=>e("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"}),OverlayDescription:()=>e("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"}),OverlayButton:()=>e("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"}),OverlayPadding:()=>e("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"}),OverlayLong:()=>e("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"}),OverlayLeft:()=>e("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"}),OverlayCenter:()=>e("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"}),OverlayRight:()=>e("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"}),OverlayCustomColors:()=>e("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"}),OverlayCustomOpacity:()=>e("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"}),Columns:()=>e("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"}),ColumnsPadding:()=>e("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"}),ColumnsLong:()=>e("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"}),ColumnsReverse:()=>e("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"}),ColumnsCustomPercentage:()=>e("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"}),ColumnsCustomColors:()=>e("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"})}),Lc=Object.freeze({__proto__:null,default:{title:"Components/Hero Layout",parameters:{scenario:'@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 |'}},LoginOneColumn:()=>{const n={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",minHeight:0},content:{primaryColumn:[e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("sqm-portal-login",null)]}};return e("div",{style:{height:"800px"}},e(E,{...n}))},LoginOneColumnWithMinHeight:()=>e("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"},e("sqm-portal-login",null)),LoginOneColumnWithColor:()=>{const n={states:{columns:1,wrapDirection:"wrap",paddingSize:"large",minHeight:0,background:"LightSlateGrey"},content:{primaryColumn:e("sqm-portal-login",null)}};return e("div",{style:{height:"800px"}},e(E,{...n}))},LoginOneColumnWithImage:()=>{const n={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:e("sqm-portal-login",null)}};return e("div",{style:{height:"800px"}},e(E,{...n}))},TwoColumnLoginLargePadding:()=>{const n={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:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("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 e("div",{style:{height:"800px"}},e(E,{...n}))},TwoColumnLoginMediumPadding:()=>{const n={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:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("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 e("div",{style:{height:"800px"}},e(E,{...n}))},TwoColumnLoginSmallPadding:()=>{const n={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:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("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 e("div",{style:{height:"800px"}},e(E,{...n}))},TwoColumnLoginNoPadding:()=>{const n={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:e("sqm-portal-login",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("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 e("div",{style:{height:"800px"}},e(E,{...n}))},TwoColumnLoginReverseWrap:()=>{const n={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:e("sqm-portal-change-password",null),secondaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("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 e("div",{style:{height:"800px"}},e(E,{...n}))},TwoColumnLoginWithImgElement:()=>{const n={states:{columns:2,wrapDirection:"wrap",paddingSize:"large",minHeight:0},content:{primaryColumn:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("sqm-portal-login",null)),secondaryColumn:e("div",null,e("img",{src:"https://images.unsplash.com/photo-1487528278747-ba99ed528ebc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80"}),e("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 e("div",{style:{height:"800px"}},e(E,{...n}))},MinHeight:()=>{const n={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:e("div",null,e("h1",{style:{textAlign:"center"}},"Get Referring!"),e("sqm-portal-login",null))}};return e(E,{...n})},InstantAccessLoggedOutView:()=>e("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"},e("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"},e("sqm-titled-section",{"text-align":"center","label-margin":"small",padding:"none",slot:"top"},e("h1",{slot:"label"},"You got $50 off thanks to a friend!"),e("p",{slot:"content"},e("span",null,"Use this reward to get $50 off your next purchase."))),e("div",{slot:"bottom"},e("p",{style:{textAlign:"center"}},"*Valid on purchases of $75 or more"),e("sqm-portal-footer",{slot:"footer","show-powered-by":"true","padding-bottom":"none","padding-left":"none","padding-right":"none","padding-top":"none","hide-support-text":!0,"terms-text":"Terms And Conditions","terms-link":"https://example.com"}))))}),_c=Object.freeze({__proto__:null,default:{title:"Components/Image",parameters:{scenario:'@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'}},Image:()=>e("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png"}),ImageAlignmentLeft:()=>e("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png",alignment:"left"}),ImageAlignmentCenter:()=>e("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png",alignment:"center"}),ImageAlignmentRight:()=>e("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png",alignment:"right"}),ImageBackground:()=>e("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000259/squatch-assets/tn47wOj.png","background-color":"firebrick",alignment:"center"}),MinimumHeight:()=>e("sqm-image",{"image-url":"https://res.cloudinary.com/saasquatch/image/upload/v1644000255/squatch-assets/oIiVdMM.jpg",minHeight:"192px"})}),Uc='@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 | |',Oc={states:{registrationFormState:{validationErrors:{}}},content:{fieldName:"field",fieldLabel:"My Custom Input",fieldType:"text",fieldOptional:!0,errorMessage:"Cannot be empty"}},Bc={states:{registrationFormState:{},error:"",loading:!1,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}},Mc=Object.freeze({__proto__:null,default:{title:"Components/Input Field",parameters:{scenario:Uc}},Default:()=>e(C,{...Oc}),CustomLabel:()=>e(C,{...Oc,content:{...Oc.content,fieldLabel:"My Label"}}),Error:()=>e(C,{...Oc,states:{...Oc.states,registrationFormState:{validationErrors:{field:"Cannot be empty"}}}}),CustomError:()=>e(C,{...Oc,content:{...Oc.content,errorMessage:"A value must be entered to continue"},states:{...Oc.states,registrationFormState:{validationErrors:{field:"Cannot be empty"}}}}),DateType:()=>e(C,{...Oc,content:{...Oc.content,fieldLabel:"Date",fieldType:"date"}}),TelType:()=>e(C,{...Oc,content:{...Oc.content,fieldLabel:"Phone Number",fieldType:"tel"}}),RegistrationField:()=>e(We,{...Bc,content:{...Bc.content,formData:e(C,{...Oc})}}),RegistrationFieldCustomLabel:()=>e(We,{...Bc,content:{...Bc.content,formData:e(C,{...Oc,content:{...Oc.content,fieldLabel:"Data"}})}})}),Gc={title:"Hooks / useInputField",parameters:{scenario:Uc}};function Vc(){const e="testestest",n=e;return Nd({programId:"sam-partner-test-2",user:{id:e,accountId:n}}),{id:e,accountId:n}}const Wc=Ys((()=>(Vc(),e("sqm-portal-register",null,e("div",{slot:"formData"},e("sqm-input-field",{"field-name":"myData"})))))),jc=Ys((()=>(Vc(),e("sqm-portal-register",null,e("div",{slot:"formData"},e("sqm-input-field",{"field-label":"Custom Label","field-name":"myData"})))))),Hc=Ys((()=>(Vc(),e("sqm-portal-register",null,e("sqm-name-fields",{slot:"formData"}),e("sqm-input-field",{slot:"formData","field-label":"Field One","field-name":"fieldOne"}),e("sqm-input-field",{slot:"formData","field-label":"Field Two","field-name":"fieldTwo"}))))),Jc=Ys((()=>(Vc(),e("sqm-portal-register",null,e("sqm-name-fields",{slot:"formData"}),e("sqm-input-field",{slot:"formData","field-label":"Optional Field","field-optional":"true","field-name":"optionalField"}))))),Yc=Ys((()=>(Vc(),e("sqm-portal-register",null,e("sqm-name-fields",{slot:"formData"}),e("sqm-input-field",{slot:"formData","field-label":"Date","field-name":"date","field-type":"date"}))))),zc=Ys((()=>(Vc(),e("sqm-portal-register",null,e("sqm-name-fields",{slot:"formData"}),e("sqm-input-field",{slot:"formData","field-label":"Phone Number","field-name":"tel","field-type":"tel"}))))),Kc=Ys((()=>(Vc(),e("sqm-portal-register",null,e("sqm-name-fields",{slot:"formData"}),e("sqm-input-field",{slot:"formData","field-label":"Phone Number","field-type":"tel"}))))),$c=Object.freeze({__proto__:null,default:Gc,FormData:Wc,FormDataWithLabel:jc,MultipleInputs:Hc,OptionalInputs:Jc,DateType:Yc,TelType:zc,MissingName:Kc}),Xc=()=>e("sqm-invoice-table-cell",{innerTemplate:"12345-67"}),Zc=()=>e("sqm-invoice-table-cell",{innerTemplate:"US$20.00"}),Qc=()=>e("sqm-invoice-table-cell",{innerTemplate:"US$15.00"}),em=()=>e("sqm-invoice-table-cell",{innerTemplate:"US$5.00"}),nm=()=>e("sqm-invoice-table-download-cell",{downloadUrl:"https://www.example.com"}),tm=()=>e("sqm-invoice-table-date-cell",{date:1710203213e3}),am=Object.freeze({__proto__:null,default:{title:"Components/Invoice Table Cell",parameters:{}},TableCell:()=>e("sqm-invoice-table-cell",{innerTemplate:"Table Cell Text"}),InvoiceNumberCell:Xc,EarningsCell:Zc,EarningsAfterTaxCell:Qc,IndirectTaxCell:em,DownloadCell:nm,EmptyCell:()=>e("sqm-sqm-invoice-table-cell",null,"-"),DateCell:tm}),rm=e("div",{slot:"loading",style:{display:"contents"}},e("sqm-table-row",null,e("sqm-table-cell",{colspan:6},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:6},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:6},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:6},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:6},e("sqm-skeleton",null)))),im=e("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"}),om={states:{hasPrev:!1,hasNext:!0,show:"rows",namespace:"sqm-invoice-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"Next"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:[e("span",null),"Date created","Invoice","Earnings","Indirect tax","Earnings after tax"],rows:[[e(nm,null),e(tm,null),e(Xc,null),e(Zc,null),e(em,null),e(Qc,null)],[e(nm,null),e(tm,null),e(Xc,null),e(Zc,null),e(em,null),e(Qc,null)],[e(nm,null),e(tm,null),e(Xc,null),e(Zc,null),e(em,null),e(Qc,null)]]}},sm=Object.freeze({__proto__:null,default:{title:"Components/Invoice Table"},SimpleInvoiceTable:()=>e(Ke,{header:"Invoices",description:"Invoice table description"},e(ze,{...om})),EmptyTable:()=>e("sqm-invoice-table",{demoData:{states:{hasPrev:!1,hasNext:!1,show:"empty",namespace:"sqm-invoice-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:im,loadingElement:rm,columns:["Name","Email","DOB"],rows:[]}}}),LoadingTable:()=>e("sqm-invoice-table",{demoData:{states:{hasPrev:!1,hasNext:!1,show:"loading",namespace:"sqm-invoice-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:im,loadingElement:rm,columns:["","Date created","Invoice","Earnings","Indirect tax","Earnings after tax"],rows:[]}}})}),lm=Ys((()=>(Nd({programId:"22999",user:{id:"07bc01a0f123d20342b89ed8296946a747f770cc8bbd239d7f142fe629f826ac",accountId:"07bc01a0f123d20342b89ed8296946a747f770cc8bbd239d7f142fe629f826ac"}}),Ne("22999"),e("sqm-invoice-table",null,e("sqm-invoice-table-download-column",null),e("sqm-invoice-table-date-column",{"column-title":"Date"}),e("sqm-invoice-table-data-column",{"column-title":"Invoice",property:"invoiceId"}),e("sqm-invoice-table-data-column",{"column-title":"Earnings",property:"earnings"}),e("sqm-invoice-table-data-column",{"column-title":"Indirect tax",property:"indirectTax"}),e("sqm-invoice-table-data-column",{"column-title":"Earnings after tax",property:"netEarnings"}))))),dm=Ys((()=>e("sqm-invoice-table",null,e("sqm-invoice-table-download-column",null),e("sqm-invoice-table-date-column",{"column-title":"Date"}),e("sqm-invoice-table-data-column",{"column-title":"Invoice",property:"invoiceId"}),e("sqm-invoice-table-data-column",{"column-title":"Earnings",property:"earnings"}),e("sqm-invoice-table-data-column",{"column-title":"Indirect tax",property:"indirectTax"}),e("sqm-invoice-table-data-column",{"column-title":"Earnings after tax",property:"netEarnings"})))),um=Object.freeze({__proto__:null,default:{title:"Hooks / useInvoiceTable"},InvoiceTable:lm,InvoiceTableDemoHook:dm}),cm=Object.freeze({__proto__:null,default:{title:"Components/Leaderboard Rank",parameters:{scenario:'@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 |'}},First:()=>e("p",null,"Your rank is ",e(Qe,{data:{rank:"1st"}})," on the leaderboard"),Second:()=>e("p",null,"Your rank is ",e(Qe,{data:{rank:"2nd"}})," on the leaderboard"),Unranked:()=>e("p",null,"You are currently ",e(Qe,{data:{rank:"unranked"}}),", refer a friend!")}),mm=[{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}],pm=[{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}],hm={usersheading:"User",statsheading:"Referrals",rankheading:"Rank",anonymousUser:"Anonymous User",viewingUserText:"You",rankSuffix:"{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}"};e("a",null,"Support");const gm={empty:e("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"})},fm=Object.freeze({__proto__:null,default:{title:"Components/Leaderboard",parameters:{scenario:'@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'}},Empty:()=>{const n={states:{loading:!1,hasLeaders:!1,styles:{...hm}},data:{rankType:"rowNumber",leaderboard:[],rowNumber:10,viewerRank:{firstName:"Kutay",lastInitial:"C",textValue:"8",rowNumber:11,rank:23}},elements:{...gm}};return e(S,{...n})},Loading:()=>{const n={states:{loading:!0,hasLeaders:!1,styles:{...hm}},data:{rankType:"rowNumber",rowNumber:10,leaderboard:[]},elements:{...gm}};return e(S,{...n})},Essentials:()=>{const n={states:{loading:!1,isEssentials:!0,hasLeaders:!1,styles:{...hm}},data:{rankType:"rowNumber",leaderboard:[],rowNumber:10,viewerRank:{firstName:"Kutay",lastInitial:"C",textValue:"8",rowNumber:11,rank:23}},elements:{...gm}};return e(S,{...n})},One:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm}},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:{...gm}};return e(S,{...n})},Five:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm}},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:{...gm}};return e(S,{...n})},ReferralLeaderboard:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm,rankheading:"Rank",usersheading:"User",statsheading:"Referrals",showRank:!1}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:{...gm}};return e(S,{...n})},ReferralLeaderboardWithCustomStyles:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm,rankheading:"Rank",usersheading:"User",statsheading:"Referrals",showRank:!0,textColor:"white",borderColor:"white",background:"slateblue",borderRadius:18,viewingUserHighlightColor:"yellow",viewingUserHighlightTextColor:"slateblue"}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:{...gm}};return e(S,{...n})},ReferralLeaderboardWithMaxWidth:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm,rankheading:"Rank",usersheading:"User",statsheading:"Referrals",showRank:!1,maxWidth:"300px"}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:{...gm}};return e(S,{...n})},PointsLeaderboard:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm,rankheading:"Rank",usersheading:"User",statsheading:"Points",showRank:!1}},data:{rankType:"rowNumber",leaderboard:pm,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82 Points",rank:1,rowNumber:1}},elements:{...gm}};return e(S,{...n})},TenWithRank:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm,showRank:!0}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1}},elements:{...gm}};return e(S,{...n})},ViewerOutside:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm,showRank:!0}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:{firstName:"Kutay",lastInitial:"C",textValue:"8",rowNumber:11,rank:24}},elements:{...gm}};return e(S,{...n})},ViewerAnonymous:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm,showRank:!0}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:null},elements:{...gm}};return e(S,{...n})},HideNamesWithViewerOutside:()=>{const n={states:{loading:!1,hasLeaders:!0,styles:{...hm,showRank:!0,hideNames:!0}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:{textValue:"8",rowNumber:11,rank:42}},elements:{...gm}};return e(S,{...n})},HideViewer:()=>{const n={states:{loading:!1,hasLeaders:!0,rowNumber:10,styles:{...hm,showRank:!0,hideViewer:!0}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rowNumber:1,rank:1}},elements:{...gm}};return e(S,{...n})},HideNames:()=>{const n={states:{loading:!1,hasLeaders:!0,rowNumber:10,styles:{...hm,showRank:!0,hideNames:!0}},data:{rankType:"rowNumber",leaderboard:mm,rowNumber:10,viewerRank:{firstName:"Viktor",lastInitial:"V",textValue:"82",rowNumber:1,rank:1}},elements:{...gm}};return e(S,{...n})},LeaderboardWithNoNamesAndGraphic:()=>e("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"center",width:"100%",gap:"50px"}},e("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"10px",maxWidth:"30%"}},e("sqm-image",{width:"70%",alignment:"center",imageUrl:"https://res.cloudinary.com/saasquatch-staging/image/upload/v1729728469/Leaderboard_image_z87lsm.png"}),e("h2",{style:{margin:"auto"}}," Top Performers"),e("p",{style:{margin:"0"}},"The leaderboard highlights the top performers in real-time. Stay motivated, stay competitive!")),e("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"},e("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"})))});function bm(){const e="testestest";Nd({programId:"sam-partner-test-2",user:{id:e,accountId:e}})}const ym=n=>{const t={"leaderboard-type":"topConvertedReferrers",showRank:!0,"rank-type":"rowNumber",usersheading:"Top Referrers",statsheading:"Completed Referrals",interval:"",...n},{leaderboardType:a,rankType:r}=t;return e("div",{style:{marginBottom:"20px"}},e("sqm-divided-layout",{direction:"row"},e("div",{style:{padding:"10px"}},e("b",null,"Leaderboard Type"),e("pre",null,a)),e("div",{style:{padding:"10px"}},e("b",null,"Rank Type"),e("pre",null,r))),e("sqm-leaderboard",{...t},e("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"})),e("hr",null))},wm=Ys((()=>(bm(),[ym({}),ym({rankType:"rank"}),ym({rankType:"denseRank"})]))),vm=Ys((()=>(bm(),[ym({leaderboardType:"topStartedReferrers",statsheading:"New Referrals"}),ym({leaderboardType:"topStartedReferrers",rankType:"rank",statsheading:"New Referrals"}),ym({leaderboardType:"topStartedReferrers",rankType:"denseRank",statsheading:"New Referrals"})]))),xm=Ys((()=>(bm(),[ym({leaderboardType:"topPointEarners",statsheading:"Points",usersheading:"Top Earners"}),ym({leaderboardType:"topPointEarners",rankType:"rank",statsheading:"Points",usersheading:"Top Earners"}),ym({leaderboardType:"topPointEarners",rankType:"denseRank",statsheading:"Points",usersheading:"Top Earners"})]))),Tm=Ys((()=>(bm(),[ym({leaderboardType:"topPointEarners",rankType:"rank",statsheading:"Points",usersheading:"Top Earners",programId:""}),ym({leaderboardType:"topStartedReferrers",rankType:"rank",statsheading:"Referrals",programId:""}),ym({leaderboardType:"topConvertedReferrers",rankType:"rank",statsheading:"Referrals",programId:""})]))),Sm=Ys((()=>(bm(),[ym({leaderboardType:"topStartedReferrers",maxRows:5,statsheading:"Referrals"})]))),Em=Ys((()=>(function(){const e="sam+klip@saasquat.ch";Nd({programId:"klip-referral-program",user:{id:e,accountId:e},mocks:{Query:()=>({userLeaderboard:()=>({rows:[]})})}})}(),[ym({leaderboardType:"topStartedReferrers",statsheading:"New Referrals",interval:"2021-02-11T08:00:00.000Z/2021-02-13T08:00:00.000Z"}),ym({leaderboardType:"topStartedReferrers",rankType:"rank",statsheading:"New Referrals",interval:"2021-02-11T08:00:00.000Z/2021-02-13T08:00:00.000Z"}),ym({leaderboardType:"topStartedReferrers",rankType:"denseRank",statsheading:"New Referrals",interval:"2021-02-11T08:00:00.000Z/2021-02-13T08:00:00.000Z"})]))),Cm=Ys((()=>e("sqm-leaderboard",{usersheading:"Referrer",statsheading:"Referrals","rank-type":"rank","leaderboard-type":"topStartedReferrers",rankheading:"Rank","show-rank":"true"},e("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"})))),Rm=Ys((()=>e("sqm-leaderboard",{usersheading:"Referrer",statsheading:"Referrals","rank-type":"rank","leaderboard-type":"topStartedReferrers",rankheading:"Rank","show-rank":"true",demoData:{data:{rankType:"rank",leaderboard:[]},states:{loading:!1,hasLeaders:!1,styles:{usersheading:"Top referrers",statsheading:"New customers",rankheading:"Rank",anonymousUser:"Anonymous User",showRank:!0}}}},e("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"})))),Dm=Object.freeze({__proto__:null,default:{title:"Hooks / useLeaderboard"},TopConvertedReferrers:wm,TopStartedReferrers:vm,topPointEarners:xm,globalLeaderboards:Tm,FiveResults:Sm,EmptyLeaderboard:Em,DemoHook:Cm,DemoHookEmpty:Rm}),Im={link:"https://example.com",openInNewTab:!1,buttonText:"Button Text"},Am=Object.freeze({__proto__:null,default:{title:"Components/Link Button",parameters:{scenario:'@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 |'}},Default:()=>e("sqm-link-button",{...Im}),OpenInNewTab:()=>e("sqm-link-button",{...{...Im,openInNewTab:!0}})}),qm={filledInEmailText:"Currently showing referral data for noah.clarke@saasquatch.com",onSwitchClick:()=>console.log("clicked"),switchUserText:"not you?",loading:!1,emailErrorText:"Error fetching email"},km=Object.freeze({__proto__:null,default:{title:"Components/Logout Current User",parameters:{scenario:'@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'}},Default:()=>e(en,{...qm})}),Pm=Object.freeze({__proto__:null,default:{title:"Components/Marketing Emails Checkbox",parameters:{scenario:'@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'}},Default:()=>e("sqm-marketing-emails-checkbox",null)}),Nm={states:{optional:!1,registrationFormState:{validationErrors:void 0},content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}},Fm={states:{optional:!1,registrationFormState:{validationErrors:{firstName:"Cannot be empty",lastName:"Cannot be empty"}},content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}},Lm=Object.freeze({__proto__:null,default:{title:"Components/Name Fields",parameters:{scenario:'@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'}},NameFields:()=>e(R,{...Nm}),NameFieldsWithErrors:()=>e(R,{...Fm})}),_m=Object.freeze({__proto__:null,default:{title:"Components/Sidebar Item"},InactiveItem:()=>e(se,{states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}}),ActiveItem:()=>e(se,{states:{active:!0},data:{label:"Dashboard",icon:"house",path:"/"}})}),Um=Object.freeze({__proto__:null,default:{title:"Components/Navigation Sidebar"},DefaultNavigationSidebar:()=>e(oe,null,e(se,{states:{active:!1},data:{label:"Dashboard",icon:"house",path:"/"}}),e(se,{states:{active:!0},data:{label:"Activity",icon:"bar-chart",path:"/"}}))}),Om=Object.freeze({__proto__:null,default:{title:"Components/Link Button"},Default:()=>e("sqm-pagination",null)}),Bm=Object.freeze({__proto__:null,default:{title:"Components/Microsite Password Field"},Start:()=>e("sqm-password-field",{demoData:{initValue:"",states:{enableValidation:!0,registrationFormState:{validationErrors:{}},content:{fieldLabel:"Password"}}}}),EmptyError:()=>e("sqm-password-field",{demoData:{initValue:"",states:{enableValidation:!0,registrationFormState:{validationErrors:{password:"Cannot be empty"}},content:{fieldLabel:"Password"}}}}),ValidationError:()=>e("sqm-password-field",{demoData:{initValue:"asdf",states:{enableValidation:!0,registrationFormState:{validationErrors:{password:"Incomplete"}},content:{fieldLabel:"Password"}}}})}),Mm={payoutSettingsComplete:!0},Gm=Object.freeze({__proto__:null,default:{title:"Components/Payout Scroll Button"},CompletedTaxForm:()=>e("sqm-payout-button-scroll",{demoData:{states:{...Mm,payoutSettingsComplete:!0}}}),CompletedTaxFormWithStatsContainer:()=>e("sqm-portal-container",{display:"flex",maxWidth:"100%",minWidth:"100%","justify-content":"space-between",flexWrap:"nowrap"},e("sqm-portal-container",{display:"flex","max-width":"fit-content"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/referralsCount"},e("p",null,"Referrals")),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/payoutBalance"},e("p",null,"Cash Balance"))),e("sqm-payout-button-scroll",{demoData:{states:{...Mm,payoutSettingsComplete:!0}}}))}),Vm={states:{success:!1,loading:!1,submitDisabled:!1,formState:{marketingEmailOptIn:!1,errors:null,error:""},user:{id:"zach",accountId:"zach",marketingEmailOptIn:!1},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:e=>console.log(e),setChecked:e=>console.log(e)}},Wm=Object.freeze({__proto__:null,default:{title:"Components/Change Marketing Emails Status"},Default:()=>e("sqm-portal-change-marketing",null),Loading:()=>e(D,{...Vm,states:{...Vm.states,loading:!0}}),Error:()=>e(D,{...Vm,states:{...Vm.states,formState:{...Vm.states.formState,errors:{error:!0},error:"An error string"}}}),Success:()=>e(D,{...Vm,states:{...Vm.states,success:!0}})}),jm={states:{open:!1,loading:!1,success:!1,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:e=>console.log(e),submit:e=>console.log("Submit",e)}},Hm={states:{open:!0,loading:!1,success:!1,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:e=>console.log(e),submit:e=>console.log("Submit",e)}},Jm={states:{open:!0,loading:!1,success:!1,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:e=>console.log(e),submit:e=>console.log("Submit",e)}},Ym={states:{open:!0,loading:!1,success:!1,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:e=>console.log(e),submit:e=>console.log("Submit",e)}},zm={states:{open:!0,loading:!0,success:!1,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:e=>console.log(e),submit:e=>console.log("Submit",e)}},Km={states:{open:!0,loading:!1,success:!0,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:e=>console.log(e),submit:e=>console.log("Submit",e)}},$m=Object.freeze({__proto__:null,default:{title:"Components/Change Password",parameters:{scenario:'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'}},Default:()=>e(p,{...jm}),Open:()=>e(p,{...Hm}),Error:()=>e(p,{...Jm}),PaswordError:()=>e(p,{...Ym}),Loading:()=>e(p,{...zm}),Success:()=>e(p,{...Km})}),Xm=Object.freeze({__proto__:null,default:{title:"Components/Microsite Container",parameters:{scenario:'@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'}},TooWideColumn:()=>e("div",{style:{width:"200px",border:"1px dashed grey"}},e("sqm-portal-container",{gap:"xxx-large"},e("div",{style:{background:"grey",border:"1px solid red"}},"Small"),e("div",{style:{background:"lightblue",width:"1000px"}},"Too wide, content goes off the side of the page for ever and is hidden."))),TooWideRow:()=>e("div",{style:{width:"500px",border:"1px dashed grey"}},e("sqm-portal-container",{gap:"xxx-large",direction:"row","min-width":"160px"},e("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),e("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),e("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook"))),TooWideSmallGap:()=>e("div",{style:{width:"500px",border:"1px dashed grey"}},e("sqm-portal-container",{gap:"small",direction:"row","min-width":"160px"},e("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),e("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),e("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook"))),TooWidePadding:()=>e("div",{style:{width:"500px",border:"1px dashed grey"}},e("sqm-portal-container",{padding:"xxx-large",gap:"xxx-large",direction:"row","min-width":"160px"},e("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),e("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),e("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook"))),TooWideDisplayFlex:()=>e("div",{style:{width:"500px",border:"1px dashed grey"}},e("sqm-portal-container",{gap:"xxx-large",direction:"row",display:"flex","min-width":"160px"},e("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),e("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),e("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook"))),HalfWidth:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{gap:"xxx-large",direction:"row",minWidth:"160px",maxWidth:"50%"},e("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),e("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),e("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook"))),HalfWidthCenter:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{gap:"xxx-large",direction:"row",minWidth:"160px",maxWidth:"50%",center:!0},e("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),e("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),e("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook"))),FullWidth:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{gap:"xxx-large",direction:"row",maxWidth:"100%"},e("sqm-share-button",{icon:"envelope",medium:"email",size:"medium",class:"hydrated"},"Email a friend"),e("sqm-share-button",{medium:"twitter",size:"medium",class:"hydrated"},"Post about us on X"),e("sqm-share-button",{medium:"facebook",size:"medium",class:"hydrated"},"Share on Facebook"))),SpaceBetween:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{center:!0,direction:"row",display:"flex","justify-content":"space-between"},e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),e("sqm-scroll",{"scroll-id":"tab-2",outline:!0,"button-type":"primary","button-text":"Redeem your rewards",mobile:!0}))),SpaceAround:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{center:!0,direction:"row",display:"flex","justify-content":"space-around"},e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),e("sqm-scroll",{"scroll-id":"tab-2",outline:!0,"button-type":"primary","button-text":"Redeem your rewards",mobile:!0}))),SpaceEvenly:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{center:!0,direction:"row",display:"flex","justify-content":"space-evenly"},e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),e("sqm-scroll",{"scroll-id":"tab-2",outline:!0,"button-type":"primary","button-text":"Redeem your rewards",mobile:!0}))),ResponsiveBox:()=>e("div",{style:{width:"100%",maxWidth:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{center:!0,direction:"row",display:"flex","justify-content":"space-between","flex-wrap":"nowrap"},e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),e("sqm-scroll",{"scroll-id":"tab-2",outline:!0,"button-type":"primary","button-text":"Redeem your rewards",mobile:!0}))),Start:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{center:!0,direction:"row",display:"flex","justify-content":"start"},e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),e("sqm-scroll",{"scroll-id":"tab-2",outline:!0,"button-type":"primary","button-text":"Redeem your rewards",mobile:!0}))),Center:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{center:!0,direction:"row",display:"flex","justify-content":"center"},e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),e("sqm-scroll",{"scroll-id":"tab-2",outline:!0,"button-type":"primary","button-text":"Redeem your rewards",mobile:!0}))),End:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{center:!0,direction:"row",display:"flex","justify-content":"end"},e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),e("sqm-scroll",{"scroll-id":"tab-2",outline:!0,"button-type":"primary","button-text":"Redeem your rewards",mobile:!0}))),BackgroundColor:()=>e("div",{style:{width:"1000px",border:"1px dashed grey"}},e("sqm-portal-container",{center:!0,direction:"row",display:"flex","justify-content":"start","background-color":"red"},e("sqm-stat-container",{space:"xxx-large",display:"flex"},e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardsRedeemed/CREDIT/global"},e("sqm-text",null,e("p",null,"Rewards Redeemed"))),e("sqm-big-stat",{"flex-reverse":"true",alignment:"left","stat-type":"/rewardBalance/CREDIT/POINT/value/global"},e("sqm-text",null,e("p",null,"Points Balance")))),e("sqm-scroll",{"scroll-id":"tab-2",outline:!0,"button-type":"primary","button-text":"Redeem your rewards",mobile:!0})))}),Zm={submit:async e=>await e},Qm={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}"},ep={error:"",loading:!1,success:!1,isVerified:!1,loadingVerification:!1,countdown:10},np={states:ep,callbacks:Zm,content:Qm},tp={states:{...ep,error:"Something went wrong. Please try again."},callbacks:Zm,content:Qm},ap={states:{...ep,loading:!0},callbacks:Zm,content:Qm},rp={states:{...ep,success:!0,isVerified:!0},callbacks:Zm,content:Qm},ip={states:{...ep,loadingVerification:!0},callbacks:Zm,content:Qm},op=Object.freeze({__proto__:null,default:{title:"Components/Microsite Email Verification",parameters:{scenario:'@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'}},Default:()=>e(nn,{...np}),EmailVerificationWithError:()=>e(nn,{...tp}),EmailVerificationLoading:()=>e(nn,{...ap}),EmailVerificationCheckingVerification:()=>e(nn,{...ip}),EmailVerificationSuccess:()=>e(nn,{...rp})}),sp={supportEmail:"support@example.com",supportText:"For program support, contact {email}",hidePoweredBy:!1,poweredByLink:"https://impact.com/advocate/",paddingTop:"large",paddingRight:"large",paddingBottom:"large",paddingLeft:"large"},lp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Footer",parameters:{scenario:'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'}},DefaultFooter:()=>e(I,{...sp}),FooterWithTerms:()=>e(I,{...sp,termsLink:"https://example.com",termsText:"Terms and Conditions"}),FooterWithFAQ:()=>e(I,{...sp,faqLink:"https://example.com",faqText:"FAQ"}),FooterWithTermsAndFAQ:()=>e(I,{...sp,termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ"}),FooterNoPoweredBy:()=>e(I,{...sp,termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ",hidePoweredBy:!0}),FooterNoSupportText:()=>e(I,{...sp,termsLink:"https://example.com",termsText:"Terms and Conditions",faqLink:"https://example.com",faqText:"FAQ",hideSupportText:!0})}),dp={states:{error:"",loading:!1,success:!1,loginPath:"/login"},callbacks:{submit:async e=>await e},content:{loginText:"Login",messageSlot:"Enter your email below to receive a password reset link."}},up={states:{error:"Something went wrong. Please try again.",loading:!1,success:!1,loginPath:"/login"},callbacks:{submit:async e=>await e},content:{messageSlot:"Enter your email below to receive a password reset link.",loginText:"Login"}},cp={states:{error:"",loading:!0,success:!1,loginPath:"/login"},callbacks:{submit:async e=>await e},content:{loginText:"Login",messageSlot:"Enter your email below to receive a password reset link."}},mp={states:{error:"",loading:!1,success:!0,loginPath:"/login"},callbacks:{submit:async e=>await e},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."}},pp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Forgot Password",parameters:{scenario:'@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 |'}},Default:()=>e(je,{...dp}),DemoDataTest:()=>e("sqm-portal-forgot-password",null),ForgotPasswordWithError:()=>e(je,{...up}),ForgotPasswordLoading:()=>e(je,{...cp}),ForgotPasswordSuccess:()=>e(je,{...mp})}),hp={data:{footer:e("span",null,"example@example.com"),header:e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Microsite Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the microsite"))},callbacks:{rerender:()=>{}},ref:{current:void 0}},gp=Ys((()=>{var n;return function(){const e="worried-camera@uexwltgh.mailosaur.net",n=e;window.SquatchAndroid=!0,Nd({programId:"a-referral-program",widgetIdent:{token:_e({user:{id:e,accountId:n}}),userId:e,accountId:n}})}(),e("div",null,e("sqm-portal-frame",null,e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal")),e("a",{slot:"footer",class:"FooterEmail",href:"mailto:referrals@servicetitan.com"},"referrals@servicetitan.com"),e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")),e("h1",null,"Something")),e("p",null,"Current path:"," ",e("code",null,e("strong",null,null===(n=Ge())||void 0===n?void 0:n.pathname))),e("button",{onClick:qe.back},"Go Back"))})),fp=Ys((()=>{var n;return window.SquatchAndroid=!0,Nd({programId:"a-referral-program"}),e("div",null,e("sqm-portal-frame",null,e("div",{slot:"header",style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal")),e("span",{slot:"footer"},"sample@example.com"),e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")),e("h1",null,"Something")),e("p",null,"Current path:"," ",e("code",null,e("strong",null,null===(n=Ge())||void 0===n?void 0:n.pathname))),e("button",{onClick:qe.back},"Go Back"))})),bp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Frame"},FrameWithMenu:()=>{const n={...hp};return e(A,{...n},e("sqm-navigation-menu",{"menu-label":"Menu"},e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/widget"},"Dashboard"),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/editProfile"},"Edit Profile"),e("sl-menu-divider",null),e("sl-menu-item",{exportparts:"base: menuitem-base",value:"/logout"},"Logout")))},FrameWithoutMenu:()=>{const n={...hp};return e(A,{...n})},FullStackFrame:gp,FullStackFrameLoggedOut:fp}),yp={states:{error:"",loading:!1,confirmPassword:!1,hideInputs:!1,loginPath:"/login",hidePasswords:!0,registrationFormState:{initialData:{email:"testuser@example.com"}}},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",passwordField:null,formData:e("div",null," ",e(R,{states:{optional:!1,registrationFormState:{validationErrors:void 0,disabled:!0,initialData:{firstName:"Test",lastName:"User"}},content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}}),e("sl-input",{style:{marginBottom:"var(--sl-spacing-x-large)"},exportparts:"label: input-label, base: input-base",label:"Slotted Input",required:!0}),e("sl-input",{exportparts:"label: input-label, base: input-base",label:"Slotted Input 2",required:!0}))}},wp={...yp,states:{error:"Something went wrong. Please try again.",loading:!1,confirmPassword:!1,hideInputs:!1,loginPath:"/login",hidePasswords:!0,registrationFormState:{initialData:{email:"testuser@example.com"}}}},vp={...yp,states:{error:"",loading:!0,hideInputs:!1,loginPath:"/login",confirmPassword:!1,hidePasswords:!0,registrationFormState:{initialData:{email:"testuser@example.com"}}}},xp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Google Register"},Default:()=>e("sqm-portal-google-registration-form",null),RegisterWithError:()=>e(tn,{...wp}),RegisterLoading:()=>e(tn,{...vp}),TermsAndConditions:()=>e(tn,{...yp,content:{...yp.content,terms:e("p",null,"By signing up you agree to the"," ",e("a",{href:"https://example.com",target:"_blank"},"Terms and Conditions"))}})}),Tp={error:"",loading:!1,forgotPasswordPath:"/forgotPassword",registerPath:"/register",showLoginForm:"manual"},Sp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Google Login"},Default:()=>e("sqm-portal-google-login",null),WithError:()=>e("sqm-portal-google-login",{demoData:{states:{...Tp,error:"This is an error message"}}}),Loading:()=>e("sqm-portal-google-login",{demoData:{states:{...Tp,loading:!0}}})}),Ep={states:{error:"",loading:!1,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{googleSubmit:async()=>{},submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},Cp={states:{error:"Something went wrong. Please try again.",loading:!1,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{googleSubmit:async()=>{},submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},Rp={states:{error:"",loading:!0,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{googleSubmit:async()=>{},submit:async e=>await e},content:{pageLabel:"Sign in to your account"}},Dp={...Ep,content:{secondaryButton:e("span",null,"Don't have an account?"," ",e("sl-button",{style:{width:"50px"},size:"large",type:"text"},"Register")),googleButton:e("sl-button",null,"Sign in with Google")}},Ip=Object.freeze({__proto__:null,default:{title:"Components/Microsite Login"},Default:()=>e("sqm-portal-login",{demoData:{...Ep}}),Text:()=>e(He,{...Ep}),IsGoogle:()=>e("sqm-portal-login",{demoData:{...Dp}}),LoginWithError:()=>e("sqm-portal-login",{demoData:{...Cp}}),LoginLoading:()=>e("sqm-portal-login",{demoData:{...Rp}})}),Ap={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!0,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:e=>console.log(e),onChange:e=>console.log(e)}},qp={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!1,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:e=>console.log(e),onChange:e=>console.log(e)}},kp={states:{success:!1,loading:!0,submitDisabled:!1,showCountry:!0,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:e=>console.log(e),onChange:e=>console.log(e)}},Pp={states:{success:!1,loading:!1,submitDisabled:!0,showCountry:!0,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:e=>console.log(e),onChange:e=>console.log(e)}},Np={states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!0,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:e=>console.log(e),onChange:e=>console.log(e)}},Fp={states:{success:!0,loading:!1,submitDisabled:!1,showCountry:!0,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:e=>console.log(e),onChange:e=>console.log(e)}},Lp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Profile"},Default:()=>e(ue,{...Ap}),DefaultNoCountry:()=>e(ue,{...qp}),Loading:()=>e(ue,{...kp}),Disabled:()=>e(ue,{...Pp}),Error:()=>e(ue,{...Np}),Success:()=>e(ue,{...Fp})}),_p={states:{registrationFormState:{},error:"",loading:!1,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}},Up={states:{error:"Something went wrong. Please try again.",registrationFormState:{},loading:!1,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}},Op={states:{registrationFormState:{},error:"",loading:!0,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address"}},Bp={states:{registrationFormState:{},error:"",loading:!1,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",requiredFieldErrorMessage:"Cannot be empty",invalidEmailErrorMessage:"Must be a valid email address",formData:e("div",null,e("sl-input",{style:{marginBottom:"var(--sl-spacing-x-large)"},exportparts:"label: input-label, base: input-base",label:"Slotted Input",required:!0}),e("sl-input",{exportparts:"label: input-label, base: input-base",label:"Slotted Input 2",required:!0}))}},Mp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Register"},Default:()=>e(We,{..._p}),RegisterWithError:()=>e(We,{...Up}),RegisterLoading:()=>e(We,{...Op}),FieldsHidden:()=>e("sqm-portal-register",{demoData:{states:{registrationFormState:{},error:"",loading:!0,confirmPassword:!0,hideInputs:!0,loginPath:"/login"}}}),SlottedInputs:()=>e(We,{...Bp}),TermsAndConditions:()=>e(We,{..._p,content:{..._p.content,terms:e("p",null,"By signing up you agree to the"," ",e("a",{href:"https://example.com",target:"_blank"},"Terms and Conditions"))}})}),Gp={states:{error:"",loading:!1,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},Vp={states:{error:"Something went wrong. Please try again.",loading:!1,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},Wp={states:{error:"",loading:!0,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password"}},jp={states:{error:"",loading:!1,confirmPassword:!0,hideInputs:!1,loginPath:"/login"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{}},refs:{formRef:{}},content:{pageLabel:"Register",confirmPasswordLabel:"Confirm Password",formData:e("div",null,e("sl-input",{style:{marginBottom:"var(--sl-spacing-x-large)"},exportparts:"label: input-label, base: input-base",label:"Slotted Input",required:!0}),e("sl-input",{exportparts:"label: input-label, base: input-base",label:"Slotted Input 2",required:!0}))}},Hp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Portal Register"},Default:()=>e(tn,{...Gp}),RegisterWithError:()=>e(tn,{...Vp}),RegisterLoading:()=>e(tn,{...Wp}),FieldsHidden:()=>e("sqm-portal-register",{demoData:{states:{error:"",loading:!0,registrationFormState:{},confirmPassword:!0,hideInputs:!0,loginPath:"/login"}}}),SlottedInputs:()=>e(tn,{...jp}),RegisterWithMarketingEmailsCheckbox:()=>e(tn,{...Gp,content:{...Gp.content,emailOptIn:e("sqm-checkbox-field",{checkboxLabel:"I would like to receive marketing and promotional emails for this referral program"})}}),TermsAndConditions:()=>e(tn,{...Gp,content:{...Gp.content,terms:e("p",null,"By signing up you agree to the"," ",e("a",{href:"https://example.com",target:"_blank"},"Terms and Conditions"))}})}),Jp={states:{error:"",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},Yp={states:{error:"",loading:!1,reset:!1,confirmPassword:!1,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},zp={states:{error:"Something went wrong. Please try again.",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},Kp={states:{error:"",loading:!0,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},$p={states:{error:"",loading:!1,reset:!0,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},Xp={states:{error:"",loading:!1,reset:!1,confirmPassword:!0,oobCodeValidating:!1,oobCodeValid:!1,content:{passwordResetHeader:"Password reset",resetPasswordHeader:"Reset your password",continueButtonText:"Continue",resetPasswordButtonText:"Reset Password",confirmPasswordFieldLabel:"Confirm Password",passwordFieldLabel:"New Password"}},callbacks:{submit:async e=>await e,gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")}},Zp=Object.freeze({__proto__:null,default:{title:"Components/Microsite Reset Password",parameters:{scenario:'@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 |'}},Default:()=>e(an,{...Jp}),DefaultWithoutConfirmField:()=>e(an,{...Yp}),ResetPasswordWithError:()=>e(an,{...zp}),ResetPasswordLoading:()=>e(an,{...Kp}),ResetPasswordSuccess:()=>e(an,{...$p}),CodeValidating:()=>e(an,{...Xp})}),Qp={states:{error:"Something went wrong. Please try again.",loading:!1,success:!1},data:{oobCode:"abc123"},callbacks:{gotoNextPage:()=>console.log("next page"),failed:()=>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."}},eh={states:{error:"",loading:!1,success:!0},data:{oobCode:"abc123"},callbacks:{gotoNextPage:()=>console.log("next page"),failed:()=>console.log("failed")},content:{}},nh=Object.freeze({__proto__:null,default:{title:"Components/Microsite Verify Email",parameters:{scenario:'@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'}},EmailVerificationWithError:()=>e(Je,{...Qp}),EmailVerificationSuccess:()=>e(Je,{...eh})}),th=Object.freeze({__proto__:null,default:{title:"Components/Program Explainer Step",parameters:{scenario:'@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'}},ProgramExplainerStep:()=>e("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"}),ProgramExplainerStepCustom:()=>e("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"})}),ah=Object.freeze({__proto__:null,default:{title:"Components/Program Explainer",parameters:{scenario:'@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'}},OneStep:()=>e("sqm-program-explainer",{header:"How it works"},e("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"})),TwoSteps:()=>e("sqm-program-explainer",{header:"How it works"},e("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"}),e("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"})),ThreeSteps:()=>e("sqm-program-explainer",{header:"How it works"},e("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"}),e("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"}),e("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"})),Custom:()=>e("sqm-program-explainer",{header:"How it works","text-color":"#fffc4b","background-color":"#ff7f7f"},e("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"}),e("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"}),e("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"})),ProgramExplainerGeneric:()=>e("sqm-program-explainer",{header:"Anything and everything can be passed to this component!","text-color":"#eee","background-color":"#333"},e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333"}},"PLACEHOLDER"),e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333"}},"PLACEHOLDER"),e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333"}},"PLACEHOLDER"))}),rh=Ys((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"referral-program"},"Referral Program")))),ih=Ys((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"referral-program"},"Referral Program"),e("sl-menu-item",{value:"partner-program"},"Partner Program")))),oh=Ys((()=>e("sqm-program-menu",null,e("sl-menu-item",{value:"program1"},"Program 1"),e("sl-menu-item",{value:"program2"},"Program 2"),e("sl-menu-item",{value:"program3"},"Program 3"),e("sl-menu-item",{value:"program4"},"Program 4"),e("sl-menu-item",{value:"program5"},"Program 5")))),sh=Ys((()=>e("div",null,e("sqb-program-section",{"program-id":"Vacay-referral"},e("sqm-program-menu",null,e("sl-menu-item",{value:"Vacay-referral"},"Vacay-referral"),e("sl-menu-item",{value:"vacay-affiliates"},"vacay-affiliates")),e("sqb-program-switch",null,e("template",{"program-id":"Vacay-referral"},e("sqb-widget",{"widget-type":"p/Vacay-referral/w/referrerWidget",demoData:{data:{html:zs}}})),e("template",{"program-id":"vacay-affiliates"},e("sqb-widget",{"widget-type":"p/vacay-affiliates/w/referrerWidget",demoData:{data:{html:zs}}}))))))),lh=Object.freeze({__proto__:null,default:{title:"Components/Program Menu"},OneProgram:rh,TwoProgram:ih,FiveProgram:oh,ProgramMenuWithSwitch:sh}),dh={hideTitle:!1,loading:!1,alignment:"center",error:!1,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:async()=>{console.log("Download QR Code clicked")},createPrintable:async()=>{console.log("Print QR Code clicked")},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"},uh=Object.freeze({__proto__:null,default:{title:"Components/QR Code"},Default:()=>e(rn,{...dh}),HideTitle:()=>e(rn,{...dh,hideTitle:!0}),LeftAlign:()=>e(rn,{...dh,alignment:"left"}),CenterAlign:()=>e(rn,{...dh,alignment:"center"}),RightAlign:()=>e(rn,{...dh,alignment:"right"}),Loading:()=>e(rn,{...dh,loading:!0}),Error:()=>e(rn,{...dh,error:!0}),DownloadError:()=>e(rn,{...dh,error:!0})}),ch=ie({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)"}}),mh=ch.toString(),ph=({title:n,icon:t,description:a,selected:r})=>e("div",{part:"sqm-base",class:ch.classes.Container,style:{border:r?"var(--sqm-border-thickness) solid var(--sqm-primary-color)":"var(--sqm-border-thickness) solid var(--sqm-border-color)"}},e("style",{type:"text/css"},mh,"\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 "),e("sl-checkbox",{checked:r}),e("div",{part:"sqm-title-container",class:ch.classes.TitleContainer},e("sl-icon",{name:t}),e("p",null,n)),e("p",null,a)),hh={selected:!1,title:"Card Title",description:"Description text goes here",icon:"apple"},gh=Object.freeze({__proto__:null,default:{title:"Components/Radio Card"},DefaultView:()=>e(ph,{...hh}),Selected:()=>e(ph,{...hh,selected:!0})}),fh=n=>e("sqm-portal-container",{gap:"large",slot:n},e("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"})),bh=n=>e("sqm-portal-container",{gap:"large",slot:n},e("sqm-text",null,"Choose how you want to share:"),e("sqm-text",null,e("sub",null,"Your unique referral link:"),e("sqm-share-code",null)),e("sqm-portal-container",{gap:"x-small"},e("sqm-share-button",{medium:"email"},"Share via email"),e("sqm-share-button",{medium:"facebook"},"Share on Facebook"),e("sqm-share-button",{medium:"twitter"},"Post about us on X"))),yh=(n,t)=>e("sqm-timeline",{slot:n,icon:"circle"},t>0&&e("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),t>1&&e("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),t>2&&e("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"}),t>3&&e("sqm-timeline-entry",{reward:"$1000",unit:"visa giftcard",desc:"Your friend purchases Klip Team"})),wh=Object.freeze({__proto__:null,default:{title:"Components/Referral Card",parameters:{scenario:'@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 |'}},ImageAndShareButtons:()=>e("sqm-referral-card",null,fh("left"),bh("right")),LimitWidth:()=>e("sqm-referral-card",{limitWidth:!0},fh("left"),bh("right")),TimelineAndShareButtons:()=>e("sqm-referral-card",null,yh("left",3),bh("right")),OneTimeUsePromoCodes:()=>e("sqm-referral-card",null,yh("left",4),e("sqm-portal-container",{gap:"large",slot:"right"},e("sqm-text",null,"Choose how you want to share:"),e("sqm-text",null,e("sub",null,"Share with your friends:"),e("sqm-share-code",null),e("sqm-share-link",null)),e("sqm-portal-container",{gap:"x-small"},e("sqm-share-button",{medium:"email"},"Share via email"),e("sqm-share-button",{medium:"facebook"},"Share on Facebook"),e("sqm-share-button",{medium:"twitter"},"Post about us on X"),e("sqm-portal-container",{gap:"x-small"},e("span",{style:{textAlign:"center",color:"var(--sl-color-gray-500)"}},"You have copied this code before"),e("sqm-pagination",null))))),StartAlignment:()=>e("sqm-referral-card",{"vertical-alignment":"start"},yh("left",4),bh("right")),CenterAlignment:()=>e("sqm-referral-card",{"vertical-alignment":"center"},yh("left",4),bh("right")),EndAlignment:()=>e("sqm-referral-card",{"vertical-alignment":"end"},yh("left",4),bh("right")),FlippedSlots:()=>e("sqm-referral-card",null,yh("right",3),bh("left")),NoLeft:()=>e("sqm-referral-card",null,yh("right",3)),NoRight:()=>e("sqm-referral-card",null,bh("left")),WithHeader:()=>e("sqm-referral-card",null,e("h3",{slot:"header"},"Header slot content"),yh("right",3),bh("left")),WithFooter:()=>e("sqm-referral-card",null,yh("right",3),bh("left"),e("sqm-portal-footer",{slot:"footer"})),NoBorder:()=>e("sqm-referral-card",{"hide-border":"true"},yh("right",3),bh("left"),e("sqm-portal-footer",{slot:"footer"})),BackgroundColor:()=>e("sqm-referral-card",{"background-color":"aquamarine"},yh("right",3),bh("left"),e("sqm-portal-footer",{slot:"footer"})),ReferralCardGeneric:()=>e("sqm-referral-card",{"vertical-alignment":"center"},e("sqm-portal-container",{slot:"left",gap:"x-small"},e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333",textAlign:"center"}},"PLACEHOLDER")),e("sqm-portal-container",{slot:"right",gap:"x-small"},e("div",{style:{padding:"100px",border:"1px dashed black",background:"#eee",color:"#333",textAlign:"center"}},"PLACEHOLDER")))}),vh=Object.freeze({__proto__:null,default:{title:"Components/Referral Code",parameters:{scenario:'@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'}},ReferralCode:()=>e("sqm-referral-code",{tooltiptext:"Copied to Clipboard"}),ShowNotificationText:()=>e("sqm-referral-code",{showNotificationText:!0,notificationText:"You've copied this code before"}),ShowNotificationTextRed:()=>e("sqm-referral-code",{textColor:"red",showNotificationText:!0,notificationText:"You've copied this code before"}),ShowNotificationTextWithButton:()=>e("sqm-referral-code",{showNotificationText:!0,notificationText:"You've copied this code before",buttonStyle:"button-outside"}),ShowNotificationTextWithButtonBelow:()=>e("sqm-referral-code",{showNotificationText:!0,notificationText:"You've copied this code before",buttonStyle:"button-below"}),CustomTooltipText:()=>e("sqm-referral-code",{tooltiptext:"CUSTOM TOOLTIP TEXT"}),TextAlignCenter:()=>e("sqm-referral-code",{textAlign:"center"}),TextAlignRight:()=>e("sqm-referral-code",{textAlign:"right"}),CustomTooltipDuration:()=>e("sqm-referral-code",{tooltiplifespan:5e3,tooltiptext:"CUSTOM TOOLTIP TEXT"}),CopyButton:()=>e(re,{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!",isCopyIcon:!1,buttonStyle:"button-outside"}),CopyButtonBelow:()=>e(re,{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!",buttonStyle:"button-below"}),Error:()=>e(re,{copyString:"https://noah.example.com",disabled:!0,open:!0,tooltiptext:"Copied!",error:!0})}),xh={noCodes:!1,loading:!1},Th=n=>e("sqm-pagination",{slot:n}),Sh=n=>e("sqm-portal-container",{gap:"small",slot:n},e("sqm-share-button",{medium:"email"},"Share via email"),e("sqm-share-button",{medium:"facebook"},"Share on Facebook"),e("sqm-share-button",{medium:"whatsapp"},"Share on WhatsApp")),Eh=n=>e("sqm-referral-code",{slot:n}),Ch=n=>e("sqm-referral-code",{slot:n,showNotificationText:!0,notificationText:"You’ve copied this before."}),Rh=Ys((()=>{const[n,t]=i(1),[a,r]=i(!1),o=e=>{r(!0),setTimeout((()=>{t(e),r(!1)}),800)},s=e("sqm-pagination",{slot:"pagination",demoData:{states:{currentPage:n,totalPages:5,loading:a},callbacks:{onNext:()=>o(n+1),onPrev:()=>o(n-1)},text:{paginationText:`${n} of 5`}}});return e("sqm-referral-codes",{demoData:{states:{noCodes:!1,loading:a}}},s,Eh("shareCodes"),Sh("shareButtons"))})),Dh=Object.freeze({__proto__:null,default:{title:"Components/Referral Codes",parameters:{scenario:"@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"}},ReferralCodes:()=>e("sqm-referral-codes",null,Th("pagination"),Eh("shareCodes"),Sh("shareButtons")),WithPreviouslyCopiedCode:()=>e("sqm-referral-codes",null,Th("pagination"),Ch("shareCodes"),Sh("shareButtons")),WithPreviouslyCopiedCodeAndCustomColor:()=>e("sqm-referral-codes",{textColor:"red"},Th("pagination"),Ch("shareCodes"),Sh("shareButtons")),Empty:()=>e("sqm-referral-codes",{demoData:{states:{...xh,noCodes:!0}}},Th("pagination"),Eh("shareCodes"),Sh("shareButtons")),EmptyWithCustomTextAndImage:()=>e("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:{...xh,noCodes:!0}}},Th("pagination"),Eh("shareCodes"),Sh("shareButtons")),Loading:()=>e("sqm-referral-codes",{demoData:{states:{...xh,loading:!0}}},Th("pagination"),Eh("shareCodes"),Sh("shareButtons")),WithLoadingPagination:()=>e("sqm-referral-codes",null,e("sqm-pagination",{slot:"pagination",demoData:{states:{loading:!0}}}),Eh("shareCodes"),Sh("shareButtons")),FunctionalPagination:Rh}),Ih={data:{shareCode:"BOBBYREFER"},states:{content:{iframeSrc:"https://example.com",iframeHeight:"100%",iframeWidth:"100%",codeParam:"rsCode"}}},Ah=Object.freeze({__proto__:null,default:{title:"Components/Referral Iframe",parameters:{scenario:'@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 | |'}},ReferralIframe:()=>e("div",{style:{width:"1000px",height:"1000px"}},e(q,{...Ih})),ReferralIframeError:()=>e("div",{style:{width:"1000px",height:"1000px"}},e("sqm-referral-iframe",null))}),qh='@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',kh='@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 |',Ph='@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',Nh='@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',Fh='@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',Lh=()=>e("sqm-referral-table-status-cell",{"status-text":"Converted","fraud-status":"APPROVED",converted:!0}),_h=()=>e("sqm-referral-table-status-cell",{"status-text":"In Progress",converted:!1}),Uh=()=>e("sqm-referral-table-status-cell",{"status-text":"Pending","fraud-status":"PENDING_REVIEW",converted:!1}),Oh=()=>e("sqm-referral-table-status-cell",{"status-text":"Pending",converted:!1}),Bh=()=>e("sqm-referral-table-status-cell",{"status-text":"Denied","fraud-status":"DENIED",converted:!1}),Mh=()=>e("sqm-referral-table-date-cell",{date:9e11}),Gh=[{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"}]}}]}}],Vh=Object.freeze({__proto__:null,default:{title:"Components/Referral Table Cell",parameters:{scenario:qh+kh+Ph+Nh+Fh}},TableCell:()=>e("sqm-referral-table-cell",{innerTemplate:"Table Cell Text"}),TableUserCell:()=>e("sqm-referral-table-user-cell",{name:"Table User Cell Text"}),EmptyCell:()=>e("sqm-sqm-referral-table-cell",null,"-"),Converted:Lh,InProgress:_h,PendingReview:Uh,Pending:Oh,Denied:Bh,DateCell:Mh,RewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:Gh,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}"})}),Wh={title:"Components/Referral Table Rewards Cell",parameters:{scenario:qh+kh+Ph+Nh+Fh}},jh={id:"123",type:"CREDIT",value:19,unit:"POINT",name:"test",dateGiven:1627427794891,dateScheduledFor:Eg(),dateExpires:Cg(),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"}]}}]}},Hh={id:"1234",type:"CREDIT",value:50,unit:"USD",name:"test",dateScheduledFor:Eg(),dateExpires:Cg(),dateCancelled:134400,dateRedeemed:0,fuelTankCode:null,fuelTankType:null,currency:"USD",prettyValue:"$50.00",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:null},Jh={id:"1234",type:"CREDIT",value:50,unit:"USD",name:"test",dateScheduledFor:Eg(),dateExpires:Cg(),datePayoutExpected:Eg(),dateCancelled:134400,dateRedeemed:0,fuelTankCode:null,fuelTankType:null,currency:"USD",prettyValue:"$50.00",statuses:["AVAILABLE"],globalRewardKey:"Key",rewardRedemptionTransactions:null,rewardedCash:!0},Yh={dateExpires:null},zh={dateScheduledFor:null},Kh={fuelTankCode:null},$h={type:"PCT_DISCOUNT"},Xh={type:"CREDIT"},Zh={type:"FUELTANK"},Qh={type:"INTEGRATION"},eg={statuses:["AVAILABLE","PENDING"]},ng={statuses:["PAYOUT_SENT"]},tg={statuses:["PENDING","CANCELLED"],dateCancelled:16268508e5},ag={statuses:["EXPIRED","AVAILABLE"],dateExpires:16268508e5},rg={statuses:["DENIED"]},ig={statuses:["PAYOUT_FAILED"]},og={statuses:["PAYOUT_CANCELLED"]},sg={statuses:["PENDING_REVIEW"]},lg={statuses:["PENDING_TAX_REVIEW"]},dg={statuses:["PENDING_NEW_TAX_FORM"]},ug={statuses:["PENDING_TAX_SUBMISSION"]},cg={statuses:["PENDING_PARTNER_CREATION"]},mg={statuses:["AVAILABLE","EXPIRED","REDEEMED"]},pg={statuses:["AVAILABLE"]},hg=[],gg=[{...jh,...pg}],fg=[{...jh,...$h,...eg},{...jh,...Xh}],bg=[{...jh,...Zh,...Yh},{...jh,...Zh,...ag},{...jh,...eg,...Kh}],yg=[{...jh,...Zh},{...jh,...Qh},{...jh,...eg},{...jh,...tg,...Yh,...Kh},{...jh,...ag,...Kh}],wg=[{...jh,...mg,...Kh},{...jh,...pg,...Yh},{...jh,...eg},{...jh,...tg},{...jh,...ag},{...jh,...eg,...Yh,...zh},{...jh,...tg},{...jh,...ag}],vg=[{...jh,...Qh},{...jh,...mg},{...jh,...pg},{...jh,...tg,...Yh},{...jh,...ag},{...jh,...eg},{...jh,...$h},{...jh,...Zh},{...jh,...tg,...Yh},{...jh,...Xh}];function xg(){return on.DateTime.now().toMillis()+1e4}function Tg(){return on.DateTime.now().toMillis()+4e5}function Sg(){return on.DateTime.now().toMillis()+9e6}function Eg(){return on.DateTime.now().toMillis()+6e8}function Cg(){return on.DateTime.now().toMillis()+1e10}function Rg(){return on.DateTime.now().toMillis()+2e11}const Dg="{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} }",Ig="{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} }",Ag=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,...zh}],statusText:Dg,statusLongText:Ig,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."}),qg=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...pg,...Yh}],statusText:Dg,statusLongText:Ig,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."}),kg=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...mg}],statusText:Dg,statusLongText:Ig,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."}),Pg=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Jh,...ng}],statusText:Dg,statusLongText:Ig,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."}),Ng=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...rg}],statusText:Dg,statusLongText:Ig,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."}),Fg=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Jh,...ig,datePayoutRetried:Eg(),dateGiven:null}],statusText:Dg,statusLongText:Ig,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."}),Lg=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Jh,...og,datePayoutRetried:Eg(),dateGiven:null}],statusText:Dg,statusLongText:Ig,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."}),_g=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...sg}],statusText:Dg,statusLongText:Ig,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."}),Ug=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Hh,...lg}],statusText:Dg,statusLongText:Ig,fuelTankText:"Your code is",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),Og=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Hh,...dg}],statusText:Dg,statusLongText:Ig,fuelTankText:"Your code is",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),Bg=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Hh,...ug}],statusText:Dg,statusLongText:Ig,fuelTankText:"Your code is",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),Mg=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Hh,...cg}],statusText:Dg,statusLongText:Ig,fuelTankText:"Your code is",expiringText:"Expiring in",pendingForText:"{status} for {date}",deniedHelpText:"Contact support if you think this is a mistake."}),Gg=Object.freeze({__proto__:null,default:Wh,PendingNoUnpend:Ag,PendingNoUnpendNoDetails:()=>e("sqm-referral-table-rewards-cell",{hideDetails:!0,rewards:[{...jh,...eg,...zh}],statusText:Dg,statusLongText:Ig,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."}),NarrowColumnWithWideText:()=>e("div",{style:{width:"250px"}},e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,dateScheduledFor:Eg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,dateScheduledFor:Rg()}],statusText:Dg,statusLongText:Ig,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."})),PendingWithUnpend:()=>[e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,dateScheduledFor:xg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,dateScheduledFor:Tg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,dateScheduledFor:Sg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,dateScheduledFor:Eg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,dateScheduledFor:Cg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...eg,dateScheduledFor:Rg()}],statusText:Dg,statusLongText:Ig,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."})],AvailableNoExpiry:qg,AvailableWithExpiry:()=>[e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...pg,dateExpires:xg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...pg,dateExpires:Tg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...pg,dateExpires:Sg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...pg,dateExpires:Eg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...pg,dateExpires:Cg()}],statusText:Dg,statusLongText:Ig,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."}),e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...pg,dateExpires:Rg()}],statusText:Dg,statusLongText:Ig,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."})],Redeemed:kg,PayoutSent:Pg,Cancelled:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...tg}],statusText:Dg,statusLongText:Ig,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."}),Expired:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...jh,...ag}],statusText:Dg,statusLongText:Ig,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."}),Denied:Ng,PayoutFailed:Fg,PayoutDenied:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...Jh,...ig,datePayoutRetried:Eg(),dateGiven:null}],statusText:Dg,statusLongText:Ig,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."}),PayoutCancelled:Lg,PendingReview:_g,PendingTaxReview:Ug,PendingNewTaxForm:Og,PendingTaxSubmission:Bg,PendingPartnerCreation:Mg,EmptyCell:()=>e("sqm-referral-table-rewards-cell",{rewards:hg,statusText:Dg,statusLongText:Ig,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."}),oneRewardCell:()=>e("sqm-referral-table-rewards-cell",{rewards:gg,statusText:Dg,statusLongText:Ig,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."}),twoRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:fg,statusText:Dg,statusLongText:Ig,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."}),threeRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:bg,statusText:Dg,statusLongText:Ig,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."}),fiveRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:yg,statusText:Dg,statusLongText:Ig,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."}),eightRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:wg,statusText:Dg,statusLongText:Ig,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."}),tenRewardsCell:()=>e("sqm-referral-table-rewards-cell",{rewards:vg,statusText:Dg,statusLongText:Ig,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."})}),Vg=e("div",{slot:"loading",style:{display:"contents"}},e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null)))),Wg=e("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"}),jg={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:!1},Hg={statuses:["AVAILABLE","PENDING"]},Jg={statuses:["PENDING","CANCELLED"],dateCancelled:16268508e5},Yg={statuses:["EXPIRED","AVAILABLE"],dateExpires:16268508e5},zg={statuses:["AVAILABLE"]},Kg={dateExpires:null},$g={states:{hasPrev:!1,hasNext:!0,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:["Customer","Status","Date converted","Rewards"],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e(Oh,null),e(Mh,null),e(Ag,null)],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e(_h,null),e(Mh,null),e(qg,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e(Lh,null),e(Mh,null),e(kg,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e(Lh,null),e(Mh,null),e(Pg,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e(Lh,null),e(Mh,null),e(Fg,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e(Lh,null),e(Mh,null),e(Lg,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e(Lh,null),e(Mh,null),e(Og,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e(Lh,null),e(Mh,null),e(Mg,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e(Lh,null),e(Mh,null),e(Ug,null)],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e(Lh,null),e(Mh,null),e(Bg,null)],[e("sqm-referral-table-user-cell",{name:"Tom Smith"}),e(Uh,null),e(Mh,null),e(_g,null)],[e("sqm-referral-table-user-cell",{name:"Tom Smith"}),e(Bh,null),e(Mh,null),e(Ng,null)]]}},Xg={states:{hasPrev:!1,hasNext:!0,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:["Customer","Status","Date converted","Rewards"],rows:[[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-user-cell",{name:"09/05/1999"}),e(qg,null)]]}},Zg={data:{textOverrides:{showLabels:!1,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599}},Qg={states:{hasPrev:!0,hasNext:!0,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"CUSTOM PREVIOUS TEXT",moreLabel:"CUSTOM NEXT TEXT"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599}},ef={states:{hasPrev:!1,hasNext:!0,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:["Name","Email","DOB","City","State/Province","Country","Referrals","Reward Earnings","Status"],rows:[[e("sqm-referral-table-user-cell",{name:"Bartholomew Christopher-Johnston Wallace"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-220896e5}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14,000,000"}),e("sqm-referral-table-user-cell",{name:"$800,000,000,000"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}},nf={states:{hasPrev:!1,hasNext:!0,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:["Lorem ipsum dolor sit amet consectetur adipisicing elit.","Email","DOB","City","State/Province","Country","Referrals","Rewarddddddddddd Earningsssssssssssss","Status"],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-2128547493e3}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14"}),e("sqm-referral-table-user-cell",{name:"$88"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}},tf=(n=!1)=>({states:{hasPrev:!1,hasNext:!0,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:n?"0,1,2,3,4,5,6,7,8":"-1",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:["Name","Email","DOB","City","State/Province","Country","Referrals","Reward Earnings","Status"],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-user-cell",{name:"jsmith@gmail.com"}),e("sqm-referral-table-date-cell",{date:-2128547493e3}),e("sqm-referral-table-user-cell",{name:"Vancouver"}),e("sqm-referral-table-cell",{innerTemplate:"British Columbia"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"14"}),e("sqm-referral-table-user-cell",{name:"$88"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0})],[e("sqm-referral-table-user-cell",{name:"Bob Williams"}),e("sqm-referral-table-user-cell",{name:"bwill@gmail.com"}),e("sqm-referral-table-date-cell",{date:8e11}),e("sqm-referral-table-user-cell",{name:"Los Angeles"}),e("sqm-referral-table-cell",{innerTemplate:"California"}),e("sqm-referral-table-user-cell",{name:"US"}),e("sqm-referral-table-user-cell",{name:"1"}),e("sqm-referral-table-user-cell",{name:"$5"}),e("sqm-referral-table-status-cell",{statusText:"In progress",converted:!1}),,],[e("sqm-referral-table-user-cell",{name:"Sarah Joseph"}),e("sqm-referral-table-user-cell",{name:"sjoseph@gmail.com"}),e("sqm-referral-table-date-cell",{date:444703707e3}),e("sqm-referral-table-user-cell",{name:"Toronto"}),e("sqm-referral-table-cell",{innerTemplate:"Ontario"}),e("sqm-referral-table-user-cell",{name:"Canada"}),e("sqm-referral-table-user-cell",{name:"10"}),e("sqm-referral-table-user-cell",{name:"$71"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),,]]}}),af=Object.freeze({__proto__:null,default:{title:"Components/Referral Table",parameters:{scenario:'@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'}},SimpleUserTable:()=>e(ze,{...$g}),SingleEntry:()=>e(ze,{...Xg}),HiddenLabelsTable:()=>e(ze,{...{...$g,...Zg}}),CustomButtonTextTable:()=>e(ze,{...{...$g,...Qg}}),FullUserTable:()=>e(ze,{...tf()}),LongCellTextTable:()=>e(ze,{...ef}),LongColumnTextTable:()=>e(ze,{...nf}),EmptyTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,show:"empty",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:Wg,loadingElement:Vg,columns:["Name","Email","DOB"],rows:[]}}}),LoadingTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,show:"loading",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:Wg,loadingElement:Vg,columns:["Name","Email","DOB"],rows:[]}}}),FullRewardsTable:()=>e("sqm-referral-table",{demoData:{states:{hasPrev:!1,hasNext:!1,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"1",mdBreakpoint:799,smBreakpoint:599},elements:{emptyElement:Wg,loadingElement:Vg,columns:["User","Rewards","Status","Date Started","Date Converted"],rows:[[e("sqm-referral-table-user-cell",{name:"Joe Smith"}),e("sqm-referral-table-rewards-cell",{rewards:[{...jg,...zg},{...jg,...Hg},{...jg,...Jg}],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}"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:1627427794891})],[e("sqm-referral-table-user-cell",{name:"Sarah Williams"}),e("sqm-referral-table-rewards-cell",{rewards:[{...jg,...Yg}],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}"}),e("sqm-referral-table-status-cell",{statusText:"Incomplete",converted:!1}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:null})],[e("sqm-referral-table-user-cell",{name:"Marvin Smith"}),e("sqm-referral-table-rewards-cell",{rewards:[{...jg,...Kg},{...jg,...Hg}],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}"}),e("sqm-referral-table-status-cell",{statusText:"Complete",converted:!0}),e("sqm-referral-table-date-cell",{date:16267644e5}),e("sqm-referral-table-date-cell",{date:1627427794891})]]}}}),ColumnsMobileHidden:()=>e(ze,{...tf(!0)})}),rf=16409952e5,of=27792576e5,sf={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:!0},lf={connected:!0,taxHandlingEnabled:!0,publisher:{requiredTaxDocumentType:"W9",currentTaxDocument:{status:"ACTIVE",type:"W9",dateCreated:rf},withdrawalSettings:{paymentMethod:"BANK_TRANSFER"},payoutsAccount:null}},df={connected:!0,taxHandlingEnabled:!0,publisher:{requiredTaxDocumentType:"W9",currentTaxDocument:{status:"ACTIVE",type:"W9",dateCreated:rf},withdrawalSettings:null,payoutsAccount:null}},uf={connected:!1,taxHandlingEnabled:!0,publisher:null},cf={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:!1},mf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:["AVAILABLE"]}],taxConnection:uf,...cf}),pf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,partnerFundsTransfer:{id:"pft-not-yet-due",status:"NOT_YET_DUE",dateCreated:rf,dateScheduled:of,dateTransferred:null}}],taxConnection:df,...cf}),hf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,partnerFundsTransfer:{id:"pft-reversed",status:"REVERSED",dateCreated:rf,dateScheduled:rf,dateTransferred:null}}],taxConnection:lf,...cf}),gf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,partnerFundsTransfer:{id:"pft-overdue",status:"OVERDUE",dateCreated:rf,dateScheduled:rf,dateTransferred:null}}],taxConnection:lf,...cf}),ff=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,partnerFundsTransfer:{id:"pft-processing",status:null,dateCreated:rf,dateScheduled:of,dateTransferred:null}}],taxConnection:lf,...cf}),bf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,partnerFundsTransfer:{id:"pft-transferred",status:"TRANSFERRED",dateCreated:rf,dateScheduled:rf,dateTransferred:rf}}],taxConnection:lf,...cf}),yf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:["PENDING"],pendingReasons:["US_TAX"]}],taxConnection:{...lf,taxHandlingEnabled:!1},...cf}),wf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:["PENDING"],pendingReasons:["US_TAX"]}],taxConnection:{...lf,publisher:{...lf.publisher,currentTaxDocument:null}},...cf}),vf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:["PENDING"],pendingReasons:["US_TAX"]}],taxConnection:{...lf,publisher:{...lf.publisher,currentTaxDocument:{status:"INACTIVE",type:"W9",dateCreated:rf}}},...cf}),xf=()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:["PENDING"],pendingReasons:["US_TAX"]}],taxConnection:{...lf,publisher:{...lf.publisher,currentTaxDocument:{status:"NOT_VERIFIED",type:"W9",dateCreated:rf}}},...cf}),Tf=bf,Sf=bf,Ef=ff,Cf=gf,Rf=hf,Df=xf,If=vf,Af=wf,qf=mf,kf=yf,Pf=Object.freeze({__proto__:null,default:{title:"Components/Tax And Cash Referral Table Rewards Cell"},RewardsCellFraudDenied:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,referral:{fraudData:{moderationStatus:"DENIED"}}}],taxConnection:lf,...cf}),RewardsCellFraudPendingReview:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,referral:{fraudData:{moderationStatus:"PENDING"}}}],taxConnection:lf,...cf}),RewardsCellPartnerNotCreatedSetupNotStarted:mf,RewardsCellPartnerCreatedSetupStartedButIncomplete:pf,RewardsCellPayoutCancelled:hf,RewardsCellPayoutFailed:gf,RewardsCellPayoutProcessing:ff,RewardsCellPayoutApproved:bf,RewardsCellPendingW9Required:yf,RewardsCellUsTaxPartnerNotConnected:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:["PENDING"],pendingReasons:["US_TAX"]}],taxConnection:uf,...cf}),RewardsCellPendingTaxSubmission:wf,RewardsCellPendingNewTaxForm:vf,RewardsCellPendingTaxReview:xf,RewardsCellExistingTaxFormNoWithdrawalSettings:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:["PENDING"],pendingReasons:["US_TAX"]}],taxConnection:df,...cf}),RewardsCellMissingPayoutConfiguration:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:["PENDING"],pendingReasons:["MISSING_PAYOUT_CONFIGURATION"]}],taxConnection:df,...cf}),RewardsCellNoMatchingRule:()=>e("sqm-referral-table-rewards-cell",{rewards:[{...sf,statuses:[]}],taxConnection:lf,...cf}),CashReward:Tf,PayoutApproved:Sf,PayoutProcessing:Ef,PayoutFailed:Cf,PayoutCancelled:Rf,PendingTaxReview:Df,PendingNewTaxForm:If,PendingTaxSubmission:Af,PartnerNotCreatedSetupNotStarted:qf,PartnerCreatedSetupStartedButIncomplete:pf,PendingW9:kf}),Nf={states:{hasPrev:!1,hasNext:!0,show:"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!0,prevLabel:"Prev",moreLabel:"View More"},hiddenColumns:"",mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:["Customer","Status","Date converted","Rewards"],rows:[[e("sqm-referral-table-user-cell",{name:"Payout Approved User"}),e(Lh,null),e(Mh,null),e(Sf,null)],[e("sqm-referral-table-user-cell",{name:"Payout Failed User"}),e(Lh,null),e(Mh,null),e(Cf,null)],[e("sqm-referral-table-user-cell",{name:"Payout Cancelled User"}),e(Lh,null),e(Mh,null),e(Rf,null)],[e("sqm-referral-table-user-cell",{name:"Tax Review User"}),e(Lh,null),e(Mh,null),e(Df,null)],[e("sqm-referral-table-user-cell",{name:"Payout Processing User"}),e(Lh,null),e(Mh,null),e(Ef,null)],[e("sqm-referral-table-user-cell",{name:"New Tax Form User"}),e(Lh,null),e(Mh,null),e(If,null)],[e("sqm-referral-table-user-cell",{name:"Tax Submission User"}),e(Lh,null),e(Mh,null),e(Af,null)],[e("sqm-referral-table-user-cell",{name:"Partner Creation User"}),e(Lh,null),e(Mh,null),e(qf,null)],[e("sqm-referral-table-user-cell",{name:"Missing W9 User"}),e(Lh,null),e(Mh,null),e(kf,null)],[e("sqm-referral-table-user-cell",{name:"Standard Cash User"}),e(Lh,null),e(Mh,null),e(Tf,null)]]}},Ff=Object.freeze({__proto__:null,default:{title:"Components/Tax And Cash Referral Table"},TaxAndCashReferralTable:()=>e(ze,{...Nf})});function Lf({id:e,locale:n}){const t=e;return Nd({user:{id:e,accountId:t},widgetIdent:{locale:n}}),{id:e,accountId:t}}const _f=Ys((()=>(function(){const e="testestest";Nd({user:{id:e,accountId:e}})}(),Ne("sam-partner-test-2"),e("sqm-referral-table",null,e("sqm-referral-table-user-column",null),e("sqm-referral-table-status-column",null),e("sqm-referral-table-date-column",null),e("sqm-referral-table-rewards-column",null))))),Uf=Ys((()=>e("sqm-referral-table",null,e("sqm-referral-table-user-column",null),e("sqm-referral-table-status-column",null),e("sqm-referral-table-date-column",null),e("sqm-referral-table-rewards-column",null)))),Of=Ys((()=>e("sqm-referral-table",{"show-referrer":"true"},e("sqm-referral-table-user-column",null),e("sqm-referral-table-status-column",null),e("sqm-referral-table-date-column",null),e("sqm-referral-table-rewards-column",null)))),Bf=Ys((()=>(Lf({id:"samenglish",locale:"en"}),Ne("klip-referral-program"),e("sqm-referral-table",{"per-page":"4"},e("sqm-referral-table-user-column",{"column-title":"User"}),e("sqm-referral-table-status-column",{"column-title":"Referral Status"}),e("sqm-referral-table-rewards-column",null),e("sqm-referral-table-date-column",{"column-title":"Date Referred","date-shown":"dateReferralStarted"}))))),Mf=Ys((()=>(Lf({id:"samturkey",locale:"tr"}),Ne("klip-referral-program"),e("sqm-referral-table",{"more-label":"Daha","prev-label":"Öncesi","empty-state-text":"Henüz Ödül Yok","per-page":"4"},e("sqm-referral-table-user-column",{"column-title":"Kullanıcılar","anonymous-user":"Anonim Kullanıcı","deleted-user":"Silinmiş Kullanıcı"}),e("sqm-referral-table-status-column",{"column-title":"Durumu","converted-status-text":"Dönüştür","in-progress-status-text":"Devam etmekte"}),e("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ı:"}),e("sqm-referral-table-date-column",{"column-title":"Tarih","date-shown":"dateReferralStarted"}))))),Gf=Ys((()=>(Lf({id:"samfrench",locale:"fr"}),Ne("klip-referral-program"),e("sqm-referral-table",{"more-label":"Plus","prev-label":"Précédent","empty-state-text":"Aucune Référence Maintenant","per-page":"4"},e("sqm-referral-table-user-column",{"column-title":"Utilisateur","anonymous-user":"Utilisateur Anonyme","deleted-user":"Utilisateur Supprimé"}),e("sqm-referral-table-status-column",{"column-title":"Statut de Parrainage","converted-status-text":"Converti","in-progress-status-text":"En cours"}),e("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"}),e("sqm-referral-table-date-column",{"column-title":"Date de Référence","date-shown":"dateReferralStarted"}))))),Vf=Object.freeze({__proto__:null,default:{title:"Hooks / useReferralTable"},ReferralTable:_f,ReferralTableDemoHook:Uf,ReferralTableDemoHookShowReferrer:Of,ReferralTableEn:Bf,ReferralTableTr:Mf,ReferralTableFr:Gf}),Wf=n=>e(k,{...n}),jf=Object.freeze({__proto__:null,default:{title:"Components/Reward Exchange List",parameters:{scenario:'@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 |'}},ChooseReward:()=>Wf(K),CustomErrorMessage:()=>Wf(P),LongTextRewardExhange:()=>Wf(N),ChooseRewardSelected:()=>Wf(F),ChooseAmount:()=>Wf(L),ChooseAmountNoDescription:()=>Wf(_),ChooseAmountVariableAndStepped:()=>Wf(U),ChooseAmountVariableAndSteppedNoDescription:()=>Wf(O),chooseAmountVariableAndSteppedDisabled:()=>Wf(B),chooseAmountVariableAndSteppedUnavailable:()=>Wf(M),Confirm:()=>Wf(G),ConfirmVariableAndStepped:()=>Wf(V),RedemptionError:()=>Wf(W),QueryError:()=>Wf(j),SuccessPromo:()=>Wf(H),SuccessVariableAndStepped:()=>Wf(J),Loading:()=>Wf(Y),Empty:()=>Wf(z)}),Hf=Oe.gql`
140
+ mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
141
+ exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
142
+ reward {
143
+ id
144
+ }
145
+ }
146
+ }
147
+ `;function Jf(){const e="testestest",n=e;return Nd({programId:"sam-partner-test-2",user:{id:e,accountId:n}}),{id:e,accountId:n}}function Yf(){const{id:e,accountId:n}=Jf(),[t,a]=i(10),[r,o]=i(100),[s,{data:l,errors:d}]=Ve(Hf);return{states:{points:t,rate:r},data:{id:e,accountId:n,data:l,errors:d},callbacks:{exchange:s,setPoints:a,setRate:o}}}const zf=n=>{const{states:t,data:a,callbacks:r}=n;return e("div",null,e("div",null,e("label",null,"Rate:"),e("input",{value:t.rate,onInput:e=>r.setRate(e.target.value)})),e("input",{value:t.points,onInput:e=>r.setPoints(e.target.value)}),e("button",{onClick:()=>r.exchange(n.input)},"Exchange"),e("details",null,e("summary",null,"response"),e("h4",null,"data"),e("div",{style:{maxWidth:"500px"}},e("pre",{style:{width:"500px",whiteSpace:"pre-wrap"}},JSON.stringify(a.data))),e("h4",null,"errors"),e("div",{style:{maxWidth:"500px"}},e("pre",{style:{maxWidth:"500px",whiteSpace:"pre-wrap"}},JSON.stringify(a.errors)))))},Kf=Ys((()=>(Jf(),e("sqm-reward-exchange-list",{"list-type":"something"})))),$f=Ys((()=>{const{states:n,data:t,callbacks:a}=Yf();return e(zf,{states:n,data:t,callbacks:a,input:{exchangeRewardInput:{userId:t.id,accountId:t.accountId,redeemCreditInput:{amount:n.points,unit:"POINT"},globalRewardKey:"gc1"}}})})),Xf=Ys((()=>{const{states:n,data:t,callbacks:a}=Yf();return e(zf,{states:n,data:t,callbacks:a,input:{exchangeRewardInput:{userId:t.id,accountId:t.accountId,redeemCreditInput:{amount:n.points,unit:"POINT"},globalRewardKey:"gc1",rewardInput:{valueInCents:Math.ceil(n.points*n.rate)}}}})})),Zf=Ys((()=>{const{states:n,data:t,callbacks:a}=Yf();return e(zf,{states:n,data:t,callbacks:a,input:{exchangeRewardInput:{userId:t.id,accountId:t.accountId,redeemCreditInput:{amount:n.points,unit:"POINT"},rewardInput:{type:"CREDIT",unit:"foo",assignedCredit:Math.ceil(n.points*n.rate)}}}})})),Qf=Object.freeze({__proto__:null,default:{title:"Hooks / useRewardExchange"},RewardList:Kf,FixedGlobalReward:$f,VariableGlobalReward:Xf,VariableCreditReward:Zf}),eb={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},nb=()=>e("sqm-rewards-table-reward-cell",{reward:{...eb},availableText:"{availableAmount} remaining"}),tb={prettyAvailableValue:"10 Points",prettyRedeemedCredit:"9 Points",prettyRedeemedNumber:"9",dateRedeemed:1640038417468},ab=()=>e("sqm-rewards-table-reward-cell",{reward:{...eb,...tb},availableText:"{availableAmount} remaining"}),rb=()=>e("sqm-rewards-table-reward-cell",{reward:{...eb,...Ib},redeemedText:"{redeemedAmount} redeemed"}),ib={prettyAvailableValue:"0 Points",prettyAvailableNumber:"0",prettyRedeemedCredit:"19 Points",prettyRedeemedNumber:"19",dateRedeemed:1640038417468},ob=()=>e("sqm-rewards-table-reward-cell",{reward:{...eb,...ib},availableText:"{availableAmount} remaining"}),sb={prettyValue:"1 Point",prettyValueNumber:"1"},lb={prettyValue:"19 Points with a really really super duper longest name ever in the world wide web",prettyValueNumber:"19"},db=()=>e("div",{style:{maxWidth:"222px"}},e("sqm-rewards-table-reward-cell",{reward:{...eb,...lb},availableText:"{availableAmount} remaining"})),ub=()=>e("sqm-rewards-table-reward-cell",{reward:{...eb,type:"FUELTANK",prettyValue:"Fueltank Reward",fuelTankCode:"AFUELTANKCODE"},copyText:"Copied"}),cb=()=>e("div",{style:{maxWidth:"222px"}},e("sqm-rewards-table-reward-cell",{reward:{...eb,type:"FUELTANK",prettyValue:"Long Fueltank Reward",fuelTankCode:"AFUELTANKCODE123456789123456789123456789123456789"},copyText:"Copied"})),mb=()=>e("sqm-rewards-table-source-cell",{reward:eb,rewardSourceText:"Manual"}),pb={exchangedRewardRedemptionTransaction:{id:"61c100117a82a376d88041196",creditRedeemed:1,prettyRedeemedCredit:"1 Money",unit:"TESTUNIT",dateRedeemed:1640038417173,redeemedRewards:null,exchangedRewards:null}},hb={firstName:"Bartholomew",lastName:"Christopher-Johnston Wallace",imageUrl:null},gb={firstName:"John",lastName:"Doe",imageUrl:null},fb={firstName:"",lastName:"",imageUrl:null},bb=(e=null)=>({rewardSource:"FRIEND_SIGNUP",referral:{id:"123",dateConverted:1640038417173,dateReferralStarted:1640038417173,dateReferralPaid:1640038417173,dateModerated:1640038417173,dateReferralEnded:null,moderationStatus:null,rewards:null,referrerUser:e,referredUser:e}}),yb=(e=null)=>({rewardSource:"REFERRED",referral:{id:"123",dateConverted:1640038417173,dateReferralStarted:1640038417173,dateReferralPaid:1640038417173,dateModerated:1640038417173,dateReferralEnded:null,moderationStatus:null,rewards:null,referrerUser:e,referredUser:e}}),wb=()=>e("sqm-rewards-table-source-cell",{reward:{...eb,...bb(gb)},referralText:"Referral to"}),vb=()=>e("sqm-rewards-table-source-cell",{reward:{...eb,...yb(gb)},referralText:"Referred by"}),xb=()=>e("sqm-rewards-table-source-cell",{reward:{...eb,...bb(null)},referralText:"Referral to",deletedUserText:"Deleted User"}),Tb=()=>e("sqm-rewards-table-source-cell",{reward:{...eb,rewardSource:"REFERRED",referral:null},referralText:"Referral to",deletedReferralText:"Deleted Referral"}),Sb=()=>e("sqm-rewards-table-status-cell",{statusText:"Available",reward:eb}),Eb={dateExpires:1640038417468},Cb=()=>e("sqm-rewards-table-status-cell",{statusText:"Available",reward:{...eb,...Eb},expiryText:"Expires"}),Rb={statuses:["REDEEMED"],dateRedeemed:1640038417468},Db=()=>e("sqm-rewards-table-status-cell",{statusText:"Redeemed",reward:{...eb,...Rb}}),Ib={statuses:["CANCELLED"],dateCancelled:1640038417468},Ab=()=>e("sqm-rewards-table-status-cell",{statusText:"Cancelled",reward:{...eb,...Ib}}),qb={statuses:["EXPIRED"],dateExpires:1640038417468},kb={statuses:["PENDING"]},Pb={pendingReasons:["US_TAX"]},Nb={pendingReasons:["SCHEDULED"],dateScheduledFor:1640038417468},Fb={pendingReasons:["UNHANDLED_ERROR"]},Lb=()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...eb,...kb}}),_b=()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...eb,...kb,...Fb}}),Ub=()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...eb,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"}}}}),Ob=()=>e("sqm-rewards-table-status-cell",{statusText:"Denied",reward:{...eb,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"}}}}),Bb=()=>e("sqm-rewards-table-date-cell",{date:1640038417468}),Mb=Object.freeze({__proto__:null,default:{title:"Components/Rewards Table Cell",parameters:{scenario:'@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 |@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@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@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'}},RewardsCellCreditSingle:()=>e("sqm-rewards-table-reward-cell",{reward:{...eb,...sb}}),RewardsCellCreditFull:nb,RewardsCellCreditPartial:ab,RewardsCellCreditCancelled:rb,RewardsCellCreditExpired:()=>e("sqm-rewards-table-reward-cell",{reward:{...eb,...tb,...qb},redeemedText:"{redeemedAmount} redeemed"}),RewardsCellCreditPending:()=>e("sqm-rewards-table-reward-cell",{reward:{...eb,...kb},availableText:"{availableAmount} remaining"}),RewardsCellCreditRedeemed:ob,RewardsCellCreditLong:db,RewardsCellNonCredit:()=>e("sqm-rewards-table-reward-cell",{reward:{...eb,type:"GIFTCARD",prettyValue:"SaaSquatch Giftcard"}}),RewardsCellFueltank:ub,RewardsCellFueltankLong:cb,SourceCellManual:mb,SourceCellProgram:()=>e("sqm-rewards-table-source-cell",{reward:{...eb,rewardSource:"AUTOMATED",program:{name:"Klip Loyalty"}},rewardSourceText:"{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"}),SourceCellExchange:()=>e("sqm-rewards-table-source-cell",{reward:{...eb,...pb},rewardExchangeText:"Reward Exchange"}),SourceCellReferral:wb,SourceCellWithLongText:()=>e("div",{style:{width:"200px"}},e("sqm-rewards-table-source-cell",{reward:{...eb,...bb(hb)},referralText:"Referral to"})),SourceCellReferred:vb,SourceCellAnonymousUser:()=>e("sqm-rewards-table-source-cell",{reward:{...eb,...bb(fb)},referralText:"Referral to",anonymousUserText:"Your Friend"}),SourceCellDeletedUser:xb,SourceCellDeletedReferral:Tb,StatusCellAvailable:Sb,StatusCellAvailableExpiry:Cb,StatusCellRedeemed:Db,StatusCellCancelled:Ab,StatusCellExpired:()=>e("sqm-rewards-table-status-cell",{statusText:"Expired",reward:{...eb,...qb}}),StatusCellPending:Lb,StatusCellPendingWithLongText:()=>e("div",{style:{width:"200px"}},e("sqm-rewards-table-status-cell",{statusText:"Pending for 300,000,000 months and some change",reward:{...eb,...kb}})),StatusCellPendingUsTax:()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...eb,...kb,...Pb}}),StatusCellPendingScheduled:()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...eb,...kb,...Nb}}),StatusCellPendingUnhandled:_b,StatusCellPendingReview:Ub,StatusCellDenied:Ob,DateCell:Bb,CustomerNoteCell:()=>e("sqm-rewards-table-customer-note-cell",{note:eb.meta.message}),EmptyCell:()=>e("sqm-rewards-table-date-cell",null)}),Gb=e("div",{slot:"loading",style:{display:"contents"}},e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null))),e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sqm-skeleton",null)))),Vb=e("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"}),Wb=(e,n=!1,t=!1,a="Prev",r="Next",i="")=>({states:{hasPrev:!1,hasNext:!0,show:n?"empty":t?"loading":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:!0,prevLabel:a,moreLabel:r},hiddenColumns:i,mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:["Rewards","Status","Source","Date received"],rows:e,emptyElement:Vb,loadingElement:Gb}}),jb=[e(nb,null),e(Sb,null),e(wb,null),e(Bb,null)],Hb=[e(ab,null),e(Cb,null),e(vb,null),e(Bb,null)],Jb=[e(rb,null),e(Ab,null),e(Tb,null),e(Bb,null)],Yb=[e(rb,null),e(Ab,null),e(xb,null),e(Bb,null)],zb=[e(ob,null),e(Db,null),e(mb,null),e(Bb,null)],Kb=[e(ob,null),e(Ob,null),e(mb,null),e(Bb,null)],$b=[e(ob,null),e(Ub,null),e(mb,null),e(Bb,null)],Xb=[e(db,null),e(Cb,null),e(vb,null),e(Bb,null)],Zb=[e(ub,null),e(Lb,null),e(mb,null),e(Bb,null)],Qb=[e(cb,null),e(_b,null),e(mb,null),e(Bb,null)],ey=Object.freeze({__proto__:null,default:{title:"Components/Rewards Table",parameters:{scenario:'@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'}},RewardsTable:()=>e(ze,{...Wb([jb,zb,Yb,Jb,Hb,Kb,$b])}),RewardsTableSingle:()=>e(ze,{...Wb([Zb])}),RewardsTableLong:()=>e(ze,{...Wb([Qb,Xb])}),RewardsTableEmpty:()=>e(ze,{...Wb([],!0)}),RewardsTableLoading:()=>e(ze,{...Wb([],!1,!0)}),CustomButtonTextTable:()=>e(ze,{...Wb([jb,zb,Yb,Hb],!1,!1,"CUSTOM PREVIOUS TEXT","CUSTOM NEXT TEXT")}),ColumnsMobileHidden:()=>e(ze,{...Wb([jb,zb,Yb,Hb],!1,!1,void 0,void 0,"0,1,2,3")})}),ny=16409952e5,ty=27792576e5,ay={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:ny,dateScheduledFor:null,dateGiven:ny,dateExpires:null,dateCancelled:null,dateRedeemed:null,dateModified:ny,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:!0,taxHandlingEnabled:!0,publisher:null}},referral:null,description:null,statuses:[],rewardRedemptionTransactions:{data:null},exchangedRewardRedemptionTransaction:null,pendingReasons:[],rewardedCash:!0},ry={connected:!0,taxHandlingEnabled:!0,connectionStatus:"COMPLETED",publisher:{requiredTaxDocumentType:"W9",currentTaxDocument:{status:"ACTIVE",type:"W9",dateCreated:ny},withdrawalSettings:{paymentMethod:"BANK_TRANSFER"},payoutsAccount:null}},iy={connected:!0,taxHandlingEnabled:!0,connectionStatus:"COMPLETED",publisher:{requiredTaxDocumentType:"W9",currentTaxDocument:{status:"ACTIVE",type:"W9",dateCreated:ny},withdrawalSettings:null,payoutsAccount:null}},oy={connected:!1,taxHandlingEnabled:!0,connectionStatus:"NOT_STARTED",publisher:null},sy=()=>e("sqm-rewards-table-reward-cell",{reward:{...ay,statuses:["REDEEMED"],dateRedeemed:ny},availableText:"{availableAmount} remaining"}),ly=()=>e("sqm-rewards-table-status-cell",{statusText:"Payout Cancelled",reward:{...ay,partnerFundsTransfer:{id:"pft-reversed",status:"REVERSED",dateCreated:ny,dateScheduled:ny,dateTransferred:null}},taxConnection:ry}),dy=()=>e("sqm-rewards-table-status-cell",{statusText:"Payout Failed",reward:{...ay,partnerFundsTransfer:{id:"pft-overdue",status:"OVERDUE",dateCreated:ny,dateScheduled:ny,dateTransferred:null}},taxConnection:ry}),uy=()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:["US_TAX"]},taxConnection:oy}),cy=()=>e("sqm-rewards-table-status-cell",{statusText:"Processing",reward:{...ay,partnerFundsTransfer:{id:"pft-processing",status:null,dateCreated:ny,dateScheduled:ty,dateTransferred:null}},taxConnection:ry}),my=()=>e("sqm-rewards-table-status-cell",{statusText:"Payout Approved",reward:{...ay,partnerFundsTransfer:{id:"pft-transferred",status:"TRANSFERRED",dateCreated:ny,dateScheduled:ny,dateTransferred:ny}},taxConnection:ry}),py=()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:["US_TAX"]},taxConnection:{...ry,taxHandlingEnabled:!1}}),hy=()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:["US_TAX"]},taxConnection:{...ry,publisher:{...ry.publisher,currentTaxDocument:null}}}),gy=()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:["US_TAX"]},taxConnection:{...ry,publisher:{...ry.publisher,currentTaxDocument:{status:"INACTIVE",type:"W9",dateCreated:ny}}}}),fy=()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:["US_TAX"]},taxConnection:{...ry,publisher:{...ry.publisher,currentTaxDocument:{status:"NOT_VERIFIED",type:"W9",dateCreated:ny}}}}),by=my,yy=py,wy=Object.freeze({__proto__:null,default:{title:"Components/Tax And Cash Rewards Table Cell"},CashReward:sy,StatusCellFraudDenied:()=>e("sqm-rewards-table-status-cell",{statusText:"Denied",reward:{...ay,referral:{fraudData:{moderationStatus:"DENIED"}}},taxConnection:ry}),StatusCellFraudPendingReview:()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,referral:{fraudData:{moderationStatus:"PENDING"}}},taxConnection:ry}),StatusCellPayoutCancelled:ly,StatusCellPayoutFailed:dy,StatusCellPartnerCreatedSetupStartedButIncomplete:()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,partnerFundsTransfer:{id:"pft-not-yet-due",status:"NOT_YET_DUE",dateCreated:ny,dateScheduled:ty,dateTransferred:null}},taxConnection:iy}),StatusCellPartnerNotCreatedSetupNotStarted:uy,StatusCellMissingPayoutConfiguration:()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:["MISSING_PAYOUT_CONFIGURATION"]},taxConnection:iy}),StatusCellPayoutProcessing:cy,StatusCellPayoutApproved:my,StatusCellRewardCancelled:()=>e("sqm-rewards-table-status-cell",{statusText:"Cancelled",reward:{...ay,statuses:["CANCELLED"],dateCancelled:ny},taxConnection:ry}),StatusCellRewardExpired:()=>e("sqm-rewards-table-status-cell",{statusText:"Expired",reward:{...ay,statuses:["EXPIRED"],dateExpires:ny},taxConnection:ry}),StatusCellPendingScheduled:()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:["SCHEDULED"],dateScheduledFor:ty},taxConnection:ry}),StatusCellNoMatchingRule:()=>e("sqm-rewards-table-status-cell",{statusText:"",reward:{...ay,statuses:[]},taxConnection:ry}),StatusCellPendingW9Required:py,StatusCellPendingTaxSubmission:hy,StatusCellPendingNewTaxForm:gy,StatusCellPendingTaxReview:fy,StatusCellExistingTaxFormNoWithdrawalSettings:()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:["US_TAX"]},taxConnection:iy}),StatusCellConnectedNoTaxRequiredNoWithdrawalSettings:()=>e("sqm-rewards-table-status-cell",{statusText:"Pending",reward:{...ay,statuses:["PENDING"],pendingReasons:[]},taxConnection:{connected:!0,taxHandlingEnabled:!0,connectionStatus:"COMPLETED",publisher:{requiredTaxDocumentType:null,currentTaxDocument:null,withdrawalSettings:null,payoutsAccount:null}}}),StatusCellPayoutSent:by,StatusCellPendingW9:yy}),vy=(e,n=!1,t=!1,a="Prev",r="Next",i="")=>({states:{hasPrev:!1,hasNext:!0,show:n?"empty":t?"loading":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:!0,prevLabel:a,moreLabel:r},hiddenColumns:i,mdBreakpoint:799,smBreakpoint:599},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},elements:{columns:["Rewards","Status","Source","Date received"],rows:e}}),xy=[e(sy,null),e(gy,null),e(wb,null),e(Bb,null)],Ty=[e(sy,null),e(hy,null),e(wb,null),e(Bb,null)],Sy=[e(sy,null),e(fy,null),e(wb,null),e(Bb,null)],Ey=[e(sy,null),e(uy,null),e(wb,null),e(Bb,null)],Cy=[e(sy,null),e(yy,null),e(wb,null),e(Bb,null)],Ry=[e(sy,null),e(by,null),e(wb,null),e(Bb,null)],Dy=[e(sy,null),e(cy,null),e(wb,null),e(Bb,null)],Iy=[e(sy,null),e(dy,null),e(wb,null),e(Bb,null)],Ay=[e(sy,null),e(ly,null),e(wb,null),e(Bb,null)],qy=Object.freeze({__proto__:null,default:{title:"Components/Tax And Cash Rewards Table"},RewardsTable:()=>e(ze,{...vy([xy,Ty,Sy,Ey,Cy,Dy,Ry,Iy,Ay])})});function ky(){const e="testestest",n=e;return Nd({user:{id:e,accountId:n}}),{id:e,accountId:n}}function Py({id:e,locale:n}){const t=e;return Nd({user:{id:e,accountId:t},widgetIdent:{locale:n}}),{id:e,accountId:t}}const Ny=Ys((()=>e("sqm-rewards-table",{"per-page":"4"},e("sqm-rewards-table-reward-column",null),e("sqm-rewards-table-source-column",null),e("sqm-rewards-table-status-column",null),e("sqm-rewards-table-date-column",null)))),Fy=Ys((()=>(ky(),Ne("sam-partner-test-2"),e("sqm-rewards-table",null,e("sqm-rewards-table-reward-column",null),e("sqm-rewards-table-status-column",null),e("sqm-rewards-table-source-column",null),e("sqm-rewards-table-date-column",null))))),Ly=Ys((()=>(ky(),Ne(void 0),e("sqm-rewards-table",null,e("sqm-rewards-table-reward-column",null),e("sqm-rewards-table-status-column",null),e("sqm-rewards-table-source-column",null),e("sqm-rewards-table-date-column",null))))),_y=Ys((()=>(Py({id:"samenglish",locale:"en"}),Ne(void 0),e("sqm-rewards-table",{"per-page":"4"},e("sqm-rewards-table-reward-column",null),e("sqm-rewards-table-status-column",null),e("sqm-rewards-table-source-column",null),e("sqm-rewards-table-date-column",null))))),Uy=Ys((()=>(Py({id:"samturkey",locale:"tr"}),Ne(void 0),e("sqm-rewards-table",{"per-page":"4","more-label":"Daha","prev-label":"Öncesi","empty-state-text":"Henüz Referans Yok"},e("sqm-rewards-table-reward-column",{"column-title":"Ödüller","redeemed-text":"{redeemedAmount} kullanıldı","available-text":"{availableAmount} mevcut"}),e("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 {}}"}),e("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 "}),e("sqm-rewards-table-date-column",{"column-title":"Tarih"}))))),Oy=Ys((()=>(Py({id:"samfrench",locale:"fr"}),Ne(void 0),e("sqm-rewards-table",{"per-page":"4","more-label":"Plus","prev-label":"Précédent","empty-state-text":"Aucune Récompenses Maintenant"},e("sqm-rewards-table-reward-column",{"column-title":"Récompenses","redeemed-text":"{redeemedAmount} rachetée","available-text":"{availableAmount} disponible"}),e("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 {}}"}),e("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 "}),e("sqm-rewards-table-date-column",{"column-title":"Date de Réception"}))))),By=Object.freeze({__proto__:null,default:{title:"Hooks / useRewardsTable"},RewardTableDemoHook:Ny,RewardsTableWithProgram:Fy,RewardsTableNoProgram:Ly,RewardsTableEn:_y,RewardsTableTr:Uy,RewardsTableFr:Oy}),My=Ys((()=>e("div",null,e("button",{onClick:()=>qe.push("/")},"/"),e("button",{onClick:()=>qe.push("/foo")},"/foo"),e("button",{onClick:()=>qe.push("/bar")},"/bar"),e("button",{onClick:()=>qe.push("/baz/bang")},"/baz/bang"),e("button",{onClick:()=>qe.push("/refer")},"/refer"),e("button",{onClick:()=>qe.push("/refer/1")},"/refer/1"),e("button",{onClick:()=>qe.push("/refer/2")},"/refer/2"),e("button",{onClick:()=>qe.back()},"Back"),e("button",{onClick:()=>qe.forward()},"Forward"),e("hr",null),e("sqm-router",{innerHTML:'\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'})))),Gy=Ys((()=>e("div",null,e("button",{onClick:()=>qe.push("/")},"/"),e("button",{onClick:()=>qe.push("/foo")},"/foo"),e("button",{onClick:()=>qe.push("/bar")},"/bar"),e("button",{onClick:()=>qe.push("/baz/bang")},"/baz/bang"),e("button",{onClick:()=>qe.push("/refer")},"/refer"),e("button",{onClick:()=>qe.push("/refer/1")},"/refer/1"),e("button",{onClick:()=>qe.push("/refer/2")},"/refer/2"),e("button",{onClick:()=>qe.back()},"Back"),e("button",{onClick:()=>qe.forward()},"Forward"),e("hr",null),e("sqm-router",{innerHTML:'\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'})))),Vy=Ys((()=>e("div",null,e("button",{onClick:()=>qe.push("/")},"/"),e("button",{onClick:()=>qe.push("/foo")},"/foo"),e("hr",null),e("div",{style:{display:"flex",justifyContent:"space-around"}},e("sqm-router",{innerHTML:'<template path="/">\n \n <div>Column 1</div>\n <div>Column 2 </div>\n </template>'})))));function Wy(n){const{states:t,callbacks:a}=n;return[e("textarea",{style:{width:"100%",height:"300px"},onChange:e=>a.setEditedTemplate(e.target.value)},t.editedTemplate),e("button",{onClick:()=>a.setPreviewTemplate(t.editedTemplate)},"Update Preview"),e("label",null,"Current path:",e("input",{onInput:a.setPath,value:"/"})),e("div",{innerHTML:t.previewTemplate})]}const jy=Ys((()=>{const{states:n,callbacks:t}=function(e){const[n,t]=i(e),[a,r]=i(e);return{states:{previewTemplate:a,editedTemplate:n},callbacks:{setEditedTemplate:t,setPreviewTemplate:r,setPath:function(e){qe.push(e.target.value)}}}}('\n<sqm-router>\n <template path="/">\n <div>hello world</div>\n </template>\n</sqm-router>\n');return e(Wy,{states:n,callbacks:t})})),Hy=Object.freeze({__proto__:null,default:{title:"Tests/Router"},TemplateNavigation:My,RouteNavigation:Gy,Styling:Vy,RouterPlayground:jy}),Jy=Object.freeze({__proto__:null,default:{title:"Components/Scroll"},ScrollTag:()=>e("div",{style:{position:"relative",height:"2000px"}},e("sqm-scroll",{"scroll-tag-name":"sqm-text","button-text":"Scroll","scroll-animation":"smooth"}),e("div",{style:{position:"absolute",bottom:"0"}},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards"),e("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")))),ScrollId:()=>e("div",{style:{position:"relative",height:"2000px"}},e("sqm-scroll",{"button-text":"Scroll","scroll-id":"my-id","scroll-animation":"smooth"}),e("div",{style:{position:"absolute",bottom:"0"}},e("sqm-text",{slot:"label",id:"my-id"},e("h3",null,"Earn more rewards"),e("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")))),ScrollAutoAnimation:()=>e("div",{style:{position:"relative",height:"2000px"}},e("sqm-scroll",{"button-text":"Scroll","scroll-id":"my-id","scroll-animation":"auto"}),e("div",{style:{position:"absolute",bottom:"0"}},e("sqm-text",{slot:"label",id:"my-id"},e("h3",null,"Earn more rewards"),e("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")))),ScrollTabGroup:()=>e("div",{style:{position:"relative",height:"2000px"}},e("sqm-scroll",{"button-text":"Redeem rewards","scroll-id":"tab-3","scroll-animation":"smooth"}),e("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 '})),ScrollTabGroupInner:()=>e("div",{style:{position:"relative",height:"2000px"}},e("sqm-scroll",{"button-text":"Redeem rewards","scroll-tag-name":"sqm-reward-exchange-list"}),e("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 '})),ShoelaceProps:()=>e("div",null,e("div",{style:{display:"flex",gap:"60px"}},e("div",{style:{textAlign:"center"}},e("h3",null,"Type:"),e("sqm-scroll",{"button-type":"primary"},"Primary"),e("br",null),e("sqm-scroll",{"button-type":"success"},"Success"),e("br",null),e("sqm-scroll",{"button-type":"neutral"},"Neutral"),e("br",null),e("sqm-scroll",{"button-type":"warning"},"Warning"),e("br",null),e("sqm-scroll",{"button-type":"danger"},"Danger")),e("div",{style:{textAlign:"center"}},e("h3",null,"Outline:"),e("sqm-scroll",{outline:!0,"button-type":"primary"},"Primary"),e("br",null),e("sqm-scroll",{outline:!0,"button-type":"success"},"Success"),e("br",null),e("sqm-scroll",{outline:!0,"button-type":"neutral"},"Neutral"),e("br",null),e("sqm-scroll",{outline:!0,"button-type":"warning"},"Warning"),e("br",null),e("sqm-scroll",{outline:!0,"button-type":"danger"},"Danger"))),e("br",null)," ",e("hr",null),e("h3",null,"Text:"),e("sqm-scroll",{"button-type":"text"},"Text"),e("br",null)," ",e("hr",null),e("h3",null,"Size:"),e("sqm-scroll",{size:"small"},"Small"),e("br",null),e("sqm-scroll",{size:"medium"},"Medium"),e("br",null),e("sqm-scroll",{size:"large"},"Large"),e("br",null)," ",e("hr",null),e("h3",null,"Pill:"),e("sqm-scroll",{pill:!0},"Button"),e("br",null)," ",e("hr",null),e("h3",null,"Icon:"),e("sqm-scroll",{"button-type":"primary",iconName:"facebook"},"Icon Name"),e("br",null),e("sqm-scroll",{iconName:"gear",iconSlot:"prefix"},"Icon Slot Prefix"),e("br",null),e("sqm-scroll",{iconName:"gear",iconSlot:"suffix"},"Icon Slot Suffix"),e("br",null)," ",e("hr",null),e("h3",null,"Circle:"),e("sqm-scroll",{circle:!0},"X"),e("br",null)," ",e("hr",null),e("h3",null,"Mobile Friendly:"),e("sqm-scroll",{mobile:!0},"Button"),e("br",null)," ",e("hr",null))}),Yy=Object.freeze({__proto__:null,default:{title:"Components/Share Button",parameters:{scenario:'@author:noah\n@owner:noah\nFeature: Share Button\n\n The share button redirects users to a platform where they can share their referral link\n\n @motivating\n @ui\n Scenario Outline: Share button displays for various platforms\n Given the share button\'s medium prop is "<medium>"\n And the button\'s child is text saying "BUTTON_TEXT"\n When the share button is rendered\n Then the button has text "BUTTON_TEXT"\n And the button is <colour>\n And it displays an <icon> beside the text\n And clicking the button redirects to an appropriate link\n Examples:\n | medium | colour | icon |\n | facebook | #1877f2 | facebook logo |\n | twitter | #000000 | twitter x logo |\n | email | #666666 | envelope |\n | direct | brand colour | paper plane |\n | linkedin | #0077b5 | linkedIn logo |\n | sms | #34DA50 | chat bubble |\n | fbmessenger | #0084ff | messenger logo |\n | whatsapp | #25d366 | whatsapp logo |\n | linemessenger | #00B300 | linemessenger logo |\n | pinterest | #e60023 | pinterest logo |\n\n @minutia\n @ui\n Scenario Outline: Default icons can be overwritten\n Given a share button for any medium with <iconPropValue>\n When the share button is rendered\n Then it displays a <iconPropValue> instead of the share mediums default icon\n Examples:\n | iconPropValue |\n | basket |\n | bluetooth |\n | bandaid |\n\n @motivating\n @ui\n Scenario Outline: Default share medium colours can be overwritten\n Given a share button for any medium with <backgroundColourPropValue>\n When the share button is rendered\n Then the share button is <backgroundColourPropValue>\n Examples:\n | backgroundColourPropValue |\n | blue |\n | black |\n | green |\n\n @minutia\n @ui\n Scenario Outline: Share medium icons and text can be hidden\n Given a share button with <prop> <value>\n When the share button is rendered\n Then <element> is hidden\n Examples:\n | prop | value | element |\n | hideicon | true | icon |\n | hidetext | true | text |\n\n @minutia\n @ui\n Scenario Outline: Icons can be on either side of the text\n Given a share button with <iconslotPropValue>\n When the share button is rendered\n Then the icon is displayed to the <direction> of the text\n Examples:\n | iconslotPropValue | direction |\n | suffix | right |\n | prefix | left |\n | prefix | left |\n\n @minutia\n Scenario: Unsupported browsers hide native share buttons\n Given the share button\'s medium prop is "direct"\n And your browser does not support the Web Share API\n Then the share button is hidden\n\n @minutia\n Scenario: SMS share buttons are hidden on non Android and iOS devices\n Given the share button\'s medium is "sms"\n And the share button is being viewed on a device which is not an Android or iOS device\n Then the share button is hidden\n\n @motivating\n Scenario: Facebook share buttons uses SquatchAndroid sharing features\n Given the share button\'s medium is "facebook"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is available\n Then tapping the share button opens the phone\'s Facebook app\n And a share activity is opened with the share link prefilled\n\n @motivating\n Scenario: SquatchAndroid falls back to the Facebook website if no app is available\n Given the share button\'s medium is "facebook"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is not available\n Then tapping the share button opens the the Facebook mobile site in the device\'s browser\n And a share activity is opened with the share link prefilled\n\n @minutia\n Scenario: A supplied program ID is used if available\n Given the program id is supplied to the component in the "programId" prop\n Then the program ID in the "programId" prop is used to retrieve share links\n\n @minutia\n Scenario: The program ID is automatically fetched from context\n Given the program id is not supplied to the component in the "programId" prop\n Then the program ID is retrieved from context'}},WithIconPrefix:()=>e(m,{medium:"whatsapp",iconslot:"prefix"},"Share"),WithIconSuffix:()=>e(m,{medium:"whatsapp",iconslot:"suffix"},"Share"),WithIconOverride:()=>e(m,{medium:"facebook",icon:"person-badge"},"Share"),TextStyle:()=>e(m,{medium:"facebook",type:"text"},"Share"),WithoutIcon:()=>e(m,{medium:"facebook",hideicon:!0},"Share"),WithoutText:()=>e(m,{medium:"facebook",hidetext:!0},"Share"),TextStyleWithoutIcon:()=>e(m,{medium:"facebook",type:"text",hideicon:!0},"Share"),WithCustomColorsAndBranding:()=>e(m,{medium:"facebook",type:"text",backgroundcolor:"red",textcolor:"yellow",iconslot:"prefix",border:"2px solid yellow",borderradius:30},"Facebook"),WithCustomBorderRadius:()=>e(m,{medium:"facebook",type:"text",borderradius:8,iconslot:"prefix"},"Facebook"),LinkLocationTest:()=>e(m,{medium:"facebook",type:"text",onClick:void 0,messageLink:"https://www.example.com"},"Click me"),FullStackIcon:()=>e("div",null,e("sqm-share-button",{medium:"facebook"},e("span",null,"Facebook")),e("br",null),e("sqm-share-button",{medium:"email"},e("span",null,"Email"))),AllMediums:()=>e("div",null,e("sqm-share-button",{medium:"facebook"},e("span",null,"Facebook")),e("br",null),e("sqm-share-button",{medium:"email"},e("span",null,"Email")),e("br",null),e("sqm-share-button",{medium:"whatsapp"},e("span",null,"WhatsApp")),e("br",null),e("sqm-share-button",{medium:"linkedin"},e("span",null,"Linkedin")),e("br",null),e("sqm-share-button",{medium:"twitter"},e("span",null,"Post on X")),e("br",null),e("sqm-share-button",{medium:"pinterest"},e("span",null,"Pinterest")),e("br",null),e("sqm-share-button",{medium:"fbmessenger"},e("span",null,"Messenger")),e("br",null),e("sqm-share-button",{medium:"sms"},e("span",null,"SMS")),e("br",null),e("sqm-share-button",{medium:"linemessenger"},e("span",null,"Line Messenger")),e("br",null),e("sqm-share-button",{medium:"direct"},e("span",null,"Share")))});function zy(){const e="testestest";Nd({programId:"sam-partner-test-2",user:{id:e,accountId:e}})}const Ky=Ys((()=>{zy();const n="sam-partner-test-2",t=[$({programId:n,medium:"facebook"}),$({programId:n,medium:"twitter"}),$({programId:n,medium:"email"}),$({programId:n,medium:"direct"}),$({programId:n,medium:"sms"})];return e("div",null,t.map((n=>e("div",null,e("button",{onClick:n.onClick},"Share link (",n.medium,")")))))})),$y=Ys((()=>(zy(),e("div",null,["facebook","twitter","email","direct","sms"].map((n=>e("div",null,e("sqm-share-button",{programId:"sam-partner-test-2",medium:n},"BUTTON_TEXT")))))))),Xy=Object.freeze({__proto__:null,default:{title:"Hooks / useShareButton"},BareBonesView:Ky,RegularView:$y}),Zy=Object.freeze({__proto__:null,default:{title:"Components/Share Code",parameters:{scenario:'@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'}},ShareCode:()=>e("sqm-share-code",{tooltiptext:"Copied to Clipboard"}),CustomTooltipText:()=>e("sqm-share-code",{tooltiptext:"CUSTOM TOOLTIP TEXT"}),TextAlignCenter:()=>e("sqm-share-code",{textAlign:"center"}),TextAlignRight:()=>e("sqm-share-code",{textAlign:"right"}),CustomTooltipDuration:()=>e("sqm-share-code",{tooltiplifespan:5e3,tooltiptext:"CUSTOM TOOLTIP TEXT"}),CopyButton:()=>e(re,{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!",isCopyIcon:!1}),CopyButtonBelow:()=>e(re,{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!",buttonStyle:"button-below"}),Error:()=>e(re,{copyString:"https://noah.example.com",disabled:!0,open:!0,tooltiptext:"Copied!",error:!0})}),Qy=()=>{},ew={copyTextViewProps:{copyString:"https://ssqt.co/abc123",open:!1,tooltiptext:"Copied!"},allowCustomization:!0,customizeLinkLabel:"Customize Link",saveLabelText:"Save",savingLabelText:"Saving...",cancelLabelText:"Cancel",editLabelText:"Edit your link",charactersRemainingText:"{count} characters remaining",validatingLabelText:"Validating...",isEditing:!1,editValue:"",domainPrefix:"https://ssqt.co/",editsRemaining:3,maxEdits:5,limitReached:!1,validationError:null,isValidating:!1,isSaving:!1,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:!1,customizeDisabledTooltip:"Link customization is not available.",minCharactersText:"Minimum 3 characters",onCustomizeClick:Qy,onEditValueChange:Qy,onSave:Qy,onCancel:Qy},nw=Object.freeze({__proto__:null,default:{title:"Components/Share Link",parameters:{scenario:'@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'}},Default:()=>e(re,{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!"}),Tooltip:()=>e(re,{copyString:"https://noah.example.com",tooltiptext:"Some text for the tooltip",open:!0}),Disabled:()=>e(re,{copyString:"https://noah.example.com",disabled:!0,open:!0,tooltiptext:"Copied!"}),Error:()=>e(re,{copyString:"https://noah.example.com",disabled:!0,open:!0,tooltiptext:"Copied!",error:!0}),TextAlignCenter:()=>e("sqm-share-link",{textAlign:"center"}),TextAlignRight:()=>e("sqm-share-link",{textAlign:"right"}),CopyButton:()=>e(re,{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!",isCopyIcon:!1}),CopyButtonBelow:()=>e(re,{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!",buttonStyle:"button-below"}),CustomStyles:()=>e(re,{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!",backgroundColor:"#1ed760",borderRadius:"30px",textColor:"#121212",buttonType:"primary"}),CustomStylesWithDemoHooks:()=>e("sqm-share-link",{demoData:{copyTextViewProps:{copyString:"https://noah.example.com",open:!1,tooltiptext:"Copied!",backgroundColor:"#1ed760",borderRadius:"30px",textColor:"red",buttonType:"primary",borderColor:"#121212"}},backgroundColor:"#1ed760"}),FullStack:()=>e("sqm-share-link",null),CustomizeUrlDefault:()=>e(X,{...ew}),CustomizeUrlEditing:()=>e(X,{...{...ew,isEditing:!0,editValue:"nvoiwb18",charactersRemaining:7}}),CustomizeUrlCustomized:()=>e(X,{...{...ew,copyTextViewProps:{...ew.copyTextViewProps,copyString:"https://ssqt.co/bobtesterson"}}}),CustomizeUrlLimitReached:()=>e(X,{...{...ew,copyTextViewProps:{...ew.copyTextViewProps,copyString:"https://ssqt.co/bobtesterson"},editsRemaining:0,limitReached:!0}}),CustomizeUrlDisabled:()=>e(X,{...{...ew,customizeDisabled:!0}}),CustomizeUrlValidationError:()=>e(X,{...{...ew,isEditing:!0,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."}}}),CustomizeUrlInvalidCharacters:()=>e(X,{...{...ew,isEditing:!0,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."}}}),CustomizeUrlProfanity:()=>e(X,{...{...ew,isEditing:!0,editValue:"nvoiwb18",charactersRemaining:7,validationError:{code:"BLOCKED_WORD",title:"Please try a different link",description:"This link contains a restricted word."}}}),CustomizeUrlSaving:()=>e(X,{...{...ew,isEditing:!0,editValue:"bobtesterson",isSaving:!0}}),CustomizeUrlEditingMobileNarrow:()=>e("div",{style:{width:"320px",border:"1px dashed red"}},e(X,{...{...ew,isEditing:!0,domainPrefix:"https://referral-marketing.mybrandname.com/"}}))});function tw(){const e="zach.harrison@referralsaasquatch.com";Nd({programId:"klip-referral-program",user:{id:e,accountId:e}})}const aw=Ys((()=>{tw();const n=Z({programId:"klip-referral-program",tooltiplifespan:0,tooltiptext:""});return e("div",null,"Sharelink:"," ",e("code",{style:{borderStyle:"solid",borderWidth:"1px",padding:"2px"}},n.copyTextViewProps.copyString))})),rw=Ys((()=>(tw(),e(X,{...Z({programId:"klip-referral-program",tooltiptext:"Copied to clipboard",tooltiplifespan:1e3})})))),iw=Ys((()=>(tw(),e(X,{...Z({programId:"klip-referral-program",tooltiptext:"Copied to clipboard",tooltiplifespan:500})})))),ow=Ys((()=>(tw(),e(X,{...Z({programId:"klip-referral-program",tooltiptext:"Copied to clipboard",tooltiplifespan:1e3,allowCustomization:!0})})))),sw=Object.freeze({__proto__:null,default:{title:"Hooks / useShareLink"},BareBonesView:aw,RegularView:rw,FastTooltip:iw,CustomizeUrlEnabled:ow}),lw=Object.freeze({__proto__:null,default:{title:"Components/Tabs",parameters:{scenario:'@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'}},SimpleTabs:()=>e("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 '}),CustomColor:()=>e("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 '}),ManyTabs:()=>e("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 '}),SingleTab:()=>e("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 '}),ReferralProgram:()=>e("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 '}),LoyaltyProgram:()=>e("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 '}),BottomTabs:()=>e("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 '}),LeftTabs:()=>e("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 '}),RightTabs:()=>e("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 '})});function dw({matrix:n,props:t,Component:a}){const r=function(...e){var n=[],t=e.length-1;return function a(r,i){for(var o=0,s=e[i].length;o<s;o++){var l=r.slice(0);l.push(e[i][o]),i==t?n.push(l):a(l,i+1)}}([],0),n}(...Object.keys(n).map((e=>n[e].map((n=>({[e]:n})))))),i=r.map((e=>e.reduce(((e,n)=>({...e,...n})),{})));return i.map((n=>{const r={...t,...n};return e("div",null,e(uw,{values:r}),e("hr",null)," ",e("br",null),e(a,{...r}),e("br",null))}))}function uw({values:n}){return e("table",null,e("tbody",null,Object.keys(n).map((t=>e("tr",null,e("th",null,t),e("td",null,JSON.stringify(n[t])))))))}const cw=(n,t)=>e("div",{class:"resizer"},t),mw={display:"inline-flex",gap:"32px"},pw={width:"347px",minWidth:"347px",resize:"horizontal",height:"fit-content",overflow:"hidden"},hw={callbacks:{sendEvent:()=>{},onClick:()=>{}},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:!1,showProgressBar:!1,steps:!1,buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:!1,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:!1,loadingEvent:!1}},gw={callbacks:{sendEvent:()=>{},onClick:()=>{}},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:!1,showProgressBar:!0,steps:!0,buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:!1,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:!1,loadingEvent:!1}},fw={callbacks:{sendEvent:()=>{},onClick:()=>{}},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:!1,completedText:"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",showProgressBar:!0,steps:!1,progressBarUnit:"$",buttonText:"Take survey",buttonLink:"https://example.com/",openNewTab:!1,rewardDuration:null,expiryMessage:"Ends {endDate}",startsOnMessage:"Starts {startDate}",endedMessage:"Ended {endDate}",finite:0,goal:500,locale:"en"},states:{progress:100,loading:!1,loadingEvent:!1}},bw=Object.freeze({__proto__:null,default:{title:"Components/Task Card/",parameters:{scenario:'@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@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 |'}},TaskCard:()=>{const n={rewardDuration:"2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z",repeatable:!0};return e("div",{style:mw},e(cw,null,e("h4",null,"Not Repeatable"),e(b,{...hw,content:{...hw.content,description:""},states:{...hw.states,progress:0}}),e("h5",null),e(b,{...gw,content:{...gw.content,description:""},states:{...gw.states,progress:0}}),e("h5",null),e(b,{...fw,content:{...fw.content,description:""},states:{...fw.states,progress:230}})),e(cw,null,e("h4",null,"Repeatable"),e(b,{...hw,content:{...hw.content,repeatable:!0},states:{...hw.states,progress:2}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0},states:{...gw.states,progress:7}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0},states:{...fw.states,progress:650}})),e(cw,null,e("h4",null,"Complete"),e(b,{...hw,states:{...hw.states,progress:1}}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:5}}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:500}})),e(cw,null,e("h4",null,"Unavailable"),e(b,{...hw,states:{...hw.states,progress:0},...n}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:3},...n}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:250},...n})))},TaskCardNotRepeatable:()=>e("div",{style:mw},e("div",{style:pw},e("h4",null,"One Action"),e(b,{...hw,states:{...hw.states,progress:0}}),e("h5",null),e(b,{...hw,states:{...hw.states,progress:1}}),e("h5",null)),e("div",{style:pw},e("h4",null,"A Couple Actions"),e(b,{...gw,states:{...gw.states,progress:1}}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:5}}),e("h5",null)),e("div",{style:pw},e("h4",null,"Many Actions"),e(b,{...fw,states:{...fw.states,progress:230}}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:500}}),e("h5",null))),TaskCardRepeatable:()=>e("div",{style:mw},e("div",{style:pw},e("h4",null,"One Action"),e(b,{...hw,content:{...hw.content,repeatable:!0},states:{...hw.states,progress:0}}),e("h5",null),e(b,{...hw,content:{...hw.content,repeatable:!0},states:{...hw.states,progress:1}}),e("h5",null)),e("div",{style:pw},e("h4",null,"A Couple Actions"),e(b,{...gw,content:{...gw.content,repeatable:!0},states:{...gw.states,progress:0}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0},states:{...gw.states,progress:5}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0},states:{...gw.states,progress:7}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0},states:{...gw.states,progress:10}}),e("h5",null)),e("div",{style:pw},e("h4",null,"Many Actions"),e(b,{...fw,content:{...fw.content,repeatable:!0},states:{...fw.states,progress:0}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0},states:{...fw.states,progress:500}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0},states:{...fw.states,progress:650}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0},states:{...fw.states,progress:1e3}}),e("h5",null))),TaskCardRepeatableFinite:()=>e("div",{style:mw},e("div",{style:pw},e("h4",null,"One Action"),e(b,{...hw,content:{...hw.content,repeatable:!0,finite:2},states:{...hw.states,progress:0}}),e("h5",null),e(b,{...hw,content:{...hw.content,repeatable:!0,finite:2},states:{...hw.states,progress:1}}),e("h5",null),e(b,{...hw,content:{...hw.content,repeatable:!0,finite:2},states:{...hw.states,progress:2}}),e("h5",null)),e("div",{style:pw},e("h4",null,"A Couple Actions"),e(b,{...gw,content:{...gw.content,repeatable:!0,finite:2},states:{...gw.states,progress:2}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0,finite:2},states:{...gw.states,progress:5}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0,finite:2},states:{...gw.states,progress:10}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0,finite:3},states:{...gw.states,progress:12}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0,finite:3},states:{...gw.states,progress:15}}),e("h5",null)),e("div",{style:pw},e("h4",null,"Many Actions"),e(b,{...fw,content:{...fw.content,repeatable:!0,finite:2},states:{...fw.states,progress:200}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0,finite:3},states:{...fw.states,progress:500}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0,finite:2},states:{...fw.states,progress:1e3}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0,finite:3},states:{...fw.states,progress:1200}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0,finite:3},states:{...fw.states,progress:1500}}),e("h5",null))),TaskCardEndDate:()=>{const n={rewardDuration:on.DateTime.now().minus({days:1}).toISO()+"/"+on.DateTime.now().plus({days:1}).toISO()},t={...n,repeatable:!0};return e("div",{style:mw},e("div",{style:pw},e("h4",null,"One Action"),e(b,{...hw,content:{...hw.content,...n}}),e("h5",null),e(b,{...hw,content:{...hw.content,...t}}),e("h5",null),e(b,{...hw,content:{...hw.content,...t},states:{...hw.states,progress:1}}),e("h5",null)),e("div",{style:pw},e("h4",null,"A Couple Actions"),e(b,{...hw,content:{...gw.content,...n}}),e("h5",null),e(b,{...hw,content:{...gw.content,...t}}),e("h5",null),e(b,{...hw,content:{...gw.content,...t},states:{...gw.states,progress:5}}),e("h5",null)),e("div",{style:pw},e("h4",null,"Many Actions"),e(b,{...hw,content:{...fw.content,...n}}),e("h5",null),e(b,{...hw,content:{...fw.content,...t}}),e("h5",null),e(b,{...hw,content:{...fw.content,...t},states:{...fw.states,progress:1e3}}),e("h5",null)))},TaskCardLoading:()=>{const n={states:{loading:!0,progress:0,loadingEvent:!1}};return e("div",{style:mw},e("div",{style:pw},e("h4",null,"One Action"),e(b,{...hw,...n})," ",e("h5",null),e(b,{...hw,...n})," ",e("h5",null)),e("div",{style:pw},e("h4",null,"A Couple Actions"),e(b,{...gw,...n})," ",e("h5",null),e(b,{...gw,...n})," ",e("h5",null)),e("div",{style:pw},e("h4",null,"Many Actions"),e(b,{...fw,...n})," ",e("h5",null),e(b,{...fw,...n})," ",e("h5",null)))},TaskCardNotStarted:()=>{const n={rewardDuration:on.DateTime.now().plus({days:1}).toISO()+"/"+on.DateTime.now().plus({days:2}).toISO()},t={...n,repeatable:!0};return e("div",{style:mw},e("div",{style:pw},e("h4",null,"One Action"),e(b,{...hw,states:{...hw.states,progress:0},content:{...hw.content,...n}}),e("h5",null),e(b,{...hw,states:{...hw.states,progress:1},content:{...hw.content,...n}}),e("h5",null),e(b,{...hw,states:{...hw.states,progress:0},content:{...hw.content,...t}}),e("h5",null),e(b,{...hw,states:{...hw.states,progress:1},content:{...hw.content,...t}}),e("h5",null)),e("div",{style:pw},e("h4",null,"A Couple Actions"),e(b,{...gw,states:{...gw.states,progress:1},content:{...gw.content,...n}}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:1},content:{...gw.content,...n}}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:1},content:{...gw.content,...t}}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:1},content:{...gw.content,...t}}),e("h5",null)),e("div",{style:pw},e("h4",null,"Many Actions"),e(b,{...fw,states:{...fw.states,progress:100},content:{...fw.content,...n}}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:500},content:{...fw.content,...n}}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:100},content:{...fw.content,...t}}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:500},content:{...fw.content,...t}}),e("h5",null)))},TaskCardEnded:()=>{const n={rewardDuration:on.DateTime.now().minus({days:2}).toISO()+"/"+on.DateTime.now().minus({days:1}).toISO()},t={...n,repeatable:!0};return e("div",{style:mw},e("div",{style:pw},e("h4",null,"One Action"),e(b,{...hw,states:{...hw.states,progress:0},content:{...hw.content,...n}}),e("h5",null),e(b,{...hw,states:{...hw.states,progress:1},content:{...hw.content,...n}}),e("h5",null),e(b,{...hw,states:{...hw.states,progress:0},content:{...hw.content,...t}}),e("h5",null),e(b,{...hw,states:{...hw.states,progress:1},content:{...hw.content,...t}}),e("h5",null)),e("div",{style:pw},e("h4",null,"A Couple Actions"),e(b,{...gw,states:{...gw.states,progress:1},content:{...gw.content,...n}}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:1},content:{...gw.content,...n}}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:1},content:{...gw.content,...t}}),e("h5",null),e(b,{...gw,states:{...gw.states,progress:1},content:{...gw.content,...t}}),e("h5",null)),e("div",{style:pw},e("h4",null,"Many Actions"),e(b,{...fw,states:{...fw.states,progress:100},content:{...fw.content,...n}}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:500},content:{...fw.content,...n}}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:100},content:{...fw.content,...t}}),e("h5",null),e(b,{...fw,states:{...fw.states,progress:500},content:{...fw.content,...t}}),e("h5",null)))},TaskCardButtonHidden:()=>{const n={rewardDuration:"2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z",repeatable:!0};return e("div",{style:mw},e(cw,null,e("h4",null,"Not Repeatable"),e(b,{...hw,content:{...hw.content,description:"",hideButton:!0},states:{...hw.states,progress:0}}),e("h5",null),e(b,{...gw,content:{...gw.content,description:"",hideButton:!0},states:{...gw.states,progress:0}}),e("h5",null),e(b,{...fw,content:{...fw.content,description:"",hideButton:!0},states:{...fw.states,progress:230}})),e(cw,null,e("h4",null,"Repeatable"),e(b,{...hw,content:{...hw.content,repeatable:!0,hideButton:!0},states:{...hw.states,progress:2}}),e("h5",null),e(b,{...gw,content:{...gw.content,repeatable:!0,hideButton:!0},states:{...gw.states,progress:7}}),e("h5",null),e(b,{...fw,content:{...fw.content,repeatable:!0,hideButton:!0},states:{...fw.states,progress:650}})),e(cw,null,e("h4",null,"Complete"),e(b,{...hw,content:{...hw.content,hideButton:!0},states:{...hw.states,progress:1}}),e("h5",null),e(b,{...gw,content:{...gw.content,hideButton:!0},states:{...gw.states,progress:5}}),e("h5",null),e(b,{...fw,content:{...fw.content,hideButton:!0},states:{...fw.states,progress:500}})),e(cw,null,e("h4",null,"Unavailable"),e(b,{...hw,content:{...hw.content,hideButton:!0},states:{...hw.states,progress:0},...n}),e("h5",null),e(b,{...gw,content:{...gw.content,hideButton:!0},states:{...gw.states,progress:3},...n}),e("h5",null),e(b,{...fw,content:{...fw.content,hideButton:!0},states:{...fw.states,progress:250},...n})))},ProgressBar:()=>e("div",null,e(dw,{matrix:{progress:[0,100,500,650,1200]},props:{progress:0,goal:500,progressBarUnit:"$"},Component:Q})),ProgressBarSteps:()=>e("div",null,e(dw,{matrix:{progress:[0,1,5,7,12]},props:{progress:0,steps:!0,goal:5},Component:Q})),ProgressBarRepeatable:()=>e("div",null,e(dw,{matrix:{progress:[0,250,500,750,1e3,1250]},props:{progress:0,goal:500,progressBarUnit:"$",repeatable:!0},Component:Q})),ProgressBarStepsRepeatable:()=>e("div",null,e(dw,{matrix:{progress:[0,1,5,7,12]},props:{progress:0,steps:!0,goal:5,repeatable:!0},Component:Q})),ProgressBarFinite:()=>e("div",null,e(dw,{matrix:{progress:[0,250,500,750,1e3,1250]},props:{progress:0,goal:500,progressBarUnit:"$",repeatable:!0,finite:2},Component:Q})),ProgressBarStepsFinite:()=>e("div",null,e(dw,{matrix:{progress:[0,1,5,7,10,12]},props:{progress:0,steps:!0,goal:5,repeatable:!0,finite:2},Component:Q}))});function yw(){const e="sam+klip@saasquat.ch",n=e;return Nd({programId:"klip-referral-program",user:{id:e,accountId:n}}),{id:e,accountId:n}}const ww=Ys((()=>(yw(),e("sqm-task-card",{"card-title":"Comment on 5 articles","button-text":"Start reading",goal:5,steps:!0,"show-progress-bar":!0,"event-key":"testEvent","open-new-tab":!0})))),vw=Ys((()=>(yw(),e("sqm-card-feed",null,e("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:!0,"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"}),e("sqb-program-section",{"program-id":"klip-loyalty"},e("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"})),e("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"}),e("sqb-program-section",{"program-id":"klip-loyalty"},e("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"})),e("sqm-task-card",{"reward-amount":"100",goal:5,repeatable:!0,"show-progress-bar":"true",steps:!0,"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"}),e("sqb-program-section",{"program-id":"klip-loyalty"},e("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"})),e("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"}),e("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"}),e("sqb-program-section",{"program-id":"klip-loyalty"},e("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"})),e("sqb-conditional-section",{condition:"'champion' in user.segments"},e("sqb-program-section",{"program-id":"klip-loyalty"},e("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"}))))))),xw=Object.freeze({__proto__:null,default:{title:"Hooks / useTaskCard"},TaskCard:ww,TaskCardFeed:vw}),Tw={progress:2,goal:4,steps:!0},Sw=Object.freeze({__proto__:null,default:{title:"Components/Progress Bar"},TaxAndPayoutsProgressBar:()=>e(ee,{...Tw,stageCount:4,currentStage:2})}),Ew=Object.freeze({__proto__:null,default:{title:"Components/Text"},PurpleText:()=>e("sqm-text",{textColor:"slateblue"},e("p",null,"This is the text component")),CustomFontSize:()=>e("sqm-text",{fontSize:36},e("p",null,"This is the text component"))}),Cw=Object.freeze({__proto__:null,default:{title:"Components/Timeline",parameters:{scenario:'@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@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'}},TimelineWith1Reward:()=>e("div",null,e("sqm-timeline",null,e("sqm-timeline-entry",{textColor:"red",lineColor:"red",reward:"75",unit:"points",desc:"Your friends signs up for a free trial"})),e("br",null)," ",e("hr",null)," ",e("br",null),e("sqm-timeline",{icon:"circle"},e("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}))),TimelineWith2Rewards:()=>e("div",null,e("sqm-timeline",null,e("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),e("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"})),e("br",null)," ",e("hr",null)," ",e("br",null),e("sqm-timeline",{icon:"circle"},e("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),e("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}))),TimelineWith3Rewards:()=>e("div",null,e("sqm-timeline",null,e("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),e("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),e("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"})),e("br",null)," ",e("hr",null)," ",e("br",null),e("sqm-timeline",{icon:"circle"},e("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),e("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),e("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"}))),TimelineWith4Rewards:()=>e("div",null,e("sqm-timeline",null,e("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),e("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),e("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"}),e("sqm-timeline-entry",{reward:"$1000",unit:"visa giftcard",desc:"Your friend purchases Klip Team"})),e("br",null)," ",e("hr",null)," ",e("br",null),e("sqm-timeline",{icon:"circle"},e("sqm-timeline-entry",{reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),e("sqm-timeline-entry",{reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),e("sqm-timeline-entry",{reward:"$200",unit:"visa giftcard",desc:"Your friend qualifies as a good fit for Klip Team"}),e("sqm-timeline-entry",{reward:"$1000",unit:"visa giftcard",desc:"Your friend purchases Klip Team"}))),TimelineWithCustomColors:()=>e("sqm-timeline",null,e("sqm-timeline-entry",{"text-color":"red","line-color":"red",reward:"75",unit:"points",desc:"Your friends signs up for a free trial"}),e("sqm-timeline-entry",{"text-color":"red","line-color":"red",reward:"$50",unit:"visa giftcard",desc:"Your friends signs up for Klip Personal"}),e("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"}),e("sqm-timeline-entry",{"text-color":"red","line-color":"red",reward:"$1000",unit:"visa giftcard",desc:"Your friend purchases Klip Team"}))}),Rw=Object.freeze({__proto__:null,default:{title:"Components/Titled Section",parameters:{scenario:'@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 |'}},AlignLeft:()=>e("sqm-titled-section",{"text-align":"left"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards"),e("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"))),AlignCenter:()=>e("sqm-titled-section",{"text-align":"center"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards"),e("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"))),AlignRight:()=>e("sqm-titled-section",{"text-align":"right"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards"),e("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"))),Padding:()=>e("div",null,e("h3",null,"None"),e("sqm-titled-section",{padding:"none"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xxx-small"),e("sqm-titled-section",{padding:"xxx-small"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xx-small"),e("sqm-titled-section",{padding:"xx-small"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"x-small"),e("sqm-titled-section",{padding:"x-small"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"small"),e("sqm-titled-section",{padding:"small"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"medium"),e("sqm-titled-section",{padding:"medium"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"large"),e("sqm-titled-section",{padding:"large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"x-large"),e("sqm-titled-section",{padding:"x-large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xx-large"),e("sqm-titled-section",{padding:"xx-large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xxx-large"),e("sqm-titled-section",{padding:"xxx-large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xxxx-large"),e("sqm-titled-section",{padding:"xxxx-large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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")))),LabelMargin:()=>e("div",null,e("h3",null,"None"),e("sqm-titled-section",{"label-margin":"none"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xxx-small"),e("sqm-titled-section",{"label-margin":"xxx-small"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xx-small"),e("sqm-titled-section",{"label-margin":"xx-small"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"x-small"),e("sqm-titled-section",{"label-margin":"x-small"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"small"),e("sqm-titled-section",{"label-margin":"small"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"medium"),e("sqm-titled-section",{"label-margin":"medium"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"large"),e("sqm-titled-section",{"label-margin":"large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"x-large"),e("sqm-titled-section",{"label-margin":"x-large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xx-large"),e("sqm-titled-section",{"label-margin":"xx-large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xxx-large"),e("sqm-titled-section",{"label-margin":"xxx-large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))),e("br",null),e("hr",null),e("br",null),e("h3",null,"xxxx-large"),e("sqm-titled-section",{"label-margin":"xxxx-large"},e("sqm-text",{slot:"label"},e("h3",null,"Earn more rewards")),e("sqm-text",{slot:"content"},e("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"))))}),Dw=Object.freeze({__proto__:null,default:{title:"Tests/User Name"},DemoData:()=>e("sqm-user-name",{demoData:{loading:!1,loadingText:"...",username:"Test Testerson"}}),Username:()=>e("sqm-user-name",null)}),Iw={initialiseLoading:!1,email:"testemail@example.com",loading:!1,verifyFailed:!1,emailResent:!1},Aw=Object.freeze({__proto__:null,default:{title:"Components/Widget Code Verification"},Default:()=>e("sqm-code-verification",{demoData:{states:Iw}}),InitialLoading:()=>e("sqm-code-verification",{demoData:{states:{...Iw,initialiseLoading:!0}}}),Loading:()=>e("sqm-code-verification",{demoData:{states:{...Iw,loading:!0}}}),CodeResent:()=>e("sqm-code-verification",{demoData:{states:{...Iw,emailResent:!0}}}),VerificationFailed:()=>e("sqm-code-verification",{demoData:{states:{...Iw,verifyFailed:!0}}})}),qw={email:"",error:!1,loading:!1,initialLoading:!1,sendCodeError:!1},kw=Object.freeze({__proto__:null,default:{title:"Components/Widget Email Verification"},Default:()=>e("sqm-email-verification",{demoData:{}}),EmailIsPrefilled:()=>e("div",null,e("sqm-text",null,e("h4",null,"Verify your email")),e("sqm-text",null,e("sub",null,"To get your cash paid out directly to your bank account, please complete your account setup")),e("sqm-email-verification",{demoData:{states:{...qw,email:"test@example.com"}}})),Loading:()=>e("sqm-email-verification",{demoData:{states:{...qw,initialLoading:!0}}}),SaveLoading:()=>e("sqm-email-verification",{demoData:{states:{...qw,loading:!0}}}),WithHeader:()=>e("div",null,e("sqm-text",null,e("h4",null,"Verify your email")),e("sqm-text",null,e("sub",null,"To get your cash paid out directly to your bank account, please complete your account setup")),e("sqm-email-verification",{demoData:{states:{...qw,email:"test@example.com"}}})),InvalidEmail:()=>e("sqm-email-verification",{demoData:{states:{...qw,error:!0}}}),SendCodeError:()=>e("sqm-email-verification",{demoData:{states:{...qw,sendCodeError:!0}}})}),Pw={states:{showVerification:!1,hideSteps:!1,disabled:!1,loading:!1,hideBackButton:!1,formState:{bankCountry:"US",paymentMethodChecked:"toBankAccount"},hasPayPal:!1,isPartner:!1,saveDisabled:!1,thresholds:[],currency:"USD",loadingError:!1,email:"test@example.com",showModal:!1},callbacks:{onVerificationHide:()=>{},onVerification:()=>{},onSubmit:async()=>console.log("Submit"),setPaymentMethodChecked:()=>{},setPaymentScheduleChecked:()=>{},setCountrySearch:()=>{},onBack:async()=>console.log("back"),onModalOpen:()=>{},onModalClose:()=>{}},refs:{formRef:{current:null}}},Nw=Object.freeze({__proto__:null,default:{title:"Components/Banking Information Form"},BankingInfoFormDefault:()=>e("sqm-banking-info-form",null),BankingInfoFormDefaultLoading:()=>e("sqm-banking-info-form",{demoData:{states:{...Pw.states,loading:!0}}}),BankingInfoFormDefaultWithLoadingError:()=>e("sqm-banking-info-form",{demoData:{states:{...Pw.states,loading:!0,loadingError:!0}}}),BankingInfoFormDefaultWithValidationErrors:()=>e("sqm-banking-info-form",{demoData:{states:{...Pw.states,formState:{...Pw.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"}}}}}}}),BankingInfoFormCountryUSCurrencyUSD:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{bankCountry:"US"},currency:"USD"}}}),BankingInfoFormGeneralError:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,errors:{general:!0}}}}}),BankingInfoFormCountryUSCurrencyUSDLoading:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{bankCountry:"US"},loading:!0,currency:"USD"}}}),BankingInfoFormCountryARCurrencyARS:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,bankCountry:"AR",paymentScheduleChecked:"FIXED_DAY",paymentMethodChecked:"toBankAccount"},currency:"ARS"}}}),BankingInfoFormCountryMXCurrencyMXN:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,bankCountry:"MX",paymentScheduleChecked:"FIXED_DAY",paymentMethodChecked:"toBankAccount"},currency:"MXN"}}}),BankingInfoFormCountryUSCurrencyGBP:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,bankCountry:"US"},currency:"GBP"}}}),BankingInfoFormCountryCanadaCurrencyCAD:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,bankCountry:"CA"},currency:"CAD"}}}),BankingInfoFormCountryCanadaCurrencyUSD:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,bankCountry:"CA"},currency:"USD"}}}),BankingInfoFormCountrySpainCurrencyUSD:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,bankCountry:"ES"},currency:"USD"}}}),BankingInfoFormIsPartner:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,isPartner:!0,currency:"USD"}}}),BankingInfoFormPaypalChecked:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,paymentMethodChecked:"toPayPalAccount"}}}}),BankingInfoFormPaypalCheckedLoading:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,loading:!0,formState:{...Pw.states.formState,paymentMethodChecked:"toPayPalAccount"}}}}),BankingInfoFormWithBalanceThresholdPaymentSchedule:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,bankCountry:"US",paymentScheduleChecked:"BALANCE_THRESHOLD"},currency:"USD"}}}),BankingInfoFormWithBalanceThresholdPaymentScheduleWithError:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{errors:{inputErrors:{balanceThreshold:{type:"required"}}},...Pw.states.formState,bankCountry:"US",paymentScheduleChecked:"BALANCE_THRESHOLD"},currency:"USD"}}}),BankingInfoFormWithBalanceThresholdPaymentScheduleLoading:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,loading:!0,formState:{...Pw.states.formState,bankCountry:"US",paymentScheduleChecked:"BALANCE_THRESHOLD"},currency:"USD"}}}),BankingInfoFormWithFixedDayPaymentSchedule:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{...Pw.states.formState,bankCountry:"US",paymentScheduleChecked:"FIXED_DAY"},currency:"USD"}}}),BankingInfoFormWithFixedDayPaymentScheduleWithError:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,formState:{errors:{inputErrors:{fixedDay:{type:"required"}}},...Pw.states.formState,bankCountry:"US",paymentScheduleChecked:"FIXED_DAY"},currency:"USD"}}}),BankingInfoFormWithFixedDayPaymentScheduleLoading:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,loading:!0,formState:{...Pw.states.formState,bankCountry:"US",paymentScheduleChecked:"FIXED_DAY"},currency:"USD"}}}),BankingInfoFormVerififyIdentityModal:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,isPartner:!0,showVerification:!0,formState:{...Pw.states.formState,bankCountry:"US",paymentScheduleChecked:"FIXED_DAY"},currency:"USD"}}}),BankingInfoFormModalOpen:()=>e("sqm-banking-info-form",{demoData:{...Pw,states:{...Pw.states,showModal:!0}}})}),Fw={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:"This is usually temporary. Please review your information and try again in a few minutes. If the 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}."}},Lw={onClick:()=>{},onVerifyClick:()=>{},onEditPayoutInfo:()=>{},onNewFormCancel:()=>{},onNewFormClick:()=>{}},_w=(n={})=>({payoutDetailsCardSlot:e("sqm-payout-details-card",{demoData:{states:{badgeStatus:"nextPayout",...n}}})}),Uw=_w(),Ow={payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"ACTIVE",documentType:"W9",documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,country:"United States",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1,loading:!1,loadingError:!1},Bw=Object.freeze({__proto__:null,default:{title:"Components/Tax And Cash Dashboard View"},ActiveW9Form:()=>e($e,{states:Ow,text:Fw,callbacks:Lw,slots:Uw}),TaxFormRequired:()=>e($e,{states:{...Ow,status:void 0,documentType:"W9",documentTypeString:sn("W9"),noFormNeeded:!1},text:Fw,callbacks:Lw,slots:Uw}),AccountUnderReview:()=>e($e,{states:{...Ow,payoutStatus:"NEW_PAYEE_REVIEW"},text:Fw,callbacks:Lw,slots:Uw}),PaymentHoldOnChange:()=>e($e,{states:{...Ow,payoutStatus:"PAYMENT_HOLD_ON_CHANGE"},text:Fw,callbacks:Lw,slots:Uw}),BalanceUnderThreshold:()=>e($e,{states:{...Ow,payoutStatus:"DONE",belowPayoutThreshold:!0,minPayoutAmount:"USD50.00"},text:Fw,callbacks:Lw,slots:_w({belowPayoutThreshold:!0})}),BalanceUnderThresholdWithHold:()=>e($e,{states:{...Ow,payoutStatus:"NEW_PAYEE_REVIEW",belowPayoutThreshold:!0,minPayoutAmount:"USD50.00"},text:Fw,callbacks:Lw,slots:_w({belowPayoutThreshold:!0})}),BeneficiaryNameInvalid:()=>e($e,{states:{...Ow,payoutStatus:"BENEFICIARY_NAME_INVALID"},text:Fw,callbacks:Lw,slots:Uw}),BeneficiaryNameMismatch:()=>e($e,{states:{...Ow,payoutStatus:"BENEFICIARY_NAME_MISMATCH"},text:Fw,callbacks:Lw,slots:Uw}),BankTaxNameMismatch:()=>e($e,{states:{...Ow,payoutStatus:"BANK_TAX_NAME_MISMATCH"},text:Fw,callbacks:Lw,slots:Uw}),WithdrawalSettingsInvalid:()=>e($e,{states:{...Ow,payoutStatus:"WITHDRAWAL_SETTINGS_INVALID"},text:Fw,callbacks:Lw,slots:Uw}),PaymentReturned:()=>e($e,{states:{...Ow,payoutStatus:"PAYMENT_RETURNED"},text:Fw,callbacks:Lw,slots:Uw}),W9ThresholdReachedHardBlock:()=>e($e,{states:{...Ow,payoutStatus:"OVER_W9_THRESHOLD",enforceUsTaxComplianceOption:"HARD_BLOCK",status:void 0},text:Fw,callbacks:Lw,slots:Uw}),VerificationRequiredLoading:()=>e($e,{states:{...Ow,payoutStatus:"VERIFICATION:REQUIRED",veriffLoading:!0,notRegistered:!0},text:Fw,callbacks:Lw,slots:Uw}),Loading:()=>e($e,{states:{...Ow,loading:!0},text:Fw,callbacks:Lw,slots:Uw}),LoadingError:()=>e($e,{states:{...Ow,loadingError:!0},text:Fw,callbacks:Lw,slots:Uw}),GeneralError:()=>e($e,{states:{...Ow,errors:{general:!0}},text:Fw,callbacks:Lw,slots:Uw}),Disabled:()=>e($e,{states:{...Ow,disabled:!0},text:Fw,callbacks:Lw,slots:Uw})}),Mw={states:{step:"1",hideSteps:!1,hideState:!1,loading:!1,disabled:!1,isPartner:!1,isUser:!1,isPartnerLegacy:!1,isUserLegacy:!1,loadingError:!1,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}}},Gw={step:"2",hideSteps:!1,disabled:!1,loading:!1,isPartner:!1,isPartnerLegacy:!1,email:"test@example.com",loadingError:!1,formState:{checked:void 0,errors:{}}},Vw={states:{showVerification:!1,step:"4",hideSteps:!1,disabled:!1,loading:!1,hasPayPal:!1,isPartner:!1,hideBackButton:!1,saveDisabled:!1,thresholds:[],loadingError:!1,email:"test@example.com",partnerEmail:"test@example.com",formState:{paymentMethodChecked:"toBankAccount"},showModal:!1},callbacks:{onVerificationHide:()=>{},onVerification:()=>{},onSubmit:async()=>console.log("Submit"),setPaymentMethodChecked:()=>{},setPaymentScheduleChecked:()=>{},onBack:async()=>console.log("back"),setCountrySearch:()=>{},onModalOpen:()=>{},onModalClose:()=>{}},refs:{formRef:{current:null}}},Ww={showExitButton:!0,step:"3",urlLoading:!1,docusignStatus:void 0,hideSteps:!1,documentType:"W9",documentTypeString:"W9",loading:!1,disabled:!1,participantTypeDisabled:!1,loadingError:!1,formState:{participantType:"individualParticipant",errors:{},taxFormExpired:!1},showModal:!1},jw={states:{veriffLoading:!1,payoutStatus:"DONE",canEditPayoutInfo:!0,disabled:!1,status:"ACTIVE",documentType:"W9",documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,country:"United Kingdom",indirectTaxNumber:"123456",indirectTaxType:"VAT",showNewFormDialog:!1,hasHold:!1},slots:{payoutDetailsCardSlot:e("sqm-payout-details-card",{demoData:{states:{badgeStatus:"nextPayout"}}})}},Hw=Object.freeze({__proto__:null,default:{title:"Components/Tax Form"},GeneralLoadingView:()=>e(ln,null),GeneralErrorView:()=>e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},"There was a problem loading your form"),e("p",{part:"alert-description"},"Please refresh the page and try again. If this problem continues, contact our support team.")),StepOne:()=>e("sqm-user-info-form",{demoData:Mw}),StepOneLoading:()=>e("sqm-user-info-form",{demoData:{states:{...Mw.states,loading:!0}}}),StepOneDisabled:()=>e("sqm-user-info-form",{demoData:{states:{...Mw.states,disabled:!0}}}),StepOneIsUser:()=>e("sqm-user-info-form",{demoData:{states:{...Mw.states,isUser:!0,isUserLegacy:!0}}}),StepOneIsPartner:()=>e("sqm-user-info-form",{demoData:{states:{...Mw.states,disabled:!0,isPartner:!0,isPartnerLegacy:!0}}}),StepOneWithErrors:()=>e("sqm-user-info-form",{demoData:{states:{...Mw.states,formState:{...Mw.states.formState,errors:{firstName:!0,lastName:!0,email:!0,countryCode:!0,currency:!0,participantType:!0,allowBankingCollection:!0}}}}}),StepOneWithGeneralError:()=>e("sqm-user-info-form",{demoData:{states:{...Mw.states,formState:{...Mw.states.formState,errors:{general:!0}}}}}),StepOneIsPartnerWithGeneralError:()=>e("sqm-user-info-form",{demoData:{states:{...Mw.states,disabled:!0,isPartner:!0,isPartnerLegacy:!0,formState:{...Mw.states.formState,errors:{general:!0}}}}}),StepOneWithLoadingError:()=>e("sqm-user-info-form",{demoData:{states:{...Mw.states,loadingError:!0,loading:!0,formState:{...Mw.states.formState}}}}),StepTwoLoading:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,loading:!0}}}),StepTwoLoadingError:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,loading:!0,loadingError:!0}}}),StepTwoDisabled:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,disabled:!0}}}),StepTwoIsPartner:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,isPartner:!0,isPartnerLegacy:!0}}}),StepTwoWithGeneralError:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,errors:{general:!0}}}}}),StepTwoIsPartnerWithGeneralError:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,isPartner:!0,isPartnerLegacy:!0,formState:{...Gw.formState,errors:{general:!0}}}}}),StepTwoOtherRegionChecked:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"UK",indirectTaxNumber:"123456",errors:{}}}}}),StepTwoOtherRegionCheckedCanada:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"CA",province:"BRITISHCOLUMBIA",indirectTaxNumber:"123456",errors:{}}}}}),StepTwoOtherRegionCheckedCanadaGST:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"CA",province:"QUEBEC",indirectTaxNumber:"123456",errors:{}}}}}),StepTwoOtherRegionCheckedCanadaGSTAndQST:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"CA",province:"QUEBEC",qstNumber:"654321",hasQst:!0,errors:{}}}}}),StepTwoOtherRegionCheckedOtherCountrySubRegion:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"ES",subRegion:"CANARYISLANDS",errors:{}}}}}),StepTwoOtherRegionCheckedOtherCountrySubRegionIncomeTax:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"ES",subRegion:"CANARYISLANDS",hasSubRegionTaxNumber:!0,subRegionTaxNumber:"654321",errors:{}}}}}),StepTwoOtherRegionCheckedWithInputErrors:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{checked:"otherRegion",errors:{}}},slotProps:{formState:{province:"",selectedRegion:"GB",errors:{selectedRegion:!0,indirectTaxNumber:!0}}}}}),StepTwoOtherRegionCheckedCanadaWithProvinceError:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"CA",province:"BC",errors:{province:!0,indirectTaxNumber:!0}}}}}),StepTwoOtherRegionCheckedCanadaGSTAndQSTError:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"CA",province:"QUEBEC",hasQst:!0,errors:{province:!0,indirectTaxNumber:!0,qstNumber:!0}}}}}),StepTwoOtherRegionCheckedOtherCountrySubRegionErrors:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"otherRegion"}},slotProps:{formState:{selectedRegion:"ES",hasSubRegionTaxNumber:!0,errors:{indirectTaxNumber:!0,subRegionTaxNumberError:!0,subRegion:!0}}}}}),StepTwoNotRegisteredChecked:()=>e("sqm-indirect-tax-form",{demoData:{states:{...Gw,formState:{...Gw.formState,checked:"notRegistered"}}}}),StepThreeWithDocusign:()=>e("sqm-docusign-form",{demoData:{states:{documentType:"W9",documentTypeString:sn("W9"),...Ww}}}),StepThreeWithDocusignW8BEN:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,documentType:"W8BEN",documentTypeString:sn("W8BEN")}}}),StepThreeWithDocusignW8BENE:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,documentType:"W8BENE",documentTypeString:sn("W8BENE"),formState:{taxFormExpired:!1,participantType:"businessEntity",errors:{participantType:"",general:!1}}}}}),StepThreeWithDocusignExpired:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,docusignStatus:"ttl_expired",formState:{participantType:"individualParticipant",taxFormExpired:!0,errors:{}}}}}),StepThreeWithDocusignCompleted:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,docusignStatus:"signing_complete",formState:{participantType:"individualParticipant",taxFormExpired:!1,errors:{}}}}}),StepThreeDocusignWithError:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,docusignStatus:"exception",formState:{...Ww.formState,errors:{formSubmission:!0}}}}}),StepThreeDocusignWithGeneralError:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,formState:{...Ww.formState,errors:{general:!0}}}}}),StepThreeDocusignWithLoadingError:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,loadingError:!0,formState:{...Ww.formState}}}}),StepThreeDocusignLoading:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,loading:!0}}}),StepThreeDocusignDisabled:()=>e("sqm-docusign-form",{demoData:{states:{...Ww,disabled:!0}}}),StepThreeWithDocusignModalOpen:()=>e("sqm-docusign-form",{demoData:{states:{documentType:"W9",documentTypeString:sn("W9"),...Ww,showModal:!0}}}),StepFourDefault:()=>e("sqm-banking-info-form",null),StepFourIsPartner:()=>e("sqm-banking-info-form",{demoData:{...Vw,states:{...Vw.states,isPartner:!0,formState:{...Vw.states.formState}}}}),StepFourIsPartnerWithGeneralError:()=>e("sqm-banking-info-form",{demoData:{...Vw,states:{...Vw.states,isPartner:!0,formState:{...Vw.states.formState,errors:{general:!0}}}}}),StepFourDirectToBankChecked:()=>e("sqm-banking-info-form",{demoData:{...Vw,states:{...Vw.states,formState:{...Vw.states.formState}}}}),StepFourToPaypalChecked:()=>e("sqm-banking-info-form",{demoData:{...Vw,states:{...Vw.states,formState:{...Vw.states.formState,paymentMethodChecked:"toPayPalAccount"}}}}),StepFourReVerifyEmail:()=>e("sqm-banking-info-form",{demoData:{...Vw,states:{...Vw.states,showVerification:!0,isPartner:!0,formState:{...Vw.states.formState,paymentMethodChecked:"toPayPalAccount"}}}}),TaxAndCashDashboardActiveW9Form:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw}}),TaxAndCashDashboardActiveW8BENForm:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,noFormNeeded:!1,canEditPayoutInfo:!0,documentType:"W8BEN",documentTypeString:sn("W8BEN"),country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardActiveW8BENEForm:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,noFormNeeded:!1,canEditPayoutInfo:!0,documentType:"W8BENE",documentTypeString:sn("W8BENE"),country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNotActiveW9Form:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{veriffLoading:!1,noFormNeeded:!0,canEditPayoutInfo:!0,status:"INACTIVE",documentType:"W9",documentTypeString:sn("W9"),country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,payoutStatus:"OVER_W9_THRESHOLD",hasHold:!1}}}),TaxAndCashDashboardNotActiveW8Form:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,noFormNeeded:!1,canEditPayoutInfo:!0,status:"INACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNotActiveNoForm:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,noFormNeeded:!0,canEditPayoutInfo:!0,status:"INACTIVE",documentType:"W8BEN",documentTypeString:"",country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNotVerifiedW9Form:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",canEditPayoutInfo:!0,disabled:!1,status:"NOT_VERIFIED",documentType:"W9",documentTypeString:sn("W9"),noFormNeeded:!1,country:"United States",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1,veriffLoading:!1}}}),TaxAndCashDashboardNotVerifiedW8BENForm:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"NOT_VERIFIED",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNotVerifiedW8BENEForm:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"NOT_VERIFIED",documentType:"W8BENE",documentTypeString:sn("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,country:"United Kingdom",indirectTaxType:"VAT",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNotActiveW8BENEForm:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"NOT_ACTIVE",documentType:"W8BENE",documentTypeString:sn("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,indirectTaxNumber:"123456",indirectTaxType:"VAT",country:"United Kingdom",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNoFormNeeded:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,documentType:"W9",documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!0,province:"Ontario",country:"Canada",indirectTaxNumber:"123456",indirectTaxType:"GST",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardIndirectTaxCanada:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",disabled:!1,documentType:"W8BENE",documentTypeString:sn("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,province:"Ontario",country:"Canada",indirectTaxType:"GST",indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardIndirectTaxCanadaQuebec:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",disabled:!1,documentType:"W8BENE",documentTypeString:sn("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,province:"Quebec",country:"Canada",indirectTaxType:"GST",indirectTaxNumber:"123456",qstNumber:"44212",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardIndirectTaxSpain:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",disabled:!1,documentType:"W8BENE",documentTypeString:sn("W8BENE"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,country:"Spain",subRegion:"Spain Proper",indirectTaxType:"VAT",indirectTaxNumber:"123456",subRegionTaxNumber:"44212",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardIndirectTaxNotRegistered:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,notRegistered:!0,showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardIdentityVerifcationRequired:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"VERIFICATION:REQUIRED",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,notRegistered:!0,showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardIdentityVerifcationRequiredInternal:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"VERIFICATION:INTERNAL",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,notRegistered:!0,showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardIdentityVerifcationReviewInternal:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"VERIFICATION:REVIEW",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,notRegistered:!0,showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardIdentityVerifcationFailedInternal:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"VERIFICATION:FAILED",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,notRegistered:!0,showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardW9ThresholdReached:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"OVER_W9_THRESHOLD",veriffLoading:!1,canEditPayoutInfo:!0,status:null,documentType:"W9",documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,notRegistered:!1,showNewFormDialog:!1,hasHold:!1,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}}}),TaxAndCashDashboardNewTaxForm:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,notRegistered:!0,showNewFormDialog:!0,hasHold:!1}}}),TaxAndCashDashboardPayoutsOnHold:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"HOLD",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,indirectTaxNumber:"123456",country:"Slovania",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardBalanceUnderThreshold:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",belowPayoutThreshold:!0,minPayoutAmount:"USD50.00",veriffLoading:!1,canEditPayoutInfo:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,indirectTaxNumber:"123456",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNoTaxFormRequiredAndBeneficiaryNameInvalid:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"BENEFICIARY_NAME_INVALID",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!0,status:"ACTIVE",documentType:void 0,documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!0,indirectTaxNumber:"123456",country:"USA",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNoTaxFormRequiredAndBeneficiaryNameInvalidUS:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"BENEFICIARY_NAME_INVALID",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!0,status:"ACTIVE",documentType:void 0,documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!0,indirectTaxNumber:"123456",country:"USA",showNewFormDialog:!1,hasHold:!0,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}}}),TaxAndCashDashboardNoDocumentType:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"ACTIVE",documentType:void 0,documentTypeString:"",dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,indirectTaxNumber:"123456",country:"United Kingdom",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardNoDocumentTypeNoFormNeeded:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:void 0,documentType:void 0,documentTypeString:"",dateSubmitted:void 0,noFormNeeded:!0,indirectTaxNumber:"123456",country:"United Kingdom",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardFallbackDocumentTypeW9:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"ACTIVE",documentType:"W9",documentTypeString:sn("W9"),dateSubmitted:"Mar 15, 2025",noFormNeeded:!1,indirectTaxNumber:"123456",country:"USA",showNewFormDialog:!1,hasHold:!1,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}}}),TaxAndCashDashboardFallbackDocumentTypeW8BEN:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Feb 20, 2025",noFormNeeded:!1,indirectTaxNumber:"654321",country:"Canada",showNewFormDialog:!1,hasHold:!1,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}}}),TaxAndCashDashboardDeferW9NoDocumentType:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:void 0,documentType:void 0,documentTypeString:"",dateSubmitted:void 0,noFormNeeded:!0,indirectTaxNumber:"123456",country:"USA",showNewFormDialog:!1,hasHold:!1,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9"}}}),TaxAndCashDashboardLoading:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"ACTIVE",documentType:"W9",documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,loading:!0,showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardWithLoadingError:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,disabled:!1,canEditPayoutInfo:!0,status:"ACTIVE",documentType:"W9",documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,loading:!0,loadingError:!0,showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashDashboardWithGeneralError:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!1,status:"ACTIVE",documentType:"W9",documentTypeString:sn("W9"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,indirectTaxNumber:"123456",indirectTaxType:"VAT",country:"Slovania",showNewFormDialog:!1,hasHold:!1,errors:{general:!0}}}}),TaxAndCashDashboardDisabled:()=>e("sqm-tax-and-cash-dashboard",{demoData:{...jw,states:{payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0,disabled:!0,status:"ACTIVE",documentType:"W8BEN",documentTypeString:sn("W8BEN"),dateSubmitted:"Jan 18th, 2025",noFormNeeded:!1,indirectTaxNumber:"123456",country:"Slovania",showNewFormDialog:!1,hasHold:!1}}}),TaxAndCashTextProps:()=>e("sqm-tax-and-cash",{demoData:{showTextProps:!0}})}),Jw=Object.freeze({__proto__:null,default:{title:"Components/Payout Details Card"},Loading:()=>e("sqm-payout-details-card",{demoData:{states:{loading:!0}}}),NextPayout:()=>e("sqm-payout-details-card",{demoData:{states:{badgeStatus:"nextPayout"}}}),PayoutToday:()=>e("sqm-payout-details-card",{demoData:{states:{badgeStatus:"payoutToday"}}}),ThresholdPayout:()=>e("sqm-payout-details-card",{demoData:{states:{thresholdBalance:"50 USD",badgeStatus:"thresholdPayout"}}}),BelowPayoutThresholdFixedDay:()=>e("sqm-payout-details-card",{demoData:{states:{badgeStatus:"nextPayout",belowPayoutThreshold:!0}}}),BelowPayoutThresholdPayoutToday:()=>e("sqm-payout-details-card",{demoData:{states:{badgeStatus:"payoutToday",belowPayoutThreshold:!0}}}),BelowPayoutThresholdBalanceThreshold:()=>e("sqm-payout-details-card",{demoData:{states:{thresholdBalance:"50 USD",badgeStatus:"thresholdPayout",belowPayoutThreshold:!0}}}),PaypalPayout:()=>e("sqm-payout-details-card",{demoData:{states:{payoutType:"PAYPAL"}}}),BadgeTextICUParsing:()=>e("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}},e("sqm-payout-details-card",{"status-badge-text":"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }",demoData:{states:{badgeStatus:"nextPayout"}}}),e("sqm-payout-details-card",{"status-badge-text":"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }",demoData:{states:{badgeStatus:"payoutToday"}}}),e("sqm-payout-details-card",{"status-badge-text":"{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }",demoData:{states:{badgeStatus:"error"}}}))}),Yw={error:!1,status:"INFORMATION_REQUIRED",loading:!1,veriffLoading:!1},zw=Object.freeze({__proto__:null,default:{title:"Components/Payout Status Alert"},InformationRequired:()=>e("sqm-payout-status-alert",{demoData:{states:Yw}}),VerifyIdentity:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"VERIFICATION:REQUIRED"}}}),VerifyIdentityRequiredInternal:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"VERIFICATION:INTERNAL"}}}),VerifyIdentityReviewInternal:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"VERIFICATION:REVIEW"}}}),VerifyIdentityFailedInternal:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"VERIFICATION:FAILED"}}}),W9ThresholdReached:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,enforceUsTaxComplianceOption:"CASH_ONLY_DEFER_W9",status:"OVER_W9_THRESHOLD"}}}),Hold:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"HOLD"}}}),Loading:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,loading:!0}}}),Error:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,error:!0}}}),NewPayeeReview:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"NEW_PAYEE_REVIEW"}}}),PaymentHoldOnChange:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"PAYMENT_HOLD_ON_CHANGE"}}}),BalanceUnderThreshold:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"DONE",belowPayoutThreshold:!0,minPayoutAmount:"USD50.00"}}}),BalanceUnderThresholdWithHold:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"NEW_PAYEE_REVIEW",belowPayoutThreshold:!0,minPayoutAmount:"USD50.00"}}}),BeneficiaryNameInvalid:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"BENEFICIARY_NAME_INVALID"}}}),BeneficiaryNameMismatch:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"BENEFICIARY_NAME_MISMATCH"}}}),BankTaxNameMismatch:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"BANK_TAX_NAME_MISMATCH"}}}),WithdrawalSettingsInvalid:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"WITHDRAWAL_SETTINGS_INVALID"}}}),PaymentReturned:()=>e("sqm-payout-status-alert",{demoData:{states:{...Yw,status:"PAYMENT_RETURNED"}}})}),Kw={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"}},$w=ie({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)"}}),Xw=$w.toString(),Zw=n=>{const{classes:t}=$w,{text:a}=n;return e("div",null,e("style",{type:"text/css"},Xw),e("div",{class:t.Container},e("sl-icon",{style:{width:"50px",height:"50px",color:"var(--sl-color-neutral-500)"},name:"clock"}),e("p",{style:{margin:"0"}},a.docusignExpired)))},Qw={states:{loading:!1,hide:!1,formState:{selectedRegion:"United Kindom",vatNumber:12345,countryCode:"UK"}},data:{countries:[{countryCode:"CA",displayName:"Canada"}]},text:Kw},ev={states:{loading:!1,hide:!1,formState:{province:"British Columbia",indirectTaxNumber:1234}},data:{countries:[{countryCode:"CA",displayName:"Canada"}]},text:Kw},nv=Object.freeze({__proto__:null,default:{title:"Components/Tax Form Slot Views"},RegisteredInOtherRegion:()=>e(Xe,{...Qw}),RegisteredInCanada:()=>e(IndirectDetailsSlotView,{...ev}),RegisteredInOtherRegionWithErrors:()=>e(Xe,{...Qw,states:{...Qw.states,formState:{...Qw.states.formState,errors:{vatNumber:!0,selectedRegion:!0}}}}),RegisteredInCanadaWithErrors:()=>e(IndirectDetailsSlotView,{...ev,states:{...ev.states,formState:{...ev.states.formState,errors:{province:!0,indirectTaxNumber:!0}}}}),DocusignExpired:()=>e(Zw,null)}),tv={states:{error:"",loading:!1},callbacks:{submit:async e=>await e},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"}},av=Object.freeze({__proto__:null,default:{title:"Components/Email Registration",parameters:{}},Default:()=>e(cn,{...tv}),HasFirstNameLastName:()=>e(cn,{...{...tv,content:{...tv.content,includeName:!0}}}),WithSlots:()=>e(cn,{...{...tv,content:{...tv.content,topSlot:e("div",null,"Hello this is the top slot"),bottomSlot:e("div",null,"Hello this is the bottom slot")}}}),NoBorder:()=>e(cn,{...{...tv,content:{...tv.content,hideBorder:!0}}}),BackgroundColor:()=>e(cn,{...{...tv,content:{...tv.content,backgroundColor:"aquamarine"}}}),Loading:()=>e(cn,{...{...tv,states:{error:"",loading:!0}}}),Error:()=>e(cn,{...{...tv,states:{error:"Something went wrong. Please try again.",loading:!1}}}),FraudError:()=>e(cn,{...{...tv,states:{error:"FRAUD",loading:!1}}}),EmptyEmailError:()=>e(cn,{...{...tv,states:{error:"Something went wrong. Please try again.",loading:!1,registrationFormState:{validationErrors:{email:"Email cannot be empty"}}}}})}),rv={states:{success:!1,leadFormState:{},error:"",loading:!1,referralCode:"ABC123"},callbacks:{submit:()=>console.log("Submit!"),inputFunction:()=>{},resetForm:()=>{}},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"}},iv={...rv,states:{...rv.states,success:!0,error:null},content:{...rv.content,pageLabel:"Refer your friend"}},ov={...rv,states:{...rv.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"}}}},sv={...rv,states:{...rv.states,loading:!0}},lv={...rv,content:{...rv.content,formData:e("div",null,e("sqm-lead-input-field",{"field-name":"firstName","field-label":"First Name","field-type":"text","required-field-error-message":"Please enter a first name"}),e("sqm-lead-input-field",{"field-name":"lastName","field-label":"Last Name","field-type":"text","required-field-error-message":"Please enter a last name"}),e("sqm-lead-input-field",{"field-name":"email","field-label":"Email","field-type":"email","required-field-error-message":"Please enter a valid email address"}),e("sqm-lead-dropdown-field",null))}},dv=Object.freeze({__proto__:null,default:{title:"Components/Lead Form"},Default:()=>e(ne,{...rv}),LeadSubmitSuccess:()=>e(ne,{...iv}),LeadSubmitWithErrors:()=>e(ne,{...ov}),LeadSubmitLoading:()=>e(ne,{...sv}),FieldsHidden:()=>e("sqm-lead-form",{demoData:{states:{leadFormState:{},error:"",success:!1,loading:!0,referralCode:"ABC123"}}}),SlottedInputs:()=>e(ne,{...lv})}),uv={states:{leadFormState:{validationErrors:{},loading:!1,disabled:!1,initialData:{}}},content:{fieldName:"firstName",fieldLabel:"First Name",fieldType:"text",optionalLabel:"(Optional)",requiredFieldErrorMessage:"Please {fieldAction} a {fieldLabel}",fieldOptional:!1}},cv=Object.freeze({__proto__:null,default:{title:"Components/Lead Form Input Field"},Default:()=>e(mn,{...uv}),WithError:()=>e(mn,{...uv,states:{...uv.states,leadFormState:{...uv.states.leadFormState,validationErrors:{firstName:"Please enter a first name"}}}}),Disabled:()=>e(mn,{...uv,states:{...uv.states,leadFormState:{...uv.states.leadFormState,disabled:!0}}}),WithInitialValue:()=>e(mn,{...uv,states:{...uv.states,leadFormState:{...uv.states.leadFormState,initialData:{firstName:"Jane"}}}})}),mv={states:{leadFormState:{validationErrors:{},loading:!1,disabled:!1,initialData:{}}},content:{dropdownName:"country",dropdownLabel:"Country",requiredFieldErrorMessage:"Please select a country",optionalLabel:"(Optional)",dropdownOptional:!1,multiple:!1,selectOptions:[e("sl-menu-item",{value:"red"},"Canada"),e("sl-menu-item",{value:"blue"},"United States"),e("sl-menu-item",{value:"green"},"Mexico")]}},pv=Object.freeze({__proto__:null,default:{title:"Components/Lead Form Dropdown Field"},Default:()=>e(te,{...mv}),Multiple:()=>e(te,{...mv,content:{...mv.content,multiple:!0}}),WithError:()=>e(te,{...mv,states:{...mv.states,leadFormState:{...mv.states.leadFormState,validationErrors:{country:"Please select a country"}}}}),Disabled:()=>e(te,{...mv,states:{...mv.states,leadFormState:{...mv.states.leadFormState,disabled:!0}}}),Loading:()=>e(te,{...mv,states:{...mv.states,leadFormState:{...mv.states.leadFormState,loading:!0}}}),WithInitialValue:()=>e(te,{...mv,states:{...mv.states,leadFormState:{...mv.states.leadFormState,initialData:{country:"Canada"}}}})}),hv={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"}},gv=Ys((()=>e(pn,{...hv}))),fv=Ys((()=>e(pn,{...hv,content:{...hv.content,checkboxLabel:"I Agree"}}))),bv=Ys((()=>e(pn,{...hv,states:{...hv.states,leadFormState:{validationErrors:{terms:"{checkboxLabel} Must be checked"}}}}))),yv=Ys((()=>e(pn,{...hv,states:{...hv.states,leadFormState:{validationErrors:{terms:"{checkboxLabel} Must be checked"}}},content:{...hv.content,errorMessage:"This checkbox must be checked to continue"}}))),wv=Object.freeze({__proto__:null,default:{title:"Components/Lead Checkbox Field"},Default:gv,CustomLabel:fv,Error:bv,CustomError:yv}),vv=Object.freeze({__proto__:null,default:{title:"Components/Skeleton"},Default:()=>e("sqm-skeleton",null),CustomWidth:()=>e("sqm-skeleton",{width:"100px"}),CustomHeight:()=>e("sqm-skeleton",{height:"100px"}),CustomWidthAndHeight:()=>e("sqm-skeleton",{width:"150px",height:"50px"})}),xv=[{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"}],Tv=[{currencyCode:"USD",displayName:"US Dollar"},{currencyCode:"CAD",displayName:"Canadian Dollar"},{currencyCode:"GBP",displayName:"British Pound"},{currencyCode:"EUR",displayName:"Euro"},{currencyCode:"AUD",displayName:"Australian Dollar"}],Sv={id:"partner-123",brandedSignup:!0,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:!1,holdReasons:[],balance:"$0.00",balanceAmount:0,currencyCode:"USD"}},Ev={states:{step:"1",hideState:!1,hideSteps:!1,disabled:!1,loadingError:!1,loading:!1,isPartner:!1,isUser:!1,isPartnerLegacy:!1,isUserLegacy:!1,formState:{firstName:"",lastName:"",email:"user@example.com",countryCode:"US",currency:"USD",phoneNumberCountryCode:"US",phoneNumber:"",address:"",city:"",state:"",postalCode:"",allowBankingCollection:!1,errors:{}}},data:{regionLabelEnum:"STATE",regions:[{label:"California",value:"CA"},{label:"New York",value:"NY"},{label:"Texas",value:"TX"},{label:"Florida",value:"FL"},{label:"Washington",value:"WA"}],countries:xv,phoneCountries:xv,allCountries:xv,allCurrencies:Tv,currencies:Tv,partnerData:void 0,userData:void 0},callbacks:{setCurrencySearch:e=>console.log("setCurrencySearch",e),setCountrySearch:e=>console.log("setCountrySearch",e),setPhoneCountrySearch:e=>console.log("setPhoneCountrySearch",e),onSubmit:e=>console.log("onSubmit",e),onFormChange:(e,n)=>console.log("onFormChange",e,n)},text:{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..."},refs:{formRef:{current:null},currencyRef:{current:null},phoneCountryRef:{current:null}}},Cv=Object.freeze({__proto__:null,default:{title:"Components/User Info Form View"},Default:()=>e(Ze,{...Ev}),WithPrefilledData:()=>e(Ze,{...Ev,states:{...Ev.states,formState:{...Ev.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"}}}),Loading:()=>e(Ze,{...Ev,states:{...Ev.states,loading:!0}}),LoadingError:()=>e(Ze,{...Ev,states:{...Ev.states,loadingError:!0}}),WithValidationErrors:()=>e(Ze,{...Ev,states:{...Ev.states,formState:{...Ev.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"}}}}),WithGeneralError:()=>e(Ze,{...Ev,states:{...Ev.states,formState:{...Ev.states.formState,errors:{general:"An error occurred. Please contact support for assistance."}}}}),PartnerAccount:()=>e(Ze,{...Ev,states:{...Ev.states,isPartner:!0,isPartnerLegacy:!0,formState:{...Ev.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:{...Ev.data,partnerData:Sv}}),EarlyPartnerFromModal:()=>e(Ze,{...Ev,states:{...Ev.states,isPartner:!0,isUser:!0,isPartnerLegacy:!1,isUserLegacy:!1,formState:{...Ev.states.formState,firstName:"Jane",lastName:"Smith",email:"jane.smith@example.com",countryCode:"US",currency:"USD",phoneNumberCountryCode:void 0,phoneNumber:void 0,address:void 0,city:void 0,state:void 0,postalCode:void 0}},data:{...Ev.data,partnerData:{...Sv,billingAddress:void 0,billingCity:void 0,billingState:void 0,billingPostalCode:void 0,phoneNumber:void 0,phoneNumberCountryCode:void 0},userData:{firstName:"Jane",lastName:"Smith"}}}),UserAccount:()=>e(Ze,{...Ev,states:{...Ev.states,isUser:!0,isUserLegacy:!0,formState:{...Ev.states.formState,firstName:"Bob",lastName:"Johnson",email:"bob.johnson@example.com"}},data:{...Ev.data,userData:{firstName:"Bob",lastName:"Johnson"}}}),UserAccountMissingLastName:()=>e(Ze,{...Ev,states:{...Ev.states,isUser:!0,isUserLegacy:!0,formState:{...Ev.states.formState,firstName:"Bob",lastName:void 0,email:"bob.johnson@example.com"}},data:{...Ev.data,userData:{firstName:"Bob",lastName:void 0}}}),CanadianAddress:()=>e(Ze,{...Ev,states:{...Ev.states,formState:{...Ev.states.formState,firstName:"Alice",lastName:"Martin",countryCode:"CA",state:"BC"}},data:{...Ev.data,regionLabelEnum:"PROVINCE",regions:[{label:"British Columbia",value:"BC"},{label:"Ontario",value:"ON"},{label:"Quebec",value:"QC"},{label:"Alberta",value:"AB"}]}}),NoStateRegion:()=>e(Ze,{...Ev,states:{...Ev.states,hideState:!0,formState:{...Ev.states.formState,firstName:"Pierre",lastName:"Dubois",countryCode:"FR"}},data:{...Ev.data,regionLabelEnum:void 0,regions:[]}}),HideSteps:()=>e(Ze,{...Ev,states:{...Ev.states,hideSteps:!0}}),DisabledForm:()=>e(Ze,{...Ev,states:{...Ev.states,disabled:!0,formState:{...Ev.states.formState,firstName:"Disabled",lastName:"User"}}})}),Rv={onFirstNameChange:e=>console.log("First name changed:",e),onLastNameChange:e=>console.log("Last name changed:",e),onCountryChange:e=>console.log("Country changed:",e),onCurrencyChange:e=>console.log("Currency changed:",e),onCheckboxChange:e=>console.log("Checkbox changed:",e),setCountrySearch:e=>console.log("Country search:",e),setCurrencySearch:e=>console.log("Currency search:",e),onSubmit:()=>console.log("Submit"),onClose:()=>console.log("Close")},Dv={states:{open:!0,loading:!1,submitting:!1,isExistingPartner:!1,shouldDisplayNameFields:!1,firstName:"",lastName:"",countryCode:"",currency:"",error:"",emailCanBeUsed:!0,success:!1,filteredCountries:[{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"}],filteredCurrencies:[{currencyCode:"USD",displayName:"US Dollar"},{currencyCode:"CAD",displayName:"Canadian Dollar"},{currencyCode:"GBP",displayName:"British Pound"},{currencyCode:"EUR",displayName:"Euro"},{currencyCode:"AUD",displayName:"Australian Dollar"}],allowBankingCollection:!1,disabled:!1},callbacks:Rv,text:{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"}},Iv=Object.freeze({__proto__:null,default:{title:"Components/Partner Info Modal"},NewPartnerEmpty:()=>e(hn,{...Dv}),NewPartnerPrefilled:()=>{const n={...Dv,states:{...Dv.states,countryCode:"US",currency:""}};return e(hn,{...n})},NewPartnerFullySelected:()=>{const n={...Dv,states:{...Dv.states,countryCode:"US",currency:"USD"}};return e(hn,{...n})},ExistingPartnerConfirm:()=>{const n={...Dv,states:{...Dv.states,isExistingPartner:!0,countryCode:"CA",currency:"CAD"}};return e(hn,{...n})},ExistingPartnerEmpty:()=>{const n={...Dv,states:{...Dv.states,isExistingPartner:!0,countryCode:"",currency:""}};return e(hn,{...n})},Submitting:()=>{const n={...Dv,states:{...Dv.states,countryCode:"GB",currency:"GBP",submitting:!0}};return e(hn,{...n})},WithError:()=>{const n={...Dv,states:{...Dv.states,countryCode:"US",currency:"USD",error:"An error occurred while creating your partner account. Please try again."}};return e(hn,{...n})},ValidationError:()=>{const n={...Dv,states:{...Dv.states,countryCode:"",currency:"",error:"Please select both a country and currency."}};return e(hn,{...n})},EmailVerificationRequired:()=>{const n={...Dv,states:{...Dv.states,countryCode:"US",currency:"USD",emailCanBeUsed:!1}};return e(hn,{...n})},Closed:()=>{const n={...Dv,states:{...Dv.states,open:!1}};return e(hn,{...n})},SQMComponentExistingPartner:()=>e("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:!0,isExistingPartner:!0}}}),SQMComponentNewPartner:()=>e("sqm-partner-info-modal",{demoData:{states:{open:!0,isExistingPartner:!1}}}),PartnerHasFirstAndLastName:()=>{const n={...Dv,states:{...Dv.states,firstName:"John",lastName:"Doe"}};return e(hn,{...n})},PartnerHasFirstNameOnly:()=>{const n={...Dv,states:{...Dv.states,firstName:"John",lastName:"",shouldDisplayNameFields:!0}};return e(hn,{...n})},Loading:()=>{const n={...Dv,states:{...Dv.states,loading:!0}};return e(hn,{...n})}}),Av=Object.freeze({__proto__:null,default:{title:"Components/Widget Verification"},Step1Email:()=>e("sqm-widget-verification",{stateController:JSON.stringify({"sqm-widget-verification":{showCode:!1}})}),Step2Code:()=>e("sqm-widget-verification",{stateController:JSON.stringify({"sqm-widget-verification":{showCode:!0}})}),Step3PartnerModal:()=>e("sqm-widget-verification",{stateController:JSON.stringify({"sqm-widget-verification":{showPartnerModal:!0}})}),Loading:()=>e("sqm-widget-verification",{stateController:JSON.stringify({"sqm-widget-verification":{loading:!0}})})}),qv=Object.freeze({__proto__:null,default:{title:"Components/User Attribute",parameters:{scenario:'@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'}},Default:()=>e("sqm-user-attribute",{demoData:{loading:!1,value:"impact.com"}}),InvalidValue:()=>e("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}},e("div",{style:{background:"#e0e0e0",padding:"8px"}},"Above"),e("sqm-user-attribute",{demoData:{loading:!1,value:null}}),e("div",{style:{background:"#e0e0e0",padding:"8px"}},"Below")),Loading:()=>e("sqm-user-attribute",{demoData:{loading:!0,value:"impact.com"}}),WithCustomStyles:()=>e("sqm-user-attribute",{demoData:{loading:!1,value:"impact.com",fontSize:24,color:"#4CAF50",fontWeight:700}})});function kv(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}: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];"object"!=typeof t||Object.isFrozen(t)||kv(t)})),e}var Pv=kv;Pv.default=kv;class Nv{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Fv(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Lv(e,...n){const t=Object.create(null);for(const n in e)t[n]=e[n];return n.forEach((function(e){for(const n in e)t[n]=e[n]})),t}const _v=e=>!!e.kind;class Uv{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Fv(e)}openNode(e){if(!_v(e))return;let n=e.kind;e.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(e){_v(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class Ov{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach((n=>this._walk(e,n))),e.closeNode(n)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{Ov._collapse(e)})))}}class Bv extends Ov{constructor(e){super(),this.options=e}addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){return new Uv(this,this.options).value()}finalize(){return!0}}function Mv(e){return e?"string"==typeof e?e:e.source:null}const Gv=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,Vv="[a-zA-Z]\\w*",Wv="[a-zA-Z_]\\w*",jv="\\b\\d+(\\.\\d+)?",Hv="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Jv="\\b(0b[01]+)",Yv={begin:"\\\\[\\s\\S]",relevance:0},zv={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[Yv]},Kv={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[Yv]},$v={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/},Xv=function(e,n,t={}){const a=Lv({className:"comment",begin:e,end:n,contains:[]},t);return a.contains.push($v),a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),a},Zv=Xv("//","$"),Qv=Xv("/\\*","\\*/"),ex=Xv("#","$");var nx=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:Vv,UNDERSCORE_IDENT_RE:Wv,NUMBER_RE:jv,C_NUMBER_RE:Hv,BINARY_NUMBER_RE:Jv,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map((e=>Mv(e))).join("")}(n,/.*\b/,e.binary,/\b.*/)),Lv({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Yv,APOS_STRING_MODE:zv,QUOTE_STRING_MODE:Kv,PHRASAL_WORDS_MODE:$v,COMMENT:Xv,C_LINE_COMMENT_MODE:Zv,C_BLOCK_COMMENT_MODE:Qv,HASH_COMMENT_MODE:ex,NUMBER_MODE:{className:"number",begin:jv,relevance:0},C_NUMBER_MODE:{className:"number",begin:Hv,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:Jv,relevance:0},CSS_NUMBER_MODE:{className:"number",begin:jv+"(%|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},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Yv,{begin:/\[/,end:/\]/,relevance:0,contains:[Yv]}]}]},TITLE_MODE:{className:"title",begin:Vv,relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:Wv,relevance:0},METHOD_GUARD:{begin:"\\.\\s*"+Wv,relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}});function tx(e,n){"."===e.input[e.index-1]&&n.ignoreMatch()}function ax(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=tx,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function rx(e){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map((e=>Mv(e))).join("|")+")"}(...e.illegal))}function ix(e){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ox(e){void 0===e.relevance&&(e.relevance=1)}const sx=["of","and","for","in","not","or","if","then","parent","list","value"];function lx(e,n,t="keyword"){const a={};return"string"==typeof e?r(t,e.split(" ")):Array.isArray(e)?r(t,e):Object.keys(e).forEach((function(t){Object.assign(a,lx(e[t],n,t))})),a;function r(e,t){n&&(t=t.map((e=>e.toLowerCase()))),t.forEach((function(n){const t=n.split("|");a[t[0]]=[e,dx(t[0],t[1])]}))}}function dx(e,n){return n?Number(n):function(e){return sx.includes(e.toLowerCase())}(e)?0:1}function ux(e,{}){function n(n,t){return new RegExp(Mv(n),"m"+(e.case_insensitive?"i":"")+(t?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=n(function(e,n="|"){let t=0;return e.map((e=>{t+=1;const n=t;let a=Mv(e),r="";for(;a.length>0;){const e=Gv.exec(a);if(!e){r+=a;break}r+=a.substring(0,e.index),a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+n):(r+=e[0],"("===e[0]&&t++)}return r})).map((e=>`(${e})`)).join(n)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const n=this.matcherRe.exec(e);if(!n)return null;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),a=this.matchIndexes[t];return n.splice(0,t),Object.assign(n,a)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t;return this.rules.slice(e).forEach((([e,t])=>n.addRule(e,t))),n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;let t=n.exec(e);if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)}return t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count&&this.considerAll()),t}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Lv(e.classNameAliases||{}),function t(r,i){const o=r;if(r.isCompiled)return o;[ix].forEach((e=>e(r,i))),e.compilerExtensions.forEach((e=>e(r,i))),r.__beforeBegin=null,[ax,rx,ox].forEach((e=>e(r,i))),r.isCompiled=!0;let s=null;if("object"==typeof r.keywords&&(s=r.keywords.$pattern,delete r.keywords.$pattern),r.keywords&&(r.keywords=lx(r.keywords,e.case_insensitive)),r.lexemes&&s)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return s=s||r.lexemes||/\w+/,o.keywordPatternRe=n(s,!0),i&&(r.begin||(r.begin=/\B|\b/),o.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(o.endRe=n(r.end)),o.terminatorEnd=Mv(r.end)||"",r.endsWithParent&&i.terminatorEnd&&(o.terminatorEnd+=(r.end?"|":"")+i.terminatorEnd)),r.illegal&&(o.illegalRe=n(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((function(e){return function(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(n){return Lv(e,{variants:null},n)}))),e.cachedVariants?e.cachedVariants:cx(e)?Lv(e,{starts:e.starts?Lv(e.starts):null}):Object.isFrozen(e)?Lv(e):e}("self"===e?r:e)}))),r.contains.forEach((function(e){t(e,o)})),r.starts&&t(r.starts,i),o.matcher=function(e){const n=new a;return e.contains.forEach((e=>n.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}(o),o}(e)}function cx(e){return!!e&&(e.endsWithParent||cx(e.starts))}function mx(e){const n={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,Fv(this.code);let n={};return this.autoDetect?(n=e.highlightAuto(this.code),this.detectedLanguage=n.language):(n=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),n.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:n,VuePlugin:{install(e){e.component("highlightjs",n)}}}}const px={"after:highlightElement":({el:e,result:n,text:t})=>{const a=gx(e);if(!a.length)return;const r=document.createElement("div");r.innerHTML=n.value,n.value=function(e,n,t){let a=0,r="";const i=[];function o(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset<n[0].offset?e:n:"start"===n[0].event?e:n:e.length?e:n}function s(e){r+="<"+hx(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+Fv(e.value)+'"'})).join("")+">"}function l(e){r+="</"+hx(e)+">"}function d(e){("start"===e.event?s:l)(e.node)}for(;e.length||n.length;){let n=o();if(r+=Fv(t.substring(a,n[0].offset)),a=n[0].offset,n===e){i.reverse().forEach(l);do{d(n.splice(0,1)[0]),n=o()}while(n===e&&n.length&&n[0].offset===a);i.reverse().forEach(s)}else"start"===n[0].event?i.push(n[0].node):i.pop(),d(n.splice(0,1)[0])}return r+Fv(t.substr(a))}(a,gx(r),t)}};function hx(e){return e.nodeName.toLowerCase()}function gx(e){const n=[];return function e(t,a){for(let r=t.firstChild;r;r=r.nextSibling)3===r.nodeType?a+=r.nodeValue.length:1===r.nodeType&&(n.push({event:"start",offset:a,node:r}),a=e(r,a),hx(r).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:r}));return a}(e,0),n}const fx={},bx=e=>{console.error(e)},yx=(e,...n)=>{console.log(`WARN: ${e}`,...n)},wx=(e,n)=>{fx[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),fx[`${e}/${n}`]=!0)},vx=Fv,xx=Lv,Tx=Symbol("nomatch");var Sx=function(e){const n=Object.create(null),t=Object.create(null),a=[];let r=!0;const i=/(^(<[^>]+>|\t|)+|\n)/gm,o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let l={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:Bv};function d(e){return l.noHighlightRe.test(e)}function u(e,n,t,a){let r="",i="";"object"==typeof n?(r=e,t=n.ignoreIllegals,i=n.language,a=void 0):(wx("10.7.0","highlight(lang, code, ...args) has been deprecated."),wx("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,r=n);const o={code:r,language:i};S("before:highlight",o);const s=o.result?o.result:c(o.language,o.code,t,a);return s.code=o.code,S("after:highlight",s),s}function c(e,t,i,s){function d(e,n){const t=w.case_insensitive?n[0].toLowerCase():n[0];return Object.prototype.hasOwnProperty.call(e.keywords,t)&&e.keywords[t]}function u(){null!=S.subLanguage?function(){if(""===R)return;let e=null;if("string"==typeof S.subLanguage){if(!n[S.subLanguage])return void C.addText(R);e=c(S.subLanguage,R,!0,E[S.subLanguage]),E[S.subLanguage]=e.top}else e=m(R,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(D+=e.relevance),C.addSublanguage(e.emitter,e.language)}():function(){if(!S.keywords)return void C.addText(R);let e=0;S.keywordPatternRe.lastIndex=0;let n=S.keywordPatternRe.exec(R),t="";for(;n;){t+=R.substring(e,n.index);const a=d(S,n);if(a){const[e,r]=a;C.addText(t),t="",D+=r,e.startsWith("_")?t+=n[0]:C.addKeyword(n[0],w.classNameAliases[e]||e)}else t+=n[0];e=S.keywordPatternRe.lastIndex,n=S.keywordPatternRe.exec(R)}t+=R.substr(e),C.addText(t)}(),R=""}function p(e){return e.className&&C.openNode(w.classNameAliases[e.className]||e.className),S=Object.create(e,{parent:{value:S}}),S}function h(e,n,t){let a=function(e,n){const t=e&&e.exec(n);return t&&0===t.index}(e.endRe,t);if(a){if(e["on:end"]){const t=new Nv(e);e["on:end"](n,t),t.isMatchIgnored&&(a=!1)}if(a){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return h(e.parent,n,t)}function g(e){return 0===S.matcher.regexIndex?(R+=e[0],1):(q=!0,0)}function f(e){const n=e[0],a=t.substr(e.index),r=h(S,e,a);if(!r)return Tx;const i=S;i.skip?R+=n:(i.returnEnd||i.excludeEnd||(R+=n),u(),i.excludeEnd&&(R=n));do{S.className&&C.closeNode(),S.skip||S.subLanguage||(D+=S.relevance),S=S.parent}while(S!==r.parent);return r.starts&&(r.endSameAsBegin&&(r.starts.endRe=r.endRe),p(r.starts)),i.returnEnd?0:n.length}let b={};function y(n,a){const o=a&&a[0];if(R+=n,null==o)return u(),0;if("begin"===b.type&&"end"===a.type&&b.index===a.index&&""===o){if(R+=t.slice(a.index,a.index+1),!r){const n=new Error("0 width match regex");throw n.languageName=e,n.badRule=b.rule,n}return 1}if(b=a,"begin"===a.type)return function(e){const n=e[0],t=e.rule,a=new Nv(t),r=[t.__beforeBegin,t["on:begin"]];for(const t of r)if(t&&(t(e,a),a.isMatchIgnored))return g(n);return t&&t.endSameAsBegin&&(t.endRe=new RegExp(n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),t.skip?R+=n:(t.excludeBegin&&(R+=n),u(),t.returnBegin||t.excludeBegin||(R=n)),p(t),t.returnBegin?0:n.length}(a);if("illegal"===a.type&&!i){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(S.className||"<unnamed>")+'"');throw e.mode=S,e}if("end"===a.type){const e=f(a);if(e!==Tx)return e}if("illegal"===a.type&&""===o)return 1;if(A>1e5&&A>3*a.index)throw new Error("potential infinite loop, way more iterations than matches");return R+=o,o.length}const w=v(e);if(!w)throw bx(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const x=ux(w,{plugins:a});let T="",S=s||x;const E={},C=new l.__emitter(l);!function(){const e=[];for(let n=S;n!==w;n=n.parent)n.className&&e.unshift(n.className);e.forEach((e=>C.openNode(e)))}();let R="",D=0,I=0,A=0,q=!1;try{for(S.matcher.considerAll();;){A++,q?q=!1:S.matcher.considerAll(),S.matcher.lastIndex=I;const e=S.matcher.exec(t);if(!e)break;const n=y(t.substring(I,e.index),e);I=e.index+n}return y(t.substr(I)),C.closeAllNodes(),C.finalize(),T=C.toHTML(),{relevance:Math.floor(D),value:T,language:e,illegal:!1,emitter:C,top:S}}catch(n){if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:n.message,context:t.slice(I-100,I+100),mode:n.mode},sofar:T,relevance:0,value:vx(t),emitter:C};if(r)return{illegal:!1,relevance:0,value:vx(t),emitter:C,language:e,top:S,errorRaised:n};throw n}}function m(e,t){t=t||l.languages||Object.keys(n);const a=function(e){const n={relevance:0,emitter:new l.__emitter(l),value:vx(e),illegal:!1,top:s};return n.emitter.addText(e),n}(e),r=t.filter(v).filter(T).map((n=>c(n,e,!1)));r.unshift(a);const i=r.sort(((e,n)=>{if(e.relevance!==n.relevance)return n.relevance-e.relevance;if(e.language&&n.language){if(v(e.language).supersetOf===n.language)return 1;if(v(n.language).supersetOf===e.language)return-1}return 0})),[o,d]=i,u=o;return u.second_best=d,u}const p={"before:highlightElement":({el:e})=>{l.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{l.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},h=/^(<[^>]+>|\t)+/gm,g={"after:highlightElement":({result:e})=>{l.tabReplace&&(e.value=e.value.replace(h,(e=>e.replace(/\t/g,l.tabReplace))))}};function f(e){let n=null;const a=function(e){let n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";const t=l.languageDetectRe.exec(n);if(t){const n=v(t[1]);return n||(yx(o.replace("{}",t[1])),yx("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"}return n.split(/\s+/).find((e=>d(e)||v(e)))}(e);if(d(a))return;S("before:highlightElement",{el:e,language:a}),n=e;const r=n.textContent,i=a?u(r,{language:a,ignoreIllegals:!0}):m(r);S("after:highlightElement",{el:e,result:i,text:r}),e.innerHTML=i.value,function(e,n,a){const r=n?t[n]:a;e.classList.add("hljs"),r&&e.classList.add(r)}(e,a,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const b=()=>{b.called||(b.called=!0,wx("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(f))};let y=!1;function w(){"loading"!==document.readyState?document.querySelectorAll("pre code").forEach(f):y=!0}function v(e){return e=(e||"").toLowerCase(),n[e]||n[t[e]]}function x(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach((e=>{t[e.toLowerCase()]=n}))}function T(e){const n=v(e);return n&&!n.disableAutodetect}function S(e,n){const t=e;a.forEach((function(e){e[t]&&e[t](n)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){y&&w()}),!1),Object.assign(e,{highlight:u,highlightAuto:m,highlightAll:w,fixMarkup:function(e){return wx("10.2.0","fixMarkup will be removed entirely in v11.0"),wx("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),n=e,l.tabReplace||l.useBR?n.replace(i,(e=>"\n"===e?l.useBR?"<br>":e:l.tabReplace?e.replace(/\t/g,l.tabReplace):e)):n;var n},highlightElement:f,highlightBlock:function(e){return wx("10.7.0","highlightBlock will be removed entirely in v12.0"),wx("10.7.0","Please use highlightElement now."),f(e)},configure:function(e){e.useBR&&(wx("10.3.0","'useBR' will be removed entirely in v11.0"),wx("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),l=xx(l,e)},initHighlighting:b,initHighlightingOnLoad:function(){wx("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),y=!0},registerLanguage:function(t,a){let i=null;try{i=a(e)}catch(e){if(bx("Language definition for '{}' could not be registered.".replace("{}",t)),!r)throw e;bx(e),i=s}i.name||(i.name=t),n[t]=i,i.rawDefinition=a.bind(null,e),i.aliases&&x(i.aliases,{languageName:t})},unregisterLanguage:function(e){delete n[e];for(const n of Object.keys(t))t[n]===e&&delete t[n]},listLanguages:function(){return Object.keys(n)},getLanguage:v,registerAliases:x,requireLanguage:function(e){wx("10.4.0","requireLanguage will be removed entirely in v11."),wx("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const n=v(e);if(n)return n;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:T,inherit:xx,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=n=>{e["before:highlightBlock"](Object.assign({block:n.el},n))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=n=>{e["after:highlightBlock"](Object.assign({block:n.el},n))})}(e),a.push(e)},vuePlugin:mx(e).VuePlugin}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString="10.7.3";for(const e in nx)"object"==typeof nx[e]&&Pv(nx[e]);return Object.assign(e,nx),e.addPlugin(p),e.addPlugin(px),e.addPlugin(g),e}({}),Ex=Sx;Ex.registerLanguage("gherkin",(function(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]}}));const Cx=({story:n},t)=>{var a;let r,i=null===(a=n.parent.parameters)||void 0===a?void 0:a.scenario;try{r=Ex.highlight("gherkin",i)}catch(e){}return e("div",null,e("details",null,e("summary",null,"Specs"),r&&e("pre",{innerHTML:r.value})),t)},Rx=[Cv,sm,am,um,Yy,Om,nw,Bl,fm,Pc,cm,sw,Xy,ku,Ac,Dm,ic,Cc,$c,Hy,bp,Dc,Nc,Hs,_m,Um,Ip,Mp,pp,op,Zp,nh,hc,$m,Lp,af,Vh,Gg,Dw,Bm,bw,wl,Ll,lh,vl,lp,Lc,Ah,Lm,Xu,Pm,vc,Mc,jf,Qf,xw,By,ah,th,Fu,Ou,Xm,Mb,ey,Vf,Fc,wh,Cw,_c,Rw,Jy,lw,Zy,uc,vh,Dh,km,Am,av,lc,Hw,gh,Sw,nv,Jw,Nw,Hp,Wm,Ol,xp,Sp,kw,Aw,Gm,zw,uh,Ew,dv,cv,pv,wv,vv,wy,qy,Pf,Ff,Bw,Iv,Av,qv],Dx=class{constructor(e){n(this,e),this.ignored=!0,d(this)}disconnectedCallback(){}render(){const{class:n,children:a}=Bs(Rx,{h:e,title:"Mint Components",addons:[Js,ae,Cx]});return i("Default"),i(!0),e(t,{class:n,onClick:{}},e("sqm-brand-selector",null),a)}};export{Dx as sqm_stencilbook}