genesys-cloud-client-auth 1.0.0 → 1.0.1-release.9

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 (182) hide show
  1. package/dist/assets/{browser-ponyfill-BV2ki90r.js → browser-ponyfill-ClIr8e_L.js} +1 -1
  2. package/dist/assets/{get-valid-timezone-3bde2dae-BFRWJz7Q.js → get-valid-timezone-3bde2dae-BTz0r2Zt.js} +1 -1
  3. package/dist/assets/{gux-accordion-section.entry-jbdbmuX_.js → gux-accordion-section.entry-CujKcCg9.js} +1 -1
  4. package/dist/assets/{gux-accordion.entry-ClKYUH6r.js → gux-accordion.entry-DZmjIc-9.js} +1 -1
  5. package/dist/assets/{gux-action-button.entry-Co04Z0OV.js → gux-action-button.entry-NaNJu48L.js} +1 -1
  6. package/dist/assets/{gux-action-toast-legacy.entry-BZZz3CuU.js → gux-action-toast-legacy.entry-5Bnf-XGv.js} +1 -1
  7. package/dist/assets/{gux-advanced-dropdown-legacy.entry-Cw6SQUDA.js → gux-advanced-dropdown-legacy.entry-BALVFsjq.js} +1 -1
  8. package/dist/assets/{gux-all-row-select.entry-Ce72rVHx.js → gux-all-row-select.entry-e4deNPsH.js} +1 -1
  9. package/dist/assets/{gux-announce-beta.entry-0-IPzB8z.js → gux-announce-beta.entry-CpIkYGZZ.js} +1 -1
  10. package/dist/assets/{gux-avatar-beta.entry-D7eNcgqk.js → gux-avatar-beta.entry-TbXG5fPC.js} +1 -1
  11. package/dist/assets/{gux-avatar-change-photo-beta.entry-CdbjnSh2.js → gux-avatar-change-photo-beta.entry-DkW9hvQM.js} +1 -1
  12. package/dist/assets/{gux-avatar-focusable-beta.entry-C-N-FSgY.js → gux-avatar-focusable-beta.entry-BJ_sRUMO.js} +1 -1
  13. package/dist/assets/{gux-avatar-group-add-item-beta_3.entry-DovXgXMY.js → gux-avatar-group-add-item-beta_3.entry-Bh-3trT0.js} +1 -1
  14. package/dist/assets/{gux-avatar-group-beta.entry-C-IcLXpk.js → gux-avatar-group-beta.entry-C1w4dL4A.js} +1 -1
  15. package/dist/assets/{gux-avatar-group-item-beta.entry-CaxTOEY_.js → gux-avatar-group-item-beta.entry-Cb329VO1.js} +1 -1
  16. package/dist/assets/{gux-badge.entry-Cn9m8u98.js → gux-badge.entry-DvN3nRLX.js} +1 -1
  17. package/dist/assets/{gux-blank-state.entry-BpvRIMLX.js → gux-blank-state.entry-DSao7ktr.js} +1 -1
  18. package/dist/assets/{gux-breadcrumb-item.entry-Ca_9aDAs.js → gux-breadcrumb-item.entry-CWO7gU6O.js} +1 -1
  19. package/dist/assets/{gux-breadcrumbs.entry-C_roghwh.js → gux-breadcrumbs.entry-DdCXFTFa.js} +1 -1
  20. package/dist/assets/{gux-button-multi.entry-CBr3g1_V.js → gux-button-multi.entry-DMOjPZbU.js} +1 -1
  21. package/dist/assets/{gux-button-slot.entry-WiCUBCa6.js → gux-button-slot.entry-D4HNdu8f.js} +1 -1
  22. package/dist/assets/{gux-button_2.entry-C9uy7zui.js → gux-button_2.entry-DVzg_HQ0.js} +1 -1
  23. package/dist/assets/{gux-calendar-beta.entry-Bqerz9AU.js → gux-calendar-beta.entry-BOSOQ7YY.js} +1 -1
  24. package/dist/assets/{gux-calendar.entry-B62CdDSA.js → gux-calendar.entry-Ogc_3tGC.js} +1 -1
  25. package/dist/assets/{gux-card.entry-L6pDaqgo.js → gux-card.entry-D5kEK46O.js} +1 -1
  26. package/dist/assets/{gux-column-manager-item.entry-gcrXPu9C.js → gux-column-manager-item.entry-DVQmJy9K.js} +1 -1
  27. package/dist/assets/{gux-column-manager.entry-BWdhUqSz.js → gux-column-manager.entry-D5bpMxdz.js} +1 -1
  28. package/dist/assets/{gux-content-search.entry-Bk320YeT.js → gux-content-search.entry-BJJnDEdw.js} +1 -1
  29. package/dist/assets/{gux-context-menu.entry-sV-Bg8Mm.js → gux-context-menu.entry-DEXYZgPb.js} +1 -1
  30. package/dist/assets/{gux-copy-to-clipboard.entry-D4z3pxQw.js → gux-copy-to-clipboard.entry-C53OmAOX.js} +1 -1
  31. package/dist/assets/{gux-create-option.entry-B_Vv8g0K.js → gux-create-option.entry-BjF-h1nP.js} +1 -1
  32. package/dist/assets/{gux-cta-group.entry-BrnioXQs.js → gux-cta-group.entry-D5mMoPf5.js} +1 -1
  33. package/dist/assets/{gux-date-beta.entry-lwFmRCvN.js → gux-date-beta.entry-BCzZ566b.js} +1 -1
  34. package/dist/assets/{gux-date-time-beta.entry-HNedVv5e.js → gux-date-time-beta.entry-w0nCTkm_.js} +1 -1
  35. package/dist/assets/{gux-datepicker.entry-Cr-qDrmu.js → gux-datepicker.entry-B5L1Dxql.js} +1 -1
  36. package/dist/assets/{gux-day-beta.entry-CW80EHbX.js → gux-day-beta.entry-BQrPu1aV.js} +1 -1
  37. package/dist/assets/{gux-disclosure-button-legacy.entry-G2Tlcri7.js → gux-disclosure-button-legacy.entry-Bivzz3Cb.js} +1 -1
  38. package/dist/assets/{gux-dismiss-button.entry-DchQFWKl.js → gux-dismiss-button.entry-CFv9WjbF.js} +1 -1
  39. package/dist/assets/{gux-dropdown-multi-tag.entry-Cc9VNZOZ.js → gux-dropdown-multi-tag.entry-w-Pn3a2J.js} +1 -1
  40. package/dist/assets/{gux-dropdown-multi.entry-DjZKxJal.js → gux-dropdown-multi.entry-jqQXgZYF.js} +1 -1
  41. package/dist/assets/{gux-dropdown-option.entry-CZDjtkrF.js → gux-dropdown-option.entry-BazGMnE7.js} +1 -1
  42. package/dist/assets/{gux-dropdown_3.entry-CKiZXOT7.js → gux-dropdown_3.entry-CMfAf7VK.js} +1 -1
  43. package/dist/assets/{gux-file-list-item.entry-Dp9PwoBM.js → gux-file-list-item.entry-rnKXgjyK.js} +1 -1
  44. package/dist/assets/{gux-flag-icon-beta.entry-BTUoPqVd.js → gux-flag-icon-beta.entry-UNEnhOSd.js} +1 -1
  45. package/dist/assets/{gux-flyout-menu.entry-DqSGjmSN.js → gux-flyout-menu.entry-BERySE-P.js} +1 -1
  46. package/dist/assets/{gux-form-beta.entry-C990wv4b.js → gux-form-beta.entry-2MxPlcmT.js} +1 -1
  47. package/dist/assets/{gux-form-description.entry-SptrEE0d.js → gux-form-description.entry-2hW0hHZu.js} +1 -1
  48. package/dist/assets/{gux-form-field-checkbox-group-beta.entry-CCZf0hdH.js → gux-form-field-checkbox-group-beta.entry-CKqayh1H.js} +1 -1
  49. package/dist/assets/{gux-form-field-checkbox.entry-DFJSjM7x.js → gux-form-field-checkbox.entry-DXfPyKuv.js} +1 -1
  50. package/dist/assets/{gux-form-field-color.entry-dM32AJCZ.js → gux-form-field-color.entry-BN26wkk8.js} +1 -1
  51. package/dist/assets/{gux-form-field-container-3dd7c6ff-CbHwJYu_.js → gux-form-field-container-3dd7c6ff-BO4NBxm6.js} +1 -1
  52. package/dist/assets/{gux-form-field-dropdown.entry-qCBeETvx.js → gux-form-field-dropdown.entry-DUYckNVv.js} +1 -1
  53. package/dist/assets/{gux-form-field-error-acb40a19-CkSp2BAb.js → gux-form-field-error-acb40a19-CHMA1_Nq.js} +1 -1
  54. package/dist/assets/{gux-form-field-fieldset-container-6cb3610f-BUiTa12q.js → gux-form-field-fieldset-container-6cb3610f-DQ6-2XRL.js} +1 -1
  55. package/dist/assets/{gux-form-field-file-beta.entry-DcnNIHKz.js → gux-form-field-file-beta.entry-B1OTTsur.js} +1 -1
  56. package/dist/assets/{gux-form-field-file.entry-Dk7BocgF.js → gux-form-field-file.entry-jUCgIJcf.js} +1 -1
  57. package/dist/assets/{gux-form-field-input-clear-button.entry-Dp1QY-09.js → gux-form-field-input-clear-button.entry-aoSmjV5a.js} +1 -1
  58. package/dist/assets/{gux-form-field-label-indicator.entry-bUtvVW_r.js → gux-form-field-label-indicator.entry-Dx4x3dkU.js} +1 -1
  59. package/dist/assets/{gux-form-field-number_2.entry-DaVKhHUj.js → gux-form-field-number_2.entry-fNToJt4I.js} +1 -1
  60. package/dist/assets/{gux-form-field-phone.entry-DXsintqd.js → gux-form-field-phone.entry-ChmMJvT9.js} +1 -1
  61. package/dist/assets/{gux-form-field-radio-group-beta.entry-PbhhpeBG.js → gux-form-field-radio-group-beta.entry-C46gk24W.js} +1 -1
  62. package/dist/assets/{gux-form-field-radio.entry-n3Vla1Pu.js → gux-form-field-radio.entry-_ubq07TB.js} +1 -1
  63. package/dist/assets/{gux-form-field-range.entry-C-pjfWNA.js → gux-form-field-range.entry-BFH295OR.js} +1 -1
  64. package/dist/assets/{gux-form-field-search.entry-C-bK5ayb.js → gux-form-field-search.entry-nT_Drlgf.js} +1 -1
  65. package/dist/assets/{gux-form-field-select.entry-DQdel3gO.js → gux-form-field-select.entry-DnBd_eAO.js} +1 -1
  66. package/dist/assets/{gux-form-field-text-like.entry-CBFPlQHU.js → gux-form-field-text-like.entry-CaI0Z1Y6.js} +1 -1
  67. package/dist/assets/{gux-form-field-textarea.entry-COFKxheF.js → gux-form-field-textarea.entry-SU40qFXi.js} +1 -1
  68. package/dist/assets/{gux-form-field-time-picker.entry-CaDEWBkZ.js → gux-form-field-time-picker.entry-CTLcAsUs.js} +1 -1
  69. package/dist/assets/{gux-form-field-time-zone-picker.entry-rl7fBaGA.js → gux-form-field-time-zone-picker.entry-tUgOi_Ei.js} +1 -1
  70. package/dist/assets/{gux-form-fieldset-heading.entry-Cm0x7EQq.js → gux-form-fieldset-heading.entry-DHlW9e-I.js} +1 -1
  71. package/dist/assets/{gux-form-footer.entry-DbhwkP6b.js → gux-form-footer.entry-CRogcqyr.js} +1 -1
  72. package/dist/assets/{gux-form-heading.entry-DoUhRicG.js → gux-form-heading.entry-ub_85Z-V.js} +1 -1
  73. package/dist/assets/{gux-icon-tooltip-beta.entry-DNtzdBoU.js → gux-icon-tooltip-beta.entry-o4RPYZDs.js} +1 -1
  74. package/dist/assets/{gux-icon.entry-B97smlnI.js → gux-icon.entry-n3pWVYbp.js} +1 -1
  75. package/dist/assets/{gux-inline-alert.entry-DJZxwXFy.js → gux-inline-alert.entry-CweHLYFF.js} +1 -1
  76. package/dist/assets/{gux-label-info-beta.entry-Bi2PlCDo.js → gux-label-info-beta.entry-DbIf1YIe.js} +1 -1
  77. package/dist/assets/{gux-link-beta.entry-BI2qsXNR.js → gux-link-beta.entry-kIXBkWK9.js} +1 -1
  78. package/dist/assets/{gux-list-divider.entry-BHrFeHB6.js → gux-list-divider.entry-6u2HJN7e.js} +1 -1
  79. package/dist/assets/{gux-list-item.entry-DRUfS0q6.js → gux-list-item.entry-D5aL-4sF.js} +1 -1
  80. package/dist/assets/{gux-list.entry-D9KN4yJ5.js → gux-list.entry-D8r2B-ZP.js} +1 -1
  81. package/dist/assets/{gux-listbox-multi.entry-6t0q-9T1.js → gux-listbox-multi.entry-BtHnysab.js} +1 -1
  82. package/dist/assets/{gux-loading-message.entry-D1ze4_H5.js → gux-loading-message.entry-CvSHqvVZ.js} +1 -1
  83. package/dist/assets/{gux-menu-option.entry-BxQFHxSk.js → gux-menu-option.entry-BAGZt2AS.js} +1 -1
  84. package/dist/assets/{gux-menu.entry-B-osnTh0.js → gux-menu.entry-DwehSnzW.js} +1 -1
  85. package/dist/assets/{gux-modal-legacy.entry-DstohKCK.js → gux-modal-legacy.entry-Cp4Aiphm.js} +1 -1
  86. package/dist/assets/{gux-modal-side-panel-beta.entry-C9FvyVTE.js → gux-modal-side-panel-beta.entry-DCvTQlX9.js} +1 -1
  87. package/dist/assets/{gux-modal.entry-srOdsW8Q.js → gux-modal.entry-22VCaz5A.js} +1 -1
  88. package/dist/assets/{gux-month-calendar.entry-BeuXd1Lv.js → gux-month-calendar.entry-D_EcdMc_.js} +1 -1
  89. package/dist/assets/{gux-month-list_2.entry-CYygxLTh.js → gux-month-list_2.entry-uPhFJHwn.js} +1 -1
  90. package/dist/assets/{gux-month-picker-beta.entry-DOJMMNNx.js → gux-month-picker-beta.entry-VcNlYwmc.js} +1 -1
  91. package/dist/assets/{gux-notification-toast-legacy.entry-dxK7iMAC.js → gux-notification-toast-legacy.entry-ChU_-47j.js} +1 -1
  92. package/dist/assets/{gux-option-group-beta.entry-BUy0S9Yx.js → gux-option-group-beta.entry-FRRaJLwS.js} +1 -1
  93. package/dist/assets/{gux-option-icon.entry-Bn-fNLNn.js → gux-option-icon.entry-KMgTc1vu.js} +1 -1
  94. package/dist/assets/{gux-option-multi.entry-Bu-QHc6m.js → gux-option-multi.entry-CGdD9hMn.js} +1 -1
  95. package/dist/assets/{gux-page-loading-spinner.entry-DMtT-DYz.js → gux-page-loading-spinner.entry-5PmWDlZg.js} +1 -1
  96. package/dist/assets/{gux-pagination-buttons-legacy_3.entry-CuYkOJdn.js → gux-pagination-buttons-legacy_3.entry-BtvgrJMY.js} +1 -1
  97. package/dist/assets/{gux-pagination-buttons_2.entry-DmbE78vc.js → gux-pagination-buttons_2.entry-DV3ecNGj.js} +1 -1
  98. package/dist/assets/{gux-pagination-cursor.entry-BTAFd0O2.js → gux-pagination-cursor.entry-Ww9AsRNQ.js} +1 -1
  99. package/dist/assets/{gux-pagination-items-per-page.entry-DvwN5uz6.js → gux-pagination-items-per-page.entry-CVi3sRvu.js} +1 -1
  100. package/dist/assets/{gux-pagination-legacy.entry-CBCQXwVe.js → gux-pagination-legacy.entry-DdVA8azk.js} +1 -1
  101. package/dist/assets/{gux-pagination.entry-IX-ErtEu.js → gux-pagination.entry-1ud8_S9m.js} +1 -1
  102. package/dist/assets/{gux-phone-input-beta.entry-CjYWM42M.js → gux-phone-input-beta.entry-DzMFUOHx.js} +1 -1
  103. package/dist/assets/{gux-popover-beta.entry-DAvQpLoO.js → gux-popover-beta.entry-B_Rzrsrl.js} +1 -1
  104. package/dist/assets/{gux-popover-list-beta.entry-D4i4pSCR.js → gux-popover-list-beta.entry-C7BS70xU.js} +1 -1
  105. package/dist/assets/{gux-popover-list.entry-B6Kj5sN5.js → gux-popover-list.entry-DXFJ5Ulu.js} +1 -1
  106. package/dist/assets/{gux-popup.entry-BHYs6DQm.js → gux-popup.entry-CaMGjJOv.js} +1 -1
  107. package/dist/assets/{gux-radial-loading.entry-CG8hkP1l.js → gux-radial-loading.entry-CIOzqI-P.js} +1 -1
  108. package/dist/assets/{gux-radial-progress.entry-Bne8tE1g.js → gux-radial-progress.entry-Bu43Xqjp.js} +1 -1
  109. package/dist/assets/{gux-rating.entry--bhU3vZ-.js → gux-rating.entry-CnVRE-uh.js} +1 -1
  110. package/dist/assets/{gux-rich-highlight-list-item.entry-CSqOpcBg.js → gux-rich-highlight-list-item.entry-kkwS1qA5.js} +1 -1
  111. package/dist/assets/{gux-rich-style-list-item_3.entry-CZq1B1uh.js → gux-rich-style-list-item_3.entry-BmlmhWgD.js} +1 -1
  112. package/dist/assets/{gux-rich-text-editor-action-group.entry-DpooAfXe.js → gux-rich-text-editor-action-group.entry-3eFBzXKl.js} +1 -1
  113. package/dist/assets/{gux-rich-text-editor-action-link.entry-BEOpCIyh.js → gux-rich-text-editor-action-link.entry-eN5VwMWg.js} +1 -1
  114. package/dist/assets/{gux-rich-text-editor-action-rich-style.entry-rwzf60gc.js → gux-rich-text-editor-action-rich-style.entry-D-l-atJL.js} +1 -1
  115. package/dist/assets/{gux-rich-text-editor-action-text-highlight.entry-BaiCEtST.js → gux-rich-text-editor-action-text-highlight.entry-BPEq6CnY.js} +1 -1
  116. package/dist/assets/{gux-rich-text-editor-action.entry-wBuqVeIv.js → gux-rich-text-editor-action.entry-CsWpsyMj.js} +1 -1
  117. package/dist/assets/{gux-rich-text-editor-beta.entry-Cw_BO3yc.js → gux-rich-text-editor-beta.entry-C0dCAvGp.js} +1 -1
  118. package/dist/assets/{gux-rich-text-editor-list.entry-CdJ7d-sN.js → gux-rich-text-editor-list.entry-C0l66P-R.js} +1 -1
  119. package/dist/assets/{gux-row-select.entry-DNQoUPfo.js → gux-row-select.entry-DgUEWifj.js} +1 -1
  120. package/dist/assets/{gux-screen-reader-beta.entry-CIizYbtx.js → gux-screen-reader-beta.entry-_F4BWhAL.js} +1 -1
  121. package/dist/assets/{gux-segmented-control-beta.entry-Lg-TCK-1.js → gux-segmented-control-beta.entry-BYc9IyVs.js} +1 -1
  122. package/dist/assets/{gux-segmented-control-item.entry-DDTIGwB3.js → gux-segmented-control-item.entry-B3n-o_0J.js} +1 -1
  123. package/dist/assets/{gux-selector-card-beta.entry-df35Lfih.js → gux-selector-card-beta.entry-CZ_KhnMW.js} +1 -1
  124. package/dist/assets/{gux-selector-cards-beta.entry-HqqnLkUG.js → gux-selector-cards-beta.entry-DSmvU77v.js} +1 -1
  125. package/dist/assets/{gux-side-panel-beta.entry-BUo5l_ej.js → gux-side-panel-beta.entry-CjBCzQxR.js} +1 -1
  126. package/dist/assets/{gux-side-panel-heading.entry-NHumDrZj.js → gux-side-panel-heading.entry-D6Va8fio.js} +1 -1
  127. package/dist/assets/{gux-simple-toast-legacy.entry-BOuwoL-n.js → gux-simple-toast-legacy.entry-CgG0pEiF.js} +1 -1
  128. package/dist/assets/{gux-skip-navigation-item.entry-DdXOJO27.js → gux-skip-navigation-item.entry-D3FTJsk7.js} +1 -1
  129. package/dist/assets/{gux-skip-navigation-list.entry-CuUU-ew0.js → gux-skip-navigation-list.entry-DnlKpRzO.js} +1 -1
  130. package/dist/assets/{gux-sort-control.entry-CbDxt8g0.js → gux-sort-control.entry-MR9GppiW.js} +1 -1
  131. package/dist/assets/{gux-submenu.entry-BIlJzQjJ.js → gux-submenu.entry-yuQhJhYJ.js} +1 -1
  132. package/dist/assets/{gux-switch-item.entry-Cgtmox8R.js → gux-switch-item.entry-DCal6u4b.js} +1 -1
  133. package/dist/assets/{gux-switch-legacy.entry-DsGOmtPe.js → gux-switch-legacy.entry-DRJ6ERCC.js} +1 -1
  134. package/dist/assets/{gux-tab-advanced-list.entry-BtLAOPFJ.js → gux-tab-advanced-list.entry-BN9Y-n35.js} +1 -1
  135. package/dist/assets/{gux-tab-advanced-panel.entry-DIpz0Cfq.js → gux-tab-advanced-panel.entry-D6qrOxFC.js} +1 -1
  136. package/dist/assets/{gux-tab-advanced.entry-BJITyN8b.js → gux-tab-advanced.entry-CJpSAFGF.js} +1 -1
  137. package/dist/assets/{gux-tab-list.entry-C7TvqKuP.js → gux-tab-list.entry-CQhckOwW.js} +1 -1
  138. package/dist/assets/{gux-tab-panel.entry-C2d5THOw.js → gux-tab-panel.entry-odbNoEiY.js} +1 -1
  139. package/dist/assets/{gux-tab.entry-C4cHFqyb.js → gux-tab.entry-DrrIYPFo.js} +1 -1
  140. package/dist/assets/{gux-table-select-menu.entry-B0sGVIcE.js → gux-table-select-menu.entry-DKxPBBXD.js} +1 -1
  141. package/dist/assets/{gux-table-toolbar-action.entry-6BqIINZe.js → gux-table-toolbar-action.entry-C1YCiaaS.js} +1 -1
  142. package/dist/assets/{gux-table-toolbar-custom-action.entry-kKhiKsjX.js → gux-table-toolbar-custom-action.entry-DALDxcAQ.js} +1 -1
  143. package/dist/assets/{gux-table-toolbar-menu-button.entry-CRgm9k5e.js → gux-table-toolbar-menu-button.entry-DyDFkpyI.js} +1 -1
  144. package/dist/assets/{gux-table-toolbar.entry-Ba-W7m77.js → gux-table-toolbar.entry-SaVJNWUO.js} +1 -1
  145. package/dist/assets/{gux-table.entry-Du_lBgt-.js → gux-table.entry-DFdyFte5.js} +1 -1
  146. package/dist/assets/{gux-tabs-advanced.entry-spkmmAd3.js → gux-tabs-advanced.entry-B27L6L9m.js} +1 -1
  147. package/dist/assets/{gux-tabs.entry-BEULiyba.js → gux-tabs.entry-0Ej1nHBV.js} +1 -1
  148. package/dist/assets/{gux-tag.entry-BqkYTi8D.js → gux-tag.entry-DrqMTz8A.js} +1 -1
  149. package/dist/assets/{gux-text-highlight.entry-DOOZoYpX.js → gux-text-highlight.entry-DNUMmQHn.js} +1 -1
  150. package/dist/assets/{gux-time-beta.entry-Ch9EsUkg.js → gux-time-beta.entry-dNtqqDqZ.js} +1 -1
  151. package/dist/assets/{gux-time-picker.entry-Cq4RImXx.js → gux-time-picker.entry-CGHVJ-hV.js} +1 -1
  152. package/dist/assets/{gux-time-zone-beta.entry-De8gNsNd.js → gux-time-zone-beta.entry-ldWMIao-.js} +1 -1
  153. package/dist/assets/{gux-time-zone-picker-beta.entry-Bqx6c6Qf.js → gux-time-zone-picker-beta.entry-6etcN2qE.js} +1 -1
  154. package/dist/assets/{gux-toast.entry-F3efkRwy.js → gux-toast.entry-Cq4VhlFL.js} +1 -1
  155. package/dist/assets/{gux-toggle-slider.entry-DcoVYfs5.js → gux-toggle-slider.entry-Dj4R_vqB.js} +1 -1
  156. package/dist/assets/{gux-toggle.entry-Cu3eAfan.js → gux-toggle.entry-8BcDCRE8.js} +1 -1
  157. package/dist/assets/{gux-tooltip-base-beta_2.entry-1gOdb2cF.js → gux-tooltip-base-beta_2.entry-BkQ0AWOb.js} +1 -1
  158. package/dist/assets/{gux-tooltip-pointer-beta.entry-D-hRxe26.js → gux-tooltip-pointer-beta.entry-dFwvYr4I.js} +1 -1
  159. package/dist/assets/{gux-tooltip-title.entry-DjR4NFSD.js → gux-tooltip-title.entry-BYB-EI24.js} +1 -1
  160. package/dist/assets/{gux-tooltip_2.entry-CKPibHyg.js → gux-tooltip_2.entry-Bkw1a_Up.js} +1 -1
  161. package/dist/assets/{index-4f1356d9-DSfDpFAA.js → index-4f1356d9-D95neeh-.js} +1 -1
  162. package/dist/assets/{index-CWixJ8vL.js → index-DnQlhAI3.js} +2 -2
  163. package/dist/assets/{on-click-outside-6c2e399b-BC2t0a8o.js → on-click-outside-6c2e399b-16SRQpNH.js} +1 -1
  164. package/dist/assets/{on-mutation-751e68e4-BRlz63Dw.js → on-mutation-751e68e4-Dt8NpKTF.js} +1 -1
  165. package/dist/assets/{on-resize-c9d0d33c-RQFUwEyO.js → on-resize-c9d0d33c-COxDFtcb.js} +1 -1
  166. package/dist/deploy-info.json +4 -4
  167. package/dist/genesys-cloud-client-auth.browser.min.js +1 -1
  168. package/dist/genesys-cloud-client-auth.browser.min.js.map +1 -1
  169. package/dist/index.html +1 -1
  170. package/dist/lib/cjs/authenticator.d.ts +5 -4
  171. package/dist/lib/cjs/authenticator.js +14 -8
  172. package/dist/lib/cjs/authenticator.js.map +1 -1
  173. package/dist/lib/cjs/version.js +1 -1
  174. package/dist/lib/es/authenticator.d.ts +5 -4
  175. package/dist/lib/es/authenticator.js +14 -8
  176. package/dist/lib/es/authenticator.js.map +1 -1
  177. package/dist/lib/es/version.js +1 -1
  178. package/dist/manifest.json +4 -4
  179. package/dist/v1/genesys-cloud-client-auth.browser.min.js +1 -1
  180. package/dist/v1.0.1/genesys-cloud-client-auth.browser.min.js +2 -0
  181. package/package.json +4 -4
  182. package/dist/v1.0.0/genesys-cloud-client-auth.browser.min.js +0 -2
@@ -1 +1 @@
1
- import{r as h,h as t,H as f,g as m}from"./index-CWixJ8vL.js";import{a as p,c as g,o as b,f as w,s as x,b as y}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";import{a as u}from"./after-next-render-07a41f53-C_KTwidI.js";import{t as v}from"./usage-36c49ec0-Dlq6IjQJ.js";import{h as k}from"./gux-menu.common-b2a4d472-CSLYc6Td.js";const E=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius)}.gux-flyout-menu-content.gux-shown{display:flex}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}",C=E,P=class{constructor(e){h(this,e),this.isShown=!1}onKeydown(e){if(e.stopPropagation(),this.isShown)switch(e.key){case"Escape":case"ArrowLeft":case"ArrowUp":this.root.focus();return;case"ArrowDown":e.preventDefault(),this.focusOnMenu();return;case"Enter":this.hideDelayTimeout=u(()=>{this.focusOnMenu()});return}}onKeyup(e){switch(e.stopPropagation(),e.key){case" ":this.root===e.target?this.focusOnMenu():this.hideDelayTimeout=u(()=>{this.root.focus()});return}}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){e.detail!==0&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout(()=>{this.isShown=!1},k))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=p(this.targetElement,this.menuContentElement,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&g(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[b(16),w(),x(),y({element:this.arrowElement,padding:16})]}).then(({x:e,y:i,middlewareData:o,placement:c})=>{var s;Object.assign(this.menuContentElement.style,{left:`${e}px`,top:`${i}px`});const n=c.split("-")[0],l={top:"bottom",right:"left",bottom:"top",left:"right"}[n],d={top:0,right:90,bottom:180,left:-90}[n];if(o.arrow){const{x:a,y:r}=o.arrow;Object.assign((s=this.arrowElement)===null||s===void 0?void 0:s.style,{left:a!=null?`${a}px`:"",top:r!=null?`${r}px`:"",right:"",bottom:"",[l]:"-13px",transform:`rotate(${d}deg)`})}})}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const e=this.root.querySelector("gux-menu");Array.from(e.children)[0].guxFocus()}componentWillLoad(){v(this.root)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t(f,{key:"fa1d610e066e43e6a025b4a9301ebd079a1a0459",tabIndex:0,"aria-haspopup":"true"},t("span",{key:"326c7ff30a22066eabce87d3b7a8d4f7218a90c0",ref:e=>this.targetElement=e},t("slot",{key:"9c0296a10351beadb7b244bac865a6bf8f22317a",name:"target"})),t("div",{key:"f08abd040753a89b68d09fdd5b41de488e2127b0",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},t("div",{key:"c2012c91e07d8096d67dce88517278a482648499",ref:e=>this.arrowElement=e,class:"gux-arrow"},t("div",{key:"a96a744afb7f76549f4213651aa1f04d294b5141",class:"gux-arrow-caret"})),t("slot",{key:"f65fff57bc2b65fa7f358d08d400cd9e638f7505",name:"menu"})))}get root(){return m(this)}};P.style=C;export{P as gux_flyout_menu};
1
+ import{r as h,h as t,H as f,g as m}from"./index-DnQlhAI3.js";import{a as p,c as g,o as b,f as w,s as x,b as y}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";import{a as u}from"./after-next-render-07a41f53-C_KTwidI.js";import{t as v}from"./usage-36c49ec0-Dlq6IjQJ.js";import{h as k}from"./gux-menu.common-b2a4d472-CSLYc6Td.js";const E=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius)}.gux-flyout-menu-content.gux-shown{display:flex}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}",C=E,P=class{constructor(e){h(this,e),this.isShown=!1}onKeydown(e){if(e.stopPropagation(),this.isShown)switch(e.key){case"Escape":case"ArrowLeft":case"ArrowUp":this.root.focus();return;case"ArrowDown":e.preventDefault(),this.focusOnMenu();return;case"Enter":this.hideDelayTimeout=u(()=>{this.focusOnMenu()});return}}onKeyup(e){switch(e.stopPropagation(),e.key){case" ":this.root===e.target?this.focusOnMenu():this.hideDelayTimeout=u(()=>{this.root.focus()});return}}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){e.detail!==0&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout(()=>{this.isShown=!1},k))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=p(this.targetElement,this.menuContentElement,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&g(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[b(16),w(),x(),y({element:this.arrowElement,padding:16})]}).then(({x:e,y:i,middlewareData:o,placement:c})=>{var s;Object.assign(this.menuContentElement.style,{left:`${e}px`,top:`${i}px`});const n=c.split("-")[0],l={top:"bottom",right:"left",bottom:"top",left:"right"}[n],d={top:0,right:90,bottom:180,left:-90}[n];if(o.arrow){const{x:a,y:r}=o.arrow;Object.assign((s=this.arrowElement)===null||s===void 0?void 0:s.style,{left:a!=null?`${a}px`:"",top:r!=null?`${r}px`:"",right:"",bottom:"",[l]:"-13px",transform:`rotate(${d}deg)`})}})}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const e=this.root.querySelector("gux-menu");Array.from(e.children)[0].guxFocus()}componentWillLoad(){v(this.root)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t(f,{key:"fa1d610e066e43e6a025b4a9301ebd079a1a0459",tabIndex:0,"aria-haspopup":"true"},t("span",{key:"326c7ff30a22066eabce87d3b7a8d4f7218a90c0",ref:e=>this.targetElement=e},t("slot",{key:"9c0296a10351beadb7b244bac865a6bf8f22317a",name:"target"})),t("div",{key:"f08abd040753a89b68d09fdd5b41de488e2127b0",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},t("div",{key:"c2012c91e07d8096d67dce88517278a482648499",ref:e=>this.arrowElement=e,class:"gux-arrow"},t("div",{key:"a96a744afb7f76549f4213651aa1f04d294b5141",class:"gux-arrow-caret"})),t("slot",{key:"f65fff57bc2b65fa7f358d08d400cd9e638f7505",name:"menu"})))}get root(){return m(this)}};P.style=C;export{P as gux_flyout_menu};
@@ -1 +1 @@
1
- import{r as e,h as t}from"./index-CWixJ8vL.js";const a=class{constructor(r){e(this,r)}render(){return t("slot",{key:"56c49bed555146e613a36878aba8247a8c5724fc"})}};export{a as gux_form_beta};
1
+ import{r as e,h as t}from"./index-DnQlhAI3.js";const a=class{constructor(r){e(this,r)}render(){return t("slot",{key:"56c49bed555146e613a36878aba8247a8c5724fc"})}};export{a as gux_form_beta};
@@ -1 +1 @@
1
- import{r,h as e}from"./index-CWixJ8vL.js";const o="::slotted(*){margin:0 !important;font-family:var(--gse-semantic-body-sm-regular-fontFamily) !important;font-size:var(--gse-semantic-body-sm-regular-fontSize) !important;font-weight:var(--gse-semantic-body-sm-regular-fontWeight) !important;line-height:var(--gse-semantic-body-sm-regular-lineHeight) !important;color:var(--gse-semantic-foreground-container-midEmphasis) !important}",s=o,i=class{constructor(t){r(this,t)}render(){return e("slot",{key:"856101faf04e13b5c812769e6332eeb073bc92bf"})}};i.style=s;export{i as gux_form_description};
1
+ import{r,h as e}from"./index-DnQlhAI3.js";const o="::slotted(*){margin:0 !important;font-family:var(--gse-semantic-body-sm-regular-fontFamily) !important;font-size:var(--gse-semantic-body-sm-regular-fontSize) !important;font-weight:var(--gse-semantic-body-sm-regular-fontWeight) !important;line-height:var(--gse-semantic-body-sm-regular-lineHeight) !important;color:var(--gse-semantic-foreground-container-midEmphasis) !important}",s=o,i=class{constructor(t){r(this,t)}render(){return e("slot",{key:"856101faf04e13b5c812769e6332eeb073bc92bf"})}};i.style=s;export{i as gux_form_description};
@@ -1 +1 @@
1
- import{r as b,f as c,h as t,g as m}from"./index-CWixJ8vL.js";import{O as C}from"./on-mutation-751e68e4-BRlz63Dw.js";import{h as a}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as d}from"./log-error-274efeb7-BpRSdGLj.js";import{b as k}from"./index-4f1356d9-DSfDpFAA.js";import{s as p}from"./simulate-native-event-e0631897-BcLDngo1.js";import{G as v,a as y}from"./gux-form-field-error-acb40a19-CkSp2BAb.js";import{G,a as w,b as S}from"./gux-form-field-fieldset-container-6cb3610f-BUiTa12q.js";import{g as h}from"./get-slot-text-content-95a85429-DTSoMW52.js";import{t as F}from"./usage-36c49ec0-Dlq6IjQJ.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";function q(e,o){u(e).forEach(r=>{r.checked!==o&&!r.disabled&&(r.checked=o,p(r,"input"),p(r,"change"))})}function g(e,o){if(o){const{checkedCheckboxes:r,totalCheckboxes:i}=E(e);r===0?(o.indeterminate=!1,o.checked=!1):r===i?(o.indeterminate=!1,o.checked=!0):o.indeterminate=!0}}function E(e){const o=u(e).length;return{checkedCheckboxes:T(e).length,totalCheckboxes:o}}function u(e){return Array.from(e.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input'))}function T(e){return u(e).filter(r=>r.checked)}const L="Required",z={required:L},H=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}:host([disabled]) .gux-form-field-legend-label{opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(gux-form-field-checkbox){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-checkbox:first-of-type){padding-block-start:0}:host(.gux-group-checkbox) ::slotted(gux-form-field-checkbox){padding-inline-start:24px}:host(.gux-group-checkbox) slot[name=group-checkbox]::slotted(gux-form-field-checkbox){padding-inline-start:0}.gux-form-field-legend-label{font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}",M=H;var A=function(e,o,r,i){var s=arguments.length,l=s<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,r,i);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(l=(s<3?n(l):s>3?n(o,r,l):n(o,r))||l);return s>3&&l&&Object.defineProperty(o,r,l),l};const x=class{constructor(e){b(this,e),this.indicatorMark="required",this.required=!1,this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-checkbox");o&&o.forEach(r=>{r.hasGroupError=e})}watchDisabled(){this.setDisabledCheckboxes()}onMutation(){this.hasGroupError=a(this.root,"group-error"),this.hasGroupHelp=a(this.root,"group-help"),this.hasGroupLabelInfo=a(this.root,"group-label-info")}async componentWillLoad(){this.getI18nValue=await k(this.root,z),this.hasGroupError=a(this.root,"group-error"),this.hasGroupHelp=a(this.root,"group-help"),this.hasGroupLabelInfo=a(this.root,"group-label-info"),this.setLabel(),this.setDisabledCheckboxes(),F(this.root)}componentDidLoad(){g(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input'))}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}getGroupCheckboxElement(){return this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')}setDisabledCheckboxes(){const e=this.root.querySelectorAll("gux-form-field-checkbox");e&&e.forEach(o=>{o.hasGroupDisabled=this.disabled})}onMainCheckboxChange(){const e=this.getGroupCheckboxElement();q(this.root,e.checked),c(this.root)}setupNestedCheckboxes(){this.warnMultipleGroupCheckbox(),this.warnGroupCheckboxNameAttr();const e=this.getGroupCheckboxElement();e?this.root.classList.add("gux-group-checkbox"):this.root.classList.remove("gux-group-checkbox"),e==null||e.addEventListener("change",()=>{this.onMainCheckboxChange()}),this.initialSetNestedCheckboxes(e==null?void 0:e.checked)}initialSetNestedCheckboxes(e){const o=Array.from(this.root.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input)'));o!=null&&o.length&&o.forEach(r=>{r.addEventListener("change",()=>{this.updateMainCheckbox()}),e&&!r.disabled&&(r.checked=!0)})}warnMultipleGroupCheckbox(){const e=this.root.querySelectorAll('gux-form-field-checkbox[slot="group-checkbox"] input');(e==null?void 0:e.length)>1&&d(this.root,"Can only have one group checkbox")}warnGroupCheckboxNameAttr(){const e=this.getGroupCheckboxElement();e!=null&&e.hasAttribute("name")&&d(this.root,"Group checkbox should not have a name attribute")}updateMainCheckbox(){g(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')),c(this.root)}renderText(e,o=!1){if(o)return" "+e}render(){var e;return t(S,{key:"3b33199d0852a92df23c59b5843f5f48282a136f",labelPosition:"above"},t(w,{key:"d6933ee5c5fdc1e76876e13ba26c1659c9112971"},(e=this.label)===null||e===void 0?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(h(this.root,"group-error"),this.hasGroupError),this.renderText(h(this.root,"group-help"),this.hasGroupHelp),this.renderText(h(this.root,"group-label-info"),this.hasGroupLabelInfo)),t(G,{key:"a3831908a9f0c3c36e37d0b0a780c7c92f7c1dce",position:"above",required:this.required},t("slot",{key:"deed6591b098259b1f8890a1a3da8031aec1191f",name:"group-label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"d4848d9b2733dc0000b911d28b4e09a6b0e382f6",variant:this.indicatorMark,required:this.required}),t("slot",{key:"db792150cc8c6b4436b557933250beb231a717fa",name:"group-label-info"})),t("slot",{key:"a60e9d4d0ccc580b5752ba871a33a953d27fd41c",onSlotchange:()=>this.setupNestedCheckboxes(),name:"group-checkbox"}),t("slot",{key:"3efd3470ff4da294d814ea367261921e5d8d3017",onSlotchange:()=>this.updateMainCheckbox()}),t(y,{key:"fc6db71f68f2763d88208b9b9550cbbbbfb45068",show:this.hasGroupError},t("slot",{key:"a9ffb37ace5fea4c8f47e73693efbeea58b76ada",name:"group-error"})),t(v,{key:"0e03a0d08e8af6215c3e793688a6db90c02a4a4d",show:!this.hasGroupError&&this.hasGroupHelp},t("slot",{key:"a5e7d149c584db70e9b7ad3dc87c1258e461bb60",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return m(this)}static get watchers(){return{hasGroupError:["watchGroupError"],disabled:["watchDisabled"]}}};A([C({childList:!0,subtree:!0})],x.prototype,"onMutation",null);x.style=M;export{x as gux_form_field_checkbox_group_beta};
1
+ import{r as b,f as c,h as t,g as m}from"./index-DnQlhAI3.js";import{O as C}from"./on-mutation-751e68e4-Dt8NpKTF.js";import{h as a}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as d}from"./log-error-274efeb7-BpRSdGLj.js";import{b as k}from"./index-4f1356d9-D95neeh-.js";import{s as p}from"./simulate-native-event-e0631897-BcLDngo1.js";import{G as v,a as y}from"./gux-form-field-error-acb40a19-CHMA1_Nq.js";import{G,a as w,b as S}from"./gux-form-field-fieldset-container-6cb3610f-DQ6-2XRL.js";import{g as h}from"./get-slot-text-content-95a85429-DTSoMW52.js";import{t as F}from"./usage-36c49ec0-Dlq6IjQJ.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";function q(e,o){u(e).forEach(r=>{r.checked!==o&&!r.disabled&&(r.checked=o,p(r,"input"),p(r,"change"))})}function g(e,o){if(o){const{checkedCheckboxes:r,totalCheckboxes:i}=E(e);r===0?(o.indeterminate=!1,o.checked=!1):r===i?(o.indeterminate=!1,o.checked=!0):o.indeterminate=!0}}function E(e){const o=u(e).length;return{checkedCheckboxes:T(e).length,totalCheckboxes:o}}function u(e){return Array.from(e.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input'))}function T(e){return u(e).filter(r=>r.checked)}const L="Required",z={required:L},H=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}:host([disabled]) .gux-form-field-legend-label{opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(gux-form-field-checkbox){padding-block-start:var(--gse-ui-formControl-group-gapItems)}::slotted(gux-form-field-checkbox:first-of-type){padding-block-start:0}:host(.gux-group-checkbox) ::slotted(gux-form-field-checkbox){padding-inline-start:24px}:host(.gux-group-checkbox) slot[name=group-checkbox]::slotted(gux-form-field-checkbox){padding-inline-start:0}.gux-form-field-legend-label{font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}:host([disabled]) ::slotted(label){opacity:var(--gse-ui-formControl-input-disabled-opacity)}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}",M=H;var A=function(e,o,r,i){var s=arguments.length,l=s<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,r,i);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(l=(s<3?n(l):s>3?n(o,r,l):n(o,r))||l);return s>3&&l&&Object.defineProperty(o,r,l),l};const x=class{constructor(e){b(this,e),this.indicatorMark="required",this.required=!1,this.hasGroupError=!1,this.hasGroupHelp=!1,this.hasGroupLabelInfo=!1,this.disabled=!1}watchGroupError(e){const o=this.root.querySelectorAll("gux-form-field-checkbox");o&&o.forEach(r=>{r.hasGroupError=e})}watchDisabled(){this.setDisabledCheckboxes()}onMutation(){this.hasGroupError=a(this.root,"group-error"),this.hasGroupHelp=a(this.root,"group-help"),this.hasGroupLabelInfo=a(this.root,"group-label-info")}async componentWillLoad(){this.getI18nValue=await k(this.root,z),this.hasGroupError=a(this.root,"group-error"),this.hasGroupHelp=a(this.root,"group-help"),this.hasGroupLabelInfo=a(this.root,"group-label-info"),this.setLabel(),this.setDisabledCheckboxes(),F(this.root)}componentDidLoad(){g(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input'))}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}getGroupCheckboxElement(){return this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')}setDisabledCheckboxes(){const e=this.root.querySelectorAll("gux-form-field-checkbox");e&&e.forEach(o=>{o.hasGroupDisabled=this.disabled})}onMainCheckboxChange(){const e=this.getGroupCheckboxElement();q(this.root,e.checked),c(this.root)}setupNestedCheckboxes(){this.warnMultipleGroupCheckbox(),this.warnGroupCheckboxNameAttr();const e=this.getGroupCheckboxElement();e?this.root.classList.add("gux-group-checkbox"):this.root.classList.remove("gux-group-checkbox"),e==null||e.addEventListener("change",()=>{this.onMainCheckboxChange()}),this.initialSetNestedCheckboxes(e==null?void 0:e.checked)}initialSetNestedCheckboxes(e){const o=Array.from(this.root.querySelectorAll('gux-form-field-checkbox input:not(gux-form-field-checkbox[slot="group-checkbox"] input)'));o!=null&&o.length&&o.forEach(r=>{r.addEventListener("change",()=>{this.updateMainCheckbox()}),e&&!r.disabled&&(r.checked=!0)})}warnMultipleGroupCheckbox(){const e=this.root.querySelectorAll('gux-form-field-checkbox[slot="group-checkbox"] input');(e==null?void 0:e.length)>1&&d(this.root,"Can only have one group checkbox")}warnGroupCheckboxNameAttr(){const e=this.getGroupCheckboxElement();e!=null&&e.hasAttribute("name")&&d(this.root,"Group checkbox should not have a name attribute")}updateMainCheckbox(){g(this.root,this.root.querySelector('gux-form-field-checkbox[slot="group-checkbox"] input')),c(this.root)}renderText(e,o=!1){if(o)return" "+e}render(){var e;return t(S,{key:"3b33199d0852a92df23c59b5843f5f48282a136f",labelPosition:"above"},t(w,{key:"d6933ee5c5fdc1e76876e13ba26c1659c9112971"},(e=this.label)===null||e===void 0?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(h(this.root,"group-error"),this.hasGroupError),this.renderText(h(this.root,"group-help"),this.hasGroupHelp),this.renderText(h(this.root,"group-label-info"),this.hasGroupLabelInfo)),t(G,{key:"a3831908a9f0c3c36e37d0b0a780c7c92f7c1dce",position:"above",required:this.required},t("slot",{key:"deed6591b098259b1f8890a1a3da8031aec1191f",name:"group-label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"d4848d9b2733dc0000b911d28b4e09a6b0e382f6",variant:this.indicatorMark,required:this.required}),t("slot",{key:"db792150cc8c6b4436b557933250beb231a717fa",name:"group-label-info"})),t("slot",{key:"a60e9d4d0ccc580b5752ba871a33a953d27fd41c",onSlotchange:()=>this.setupNestedCheckboxes(),name:"group-checkbox"}),t("slot",{key:"3efd3470ff4da294d814ea367261921e5d8d3017",onSlotchange:()=>this.updateMainCheckbox()}),t(y,{key:"fc6db71f68f2763d88208b9b9550cbbbbfb45068",show:this.hasGroupError},t("slot",{key:"a9ffb37ace5fea4c8f47e73693efbeea58b76ada",name:"group-error"})),t(v,{key:"0e03a0d08e8af6215c3e793688a6db90c02a4a4d",show:!this.hasGroupError&&this.hasGroupHelp},t("slot",{key:"a5e7d149c584db70e9b7ad3dc87c1258e461bb60",name:"group-help"})))}setLabel(){this.label=this.root.querySelector('label[slot="group-label"]')}get root(){return m(this)}static get watchers(){return{hasGroupError:["watchGroupError"],disabled:["watchDisabled"]}}};A([C({childList:!0,subtree:!0})],x.prototype,"onMutation",null);x.style=M;export{x as gux_form_field_checkbox_group_beta};
@@ -1 +1 @@
1
- import{r as d,h as e,H as c,g as h}from"./index-CWixJ8vL.js";import{c as u,o as p}from"./on-input-disabled-state-change-27395154-_B452ZSd.js";import{O as m}from"./on-mutation-751e68e4-BRlz63Dw.js";import{p as x}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{h as C}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as v,G as b}from"./gux-form-field-error-acb40a19-CkSp2BAb.js";import{t as f}from"./usage-36c49ec0-Dlq6IjQJ.js";import{g as w,v as k}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const H=`.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked))::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:indeterminate)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:inline-flex;flex-direction:row;gap:var(--gse-ui-checkbox-gap)}.gux-input-label .gux-label-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(input[type=checkbox]){display:inline-grid;inline-size:var(--gse-ui-checkbox-icon-width);block-size:var(--gse-ui-checkbox-icon-height);margin:0;vertical-align:middle;text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;border:0}::slotted(input[type=checkbox])::before{grid-area:1/1;content:"";border-radius:15%}::slotted(input[type=checkbox]:focus-visible){outline:var(--gse-ui-checkbox-focus-border-width) var(--gse-ui-checkbox-focus-border-style) var(--gse-ui-checkbox-focus-border-color);outline-offset:var(--gse-ui-checkbox-focus-offset);border-radius:var(--gse-ui-checkbox-focus-borderRadiusSmall)}::slotted(input[type=checkbox]:not(:checked))::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-default-unselectedForegroundColor)}::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked:not(:disabled):hover){-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:not(:disabled):indeterminate:hover){-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:indeterminate)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-checkbox-label-text-fontFamily);font-size:12px;font-weight:var(--gse-ui-checkbox-label-text-fontWeight);line-height:var(--gse-ui-checkbox-label-text-lineHeight);vertical-align:middle;color:var(--gse-ui-checkbox-label-foregroundColor)}`,E=H;var V=function(t,r,a,i){var s=arguments.length,o=s<3?r:i===null?i=Object.getOwnPropertyDescriptor(r,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,r,a,i);else for(var g=t.length-1;g>=0;g--)(l=t[g])&&(o=(s<3?l(o):s>3?l(r,a,o):l(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const n=class{constructor(t){d(this,t),this.labelPosition="beside",this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help"),f(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return e(c,{key:"0c2e94a0639b7a9a0d33da50bd3061c7f7e2d7b7",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},e("div",{key:"f0e07d2cca513c52f20a6fb67cc394059733ec41",class:"gux-form-field-container"},e("div",{key:"89ac566d1648fcd48b3fce1fe31600e282020360",class:"gux-input-label"},e("div",{key:"7aaac55e931fbfc26dbcf4018009879005878b60",class:"gux-input"},e("slot",{key:"9c93787dc7d0464e848780ae34a76ff69c43eec8",name:"input",onSlotchange:()=>this.setInput()})),e("div",{key:"1864d76877c5a710262df6acf00a9108bf887d81",class:`gux-label-${this.labelPosition}`,"aria-disabled":this.disabled?"true":"false"},e("slot",{key:"ac092d51b91c6568ffb708387529c8a46ea68cec",name:"label"}))),e("div",{key:"320fd3438c3be63936113ec3a141b3b9d0a3568c",class:"error-and-help-text"},e(v,{key:"5bbe724e9768404d6ed538c863cb001c5366593f",show:this.hasError},e("slot",{key:"2fe8cb4c939bbe76194893fe61633ca4fa7df62f",name:"error"})),e(b,{key:"c4fb397bf418dab936527aaf8bda72d2c898fd31",show:!this.hasError&&this.hasHelp},e("slot",{key:"ee99d4774ad72f4ed796088c45f6f7d91c26a10a",name:"help"})))))}get variant(){return this.labelPosition.toLowerCase()}setInput(){this.input=w(this.root,'input[type="checkbox"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),x(this.input),this.disabled=u(this.input),this.disabledObserver=p(this.input,t=>{this.disabled=t}),k(this.root,this.input)}get root(){return h(this)}};V([m({childList:!0,subtree:!0})],n.prototype,"onMutation",null);n.style=E;export{n as gux_form_field_checkbox};
1
+ import{r as d,h as e,H as c,g as h}from"./index-DnQlhAI3.js";import{c as u,o as p}from"./on-input-disabled-state-change-27395154-_B452ZSd.js";import{O as m}from"./on-mutation-751e68e4-Dt8NpKTF.js";import{p as x}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{h as C}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as v,G as b}from"./gux-form-field-error-acb40a19-CHMA1_Nq.js";import{t as f}from"./usage-36c49ec0-Dlq6IjQJ.js";import{g as w,v as k}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const H=`.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked))::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=checkbox]:indeterminate)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-error-foregroundColor)}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}.gux-input-label{display:inline-flex;flex-direction:row;gap:var(--gse-ui-checkbox-gap)}.gux-input-label .gux-label-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(input[type=checkbox]){display:inline-grid;inline-size:var(--gse-ui-checkbox-icon-width);block-size:var(--gse-ui-checkbox-icon-height);margin:0;vertical-align:middle;text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;border:0}::slotted(input[type=checkbox])::before{grid-area:1/1;content:"";border-radius:15%}::slotted(input[type=checkbox]:focus-visible){outline:var(--gse-ui-checkbox-focus-border-width) var(--gse-ui-checkbox-focus-border-style) var(--gse-ui-checkbox-focus-border-color);outline-offset:var(--gse-ui-checkbox-focus-offset);border-radius:var(--gse-ui-checkbox-focus-borderRadiusSmall)}::slotted(input[type=checkbox]:not(:checked))::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-default-unselectedForegroundColor)}::slotted(input[type=checkbox]:not(:checked):not(:disabled):not(:indeterminate):hover)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked:not(:disabled):hover){-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:not(:disabled):indeterminate:hover){-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-hover-foregroundColor)}::slotted(input[type=checkbox]:checked)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:indeterminate)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M11.1429 7.14286C11.6179 7.14286 12 7.525 12 8C12 8.475 11.6179 8.85714 11.1429 8.85714H4.85714C4.38214 8.85714 4 8.475 4 8C4 7.525 4.38214 7.14286 4.85714 7.14286H11.1429ZM0 2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571ZM1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571Z'/%3E%3C/svg%3E");background:var(--gse-ui-checkbox-icon-default-selectedForegroundColor)}::slotted(input[type=checkbox]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-checkbox-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-checkbox-label-text-fontFamily);font-size:12px;font-weight:var(--gse-ui-checkbox-label-text-fontWeight);line-height:var(--gse-ui-checkbox-label-text-lineHeight);vertical-align:middle;color:var(--gse-ui-checkbox-label-foregroundColor)}`,E=H;var V=function(t,r,a,i){var s=arguments.length,o=s<3?r:i===null?i=Object.getOwnPropertyDescriptor(r,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,r,a,i);else for(var g=t.length-1;g>=0;g--)(l=t[g])&&(o=(s<3?l(o):s>3?l(r,a,o):l(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const n=class{constructor(t){d(this,t),this.labelPosition="beside",this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=C(this.root,"error"),this.hasHelp=C(this.root,"help"),f(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return e(c,{key:"0c2e94a0639b7a9a0d33da50bd3061c7f7e2d7b7",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},e("div",{key:"f0e07d2cca513c52f20a6fb67cc394059733ec41",class:"gux-form-field-container"},e("div",{key:"89ac566d1648fcd48b3fce1fe31600e282020360",class:"gux-input-label"},e("div",{key:"7aaac55e931fbfc26dbcf4018009879005878b60",class:"gux-input"},e("slot",{key:"9c93787dc7d0464e848780ae34a76ff69c43eec8",name:"input",onSlotchange:()=>this.setInput()})),e("div",{key:"1864d76877c5a710262df6acf00a9108bf887d81",class:`gux-label-${this.labelPosition}`,"aria-disabled":this.disabled?"true":"false"},e("slot",{key:"ac092d51b91c6568ffb708387529c8a46ea68cec",name:"label"}))),e("div",{key:"320fd3438c3be63936113ec3a141b3b9d0a3568c",class:"error-and-help-text"},e(v,{key:"5bbe724e9768404d6ed538c863cb001c5366593f",show:this.hasError},e("slot",{key:"2fe8cb4c939bbe76194893fe61633ca4fa7df62f",name:"error"})),e(b,{key:"c4fb397bf418dab936527aaf8bda72d2c898fd31",show:!this.hasError&&this.hasHelp},e("slot",{key:"ee99d4774ad72f4ed796088c45f6f7d91c26a10a",name:"help"})))))}get variant(){return this.labelPosition.toLowerCase()}setInput(){this.input=w(this.root,'input[type="checkbox"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),x(this.input),this.disabled=u(this.input),this.disabledObserver=p(this.input,t=>{this.disabled=t}),k(this.root,this.input)}get root(){return h(this)}};V([m({childList:!0,subtree:!0})],n.prototype,"onMutation",null);n.style=E;export{n as gux_form_field_checkbox};
@@ -1 +1 @@
1
- import{r as d,h as o,g as c}from"./index-CWixJ8vL.js";import{c as p,o as g}from"./on-input-disabled-state-change-27395154-_B452ZSd.js";import{O as h}from"./on-mutation-751e68e4-BRlz63Dw.js";import{o as b}from"./on-attribute-change-33919964-C8j0fVsi.js";import{p as m}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{h as s}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as x,G as v}from"./gux-form-field-error-acb40a19-CkSp2BAb.js";import{G as C,a as y}from"./gux-form-field-container-3dd7c6ff-CbHwJYu_.js";import{g as w,v as k,a as z}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{t as F}from"./usage-36c49ec0-Dlq6IjQJ.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const T=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:0 1 auto;align-self:auto;order:0;inline-size:var(--gse-ui-colorPicker-input-swatchSizing);min-inline-size:var(--gse-ui-colorPicker-input-swatchSizing);block-size:var(--gse-ui-colorPicker-input-swatchSizing);padding:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);text-align:end;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;inline-size:var(--gse-ui-formControl-input-colorPicker-size);block-size:var(--gse-ui-formControl-input-colorPicker-size);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container:hover{cursor:pointer;border-color:var(--gse-ui-formControl-input-hover-border-color)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}",S=T;var I=function(e,r,t,i){var l=arguments.length,n=l<3?r:i===null?i=Object.getOwnPropertyDescriptor(r,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,r,t,i);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(n=(l<3?a(n):l>3?a(r,t,n):a(r,t))||n);return l>3&&n&&Object.defineProperty(r,t,n),n};const f=class{constructor(e){d(this,e),this.indicatorMark="required",this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var r,t;switch(e.key){case"Tab":{this.input.matches(":focus-visible")&&((r=this.labelInfo)===null||r===void 0||r.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var i;(i=this.labelInfo)===null||i===void 0||i.hideTooltip()},6e3));break}default:{this.input.matches(":focus-visible")&&((t=this.labelInfo)===null||t===void 0||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),F(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(y,{key:"50b798eab2ffec2de253631cc955735822fb1af9",labelPosition:this.computedLabelPosition},o(C,{key:"243f5f76c6be675bcce6d1a77d4127d27d62c509",required:this.required,position:this.computedLabelPosition},o("slot",{key:"c2e698839a5b377d3ace2598e73bce4f4511feef",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"cf4eca811a47ad397fb7b223012c0e9765b06b54",variant:this.indicatorMark,required:this.required}),o("slot",{key:"bba4efb9c91106cbcccb28425081b766ef0773ff",name:"label-info"})),o("div",{key:"bd8e56487b500d1a93f4fd51126b624dc507d11e",class:"gux-input-and-error-container"},o("div",{key:"09050e3d83cb9d2b6463cc250db56c91004c4de4",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"768582927565bbe1df7111f1582d984fbcbefac6",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},o("slot",{key:"2b9b68cf05c516ea01caf971317bbed6a876c792",name:"input",onSlotchange:()=>this.setInput()}))),o(x,{key:"c0901866c04c9ff738324b36870bcb0e3be62e79",show:this.hasError},o("slot",{key:"3ad27f64c30686b62d11735feaae817eb11c8b61",name:"error"})),o(v,{key:"b9077472ee08d0708c0e20b2de93f44000a475da",show:!this.hasError&&this.hasHelp},o("slot",{key:"32578a641faf50d6392577305e929a63ca4524e2",name:"help"}))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=w(this.root,'input[type="color"][slot="input"]'),m(this.input),this.disabled=p(this.input),this.required=this.input.required,this.disabledObserver=g(this.input,e=>{this.disabled=e}),this.requiredObserver=b(this.input,e=>{this.required=e}),k(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=z(this.label,this.labelPosition)}get root(){return c(this)}};I([h({childList:!0,subtree:!0})],f.prototype,"onMutation",null);f.style=S;export{f as gux_form_field_color};
1
+ import{r as d,h as o,g as c}from"./index-DnQlhAI3.js";import{c as p,o as g}from"./on-input-disabled-state-change-27395154-_B452ZSd.js";import{O as h}from"./on-mutation-751e68e4-Dt8NpKTF.js";import{o as b}from"./on-attribute-change-33919964-C8j0fVsi.js";import{p as m}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{h as s}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as x,G as v}from"./gux-form-field-error-acb40a19-CHMA1_Nq.js";import{G as C,a as y}from"./gux-form-field-container-3dd7c6ff-BO4NBxm6.js";import{g as w,v as k,a as z}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{t as F}from"./usage-36c49ec0-Dlq6IjQJ.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const T=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:0 1 auto;align-self:auto;order:0;inline-size:var(--gse-ui-colorPicker-input-swatchSizing);min-inline-size:var(--gse-ui-colorPicker-input-swatchSizing);block-size:var(--gse-ui-colorPicker-input-swatchSizing);padding:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);text-align:end;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;inline-size:var(--gse-ui-formControl-input-colorPicker-size);block-size:var(--gse-ui-formControl-input-colorPicker-size);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container:hover{cursor:pointer;border-color:var(--gse-ui-formControl-input-hover-border-color)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}",S=T;var I=function(e,r,t,i){var l=arguments.length,n=l<3?r:i===null?i=Object.getOwnPropertyDescriptor(r,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,r,t,i);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(n=(l<3?a(n):l>3?a(r,t,n):a(r,t))||n);return l>3&&n&&Object.defineProperty(r,t,n),n};const f=class{constructor(e){d(this,e),this.indicatorMark="required",this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var r,t;switch(e.key){case"Tab":{this.input.matches(":focus-visible")&&((r=this.labelInfo)===null||r===void 0||r.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var i;(i=this.labelInfo)===null||i===void 0||i.hideTooltip()},6e3));break}default:{this.input.matches(":focus-visible")&&((t=this.labelInfo)===null||t===void 0||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),F(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(y,{key:"50b798eab2ffec2de253631cc955735822fb1af9",labelPosition:this.computedLabelPosition},o(C,{key:"243f5f76c6be675bcce6d1a77d4127d27d62c509",required:this.required,position:this.computedLabelPosition},o("slot",{key:"c2e698839a5b377d3ace2598e73bce4f4511feef",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"cf4eca811a47ad397fb7b223012c0e9765b06b54",variant:this.indicatorMark,required:this.required}),o("slot",{key:"bba4efb9c91106cbcccb28425081b766ef0773ff",name:"label-info"})),o("div",{key:"bd8e56487b500d1a93f4fd51126b624dc507d11e",class:"gux-input-and-error-container"},o("div",{key:"09050e3d83cb9d2b6463cc250db56c91004c4de4",class:{"gux-input":!0,"gux-input-error":this.hasError}},o("div",{key:"768582927565bbe1df7111f1582d984fbcbefac6",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},o("slot",{key:"2b9b68cf05c516ea01caf971317bbed6a876c792",name:"input",onSlotchange:()=>this.setInput()}))),o(x,{key:"c0901866c04c9ff738324b36870bcb0e3be62e79",show:this.hasError},o("slot",{key:"3ad27f64c30686b62d11735feaae817eb11c8b61",name:"error"})),o(v,{key:"b9077472ee08d0708c0e20b2de93f44000a475da",show:!this.hasError&&this.hasHelp},o("slot",{key:"32578a641faf50d6392577305e929a63ca4524e2",name:"help"}))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=w(this.root,'input[type="color"][slot="input"]'),m(this.input),this.disabled=p(this.input),this.required=this.input.required,this.disabledObserver=g(this.input,e=>{this.disabled=e}),this.requiredObserver=b(this.input,e=>{this.required=e}),k(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=z(this.label,this.labelPosition)}get root(){return c(this)}};I([h({childList:!0,subtree:!0})],f.prototype,"onMutation",null);f.style=S;export{f as gux_form_field_color};
@@ -1 +1 @@
1
- import{h as u}from"./index-CWixJ8vL.js";const i=({position:r,required:e},t)=>u("div",{class:{"gux-form-field-label":!0,[`gux-${r}`]:!0,"gux-required":e}},t),a=({labelPosition:r},e)=>u("div",{class:{"gux-form-field-container":!0,[`gux-${r}`]:!0}},e);export{i as G,a};
1
+ import{h as u}from"./index-DnQlhAI3.js";const i=({position:r,required:e},t)=>u("div",{class:{"gux-form-field-label":!0,[`gux-${r}`]:!0,"gux-required":e}},t),a=({labelPosition:r},e)=>u("div",{class:{"gux-form-field-container":!0,[`gux-${r}`]:!0}},e);export{i as G,a};
@@ -1 +1 @@
1
- import{r as m,h as t,g as p}from"./index-CWixJ8vL.js";import{b as c}from"./index-4f1356d9-DSfDpFAA.js";import{O as b}from"./on-mutation-751e68e4-BRlz63Dw.js";import{o as g}from"./on-attribute-change-33919964-C8j0fVsi.js";import{h as a}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as x,G as v}from"./gux-form-field-error-acb40a19-CkSp2BAb.js";import{G as y,a as w,b as C}from"./gux-form-field-fieldset-container-6cb3610f-BUiTa12q.js";import{g as f}from"./get-slot-text-content-95a85429-DTSoMW52.js";import{s as q,b as h,a as F}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{t as T}from"./usage-36c49ec0-Dlq6IjQJ.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const k="Required",E={required:k},L=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1;inline-size:100%}",S=L;var I=function(e,o,r,i){var s=arguments.length,l=s<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,r,i);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(l=(s<3?n(l):s>3?n(o,r,l):n(o,r))||l);return s>3&&l&&Object.defineProperty(o,r,l),l};const u=class{constructor(e){m(this,e),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const o=this.root.querySelector("gux-dropdown")||this.root.querySelector("gux-dropdown-multi");o&&(o.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":{this.dropdownElement.matches(":focus-within")&&((o=this.labelInfo)===null||o===void 0||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var i;(i=this.labelInfo)===null||i===void 0||i.hideTooltip()},6e3));break}default:{this.dropdownElement.matches(":focus-within")&&((r=this.labelInfo)===null||r===void 0||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await c(this.root,E),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.hasLabelInfo=a(this.root,"label-info"),T(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}renderText(e,o=!1){if(o)return" "+e}render(){var e;return t(C,{key:"4caa607e6f52c90a77986ff7a6edf13984db3245",labelPosition:this.computedLabelPosition},t(w,{key:"d9793de4036bd153a491e15bf0de314efa0d8a61"},(e=this.label)===null||e===void 0?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(f(this.root,"error"),this.hasError),this.renderText(f(this.root,"help"),this.hasHelp),this.renderText(f(this.root,"label-info"),this.hasLabelInfo)),t(y,{key:"698ed26015f7a62ba80a3c27d9b3aec008bd852c",position:this.computedLabelPosition,required:this.required},t("slot",{key:"86c036453fae43c9d18ddc87cad4858b6c76e254",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"06d251db205e0a291c553c2cbf4b1ae3f2e3fe31",variant:this.indicatorMark,required:this.required}),t("slot",{key:"952f0d59f587e67561b93ee2659ed16a0c55e29e",name:"label-info"})),t("div",{key:"db32cfdcaa0c081b053f0e828198c03eef6e1e76",class:"gux-input-and-error-container"},t("div",{key:"4fd4aafc19f0cf122a9a8d32d17d171812029342",class:{"gux-input":!0,"gux-input-error":this.hasError}},t("slot",{key:"d2fed5431a315a019a6f6d93e47e68f7075f6358"})),t(x,{key:"368eb5e214e7d4963d9723df8ec0ec021e6dd581",show:this.hasError},t("slot",{key:"d061d9c878960c3ab36ee426c616168a277c4ac2",name:"error"})),t(v,{key:"f7c475fe48499cf1565833015a0e994e5e793a99",show:!this.hasError&&this.hasHelp},t("slot",{key:"7817cb51713b84bab801d4254805523d135f9710",name:"help"}))))}get variant(){return`dropdown-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.dropdownElement=this.root.querySelector("gux-dropdown")||this.root.querySelector("gux-dropdown-multi"),this.listboxElement=this.root.querySelector("gux-listbox")||this.root.querySelector("gux-listbox-multi"),this.required=this.dropdownElement.required,this.requiredObserver=g(this.dropdownElement,e=>{this.required=e}),q(this.root,this.listboxElement,"label"),h(this.root,this.listboxElement,"error"),h(this.root,this.listboxElement,"help")}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=F(this.label,this.labelPosition)}get root(){return p(this)}static get watchers(){return{hasError:["watchValue"]}}};I([b({childList:!0,subtree:!0})],u.prototype,"onMutation",null);u.style=S;export{u as gux_form_field_dropdown};
1
+ import{r as m,h as t,g as p}from"./index-DnQlhAI3.js";import{b as c}from"./index-4f1356d9-D95neeh-.js";import{O as b}from"./on-mutation-751e68e4-Dt8NpKTF.js";import{o as g}from"./on-attribute-change-33919964-C8j0fVsi.js";import{h as a}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as x,G as v}from"./gux-form-field-error-acb40a19-CHMA1_Nq.js";import{G as y,a as w,b as C}from"./gux-form-field-fieldset-container-6cb3610f-DQ6-2XRL.js";import{g as f}from"./get-slot-text-content-95a85429-DTSoMW52.js";import{s as q,b as h,a as F}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{t as T}from"./usage-36c49ec0-Dlq6IjQJ.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const k="Required",E={required:k},L=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1;inline-size:100%}",S=L;var I=function(e,o,r,i){var s=arguments.length,l=s<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,r,i);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(l=(s<3?n(l):s>3?n(o,r,l):n(o,r))||l);return s>3&&l&&Object.defineProperty(o,r,l),l};const u=class{constructor(e){m(this,e),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const o=this.root.querySelector("gux-dropdown")||this.root.querySelector("gux-dropdown-multi");o&&(o.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":{this.dropdownElement.matches(":focus-within")&&((o=this.labelInfo)===null||o===void 0||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var i;(i=this.labelInfo)===null||i===void 0||i.hideTooltip()},6e3));break}default:{this.dropdownElement.matches(":focus-within")&&((r=this.labelInfo)===null||r===void 0||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await c(this.root,E),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.hasLabelInfo=a(this.root,"label-info"),T(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}renderText(e,o=!1){if(o)return" "+e}render(){var e;return t(C,{key:"4caa607e6f52c90a77986ff7a6edf13984db3245",labelPosition:this.computedLabelPosition},t(w,{key:"d9793de4036bd153a491e15bf0de314efa0d8a61"},(e=this.label)===null||e===void 0?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(f(this.root,"error"),this.hasError),this.renderText(f(this.root,"help"),this.hasHelp),this.renderText(f(this.root,"label-info"),this.hasLabelInfo)),t(y,{key:"698ed26015f7a62ba80a3c27d9b3aec008bd852c",position:this.computedLabelPosition,required:this.required},t("slot",{key:"86c036453fae43c9d18ddc87cad4858b6c76e254",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"06d251db205e0a291c553c2cbf4b1ae3f2e3fe31",variant:this.indicatorMark,required:this.required}),t("slot",{key:"952f0d59f587e67561b93ee2659ed16a0c55e29e",name:"label-info"})),t("div",{key:"db32cfdcaa0c081b053f0e828198c03eef6e1e76",class:"gux-input-and-error-container"},t("div",{key:"4fd4aafc19f0cf122a9a8d32d17d171812029342",class:{"gux-input":!0,"gux-input-error":this.hasError}},t("slot",{key:"d2fed5431a315a019a6f6d93e47e68f7075f6358"})),t(x,{key:"368eb5e214e7d4963d9723df8ec0ec021e6dd581",show:this.hasError},t("slot",{key:"d061d9c878960c3ab36ee426c616168a277c4ac2",name:"error"})),t(v,{key:"f7c475fe48499cf1565833015a0e994e5e793a99",show:!this.hasError&&this.hasHelp},t("slot",{key:"7817cb51713b84bab801d4254805523d135f9710",name:"help"}))))}get variant(){return`dropdown-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.dropdownElement=this.root.querySelector("gux-dropdown")||this.root.querySelector("gux-dropdown-multi"),this.listboxElement=this.root.querySelector("gux-listbox")||this.root.querySelector("gux-listbox-multi"),this.required=this.dropdownElement.required,this.requiredObserver=g(this.dropdownElement,e=>{this.required=e}),q(this.root,this.listboxElement,"label"),h(this.root,this.listboxElement,"error"),h(this.root,this.listboxElement,"help")}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=F(this.label,this.labelPosition)}get root(){return p(this)}static get watchers(){return{hasError:["watchValue"]}}};I([b({childList:!0,subtree:!0})],u.prototype,"onMutation",null);u.style=S;export{u as gux_form_field_dropdown};
@@ -1 +1 @@
1
- import{h as e}from"./index-CWixJ8vL.js";const a=({show:r},s)=>e("div",{class:{"gux-form-field-help":!0,"gux-show":r}},e("div",{class:"gux-message"},s)),i=({show:r},s)=>e("div",{class:{"gux-form-field-error":!0,"gux-show":r}},e("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0,size:"small"}),e("div",{class:"gux-message"},s));export{a as G,i as a};
1
+ import{h as e}from"./index-DnQlhAI3.js";const a=({show:r},s)=>e("div",{class:{"gux-form-field-help":!0,"gux-show":r}},e("div",{class:"gux-message"},s)),i=({show:r},s)=>e("div",{class:{"gux-form-field-error":!0,"gux-show":r}},e("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0,size:"small"}),e("div",{class:"gux-message"},s));export{a as G,i as a};
@@ -1 +1 @@
1
- import{h as a}from"./index-CWixJ8vL.js";const s=({position:e,required:r},u)=>a("div",{class:{"gux-form-field-visual-label":!0,[`gux-${e}`]:!0,"gux-required":r},role:"presentation"},u),t=(e,r)=>a("legend",{class:"gux-form-field-screenreader-label"},r),d=({labelPosition:e,disabled:r},u)=>r?a("fieldset",{class:{"gux-form-field-fieldset-container":!0,[`gux-${e}`]:!!e},"aria-disabled":"true"},u):a("fieldset",{class:{"gux-form-field-fieldset-container":!0,[`gux-${e}`]:!!e}},u);export{s as G,t as a,d as b};
1
+ import{h as a}from"./index-DnQlhAI3.js";const s=({position:e,required:r},u)=>a("div",{class:{"gux-form-field-visual-label":!0,[`gux-${e}`]:!0,"gux-required":r},role:"presentation"},u),t=(e,r)=>a("legend",{class:"gux-form-field-screenreader-label"},r),d=({labelPosition:e,disabled:r},u)=>r?a("fieldset",{class:{"gux-form-field-fieldset-container":!0,[`gux-${e}`]:!!e},"aria-disabled":"true"},u):a("fieldset",{class:{"gux-form-field-fieldset-container":!0,[`gux-${e}`]:!!e}},u);export{s as G,t as a,d as b};
@@ -1 +1 @@
1
- import{r as g,h as t,f as u,g as h}from"./index-CWixJ8vL.js";import{b as c}from"./index-4f1356d9-DSfDpFAA.js";import{O as m}from"./on-mutation-751e68e4-BRlz63Dw.js";import{h as s}from"./has-slot-f24a46a6-D7GdaS0G.js";import{t as b}from"./usage-36c49ec0-Dlq6IjQJ.js";import{G as x,a as v}from"./gux-form-field-error-acb40a19-CkSp2BAb.js";import{G as F,a as y}from"./gux-form-field-container-3dd7c6ff-CbHwJYu_.js";import{g as D,v as C}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{p as I}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{a as w,o as k,b as T}from"./on-attribute-change-33919964-C8j0fVsi.js";import{s as f}from"./simulate-native-event-e0631897-BcLDngo1.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";const A="Upload file",U="Upload files",z="Change file",L="Change files",O="Click to upload",Z="Drag and drop a file here or",q="Drag and drop files here or",S={uploadFile:A,uploadFiles:U,changeFile:z,changeFiles:L,clickToUpload:O,dragAndDropFileInstructions:Z,dragAndDropFilesInstructions:q},_=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--gse-ui-fileUpload-mainContainer-gap)}.gux-drop-container{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-fileUpload-dragDrop-btnText-gap);margin-inline:0;font-family:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontFamily);font-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontSize);font-weight:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontWeight);line-height:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-lineHeight);color:var(--gse-ui-fileUpload-dragAndDrop-dropZoneText-color)}.gux-drop-container.gux-drop-zone{place-content:stretch center;align-items:center;min-block-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-minHeight);padding:20px;border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-color);border-radius:var(--gse-ui-fileUpload-dropZone-borderRadius)}.gux-drop-container.gux-drop-zone.gux-drag-over:not(.gux-disabled){background-color:var(--gse-ui-fileUpload-dragAndDrop-dropZone-background-active);border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-color)}.gux-drop-container.gux-drop-zone.gux-disabled{border-color:rgba(0, 0, 64, 0.2509803922)}.gux-drop-container.gux-drop-zone.gux-disabled .gux-drag-and-drop-text{opacity:0.5}.gux-offscreen{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-proxy-button{inline-size:fit-content;border-radius:var(--gse-ui-button-borderRadius)}.gux-proxy-button:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-file-list{display:flex;flex-direction:column;gap:var(--gse-ui-fileUpload-fileCard-cardGroup-gap);inline-size:100%}",P=_;var B=function(e,o,i,r){var l=arguments.length,n=l<3?o:r===null?r=Object.getOwnPropertyDescriptor(o,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,o,i,r);else for(var d=e.length-1;d>=0;d--)(a=e[d])&&(n=(l<3?a(n):l>3?a(o,i,n):a(o,i))||n);return l>3&&n&&Object.defineProperty(o,i,n),n};const p=class{constructor(e){g(this,e),this.indicatorMark="required",this.dragAndDrop=!1,this.disabled=!1,this.hasError=!1,this.hasHelp=!1,this.required=!1,this.multiple=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,i;switch(e.key){case"Tab":{this.input.matches(":focus-visible")&&((o=this.labelInfo)===null||o===void 0||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var r;(r=this.labelInfo)===null||r===void 0||r.hideTooltip()},6e3));break}default:{this.input.matches(":focus-visible")&&((i=this.labelInfo)===null||i===void 0||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}onGuxRemoveFile(e){this.removeFile(e.detail)}async componentWillLoad(){this.getI18nValue=await c(this.root,S),this.setInput(),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),b(this.root)}disconnectedCallback(){var e,o,i;(e=this.disabledObserver)===null||e===void 0||e.disconnect(),(o=this.requiredObserver)===null||o===void 0||o.disconnect(),(i=this.multipleObserver)===null||i===void 0||i.disconnect()}render(){return t(y,{key:"9d887e6c4512a8391dde9846c231bf4e22187e84",labelPosition:"above"},t(F,{key:"492fa13142a4be8adb255ed97a2c2f3c8c5873c5",position:"above",required:this.required},t("slot",{key:"7e5b0a6e5d16df5d61091e591d736e3c9b70757e",name:"label"}),t("gux-form-field-label-indicator",{key:"3093588796cfa6f643351d922886606afd8d9f85",variant:this.indicatorMark,required:this.required}),t("slot",{key:"8f114a5c512df1976c51f41c5d17b55e14559338",name:"label-info"})),t("div",{key:"f903f9374864c2a92de3e41d6ef1f63531a8af30",class:"gux-input-and-error-container"},t(x,{key:"4a8ad0368308fdd0e95463b239bcd4bef60a2ace",show:this.hasHelp},t("slot",{key:"2f61a4eaef1b9e29079fa562b42a00117951e117",name:"help"})),this.renderInputSlot(),t(v,{key:"835ba7fc9d59bb8f6b13a354eb98236d25bbf967",show:this.hasError},t("slot",{key:"e77e38555dd9f11f8fc97e6d0f85b079acb86a1d",name:"error"})),this.renderFileList()))}setInput(){this.input=D(this.root,'input[type="file"][slot="input"]'),this.input.addEventListener("input",()=>{u(this.root)}),I(this.input),this.disabled=this.input.disabled,this.required=this.input.required,this.multiple=this.input.multiple,this.disabledObserver=w(this.input,e=>{this.disabled=e}),this.requiredObserver=k(this.input,e=>{this.required=e}),this.multipleObserver=T(this.input,e=>{this.multiple=e}),C(this.root,this.input)}getDropZoneText(){return this.multiple?this.getI18nValue("dragAndDropFilesInstructions"):this.getI18nValue("dragAndDropFileInstructions")}getProxyButtonText(){return this.dragAndDrop?this.getI18nValue("clickToUpload"):this.multiple?this.input.files.length>0?this.getI18nValue("changeFiles"):this.getI18nValue("uploadFiles"):this.input.files.length>0?this.getI18nValue("changeFile"):this.getI18nValue("uploadFile")}removeFile(e){const o=this.input.files,i=new DataTransfer;for(let r=0;r<o.length;r++)e!==r&&i.items.add(o[r]);this.modifyInputFiles(i.files)}modifyInputFiles(e){this.input.files=e,f(this.root,"input"),f(this.root,"change"),u(this.root)}onProxyFileButtonClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.input.focus(),this.input.click()}onDrop(e){if(e.preventDefault(),e.stopPropagation(),this.disabled)return;const o=this.input.files,i=e.dataTransfer.items,r=new DataTransfer;if(this.multiple)for(let l=0;l<o.length;l++)r.items.add(o[l]);for(let l=0;l<i.length;l++){const n=i[l];if(n.kind==="file"&&n.webkitGetAsEntry().isFile&&(r.items.add(n.getAsFile()),!this.multiple))break}this.dropContainer.classList.remove("gux-drag-over"),this.modifyInputFiles(r.files)}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.dropContainer.classList.add("gux-drag-over")}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.dropContainer.classList.remove("gux-drag-over")}renderFileList(){const e=Array.from(this.input.files||new DataTransfer().files);return e.length===0?null:t("div",{class:"gux-file-list"},e.map((o,i)=>t("slot",{name:`file-${i}`},t("gux-file-list-item",{name:o.name,index:i,disabled:this.disabled}))))}renderInputSlot(){return t("div",{ref:e=>this.dropContainer=e,class:{"gux-drop-container":!0,"gux-drop-zone":this.dragAndDrop,"gux-disabled":this.disabled},onDrop:e=>this.onDrop(e),onDragOver:e=>this.onDragOver(e),onDragEnter:e=>this.onDragOver(e),onDragLeave:e=>this.onDragLeave(e)},this.dragAndDrop&&t("div",{class:"gux-drag-and-drop-text"},this.getDropZoneText()),t("div",{class:"gux-proxy-button"},t("gux-button-slot",{accent:"tertiary"},t("button",{tabIndex:-1,type:"button",disabled:this.disabled,onClick:e=>this.onProxyFileButtonClick(e)},t("div",null,this.getProxyButtonText()))),t("div",{class:"gux-offscreen"},t("slot",{name:"input",onSlotchange:()=>this.setInput()}))))}get root(){return h(this)}};B([m({childList:!0,subtree:!0})],p.prototype,"onMutation",null);p.style=P;export{p as gux_form_field_file_beta};
1
+ import{r as g,h as t,f as u,g as h}from"./index-DnQlhAI3.js";import{b as c}from"./index-4f1356d9-D95neeh-.js";import{O as m}from"./on-mutation-751e68e4-Dt8NpKTF.js";import{h as s}from"./has-slot-f24a46a6-D7GdaS0G.js";import{t as b}from"./usage-36c49ec0-Dlq6IjQJ.js";import{G as x,a as v}from"./gux-form-field-error-acb40a19-CHMA1_Nq.js";import{G as F,a as y}from"./gux-form-field-container-3dd7c6ff-BO4NBxm6.js";import{g as D,v as C}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{p as I}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{a as w,o as k,b as T}from"./on-attribute-change-33919964-C8j0fVsi.js";import{s as f}from"./simulate-native-event-e0631897-BcLDngo1.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";const A="Upload file",U="Upload files",z="Change file",L="Change files",O="Click to upload",Z="Drag and drop a file here or",q="Drag and drop files here or",S={uploadFile:A,uploadFiles:U,changeFile:z,changeFiles:L,clickToUpload:O,dragAndDropFileInstructions:Z,dragAndDropFilesInstructions:q},_=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--gse-ui-fileUpload-mainContainer-gap)}.gux-drop-container{box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-fileUpload-dragDrop-btnText-gap);margin-inline:0;font-family:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontFamily);font-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontSize);font-weight:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-fontWeight);line-height:var(--gse-ui-fileUpload-dragAndDrop-dropZone-text-lineHeight);color:var(--gse-ui-fileUpload-dragAndDrop-dropZoneText-color)}.gux-drop-container.gux-drop-zone{place-content:stretch center;align-items:center;min-block-size:var(--gse-ui-fileUpload-dragAndDrop-dropZone-minHeight);padding:20px;border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-default-border-color);border-radius:var(--gse-ui-fileUpload-dropZone-borderRadius)}.gux-drop-container.gux-drop-zone.gux-drag-over:not(.gux-disabled){background-color:var(--gse-ui-fileUpload-dragAndDrop-dropZone-background-active);border:var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-width) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-style) var(--gse-ui-fileUpload-dragAndDrop-dropZone-active-border-color)}.gux-drop-container.gux-drop-zone.gux-disabled{border-color:rgba(0, 0, 64, 0.2509803922)}.gux-drop-container.gux-drop-zone.gux-disabled .gux-drag-and-drop-text{opacity:0.5}.gux-offscreen{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-proxy-button{inline-size:fit-content;border-radius:var(--gse-ui-button-borderRadius)}.gux-proxy-button:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-file-list{display:flex;flex-direction:column;gap:var(--gse-ui-fileUpload-fileCard-cardGroup-gap);inline-size:100%}",P=_;var B=function(e,o,i,r){var l=arguments.length,n=l<3?o:r===null?r=Object.getOwnPropertyDescriptor(o,i):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,o,i,r);else for(var d=e.length-1;d>=0;d--)(a=e[d])&&(n=(l<3?a(n):l>3?a(o,i,n):a(o,i))||n);return l>3&&n&&Object.defineProperty(o,i,n),n};const p=class{constructor(e){g(this,e),this.indicatorMark="required",this.dragAndDrop=!1,this.disabled=!1,this.hasError=!1,this.hasHelp=!1,this.required=!1,this.multiple=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,i;switch(e.key){case"Tab":{this.input.matches(":focus-visible")&&((o=this.labelInfo)===null||o===void 0||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var r;(r=this.labelInfo)===null||r===void 0||r.hideTooltip()},6e3));break}default:{this.input.matches(":focus-visible")&&((i=this.labelInfo)===null||i===void 0||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}onGuxRemoveFile(e){this.removeFile(e.detail)}async componentWillLoad(){this.getI18nValue=await c(this.root,S),this.setInput(),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),b(this.root)}disconnectedCallback(){var e,o,i;(e=this.disabledObserver)===null||e===void 0||e.disconnect(),(o=this.requiredObserver)===null||o===void 0||o.disconnect(),(i=this.multipleObserver)===null||i===void 0||i.disconnect()}render(){return t(y,{key:"9d887e6c4512a8391dde9846c231bf4e22187e84",labelPosition:"above"},t(F,{key:"492fa13142a4be8adb255ed97a2c2f3c8c5873c5",position:"above",required:this.required},t("slot",{key:"7e5b0a6e5d16df5d61091e591d736e3c9b70757e",name:"label"}),t("gux-form-field-label-indicator",{key:"3093588796cfa6f643351d922886606afd8d9f85",variant:this.indicatorMark,required:this.required}),t("slot",{key:"8f114a5c512df1976c51f41c5d17b55e14559338",name:"label-info"})),t("div",{key:"f903f9374864c2a92de3e41d6ef1f63531a8af30",class:"gux-input-and-error-container"},t(x,{key:"4a8ad0368308fdd0e95463b239bcd4bef60a2ace",show:this.hasHelp},t("slot",{key:"2f61a4eaef1b9e29079fa562b42a00117951e117",name:"help"})),this.renderInputSlot(),t(v,{key:"835ba7fc9d59bb8f6b13a354eb98236d25bbf967",show:this.hasError},t("slot",{key:"e77e38555dd9f11f8fc97e6d0f85b079acb86a1d",name:"error"})),this.renderFileList()))}setInput(){this.input=D(this.root,'input[type="file"][slot="input"]'),this.input.addEventListener("input",()=>{u(this.root)}),I(this.input),this.disabled=this.input.disabled,this.required=this.input.required,this.multiple=this.input.multiple,this.disabledObserver=w(this.input,e=>{this.disabled=e}),this.requiredObserver=k(this.input,e=>{this.required=e}),this.multipleObserver=T(this.input,e=>{this.multiple=e}),C(this.root,this.input)}getDropZoneText(){return this.multiple?this.getI18nValue("dragAndDropFilesInstructions"):this.getI18nValue("dragAndDropFileInstructions")}getProxyButtonText(){return this.dragAndDrop?this.getI18nValue("clickToUpload"):this.multiple?this.input.files.length>0?this.getI18nValue("changeFiles"):this.getI18nValue("uploadFiles"):this.input.files.length>0?this.getI18nValue("changeFile"):this.getI18nValue("uploadFile")}removeFile(e){const o=this.input.files,i=new DataTransfer;for(let r=0;r<o.length;r++)e!==r&&i.items.add(o[r]);this.modifyInputFiles(i.files)}modifyInputFiles(e){this.input.files=e,f(this.root,"input"),f(this.root,"change"),u(this.root)}onProxyFileButtonClick(e){e.preventDefault(),e.stopImmediatePropagation(),this.input.focus(),this.input.click()}onDrop(e){if(e.preventDefault(),e.stopPropagation(),this.disabled)return;const o=this.input.files,i=e.dataTransfer.items,r=new DataTransfer;if(this.multiple)for(let l=0;l<o.length;l++)r.items.add(o[l]);for(let l=0;l<i.length;l++){const n=i[l];if(n.kind==="file"&&n.webkitGetAsEntry().isFile&&(r.items.add(n.getAsFile()),!this.multiple))break}this.dropContainer.classList.remove("gux-drag-over"),this.modifyInputFiles(r.files)}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.dropContainer.classList.add("gux-drag-over")}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.dropContainer.classList.remove("gux-drag-over")}renderFileList(){const e=Array.from(this.input.files||new DataTransfer().files);return e.length===0?null:t("div",{class:"gux-file-list"},e.map((o,i)=>t("slot",{name:`file-${i}`},t("gux-file-list-item",{name:o.name,index:i,disabled:this.disabled}))))}renderInputSlot(){return t("div",{ref:e=>this.dropContainer=e,class:{"gux-drop-container":!0,"gux-drop-zone":this.dragAndDrop,"gux-disabled":this.disabled},onDrop:e=>this.onDrop(e),onDragOver:e=>this.onDragOver(e),onDragEnter:e=>this.onDragOver(e),onDragLeave:e=>this.onDragLeave(e)},this.dragAndDrop&&t("div",{class:"gux-drag-and-drop-text"},this.getDropZoneText()),t("div",{class:"gux-proxy-button"},t("gux-button-slot",{accent:"tertiary"},t("button",{tabIndex:-1,type:"button",disabled:this.disabled,onClick:e=>this.onProxyFileButtonClick(e)},t("div",null,this.getProxyButtonText()))),t("div",{class:"gux-offscreen"},t("slot",{name:"input",onSlotchange:()=>this.setInput()}))))}get root(){return h(this)}};B([m({childList:!0,subtree:!0})],p.prototype,"onMutation",null);p.style=P;export{p as gux_form_field_file_beta};
@@ -1 +1 @@
1
- import{r as u,h as t,g as h}from"./index-CWixJ8vL.js";import{O as p}from"./on-mutation-751e68e4-BRlz63Dw.js";import{h as s}from"./has-slot-f24a46a6-D7GdaS0G.js";import{t as m}from"./usage-36c49ec0-Dlq6IjQJ.js";import{a as c,G as b}from"./gux-form-field-error-acb40a19-CkSp2BAb.js";import{G as g,a as x}from"./gux-form-field-container-3dd7c6ff-CbHwJYu_.js";import{a as v,g as y,v as C}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{p as F}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{o as w}from"./on-attribute-change-33919964-C8j0fVsi.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const k=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}",I=k;var T=function(e,o,i,r){var a=arguments.length,l=a<3?o:r===null?r=Object.getOwnPropertyDescriptor(o,i):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,i,r);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(l=(a<3?n(l):a>3?n(o,i,l):n(o,i))||l);return a>3&&l&&Object.defineProperty(o,i,l),l};const d=class{constructor(e){u(this,e),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,i;switch(e.key){case"Tab":{this.input.matches(":focus-visible")&&((o=this.labelInfo)===null||o===void 0||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var r;(r=this.labelInfo)===null||r===void 0||r.hideTooltip()},6e3));break}default:{this.input.matches(":focus-visible")&&((i=this.labelInfo)===null||i===void 0||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),m(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=v(this.label,this.labelPosition)}setInput(){this.input=y(this.root,'input[type="file"][slot="input"]'),F(this.input),this.required=this.input.required,this.requiredObserver=w(this.input,e=>{this.required=e}),C(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(x,{key:"81a76e19d2642450f6700473fbf980e991a2cc2f",labelPosition:this.computedLabelPosition},t(g,{key:"ae087d7a1287e9ef62d5ecb58135cb4ef62bf364",position:this.computedLabelPosition,required:this.required},t("slot",{key:"0fde915ee6993a85f70cff079bc2bbc317b13f8e",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"36dfd2da6ed5728d7255b12098e3ab5f49320d0e",variant:this.indicatorMark,required:this.required}),t("slot",{key:"806f91102853273d48b484ee806a0ed700b27a49",name:"label-info"})),t("div",{key:"582f7cf93e0befe3f5ff66217af574128c11307d",class:"gux-input-and-error-container"},t("slot",{key:"c1d06dfc8938b86a4d34776c16ccafe33a97a4e7",name:"input",onSlotchange:()=>this.setInput()}),t(c,{key:"17ab9fee479aadd9db3a3c5e4f07c66364231476",show:this.hasError},t("slot",{key:"7aaa8bebe1a8d4a80387d36af4cf4a1f748c510c",name:"error"})),t(b,{key:"37df349655001e8542aec879c6da1d2962c4b0eb",show:!this.hasError&&this.hasHelp},t("slot",{key:"40d12e88fc9aceae27428d06be4426a58d9cc8ac",name:"help"}))))}get root(){return h(this)}};T([p({childList:!0,subtree:!0})],d.prototype,"onMutation",null);d.style=I;export{d as gux_form_field_file};
1
+ import{r as u,h as t,g as h}from"./index-DnQlhAI3.js";import{O as p}from"./on-mutation-751e68e4-Dt8NpKTF.js";import{h as s}from"./has-slot-f24a46a6-D7GdaS0G.js";import{t as m}from"./usage-36c49ec0-Dlq6IjQJ.js";import{a as c,G as b}from"./gux-form-field-error-acb40a19-CHMA1_Nq.js";import{G as g,a as x}from"./gux-form-field-container-3dd7c6ff-BO4NBxm6.js";import{a as v,g as y,v as C}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{p as F}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{o as w}from"./on-attribute-change-33919964-C8j0fVsi.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const k=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}",I=k;var T=function(e,o,i,r){var a=arguments.length,l=a<3?o:r===null?r=Object.getOwnPropertyDescriptor(o,i):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,i,r);else for(var f=e.length-1;f>=0;f--)(n=e[f])&&(l=(a<3?n(l):a>3?n(o,i,l):n(o,i))||l);return a>3&&l&&Object.defineProperty(o,i,l),l};const d=class{constructor(e){u(this,e),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,i;switch(e.key){case"Tab":{this.input.matches(":focus-visible")&&((o=this.labelInfo)===null||o===void 0||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var r;(r=this.labelInfo)===null||r===void 0||r.hideTooltip()},6e3));break}default:{this.input.matches(":focus-visible")&&((i=this.labelInfo)===null||i===void 0||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),m(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=v(this.label,this.labelPosition)}setInput(){this.input=y(this.root,'input[type="file"][slot="input"]'),F(this.input),this.required=this.input.required,this.requiredObserver=w(this.input,e=>{this.required=e}),C(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(x,{key:"81a76e19d2642450f6700473fbf980e991a2cc2f",labelPosition:this.computedLabelPosition},t(g,{key:"ae087d7a1287e9ef62d5ecb58135cb4ef62bf364",position:this.computedLabelPosition,required:this.required},t("slot",{key:"0fde915ee6993a85f70cff079bc2bbc317b13f8e",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"36dfd2da6ed5728d7255b12098e3ab5f49320d0e",variant:this.indicatorMark,required:this.required}),t("slot",{key:"806f91102853273d48b484ee806a0ed700b27a49",name:"label-info"})),t("div",{key:"582f7cf93e0befe3f5ff66217af574128c11307d",class:"gux-input-and-error-container"},t("slot",{key:"c1d06dfc8938b86a4d34776c16ccafe33a97a4e7",name:"input",onSlotchange:()=>this.setInput()}),t(c,{key:"17ab9fee479aadd9db3a3c5e4f07c66364231476",show:this.hasError},t("slot",{key:"7aaa8bebe1a8d4a80387d36af4cf4a1f748c510c",name:"error"})),t(b,{key:"37df349655001e8542aec879c6da1d2962c4b0eb",show:!this.hasError&&this.hasHelp},t("slot",{key:"40d12e88fc9aceae27428d06be4426a58d9cc8ac",name:"help"}))))}get root(){return h(this)}};T([p({childList:!0,subtree:!0})],d.prototype,"onMutation",null);d.style=I;export{d as gux_form_field_file};
@@ -1 +1 @@
1
- import{r as t,h as o,g as e}from"./index-CWixJ8vL.js";import{t as n}from"./usage-36c49ec0-Dlq6IjQJ.js";import{b as i}from"./index-4f1356d9-DSfDpFAA.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const u="Clear",a={clear:u},s="button{display:flex;padding:0;color:var(--gse-ui-formControl-input-inputClearable-inputClearableColor);background:transparent;border:none;border-radius:var(--gse-ui-formControl-input-borderRadius)}button:not(:disabled):focus-visible,button:not(:disabled):hover{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor);cursor:pointer}button gux-icon{border-radius:var(--gse-ui-formControl-input-borderRadius)}button:focus{outline:none}button:focus-visible:enabled gux-icon{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}",l=s,d=class{constructor(r){t(this,r)}async componentWillLoad(){n(this.root),this.i18n=await i(this.root,a)}render(){return o("button",{key:"77f84eb9a74cd779b81ab929a801b444779f0eab",tabIndex:-1,type:"button",title:this.i18n("clear")},o("gux-icon",{key:"832e3b4435a02295473dd443b37757b818098d05","icon-name":"fa/xmark-large-regular",decorative:!0,size:"small"}))}static get delegatesFocus(){return!0}get root(){return e(this)}};d.style=l;export{d as gux_form_field_input_clear_button};
1
+ import{r as t,h as o,g as e}from"./index-DnQlhAI3.js";import{t as n}from"./usage-36c49ec0-Dlq6IjQJ.js";import{b as i}from"./index-4f1356d9-D95neeh-.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const u="Clear",a={clear:u},s="button{display:flex;padding:0;color:var(--gse-ui-formControl-input-inputClearable-inputClearableColor);background:transparent;border:none;border-radius:var(--gse-ui-formControl-input-borderRadius)}button:not(:disabled):focus-visible,button:not(:disabled):hover{color:var(--gse-ui-formControl-input-inputIcon-iconEndColor);cursor:pointer}button gux-icon{border-radius:var(--gse-ui-formControl-input-borderRadius)}button:focus{outline:none}button:focus-visible:enabled gux-icon{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}",l=s,d=class{constructor(r){t(this,r)}async componentWillLoad(){n(this.root),this.i18n=await i(this.root,a)}render(){return o("button",{key:"77f84eb9a74cd779b81ab929a801b444779f0eab",tabIndex:-1,type:"button",title:this.i18n("clear")},o("gux-icon",{key:"832e3b4435a02295473dd443b37757b818098d05","icon-name":"fa/xmark-large-regular",decorative:!0,size:"small"}))}static get delegatesFocus(){return!0}get root(){return e(this)}};d.style=l;export{d as gux_form_field_input_clear_button};
@@ -1 +1 @@
1
- import{r,h as o,g as t}from"./index-CWixJ8vL.js";import{t as e}from"./usage-36c49ec0-Dlq6IjQJ.js";import{b as a}from"./index-4f1356d9-DSfDpFAA.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const n="optional",l={optional:n},s=".gux-form-field-label-indicator-required{padding-inline-start:var(--gse-ui-formControl-formField-gap);color:var(--gse-ui-formControl-label-indicator-requiredColor)}.gux-form-field-label-indicator-optional{margin-inline-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-label-indicator-text-fontFamily);font-size:var(--gse-ui-formControl-label-indicator-text-fontSize);font-weight:var(--gse-ui-formControl-label-indicator-text-fontWeight);line-height:var(--gse-ui-formControl-label-indicator-text-lineHeight);color:var(--gse-ui-formControl-label-indicator-optionalColor)}",d=s,f=class{constructor(i){r(this,i),this.variant="required",this.required=!1}async componentWillLoad(){e(this.root,{variant:this.variant}),this.i18n=await a(this.root,l)}render(){return this.variant==="optional"&&!this.required?o("span",{class:"gux-form-field-label-indicator-optional"},"(",this.i18n("optional"),")"):this.variant==="required"&&this.required?o("span",{class:"gux-form-field-label-indicator-required","aria-hidden":"true"},"*"):null}get root(){return t(this)}};f.style=d;export{f as gux_form_field_label_indicator};
1
+ import{r,h as o,g as t}from"./index-DnQlhAI3.js";import{t as e}from"./usage-36c49ec0-Dlq6IjQJ.js";import{b as a}from"./index-4f1356d9-D95neeh-.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const n="optional",l={optional:n},s=".gux-form-field-label-indicator-required{padding-inline-start:var(--gse-ui-formControl-formField-gap);color:var(--gse-ui-formControl-label-indicator-requiredColor)}.gux-form-field-label-indicator-optional{margin-inline-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-label-indicator-text-fontFamily);font-size:var(--gse-ui-formControl-label-indicator-text-fontSize);font-weight:var(--gse-ui-formControl-label-indicator-text-fontWeight);line-height:var(--gse-ui-formControl-label-indicator-text-lineHeight);color:var(--gse-ui-formControl-label-indicator-optionalColor)}",d=s,f=class{constructor(i){r(this,i),this.variant="required",this.required=!1}async componentWillLoad(){e(this.root,{variant:this.variant}),this.i18n=await a(this.root,l)}render(){return this.variant==="optional"&&!this.required?o("span",{class:"gux-form-field-label-indicator-optional"},"(",this.i18n("optional"),")"):this.variant==="required"&&this.required?o("span",{class:"gux-form-field-label-indicator-required","aria-hidden":"true"},"*"):null}get root(){return t(this)}};f.style=d;export{f as gux_form_field_label_indicator};
@@ -1 +1 @@
1
- import{r as c,f as v,h as o,g as h,c as C}from"./index-CWixJ8vL.js";import{b}from"./index-4f1356d9-DSfDpFAA.js";import{c as y,o as k}from"./on-input-disabled-state-change-27395154-_B452ZSd.js";import{O as w}from"./on-mutation-751e68e4-BRlz63Dw.js";import{o as I}from"./on-attribute-change-33919964-C8j0fVsi.js";import{p as O}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{h as d,c as E,g as T,v as P,a as F,d as f}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{s as p}from"./simulate-native-event-e0631897-BcLDngo1.js";import{h as u}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as z,G as L}from"./gux-form-field-error-acb40a19-CkSp2BAb.js";import{G as S,a as D}from"./gux-form-field-container-3dd7c6ff-CbHwJYu_.js";import{t as g}from"./usage-36c49ec0-Dlq6IjQJ.js";import{f as B}from"./focus-input-element-8a137b12-hXwZ4F3C.js";import{t as q}from"./en-25a315a0-C7J6_avI.js";import{O as _}from"./on-click-outside-6c2e399b-BC2t0a8o.js";import{b as R}from"./after-next-render-07a41f53-C_KTwidI.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";const H="Increment",G="Decrement",j={increment:H,decrement:G},N=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;inline-size:100%;padding-block-end:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);text-align:end;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;inline-size:100%}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);cursor:text;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-step-buttons-container{flex:0 1 14px;align-self:auto;order:0;margin-inline-start:var(--gse-ui-formControl-spinButton-gap)}.gux-step-buttons-container .gux-step-button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-defaultColor);background:transparent;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) transparent}.gux-step-buttons-container .gux-step-button:not(:disabled):focus-visible,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{cursor:pointer;border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-step-buttons-container .gux-step-button gux-icon{flex:0 0 auto;inline-size:14px;block-size:14px}",V=N;var M=function(e,t,i,n){var a=arguments.length,r=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const m=class{constructor(e){c(this,e),this.indicatorMark="required",this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help")}handleKeyup(e){var t,i;switch(e.key){case"Tab":{this.input.matches(":focus-visible")&&((t=this.labelInfo)===null||t===void 0||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var n;(n=this.labelInfo)===null||n===void 0||n.hideTooltip()},6e3));break}default:{this.input.matches(":focus-visible")&&((i=this.labelInfo)===null||i===void 0||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async guxForceUpdate(){this.hasContent=d(this.input),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),v(this.root)}async componentWillLoad(){this.getI18nValue=await b(this.root,j),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),g(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){const e=this.clearable&&this.hasContent&&!this.disabled;return o(D,{key:"12dc2779919b1b02ffa27892b0dd0a618fbe11a7",labelPosition:this.computedLabelPosition},o(S,{key:"687d9ab3416d421cef725504497650b179143827",required:this.required,position:this.computedLabelPosition},o("slot",{key:"22a8650e52351a1fd9d55b644975f435b78e5f23",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"42a582daaa9d37ed3abd22ca00757ff5f0b40119",variant:this.indicatorMark,required:this.required}),o("slot",{key:"31fdad12b44a87f24c8c139ba8c4aeadaf879228",name:"label-info"})),o("div",{key:"7933d9233db513e5c370b0d25fffebcae3f62d98",class:"gux-input-and-error-container"},o("div",{key:"77ccdb3e33e3b52c6685028ff2ef5d585a5460a5",class:{"gux-input":!0,"gux-input-error":this.hasError},part:"input-section"},o("div",{key:"8d7b02afda8b8dbe83bb1397a2af6e5e3a3aa826",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":e},onClick:()=>B(this.input)},o("slot",{key:"50df4de53dd69305bf3104f0f741b8236c9d62f2",name:"input",onSlotchange:()=>this.setInput()}),e&&o("gux-form-field-input-clear-button",{key:"8437b6e737c34f18308195eeb60ae0eade8f5cb1",onClick:()=>E(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),o(z,{key:"bfefc2accf2de30da422472da670cbd5b25804dd",show:this.hasError},o("slot",{key:"4e2bfc741b61f5e5bfe4fe8bb2f1106376c69220",name:"error"})),o(L,{key:"80177d9422eeb189d1a6a2b90b1bb6dfc8d824f6",show:!this.hasError&&this.hasHelp},o("slot",{key:"917ef57b398d13e25aebf5d34bb91cbcde943151",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=T(this.root,'input[type="number"][slot="input"]'),this.hasContent=d(this.input),O(this.input),this.input.addEventListener("input",()=>{this.hasContent=d(this.input)}),this.disabled=y(this.input),this.required=this.input.required,this.disabledObserver=k(this.input,e=>{this.disabled=e}),this.requiredObserver=I(this.input,e=>{this.required=e}),P(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=F(this.label,this.labelPosition)}renderStepButtons(e,t,i){return o("div",{class:"gux-step-buttons-container"},o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("increment"),disabled:i,onClick:()=>this.stepUp(e)},o("gux-icon",{"icon-name":"custom/chevron-up-small-regular",decorative:!0})),o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("decrement"),disabled:i,onClick:()=>this.stepDown(e)},o("gux-icon",{"icon-name":"custom/chevron-down-small-regular",decorative:!0})))}stepDown(e){e.value===""?f(e,e.min||"0",!1):(e.stepDown(),this.simulateNativeInputAndChangeEvents(e))}stepUp(e){e.value===""?f(e,e.min||"0",!1):(e.stepUp(),this.simulateNativeInputAndChangeEvents(e))}simulateNativeInputAndChangeEvents(e){p(e,"input"),p(e,"change")}static get delegatesFocus(){return!0}get root(){return h(this)}};M([w({childList:!0,subtree:!0})],m.prototype,"onMutation",null);m.style=V;const U="gux-button gux-icon{padding-block-start:4px}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}",W=U;var A=function(e,t,i,n){var a=arguments.length,r=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const x=class{constructor(e){c(this,e),this.goToPage=C(this,"goToPage",7),this.isOpen=!1,this.disabled=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,this.ellipsisButton.focus();break;case"Tab":{this.isOpen=!1;break}case"ArrowDown":case"Enter":t.includes(this.ellipsisButton)&&(e.preventDefault(),this.isOpen=!0,this.focusInputElement());break}}handleKeyup(e){switch(e.key){case" ":{e.composedPath().includes(this.ellipsisButton)&&(this.isOpen=!0,this.focusInputElement());break}}}watchIsDisabled(e){e&&(this.isOpen=!1)}toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.focusInputElement()}onClickOutside(){this.isOpen=!1}focusInputElement(){R(()=>{this.inputElement.focus()})}applyInputListener(){var e;(e=this.inputElement)===null||e===void 0||e.addEventListener("keydown",t=>{const i=t.target.value.trim();(t.key=="Enter"||t.key==" ")&&(i==""?t.preventDefault():(t.preventDefault(),this.goToPage.emit(t.target.value),this.isOpen=!1))})}async componentWillLoad(){this.i18n=await b(this.root,q,"gux-pagination-buttons"),g(this.root)}componentDidLoad(){this.applyInputListener()}render(){return[o("gux-button",{key:"36985a051239ecb27a5a7f8ebdd58d266311e6ae",accent:"ghost",id:"popover-target",type:"button",disabled:this.disabled,ref:e=>this.ellipsisButton=e,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},o("gux-icon",{key:"015dd7d23b3e45d8d526d568cf2dcfdcf0b4f285",screenreaderText:this.i18n("goToPage"),"icon-name":"fa/ellipsis-regular",size:"small"})),o("gux-tooltip",{key:"31fb8d209a0a7d1359739984aeb6ec7c3ad8e48d",for:"popover-target"},o("div",{key:"8cd090daee18ef9b221e2a31b6df147af174a996",slot:"content"},this.i18n("goToPage"))),o("gux-popover",{key:"71aa010b988fdfa78aecf6698d3fab22f1100fa5","is-open":this.isOpen,for:"popover-target"},o("span",{key:"3d5e610300b17f93546365df3cba7daa0fff07fb",slot:"title"},this.i18n("goToPage")),o("gux-form-field-number",{key:"babc6464e1d60a1ba11d924c1c23d3e678a41828"},o("input",{key:"8785c8665e2572e9530b49ef4d5f58ba5bdd4691",slot:"input",type:"number",ref:e=>this.inputElement=e,min:"1",max:this.totalPages,value:"1",onKeyDown:e=>["e","E","+","-","."].includes(e.key)&&e.preventDefault()}),o("label",{key:"4fc1d7c66dd62cb88711eb657944f595f6e22011",slot:"label"})))]}get root(){return h(this)}static get watchers(){return{disabled:["watchIsDisabled"]}}};A([_({triggerEvents:"mousedown"})],x.prototype,"onClickOutside",null);x.style=W;export{m as gux_form_field_number,x as gux_pagination_ellipsis_button};
1
+ import{r as c,f as v,h as o,g as h,c as C}from"./index-DnQlhAI3.js";import{b}from"./index-4f1356d9-D95neeh-.js";import{c as y,o as k}from"./on-input-disabled-state-change-27395154-_B452ZSd.js";import{O as w}from"./on-mutation-751e68e4-Dt8NpKTF.js";import{o as I}from"./on-attribute-change-33919964-C8j0fVsi.js";import{p as O}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{h as d,c as E,g as T,v as P,a as F,d as f}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import{s as p}from"./simulate-native-event-e0631897-BcLDngo1.js";import{h as u}from"./has-slot-f24a46a6-D7GdaS0G.js";import{a as z,G as L}from"./gux-form-field-error-acb40a19-CHMA1_Nq.js";import{G as S,a as D}from"./gux-form-field-container-3dd7c6ff-BO4NBxm6.js";import{t as g}from"./usage-36c49ec0-Dlq6IjQJ.js";import{f as B}from"./focus-input-element-8a137b12-hXwZ4F3C.js";import{t as q}from"./en-25a315a0-C7J6_avI.js";import{O as _}from"./on-click-outside-6c2e399b-16SRQpNH.js";import{b as R}from"./after-next-render-07a41f53-C_KTwidI.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";const H="Increment",G="Decrement",j={increment:H,decrement:G},N=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;inline-size:100%;padding-block-end:0;overflow:hidden;text-overflow:ellipsis;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);text-align:end;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;inline-size:100%}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);cursor:text;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-step-buttons-container{flex:0 1 14px;align-self:auto;order:0;margin-inline-start:var(--gse-ui-formControl-spinButton-gap)}.gux-step-buttons-container .gux-step-button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-defaultColor);background:transparent;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) transparent}.gux-step-buttons-container .gux-step-button:not(:disabled):focus-visible,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{cursor:pointer;border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-step-buttons-container .gux-step-button gux-icon{flex:0 0 auto;inline-size:14px;block-size:14px}",V=N;var M=function(e,t,i,n){var a=arguments.length,r=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const m=class{constructor(e){c(this,e),this.indicatorMark="required",this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help")}handleKeyup(e){var t,i;switch(e.key){case"Tab":{this.input.matches(":focus-visible")&&((t=this.labelInfo)===null||t===void 0||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var n;(n=this.labelInfo)===null||n===void 0||n.hideTooltip()},6e3));break}default:{this.input.matches(":focus-visible")&&((i=this.labelInfo)===null||i===void 0||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async guxForceUpdate(){this.hasContent=d(this.input),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),v(this.root)}async componentWillLoad(){this.getI18nValue=await b(this.root,j),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=u(this.root,"error"),this.hasHelp=u(this.root,"help"),g(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){const e=this.clearable&&this.hasContent&&!this.disabled;return o(D,{key:"12dc2779919b1b02ffa27892b0dd0a618fbe11a7",labelPosition:this.computedLabelPosition},o(S,{key:"687d9ab3416d421cef725504497650b179143827",required:this.required,position:this.computedLabelPosition},o("slot",{key:"22a8650e52351a1fd9d55b644975f435b78e5f23",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"42a582daaa9d37ed3abd22ca00757ff5f0b40119",variant:this.indicatorMark,required:this.required}),o("slot",{key:"31fdad12b44a87f24c8c139ba8c4aeadaf879228",name:"label-info"})),o("div",{key:"7933d9233db513e5c370b0d25fffebcae3f62d98",class:"gux-input-and-error-container"},o("div",{key:"77ccdb3e33e3b52c6685028ff2ef5d585a5460a5",class:{"gux-input":!0,"gux-input-error":this.hasError},part:"input-section"},o("div",{key:"8d7b02afda8b8dbe83bb1397a2af6e5e3a3aa826",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":e},onClick:()=>B(this.input)},o("slot",{key:"50df4de53dd69305bf3104f0f741b8236c9d62f2",name:"input",onSlotchange:()=>this.setInput()}),e&&o("gux-form-field-input-clear-button",{key:"8437b6e737c34f18308195eeb60ae0eade8f5cb1",onClick:()=>E(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),o(z,{key:"bfefc2accf2de30da422472da670cbd5b25804dd",show:this.hasError},o("slot",{key:"4e2bfc741b61f5e5bfe4fe8bb2f1106376c69220",name:"error"})),o(L,{key:"80177d9422eeb189d1a6a2b90b1bb6dfc8d824f6",show:!this.hasError&&this.hasHelp},o("slot",{key:"917ef57b398d13e25aebf5d34bb91cbcde943151",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=T(this.root,'input[type="number"][slot="input"]'),this.hasContent=d(this.input),O(this.input),this.input.addEventListener("input",()=>{this.hasContent=d(this.input)}),this.disabled=y(this.input),this.required=this.input.required,this.disabledObserver=k(this.input,e=>{this.disabled=e}),this.requiredObserver=I(this.input,e=>{this.required=e}),P(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=F(this.label,this.labelPosition)}renderStepButtons(e,t,i){return o("div",{class:"gux-step-buttons-container"},o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("increment"),disabled:i,onClick:()=>this.stepUp(e)},o("gux-icon",{"icon-name":"custom/chevron-up-small-regular",decorative:!0})),o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("decrement"),disabled:i,onClick:()=>this.stepDown(e)},o("gux-icon",{"icon-name":"custom/chevron-down-small-regular",decorative:!0})))}stepDown(e){e.value===""?f(e,e.min||"0",!1):(e.stepDown(),this.simulateNativeInputAndChangeEvents(e))}stepUp(e){e.value===""?f(e,e.min||"0",!1):(e.stepUp(),this.simulateNativeInputAndChangeEvents(e))}simulateNativeInputAndChangeEvents(e){p(e,"input"),p(e,"change")}static get delegatesFocus(){return!0}get root(){return h(this)}};M([w({childList:!0,subtree:!0})],m.prototype,"onMutation",null);m.style=V;const U="gux-button gux-icon{padding-block-start:4px}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}",W=U;var A=function(e,t,i,n){var a=arguments.length,r=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const x=class{constructor(e){c(this,e),this.goToPage=C(this,"goToPage",7),this.isOpen=!1,this.disabled=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,this.ellipsisButton.focus();break;case"Tab":{this.isOpen=!1;break}case"ArrowDown":case"Enter":t.includes(this.ellipsisButton)&&(e.preventDefault(),this.isOpen=!0,this.focusInputElement());break}}handleKeyup(e){switch(e.key){case" ":{e.composedPath().includes(this.ellipsisButton)&&(this.isOpen=!0,this.focusInputElement());break}}}watchIsDisabled(e){e&&(this.isOpen=!1)}toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.focusInputElement()}onClickOutside(){this.isOpen=!1}focusInputElement(){R(()=>{this.inputElement.focus()})}applyInputListener(){var e;(e=this.inputElement)===null||e===void 0||e.addEventListener("keydown",t=>{const i=t.target.value.trim();(t.key=="Enter"||t.key==" ")&&(i==""?t.preventDefault():(t.preventDefault(),this.goToPage.emit(t.target.value),this.isOpen=!1))})}async componentWillLoad(){this.i18n=await b(this.root,q,"gux-pagination-buttons"),g(this.root)}componentDidLoad(){this.applyInputListener()}render(){return[o("gux-button",{key:"36985a051239ecb27a5a7f8ebdd58d266311e6ae",accent:"ghost",id:"popover-target",type:"button",disabled:this.disabled,ref:e=>this.ellipsisButton=e,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},o("gux-icon",{key:"015dd7d23b3e45d8d526d568cf2dcfdcf0b4f285",screenreaderText:this.i18n("goToPage"),"icon-name":"fa/ellipsis-regular",size:"small"})),o("gux-tooltip",{key:"31fb8d209a0a7d1359739984aeb6ec7c3ad8e48d",for:"popover-target"},o("div",{key:"8cd090daee18ef9b221e2a31b6df147af174a996",slot:"content"},this.i18n("goToPage"))),o("gux-popover",{key:"71aa010b988fdfa78aecf6698d3fab22f1100fa5","is-open":this.isOpen,for:"popover-target"},o("span",{key:"3d5e610300b17f93546365df3cba7daa0fff07fb",slot:"title"},this.i18n("goToPage")),o("gux-form-field-number",{key:"babc6464e1d60a1ba11d924c1c23d3e678a41828"},o("input",{key:"8785c8665e2572e9530b49ef4d5f58ba5bdd4691",slot:"input",type:"number",ref:e=>this.inputElement=e,min:"1",max:this.totalPages,value:"1",onKeyDown:e=>["e","E","+","-","."].includes(e.key)&&e.preventDefault()}),o("label",{key:"4fc1d7c66dd62cb88711eb657944f595f6e22011",slot:"label"})))]}get root(){return h(this)}static get watchers(){return{disabled:["watchIsDisabled"]}}};A([_({triggerEvents:"mousedown"})],x.prototype,"onClickOutside",null);x.style=W;export{m as gux_form_field_number,x as gux_pagination_ellipsis_button};
@@ -1 +1 @@
1
- import{r as u,h as t,g as c}from"./index-CWixJ8vL.js";import{b}from"./index-4f1356d9-DSfDpFAA.js";import{O as p}from"./on-mutation-751e68e4-BRlz63Dw.js";import{a as m,o as g}from"./on-attribute-change-33919964-C8j0fVsi.js";import{t as x}from"./usage-36c49ec0-Dlq6IjQJ.js";import{a as v,G as y}from"./gux-form-field-error-acb40a19-CkSp2BAb.js";import{G as C,a as F,b as w}from"./gux-form-field-fieldset-container-6cb3610f-BUiTa12q.js";import{h as a}from"./has-slot-f24a46a6-D7GdaS0G.js";import{g as f}from"./get-slot-text-content-95a85429-DTSoMW52.js";import{v as I,a as q}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const T="Required",k={required:T},L=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}",P=L;var S=function(e,o,i,r){var s=arguments.length,l=s<3?o:r===null?r=Object.getOwnPropertyDescriptor(o,i):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,i,r);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(l=(s<3?n(l):s>3?n(o,i,l):n(o,i))||l);return s>3&&l&&Object.defineProperty(o,i,l),l};const h=class{constructor(e){u(this,e),this.indicatorMark="required",this.computedLabelPosition="above",this.required=!1,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const o=this.root.querySelector("gux-phone-input-beta");o&&(o.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.hasLabelInfo=a(this.root,"label-info")}handleKeyup(e){var o,i;switch(e.key){case"Tab":{this.input.matches(":focus-within")&&((o=this.labelInfo)===null||o===void 0||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var r;(r=this.labelInfo)===null||r===void 0||r.hideTooltip()},6e3));break}default:{this.input.matches(":focus-within")&&((i=this.labelInfo)===null||i===void 0||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await b(this.root,k),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.hasLabelInfo=a(this.root,"label-info"),x(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){var e;return t(w,{key:"4cf726af903c7be3b333f632330a91f543ef6684",labelPosition:this.computedLabelPosition},t(F,{key:"3362298599464d52a448a4ad5e73e47e0b162a48"},(e=this.label)===null||e===void 0?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(f(this.root,"error"),this.hasError),this.renderText(f(this.root,"label-info"),this.hasLabelInfo)),t(C,{key:"a53166b5171edfd9db4a9fca89f9fcab58797ee8",position:this.computedLabelPosition,required:this.required},t("slot",{key:"a58e3699c16daf7a302c610e443b12b207cc53fa",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"cb7097d5a031f680624bc2dcea9181247b1fa3c3",variant:this.indicatorMark,required:this.required}),t("slot",{key:"a0dc10a0c043e891f226c16c88c7cb866b7c80b9",name:"label-info"})),t("div",{key:"4a5308add4085fe534b2d6bba3c61b370a29f4f1",class:"gux-input-and-error-container"},t("div",{key:"7b325104e32aea1dc06673a0bee9a2f62c96e326",class:{"gux-input":!0,"gux-input-error":this.hasError}},t("div",{key:"4878c0512fc9cae7bad1201aafac835ceb07e644",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},t("slot",{key:"0f64e70da67a4289fb0d609defc6418e74733928"}))),t(v,{key:"dab561c39953b59676ed2d5664dae2667c271a8d",show:this.hasError},t("slot",{key:"cdc5539e17a8700b0aa23b4c963c5835bde680d0",name:"error"})),t(y,{key:"f2953b9d4935909b3eca68b4d8a41b9c418f6ca5",show:!this.hasError&&this.hasHelp},t("slot",{key:"a18968d4a0106583b2f2724b4da0f5b9d3ac876d",name:"help"}))))}renderText(e,o=!1){if(o)return" "+e}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=m(this.input,e=>{this.disabled=e}),this.requiredObserver=g(this.input,e=>{this.required=e}),I(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=q(this.label,this.labelPosition)}get root(){return c(this)}static get watchers(){return{hasError:["watchValue"]}}};S([p({childList:!0,subtree:!0})],h.prototype,"onMutation",null);h.style=P;export{h as gux_form_field_phone};
1
+ import{r as u,h as t,g as c}from"./index-DnQlhAI3.js";import{b}from"./index-4f1356d9-D95neeh-.js";import{O as p}from"./on-mutation-751e68e4-Dt8NpKTF.js";import{a as m,o as g}from"./on-attribute-change-33919964-C8j0fVsi.js";import{t as x}from"./usage-36c49ec0-Dlq6IjQJ.js";import{a as v,G as y}from"./gux-form-field-error-acb40a19-CHMA1_Nq.js";import{G as C,a as F,b as w}from"./gux-form-field-fieldset-container-6cb3610f-DQ6-2XRL.js";import{h as a}from"./has-slot-f24a46a6-D7GdaS0G.js";import{g as f}from"./get-slot-text-content-95a85429-DTSoMW52.js";import{v as I,a as q}from"./gux-form-field.service-173b5dfc-D3T_t5F5.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";import"./random-html-id-81ac821b-D30kRngR.js";import"./log-error-274efeb7-BpRSdGLj.js";import"./simulate-native-event-e0631897-BcLDngo1.js";const T="Required",k={required:T},L=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}",P=L;var S=function(e,o,i,r){var s=arguments.length,l=s<3?o:r===null?r=Object.getOwnPropertyDescriptor(o,i):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,i,r);else for(var d=e.length-1;d>=0;d--)(n=e[d])&&(l=(s<3?n(l):s>3?n(o,i,l):n(o,i))||l);return s>3&&l&&Object.defineProperty(o,i,l),l};const h=class{constructor(e){u(this,e),this.indicatorMark="required",this.computedLabelPosition="above",this.required=!1,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const o=this.root.querySelector("gux-phone-input-beta");o&&(o.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.hasLabelInfo=a(this.root,"label-info")}handleKeyup(e){var o,i;switch(e.key){case"Tab":{this.input.matches(":focus-within")&&((o=this.labelInfo)===null||o===void 0||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout(()=>{var r;(r=this.labelInfo)===null||r===void 0||r.hideTooltip()},6e3));break}default:{this.input.matches(":focus-within")&&((i=this.labelInfo)===null||i===void 0||i.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout));break}}}onFocusout(){var e;(e=this.labelInfo)===null||e===void 0||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await b(this.root,k),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),this.hasLabelInfo=a(this.root,"label-info"),x(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){var e;return t(w,{key:"4cf726af903c7be3b333f632330a91f543ef6684",labelPosition:this.computedLabelPosition},t(F,{key:"3362298599464d52a448a4ad5e73e47e0b162a48"},(e=this.label)===null||e===void 0?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(f(this.root,"error"),this.hasError),this.renderText(f(this.root,"label-info"),this.hasLabelInfo)),t(C,{key:"a53166b5171edfd9db4a9fca89f9fcab58797ee8",position:this.computedLabelPosition,required:this.required},t("slot",{key:"a58e3699c16daf7a302c610e443b12b207cc53fa",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"cb7097d5a031f680624bc2dcea9181247b1fa3c3",variant:this.indicatorMark,required:this.required}),t("slot",{key:"a0dc10a0c043e891f226c16c88c7cb866b7c80b9",name:"label-info"})),t("div",{key:"4a5308add4085fe534b2d6bba3c61b370a29f4f1",class:"gux-input-and-error-container"},t("div",{key:"7b325104e32aea1dc06673a0bee9a2f62c96e326",class:{"gux-input":!0,"gux-input-error":this.hasError}},t("div",{key:"4878c0512fc9cae7bad1201aafac835ceb07e644",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},t("slot",{key:"0f64e70da67a4289fb0d609defc6418e74733928"}))),t(v,{key:"dab561c39953b59676ed2d5664dae2667c271a8d",show:this.hasError},t("slot",{key:"cdc5539e17a8700b0aa23b4c963c5835bde680d0",name:"error"})),t(y,{key:"f2953b9d4935909b3eca68b4d8a41b9c418f6ca5",show:!this.hasError&&this.hasHelp},t("slot",{key:"a18968d4a0106583b2f2724b4da0f5b9d3ac876d",name:"help"}))))}renderText(e,o=!1){if(o)return" "+e}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=m(this.input,e=>{this.disabled=e}),this.requiredObserver=g(this.input,e=>{this.required=e}),I(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=q(this.label,this.labelPosition)}get root(){return c(this)}static get watchers(){return{hasError:["watchValue"]}}};S([p({childList:!0,subtree:!0})],h.prototype,"onMutation",null);h.style=P;export{h as gux_form_field_phone};