@saasquatch/mint-components 2.5.10-0 → 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 (48) hide show
  1. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +18 -20
  2. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +2 -2
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -2
  4. package/dist/cjs/{sqm-user-info-form-view-df5b95be.js → sqm-user-info-form-view-9b773a7c.js} +1 -1
  5. package/dist/cjs/{subregions-fd4e4ee2.js → subregions-77aac151.js} +8 -0
  6. package/dist/cjs/{useIndirectTaxForm-76b94531.js → useIndirectTaxForm-102d5c24.js} +3 -3
  7. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
  8. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
  9. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -1
  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-indirect-tax-form/useIndirectTaxForm.js +3 -3
  12. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +13 -16
  13. package/dist/collection/components/tax-and-cash/utils.js +7 -0
  14. package/dist/esm/sqm-banking-info-form_10.entry.js +18 -20
  15. package/dist/esm/sqm-big-stat_47.entry.js +2 -2
  16. package/dist/esm/sqm-stencilbook.entry.js +3 -2
  17. package/dist/esm/{sqm-user-info-form-view-d35324ba.js → sqm-user-info-form-view-0d95c791.js} +1 -1
  18. package/dist/esm/{subregions-c7df98a1.js → subregions-ec4682c7.js} +8 -1
  19. package/dist/esm/{useIndirectTaxForm-6ea561e4.js → useIndirectTaxForm-09809605.js} +3 -3
  20. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  21. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  22. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  23. package/dist/esm-es5/{sqm-user-info-form-view-d35324ba.js → sqm-user-info-form-view-0d95c791.js} +1 -1
  24. package/dist/esm-es5/{subregions-c7df98a1.js → subregions-ec4682c7.js} +1 -1
  25. package/dist/esm-es5/{useIndirectTaxForm-6ea561e4.js → useIndirectTaxForm-09809605.js} +2 -2
  26. package/dist/mint-components/mint-components.esm.js +1 -1
  27. package/dist/mint-components/{p-aaf05ef1.entry.js → p-24d56265.entry.js} +1 -1
  28. package/dist/mint-components/p-2bd3f2ac.system.js +6 -0
  29. package/dist/mint-components/{p-477fe6fa.system.entry.js → p-363bf460.system.entry.js} +1 -1
  30. package/dist/mint-components/{p-98659a12.system.js → p-3dc446ec.system.js} +1 -1
  31. package/dist/mint-components/{p-089c0803.js → p-461a068d.js} +1 -1
  32. package/dist/mint-components/{p-9e90f38e.entry.js → p-71b1cd71.entry.js} +8 -8
  33. package/dist/mint-components/p-99d4ddee.js +107 -0
  34. package/dist/mint-components/p-b1d6a6f2.system.js +1 -0
  35. package/dist/mint-components/{p-4314e5c9.entry.js → p-c0e26b94.entry.js} +2 -2
  36. package/dist/mint-components/{p-615dbc66.system.entry.js → p-df62cb1b.system.entry.js} +1 -1
  37. package/dist/mint-components/p-e78ec46b.system.js +1 -1
  38. package/dist/mint-components/p-ec78006c.system.entry.js +1 -0
  39. package/dist/mint-components/{p-2401753b.js → p-f15ad5b6.js} +1 -1
  40. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
  41. package/dist/types/components/tax-and-cash/utils.d.ts +3 -1
  42. package/docs/docs.docx +0 -0
  43. package/docs/stats.json +209 -208
  44. package/package.json +1 -1
  45. package/dist/mint-components/p-1cb0fc65.system.js +0 -6
  46. package/dist/mint-components/p-59f9d9bb.js +0 -107
  47. package/dist/mint-components/p-db8e74e0.system.entry.js +0 -1
  48. package/dist/mint-components/p-ed18f6a0.system.js +0 -1
@@ -1,4 +1,4 @@
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-2401753b.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-089c0803.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`
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
2
  width: 100vw;
3
3
  height: 100vh;
4
4
 
@@ -144,4 +144,4 @@ 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,
144
144
  }
145
145
  }
146
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",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}
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}