@saasquatch/mint-components 1.10.3 → 1.10.4

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.
@@ -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 o(e){try{u(i.next(e))}catch(e){a(e)}}function s(e){try{u(i["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):r(e.value).then(o,s)}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,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];r=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-b370fca8.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-4f775e84.system.js","./p-3ed71bef.system.js"],(function(e){"use strict";var t,n,i,r,a,o,s,u,l,c,f,d,v,y;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.k;r=e.f;a=e.n},function(e){o=e.Q;s=e.j;u=e.$;l=e.b;c=e.i},function(e){f=e.c},function(){},function(){},function(e){d=e.s;v=e.g},function(){},function(e){y=e.P}],execute:function(){var h=null;function g(e){var t=this;var n=e.nextPage,a=e.failedPage,c=e.verifySuccessText,f=e.verifyEmailText,v=e.verifyInvalidText,y=e.networkErrorMessage,g=e.continueText;var p,m,x,b,T,w,_,k,P,E;var S=i(false),j=S[0],I=S[1];var C=i(false),M=C[0],N=C[1];var V=o();var q=s(),A=q[0],D=q[1],G=D.loading,L=D.data,Q=D.errors;var R=new URLSearchParams(u.location.search);var U=R.get("oobCode");var Y=R.get("email");var $=R.get("nextPage");var z=L===undefined&&Q===undefined&&!!U;var B=!!(((p=V===null||V===void 0?void 0:V.managedIdentity)===null||p===void 0?void 0:p.emailVerified)||((m=L===null||L===void 0?void 0:L.verifyManagedIdentityEmail)===null||m===void 0?void 0:m.success)||M);var F=((x=V===null||V===void 0?void 0:V.managedIdentity)===null||x===void 0?void 0:x.email)===Y;var H=function(){return u.push({pathname:a,search:R.toString()&&"?"+R.toString()})};var J=function(){R.delete("nextPage");var e=d($||n);u.push(e.href)};var K=function(){setTimeout((function(){l(undefined);J()}),3e3)};var O=function(){setTimeout(J,3e3)};r((function(){var e=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!h)h=A({oobCode:U});return[4,h];case 1:e=t.sent();if(!(e instanceof Error)&&e.verifyManagedIdentityEmail.success){N(true)}I(true);return[2]}}))}))};e()}),[]);r((function(){if(!j)return;if(B&&F)O();else K()}),[j,B]);return{states:{loading:G||!j,disableContinue:z,error:((_=(w=(T=(b=Q===null||Q===void 0?void 0:Q.response)===null||b===void 0?void 0:b.errors)===null||T===void 0?void 0:T[0])===null||w===void 0?void 0:w.extensions)===null||_===void 0?void 0:_.message)||((E=(P=(k=Q===null||Q===void 0?void 0:Q.response)===null||k===void 0?void 0:k.errors)===null||P===void 0?void 0:P[0])===null||E===void 0?void 0:E.message)||((Q===null||Q===void 0?void 0:Q.message)||!F)&&y,success:j&&(B||F),verified:B},data:{oobCode:U},callbacks:{failed:H,gotoNextPage:J},content:{verifySuccessText:c,verifyEmailText:f,verifyInvalidText:v,continueText:g}}}var p=e("sqm_portal_verify_email",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";this.verifyEmailText="Verify your email";this.verifySuccessText="Your email has been verified and you are being redirected. If you are not redirected, please click Continue.";this.verifyInvalidText="The email verification code is invalid or has expired, please try again.";this.continueText="Continue";this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=c()?m(v(this)):g(v(this)),t=e.states,i=e.data,r=e.callbacks,a=e.content;return n(y,{states:t,data:i,callbacks:r,content:a})};return e}());function m(e){return f({states:{error:"",loading:false,verified:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}},content:{verifySuccessText:e.verifySuccessText,verifyEmailText:e.verifyEmailText,verifyInvalidText:e.verifyInvalidText,continueText:e.continueText}},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 o(e){try{u(i.next(e))}catch(e){a(e)}}function s(e){try{u(i["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):r(e.value).then(o,s)}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,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];r=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-2a414b2e.system.js","./p-b370fca8.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-4f775e84.system.js","./p-3ed71bef.system.js"],(function(e){"use strict";var t,n,i,r,a,o,s,u,l,c,f,d,v,y;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.k;r=e.f;a=e.n},function(e){o=e.Q;s=e.j;u=e.$;l=e.b;c=e.i},function(e){f=e.c},function(){},function(){},function(e){d=e.s;v=e.g},function(){},function(e){y=e.P}],execute:function(){var h=null;function g(e){var t=this;var n=e.nextPage,a=e.failedPage,c=e.verifySuccessText,f=e.verifyEmailText,v=e.verifyInvalidText,y=e.networkErrorMessage,g=e.continueText;var p,m,x,b,T,w,_,k,P,E;var S=i(false),j=S[0],I=S[1];var C=i(false),M=C[0],N=C[1];var V=o();var q=s(),A=q[0],D=q[1],G=D.loading,L=D.data,Q=D.errors;var R=new URLSearchParams(u.location.search);var U=R.get("oobCode");var Y=R.get("email");var $=R.get("nextPage");var z=L===undefined&&Q===undefined&&!!U;var B=!!(((p=V===null||V===void 0?void 0:V.managedIdentity)===null||p===void 0?void 0:p.emailVerified)||((m=L===null||L===void 0?void 0:L.verifyManagedIdentityEmail)===null||m===void 0?void 0:m.success)||M);var F=((x=V===null||V===void 0?void 0:V.managedIdentity)===null||x===void 0?void 0:x.email)===Y;var H=function(){return u.push({pathname:a,search:R.toString()&&"?"+R.toString()})};var J=function(){R.delete("nextPage");var e=d($||n);u.push(e.href)};var K=function(){setTimeout((function(){l(undefined);J()}),3e3)};var O=function(){setTimeout(J,3e3)};r((function(){var e=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!h)h=A({oobCode:U});return[4,h];case 1:e=t.sent();if(!(e instanceof Error)&&e.verifyManagedIdentityEmail.success){N(true)}I(true);return[2]}}))}))};e()}),[]);r((function(){if(!j)return;if(B&&F)O();else K()}),[j,B]);return{states:{loading:G||!j,disableContinue:z,error:((_=(w=(T=(b=Q===null||Q===void 0?void 0:Q.response)===null||b===void 0?void 0:b.errors)===null||T===void 0?void 0:T[0])===null||w===void 0?void 0:w.extensions)===null||_===void 0?void 0:_.message)||((E=(P=(k=Q===null||Q===void 0?void 0:Q.response)===null||k===void 0?void 0:k.errors)===null||P===void 0?void 0:P[0])===null||E===void 0?void 0:E.message)||((Q===null||Q===void 0?void 0:Q.message)||!F)&&y,success:j&&(B||F)},data:{oobCode:U},callbacks:{failed:H,gotoNextPage:J},content:{verifySuccessText:c,verifyEmailText:f,verifyInvalidText:v,continueText:g}}}var p=e("sqm_portal_verify_email",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.failedPage="/";this.verifyEmailText="Verify your email";this.verifySuccessText="Your email has been verified and you are being redirected. If you are not redirected, please click Continue.";this.verifyInvalidText="The email verification code is invalid or has expired, please try again.";this.continueText="Continue";this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=c()?m(v(this)):g(v(this)),t=e.states,i=e.data,r=e.callbacks,a=e.content;return n(y,{states:t,data:i,callbacks:r,content:a})};return e}());function m(e){return f({states:{error:"",loading:false,success:true},data:{oobCode:"code"},callbacks:{failed:function(){console.log("failed")},gotoNextPage:function(){}},content:{verifySuccessText:e.verifySuccessText,verifyEmailText:e.verifyEmailText,verifyInvalidText:e.verifyInvalidText,continueText:e.continueText}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));