@saasquatch/mint-components 1.15.0-59 → 1.15.0-60

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 (115) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-82997130.js → IndirectTaxDetailsView-b783411a.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-bccd02b4.js → ShadowViewAddon-cb3fc679.js} +1 -1
  3. package/dist/cjs/{global-303a0ed3.js → global-6ee8a4bb.js} +48 -12
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/mint-components.cjs.js +1 -1
  6. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +3 -3
  7. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +14 -20
  8. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  13. package/dist/cjs/{sqm-portal-email-verification-view-4d4dd884.js → sqm-portal-email-verification-view-d3dccee1.js} +1 -1
  14. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/{sqm-portal-profile-view-ef90b55f.js → sqm-portal-profile-view-153a8ca9.js} +1 -1
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -6
  20. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +2 -2
  21. package/dist/cjs/{utils-055817a8.js → utils-8b6dc3f8.js} +1 -1
  22. package/dist/collection/components/sqm-brand/sqm-brand.js +11 -4
  23. package/dist/collection/global/global.js +8 -6
  24. package/dist/collection/global/styles.js +10 -7
  25. package/dist/collection/global/styles.ts +5 -2
  26. package/dist/collection/insertfont.js +18 -0
  27. package/dist/esm/{IndirectTaxDetailsView-0566ce31.js → IndirectTaxDetailsView-54319d79.js} +2 -2
  28. package/dist/esm/{ShadowViewAddon-67b43814.js → ShadowViewAddon-ff7a4b04.js} +1 -1
  29. package/dist/esm/{global-5cd903e5.js → global-c38fd7a9.js} +48 -13
  30. package/dist/esm/loader.js +1 -1
  31. package/dist/esm/mint-components.js +1 -1
  32. package/dist/esm/sqm-banking-info-form_10.entry.js +3 -3
  33. package/dist/esm/sqm-big-stat_42.entry.js +13 -19
  34. package/dist/esm/sqm-code-verification.entry.js +1 -1
  35. package/dist/esm/sqm-email-verification.entry.js +1 -1
  36. package/dist/esm/sqm-empty_4.entry.js +1 -1
  37. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  38. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  39. package/dist/esm/{sqm-portal-email-verification-view-a4076c61.js → sqm-portal-email-verification-view-cb5b8338.js} +1 -1
  40. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  41. package/dist/esm/{sqm-portal-profile-view-d0ac20aa.js → sqm-portal-profile-view-47aafa20.js} +1 -1
  42. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  43. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  44. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  45. package/dist/esm/sqm-stencilbook.entry.js +6 -6
  46. package/dist/esm/sqm-tax-and-cash.entry.js +2 -2
  47. package/dist/esm/{utils-4f44d1ed.js → utils-9c62ea4a.js} +1 -1
  48. package/dist/esm-es5/{IndirectTaxDetailsView-0566ce31.js → IndirectTaxDetailsView-54319d79.js} +1 -1
  49. package/dist/esm-es5/{ShadowViewAddon-67b43814.js → ShadowViewAddon-ff7a4b04.js} +1 -1
  50. package/dist/esm-es5/{global-5cd903e5.js → global-c38fd7a9.js} +4 -4
  51. package/dist/esm-es5/loader.js +1 -1
  52. package/dist/esm-es5/mint-components.js +1 -1
  53. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  54. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  55. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  56. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  57. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  58. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  59. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  60. package/dist/esm-es5/{sqm-portal-email-verification-view-a4076c61.js → sqm-portal-email-verification-view-cb5b8338.js} +1 -1
  61. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  62. package/dist/esm-es5/{sqm-portal-profile-view-d0ac20aa.js → sqm-portal-profile-view-47aafa20.js} +1 -1
  63. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  64. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  65. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  66. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  67. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  68. package/dist/esm-es5/{utils-4f44d1ed.js → utils-9c62ea4a.js} +1 -1
  69. package/dist/mint-components/global/styles.ts +5 -2
  70. package/dist/mint-components/mint-components.esm.js +1 -1
  71. package/dist/mint-components/mint-components.js +1 -1
  72. package/dist/mint-components/{p-1fcef6b3.system.js → p-003325f4.system.js} +10 -10
  73. package/dist/mint-components/{p-4e57299e.system.js → p-06a84a39.system.js} +1 -1
  74. package/dist/mint-components/{p-198eea1e.system.js → p-118593a6.system.js} +1 -1
  75. package/dist/mint-components/{p-3d323c4e.entry.js → p-12cb6a87.entry.js} +1 -1
  76. package/dist/mint-components/{p-73d6e64d.js → p-15915f9a.js} +1 -1
  77. package/dist/mint-components/{p-d514fae0.system.entry.js → p-15c04aac.system.entry.js} +1 -1
  78. package/dist/mint-components/{p-09e4b76a.entry.js → p-1870fd94.entry.js} +1 -1
  79. package/dist/mint-components/{p-31b7d857.system.entry.js → p-19c2cfae.system.entry.js} +1 -1
  80. package/dist/mint-components/{p-61e9c1ea.entry.js → p-22d59cba.entry.js} +19 -19
  81. package/dist/mint-components/{p-04b2ea6e.system.entry.js → p-29710406.system.entry.js} +1 -1
  82. package/dist/mint-components/{p-462c53b1.entry.js → p-2a69ccdc.entry.js} +2 -2
  83. package/dist/mint-components/{p-5930ec77.entry.js → p-3a22b54d.entry.js} +1 -1
  84. package/dist/mint-components/{p-96750d1d.js → p-487ca373.js} +1 -1
  85. package/dist/mint-components/{p-4f15ee1e.entry.js → p-4d95a728.entry.js} +1 -1
  86. package/dist/mint-components/{p-bca249f8.system.js → p-50302878.system.js} +1 -1
  87. package/dist/mint-components/{p-84b38f63.system.entry.js → p-5911a34f.system.entry.js} +1 -1
  88. package/dist/mint-components/{p-c9f99a68.js → p-5decae6e.js} +1 -1
  89. package/dist/mint-components/{p-0b71a267.entry.js → p-66b35c5f.entry.js} +1 -1
  90. package/dist/mint-components/{p-0ae14c43.system.entry.js → p-6826e36f.system.entry.js} +1 -1
  91. package/dist/mint-components/{p-c935d40e.entry.js → p-68e277f9.entry.js} +1 -1
  92. package/dist/mint-components/{p-7a772a4a.js → p-7264a34d.js} +1 -1
  93. package/dist/mint-components/{p-7b529db0.entry.js → p-77a73017.entry.js} +1 -1
  94. package/dist/mint-components/p-8c42d0a1.system.entry.js +1 -0
  95. package/dist/mint-components/{p-0e45e635.system.entry.js → p-8c8845f6.system.entry.js} +1 -1
  96. package/dist/mint-components/{p-0d312808.system.entry.js → p-9043b1c3.system.entry.js} +1 -1
  97. package/dist/mint-components/{p-f37a9a51.system.entry.js → p-9759c109.system.entry.js} +1 -1
  98. package/dist/mint-components/{p-229b6ffc.system.js → p-9d8d348d.system.js} +1 -1
  99. package/dist/mint-components/{p-1abbf18d.system.entry.js → p-a6811a96.system.entry.js} +1 -1
  100. package/dist/mint-components/{p-c31f0a37.entry.js → p-a7638e37.entry.js} +1 -1
  101. package/dist/mint-components/{p-d1dde2ac.system.js → p-a889467c.system.js} +1 -1
  102. package/dist/mint-components/{p-c8551945.entry.js → p-aa80d94f.entry.js} +1 -1
  103. package/dist/mint-components/{p-c19a96b5.js → p-c6a39fd3.js} +1 -1
  104. package/dist/mint-components/{p-12beaff4.js → p-cb763814.js} +1 -1
  105. package/dist/mint-components/{p-35b82b34.system.entry.js → p-e5954a23.system.entry.js} +1 -1
  106. package/dist/mint-components/{p-cfcbb76e.entry.js → p-ea0032f2.entry.js} +1 -1
  107. package/dist/mint-components/{p-49d8a962.system.entry.js → p-ee859839.system.entry.js} +1 -1
  108. package/dist/mint-components/{p-a2a2e25b.system.entry.js → p-f1d17cda.system.entry.js} +1 -1
  109. package/dist/mint-components/{p-c4e04f1e.system.js → p-f8af708e.system.js} +1 -1
  110. package/dist/mint-components/{p-c434ade0.entry.js → p-fbef1214.entry.js} +1 -1
  111. package/dist/types/global/styles.d.ts +4 -1
  112. package/dist/types/insertfont.d.ts +1 -0
  113. package/docs/docs.docx +0 -0
  114. package/package.json +1 -1
  115. package/dist/mint-components/p-8c81c2d2.system.entry.js +0 -1
@@ -1 +1 @@
1
- System.register(["./p-59b028db.system.js","./p-1fcef6b3.system.js","./p-1a673057.system.js","./p-bca249f8.system.js"],(function(e){"use strict";var a,l,r,i;return{setters:[function(e){a=e.h},function(e){l=e.i},function(e){r=e.c},function(e){i=e.f}],execute:function(){e("I",s);var n={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function s(e,l){var i=r(n);var s=i.toString();var t="\n :host{\n display: block;\n }";return a("div",{class:i.classes.Container},a("style",{type:"text/css"},t,s),a("div",{class:i.classes.InvoiceTableContaier},a("sl-details",{summary:e.header},a("p",{class:i.classes.Description},e.description),l)))}var t=e("b",[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}]);var o=e("a",[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}]);var u=e("A",{CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}});var d=e("v",{GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"});var b={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"1px solid #E0E0E0",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"1px solid var(--sl-color-danger-500)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sl-color-danger-500)"}}};var T=r(b);var A=T.toString();var p="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n ";var v=e("O",(function(e){var r,n,s;var o=e.states,u=e.states.formState,b=e.callbacks,v=e.text;var c=T.classes;var N=function(e){return l.formatMessage({id:"tax-field-label"+e,defaultMessage:v.indirectTaxNumber},{taxType:e})};var I=function(e){return l.formatMessage({id:"tax-field-label"+e,defaultMessage:v.error.indirectTaxNumber},{taxType:e})};var S=function(e){var l=e.label,r=e.error,i=e.name;var n;return a("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:c.Input,label:l,disabled:o.loading||o.disabled,value:u[i]},((n=u.errors)===null||n===void 0?void 0:n[i])&&{class:c.ErrorInput,helpText:r},{id:i,name:"/"+i}))};var m=function(){var l,r;return a("div",{class:c.ConditionalInputsContainer},a("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:c.Input,value:u.subRegion,label:v.subRegion,disabled:o.loading||o.disabled},((l=u.errors)===null||l===void 0?void 0:l.indirectTaxNumber)&&{class:c.ErrorInput,helpText:i(v.subRegion,v.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return a("sl-menu-item",{value:e.regionCode},e.displayName)}))),a(S,{name:"indirectTaxNumber",label:N("VAT"),error:I("VAT")}),a("sl-checkbox",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:u.hasSubRegionTaxNumber,"onSl-change":b.onSpainToggle,disabled:o.disabled||o.isPartner},v.isRegisteredSubRegionIncomeTax),u.hasSubRegionTaxNumber&&a("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:c.Input,label:v.subRegionTaxNumberLabel,disabled:o.loading||o.disabled,value:u.subRegionTaxNumber},((r=u.errors)===null||r===void 0?void 0:r.subRegionTaxNumber)&&{class:c.ErrorInput,helpText:i(v.subRegionTaxNumberLabel,v.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var R=function(){var l,r;var n=T.classes;var s=(l=t===null||t===void 0?void 0:t.find((function(e){return e.regionCode===u.province})))===null||l===void 0?void 0:l.taxType;return a("div",{class:n.ConditionalInputsContainer},a("sl-select",Object.assign({required:true,value:u.province,exportparts:"label: input-label, base: input-base",class:n.Input,label:v.province,disabled:o.loading||o.disabled,"onSl-select":function(e){return b.onFormChange("province",e)}},((r=u.errors)===null||r===void 0?void 0:r.province)&&{class:n.ErrorInput,helpText:i(v.province,v.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return a("sl-menu-item",{value:e.regionCode},e.displayName)}))),s==="GST"&&a(S,{label:N("GST"),error:I("GST"),name:"indirectTaxNumber"}),s==="HST"&&a(S,{label:N("HST"),error:I("HST"),name:"indirectTaxNumber"}),u.province==="QUEBEC"&&a("div",{class:n.ConditionalInputsContainer},a("sl-checkbox",{class:n.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":b.onQstToggle,checked:u.hasQst,disabled:o.isPartner||o.disabled},v.isRegisteredQST),u.hasQst&&a(S,{name:"qstNumber",label:v.qstNumber,error:i(v.qstNumber,v.error.fieldRequiredError)})))};var g=function(e){var l;switch(e){case"CA":return a(R,null);case"ES":return a(m,null);default:return a("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:c.Input,value:u.indirectTaxNumber,label:N(d[e]||"GENERAL"),disabled:o.loading||o.disabled},((l=u.errors)===null||l===void 0?void 0:l.indirectTaxNumber)&&{class:c.ErrorInput,helpText:I(d[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var E=g(u.selectedRegion);return a("div",{style:o.hide?{display:"none"}:{}},a("form",{class:c.Container},a("style",{type:"text/css"},A,p),a("hr",{class:c.HR}),a("div",{class:c.InputContainer},a("sl-select",Object.assign({required:true,class:c.Input,value:u.selectedRegion,exportparts:"label: input-label, base: input-base",label:v.selectedRegion,disabled:o.loading||o.disabled,"onSl-select":function(e){return b.onFormChange("selectedRegion",e)}},((r=u.errors)===null||r===void 0?void 0:r.selectedRegion)&&{class:c.ErrorInput,helpText:i(v.selectedRegion,v.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),a("sl-input",{class:c.SearchInput,placeholder:v.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){b.setCountrySearch(e.target.value)}}),(n=e.data.countries)===null||n===void 0?void 0:n.map((function(e){return a("sl-menu-item",{value:e.countryCode},e.displayName)})),(s=e.data.allCountries)===null||s===void 0?void 0:s.map((function(e){return a("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),E),a("hr",{class:c.HR})))}))}}}));
1
+ System.register(["./p-59b028db.system.js","./p-003325f4.system.js","./p-1a673057.system.js","./p-50302878.system.js"],(function(e){"use strict";var a,l,r,i;return{setters:[function(e){a=e.h},function(e){l=e.i},function(e){r=e.c},function(e){i=e.f}],execute:function(){e("I",s);var n={Description:{fontSize:"var(--sl-font-size-small)",marginTop:"var(--sl-spacing-small)",margin:"0 0 var(--sl-spacing-large)",color:"var(--sqm-text-subdued)"},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(-sl-font-weight-semibold)",margin:"0 0 var(--sl-spacing-xxx-small)"},Container:{},InvoiceTableContaier:{"& sl-details::part(base)":{border:"none"},"& sl-details::part(content)":{padding:0},"& sl-details::part(header)":{fontSize:"var(--sl-font-size-medium)",padding:"0px"},"& sl-details::part(summary)":{fontWeight:"var(-sl-font-weight-semibold)"},"& sl-details::part(summary-icon)":{marginRight:"100%",marginLeft:"var(--sl-spacing-x-small)",transform:"rotate(90deg)"},"& sl-details[open]::part(summary-icon)":{transform:"rotate(270deg)"}}};function s(e,l){var i=r(n);var s=i.toString();var t="\n :host{\n display: block;\n }";return a("div",{class:i.classes.Container},a("style",{type:"text/css"},t,s),a("div",{class:i.classes.InvoiceTableContaier},a("sl-details",{summary:e.header},a("p",{class:i.classes.Description},e.description),l)))}var t=e("b",[{regionCode:"ALBERTA",taxType:"GST",displayName:"Alberta"},{regionCode:"BRITISHCOLUMBIA",taxType:"HST",displayName:"British Columbia"},{regionCode:"MANITOBA",taxType:"HST",displayName:"Manitoba"},{regionCode:"NEWBRUNSWICK",taxType:"HST",displayName:"New Brunswick"},{regionCode:"NEWFOUNDLANDLABRADOR",taxType:"HST",displayName:"Newfoundland"},{regionCode:"NORTHWESTTERRITORIES",taxType:"GST",displayName:"North West Territories"},{regionCode:"NOVASCOTIA",taxType:"HST",displayName:"Nova Scotia"},{regionCode:"NUNAVUT",taxType:"HST",displayName:"Nunavut"},{regionCode:"ONTARIO",taxType:"HST",displayName:"Ontario"},{regionCode:"PRINCEEDWARDISLAND",taxType:"HST",displayName:"Prince Edward Island"},{regionCode:"QUEBEC",taxType:"GST",displayName:"Quebec"},{regionCode:"SASKATCHEWAN",taxType:"HST",displayName:"Saskatchewan"},{regionCode:"YUKON",taxType:"GST",displayName:"Yukon"}]);var o=e("a",[{regionCode:"SPAINPROPER",taxType:"VAT",displayName:"Spain Proper"},{regionCode:"CANARYISLANDS",taxType:"VAT",displayName:"Canary Islands"}]);var u=e("A",{CA:{labelEnum:"PROVINCE",regions:[{label:"Alberta",value:"ALBERTA"},{label:"British Columbia",value:"BRITISHCOLUMBIA"},{label:"Manitoba",value:"MANITOBA"},{label:"New Brunswick",value:"NEWBRUNSWICK"},{label:"Newfoundland & Labrador",value:"NEWFOUNDLANDANDLABRADOR"},{label:"Northwest Territories",value:"NORTHWESTTERRITORIES"},{label:"Nova Scotia",value:"NOVASCOTIA"},{label:"Nunavut",value:"NUNAVUT"},{label:"Ontario",value:"ONTARIO"},{label:"Prince Edward Island",value:"PRINCEEDWARDISLAND"},{label:"Quebec",value:"QUEBEC"},{label:"Saskatchewan",value:"SASKATCHEWAN"},{label:"Yukon",value:"YUKON"}]},ES:{labelEnum:"REGION",regions:[{label:"Canary Islands",value:"CANARYISLANDS"},{label:"Spain Proper",value:"SPAINPROPER"}]},AU:{labelEnum:"STATE",regions:[{label:"Australian Capital Territory",value:"CAPITALTERRITORY"},{label:"New South Wales",value:"NEWSOUTHWALES"},{label:"Northern Territory",value:"NORTHERNTERRITORY"},{label:"Queensland",value:"QUEENSLAND"},{label:"South Australia",value:"SOUTHAUSTRALIA"},{label:"Tasmania",value:"TASMANIA"},{label:"Victoria",value:"VICTORIA"},{label:"Western Australia",value:"WESTERNAUSTRALIA"}]},US:{labelEnum:"STATE",regions:[{label:"Alabama",value:"ALABAMA"},{label:"Alaska",value:"ALASKA"},{label:"Arizona",value:"ARIZONA"},{label:"Arkansas",value:"ARKANSAS"},{label:"California",value:"CALIFORNIA"},{label:"Colorado",value:"COLORADO"},{label:"Connecticut",value:"CONNECTICUT"},{label:"Delaware",value:"DELAWARE"},{label:"District of Columbia",value:"DISTRICTOFCOLUMBIA"},{label:"Florida",value:"FLORIDA"},{label:"Georgia",value:"GEORGIA"},{label:"Hawaii",value:"HAWAII"},{label:"Idaho",value:"IDAHO"},{label:"Illinois",value:"ILLINOIS"},{label:"Indiana",value:"INDIANA"},{label:"Iowa",value:"IOWA"},{label:"Kansas",value:"KANSAS"},{label:"Kentucky",value:"KENTUCKY"},{label:"Louisiana",value:"LOUISIANA"},{label:"Maine",value:"MAINE"},{label:"Maryland",value:"MARYLAND"},{label:"Massachusetts",value:"MASSACHUSETTS"},{label:"Michigan",value:"MICHIGAN"},{label:"Minnesota",value:"MINNESOTA"},{label:"Mississippi",value:"MISSISSIPPI"},{label:"Missouri",value:"MISSOURI"},{label:"Montana",value:"MONTANA"},{label:"Nebraska",value:"NEBRASKA"},{label:"Nevada",value:"NEVADA"},{label:"New Hampshire",value:"NEWHAMPSHIRE"},{label:"New Jersey",value:"NEWJERSEY"},{label:"New Mexico",value:"NEWMEXICO"},{label:"New York",value:"NEWYORK"},{label:"North Carolina",value:"NORTHCAROLINA"},{label:"North Dakota",value:"NORTHDAKOTA"},{label:"Ohio",value:"OHIO"},{label:"Oklahoma",value:"OKLAHOMA"},{label:"Oregon",value:"OREGON"},{label:"Pennsylvania",value:"PENNSYLVANIA"},{label:"Rhode Island",value:"RHODEISLAND"},{label:"South Carolina",value:"SOUTHCAROLINA"},{label:"South Dakota",value:"SOUTHDAKOTA"},{label:"Tennessee",value:"TENNESSEE"},{label:"Texas",value:"TEXAS"},{label:"Utah",value:"UTAH"},{label:"Vermont",value:"VERMONT"},{label:"Virgin Islands",value:"VIRGINISLANDS"},{label:"Virginia",value:"VIRGINIA"},{label:"Washington",value:"WASHINGTON"},{label:"West Virginia",value:"WESTVIRGINIA"},{label:"Wisconsin",value:"WISCONSIN"},{label:"Wyoming",value:"WYOMING"},{label:"Americas Forces",value:"AAMILITARY"},{label:"Europe, Middle East, Canada, Africa and Canada Forces",value:"AEMILITARY"},{label:"Pacific Forces",value:"APMILITARY"},{label:"Other",value:"OTHER"}]}});var d=e("v",{GB:"VAT",AU:"GST",NZ:"GST",CA:"HST",AT:"VAT",BE:"VAT",BG:"VAT",HR:"VAT",CY:"VAT",CZ:"VAT",DK:"VAT",EE:"VAT",FI:"VAT",FR:"VAT",DE:"VAT",GR:"VAT",HU:"VAT",IE:"VAT",IT:"VAT",LV:"VAT",LT:"VAT",LU:"VAT",MT:"VAT",NL:"VAT",PL:"VAT",PT:"VAT",RO:"VAT",SK:"VAT",SI:"VAT",ES:"VAT",SE:"VAT",IS:"VAT",IN:"GST",IL:"VAT",JP:"CT",MX:"VAT",NO:"VAT",SG:"GST",ZA:"VAT",KR:"VAT",CH:"VAT",TW:"VAT",TH:"VAT",PH:"VAT",MY:"SST",AE:"VAT",TR:"VAT",RU:"VAT"});var b={Container:{width:"100%"},InputContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px",padding:"16px",maxWidth:"450px"},ConditionalInputsContainer:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},HR:{border:"1px solid #E0E0E0",margin:"10px 0"},Input:{maxWidth:"500px"},Checkbox:{"&::part(control)":{borderRadius:"0 !important"}},SearchInput:{padding:"var(--sl-spacing-x-small)"},ErrorInput:{maxWidth:"500px","&::part(base)":{border:"1px solid var(--sl-color-danger-500)",borderRadius:"var(--sl-input-border-radius-medium)"},"&::part(help-text)":{color:"var(--sl-color-danger-500)"}}};var T=r(b);var A=T.toString();var p="\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n ";var v=e("O",(function(e){var r,n,s;var o=e.states,u=e.states.formState,b=e.callbacks,v=e.text;var c=T.classes;var N=function(e){return l.formatMessage({id:"tax-field-label"+e,defaultMessage:v.indirectTaxNumber},{taxType:e})};var I=function(e){return l.formatMessage({id:"tax-field-label"+e,defaultMessage:v.error.indirectTaxNumber},{taxType:e})};var S=function(e){var l=e.label,r=e.error,i=e.name;var n;return a("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:c.Input,label:l,disabled:o.loading||o.disabled,value:u[i]},((n=u.errors)===null||n===void 0?void 0:n[i])&&{class:c.ErrorInput,helpText:r},{id:i,name:"/"+i}))};var m=function(){var l,r;return a("div",{class:c.ConditionalInputsContainer},a("sl-select",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:c.Input,value:u.subRegion,label:v.subRegion,disabled:o.loading||o.disabled},((l=u.errors)===null||l===void 0?void 0:l.indirectTaxNumber)&&{class:c.ErrorInput,helpText:i(v.subRegion,v.error.fieldRequiredError)},{id:"subRegion",name:"/subRegion"}),e.data.esRegions.map((function(e){return a("sl-menu-item",{value:e.regionCode},e.displayName)}))),a(S,{name:"indirectTaxNumber",label:N("VAT"),error:I("VAT")}),a("sl-checkbox",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:u.hasSubRegionTaxNumber,"onSl-change":b.onSpainToggle,disabled:o.disabled||o.isPartner},v.isRegisteredSubRegionIncomeTax),u.hasSubRegionTaxNumber&&a("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:c.Input,label:v.subRegionTaxNumberLabel,disabled:o.loading||o.disabled,value:u.subRegionTaxNumber},((r=u.errors)===null||r===void 0?void 0:r.subRegionTaxNumber)&&{class:c.ErrorInput,helpText:i(v.subRegionTaxNumberLabel,v.error.fieldRequiredError)},{id:"subRegionTaxNumber",name:"/subRegionTaxNumber"})))};var R=function(){var l,r;var n=T.classes;var s=(l=t===null||t===void 0?void 0:t.find((function(e){return e.regionCode===u.province})))===null||l===void 0?void 0:l.taxType;return a("div",{class:n.ConditionalInputsContainer},a("sl-select",Object.assign({required:true,value:u.province,exportparts:"label: input-label, base: input-base",class:n.Input,label:v.province,disabled:o.loading||o.disabled,"onSl-select":function(e){return b.onFormChange("province",e)}},((r=u.errors)===null||r===void 0?void 0:r.province)&&{class:n.ErrorInput,helpText:i(v.province,v.error.fieldRequiredError)},{id:"province",name:"/province"}),e.data.provinces.map((function(e){return a("sl-menu-item",{value:e.regionCode},e.displayName)}))),s==="GST"&&a(S,{label:N("GST"),error:I("GST"),name:"indirectTaxNumber"}),s==="HST"&&a(S,{label:N("HST"),error:I("HST"),name:"indirectTaxNumber"}),u.province==="QUEBEC"&&a("div",{class:n.ConditionalInputsContainer},a("sl-checkbox",{class:n.Checkbox,exportparts:"label: input-label, base: input-base","onSl-change":b.onQstToggle,checked:u.hasQst,disabled:o.isPartner||o.disabled},v.isRegisteredQST),u.hasQst&&a(S,{name:"qstNumber",label:v.qstNumber,error:i(v.qstNumber,v.error.fieldRequiredError)})))};var g=function(e){var l;switch(e){case"CA":return a(R,null);case"ES":return a(m,null);default:return a("sl-input",Object.assign({required:true,exportparts:"label: input-label, base: input-base",class:c.Input,value:u.indirectTaxNumber,label:N(d[e]||"GENERAL"),disabled:o.loading||o.disabled},((l=u.errors)===null||l===void 0?void 0:l.indirectTaxNumber)&&{class:c.ErrorInput,helpText:I(d[e]||"GENERAL")},{id:"indirectTaxNumber",name:"/indirectTaxNumber"}))}};var E=g(u.selectedRegion);return a("div",{style:o.hide?{display:"none"}:{}},a("form",{class:c.Container},a("style",{type:"text/css"},A,p),a("hr",{class:c.HR}),a("div",{class:c.InputContainer},a("sl-select",Object.assign({required:true,class:c.Input,value:u.selectedRegion,exportparts:"label: input-label, base: input-base",label:v.selectedRegion,disabled:o.loading||o.disabled,"onSl-select":function(e){return b.onFormChange("selectedRegion",e)}},((r=u.errors)===null||r===void 0?void 0:r.selectedRegion)&&{class:c.ErrorInput,helpText:i(v.selectedRegion,v.error.fieldRequiredError)},{id:"selectedRegion",name:"/selectedRegion"}),a("sl-input",{class:c.SearchInput,placeholder:v.searchForCountryText,onKeyDown:function(e){e.stopPropagation()},"onSl-input":function(e){b.setCountrySearch(e.target.value)}}),(n=e.data.countries)===null||n===void 0?void 0:n.map((function(e){return a("sl-menu-item",{value:e.countryCode},e.displayName)})),(s=e.data.allCountries)===null||s===void 0?void 0:s.map((function(e){return a("sl-menu-item",{value:e.countryCode,style:{display:"none"}},e.displayName)}))),E),a("hr",{class:c.HR})))}))}}}));
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))s[r]=e[r]}return s};return __assign.apply(this,arguments)};System.register(["./p-59b028db.system.js","./p-1fcef6b3.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-67ad2252.system.js"],(function(s){"use strict";var e,t,n,r,a,i;return{setters:[function(s){e=s.h},function(s){t=s.i},function(s){n=s.c},function(s){r=s.A;a=s.a},function(s){i=s.T}],execute:function(){s("P",p);var o={Wrapper:r,Column:__assign({},a),ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sl-color-gray-500)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=n(o);var u=l.toString();function p(s){var n=s.states,r=s.callbacks,a=s.content,o=a.email,p=a.verifyMessage,f=a.emailVerificationHeader,d=a.resendEmailButtonText,g=a.verificationStatusMessage,m=a.verificationLoadingMessage,y=a.verificationResentMessage;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,u),e(i,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":r.submit},s.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.states.error)),s.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},y)),e(i,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:p},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("p",{style:{color:"var(--sl-color-gray-500)",fontSize:"14px"}},t.formatMessage({id:"verificationStatus",defaultMessage:n.loadingVerification?m+" {countdown}":g},{countdown:n.loadingVerification?e("sl-spinner",null):n.countdown})),e("a",{class:n.loading?l.classes.ButtonLinkLoading:l.classes.ButtonLink,onClick:r.submit},d)))}}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))s[r]=e[r]}return s};return __assign.apply(this,arguments)};System.register(["./p-59b028db.system.js","./p-003325f4.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-67ad2252.system.js"],(function(s){"use strict";var e,t,n,r,a,i;return{setters:[function(s){e=s.h},function(s){t=s.i},function(s){n=s.c},function(s){r=s.A;a=s.a},function(s){i=s.T}],execute:function(){s("P",p);var o={Wrapper:r,Column:__assign({},a),ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sl-color-gray-500)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=n(o);var u=l.toString();function p(s){var n=s.states,r=s.callbacks,a=s.content,o=a.email,p=a.verifyMessage,f=a.emailVerificationHeader,d=a.resendEmailButtonText,g=a.verificationStatusMessage,m=a.verificationLoadingMessage,y=a.verificationResentMessage;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,u),e(i,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":r.submit},s.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.states.error)),s.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},y)),e(i,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:p},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("p",{style:{color:"var(--sl-color-gray-500)",fontSize:"14px"}},t.formatMessage({id:"verificationStatus",defaultMessage:n.loadingVerification?m+" {countdown}":g},{countdown:n.loadingVerification?e("sl-spinner",null):n.countdown})),e("a",{class:n.loading?l.classes.ButtonLinkLoading:l.classes.ButtonLink,onClick:r.submit},d)))}}}}));
@@ -1,4 +1,4 @@
1
- import{h as e,r as a,c as t,g as n}from"./p-c7c11325.js";import{i as o}from"./p-7a772a4a.js";import{m as i,k as r,f as l,n as s,u as d,b as c,j as u}from"./p-63e29387.js";import{d as p,_ as m,L as v,J as b,t as h,F as y,x as g,$ as f,i as x,q as C,u as S,R as w}from"./p-8e2bead4.js";import{j as k}from"./p-e7e129ac.js";import{c as I}from"./p-c1086930.js";import{g as T}from"./p-9ec99ced.js";import{c as P}from"./p-cef45012.js";import"./p-49b20dae.js";import{G as _}from"./p-b1ddc706.js";import{u as A,a as q}from"./p-fb5be0c5.js";import{u as M}from"./p-000c91b1.js";import{l as N}from"./p-08700497.js";import{g as D}from"./p-3787a4d6.js";import{a as E,b as R,O as B,I as L,v as F,A as U}from"./p-12beaff4.js";import{t as O,v as j,g as z,L as G,f as W,a as H,o as V}from"./p-c9f99a68.js";import{i as K,a as $,S as Y,c as J,T as Z,F as X,U as Q,d as ee,C as ae}from"./p-6ad674c2.js";import{b as te}from"./p-38c7775a.js";import{T as ne,a as oe,g as ie,V as re}from"./p-0e59a91e.js";const le={CAD:[{countryCode:"CA",currency:"CAD",defaultFinancePaymentMethodId:3,withdrawalSettingId:37},{countryCode:"CA",currency:"CAD",defaultFinancePaymentMethodId:7,withdrawalSettingId:37}],AUD:[{countryCode:"US",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"JP",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"AUD",defaultFinancePaymentMethodId:3,withdrawalSettingId:37},{countryCode:"AU",currency:"AUD",defaultFinancePaymentMethodId:7,withdrawalSettingId:37}],EUR:[{countryCode:"US",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"IE",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"GB",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"JP",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"NL",currency:"EUR",defaultFinancePaymentMethodId:7,withdrawalSettingId:25}],GBP:[{countryCode:"US",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"GBP",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"JP",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"GB",currency:"GBP",defaultFinancePaymentMethodId:7,withdrawalSettingId:25}],USD:[{countryCode:"US",currency:"USD",defaultFinancePaymentMethodId:3,withdrawalSettingId:39},{countryCode:"CA",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"JP",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"US",currency:"USD",defaultFinancePaymentMethodId:7,withdrawalSettingId:39}],JPY:[{countryCode:"JP",currency:"JPY",defaultFinancePaymentMethodId:5,withdrawalSettingId:8279},{countryCode:"JP",currency:"JPY",defaultFinancePaymentMethodId:7,withdrawalSettingId:8279}],KRW:[{countryCode:"KR",currency:"KRW",defaultFinancePaymentMethodId:5,withdrawalSettingId:149}],MYR:[{countryCode:"MY",currency:"MYR",defaultFinancePaymentMethodId:5,withdrawalSettingId:16405}],MXN:[{countryCode:"MX",currency:"MXN",defaultFinancePaymentMethodId:5,withdrawalSettingId:4181},{countryCode:"MX",currency:"MXN",defaultFinancePaymentMethodId:7,withdrawalSettingId:4181}],RUB:[{countryCode:"RU",currency:"RUB",defaultFinancePaymentMethodId:5,withdrawalSettingId:1685},{countryCode:"RU",currency:"RUB",defaultFinancePaymentMethodId:7,withdrawalSettingId:1717}],ARS:[{countryCode:"AR",currency:"ARS",defaultFinancePaymentMethodId:5,withdrawalSettingId:149}]},se=P({ModalTitleContainer:{display:"flex",gap:"var(--sl-spacing-small)",alignItems:"center"},FormWrapper:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},CheckboxContainer:{alignItems:"flex-start",justifyContent:"flex-start",gap:"var(--sl-spacing-xx-small)"},TitleContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--sl-spacing-small)"},TextContainer:{display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"var(--sl-spacing-medium)",paddingBottom:"16px"},BtnContainer:{paddingTop:"36px",display:"flex",gap:"8px"},ErrorText:{color:"var(--sqm-danger-color-icon)",marginTop:"10px"},PageDescriptionText:{color:"var(--sqm-text-subdued)",fontSize:"var(--sl-font-size-medium)"},DescriptionText:{color:"var(--sqm-text-subdued)"},AlertContainer:{"&::part(base)":{backgroundColor:"var(--sqm-danger-color-background)",border:"none",padding:"0 16px",color:"var(--sqm-danger-color-text)",marginBottom:"16px"},"& sl-icon::part(base)":{color:"var(--sqm-danger-color-icon)"}},RadioContainer:{display:"flex",flexDirection:"column"},PartnerAlertContainer:{"&::part(base)":{backgroundColor:"var(--sqm-informative-color-background)",borderTop:"none",padding:"0 16px",border:"none",color:"var(--sqm-informative-color-text)",marginBottom:"16px"},"& sl-icon::part(base)":{color:"var(--sqm-informative-color-icon)"}},Checkbox:{"&::part(control)":{borderRadius:"50% !important"},"&::part(label)":{fontSize:"var(--sl-font-size-small)"}},InputContainer:{padding:"16px",margin:"16px 0px 16px 0px",borderTop:"1px solid var(--sqm-border-color)",borderBottom:"1px solid var(--sqm-border-color)",display:"flex",flexDirection:"column",width:"100%",gap:"16px","& sl-input::part(base)":{maxWidth:"450px"},"& sl-input::part(label)":{fontSize:"var(--sl-font-size-small)"},"& sl-select::part(base)":{maxWidth:"450px"},"& sl-select::part(label)":{fontSize:"var(--sl-font-size-small)"}},CheckboxSkeleton:{width:"16px",height:"16px",borderRadius:"50%",background:"var(--sqm-skeleton-background)"},SmallSkeleton:{width:"100px",height:"16px",borderRadius:"50px",background:"var(--sqm-skeleton-background)"},LargeSkeleton:{width:"100%",maxWidth:"320px",height:"40px",borderRadius:"50px",background:"var(--sqm-skeleton-background)"},InfoWarningIcon:{height:"26px",width:"26px"},Dialog:{"&::part(panel)":{maxWidth:"420px"},"&::part(title)":{fontSize:"var(--sl-font-size-large)",fontWeight:"600"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",fontSize:"var(--sl-font-size-small)"},"&::part(footer)":{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)",marginBottom:"var(--sl-spacing-xx-small)",alignItems:"center",flex:"1"}},DialogButton:{margin:"auto",width:"100%"}}),de=se.toString(),ce=a=>{var t;const{states:n,states:{formState:i},callbacks:r,text:l,refs:s,slots:d}=a,{classes:c}=se,u=(a,t)=>{let n=Array(t).fill(0);const o={display:"flex",gap:"8px"};return void 0===a?e("div",{style:{...o,flexDirection:"column",gap:"16px"}},e("div",{class:c.SmallSkeleton}),e("div",{style:{...o,flexDirection:"row"}},e("div",{class:c.CheckboxSkeleton}),e("div",{class:c.SmallSkeleton})),e("div",{style:{...o,flexDirection:"row"}},e("div",{class:c.CheckboxSkeleton}),e("div",{class:c.SmallSkeleton}))):"toPayPalAccount"===a?e("div",{style:{...o,flexDirection:"column"}},e("div",{class:c.SmallSkeleton}),e("div",{class:c.LargeSkeleton})):n.map(((a,t)=>e("div",{style:{...o,flexDirection:"column"},key:t},e("div",{class:c.SmallSkeleton}),e("div",{class:c.LargeSkeleton}))))};return e("sl-form",{class:c.FormWrapper,"onSl-submit":r.onSubmit,ref:e=>s.formRef.current=e,novalidate:!0},e("style",{type:"text/css"},de,"\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n\n & sl-select::part(label) {\n font-size: var(--sl-font-size-small);\n font-weight: 600\n }\n\n /* this class is dynamically applied in controller */\n .error-input::part(base) {\n --sqm-input-border-color: var(--sqm-danger-color-border);\n --sl-input-border-color: var(--sqm-danger-color-border);\n --sl-input-border-color-hover: var(--sqm-danger-color-border); \n --sl-input-border-color-focus: var(--sqm-danger-color-background);\n }\n\n .error-input::part(help-text) {\n color: var(--sqm-danger-color-text);\n }\n \n "),e("sl-dialog",{class:se.classes.Dialog,open:n.showModal,"onSl-hide":r.onModalClose},e("div",{class:c.ModalTitleContainer,slot:"label"},e("sl-icon",{name:"info-circle",style:{color:"var(--sl-color-info-500)"}}),e("h2",{style:{fontSize:"var(--sl-font-size-large)"}},l.modalTitle)),e("p",null,l.modalDescription),e("sl-button",{slot:"footer",type:"primary",class:se.classes.DialogButton,submit:!0,exportparts:"base: primarybutton-base"},l.modalButtonText)),e("div",{class:c.TextContainer},e("div",null,!n.hideSteps&&e("p",null,o.formatMessage({id:"formStep",defaultMessage:l.formStep},{step:n.step,count:K})),e("h3",{style:{fontSize:"24px"}},l.taxAndPayouts),e("p",{class:c.PageDescriptionText},l.taxAndPayoutsDescription)),(null===(t=i.errors)||void 0===t?void 0:t.general)&&e("sl-alert",{exportparts:"base: alert-base, icon:alert-icon",type:"warning",open:!0,class:se.classes.AlertContainer},e("sl-icon",{slot:"icon",name:"exclamation-octagon"}),e("strong",null,l.error.generalTitle),e("br",null),o.formatMessage({id:"generalDescription",defaultMessage:l.error.generalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},l.supportLink)})),n.isPartner&&!n.hideSteps&&e("sl-alert",{exportparts:"base: alert-base, icon:alert-icon",type:"primary",open:!0,class:se.classes.PartnerAlertContainer},e("sl-icon",{slot:"icon",name:"info-circle"}),e("strong",null,l.isPartnerAlertHeader),e("br",null),o.formatMessage({id:"isPartnerAlertDescription",defaultMessage:l.isPartnerAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},l.supportLink)})),e("div",null,e("h4",null,l.paymentMethod),e("p",{class:c.DescriptionText},l.paymentMethodSubtext))),e("div",null,e("div",{class:c.CheckboxContainer},n.loading&&void 0===i.paymentMethodChecked?u(void 0):e("div",{class:c.RadioContainer},n.hasPayPal&&e("sl-radio",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:"toBankAccount"===i.paymentMethodChecked,onInput:()=>r.setPaymentMethodChecked("toBankAccount"),disabled:n.disabled,id:"toBankAccount",name:"/toBankAccount"},l.directlyToBankAccount),"toBankAccount"===i.paymentMethodChecked&&e("div",{class:c.InputContainer,style:n.hideBanking?{display:"none"}:{}},n.loading?u("toBankAccount",d.formInputsSlot.length+3):[d.countryInputSlot,d.paymentMethodSlot,d.formInputsSlot]),n.hasPayPal&&e("sl-radio",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:"toPayPalAccount"===i.paymentMethodChecked,onInput:()=>r.setPaymentMethodChecked("toPayPalAccount"),disabled:n.disabled,id:"toPayPalAccount",name:"/toPayPalAccount"},o.formatMessage({id:"paypal-input-label",defaultMessage:l.toPayPalAccount},{feeCap:n.feeCap})),"toPayPalAccount"===i.paymentMethodChecked&&e("div",{class:c.InputContainer,style:n.hidePayPal?{display:"none"}:{}},n.loading?u("toPayPalAccount"):d.paypalInputSlot),e("div",{style:{paddingTop:"24px",paddingBottom:"12px"}},e("h4",null,l.paymentSchedule)),e("sl-radio",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:"BALANCE_THRESHOLD"===i.paymentScheduleChecked,onInput:()=>r.setPaymentScheduleChecked("BALANCE_THRESHOLD"),disabled:n.disabled,id:"paymentSchedulingType",name:"/paymentSchedulingType",value:"BALANCE_THRESHOLD"},l.paymentScheduleBalanceThreshold),"BALANCE_THRESHOLD"===i.paymentScheduleChecked&&e("div",{class:c.InputContainer,style:n.hideBalanceThreshold?{display:"none"}:{}},n.loading?u("toPayPalAccount"):d.paymentThresholdSelectSlot),e("sl-radio",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:"FIXED_DAY"===i.paymentScheduleChecked,onInput:()=>r.setPaymentScheduleChecked("FIXED_DAY"),disabled:n.disabled,id:"paymentSchedulingType",name:"/paymentSchedulingType",value:"FIXED_DAY"},l.paymentScheduleFixedDay),"FIXED_DAY"===i.paymentScheduleChecked&&e("div",{class:c.InputContainer,style:n.hideFixedDay?{display:"none"}:{}},n.loading?u("toPayPalAccount"):d.paymentFixedDaySelectSlot))),e("div",{class:c.BtnContainer},e("sl-button",Object.assign({type:"primary",disabled:n.disabled||n.saveDisabled,loading:n.saveLoading},n.hideSteps?{onClick:r.onModalOpen}:{submit:"submit"},{exportparts:"base: primarybutton-base"}),l.continueButton),!n.hideBackButton&&e("sl-button",{exportparts:"base: secondarybutton-base",type:"secondary",onClick:r.onBack},l.backButton))))},ue={USD:"USD20.00",GBP:"GBP30.00",EUR:"EUR35.00",AUD:"AUD60.00",CAD:"CAD50.00",NZD:"NZD60.00",HKD:"HKD320.00",DKK:"DKK250.00",ILS:"ILS160.00",MXN:"MXN600.00",RUB:"RUB1200.00",PHP:"PHP2000.00",JPY:"JPY2000.00"},pe=p.gql`
1
+ import{h as e,r as a,c as t,g as n}from"./p-c7c11325.js";import{i as o}from"./p-7264a34d.js";import{m as i,k as r,f as l,n as s,u as d,b as c,j as u}from"./p-63e29387.js";import{d as p,_ as m,L as v,J as b,t as h,F as y,x as g,$ as f,i as x,q as C,u as S,R as w}from"./p-8e2bead4.js";import{j as k}from"./p-e7e129ac.js";import{c as I}from"./p-c1086930.js";import{g as T}from"./p-9ec99ced.js";import{c as P}from"./p-cef45012.js";import"./p-49b20dae.js";import{G as _}from"./p-b1ddc706.js";import{u as A,a as q}from"./p-fb5be0c5.js";import{u as M}from"./p-000c91b1.js";import{l as N}from"./p-08700497.js";import{g as D}from"./p-3787a4d6.js";import{a as E,b as R,O as B,I as L,v as F,A as U}from"./p-cb763814.js";import{t as O,v as j,g as z,L as G,f as W,a as H,o as V}from"./p-5decae6e.js";import{i as K,a as $,S as Y,c as J,T as Z,F as X,U as Q,d as ee,C as ae}from"./p-6ad674c2.js";import{b as te}from"./p-38c7775a.js";import{T as ne,a as oe,g as ie,V as re}from"./p-0e59a91e.js";const le={CAD:[{countryCode:"CA",currency:"CAD",defaultFinancePaymentMethodId:3,withdrawalSettingId:37},{countryCode:"CA",currency:"CAD",defaultFinancePaymentMethodId:7,withdrawalSettingId:37}],AUD:[{countryCode:"US",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"JP",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"AUD",defaultFinancePaymentMethodId:3,withdrawalSettingId:37},{countryCode:"AU",currency:"AUD",defaultFinancePaymentMethodId:7,withdrawalSettingId:37}],EUR:[{countryCode:"US",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"IE",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"GB",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"JP",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"NL",currency:"EUR",defaultFinancePaymentMethodId:7,withdrawalSettingId:25}],GBP:[{countryCode:"US",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"GBP",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"JP",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"GB",currency:"GBP",defaultFinancePaymentMethodId:7,withdrawalSettingId:25}],USD:[{countryCode:"US",currency:"USD",defaultFinancePaymentMethodId:3,withdrawalSettingId:39},{countryCode:"CA",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"JP",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"US",currency:"USD",defaultFinancePaymentMethodId:7,withdrawalSettingId:39}],JPY:[{countryCode:"JP",currency:"JPY",defaultFinancePaymentMethodId:5,withdrawalSettingId:8279},{countryCode:"JP",currency:"JPY",defaultFinancePaymentMethodId:7,withdrawalSettingId:8279}],KRW:[{countryCode:"KR",currency:"KRW",defaultFinancePaymentMethodId:5,withdrawalSettingId:149}],MYR:[{countryCode:"MY",currency:"MYR",defaultFinancePaymentMethodId:5,withdrawalSettingId:16405}],MXN:[{countryCode:"MX",currency:"MXN",defaultFinancePaymentMethodId:5,withdrawalSettingId:4181},{countryCode:"MX",currency:"MXN",defaultFinancePaymentMethodId:7,withdrawalSettingId:4181}],RUB:[{countryCode:"RU",currency:"RUB",defaultFinancePaymentMethodId:5,withdrawalSettingId:1685},{countryCode:"RU",currency:"RUB",defaultFinancePaymentMethodId:7,withdrawalSettingId:1717}],ARS:[{countryCode:"AR",currency:"ARS",defaultFinancePaymentMethodId:5,withdrawalSettingId:149}]},se=P({ModalTitleContainer:{display:"flex",gap:"var(--sl-spacing-small)",alignItems:"center"},FormWrapper:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},CheckboxContainer:{alignItems:"flex-start",justifyContent:"flex-start",gap:"var(--sl-spacing-xx-small)"},TitleContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--sl-spacing-small)"},TextContainer:{display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"var(--sl-spacing-medium)",paddingBottom:"16px"},BtnContainer:{paddingTop:"36px",display:"flex",gap:"8px"},ErrorText:{color:"var(--sqm-danger-color-icon)",marginTop:"10px"},PageDescriptionText:{color:"var(--sqm-text-subdued)",fontSize:"var(--sl-font-size-medium)"},DescriptionText:{color:"var(--sqm-text-subdued)"},AlertContainer:{"&::part(base)":{backgroundColor:"var(--sqm-danger-color-background)",border:"none",padding:"0 16px",color:"var(--sqm-danger-color-text)",marginBottom:"16px"},"& sl-icon::part(base)":{color:"var(--sqm-danger-color-icon)"}},RadioContainer:{display:"flex",flexDirection:"column"},PartnerAlertContainer:{"&::part(base)":{backgroundColor:"var(--sqm-informative-color-background)",borderTop:"none",padding:"0 16px",border:"none",color:"var(--sqm-informative-color-text)",marginBottom:"16px"},"& sl-icon::part(base)":{color:"var(--sqm-informative-color-icon)"}},Checkbox:{"&::part(control)":{borderRadius:"50% !important"},"&::part(label)":{fontSize:"var(--sl-font-size-small)"}},InputContainer:{padding:"16px",margin:"16px 0px 16px 0px",borderTop:"1px solid var(--sqm-border-color)",borderBottom:"1px solid var(--sqm-border-color)",display:"flex",flexDirection:"column",width:"100%",gap:"16px","& sl-input::part(base)":{maxWidth:"450px"},"& sl-input::part(label)":{fontSize:"var(--sl-font-size-small)"},"& sl-select::part(base)":{maxWidth:"450px"},"& sl-select::part(label)":{fontSize:"var(--sl-font-size-small)"}},CheckboxSkeleton:{width:"16px",height:"16px",borderRadius:"50%",background:"var(--sqm-skeleton-background)"},SmallSkeleton:{width:"100px",height:"16px",borderRadius:"50px",background:"var(--sqm-skeleton-background)"},LargeSkeleton:{width:"100%",maxWidth:"320px",height:"40px",borderRadius:"50px",background:"var(--sqm-skeleton-background)"},InfoWarningIcon:{height:"26px",width:"26px"},Dialog:{"&::part(panel)":{maxWidth:"420px"},"&::part(title)":{fontSize:"var(--sl-font-size-large)",fontWeight:"600"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",fontSize:"var(--sl-font-size-small)"},"&::part(footer)":{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)",marginBottom:"var(--sl-spacing-xx-small)",alignItems:"center",flex:"1"}},DialogButton:{margin:"auto",width:"100%"}}),de=se.toString(),ce=a=>{var t;const{states:n,states:{formState:i},callbacks:r,text:l,refs:s,slots:d}=a,{classes:c}=se,u=(a,t)=>{let n=Array(t).fill(0);const o={display:"flex",gap:"8px"};return void 0===a?e("div",{style:{...o,flexDirection:"column",gap:"16px"}},e("div",{class:c.SmallSkeleton}),e("div",{style:{...o,flexDirection:"row"}},e("div",{class:c.CheckboxSkeleton}),e("div",{class:c.SmallSkeleton})),e("div",{style:{...o,flexDirection:"row"}},e("div",{class:c.CheckboxSkeleton}),e("div",{class:c.SmallSkeleton}))):"toPayPalAccount"===a?e("div",{style:{...o,flexDirection:"column"}},e("div",{class:c.SmallSkeleton}),e("div",{class:c.LargeSkeleton})):n.map(((a,t)=>e("div",{style:{...o,flexDirection:"column"},key:t},e("div",{class:c.SmallSkeleton}),e("div",{class:c.LargeSkeleton}))))};return e("sl-form",{class:c.FormWrapper,"onSl-submit":r.onSubmit,ref:e=>s.formRef.current=e,novalidate:!0},e("style",{type:"text/css"},de,"\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n\n & sl-select::part(label) {\n font-size: var(--sl-font-size-small);\n font-weight: 600\n }\n\n /* this class is dynamically applied in controller */\n .error-input::part(base) {\n --sqm-input-border-color: var(--sqm-danger-color-border);\n --sl-input-border-color: var(--sqm-danger-color-border);\n --sl-input-border-color-hover: var(--sqm-danger-color-border); \n --sl-input-border-color-focus: var(--sqm-danger-color-background);\n }\n\n .error-input::part(help-text) {\n color: var(--sqm-danger-color-text);\n }\n \n "),e("sl-dialog",{class:se.classes.Dialog,open:n.showModal,"onSl-hide":r.onModalClose},e("div",{class:c.ModalTitleContainer,slot:"label"},e("sl-icon",{name:"info-circle",style:{color:"var(--sl-color-info-500)"}}),e("h2",{style:{fontSize:"var(--sl-font-size-large)"}},l.modalTitle)),e("p",null,l.modalDescription),e("sl-button",{slot:"footer",type:"primary",class:se.classes.DialogButton,submit:!0,exportparts:"base: primarybutton-base"},l.modalButtonText)),e("div",{class:c.TextContainer},e("div",null,!n.hideSteps&&e("p",null,o.formatMessage({id:"formStep",defaultMessage:l.formStep},{step:n.step,count:K})),e("h3",{style:{fontSize:"24px"}},l.taxAndPayouts),e("p",{class:c.PageDescriptionText},l.taxAndPayoutsDescription)),(null===(t=i.errors)||void 0===t?void 0:t.general)&&e("sl-alert",{exportparts:"base: alert-base, icon:alert-icon",type:"warning",open:!0,class:se.classes.AlertContainer},e("sl-icon",{slot:"icon",name:"exclamation-octagon"}),e("strong",null,l.error.generalTitle),e("br",null),o.formatMessage({id:"generalDescription",defaultMessage:l.error.generalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},l.supportLink)})),n.isPartner&&!n.hideSteps&&e("sl-alert",{exportparts:"base: alert-base, icon:alert-icon",type:"primary",open:!0,class:se.classes.PartnerAlertContainer},e("sl-icon",{slot:"icon",name:"info-circle"}),e("strong",null,l.isPartnerAlertHeader),e("br",null),o.formatMessage({id:"isPartnerAlertDescription",defaultMessage:l.isPartnerAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},l.supportLink)})),e("div",null,e("h4",null,l.paymentMethod),e("p",{class:c.DescriptionText},l.paymentMethodSubtext))),e("div",null,e("div",{class:c.CheckboxContainer},n.loading&&void 0===i.paymentMethodChecked?u(void 0):e("div",{class:c.RadioContainer},n.hasPayPal&&e("sl-radio",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:"toBankAccount"===i.paymentMethodChecked,onInput:()=>r.setPaymentMethodChecked("toBankAccount"),disabled:n.disabled,id:"toBankAccount",name:"/toBankAccount"},l.directlyToBankAccount),"toBankAccount"===i.paymentMethodChecked&&e("div",{class:c.InputContainer,style:n.hideBanking?{display:"none"}:{}},n.loading?u("toBankAccount",d.formInputsSlot.length+3):[d.countryInputSlot,d.paymentMethodSlot,d.formInputsSlot]),n.hasPayPal&&e("sl-radio",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:"toPayPalAccount"===i.paymentMethodChecked,onInput:()=>r.setPaymentMethodChecked("toPayPalAccount"),disabled:n.disabled,id:"toPayPalAccount",name:"/toPayPalAccount"},o.formatMessage({id:"paypal-input-label",defaultMessage:l.toPayPalAccount},{feeCap:n.feeCap})),"toPayPalAccount"===i.paymentMethodChecked&&e("div",{class:c.InputContainer,style:n.hidePayPal?{display:"none"}:{}},n.loading?u("toPayPalAccount"):d.paypalInputSlot),e("div",{style:{paddingTop:"24px",paddingBottom:"12px"}},e("h4",null,l.paymentSchedule)),e("sl-radio",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:"BALANCE_THRESHOLD"===i.paymentScheduleChecked,onInput:()=>r.setPaymentScheduleChecked("BALANCE_THRESHOLD"),disabled:n.disabled,id:"paymentSchedulingType",name:"/paymentSchedulingType",value:"BALANCE_THRESHOLD"},l.paymentScheduleBalanceThreshold),"BALANCE_THRESHOLD"===i.paymentScheduleChecked&&e("div",{class:c.InputContainer,style:n.hideBalanceThreshold?{display:"none"}:{}},n.loading?u("toPayPalAccount"):d.paymentThresholdSelectSlot),e("sl-radio",{class:c.Checkbox,exportparts:"label: input-label, base: input-base",checked:"FIXED_DAY"===i.paymentScheduleChecked,onInput:()=>r.setPaymentScheduleChecked("FIXED_DAY"),disabled:n.disabled,id:"paymentSchedulingType",name:"/paymentSchedulingType",value:"FIXED_DAY"},l.paymentScheduleFixedDay),"FIXED_DAY"===i.paymentScheduleChecked&&e("div",{class:c.InputContainer,style:n.hideFixedDay?{display:"none"}:{}},n.loading?u("toPayPalAccount"):d.paymentFixedDaySelectSlot))),e("div",{class:c.BtnContainer},e("sl-button",Object.assign({type:"primary",disabled:n.disabled||n.saveDisabled,loading:n.saveLoading},n.hideSteps?{onClick:r.onModalOpen}:{submit:"submit"},{exportparts:"base: primarybutton-base"}),l.continueButton),!n.hideBackButton&&e("sl-button",{exportparts:"base: secondarybutton-base",type:"secondary",onClick:r.onBack},l.backButton))))},ue={USD:"USD20.00",GBP:"GBP30.00",EUR:"EUR35.00",AUD:"AUD60.00",CAD:"CAD50.00",NZD:"NZD60.00",HKD:"HKD320.00",DKK:"DKK250.00",ILS:"ILS160.00",MXN:"MXN600.00",RUB:"RUB1200.00",PHP:"PHP2000.00",JPY:"JPY2000.00"},pe=p.gql`
2
2
  mutation setImpactPublisherWithdrawalSettings(
3
3
  $setImpactPublisherWithdrawalSettingsInput: SetImpactPublisherWithdrawalSettingsInput!
4
4
  ) {
@@ -1,4 +1,4 @@
1
- import{h as e,c as a,d as t,g as l}from"./p-c7c11325.js";import{i as r}from"./p-7a772a4a.js";import{b as i,u as s,k as o}from"./p-63e29387.js";import{H as n,L as d,J as c,d as u,w as p,B as v,F as m,$ as g,g as f}from"./p-8e2bead4.js";import{c as h}from"./p-c1086930.js";import{l as b}from"./p-9ec99ced.js";import{c as x,j as C,a as y}from"./p-cef45012.js";import{a as w,S as q}from"./p-862845d7.js";import{H as R,A as S,a as $,b as k,E as M}from"./p-49b20dae.js";import{C as E}from"./p-951ded9b.js";import{u as I}from"./p-000c91b1.js";import{l as T}from"./p-08700497.js";import{T as V}from"./p-204861a6.js";import{p as L}from"./p-8d363802.js";import{a as H,b as A}from"./p-3cb249c3.js";import{a as B,P as D}from"./p-9580aac3.js";function F(a){const{statvalue:t,flexReverse:l,alignment:r,statTextColor:i,statFontSize:s,descriptionTextColor:o,descriptionFontSize:n,statFontWeight:d}=a,c=x({Container:{display:"flex","flex-direction":l?"column-reverse":"column","align-items":"left"===r?"flex-start":"right"===r?"flex-end":"center"},Stat:{"font-size":s?`${s}px`:"var(--sl-font-size-xx-large)","text-align":r,color:i||"var(--sqm-text)",lineHeight:"35px",fontWeight:d||"var(--sl-font-weight-normal)"},Description:{"font-size":n?`${n}px`:"var(--sl-font-size-small)","font-weight":"var(--sl-font-weight-normal)",color:o||"var(--sqm-text)","text-align":r,lineHeight:"20px"}}),u=c.toString();return e("div",{part:"stat-wrapper",class:c.classes.Container},e("style",{type:"text/css"},u),e("div",{part:"stat-value",class:c.classes.Stat},t),e("div",{part:"stat-description",class:c.classes.Description},a.labelSlot))}const P={facebook:{color:"#1877f2",text:"#fff",icon:"facebook"},twitter:{color:"#000000",text:"#fff",icon:"twitter-x"},email:{color:"#666666",text:"#fff",icon:"envelope"},direct:{color:"var(--sl-color-primary-500)",text:"#fff",icon:"send"},linkedin:{color:"#0077b5",text:"#fff",icon:"linkedin"},sms:{color:"#34DA50",text:"#fff",icon:"chat"},fbmessenger:{color:"#0084ff",text:"#fff",icon:"messenger"},whatsapp:{color:"#25d366",text:"#fff",icon:"whatsapp"},linemessenger:{color:"#00B300",text:"#fff",icon:"line"},pinterest:{color:"#e60023",text:"#fff",icon:"pinterest"}},z=x({HostBlock:R,buttonStyle:{display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0"}}),_=z.toString();function U(t,l){const r=`\n\tsl-button::part(base) {\n\t border: ${t.border||"none"};\n\t\n\n\tbackground: ${t.backgroundcolor?t.backgroundcolor:t.medium?P[t.medium].color:""};\n\tcolor: ${t.textcolor?t.textcolor:t.medium?P[t.medium].text:""};\n\tborder-radius: ${t.borderradius?t.borderradius+"px":""};\n\t}\n\n\n\n\t*::part(label) {\n\t\tposition: relative;\n\t\ttop: 2%;\n\t}\n\t`;return t.hide?e(a,{style:{display:"none"}}):e("div",null,e("style",{type:"text/css"},_),e("style",{type:"text/css"},r),e("sl-button",{class:z.classes.buttonStyle,target:t.openInSameTab?"_self":"_blank",loading:t.loading,disabled:t.disabled,pill:t.pill,size:t.size,type:t.type,onClick:t.isPlainLink?void 0:t.onClick,href:t.isPlainLink?t.messageLink:void 0,exportparts:`base: ${t.type}button-base`},!t.hideicon&&e("sl-icon",{slot:t.iconslot||"prefix",name:t.icon?t.icon:P[t.medium].icon,exportparts:"base: icon"}),!t.hidetext&&l))}function Z(a,t){const l=()=>{const e=getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${a.space}`);return`${Math.floor(parseInt(e)/2)}rem`},r={StatContainer:{width:"100%",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"===a.alignment?"center":"right"===a.alignment?"flex-end":"flex-start",flexDirection:"row",gap:`var(--sl-spacing-${a.gap})`,"& > *":{"border-right":a.hideBorder?"none":"1px solid var(--sqm-text-subdued)","padding-right":l()},"& > :last-child":{"border-right":"none"},"& > ::slotted(*)":{"border-right":a.hideBorder?"none":"1px solid var(--sqm-text-subdued)","padding-right":l()},"& > ::slotted(*:last-child)":{"border-right":"none"},"@media screen and (max-width: 430px)":{"& > ::slotted(*)":{borderRight:"none"}}},StatFrame:{display:"flex"},BorderFix:{"border-right":"1px solid transparent",width:"0px","margin-left":"-1px"}},i=x(r),s=i.toString();return e("div",{class:i.classes.StatFrame,part:"sqm-base"},e("div",{class:i.classes.StatContainer,part:"sqm-inner-container"},e("style",{type:"text/css"},s),t),e("div",{class:i.classes.BorderFix,part:"sqm-border"}))}function W(a){const{states:t,callbacks:l}=a,r=x({Dialog:{padding:"0","&::part(panel)":{background:"var(--sqm-portal-background)",borderRadius:"var(--sqm-border-radius-normal, var(--sl-border-radius-medium))"},"&::part(close-button)":{"margin-top":"var(--sl-spacing-medium)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}},InputContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-x-large)"}},CancelButton:{margin:"var(--sl-spacing-large) auto",width:"100%"},PasswordField:{marginBottom:"var(--sl-spacing-large) !important",display:"block"},ChangePasswordButton:{paddingTop:"var(--sl-spacing-x-large)"}}),i=r.toString();return e("div",null,e("style",{type:"text/css"},i),e("sl-dialog",{class:r.classes.Dialog,open:t.open,"onSl-hide":()=>l.setOpen(!1)},e(B,Object.assign({},{labelMargin:"x-large",padding:"none",label:e(V,Object.assign({},{type:"h2"}),t.content.modalChangePasswordHeader),content:e(D,Object.assign({},{direction:"column",padding:"none",gap:"32px"}),t.error&&e("sqm-form-message",{class:r.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.error)),t.success&&e("sqm-form-message",{class:r.classes.Success,type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},t.content.successMessage)),e("sl-form",{"onSl-submit":l.submit},e("div",{class:r.classes.InputContainer},e("sqm-password-field",{exportparts:"input-label: input-label",class:r.classes.PasswordField,fieldLabel:t.content.passwordFieldLabel,meetsRequirementsText:t.content.meetsRequirementsText,doesNotMeetRequirementsText:t.content.doesNotMeetRequirementsText,minErrorText:t.content.minErrorText,uppercaseErrorText:t.content.uppercaseErrorText,lowercaseErrorText:t.content.lowercaseErrorText,hasErrorText:t.content.hasErrorText}),e("sl-input",{exportparts:"label: input-label, base: input-base",name:"/confirmPassword",label:t.content.confirmPasswordFieldLabel,required:!0,togglePassword:!0,disabled:t.loading,type:"password"})),e(D,Object.assign({},{direction:"row",padding:"none",gap:"20px"}),e("sl-button",{class:r.classes.ChangePasswordButton,type:"primary",exportparts:"base: primarybutton-base",submit:!0,loading:t.loading},t.content.changePasswordButtonText),e("sl-button",{class:r.classes.CancelButton,type:"secondary",exportparts:"base: secondarybutton-base",onClick:()=>l.setOpen(!1)},t.content.cancelText))))}))),e(B,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e(V,Object.assign({},{type:"h2"}),t.content.portalChangePasswordHeader),content:e("sl-button",{type:"primary",exportparts:"base: primarybutton-base",onClick:()=>l.setOpen(!0)},t.content.portalChangePasswordButtonText)}),e("style",{type:"text/css"},i)))}function N({color:a="#A6A6A6",width:t=120,height:l=16}){return e("svg",{width:t,height:l,viewBox:"0 0 1662 254",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M801.082 253.58L869.382 1.67969",stroke:a,"stroke-width":"3"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M125.682 42.48C123.882 42.48 121.982 42.78 120.382 43.48C118.682 44.18 117.182 45.18 115.882 46.48C114.582 47.68 113.582 49.28 112.882 50.98C112.182 52.68 111.882 54.48 111.982 56.28C112.282 59.68 113.882 63.08 116.382 65.38C118.982 67.78 122.382 68.98 125.782 68.98C129.282 68.98 132.682 67.58 135.182 65.38C137.782 62.98 139.382 59.78 139.582 56.28C139.582 54.38 139.282 52.68 138.682 50.98C137.982 49.28 136.982 47.78 135.682 46.48C134.382 45.18 132.882 44.18 131.182 43.48C129.282 42.78 127.582 42.48 125.682 42.48Z",fill:a}),e("path",{d:"M135.882 89.2798H115.582V187.58H135.882V89.2798Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M551.282 239.88C549.982 239.88 548.782 240.28 547.682 240.88C546.682 241.58 545.782 242.58 545.382 243.68C544.882 244.78 544.782 246.08 545.082 247.28C545.282 248.58 545.882 249.68 546.882 250.48C547.782 251.38 548.882 251.98 550.082 252.28C551.382 252.48 552.582 252.38 553.782 251.98C554.882 251.48 555.982 250.78 556.582 249.68C557.282 248.68 557.582 247.38 557.582 246.18C557.582 244.48 556.982 242.88 555.682 241.68C554.482 240.48 552.882 239.88 551.282 239.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M586.182 210.78C592.282 210.78 597.582 213.08 601.082 217.18L601.482 217.68L596.282 223.08L595.782 222.58C594.482 221.18 593.082 220.18 591.382 219.48C589.682 218.78 587.882 218.38 586.082 218.48C578.882 218.48 573.682 224.08 573.682 231.58C573.682 239.18 578.882 244.78 586.082 244.78C589.782 244.68 593.282 243.18 595.882 240.58L596.382 240.08L601.382 245.68L600.982 246.08C597.182 250.18 591.982 252.18 586.082 252.18C574.082 252.18 565.382 243.58 565.382 231.58C565.582 219.48 574.182 210.78 586.182 210.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M633.782 210.78C621.682 210.78 612.582 219.68 612.582 231.38C612.582 243.08 621.682 251.98 633.782 251.98C645.882 251.98 654.882 243.08 654.882 231.38C655.082 219.78 645.982 210.78 633.782 210.78ZM633.782 244.78C626.382 244.78 620.782 239.28 620.782 231.58C620.782 223.88 626.182 218.48 633.782 218.48C641.182 218.48 646.782 224.08 646.782 231.58C646.782 238.98 641.382 244.78 633.782 244.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M723.982 228.78C723.982 222.18 720.382 218.28 714.082 218.28C707.682 218.28 703.382 222.78 702.982 228.98V252.18H695.082V228.68C695.082 222.08 691.482 218.18 685.182 218.18C680.082 218.18 674.482 221.48 674.482 228.88V252.08H666.582V211.38H674.482V214.78L676.682 213.28C679.582 211.38 683.082 210.48 686.582 210.48C692.082 210.48 696.782 212.48 699.882 216.08L700.882 217.28L701.882 216.08C704.782 212.48 709.582 210.48 715.182 210.48C725.082 210.48 731.982 217.08 731.982 226.38V251.88H724.082V228.68H723.982V228.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z",fill:a}),e("path",{d:"M135.882 89.2798H115.582V187.58H135.882V89.2798Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z",fill:a}),e("path",{d:"M34.6815 112.78C40.6815 112.78 46.5815 114.18 51.8815 116.68C57.2815 119.18 62.0815 122.78 65.9815 127.28C67.9815 122.68 69.0815 117.78 69.0815 112.88C69.0815 108.38 68.1815 103.88 66.4815 99.8799C64.6815 95.6799 62.1815 91.9799 58.9815 88.8799C55.7815 85.7799 51.9815 83.2799 47.7815 81.4799C43.5815 79.7799 39.0815 78.8799 34.5815 78.8799C30.0815 78.8799 25.5815 79.6799 21.3815 81.4799C17.1815 83.1799 13.3815 85.7799 10.1815 88.8799C6.98154 91.9799 4.48154 95.7799 2.68154 99.8799C0.881541 104.08 0.081543 108.38 0.081543 112.88C0.181543 117.88 1.18154 122.78 3.18154 127.28C7.08154 122.68 11.8815 119.18 17.1815 116.68C22.7815 113.98 28.7815 112.68 34.6815 112.78Z",fill:a}),e("path",{d:"M69.1817 153.48C69.1817 146.68 67.1817 140.18 63.2817 134.48C59.4817 128.88 54.0817 124.48 47.7817 121.88C41.4817 119.28 34.4817 118.68 27.7817 119.88C21.0817 121.28 14.8817 124.48 10.0817 129.28C5.28166 134.08 1.88166 140.08 0.681661 146.78C-0.718339 153.48 0.0816607 160.18 2.68166 166.48C5.28166 172.78 9.68166 178.08 15.4817 181.78C21.0817 185.58 27.7817 187.48 34.6817 187.48C43.7817 187.38 52.5817 183.88 59.0817 177.38C65.6817 170.98 69.1817 162.58 69.1817 153.48Z",fill:a}),e("path",{d:"M69.1817 34.9799C69.1817 28.1799 67.1817 21.6799 63.2817 15.9799C59.4817 10.3799 54.1817 5.9799 47.7817 3.3799C41.4817 0.779901 34.4817 0.1799 27.7817 1.3799C21.0817 2.7799 14.8817 5.97986 10.0817 10.7799C5.28166 15.5799 1.88166 21.5799 0.681661 28.2799C-0.718339 34.9799 0.0816607 41.6799 2.68166 47.9799C5.28166 54.2799 9.68166 59.5799 15.4817 63.2799C21.0817 67.0799 27.7817 68.9799 34.6817 68.9799C43.8817 68.9799 52.6817 65.3799 59.1817 58.9799C65.5817 52.6799 69.1817 43.8799 69.1817 34.9799Z",fill:a}),e("path",{d:"M962.664 203.95C953.044 203.95 945.244 201.285 939.264 195.955C933.284 190.495 930.294 183.41 930.294 174.7C930.294 165.08 933.739 157.605 940.629 152.275C947.649 146.945 957.464 144.28 970.074 144.28H993.864V138.43C993.864 129.72 991.589 123.09 987.039 118.54C982.619 113.86 976.184 111.52 967.734 111.52C962.014 111.52 956.749 112.885 951.939 115.615C947.129 118.345 943.229 122.18 940.239 127.12L933.999 120.295C937.639 114.575 942.384 110.22 948.234 107.23C954.214 104.11 960.974 102.55 968.514 102.55C979.694 102.55 988.404 105.605 994.644 111.715C1001.01 117.695 1004.2 126.015 1004.2 136.675V184.255C1004.2 188.805 1004.98 194.72 1006.54 202H997.569C996.399 199.14 995.554 194.07 995.034 186.79H994.644C990.874 192.25 986.259 196.475 980.799 199.465C975.339 202.455 969.294 203.95 962.664 203.95ZM962.664 195.175C968.124 195.175 973.259 194.07 978.069 191.86C982.879 189.52 986.714 186.465 989.574 182.695C992.434 178.795 993.864 174.7 993.864 170.41V152.665H969.489C960.389 152.665 953.239 154.615 948.039 158.515C942.969 162.415 940.434 167.81 940.434 174.7C940.434 180.68 942.514 185.62 946.674 189.52C950.834 193.29 956.164 195.175 962.664 195.175Z",fill:a}),e("path",{d:"M1067.55 203.95C1055.07 203.95 1045.25 199.27 1038.1 189.91C1030.95 180.55 1027.38 167.745 1027.38 151.495C1027.38 136.415 1031.02 124.52 1038.3 115.81C1045.71 106.97 1055.72 102.55 1068.33 102.55C1074.7 102.55 1080.55 104.045 1085.88 107.035C1091.21 110.025 1095.5 114.25 1098.75 119.71H1099.14V57.3101H1109.67V178.21C1109.67 189.13 1109.86 197.06 1110.25 202H1100.89C1100.63 197.84 1100.5 192.12 1100.5 184.84H1100.11C1097.12 190.69 1092.7 195.37 1086.85 198.88C1081 202.26 1074.57 203.95 1067.55 203.95ZM1068.13 195.175C1077.23 195.175 1084.64 192.185 1090.36 186.205C1096.21 180.225 1099.14 172.49 1099.14 163V146.815C1099.14 135.895 1096.41 127.25 1090.95 120.88C1085.49 114.38 1078.08 111.13 1068.72 111.13C1059.1 111.13 1051.49 114.77 1045.9 122.05C1040.44 129.2 1037.71 139.145 1037.71 151.885C1037.71 165.275 1040.44 175.87 1045.9 183.67C1051.36 191.34 1058.77 195.175 1068.13 195.175Z",fill:a}),e("path",{d:"M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z",fill:a}),e("path",{d:"M1261.51 203.95C1252.54 203.95 1244.61 201.87 1237.72 197.71C1230.96 193.55 1225.7 187.635 1221.93 179.965C1218.29 172.295 1216.47 163.39 1216.47 153.25C1216.47 143.11 1218.29 134.205 1221.93 126.535C1225.7 118.865 1230.96 112.95 1237.72 108.79C1244.61 104.63 1252.54 102.55 1261.51 102.55C1270.48 102.55 1278.35 104.63 1285.11 108.79C1292 112.95 1297.33 118.865 1301.1 126.535C1304.87 134.205 1306.75 143.11 1306.75 153.25C1306.75 163.39 1304.87 172.295 1301.1 179.965C1297.33 187.635 1292 193.55 1285.11 197.71C1278.35 201.87 1270.48 203.95 1261.51 203.95ZM1261.51 195.37C1268.4 195.37 1274.45 193.615 1279.65 190.105C1284.98 186.595 1289.07 181.655 1291.93 175.285C1294.79 168.915 1296.22 161.57 1296.22 153.25C1296.22 144.93 1294.79 137.585 1291.93 131.215C1289.07 124.845 1284.98 119.905 1279.65 116.395C1274.45 112.885 1268.4 111.13 1261.51 111.13C1254.75 111.13 1248.71 112.885 1243.38 116.395C1238.18 119.905 1234.15 124.845 1231.29 131.215C1228.43 137.585 1227 144.93 1227 153.25C1227 161.57 1228.43 168.915 1231.29 175.285C1234.15 181.655 1238.18 186.595 1243.38 190.105C1248.71 193.615 1254.75 195.37 1261.51 195.37Z",fill:a}),e("path",{d:"M1366.03 203.95C1352.25 203.95 1341.52 199.53 1333.85 190.69C1326.31 181.72 1322.54 169.24 1322.54 153.25C1322.54 137.39 1326.38 124.975 1334.05 116.005C1341.72 107.035 1352.38 102.55 1366.03 102.55C1373.57 102.55 1380.26 104.11 1386.11 107.23C1391.96 110.22 1396.77 114.575 1400.54 120.295L1394.3 126.34C1391.31 121.66 1387.28 118.02 1382.21 115.42C1377.27 112.69 1371.88 111.325 1366.03 111.325C1355.76 111.325 1347.63 115.03 1341.65 122.44C1335.8 129.85 1332.88 140.12 1332.88 153.25C1332.88 166.38 1335.8 176.65 1341.65 184.06C1347.63 191.47 1355.76 195.175 1366.03 195.175C1371.88 195.175 1377.27 193.875 1382.21 191.275C1387.28 188.545 1391.31 184.84 1394.3 180.16L1400.54 186.205C1396.77 191.925 1391.96 196.345 1386.11 199.465C1380.26 202.455 1373.57 203.95 1366.03 203.95Z",fill:a}),e("path",{d:"M1446.55 203.95C1436.93 203.95 1429.13 201.285 1423.15 195.955C1417.17 190.495 1414.18 183.41 1414.18 174.7C1414.18 165.08 1417.62 157.605 1424.51 152.275C1431.53 146.945 1441.35 144.28 1453.96 144.28H1477.75V138.43C1477.75 129.72 1475.47 123.09 1470.92 118.54C1466.5 113.86 1460.07 111.52 1451.62 111.52C1445.9 111.52 1440.63 112.885 1435.82 115.615C1431.01 118.345 1427.11 122.18 1424.12 127.12L1417.88 120.295C1421.52 114.575 1426.27 110.22 1432.12 107.23C1438.1 104.11 1444.86 102.55 1452.4 102.55C1463.58 102.55 1472.29 105.605 1478.53 111.715C1484.9 117.695 1488.08 126.015 1488.08 136.675V184.255C1488.08 188.805 1488.86 194.72 1490.42 202H1481.45C1480.28 199.14 1479.44 194.07 1478.92 186.79H1478.53C1474.76 192.25 1470.14 196.475 1464.68 199.465C1459.22 202.455 1453.18 203.95 1446.55 203.95ZM1446.55 195.175C1452.01 195.175 1457.14 194.07 1461.95 191.86C1466.76 189.52 1470.6 186.465 1473.46 182.695C1476.32 178.795 1477.75 174.7 1477.75 170.41V152.665H1453.37C1444.27 152.665 1437.12 154.615 1431.92 158.515C1426.85 162.415 1424.32 167.81 1424.32 174.7C1424.32 180.68 1426.4 185.62 1430.56 189.52C1434.72 193.29 1440.05 195.175 1446.55 195.175Z",fill:a}),e("path",{d:"M1547.14 203.95C1539.08 203.95 1532.97 201.48 1528.81 196.54C1524.65 191.47 1522.57 184.19 1522.57 174.7V113.275H1505.02V104.5H1522.57V77.9801L1532.32 74.6651H1533.1V104.5H1560.59V113.275H1533.1V172.555C1533.1 180.355 1534.33 186.01 1536.8 189.52C1539.27 193.03 1543.17 194.785 1548.5 194.785C1553.83 194.785 1558.06 194.005 1561.18 192.445L1562.35 200.83C1558.19 202.91 1553.12 203.95 1547.14 203.95Z",fill:a}),e("path",{d:"M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z",fill:a}))}const O=i("sq:useBigStat"),j=(e,a,t)=>{const l=p(e,a);return(null==l?void 0:l.data)||l.loading||console.error("issue getting stat:",l),{...t(l),loading:l.loading}},G={prettyValue:"UNIT_FORMATTED",value:"NUMBER_UNFORMATTED"},X={rewardsAssigned:{label:"Rewards Earned",query:(e,a,t,l,r="")=>j(u.gql`
1
+ import{h as e,c as a,d as t,g as l}from"./p-c7c11325.js";import{i as r}from"./p-7264a34d.js";import{b as i,u as s,k as o}from"./p-63e29387.js";import{H as n,L as d,J as c,d as u,w as p,B as v,F as m,$ as g,g as f}from"./p-8e2bead4.js";import{c as h}from"./p-c1086930.js";import{l as b}from"./p-9ec99ced.js";import{c as x,j as C,a as y}from"./p-cef45012.js";import{a as w,S as q}from"./p-862845d7.js";import{H as R,A as S,a as $,b as k,E as M}from"./p-49b20dae.js";import{C as E}from"./p-951ded9b.js";import{u as I}from"./p-000c91b1.js";import{l as T}from"./p-08700497.js";import{T as V}from"./p-204861a6.js";import{p as L}from"./p-8d363802.js";import{a as H,b as A}from"./p-3cb249c3.js";import{a as B,P as D}from"./p-9580aac3.js";function F(a){const{statvalue:t,flexReverse:l,alignment:r,statTextColor:i,statFontSize:s,descriptionTextColor:o,descriptionFontSize:n,statFontWeight:d}=a,c=x({Container:{display:"flex","flex-direction":l?"column-reverse":"column","align-items":"left"===r?"flex-start":"right"===r?"flex-end":"center"},Stat:{"font-size":s?`${s}px`:"var(--sl-font-size-xx-large)","text-align":r,color:i||"var(--sqm-text)",lineHeight:"35px",fontWeight:d||"var(--sl-font-weight-normal)"},Description:{"font-size":n?`${n}px`:"var(--sl-font-size-small)","font-weight":"var(--sl-font-weight-normal)",color:o||"var(--sqm-text)","text-align":r,lineHeight:"20px"}}),u=c.toString();return e("div",{part:"stat-wrapper",class:c.classes.Container},e("style",{type:"text/css"},u),e("div",{part:"stat-value",class:c.classes.Stat},t),e("div",{part:"stat-description",class:c.classes.Description},a.labelSlot))}const P={facebook:{color:"#1877f2",text:"#fff",icon:"facebook"},twitter:{color:"#000000",text:"#fff",icon:"twitter-x"},email:{color:"#666666",text:"#fff",icon:"envelope"},direct:{color:"var(--sl-color-primary-500)",text:"#fff",icon:"send"},linkedin:{color:"#0077b5",text:"#fff",icon:"linkedin"},sms:{color:"#34DA50",text:"#fff",icon:"chat"},fbmessenger:{color:"#0084ff",text:"#fff",icon:"messenger"},whatsapp:{color:"#25d366",text:"#fff",icon:"whatsapp"},linemessenger:{color:"#00B300",text:"#fff",icon:"line"},pinterest:{color:"#e60023",text:"#fff",icon:"pinterest"}},z=x({HostBlock:R,buttonStyle:{display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0"}}),_=z.toString();function U(t,l){const r=`\n\tsl-button::part(base) {\n\t border: ${t.border||"none"};\n\t\n\n\tbackground: ${t.backgroundcolor?t.backgroundcolor:t.medium?P[t.medium].color:""};\n\tcolor: ${t.textcolor?t.textcolor:t.medium?P[t.medium].text:""};\n\tborder-radius: ${t.borderradius?t.borderradius+"px":""};\n\t}\n\n\n\n\t*::part(label) {\n\t\tposition: relative;\n\t\ttop: 2%;\n\t}\n\t`;return t.hide?e(a,{style:{display:"none"}}):e("div",null,e("style",{type:"text/css"},_),e("style",{type:"text/css"},r),e("sl-button",{class:z.classes.buttonStyle,target:t.openInSameTab?"_self":"_blank",loading:t.loading,disabled:t.disabled,pill:t.pill,size:t.size,type:t.type,onClick:t.isPlainLink?void 0:t.onClick,href:t.isPlainLink?t.messageLink:void 0,exportparts:`base: ${t.type}button-base`},!t.hideicon&&e("sl-icon",{slot:t.iconslot||"prefix",name:t.icon?t.icon:P[t.medium].icon,exportparts:"base: icon"}),!t.hidetext&&l))}function Z(a,t){const l=()=>{const e=getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${a.space}`);return`${Math.floor(parseInt(e)/2)}rem`},r={StatContainer:{width:"100%",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"===a.alignment?"center":"right"===a.alignment?"flex-end":"flex-start",flexDirection:"row",gap:`var(--sl-spacing-${a.gap})`,"& > *":{"border-right":a.hideBorder?"none":"1px solid var(--sqm-text-subdued)","padding-right":l()},"& > :last-child":{"border-right":"none"},"& > ::slotted(*)":{"border-right":a.hideBorder?"none":"1px solid var(--sqm-text-subdued)","padding-right":l()},"& > ::slotted(*:last-child)":{"border-right":"none"},"@media screen and (max-width: 430px)":{"& > ::slotted(*)":{borderRight:"none"}}},StatFrame:{display:"flex"},BorderFix:{"border-right":"1px solid transparent",width:"0px","margin-left":"-1px"}},i=x(r),s=i.toString();return e("div",{class:i.classes.StatFrame,part:"sqm-base"},e("div",{class:i.classes.StatContainer,part:"sqm-inner-container"},e("style",{type:"text/css"},s),t),e("div",{class:i.classes.BorderFix,part:"sqm-border"}))}function W(a){const{states:t,callbacks:l}=a,r=x({Dialog:{padding:"0","&::part(panel)":{background:"var(--sqm-portal-background)",borderRadius:"var(--sqm-border-radius-normal, var(--sl-border-radius-medium))"},"&::part(close-button)":{"margin-top":"var(--sl-spacing-medium)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}},InputContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-x-large)"}},CancelButton:{margin:"var(--sl-spacing-large) auto",width:"100%"},PasswordField:{marginBottom:"var(--sl-spacing-large) !important",display:"block"},ChangePasswordButton:{paddingTop:"var(--sl-spacing-x-large)"}}),i=r.toString();return e("div",null,e("style",{type:"text/css"},i),e("sl-dialog",{class:r.classes.Dialog,open:t.open,"onSl-hide":()=>l.setOpen(!1)},e(B,Object.assign({},{labelMargin:"x-large",padding:"none",label:e(V,Object.assign({},{type:"h2"}),t.content.modalChangePasswordHeader),content:e(D,Object.assign({},{direction:"column",padding:"none",gap:"32px"}),t.error&&e("sqm-form-message",{class:r.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.error)),t.success&&e("sqm-form-message",{class:r.classes.Success,type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},t.content.successMessage)),e("sl-form",{"onSl-submit":l.submit},e("div",{class:r.classes.InputContainer},e("sqm-password-field",{exportparts:"input-label: input-label",class:r.classes.PasswordField,fieldLabel:t.content.passwordFieldLabel,meetsRequirementsText:t.content.meetsRequirementsText,doesNotMeetRequirementsText:t.content.doesNotMeetRequirementsText,minErrorText:t.content.minErrorText,uppercaseErrorText:t.content.uppercaseErrorText,lowercaseErrorText:t.content.lowercaseErrorText,hasErrorText:t.content.hasErrorText}),e("sl-input",{exportparts:"label: input-label, base: input-base",name:"/confirmPassword",label:t.content.confirmPasswordFieldLabel,required:!0,togglePassword:!0,disabled:t.loading,type:"password"})),e(D,Object.assign({},{direction:"row",padding:"none",gap:"20px"}),e("sl-button",{class:r.classes.ChangePasswordButton,type:"primary",exportparts:"base: primarybutton-base",submit:!0,loading:t.loading},t.content.changePasswordButtonText),e("sl-button",{class:r.classes.CancelButton,type:"secondary",exportparts:"base: secondarybutton-base",onClick:()=>l.setOpen(!1)},t.content.cancelText))))}))),e(B,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e(V,Object.assign({},{type:"h2"}),t.content.portalChangePasswordHeader),content:e("sl-button",{type:"primary",exportparts:"base: primarybutton-base",onClick:()=>l.setOpen(!0)},t.content.portalChangePasswordButtonText)}),e("style",{type:"text/css"},i)))}function N({color:a="#A6A6A6",width:t=120,height:l=16}){return e("svg",{width:t,height:l,viewBox:"0 0 1662 254",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M801.082 253.58L869.382 1.67969",stroke:a,"stroke-width":"3"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M125.682 42.48C123.882 42.48 121.982 42.78 120.382 43.48C118.682 44.18 117.182 45.18 115.882 46.48C114.582 47.68 113.582 49.28 112.882 50.98C112.182 52.68 111.882 54.48 111.982 56.28C112.282 59.68 113.882 63.08 116.382 65.38C118.982 67.78 122.382 68.98 125.782 68.98C129.282 68.98 132.682 67.58 135.182 65.38C137.782 62.98 139.382 59.78 139.582 56.28C139.582 54.38 139.282 52.68 138.682 50.98C137.982 49.28 136.982 47.78 135.682 46.48C134.382 45.18 132.882 44.18 131.182 43.48C129.282 42.78 127.582 42.48 125.682 42.48Z",fill:a}),e("path",{d:"M135.882 89.2798H115.582V187.58H135.882V89.2798Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M551.282 239.88C549.982 239.88 548.782 240.28 547.682 240.88C546.682 241.58 545.782 242.58 545.382 243.68C544.882 244.78 544.782 246.08 545.082 247.28C545.282 248.58 545.882 249.68 546.882 250.48C547.782 251.38 548.882 251.98 550.082 252.28C551.382 252.48 552.582 252.38 553.782 251.98C554.882 251.48 555.982 250.78 556.582 249.68C557.282 248.68 557.582 247.38 557.582 246.18C557.582 244.48 556.982 242.88 555.682 241.68C554.482 240.48 552.882 239.88 551.282 239.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M586.182 210.78C592.282 210.78 597.582 213.08 601.082 217.18L601.482 217.68L596.282 223.08L595.782 222.58C594.482 221.18 593.082 220.18 591.382 219.48C589.682 218.78 587.882 218.38 586.082 218.48C578.882 218.48 573.682 224.08 573.682 231.58C573.682 239.18 578.882 244.78 586.082 244.78C589.782 244.68 593.282 243.18 595.882 240.58L596.382 240.08L601.382 245.68L600.982 246.08C597.182 250.18 591.982 252.18 586.082 252.18C574.082 252.18 565.382 243.58 565.382 231.58C565.582 219.48 574.182 210.78 586.182 210.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M633.782 210.78C621.682 210.78 612.582 219.68 612.582 231.38C612.582 243.08 621.682 251.98 633.782 251.98C645.882 251.98 654.882 243.08 654.882 231.38C655.082 219.78 645.982 210.78 633.782 210.78ZM633.782 244.78C626.382 244.78 620.782 239.28 620.782 231.58C620.782 223.88 626.182 218.48 633.782 218.48C641.182 218.48 646.782 224.08 646.782 231.58C646.782 238.98 641.382 244.78 633.782 244.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M723.982 228.78C723.982 222.18 720.382 218.28 714.082 218.28C707.682 218.28 703.382 222.78 702.982 228.98V252.18H695.082V228.68C695.082 222.08 691.482 218.18 685.182 218.18C680.082 218.18 674.482 221.48 674.482 228.88V252.08H666.582V211.38H674.482V214.78L676.682 213.28C679.582 211.38 683.082 210.48 686.582 210.48C692.082 210.48 696.782 212.48 699.882 216.08L700.882 217.28L701.882 216.08C704.782 212.48 709.582 210.48 715.182 210.48C725.082 210.48 731.982 217.08 731.982 226.38V251.88H724.082V228.68H723.982V228.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z",fill:a}),e("path",{d:"M135.882 89.2798H115.582V187.58H135.882V89.2798Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z",fill:a}),e("path",{d:"M34.6815 112.78C40.6815 112.78 46.5815 114.18 51.8815 116.68C57.2815 119.18 62.0815 122.78 65.9815 127.28C67.9815 122.68 69.0815 117.78 69.0815 112.88C69.0815 108.38 68.1815 103.88 66.4815 99.8799C64.6815 95.6799 62.1815 91.9799 58.9815 88.8799C55.7815 85.7799 51.9815 83.2799 47.7815 81.4799C43.5815 79.7799 39.0815 78.8799 34.5815 78.8799C30.0815 78.8799 25.5815 79.6799 21.3815 81.4799C17.1815 83.1799 13.3815 85.7799 10.1815 88.8799C6.98154 91.9799 4.48154 95.7799 2.68154 99.8799C0.881541 104.08 0.081543 108.38 0.081543 112.88C0.181543 117.88 1.18154 122.78 3.18154 127.28C7.08154 122.68 11.8815 119.18 17.1815 116.68C22.7815 113.98 28.7815 112.68 34.6815 112.78Z",fill:a}),e("path",{d:"M69.1817 153.48C69.1817 146.68 67.1817 140.18 63.2817 134.48C59.4817 128.88 54.0817 124.48 47.7817 121.88C41.4817 119.28 34.4817 118.68 27.7817 119.88C21.0817 121.28 14.8817 124.48 10.0817 129.28C5.28166 134.08 1.88166 140.08 0.681661 146.78C-0.718339 153.48 0.0816607 160.18 2.68166 166.48C5.28166 172.78 9.68166 178.08 15.4817 181.78C21.0817 185.58 27.7817 187.48 34.6817 187.48C43.7817 187.38 52.5817 183.88 59.0817 177.38C65.6817 170.98 69.1817 162.58 69.1817 153.48Z",fill:a}),e("path",{d:"M69.1817 34.9799C69.1817 28.1799 67.1817 21.6799 63.2817 15.9799C59.4817 10.3799 54.1817 5.9799 47.7817 3.3799C41.4817 0.779901 34.4817 0.1799 27.7817 1.3799C21.0817 2.7799 14.8817 5.97986 10.0817 10.7799C5.28166 15.5799 1.88166 21.5799 0.681661 28.2799C-0.718339 34.9799 0.0816607 41.6799 2.68166 47.9799C5.28166 54.2799 9.68166 59.5799 15.4817 63.2799C21.0817 67.0799 27.7817 68.9799 34.6817 68.9799C43.8817 68.9799 52.6817 65.3799 59.1817 58.9799C65.5817 52.6799 69.1817 43.8799 69.1817 34.9799Z",fill:a}),e("path",{d:"M962.664 203.95C953.044 203.95 945.244 201.285 939.264 195.955C933.284 190.495 930.294 183.41 930.294 174.7C930.294 165.08 933.739 157.605 940.629 152.275C947.649 146.945 957.464 144.28 970.074 144.28H993.864V138.43C993.864 129.72 991.589 123.09 987.039 118.54C982.619 113.86 976.184 111.52 967.734 111.52C962.014 111.52 956.749 112.885 951.939 115.615C947.129 118.345 943.229 122.18 940.239 127.12L933.999 120.295C937.639 114.575 942.384 110.22 948.234 107.23C954.214 104.11 960.974 102.55 968.514 102.55C979.694 102.55 988.404 105.605 994.644 111.715C1001.01 117.695 1004.2 126.015 1004.2 136.675V184.255C1004.2 188.805 1004.98 194.72 1006.54 202H997.569C996.399 199.14 995.554 194.07 995.034 186.79H994.644C990.874 192.25 986.259 196.475 980.799 199.465C975.339 202.455 969.294 203.95 962.664 203.95ZM962.664 195.175C968.124 195.175 973.259 194.07 978.069 191.86C982.879 189.52 986.714 186.465 989.574 182.695C992.434 178.795 993.864 174.7 993.864 170.41V152.665H969.489C960.389 152.665 953.239 154.615 948.039 158.515C942.969 162.415 940.434 167.81 940.434 174.7C940.434 180.68 942.514 185.62 946.674 189.52C950.834 193.29 956.164 195.175 962.664 195.175Z",fill:a}),e("path",{d:"M1067.55 203.95C1055.07 203.95 1045.25 199.27 1038.1 189.91C1030.95 180.55 1027.38 167.745 1027.38 151.495C1027.38 136.415 1031.02 124.52 1038.3 115.81C1045.71 106.97 1055.72 102.55 1068.33 102.55C1074.7 102.55 1080.55 104.045 1085.88 107.035C1091.21 110.025 1095.5 114.25 1098.75 119.71H1099.14V57.3101H1109.67V178.21C1109.67 189.13 1109.86 197.06 1110.25 202H1100.89C1100.63 197.84 1100.5 192.12 1100.5 184.84H1100.11C1097.12 190.69 1092.7 195.37 1086.85 198.88C1081 202.26 1074.57 203.95 1067.55 203.95ZM1068.13 195.175C1077.23 195.175 1084.64 192.185 1090.36 186.205C1096.21 180.225 1099.14 172.49 1099.14 163V146.815C1099.14 135.895 1096.41 127.25 1090.95 120.88C1085.49 114.38 1078.08 111.13 1068.72 111.13C1059.1 111.13 1051.49 114.77 1045.9 122.05C1040.44 129.2 1037.71 139.145 1037.71 151.885C1037.71 165.275 1040.44 175.87 1045.9 183.67C1051.36 191.34 1058.77 195.175 1068.13 195.175Z",fill:a}),e("path",{d:"M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z",fill:a}),e("path",{d:"M1261.51 203.95C1252.54 203.95 1244.61 201.87 1237.72 197.71C1230.96 193.55 1225.7 187.635 1221.93 179.965C1218.29 172.295 1216.47 163.39 1216.47 153.25C1216.47 143.11 1218.29 134.205 1221.93 126.535C1225.7 118.865 1230.96 112.95 1237.72 108.79C1244.61 104.63 1252.54 102.55 1261.51 102.55C1270.48 102.55 1278.35 104.63 1285.11 108.79C1292 112.95 1297.33 118.865 1301.1 126.535C1304.87 134.205 1306.75 143.11 1306.75 153.25C1306.75 163.39 1304.87 172.295 1301.1 179.965C1297.33 187.635 1292 193.55 1285.11 197.71C1278.35 201.87 1270.48 203.95 1261.51 203.95ZM1261.51 195.37C1268.4 195.37 1274.45 193.615 1279.65 190.105C1284.98 186.595 1289.07 181.655 1291.93 175.285C1294.79 168.915 1296.22 161.57 1296.22 153.25C1296.22 144.93 1294.79 137.585 1291.93 131.215C1289.07 124.845 1284.98 119.905 1279.65 116.395C1274.45 112.885 1268.4 111.13 1261.51 111.13C1254.75 111.13 1248.71 112.885 1243.38 116.395C1238.18 119.905 1234.15 124.845 1231.29 131.215C1228.43 137.585 1227 144.93 1227 153.25C1227 161.57 1228.43 168.915 1231.29 175.285C1234.15 181.655 1238.18 186.595 1243.38 190.105C1248.71 193.615 1254.75 195.37 1261.51 195.37Z",fill:a}),e("path",{d:"M1366.03 203.95C1352.25 203.95 1341.52 199.53 1333.85 190.69C1326.31 181.72 1322.54 169.24 1322.54 153.25C1322.54 137.39 1326.38 124.975 1334.05 116.005C1341.72 107.035 1352.38 102.55 1366.03 102.55C1373.57 102.55 1380.26 104.11 1386.11 107.23C1391.96 110.22 1396.77 114.575 1400.54 120.295L1394.3 126.34C1391.31 121.66 1387.28 118.02 1382.21 115.42C1377.27 112.69 1371.88 111.325 1366.03 111.325C1355.76 111.325 1347.63 115.03 1341.65 122.44C1335.8 129.85 1332.88 140.12 1332.88 153.25C1332.88 166.38 1335.8 176.65 1341.65 184.06C1347.63 191.47 1355.76 195.175 1366.03 195.175C1371.88 195.175 1377.27 193.875 1382.21 191.275C1387.28 188.545 1391.31 184.84 1394.3 180.16L1400.54 186.205C1396.77 191.925 1391.96 196.345 1386.11 199.465C1380.26 202.455 1373.57 203.95 1366.03 203.95Z",fill:a}),e("path",{d:"M1446.55 203.95C1436.93 203.95 1429.13 201.285 1423.15 195.955C1417.17 190.495 1414.18 183.41 1414.18 174.7C1414.18 165.08 1417.62 157.605 1424.51 152.275C1431.53 146.945 1441.35 144.28 1453.96 144.28H1477.75V138.43C1477.75 129.72 1475.47 123.09 1470.92 118.54C1466.5 113.86 1460.07 111.52 1451.62 111.52C1445.9 111.52 1440.63 112.885 1435.82 115.615C1431.01 118.345 1427.11 122.18 1424.12 127.12L1417.88 120.295C1421.52 114.575 1426.27 110.22 1432.12 107.23C1438.1 104.11 1444.86 102.55 1452.4 102.55C1463.58 102.55 1472.29 105.605 1478.53 111.715C1484.9 117.695 1488.08 126.015 1488.08 136.675V184.255C1488.08 188.805 1488.86 194.72 1490.42 202H1481.45C1480.28 199.14 1479.44 194.07 1478.92 186.79H1478.53C1474.76 192.25 1470.14 196.475 1464.68 199.465C1459.22 202.455 1453.18 203.95 1446.55 203.95ZM1446.55 195.175C1452.01 195.175 1457.14 194.07 1461.95 191.86C1466.76 189.52 1470.6 186.465 1473.46 182.695C1476.32 178.795 1477.75 174.7 1477.75 170.41V152.665H1453.37C1444.27 152.665 1437.12 154.615 1431.92 158.515C1426.85 162.415 1424.32 167.81 1424.32 174.7C1424.32 180.68 1426.4 185.62 1430.56 189.52C1434.72 193.29 1440.05 195.175 1446.55 195.175Z",fill:a}),e("path",{d:"M1547.14 203.95C1539.08 203.95 1532.97 201.48 1528.81 196.54C1524.65 191.47 1522.57 184.19 1522.57 174.7V113.275H1505.02V104.5H1522.57V77.9801L1532.32 74.6651H1533.1V104.5H1560.59V113.275H1533.1V172.555C1533.1 180.355 1534.33 186.01 1536.8 189.52C1539.27 193.03 1543.17 194.785 1548.5 194.785C1553.83 194.785 1558.06 194.005 1561.18 192.445L1562.35 200.83C1558.19 202.91 1553.12 203.95 1547.14 203.95Z",fill:a}),e("path",{d:"M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z",fill:a}))}const O=i("sq:useBigStat"),j=(e,a,t)=>{const l=p(e,a);return(null==l?void 0:l.data)||l.loading||console.error("issue getting stat:",l),{...t(l),loading:l.loading}},G={prettyValue:"UNIT_FORMATTED",value:"NUMBER_UNFORMATTED"},X={rewardsAssigned:{label:"Rewards Earned",query:(e,a,t,l,r="")=>j(u.gql`
2
2
  query (
3
3
  $programId: ID
4
4
  $type: RewardType
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<r;t++)for(var n=arguments[t],o=0,s=n.length;o<s;o++,a++)i[a]=n[o];return i};System.register(["./p-59b028db.system.js","./p-1fcef6b3.system.js","./p-4f5329a2.system.js","./p-d8c5b80a.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-12fd7ee9.system.js","./p-bca249f8.system.js","./p-e55aafe9.system.js","./p-d821418e.system.js"],(function(e){"use strict";var t,r,i,a,n,o,s,d,u,c,l,h,p,m,f,y,b,v,_,g,x,T,S,I,C,P,A,k,w,L,N,E,B;return{setters:[function(e){t=e.r;r=e.h},function(){},function(e){i=e.u;a=e.f;n=e.n},function(e){o=e.M;s=e._;d=e.J;u=e.L;c=e.I;l=e.S;h=e.i},function(e){p=e.c},function(e){m=e.g},function(){},function(e){f=e.E},function(e){y=e.g;b=e.L},function(e){v=e.e;_=e.p},function(e){g=e.T;x=e.a;T=e.U;S=e.C;I=e.b;C=e.S;P=e.c;A=e.G;k=e.d;w=e.e;L=e.F;N=e.f;E=e.g;B=e.h}],execute:function(){function D(e){var t,r;if(!((t=e.impactConnection)===null||t===void 0?void 0:t.connected)||!((r=e.impactConnection)===null||r===void 0?void 0:r.publisher)){return"/1"}var i=e.impactConnection.publisher,a=i.requiredTaxDocumentType,n=i.currentTaxDocument,o=i.withdrawalSettings,s=i.brandedSignup;if(a&&!n)return"/3";if(!o&&s)return"/4";return"/dashboard"}function F(){var e,t,r,n,h;var p=s();var m=d();var f=u();var b=c({namespace:g,initialValue:"/loading"}),v=b[0],_=b[1];var F=c({namespace:x,initialValue:{}}),R=F[0],q=F[1];var H=c({namespace:T,initialValue:{firstName:undefined,lastName:undefined,email:undefined,countryCode:undefined,currency:undefined}}),V=H[0],j=H[1];var O=c({namespace:S,initialValue:[]}),G=O[0],M=O[1];var U=c({namespace:I,initialValue:[]}),W=U[0],Y=U[1];var Q=c({namespace:C,initialValue:[]}),Z=Q[0],z=Q[1];var J=l({namespace:P,query:A,skip:!m,options:{batch:false}}),K=J.data,X=J.errors;var $=((r=(t=(e=K===null||K===void 0?void 0:K.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.countryCode)||V.countryCode;l({namespace:k,query:w,skip:!m});var ee=l({namespace:L,query:N,skip:!m,variables:{filter:le()}}),te=ee.data,re=ee.refetch;var ie=l({namespace:E,query:B,skip:!m,variables:{locale:f}}).data;var ae=i((function(){var e,t;var r=(t=(e=te===null||te===void 0?void 0:te.impactFinanceNetworkSettings)===null||e===void 0?void 0:e.data)===null||t===void 0?void 0:t.reduce((function(e,t){var r,i;var a=(i=(r=ie===null||ie===void 0?void 0:ie.currencies)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.find((function(e){return e.currencyCode===t.currency}));if(!a)return e;if(e.find((function(e){return e.currencyCode===t.currency})))return e;if(V.countryCode&&t.countryCode!==$)return e;return __spreadArrays(e,[a])}),[]);return r}),[te,$]);var ne=(f===null||f===void 0?void 0:f.replace("_","-"))||"en";var oe=function(e,t){return e.displayName<t.displayName?-1:1};var se=(n=te===null||te===void 0?void 0:te.impactFinanceNetworkSettings)===null||n===void 0?void 0:n.data;var de=i((function(){return new Set(se===null||se===void 0?void 0:se.map((function(e){return e.countryCode})).filter((function(e){return e})))}),[se]);var ue=["CA","GB","US"];var ce=i((function(){return Array.from(de).map((function(e){return y({countryCode:e,locale:ne})})).sort(oe).reduce((function(e,t){if(ue.includes(t.countryCode))return __spreadArrays([t],e);return __spreadArrays(e,[t])}),[])}),[de]);a((function(){if(ce)z(ce)}),[ce]);a((function(){if(ae)M(ae)}),[ae]);a((function(){if(X){_("/error");return}if(!p||!m)return;if(K){var e=K===null||K===void 0?void 0:K.user;if(!e||v!=="/loading")return;var t=D(e);_(t)}}),[p,m,(h=K===null||K===void 0?void 0:K.user)===null||h===void 0?void 0:h.email,X]);function le(){var e,t,r;if(v==="/1")return{};if(v==="/4")return{currency_eq:(r=(t=(e=K===null||K===void 0?void 0:K.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.currency};if($)return{countryCode_eq:$};return{}}return{step:v,setStep:_,context:R,namespace:o(g),loading:v==="/loading"}}var R=e("sqm_tax_and_cash",function(){function e(e){t(this,e);this.step1_firstName="First name";this.step1_lastName="Last name";this.step1_email="Email";this.step1_country="Country";this.step1_phoneNumber="Phone number";this.step1_address="Address";this.step1_city="City";this.step1_state="State";this.step1_province="Province";this.step1_region="Region";this.step1_postalCode="Postal code";this.step1_currency="Currency";this.step1_currencyHelpText="Choose your preferred payout currency";this.step1_allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";this.step1_personalInformation="Personal Information";this.step1_termsAndConditionsLabel="terms and conditions";this.step1_termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html";this.step1_searchForCurrencyText="Search for currency..";this.step2_indirectTax="Indirect Tax";this.step2_indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";this.step2_indirectTaxDetails="Indirect tax details";this.step2_otherRegion="Registered for indirect tax";this.step2_otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.";this.step2_notRegistered="Not registered for indirect tax";this.step2_notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";this.step2_selectedRegion="Country / region of indirect tax";this.step2_indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";this.step2_province="Province";this.step2_indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";this.step2_qstNumber="QST number";this.step2_isRegisteredQST="I am registered for QST Tax";this.step2_isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";this.step2_subRegion="Sub-region";this.step2_subRegionTaxNumberLabel="Income Tax Number";this.step2_cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";this.step3_taxForm="Tax form";this.step3_taxFormLabel="{documentType} Tax Form";this.step3_participantType="Participant type";this.step3_businessEntity="I represent a business";this.step3_individualParticipant="I am an individual participant";this.step3_taxFormDescription="Participants based in the US need to submit a {documentType} form.";this.step3_taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";this.step3_taxFormDescriptionBusinessEntity="Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";this.step3_docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";this.step3_docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";this.step3_docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";this.step3_refreshButton="Refresh Page";this.step3_exitButton="Exit";this.step3_modalTitle="Important Note";this.step3_modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";this.step3_modalButtonText="I understand";this.step4_taxAndPayouts="Payouts";this.step4_directlyToBankAccount="Directly to my bank account";this.step4_toPayPalAccount="PayPal (2% processing fee capped to {feeCap})";this.step4_paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold";this.step4_paymentScheduleFixedDay="Pay me on a fixed day of the month";this.step4_paymentDaySelectLabel="Payment Day";this.step4_paymentThresholdSelectLabel="Payment threshold";this.step4_paymentDayFirstOfMonthLabelText="1st of the month";this.step4_paymentDayFifteenthOfMonthLabelText="15th of the month";this.step4_paymentMethod="Payment method";this.step4_paymentSchedule="Payment schedule";this.step4_paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.";this.step4_payPalInputLabel="PayPal email";this.step4_bankLocationLabel="Bank country location";this.step4_beneficiaryAccountNameLabel="Account holder name";this.step4_beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.";this.step4_bankAccountTypeLabel="Bank account type";this.step4_checkingSelectItemLabel="Checking";this.step4_savingsSelectItemLabel="Savings";this.step4_bankAccountNumberLabel="Bank account number";this.step4_ibanLabel="IBAN";this.step4_swiftCodeLabel="SWIFT code";this.step4_routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";this.step4_bankNameLabel="Bank name";this.step4_classificationEntityLabel="Classification entity";this.step4_businessSelectItemLabel="Business";this.step4_individualSelectItemLabel="Individual";this.step4_foreignSelectItemLabel="Foreign";this.step4_classificationCPFLabel="Classification CPF";this.step4_patronymicNameLabel="Patronymic name";this.step4_voCodeLabel="VO code";this.step4_agencyCodeLabel="Agency code";this.step4_branchCodeLabel="Branch code";this.step4_classificationLabel="Classification";this.step4_taxPayerIdLabel="Beneficiary INN";this.step4_bankAddressLabel="Bank address";this.step4_bankCityLabel="Bank city";this.step4_bankStateLabel="Bank Province / State";this.step4_bankPostalCodeLabel="Bank postal code";this.step4_eftWithdrawalLabel="EFT Withdrawal (free)";this.step4_fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)";this.step4_verifyEmailHeaderText="Verify your email";this.step4_verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";this.step4_modalTitle="Important Note";this.step4_modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";this.step4_modalButtonText="I understand, update my information";this.dashboard_statusTextActive="Active";this.dashboard_statusTextNotActive="Invalid Tax Form";this.dashboard_statusTextNotVerified="Not Verified";this.dashboard_badgeTextSubmittedOn="Submitted on {dateSubmitted}.";this.dashboard_badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.";this.dashboard_badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.";this.dashboard_taxAlertHeaderNotActiveW9="Your W9 tax form has personal information that doesn’t match your profile";this.dashboard_taxAlertHeaderNotActiveW8="{documentType} tax form is invalid";this.dashboard_taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.";this.dashboard_taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";this.dashboard_invalidForm="Make sure your information is correct and submit new form.";this.dashboard_bankingInformationSectionHeader="Payout Information";this.dashboard_taxDocumentSectionHeader="Tax documents";this.dashboard_taxDocumentSectionSubHeader="{documentType} tax form";this.dashboard_noFormNeededSubtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";this.dashboard_indirectTaxInfoSectionHeader="Indirect tax";this.dashboard_indirectTaxInfoCanada="Registered in {province}, {country}";this.dashboard_indirectTaxInfoOtherCountry="Registered in {country}";this.dashboard_indirectTaxInfoSpain="Registered in {country}, {subRegion}";this.dashboard_indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.";this.dashboard_indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}";this.dashboard_newFormButton="Submit new form";this.dashboard_editPaymentInformationButton="Edit Payout Information";this.dashboard_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.";this.dashboard_qstNumber="QST number: {qstNumber}";this.dashboard_subRegionTaxNumber="Income tax number: {subRegionTaxNumber}";this.dashboard_statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";this.dashboard_thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}";this.dashboard_accountText="Account";this.dashboard_invoiceColumnTitle="Invoice";this.dashboard_dateColumnTitle="Date";this.dashboard_earningsColumnTitle="Earnings";this.dashboard_indirectTaxColumnTitle="Indirect tax";this.dashboard_payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";this.dashboard_earningsAfterTaxColumnTitle="Earnings after tax";this.dashboard_payoutHoldAlertHeader="Your payout is on hold";this.dashboard_payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";this.dashboard_payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.";this.dashboard_invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.";this.dashboard_invoicePrevLabel="Prev";this.dashboard_invoiceMoreLabel="Next";this.dashboard_invoiceHeader="Invoices";this.dashboard_invoiceEmptyStateHeader="View your invoice details";this.dashboard_invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned";this.dashboard_replaceTaxFormModalHeader="Replace existing tax form";this.dashboard_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.";this.dashboard_verificationRequiredHeader="Verify your identity";this.dashboard_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}.";this.dashboard_verificationRequiredInternalHeader="Identity Verification in Progress";this.dashboard_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}.";this.dashboard_verificationReviewInternalHeader="Identity Verification Under Review";this.dashboard_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}.";this.dashboard_verificationFailedInternalHeader="Identity Verification Unsuccessful";this.dashboard_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}.";this.dashboard_verificationRequiredButtonText="Start Verification";this.formStep="Step {step} of {count}";this.generalErrorTitle="There was a problem submitting your information";this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.";this.fieldRequiredError="{fieldName} is required";this.invalidCharacterError="{fieldName} includes characters that aren't supported.";this.fieldInvalidError="{fieldName} is invalid";this.continueButton="Continue";this.backButton="Back";this.cancelButton="Cancel";this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com";this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";this.searchForCountryText="Search for country..";this.loadingErrorAlertHeader="There was a problem loading your form";this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.";this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.";this.supportLink="support team";this.stateController="{}";n(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getGeneralStepTextProps=function(e){var t=m(this);return __assign(__assign({},v(t,e)),{generalErrorTitle:t.generalErrorTitle,generalErrorDescription:t.generalErrorDescription,fieldRequiredError:t.fieldRequiredError,invalidCharacterError:t.invalidCharacterError,fieldInvalidError:t.fieldInvalidError,continueButton:t.continueButton,backButton:t.backButton,cancelButton:t.cancelButton,isPartnerAlertHeader:t.isPartnerAlertHeader,isPartnerAlertDescription:t.isPartnerAlertDescription,loadingErrorAlertHeader:t.loadingErrorAlertHeader,loadingErrorAlertDescription:t.loadingErrorAlertDescription,taxAndPayoutsDescription:t.taxAndPayoutsDescription,searchForCountryText:t.searchForCountryText,formStep:t.formStep,supportLink:t.supportLink})};e.prototype.render=function(){var e=this;var t,i;var a=h()?q(this):F();if((t=this.demoData)===null||t===void 0?void 0:t.showTextProps){var n=m(this);return r("div",null,(i=Object.keys(n))===null||i===void 0?void 0:i.map((function(t){if(t==="demoData")return;return r("div",null,r("b",null,t,":")," ",e[t],r("hr",null))})))}var o=function(){switch(a.step){case"/1":return r("sqm-user-info-form",Object.assign({},e.getGeneralStepTextProps("step1_"),v(a,"sqm-user-info-form_")));case"/2":return r("sqm-indirect-tax-form",Object.assign({},e.getGeneralStepTextProps("step2_"),v(a,"sqm-indirect-tax-form_")));case"/3":return r("sqm-docusign-form",Object.assign({},e.getGeneralStepTextProps("step3_"),v(a,"sqm-docusign-form_")));case"/4":return r("sqm-banking-info-form",Object.assign({},e.getGeneralStepTextProps("step4_"),v(a,"sqm-banking-info-form_")));case"/dashboard":return r("sqm-tax-and-cash-dashboard",Object.assign({},e.getGeneralStepTextProps("dashboard_"),v(a,"sqm-tax-and-cash-dashboard_")));case"/error":return r(f,{loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription})}};return o()||r(b,null)};return e}());function q(e){var t=c({namespace:g,initialValue:"/1"}),r=t[0],i=t[1];console.log("PROPS",e);var a=_(e.stateController);var n=Object.keys(a).reduce((function(e,t){var r;return t==="sqm-tax-and-cash"?__assign(__assign({},e),a[t]):__assign(__assign({},e),(r={},r[t+"_stateController"]=a[t],r))}),{});return p({step:r,setStep:i},e.demoData||n||{},{arrayMerge:function(e,t){return t}})}}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<r;t++)for(var n=arguments[t],o=0,s=n.length;o<s;o++,a++)i[a]=n[o];return i};System.register(["./p-59b028db.system.js","./p-003325f4.system.js","./p-4f5329a2.system.js","./p-d8c5b80a.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-12fd7ee9.system.js","./p-50302878.system.js","./p-e55aafe9.system.js","./p-d821418e.system.js"],(function(e){"use strict";var t,r,i,a,n,o,s,d,u,c,l,h,p,m,f,y,b,v,_,g,x,T,S,I,C,P,A,k,w,L,N,E,B;return{setters:[function(e){t=e.r;r=e.h},function(){},function(e){i=e.u;a=e.f;n=e.n},function(e){o=e.M;s=e._;d=e.J;u=e.L;c=e.I;l=e.S;h=e.i},function(e){p=e.c},function(e){m=e.g},function(){},function(e){f=e.E},function(e){y=e.g;b=e.L},function(e){v=e.e;_=e.p},function(e){g=e.T;x=e.a;T=e.U;S=e.C;I=e.b;C=e.S;P=e.c;A=e.G;k=e.d;w=e.e;L=e.F;N=e.f;E=e.g;B=e.h}],execute:function(){function D(e){var t,r;if(!((t=e.impactConnection)===null||t===void 0?void 0:t.connected)||!((r=e.impactConnection)===null||r===void 0?void 0:r.publisher)){return"/1"}var i=e.impactConnection.publisher,a=i.requiredTaxDocumentType,n=i.currentTaxDocument,o=i.withdrawalSettings,s=i.brandedSignup;if(a&&!n)return"/3";if(!o&&s)return"/4";return"/dashboard"}function F(){var e,t,r,n,h;var p=s();var m=d();var f=u();var b=c({namespace:g,initialValue:"/loading"}),v=b[0],_=b[1];var F=c({namespace:x,initialValue:{}}),R=F[0],q=F[1];var H=c({namespace:T,initialValue:{firstName:undefined,lastName:undefined,email:undefined,countryCode:undefined,currency:undefined}}),V=H[0],j=H[1];var O=c({namespace:S,initialValue:[]}),G=O[0],M=O[1];var U=c({namespace:I,initialValue:[]}),W=U[0],Y=U[1];var Q=c({namespace:C,initialValue:[]}),Z=Q[0],z=Q[1];var J=l({namespace:P,query:A,skip:!m,options:{batch:false}}),K=J.data,X=J.errors;var $=((r=(t=(e=K===null||K===void 0?void 0:K.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.countryCode)||V.countryCode;l({namespace:k,query:w,skip:!m});var ee=l({namespace:L,query:N,skip:!m,variables:{filter:le()}}),te=ee.data,re=ee.refetch;var ie=l({namespace:E,query:B,skip:!m,variables:{locale:f}}).data;var ae=i((function(){var e,t;var r=(t=(e=te===null||te===void 0?void 0:te.impactFinanceNetworkSettings)===null||e===void 0?void 0:e.data)===null||t===void 0?void 0:t.reduce((function(e,t){var r,i;var a=(i=(r=ie===null||ie===void 0?void 0:ie.currencies)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.find((function(e){return e.currencyCode===t.currency}));if(!a)return e;if(e.find((function(e){return e.currencyCode===t.currency})))return e;if(V.countryCode&&t.countryCode!==$)return e;return __spreadArrays(e,[a])}),[]);return r}),[te,$]);var ne=(f===null||f===void 0?void 0:f.replace("_","-"))||"en";var oe=function(e,t){return e.displayName<t.displayName?-1:1};var se=(n=te===null||te===void 0?void 0:te.impactFinanceNetworkSettings)===null||n===void 0?void 0:n.data;var de=i((function(){return new Set(se===null||se===void 0?void 0:se.map((function(e){return e.countryCode})).filter((function(e){return e})))}),[se]);var ue=["CA","GB","US"];var ce=i((function(){return Array.from(de).map((function(e){return y({countryCode:e,locale:ne})})).sort(oe).reduce((function(e,t){if(ue.includes(t.countryCode))return __spreadArrays([t],e);return __spreadArrays(e,[t])}),[])}),[de]);a((function(){if(ce)z(ce)}),[ce]);a((function(){if(ae)M(ae)}),[ae]);a((function(){if(X){_("/error");return}if(!p||!m)return;if(K){var e=K===null||K===void 0?void 0:K.user;if(!e||v!=="/loading")return;var t=D(e);_(t)}}),[p,m,(h=K===null||K===void 0?void 0:K.user)===null||h===void 0?void 0:h.email,X]);function le(){var e,t,r;if(v==="/1")return{};if(v==="/4")return{currency_eq:(r=(t=(e=K===null||K===void 0?void 0:K.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.currency};if($)return{countryCode_eq:$};return{}}return{step:v,setStep:_,context:R,namespace:o(g),loading:v==="/loading"}}var R=e("sqm_tax_and_cash",function(){function e(e){t(this,e);this.step1_firstName="First name";this.step1_lastName="Last name";this.step1_email="Email";this.step1_country="Country";this.step1_phoneNumber="Phone number";this.step1_address="Address";this.step1_city="City";this.step1_state="State";this.step1_province="Province";this.step1_region="Region";this.step1_postalCode="Postal code";this.step1_currency="Currency";this.step1_currencyHelpText="Choose your preferred payout currency";this.step1_allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";this.step1_personalInformation="Personal Information";this.step1_termsAndConditionsLabel="terms and conditions";this.step1_termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html";this.step1_searchForCurrencyText="Search for currency..";this.step2_indirectTax="Indirect Tax";this.step2_indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";this.step2_indirectTaxDetails="Indirect tax details";this.step2_otherRegion="Registered for indirect tax";this.step2_otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.";this.step2_notRegistered="Not registered for indirect tax";this.step2_notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";this.step2_selectedRegion="Country / region of indirect tax";this.step2_indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";this.step2_province="Province";this.step2_indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";this.step2_qstNumber="QST number";this.step2_isRegisteredQST="I am registered for QST Tax";this.step2_isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";this.step2_subRegion="Sub-region";this.step2_subRegionTaxNumberLabel="Income Tax Number";this.step2_cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";this.step3_taxForm="Tax form";this.step3_taxFormLabel="{documentType} Tax Form";this.step3_participantType="Participant type";this.step3_businessEntity="I represent a business";this.step3_individualParticipant="I am an individual participant";this.step3_taxFormDescription="Participants based in the US need to submit a {documentType} form.";this.step3_taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";this.step3_taxFormDescriptionBusinessEntity="Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";this.step3_docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";this.step3_docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";this.step3_docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";this.step3_refreshButton="Refresh Page";this.step3_exitButton="Exit";this.step3_modalTitle="Important Note";this.step3_modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";this.step3_modalButtonText="I understand";this.step4_taxAndPayouts="Payouts";this.step4_directlyToBankAccount="Directly to my bank account";this.step4_toPayPalAccount="PayPal (2% processing fee capped to {feeCap})";this.step4_paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold";this.step4_paymentScheduleFixedDay="Pay me on a fixed day of the month";this.step4_paymentDaySelectLabel="Payment Day";this.step4_paymentThresholdSelectLabel="Payment threshold";this.step4_paymentDayFirstOfMonthLabelText="1st of the month";this.step4_paymentDayFifteenthOfMonthLabelText="15th of the month";this.step4_paymentMethod="Payment method";this.step4_paymentSchedule="Payment schedule";this.step4_paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.";this.step4_payPalInputLabel="PayPal email";this.step4_bankLocationLabel="Bank country location";this.step4_beneficiaryAccountNameLabel="Account holder name";this.step4_beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.";this.step4_bankAccountTypeLabel="Bank account type";this.step4_checkingSelectItemLabel="Checking";this.step4_savingsSelectItemLabel="Savings";this.step4_bankAccountNumberLabel="Bank account number";this.step4_ibanLabel="IBAN";this.step4_swiftCodeLabel="SWIFT code";this.step4_routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";this.step4_bankNameLabel="Bank name";this.step4_classificationEntityLabel="Classification entity";this.step4_businessSelectItemLabel="Business";this.step4_individualSelectItemLabel="Individual";this.step4_foreignSelectItemLabel="Foreign";this.step4_classificationCPFLabel="Classification CPF";this.step4_patronymicNameLabel="Patronymic name";this.step4_voCodeLabel="VO code";this.step4_agencyCodeLabel="Agency code";this.step4_branchCodeLabel="Branch code";this.step4_classificationLabel="Classification";this.step4_taxPayerIdLabel="Beneficiary INN";this.step4_bankAddressLabel="Bank address";this.step4_bankCityLabel="Bank city";this.step4_bankStateLabel="Bank Province / State";this.step4_bankPostalCodeLabel="Bank postal code";this.step4_eftWithdrawalLabel="EFT Withdrawal (free)";this.step4_fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)";this.step4_verifyEmailHeaderText="Verify your email";this.step4_verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";this.step4_modalTitle="Important Note";this.step4_modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";this.step4_modalButtonText="I understand, update my information";this.dashboard_statusTextActive="Active";this.dashboard_statusTextNotActive="Invalid Tax Form";this.dashboard_statusTextNotVerified="Not Verified";this.dashboard_badgeTextSubmittedOn="Submitted on {dateSubmitted}.";this.dashboard_badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.";this.dashboard_badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.";this.dashboard_taxAlertHeaderNotActiveW9="Your W9 tax form has personal information that doesn’t match your profile";this.dashboard_taxAlertHeaderNotActiveW8="{documentType} tax form is invalid";this.dashboard_taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.";this.dashboard_taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";this.dashboard_invalidForm="Make sure your information is correct and submit new form.";this.dashboard_bankingInformationSectionHeader="Payout Information";this.dashboard_taxDocumentSectionHeader="Tax documents";this.dashboard_taxDocumentSectionSubHeader="{documentType} tax form";this.dashboard_noFormNeededSubtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";this.dashboard_indirectTaxInfoSectionHeader="Indirect tax";this.dashboard_indirectTaxInfoCanada="Registered in {province}, {country}";this.dashboard_indirectTaxInfoOtherCountry="Registered in {country}";this.dashboard_indirectTaxInfoSpain="Registered in {country}, {subRegion}";this.dashboard_indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.";this.dashboard_indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}";this.dashboard_newFormButton="Submit new form";this.dashboard_editPaymentInformationButton="Edit Payout Information";this.dashboard_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.";this.dashboard_qstNumber="QST number: {qstNumber}";this.dashboard_subRegionTaxNumber="Income tax number: {subRegionTaxNumber}";this.dashboard_statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";this.dashboard_thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}";this.dashboard_accountText="Account";this.dashboard_invoiceColumnTitle="Invoice";this.dashboard_dateColumnTitle="Date";this.dashboard_earningsColumnTitle="Earnings";this.dashboard_indirectTaxColumnTitle="Indirect tax";this.dashboard_payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";this.dashboard_earningsAfterTaxColumnTitle="Earnings after tax";this.dashboard_payoutHoldAlertHeader="Your payout is on hold";this.dashboard_payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";this.dashboard_payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.";this.dashboard_invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.";this.dashboard_invoicePrevLabel="Prev";this.dashboard_invoiceMoreLabel="Next";this.dashboard_invoiceHeader="Invoices";this.dashboard_invoiceEmptyStateHeader="View your invoice details";this.dashboard_invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned";this.dashboard_replaceTaxFormModalHeader="Replace existing tax form";this.dashboard_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.";this.dashboard_verificationRequiredHeader="Verify your identity";this.dashboard_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}.";this.dashboard_verificationRequiredInternalHeader="Identity Verification in Progress";this.dashboard_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}.";this.dashboard_verificationReviewInternalHeader="Identity Verification Under Review";this.dashboard_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}.";this.dashboard_verificationFailedInternalHeader="Identity Verification Unsuccessful";this.dashboard_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}.";this.dashboard_verificationRequiredButtonText="Start Verification";this.formStep="Step {step} of {count}";this.generalErrorTitle="There was a problem submitting your information";this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.";this.fieldRequiredError="{fieldName} is required";this.invalidCharacterError="{fieldName} includes characters that aren't supported.";this.fieldInvalidError="{fieldName} is invalid";this.continueButton="Continue";this.backButton="Back";this.cancelButton="Cancel";this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com";this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";this.searchForCountryText="Search for country..";this.loadingErrorAlertHeader="There was a problem loading your form";this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.";this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.";this.supportLink="support team";this.stateController="{}";n(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getGeneralStepTextProps=function(e){var t=m(this);return __assign(__assign({},v(t,e)),{generalErrorTitle:t.generalErrorTitle,generalErrorDescription:t.generalErrorDescription,fieldRequiredError:t.fieldRequiredError,invalidCharacterError:t.invalidCharacterError,fieldInvalidError:t.fieldInvalidError,continueButton:t.continueButton,backButton:t.backButton,cancelButton:t.cancelButton,isPartnerAlertHeader:t.isPartnerAlertHeader,isPartnerAlertDescription:t.isPartnerAlertDescription,loadingErrorAlertHeader:t.loadingErrorAlertHeader,loadingErrorAlertDescription:t.loadingErrorAlertDescription,taxAndPayoutsDescription:t.taxAndPayoutsDescription,searchForCountryText:t.searchForCountryText,formStep:t.formStep,supportLink:t.supportLink})};e.prototype.render=function(){var e=this;var t,i;var a=h()?q(this):F();if((t=this.demoData)===null||t===void 0?void 0:t.showTextProps){var n=m(this);return r("div",null,(i=Object.keys(n))===null||i===void 0?void 0:i.map((function(t){if(t==="demoData")return;return r("div",null,r("b",null,t,":")," ",e[t],r("hr",null))})))}var o=function(){switch(a.step){case"/1":return r("sqm-user-info-form",Object.assign({},e.getGeneralStepTextProps("step1_"),v(a,"sqm-user-info-form_")));case"/2":return r("sqm-indirect-tax-form",Object.assign({},e.getGeneralStepTextProps("step2_"),v(a,"sqm-indirect-tax-form_")));case"/3":return r("sqm-docusign-form",Object.assign({},e.getGeneralStepTextProps("step3_"),v(a,"sqm-docusign-form_")));case"/4":return r("sqm-banking-info-form",Object.assign({},e.getGeneralStepTextProps("step4_"),v(a,"sqm-banking-info-form_")));case"/dashboard":return r("sqm-tax-and-cash-dashboard",Object.assign({},e.getGeneralStepTextProps("dashboard_"),v(a,"sqm-tax-and-cash-dashboard_")));case"/error":return r(f,{loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription})}};return o()||r(b,null)};return e}());function q(e){var t=c({namespace:g,initialValue:"/1"}),r=t[0],i=t[1];console.log("PROPS",e);var a=_(e.stateController);var n=Object.keys(a).reduce((function(e,t){var r;return t==="sqm-tax-and-cash"?__assign(__assign({},e),a[t]):__assign(__assign({},e),(r={},r[t+"_stateController"]=a[t],r))}),{});return p({step:r,setStep:i},e.demoData||n||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +1 @@
1
- import{r as t,h as e}from"./p-c7c11325.js";import"./p-7a772a4a.js";import{u as i,f as r,n as o}from"./p-63e29387.js";import{M as a,_ as n,J as s,L as u,I as h,S as d,i as c}from"./p-8e2bead4.js";import{c as m}from"./p-c1086930.js";import{g as l}from"./p-9ec99ced.js";import"./p-cef45012.js";import{E as p}from"./p-24af584d.js";import{g as y,L as f}from"./p-c9f99a68.js";import{e as v,p as b}from"./p-0797a946.js";import{T as g,a as x,U as T,C as S,b as w,S as I,c as k,G as P,d as C,e as A,F as q,f as B,g as N,h as V}from"./p-6ad674c2.js";const E=class{constructor(e){t(this,e),this.step1_firstName="First name",this.step1_lastName="Last name",this.step1_email="Email",this.step1_country="Country",this.step1_phoneNumber="Phone number",this.step1_address="Address",this.step1_city="City",this.step1_state="State",this.step1_province="Province",this.step1_region="Region",this.step1_postalCode="Postal code",this.step1_currency="Currency",this.step1_currencyHelpText="Choose your preferred payout currency",this.step1_allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",this.step1_personalInformation="Personal Information",this.step1_termsAndConditionsLabel="terms and conditions",this.step1_termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html",this.step1_searchForCurrencyText="Search for currency..",this.step2_indirectTax="Indirect Tax",this.step2_indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.",this.step2_indirectTaxDetails="Indirect tax details",this.step2_otherRegion="Registered for indirect tax",this.step2_otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.",this.step2_notRegistered="Not registered for indirect tax",this.step2_notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.",this.step2_selectedRegion="Country / region of indirect tax",this.step2_indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}",this.step2_province="Province",this.step2_indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required",this.step2_qstNumber="QST number",this.step2_isRegisteredQST="I am registered for QST Tax",this.step2_isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.",this.step2_subRegion="Sub-region",this.step2_subRegionTaxNumberLabel="Income Tax Number",this.step2_cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.",this.step3_taxForm="Tax form",this.step3_taxFormLabel="{documentType} Tax Form",this.step3_participantType="Participant type",this.step3_businessEntity="I represent a business",this.step3_individualParticipant="I am an individual participant",this.step3_taxFormDescription="Participants based in the US need to submit a {documentType} form.",this.step3_taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.",this.step3_taxFormDescriptionBusinessEntity="Participants residing outside of the US who represent a business entity need to submit a {documentType} form.",this.step3_docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.",this.step3_docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.",this.step3_docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.",this.step3_refreshButton="Refresh Page",this.step3_exitButton="Exit",this.step3_modalTitle="Important Note",this.step3_modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.",this.step3_modalButtonText="I understand",this.step4_taxAndPayouts="Payouts",this.step4_directlyToBankAccount="Directly to my bank account",this.step4_toPayPalAccount="PayPal (2% processing fee capped to {feeCap})",this.step4_paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold",this.step4_paymentScheduleFixedDay="Pay me on a fixed day of the month",this.step4_paymentDaySelectLabel="Payment Day",this.step4_paymentThresholdSelectLabel="Payment threshold",this.step4_paymentDayFirstOfMonthLabelText="1st of the month",this.step4_paymentDayFifteenthOfMonthLabelText="15th of the month",this.step4_paymentMethod="Payment method",this.step4_paymentSchedule="Payment schedule",this.step4_paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.",this.step4_payPalInputLabel="PayPal email",this.step4_bankLocationLabel="Bank country location",this.step4_beneficiaryAccountNameLabel="Account holder name",this.step4_beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.",this.step4_bankAccountTypeLabel="Bank account type",this.step4_checkingSelectItemLabel="Checking",this.step4_savingsSelectItemLabel="Savings",this.step4_bankAccountNumberLabel="Bank account number",this.step4_ibanLabel="IBAN",this.step4_swiftCodeLabel="SWIFT code",this.step4_routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }",this.step4_bankNameLabel="Bank name",this.step4_classificationEntityLabel="Classification entity",this.step4_businessSelectItemLabel="Business",this.step4_individualSelectItemLabel="Individual",this.step4_foreignSelectItemLabel="Foreign",this.step4_classificationCPFLabel="Classification CPF",this.step4_patronymicNameLabel="Patronymic name",this.step4_voCodeLabel="VO code",this.step4_agencyCodeLabel="Agency code",this.step4_branchCodeLabel="Branch code",this.step4_classificationLabel="Classification",this.step4_taxPayerIdLabel="Beneficiary INN",this.step4_bankAddressLabel="Bank address",this.step4_bankCityLabel="Bank city",this.step4_bankStateLabel="Bank Province / State",this.step4_bankPostalCodeLabel="Bank postal code",this.step4_eftWithdrawalLabel="EFT Withdrawal (free)",this.step4_fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)",this.step4_verifyEmailHeaderText="Verify your email",this.step4_verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.",this.step4_modalTitle="Important Note",this.step4_modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.",this.step4_modalButtonText="I understand, update my information",this.dashboard_statusTextActive="Active",this.dashboard_statusTextNotActive="Invalid Tax Form",this.dashboard_statusTextNotVerified="Not Verified",this.dashboard_badgeTextSubmittedOn="Submitted on {dateSubmitted}.",this.dashboard_badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.",this.dashboard_badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.",this.dashboard_taxAlertHeaderNotActiveW9="Your W9 tax form has personal information that doesn’t match your profile",this.dashboard_taxAlertHeaderNotActiveW8="{documentType} tax form is invalid",this.dashboard_taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.",this.dashboard_taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.",this.dashboard_invalidForm="Make sure your information is correct and submit new form.",this.dashboard_bankingInformationSectionHeader="Payout Information",this.dashboard_taxDocumentSectionHeader="Tax documents",this.dashboard_taxDocumentSectionSubHeader="{documentType} tax form",this.dashboard_noFormNeededSubtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand.",this.dashboard_indirectTaxInfoSectionHeader="Indirect tax",this.dashboard_indirectTaxInfoCanada="Registered in {province}, {country}",this.dashboard_indirectTaxInfoOtherCountry="Registered in {country}",this.dashboard_indirectTaxInfoSpain="Registered in {country}, {subRegion}",this.dashboard_indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.",this.dashboard_indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}",this.dashboard_newFormButton="Submit new form",this.dashboard_editPaymentInformationButton="Edit Payout Information",this.dashboard_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.",this.dashboard_qstNumber="QST number: {qstNumber}",this.dashboard_subRegionTaxNumber="Income tax number: {subRegionTaxNumber}",this.dashboard_statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }",this.dashboard_thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}",this.dashboard_accountText="Account",this.dashboard_invoiceColumnTitle="Invoice",this.dashboard_dateColumnTitle="Date",this.dashboard_earningsColumnTitle="Earnings",this.dashboard_indirectTaxColumnTitle="Indirect tax",this.dashboard_payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.",this.dashboard_earningsAfterTaxColumnTitle="Earnings after tax",this.dashboard_payoutHoldAlertHeader="Your payout is on hold",this.dashboard_payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.",this.dashboard_payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.",this.dashboard_invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.",this.dashboard_invoicePrevLabel="Prev",this.dashboard_invoiceMoreLabel="Next",this.dashboard_invoiceHeader="Invoices",this.dashboard_invoiceEmptyStateHeader="View your invoice details",this.dashboard_invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned",this.dashboard_replaceTaxFormModalHeader="Replace existing tax form",this.dashboard_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.",this.dashboard_verificationRequiredHeader="Verify your identity",this.dashboard_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}.",this.dashboard_verificationRequiredInternalHeader="Identity Verification in Progress",this.dashboard_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}.",this.dashboard_verificationReviewInternalHeader="Identity Verification Under Review",this.dashboard_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}.",this.dashboard_verificationFailedInternalHeader="Identity Verification Unsuccessful",this.dashboard_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}.",this.dashboard_verificationRequiredButtonText="Start Verification",this.formStep="Step {step} of {count}",this.generalErrorTitle="There was a problem submitting your information",this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.",this.fieldRequiredError="{fieldName} is required",this.invalidCharacterError="{fieldName} includes characters that aren't supported.",this.fieldInvalidError="{fieldName} is invalid",this.continueButton="Continue",this.backButton="Back",this.cancelButton="Cancel",this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com",this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.",this.searchForCountryText="Search for country..",this.loadingErrorAlertHeader="There was a problem loading your form",this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.",this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.",this.supportLink="support team",this.stateController="{}",o(this)}disconnectedCallback(){}getGeneralStepTextProps(t){const e=l(this);return{...v(e,t),generalErrorTitle:e.generalErrorTitle,generalErrorDescription:e.generalErrorDescription,fieldRequiredError:e.fieldRequiredError,invalidCharacterError:e.invalidCharacterError,fieldInvalidError:e.fieldInvalidError,continueButton:e.continueButton,backButton:e.backButton,cancelButton:e.cancelButton,isPartnerAlertHeader:e.isPartnerAlertHeader,isPartnerAlertDescription:e.isPartnerAlertDescription,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription,taxAndPayoutsDescription:e.taxAndPayoutsDescription,searchForCountryText:e.searchForCountryText,formStep:e.formStep,supportLink:e.supportLink}}render(){var t,o;const E=c()?function(t){const[e,i]=h({namespace:g,initialValue:"/1"});console.log("PROPS",t);const r=b(t.stateController),o=Object.keys(r).reduce(((t,e)=>"sqm-tax-and-cash"===e?{...t,...r[e]}:{...t,[`${e}_stateController`]:r[e]}),{});return m({step:e,setStep:i},t.demoData||o||{},{arrayMerge:(t,e)=>e})}(this):function(){var t,e,o,c,m;const l=n(),p=s(),f=u(),[v,b]=h({namespace:g,initialValue:"/loading"}),[E,j]=h({namespace:x,initialValue:{}}),[L,R]=h({namespace:T,initialValue:{firstName:void 0,lastName:void 0,email:void 0,countryCode:void 0,currency:void 0}}),[_,F]=h({namespace:S,initialValue:[]}),[O,U]=h({namespace:w,initialValue:[]}),[D,G]=h({namespace:I,initialValue:[]}),{data:H,errors:M}=d({namespace:k,query:P,skip:!p,options:{batch:!1}}),Y=(null===(o=null===(e=null===(t=null==H?void 0:H.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===o?void 0:o.countryCode)||L.countryCode;d({namespace:C,query:A,skip:!p});const{data:W}=d({namespace:q,query:B,skip:!p,variables:{filter:function(){var t,e,i;return"/1"===v?{}:"/4"===v?{currency_eq:null===(i=null===(e=null===(t=null==H?void 0:H.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===i?void 0:i.currency}:Y?{countryCode_eq:Y}:{}}()}}),{data:Q}=d({namespace:N,query:V,skip:!p,variables:{locale:f}}),Z=i((()=>{var t,e;return null===(e=null===(t=null==W?void 0:W.impactFinanceNetworkSettings)||void 0===t?void 0:t.data)||void 0===e?void 0:e.reduce(((t,e)=>{var i,r;const o=null===(r=null===(i=null==Q?void 0:Q.currencies)||void 0===i?void 0:i.data)||void 0===r?void 0:r.find((t=>t.currencyCode===e.currency));return o?t.find((t=>t.currencyCode===e.currency))||L.countryCode&&e.countryCode!==Y?t:[...t,o]:t}),[])}),[W,Y]),z=(null==f?void 0:f.replace("_","-"))||"en",K=(t,e)=>t.displayName<e.displayName?-1:1,X=null===(c=null==W?void 0:W.impactFinanceNetworkSettings)||void 0===c?void 0:c.data,$=i((()=>new Set(null==X?void 0:X.map((t=>t.countryCode)).filter((t=>t)))),[X]),J=["CA","GB","US"],tt=i((()=>Array.from($).map((t=>y({countryCode:t,locale:z}))).sort(K).reduce(((t,e)=>J.includes(e.countryCode)?[e,...t]:[...t,e]),[])),[$]);return r((()=>{tt&&G(tt)}),[tt]),r((()=>{Z&&F(Z)}),[Z]),r((()=>{if(M)b("/error");else if(l&&p&&H){const t=null==H?void 0:H.user;if(!t||"/loading"!==v)return;const e=function(t){var e,i;if(!(null===(e=t.impactConnection)||void 0===e?void 0:e.connected)||!(null===(i=t.impactConnection)||void 0===i?void 0:i.publisher))return"/1";const{requiredTaxDocumentType:r,currentTaxDocument:o,withdrawalSettings:a,brandedSignup:n}=t.impactConnection.publisher;return r&&!o?"/3":!a&&n?"/4":"/dashboard"}(t);b(e)}}),[l,p,null===(m=null==H?void 0:H.user)||void 0===m?void 0:m.email,M]),{step:v,setStep:b,context:E,namespace:a(g),loading:"/loading"===v}}();if(null===(t=this.demoData)||void 0===t?void 0:t.showTextProps){const t=l(this);return e("div",null,null===(o=Object.keys(t))||void 0===o?void 0:o.map((t=>{if("demoData"!==t)return e("div",null,e("b",null,t,":")," ",this[t],e("hr",null))})))}return(()=>{switch(E.step){case"/1":return e("sqm-user-info-form",Object.assign({},this.getGeneralStepTextProps("step1_"),v(E,"sqm-user-info-form_")));case"/2":return e("sqm-indirect-tax-form",Object.assign({},this.getGeneralStepTextProps("step2_"),v(E,"sqm-indirect-tax-form_")));case"/3":return e("sqm-docusign-form",Object.assign({},this.getGeneralStepTextProps("step3_"),v(E,"sqm-docusign-form_")));case"/4":return e("sqm-banking-info-form",Object.assign({},this.getGeneralStepTextProps("step4_"),v(E,"sqm-banking-info-form_")));case"/dashboard":return e("sqm-tax-and-cash-dashboard",Object.assign({},this.getGeneralStepTextProps("dashboard_"),v(E,"sqm-tax-and-cash-dashboard_")));case"/error":return e(p,{loadingErrorAlertHeader:this.loadingErrorAlertHeader,loadingErrorAlertDescription:this.loadingErrorAlertDescription})}})()||e(f,null)}};export{E as sqm_tax_and_cash}
1
+ import{r as t,h as e}from"./p-c7c11325.js";import"./p-7264a34d.js";import{u as i,f as r,n as o}from"./p-63e29387.js";import{M as a,_ as n,J as s,L as u,I as h,S as d,i as c}from"./p-8e2bead4.js";import{c as m}from"./p-c1086930.js";import{g as l}from"./p-9ec99ced.js";import"./p-cef45012.js";import{E as p}from"./p-24af584d.js";import{g as y,L as f}from"./p-5decae6e.js";import{e as v,p as b}from"./p-0797a946.js";import{T as g,a as x,U as T,C as S,b as w,S as I,c as k,G as P,d as C,e as A,F as q,f as B,g as N,h as V}from"./p-6ad674c2.js";const E=class{constructor(e){t(this,e),this.step1_firstName="First name",this.step1_lastName="Last name",this.step1_email="Email",this.step1_country="Country",this.step1_phoneNumber="Phone number",this.step1_address="Address",this.step1_city="City",this.step1_state="State",this.step1_province="Province",this.step1_region="Region",this.step1_postalCode="Postal code",this.step1_currency="Currency",this.step1_currencyHelpText="Choose your preferred payout currency",this.step1_allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",this.step1_personalInformation="Personal Information",this.step1_termsAndConditionsLabel="terms and conditions",this.step1_termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html",this.step1_searchForCurrencyText="Search for currency..",this.step2_indirectTax="Indirect Tax",this.step2_indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.",this.step2_indirectTaxDetails="Indirect tax details",this.step2_otherRegion="Registered for indirect tax",this.step2_otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.",this.step2_notRegistered="Not registered for indirect tax",this.step2_notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.",this.step2_selectedRegion="Country / region of indirect tax",this.step2_indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}",this.step2_province="Province",this.step2_indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required",this.step2_qstNumber="QST number",this.step2_isRegisteredQST="I am registered for QST Tax",this.step2_isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.",this.step2_subRegion="Sub-region",this.step2_subRegionTaxNumberLabel="Income Tax Number",this.step2_cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.",this.step3_taxForm="Tax form",this.step3_taxFormLabel="{documentType} Tax Form",this.step3_participantType="Participant type",this.step3_businessEntity="I represent a business",this.step3_individualParticipant="I am an individual participant",this.step3_taxFormDescription="Participants based in the US need to submit a {documentType} form.",this.step3_taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.",this.step3_taxFormDescriptionBusinessEntity="Participants residing outside of the US who represent a business entity need to submit a {documentType} form.",this.step3_docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.",this.step3_docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.",this.step3_docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.",this.step3_refreshButton="Refresh Page",this.step3_exitButton="Exit",this.step3_modalTitle="Important Note",this.step3_modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.",this.step3_modalButtonText="I understand",this.step4_taxAndPayouts="Payouts",this.step4_directlyToBankAccount="Directly to my bank account",this.step4_toPayPalAccount="PayPal (2% processing fee capped to {feeCap})",this.step4_paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold",this.step4_paymentScheduleFixedDay="Pay me on a fixed day of the month",this.step4_paymentDaySelectLabel="Payment Day",this.step4_paymentThresholdSelectLabel="Payment threshold",this.step4_paymentDayFirstOfMonthLabelText="1st of the month",this.step4_paymentDayFifteenthOfMonthLabelText="15th of the month",this.step4_paymentMethod="Payment method",this.step4_paymentSchedule="Payment schedule",this.step4_paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.",this.step4_payPalInputLabel="PayPal email",this.step4_bankLocationLabel="Bank country location",this.step4_beneficiaryAccountNameLabel="Account holder name",this.step4_beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.",this.step4_bankAccountTypeLabel="Bank account type",this.step4_checkingSelectItemLabel="Checking",this.step4_savingsSelectItemLabel="Savings",this.step4_bankAccountNumberLabel="Bank account number",this.step4_ibanLabel="IBAN",this.step4_swiftCodeLabel="SWIFT code",this.step4_routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }",this.step4_bankNameLabel="Bank name",this.step4_classificationEntityLabel="Classification entity",this.step4_businessSelectItemLabel="Business",this.step4_individualSelectItemLabel="Individual",this.step4_foreignSelectItemLabel="Foreign",this.step4_classificationCPFLabel="Classification CPF",this.step4_patronymicNameLabel="Patronymic name",this.step4_voCodeLabel="VO code",this.step4_agencyCodeLabel="Agency code",this.step4_branchCodeLabel="Branch code",this.step4_classificationLabel="Classification",this.step4_taxPayerIdLabel="Beneficiary INN",this.step4_bankAddressLabel="Bank address",this.step4_bankCityLabel="Bank city",this.step4_bankStateLabel="Bank Province / State",this.step4_bankPostalCodeLabel="Bank postal code",this.step4_eftWithdrawalLabel="EFT Withdrawal (free)",this.step4_fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)",this.step4_verifyEmailHeaderText="Verify your email",this.step4_verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.",this.step4_modalTitle="Important Note",this.step4_modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.",this.step4_modalButtonText="I understand, update my information",this.dashboard_statusTextActive="Active",this.dashboard_statusTextNotActive="Invalid Tax Form",this.dashboard_statusTextNotVerified="Not Verified",this.dashboard_badgeTextSubmittedOn="Submitted on {dateSubmitted}.",this.dashboard_badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.",this.dashboard_badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.",this.dashboard_taxAlertHeaderNotActiveW9="Your W9 tax form has personal information that doesn’t match your profile",this.dashboard_taxAlertHeaderNotActiveW8="{documentType} tax form is invalid",this.dashboard_taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.",this.dashboard_taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.",this.dashboard_invalidForm="Make sure your information is correct and submit new form.",this.dashboard_bankingInformationSectionHeader="Payout Information",this.dashboard_taxDocumentSectionHeader="Tax documents",this.dashboard_taxDocumentSectionSubHeader="{documentType} tax form",this.dashboard_noFormNeededSubtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand.",this.dashboard_indirectTaxInfoSectionHeader="Indirect tax",this.dashboard_indirectTaxInfoCanada="Registered in {province}, {country}",this.dashboard_indirectTaxInfoOtherCountry="Registered in {country}",this.dashboard_indirectTaxInfoSpain="Registered in {country}, {subRegion}",this.dashboard_indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.",this.dashboard_indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}",this.dashboard_newFormButton="Submit new form",this.dashboard_editPaymentInformationButton="Edit Payout Information",this.dashboard_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.",this.dashboard_qstNumber="QST number: {qstNumber}",this.dashboard_subRegionTaxNumber="Income tax number: {subRegionTaxNumber}",this.dashboard_statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }",this.dashboard_thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}",this.dashboard_accountText="Account",this.dashboard_invoiceColumnTitle="Invoice",this.dashboard_dateColumnTitle="Date",this.dashboard_earningsColumnTitle="Earnings",this.dashboard_indirectTaxColumnTitle="Indirect tax",this.dashboard_payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.",this.dashboard_earningsAfterTaxColumnTitle="Earnings after tax",this.dashboard_payoutHoldAlertHeader="Your payout is on hold",this.dashboard_payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.",this.dashboard_payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.",this.dashboard_invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.",this.dashboard_invoicePrevLabel="Prev",this.dashboard_invoiceMoreLabel="Next",this.dashboard_invoiceHeader="Invoices",this.dashboard_invoiceEmptyStateHeader="View your invoice details",this.dashboard_invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned",this.dashboard_replaceTaxFormModalHeader="Replace existing tax form",this.dashboard_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.",this.dashboard_verificationRequiredHeader="Verify your identity",this.dashboard_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}.",this.dashboard_verificationRequiredInternalHeader="Identity Verification in Progress",this.dashboard_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}.",this.dashboard_verificationReviewInternalHeader="Identity Verification Under Review",this.dashboard_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}.",this.dashboard_verificationFailedInternalHeader="Identity Verification Unsuccessful",this.dashboard_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}.",this.dashboard_verificationRequiredButtonText="Start Verification",this.formStep="Step {step} of {count}",this.generalErrorTitle="There was a problem submitting your information",this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.",this.fieldRequiredError="{fieldName} is required",this.invalidCharacterError="{fieldName} includes characters that aren't supported.",this.fieldInvalidError="{fieldName} is invalid",this.continueButton="Continue",this.backButton="Back",this.cancelButton="Cancel",this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com",this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.",this.searchForCountryText="Search for country..",this.loadingErrorAlertHeader="There was a problem loading your form",this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.",this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.",this.supportLink="support team",this.stateController="{}",o(this)}disconnectedCallback(){}getGeneralStepTextProps(t){const e=l(this);return{...v(e,t),generalErrorTitle:e.generalErrorTitle,generalErrorDescription:e.generalErrorDescription,fieldRequiredError:e.fieldRequiredError,invalidCharacterError:e.invalidCharacterError,fieldInvalidError:e.fieldInvalidError,continueButton:e.continueButton,backButton:e.backButton,cancelButton:e.cancelButton,isPartnerAlertHeader:e.isPartnerAlertHeader,isPartnerAlertDescription:e.isPartnerAlertDescription,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription,taxAndPayoutsDescription:e.taxAndPayoutsDescription,searchForCountryText:e.searchForCountryText,formStep:e.formStep,supportLink:e.supportLink}}render(){var t,o;const E=c()?function(t){const[e,i]=h({namespace:g,initialValue:"/1"});console.log("PROPS",t);const r=b(t.stateController),o=Object.keys(r).reduce(((t,e)=>"sqm-tax-and-cash"===e?{...t,...r[e]}:{...t,[`${e}_stateController`]:r[e]}),{});return m({step:e,setStep:i},t.demoData||o||{},{arrayMerge:(t,e)=>e})}(this):function(){var t,e,o,c,m;const l=n(),p=s(),f=u(),[v,b]=h({namespace:g,initialValue:"/loading"}),[E,j]=h({namespace:x,initialValue:{}}),[L,R]=h({namespace:T,initialValue:{firstName:void 0,lastName:void 0,email:void 0,countryCode:void 0,currency:void 0}}),[_,F]=h({namespace:S,initialValue:[]}),[O,U]=h({namespace:w,initialValue:[]}),[D,G]=h({namespace:I,initialValue:[]}),{data:H,errors:M}=d({namespace:k,query:P,skip:!p,options:{batch:!1}}),Y=(null===(o=null===(e=null===(t=null==H?void 0:H.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===o?void 0:o.countryCode)||L.countryCode;d({namespace:C,query:A,skip:!p});const{data:W}=d({namespace:q,query:B,skip:!p,variables:{filter:function(){var t,e,i;return"/1"===v?{}:"/4"===v?{currency_eq:null===(i=null===(e=null===(t=null==H?void 0:H.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===i?void 0:i.currency}:Y?{countryCode_eq:Y}:{}}()}}),{data:Q}=d({namespace:N,query:V,skip:!p,variables:{locale:f}}),Z=i((()=>{var t,e;return null===(e=null===(t=null==W?void 0:W.impactFinanceNetworkSettings)||void 0===t?void 0:t.data)||void 0===e?void 0:e.reduce(((t,e)=>{var i,r;const o=null===(r=null===(i=null==Q?void 0:Q.currencies)||void 0===i?void 0:i.data)||void 0===r?void 0:r.find((t=>t.currencyCode===e.currency));return o?t.find((t=>t.currencyCode===e.currency))||L.countryCode&&e.countryCode!==Y?t:[...t,o]:t}),[])}),[W,Y]),z=(null==f?void 0:f.replace("_","-"))||"en",K=(t,e)=>t.displayName<e.displayName?-1:1,X=null===(c=null==W?void 0:W.impactFinanceNetworkSettings)||void 0===c?void 0:c.data,$=i((()=>new Set(null==X?void 0:X.map((t=>t.countryCode)).filter((t=>t)))),[X]),J=["CA","GB","US"],tt=i((()=>Array.from($).map((t=>y({countryCode:t,locale:z}))).sort(K).reduce(((t,e)=>J.includes(e.countryCode)?[e,...t]:[...t,e]),[])),[$]);return r((()=>{tt&&G(tt)}),[tt]),r((()=>{Z&&F(Z)}),[Z]),r((()=>{if(M)b("/error");else if(l&&p&&H){const t=null==H?void 0:H.user;if(!t||"/loading"!==v)return;const e=function(t){var e,i;if(!(null===(e=t.impactConnection)||void 0===e?void 0:e.connected)||!(null===(i=t.impactConnection)||void 0===i?void 0:i.publisher))return"/1";const{requiredTaxDocumentType:r,currentTaxDocument:o,withdrawalSettings:a,brandedSignup:n}=t.impactConnection.publisher;return r&&!o?"/3":!a&&n?"/4":"/dashboard"}(t);b(e)}}),[l,p,null===(m=null==H?void 0:H.user)||void 0===m?void 0:m.email,M]),{step:v,setStep:b,context:E,namespace:a(g),loading:"/loading"===v}}();if(null===(t=this.demoData)||void 0===t?void 0:t.showTextProps){const t=l(this);return e("div",null,null===(o=Object.keys(t))||void 0===o?void 0:o.map((t=>{if("demoData"!==t)return e("div",null,e("b",null,t,":")," ",this[t],e("hr",null))})))}return(()=>{switch(E.step){case"/1":return e("sqm-user-info-form",Object.assign({},this.getGeneralStepTextProps("step1_"),v(E,"sqm-user-info-form_")));case"/2":return e("sqm-indirect-tax-form",Object.assign({},this.getGeneralStepTextProps("step2_"),v(E,"sqm-indirect-tax-form_")));case"/3":return e("sqm-docusign-form",Object.assign({},this.getGeneralStepTextProps("step3_"),v(E,"sqm-docusign-form_")));case"/4":return e("sqm-banking-info-form",Object.assign({},this.getGeneralStepTextProps("step4_"),v(E,"sqm-banking-info-form_")));case"/dashboard":return e("sqm-tax-and-cash-dashboard",Object.assign({},this.getGeneralStepTextProps("dashboard_"),v(E,"sqm-tax-and-cash-dashboard_")));case"/error":return e(p,{loadingErrorAlertHeader:this.loadingErrorAlertHeader,loadingErrorAlertDescription:this.loadingErrorAlertDescription})}})()||e(f,null)}};export{E as sqm_tax_and_cash}