@saasquatch/mint-components 1.15.0-98 → 1.15.0-99

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 (109) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-cf888c7b.js → IndirectTaxDetailsView-282c1fda.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-1270d3b6.js → ShadowViewAddon-c06b2910.js} +1 -1
  3. package/dist/cjs/{global-191f2253.js → global-4cd8623e.js} +1 -1
  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_43.cjs.entry.js +2 -2
  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-87e083ca.js → sqm-portal-email-verification-view-5a22b152.js} +1 -1
  14. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/{sqm-portal-profile-view-7ac7d3ac.js → sqm-portal-profile-view-4dbfeaeb.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-e3305bd8.js → utils-aacb4233.js} +1 -1
  22. package/dist/collection/global/styles.js +1 -1
  23. package/dist/collection/global/styles.ts +1 -1
  24. package/dist/esm/{IndirectTaxDetailsView-084314d5.js → IndirectTaxDetailsView-5e60d91f.js} +2 -2
  25. package/dist/esm/{ShadowViewAddon-c99c9d12.js → ShadowViewAddon-cf7c03a0.js} +1 -1
  26. package/dist/esm/{global-80edfef3.js → global-f97ae778.js} +1 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/esm/mint-components.js +1 -1
  29. package/dist/esm/sqm-banking-info-form_10.entry.js +3 -3
  30. package/dist/esm/sqm-big-stat_43.entry.js +2 -2
  31. package/dist/esm/sqm-code-verification.entry.js +1 -1
  32. package/dist/esm/sqm-email-verification.entry.js +1 -1
  33. package/dist/esm/sqm-empty_4.entry.js +1 -1
  34. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  35. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  36. package/dist/esm/{sqm-portal-email-verification-view-5719eb87.js → sqm-portal-email-verification-view-98fc3374.js} +1 -1
  37. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  38. package/dist/esm/{sqm-portal-profile-view-9a82fe2e.js → sqm-portal-profile-view-25b3250a.js} +1 -1
  39. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  40. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  41. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  42. package/dist/esm/sqm-stencilbook.entry.js +6 -6
  43. package/dist/esm/sqm-tax-and-cash.entry.js +2 -2
  44. package/dist/esm/{utils-27b2ed4b.js → utils-e1cdc479.js} +1 -1
  45. package/dist/esm-es5/{IndirectTaxDetailsView-084314d5.js → IndirectTaxDetailsView-5e60d91f.js} +1 -1
  46. package/dist/esm-es5/{ShadowViewAddon-c99c9d12.js → ShadowViewAddon-cf7c03a0.js} +1 -1
  47. package/dist/esm-es5/{global-80edfef3.js → global-f97ae778.js} +1 -1
  48. package/dist/esm-es5/loader.js +1 -1
  49. package/dist/esm-es5/mint-components.js +1 -1
  50. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  51. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  52. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  53. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  54. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  55. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  56. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  57. package/dist/esm-es5/{sqm-portal-email-verification-view-5719eb87.js → sqm-portal-email-verification-view-98fc3374.js} +1 -1
  58. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  59. package/dist/esm-es5/{sqm-portal-profile-view-9a82fe2e.js → sqm-portal-profile-view-25b3250a.js} +1 -1
  60. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  61. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  62. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  63. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  64. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  65. package/dist/esm-es5/{utils-27b2ed4b.js → utils-e1cdc479.js} +1 -1
  66. package/dist/mint-components/global/styles.ts +1 -1
  67. package/dist/mint-components/mint-components.esm.js +1 -1
  68. package/dist/mint-components/mint-components.js +1 -1
  69. package/dist/mint-components/{p-1f511d5d.entry.js → p-11500698.entry.js} +1 -1
  70. package/dist/mint-components/{p-8543a70f.system.entry.js → p-14959d73.system.entry.js} +1 -1
  71. package/dist/mint-components/{p-7270fb59.entry.js → p-1c727332.entry.js} +1 -1
  72. package/dist/mint-components/{p-fb0513e7.system.entry.js → p-1ee5070b.system.entry.js} +1 -1
  73. package/dist/mint-components/{p-f9713e0f.entry.js → p-274ea2c4.entry.js} +1 -1
  74. package/dist/mint-components/{p-05650cb6.entry.js → p-2f2bff39.entry.js} +1 -1
  75. package/dist/mint-components/{p-9dbfdb41.system.entry.js → p-3285a6b3.system.entry.js} +1 -1
  76. package/dist/mint-components/{p-c1629004.entry.js → p-3836d1e2.entry.js} +1 -1
  77. package/dist/mint-components/{p-ef8b70cd.system.entry.js → p-3d05ebb1.system.entry.js} +1 -1
  78. package/dist/mint-components/{p-ad586adc.system.entry.js → p-3ea3f5e3.system.entry.js} +1 -1
  79. package/dist/mint-components/{p-29c72c11.js → p-51b8979d.js} +1 -1
  80. package/dist/mint-components/{p-d2e2e10f.js → p-57970440.js} +1 -1
  81. package/dist/mint-components/{p-4575393a.entry.js → p-5aca73f7.entry.js} +2 -2
  82. package/dist/mint-components/{p-433ca566.system.entry.js → p-66c14cb2.system.entry.js} +1 -1
  83. package/dist/mint-components/{p-9d29a0ff.system.entry.js → p-6906ef5d.system.entry.js} +1 -1
  84. package/dist/mint-components/{p-19f41a8e.js → p-6d290019.js} +1 -1
  85. package/dist/mint-components/{p-a4e56204.js → p-6ef73224.js} +1 -1
  86. package/dist/mint-components/{p-1d4a327c.js → p-750e7b01.js} +1 -1
  87. package/dist/mint-components/{p-e9d0caf7.entry.js → p-75584f9e.entry.js} +1 -1
  88. package/dist/mint-components/{p-c2c59452.system.js → p-77d2244b.system.js} +1 -1
  89. package/dist/mint-components/{p-e4e3ddb6.system.js → p-797fd8d9.system.js} +1 -1
  90. package/dist/mint-components/{p-7fcc2a75.system.entry.js → p-7c17e06f.system.entry.js} +1 -1
  91. package/dist/mint-components/{p-f45221d6.system.js → p-7e13424d.system.js} +1 -1
  92. package/dist/mint-components/{p-09631d19.entry.js → p-88b63a7c.entry.js} +1 -1
  93. package/dist/mint-components/{p-ad174af6.system.entry.js → p-901cb538.system.entry.js} +1 -1
  94. package/dist/mint-components/{p-e64fbb70.js → p-916100a9.js} +1 -1
  95. package/dist/mint-components/{p-a89baf7b.system.js → p-926f17f9.system.js} +1 -1
  96. package/dist/mint-components/{p-e425b7a1.entry.js → p-9f3e7e48.entry.js} +2 -2
  97. package/dist/mint-components/{p-df37ef17.system.js → p-a392912a.system.js} +1 -1
  98. package/dist/mint-components/{p-00378aec.entry.js → p-b1a2a83b.entry.js} +1 -1
  99. package/dist/mint-components/{p-a92d6c32.entry.js → p-ba4a5fed.entry.js} +1 -1
  100. package/dist/mint-components/{p-0e66f410.system.entry.js → p-bab57520.system.entry.js} +1 -1
  101. package/dist/mint-components/{p-1394d253.system.js → p-bb12b845.system.js} +1 -1
  102. package/dist/mint-components/{p-84e1d633.system.entry.js → p-c0d48b64.system.entry.js} +1 -1
  103. package/dist/mint-components/{p-f51e41dd.system.entry.js → p-c726f778.system.entry.js} +1 -1
  104. package/dist/mint-components/{p-a6234a78.entry.js → p-e0f9a395.entry.js} +1 -1
  105. package/dist/mint-components/{p-89b859c7.system.entry.js → p-e55f3eb6.system.entry.js} +1 -1
  106. package/dist/mint-components/{p-f4dc053e.entry.js → p-ecc5faba.entry.js} +1 -1
  107. package/dist/mint-components/{p-773ce89c.system.js → p-f1f20fdf.system.js} +1 -1
  108. package/docs/docs.docx +0 -0
  109. package/package.json +1 -1
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};System.register(["./p-59b028db.system.js","./p-773ce89c.system.js","./p-4f5329a2.system.js","./p-d8c5b80a.system.js","./p-15bfd7e2.system.js","./p-1a673057.system.js","./p-a6f4fb03.system.js"],(function(t){"use strict";var e,n,s,i,o,a,r,l;return{setters:[function(t){e=t.h;n=t.r;s=t.c},function(t){i=t.i},function(t){o=t.n},function(){},function(t){a=t.g},function(){},function(t){r=t.P;l=t.a}],execute:function(){function m(t){var n=t.emptyStateHeader,s=t.emptyStateImage,o=t.emptyStateText,a=t.supportText,r=t.missingFeature,l=r===void 0?"":r;return e("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},e("img",{style:{height:"100px",margin:"auto"},src:s}),e("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},e("sqm-text",{slot:"label"},e("p",{part:"header-text"},n)),e("sqm-text",{slot:"content"},e("p",{part:"description-text"},i.formatMessage({id:"emptyStateText",defaultMessage:o},{supportText:e("a",{target:"_blank",href:"mailto:saasquatch-support@impact.com?subject=Next steps for "+l+" feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the "+l+" feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: "+l+"%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you"},a)})))))}var p=t("sqm_empty",function(){function t(t){n(this,t);this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png"}t.prototype.render=function(){return e(s,{slot:"empty"},e(m,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))};return t}());var c=t("sqm_portal_container",function(){function t(t){n(this,t);this.ignored=true;this.direction="column";this.gap="xxx-large";this.display="grid";this.maxWidth="100%";this.flexWrap="wrap";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return e(r,Object.assign({},a(this)),e("slot",null))};return t}());var f=t("sqm_text",function(){function t(t){n(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){var t="\n sqm-text {\n display: block;\n color: "+(this.textColor||"var(--sqm-text)")+";\n }\n\n sqm-text h1 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-xxx-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-xx-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-x-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-large)")+";\n font-weight: var(--sl-font-weight-bold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text p {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-medium)")+";\n font-weight: var(--sl-font-weight-normal);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text sub {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-small)")+";\n font-weight: var(--sl-font-weight-normal);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n ";return e("div",null,e("style",null,t),e("slot",null))};return t}());var h=t("sqm_titled_section",function(){function t(t){n(this,t);this.textAlign="left";this.labelMargin="small";this.padding="none";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=e("slot",{name:"label"},this.label);var n=e("slot",{name:"content"});return e(l,Object.assign({},__assign(__assign({},a(this)),{label:t,content:n})))};return t}())}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};System.register(["./p-59b028db.system.js","./p-f1f20fdf.system.js","./p-4f5329a2.system.js","./p-d8c5b80a.system.js","./p-15bfd7e2.system.js","./p-1a673057.system.js","./p-a6f4fb03.system.js"],(function(t){"use strict";var e,n,s,i,o,a,r,l;return{setters:[function(t){e=t.h;n=t.r;s=t.c},function(t){i=t.i},function(t){o=t.n},function(){},function(t){a=t.g},function(){},function(t){r=t.P;l=t.a}],execute:function(){function m(t){var n=t.emptyStateHeader,s=t.emptyStateImage,o=t.emptyStateText,a=t.supportText,r=t.missingFeature,l=r===void 0?"":r;return e("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},e("img",{style:{height:"100px",margin:"auto"},src:s}),e("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},e("sqm-text",{slot:"label"},e("p",{part:"header-text"},n)),e("sqm-text",{slot:"content"},e("p",{part:"description-text"},i.formatMessage({id:"emptyStateText",defaultMessage:o},{supportText:e("a",{target:"_blank",href:"mailto:saasquatch-support@impact.com?subject=Next steps for "+l+" feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the "+l+" feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: "+l+"%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you"},a)})))))}var p=t("sqm_empty",function(){function t(t){n(this,t);this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png"}t.prototype.render=function(){return e(s,{slot:"empty"},e(m,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))};return t}());var f=t("sqm_portal_container",function(){function t(t){n(this,t);this.ignored=true;this.direction="column";this.gap="xxx-large";this.display="grid";this.maxWidth="100%";this.flexWrap="wrap";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return e(r,Object.assign({},a(this)),e("slot",null))};return t}());var h=t("sqm_text",function(){function t(t){n(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){var t="\n sqm-text {\n display: block;\n color: "+(this.textColor||"var(--sqm-text)")+";\n }\n\n sqm-text h1 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-xxx-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-xx-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-x-large)")+";\n font-weight: var(--sl-font-weight-semibold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-large)")+";\n font-weight: var(--sl-font-weight-bold);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text p {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-medium)")+";\n font-weight: var(--sl-font-weight-normal);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n\n sqm-text sub {\n font-size: "+(this.fontSize?this.fontSize+"px":"var(--sl-font-size-small)")+";\n font-weight: var(--sl-font-weight-normal);\n color: "+(this.textColor||"var(--sqm-text)")+";\n margin: 0;\n }\n ";return e("div",null,e("style",null,t),e("slot",null))};return t}());var c=t("sqm_titled_section",function(){function t(t){n(this,t);this.textAlign="left";this.labelMargin="small";this.padding="none";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=e("slot",{name:"label"},this.label);var n=e("slot",{name:"content"});return e(l,Object.assign({},__assign(__assign({},a(this)),{label:t,content:n})))};return t}())}}}));
@@ -1 +1 @@
1
- import{r as e,h as i}from"./p-c7c11325.js";import"./p-d2e2e10f.js";import{k as a,m as t,f as s,n}from"./p-63e29387.js";import{l as r,n as o,J as l,j as c,u as d,i as v}from"./p-8e2bead4.js";import{c as u}from"./p-c1086930.js";import"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{P as m}from"./p-a4e56204.js";const f=class{constructor(i){e(this,i),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[y,{loading:b,errors:w}]=r(),[M,{data:j,loading:k}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,E=new URLSearchParams(c.location.search),x=E.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:E.toString()&&"?"+E.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:b,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:k,isVerified:!!(null===(p=null==j?void 0:j.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:x?{nextPage:x}:null,redirectPath:e.redirectPath},t=await y(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
1
+ import{r as e,h as i}from"./p-c7c11325.js";import"./p-57970440.js";import{k as a,m as t,f as s,n}from"./p-63e29387.js";import{l as r,n as o,J as l,j as c,u as d,i as v}from"./p-8e2bead4.js";import{c as u}from"./p-c1086930.js";import"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{P as m}from"./p-6ef73224.js";const f=class{constructor(i){e(this,i),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[y,{loading:b,errors:w}]=r(),[M,{data:j,loading:k}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,E=new URLSearchParams(c.location.search),x=E.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:E.toString()&&"?"+E.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:b,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:k,isVerified:!!(null===(p=null==j?void 0:j.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:x?{nextPage:x}:null,redirectPath:e.redirectPath},t=await y(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function s(e){try{c(i.next(e))}catch(e){a(e)}}function o(e){try{c(i["throw"](e))}catch(e){a(e)}}function c(e){e.done?n(e.value):r(e.value).then(s,o)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return c([e,t])}}function c(s){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-773ce89c.system.js","./p-4f5329a2.system.js","./p-d8c5b80a.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-67ad2252.system.js","./p-1394d253.system.js"],(function(e){"use strict";var t,n,i,r,a,s,o,c,u,l,f,v,d,g;return{setters:[function(e){t=e.r;n=e.h},function(){},function(e){i=e.k;r=e.m;a=e.f;s=e.n},function(e){o=e.l;c=e.n;u=e.J;l=e.j;f=e.u;v=e.i},function(e){d=e.c},function(){},function(){},function(){},function(e){g=e.P}],execute:function(){function h(e){var t=this;var n,s,v,d,g,h,m,y,p;var w=o(),b=w[0],M=w[1],_=M.loading,k=M.data,E=M.errors;var x=c(),S=x[0],I=x[1],P=I.data,V=I.loading;var j=u();var L=(n=j===null||j===void 0?void 0:j.managedIdentity)===null||n===void 0?void 0:n.email;var R=new URLSearchParams(l.location.search);var T=R.get("nextPage");var B=i(false),H=B[0],C=B[1];var q=i(""),A=q[0],D=q[1];var G=i(10),J=G[0],U=G[1];var Y=r(undefined);var z=r(undefined);var F=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,i,r,a;return __generator(this,(function(s){switch(s.label){case 0:if(!L)return[2];D("");C(false);n=T?{nextPage:T}:null;i=e.redirectPath;r={email:L,urlParams:n,redirectPath:i};return[4,b(r)];case 1:a=s.sent();if(a instanceof Error){if(a.message)D(e.networkErrorMessage);return[2]}if((t=a.requestManagedIdentityVerificationEmail)===null||t===void 0?void 0:t.success)C(true);return[2]}}))}))};function K(){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){switch(i.label){case 0:return[4,S()];case 1:n=i.sent();if((t=n===null||n===void 0?void 0:n.managedIdentitySession)===null||t===void 0?void 0:t.emailVerified){clearInterval(Y.current);return[2,l.push({pathname:e.redirectPath,search:R.toString()&&"?"+R.toString()})]}Q(10);return[2]}}))}))}var N=function(e){if(e===void 0){e=1e4}return setInterval(K,e)};var O=function(e){return setInterval((function(){return U(e)}),1e3)};function Q(e){clearInterval(z.current);clearInterval(Y.current);if(document.visibilityState==="hidden")return;if(e)U(e);var t=J||10;z.current=O(e-1||t-1);Y.current=N(e*1e3||t*1e3)}var W=f((function(){return Q()}),[J]);a((function(){if(!Y.current){K();Y.current=N()}return function(){clearInterval(Y.current)}}),[]);a((function(){if(J>0){clearInterval(z.current);z.current=O(J-1)}document.addEventListener("visibilitychange",W);return function(){clearInterval(z.current);document.removeEventListener("visibilitychange",W)}}),[J]);return{states:{loading:_,error:((g=(d=(v=(s=E===null||E===void 0?void 0:E.response)===null||s===void 0?void 0:s.errors)===null||v===void 0?void 0:v[0])===null||d===void 0?void 0:d.extensions)===null||g===void 0?void 0:g.message)||((y=(m=(h=E===null||E===void 0?void 0:E.response)===null||h===void 0?void 0:h.errors)===null||m===void 0?void 0:m[0])===null||y===void 0?void 0:y.message)||A,success:H,loadingVerification:V,isVerified:!!((p=P===null||P===void 0?void 0:P.managedIdentitySession)===null||p===void 0?void 0:p.emailVerified),countdown:J},callbacks:{submit:F},content:{email:L,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}var m=e("sqm_portal_email_verification",function(){function e(e){t(this,e);this.ignored=true;this.redirectPath="/verifyEmail";this.emailVerificationHeader="Verify your email";this.resendEmailButtonText="Re-send Email";this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.";this.verificationStatusMessage="Checking verification status in {countdown}";this.verificationLoadingMessage="Checking verification status";this.verificationResentMessage="Your verification email has been resent successfully";this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=v()?y(this):h(this),t=e.states,i=e.callbacks,r=e.content;return n(g,{states:t,callbacks:i,content:r})};return e}());function y(e){var t=this;return d({states:{error:"",loading:false,success:false,countdown:10},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}},content:{email:"test@example.com",verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function s(e){try{u(i.next(e))}catch(e){a(e)}}function o(e){try{u(i["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):r(e.value).then(s,o)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-f1f20fdf.system.js","./p-4f5329a2.system.js","./p-d8c5b80a.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-67ad2252.system.js","./p-bb12b845.system.js"],(function(e){"use strict";var t,n,i,r,a,s,o,u,c,l,f,v,d,g;return{setters:[function(e){t=e.r;n=e.h},function(){},function(e){i=e.k;r=e.m;a=e.f;s=e.n},function(e){o=e.l;u=e.n;c=e.J;l=e.j;f=e.u;v=e.i},function(e){d=e.c},function(){},function(){},function(){},function(e){g=e.P}],execute:function(){function h(e){var t=this;var n,s,v,d,g,h,m,y,p;var b=o(),w=b[0],M=b[1],_=M.loading,k=M.data,E=M.errors;var x=u(),S=x[0],I=x[1],P=I.data,V=I.loading;var j=c();var L=(n=j===null||j===void 0?void 0:j.managedIdentity)===null||n===void 0?void 0:n.email;var R=new URLSearchParams(l.location.search);var T=R.get("nextPage");var B=i(false),H=B[0],C=B[1];var q=i(""),A=q[0],D=q[1];var G=i(10),J=G[0],U=G[1];var Y=r(undefined);var z=r(undefined);var F=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,i,r,a;return __generator(this,(function(s){switch(s.label){case 0:if(!L)return[2];D("");C(false);n=T?{nextPage:T}:null;i=e.redirectPath;r={email:L,urlParams:n,redirectPath:i};return[4,w(r)];case 1:a=s.sent();if(a instanceof Error){if(a.message)D(e.networkErrorMessage);return[2]}if((t=a.requestManagedIdentityVerificationEmail)===null||t===void 0?void 0:t.success)C(true);return[2]}}))}))};function K(){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){switch(i.label){case 0:return[4,S()];case 1:n=i.sent();if((t=n===null||n===void 0?void 0:n.managedIdentitySession)===null||t===void 0?void 0:t.emailVerified){clearInterval(Y.current);return[2,l.push({pathname:e.redirectPath,search:R.toString()&&"?"+R.toString()})]}Q(10);return[2]}}))}))}var N=function(e){if(e===void 0){e=1e4}return setInterval(K,e)};var O=function(e){return setInterval((function(){return U(e)}),1e3)};function Q(e){clearInterval(z.current);clearInterval(Y.current);if(document.visibilityState==="hidden")return;if(e)U(e);var t=J||10;z.current=O(e-1||t-1);Y.current=N(e*1e3||t*1e3)}var W=f((function(){return Q()}),[J]);a((function(){if(!Y.current){K();Y.current=N()}return function(){clearInterval(Y.current)}}),[]);a((function(){if(J>0){clearInterval(z.current);z.current=O(J-1)}document.addEventListener("visibilitychange",W);return function(){clearInterval(z.current);document.removeEventListener("visibilitychange",W)}}),[J]);return{states:{loading:_,error:((g=(d=(v=(s=E===null||E===void 0?void 0:E.response)===null||s===void 0?void 0:s.errors)===null||v===void 0?void 0:v[0])===null||d===void 0?void 0:d.extensions)===null||g===void 0?void 0:g.message)||((y=(m=(h=E===null||E===void 0?void 0:E.response)===null||h===void 0?void 0:h.errors)===null||m===void 0?void 0:m[0])===null||y===void 0?void 0:y.message)||A,success:H,loadingVerification:V,isVerified:!!((p=P===null||P===void 0?void 0:P.managedIdentitySession)===null||p===void 0?void 0:p.emailVerified),countdown:J},callbacks:{submit:F},content:{email:L,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}var m=e("sqm_portal_email_verification",function(){function e(e){t(this,e);this.ignored=true;this.redirectPath="/verifyEmail";this.emailVerificationHeader="Verify your email";this.resendEmailButtonText="Re-send Email";this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.";this.verificationStatusMessage="Checking verification status in {countdown}";this.verificationLoadingMessage="Checking verification status";this.verificationResentMessage="Your verification email has been resent successfully";this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=v()?y(this):h(this),t=e.states,i=e.callbacks,r=e.content;return n(g,{states:t,callbacks:i,content:r})};return e}());function y(e){var t=this;return d({states:{error:"",loading:false,success:false,countdown:10},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}},content:{email:"test@example.com",verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1,4 +1,4 @@
1
- import{r as e,h as t}from"./p-c7c11325.js";import"./p-d2e2e10f.js";import{k as r,f as i,n as o}from"./p-63e29387.js";import{d as s,J as a,w as l,$ as n,i as u}from"./p-8e2bead4.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-6951663b.js";import"./p-cef45012.js";import"./p-204861a6.js";import{P as c}from"./p-1d4a327c.js";import{i as v}from"./p-3cb249c3.js";const f=s.gql`
1
+ import{r as e,h as t}from"./p-c7c11325.js";import"./p-57970440.js";import{k as r,f as i,n as o}from"./p-63e29387.js";import{d as s,J as a,w as l,$ as n,i as u}from"./p-8e2bead4.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-6951663b.js";import"./p-cef45012.js";import"./p-204861a6.js";import{P as c}from"./p-750e7b01.js";import{i as v}from"./p-3cb249c3.js";const f=s.gql`
2
2
  query {
3
3
  viewer {
4
4
  ... on User {