var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var a,e=1,t=arguments.length;e<t;e++){a=arguments[e];for(var s in a)if(Object.prototype.hasOwnProperty.call(a,s))r[s]=a[s]}return r};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js"],(function(r){"use strict";var a,e,t,s,n,i,o;return{setters:[function(r){a=r.h},function(r){e=r.c},function(r){t=r.A;s=r.g;n=r.a;i=r.b;o=r.E}],execute:function(){r("E",c);var l={Wrapper:__assign(__assign({},t),s({direction:"column",size:"var(--sl-spacing-small)"})),Column:n,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:i,ErrorStyle:o};var d="\n:host {\n  display: block;\n}\n:host([hidden]): {\n  display: none;\n}\na svg {\n  margin: 0 auto;\n  display: block;\n}\n";var p=e(l);var u=p.toString();function c(r){var e,t,s,n;var i=r.states,o=r.callbacks,l=r.content;var c=function(r,e,t){return r==="FRAUD"?a("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},a("b",null,t),a("div",{part:"erroralert-text"},e)):a("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},a("div",{part:"erroralert-text"},r))};var m=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return a("div",{part:"sqm-base",class:p.classes.Wrapper,style:{border:""+(l.hideBorder?"none":"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)"),backgroundColor:l.backgroundColor,"padding-top":"var(--sl-spacing-"+l.paddingTop+")","padding-right":"var(--sl-spacing-"+l.paddingRight+")","padding-bottom":"var(--sl-spacing-"+l.paddingBottom+")","padding-left":"var(--sl-spacing-"+l.paddingLeft+")"}},a("style",{type:"text/css"},d,u),l.topSlot,a("sl-form",{class:p.classes.Column,"onSl-submit":o.submit},r.states.error&&c(r.states.error,r.content.fraudErrorMessage,r.content.fraudErrorMessageTitle),l.includeName&&a("sl-input",{exportparts:"label: input-label, base: input-base",type:"name",name:"/firstName",label:l.firstNameLabel||"First Name",disabled:i.loading}),l.includeName&&a("sl-input",{exportparts:"label: input-label, base: input-base",type:"name",name:"/lastName",label:l.lastNameLabel||"Last Name",disabled:i.loading}),a("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"email",name:"/email",label:l.emailLabel||"Email",disabled:i.loading,required:true,validationError:function(r){var a=r.value;if(!a){return l.requiredFieldErrorMessage}if(!a.match(m)){return l.invalidEmailErrorMessage}}},((t=(e=i.registrationFormState)===null||e===void 0?void 0:e.validationErrors)===null||t===void 0?void 0:t.email)?{class:p.classes.ErrorStyle,helpText:((n=(s=i.registrationFormState)===null||s===void 0?void 0:s.validationErrors)===null||n===void 0?void 0:n.email)||l.requiredFieldErrorMessage}:[])),a("div",{class:p.classes.ButtonsContainer,style:{paddingTop:""+(l.includeName?"var(--sl-spacing-medium)":"0")}},a("sl-button",{submit:true,loading:i.loading,exportparts:"base: primarybutton-base",type:"primary"},l.registerLabel||"Registration"))),l.bottomSlot)}}}}));