@everymatrix/player-account-controller 1.59.1 → 1.59.3
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/components/{PlayerAccountController-DMXXG8tF.js → PlayerAccountController-CUbh06Fx.js} +4 -4
- package/components/{PlayerAccountController-utJgFIt1.cjs → PlayerAccountController-DIWtv1hU.cjs} +1 -1
- package/components/{PlayerAccountController-CtAC8Bkz.js → PlayerAccountController-bVtx8Tfe.js} +4 -4
- package/components/{PlayerAccountGamingLimitsWrapper2-Cm_s6Fie.cjs → PlayerAccountGamingLimitsWrapper2-C5ZEZESw.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-CE96__tw.js → PlayerAccountGamingLimitsWrapper2-CEfUMBze.js} +58 -47
- package/components/{PlayerAccountGamingLimitsWrapper2-Dz66ld9y.js → PlayerAccountGamingLimitsWrapper2-DcjNP85K.js} +109 -98
- package/components/{PlayerActiveBonuses-C2r4IPEL.cjs → PlayerActiveBonuses-8_q2D0Pm.cjs} +1 -1
- package/components/{PlayerActiveBonuses-zUVH_ST1.js → PlayerActiveBonuses-C3FSr5OJ.js} +1 -1
- package/components/{PlayerActiveBonuses-BFVeH6mh.js → PlayerActiveBonuses-DslbK9bV.js} +1 -1
- package/components/PlayerBonusCard-CXkW82MZ.js +814 -0
- package/components/PlayerBonusCard-Q-nM2Ss4.cjs +1 -0
- package/components/PlayerBonusCard-oV2_xQ7r.js +814 -0
- package/components/{PlayerBonusHistory-B_a21BCE.cjs → PlayerBonusHistory-DAOaiP_i.cjs} +1 -1
- package/components/{PlayerBonusHistory-Bg0Kax3B.js → PlayerBonusHistory-DOUhJRUl.js} +1 -1
- package/components/{PlayerBonusHistory-CuOv2Hc4.js → PlayerBonusHistory-DZIZHkBk.js} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +2 -2
- package/stencil/checkbox-group-input_9-C_Jto8Jt.js +3881 -0
- package/stencil/checkbox-group-input_9-CinfKCss.js +3881 -0
- package/stencil/checkbox-group-input_9-Dc49Q3Vp.cjs +2 -0
- package/stencil/general-input-DJk-3Amp.js +12195 -0
- package/stencil/general-input-bu08V52z.js +12195 -0
- package/stencil/general-input-n2Odu7ir.cjs +4546 -0
- package/stencil/{index-9cd44522-BMi5SCI8.cjs → index-9cd44522-CFA-2f9u.cjs} +1 -1
- package/stencil/{index-9cd44522-CTVB6N0s.js → index-9cd44522-COdVO-ko.js} +4 -4
- package/stencil/{index-9cd44522-C5PazzcR.js → index-9cd44522-IsBDbKDl.js} +4 -4
- package/stencil/password-input_2-BEm5miI-.js +311 -0
- package/stencil/password-input_2-BQFmAJZH.js +311 -0
- package/stencil/password-input_2-BvQKzYdi.cjs +193 -0
- package/stencil/{player-change-password-gm2-039e300e-BVlNNts_.js → player-change-password-gm2-039e300e-CAqacRz5.js} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-CCcJUFnW.js → player-change-password-gm2-039e300e-DsF_swLz.js} +1 -1
- package/stencil/{player-change-password-gm2-039e300e-CSWUPhYT.cjs → player-change-password-gm2-039e300e-WQ9F_3S-.cjs} +1 -1
- package/stencil/{player-change-password-gm2-Ckya-tLH.js → player-change-password-gm2-2-y7ZnBr.js} +1 -1
- package/stencil/{player-change-password-gm2-C3qCCE1E.cjs → player-change-password-gm2-21_4LRZA.cjs} +1 -1
- package/stencil/{player-change-password-gm2-C6pxbnjL.js → player-change-password-gm2-lgbjA5yk.js} +1 -1
- package/stencil/{toggle-checkbox-input-C-GcqDa0.js → toggle-checkbox-input-BETTnM8f.js} +1 -1
- package/stencil/{toggle-checkbox-input-L8SjZwTW.js → toggle-checkbox-input-D3c8zSJU.js} +1 -1
- package/stencil/{toggle-checkbox-input-B-OT73su.cjs → toggle-checkbox-input-owvrKS5Z.cjs} +1 -1
- package/components/PlayerBonusCard-B-cs4cqg.js +0 -699
- package/components/PlayerBonusCard-BX-b3HKZ.js +0 -699
- package/components/PlayerBonusCard-BrvsM8No.cjs +0 -1
- package/stencil/checkbox-group-input_9-7pHEk7KK.cjs +0 -2045
- package/stencil/checkbox-group-input_9-DSksAr33.js +0 -13246
- package/stencil/checkbox-group-input_9-DyXG_RqX.js +0 -13280
- package/stencil/general-input-CH-Wnz0o.js +0 -48
- package/stencil/general-input-CX-Aoxyz.cjs +0 -1
- package/stencil/general-input-CuV9Y7I_.js +0 -48
- package/stencil/password-input_2-BmdsggMk.cjs +0 -105
- package/stencil/password-input_2-CPv8XrqV.js +0 -589
- package/stencil/password-input_2-oaROKAQs.js +0 -589
- package/stencil/vaadin-button-mixin-5fa6ca77-BEoWt381.cjs +0 -2383
- package/stencil/vaadin-button-mixin-5fa6ca77-DNBadodK.js +0 -10213
- package/stencil/vaadin-button-mixin-5fa6ca77-SQip1zuF.js +0 -10287
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { r as a, h as t, H as l } from "./index-9cd44522-CTVB6N0s.js";
|
|
2
|
-
import { g as s } from "./locale-ioQf6ZrW.js";
|
|
3
|
-
const n = ":host{display:block;height:100%}", o = n, u = class {
|
|
4
|
-
constructor(i) {
|
|
5
|
-
a(this, i), this.handleClick = (e) => {
|
|
6
|
-
this.emitOnClick && (e.stopPropagation(), window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href));
|
|
7
|
-
}, this.type = "text", this.name = void 0, this.displayName = void 0, this.placeholder = void 0, this.action = void 0, this.validation = void 0, this.options = void 0, this.language = void 0, this.autofilled = void 0, this.tooltip = void 0, this.defaultValue = void 0, this.emitValue = void 0, this.isDuplicateInput = void 0, this.clientStyling = "", this.dateFormat = void 0, this.translationUrl = "", this.emitOnClick = !1;
|
|
8
|
-
}
|
|
9
|
-
connectedCallback() {
|
|
10
|
-
this.translationUrl && s(this.translationUrl);
|
|
11
|
-
}
|
|
12
|
-
renderInput() {
|
|
13
|
-
var i;
|
|
14
|
-
switch ((i = this.type) === null || i === void 0 ? void 0 : i.toLowerCase()) {
|
|
15
|
-
case "text":
|
|
16
|
-
return t("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
17
|
-
case "email":
|
|
18
|
-
return t("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
19
|
-
case "number":
|
|
20
|
-
return t("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
21
|
-
case "checkbox":
|
|
22
|
-
return t("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23
|
-
case "checkboxgroup":
|
|
24
|
-
return t("checkbox-group-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options });
|
|
25
|
-
case "togglecheckbox":
|
|
26
|
-
return t("toggle-checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options, "emit-on-click": this.emitOnClick });
|
|
27
|
-
case "datetime":
|
|
28
|
-
return t("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, dateFormat: this.dateFormat, "emit-on-click": this.emitOnClick });
|
|
29
|
-
case "password":
|
|
30
|
-
return t("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
31
|
-
case "radio":
|
|
32
|
-
return t("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
33
|
-
case "tel":
|
|
34
|
-
return t("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
35
|
-
case "dropdown":
|
|
36
|
-
return t("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
37
|
-
default:
|
|
38
|
-
return t("p", null, "The ", this.type, " input type is not valid");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
return t(l, { key: "e1c49fc91ead165c05b30c21ac568486e55c8096", class: `general-input--${this.name}`, onClick: this.handleClick }, this.renderInput());
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
u.style = o;
|
|
46
|
-
export {
|
|
47
|
-
u as general_input
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-9cd44522-BMi5SCI8.cjs"),l=require("./locale-BB2iZ4t0.cjs"),n=":host{display:block;height:100%}",s=n,e=class{constructor(i){t.registerInstance(this,i),this.handleClick=a=>{this.emitOnClick&&(a.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1}connectedCallback(){this.translationUrl&&l.getTranslations(this.translationUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return t.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return t.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return t.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return t.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return t.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return t.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return t.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return t.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return t.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return t.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return t.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return t.h("p",null,"The ",this.type," input type is not valid")}}render(){return t.h(t.Host,{key:"e1c49fc91ead165c05b30c21ac568486e55c8096",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};e.style=s;exports.general_input=e;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { r as a, h as t, H as l } from "./index-9cd44522-C5PazzcR.js";
|
|
2
|
-
import { g as s } from "./locale-ioQf6ZrW.js";
|
|
3
|
-
const n = ":host{display:block;height:100%}", o = n, u = class {
|
|
4
|
-
constructor(i) {
|
|
5
|
-
a(this, i), this.handleClick = (e) => {
|
|
6
|
-
this.emitOnClick && (e.stopPropagation(), window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href));
|
|
7
|
-
}, this.type = "text", this.name = void 0, this.displayName = void 0, this.placeholder = void 0, this.action = void 0, this.validation = void 0, this.options = void 0, this.language = void 0, this.autofilled = void 0, this.tooltip = void 0, this.defaultValue = void 0, this.emitValue = void 0, this.isDuplicateInput = void 0, this.clientStyling = "", this.dateFormat = void 0, this.translationUrl = "", this.emitOnClick = !1;
|
|
8
|
-
}
|
|
9
|
-
connectedCallback() {
|
|
10
|
-
this.translationUrl && s(this.translationUrl);
|
|
11
|
-
}
|
|
12
|
-
renderInput() {
|
|
13
|
-
var i;
|
|
14
|
-
switch ((i = this.type) === null || i === void 0 ? void 0 : i.toLowerCase()) {
|
|
15
|
-
case "text":
|
|
16
|
-
return t("text-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
17
|
-
case "email":
|
|
18
|
-
return t("email-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
19
|
-
case "number":
|
|
20
|
-
return t("number-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
21
|
-
case "checkbox":
|
|
22
|
-
return t("checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, emitValue: this.emitValue, defaultValue: this.defaultValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip });
|
|
23
|
-
case "checkboxgroup":
|
|
24
|
-
return t("checkbox-group-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options });
|
|
25
|
-
case "togglecheckbox":
|
|
26
|
-
return t("toggle-checkbox-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, options: this.options, "emit-on-click": this.emitOnClick });
|
|
27
|
-
case "datetime":
|
|
28
|
-
return t("date-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder, dateFormat: this.dateFormat, "emit-on-click": this.emitOnClick });
|
|
29
|
-
case "password":
|
|
30
|
-
return t("password-input", { name: this.name, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, autofilled: this.autofilled, emitValue: this.emitValue, language: this.language, isDuplicateInput: this.isDuplicateInput, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
31
|
-
case "radio":
|
|
32
|
-
return t("radio-input", { name: this.name, displayName: this.displayName, optionsGroup: this.options, validation: this.validation, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling });
|
|
33
|
-
case "tel":
|
|
34
|
-
return t("tel-input", { name: this.name, action: this.action, displayName: this.displayName, validation: this.validation, defaultValue: this.defaultValue, emitValue: this.emitValue, language: this.language, autofilled: this.autofilled, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
35
|
-
case "dropdown":
|
|
36
|
-
return t("select-input", { name: this.name, action: this.action, defaultValue: this.defaultValue, displayName: this.displayName, options: this.options, validation: this.validation, emitValue: this.emitValue, autofilled: this.autofilled, language: this.language, "client-styling": this.clientStyling, tooltip: this.tooltip, placeholder: this.placeholder });
|
|
37
|
-
default:
|
|
38
|
-
return t("p", null, "The ", this.type, " input type is not valid");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
render() {
|
|
42
|
-
return t(l, { key: "e1c49fc91ead165c05b30c21ac568486e55c8096", class: `general-input--${this.name}`, onClick: this.handleClick }, this.renderInput());
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
u.style = o;
|
|
46
|
-
export {
|
|
47
|
-
u as general_input
|
|
48
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-9cd44522-BMi5SCI8.cjs"),o=require("./locale-BB2iZ4t0.cjs"),a=require("./vaadin-button-mixin-5fa6ca77-BEoWt381.cjs"),c=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),m=require("./player-change-password-gm2-039e300e-CSWUPhYT.cjs");/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/a.registerStyles("vaadin-text-field",a.inputFieldShared$1,{moduleId:"lumo-text-field-styles"});/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
8
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9
|
-
*/const v=t=>class extends a.InputControlMixin(t){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,r){super._valueChanged(e,r),r!==void 0&&this.invalid&&this.validate()}};/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
12
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13
|
-
*/const g=t=>class extends v(t){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new a.InputController(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new a.LabelledInputController(this.inputElement,this._labelController))}};/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
16
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
17
|
-
*/a.registerStyles("vaadin-text-field",a.inputFieldShared,{moduleId:"vaadin-text-field-styles"});class p extends g(a.ThemableMixin(a.ElementMixin(a.PolymerElement))){static get is(){return"vaadin-text-field"}static get template(){return a.html`
|
|
18
|
-
<div class="vaadin-field-container">
|
|
19
|
-
<div part="label">
|
|
20
|
-
<slot name="label"></slot>
|
|
21
|
-
<span part="required-indicator" aria-hidden="true" on-click="focus"></span>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<vaadin-input-container
|
|
25
|
-
part="input-field"
|
|
26
|
-
readonly="[[readonly]]"
|
|
27
|
-
disabled="[[disabled]]"
|
|
28
|
-
invalid="[[invalid]]"
|
|
29
|
-
theme$="[[_theme]]"
|
|
30
|
-
>
|
|
31
|
-
<slot name="prefix" slot="prefix"></slot>
|
|
32
|
-
<slot name="input"></slot>
|
|
33
|
-
<slot name="suffix" slot="suffix"></slot>
|
|
34
|
-
<div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
|
|
35
|
-
</vaadin-input-container>
|
|
36
|
-
|
|
37
|
-
<div part="helper-text">
|
|
38
|
-
<slot name="helper"></slot>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div part="error-message">
|
|
42
|
-
<slot name="error-message"></slot>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<slot name="tooltip"></slot>
|
|
46
|
-
`}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new a.TooltipController(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}a.defineCustomElement(p);/**
|
|
47
|
-
* @license
|
|
48
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
49
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
50
|
-
*/const _=a.i$3`
|
|
51
|
-
:host {
|
|
52
|
-
position: absolute;
|
|
53
|
-
right: 0;
|
|
54
|
-
top: 0;
|
|
55
|
-
margin: 0;
|
|
56
|
-
padding: 0;
|
|
57
|
-
width: 100%;
|
|
58
|
-
height: 100%;
|
|
59
|
-
min-width: auto;
|
|
60
|
-
background: transparent;
|
|
61
|
-
outline: none;
|
|
62
|
-
}
|
|
63
|
-
`;a.registerStyles("vaadin-password-field-button",[a.button,_],{moduleId:"lumo-password-field-button"});/**
|
|
64
|
-
* @license
|
|
65
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
66
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
67
|
-
*/const f=a.i$3`
|
|
68
|
-
[part='reveal-button']::before {
|
|
69
|
-
content: var(--lumo-icons-eye);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:host([password-visible]) [part='reveal-button']::before {
|
|
73
|
-
content: var(--lumo-icons-eye-disabled);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Make it easy to hide the button across the whole app */
|
|
77
|
-
[part='reveal-button'] {
|
|
78
|
-
position: relative;
|
|
79
|
-
display: var(--lumo-password-field-reveal-button-display, block);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
[part='reveal-button'][hidden] {
|
|
83
|
-
display: none !important;
|
|
84
|
-
}
|
|
85
|
-
`;a.registerStyles("vaadin-password-field",[a.inputFieldShared$1,f],{moduleId:"lumo-password-field"});/**
|
|
86
|
-
* @license
|
|
87
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
88
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
89
|
-
*/a.registerStyles("vaadin-password-field-button",a.buttonStyles,{moduleId:"vaadin-password-field-button-styles"});class w extends a.ButtonMixin(a.DirMixin(a.ThemableMixin(a.PolymerElement))){static get is(){return"vaadin-password-field-button"}static get template(){return a.html``}}a.defineCustomElement(w);/**
|
|
90
|
-
* @license
|
|
91
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
92
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
93
|
-
*/const y=t=>class extends a.SlotStylesMixin(a.DisabledMixin(a.FocusMixin(a.InputMixin(t)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
|
|
94
|
-
${e} [slot="input"]::-ms-reveal {
|
|
95
|
-
display: none;
|
|
96
|
-
}
|
|
97
|
-
`]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new a.SlotController(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const r=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!r)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,r){super._disabledChanged(e,r),this._revealNode&&(this._revealNode.disabled=e)}};/**
|
|
98
|
-
* @license
|
|
99
|
-
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
100
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
101
|
-
*/const b=a.html`
|
|
102
|
-
<div part="reveal-button" slot="suffix">
|
|
103
|
-
<slot name="reveal"></slot>
|
|
104
|
-
</div>
|
|
105
|
-
`;let u;class x extends y(p){static get is(){return"vaadin-password-field"}static get template(){if(!u){u=super.template.cloneNode(!0);const i=b.content.querySelector('[part="reveal-button"]');u.content.querySelector('[part="input-field"]').appendChild(i)}return u}}a.defineCustomElement(x);const C='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:"Roboto";font-style:normal}.password__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.password__wrapper--autofilled{pointer-events:none}.password__wrapper--autofilled .password__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__wrapper--autofilled .password__input::part(input-field){color:var(--emw--color-black, #000000)}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.password__input{width:inherit;border:none}.password__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.password__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.password__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);background-color:var(--emw--color-white, #FFFFFF);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;position:relative;margin-bottom:unset;height:44px;padding:0;width:100%}.password__input::part(reveal-button){position:relative;right:10px}.password__input::part(reveal-button)::before{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__input>input{padding:5px 15px}.password__input>input:placeholder-shown{color:var(--emw--color-gray-150, #828282)}.password__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.password__complexity{position:relative;padding:10px;display:flex;flex-direction:column;gap:20px;justify-content:center;margin-top:20px;font-weight:300;background:var(--emw--color-white, #FFFFFF);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;height:150px;border:1px solid #B0B0B0;}.password__complexity meter{border-color:transparent;}.password__complexity meter[value="1"]::-moz-meter-bar{background-color:var(--emw--color-valid, #48952a)}.password__complexity meter[value="1"]::-webkit-meter-optimum-value{background-color:var(--emw--color-valid, #48952a)}.password__complexity meter:not([value="1"])::-moz-meter-bar{background-color:var(--emw--color-error, #FD2839)}.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value{background-color:var(--emw--color-error, #FD2839)}.password__complexity--strength{display:flex;justify-content:space-evenly;align-items:center}.password__complexity--strength meter::-moz-meter-bar{background:#B0B0B0}.password__complexity--hidden{display:none}.password__complexity--text-bold{font-weight:500}.password__complexity--checkbox{margin-right:5px}.password__complexity:after{content:"";position:absolute;width:25px;height:25px;border-top:1px solid var(--emw--color-gray-150, #828282);border-right:0 solid var(--emw--color-gray-150, #828282);border-left:1px solid var(--emw--color-gray-150, #828282);border-bottom:0 solid var(--emw--color-gray-150, #828282);bottom:92%;left:50%;margin-left:-25px;transform:rotate(45deg);margin-top:-25px;background-color:var(--emw--color-white, #FFFFFF)}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-150, #828282);color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}',F=C,h=class{constructor(t){s.registerInstance(this,t),this.sendOriginalValidityState=s.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=s.createEvent(this,"sendValidityState"),this.sendInputValue=s.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=i=>{this.value=i.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=i=>{i.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=i=>{this.value=i.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(t,i){t!==i&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(t){t==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}originalValidityChangedHandler(t){this.isDuplicateInput&&(t.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",t=>{this.handleRevealField(t)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(t){this.passwordComplexity=this.validation.custom.filter(i=>i.rule==="regex").map(i=>{const r=new RegExp(i.pattern).test(t);return{rule:i.displayName,ruleKey:i.errorKey,passed:r}})}setValidity(){var t,i;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((t=this.passwordComplexity)===null||t===void 0)&&t.every(e=>e.passed)?(i=this.inputReference)===null||i===void 0?void 0:i.validity.valid:!1}setPattern(){var t,i;if(((t=this.validation.custom)===null||t===void 0?void 0:t.length)>0)return(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var t,i,e,r;if(this.isDuplicateInput&&!this.originalValid)return o.translate("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const l=(t=this.validation.custom.find(n=>n.rule==="regex"))===null||t===void 0?void 0:t.errorKey,d=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return o.translate(`${l}`,this.language)?o.translate(`${l}`,this.language):d}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return o.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return o.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const l=(e=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||e===void 0?void 0:e.errorKey,d=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return o.translate(`${l}`,this.language)?o.translate(`${l}`,this.language):d}}renderTooltip(){return this.showTooltip?s.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}renderComplexityPopup(){const t=this.passwordComplexity.length,e=this.passwordComplexity.filter(l=>l.passed).length/t,r=this.passwordComplexity.every(l=>l.passed);return s.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},s.h("div",{class:"password__complexity--strength"},s.h("p",{class:"password__complexity--text"},o.translate("passwordStrength",this.language)," ",s.h("span",{class:"password__complexity--text-bold"},o.translate(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),s.h("meter",{value:e,min:"0",max:"1"})),s.h("div",null,this.passwordComplexity.map((l,d)=>s.h("div",{key:d},s.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:l.passed,disabled:!0}),s.h("span",null,o.translate(`${l.ruleKey}`,this.language)?o.translate(`${l.ruleKey}`,this.language):l.rule)))))}render(){let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),s.h("div",{key:"36d21c63dcd15b6de2d2de417ce97b520493cd16",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},s.h("div",{key:"3de600f4ccbf2ffe7a8a8858e9d5a483701dd4d7",class:"password__wrapper--flex"},s.h("label",{key:"74fee343f4d6adbbb22e88c5d51d3a471979d42e",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),s.h("div",{key:"d1f30d776c5612b1a5581859b929bee171105bf5",class:"password__wrapper--relative"},this.tooltip&&s.h("img",{key:"932201990b5fa67f448d4ab8ca7f844f757d5e47",class:"password__tooltip-icon",src:c.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),s.h("vaadin-password-field",{key:"83f00cb4452b60fd883efcd742d6eb463a8fc729",type:"password",id:`${this.name}__input`,class:`password__input ${t}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),s.h("small",{key:"0f6f7ba5e9ec6f492f22a46ac77c7977f7a8e835",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return s.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};h.style=F;exports.player_change_password_gm2=m.PlayerChangePasswordGm2;exports.password_input=h;
|