@saasquatch/mint-components 2.2.1-3 → 2.2.1
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.
- package/dist/cjs/{ShadowViewAddon-a4dff581.js → ShadowViewAddon-05c6968d.js} +3 -3
- package/dist/cjs/{data-d7327094.js → data-b1376c39.js} +1 -1
- package/dist/cjs/{global-53a23a69.js → global-258c36b8.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +3 -3
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +4 -4
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-lead-checkbox-field-view-93bc0680.js → sqm-lead-checkbox-field-view-b3a85029.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-input-field-view-f4c7c5cb.js → sqm-lead-input-field-view-88de1b78.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-96f812e7.js → sqm-portal-email-verification-view-6cc7ef05.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-6d6d75cf.js → sqm-portal-profile-view-a4ba4657.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-user-info-form-view-80afa6dd.js → sqm-user-info-form-view-007d1bd1.js} +2 -2
- package/dist/cjs/{useLeadFormState-c69aa30b.js → useLeadFormState-bf49984b.js} +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +1 -1
- package/dist/collection/global/styles.js +2 -2
- package/dist/collection/global/styles.ts +2 -2
- package/dist/esm/{ShadowViewAddon-3fa69ff8.js → ShadowViewAddon-88482cac.js} +3 -3
- package/dist/esm/{data-3a45b3b5.js → data-9cafbb63.js} +1 -1
- package/dist/esm/{global-df99a576.js → global-1cd2942a.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +3 -3
- package/dist/esm/sqm-big-stat_46.entry.js +4 -4
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-lead-checkbox-field-view-7a34f60f.js → sqm-lead-checkbox-field-view-2a9fe706.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
- package/dist/esm/{sqm-lead-input-field-view-5f69d2d6.js → sqm-lead-input-field-view-6ce9448e.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-192fc8c1.js → sqm-portal-email-verification-view-539f600b.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-95eb38f9.js → sqm-portal-profile-view-9aa36c9d.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +8 -8
- package/dist/esm/{sqm-user-info-form-view-f4358521.js → sqm-user-info-form-view-ef43e7e3.js} +2 -2
- package/dist/esm/{useLeadFormState-d4302d72.js → useLeadFormState-2f0a2e39.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-3fa69ff8.js → ShadowViewAddon-88482cac.js} +1 -1
- package/dist/esm-es5/{data-3a45b3b5.js → data-9cafbb63.js} +1 -1
- package/dist/esm-es5/{global-df99a576.js → global-1cd2942a.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-7a34f60f.js → sqm-lead-checkbox-field-view-2a9fe706.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-5f69d2d6.js → sqm-lead-input-field-view-6ce9448e.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-192fc8c1.js → sqm-portal-email-verification-view-539f600b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-95eb38f9.js → sqm-portal-profile-view-9aa36c9d.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{sqm-user-info-form-view-f4358521.js → sqm-user-info-form-view-ef43e7e3.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-d4302d72.js → useLeadFormState-2f0a2e39.js} +1 -1
- package/dist/mint-components/global/styles.ts +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-6cc5f804.system.entry.js → p-03ff427f.system.entry.js} +1 -1
- package/dist/mint-components/{p-8580da12.system.js → p-086f3172.system.js} +1 -1
- package/dist/mint-components/{p-52739cd8.system.entry.js → p-0e124c2f.system.entry.js} +1 -1
- package/dist/mint-components/{p-56d708f7.entry.js → p-139d30a3.entry.js} +1 -1
- package/dist/mint-components/{p-48c5e3a6.system.entry.js → p-16d9c8bb.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f1c925b.system.js → p-1801d9ea.system.js} +1 -1
- package/dist/mint-components/{p-4bc7d614.entry.js → p-180710fb.entry.js} +1 -1
- package/dist/mint-components/{p-2f3bdd90.js → p-1d51f20f.js} +1 -1
- package/dist/mint-components/{p-ac23fc98.system.js → p-1f8c5fdd.system.js} +1 -1
- package/dist/mint-components/{p-c46034bd.system.entry.js → p-29323f72.system.entry.js} +1 -1
- package/dist/mint-components/{p-63b4aa68.entry.js → p-394e380b.entry.js} +2 -2
- package/dist/mint-components/{p-eba85578.js → p-3feafe9d.js} +1 -1
- package/dist/mint-components/{p-7684f6f5.system.entry.js → p-42047942.system.entry.js} +1 -1
- package/dist/mint-components/{p-df70d659.entry.js → p-440f2677.entry.js} +1 -1
- package/dist/mint-components/{p-f9599a39.entry.js → p-48c28af2.entry.js} +1 -1
- package/dist/mint-components/{p-a60fa112.system.entry.js → p-4ef7967d.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4db0fd5.system.js → p-4f9a1bfa.system.js} +1 -1
- package/dist/mint-components/{p-2e8f31dc.system.js → p-52e48a9c.system.js} +1 -1
- package/dist/mint-components/{p-2ba7206b.system.entry.js → p-5975a43b.system.entry.js} +1 -1
- package/dist/mint-components/{p-789cac60.system.js → p-5c8e6ea9.system.js} +1 -1
- package/dist/mint-components/{p-132ab254.system.js → p-5cc18b43.system.js} +1 -1
- package/dist/mint-components/{p-db6d8076.entry.js → p-5ddb0e10.entry.js} +1 -1
- package/dist/mint-components/{p-1336f55e.js → p-5ef8b3ce.js} +1 -1
- package/dist/mint-components/{p-4f10e576.js → p-6c599a57.js} +1 -1
- package/dist/mint-components/p-7462d4b5.entry.js +1 -0
- package/dist/mint-components/{p-19289206.system.entry.js → p-795ee437.system.entry.js} +1 -1
- package/dist/mint-components/{p-d2299dfa.system.js → p-897744f9.system.js} +1 -1
- package/dist/mint-components/p-8afc0199.entry.js +25 -0
- package/dist/mint-components/{p-72590ac2.js → p-8d4789ec.js} +3 -3
- package/dist/mint-components/{p-865f87fc.entry.js → p-91a90aac.entry.js} +2 -2
- package/dist/mint-components/{p-bea65888.system.entry.js → p-a203e72c.system.entry.js} +1 -1
- package/dist/mint-components/{p-774ec9f3.js → p-a9dbdd52.js} +1 -1
- package/dist/mint-components/{p-c7a8e382.system.entry.js → p-adeb2f5e.system.entry.js} +1 -1
- package/dist/mint-components/{p-e3baab50.js → p-b1d468be.js} +1 -1
- package/dist/mint-components/{p-d1215d25.system.entry.js → p-bf01b8df.system.entry.js} +1 -1
- package/dist/mint-components/{p-37f38c88.entry.js → p-c680e524.entry.js} +1 -1
- package/dist/mint-components/{p-1ea1dbed.js → p-c6870be5.js} +1 -1
- package/dist/mint-components/{p-85331065.entry.js → p-d541460d.entry.js} +1 -1
- package/dist/mint-components/{p-67032ccb.entry.js → p-dc173da2.entry.js} +1 -1
- package/dist/mint-components/{p-883fc750.entry.js → p-ddc2a293.entry.js} +2 -2
- package/dist/mint-components/{p-609460fe.system.js → p-e0c74a3d.system.js} +1 -1
- package/dist/mint-components/{p-26ab8ec9.system.js → p-e664b246.system.js} +1 -1
- package/dist/mint-components/{p-f2793763.js → p-e745b1e9.js} +1 -1
- package/dist/mint-components/{p-c661a0bb.system.entry.js → p-e81e3fbd.system.entry.js} +1 -1
- package/dist/mint-components/{p-3ff3b16d.system.entry.js → p-eb8f2ec6.system.entry.js} +1 -1
- package/dist/mint-components/{p-19fe8838.entry.js → p-ec9ab37b.entry.js} +1 -1
- package/dist/mint-components/{p-d143669e.system.entry.js → p-fba8035a.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-104f9399.entry.js +0 -1
- package/dist/mint-components/p-bc7a8051.entry.js +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};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,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):i(e.value).then(s,o)}l((r=r.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:[]},r,i,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 l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=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++;i=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];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-641f968d.system.js","./p-
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};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,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):i(e.value).then(s,o)}l((r=r.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:[]},r,i,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 l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=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++;i=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];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-641f968d.system.js","./p-086f3172.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-7562cd98.system.js","./p-57dd28bd.system.js","./p-8583ce0c.system.js"],(function(e){"use strict";var t,n,r,i,a,s,o,l,c,u,d,f,p,m,v,h,y,g,b,x,_;return{setters:[function(e){t=e.h;n=e.r},function(e){r=e.i},function(e){i=e.l;a=e.k;s=e.f;o=e.n},function(e){l=e.d;c=e.q;u=e.F;d=e.i;f=e.o},function(e){p=e.c},function(e){m=e.g},function(e){v=e.c},function(e){h=e.E},function(e){y=e.T},function(e){g=e.V;b=e.S;x=e.a},function(e){_=e.u}],execute:function(){var C={Wrapper:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)",maxWidth:"550px"},HeaderContainer:{display:"flex",flexDirection:"column"},InputsContainer:{display:"flex",gap:"var(--sl-spacing-medium)",position:"relative",flexDirection:"column"},CodeInputContainer:{display:"flex",gap:"var(--sl-spacing-medium)"},CodeInput:{maxWidth:"40px","&::part(base)":{borderRadius:"4px !important"},"&::part(input)":{margin:"0",padding:"0 var(--sl-input-spacing-small)",fontSize:"var(--sl-font-size-large)"}},CodeInputError:__assign(__assign({},h),{maxWidth:"40px","&::part(base)":{borderRadius:"4px !important"},"&::part(input)":{margin:"0",padding:"0 var(--sl-input-spacing-small)",fontSize:"var(--sl-font-size-large)"}}),ErrorText:{color:"var(--sqm-danger-color-text)",fontSize:"var(--sl-font-size-small)",margin:"0"},ContinueButton:{width:"100%",maxWidth:"100px"},FooterContainer:{display:"flex",flexDirection:"column"},SkeletonOne:{width:"50%",height:"16px"},SkeletonTwo:{width:"30%",height:"34px"},SkeletonThree:{width:"15%",height:"24px"}};var w="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n\n\n";var E=v(C);var T=E.toString();function k(e){var n=e.states,i=e.refs,a=e.callbacks,s=e.text;var o=r.formatMessage({id:"resendCodeText",defaultMessage:s.resendCodeText},{resendCodeLink:t("a",{href:"",style:{textDecoration:"underline",color:"inherit",cursor:"pointer"},onClick:function(e){e.preventDefault();a.resendEmail()}},s.resendCodeLabel)});var l=r.formatMessage({id:"codeResentSuccessfully",defaultMessage:s.codeResentSuccessfullyText},{email:n.email});var c=n.verifyFailed?E.classes.CodeInputError:E.classes.CodeInput;return t("div",{part:"sqm-base"},t("style",{type:"text/css"},w,T),t("div",{class:E.classes.Wrapper},t("div",{class:E.classes.HeaderContainer},t(y,{type:"p"},r.formatMessage({id:"emailHeaderText",defaultMessage:n.verifyFailed?s.reverifyCodeHeaderText:s.verifyCodeHeaderText},{email:n.email}))),n.emailResent&&t("sqm-form-message",{type:"success",exportparts:"successalert-icon"},t("b",null,l)),t("div",{class:E.classes.InputsContainer},t("div",{ref:i.codeWrapperRef,class:E.classes.CodeInputContainer},t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"}),t("sl-input",{class:c,name:"code"})),n.verifyFailed&&t("p",{class:E.classes.ErrorText},s.invalidCodeText),t("sl-button",{class:E.classes.ContinueButton,onClick:a.submitCode,disabled:n.loading||n.initialiseLoading,loading:n.loading||n.initialiseLoading,exportparts:"base: primarybutton-base",type:"primary"},s.verifyText)),t("div",{class:E.classes.FooterContainer},t(y,{type:"p"},o))))}var S=l.gql(__makeTemplateObject(["\n mutation submitImpactPublisherEmail2FACode(\n $user: UserIdInput!\n $code: String!\n ) {\n submitImpactPublisherEmail2FACode(user: $user, code: $code) {\n verifiedEmail\n accessKey\n }\n }\n"],["\n mutation submitImpactPublisherEmail2FACode(\n $user: UserIdInput!\n $code: String!\n ) {\n submitImpactPublisherEmail2FACode(user: $user, code: $code) {\n verifiedEmail\n accessKey\n }\n }\n"]));function j(e){var t=this;var n=i();var r=c(b),o=r[0],l=r[1];var d=u(g);var f=a(false),p=f[0],m=f[1];var v=a(false),h=v[0],y=v[1];var x=a(null),C=x[0],w=x[1];var E=a(false),T=E[0],k=E[1];var S=a(false),j=S[0],I=S[1];var P=_(),R=P.initialized,F=P.verificationEmail,L=P.send,q=L[0],A=L[1],O=A.loading,M=A.errors,W=P.verify,D=W[0],$=W[1],z=$.loading,H=$.errors;s((function(){if(!C)return;var e=C.querySelectorAll("sl-input");var t=Array.from(e).map((function(e){return e.shadowRoot.querySelector('input[name="code"]')}));t.forEach((function(e,n){e.addEventListener("focus",(function(e){e.target.select()}));e.addEventListener("keydown",(function(e){if(e.key==="Backspace"&&e.target.value===""){t[Math.max(0,n-1)].focus()}}));e.addEventListener("input",(function(e){var r=e.data;if(!r)return;if(n===t.length-1){e.target.value=r.slice(0,1);return}if(r.length>1){var i=r.slice(1);e.target.value=r.slice(0,1);t[n+1].dispatchEvent(new InputEvent("input",{inputType:"insertFromPaste",data:i}))}t[n+1].focus()}))}))}),[C]);var B=function(){l(false);k(false)};var K=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!R)return[2];return[4,q()];case 1:e=t.sent();if(!e){I(true);return[2]}if(p)y(true);m(true);return[2]}}))}))};var V=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,r,i;return __generator(this,(function(a){switch(a.label){case 0:t=C.querySelectorAll("sl-input");n=Array.from(t).map((function(e){return e.shadowRoot.querySelector('input[name="code"]')}));if(n.find((function(e){return!e.value}))){k(true);return[2]}r="";n.forEach((function(e){r=""+r+e.value}));if(!R)return[2];k(false);return[4,D(r)];case 1:i=a.sent();if(i===null||i===void 0?void 0:i.success){e.onVerification(i.accessKey);B()}else{k(true)}return[2]}}))}))};s((function(){if(!R)return;if(!d)K();else m(true)}),[R]);return{refs:{codeWrapperRef:w},states:{email:F,emailResent:h,resendError:M||H,initialiseLoading:!R,loading:O||z,verifyFailed:!!T},callbacks:{resendEmail:K,submitCode:V},text:e.getTextProps()}}var I=e("sqm_code_verification",function(){function e(e){n(this,e);this.verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.resendCodeText="Didn't receive your code? {resendCodeLink}";this.resendCodeLabel="Resend code";this.codeResentSuccessfullyText="Another code has been sent to {email}";this.invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.";this.verifyText="Verify";this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getTextProps=function(){return m(this)};e.prototype.render=function(){var e=d()?P(this):j(this);return t(k,Object.assign({},e))};return e}());function P(e){var t=this;var n=a(false),r=n[0],i=n[1];var s=f(x);return p({states:{initialiseLoading:false,loading:false,email:"test@example.com",emailResent:r,verifyFailed:false},refs:{codeWrapperRef:function(){}},callbacks:{resendEmail:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2,i(true)]}))}))},submitCode:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2,s(true)]}))}))}},text:e.getTextProps()},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++){e=arguments[s];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-641f968d.system.js","./p-
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++){e=arguments[s];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-641f968d.system.js","./p-086f3172.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-e0c74a3d.system.js","./p-e664b246.system.js"],(function(t){"use strict";var e,s,n,i,r,o,a,c,u,h,f;return{setters:[function(t){e=t.r;s=t.h},function(){},function(t){n=t.i;i=t.n},function(t){r=t.i},function(t){o=t.c},function(t){a=t.a;c=t.g},function(){},function(t){u=t.L;h=t.R},function(t){f=t.L}],execute:function(){function l(){var t=n(u);return{states:{leadFormState:t}}}var p=t("sqm_lead_checkbox_field",function(){function t(t){e(this,t);this.ignored=true;this.checkboxLabel="By signing up you agree to the {labelLink}";this.checkboxLabelLink="https://example.com";this.checkboxLabelLinkText="Terms and Conditions";this.errorMessage="Must be checked";this.checkboxOptional=false;i(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=a([{attribute:"checkbox-name",value:this.checkboxName}]);if(!r()&&t){return s(h,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"})}var e=__assign({},c(this));var n=(r()?m(this):l()).states;return s(f,{states:n,content:e})};return t}());function m(t){return o({states:{leadFormState:{}}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));
|