@everymatrix/player-account-controller 1.54.6 → 1.54.8
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/{GeneralLogout-Ddt-oH9k.js → GeneralLogout-ChXyfO7j.js} +504 -512
- package/components/GeneralLogout-CoXr5Hra.js +4819 -0
- package/components/GeneralLogout-JiIri-az.cjs +8 -0
- package/components/PlayerAccountBettingHistory-C4SfQEr4.js +333 -0
- package/components/{PlayerAccountBettingHistory-C7xwYi03.js → PlayerAccountBettingHistory-CElNilNd.js} +24 -24
- package/components/PlayerAccountBettingHistory-CSI5k3hd.cjs +1 -0
- package/components/PlayerAccountBiometrics-BS3jkUXn.cjs +1 -0
- package/components/{PlayerAccountBiometrics-D7WS5cnI.js → PlayerAccountBiometrics-D9kYcZXR.js} +26 -26
- package/components/PlayerAccountBiometrics-orQ-qG9h.js +307 -0
- package/components/{PlayerAccountClosure-yRlo8hXR.js → PlayerAccountClosure-CHUq23nB.js} +13 -13
- package/components/PlayerAccountClosure-CWd3utu_.js +347 -0
- package/components/PlayerAccountClosure-DdfqiT7d.cjs +1 -0
- package/components/{PlayerAccountController-BEYNBwE6.js → PlayerAccountController-BclvS237.js} +126 -126
- package/components/PlayerAccountController-DEXL47fX.js +6671 -0
- package/components/PlayerAccountController-DX3vsM6e.cjs +1 -0
- package/components/PlayerAccountGamingLimits-CKnItii4.cjs +1 -0
- package/components/{PlayerAccountGamingLimits-CTBhVGgC.js → PlayerAccountGamingLimits-DXQNmZKD.js} +19 -19
- package/components/PlayerAccountGamingLimits-Db6qUAS-.js +766 -0
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js → PlayerAccountGamingLimitsConfirmationModal-i09zMH6w.js} +59 -59
- package/components/PlayerAccountGamingLimitsConfirmationModal-jZS53-sU.cjs +1 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-l4fu3WOl.js +310 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js → PlayerAccountGamingLimitsGroupEdit-BIt0U7Ia.js} +51 -51
- package/components/PlayerAccountGamingLimitsGroupEdit-CsnzS7iF.js +4170 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-DZlV6G_9.cjs +10 -0
- package/components/PlayerAccountGamingLimitsHistory2-CrW3EIzV.cjs +1 -0
- package/components/{PlayerAccountGamingLimitsHistory2-CXKA0L0d.js → PlayerAccountGamingLimitsHistory2-D04L-msb.js} +44 -44
- package/components/PlayerAccountGamingLimitsHistory2-DA5YY1gv.js +767 -0
- package/components/{PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js → PlayerAccountGamingLimitsInfoCard-B2YB4bdP.js} +95 -95
- package/components/PlayerAccountGamingLimitsInfoCard-B4t7J9Ea.js +1513 -0
- package/components/PlayerAccountGamingLimitsInfoCard-CaJYYEdy.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-B1GlGvDK.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-CbtwzTC5.js +3283 -0
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js → PlayerAccountGamingLimitsPage2Gm16-D8OKZxQt.js} +90 -90
- package/components/{PlayerAccountGamingLimitsPopup-CJu5RRl6.js → PlayerAccountGamingLimitsPopup-B7ZXSiK5.js} +17 -17
- package/components/PlayerAccountGamingLimitsPopup-C9KoZcRj.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPopup-DxXAP_Yw.js +344 -0
- package/components/{PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js → PlayerAccountGamingLimitsWrapper2-BoFnZpPK.js} +8 -8
- package/components/PlayerAccountGamingLimitsWrapper2-Dll6Amu9.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-eSNYZCaw.js +866 -0
- package/components/PlayerAccountGeneralConfirmationModal-B-p3sJZ3.cjs +1 -0
- package/components/{PlayerAccountGeneralConfirmationModal-DG0N686t.js → PlayerAccountGeneralConfirmationModal-DLBQH_sl.js} +66 -66
- package/components/PlayerAccountGeneralConfirmationModal-DhTWcbuE.js +365 -0
- package/components/PlayerAccountMenu-BGRoL3Yz.js +579 -0
- package/components/{PlayerAccountMenu-CZBa8_5G.js → PlayerAccountMenu-BxjdHhZ_.js} +17 -17
- package/components/PlayerAccountMenu-Csb1tUf_.cjs +1 -0
- package/components/{PlayerAccountModal-BmKjtXKT.js → PlayerAccountModal-C4nIa5u0.js} +28 -28
- package/components/PlayerAccountModal-D29fr970.js +213 -0
- package/components/PlayerAccountModal-DabmJiP4.cjs +1 -0
- package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-4sGKSJWy.js} +16 -16
- package/components/PlayerAccountNotifications-C3rPIsKp.js +261 -0
- package/components/PlayerAccountNotifications-O92_s-dm.cjs +1 -0
- package/components/PlayerAccountSelfExclusion-BkBWGAy2.cjs +3557 -0
- package/components/PlayerAccountSelfExclusion-CpKuxBrZ.js +16678 -0
- package/components/{PlayerAccountSelfExclusion-DxGHXTb8.js → PlayerAccountSelfExclusion-U9dfheYH.js} +11029 -12570
- package/components/PlayerAccountTimeout-CucYpS_w.cjs +1 -0
- package/components/{PlayerAccountTimeout-DOSjICsY.js → PlayerAccountTimeout-DIRXKowJ.js} +25 -25
- package/components/PlayerAccountTimeout-c2osWNku.js +819 -0
- package/components/{PlayerActiveBonuses-DMAG7NUP.js → PlayerActiveBonuses-B2QAPJxC.js} +49 -49
- package/components/PlayerActiveBonuses-DDcAwy_n.js +1089 -0
- package/components/PlayerActiveBonuses-cecVnp46.cjs +1 -0
- package/components/{PlayerBonusCard-Dss1REmn.js → PlayerBonusCard-BQU7JBPr.js} +50 -50
- package/components/PlayerBonusCard-C9Xdv-lu.cjs +1 -0
- package/components/PlayerBonusCard-TYI-WkBy.js +701 -0
- package/components/{PlayerBonusHistory-bS_5m4-D.js → PlayerBonusHistory-Boz8c3tb.js} +30 -30
- package/components/PlayerBonusHistory-CMPf8GQz.cjs +1 -0
- package/components/PlayerBonusHistory-cNqY_wfD.js +920 -0
- package/components/{PlayerChangePassword-DnCj-wcc.js → PlayerChangePassword-BGxYGFs-.js} +103 -103
- package/components/PlayerChangePassword-Dl3Pgpul.js +1177 -0
- package/components/PlayerChangePassword-X_GfgxAV.cjs +3 -0
- package/components/{PlayerDeposit-CHIQ8EaC.js → PlayerDeposit-BzSW3HMj.js} +25 -25
- package/components/PlayerDeposit-CqpNLpaq.cjs +1 -0
- package/components/PlayerDeposit-kjy658sM.js +395 -0
- package/components/PlayerGamingHistory-B6KJDVn0.cjs +1 -0
- package/components/PlayerGamingHistory-BW5rigFC.js +986 -0
- package/components/{PlayerGamingHistory-ByyLQwtw.js → PlayerGamingHistory-DIgLxCfL.js} +31 -31
- package/components/PlayerPendingWithdrawals--W6Dfn3K.cjs +1 -0
- package/components/{PlayerPendingWithdrawals-BbTa7_8U.js → PlayerPendingWithdrawals-BzOmRYiC.js} +33 -33
- package/components/PlayerPendingWithdrawals-pV1C12y5.js +311 -0
- package/components/PlayerProfileInfo-BTgis7wR.cjs +1 -0
- package/components/{PlayerProfileInfo-CvAqD3Dk.js → PlayerProfileInfo-CTgSfW-l.js} +45 -45
- package/components/PlayerProfileInfo-DkVAYiPX.js +1753 -0
- package/components/PlayerRealityCheck-BcsDhvm0.cjs +1 -0
- package/components/{PlayerRealityCheck-3d-B64ie.js → PlayerRealityCheck-BdZDs3Tl.js} +26 -26
- package/components/PlayerRealityCheck-DT3kOky2.js +598 -0
- package/components/PlayerTransactionHistory-BL92RRLF.cjs +1 -0
- package/components/{PlayerTransactionHistory-BYJNabMB.js → PlayerTransactionHistory-BQIA4QRw.js} +23 -23
- package/components/PlayerTransactionHistory-Yhwt7kUa.js +315 -0
- package/components/{PlayerWithdrawal-DDWroufG.js → PlayerWithdrawal-Cgv9nZE8.js} +20 -20
- package/components/PlayerWithdrawal-KgqM9wo-.cjs +1 -0
- package/components/PlayerWithdrawal-uB46JhmK.js +369 -0
- package/es2015/player-account-controller.cjs +1 -0
- package/es2015/player-account-controller.js +16 -0
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-8artnnwr.cjs +1 -0
- package/stencil/checkbox-group-input_9-AKw0biZc.cjs +2045 -0
- package/stencil/checkbox-group-input_9-BewIfW-f.js +13203 -0
- package/stencil/checkbox-group-input_9-CbFpcwPG.js +13237 -0
- package/stencil/{general-input-CQlnWzpy.js → general-input-BEcUF0Mm.js} +1 -1
- package/stencil/general-input-DI0pw0ot.cjs +1 -0
- package/stencil/general-input-DKyA-W8i.js +48 -0
- package/stencil/index-581287aa-CC7128Vz.js +654 -0
- package/stencil/index-581287aa-D5QW29QV.cjs +1 -0
- package/stencil/index-581287aa-D8NTWa_9.js +638 -0
- package/stencil/index-8b4525de-BFiXEsaX.cjs +1 -0
- package/stencil/index-8b4525de-C2xAv-3x.js +708 -0
- package/stencil/index-8b4525de-DeHXGvRF.js +692 -0
- package/stencil/index-a76d30c7-CFX9mSqu.cjs +1 -0
- package/stencil/index-a76d30c7-CQrAWNu0.js +658 -0
- package/stencil/index-a76d30c7-PfqrSVyu.js +631 -0
- package/stencil/index-c0196f50-3kAjMpUS.cjs +1 -0
- package/stencil/index-c0196f50-BjscP7kj.js +697 -0
- package/stencil/index-c0196f50-aE1zPmtS.js +724 -0
- package/stencil/locale-B5abSHU_.cjs +1 -0
- package/stencil/password-input_2-D97O8QAr.cjs +105 -0
- package/stencil/password-input_2-eDchPH-o.js +569 -0
- package/stencil/password-input_2-vTvSUJey.js +569 -0
- package/stencil/{player-change-password-gm2-BaQUJaH1.js → player-change-password-gm2-D4jpQFwb.js} +1 -1
- package/stencil/player-change-password-gm2-DSTqyOhE.js +25 -0
- package/stencil/player-change-password-gm2-Dw3D3ckz.cjs +1 -0
- package/stencil/{player-change-password-gm2-98dcb7bc-pj_6Z40p.js → player-change-password-gm2-e732ee8e-BjoYj-89.js} +1 -1
- package/stencil/player-change-password-gm2-e732ee8e-BqRUxIre.cjs +1 -0
- package/stencil/player-change-password-gm2-e732ee8e-Df6ljnLL.js +253 -0
- package/stencil/player-kyc-verification-B2FHAsrR.cjs +180 -0
- package/stencil/player-kyc-verification-CVqP43FY.js +865 -0
- package/stencil/{player-kyc-verification-BQZdJFEJ.js → player-kyc-verification-D6Au6XVN.js} +1 -1
- package/stencil/{toggle-checkbox-input-Sy9vd4Jp.js → toggle-checkbox-input-BckTBwKu.js} +1 -1
- package/stencil/toggle-checkbox-input-D8fVk4wA.js +46 -0
- package/stencil/toggle-checkbox-input-kw5Y1n3x.cjs +1 -0
- package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +1 -0
- package/stencil/user-deposit-withdrawal-BpAi0dc-.js +668 -0
- package/stencil/{user-deposit-withdrawal-CmF0LoNb.js → user-deposit-withdrawal-CrMPR6xn.js} +1 -1
- package/stencil/user-deposit-withdrawal-DrKFN7wp.cjs +59 -0
- package/stencil/{user-transaction-history-BgV-k2Cl.js → user-transaction-history-BgYG3IxS.js} +1 -1
- package/stencil/user-transaction-history-CBxwJE34.cjs +1 -0
- package/stencil/user-transaction-history-D8ebS-DZ.js +355 -0
- package/stencil/{active-mixin-59dfae2a-BphP4pp5.js → vaadin-button-mixin-d131076c-C559kyH3.js} +3523 -3021
- package/stencil/vaadin-button-mixin-d131076c-brSraXp5.js +10277 -0
- package/stencil/vaadin-button-mixin-d131076c-zI_s2YZ5.cjs +2385 -0
- package/stencil/checkbox-group-input_9-i8KmOWKn.js +0 -15610
- package/stencil/index-062e829b-CboMDKTu.js +0 -686
- package/stencil/index-33f005e1-fFxPaeNy.js +0 -632
- package/stencil/index-9b3245b3-rzHgwqlB.js +0 -625
- package/stencil/index-fc58390d-BSwfXuUs.js +0 -691
- package/stencil/password-input_2-sxSehMYk.js +0 -2359
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as h, p as g, r as y, h as i, F as u } from "./index-
|
|
1
|
+
import { b as h, p as g, r as y, h as i, F as u } from "./index-a76d30c7-PfqrSVyu.js";
|
|
2
2
|
import { a as v } from "./app-globals-0f993ce5-C0vi_PY4.js";
|
|
3
3
|
var w = () => {
|
|
4
4
|
const e = import.meta.url, n = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as l, c as o, h as t } from "./index-
|
|
1
|
+
import { r as l, c as o, h as t } from "./index-8b4525de-C2xAv-3x.js";
|
|
2
2
|
import { t as a } from "./locale-BG_TzyDt.js";
|
|
3
3
|
import { t as r } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
|
|
4
4
|
const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}', n = s, c = class {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { r as l, c as o, h as t } from "./index-8b4525de-DeHXGvRF.js";
|
|
2
|
+
import { t as a } from "./locale-BG_TzyDt.js";
|
|
3
|
+
import { t as r } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
|
|
4
|
+
const s = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}', n = s, c = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
l(this, e), this.sendValidityState = o(this, "sendValidityState"), this.sendInputValue = o(this, "sendInputValue"), this.defaultValue = "", this.clientStyling = "", this.limitStylingAppends = !1, this.showTooltip = !1, this.showFields = this.defaultValue === "true", this.value = "", this.setClientStyling = () => {
|
|
7
|
+
let i = document.createElement("style");
|
|
8
|
+
i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
validityStateHandler(e) {
|
|
12
|
+
this.sendValidityState.emit(e);
|
|
13
|
+
}
|
|
14
|
+
valueHandler(e) {
|
|
15
|
+
this.sendInputValue.emit(e);
|
|
16
|
+
}
|
|
17
|
+
handleClickOutside(e) {
|
|
18
|
+
e.composedPath()[0] !== this.tooltipIconReference && e.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
|
|
19
|
+
}
|
|
20
|
+
componentDidRender() {
|
|
21
|
+
!this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
|
|
22
|
+
}
|
|
23
|
+
handleClick() {
|
|
24
|
+
this.showFields = this.checkboxReference.checked, this.errorMessage = this.setErrorMessage(), this.isValid = this.setValidity(), this.valueHandler({ name: this.name, value: this.checkboxReference.checked ? "true" : "false", type: "toggle" });
|
|
25
|
+
}
|
|
26
|
+
setValidity() {
|
|
27
|
+
return this.checkboxReference.validity.valid;
|
|
28
|
+
}
|
|
29
|
+
setErrorMessage() {
|
|
30
|
+
if (this.checkboxReference.validity.valueMissing)
|
|
31
|
+
return a("requiredError", this.language);
|
|
32
|
+
}
|
|
33
|
+
renderLabel() {
|
|
34
|
+
return t("label", { class: "togglecheckbox__label", htmlFor: `${this.name}__input` }, t("div", { class: "togglecheckbox__label-text", innerHTML: `${this.displayName} ${this.validation.mandatory ? "*" : ""}` }));
|
|
35
|
+
}
|
|
36
|
+
renderTooltip() {
|
|
37
|
+
return this.showTooltip ? t("div", { class: `togglecheckbox__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (e) => this.tooltipReference = e, innerHTML: this.tooltip }) : null;
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return t("div", { key: "8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed", class: `togglecheckbox__wrapper ${this.name}__input`, ref: (e) => this.stylingContainer = e }, t("div", { key: "18e2ec43ff98738323ddab1e134d6d215978e1c7", class: "togglecheckbox__wrapper--flex" }, t("input", { key: "640b3ba4fd34bd813239533236e51f452e735409", class: "togglecheckbox__input", type: "checkbox", id: `${this.name}__input`, ref: (e) => this.checkboxReference = e, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel()), t("small", { key: "efd70a691559cfa98e93561dd945a0fe92909718", class: "togglecheckbox__error-message" }, this.errorMessage), t("div", { key: "e56a8fafa17da25d01f894fe6e6c143c318d2aab", class: "togglecheckbox__wrapper--relative" }, this.tooltip && t("img", { key: "8b59366827b8f4f8ca5581203a2dca44ae8132d5", class: "togglecheckbox__tooltip-icon", src: r, alt: "", ref: (e) => this.tooltipIconReference = e, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), t("div", { key: "475e27345b51396c36e78b5a1e06edd980bc3ae1", class: `togglecheckbox__fields-wrapper ${this.showFields ? "" : "hidden"}` }, this.options.map((e) => t("general-input", { type: e.inputType, name: e.name, displayName: e.displayName, validation: e.validate, action: e.action || null, defaultValue: e.defaultValue, autofilled: e.autofill, emitValue: this.emitValue, language: this.language, "client-styling": this.clientStyling, tooltip: e.tooltip, placeholder: e.placeholder == null ? "" : e.placeholder }))));
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
c.style = n;
|
|
44
|
+
export {
|
|
45
|
+
c as toggle_checkbox_input
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-8b4525de-BFiXEsaX.cjs"),l=require("./locale-B5abSHU_.cjs"),a=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),r='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',s=r,o=class{constructor(e){t.registerInstance(this,e),this.sendValidityState=t.createEvent(this,"sendValidityState"),this.sendInputValue=t.createEvent(this,"sendInputValue"),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true",this.value="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)}}validityStateHandler(e){this.sendValidityState.emit(e)}valueHandler(e){this.sendInputValue.emit(e)}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return l.translate("requiredError",this.language)}renderLabel(){return t.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},t.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?t.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:e=>this.tooltipReference=e,innerHTML:this.tooltip}):null}render(){return t.h("div",{key:"8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed",class:`togglecheckbox__wrapper ${this.name}__input`,ref:e=>this.stylingContainer=e},t.h("div",{key:"18e2ec43ff98738323ddab1e134d6d215978e1c7",class:"togglecheckbox__wrapper--flex"},t.h("input",{key:"640b3ba4fd34bd813239533236e51f452e735409",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:e=>this.checkboxReference=e,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),t.h("small",{key:"efd70a691559cfa98e93561dd945a0fe92909718",class:"togglecheckbox__error-message"},this.errorMessage),t.h("div",{key:"e56a8fafa17da25d01f894fe6e6c143c318d2aab",class:"togglecheckbox__wrapper--relative"},this.tooltip&&t.h("img",{key:"8b59366827b8f4f8ca5581203a2dca44ae8132d5",class:"togglecheckbox__tooltip-icon",src:a.tooltipIconSvg,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),t.h("div",{key:"475e27345b51396c36e78b5a1e06edd980bc3ae1",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(e=>t.h("general-input",{type:e.inputType,name:e.name,displayName:e.displayName,validation:e.validate,action:e.action||null,defaultValue:e.defaultValue,autofilled:e.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:e.tooltip,placeholder:e.placeholder==null?"":e.placeholder}))))}};o.style=s;exports.toggle_checkbox_input=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==";exports.tooltipIconSvg=I;
|