@everymatrix/player-account-controller 1.59.2 → 1.60.0

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.
Files changed (132) hide show
  1. package/components/{GeneralLogout-DKq7aXpj.cjs → GeneralLogout-BjsDUNrm.cjs} +4 -4
  2. package/components/{GeneralLogout-D1bnYvKD.js → GeneralLogout-CrdxxT-0.js} +110 -99
  3. package/components/{GeneralLogout-oWKFw5-U.js → GeneralLogout-Cs6a0Woe.js} +118 -107
  4. package/components/{PlayerAccountBettingHistory-Ba0rbzAt.cjs → PlayerAccountBettingHistory-Bu3VS2Sg.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-B5a8vPwA.js → PlayerAccountBettingHistory-DznJRKHH.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-cvLnLJaM.js → PlayerAccountBettingHistory-HLjCXypd.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-ClTvex4w.js → PlayerAccountBiometrics-CIo8pkfn.js} +1 -1
  8. package/components/{PlayerAccountBiometrics-244_l2MD.js → PlayerAccountBiometrics-DpVTOI5S.js} +1 -1
  9. package/components/{PlayerAccountBiometrics-D3SdfZAk.cjs → PlayerAccountBiometrics-DvJlyQ8z.cjs} +1 -1
  10. package/components/{PlayerAccountClosure-Dk5N1AgF.cjs → PlayerAccountClosure-Bgcd5aWK.cjs} +1 -1
  11. package/components/{PlayerAccountClosure-9BJkNHZ1.js → PlayerAccountClosure-DJx7NuYi.js} +1 -1
  12. package/components/{PlayerAccountClosure-CUDjmpCz.js → PlayerAccountClosure-DUnNJuF0.js} +1 -1
  13. package/components/{PlayerAccountController-BiLGpVLk.js → PlayerAccountController-BHULNGiG.js} +697 -633
  14. package/components/PlayerAccountController-C7RCoOhc.cjs +1 -0
  15. package/components/{PlayerAccountController-DkT-NObO.js → PlayerAccountController-oC2_eSvR.js} +695 -631
  16. package/components/{PlayerAccountGamingLimits-CGZB2W3L.js → PlayerAccountGamingLimits-DiTQMKO-.js} +2 -2
  17. package/components/{PlayerAccountGamingLimits-FIGZjiiE.cjs → PlayerAccountGamingLimits-UmFJS4yG.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimits-C2OQmz0L.js → PlayerAccountGamingLimits-t-Kt6fD1.js} +2 -2
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-CMNuF6Yo.js → PlayerAccountGamingLimitsConfirmationModal-BOqmU6ao.js} +1 -1
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs → PlayerAccountGamingLimitsConfirmationModal-BTGWvZ_H.cjs} +1 -1
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-apD3a9Bz.js → PlayerAccountGamingLimitsConfirmationModal-CJS6pzAL.js} +1 -1
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-Cj28m25L.js → PlayerAccountGamingLimitsGroupEdit-Cohx9d0h.js} +4 -4
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-DrfWEw7D.js → PlayerAccountGamingLimitsGroupEdit-DQ4LAIh3.js} +4 -4
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs → PlayerAccountGamingLimitsGroupEdit-DWXrW8rz.cjs} +2 -2
  25. package/components/{PlayerAccountGamingLimitsHistory2-D90-0n9S.cjs → PlayerAccountGamingLimitsHistory2-1CxT-5pd.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsHistory2-CsMgI2vP.js → PlayerAccountGamingLimitsHistory2-CZWoK_f5.js} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2-CL7qYX9D.js → PlayerAccountGamingLimitsHistory2-DuWgdsnY.js} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs → PlayerAccountGamingLimitsInfoCard-7dQquqQ4.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsInfoCard-CFusXmG3.js → PlayerAccountGamingLimitsInfoCard-AOCz2477.js} +3 -3
  30. package/components/{PlayerAccountGamingLimitsInfoCard-C-SGItlz.js → PlayerAccountGamingLimitsInfoCard-wb1MgSRM.js} +3 -3
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-DAMLMUMu.cjs → PlayerAccountGamingLimitsPage2Gm16-DQhfQZf3.cjs} +1 -1
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-DoZ7M3C6.js → PlayerAccountGamingLimitsPage2Gm16-DqVb6gUu.js} +1 -1
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-BfV10mIx.js → PlayerAccountGamingLimitsPage2Gm16-yGmurNY8.js} +1 -1
  34. package/components/{PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs → PlayerAccountGamingLimitsPopup-Bq6g8_Ex.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPopup-4sFhABTh.js → PlayerAccountGamingLimitsPopup-Byk1Oi5A.js} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-Cut_OV-5.js → PlayerAccountGamingLimitsPopup-Cou16qpk.js} +1 -1
  37. package/components/{PlayerAccountGamingLimitsWrapper2-BVbh0mz9.js → PlayerAccountGamingLimitsWrapper2-BEDe0nx6.js} +3 -3
  38. package/components/{PlayerAccountGamingLimitsWrapper2-Bh2EK-EX.js → PlayerAccountGamingLimitsWrapper2-BMjMekAI.js} +3 -3
  39. package/components/{PlayerAccountGamingLimitsWrapper2-C8v3JMxo.cjs → PlayerAccountGamingLimitsWrapper2-BTn_7__K.cjs} +1 -1
  40. package/components/{PlayerAccountGeneralConfirmationModal-Cxl-LoG0.js → PlayerAccountGeneralConfirmationModal-DTd4PiMe.js} +1 -1
  41. package/components/{PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs → PlayerAccountGeneralConfirmationModal-DoognqGf.cjs} +1 -1
  42. package/components/{PlayerAccountGeneralConfirmationModal-L97vGeau.js → PlayerAccountGeneralConfirmationModal-kdUl-EBq.js} +1 -1
  43. package/components/{PlayerAccountMenu-BIdnddS_.cjs → PlayerAccountMenu-C5GtMCo6.cjs} +1 -1
  44. package/components/{PlayerAccountMenu-DUTsp-yv.js → PlayerAccountMenu-CqVrDqg2.js} +2 -2
  45. package/components/{PlayerAccountMenu-CBgydCnL.js → PlayerAccountMenu-DNaPK2TZ.js} +2 -2
  46. package/components/{PlayerAccountModal-7R2WRCgZ.js → PlayerAccountModal-Cgwoz0_A.js} +1 -1
  47. package/components/{PlayerAccountModal-C7_3et-5.js → PlayerAccountModal-ZSZxImk8.js} +1 -1
  48. package/components/{PlayerAccountModal-tginaXbZ.cjs → PlayerAccountModal-zI2QLAL1.cjs} +1 -1
  49. package/components/{PlayerAccountNotifications-BLsxWrq2.cjs → PlayerAccountNotifications-B-wkpb9J.cjs} +1 -1
  50. package/components/{PlayerAccountNotifications-BQPI0SJW.js → PlayerAccountNotifications-B1K_Z2TT.js} +1 -1
  51. package/components/{PlayerAccountNotifications-DcYU4F80.js → PlayerAccountNotifications-Cf28JRBn.js} +1 -1
  52. package/components/{PlayerAccountSelfExclusion--Rn9q2b5.js → PlayerAccountSelfExclusion-DSxM_f45.js} +1 -1
  53. package/components/{PlayerAccountSelfExclusion-CKVraXB_.cjs → PlayerAccountSelfExclusion-DlekYIJO.cjs} +1 -1
  54. package/components/{PlayerAccountSelfExclusion-DPebzB6p.js → PlayerAccountSelfExclusion-DxRAfTZT.js} +1 -1
  55. package/components/{PlayerAccountTimeout-Canoqg7a.cjs → PlayerAccountTimeout-BBpwfboX.cjs} +1 -1
  56. package/components/{PlayerAccountTimeout-BUMA2T0A.js → PlayerAccountTimeout-BVATVPRq.js} +3 -3
  57. package/components/{PlayerAccountTimeout-TtjDitl7.js → PlayerAccountTimeout-Bb58NRXY.js} +3 -3
  58. package/components/{PlayerActiveBonuses-DbsciRwF.cjs → PlayerActiveBonuses-CBqsWQfE.cjs} +1 -1
  59. package/components/{PlayerActiveBonuses-BU_F0tZ-.js → PlayerActiveBonuses-DXMMRNp0.js} +2 -2
  60. package/components/{PlayerActiveBonuses-DMlTBfp8.js → PlayerActiveBonuses-Dt0N6Bn0.js} +2 -2
  61. package/components/{PlayerBonusCard-DSwyV5g7.js → PlayerBonusCard-CH-ncifJ.js} +2 -2
  62. package/components/{PlayerBonusCard-BzDP362v.cjs → PlayerBonusCard-CJXjuXsU.cjs} +1 -1
  63. package/components/{PlayerBonusCard-DVgOCZFk.js → PlayerBonusCard-Di1Znpi1.js} +2 -2
  64. package/components/{PlayerBonusHistory-Dd_3VBh2.js → PlayerBonusHistory-CG4iedyf.js} +4 -4
  65. package/components/{PlayerBonusHistory-6VkWn4IH.js → PlayerBonusHistory-CHDc8kFG.js} +4 -4
  66. package/components/{PlayerBonusHistory-C6qXEcVu.cjs → PlayerBonusHistory-Dt0nm--k.cjs} +1 -1
  67. package/components/{PlayerChangePassword-DRF3YUcY.js → PlayerChangePassword-Cy_iUEwl.js} +1 -1
  68. package/components/{PlayerChangePassword-DIVU7Hm-.js → PlayerChangePassword-DMiyyEYC.js} +1 -1
  69. package/components/{PlayerChangePassword-DZ0zUct-.cjs → PlayerChangePassword-awaQVsiP.cjs} +1 -1
  70. package/components/{PlayerDeposit-Bu1poUUC.js → PlayerDeposit-BFpoULil.js} +1 -1
  71. package/components/{PlayerDeposit-CC1ZNh0V.js → PlayerDeposit-BUbpr-x6.js} +1 -1
  72. package/components/{PlayerDeposit-2rXfB2O5.cjs → PlayerDeposit-_oIOMh8l.cjs} +1 -1
  73. package/components/{PlayerGamingHistory-nRhNghIt.cjs → PlayerGamingHistory-Bw_u3E09.cjs} +1 -1
  74. package/components/{PlayerGamingHistory-DdtNlqpX.js → PlayerGamingHistory-Cy9FMn9D.js} +4 -4
  75. package/components/{PlayerGamingHistory-DV6n7mPC.js → PlayerGamingHistory-RqKyBLJf.js} +4 -4
  76. package/components/{PlayerPendingWithdrawals-CaouMSqA.js → PlayerPendingWithdrawals-Dc91b0Cm.js} +1 -1
  77. package/components/{PlayerPendingWithdrawals-UG-bN1ca.cjs → PlayerPendingWithdrawals-aaHugNLD.cjs} +1 -1
  78. package/components/{PlayerPendingWithdrawals-BAYRu_8K.js → PlayerPendingWithdrawals-ttbTlX0c.js} +1 -1
  79. package/components/PlayerProfileInfo-DXGC3Nhp.js +2059 -0
  80. package/components/PlayerProfileInfo-tYfJSyL9.cjs +1 -0
  81. package/components/PlayerProfileInfo-yGYztqLK.js +2087 -0
  82. package/components/{PlayerRealityCheck-BmVSMTSf.cjs → PlayerRealityCheck-BobhhM62.cjs} +1 -1
  83. package/components/{PlayerRealityCheck-CI5fiJv3.js → PlayerRealityCheck-C9j8cYwx.js} +1 -1
  84. package/components/{PlayerRealityCheck-DL5sLluu.js → PlayerRealityCheck-D7YLuHGQ.js} +1 -1
  85. package/components/{PlayerTransactionHistory-BGPDkKNI.js → PlayerTransactionHistory-BHDwTuEi.js} +1 -1
  86. package/components/{PlayerTransactionHistory-U2CncC4r.cjs → PlayerTransactionHistory-Dff51WQG.cjs} +1 -1
  87. package/components/{PlayerTransactionHistory-x-p-YOv6.js → PlayerTransactionHistory-fsxifDQz.js} +1 -1
  88. package/components/{PlayerWithdrawal-BknOF8Sy.js → PlayerWithdrawal-4QbyF-GU.js} +1 -1
  89. package/components/{PlayerWithdrawal-Cx3cOp7C.js → PlayerWithdrawal-D6ic1PCk.js} +1 -1
  90. package/components/{PlayerWithdrawal-CsPPu5bX.cjs → PlayerWithdrawal-DdPBGufW.cjs} +1 -1
  91. package/es2015/player-account-controller.cjs +1 -1
  92. package/es2015/player-account-controller.js +1 -1
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +2 -2
  95. package/stencil/checkbox-group-input_9-C7zEH4Cn.js +3883 -0
  96. package/stencil/checkbox-group-input_9-CMfQeYlH.cjs +2 -0
  97. package/stencil/checkbox-group-input_9-OVj7AW5S.js +3883 -0
  98. package/stencil/general-input-BlFYbInU.cjs +4546 -0
  99. package/stencil/general-input-C7B1PVb4.js +12201 -0
  100. package/stencil/general-input-DoSeJn3k.js +12201 -0
  101. package/stencil/{index-9cd44522-C5N2LdVm.js → index-9cd44522-BOHK5Ehb.js} +4 -4
  102. package/stencil/{index-9cd44522-BbKqQXqL.js → index-9cd44522-C8s3TvoU.js} +4 -4
  103. package/stencil/{index-9cd44522-QIMe52Dh.cjs → index-9cd44522-D9raG3xx.cjs} +1 -1
  104. package/stencil/password-input_2-5nC89CMj.js +311 -0
  105. package/stencil/password-input_2-DJSgcWve.js +311 -0
  106. package/stencil/password-input_2-ZOEOuaOe.cjs +193 -0
  107. package/stencil/{player-change-password-gm2-039e300e-BU9mX4ix.cjs → player-change-password-gm2-039e300e-C-kbOfS1.cjs} +1 -1
  108. package/stencil/{player-change-password-gm2-039e300e-1NkfHZ6r.js → player-change-password-gm2-039e300e-C_f58yBE.js} +1 -1
  109. package/stencil/{player-change-password-gm2-039e300e-BLQGT3AW.js → player-change-password-gm2-039e300e-D4KfL3dW.js} +1 -1
  110. package/stencil/{player-change-password-gm2-E5xKJgy3.js → player-change-password-gm2-3aRR8E4W.js} +1 -1
  111. package/stencil/{player-change-password-gm2-Cyx-9oVQ.js → player-change-password-gm2-BJ2Ur7Zx.js} +1 -1
  112. package/stencil/{player-change-password-gm2-BWRiCTIP.cjs → player-change-password-gm2-CHK-mhQ9.cjs} +1 -1
  113. package/stencil/{toggle-checkbox-input-3f7U98vC.js → toggle-checkbox-input-BRL1Xahc.js} +23 -9
  114. package/stencil/toggle-checkbox-input-CPDZs55S.cjs +1 -0
  115. package/stencil/{toggle-checkbox-input-DDDgLFw4.js → toggle-checkbox-input-cLWFox9n.js} +23 -9
  116. package/components/PlayerAccountController-hgfiZXi1.cjs +0 -1
  117. package/components/PlayerProfileInfo-BLPDFygv.js +0 -1806
  118. package/components/PlayerProfileInfo-D3NxPM1Z.js +0 -1823
  119. package/components/PlayerProfileInfo-DLth9JMy.cjs +0 -1
  120. package/stencil/checkbox-group-input_9-BkT4UtkZ.js +0 -13282
  121. package/stencil/checkbox-group-input_9-CDYbpnEQ.cjs +0 -2045
  122. package/stencil/checkbox-group-input_9-CMQLu-qB.js +0 -13248
  123. package/stencil/general-input--MP17Hyz.cjs +0 -1
  124. package/stencil/general-input-BqgyG6fv.js +0 -48
  125. package/stencil/general-input-V-ZuyFa5.js +0 -48
  126. package/stencil/password-input_2-C_mvPSDp.js +0 -589
  127. package/stencil/password-input_2-DeRFrP9K.cjs +0 -105
  128. package/stencil/password-input_2-g7twAnPT.js +0 -589
  129. package/stencil/toggle-checkbox-input-DXFebhBM.cjs +0 -1
  130. package/stencil/vaadin-button-mixin-e8c3f355-BdntioNA.cjs +0 -2391
  131. package/stencil/vaadin-button-mixin-e8c3f355-DON-rAuy.js +0 -10228
  132. package/stencil/vaadin-button-mixin-e8c3f355-DQ5UgwNf.js +0 -10302
@@ -1,105 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-9cd44522-QIMe52Dh.cjs"),o=require("./locale-BB2iZ4t0.cjs"),a=require("./vaadin-button-mixin-e8c3f355-BdntioNA.cjs"),c=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),m=require("./player-change-password-gm2-039e300e-BU9mX4ix.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",7),this.sendValidityState=s.createEvent(this,"sendValidityState",7),this.sendInputValue=s.createEvent(this,"sendInputValue",7),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;