@everymatrix/general-registration-hsl 1.74.2 → 1.74.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.
- package/dist/cjs/checkbox-group-input_14.cjs.entry.js +3 -2
- package/dist/cjs/general-registration-hsl-6e5b947f.js +1045 -0
- package/dist/cjs/general-registration-hsl.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/general-registration-hsl/general-registration-hsl.js +1 -1
- package/dist/esm/checkbox-group-input_14.entry.js +3 -2
- package/dist/esm/general-registration-hsl-45a83517.js +1043 -0
- package/dist/esm/general-registration-hsl.js +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/loader.js +1 -1
- package/dist/general-registration-hsl/checkbox-group-input_14.entry.js +2 -2
- package/dist/general-registration-hsl/general-registration-hsl-45a83517.js +1 -0
- package/dist/general-registration-hsl/general-registration-hsl.esm.js +1 -1
- package/dist/general-registration-hsl/index.esm.js +1 -1
- package/dist/types/components/general-registration-hsl/general-registration-hsl.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/general-registration-hsl-c647d737.js +0 -1058
- package/dist/esm/general-registration-hsl-dbdf19c5.js +0 -1056
- package/dist/general-registration-hsl/general-registration-hsl-dbdf19c5.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as s,g as i}from"./index-8c1bd3e8.js";import"@everymatrix/player-consents/dist";const r={en:{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful",requestTwofaError:"There was an error when sending the code",loadingMessage:"Please wait, loading...",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your reqest.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not register. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},hu:{GmErr_AMOUNT_INVALID:"A megadott összeg érvénytelen.",GmErr_REGISTER_OVERAGE:"A regisztráció túllépte a megengedett határt.",GmErr_REGISTER_UNDERAGE:"A regisztráció a megengedett határ alatt van.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A felhasználó hitelesítése túl sok sikertelen próbálkozás miatt meghiúsult.",GmErr_USER_ACCOUNT_BLOCKED:"A felhasználói fiók le van tiltva.",GmErr_USER_NOT_VERIFIED:"A felhasználó nincs ellenőrizve.",GmErr_USER_NOT_FOUND:"A megadott adatokkal nem található felhasználó.",GmErr_USER_ID_INVALID:"A megadott felhasználói azonosító érvénytelen.",GmErr_USER_AUTH_FAILED:"A felhasználó hitelesítése meghiúsult.",GmErr_USER_DUPLICATED:"A felhasználó már létezik a rendszerben.",GmErr_USER_NOT_ACTIVATED:"A felhasználó fiókja nincs aktiválva.",GmErr_PASSWORD_CONTAINS_EMAIL:"A jelszó nem tartalmazhat e-mail címet.",GmErr_PASSWORD_CONTAINS_USERNAME:"A jelszó nem tartalmazhat felhasználónevet.",GmErr_PASSWORD_CONTAINS_SPACES:"A jelszó nem tartalmazhat szóközöket.",GmErr_USER_4TS_CHECK_EXISTS:"A felhasználó 4TS ellenőrzése már létezik.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"A felhasználó kizárva a regisztrációból.",GmErr_USER_NAV_EXCLUDED_LOGIN:"A felhasználó kizárva a bejelentkezésből.",GmErr_USERNAME_REQUIRED:"Felhasználónév megadása szükséges.",GmErr_USER_EMAIL_NOT_VERIFIED:"A felhasználó e-mail címe nincs megerősítve.",GmErr_EMAIL_ALREADY_EXISTS:"A megadott e-mail címmel már létezik felhasználó",GmErr_EMAIL_REQUIRED:"E-mail cím megadása szükséges.",GmErr_USERNAME_ALREADY_EXISTS:"A felhasználónév már foglalt.",GmErr_DUPLICATE_PERSONAL_ID:"Már létező személyes azonosító.",GmErr_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_INVALID_CODE:"A megadott kód érvénytelen.",GmErr_EXPIRED_TOKEN:"A token lejárt.",GmErr_ATTEMPTS_EXCEEDED:"A megengedett próbálkozások száma túllépve.",GmErr_BLOCK_USER_INCORRECT_CODE:"A felhasználó blokkolva lett a hibás kód miatt.",GmErr_TOKEN_NOT_FOUND:"A token nem található.",GmErr_INVALID_PHONE_NUMBER:"A megadott telefonszám érvénytelen.",GmErr_CODE_MISSING:"A szükséges kód hiányzik.",GmErr_UNREGISTERED_USER:"A felhasználó nincs regisztrálva.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túllépték a kódgenerálási próbálkozások számát.",GmErr_UNEXPECTED_EXCEPTION:"Váratlan kivétel történt.",GmErr_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_NOT_ALLOWED_EXCEPTION:"Ez a művelet nem engedélyezett.",GmErr_CAN_NOT_FIND_ROLE:"A megadott szerepkör nem található.",GmErr_NO_SESSION_PROVIDED:"Nem került megadásra munkamenet.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nincs aktív munkamenet ehhez a felhasználóhoz.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"A felhasználó már anonimizálva lett.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nincs beállítva hozzárendelhető szerepkör.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A megadott munkamenet nem tartozik a felhasználóhoz.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A megadott munkamenet nem létezik.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A szerepkör már hozzá lett rendelve a felhasználóhoz.",GmErr_ASSIGN_USER_ROLE_FAILED:"Nem sikerült a felhasználói szerepkört hozzárendelni.",GmErr_BadRequest_1000:"Probléma volt a személyi azonosító számmal",CountryRestricted:"Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",nextButton:"Következő",backButton:"Vissza",doneButton:"Kész",generalError:"Valami hiba történt... Próbáld újra.",requestTwofaError:"Hiba történt a kód elküldésekor",successMessage:"Sikeres regisztráció",loadingMessage:"Kérjük, várjon, betöltés folyamatban...",GmErr_BadRequest_Duplicate_User:"Egy ilyen információval rendelkező felhasználó már létezik.",GmErr_BadRequest_PasswordContainsUsername:"A jelszó nem lehet azonos a felhasználónévvel.",GmErr_BadRequest_PasswordContainsEmail:"A jelszó nem lehet azonos az e-mail címmel.",GmErr_BadRequest_Duplicate_PersonalId:"Már létezik egy regisztráció az Ön által megadott adatokkal, vagy helytelen formátumban adta meg az adatokat.",GmErr_Forbidden_UserAccount_NavExcluded:"A felhasználó NAV kizárt. A regisztrációt elutasították.",GmErr_BadRequest_ModelValidationFailed:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadInternalConfigs:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_Unauthorized:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_NotFound:"Valami hiba történt... Kérjük, próbálja újra.",BadRequest_Duplicate_User:"Már létezik egy felhasználó ugyanazzal a felhasználónévvel.",BadRequest:"A kérés érvénytelen, kérjük, ellenőrizze az API-t.",Unauthorized:"A játékos számlaszáma, e-mail címe vagy jelszava helytelen",Forbidden_TooManyAttempts:"Túl sok érvénytelen bejelentkezési kísérletet tett, fiókját zárolták, kérjük, próbálja újra később.",Forbidden_UserAccount_NotActive:"Úgy tűnik, még nem erősítette meg e-mail címét. A regisztráció befejezéséhez és fiókjához való hozzáféréshez kérjük, ellenőrizze e-mail fiókját egy megerősítő üzenetért. Ha nem kapta meg az e-mailt, kérjük, ellenőrizze a spam mappát is. Ha segítségre van szüksége, kérhet segítséget az ügyfélszolgálaton keresztül.",GmErr_BadRequest_ExpiredToken:"A használt token lejárt.",GmErr_BadRequest_INVALID_CODE:"A használt kód érvénytelen.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód érvényesítésére.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód generálására.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Érvénytelen kód miatt zárolták.",GmErr_BadRequest_CODE_MISSING:"A kéréshez hiányzik a token.",GmErr_BadRequest_TOKEN_NOT_FOUND:"A kéréshez nem található token.",GmErr_BadRequest_USER_NOT_REGISTERED:"A felhasználó nincs regisztrálva. Kérjük, regisztráljon először.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"A használt telefonszám érvénytelen.",GmErr_BadRequest_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_UnexpectedException:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba."}},n=(e,t,s)=>{let i=r[r[t]?t:"en"][e];if(void 0!==s)for(const[e,t]of Object.entries(s.values)){const s=new RegExp(`{${e}}`,"g");i=i.replace(s,t)}return i},a=(e,t={})=>{const s=new CustomEvent("track-custom-event",{detail:{type:e,data:t},bubbles:!0,composed:!0});document.dispatchEvent(s)},o=class{constructor(s){e(this,s),this.registrationWidgetLoaded=t(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=t(this,"registrationStepUpdated",7),this.validationChange=t(this,"validationChange",7),this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.conditionalValidationMap={},this.lastStep="",this.emitValue=!1,this.form=null,this.errorCode="",this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registerCredentialsEvent=null,this.twofaDestination="",this.registrationStepsState={regId:null},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,this.clientStyling=e,setTimeout((()=>{this.host.shadowRoot.prepend(t)}),1)}))},this.setStreamStyling=e=>{if(window.emMessageBus){const t=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(e,(e=>{t.innerHTML=e,this.clientStyling=e,this.host.shadowRoot.prepend(t)}))}},this.handleInitialClick=e=>{this.isInitalInteraction&&(a("register_start",{field:e.target.name}),this.isInitalInteraction=!1)},this.endpoint=void 0,this.language="en",this.clientStyling="",this.mbSource=void 0,this.clientStylingUrl="",this.translationUrl="",this.dateFormat=void 0,this.buttonInsideForm=void 0,this.btag=null,this.emitOnClick=!1,this.errorMessage="",this.isFormValid=!1,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.isLoadingPOST=!1,this.registrationStep="",this.forms=[],this.limitStylingAppends=!1,this.autofilled=!1,this.isInitalInteraction=!0}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href)}handleStylingChange(e,t){e!==t&&this.setClientStyling()}handleStylingUrlChange(e,t){e!==t&&this.setClientStylingURL()}setFormValidity(){this.errorMessage="",this.listOfInputValidity&&(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)),this.listOfInputs.some((e=>e.autofill))&&(this.autofilled=!0)}addBtag(){this.addBtagValue()}checkInputsValidityHandler(e){this.listOfInputValidity.find((t=>t.name==e.detail.name)).isValid=e.detail.valid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}getInputsValueHandler(e){this.listOfInputValues.find((t=>{t.name==e.detail.name&&(t.value=e.detail.value,t.type=e.detail.type||null)})),this.stepsStateMachine({event:"set",type:"values"}),this.handleConditionalValidation(e.detail.name,e.detail.value)}handleRequestTwofa(){if(!this.twofaDestination)return;const e=new URL("api/v1/gm/legislation/twoFaCode/",this.endpoint),t=new Headers({"Content-Type":"application/problem+json; charset=utf-8"}),s=JSON.stringify({channel:"Sms",destination:this.twofaDestination});fetch(e.href,{method:"POST",headers:t,body:s}).then((e=>{e.ok||e.json().then((e=>{var t;const s=null===(t=e.thirdPartyResponse)||void 0===t?void 0:t.errorCode;this.errorMessage=n(s,this.language)||n("requestTwofaError",this.language)}))})).catch((e=>console.log(e)))}messageHandler(e){e.data&&"isConsentsValid"===e.data.type&&(this.listOfInputValidity.find((e=>"Consents"===e.name)).isValid=e.data.isValid,this.isConsentValid=e.data.isValid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity))}componentWillLoad(){return this.getRegisterConfig().then((e=>{this.formatConfig(e),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()}),(e=>{console.error(e)}))}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setupConditionalValidationMap(){for(const e of this.listOfInputs){const t=[],s=[];for(const i of e.validate.custom)i.correlationField&&i.correlationValue?s.push(i):t.push(i);for(const i of s)if("regex"===i.rule){const s=Object.assign({},e.validate);s.custom=[...t,i];const r=i.correlationField,n=i.correlationValue;this.conditionalValidationMap[r]=this.conditionalValidationMap[r]||{},this.conditionalValidationMap[r][n]=this.conditionalValidationMap[r][n]||{},this.conditionalValidationMap[r][n][e.name]=s}}}handleConditionalValidation(e,t){if(this.conditionalValidationMap[e]&&this.conditionalValidationMap[e][t])for(const[s,i]of Object.entries(this.conditionalValidationMap[e][t])){const e=this.registrationStep&&parseInt(this.registrationStep.replace("Step",""))-1;this.forms[e][this.registrationStep].find((e=>e.name===s)).validate=i,this.validationChange.emit({validation:i,field:s})}}nextHandler(e){e.preventDefault(),this.emitValue=!0,this.errorMessage="",this.registerErrors=!1,this.setRegisterStep()}backHandler(e){e.preventDefault(),this.registrationStep=this.stepChange("decrement"),this.errorMessage="",this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})}dispatchRegisterCredentialsEvent(){let e="",t="";Object.keys(this.registrationStepsState).forEach((s=>{this.registrationStepsState[s].registerUserData&&(e||(e=this.registrationStepsState[s].registerUserData.Email?this.registrationStepsState[s].registerUserData.Email.value:e),t||(t=this.registrationStepsState[s].registerUserData.Password?this.registrationStepsState[s].registerUserData.Password.value:t))})),this.registerCredentialsEvent=new CustomEvent("RegisterCredentials",{bubbles:!0,detail:{userNameEmail:e,userPassword:t}}),window.dispatchEvent(this.registerCredentialsEvent)}stepsStateMachine(e){const t=()=>{localStorage.setItem("registrationStepsState",JSON.stringify(this.registrationStepsState))};switch(e.event){case"set":if("inputs"==e.type){const e=this.registrationStepsState[this.registrationStep];e.fields=this.listOfInputs,e.actions=this.listOfActions,e.fieldsValidity=this.listOfInputValidity}"values"==e.type&&(this.registrationStepsState[this.registrationStep].registerUserData=this.listOfInputValues.reduce(((e,t)=>(e[t.name]={value:t.value,isDuplicate:t.isDuplicate},e)),{})),t();break;case"get":const s=JSON.parse(localStorage.getItem("registrationStepsState"));if(!s)return;if("inputs"==e.type){const e=this.registrationStepsState[this.registrationStep];this.listOfInputs=e.fields,this.listOfActions=e.actions,this.listOfInputValidity=e.fieldsValidity}if("values"==e.type){const e=s[this.registrationStep].registerUserData;this.listOfInputValues=Object.keys(e).map((t=>({name:t,value:e[t].value,isDuplicate:e[t].isDuplicate}))),this.listOfInputValues.forEach((e=>{const t=this.listOfInputs.find((t=>t.name===e.name));t&&(t.defaultValue=e.value,"togglecheckbox"===t.inputType&&t.data.subFields.forEach((e=>{const t=this.listOfInputValues.find((t=>t.name===e.name));e.defaultValue=t.value})))}))}this.isConsentReady=this.listOfActions.some((e=>"/Consents"===e)),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}}triggerNotification(e,t="WidgetNotification"){window.postMessage({type:t,data:{type:"error",message:e}},window.location.href)}getRegisterConfig(e){const t=new URL("v1/player/legislation/registration/config/",this.endpoint),s=new Headers;s.append("Content-Type","application/json"),s.append("Accept","application/json"),e&&t.searchParams.append("registrationId",e);const i={method:"GET",headers:s};return new Promise(((e,s)=>{this.isLoading=!0,fetch(t.href,i).then((e=>e.ok?e.json():(this.registerErrors=!0,e.json().then((e=>{this.errorCode=e.thirdPartyResponse.errorCode,this.errorMessage=n(`${this.errorCode}`,this.language)||n("generalError",this.language),this.triggerNotification(this.errorMessage)}))))).then((t=>(this.isLoading=!1,t?e(t):s("Get register config is empty or has an error."))),(e=>(console.error("Get register config is empty or has an error: ",e),s(e)))).finally((()=>{this.isLoading=!1}))}))}setRegisterStep(){this.isLoadingPOST=!0;const e=new URL("v1/player/legislation/registration/step/",this.endpoint),t={registrationId:this.registrationID,registerUserDto:this.listOfInputValues.filter((e=>!e.isDuplicate)).reduce(((e,t)=>("TypeOfPublicArea"===t.name?e[t.name]=t.value.toLowerCase():"tel"===t.type?(e.MobilePrefix=t.value.prefix,e[t.name]=t.value.phone):"checkboxgroup"===t.type?null!==t.value&&Object.entries(t.value).forEach((([t,s])=>{e[t]=s?"true":"false"})):e[t.name]="toggle"===t.type?t.value?"true":"false":t.value,e)),{}),step:this.registrationStep},s=new Headers;s.append("Content-Type","application/json"),s.append("Accept","application/json");const i={method:"POST",body:JSON.stringify(t),headers:s};fetch(e.href,i).then((e=>e.ok?("Step1"===this.registrationStep?a("register_step1",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{IBAN:t.registerUserDto.IBAN,username:t.registerUserDto.Username}}):"Step2"===this.registrationStep?a("register_step2",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{gender:t.registerUserDto.Gender,fullName:`${t.registerUserDto.FirstnameOnDocument} ${t.registerUserDto.LastNameOnDocument}`,city:t.registerUserDto.City}}):"Step3"===this.registrationStep&&a("register_step3",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{OIB:t.registerUserDto.PersonalID,documentType:t.registerUserDto.DocumentType}}),e.json()):e.json().then((e=>{this.errorCode=e.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?e.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?n(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?e.thirdPartyResponse.message:n(`${this.errorCode}`,this.language)||n("generalError",this.language),this.triggerNotification(this.errorMessage)})))).then((e=>{this.isLoadingPOST=!1,this.registrationID=e.registrationId,this.listOfActions.find((e=>"/request-2FA"===e))&&(this.twofaDestination=Object.values(this.listOfInputValues.find((e=>"tel"===e.type)).value).join(""),this.handleRequestTwofa()),this.listOfActions.some((e=>"/register"==e))?(this.listOfActions.some((e=>"/generate-2FA-code/Generate2FACode"==e))&&this.extraActions.push("2fa"),localStorage.getItem("playerConsents")&&localStorage.removeItem("playerConsents"),this.setRegister()):(this.isConsentValid&&window.postMessage({type:"setUpPlayerConsents",registerid:this.registrationID}),this.registrationStep=this.stepChange("increment"),Object.keys(this.registrationStepsState).find((e=>e==this.registrationStep))?(this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})):this.getRegisterConfig(this.registrationID).then((e=>{this.formatConfig(e),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()}),(e=>{this.triggerNotification(e)})))})).catch((e=>{this.isLoadingPOST=!1,console.error(e)})).finally((()=>{this.isLoadingPOST=!1}))}setRegister(){this.isLoading=!0,this.registerErrors=!1;const e=new URL("v1/player/legislation/register/",this.endpoint),t=new Headers;t.append("Content-Type","application/json"),t.append("Accept","application/json");const s={method:"PUT",body:JSON.stringify({registrationId:this.registrationID}),headers:t};a("register_submit",{registrationId:this.registrationID}),fetch(e.href,s).then((e=>e.ok?e.json():(this.registerErrors=!0,e.json().then((e=>{this.errorCode=e.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode||"GmErr_BadRequest"==this.errorCode?e.thirdPartyResponse.message:n(`${this.errorCode}`,this.language)||n("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==e?void 0:e.thirdPartyResponse.message},window.location.href),this.triggerNotification(this.errorMessage),a("register_fail",{error:this.errorMessage})}))))).then((e=>{this.isLoading=!1,this.registerErrors||(this.dispatchRegisterCredentialsEvent(),window.postMessage({type:"registrationSuccessful",userId:null==e?void 0:e.userId,extraActions:this.extraActions},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:n("successMessage",this.language)}},window.location.href),a("register_closed",{userId:e.userId}))})).catch((e=>{this.isLoading=!1,console.error(e)})).finally((()=>{this.isLoading=!1}))}formatConfig(e){if(this.listOfInputs=e.content.fields.flatMap((e=>{const t=e.validate.custom.find((e=>"duplicate-input"===e.rule)),s=Object.assign({},e);return t?[s,Object.assign(Object.assign({},e),{name:`${e.name}Duplicate`,displayName:t.displayName,isDuplicateInput:!0})]:[s]})),this.listOfInputValidity=this.listOfInputs.reduce(((e,t)=>{var s;return"togglecheckbox"===(null===(s=t.inputType)||void 0===s?void 0:s.toLowerCase())?t.data.subFields.forEach((t=>{e.push({name:t.name,isValid:this.setInitialValidStatus(t)})})):e.push({name:t.name,isValid:this.setInitialValidStatus(t)}),e}),[]),this.listOfInputValues=this.listOfInputs.reduce(((e,t)=>{var s;const i=null===(s=t.inputType)||void 0===s?void 0:s.toLowerCase();return"togglecheckbox"===i&&t.data.subFields.forEach((t=>{var s;e.push({name:t.name,value:"checkbox"==(null===(s=t.inputType)||void 0===s?void 0:s.toLowerCase())?"false":null,isDuplicate:t.isDuplicateInput||!1,type:"togglecheckbox"===i?"togglecheckbox":null})})),e.push({name:t.name,value:"checkbox"===i||"togglecheckbox"===i?"false":null,isDuplicate:t.isDuplicateInput||!1,type:"checkboxgroup"===i?"checkboxgroup":"togglecheckbox"===i?"toggle":null}),e}),[]),this.btag&&this.addBtagValue(),this.listOfActions=e.content.actions.map((e=>e)),this.registrationID=e.content.registrationID,this.registrationStep=e.content.step,this.listOfActions.some((e=>"/register"==e))&&(this.lastStep=this.registrationStep),this.listOfActions.some((e=>"/Consents"==e))){if(this.isConsentReady)return this.listOfInputValidity.find((e=>"Consents"===e.name)).isValid=!1,void(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity));this.listOfInputValidity.push({name:"Consents",isValid:!1}),this.isConsentReady=!0}else this.isConsentReady=!1;var t;this.translationUrl?(t=this.translationUrl,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{r[e]=r[e]||{};for(let s in t[e])r[e][s]=t[e][s]})),e(!0)}))}))).then((()=>{this.listOfInputs.forEach((e=>{var t,s;return this.addTranslation(e),"togglecheckbox"===(null===(t=e.inputType)||void 0===t?void 0:t.toLowerCase())&&e.data.subFields.forEach((e=>this.addTranslation(e))),"checkboxgroup"===(null===(s=e.inputType)||void 0===s?void 0:s.toLowerCase())&&(this.addTranslation(e),e.data.subFields.forEach((e=>this.addTranslation(e)))),e}))})).catch((e=>{console.error("Failed to fetch translations:",e)})).finally((()=>{this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}]})):this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}],this.registrationStepsState.regId=this.registrationID,this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={fields:[],fieldsValidity:[],registerUserData:{},actions:[]})}addBtagValue(){const e=this.listOfInputs.find((e=>"btag"===e.name.toLowerCase()));e&&(e.defaultValue=this.btag);const t=this.listOfInputValues.find((e=>"btag"===e.name.toLowerCase()));t&&(t.value=this.btag)}addTranslation(e){r[r[this.language]?this.language:"en"][e.name]&&Object.keys(r[this.language][e.name]).forEach((t=>{e[t]=r[this.language][e.name][t]}))}setInitialValidStatus(e){var t,s,i,r;return"checkbox"==(null===(t=e.inputType)||void 0===t?void 0:t.toLowerCase())&&0==(null===(s=e.validate)||void 0===s?void 0:s.mandatory)||("checkbox"!==(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())||!(null===(r=e.validate)||void 0===r?void 0:r.mandatory)||"true"===e.defaultValue)&&null!==e.defaultValue}stepChange(e){const t=parseInt(this.registrationStep.replace("Step",""));return"increment"===e?"Step"+(t+1):"decrement"===e?"Step"+(t-1):void 0}getInvalidStatus(e){return e.filter((e=>0==e.isValid)).length>0}renderErrorMessage(e){return s("p",{class:"registration registration__error-message"},e)}renderForm(){return this.forms.map(((e,t)=>s("form",{action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form "+(this.registrationStep!==`Step${t+1}`?"hidden":""),ref:e=>this.form=e,onClick:this.handleInitialClick},e[this.registrationStep]&&e[this.registrationStep].map((e=>{var t,i;return s("div",{key:e.name,class:"input-wrapper"},s("general-input-hsl",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,options:e.data?"checkboxgroup"===e.inputType.toLowerCase()||"togglecheckbox"===e.inputType.toLowerCase()?e.data.subFields:e.data.values:[],defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,isDuplicateInput:e.isDuplicateInput,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:null==e.placeholder?"":e.placeholder,"date-format":this.dateFormat,"twofa-destination":this.twofaDestination,"twofa-resend-interval-seconds":null===(t=e.customInfo)||void 0===t?void 0:t.twofaResendIntervalSeconds,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick,onClick:this.handleInitialClick}),(null===(i=e.customInfo)||void 0===i?void 0:i.description)&&s("div",{class:"input-description"},e.customInfo.description))})),this.isConsentReady&&this.renderConsents(),this.buttonInsideForm&&this.renderButtons(),s("div",{class:"registration__wrapper--flex"},s("p",{class:"registration__error-message",innerHTML:this.errorMessage})))))}renderConsents(){return s("div",{class:"consentsContainer"},s("player-consents",{endpoint:this.endpoint}))}renderButtons(){return s("div",null,this.isLoadingPOST&&s("slot",{name:"spinner"})&&s("svg",{class:"spinner",viewBox:"0 0 50 50"},s("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})),!this.isLoadingPOST&&s("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},s("button",{class:"registration__button registration__button--next "+(this.isFormValid?"":"registration__button--disabled"),type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:e=>this.nextHandler(e),disabled:!this.isFormValid},n(this.lastStep===this.registrationStep?"doneButton":"nextButton",this.language)),s("button",{class:"registration__button registration__button--back "+("Step1"==this.registrationStep?"registration__button--first-step":""),onClick:e=>this.backHandler(e)},n("backButton",this.language))))}render(){return this.isLoading&&!this.registerErrors?s("p",{class:"registration registration__loading-message"},n("loadingMessage",this.language)):!this.isLoading&&this.registerErrors?this.renderErrorMessage(this.errorMessage):s("div",{class:`registration registration__${this.registrationStep}`},this.renderForm(),!this.buttonInsideForm&&this.renderButtons())}get host(){return i(this)}static get watchers(){return{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}}};o.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: "Roboto";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}';export{o as G}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./index-8c1bd3e8.js";export{s as setNonce}from"./index-8c1bd3e8.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["checkbox-group-input_14",[[1,"general-registration-hsl",{endpoint:[513],language:[513],clientStyling:[1537,"client-styling"],mbSource:[1,"mb-source"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],dateFormat:[513,"date-format"],buttonInsideForm:[516,"button-inside-form"],btag:[513],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isFormValid:[32],isConsentValid:[32],isConsentReady:[32],isLoading:[32],isLoadingPOST:[32],registrationStep:[32],forms:[32],limitStylingAppends:[32],autofilled:[32],isInitalInteraction:[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"],[0,"resendCode","handleRequestTwofa"],[8,"message","messageHandler"]],{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}],[1,"general-input-hsl",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],hidePasswordComplexity:[516,"hide-password-complexity"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"],twofaDestination:[513,"twofa-destination"],twofaResendIntervalSeconds:[514,"twofa-resend-interval-seconds"]}],[1,"
|
|
1
|
+
import{p as e,b as l}from"./index-8c1bd3e8.js";export{s as setNonce}from"./index-8c1bd3e8.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["checkbox-group-input_14",[[1,"general-registration-hsl",{endpoint:[513],language:[513],clientStyling:[1537,"client-styling"],mbSource:[1,"mb-source"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],dateFormat:[513,"date-format"],buttonInsideForm:[516,"button-inside-form"],btag:[513],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isFormValid:[32],isConsentValid:[32],isConsentReady:[32],isLoading:[32],isLoadingPOST:[32],registrationStep:[32],forms:[32],limitStylingAppends:[32],autofilled:[32],isInitalInteraction:[32]},[[0,"sendValidityState","checkInputsValidityHandler"],[0,"sendInputValue","getInputsValueHandler"],[0,"resendCode","handleRequestTwofa"],[8,"message","messageHandler"]],{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}],[1,"general-input-hsl",{type:[513],name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],validation:[16],options:[520],language:[513],autofilled:[516],tooltip:[513],defaultValue:[520,"default-value"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],hidePasswordComplexity:[516,"hide-password-complexity"],clientStyling:[520,"client-styling"],dateFormat:[513,"date-format"],translationUrl:[513,"translation-url"],emitOnClick:[516,"emit-on-click"],twofaDestination:[513,"twofa-destination"],twofaResendIntervalSeconds:[514,"twofa-resend-interval-seconds"]}],[1,"checkbox-group-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],selectedValues:[32],showCheckboxes:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}],[1,"checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"date-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],dateFormat:[513,"date-format"],emitOnClick:[516,"emit-on-click"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"email-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"number-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"password-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],hidePasswordComplexity:[516,"hide-password-complexity"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32],passwordComplexity:[32],showPopup:[32],value:[32]},[[16,"sendOriginalValidityState","originalValidityChangedHandler"],[16,"sendInputValue","valueChangedHandler"],[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}],[1,"radio-input",{name:[513],displayName:[513,"display-name"],optionsGroup:[16],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"select-input-hsl",{name:[513],displayName:[513,"display-name"],placeholder:[513],action:[513],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],options:[16],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"tel-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],showLabels:[516,"show-labels"],action:[513],validation:[16],defaultValue:[520,"default-value"],autofilled:[516],tooltip:[513],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"text-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],defaultValue:[513,"default-value"],autofilled:[516],tooltip:[513],language:[513],checkValidity:[516,"check-validity"],emitValue:[516,"emit-value"],isDuplicateInput:[516,"is-duplicate-input"],clientStyling:[513,"client-styling"],isValid:[32],errorMessage:[32],limitStylingAppends:[32],showTooltip:[32]},[[4,"click","handleClickOutside"],[16,"sendInputValue","valueChangedHandler"],[16,"validationChange","handleValidationChange"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}],[1,"toggle-checkbox-input",{name:[513],displayName:[513,"display-name"],defaultValue:[513,"default-value"],options:[16],autofilled:[516],tooltip:[513],validation:[16],language:[513],emitValue:[516,"emit-value"],clientStyling:[513,"client-styling"],errorMessage:[32],isValid:[32],limitStylingAppends:[32],showTooltip:[32],showFields:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"]}],[1,"twofa-input",{name:[513],displayName:[513,"display-name"],placeholder:[513],validation:[16],tooltip:[513],language:[513],emitValue:[516,"emit-value"],destination:[513],resendIntervalSeconds:[514,"resend-interval-seconds"],clientStyling:[513,"client-styling"],limitStylingAppends:[32],isValid:[32],isResendButtonAvailable:[32],showTooltip:[32],errorMessage:[32],code:[32],resendIntervalSecondsLeft:[32]},[[4,"click","handleClickOutside"]],{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{G as GeneralRegistrationHsl}from"./general-registration-hsl-
|
|
1
|
+
export{G as GeneralRegistrationHsl}from"./general-registration-hsl-45a83517.js";import"./index-8c1bd3e8.js";import"@everymatrix/player-consents/dist";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import type { InputStateEvent, InputValueEvent, RegistrationConfig, RegCfgContentField, StepState, InputValue, InputValidity, InputType, ValidationSchema } from '../../../../general-input-hsl/src/utils/types';
|
|
3
3
|
import "../../../../../../dist/packages/stencil/general-input-hsl/dist/types/index";
|
|
4
|
-
import
|
|
4
|
+
import '@everymatrix/player-consents/dist';
|
|
5
5
|
export declare class GeneralRegistrationHsl {
|
|
6
6
|
/**
|
|
7
7
|
* NorWAy Endpoint for all the calls.
|