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,c,h as t,g as u}from"./index-CWixJ8vL.js";import{b as l}from"./index-4f1356d9-DSfDpFAA.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const p="Page",d=" of {totalPages, number}",b="First",f="Previous",h="Next",m="Last",x="Page {currentPage, number} of {totalPages, number}",P={page:p,totalPages:d,first:b,previous:f,next:h,last:m,pageInputLabel:x};class y{static getPageList(a,n){if(n<=10)return[...Array(n).keys()].map(g=>{const i=g+1;return{pageNumber:i,display:String(i),current:i===a}});if(a<=5)return[...[...Array(6).keys()].map(i=>{const o=i+1;return{pageNumber:o,display:String(o),current:o===a}}),{pageNumber:7,display:"...",current:!1},{pageNumber:n,display:String(n),current:!1}];if(a>n-5){const g=[...Array(6).keys()].map(i=>{const o=i+n-5;return{pageNumber:o,display:String(o),current:o===a}});return[{pageNumber:1,display:"1",current:!1},{pageNumber:n-6,display:"...",current:!1},...g]}const s=[...Array(5).keys()].map(g=>{const i=g+a-2;return{pageNumber:i,display:String(i),current:i===a}});return[{pageNumber:1,display:"1",current:!1},{pageNumber:a-3,display:"...",current:!1},...s,{pageNumber:a+3,display:"...",current:!1},{pageNumber:n,display:String(n),current:!1}]}}const v="gux-pagination-buttons-legacy .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-left:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons-legacy .gux-pagination-buttons-container.gux-expanded{justify-content:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-group{white-space:nowrap}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input{width:60px}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input input{width:60px;text-align:center;background-color:transparent}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button{height:32px;padding-right:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);padding-left:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);margin-right:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);margin-left:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);background:inherit;border:none}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:calc(var(--gse-semantic-focusOutline-sm-borderRadius) - var(--gse-semantic-focusOutline-offset))}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-current{padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-button-ghost-default-foregroundColor)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-target{padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);cursor:pointer;font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-button-ghost-default-foregroundColor)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-target:hover{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-spacer{width:var(--gse-ui-dataTableItems-tablePagination-padding)}",I=v,k=class{constructor(e){r(this,e),this.internalcurrentpagechange=c(this,"internalcurrentpagechange",3),this.layout="full"}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handleClickPage(e){this.internalcurrentpagechange.emit(e)}setPageFromInput(e){const a=parseInt(e,10);!a||isNaN(a)?this.textFieldRef.value=String(this.currentPage):this.internalcurrentpagechange.emit(a)}getPageListEnteries(e,a){return y.getPageList(e,a).reduce((n,s)=>s.current?n.concat(t("button",{class:"gux-pagination-buttons-list-button gux-current"},s.display)):n.concat(t("button",{class:"gux-pagination-buttons-list-button gux-target",onClick:()=>this.handleClickPage(s.pageNumber)},s.display)),[])}getSmallPagePicker(){return t("div",{class:"gux-pagination-buttons-spacer"})}getExpandedPagePicker(){return t("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages))}getFullPagePicker(){return t("div",{class:"gux-pagination-buttons-input-container"},t("div",null,this.i18n("page")),t("div",{class:"gux-pagination-buttons-input"},t("gux-form-field-text-like",{"label-position":"screenreader"},t("label",{slot:"label"},this.i18n("pageInputLabel",{currentPage:this.currentPage,totalPages:this.totalPages})),t("input",{type:"text",slot:"input",value:String(this.currentPage),ref:e=>this.textFieldRef=e,onChange:()=>this.setPageFromInput(this.textFieldRef.value)}))),t("div",null,this.i18n("totalPages",{totalPages:this.totalPages})))}getPagePicker(e){return e==="small"?this.getSmallPagePicker():e==="expanded"?this.getExpandedPagePicker():this.getFullPagePicker()}async componentWillLoad(){this.i18n=await l(this.root,P)}render(){return t("div",{key:"94e78129a0eab8031622b92ed8fe5f392a6495b0",class:`gux-pagination-buttons-container gux-${this.layout}`},t("div",{key:"5c1a04dc93ae0fd25c4f0b1121d633fe9b951b2c",class:"gux-pagination-buttons-group"},t("gux-button-slot",{key:"6cbc04a2b7e1bfb448894c8895ac3232648e5fc3",accent:"ghost"},t("button",{key:"7e05c92cd3e4fff399ce9dbbff8e6f97e4c45147",title:this.i18n("first"),disabled:this.onFirstPage,onClick:this.handleClickFirst.bind(this)},t("gux-icon",{key:"6f8f9d39f5124c98221b90b840557f79d1bd206a",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),t("gux-button-slot",{key:"36ea45dfcb84f21e0968dd47f11e56296596ade3",accent:"ghost"},t("button",{key:"e3f613c72ab8a52b831bd02d8467a446d72fd767",title:this.i18n("previous"),disabled:this.onFirstPage,onClick:this.handleClickPrevious.bind(this)},t("gux-icon",{key:"be79fa6701289fe96cba8dd9c50772159c56de5c",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPagePicker(this.layout),t("div",{key:"3152b124bf97384c1d0bc4b9412e0c112a4d6812",class:"gux-pagination-buttons-group"},t("gux-button-slot",{key:"74f2c533370dab51946d1fd639382c57cfb4435c",accent:"ghost"},t("button",{key:"10765d3f555991bde133be3fade1fba2185bb7cc",title:this.i18n("next"),disabled:this.onLastPage,onClick:this.handleClickNext.bind(this)},t("gux-icon",{key:"454302ddb2294af9922116255aa3f60eace8edf0",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),t("gux-button-slot",{key:"f4fc51a9e28351e111813f10b09a7aa5bc04d985",accent:"ghost"},t("button",{key:"05e9a24f9c28995d8876ee2f76ab351a6e271830",title:this.i18n("last"),disabled:this.onLastPage,onClick:this.handleClickLast.bind(this)},t("gux-icon",{key:"718c22f69a257dfa66d7c13256d8dca985cca2d9",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return u(this)}};k.style=I;const T="{firstItem, number} - {lastItem, number}",w=" of {totalItems, number}",C={itemCountDisplay:T,totalItems:w},L="gux-pagination-item-counts-legacy .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}",S=L,F=class{constructor(e){r(this,e),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await l(this.root,C)}render(){return t("div",{key:"adc625e79d3bc3b2cee319fd36e01a6a7b55e2f0",class:"gux-pagination-item-counts-container"},t("span",{key:"ae0af79204b86e5902722892101fa644a8705a18",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),t("span",{key:"98a27d3f011a9766d9fb69be3b1f47bb45e7a408"},this.i18n("totalItems",{totalItems:this.totalItems})))}get root(){return u(this)}};F.style=S;const N="per page",R="Items per page",_="Items per page dropdown, {range} selected",D={perPage:N,itemsPerPage:R,rangeSelected:_},z="gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:64px}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}",E=z,W=class{constructor(e){r(this,e),this.internalitemsperpagechange=c(this,"internalitemsperpagechange",3),this.itemsPerPage=25}handleChange(e){e.stopPropagation();const a=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(a)}async componentWillLoad(){this.i18n=await l(this.root,D)}getDropdown(){return t("gux-dropdown",{ref:e=>this.dropdownElement=e,value:`${this.itemsPerPage}`,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},t("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},t("gux-option",{value:"25"},"25"),t("gux-option",{value:"50"},"50"),t("gux-option",{value:"75"},"75"),t("gux-option",{value:"100"},"100")))}render(){return t("div",{key:"e601a72a600861196a6ef6ccdd5f55f43d6eee03",class:"gux-pagination-items-per-page-container"},t("div",{key:"907d9f76dc84110cad4d4e52a23b8e675ab36f0f",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),t("div",{key:"ec10de58cb9cfdbb2b75cae02a414cd8e79f924c",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return u(this)}};W.style=E;export{k as gux_pagination_buttons_legacy,F as gux_pagination_item_counts_legacy,W as gux_pagination_items_per_page_legacy};
1
+ import{r,c,h as t,g as u}from"./index-DnQlhAI3.js";import{b as l}from"./index-4f1356d9-D95neeh-.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const p="Page",d=" of {totalPages, number}",b="First",f="Previous",h="Next",m="Last",x="Page {currentPage, number} of {totalPages, number}",P={page:p,totalPages:d,first:b,previous:f,next:h,last:m,pageInputLabel:x};class y{static getPageList(a,n){if(n<=10)return[...Array(n).keys()].map(g=>{const i=g+1;return{pageNumber:i,display:String(i),current:i===a}});if(a<=5)return[...[...Array(6).keys()].map(i=>{const o=i+1;return{pageNumber:o,display:String(o),current:o===a}}),{pageNumber:7,display:"...",current:!1},{pageNumber:n,display:String(n),current:!1}];if(a>n-5){const g=[...Array(6).keys()].map(i=>{const o=i+n-5;return{pageNumber:o,display:String(o),current:o===a}});return[{pageNumber:1,display:"1",current:!1},{pageNumber:n-6,display:"...",current:!1},...g]}const s=[...Array(5).keys()].map(g=>{const i=g+a-2;return{pageNumber:i,display:String(i),current:i===a}});return[{pageNumber:1,display:"1",current:!1},{pageNumber:a-3,display:"...",current:!1},...s,{pageNumber:a+3,display:"...",current:!1},{pageNumber:n,display:String(n),current:!1}]}}const v="gux-pagination-buttons-legacy .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-left:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons-legacy .gux-pagination-buttons-container.gux-expanded{justify-content:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-group{white-space:nowrap}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input{width:60px}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-input-container .gux-pagination-buttons-input input{width:60px;text-align:center;background-color:transparent}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button{height:32px;padding-right:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);padding-left:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);margin-right:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);margin-left:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);background:inherit;border:none}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-ui-color-focus);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:calc(var(--gse-semantic-focusOutline-sm-borderRadius) - var(--gse-semantic-focusOutline-offset))}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-current{padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-button-ghost-default-foregroundColor)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-target{padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);cursor:pointer;font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-button-ghost-default-foregroundColor)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-button.gux-target:hover{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}gux-pagination-buttons-legacy .gux-pagination-buttons-container .gux-pagination-buttons-spacer{width:var(--gse-ui-dataTableItems-tablePagination-padding)}",I=v,k=class{constructor(e){r(this,e),this.internalcurrentpagechange=c(this,"internalcurrentpagechange",3),this.layout="full"}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handleClickPage(e){this.internalcurrentpagechange.emit(e)}setPageFromInput(e){const a=parseInt(e,10);!a||isNaN(a)?this.textFieldRef.value=String(this.currentPage):this.internalcurrentpagechange.emit(a)}getPageListEnteries(e,a){return y.getPageList(e,a).reduce((n,s)=>s.current?n.concat(t("button",{class:"gux-pagination-buttons-list-button gux-current"},s.display)):n.concat(t("button",{class:"gux-pagination-buttons-list-button gux-target",onClick:()=>this.handleClickPage(s.pageNumber)},s.display)),[])}getSmallPagePicker(){return t("div",{class:"gux-pagination-buttons-spacer"})}getExpandedPagePicker(){return t("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages))}getFullPagePicker(){return t("div",{class:"gux-pagination-buttons-input-container"},t("div",null,this.i18n("page")),t("div",{class:"gux-pagination-buttons-input"},t("gux-form-field-text-like",{"label-position":"screenreader"},t("label",{slot:"label"},this.i18n("pageInputLabel",{currentPage:this.currentPage,totalPages:this.totalPages})),t("input",{type:"text",slot:"input",value:String(this.currentPage),ref:e=>this.textFieldRef=e,onChange:()=>this.setPageFromInput(this.textFieldRef.value)}))),t("div",null,this.i18n("totalPages",{totalPages:this.totalPages})))}getPagePicker(e){return e==="small"?this.getSmallPagePicker():e==="expanded"?this.getExpandedPagePicker():this.getFullPagePicker()}async componentWillLoad(){this.i18n=await l(this.root,P)}render(){return t("div",{key:"94e78129a0eab8031622b92ed8fe5f392a6495b0",class:`gux-pagination-buttons-container gux-${this.layout}`},t("div",{key:"5c1a04dc93ae0fd25c4f0b1121d633fe9b951b2c",class:"gux-pagination-buttons-group"},t("gux-button-slot",{key:"6cbc04a2b7e1bfb448894c8895ac3232648e5fc3",accent:"ghost"},t("button",{key:"7e05c92cd3e4fff399ce9dbbff8e6f97e4c45147",title:this.i18n("first"),disabled:this.onFirstPage,onClick:this.handleClickFirst.bind(this)},t("gux-icon",{key:"6f8f9d39f5124c98221b90b840557f79d1bd206a",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),t("gux-button-slot",{key:"36ea45dfcb84f21e0968dd47f11e56296596ade3",accent:"ghost"},t("button",{key:"e3f613c72ab8a52b831bd02d8467a446d72fd767",title:this.i18n("previous"),disabled:this.onFirstPage,onClick:this.handleClickPrevious.bind(this)},t("gux-icon",{key:"be79fa6701289fe96cba8dd9c50772159c56de5c",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPagePicker(this.layout),t("div",{key:"3152b124bf97384c1d0bc4b9412e0c112a4d6812",class:"gux-pagination-buttons-group"},t("gux-button-slot",{key:"74f2c533370dab51946d1fd639382c57cfb4435c",accent:"ghost"},t("button",{key:"10765d3f555991bde133be3fade1fba2185bb7cc",title:this.i18n("next"),disabled:this.onLastPage,onClick:this.handleClickNext.bind(this)},t("gux-icon",{key:"454302ddb2294af9922116255aa3f60eace8edf0",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),t("gux-button-slot",{key:"f4fc51a9e28351e111813f10b09a7aa5bc04d985",accent:"ghost"},t("button",{key:"05e9a24f9c28995d8876ee2f76ab351a6e271830",title:this.i18n("last"),disabled:this.onLastPage,onClick:this.handleClickLast.bind(this)},t("gux-icon",{key:"718c22f69a257dfa66d7c13256d8dca985cca2d9",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return u(this)}};k.style=I;const T="{firstItem, number} - {lastItem, number}",w=" of {totalItems, number}",C={itemCountDisplay:T,totalItems:w},L="gux-pagination-item-counts-legacy .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}",S=L,F=class{constructor(e){r(this,e),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await l(this.root,C)}render(){return t("div",{key:"adc625e79d3bc3b2cee319fd36e01a6a7b55e2f0",class:"gux-pagination-item-counts-container"},t("span",{key:"ae0af79204b86e5902722892101fa644a8705a18",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),t("span",{key:"98a27d3f011a9766d9fb69be3b1f47bb45e7a408"},this.i18n("totalItems",{totalItems:this.totalItems})))}get root(){return u(this)}};F.style=S;const N="per page",R="Items per page",_="Items per page dropdown, {range} selected",D={perPage:N,itemsPerPage:R,rangeSelected:_},z="gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:64px}gux-pagination-items-per-page-legacy .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}",E=z,W=class{constructor(e){r(this,e),this.internalitemsperpagechange=c(this,"internalitemsperpagechange",3),this.itemsPerPage=25}handleChange(e){e.stopPropagation();const a=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(a)}async componentWillLoad(){this.i18n=await l(this.root,D)}getDropdown(){return t("gux-dropdown",{ref:e=>this.dropdownElement=e,value:`${this.itemsPerPage}`,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},t("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},t("gux-option",{value:"25"},"25"),t("gux-option",{value:"50"},"50"),t("gux-option",{value:"75"},"75"),t("gux-option",{value:"100"},"100")))}render(){return t("div",{key:"e601a72a600861196a6ef6ccdd5f55f43d6eee03",class:"gux-pagination-items-per-page-container"},t("div",{key:"907d9f76dc84110cad4d4e52a23b8e675ab36f0f",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),t("div",{key:"ec10de58cb9cfdbb2b75cae02a414cd8e79f924c",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return u(this)}};W.style=E;export{k as gux_pagination_buttons_legacy,F as gux_pagination_item_counts_legacy,W as gux_pagination_items_per_page_legacy};
@@ -1 +1 @@
1
- import{r as o,c as g,h as a,g as u}from"./index-CWixJ8vL.js";import{b as l}from"./index-4f1356d9-DSfDpFAA.js";import{t as c}from"./en-25a315a0-C7J6_avI.js";import{b as d}from"./after-next-render-07a41f53-C_KTwidI.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";class b{static displayAllPageButtons(e,s,n){switch(n){case"advanced":return p(e,s);case"simple":return h(e,s)}}}function p(t,e){if(e<=7)return[...Array(e).keys()].map(n=>{const i=n+1;return{pageNumber:i,display:String(i),current:i===t}});if(t<=3)return[...[...Array(5).keys()].map(i=>{const r=i+1;return{pageNumber:r,display:String(r),current:r===t}}),{pageNumber:6,display:"...",current:!1},{pageNumber:e,display:String(e),current:!1}];if(t>e-3){const n=[...Array(5).keys()].map(i=>{const r=i+e-4;return{pageNumber:r,display:String(r),current:r===t}});return[{pageNumber:1,display:"1",current:!1},{pageNumber:e-6,display:"...",current:!1},...n]}const s=[...Array(3).keys()].map(n=>{const i=n+t-1;return{pageNumber:i,display:String(i),current:i===t}});return[{pageNumber:1,display:"1",current:!1},{pageNumber:t-3,display:"...",current:!1},...s,{pageNumber:t+3,display:"...",current:!1},{pageNumber:e,display:String(e),current:!1}]}function h(t,e){if(e<=3)return[...Array(e).keys()].map(s=>{const n=s+1;return{pageNumber:n,display:String(n),current:n===t}});if(e===t)return[{pageNumber:1,display:"1",current:!1},{pageNumber:t,display:"...",current:!1},{pageNumber:e,display:String(e),current:!0}];if(e>=4)return[...[...Array(1).keys()].map(n=>{const i=n+t;return{pageNumber:i,display:String(i),current:i!==e}}),{pageNumber:t,display:"...",current:!1},{pageNumber:e,display:String(e),current:e==t}]}const m="gux-pagination-buttons .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-inline-start:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-group{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);white-space:nowrap}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-shrink:0;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}",f=m,y=class{constructor(t){o(this,t),this.internalcurrentpagechange=g(this,"internalcurrentpagechange",3),this.layout="advanced",this.disabled=!1}goToPageHandler(t){this.currentPage=t.detail,this.handlePageChange(this.currentPage),d(()=>{this.currentElement.focus()})}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handlePageChange(t){this.internalcurrentpagechange.emit(t)}getPageListEnteries(t,e,s){return b.displayAllPageButtons(t,e,s).reduce((n,i)=>i.current?n.concat(a("gux-button-slot",{accent:"ghost"},a("button",{disabled:this.disabled,ref:r=>this.currentElement=r,class:"gux-pagination-buttons-list-current","aria-label":this.i18n("pageSelected",{pageSelected:i.pageNumber})},i.display))):i.display=="..."?n.concat(a("gux-pagination-ellipsis-button",{disabled:this.disabled,totalPages:this.totalPages})):n.concat(a("gux-button-slot",{accent:"ghost"},a("button",{disabled:this.disabled,onClick:()=>this.handlePageChange(i.pageNumber),"aria-label":this.i18n("pageNumber",{pageNumber:i.pageNumber})},i.display))),[])}getPageNavigation(){return a("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages,this.layout))}async componentWillLoad(){this.i18n=await l(this.root,c)}render(){return a("div",{key:"2adf432e5c8561b88b47d64651419539faeaacdb",class:`gux-pagination-buttons-container gux-${this.layout}`},a("div",{key:"fe8298d4f799e7492132fd918ad8a14c31c39e9c",class:"gux-pagination-buttons-group"},a("gux-button-slot",{key:"607b0df667dc90c5e1aea01917a84d802e88b1e7",accent:"ghost","icon-only":!0},a("button",{key:"d72f33998b80efd44b59810674ec8baf8c8b48c3",title:this.i18n("firstPage"),disabled:this.onFirstPage||this.disabled,onClick:this.handleClickFirst.bind(this)},a("gux-icon",{key:"47a7aea9eea057e7799c8d361ae3d664da4018c1",size:"small",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),a("gux-button-slot",{key:"ff72d4e40c0614d548229f789db35c079d77679e",accent:"ghost","icon-only":!0},a("button",{key:"76ee67311429e3343530922bad3ec2d98c9260c9",title:this.i18n("previousPage"),disabled:this.onFirstPage||this.disabled,onClick:this.handleClickPrevious.bind(this)},a("gux-icon",{key:"beb59b0a8e1812c18c9e8400912431bb1a9f746e",size:"small",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPageNavigation(),a("div",{key:"2b6ec10a6a777fac2a1ad1b2742d56b7c83f5425",class:"gux-pagination-buttons-group"},a("gux-button-slot",{key:"3515d6107c5a65b6a044ca5aa12adc06223086db",accent:"ghost","icon-only":!0},a("button",{key:"3579ead5a7abab3ef4575c7aec7d49d088b6bb12",title:this.i18n("nextPage"),disabled:this.onLastPage||this.disabled,onClick:this.handleClickNext.bind(this)},a("gux-icon",{key:"a71bda9da92ddb4047b899156c278fdf3431187f",size:"small",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("gux-button-slot",{key:"71eb9a560a4fab1182cb78131508a2841bb73a2d",accent:"ghost","icon-only":!0},a("button",{key:"185d069f2424e873b521593bd4c5befbf2d5b05f",title:this.i18n("lastPage"),disabled:this.onLastPage||this.disabled,onClick:this.handleClickLast.bind(this)},a("gux-icon",{key:"f4b756e0c76c7071dc98f62493c0807143853280",size:"small",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return u(this)}};y.style=f;const x="{firstItem, number} - {lastItem, number}",I=" of {totalItems, number}",P={itemCountDisplay:x,totalItems:I},k="gux-pagination-item-counts .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}gux-pagination-item-counts .gux-pagination-item-counts-total{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}",v=k,C=class{constructor(t){o(this,t),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await l(this.root,P)}getPaginationItemCountsRange(){if(this.totalItems)return a("span",null,this.i18n("totalItems",{totalItems:this.totalItems}))}render(){return a("div",{key:"325a05d29604b38315f1a95318a691daad41d412",class:"gux-pagination-item-counts-container"},a("span",{key:"4c6e277325a88e839ece1ef0ce21f638c7810dbb",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),a("span",{key:"7c670909cd37292ef639c1fa993c8782c0ffc8d9",class:"gux-pagination-item-counts-total"},this.getPaginationItemCountsRange()))}get root(){return u(this)}};C.style=v;export{y as gux_pagination_buttons,C as gux_pagination_item_counts};
1
+ import{r as o,c as g,h as a,g as u}from"./index-DnQlhAI3.js";import{b as l}from"./index-4f1356d9-D95neeh-.js";import{t as c}from"./en-25a315a0-C7J6_avI.js";import{b as d}from"./after-next-render-07a41f53-C_KTwidI.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";class b{static displayAllPageButtons(e,s,n){switch(n){case"advanced":return p(e,s);case"simple":return h(e,s)}}}function p(t,e){if(e<=7)return[...Array(e).keys()].map(n=>{const i=n+1;return{pageNumber:i,display:String(i),current:i===t}});if(t<=3)return[...[...Array(5).keys()].map(i=>{const r=i+1;return{pageNumber:r,display:String(r),current:r===t}}),{pageNumber:6,display:"...",current:!1},{pageNumber:e,display:String(e),current:!1}];if(t>e-3){const n=[...Array(5).keys()].map(i=>{const r=i+e-4;return{pageNumber:r,display:String(r),current:r===t}});return[{pageNumber:1,display:"1",current:!1},{pageNumber:e-6,display:"...",current:!1},...n]}const s=[...Array(3).keys()].map(n=>{const i=n+t-1;return{pageNumber:i,display:String(i),current:i===t}});return[{pageNumber:1,display:"1",current:!1},{pageNumber:t-3,display:"...",current:!1},...s,{pageNumber:t+3,display:"...",current:!1},{pageNumber:e,display:String(e),current:!1}]}function h(t,e){if(e<=3)return[...Array(e).keys()].map(s=>{const n=s+1;return{pageNumber:n,display:String(n),current:n===t}});if(e===t)return[{pageNumber:1,display:"1",current:!1},{pageNumber:t,display:"...",current:!1},{pageNumber:e,display:String(e),current:!0}];if(e>=4)return[...[...Array(1).keys()].map(n=>{const i=n+t;return{pageNumber:i,display:String(i),current:i!==e}}),{pageNumber:t,display:"...",current:!1},{pageNumber:e,display:String(e),current:e==t}]}const m="gux-pagination-buttons .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-inline-start:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-group{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);white-space:nowrap}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-shrink:0;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}",f=m,y=class{constructor(t){o(this,t),this.internalcurrentpagechange=g(this,"internalcurrentpagechange",3),this.layout="advanced",this.disabled=!1}goToPageHandler(t){this.currentPage=t.detail,this.handlePageChange(this.currentPage),d(()=>{this.currentElement.focus()})}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handlePageChange(t){this.internalcurrentpagechange.emit(t)}getPageListEnteries(t,e,s){return b.displayAllPageButtons(t,e,s).reduce((n,i)=>i.current?n.concat(a("gux-button-slot",{accent:"ghost"},a("button",{disabled:this.disabled,ref:r=>this.currentElement=r,class:"gux-pagination-buttons-list-current","aria-label":this.i18n("pageSelected",{pageSelected:i.pageNumber})},i.display))):i.display=="..."?n.concat(a("gux-pagination-ellipsis-button",{disabled:this.disabled,totalPages:this.totalPages})):n.concat(a("gux-button-slot",{accent:"ghost"},a("button",{disabled:this.disabled,onClick:()=>this.handlePageChange(i.pageNumber),"aria-label":this.i18n("pageNumber",{pageNumber:i.pageNumber})},i.display))),[])}getPageNavigation(){return a("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages,this.layout))}async componentWillLoad(){this.i18n=await l(this.root,c)}render(){return a("div",{key:"2adf432e5c8561b88b47d64651419539faeaacdb",class:`gux-pagination-buttons-container gux-${this.layout}`},a("div",{key:"fe8298d4f799e7492132fd918ad8a14c31c39e9c",class:"gux-pagination-buttons-group"},a("gux-button-slot",{key:"607b0df667dc90c5e1aea01917a84d802e88b1e7",accent:"ghost","icon-only":!0},a("button",{key:"d72f33998b80efd44b59810674ec8baf8c8b48c3",title:this.i18n("firstPage"),disabled:this.onFirstPage||this.disabled,onClick:this.handleClickFirst.bind(this)},a("gux-icon",{key:"47a7aea9eea057e7799c8d361ae3d664da4018c1",size:"small",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),a("gux-button-slot",{key:"ff72d4e40c0614d548229f789db35c079d77679e",accent:"ghost","icon-only":!0},a("button",{key:"76ee67311429e3343530922bad3ec2d98c9260c9",title:this.i18n("previousPage"),disabled:this.onFirstPage||this.disabled,onClick:this.handleClickPrevious.bind(this)},a("gux-icon",{key:"beb59b0a8e1812c18c9e8400912431bb1a9f746e",size:"small",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPageNavigation(),a("div",{key:"2b6ec10a6a777fac2a1ad1b2742d56b7c83f5425",class:"gux-pagination-buttons-group"},a("gux-button-slot",{key:"3515d6107c5a65b6a044ca5aa12adc06223086db",accent:"ghost","icon-only":!0},a("button",{key:"3579ead5a7abab3ef4575c7aec7d49d088b6bb12",title:this.i18n("nextPage"),disabled:this.onLastPage||this.disabled,onClick:this.handleClickNext.bind(this)},a("gux-icon",{key:"a71bda9da92ddb4047b899156c278fdf3431187f",size:"small",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("gux-button-slot",{key:"71eb9a560a4fab1182cb78131508a2841bb73a2d",accent:"ghost","icon-only":!0},a("button",{key:"185d069f2424e873b521593bd4c5befbf2d5b05f",title:this.i18n("lastPage"),disabled:this.onLastPage||this.disabled,onClick:this.handleClickLast.bind(this)},a("gux-icon",{key:"f4b756e0c76c7071dc98f62493c0807143853280",size:"small",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return u(this)}};y.style=f;const x="{firstItem, number} - {lastItem, number}",I=" of {totalItems, number}",P={itemCountDisplay:x,totalItems:I},k="gux-pagination-item-counts .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}gux-pagination-item-counts .gux-pagination-item-counts-total{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}",v=k,C=class{constructor(t){o(this,t),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await l(this.root,P)}getPaginationItemCountsRange(){if(this.totalItems)return a("span",null,this.i18n("totalItems",{totalItems:this.totalItems}))}render(){return a("div",{key:"325a05d29604b38315f1a95318a691daad41d412",class:"gux-pagination-item-counts-container"},a("span",{key:"4c6e277325a88e839ece1ef0ce21f638c7810dbb",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),a("span",{key:"7c670909cd37292ef639c1fa993c8782c0ffc8d9",class:"gux-pagination-item-counts-total"},this.getPaginationItemCountsRange()))}get root(){return u(this)}};C.style=v;export{y as gux_pagination_buttons,C as gux_pagination_item_counts};
@@ -1 +1 @@
1
- import{r as n,c as a,h as t,g as i}from"./index-CWixJ8vL.js";import{t as s}from"./usage-36c49ec0-Dlq6IjQJ.js";import{b as o}from"./index-4f1356d9-DSfDpFAA.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const r="Previous",l="Next",u={previous:r,next:l},g=":host{display:flex;flex-direction:row-reverse;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;padding:var(--gse-ui-dataTableItems-tablePagination-padding);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor);border-block-start:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}:host .gux-pagination-button-container{display:flex;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);align-content:center}:host .gux-button-align-content{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-button-gap);align-content:center;align-items:center}:host .gux-button-align-content>*{flex:0 1 auto;align-self:auto;order:0}:host gux-icon{display:flex}",c=g,h=class{constructor(e){n(this,e),this.guxPaginationCursorchange=a(this,"guxPaginationCursorchange",7),this.guxitemsperpagechange=a(this,"guxitemsperpagechange",7),this.hasPrevious=!1,this.hasNext=!1,this.layout="simple"}handleInternalitemsperpagechange(e){this.guxitemsperpagechange.emit(e.detail)}onButtonClick(e){(e==="previous"&&this.hasPrevious||e==="next"&&this.hasNext)&&this.guxPaginationCursorchange.emit(e)}async componentWillLoad(){s(this.root),this.i18n=await o(this.root,u)}renderSimpleLayout(){return[t("nav",{"aria-label":this.label,class:"gux-pagination-button-container"},t("gux-button-slot",{accent:"ghost"},t("button",{class:"gux-simple-button",type:"button",disabled:!this.hasPrevious,onClick:()=>this.onButtonClick("previous")},t("gux-icon",{iconName:"custom/chevron-left-small-regular","screenreader-text":this.i18n("previous"),size:"small"}))),t("gux-button-slot",{accent:"ghost"},t("button",{class:"gux-simple-button",type:"button",disabled:!this.hasNext,onClick:()=>this.onButtonClick("next")},t("gux-icon",{iconName:"custom/chevron-right-small-regular","screenreader-text":this.i18n("next"),size:"small"}))))]}renderAdvancedLayout(){return[t("nav",{"aria-label":this.label,class:"gux-pagination-button-container"},t("gux-button-slot",{accent:"ghost"},t("button",{type:"button",disabled:!this.hasPrevious,onClick:()=>this.onButtonClick("previous")},t("div",{class:"gux-button-align-content"},t("gux-icon",{decorative:!0,iconName:"custom/chevron-left-small-regular",size:"small"}),t("span",null,this.i18n("previous"))))),t("gux-button-slot",{accent:"ghost"},t("button",{type:"button",disabled:!this.hasNext,onClick:()=>this.onButtonClick("next")},t("div",{class:"gux-button-align-content"},t("span",null,this.i18n("next")),t("gux-icon",{decorative:!0,iconName:"custom/chevron-right-small-regular",size:"small"}))))),this.renderItemsPerPage()]}renderItemsPerPage(){return this.itemsPerPage&&t("gux-pagination-items-per-page",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})}render(){return this.layout==="advanced"?this.renderAdvancedLayout():this.renderSimpleLayout()}get root(){return i(this)}};h.style=c;export{h as gux_pagination_cursor};
1
+ import{r as n,c as a,h as t,g as i}from"./index-DnQlhAI3.js";import{t as s}from"./usage-36c49ec0-Dlq6IjQJ.js";import{b as o}from"./index-4f1356d9-D95neeh-.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const r="Previous",l="Next",u={previous:r,next:l},g=":host{display:flex;flex-direction:row-reverse;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;padding:var(--gse-ui-dataTableItems-tablePagination-padding);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor);border-block-start:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}:host .gux-pagination-button-container{display:flex;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);align-content:center}:host .gux-button-align-content{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-button-gap);align-content:center;align-items:center}:host .gux-button-align-content>*{flex:0 1 auto;align-self:auto;order:0}:host gux-icon{display:flex}",c=g,h=class{constructor(e){n(this,e),this.guxPaginationCursorchange=a(this,"guxPaginationCursorchange",7),this.guxitemsperpagechange=a(this,"guxitemsperpagechange",7),this.hasPrevious=!1,this.hasNext=!1,this.layout="simple"}handleInternalitemsperpagechange(e){this.guxitemsperpagechange.emit(e.detail)}onButtonClick(e){(e==="previous"&&this.hasPrevious||e==="next"&&this.hasNext)&&this.guxPaginationCursorchange.emit(e)}async componentWillLoad(){s(this.root),this.i18n=await o(this.root,u)}renderSimpleLayout(){return[t("nav",{"aria-label":this.label,class:"gux-pagination-button-container"},t("gux-button-slot",{accent:"ghost"},t("button",{class:"gux-simple-button",type:"button",disabled:!this.hasPrevious,onClick:()=>this.onButtonClick("previous")},t("gux-icon",{iconName:"custom/chevron-left-small-regular","screenreader-text":this.i18n("previous"),size:"small"}))),t("gux-button-slot",{accent:"ghost"},t("button",{class:"gux-simple-button",type:"button",disabled:!this.hasNext,onClick:()=>this.onButtonClick("next")},t("gux-icon",{iconName:"custom/chevron-right-small-regular","screenreader-text":this.i18n("next"),size:"small"}))))]}renderAdvancedLayout(){return[t("nav",{"aria-label":this.label,class:"gux-pagination-button-container"},t("gux-button-slot",{accent:"ghost"},t("button",{type:"button",disabled:!this.hasPrevious,onClick:()=>this.onButtonClick("previous")},t("div",{class:"gux-button-align-content"},t("gux-icon",{decorative:!0,iconName:"custom/chevron-left-small-regular",size:"small"}),t("span",null,this.i18n("previous"))))),t("gux-button-slot",{accent:"ghost"},t("button",{type:"button",disabled:!this.hasNext,onClick:()=>this.onButtonClick("next")},t("div",{class:"gux-button-align-content"},t("span",null,this.i18n("next")),t("gux-icon",{decorative:!0,iconName:"custom/chevron-right-small-regular",size:"small"}))))),this.renderItemsPerPage()]}renderItemsPerPage(){return this.itemsPerPage&&t("gux-pagination-items-per-page",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})}render(){return this.layout==="advanced"?this.renderAdvancedLayout():this.renderSimpleLayout()}get root(){return i(this)}};h.style=c;export{h as gux_pagination_cursor};
@@ -1 +1 @@
1
- import{r as i,c as n,h as e,g}from"./index-CWixJ8vL.js";import{b as o}from"./index-4f1356d9-DSfDpFAA.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const r="per page",s="Items per page",p="Items per page dropdown, {range} items per page selected",l={perPage:r,itemsPerPage:s,rangeSelected:p},d="gux-pagination-items-per-page .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;inline-size:fit-content}gux-pagination-items-per-page .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened{inset-block-end:100%;display:flex;flex-direction:column-reverse}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}",u=d,c=class{constructor(a){i(this,a),this.internalitemsperpagechange=n(this,"internalitemsperpagechange",3),this.itemsPerPage=25,this.disabled=!1}handleChange(a){a.stopPropagation();const t=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(t)}async componentWillLoad(){this.i18n=await o(this.root,l)}getDropdown(){return e("gux-dropdown",{ref:a=>this.dropdownElement=a,value:`${this.itemsPerPage}`,disabled:this.disabled,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},e("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},e("gux-option",{value:"25"},"25"),e("gux-option",{value:"50"},"50"),e("gux-option",{value:"75"},"75"),e("gux-option",{value:"100"},"100")))}render(){return e("div",{key:"56e33dac3f981827817fb7269ca2800806ec7f28",class:"gux-pagination-items-per-page-container"},e("div",{key:"f2314d4e85a4075d034443ab4f90e17dd36b628c",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),e("div",{key:"c4e0d414394824783edd508c800797fe073ea294",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return g(this)}};c.style=u;export{c as gux_pagination_items_per_page};
1
+ import{r as i,c as n,h as e,g}from"./index-DnQlhAI3.js";import{b as o}from"./index-4f1356d9-D95neeh-.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const r="per page",s="Items per page",p="Items per page dropdown, {range} items per page selected",l={perPage:r,itemsPerPage:s,rangeSelected:p},d="gux-pagination-items-per-page .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;inline-size:fit-content}gux-pagination-items-per-page .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened{inset-block-end:100%;display:flex;flex-direction:column-reverse}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}",u=d,c=class{constructor(a){i(this,a),this.internalitemsperpagechange=n(this,"internalitemsperpagechange",3),this.itemsPerPage=25,this.disabled=!1}handleChange(a){a.stopPropagation();const t=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(t)}async componentWillLoad(){this.i18n=await o(this.root,l)}getDropdown(){return e("gux-dropdown",{ref:a=>this.dropdownElement=a,value:`${this.itemsPerPage}`,disabled:this.disabled,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},e("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},e("gux-option",{value:"25"},"25"),e("gux-option",{value:"50"},"50"),e("gux-option",{value:"75"},"75"),e("gux-option",{value:"100"},"100")))}render(){return e("div",{key:"56e33dac3f981827817fb7269ca2800806ec7f28",class:"gux-pagination-items-per-page-container"},e("div",{key:"f2314d4e85a4075d034443ab4f90e17dd36b628c",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),e("div",{key:"c4e0d414394824783edd508c800797fe073ea294",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return g(this)}};c.style=u;export{c as gux_pagination_items_per_page};
@@ -1 +1 @@
1
- import{r as n,c as i,h as t,g}from"./index-CWixJ8vL.js";import{t as r}from"./usage-36c49ec0-Dlq6IjQJ.js";const s=":host{display:block;border-top:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;height:var(--gse-ui-dataTableItems-cell-tablePagination-height);padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}",o=s,l=class{constructor(a){n(this,a),this.guxpaginationchange=i(this,"guxpaginationchange",7),this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.layout="full"}setPage(a){if(a<=0){this.setPage(1);return}const e=this.calculateTotalPages();if(a>e){this.setPage(e);return}this.currentPage=a,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage})}calculateTotalPages(){return Math.max(1,Math.ceil(this.totalItems/this.itemsPerPage))}calculateCurrentPage(){const a=this.totalPages>0?1:0;return Math.max(a,Math.min(this.currentPage,this.totalPages))}handleInternalitemsperpagechange(a){this.itemsPerPage=a.detail,this.setPage(1)}handleInternalcurrentpagechange(a){this.setPage(a.detail)}getPaginationInfoElement(a){if(a==="expanded")return null;const e=[t("gux-pagination-item-counts-legacy",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage})];return a==="full"&&e.push(t("gux-pagination-items-per-page-legacy",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),t("div",{class:"gux-pagination-info"},e)}componentWillLoad(){r(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(),this.currentPage=this.calculateCurrentPage()}render(){return t("div",{key:"9fb7768816e0454d90373f6a01ab55569763ec1a",class:"gux-pagination-container"},this.getPaginationInfoElement(this.layout),t("div",{key:"24c5f9d3d51777b64071d9ebf14ba61ad930788b",class:"gux-pagination-change"},t("gux-pagination-buttons-legacy",{key:"162dd6ade2c6aba07a3810d3ca26908c706cc630",layout:this.layout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return g(this)}};l.style=o;export{l as gux_pagination_legacy};
1
+ import{r as n,c as i,h as t,g}from"./index-DnQlhAI3.js";import{t as r}from"./usage-36c49ec0-Dlq6IjQJ.js";const s=":host{display:block;border-top:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;height:var(--gse-ui-dataTableItems-cell-tablePagination-height);padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}",o=s,l=class{constructor(a){n(this,a),this.guxpaginationchange=i(this,"guxpaginationchange",7),this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.layout="full"}setPage(a){if(a<=0){this.setPage(1);return}const e=this.calculateTotalPages();if(a>e){this.setPage(e);return}this.currentPage=a,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage})}calculateTotalPages(){return Math.max(1,Math.ceil(this.totalItems/this.itemsPerPage))}calculateCurrentPage(){const a=this.totalPages>0?1:0;return Math.max(a,Math.min(this.currentPage,this.totalPages))}handleInternalitemsperpagechange(a){this.itemsPerPage=a.detail,this.setPage(1)}handleInternalcurrentpagechange(a){this.setPage(a.detail)}getPaginationInfoElement(a){if(a==="expanded")return null;const e=[t("gux-pagination-item-counts-legacy",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage})];return a==="full"&&e.push(t("gux-pagination-items-per-page-legacy",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),t("div",{class:"gux-pagination-info"},e)}componentWillLoad(){r(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(),this.currentPage=this.calculateCurrentPage()}render(){return t("div",{key:"9fb7768816e0454d90373f6a01ab55569763ec1a",class:"gux-pagination-container"},this.getPaginationInfoElement(this.layout),t("div",{key:"24c5f9d3d51777b64071d9ebf14ba61ad930788b",class:"gux-pagination-change"},t("gux-pagination-buttons-legacy",{key:"162dd6ade2c6aba07a3810d3ca26908c706cc630",layout:this.layout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return g(this)}};l.style=o;export{l as gux_pagination_legacy};
@@ -1 +1 @@
1
- import{r as n,c as s,b as r,h as a,g as o}from"./index-CWixJ8vL.js";import{a as g}from"./after-next-render-07a41f53-C_KTwidI.js";import{t as c}from"./usage-36c49ec0-Dlq6IjQJ.js";const l=":host{display:block;block-size:var(--gse-ui-dataTableItems-cell-tablePagination-height);border-block-start:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-inline-start:0}",h=l,d=24,u=class{constructor(e){n(this,e),this.guxpaginationchange=s(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.disabled=!1}setPage(e){if(e<=0){this.setPage(1);return}const t=this.calculateTotalPages(this.totalItems,this.itemsPerPage);if(e>t){this.setPage(t);return}this.currentPage=e,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage})}handleInternalitemsperpagechange(e){this.itemsPerPage=e.detail,this.setPage(1)}handleInternalcurrentpagechange(e){this.setPage(e.detail)}calculateTotalPages(e,t){return Math.max(1,Math.ceil(e/t))}calculateCurrentPage(e,t){const i=e>0?1:0;return Math.max(i,Math.min(t,e))}checkPaginationContainerWidthForLayout(){r(()=>{const e=this.root.shadowRoot.querySelector(".gux-pagination-container"),t=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),i=e.clientWidth;t.clientWidth<d&&this.displayedLayout!=="simple"?(this.reinstateLayoutBreakpoint=i,this.displayedLayout="simple"):i>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)})}componentWillLoad(){c(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.checkPaginationContainerWidthForLayout())),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),g(()=>{this.checkPaginationContainerWidthForLayout()},500)}render(){return a("div",{key:"9847ec11f3d6ce2701b45e37609a04a0cd817a1b",class:"gux-pagination-container"},a("div",{key:"dd201c74a25ec351b7c2135df3a78c1afa188a04",class:"gux-pagination-info"},a("gux-pagination-item-counts",{key:"8fa2f803d855138268436e80406b387b7b6d46b1","total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),this.displayedLayout==="advanced"&&a("gux-pagination-items-per-page",{key:"7a9a67683d8f886b0bb4f746a859c9b453bfe9f7",disabled:this.disabled,"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),a("div",{key:"9cb7c65b1dfb7fbb7e0c982c4ab85b2ca29de9bd",class:"gux-pagination-spacer"}),a("div",{key:"7611f183470ff573eea93ccb51d43f4f135e791b",class:"gux-pagination-change"},a("gux-pagination-buttons",{key:"e322b2e19a780b3bf769591bfd3913a758b022f3",disabled:this.disabled,layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return o(this)}};u.style=h;export{u as gux_pagination};
1
+ import{r as n,c as s,b as r,h as a,g as o}from"./index-DnQlhAI3.js";import{a as g}from"./after-next-render-07a41f53-C_KTwidI.js";import{t as c}from"./usage-36c49ec0-Dlq6IjQJ.js";const l=":host{display:block;block-size:var(--gse-ui-dataTableItems-cell-tablePagination-height);border-block-start:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-inline-start:0}",h=l,d=24,u=class{constructor(e){n(this,e),this.guxpaginationchange=s(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.disabled=!1}setPage(e){if(e<=0){this.setPage(1);return}const t=this.calculateTotalPages(this.totalItems,this.itemsPerPage);if(e>t){this.setPage(t);return}this.currentPage=e,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage})}handleInternalitemsperpagechange(e){this.itemsPerPage=e.detail,this.setPage(1)}handleInternalcurrentpagechange(e){this.setPage(e.detail)}calculateTotalPages(e,t){return Math.max(1,Math.ceil(e/t))}calculateCurrentPage(e,t){const i=e>0?1:0;return Math.max(i,Math.min(t,e))}checkPaginationContainerWidthForLayout(){r(()=>{const e=this.root.shadowRoot.querySelector(".gux-pagination-container"),t=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),i=e.clientWidth;t.clientWidth<d&&this.displayedLayout!=="simple"?(this.reinstateLayoutBreakpoint=i,this.displayedLayout="simple"):i>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)})}componentWillLoad(){c(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.checkPaginationContainerWidthForLayout())),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),g(()=>{this.checkPaginationContainerWidthForLayout()},500)}render(){return a("div",{key:"9847ec11f3d6ce2701b45e37609a04a0cd817a1b",class:"gux-pagination-container"},a("div",{key:"dd201c74a25ec351b7c2135df3a78c1afa188a04",class:"gux-pagination-info"},a("gux-pagination-item-counts",{key:"8fa2f803d855138268436e80406b387b7b6d46b1","total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),this.displayedLayout==="advanced"&&a("gux-pagination-items-per-page",{key:"7a9a67683d8f886b0bb4f746a859c9b453bfe9f7",disabled:this.disabled,"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),a("div",{key:"9cb7c65b1dfb7fbb7e0c982c4ab85b2ca29de9bd",class:"gux-pagination-spacer"}),a("div",{key:"7611f183470ff573eea93ccb51d43f4f135e791b",class:"gux-pagination-change"},a("gux-pagination-buttons",{key:"e322b2e19a780b3bf769591bfd3913a758b022f3",disabled:this.disabled,layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return o(this)}};u.style=h;export{u as gux_pagination};
@@ -1,4 +1,4 @@
1
- import{r as registerInstance,c as createEvent,f as forceUpdate,h,g as getElement}from"./index-CWixJ8vL.js";import{g as getDefaultExportFromCjs,c as commonjsGlobal,a as commonjsRequire}from"./_commonjsHelpers-c9e3b764-Cg_zQLRJ.js";import{t as trackComponent}from"./usage-36c49ec0-Dlq6IjQJ.js";import{b as buildI18nForComponent,g as getDesiredLocale}from"./index-4f1356d9-DSfDpFAA.js";import{O as OnClickOutside}from"./on-click-outside-6c2e399b-BC2t0a8o.js";import{p as preventBrowserValidationStyling}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{a as logWarn}from"./log-error-274efeb7-BpRSdGLj.js";import{s as simulateNativeEvent}from"./simulate-native-event-e0631897-BcLDngo1.js";import{f as focusInputElement}from"./focus-input-element-8a137b12-hXwZ4F3C.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";var libphonenumber$1={exports:{}};(function(module,exports){(function(e){module.exports=e()})(function(){return function(){function e(t,o,n){function r(s,g){if(!o[s]){if(!t[s]){var u=typeof commonjsRequire=="function"&&commonjsRequire;if(!g&&u)return u(s,!0);if(d)return d(s,!0);var m=new Error("Cannot find module '"+s+"'");throw m.code="MODULE_NOT_FOUND",m}var l=o[s]={exports:{}};t[s][0].call(l.exports,function(p){var c=t[s][1][p];return r(c||p)},l,l.exports,e,t,o,n)}return o[s].exports}for(var d=typeof commonjsRequire=="function"&&commonjsRequire,i=0;i<n.length;i++)r(n[i]);return r}return e}()({1:[function(require,module,exports){(function(global){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(e){return e.raw=e},$jscomp.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,e},$jscomp.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}},$jscomp.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):$jscomp.arrayIterator(e)},$jscomp.arrayFromIterator=function(e){for(var t,o=[];!(t=e.next()).done;)o.push(t.value);return o},$jscomp.arrayFromIterable=function(e){return e instanceof Array?e:$jscomp.arrayFromIterator($jscomp.makeIterator(e))},$jscomp.checkStringArgs=function(e,t,o){if(e==null)throw new TypeError("The 'this' value for String.prototype."+o+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+o+" must not be a regular expression");return e+""},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,o){return e==Array.prototype||e==Object.prototype||(e[t]=o.value),e},$jscomp.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof global=="object"&&global];for(var t=0;t<e.length;++t){var o=e[t];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol",$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$",$jscomp.polyfill=function(e,t,o,n){t&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,t,o,n):$jscomp.polyfillUnisolated(e,t,o,n))},$jscomp.polyfillUnisolated=function(e,t,o,n){for(o=$jscomp.global,e=e.split("."),n=0;n<e.length-1;n++){var r=e[n];if(!(r in o))return;o=o[r]}e=e[e.length-1],n=o[e],t=t(n),t!=n&&t!=null&&$jscomp.defineProperty(o,e,{configurable:!0,writable:!0,value:t})},$jscomp.polyfillIsolated=function(e,t,o,n){var r=e.split(".");e=r.length===1,n=r[0],n=!e&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var d=0;d<r.length-1;d++){var i=r[d];if(!(i in n))return;n=n[i]}r=r[r.length-1],o=$jscomp.IS_SYMBOL_NATIVE&&o==="es6"?n[r]:null,t=t(o),t!=null&&(e?$jscomp.defineProperty($jscomp.polyfills,r,{configurable:!0,writable:!0,value:t}):t!==o&&($jscomp.propertyToPolyfillSymbol[r]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(r):$jscomp.POLYFILL_PREFIX+r,r=$jscomp.propertyToPolyfillSymbol[r],$jscomp.defineProperty(n,r,{configurable:!0,writable:!0,value:t})))},$jscomp.polyfill("String.prototype.endsWith",function(e){return e||function(t,o){var n=$jscomp.checkStringArgs(this,t,"endsWith");t+="",o===void 0&&(o=n.length),o=Math.max(0,Math.min(o|0,n.length));for(var r=t.length;0<r&&0<o;)if(n[--o]!=t[--r])return!1;return 0>=r}},"es6","es3"),$jscomp.findInternal=function(e,t,o){e instanceof String&&(e=String(e));for(var n=e.length,r=0;r<n;r++){var d=e[r];if(t.call(o,d,r,e))return{i:r,v:d}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",function(e){return e||function(t,o){return $jscomp.findInternal(this,t,o).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(e){return e||function(t,o){var n=$jscomp.checkStringArgs(this,t,"startsWith");t+="";var r=n.length,d=t.length;o=Math.max(0,Math.min(o|0,n.length));for(var i=0;i<d&&o<r;)if(n[o++]!=t[i++])return!1;return i>=d}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(e){return e||function(t){var o=$jscomp.checkStringArgs(this,null,"repeat");if(0>t||1342177279<t)throw new RangeError("Invalid count value");t|=0;for(var n="";t;)t&1&&(n+=o),(t>>>=1)&&(o+=o);return n}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(e){if(e)return e;var t=function(r,d){this.$jscomp$symbol$id_=r,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:d})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var o=0,n=function(r){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return new t("jscomp_symbol_"+(r||"")+"_"+o++,r)};return n},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;o<t.length;o++){var n=$jscomp.global[t[o]];typeof n=="function"&&typeof n.prototype[e]!="function"&&$jscomp.defineProperty(n.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6","es3"),$jscomp.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e},$jscomp.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var o=0,n=!1,r={next:function(){if(!n&&o<e.length){var d=o++;return{value:t(d,e[d]),done:!1}}return n=!0,{done:!0,value:void 0}}};return r[Symbol.iterator]=function(){return r},r},$jscomp.polyfill("Array.prototype.keys",function(e){return e||function(){return $jscomp.iteratorFromArray(this,function(t){return t})}},"es6","es3"),$jscomp.polyfill("Object.is",function(e){return e||function(t,o){return t===o?t!==0||1/t===1/o:t!==t&&o!==o}},"es6","es3"),$jscomp.polyfill("Array.prototype.includes",function(e){return e||function(t,o){var n=this;n instanceof String&&(n=String(n));var r=n.length;for(o=o||0,0>o&&(o=Math.max(o+r,0));o<r;o++){var d=n[o];if(d===t||Object.is(d,t))return!0}return!1}},"es7","es3"),$jscomp.polyfill("String.prototype.includes",function(e){return e||function(t,o){return $jscomp.checkStringArgs(this,t,"includes").indexOf(t,o||0)!==-1}},"es6","es3");var goog=goog||{};goog.global=this||self,goog.exportPath_=function(e,t,o,n){e=e.split("."),n=n||goog.global,e[0]in n||typeof n.execScript>"u"||n.execScript("var "+e[0]);for(var r;e.length&&(r=e.shift());)if(e.length||t===void 0)n=n[r]&&n[r]!==Object.prototype[r]?n[r]:n[r]={};else if(!o&&goog.isObject(t)&&goog.isObject(n[r]))for(var d in t)t.hasOwnProperty(d)&&(n[r][d]=t[d]);else n[r]=t},goog.define=function(e,t){return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t,o){goog.exportPath_(e,t,o)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(typeof e!="string"||!e||e.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=e},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return e?typeof e.getCurrentModulePath!="function"?!1:!!e.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||typeof t.getCurrentModulePath!="function")throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var o=0;o<e.length;o++)if(t=t[e[o]],t==null)return null;return t},goog.addDependency=function(e,t,o,n){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!1,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+`
1
+ import{r as registerInstance,c as createEvent,f as forceUpdate,h,g as getElement}from"./index-DnQlhAI3.js";import{g as getDefaultExportFromCjs,c as commonjsGlobal,a as commonjsRequire}from"./_commonjsHelpers-c9e3b764-Cg_zQLRJ.js";import{t as trackComponent}from"./usage-36c49ec0-Dlq6IjQJ.js";import{b as buildI18nForComponent,g as getDesiredLocale}from"./index-4f1356d9-D95neeh-.js";import{O as OnClickOutside}from"./on-click-outside-6c2e399b-16SRQpNH.js";import{p as preventBrowserValidationStyling}from"./prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js";import{a as logWarn}from"./log-error-274efeb7-BpRSdGLj.js";import{s as simulateNativeEvent}from"./simulate-native-event-e0631897-BcLDngo1.js";import{f as focusInputElement}from"./focus-input-element-8a137b12-hXwZ4F3C.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";var libphonenumber$1={exports:{}};(function(module,exports){(function(e){module.exports=e()})(function(){return function(){function e(t,o,n){function r(s,g){if(!o[s]){if(!t[s]){var u=typeof commonjsRequire=="function"&&commonjsRequire;if(!g&&u)return u(s,!0);if(d)return d(s,!0);var m=new Error("Cannot find module '"+s+"'");throw m.code="MODULE_NOT_FOUND",m}var l=o[s]={exports:{}};t[s][0].call(l.exports,function(p){var c=t[s][1][p];return r(c||p)},l,l.exports,e,t,o,n)}return o[s].exports}for(var d=typeof commonjsRequire=="function"&&commonjsRequire,i=0;i<n.length;i++)r(n[i]);return r}return e}()({1:[function(require,module,exports){(function(global){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(e){return e.raw=e},$jscomp.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,e},$jscomp.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}},$jscomp.makeIterator=function(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):$jscomp.arrayIterator(e)},$jscomp.arrayFromIterator=function(e){for(var t,o=[];!(t=e.next()).done;)o.push(t.value);return o},$jscomp.arrayFromIterable=function(e){return e instanceof Array?e:$jscomp.arrayFromIterator($jscomp.makeIterator(e))},$jscomp.checkStringArgs=function(e,t,o){if(e==null)throw new TypeError("The 'this' value for String.prototype."+o+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+o+" must not be a regular expression");return e+""},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,o){return e==Array.prototype||e==Object.prototype||(e[t]=o.value),e},$jscomp.getGlobal=function(e){e=[typeof globalThis=="object"&&globalThis,e,typeof window=="object"&&window,typeof self=="object"&&self,typeof global=="object"&&global];for(var t=0;t<e.length;++t){var o=e[t];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE=typeof Symbol=="function"&&typeof Symbol("x")=="symbol",$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$",$jscomp.polyfill=function(e,t,o,n){t&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,t,o,n):$jscomp.polyfillUnisolated(e,t,o,n))},$jscomp.polyfillUnisolated=function(e,t,o,n){for(o=$jscomp.global,e=e.split("."),n=0;n<e.length-1;n++){var r=e[n];if(!(r in o))return;o=o[r]}e=e[e.length-1],n=o[e],t=t(n),t!=n&&t!=null&&$jscomp.defineProperty(o,e,{configurable:!0,writable:!0,value:t})},$jscomp.polyfillIsolated=function(e,t,o,n){var r=e.split(".");e=r.length===1,n=r[0],n=!e&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var d=0;d<r.length-1;d++){var i=r[d];if(!(i in n))return;n=n[i]}r=r[r.length-1],o=$jscomp.IS_SYMBOL_NATIVE&&o==="es6"?n[r]:null,t=t(o),t!=null&&(e?$jscomp.defineProperty($jscomp.polyfills,r,{configurable:!0,writable:!0,value:t}):t!==o&&($jscomp.propertyToPolyfillSymbol[r]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(r):$jscomp.POLYFILL_PREFIX+r,r=$jscomp.propertyToPolyfillSymbol[r],$jscomp.defineProperty(n,r,{configurable:!0,writable:!0,value:t})))},$jscomp.polyfill("String.prototype.endsWith",function(e){return e||function(t,o){var n=$jscomp.checkStringArgs(this,t,"endsWith");t+="",o===void 0&&(o=n.length),o=Math.max(0,Math.min(o|0,n.length));for(var r=t.length;0<r&&0<o;)if(n[--o]!=t[--r])return!1;return 0>=r}},"es6","es3"),$jscomp.findInternal=function(e,t,o){e instanceof String&&(e=String(e));for(var n=e.length,r=0;r<n;r++){var d=e[r];if(t.call(o,d,r,e))return{i:r,v:d}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",function(e){return e||function(t,o){return $jscomp.findInternal(this,t,o).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(e){return e||function(t,o){var n=$jscomp.checkStringArgs(this,t,"startsWith");t+="";var r=n.length,d=t.length;o=Math.max(0,Math.min(o|0,n.length));for(var i=0;i<d&&o<r;)if(n[o++]!=t[i++])return!1;return i>=d}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(e){return e||function(t){var o=$jscomp.checkStringArgs(this,null,"repeat");if(0>t||1342177279<t)throw new RangeError("Invalid count value");t|=0;for(var n="";t;)t&1&&(n+=o),(t>>>=1)&&(o+=o);return n}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(e){if(e)return e;var t=function(r,d){this.$jscomp$symbol$id_=r,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:d})};t.prototype.toString=function(){return this.$jscomp$symbol$id_};var o=0,n=function(r){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return new t("jscomp_symbol_"+(r||"")+"_"+o++,r)};return n},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),o=0;o<t.length;o++){var n=$jscomp.global[t[o]];typeof n=="function"&&typeof n.prototype[e]!="function"&&$jscomp.defineProperty(n.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return e},"es6","es3"),$jscomp.iteratorPrototype=function(e){return e={next:e},e[Symbol.iterator]=function(){return this},e},$jscomp.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var o=0,n=!1,r={next:function(){if(!n&&o<e.length){var d=o++;return{value:t(d,e[d]),done:!1}}return n=!0,{done:!0,value:void 0}}};return r[Symbol.iterator]=function(){return r},r},$jscomp.polyfill("Array.prototype.keys",function(e){return e||function(){return $jscomp.iteratorFromArray(this,function(t){return t})}},"es6","es3"),$jscomp.polyfill("Object.is",function(e){return e||function(t,o){return t===o?t!==0||1/t===1/o:t!==t&&o!==o}},"es6","es3"),$jscomp.polyfill("Array.prototype.includes",function(e){return e||function(t,o){var n=this;n instanceof String&&(n=String(n));var r=n.length;for(o=o||0,0>o&&(o=Math.max(o+r,0));o<r;o++){var d=n[o];if(d===t||Object.is(d,t))return!0}return!1}},"es7","es3"),$jscomp.polyfill("String.prototype.includes",function(e){return e||function(t,o){return $jscomp.checkStringArgs(this,t,"includes").indexOf(t,o||0)!==-1}},"es6","es3");var goog=goog||{};goog.global=this||self,goog.exportPath_=function(e,t,o,n){e=e.split("."),n=n||goog.global,e[0]in n||typeof n.execScript>"u"||n.execScript("var "+e[0]);for(var r;e.length&&(r=e.shift());)if(e.length||t===void 0)n=n[r]&&n[r]!==Object.prototype[r]?n[r]:n[r]={};else if(!o&&goog.isObject(t)&&goog.isObject(n[r]))for(var d in t)t.hasOwnProperty(d)&&(n[r][d]=t[d]);else n[r]=t},goog.define=function(e,t){return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t,o){goog.exportPath_(e,t,o)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(typeof e!="string"||!e||e.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=e},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return e?typeof e.getCurrentModulePath!="function"?!1:!!e.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||typeof t.getCurrentModulePath!="function")throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var o=0;o<e.length;o++)if(t=t[e[o]],t==null)return null;return t},goog.addDependency=function(e,t,o,n){},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!1,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(goog.hasBadLetScoping==null){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+`
2
2
  ;})();
3
3
  `},goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var o={},n=o;if(typeof e=="function")n=e.call(void 0,n);else if(typeof e=="string")goog.useSafari10Workaround()&&(e=goog.workaroundSafari10EvalBug(e)),n=goog.loadModuleFromSource_.call(void 0,n,e);else throw Error("Invalid module definition");var r=goog.moduleLoaderState_.moduleName;if(typeof r=="string"&&r)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(r,n,o!==n):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof n=="object"&&n!=null&&Object.seal(n),goog.loadedModules_[r]={exports:n,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+r+'"')}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a,b){return eval(b),a},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)e[t]=="."?e.splice(t,1):t&&e[t]==".."&&e[t-1]&&e[t-1]!=".."?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),t.status==0||t.status==200?t.responseText:null}catch{return null}},goog.transpile_=function(e,t,o){var n=goog.global.$jscomp;n||(goog.global.$jscomp=n={});var r=n.transpile;if(!r){var d=goog.basePath+goog.TRANSPILER,i=goog.loadFileSync_(d);if(i){if((function(){(0,eval)(i+`
4
4
  //# sourceURL=`+d)}).call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,n=goog.global.$jscomp,r=n.transpile}}return r||(r=n.transpile=function(s,g){return goog.logToConsole_(g+" requires transpilation but no transpiler was found."),s}),r(e,t,o)},goog.typeOf=function(e){var t=typeof e;return t!="object"?t:e?Array.isArray(e)?"array":t:"null"},goog.isArrayLike=function(e){var t=goog.typeOf(e);return t=="array"||t=="object"&&typeof e.length=="number"},goog.isDateLike=function(e){return goog.isObject(e)&&typeof e.getFullYear=="function"},goog.isObject=function(e){var t=typeof e;return t=="object"&&e!=null||t=="function"},goog.getUid=function(e){return Object.prototype.hasOwnProperty.call(e,goog.UID_PROPERTY_)&&e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){e!==null&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.cloneObject=function(e){var t=goog.typeOf(e);if(t=="object"||t=="array"){if(typeof e.clone=="function")return e.clone();t=t=="array"?[]:{};for(var o in e)t[o]=goog.cloneObject(e[o]);return t}return e},goog.bindNative_=function(e,t,o){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,o){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,o){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var o=Array.prototype.slice.call(arguments,1);return function(){var n=o.slice();return n.push.apply(n,arguments),e.apply(this,n)}},goog.mixin=function(e,t){for(var o in t)e[o]=t[o]},goog.now=function(){return Date.now()},goog.globalEval=function(e){(0,eval)(e)},goog.getCssName=function(e,t){if(String(e).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var o=function(r){return goog.cssNameMapping_[r]||r},n=function(r){r=r.split("-");for(var d=[],i=0;i<r.length;i++)d.push(o(r[i]));return d.join("-")};return n=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?o:n:function(r){return r},e=t?e+"-"+n(t):n(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},goog.getMsg=function(e,t,o){return o&&o.html&&(e=e.replace(/</g,"&lt;")),o&&o.unescapeHtmlEntities&&(e=e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&amp;/g,"&")),t&&(e=e.replace(/\{\$([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,o){goog.exportPath_(e,t,!0,o)},goog.exportProperty=function(e,t,o){e[t]=o},goog.inherits=function(e,t){function o(){}o.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new o,e.prototype.constructor=e,e.base=function(n,r,d){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[r].apply(n,i)}},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},goog.defineClass=function(e,t){var o=t.constructor,n=t.statics;return o&&o!=Object.prototype.constructor||(o=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),o=goog.defineClass.createSealingConstructor_(o,e),e&&goog.inherits(o,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(o.prototype,t),n!=null&&(n instanceof Function?n(o):goog.defineClass.applyProperties_(o,n)),o},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,t){return goog.defineClass.SEAL_CLASS_INSTANCES?function(){var o=e.apply(this,arguments)||this;return o[goog.UID_PROPERTY_]=o[goog.UID_PROPERTY_],o}:e},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(var n=0;n<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;n++)o=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},goog.TRUSTED_TYPES_POLICY_NAME="goog",goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var t=null,o=goog.global.trustedTypes;if(!o||!o.createPolicy)return t;try{t=o.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_})}catch(n){goog.logToConsole_(n.message)}return t},goog.debug={};function module$contents$goog$debug$Error_DebugError(e){if(Error.captureStackTrace)Error.captureStackTrace(this,module$contents$goog$debug$Error_DebugError);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),this.reportErrorToServer=!0}goog.inherits(module$contents$goog$debug$Error_DebugError,Error),module$contents$goog$debug$Error_DebugError.prototype.name="CustomError",goog.debug.Error=module$contents$goog$debug$Error_DebugError,goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(e,t){module$contents$goog$debug$Error_DebugError.call(this,goog.asserts.subs_(e,t)),this.messagePattern=e},goog.inherits(goog.asserts.AssertionError,module$contents$goog$debug$Error_DebugError),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(e,t){e=e.split("%s");for(var o="",n=e.length-1,r=0;r<n;r++)o+=e[r]+(r<t.length?t[r]:"%s");return o+e[n]},goog.asserts.doAssertFailure_=function(e,t,o,n){var r="Assertion failed";if(o){r+=": "+o;var d=n}else e&&(r+=": "+e,d=t);e=new goog.asserts.AssertionError(""+r,d||[]),goog.asserts.errorHandler_(e)},goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=e)},goog.asserts.assert=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!e&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&e==null&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&typeof e!="number"&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&typeof e!="string"&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&typeof e!="function"&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(e)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,o){return goog.asserts.ENABLE_ASSERTS&&typeof e!="boolean"&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,o){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,o,n){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(e)],o,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,t,o){return!goog.asserts.ENABLE_ASSERTS||typeof e=="number"&&isFinite(e)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var e in Object.prototype)goog.asserts.fail(e+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):e===null?"null":typeof e},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR;goog.array.ASSUME_NATIVE_FUNCTIONS=module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS;function module$contents$goog$array_peek(e){return e[e.length-1]}goog.array.peek=module$contents$goog$array_peek,goog.array.last=module$contents$goog$array_peek;var module$contents$goog$array_indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,t,o){return goog.asserts.assert(e.length!=null),Array.prototype.indexOf.call(e,t,o)}:function(e,t,o){if(o=o==null?0:0>o?Math.max(0,e.length+o):o,typeof e=="string")return typeof t!="string"||t.length!=1?-1:e.indexOf(t,o);for(;o<e.length;o++)if(o in e&&e[o]===t)return o;return-1};goog.array.indexOf=module$contents$goog$array_indexOf;var module$contents$goog$array_lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,t,o){return goog.asserts.assert(e.length!=null),Array.prototype.lastIndexOf.call(e,t,o??e.length-1)}:function(e,t,o){if(o=o??e.length-1,0>o&&(o=Math.max(0,e.length+o)),typeof e=="string")return typeof t!="string"||t.length!=1?-1:e.lastIndexOf(t,o);for(;0<=o;o--)if(o in e&&e[o]===t)return o;return-1};goog.array.lastIndexOf=module$contents$goog$array_lastIndexOf;var module$contents$goog$array_forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,o){goog.asserts.assert(e.length!=null),Array.prototype.forEach.call(e,t,o)}:function(e,t,o){for(var n=e.length,r=typeof e=="string"?e.split(""):e,d=0;d<n;d++)d in r&&t.call(o,r[d],d,e)};goog.array.forEach=module$contents$goog$array_forEach;function module$contents$goog$array_forEachRight(e,t,o){var n=e.length,r=typeof e=="string"?e.split(""):e;for(--n;0<=n;--n)n in r&&t.call(o,r[n],n,e)}goog.array.forEachRight=module$contents$goog$array_forEachRight;var module$contents$goog$array_filter=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,t,o){return goog.asserts.assert(e.length!=null),Array.prototype.filter.call(e,t,o)}:function(e,t,o){for(var n=e.length,r=[],d=0,i=typeof e=="string"?e.split(""):e,s=0;s<n;s++)if(s in i){var g=i[s];t.call(o,g,s,e)&&(r[d++]=g)}return r};goog.array.filter=module$contents$goog$array_filter;var module$contents$goog$array_map=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,t,o){return goog.asserts.assert(e.length!=null),Array.prototype.map.call(e,t,o)}:function(e,t,o){for(var n=e.length,r=Array(n),d=typeof e=="string"?e.split(""):e,i=0;i<n;i++)i in d&&(r[i]=t.call(o,d[i],i,e));return r};goog.array.map=module$contents$goog$array_map;var module$contents$goog$array_reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,t,o,n){return goog.asserts.assert(e.length!=null),n&&(t=goog.bind(t,n)),Array.prototype.reduce.call(e,t,o)}:function(e,t,o,n){var r=o;return module$contents$goog$array_forEach(e,function(d,i){r=t.call(n,r,d,i,e)}),r};goog.array.reduce=module$contents$goog$array_reduce;var module$contents$goog$array_reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,t,o,n){return goog.asserts.assert(e.length!=null),goog.asserts.assert(t!=null),n&&(t=goog.bind(t,n)),Array.prototype.reduceRight.call(e,t,o)}:function(e,t,o,n){var r=o;return module$contents$goog$array_forEachRight(e,function(d,i){r=t.call(n,r,d,i,e)}),r};goog.array.reduceRight=module$contents$goog$array_reduceRight;var module$contents$goog$array_some=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,t,o){return goog.asserts.assert(e.length!=null),Array.prototype.some.call(e,t,o)}:function(e,t,o){for(var n=e.length,r=typeof e=="string"?e.split(""):e,d=0;d<n;d++)if(d in r&&t.call(o,r[d],d,e))return!0;return!1};goog.array.some=module$contents$goog$array_some;var module$contents$goog$array_every=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,t,o){return goog.asserts.assert(e.length!=null),Array.prototype.every.call(e,t,o)}:function(e,t,o){for(var n=e.length,r=typeof e=="string"?e.split(""):e,d=0;d<n;d++)if(d in r&&!t.call(o,r[d],d,e))return!1;return!0};goog.array.every=module$contents$goog$array_every;function module$contents$goog$array_count(e,t,o){var n=0;return module$contents$goog$array_forEach(e,function(r,d,i){t.call(o,r,d,i)&&++n},o),n}goog.array.count=module$contents$goog$array_count;function module$contents$goog$array_find(e,t,o){return t=module$contents$goog$array_findIndex(e,t,o),0>t?null:typeof e=="string"?e.charAt(t):e[t]}goog.array.find=module$contents$goog$array_find;function module$contents$goog$array_findIndex(e,t,o){for(var n=e.length,r=typeof e=="string"?e.split(""):e,d=0;d<n;d++)if(d in r&&t.call(o,r[d],d,e))return d;return-1}goog.array.findIndex=module$contents$goog$array_findIndex;function module$contents$goog$array_findRight(e,t,o){return t=module$contents$goog$array_findIndexRight(e,t,o),0>t?null:typeof e=="string"?e.charAt(t):e[t]}goog.array.findRight=module$contents$goog$array_findRight;function module$contents$goog$array_findIndexRight(e,t,o){var n=e.length,r=typeof e=="string"?e.split(""):e;for(--n;0<=n;n--)if(n in r&&t.call(o,r[n],n,e))return n;return-1}goog.array.findIndexRight=module$contents$goog$array_findIndexRight;function module$contents$goog$array_contains(e,t){return 0<=module$contents$goog$array_indexOf(e,t)}goog.array.contains=module$contents$goog$array_contains;function module$contents$goog$array_isEmpty(e){return e.length==0}goog.array.isEmpty=module$contents$goog$array_isEmpty;function module$contents$goog$array_clear(e){if(!Array.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0}goog.array.clear=module$contents$goog$array_clear;function module$contents$goog$array_insert(e,t){module$contents$goog$array_contains(e,t)||e.push(t)}goog.array.insert=module$contents$goog$array_insert;function module$contents$goog$array_insertAt(e,t,o){module$contents$goog$array_splice(e,o,0,t)}goog.array.insertAt=module$contents$goog$array_insertAt;function module$contents$goog$array_insertArrayAt(e,t,o){goog.partial(module$contents$goog$array_splice,e,o,0).apply(null,t)}goog.array.insertArrayAt=module$contents$goog$array_insertArrayAt;function module$contents$goog$array_insertBefore(e,t,o){var n;arguments.length==2||0>(n=module$contents$goog$array_indexOf(e,o))?e.push(t):module$contents$goog$array_insertAt(e,t,n)}goog.array.insertBefore=module$contents$goog$array_insertBefore;function module$contents$goog$array_remove(e,t){t=module$contents$goog$array_indexOf(e,t);var o;return(o=0<=t)&&module$contents$goog$array_removeAt(e,t),o}goog.array.remove=module$contents$goog$array_remove;function module$contents$goog$array_removeLast(e,t){return t=module$contents$goog$array_lastIndexOf(e,t),0<=t?(module$contents$goog$array_removeAt(e,t),!0):!1}goog.array.removeLast=module$contents$goog$array_removeLast;function module$contents$goog$array_removeAt(e,t){return goog.asserts.assert(e.length!=null),Array.prototype.splice.call(e,t,1).length==1}goog.array.removeAt=module$contents$goog$array_removeAt;function module$contents$goog$array_removeIf(e,t,o){return t=module$contents$goog$array_findIndex(e,t,o),0<=t?(module$contents$goog$array_removeAt(e,t),!0):!1}goog.array.removeIf=module$contents$goog$array_removeIf;function module$contents$goog$array_removeAllIf(e,t,o){var n=0;return module$contents$goog$array_forEachRight(e,function(r,d){t.call(o,r,d,e)&&module$contents$goog$array_removeAt(e,d)&&n++}),n}goog.array.removeAllIf=module$contents$goog$array_removeAllIf;function module$contents$goog$array_concat(e){return Array.prototype.concat.apply([],arguments)}goog.array.concat=module$contents$goog$array_concat;function module$contents$goog$array_join(e){return Array.prototype.concat.apply([],arguments)}goog.array.join=module$contents$goog$array_join;function module$contents$goog$array_toArray(e){var t=e.length;if(0<t){for(var o=Array(t),n=0;n<t;n++)o[n]=e[n];return o}return[]}var module$contents$goog$array_clone=goog.array.toArray=module$contents$goog$array_toArray;goog.array.clone=module$contents$goog$array_clone;function module$contents$goog$array_extend(e,t){for(var o=1;o<arguments.length;o++){var n=arguments[o];if(goog.isArrayLike(n)){var r=e.length||0,d=n.length||0;e.length=r+d;for(var i=0;i<d;i++)e[r+i]=n[i]}else e.push(n)}}goog.array.extend=module$contents$goog$array_extend;function module$contents$goog$array_splice(e,t,o,n){return goog.asserts.assert(e.length!=null),Array.prototype.splice.apply(e,module$contents$goog$array_slice(arguments,1))}goog.array.splice=module$contents$goog$array_splice;function module$contents$goog$array_slice(e,t,o){return goog.asserts.assert(e.length!=null),2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,o)}goog.array.slice=module$contents$goog$array_slice;function module$contents$goog$array_removeDuplicates(e,t,o){t=t||e;var n=function(g){return goog.isObject(g)?"o"+goog.getUid(g):(typeof g).charAt(0)+g};o=o||n,n={};for(var r=0,d=0;d<e.length;){var i=e[d++],s=o(i);Object.prototype.hasOwnProperty.call(n,s)||(n[s]=!0,t[r++]=i)}t.length=r}goog.array.removeDuplicates=module$contents$goog$array_removeDuplicates;function module$contents$goog$array_binarySearch(e,t,o){return module$contents$goog$array_binarySearch_(e,o||module$contents$goog$array_defaultCompare,!1,t)}goog.array.binarySearch=module$contents$goog$array_binarySearch;function module$contents$goog$array_binarySelect(e,t,o){return module$contents$goog$array_binarySearch_(e,t,!0,void 0,o)}goog.array.binarySelect=module$contents$goog$array_binarySelect;function module$contents$goog$array_binarySearch_(e,t,o,n,r){for(var d=0,i=e.length,s;d<i;){var g=d+(i-d>>>1),u=o?t.call(r,e[g],g,e):t(n,e[g]);0<u?d=g+1:(i=g,s=!u)}return s?d:-d-1}function module$contents$goog$array_sort(e,t){e.sort(t||module$contents$goog$array_defaultCompare)}goog.array.sort=module$contents$goog$array_sort;function module$contents$goog$array_stableSort(e,t){for(var o=Array(e.length),n=0;n<e.length;n++)o[n]={index:n,value:e[n]};var r=t||module$contents$goog$array_defaultCompare;for(module$contents$goog$array_sort(o,function(d,i){return r(d.value,i.value)||d.index-i.index}),n=0;n<e.length;n++)e[n]=o[n].value}goog.array.stableSort=module$contents$goog$array_stableSort;function module$contents$goog$array_sortByKey(e,t,o){var n=o||module$contents$goog$array_defaultCompare;module$contents$goog$array_sort(e,function(r,d){return n(t(r),t(d))})}goog.array.sortByKey=module$contents$goog$array_sortByKey;function module$contents$goog$array_sortObjectsByKey(e,t,o){module$contents$goog$array_sortByKey(e,function(n){return n[t]},o)}goog.array.sortObjectsByKey=module$contents$goog$array_sortObjectsByKey;function module$contents$goog$array_isSorted(e,t,o){t=t||module$contents$goog$array_defaultCompare;for(var n=1;n<e.length;n++){var r=t(e[n-1],e[n]);if(0<r||r==0&&o)return!1}return!0}goog.array.isSorted=module$contents$goog$array_isSorted;function module$contents$goog$array_equals(e,t,o){if(!goog.isArrayLike(e)||!goog.isArrayLike(t)||e.length!=t.length)return!1;var n=e.length;o=o||module$contents$goog$array_defaultCompareEquality;for(var r=0;r<n;r++)if(!o(e[r],t[r]))return!1;return!0}goog.array.equals=module$contents$goog$array_equals;function module$contents$goog$array_compare3(e,t,o){o=o||module$contents$goog$array_defaultCompare;for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var d=o(e[r],t[r]);if(d!=0)return d}return module$contents$goog$array_defaultCompare(e.length,t.length)}goog.array.compare3=module$contents$goog$array_compare3;function module$contents$goog$array_defaultCompare(e,t){return e>t?1:e<t?-1:0}goog.array.defaultCompare=module$contents$goog$array_defaultCompare;function module$contents$goog$array_inverseDefaultCompare(e,t){return-module$contents$goog$array_defaultCompare(e,t)}goog.array.inverseDefaultCompare=module$contents$goog$array_inverseDefaultCompare;function module$contents$goog$array_defaultCompareEquality(e,t){return e===t}goog.array.defaultCompareEquality=module$contents$goog$array_defaultCompareEquality;function module$contents$goog$array_binaryInsert(e,t,o){return o=module$contents$goog$array_binarySearch(e,t,o),0>o?(module$contents$goog$array_insertAt(e,t,-(o+1)),!0):!1}goog.array.binaryInsert=module$contents$goog$array_binaryInsert;function module$contents$goog$array_binaryRemove(e,t,o){return t=module$contents$goog$array_binarySearch(e,t,o),0<=t?module$contents$goog$array_removeAt(e,t):!1}goog.array.binaryRemove=module$contents$goog$array_binaryRemove;function module$contents$goog$array_bucket(e,t,o){for(var n={},r=0;r<e.length;r++){var d=e[r],i=t.call(o,d,r,e);i!==void 0&&(n[i]||(n[i]=[])).push(d)}return n}goog.array.bucket=module$contents$goog$array_bucket;function module$contents$goog$array_toObject(e,t,o){var n={};return module$contents$goog$array_forEach(e,function(r,d){n[t.call(o,r,d,e)]=r}),n}goog.array.toObject=module$contents$goog$array_toObject;function module$contents$goog$array_range(e,t,o){var n=[],r=0,d=e;if(o=o||1,t!==void 0&&(r=e,d=t),0>o*(d-r))return[];if(0<o)for(e=r;e<d;e+=o)n.push(e);else for(e=r;e>d;e+=o)n.push(e);return n}goog.array.range=module$contents$goog$array_range;function module$contents$goog$array_repeat(e,t){for(var o=[],n=0;n<t;n++)o[n]=e;return o}goog.array.repeat=module$contents$goog$array_repeat;function module$contents$goog$array_flatten(e){for(var t=[],o=0;o<arguments.length;o++){var n=arguments[o];if(Array.isArray(n))for(var r=0;r<n.length;r+=8192){var d=module$contents$goog$array_slice(n,r,r+8192);d=module$contents$goog$array_flatten.apply(null,d);for(var i=0;i<d.length;i++)t.push(d[i])}else t.push(n)}return t}goog.array.flatten=module$contents$goog$array_flatten;function module$contents$goog$array_rotate(e,t){return goog.asserts.assert(e.length!=null),e.length&&(t%=e.length,0<t?Array.prototype.unshift.apply(e,e.splice(-t,t)):0>t&&Array.prototype.push.apply(e,e.splice(0,-t))),e}goog.array.rotate=module$contents$goog$array_rotate;function module$contents$goog$array_moveItem(e,t,o){goog.asserts.assert(0<=t&&t<e.length),goog.asserts.assert(0<=o&&o<e.length),t=Array.prototype.splice.call(e,t,1),Array.prototype.splice.call(e,o,0,t[0])}goog.array.moveItem=module$contents$goog$array_moveItem;function module$contents$goog$array_zip(e){if(!arguments.length)return[];for(var t=[],o=arguments[0].length,n=1;n<arguments.length;n++)arguments[n].length<o&&(o=arguments[n].length);for(n=0;n<o;n++){for(var r=[],d=0;d<arguments.length;d++)r.push(arguments[d][n]);t.push(r)}return t}goog.array.zip=module$contents$goog$array_zip;function module$contents$goog$array_shuffle(e,t){t=t||Math.random;for(var o=e.length-1;0<o;o--){var n=Math.floor(t()*(o+1)),r=e[o];e[o]=e[n],e[n]=r}}goog.array.shuffle=module$contents$goog$array_shuffle;function module$contents$goog$array_copyByIndex(e,t){var o=[];return module$contents$goog$array_forEach(t,function(n){o.push(e[n])}),o}goog.array.copyByIndex=module$contents$goog$array_copyByIndex;function module$contents$goog$array_concatMap(e,t,o){return module$contents$goog$array_concat.apply([],module$contents$goog$array_map(e,t,o))}goog.array.concatMap=module$contents$goog$array_concatMap,goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(e){if(goog.asserts.ENABLE_ASSERTS){var t=goog.dom.asserts.getWindow_(e);t&&(!e||!(e instanceof t.Location)&&e instanceof t.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(e))}return e},goog.dom.asserts.assertIsElementType_=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var o=goog.dom.asserts.getWindow_(e);o&&typeof o[t]<"u"&&(e&&(e instanceof o[t]||!(e instanceof o.Location||e instanceof o.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,goog.dom.asserts.debugStringForType_(e)))}return e},goog.dom.asserts.assertIsHTMLAnchorElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(e){if(goog.isObject(e))try{return e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch{return"<object could not be stringified>"}else return e===void 0?"undefined":e===null?"null":typeof e},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,o=t&&(t.defaultView||t.parentWindow);if(o=o||goog.global,o.Element&&o.Location)return o}catch{}return null},goog.dom.HtmlElement=function(){},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var o=Array.prototype.slice.call(arguments,1);return function(){var n=this;n===goog.global&&(n=void 0);var r=Array.prototype.slice.call(arguments);return r.push.apply(r,o),e.apply(n,r)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(o){return t?e==o:e===o}},goog.functions.compose=function(e,t){var o=arguments,n=o.length;return function(){var r;n&&(r=o[n-1].apply(this,arguments));for(var d=n-2;0<=d;d--)r=o[d].call(this,r);return r}},goog.functions.sequence=function(e){var t=arguments,o=t.length;return function(){for(var n,r=0;r<o;r++)n=t[r].apply(this,arguments);return n}},goog.functions.and=function(e){var t=arguments,o=t.length;return function(){for(var n=0;n<o;n++)if(!t[n].apply(this,arguments))return!1;return!0}},goog.functions.or=function(e){var t=arguments,o=t.length;return function(){for(var n=0;n<o;n++)if(t[n].apply(this,arguments))return!0;return!1}},goog.functions.not=function(e){return function(){return!e.apply(this,arguments)}},goog.functions.create=function(e,t){var o=function(){};return o.prototype=e.prototype,o=new o,e.apply(o,Array.prototype.slice.call(arguments,1)),o},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(e){var t=!1,o;return function(){return goog.functions.CACHE_RETURN_VALUE?(t||(o=e(),t=!0),o):e()}},goog.functions.once=function(e){var t=e;return function(){if(t){var o=t;t=null,o()}}},goog.functions.debounce=function(e,t,o){var n=0;return function(r){goog.global.clearTimeout(n);var d=arguments;n=goog.global.setTimeout(function(){e.apply(o,d)},t)}},goog.functions.throttle=function(e,t,o){var n=0,r=!1,d=[],i=function(){n=0,r&&(r=!1,s())},s=function(){n=goog.global.setTimeout(i,t),e.apply(o,d)};return function(g){d=arguments,n?r=!0:s()}},goog.functions.rateLimit=function(e,t,o){var n=0,r=function(){n=0};return function(d){n||(n=goog.global.setTimeout(r,t),e.apply(o,arguments))}},goog.functions.isFunction=function(e){return typeof e=="function"},goog.dom.TagName=function(){},goog.dom.TagName.cast=function(e,t){return e},goog.dom.TagName.prototype.toString=function(){},goog.dom.TagName.A="A",goog.dom.TagName.ABBR="ABBR",goog.dom.TagName.ACRONYM="ACRONYM",goog.dom.TagName.ADDRESS="ADDRESS",goog.dom.TagName.APPLET="APPLET",goog.dom.TagName.AREA="AREA",goog.dom.TagName.ARTICLE="ARTICLE",goog.dom.TagName.ASIDE="ASIDE",goog.dom.TagName.AUDIO="AUDIO",goog.dom.TagName.B="B",goog.dom.TagName.BASE="BASE",goog.dom.TagName.BASEFONT="BASEFONT",goog.dom.TagName.BDI="BDI",goog.dom.TagName.BDO="BDO",goog.dom.TagName.BIG="BIG",goog.dom.TagName.BLOCKQUOTE="BLOCKQUOTE",goog.dom.TagName.BODY="BODY",goog.dom.TagName.BR="BR",goog.dom.TagName.BUTTON="BUTTON",goog.dom.TagName.CANVAS="CANVAS",goog.dom.TagName.CAPTION="CAPTION",goog.dom.TagName.CENTER="CENTER",goog.dom.TagName.CITE="CITE",goog.dom.TagName.CODE="CODE",goog.dom.TagName.COL="COL",goog.dom.TagName.COLGROUP="COLGROUP",goog.dom.TagName.COMMAND="COMMAND",goog.dom.TagName.DATA="DATA",goog.dom.TagName.DATALIST="DATALIST",goog.dom.TagName.DD="DD",goog.dom.TagName.DEL="DEL",goog.dom.TagName.DETAILS="DETAILS",goog.dom.TagName.DFN="DFN",goog.dom.TagName.DIALOG="DIALOG",goog.dom.TagName.DIR="DIR",goog.dom.TagName.DIV="DIV",goog.dom.TagName.DL="DL",goog.dom.TagName.DT="DT",goog.dom.TagName.EM="EM",goog.dom.TagName.EMBED="EMBED",goog.dom.TagName.FIELDSET="FIELDSET",goog.dom.TagName.FIGCAPTION="FIGCAPTION",goog.dom.TagName.FIGURE="FIGURE",goog.dom.TagName.FONT="FONT",goog.dom.TagName.FOOTER="FOOTER",goog.dom.TagName.FORM="FORM",goog.dom.TagName.FRAME="FRAME",goog.dom.TagName.FRAMESET="FRAMESET",goog.dom.TagName.H1="H1",goog.dom.TagName.H2="H2",goog.dom.TagName.H3="H3",goog.dom.TagName.H4="H4",goog.dom.TagName.H5="H5",goog.dom.TagName.H6="H6",goog.dom.TagName.HEAD="HEAD",goog.dom.TagName.HEADER="HEADER",goog.dom.TagName.HGROUP="HGROUP",goog.dom.TagName.HR="HR",goog.dom.TagName.HTML="HTML",goog.dom.TagName.I="I",goog.dom.TagName.IFRAME="IFRAME",goog.dom.TagName.IMG="IMG",goog.dom.TagName.INPUT="INPUT",goog.dom.TagName.INS="INS",goog.dom.TagName.ISINDEX="ISINDEX",goog.dom.TagName.KBD="KBD",goog.dom.TagName.KEYGEN="KEYGEN",goog.dom.TagName.LABEL="LABEL",goog.dom.TagName.LEGEND="LEGEND",goog.dom.TagName.LI="LI",goog.dom.TagName.LINK="LINK",goog.dom.TagName.MAIN="MAIN",goog.dom.TagName.MAP="MAP",goog.dom.TagName.MARK="MARK",goog.dom.TagName.MATH="MATH",goog.dom.TagName.MENU="MENU",goog.dom.TagName.MENUITEM="MENUITEM",goog.dom.TagName.META="META",goog.dom.TagName.METER="METER",goog.dom.TagName.NAV="NAV",goog.dom.TagName.NOFRAMES="NOFRAMES",goog.dom.TagName.NOSCRIPT="NOSCRIPT",goog.dom.TagName.OBJECT="OBJECT",goog.dom.TagName.OL="OL",goog.dom.TagName.OPTGROUP="OPTGROUP",goog.dom.TagName.OPTION="OPTION",goog.dom.TagName.OUTPUT="OUTPUT",goog.dom.TagName.P="P",goog.dom.TagName.PARAM="PARAM",goog.dom.TagName.PICTURE="PICTURE",goog.dom.TagName.PRE="PRE",goog.dom.TagName.PROGRESS="PROGRESS",goog.dom.TagName.Q="Q",goog.dom.TagName.RP="RP",goog.dom.TagName.RT="RT",goog.dom.TagName.RTC="RTC",goog.dom.TagName.RUBY="RUBY",goog.dom.TagName.S="S",goog.dom.TagName.SAMP="SAMP",goog.dom.TagName.SCRIPT="SCRIPT",goog.dom.TagName.SECTION="SECTION",goog.dom.TagName.SELECT="SELECT",goog.dom.TagName.SMALL="SMALL",goog.dom.TagName.SOURCE="SOURCE",goog.dom.TagName.SPAN="SPAN",goog.dom.TagName.STRIKE="STRIKE",goog.dom.TagName.STRONG="STRONG",goog.dom.TagName.STYLE="STYLE",goog.dom.TagName.SUB="SUB",goog.dom.TagName.SUMMARY="SUMMARY",goog.dom.TagName.SUP="SUP",goog.dom.TagName.SVG="SVG",goog.dom.TagName.TABLE="TABLE",goog.dom.TagName.TBODY="TBODY",goog.dom.TagName.TD="TD",goog.dom.TagName.TEMPLATE="TEMPLATE",goog.dom.TagName.TEXTAREA="TEXTAREA",goog.dom.TagName.TFOOT="TFOOT",goog.dom.TagName.TH="TH",goog.dom.TagName.THEAD="THEAD",goog.dom.TagName.TIME="TIME",goog.dom.TagName.TITLE="TITLE",goog.dom.TagName.TR="TR",goog.dom.TagName.TRACK="TRACK",goog.dom.TagName.TT="TT",goog.dom.TagName.U="U",goog.dom.TagName.UL="UL",goog.dom.TagName.VAR="VAR",goog.dom.TagName.VIDEO="VIDEO",goog.dom.TagName.WBR="WBR",goog.object={},goog.object.forEach=function(e,t,o){for(var n in e)t.call(o,e[n],n,e)},goog.object.filter=function(e,t,o){var n={},r;for(r in e)t.call(o,e[r],r,e)&&(n[r]=e[r]);return n},goog.object.map=function(e,t,o){var n={},r;for(r in e)n[r]=t.call(o,e[r],r,e);return n},goog.object.some=function(e,t,o){for(var n in e)if(t.call(o,e[n],n,e))return!0;return!1},goog.object.every=function(e,t,o){for(var n in e)if(!t.call(o,e[n],n,e))return!1;return!0},goog.object.getCount=function(e){var t=0,o;for(o in e)t++;return t},goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.contains=function(e,t){return goog.object.containsValue(e,t)},goog.object.getValues=function(e){var t=[],o=0,n;for(n in e)t[o++]=e[n];return t},goog.object.getKeys=function(e){var t=[],o=0,n;for(n in e)t[o++]=n;return t},goog.object.getValueByKeys=function(e,t){var o=goog.isArrayLike(t),n=o?t:arguments;for(o=o?0:1;o<n.length;o++){if(e==null)return;e=e[n[o]]}return e},goog.object.containsKey=function(e,t){return e!==null&&t in e},goog.object.containsValue=function(e,t){for(var o in e)if(e[o]==t)return!0;return!1},goog.object.findKey=function(e,t,o){for(var n in e)if(t.call(o,e[n],n,e))return n},goog.object.findValue=function(e,t,o){return(t=goog.object.findKey(e,t,o))&&e[t]},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.remove=function(e,t){var o;return(o=t in e)&&delete e[t],o},goog.object.add=function(e,t,o){if(e!==null&&t in e)throw Error('The object already contains the key "'+t+'"');goog.object.set(e,t,o)},goog.object.get=function(e,t,o){return e!==null&&t in e?e[t]:o},goog.object.set=function(e,t,o){e[t]=o},goog.object.setIfUndefined=function(e,t,o){return t in e?e[t]:e[t]=o},goog.object.setWithReturnValueIfNotSet=function(e,t,o){return t in e?e[t]:(o=o(),e[t]=o)},goog.object.equals=function(e,t){for(var o in e)if(!(o in t)||e[o]!==t[o])return!1;for(var n in t)if(!(n in e))return!1;return!0},goog.object.clone=function(e){var t={},o;for(o in e)t[o]=e[o];return t},goog.object.unsafeClone=function(e){if(!e||typeof e!="object")return e;if(typeof e.clone=="function")return e.clone();var t=Array.isArray(e)?[]:typeof ArrayBuffer!="function"||typeof ArrayBuffer.isView!="function"||!ArrayBuffer.isView(e)||e instanceof DataView?{}:new e.constructor(e.length),o;for(o in e)t[o]=goog.object.unsafeClone(e[o]);return t},goog.object.transpose=function(e){var t={},o;for(o in e)t[e[o]]=o;return t},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(e,t){for(var o,n,r=1;r<arguments.length;r++){n=arguments[r];for(o in n)e[o]=n[o];for(var d=0;d<goog.object.PROTOTYPE_FIELDS_.length;d++)o=goog.object.PROTOTYPE_FIELDS_[d],Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}},goog.object.create=function(e){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var o={},n=0;n<t;n+=2)o[arguments[n]]=arguments[n+1];return o},goog.object.createSet=function(e){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var o={},n=0;n<t;n++)o[arguments[n]]=!0;return o},goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&(t=Object.create(e),Object.freeze(t)),t},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.getAllPropertyNames=function(e,t,o){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(e);for(var n={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||o);){for(var r=Object.getOwnPropertyNames(e),d=0;d<r.length;d++)n[r[d]]=!0;e=Object.getPrototypeOf(e)}return goog.object.getKeys(n)},goog.object.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor},goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(e){return goog.dom.tags.VOID_TAGS_[e]===!0},goog.string={},goog.string.TypedString=function(){},goog.string.Const=function(e,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(e){return e instanceof goog.string.Const&&e.constructor===goog.string.Const&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+e+"'"),"type_error:Const")},goog.string.Const.from=function(e){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse=function(){return goog.TRUSTED_TYPES_POLICY_NAME?(goog.html.trustedtypes.cachedPolicy_===void 0&&(goog.html.trustedtypes.cachedPolicy_=goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html")),goog.html.trustedtypes.cachedPolicy_):null};var module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE={},module$contents$goog$html$SafeScript_SafeScript=function(e,t){this.privateDoNotAccessOrElseSafeScriptWrappedValue_=t===module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE?e:"",this.implementsGoogStringTypedString=!0};module$contents$goog$html$SafeScript_SafeScript.fromConstant=function(e){return e=goog.string.Const.unwrap(e),e.length===0?module$contents$goog$html$SafeScript_SafeScript.EMPTY:module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},module$contents$goog$html$SafeScript_SafeScript.fromConstantAndArgs=function(e,t){for(var o=[],n=1;n<arguments.length;n++)o.push(module$contents$goog$html$SafeScript_SafeScript.stringify_(arguments[n]));return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(e)+")("+o.join(", ")+");")},module$contents$goog$html$SafeScript_SafeScript.fromJson=function(e){return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(module$contents$goog$html$SafeScript_SafeScript.stringify_(e))},module$contents$goog$html$SafeScript_SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},module$contents$goog$html$SafeScript_SafeScript.unwrap=function(e){return module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(e).toString()},module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript=function(e){return e instanceof module$contents$goog$html$SafeScript_SafeScript&&e.constructor===module$contents$goog$html$SafeScript_SafeScript?e.privateDoNotAccessOrElseSafeScriptWrappedValue_:((0,goog.asserts.fail)("expected object of type SafeScript, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeScript")},module$contents$goog$html$SafeScript_SafeScript.stringify_=function(e){return JSON.stringify(e).replace(/</g,"\\x3c")},module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(e){var t=goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse();return e=t?t.createScript(e):e,new module$contents$goog$html$SafeScript_SafeScript(e,module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE)},goog.DEBUG&&(module$contents$goog$html$SafeScript_SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),module$contents$goog$html$SafeScript_SafeScript.EMPTY=function(){return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("")}(),goog.html.SafeScript=module$contents$goog$html$SafeScript_SafeScript,goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(e){return goog.fs.url.getUrlObject_().createObjectURL(e)},goog.fs.url.revokeObjectUrl=function(e){goog.fs.url.getUrlObject_().revokeObjectURL(e)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(e){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(e){},goog.fs.url.getUrlObject_=function(){var e=goog.fs.url.findUrlObject_();if(e!=null)return e;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.global.URL!==void 0&&goog.global.URL.createObjectURL!==void 0?goog.global.URL:goog.global.webkitURL!==void 0&&goog.global.webkitURL.createObjectURL!==void 0?goog.global.webkitURL:goog.global.createObjectURL!==void 0?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return goog.fs.url.findUrlObject_()!=null},goog.fs.blob={},goog.fs.blob.getBlob=function(e){var t=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(t!==void 0){t=new t;for(var o=0;o<arguments.length;o++)t.append(arguments[o]);return t.getBlob()}return goog.fs.blob.getBlobWithProperties(module$contents$goog$array_toArray(arguments))},goog.fs.blob.getBlobWithProperties=function(e,t,o){var n=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(n!==void 0){n=new n;for(var r=0;r<e.length;r++)n.append(e[r],o);return n.getBlob(t)}if(goog.global.Blob!==void 0)return n={},t&&(n.type=t),o&&(n.endings=o),new Blob(e,n);throw Error("This browser doesn't seem to support creating Blobs")},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||(goog.LOCALE.substring(0,2).toLowerCase()=="ar"||goog.LOCALE.substring(0,2).toLowerCase()=="fa"||goog.LOCALE.substring(0,2).toLowerCase()=="he"||goog.LOCALE.substring(0,2).toLowerCase()=="iw"||goog.LOCALE.substring(0,2).toLowerCase()=="ps"||goog.LOCALE.substring(0,2).toLowerCase()=="sd"||goog.LOCALE.substring(0,2).toLowerCase()=="ug"||goog.LOCALE.substring(0,2).toLowerCase()=="ur"||goog.LOCALE.substring(0,2).toLowerCase()=="yi")&&(goog.LOCALE.length==2||goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")||3<=goog.LOCALE.length&&goog.LOCALE.substring(0,3).toLowerCase()=="ckb"&&(goog.LOCALE.length==3||goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")||7<=goog.LOCALE.length&&(goog.LOCALE.substring(2,3)=="-"||goog.LOCALE.substring(2,3)=="_")&&(goog.LOCALE.substring(3,7).toLowerCase()=="adlm"||goog.LOCALE.substring(3,7).toLowerCase()=="arab"||goog.LOCALE.substring(3,7).toLowerCase()=="hebr"||goog.LOCALE.substring(3,7).toLowerCase()=="nkoo"||goog.LOCALE.substring(3,7).toLowerCase()=="rohg"||goog.LOCALE.substring(3,7).toLowerCase()=="thaa")||8<=goog.LOCALE.length&&(goog.LOCALE.substring(3,4)=="-"||goog.LOCALE.substring(3,4)=="_")&&(goog.LOCALE.substring(4,8).toLowerCase()=="adlm"||goog.LOCALE.substring(4,8).toLowerCase()=="arab"||goog.LOCALE.substring(4,8).toLowerCase()=="hebr"||goog.LOCALE.substring(4,8).toLowerCase()=="nkoo"||goog.LOCALE.substring(4,8).toLowerCase()=="rohg"||goog.LOCALE.substring(4,8).toLowerCase()=="thaa"),goog.i18n.bidi.Format={LRE:"‪",RLE:"‫",PDF:"‬",LRM:"‎",RLM:"‏"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(e,t){return typeof e=="number"?0<e?goog.i18n.bidi.Dir.LTR:0>e?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:e==null?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\uD801\uD804-\uD839\uD83C-\uDBFF豈-﬜︀-﹯﻽-￿",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ‏\uD802-\uD803\uD83A-\uD83Bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(t===void 0?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return e.charAt(0)=="<"?e.replace(/<\w+/,"$& dir=rtl"):`
@@ -1 +1 @@
1
- import{r as f,c as m,h as r,g}from"./index-CWixJ8vL.js";import{a as v,c as b,o as E,f as x,s as w,h as k,b as y}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";import{O as P}from"./on-click-outside-6c2e399b-BC2t0a8o.js";import{t as O}from"./usage-36c49ec0-Dlq6IjQJ.js";import{g as C}from"./get-slot-41f866aa-DJNt4BpD.js";import{f as c}from"./find-element-by-id-d0ce6208-DntMpzyb.js";const F=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:absolute;inset-block-start:0;inset-inline-start:0;padding:var(--gse-ui-popover-padding);overflow:hidden;color:var(--gse-semantic-foreground-container-highEmphasis);background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow);}.gux-popover-wrapper .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-popover-wrapper .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))}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-block-end:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}",U=F;var S=function(e,o,s,i){var n=arguments.length,t=n<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,s):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(e,o,s,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(t=(n<3?p(t):n>3?p(o,s,t):p(o,s))||t);return n>3&&t&&Object.defineProperty(o,s,t),t};const u=class{constructor(e){f(this,e),this.guxdismiss=m(this,"guxdismiss",7),this.position="bottom",this.displayDismissButton=!1,this.closeOnClickOutside=!1,this.isOpen=!1,this.disconnect=void 0}updateForElement(){this.forElement=this.getForElement(),this.forElement.setAttribute("aria-haspopup","true")}onKeyDown(e){switch(e.key){case"Escape":this.forElement.focus();break}}onFocusout(e){if(!this.closeOnClickOutside&&this.displayDismissButton)return;e.relatedTarget&&!this.root.contains(e.relatedTarget)&&this.dismiss()}checkForClickOutside(e){const o=e.composedPath(),s=c(this.root,this.for),i=o.includes(s);(this.closeOnClickOutside||!this.displayDismissButton)&&this.isOpen&&!i&&this.dismiss()}async guxDismissPopover(){this.dismiss()}get titleSlot(){return C(this.root,"title")}getForElement(){if(this.for){const e=c(this.root,this.for);return e||this.logForAttributeError(),e}else this.logForAttributeError()}focusPopup(){const e=this.root.querySelector("[autoFocus]");e?e==null||e.focus():this.popupElement.focus()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=v(c(this.root,this.for),this.popupElement,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const e=c(this.root,this.for);this.popupElement&&e&&b(e,this.popupElement,{placement:this.position,middleware:[E(7),x(),w(),k(),y({element:this.arrowElement,padding:16})]}).then(({x:o,y:s,middlewareData:i,placement:n})=>{Object.assign(this.popupElement.style,{left:`${o}px`,top:`${s}px`});const t=n.split("-")[0],p={top:"bottom",right:"left",bottom:"top",left:"right"}[t],a={top:0,right:90,bottom:180,left:-90}[t],h=t==="left"||t==="right"?15:13;if(i.arrow){let l=i.arrow.x;const d=i.arrow.y;(t==="left"||t==="right")&&(l=l+4),this.popupElement.setAttribute("data-placement",n),Object.assign(this.arrowElement.style,{left:l!=null?`${l}px`:"",top:d!=null?`${d}px`:"",right:"",bottom:"",[p]:`${-h}px`,transform:`rotate(${a}deg)`})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})})}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.hidePopover())}logForAttributeError(){this.root.isConnected&&console.error(`gux-popover: invalid element supplied to 'for': "${this.for}"`)}onKeydown(e){switch(e.key){case"Enter":case" ":e.preventDefault(),this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusPopup();break}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}connectedCallback(){this.updateForElement(),O(this.root,{variant:this.position});const e=this.onKeydown.bind(this);this.forElement.addEventListener("keydown",e);const o=this.onMouseup.bind(this);this.forElement.addEventListener("mouseup",o),this.disconnect=()=>{this.forElement.removeEventListener("keydown",e),this.forElement.removeEventListener("mouseup",o)}}componentDidLoad(){this.forElement&&(this.forElement.popoverTargetElement=this.popupElement,this.isOpen&&(this.popupElement.togglePopover(),this.runUpdatePosition()))}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnect()}render(){return r("div",{key:"3d295a2cd9cbbaca23458d0acbd0da77fce7cde7",ref:e=>this.popupElement=e,class:{"gux-popover-wrapper":!0,"gux-hidden":!this.isOpen},"data-placement":!0,popover:"manual",tabindex:"-1"},r("div",{key:"f8d97e6964555fd9d69888f4842a9594aff0be5a",ref:e=>this.arrowElement=e,class:"gux-arrow"},r("div",{key:"e3010c401e83c01626c8755aec7fd4834edec69b",class:"gux-arrow-caret"})),this.displayDismissButton&&r("gux-dismiss-button",{key:"46047744a3f18b46ef0af1d8d4553831cbeb87f5",onClick:this.dismiss.bind(this)}),r("div",{key:"c43b179d660b63c924b7136dcdd0861f9b66d7d1",class:{"gux-popover-header":!!this.titleSlot}},r("slot",{key:"03bc8460bf8d02fcf9e0da2bf7d8c50adc648988",name:"title"})),r("div",{key:"adc2d299aa60c34042029314d2258d316f13c53e",class:"gux-popover-content"},r("slot",{key:"87a1583dcb96c58d3beb81f40e0e5aa5001f7a34"})))}get root(){return g(this)}static get watchers(){return{for:["updateForElement"]}}};S([P({triggerEvents:"mousedown"})],u.prototype,"checkForClickOutside",null);u.style=U;export{u as gux_popover_beta};
1
+ import{r as f,c as m,h as r,g}from"./index-DnQlhAI3.js";import{a as v,c as b,o as E,f as x,s as w,h as k,b as y}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";import{O as P}from"./on-click-outside-6c2e399b-16SRQpNH.js";import{t as O}from"./usage-36c49ec0-Dlq6IjQJ.js";import{g as C}from"./get-slot-41f866aa-DJNt4BpD.js";import{f as c}from"./find-element-by-id-d0ce6208-DntMpzyb.js";const F=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:absolute;inset-block-start:0;inset-inline-start:0;padding:var(--gse-ui-popover-padding);overflow:hidden;color:var(--gse-semantic-foreground-container-highEmphasis);background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow);}.gux-popover-wrapper .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-popover-wrapper .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))}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-block-end:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}",U=F;var S=function(e,o,s,i){var n=arguments.length,t=n<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,s):i,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(e,o,s,i);else for(var a=e.length-1;a>=0;a--)(p=e[a])&&(t=(n<3?p(t):n>3?p(o,s,t):p(o,s))||t);return n>3&&t&&Object.defineProperty(o,s,t),t};const u=class{constructor(e){f(this,e),this.guxdismiss=m(this,"guxdismiss",7),this.position="bottom",this.displayDismissButton=!1,this.closeOnClickOutside=!1,this.isOpen=!1,this.disconnect=void 0}updateForElement(){this.forElement=this.getForElement(),this.forElement.setAttribute("aria-haspopup","true")}onKeyDown(e){switch(e.key){case"Escape":this.forElement.focus();break}}onFocusout(e){if(!this.closeOnClickOutside&&this.displayDismissButton)return;e.relatedTarget&&!this.root.contains(e.relatedTarget)&&this.dismiss()}checkForClickOutside(e){const o=e.composedPath(),s=c(this.root,this.for),i=o.includes(s);(this.closeOnClickOutside||!this.displayDismissButton)&&this.isOpen&&!i&&this.dismiss()}async guxDismissPopover(){this.dismiss()}get titleSlot(){return C(this.root,"title")}getForElement(){if(this.for){const e=c(this.root,this.for);return e||this.logForAttributeError(),e}else this.logForAttributeError()}focusPopup(){const e=this.root.querySelector("[autoFocus]");e?e==null||e.focus():this.popupElement.focus()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=v(c(this.root,this.for),this.popupElement,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const e=c(this.root,this.for);this.popupElement&&e&&b(e,this.popupElement,{placement:this.position,middleware:[E(7),x(),w(),k(),y({element:this.arrowElement,padding:16})]}).then(({x:o,y:s,middlewareData:i,placement:n})=>{Object.assign(this.popupElement.style,{left:`${o}px`,top:`${s}px`});const t=n.split("-")[0],p={top:"bottom",right:"left",bottom:"top",left:"right"}[t],a={top:0,right:90,bottom:180,left:-90}[t],h=t==="left"||t==="right"?15:13;if(i.arrow){let l=i.arrow.x;const d=i.arrow.y;(t==="left"||t==="right")&&(l=l+4),this.popupElement.setAttribute("data-placement",n),Object.assign(this.arrowElement.style,{left:l!=null?`${l}px`:"",top:d!=null?`${d}px`:"",right:"",bottom:"",[p]:`${-h}px`,transform:`rotate(${a}deg)`})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})})}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.hidePopover())}logForAttributeError(){this.root.isConnected&&console.error(`gux-popover: invalid element supplied to 'for': "${this.for}"`)}onKeydown(e){switch(e.key){case"Enter":case" ":e.preventDefault(),this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusPopup();break}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}connectedCallback(){this.updateForElement(),O(this.root,{variant:this.position});const e=this.onKeydown.bind(this);this.forElement.addEventListener("keydown",e);const o=this.onMouseup.bind(this);this.forElement.addEventListener("mouseup",o),this.disconnect=()=>{this.forElement.removeEventListener("keydown",e),this.forElement.removeEventListener("mouseup",o)}}componentDidLoad(){this.forElement&&(this.forElement.popoverTargetElement=this.popupElement,this.isOpen&&(this.popupElement.togglePopover(),this.runUpdatePosition()))}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnect()}render(){return r("div",{key:"3d295a2cd9cbbaca23458d0acbd0da77fce7cde7",ref:e=>this.popupElement=e,class:{"gux-popover-wrapper":!0,"gux-hidden":!this.isOpen},"data-placement":!0,popover:"manual",tabindex:"-1"},r("div",{key:"f8d97e6964555fd9d69888f4842a9594aff0be5a",ref:e=>this.arrowElement=e,class:"gux-arrow"},r("div",{key:"e3010c401e83c01626c8755aec7fd4834edec69b",class:"gux-arrow-caret"})),this.displayDismissButton&&r("gux-dismiss-button",{key:"46047744a3f18b46ef0af1d8d4553831cbeb87f5",onClick:this.dismiss.bind(this)}),r("div",{key:"c43b179d660b63c924b7136dcdd0861f9b66d7d1",class:{"gux-popover-header":!!this.titleSlot}},r("slot",{key:"03bc8460bf8d02fcf9e0da2bf7d8c50adc648988",name:"title"})),r("div",{key:"adc2d299aa60c34042029314d2258d316f13c53e",class:"gux-popover-content"},r("slot",{key:"87a1583dcb96c58d3beb81f40e0e5aa5001f7a34"})))}get root(){return g(this)}static get watchers(){return{for:["updateForElement"]}}};S([P({triggerEvents:"mousedown"})],u.prototype,"checkForClickOutside",null);u.style=U;export{u as gux_popover_beta};
@@ -1 +1 @@
1
- import{r as u,c as h,h as a,g as f}from"./index-CWixJ8vL.js";import{a as m,c as b,o as g,f as v,s as E,h as x,b as k}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";import{a as y}from"./after-next-render-07a41f53-C_KTwidI.js";import{O as P}from"./on-click-outside-6c2e399b-BC2t0a8o.js";import{t as w}from"./usage-36c49ec0-Dlq6IjQJ.js";import{f as d}from"./find-element-by-id-d0ce6208-DntMpzyb.js";const O=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;overflow-y:hidden;background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow);}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}",C=O;var U=function(e,t,o,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(r=e[p])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};const c=class{constructor(e){u(this,e),this.guxdismiss=h(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1,this.disconnect=void 0}onKeyDown(e){switch(e.key){case"Tab":this.dismiss();break;case"Escape":this.dismiss(),this.forElement.focus();break}}checkForClickOutside(e){const t=e.composedPath(),o=d(this.root,this.for),i=t.includes(o);(this.closeOnClickOutside||!this.displayDismissButton)&&this.isOpen&&!i&&this.dismiss()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=m(d(this.root,this.for),this.popupElement,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const e=d(this.root,this.for);this.popupElement&&b(e,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[g(2),v(),E(),x(),k({element:this.arrowElement,padding:16})]}).then(({x:t,y:o,middlewareData:i,placement:n})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${o}px`});const s=n.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[s];if(i.arrow){const{x:p,y:l}=i.arrow;this.popupElement.setAttribute("data-placement",n),Object.assign(this.arrowElement.style,{left:p!=null?`${p}px`:"",top:l!=null?`${l}px`:"",right:"",bottom:"",[r]:`${-13/2}px`,transform:"rotate(45deg)"})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})})}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.togglePopover())}focusFirstItemInPopupList(){y(()=>{this.listElement.guxFocusFirstItem()})}onKeydown(e){switch(e.key){case"Enter":case" ":this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusFirstItemInPopupList();break}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}connectedCallback(){w(this.root,{variant:this.position}),this.listElement=this.root.querySelector("gux-list"),this.forElement=d(this.root,this.for),this.forElement.setAttribute("aria-haspopup","true");const e=this.onKeydown.bind(this);this.forElement.addEventListener("keydown",e);const t=this.onMouseup.bind(this);this.forElement.addEventListener("mouseup",t),this.disconnect=()=>{this.forElement.removeEventListener("keydown",e),this.forElement.removeEventListener("mouseup",t)}}componentDidLoad(){this.isOpen&&(this.popupElement.togglePopover(),this.runUpdatePosition())}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnect()}render(){return a("div",{key:"e637eb411cef322a9e0c94ca21896ff8018ca802",ref:e=>this.popupElement=e,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0,popover:"manual"},a("div",{key:"709fb045aa41fbc038d12d637700b8ff9f9aafb0",ref:e=>this.arrowElement=e,class:"gux-arrow"}),this.displayDismissButton&&a("gux-dismiss-button",{key:"dacf558946523086ba3ad4060897d47be8e5ba03",onClick:this.dismiss.bind(this)}),a("div",{key:"e9547a9915f690e1c604d107fe661beecd4bfed2",class:"gux-popover-content"},a("slot",{key:"3604d873f66e5da9d0eaddf61efbc7879423129c"})))}get root(){return f(this)}};U([P({triggerEvents:"mousedown"})],c.prototype,"checkForClickOutside",null);c.style=C;export{c as gux_popover_list_beta};
1
+ import{r as u,c as h,h as a,g as f}from"./index-DnQlhAI3.js";import{a as m,c as b,o as g,f as v,s as E,h as x,b as k}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";import{a as y}from"./after-next-render-07a41f53-C_KTwidI.js";import{O as P}from"./on-click-outside-6c2e399b-16SRQpNH.js";import{t as w}from"./usage-36c49ec0-Dlq6IjQJ.js";import{f as d}from"./find-element-by-id-d0ce6208-DntMpzyb.js";const O=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;overflow-y:hidden;background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow);}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}",C=O;var U=function(e,t,o,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,o,i);else for(var p=e.length-1;p>=0;p--)(r=e[p])&&(s=(n<3?r(s):n>3?r(t,o,s):r(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};const c=class{constructor(e){u(this,e),this.guxdismiss=h(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1,this.disconnect=void 0}onKeyDown(e){switch(e.key){case"Tab":this.dismiss();break;case"Escape":this.dismiss(),this.forElement.focus();break}}checkForClickOutside(e){const t=e.composedPath(),o=d(this.root,this.for),i=t.includes(o);(this.closeOnClickOutside||!this.displayDismissButton)&&this.isOpen&&!i&&this.dismiss()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=m(d(this.root,this.for),this.popupElement,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const e=d(this.root,this.for);this.popupElement&&b(e,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[g(2),v(),E(),x(),k({element:this.arrowElement,padding:16})]}).then(({x:t,y:o,middlewareData:i,placement:n})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${o}px`});const s=n.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[s];if(i.arrow){const{x:p,y:l}=i.arrow;this.popupElement.setAttribute("data-placement",n),Object.assign(this.arrowElement.style,{left:p!=null?`${p}px`:"",top:l!=null?`${l}px`:"",right:"",bottom:"",[r]:`${-13/2}px`,transform:"rotate(45deg)"})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})})}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.togglePopover())}focusFirstItemInPopupList(){y(()=>{this.listElement.guxFocusFirstItem()})}onKeydown(e){switch(e.key){case"Enter":case" ":this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusFirstItemInPopupList();break}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}connectedCallback(){w(this.root,{variant:this.position}),this.listElement=this.root.querySelector("gux-list"),this.forElement=d(this.root,this.for),this.forElement.setAttribute("aria-haspopup","true");const e=this.onKeydown.bind(this);this.forElement.addEventListener("keydown",e);const t=this.onMouseup.bind(this);this.forElement.addEventListener("mouseup",t),this.disconnect=()=>{this.forElement.removeEventListener("keydown",e),this.forElement.removeEventListener("mouseup",t)}}componentDidLoad(){this.isOpen&&(this.popupElement.togglePopover(),this.runUpdatePosition())}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnect()}render(){return a("div",{key:"e637eb411cef322a9e0c94ca21896ff8018ca802",ref:e=>this.popupElement=e,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0,popover:"manual"},a("div",{key:"709fb045aa41fbc038d12d637700b8ff9f9aafb0",ref:e=>this.arrowElement=e,class:"gux-arrow"}),this.displayDismissButton&&a("gux-dismiss-button",{key:"dacf558946523086ba3ad4060897d47be8e5ba03",onClick:this.dismiss.bind(this)}),a("div",{key:"e9547a9915f690e1c604d107fe661beecd4bfed2",class:"gux-popover-content"},a("slot",{key:"3604d873f66e5da9d0eaddf61efbc7879423129c"})))}get root(){return f(this)}};U([P({triggerEvents:"mousedown"})],c.prototype,"checkForClickOutside",null);c.style=C;export{c as gux_popover_list_beta};
@@ -1 +1 @@
1
- import{r as u,c as h,h as p,g as f}from"./index-CWixJ8vL.js";import{a as m,c as g,o as b,f as v,s as x,b as k}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";import{O as w}from"./on-click-outside-6c2e399b-BC2t0a8o.js";import{t as O}from"./usage-36c49ec0-Dlq6IjQJ.js";import{f as c}from"./find-element-by-id-d0ce6208-DntMpzyb.js";const y=".gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}",E=y;var P=function(t,e,s,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,s):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(n<3?r(i):n>3?r(e,s,i):r(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};const l=class{constructor(t){u(this,t),this.guxdismiss=h(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(t){switch(t.key){case"Tab":case"Escape":this.dismiss();break}}checkForClickOutside(t){const e=t.composedPath(),s=c(this.root,this.for),o=e.includes(s);(this.closeOnClickOutside||!this.displayDismissButton)&&this.isOpen&&!o&&this.dismiss()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=m(c(this.root,this.for),this.popupElement,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=c(this.root,this.for);this.popupElement&&g(t,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[b(7),v(),x(),k({element:this.arrowElement,padding:16})]}).then(({x:e,y:s,middlewareData:o,placement:n})=>{Object.assign(this.popupElement.style,{left:`${e}px`,top:`${s}px`});const i=n.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[i];if(o.arrow){const{x:a,y:d}=o.arrow;this.popupElement.setAttribute("data-placement",n),Object.assign(this.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",right:"",bottom:"",[r]:`${-13/2}px`,transform:"rotate(45deg)"})}})}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){O(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return p("div",{key:"c94e3a9d29972dd7de07153cf21370bf7009adb0",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},p("div",{key:"f0d18e1a7f180e7776eafeba0ebc7c8acf038385",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&p("gux-dismiss-button",{key:"df6952abca5ca57368311073e26d65f186304c09",onClick:this.dismiss.bind(this)}),p("div",{key:"d530b83e81b9e62529ba2125f1d824a658f08778",class:"gux-popover-content"},p("slot",{key:"f8c9ced9b756e1d7c879a581792e33dc2f9e941f"})))}get root(){return f(this)}};P([w({triggerEvents:"mousedown"})],l.prototype,"checkForClickOutside",null);l.style=E;export{l as gux_popover_list};
1
+ import{r as u,c as h,h as p,g as f}from"./index-DnQlhAI3.js";import{a as m,c as g,o as b,f as v,s as x,b as k}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";import{O as w}from"./on-click-outside-6c2e399b-16SRQpNH.js";import{t as O}from"./usage-36c49ec0-Dlq6IjQJ.js";import{f as c}from"./find-element-by-id-d0ce6208-DntMpzyb.js";const y=".gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}",E=y;var P=function(t,e,s,o){var n=arguments.length,i=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,s):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(n<3?r(i):n>3?r(e,s,i):r(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};const l=class{constructor(t){u(this,t),this.guxdismiss=h(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(t){switch(t.key){case"Tab":case"Escape":this.dismiss();break}}checkForClickOutside(t){const e=t.composedPath(),s=c(this.root,this.for),o=e.includes(s);(this.closeOnClickOutside||!this.displayDismissButton)&&this.isOpen&&!o&&this.dismiss()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=m(c(this.root,this.for),this.popupElement,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=c(this.root,this.for);this.popupElement&&g(t,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[b(7),v(),x(),k({element:this.arrowElement,padding:16})]}).then(({x:e,y:s,middlewareData:o,placement:n})=>{Object.assign(this.popupElement.style,{left:`${e}px`,top:`${s}px`});const i=n.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[i];if(o.arrow){const{x:a,y:d}=o.arrow;this.popupElement.setAttribute("data-placement",n),Object.assign(this.arrowElement.style,{left:a!=null?`${a}px`:"",top:d!=null?`${d}px`:"",right:"",bottom:"",[r]:`${-13/2}px`,transform:"rotate(45deg)"})}})}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){O(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return p("div",{key:"c94e3a9d29972dd7de07153cf21370bf7009adb0",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},p("div",{key:"f0d18e1a7f180e7776eafeba0ebc7c8acf038385",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&p("gux-dismiss-button",{key:"df6952abca5ca57368311073e26d65f186304c09",onClick:this.dismiss.bind(this)}),p("div",{key:"d530b83e81b9e62529ba2125f1d824a658f08778",class:"gux-popover-content"},p("slot",{key:"f8c9ced9b756e1d7c879a581792e33dc2f9e941f"})))}get root(){return f(this)}};P([w({triggerEvents:"mousedown"})],l.prototype,"checkForClickOutside",null);l.style=E;export{l as gux_popover_list};
@@ -1 +1 @@
1
- import{r as p,c as a,h as n}from"./index-CWixJ8vL.js";import{a as d,c as r,o as l,f as c,d as h,s as u,h as f}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";const x=".gux-target-container.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}.gux-popup-container{position:fixed;z-index:var(--gse-semantic-zIndex-popup);visibility:hidden;inline-size:max-content;background-color:var(--gse-ui-menu-backgroundColor)}.gux-popup-container.gux-expanded{visibility:visible}.gux-sr-only-clip:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}",g=x,m=class{constructor(e){p(this,e),this.internalexpanded=a(this,"internalexpanded",7),this.internalcollapsed=a(this,"internalcollapsed",7),this.placement="bottom-start",this.expanded=!1,this.disabled=!1,this.offset=2,this.exceedTargetWidth=!1}runUpdatePosition(){this.cleanupUpdatePosition=d(this.targetElementContainer,this.popupElementContainer,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){if(this.targetElementContainer&&this.popupElementContainer){const e=this.exceedTargetWidth;r(this.targetElementContainer,this.popupElementContainer,{strategy:"fixed",placement:this.placement,middleware:[l(this.offset),c(),h({apply({rects:t,elements:i}){e?Object.assign(i.floating.style,{minWidth:`${t.reference.width}px`}):Object.assign(i.floating.style,{width:`${t.reference.width}px`,overflow:"hidden"})}}),u(),f()]}).then(({x:t,y:i,middlewareData:s})=>{const{referenceHidden:o}=s.hide;isNaN(t)||Object.assign(this.popupElementContainer.style,{left:`${t}px`}),isNaN(i)||Object.assign(this.popupElementContainer.style,{top:`${i}px`}),o?this.popupElementContainer.classList.add("gux-sr-only-clip"):this.popupElementContainer.classList.remove("gux-sr-only-clip")})}}onExpandedChange(e){e?this.internalexpanded.emit():this.internalcollapsed.emit()}componentDidLoad(){this.expanded?this.runUpdatePosition():this.updatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return n("div",{key:"8b457686247f595bc6fda8a16fa6878e1baf6d44",class:{"gux-target-container":!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString(),ref:e=>this.targetElementContainer=e},n("slot",{key:"415230f7029ab2ba2bc12ccc4fdca6bb6683fac1",name:"target"}),n("div",{key:"a9c084eed9bb2664f8e75ec4383e3437c2316ef7",class:{"gux-popup-container":!0,"gux-expanded":this.expanded&&!this.disabled},ref:e=>this.popupElementContainer=e},n("slot",{key:"84b4949477da973f148a47214fa0a64f0ca0c01a",name:"popup"})))}static get watchers(){return{expanded:["onExpandedChange"]}}};m.style=g;export{m as gux_popup};
1
+ import{r as p,c as a,h as n}from"./index-DnQlhAI3.js";import{a as d,c as r,o as l,f as c,d as h,s as u,h as f}from"./floating-ui.dom.esm-17bec7ce-CxvcWuX2.js";const x=".gux-target-container.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}.gux-popup-container{position:fixed;z-index:var(--gse-semantic-zIndex-popup);visibility:hidden;inline-size:max-content;background-color:var(--gse-ui-menu-backgroundColor)}.gux-popup-container.gux-expanded{visibility:visible}.gux-sr-only-clip:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}",g=x,m=class{constructor(e){p(this,e),this.internalexpanded=a(this,"internalexpanded",7),this.internalcollapsed=a(this,"internalcollapsed",7),this.placement="bottom-start",this.expanded=!1,this.disabled=!1,this.offset=2,this.exceedTargetWidth=!1}runUpdatePosition(){this.cleanupUpdatePosition=d(this.targetElementContainer,this.popupElementContainer,()=>this.updatePosition(),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){if(this.targetElementContainer&&this.popupElementContainer){const e=this.exceedTargetWidth;r(this.targetElementContainer,this.popupElementContainer,{strategy:"fixed",placement:this.placement,middleware:[l(this.offset),c(),h({apply({rects:t,elements:i}){e?Object.assign(i.floating.style,{minWidth:`${t.reference.width}px`}):Object.assign(i.floating.style,{width:`${t.reference.width}px`,overflow:"hidden"})}}),u(),f()]}).then(({x:t,y:i,middlewareData:s})=>{const{referenceHidden:o}=s.hide;isNaN(t)||Object.assign(this.popupElementContainer.style,{left:`${t}px`}),isNaN(i)||Object.assign(this.popupElementContainer.style,{top:`${i}px`}),o?this.popupElementContainer.classList.add("gux-sr-only-clip"):this.popupElementContainer.classList.remove("gux-sr-only-clip")})}}onExpandedChange(e){e?this.internalexpanded.emit():this.internalcollapsed.emit()}componentDidLoad(){this.expanded?this.runUpdatePosition():this.updatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return n("div",{key:"8b457686247f595bc6fda8a16fa6878e1baf6d44",class:{"gux-target-container":!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString(),ref:e=>this.targetElementContainer=e},n("slot",{key:"415230f7029ab2ba2bc12ccc4fdca6bb6683fac1",name:"target"}),n("div",{key:"a9c084eed9bb2664f8e75ec4383e3437c2316ef7",class:{"gux-popup-container":!0,"gux-expanded":this.expanded&&!this.disabled},ref:e=>this.popupElementContainer=e},n("slot",{key:"84b4949477da973f148a47214fa0a64f0ca0c01a",name:"popup"})))}static get watchers(){return{expanded:["onExpandedChange"]}}};m.style=g;export{m as gux_popup};
@@ -1 +1 @@
1
- import{r as i,h as r,g as d}from"./index-CWixJ8vL.js";import{b as g}from"./index-4f1356d9-DSfDpFAA.js";import{t as l}from"./usage-36c49ec0-Dlq6IjQJ.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const t=48,c=4,o=16,m=2,u=({context:a="modal",screenreaderText:n})=>{let s=t,e=t*.5-c*.5;return a==="input"&&(s=o,e=o*.5-m*.5),r("div",{class:`gux-${a}`,role:"progressbar","aria-label":n},r("svg",{class:"gux-svg-container",viewBox:`0 0 ${s} ${s}`,role:"presentation"},r("circle",{cx:"50%",cy:"50%",r:e,class:"gux-static-circle"}),r("circle",{cx:"50%",cy:"50%",r:e,class:"gux-dynamic-circle","stroke-linecap":"round"}),r("circle",{cx:"50%",cy:"50%",r:e,class:"gux-dynamic-circle-mask","stroke-linecap":"round"})))},k="Loading",p={loading:k},y="@keyframes largeSpin{0%{stroke-dasharray:1 68.115038379;transform:rotate(0deg)}7.5%{stroke-dasharray:1 68.115038379;transform:rotate(0deg)}20%{stroke-dasharray:1 68.115038379;transform:rotate(90deg)}30%{stroke-dasharray:34.5575191895;transform:rotate(180deg)}40%{stroke-dasharray:34.5575191895}50%{stroke-dasharray:1 68.115038379;transform:rotate(450deg)}57.5%{stroke-dasharray:1 68.115038379;transform:rotate(450deg)}70%{stroke-dasharray:34.5575191895;transform:rotate(540deg)}80%{stroke-dasharray:34.5575191895;transform:rotate(630deg)}90%{stroke-dasharray:34.5575191895}100%{stroke-dasharray:1 68.115038379;transform:rotate(900deg)}}@keyframes smallSpin{0%{stroke-dasharray:1 20.9911485751;transform:rotate(0deg)}7.5%{stroke-dasharray:1 20.9911485751;transform:rotate(0deg)}20%{stroke-dasharray:1 20.9911485751;transform:rotate(90deg)}30%{stroke-dasharray:10.9955742876;transform:rotate(180deg)}40%{stroke-dasharray:10.9955742876}50%{stroke-dasharray:1 20.9911485751;transform:rotate(450deg)}57.5%{stroke-dasharray:1 20.9911485751;transform:rotate(450deg)}70%{stroke-dasharray:10.9955742876;transform:rotate(540deg)}80%{stroke-dasharray:10.9955742876;transform:rotate(630deg)}90%{stroke-dasharray:10.9955742876}100%{stroke-dasharray:1 20.9911485751;transform:rotate(900deg)}}@keyframes largeThinSpin{0%{stroke-dasharray:1 71.2566310326;transform:rotate(0deg)}7.5%{stroke-dasharray:1 71.2566310326;transform:rotate(0deg)}20%{stroke-dasharray:1 71.2566310326;transform:rotate(90deg)}30%{stroke-dasharray:36.1283155163;transform:rotate(180deg)}40%{stroke-dasharray:36.1283155163}50%{stroke-dasharray:1 71.2566310326;transform:rotate(450deg)}57.5%{stroke-dasharray:1 71.2566310326;transform:rotate(450deg)}70%{stroke-dasharray:36.1283155163;transform:rotate(540deg)}80%{stroke-dasharray:36.1283155163;transform:rotate(630deg)}90%{stroke-dasharray:36.1283155163}100%{stroke-dasharray:1 71.2566310326;transform:rotate(900deg)}}:host{display:inline-block}div[role=progressbar] .gux-svg-container{display:block;inline-size:var(--gse-ui-progressAndLoading-spinner-large);block-size:var(--gse-ui-progressAndLoading-spinner-large)}div[role=progressbar] .gux-svg-container .gux-dynamic-circle,div[role=progressbar] .gux-svg-container .gux-dynamic-circle-mask{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:4;transform-origin:50% 50%;animation-name:largeSpin;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite, infinite}div[role=progressbar] .gux-svg-container .gux-dynamic-circle-mask{display:none;stroke:var(--gse-semantic-background-container-page-default);stroke-width:2}div[role=progressbar] .gux-svg-container .gux-static-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:4}div[role=progressbar].gux-full-page .gux-svg-container .gux-dynamic-circle-mask{display:initial}div[role=progressbar].gux-full-page .gux-svg-container .gux-static-circle{display:none}div[role=progressbar].gux-input .gux-svg-container{inline-size:var(--gse-ui-progressAndLoading-spinner-small);block-size:var(--gse-ui-progressAndLoading-spinner-small)}div[role=progressbar].gux-input .gux-svg-container .gux-dynamic-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:2;transform-origin:50% 50%;animation-name:smallSpin;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite, infinite}div[role=progressbar].gux-input .gux-svg-container .gux-static-circle{stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:2}",f=y,h=class{constructor(a){i(this,a),this.context="modal",this.screenreaderText=""}async componentWillLoad(){l(this.root,{variant:this.context}),this.getI18nValue=await g(this.root,p)}render(){return r(u,{key:"6fd3f8e5101d5accb9be4e26e13118764a49831c",context:this.context,screenreaderText:this.screenreaderText||this.getI18nValue("loading")})}get root(){return d(this)}};h.style=f;export{h as gux_radial_loading};
1
+ import{r as i,h as r,g as d}from"./index-DnQlhAI3.js";import{b as g}from"./index-4f1356d9-D95neeh-.js";import{t as l}from"./usage-36c49ec0-Dlq6IjQJ.js";import"./get-closest-element-728b9f18-C_5KDHD-.js";const t=48,c=4,o=16,m=2,u=({context:a="modal",screenreaderText:n})=>{let s=t,e=t*.5-c*.5;return a==="input"&&(s=o,e=o*.5-m*.5),r("div",{class:`gux-${a}`,role:"progressbar","aria-label":n},r("svg",{class:"gux-svg-container",viewBox:`0 0 ${s} ${s}`,role:"presentation"},r("circle",{cx:"50%",cy:"50%",r:e,class:"gux-static-circle"}),r("circle",{cx:"50%",cy:"50%",r:e,class:"gux-dynamic-circle","stroke-linecap":"round"}),r("circle",{cx:"50%",cy:"50%",r:e,class:"gux-dynamic-circle-mask","stroke-linecap":"round"})))},k="Loading",p={loading:k},y="@keyframes largeSpin{0%{stroke-dasharray:1 68.115038379;transform:rotate(0deg)}7.5%{stroke-dasharray:1 68.115038379;transform:rotate(0deg)}20%{stroke-dasharray:1 68.115038379;transform:rotate(90deg)}30%{stroke-dasharray:34.5575191895;transform:rotate(180deg)}40%{stroke-dasharray:34.5575191895}50%{stroke-dasharray:1 68.115038379;transform:rotate(450deg)}57.5%{stroke-dasharray:1 68.115038379;transform:rotate(450deg)}70%{stroke-dasharray:34.5575191895;transform:rotate(540deg)}80%{stroke-dasharray:34.5575191895;transform:rotate(630deg)}90%{stroke-dasharray:34.5575191895}100%{stroke-dasharray:1 68.115038379;transform:rotate(900deg)}}@keyframes smallSpin{0%{stroke-dasharray:1 20.9911485751;transform:rotate(0deg)}7.5%{stroke-dasharray:1 20.9911485751;transform:rotate(0deg)}20%{stroke-dasharray:1 20.9911485751;transform:rotate(90deg)}30%{stroke-dasharray:10.9955742876;transform:rotate(180deg)}40%{stroke-dasharray:10.9955742876}50%{stroke-dasharray:1 20.9911485751;transform:rotate(450deg)}57.5%{stroke-dasharray:1 20.9911485751;transform:rotate(450deg)}70%{stroke-dasharray:10.9955742876;transform:rotate(540deg)}80%{stroke-dasharray:10.9955742876;transform:rotate(630deg)}90%{stroke-dasharray:10.9955742876}100%{stroke-dasharray:1 20.9911485751;transform:rotate(900deg)}}@keyframes largeThinSpin{0%{stroke-dasharray:1 71.2566310326;transform:rotate(0deg)}7.5%{stroke-dasharray:1 71.2566310326;transform:rotate(0deg)}20%{stroke-dasharray:1 71.2566310326;transform:rotate(90deg)}30%{stroke-dasharray:36.1283155163;transform:rotate(180deg)}40%{stroke-dasharray:36.1283155163}50%{stroke-dasharray:1 71.2566310326;transform:rotate(450deg)}57.5%{stroke-dasharray:1 71.2566310326;transform:rotate(450deg)}70%{stroke-dasharray:36.1283155163;transform:rotate(540deg)}80%{stroke-dasharray:36.1283155163;transform:rotate(630deg)}90%{stroke-dasharray:36.1283155163}100%{stroke-dasharray:1 71.2566310326;transform:rotate(900deg)}}:host{display:inline-block}div[role=progressbar] .gux-svg-container{display:block;inline-size:var(--gse-ui-progressAndLoading-spinner-large);block-size:var(--gse-ui-progressAndLoading-spinner-large)}div[role=progressbar] .gux-svg-container .gux-dynamic-circle,div[role=progressbar] .gux-svg-container .gux-dynamic-circle-mask{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:4;transform-origin:50% 50%;animation-name:largeSpin;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite, infinite}div[role=progressbar] .gux-svg-container .gux-dynamic-circle-mask{display:none;stroke:var(--gse-semantic-background-container-page-default);stroke-width:2}div[role=progressbar] .gux-svg-container .gux-static-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:4}div[role=progressbar].gux-full-page .gux-svg-container .gux-dynamic-circle-mask{display:initial}div[role=progressbar].gux-full-page .gux-svg-container .gux-static-circle{display:none}div[role=progressbar].gux-input .gux-svg-container{inline-size:var(--gse-ui-progressAndLoading-spinner-small);block-size:var(--gse-ui-progressAndLoading-spinner-small)}div[role=progressbar].gux-input .gux-svg-container .gux-dynamic-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:2;transform-origin:50% 50%;animation-name:smallSpin;animation-duration:2s;animation-timing-function:linear;animation-iteration-count:infinite, infinite}div[role=progressbar].gux-input .gux-svg-container .gux-static-circle{stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:2}",f=y,h=class{constructor(a){i(this,a),this.context="modal",this.screenreaderText=""}async componentWillLoad(){l(this.root,{variant:this.context}),this.getI18nValue=await g(this.root,p)}render(){return r(u,{key:"6fd3f8e5101d5accb9be4e26e13118764a49831c",context:this.context,screenreaderText:this.screenreaderText||this.getI18nValue("loading")})}get root(){return d(this)}};h.style=f;export{h as gux_radial_loading};
@@ -1 +1 @@
1
- import{r as g,h as s,g as c}from"./index-CWixJ8vL.js";import{t as d}from"./usage-36c49ec0-Dlq6IjQJ.js";import{a as l}from"./log-error-274efeb7-BpRSdGLj.js";const t=48,u=4,n=t*.5-u*.5,o=2*Math.PI*n;function i(e,r){return!(isNaN(e)||isNaN(r)||e>r||e<0||r===0)}function x(e,r){return`${Math.round((e+Number.EPSILON)/r*100)}%`}const p=({value:e,max:r,screenreaderText:a})=>s("div",{role:"progressbar","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":r,"aria-label":a},s("svg",{class:"gux-svg-container",viewBox:`0 0 ${t} ${t}`,role:"presentation"},s("circle",{cx:"50%",cy:"50%",r:n,class:"gux-static-circle"}),s("circle",{cx:"50%",cy:"50%",r:n,class:"gux-dynamic-circle","stroke-dashoffset":o*(1-e/r),"stroke-dasharray":o,"stroke-linecap":"round"}),s("text",{x:"50%",y:"50%","dominant-baseline":"central",class:"gux-percentage"},x(e,r)))),h=({screenreaderText:e})=>s("gux-radial-loading",{"screenreader-text":e,context:"modal"}),v=":host{display:inline-block}div[role=progressbar] .gux-svg-container{display:block;inline-size:var(--gse-ui-progressAndLoading-spinner-large);block-size:var(--gse-ui-progressAndLoading-spinner-large)}div[role=progressbar] .gux-svg-container .gux-dynamic-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}div[role=progressbar] .gux-svg-container .gux-static-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:4}div[role=progressbar] .gux-svg-container .gux-percentage{font-family:var(--gse-ui-progressAndLoading-spinner-text-fontFamily);font-size:var(--gse-ui-progressAndLoading-spinner-text-fontSize);font-weight:var(--gse-ui-progressAndLoading-spinner-text-fontWeight);line-height:var(--gse-ui-progressAndLoading-spinner-text-lineHeight);text-anchor:middle;fill:var(--gse-ui-progressAndLoading-textColor)}",m=v,f=class{constructor(e){g(this,e),this.max=100,this.screenreaderText=""}componentWillLoad(){d(this.root)}componentDidLoad(){!this.screenreaderText&&i(this.value,this.max)&&l(this.root,"No screenreader-text provided. Provide a localized screenreader-text property for the component.")}render(){return i(this.value,this.max)?s(p,{value:this.value,max:this.max,screenreaderText:this.screenreaderText}):s(h,{screenreaderText:this.screenreaderText})}get root(){return c(this)}};f.style=m;export{f as gux_radial_progress};
1
+ import{r as g,h as s,g as c}from"./index-DnQlhAI3.js";import{t as d}from"./usage-36c49ec0-Dlq6IjQJ.js";import{a as l}from"./log-error-274efeb7-BpRSdGLj.js";const t=48,u=4,n=t*.5-u*.5,o=2*Math.PI*n;function i(e,r){return!(isNaN(e)||isNaN(r)||e>r||e<0||r===0)}function x(e,r){return`${Math.round((e+Number.EPSILON)/r*100)}%`}const p=({value:e,max:r,screenreaderText:a})=>s("div",{role:"progressbar","aria-valuenow":e,"aria-valuemin":"0","aria-valuemax":r,"aria-label":a},s("svg",{class:"gux-svg-container",viewBox:`0 0 ${t} ${t}`,role:"presentation"},s("circle",{cx:"50%",cy:"50%",r:n,class:"gux-static-circle"}),s("circle",{cx:"50%",cy:"50%",r:n,class:"gux-dynamic-circle","stroke-dashoffset":o*(1-e/r),"stroke-dasharray":o,"stroke-linecap":"round"}),s("text",{x:"50%",y:"50%","dominant-baseline":"central",class:"gux-percentage"},x(e,r)))),h=({screenreaderText:e})=>s("gux-radial-loading",{"screenreader-text":e,context:"modal"}),v=":host{display:inline-block}div[role=progressbar] .gux-svg-container{display:block;inline-size:var(--gse-ui-progressAndLoading-spinner-large);block-size:var(--gse-ui-progressAndLoading-spinner-large)}div[role=progressbar] .gux-svg-container .gux-dynamic-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}div[role=progressbar] .gux-svg-container .gux-static-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:4}div[role=progressbar] .gux-svg-container .gux-percentage{font-family:var(--gse-ui-progressAndLoading-spinner-text-fontFamily);font-size:var(--gse-ui-progressAndLoading-spinner-text-fontSize);font-weight:var(--gse-ui-progressAndLoading-spinner-text-fontWeight);line-height:var(--gse-ui-progressAndLoading-spinner-text-lineHeight);text-anchor:middle;fill:var(--gse-ui-progressAndLoading-textColor)}",m=v,f=class{constructor(e){g(this,e),this.max=100,this.screenreaderText=""}componentWillLoad(){d(this.root)}componentDidLoad(){!this.screenreaderText&&i(this.value,this.max)&&l(this.root,"No screenreader-text provided. Provide a localized screenreader-text property for the component.")}render(){return i(this.value,this.max)?s(p,{value:this.value,max:this.max,screenreaderText:this.screenreaderText}):s(h,{screenreaderText:this.screenreaderText})}get root(){return c(this)}};f.style=m;export{f as gux_radial_progress};
@@ -1 +1 @@
1
- import{r as l,h as s,H as u,g as c}from"./index-CWixJ8vL.js";import{s as n}from"./simulate-native-event-e0631897-BcLDngo1.js";import{c as d}from"./clamp-1fc36648-DnrAwabn.js";import{t as g}from"./usage-36c49ec0-Dlq6IjQJ.js";import{a as h}from"./log-error-274efeb7-BpRSdGLj.js";const f=":host{display:inline-block;min-inline-size:fit-content;user-select:none}:host(:host:focus-visible){outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);box-shadow:0 0 0 1px var(--gse-semantic-border-focus)}.gux-rating-star-container{display:flex;gap:var(--gse-ui-rating-star-gap);justify-content:space-between;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container.gux-disabled{color:var(--gse-ui-rating-disabled-color);pointer-events:none;opacity:var(--gse-ui-rating-disabled-opacity)}.gux-rating-star-container gux-icon{flex:0 0 auto;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container gux-icon:hover:not(.gux-disabled){color:var(--gse-ui-rating-hover-color)}",m=f,p=class{constructor(t){l(this,t),this.value=0,this.maxValue=5,this.disabled=!1,this.readonly=!1,this.increment="default"}onClick(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const[e]=t.composedPath(),i=e.getRootNode(),a=Array.from(this.starContainer.children).findIndex(o=>o.shadowRoot===i)+1;a===this.value+.5?this.updateRatingValue(a):a===this.value?this.updateRatingValue(0):a!==Math.floor(this.value)?this.increment==="half"?this.updateRatingValue(a-.5):this.updateRatingValue(a):this.updateRatingValue(a)}onKeyDown(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const e=this.increment==="half"?.5:1;switch(t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.updateRatingValue(this.value+e);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.updateRatingValue(this.value-e);break;case"End":t.preventDefault(),this.updateRatingValue(1/0);break;case"Home":t.preventDefault(),this.updateRatingValue(-1/0);break}}updateRatingValue(t){const e=d(t,0,Array.from(this.starContainer.children).length),i=this.increment==="half"?.5:1,r=Math.round(e/i)*i;this.value!==r&&(this.value=r,n(this.root,"input"),n(this.root,"change"))}getRatingStarElements(){return[...Array(this.maxValue).keys()].reduce((t,e)=>e+.5===this.value?t.concat("fa/star-sharp-half-stroke-regular"):e+1<=this.value?t.concat("fa/star-solid"):t.concat("fa/star-regular"),[]).map(t=>s("gux-icon",{"icon-name":t,decorative:!0,size:"small"}))}getTabIndex(){return this.disabled?-1:0}componentWillLoad(){g(this.root)}componentDidLoad(){this.root.getAttribute("aria-label")||this.root.getAttribute("aria-labelledby")||h(this.root,"`gux-rating` requires a label. Either provide a label and associate it with the gux-rating element using `aria-labelledby` or add an `aria-label` attribute to the gux-rating element.")}render(){return s(u,{key:"ff9593ff50916c8eb9bd5a749712d2c232b66ac1",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},s("div",{key:"e73bb89716b389959d264e7344d55aa543cb9018",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled}},this.getRatingStarElements()))}get root(){return c(this)}};p.style=m;export{p as gux_rating};
1
+ import{r as l,h as s,H as u,g as c}from"./index-DnQlhAI3.js";import{s as n}from"./simulate-native-event-e0631897-BcLDngo1.js";import{c as d}from"./clamp-1fc36648-DnrAwabn.js";import{t as g}from"./usage-36c49ec0-Dlq6IjQJ.js";import{a as h}from"./log-error-274efeb7-BpRSdGLj.js";const f=":host{display:inline-block;min-inline-size:fit-content;user-select:none}:host(:host:focus-visible){outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset);box-shadow:0 0 0 1px var(--gse-semantic-border-focus)}.gux-rating-star-container{display:flex;gap:var(--gse-ui-rating-star-gap);justify-content:space-between;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container.gux-disabled{color:var(--gse-ui-rating-disabled-color);pointer-events:none;opacity:var(--gse-ui-rating-disabled-opacity)}.gux-rating-star-container gux-icon{flex:0 0 auto;color:var(--gse-ui-rating-default-color)}.gux-rating-star-container gux-icon:hover:not(.gux-disabled){color:var(--gse-ui-rating-hover-color)}",m=f,p=class{constructor(t){l(this,t),this.value=0,this.maxValue=5,this.disabled=!1,this.readonly=!1,this.increment="default"}onClick(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const[e]=t.composedPath(),i=e.getRootNode(),a=Array.from(this.starContainer.children).findIndex(o=>o.shadowRoot===i)+1;a===this.value+.5?this.updateRatingValue(a):a===this.value?this.updateRatingValue(0):a!==Math.floor(this.value)?this.increment==="half"?this.updateRatingValue(a-.5):this.updateRatingValue(a):this.updateRatingValue(a)}onKeyDown(t){if(t.stopPropagation(),this.disabled||this.readonly)return;const e=this.increment==="half"?.5:1;switch(t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.updateRatingValue(this.value+e);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.updateRatingValue(this.value-e);break;case"End":t.preventDefault(),this.updateRatingValue(1/0);break;case"Home":t.preventDefault(),this.updateRatingValue(-1/0);break}}updateRatingValue(t){const e=d(t,0,Array.from(this.starContainer.children).length),i=this.increment==="half"?.5:1,r=Math.round(e/i)*i;this.value!==r&&(this.value=r,n(this.root,"input"),n(this.root,"change"))}getRatingStarElements(){return[...Array(this.maxValue).keys()].reduce((t,e)=>e+.5===this.value?t.concat("fa/star-sharp-half-stroke-regular"):e+1<=this.value?t.concat("fa/star-solid"):t.concat("fa/star-regular"),[]).map(t=>s("gux-icon",{"icon-name":t,decorative:!0,size:"small"}))}getTabIndex(){return this.disabled?-1:0}componentWillLoad(){g(this.root)}componentDidLoad(){this.root.getAttribute("aria-label")||this.root.getAttribute("aria-labelledby")||h(this.root,"`gux-rating` requires a label. Either provide a label and associate it with the gux-rating element using `aria-labelledby` or add an `aria-label` attribute to the gux-rating element.")}render(){return s(u,{key:"ff9593ff50916c8eb9bd5a749712d2c232b66ac1",role:"spinbutton",tabindex:this.getTabIndex(),"aria-readonly":this.readonly.toString(),"aria-valuenow":this.value,"aria-valuemin":"0","aria-valuemax":this.maxValue},s("div",{key:"e73bb89716b389959d264e7344d55aa543cb9018",ref:t=>this.starContainer=t,class:{"gux-rating-star-container":!0,"gux-disabled":this.disabled}},this.getRatingStarElements()))}get root(){return c(this)}};p.style=m;export{p as gux_rating};