@saasquatch/mint-components 1.6.3-1 → 1.6.3-2

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 (25) hide show
  1. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -1
  2. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +7 -1
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
  4. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +4 -1
  5. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +7 -1
  6. package/dist/esm/sqm-portal-email-verification.entry.js +4 -1
  7. package/dist/esm/sqm-portal-verify-email.entry.js +7 -1
  8. package/dist/esm/sqm-stencilbook.entry.js +2 -2
  9. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  10. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  11. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  12. package/dist/mint-components/mint-components.esm.js +1 -1
  13. package/dist/mint-components/{p-7333c706.system.entry.js → p-01848cdc.system.entry.js} +1 -1
  14. package/dist/mint-components/p-103274ca.system.entry.js +1 -0
  15. package/dist/mint-components/{p-a05940ed.entry.js → p-20c7f039.entry.js} +1 -1
  16. package/dist/mint-components/p-2e308c1b.system.js +1 -1
  17. package/dist/mint-components/p-329f2ebe.entry.js +9 -0
  18. package/dist/mint-components/p-aa5c7bc5.entry.js +1 -0
  19. package/dist/mint-components/p-bcd5cceb.system.entry.js +1 -0
  20. package/docs/docs.docx +0 -0
  21. package/package.json +1 -1
  22. package/dist/mint-components/p-10d73c6f.entry.js +0 -1
  23. package/dist/mint-components/p-4a93ab6a.entry.js +0 -9
  24. package/dist/mint-components/p-bea71a98.system.entry.js +0 -1
  25. package/dist/mint-components/p-c183a463.system.entry.js +0 -1
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-d4ee07e6.system.js","./p-99397ef5.system.js","./p-7682724f.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-3ea8021b.system.js","./p-8f99a2dd.system.js"],(function(e){"use strict";var t,n,r,i,o,a,s,u,l,c,f;return{setters:[function(e){t=e.r;n=e.h},function(e){r=e.f;i=e.m},function(){},function(e){o=e.N;a=e.X;s=e.f;u=e.i},function(e){l=e.c},function(){},function(){},function(e){c=e.s},function(){},function(e){f=e.P}],execute:function(){function d(e){var t=this;var n=e.nextPage,i=e.failedPage;var u,l,f,d,v,h,p,y;var g=o();var m=a(),b=m[0],w=m[1],_=w.loading,x=w.data,P=w.errors;var j=new URLSearchParams(s.location.search);var k=j.get("oobCode");var S=j.get("nextPage");var C=x===undefined&&P===undefined&&!!k;var E=!!(((u=g===null||g===void 0?void 0:g.managedIdentity)===null||u===void 0?void 0:u.emailVerified)||(x===null||x===void 0?void 0:x.verifyManagedIdentityEmail.success));var I=function(){return s.push({pathname:i,search:j.toString()&&"?"+j.toString()})};var N=function(){j.delete("nextPage");var e=c(S||n);s.push(e.href)};var M=function(){return __awaiter(t,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:if(!k)return[3,2];return[4,b({oobCode:k})];case 1:t=n.sent();if((t instanceof Error||!t.verifyManagedIdentityEmail.success)&&!((e=g===null||g===void 0?void 0:g.managedIdentity)===null||e===void 0?void 0:e.emailVerified)){return[2]}setTimeout((function(){N()}),3e3);n.label=2;case 2:return[2]}}))}))};r((function(){M()}),[]);return{states:{loading:_||C,error:((v=(d=(f=(l=P===null||P===void 0?void 0:P.response)===null||l===void 0?void 0:l.errors)===null||f===void 0?void 0:f[0])===null||d===void 0?void 0:d.extensions)===null||v===void 0?void 0:v.message)||((y=(p=(h=P===null||P===void 0?void 0:P.response)===null||h===void 0?void 0:h.errors)===null||p===void 0?void 0:p[0])===null||y===void 0?void 0:y.message)||(P===null||P===void 0?void 0:P.message)&&"Network request failed.",verified:E},data:{oobCode:k},callbacks:{failed:I,gotoNextPage:N}}}var v=e("sqm_portal_verify_email",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=u()?h(this):d(this),t=e.states,r=e.data,i=e.callbacks;return n(f,{states:t,data:r,callbacks:i})};return e}());function h(e){return l({states:{error:"",loading:false,verified:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));