genesys-cloud-client-auth 1.0.0-develop.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -459
- package/dist/assets/_commonjsHelpers-c9e3b764-Cg_zQLRJ.js +1 -0
- package/dist/assets/after-next-render-07a41f53-C_KTwidI.js +1 -0
- package/dist/assets/browser-ponyfill-BV2ki90r.js +2 -0
- package/dist/assets/capitalize-first-letter-404638dd-DDlMtXXu.js +1 -0
- package/dist/assets/clamp-1fc36648-DnrAwabn.js +1 -0
- package/dist/assets/en-1f9d79e6-D5hlE5o5.js +1 -0
- package/dist/assets/en-25a315a0-C7J6_avI.js +1 -0
- package/dist/assets/en-abdadc27-BNKVS-iZ.js +1 -0
- package/dist/assets/en-bf740e9b-BzgaeZ-2.js +1 -0
- package/dist/assets/event-is-from-60a4bc72-BUOfvQpd.js +1 -0
- package/dist/assets/find-element-by-id-d0ce6208-DntMpzyb.js +1 -0
- package/dist/assets/floating-ui.dom.esm-17bec7ce-CxvcWuX2.js +1 -0
- package/dist/assets/focus-input-element-8a137b12-hXwZ4F3C.js +1 -0
- package/dist/assets/get-closest-element-728b9f18-C_5KDHD-.js +1 -0
- package/dist/assets/get-closest-element-7b2f7d5b-kuMVup89.js +1 -0
- package/dist/assets/get-slot-41f866aa-DJNt4BpD.js +1 -0
- package/dist/assets/get-slot-text-content-95a85429-DTSoMW52.js +1 -0
- package/dist/assets/get-valid-timezone-3bde2dae-BFRWJz7Q.js +1 -0
- package/dist/assets/gux-accordion-section.entry-jbdbmuX_.js +1 -0
- package/dist/assets/gux-accordion.entry-ClKYUH6r.js +1 -0
- package/dist/assets/gux-action-button.entry-Co04Z0OV.js +1 -0
- package/dist/assets/gux-action-toast-legacy.entry-BZZz3CuU.js +1 -0
- package/dist/assets/gux-advanced-dropdown-legacy.entry-Cw6SQUDA.js +1 -0
- package/dist/assets/gux-all-row-select.entry-Ce72rVHx.js +1 -0
- package/dist/assets/gux-announce-beta.entry-0-IPzB8z.js +1 -0
- package/dist/assets/gux-avatar-beta.entry-D7eNcgqk.js +1 -0
- package/dist/assets/gux-avatar-change-photo-beta.entry-CdbjnSh2.js +1 -0
- package/dist/assets/gux-avatar-focusable-beta.entry-C-N-FSgY.js +1 -0
- package/dist/assets/gux-avatar-group-add-item-beta_3.entry-DovXgXMY.js +1 -0
- package/dist/assets/gux-avatar-group-beta.entry-C-IcLXpk.js +1 -0
- package/dist/assets/gux-avatar-group-item-beta.entry-CaxTOEY_.js +1 -0
- package/dist/assets/gux-avatar-group.service-0e62fde4-Bkuc2736.js +1 -0
- package/dist/assets/gux-avatar.service-43c1b4e1-EzKA_VVN.js +1 -0
- package/dist/assets/gux-badge.entry-Cn9m8u98.js +1 -0
- package/dist/assets/gux-blank-state.entry-BpvRIMLX.js +65 -0
- package/dist/assets/gux-breadcrumb-item.entry-Ca_9aDAs.js +1 -0
- package/dist/assets/gux-breadcrumbs.entry-C_roghwh.js +1 -0
- package/dist/assets/gux-button-multi.entry-CBr3g1_V.js +1 -0
- package/dist/assets/gux-button-slot.entry-WiCUBCa6.js +1 -0
- package/dist/assets/gux-button_2.entry-C9uy7zui.js +1 -0
- package/dist/assets/gux-calendar-beta.entry-Bqerz9AU.js +4 -0
- package/dist/assets/gux-calendar.entry-B62CdDSA.js +1 -0
- package/dist/assets/gux-card.entry-L6pDaqgo.js +1 -0
- package/dist/assets/gux-column-manager-item.entry-gcrXPu9C.js +1 -0
- package/dist/assets/gux-column-manager.entry-BWdhUqSz.js +1 -0
- package/dist/assets/gux-column-manager.service-90a02975-GGjVHfbH.js +1 -0
- package/dist/assets/gux-content-search.entry-Bk320YeT.js +1 -0
- package/dist/assets/gux-context-menu.entry-sV-Bg8Mm.js +1 -0
- package/dist/assets/gux-copy-to-clipboard.entry-D4z3pxQw.js +1 -0
- package/dist/assets/gux-create-option.entry-B_Vv8g0K.js +1 -0
- package/dist/assets/gux-cta-group.entry-BrnioXQs.js +1 -0
- package/dist/assets/gux-date-beta.entry-lwFmRCvN.js +1 -0
- package/dist/assets/gux-date-time-beta.entry-HNedVv5e.js +1 -0
- package/dist/assets/gux-datepicker.entry-Cr-qDrmu.js +1 -0
- package/dist/assets/gux-day-beta.entry-CW80EHbX.js +1 -0
- package/dist/assets/gux-disclosure-button-legacy.entry-G2Tlcri7.js +1 -0
- package/dist/assets/gux-dismiss-button.entry-DchQFWKl.js +1 -0
- package/dist/assets/gux-dropdown-multi-tag.entry-Cc9VNZOZ.js +1 -0
- package/dist/assets/gux-dropdown-multi.entry-DjZKxJal.js +1 -0
- package/dist/assets/gux-dropdown-option.entry-CZDjtkrF.js +1 -0
- package/dist/assets/gux-dropdown_3.entry-CKiZXOT7.js +1 -0
- package/dist/assets/gux-file-list-item.entry-Dp9PwoBM.js +5 -0
- package/dist/assets/gux-flag-icon-beta.entry-BTUoPqVd.js +1 -0
- package/dist/assets/gux-flyout-menu.entry-DqSGjmSN.js +1 -0
- package/dist/assets/gux-form-beta.entry-C990wv4b.js +1 -0
- package/dist/assets/gux-form-description.entry-SptrEE0d.js +1 -0
- package/dist/assets/gux-form-field-checkbox-group-beta.entry-CCZf0hdH.js +1 -0
- package/dist/assets/gux-form-field-checkbox.entry-DFJSjM7x.js +1 -0
- package/dist/assets/gux-form-field-color.entry-dM32AJCZ.js +1 -0
- package/dist/assets/gux-form-field-container-3dd7c6ff-CbHwJYu_.js +1 -0
- package/dist/assets/gux-form-field-dropdown.entry-qCBeETvx.js +1 -0
- package/dist/assets/gux-form-field-error-acb40a19-CkSp2BAb.js +1 -0
- package/dist/assets/gux-form-field-fieldset-container-6cb3610f-BUiTa12q.js +1 -0
- package/dist/assets/gux-form-field-file-beta.entry-DcnNIHKz.js +1 -0
- package/dist/assets/gux-form-field-file.entry-Dk7BocgF.js +1 -0
- package/dist/assets/gux-form-field-input-clear-button.entry-Dp1QY-09.js +1 -0
- package/dist/assets/gux-form-field-label-indicator.entry-bUtvVW_r.js +1 -0
- package/dist/assets/gux-form-field-number_2.entry-DaVKhHUj.js +1 -0
- package/dist/assets/gux-form-field-phone.entry-DXsintqd.js +1 -0
- package/dist/assets/gux-form-field-radio-group-beta.entry-PbhhpeBG.js +1 -0
- package/dist/assets/gux-form-field-radio.entry-n3Vla1Pu.js +1 -0
- package/dist/assets/gux-form-field-range.entry-C-pjfWNA.js +1 -0
- package/dist/assets/gux-form-field-search.entry-C-bK5ayb.js +1 -0
- package/dist/assets/gux-form-field-select.entry-DQdel3gO.js +1 -0
- package/dist/assets/gux-form-field-text-like.entry-CBFPlQHU.js +1 -0
- package/dist/assets/gux-form-field-textarea.entry-COFKxheF.js +1 -0
- package/dist/assets/gux-form-field-time-picker.entry-CaDEWBkZ.js +1 -0
- package/dist/assets/gux-form-field-time-zone-picker.entry-rl7fBaGA.js +1 -0
- package/dist/assets/gux-form-field.service-173b5dfc-D3T_t5F5.js +1 -0
- package/dist/assets/gux-form-fieldset-heading.entry-Cm0x7EQq.js +1 -0
- package/dist/assets/gux-form-footer.entry-DbhwkP6b.js +1 -0
- package/dist/assets/gux-form-heading.entry-DoUhRicG.js +1 -0
- package/dist/assets/gux-icon-tooltip-beta.entry-DNtzdBoU.js +1 -0
- package/dist/assets/gux-icon.entry-B97smlnI.js +1 -0
- package/dist/assets/gux-inline-alert.entry-DJZxwXFy.js +1 -0
- package/dist/assets/gux-label-info-beta.entry-Bi2PlCDo.js +1 -0
- package/dist/assets/gux-link-beta.entry-BI2qsXNR.js +1 -0
- package/dist/assets/gux-list-divider.entry-BHrFeHB6.js +1 -0
- package/dist/assets/gux-list-item.entry-DRUfS0q6.js +1 -0
- package/dist/assets/gux-list.entry-D9KN4yJ5.js +1 -0
- package/dist/assets/gux-list.service-5da368db-BTJJSzQi.js +1 -0
- package/dist/assets/gux-listbox-multi.entry-6t0q-9T1.js +1 -0
- package/dist/assets/gux-listbox.service-1b2f1a6e-CG-s36UI.js +1 -0
- package/dist/assets/gux-loading-message.entry-D1ze4_H5.js +66 -0
- package/dist/assets/gux-menu-option.entry-BxQFHxSk.js +1 -0
- package/dist/assets/gux-menu.common-b2a4d472-CSLYc6Td.js +1 -0
- package/dist/assets/gux-menu.entry-B-osnTh0.js +1 -0
- package/dist/assets/gux-modal-legacy.entry-DstohKCK.js +1 -0
- package/dist/assets/gux-modal-side-panel-beta.entry-C9FvyVTE.js +1 -0
- package/dist/assets/gux-modal.entry-srOdsW8Q.js +1 -0
- package/dist/assets/gux-month-calendar.entry-BeuXd1Lv.js +1 -0
- package/dist/assets/gux-month-list_2.entry-CYygxLTh.js +1 -0
- package/dist/assets/gux-month-picker-beta.entry-DOJMMNNx.js +1 -0
- package/dist/assets/gux-notification-toast-legacy.entry-dxK7iMAC.js +1 -0
- package/dist/assets/gux-option-group-beta.entry-BUy0S9Yx.js +1 -0
- package/dist/assets/gux-option-icon.entry-Bn-fNLNn.js +1 -0
- package/dist/assets/gux-option-multi.entry-Bu-QHc6m.js +1 -0
- package/dist/assets/gux-page-loading-spinner.entry-DMtT-DYz.js +1 -0
- package/dist/assets/gux-pagination-buttons-legacy_3.entry-CuYkOJdn.js +1 -0
- package/dist/assets/gux-pagination-buttons_2.entry-DmbE78vc.js +1 -0
- package/dist/assets/gux-pagination-cursor.entry-BTAFd0O2.js +1 -0
- package/dist/assets/gux-pagination-items-per-page.entry-DvwN5uz6.js +1 -0
- package/dist/assets/gux-pagination-legacy.entry-CBCQXwVe.js +1 -0
- package/dist/assets/gux-pagination.entry-IX-ErtEu.js +1 -0
- package/dist/assets/gux-phone-input-beta.entry-CjYWM42M.js +7 -0
- package/dist/assets/gux-popover-beta.entry-DAvQpLoO.js +1 -0
- package/dist/assets/gux-popover-list-beta.entry-D4i4pSCR.js +1 -0
- package/dist/assets/gux-popover-list.entry-B6Kj5sN5.js +1 -0
- package/dist/assets/gux-popup.entry-BHYs6DQm.js +1 -0
- package/dist/assets/gux-radial-loading.entry-CG8hkP1l.js +1 -0
- package/dist/assets/gux-radial-progress.entry-Bne8tE1g.js +1 -0
- package/dist/assets/gux-rating.entry--bhU3vZ-.js +1 -0
- package/dist/assets/gux-rich-highlight-list-item.entry-CSqOpcBg.js +1 -0
- package/dist/assets/gux-rich-style-list-item_3.entry-CZq1B1uh.js +1 -0
- package/dist/assets/gux-rich-text-editor-action-group.entry-DpooAfXe.js +1 -0
- package/dist/assets/gux-rich-text-editor-action-link.entry-BEOpCIyh.js +1 -0
- package/dist/assets/gux-rich-text-editor-action-rich-style.entry-rwzf60gc.js +1 -0
- package/dist/assets/gux-rich-text-editor-action-text-highlight.entry-BaiCEtST.js +1 -0
- package/dist/assets/gux-rich-text-editor-action.entry-wBuqVeIv.js +1 -0
- package/dist/assets/gux-rich-text-editor-beta.entry-Cw_BO3yc.js +1 -0
- package/dist/assets/gux-rich-text-editor-list.entry-CdJ7d-sN.js +1 -0
- package/dist/assets/gux-rich-text-editor.service-dcce5e51-BQ3X9qeR.js +1 -0
- package/dist/assets/gux-row-select.entry-DNQoUPfo.js +1 -0
- package/dist/assets/gux-screen-reader-beta.entry-CIizYbtx.js +1 -0
- package/dist/assets/gux-segmented-control-beta.entry-Lg-TCK-1.js +1 -0
- package/dist/assets/gux-segmented-control-item.entry-DDTIGwB3.js +1 -0
- package/dist/assets/gux-selector-card-beta.entry-df35Lfih.js +1 -0
- package/dist/assets/gux-selector-cards-beta.entry-HqqnLkUG.js +1 -0
- package/dist/assets/gux-side-panel-beta.entry-BUo5l_ej.js +1 -0
- package/dist/assets/gux-side-panel-heading.entry-NHumDrZj.js +1 -0
- package/dist/assets/gux-simple-toast-legacy.entry-BOuwoL-n.js +1 -0
- package/dist/assets/gux-skip-navigation-item.entry-DdXOJO27.js +1 -0
- package/dist/assets/gux-skip-navigation-list.entry-CuUU-ew0.js +1 -0
- package/dist/assets/gux-sort-control.entry-CbDxt8g0.js +1 -0
- package/dist/assets/gux-submenu.entry-BIlJzQjJ.js +1 -0
- package/dist/assets/gux-switch-item.entry-Cgtmox8R.js +1 -0
- package/dist/assets/gux-switch-legacy.entry-DsGOmtPe.js +1 -0
- package/dist/assets/gux-tab-advanced-list.entry-BtLAOPFJ.js +6 -0
- package/dist/assets/gux-tab-advanced-panel.entry-DIpz0Cfq.js +1 -0
- package/dist/assets/gux-tab-advanced.entry-BJITyN8b.js +1 -0
- package/dist/assets/gux-tab-list.entry-C7TvqKuP.js +1 -0
- package/dist/assets/gux-tab-panel.entry-C2d5THOw.js +1 -0
- package/dist/assets/gux-tab.entry-C4cHFqyb.js +1 -0
- package/dist/assets/gux-table-select-menu.entry-B0sGVIcE.js +1 -0
- package/dist/assets/gux-table-toolbar-action.entry-6BqIINZe.js +1 -0
- package/dist/assets/gux-table-toolbar-custom-action.entry-kKhiKsjX.js +1 -0
- package/dist/assets/gux-table-toolbar-menu-button.entry-CRgm9k5e.js +1 -0
- package/dist/assets/gux-table-toolbar.entry-Ba-W7m77.js +1 -0
- package/dist/assets/gux-table.entry-Du_lBgt-.js +4 -0
- package/dist/assets/gux-tabs-advanced.entry-spkmmAd3.js +1 -0
- package/dist/assets/gux-tabs.entry-BEULiyba.js +1 -0
- package/dist/assets/gux-tag.entry-BqkYTi8D.js +1 -0
- package/dist/assets/gux-text-highlight.entry-DOOZoYpX.js +1 -0
- package/dist/assets/gux-time-beta.entry-Ch9EsUkg.js +1 -0
- package/dist/assets/gux-time-picker.entry-Cq4RImXx.js +1 -0
- package/dist/assets/gux-time-zone-beta.entry-De8gNsNd.js +1 -0
- package/dist/assets/gux-time-zone-picker-beta.entry-Bqx6c6Qf.js +1 -0
- package/dist/assets/gux-toast.entry-F3efkRwy.js +1 -0
- package/dist/assets/gux-toggle-slider.entry-DcoVYfs5.js +1 -0
- package/dist/assets/gux-toggle.entry-Cu3eAfan.js +1 -0
- package/dist/assets/gux-tooltip-base-beta_2.entry-1gOdb2cF.js +1 -0
- package/dist/assets/gux-tooltip-pointer-beta.entry-D-hRxe26.js +1 -0
- package/dist/assets/gux-tooltip-title.entry-DjR4NFSD.js +1 -0
- package/dist/assets/gux-tooltip_2.entry-CKPibHyg.js +1 -0
- package/dist/assets/has-slot-f24a46a6-D7GdaS0G.js +1 -0
- package/dist/assets/index-4f1356d9-DSfDpFAA.js +3 -0
- package/dist/assets/index-CGOI1bSc.css +1 -0
- package/dist/assets/index-CWixJ8vL.js +53 -0
- package/dist/assets/index.umd-c0335c3a-dA6NRMYB.js +7 -0
- package/dist/assets/intl-93dbfa3b-BWr_j3mE.js +1 -0
- package/dist/assets/iso-dates-c6c7180d-MS_uLuKn.js +1 -0
- package/dist/assets/log-error-274efeb7-BpRSdGLj.js +1 -0
- package/dist/assets/on-attribute-change-33919964-C8j0fVsi.js +1 -0
- package/dist/assets/on-click-outside-6c2e399b-BC2t0a8o.js +1 -0
- package/dist/assets/on-input-disabled-state-change-27395154-_B452ZSd.js +1 -0
- package/dist/assets/on-mutation-751e68e4-BRlz63Dw.js +1 -0
- package/dist/assets/on-mutation-a222fe93-BUuUxYmY.js +1 -0
- package/dist/assets/on-resize-c9d0d33c-RQFUwEyO.js +1 -0
- package/dist/assets/overflow-detection-7e4fbf13-BN_H74hs.js +1 -0
- package/dist/assets/prevent-browser-validation-styling-3983eb0a-8P9I4Sy5.js +1 -0
- package/dist/assets/random-html-id-81ac821b-D30kRngR.js +1 -0
- package/dist/assets/simulate-native-event-e0631897-BcLDngo1.js +1 -0
- package/dist/assets/time-zone-b2752992-DBIrkcHc.js +1 -0
- package/dist/assets/usage-36c49ec0-Dlq6IjQJ.js +1 -0
- package/dist/assets/use-regional-dates-20f9c0e5-C5bTvd2o.js +1 -0
- package/dist/assets/when-event-is-from-2aac15f0-B4cyA2sH.js +1 -0
- package/dist/assets/year-month-values-7461d213-BGOpTfvI.js +1 -0
- package/dist/deploy-info.json +4 -8
- package/dist/genesys-cloud-client-auth.browser.min.js +1 -1
- package/dist/genesys-cloud-client-auth.browser.min.js.map +1 -1
- package/dist/i18n/ar.json +8 -8
- package/dist/i18n/cs.json +8 -8
- package/dist/i18n/da.json +10 -0
- package/dist/i18n/de.json +8 -8
- package/dist/i18n/en-us.json +8 -8
- package/dist/i18n/es.json +8 -8
- package/dist/i18n/fi.json +10 -0
- package/dist/i18n/fr.json +8 -8
- package/dist/i18n/he.json +8 -8
- package/dist/i18n/hi.json +2 -0
- package/dist/i18n/it.json +8 -8
- package/dist/i18n/ja.json +8 -8
- package/dist/i18n/ko.json +8 -8
- package/dist/i18n/nl.json +8 -8
- package/dist/i18n/no.json +8 -8
- package/dist/i18n/pl.json +8 -8
- package/dist/i18n/pt-br.json +8 -8
- package/dist/i18n/pt-pt.json +8 -8
- package/dist/i18n/ru.json +8 -8
- package/dist/i18n/sv.json +8 -8
- package/dist/i18n/th.json +8 -8
- package/dist/i18n/tr.json +8 -8
- package/dist/i18n/uk.json +10 -0
- package/dist/i18n/zh-cn.json +8 -8
- package/dist/i18n/zh-tw.json +8 -8
- package/dist/index.html +14 -1
- package/dist/lib/cjs/authenticator.d.ts +2 -1
- package/dist/lib/cjs/authenticator.js +13 -6
- package/dist/lib/cjs/authenticator.js.map +1 -1
- package/dist/lib/cjs/index.js.map +1 -1
- package/dist/lib/cjs/parse-redirect.js +5 -5
- package/dist/lib/cjs/parse-redirect.js.map +1 -1
- package/dist/lib/cjs/types.d.ts +5 -1
- package/dist/lib/cjs/utils.d.ts +1 -1
- package/dist/lib/cjs/utils.js +2 -2
- package/dist/lib/cjs/utils.js.map +1 -1
- package/dist/lib/cjs/version.js +0 -1
- package/dist/lib/cjs/version.js.map +1 -1
- package/dist/lib/es/authenticator.d.ts +2 -1
- package/dist/lib/es/authenticator.js +10 -3
- package/dist/lib/es/authenticator.js.map +1 -1
- package/dist/lib/es/index.js.map +1 -1
- package/dist/lib/es/parse-redirect.js.map +1 -1
- package/dist/lib/es/types.d.ts +5 -1
- package/dist/lib/es/utils.d.ts +1 -1
- package/dist/lib/es/utils.js.map +1 -1
- package/dist/lib/es/version.js +0 -1
- package/dist/lib/es/version.js.map +1 -1
- package/dist/manifest.json +2 -6
- package/dist/v1/genesys-cloud-client-auth.browser.min.js +1 -1
- package/dist/v1.0.0/genesys-cloud-client-auth.browser.min.js +1 -1
- package/dist/vite.svg +1 -0
- package/package.json +72 -73
- package/CHANGELOG.md +0 -16
- package/LICENSE +0 -21
- package/dist/asset-manifest.json +0 -198
- package/dist/favicon.ico +0 -0
- package/dist/robots.txt +0 -3
- package/dist/static/css/main.045d96b0.css +0 -2
- package/dist/static/css/main.045d96b0.css.map +0 -1
- package/dist/static/js/1089.fb722233.chunk.js +0 -2
- package/dist/static/js/1089.fb722233.chunk.js.map +0 -1
- package/dist/static/js/1158.76a41325.chunk.js +0 -2
- package/dist/static/js/1158.76a41325.chunk.js.map +0 -1
- package/dist/static/js/1166.1486fbcd.chunk.js +0 -2
- package/dist/static/js/1166.1486fbcd.chunk.js.map +0 -1
- package/dist/static/js/131.3f61f67c.chunk.js +0 -2
- package/dist/static/js/131.3f61f67c.chunk.js.map +0 -1
- package/dist/static/js/1344.19a70535.chunk.js +0 -2
- package/dist/static/js/1344.19a70535.chunk.js.map +0 -1
- package/dist/static/js/1433.d57f6003.chunk.js +0 -2
- package/dist/static/js/1433.d57f6003.chunk.js.map +0 -1
- package/dist/static/js/1498.98292821.chunk.js +0 -2
- package/dist/static/js/1498.98292821.chunk.js.map +0 -1
- package/dist/static/js/1507.84125ab7.chunk.js +0 -2
- package/dist/static/js/1507.84125ab7.chunk.js.map +0 -1
- package/dist/static/js/1544.fcbc0609.chunk.js +0 -2
- package/dist/static/js/1544.fcbc0609.chunk.js.map +0 -1
- package/dist/static/js/1642.13e001a0.chunk.js +0 -2
- package/dist/static/js/1642.13e001a0.chunk.js.map +0 -1
- package/dist/static/js/1697.c1eba654.chunk.js +0 -2
- package/dist/static/js/1697.c1eba654.chunk.js.map +0 -1
- package/dist/static/js/1718.d222d0d2.chunk.js +0 -2
- package/dist/static/js/1718.d222d0d2.chunk.js.map +0 -1
- package/dist/static/js/1978.b9b0b630.chunk.js +0 -2
- package/dist/static/js/1978.b9b0b630.chunk.js.map +0 -1
- package/dist/static/js/2131.e90e6224.chunk.js +0 -2
- package/dist/static/js/2131.e90e6224.chunk.js.map +0 -1
- package/dist/static/js/2291.98b84fa5.chunk.js +0 -2
- package/dist/static/js/2291.98b84fa5.chunk.js.map +0 -1
- package/dist/static/js/2361.28c72454.chunk.js +0 -2
- package/dist/static/js/2361.28c72454.chunk.js.map +0 -1
- package/dist/static/js/2609.69b7ee3f.chunk.js +0 -2
- package/dist/static/js/2609.69b7ee3f.chunk.js.map +0 -1
- package/dist/static/js/2618.08776cf8.chunk.js +0 -2
- package/dist/static/js/2618.08776cf8.chunk.js.map +0 -1
- package/dist/static/js/2657.08f5fe94.chunk.js +0 -2
- package/dist/static/js/2657.08f5fe94.chunk.js.map +0 -1
- package/dist/static/js/2939.a53af515.chunk.js +0 -2
- package/dist/static/js/2939.a53af515.chunk.js.map +0 -1
- package/dist/static/js/2959.b68475ee.chunk.js +0 -2
- package/dist/static/js/2959.b68475ee.chunk.js.map +0 -1
- package/dist/static/js/3183.0483907e.chunk.js +0 -2
- package/dist/static/js/3183.0483907e.chunk.js.map +0 -1
- package/dist/static/js/3184.b5c03e4a.chunk.js +0 -2
- package/dist/static/js/3184.b5c03e4a.chunk.js.map +0 -1
- package/dist/static/js/3326.58fe8ed8.chunk.js +0 -2
- package/dist/static/js/3326.58fe8ed8.chunk.js.map +0 -1
- package/dist/static/js/3431.330e6907.chunk.js +0 -2
- package/dist/static/js/3431.330e6907.chunk.js.map +0 -1
- package/dist/static/js/3466.d53f9938.chunk.js +0 -2
- package/dist/static/js/3466.d53f9938.chunk.js.map +0 -1
- package/dist/static/js/3534.ee2022f0.chunk.js +0 -2
- package/dist/static/js/3534.ee2022f0.chunk.js.map +0 -1
- package/dist/static/js/3649.47036a0d.chunk.js +0 -2
- package/dist/static/js/3649.47036a0d.chunk.js.map +0 -1
- package/dist/static/js/3821.dbe9ef88.chunk.js +0 -2
- package/dist/static/js/3821.dbe9ef88.chunk.js.map +0 -1
- package/dist/static/js/3982.1668cd90.chunk.js +0 -2
- package/dist/static/js/3982.1668cd90.chunk.js.map +0 -1
- package/dist/static/js/4173.64f75901.chunk.js +0 -2
- package/dist/static/js/4173.64f75901.chunk.js.map +0 -1
- package/dist/static/js/4192.35098ff0.chunk.js +0 -2
- package/dist/static/js/4192.35098ff0.chunk.js.map +0 -1
- package/dist/static/js/4202.6a101f57.chunk.js +0 -2
- package/dist/static/js/4202.6a101f57.chunk.js.map +0 -1
- package/dist/static/js/4242.625e5aa9.chunk.js +0 -2
- package/dist/static/js/4242.625e5aa9.chunk.js.map +0 -1
- package/dist/static/js/4248.d69f59fd.chunk.js +0 -2
- package/dist/static/js/4248.d69f59fd.chunk.js.map +0 -1
- package/dist/static/js/4618.2b652181.chunk.js +0 -2
- package/dist/static/js/4618.2b652181.chunk.js.map +0 -1
- package/dist/static/js/4774.03877b96.chunk.js +0 -2
- package/dist/static/js/4774.03877b96.chunk.js.map +0 -1
- package/dist/static/js/4777.07210d5d.chunk.js +0 -2
- package/dist/static/js/4777.07210d5d.chunk.js.map +0 -1
- package/dist/static/js/4826.f3719274.chunk.js +0 -2
- package/dist/static/js/4826.f3719274.chunk.js.map +0 -1
- package/dist/static/js/501.3f46836b.chunk.js +0 -2
- package/dist/static/js/501.3f46836b.chunk.js.map +0 -1
- package/dist/static/js/5122.046ab4b7.chunk.js +0 -2
- package/dist/static/js/5122.046ab4b7.chunk.js.map +0 -1
- package/dist/static/js/5160.465b3a5d.chunk.js +0 -2
- package/dist/static/js/5160.465b3a5d.chunk.js.map +0 -1
- package/dist/static/js/546.40835589.chunk.js +0 -2
- package/dist/static/js/546.40835589.chunk.js.map +0 -1
- package/dist/static/js/5503.cc3b1fda.chunk.js +0 -2
- package/dist/static/js/5503.cc3b1fda.chunk.js.map +0 -1
- package/dist/static/js/5572.565c5d80.chunk.js +0 -2
- package/dist/static/js/5572.565c5d80.chunk.js.map +0 -1
- package/dist/static/js/599.a5cb72b5.chunk.js +0 -2
- package/dist/static/js/599.a5cb72b5.chunk.js.map +0 -1
- package/dist/static/js/6033.174d7635.chunk.js +0 -2
- package/dist/static/js/6033.174d7635.chunk.js.map +0 -1
- package/dist/static/js/6069.5c81dae7.chunk.js +0 -2
- package/dist/static/js/6069.5c81dae7.chunk.js.map +0 -1
- package/dist/static/js/6151.c5cf5a85.chunk.js +0 -2
- package/dist/static/js/6151.c5cf5a85.chunk.js.map +0 -1
- package/dist/static/js/6237.a9b576a4.chunk.js +0 -2
- package/dist/static/js/6237.a9b576a4.chunk.js.map +0 -1
- package/dist/static/js/6326.156b4248.chunk.js +0 -2
- package/dist/static/js/6326.156b4248.chunk.js.map +0 -1
- package/dist/static/js/6474.03947fd7.chunk.js +0 -2
- package/dist/static/js/6474.03947fd7.chunk.js.map +0 -1
- package/dist/static/js/6571.301eecac.chunk.js +0 -2
- package/dist/static/js/6571.301eecac.chunk.js.map +0 -1
- package/dist/static/js/6632.0676b230.chunk.js +0 -2
- package/dist/static/js/6632.0676b230.chunk.js.map +0 -1
- package/dist/static/js/6769.fcdb896c.chunk.js +0 -2
- package/dist/static/js/6769.fcdb896c.chunk.js.map +0 -1
- package/dist/static/js/6982.60585ab3.chunk.js +0 -2
- package/dist/static/js/6982.60585ab3.chunk.js.map +0 -1
- package/dist/static/js/7076.37939eb2.chunk.js +0 -2
- package/dist/static/js/7076.37939eb2.chunk.js.map +0 -1
- package/dist/static/js/7120.0b0ef311.chunk.js +0 -3
- package/dist/static/js/7120.0b0ef311.chunk.js.LICENSE.txt +0 -6
- package/dist/static/js/7120.0b0ef311.chunk.js.map +0 -1
- package/dist/static/js/7150.840301cb.chunk.js +0 -2
- package/dist/static/js/7150.840301cb.chunk.js.map +0 -1
- package/dist/static/js/7153.250bf93b.chunk.js +0 -2
- package/dist/static/js/7153.250bf93b.chunk.js.map +0 -1
- package/dist/static/js/7307.8656856b.chunk.js +0 -2
- package/dist/static/js/7307.8656856b.chunk.js.map +0 -1
- package/dist/static/js/742.64af67d8.chunk.js +0 -2
- package/dist/static/js/742.64af67d8.chunk.js.map +0 -1
- package/dist/static/js/754.b1c84197.chunk.js +0 -2
- package/dist/static/js/754.b1c84197.chunk.js.map +0 -1
- package/dist/static/js/7610.97a0a5b5.chunk.js +0 -2
- package/dist/static/js/7610.97a0a5b5.chunk.js.map +0 -1
- package/dist/static/js/765.2a78cffe.chunk.js +0 -2
- package/dist/static/js/765.2a78cffe.chunk.js.map +0 -1
- package/dist/static/js/7803.bfe8c40f.chunk.js +0 -2
- package/dist/static/js/7803.bfe8c40f.chunk.js.map +0 -1
- package/dist/static/js/7895.629e8650.chunk.js +0 -2
- package/dist/static/js/7895.629e8650.chunk.js.map +0 -1
- package/dist/static/js/8025.ecb1d6bc.chunk.js +0 -2
- package/dist/static/js/8025.ecb1d6bc.chunk.js.map +0 -1
- package/dist/static/js/8086.ef9f2d3b.chunk.js +0 -2
- package/dist/static/js/8086.ef9f2d3b.chunk.js.map +0 -1
- package/dist/static/js/8105.46b996bf.chunk.js +0 -2
- package/dist/static/js/8105.46b996bf.chunk.js.map +0 -1
- package/dist/static/js/819.a55f578b.chunk.js +0 -2
- package/dist/static/js/819.a55f578b.chunk.js.map +0 -1
- package/dist/static/js/8300.e15dbcd8.chunk.js +0 -2
- package/dist/static/js/8300.e15dbcd8.chunk.js.map +0 -1
- package/dist/static/js/8324.b769efff.chunk.js +0 -2
- package/dist/static/js/8324.b769efff.chunk.js.map +0 -1
- package/dist/static/js/8366.b2c2daee.chunk.js +0 -2
- package/dist/static/js/8366.b2c2daee.chunk.js.map +0 -1
- package/dist/static/js/8524.95396ee8.chunk.js +0 -2
- package/dist/static/js/8524.95396ee8.chunk.js.map +0 -1
- package/dist/static/js/8644.c87452a5.chunk.js +0 -2
- package/dist/static/js/8644.c87452a5.chunk.js.map +0 -1
- package/dist/static/js/8674.d4aa33fd.chunk.js +0 -2
- package/dist/static/js/8674.d4aa33fd.chunk.js.map +0 -1
- package/dist/static/js/8717.76b643a4.chunk.js +0 -2
- package/dist/static/js/8717.76b643a4.chunk.js.map +0 -1
- package/dist/static/js/872.5c96c93a.chunk.js +0 -2
- package/dist/static/js/872.5c96c93a.chunk.js.map +0 -1
- package/dist/static/js/8762.d3fad692.chunk.js +0 -2
- package/dist/static/js/8762.d3fad692.chunk.js.map +0 -1
- package/dist/static/js/8782.af6b6665.chunk.js +0 -3
- package/dist/static/js/8782.af6b6665.chunk.js.LICENSE.txt +0 -14
- package/dist/static/js/8782.af6b6665.chunk.js.map +0 -1
- package/dist/static/js/894.a8fe019e.chunk.js +0 -2
- package/dist/static/js/894.a8fe019e.chunk.js.map +0 -1
- package/dist/static/js/9057.702da8f9.chunk.js +0 -2
- package/dist/static/js/9057.702da8f9.chunk.js.map +0 -1
- package/dist/static/js/9090.60a5cb5b.chunk.js +0 -2
- package/dist/static/js/9090.60a5cb5b.chunk.js.map +0 -1
- package/dist/static/js/9117.200d2100.chunk.js +0 -2
- package/dist/static/js/9117.200d2100.chunk.js.map +0 -1
- package/dist/static/js/9131.d5d0ab82.chunk.js +0 -2
- package/dist/static/js/9131.d5d0ab82.chunk.js.map +0 -1
- package/dist/static/js/9296.e374c7dc.chunk.js +0 -2
- package/dist/static/js/9296.e374c7dc.chunk.js.map +0 -1
- package/dist/static/js/932.4f62c387.chunk.js +0 -2
- package/dist/static/js/932.4f62c387.chunk.js.map +0 -1
- package/dist/static/js/9584.967e5482.chunk.js +0 -2
- package/dist/static/js/9584.967e5482.chunk.js.map +0 -1
- package/dist/static/js/9679.87a204b1.chunk.js +0 -2
- package/dist/static/js/9679.87a204b1.chunk.js.map +0 -1
- package/dist/static/js/9745.63a6678a.chunk.js +0 -2
- package/dist/static/js/9745.63a6678a.chunk.js.map +0 -1
- package/dist/static/js/9750.1310ef55.chunk.js +0 -2
- package/dist/static/js/9750.1310ef55.chunk.js.map +0 -1
- package/dist/static/js/main.88b7f5a4.js +0 -3
- package/dist/static/js/main.88b7f5a4.js.LICENSE.txt +0 -43
- package/dist/static/js/main.88b7f5a4.js.map +0 -1
- package/dist/static/media/getFetch.c780682470504fffbd04.cjs +0 -1
package/README.md
CHANGED
|
@@ -1,466 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
[](https://badge.fury.io/js/genesys-cloud-client-auth)
|
|
3
|
-
[](https://codecov.io/gh/MyPureCloud/genesys-cloud-client-auth)
|
|
4
|
-
[](https://dependabot.com)
|
|
1
|
+
# Genesys Cloud Client Auth #
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
Small, lightweight library and app to handle authentication for client applications. Big advantage is utilization of popup windows to authenticate apps within iframes.
|
|
8
|
-
This library only supports implicit logins for use within a front-end web application.
|
|
3
|
+
This project is a Bitbucket repository that contains the pipeline infrastructure for the open source [Genesys Cloud Client Auth library](https://github.com/MyPureCloud/genesys-cloud-client-auth) hosted on GitHub.
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
* [Usage](#usage)
|
|
12
|
-
* [Standard Usage](#usage)
|
|
13
|
-
* [Popup Authentication (for Iframes)](#popup-auth)
|
|
14
|
-
* [API](#api)
|
|
15
|
-
* [Limitations](#limitations)
|
|
5
|
+
### What is this repository for?
|
|
16
6
|
|
|
7
|
+
Current guidance from security and the CI/CD teams is to not have the pipeline infrastructure available in open source repositories. This repository is used to host the pipeline infrastructure for the Genesys Cloud Client Auth library so that we may retain access to the CDN and ability to publish to NPM.
|
|
17
8
|
|
|
18
|
-
|
|
19
|
-
``` sh
|
|
20
|
-
npm add genesys-cloud-client-auth
|
|
21
|
-
# or
|
|
22
|
-
yarn add genesys-cloud-client-auth
|
|
23
|
-
```
|
|
9
|
+
### Contributions
|
|
24
10
|
|
|
25
|
-
|
|
11
|
+
* Leave all source code in the GitHub repository.
|
|
12
|
+
* Only pipeline infrastructure should be in this repository.
|
|
26
13
|
|
|
27
|
-
|
|
14
|
+
### Who do I talk to?
|
|
28
15
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<script src="https://apps.mypurecloud.com/client-auth/v1/genesys-cloud-client-auth.browser.min.js"></script>
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Usage
|
|
35
|
-
``` typescript
|
|
36
|
-
import { GenesysCloudClientAuthenticator, authenticatorFactory, IAuthData } from 'genesys-cloud-client-auth';
|
|
37
|
-
|
|
38
|
-
const clientId = 'Your Oauth ClientID';
|
|
39
|
-
const authenticator: GenesysCloudClientAuthenticator = authenticatorFactory(clientId, {
|
|
40
|
-
/* these are the defaults */
|
|
41
|
-
environment: 'mypurecloud.com',
|
|
42
|
-
persist: false,
|
|
43
|
-
storageKey: 'gc_client_auth_data',
|
|
44
|
-
debugMode: false
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
authenticator.loginImplicitGrant({
|
|
48
|
-
redirectUri: 'https://myapp.example.com/app/', // whatever valid redirect URI is configured for your Oauth client
|
|
49
|
-
state: '', // optional state to return after authentication
|
|
50
|
-
/* All optional – see the advanced usage and/or API section for these – defaults listed below */
|
|
51
|
-
org: '',
|
|
52
|
-
provider: '',
|
|
53
|
-
usePopupAuth: false,
|
|
54
|
-
popupTimeout: 15000
|
|
55
|
-
}).then((data: IAuthData) => {
|
|
56
|
-
/* data will contain authentication information like accessToken */
|
|
57
|
-
}).catch(error => {
|
|
58
|
-
/* authentication failed */
|
|
59
|
-
});
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Popup Auth
|
|
63
|
-
For applications that are iframed into a parent application, some identity providers will prevent authentication within an iframe using the `X-Frame-Options`. To work around this issue the iframed application can open a popup window and localStorage to perform the authentication.
|
|
64
|
-
|
|
65
|
-
#### Auth Flow Using Popup
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
Iframed App Redirect App Login
|
|
69
|
-
| | |
|
|
70
|
-
|------- (1) -------------------------->|
|
|
71
|
-
| | |
|
|
72
|
-
| |<------ (2) ------|
|
|
73
|
-
| | |
|
|
74
|
-
|<------ (3) --------| |
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
1. The Iframed app will initiate a login by opening a new popup window with the url to the login page. It will then setup a listener on localStorage events.
|
|
78
|
-
1. Once authenticated, the login page will redirect to the "Redirect App" (more on this below).
|
|
79
|
-
1. The Redirect App will parse the authentication data and save it to localStorage triggering a localStorage event which the Iframed App is listening on. The Redirect App should then close itself.
|
|
80
|
-
|
|
81
|
-
> IMPORTANT: If you are going to utilize the helper application located at `https://apps.{domain}/client-auth`, make sure to add it to your Oauth Client's approved redirects.
|
|
82
|
-
|
|
83
|
-
#### Popup Auth Usage
|
|
84
|
-
``` typescript
|
|
85
|
-
import { GenesysCloudClientAuthenticator, authenticatorFactory, IAuthData } from 'genesys-cloud-client-auth';
|
|
86
|
-
|
|
87
|
-
const clientId = 'Your Oauth ClientID';
|
|
88
|
-
const authenticator: GenesysCloudClientAuthenticator = authenticatorFactory(clientId, {
|
|
89
|
-
environment: 'mypurecloud.com',
|
|
90
|
-
persist: true, // this is required to use popup auth
|
|
91
|
-
storageKey: 'gc_client_auth_data',
|
|
92
|
-
debugMode: false // setting to `true` for popup auth will help with debugging
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
authenticator.loginImplicitGrant({
|
|
96
|
-
// if left falsy, the `https://apps.{env}/client-auth/` app will be used for the redirectUri
|
|
97
|
-
// else, your redirect will need to implement the parsing of the token (see next step)
|
|
98
|
-
redirectUri: 'https://myapp.example.com/app/',
|
|
99
|
-
usePopupAuth: true,
|
|
100
|
-
popupTimeout: 15000 // default amount
|
|
101
|
-
}).then((data: IAuthData) => {
|
|
102
|
-
/* data will contain authentication information like accessToken */
|
|
103
|
-
}).catch(error => {
|
|
104
|
-
/* authentication failed */
|
|
105
|
-
if (error.name === 'TIMEOUT_ERROR') {
|
|
106
|
-
// this error will trigger after the `popupTimeout` expires without valid auth data saved
|
|
107
|
-
// this could be an indication that the user has popups blocked
|
|
108
|
-
// you will need to add application logic to handle these errors
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
If you are not using the default redirect to `/client-auth`, then your redirect application can use the following function to perform the necessary parsing and saving to localStorage:
|
|
114
|
-
|
|
115
|
-
``` typescript
|
|
116
|
-
import { handleRedirectFromLogin } from 'genesys-cloud-client-auth';
|
|
117
|
-
|
|
118
|
-
try {
|
|
119
|
-
// this will parse and save auth data to localStorage
|
|
120
|
-
handleRedirectFromLogin();
|
|
121
|
-
} catch (error) {
|
|
122
|
-
// it could error for multiple reasons.
|
|
123
|
-
// mainly, if the auth hash is not present
|
|
124
|
-
// or if there is no storage ID as the state field
|
|
125
|
-
}
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
It can also be used directly in the HTML:
|
|
129
|
-
|
|
130
|
-
``` html
|
|
131
|
-
<script src="https://apps.mypurecloud.com/client-auth/v1/genesys-cloud-client-auth.browser.min.js"></script>
|
|
132
|
-
<script>
|
|
133
|
-
try {
|
|
134
|
-
GenesysCloudClientAuth.handleRedirectFromLogin();
|
|
135
|
-
console.log('Successfully parsed params from hash');
|
|
136
|
-
} catch (error) {
|
|
137
|
-
console.warn(`Error parsing auth params from hash – ${error.name}: "${error.message}"`);
|
|
138
|
-
}
|
|
139
|
-
</script>
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
The `redirectUri` is very important here. There are two options:
|
|
143
|
-
1. If no `redirectUri` is provided, client-auth will redirect to `https://{domain}/client-auth`. If this method is used, make sure your Oauth client whitelists `https://{domain}/client-auth` as a valid redirectUri.
|
|
144
|
-
1. If a `redirectUri` is provided, it can use the `handleRedirectFromLogin()` function listed below to perform the necessary parsing and saving to localStorage (more on that in step 2).
|
|
145
|
-
|
|
146
|
-
## API
|
|
147
|
-
|
|
148
|
-
### `authenticatorFactory()`
|
|
149
|
-
Factory function to generate a singleton instance of a ClientAuthenticator class.
|
|
150
|
-
If an instance has already been created for passed in `clientId`, that instance
|
|
151
|
-
will be returned _without_ updating the original configuration.
|
|
152
|
-
|
|
153
|
-
Declaration:
|
|
154
|
-
``` ts
|
|
155
|
-
authenticatorFactory: (clientId: string, config: Partial<IAuthenticatorConfig>) => GenesysCloudClientAuthenticator;
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
Params:
|
|
159
|
-
* `client: string` – Oauth Client ID
|
|
160
|
-
* `config: Partial<IAuthenticatorConfig>` – Optional; configuration for the ClientAuthenticator instance. Available options (with defaults):
|
|
161
|
-
``` ts
|
|
162
|
-
interface IAuthenticatorConfig {
|
|
163
|
-
/**
|
|
164
|
-
* Genesys Cloud domain.
|
|
165
|
-
* Defaults to: `'mypurecloud.com'`
|
|
166
|
-
*/
|
|
167
|
-
environment: string;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Persist authentication data to localStorage.
|
|
171
|
-
* Note: this is required if using popup authentication
|
|
172
|
-
* Defaults to: `false`
|
|
173
|
-
*/
|
|
174
|
-
persist: boolean;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Storage key to save auth data to localStorage.
|
|
178
|
-
* Defaults to: `gc_client_auth_data`
|
|
179
|
-
*/
|
|
180
|
-
storageKey: string;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Allow for extra console logs for debugging
|
|
184
|
-
* Defaults to: `false`
|
|
185
|
-
*/
|
|
186
|
-
debugMode: boolean;
|
|
187
|
-
}
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
Returns: Singleton GenesysCloudClientAuthenticator instance
|
|
191
|
-
|
|
192
|
-
### GenesysCloudClientAuthenticator
|
|
193
|
-
Class to manage authentication and state. It is recommended to use the `authenticatorFactory` to construct a singleton instance of this class.
|
|
194
|
-
|
|
195
|
-
#### Properties
|
|
196
|
-
|
|
197
|
-
##### `authenticator.clientId`
|
|
198
|
-
Oauth client id
|
|
199
|
-
|
|
200
|
-
##### `authenticator.VERSION`
|
|
201
|
-
client-auth version
|
|
202
|
-
|
|
203
|
-
##### `authenticator.authData`
|
|
204
|
-
current authencation data for this instance. default is an empty object `{}`. Definition:
|
|
205
|
-
``` ts
|
|
206
|
-
interface IAuthData {
|
|
207
|
-
/** access token received from login */
|
|
208
|
-
accessToken?: string;
|
|
209
|
-
/** optional state returned from login */
|
|
210
|
-
state?: string;
|
|
211
|
-
/** time at which the token expires */
|
|
212
|
-
tokenExpiryTime?: number;
|
|
213
|
-
/** time at which the token expires in ISO string format */
|
|
214
|
-
tokenExpiryTimeString?: string;
|
|
215
|
-
/** error that may have occurred during login */
|
|
216
|
-
error?: string;
|
|
217
|
-
/** error description that may have occurred during login */
|
|
218
|
-
error_description?: string;
|
|
219
|
-
}
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
##### `authenticator.config`
|
|
223
|
-
current configuration for this instance
|
|
224
|
-
|
|
225
|
-
##### `authenticator.environment`
|
|
226
|
-
current environment. Ex. `mypurecloud.com`.
|
|
227
|
-
> Note: do not update this property individually. Use `authenticator.setEnvironment(env: string)` if updating it is necessary.
|
|
228
|
-
|
|
229
|
-
##### `authenticator.basePath`
|
|
230
|
-
base api path – utilizing the `environment` varialbe
|
|
231
|
-
|
|
232
|
-
##### `authenticator.authUrl`
|
|
233
|
-
base auth path – utilizing the `environment` varialbe
|
|
234
|
-
|
|
235
|
-
#### Methods
|
|
236
|
-
|
|
237
|
-
##### `constructor()`
|
|
238
|
-
Construct a new Authenticator instance. It is recommended you use the `authenticatorFactory()` to construct a singleton for each necessary Oauth client.
|
|
239
|
-
|
|
240
|
-
Declaration:
|
|
241
|
-
``` ts
|
|
242
|
-
constructor (clientId: string, config: Partial<IAuthenticatorConfig> = {});
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
Params:
|
|
246
|
-
* `client: string` – Oauth Client ID
|
|
247
|
-
* `config: Partial<IAuthenticatorConfig>` – Optional; configuration for the ClientAuthenticator instance. See [authenticatorFactory()](#authenticatorfactory) for more details.
|
|
248
|
-
|
|
249
|
-
Returns: `GenesysCloudClientAuthenticator` instance
|
|
250
|
-
|
|
251
|
-
##### `authenticator.loginImplicitGrant()`
|
|
252
|
-
Initiates the implicit grant login flow. Will attempt to load the token from local storage, if enabled.
|
|
253
|
-
|
|
254
|
-
Declaration:
|
|
255
|
-
``` ts
|
|
256
|
-
loginImplicitGrant(opts?: ILoginOptions, existingAuthData?: IAuthData): Promise<IAuthData | undefined>;
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
Params:
|
|
260
|
-
* `opts: ILoginOptions` – Options to login with
|
|
261
|
-
``` ts
|
|
262
|
-
interface ILoginOptions {
|
|
263
|
-
/**
|
|
264
|
-
* The redirect URI of the OAuth Implicit Grant client. Not needed if `usePopupAuth: true` _and_
|
|
265
|
-
* the consuming application wishes to use the standard redirect of genesys-cloud-client-auth
|
|
266
|
-
* standalone app.
|
|
267
|
-
*/
|
|
268
|
-
redirectUri?: string;
|
|
269
|
-
/**
|
|
270
|
-
* Any state needed when returning from login
|
|
271
|
-
*/
|
|
272
|
-
state?: string;
|
|
273
|
-
/**
|
|
274
|
-
* The organization name that would normally used when specifying an organization name when logging in.
|
|
275
|
-
* This is only used when a provider is also specified.
|
|
276
|
-
*/
|
|
277
|
-
org?: string;
|
|
278
|
-
/**
|
|
279
|
-
* Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin.
|
|
280
|
-
* This is only used when an org is also specified.
|
|
281
|
-
*/
|
|
282
|
-
provider?: string;
|
|
283
|
-
/**
|
|
284
|
-
* Use a popup window to open to the login page.
|
|
285
|
-
*/
|
|
286
|
-
usePopupAuth?: boolean;
|
|
287
|
-
/**
|
|
288
|
-
* Timeout for how long the auth pop should remain open before timing out
|
|
289
|
-
* and rejecting the loginImplicitGrant call. This is only used in conjunction
|
|
290
|
-
* with `usePopupAuth`.
|
|
291
|
-
*/
|
|
292
|
-
popupTimeout?: number;
|
|
293
|
-
}
|
|
294
|
-
```
|
|
295
|
-
* `existingAuthData?: IAuthData` – Optional; authentication data to use. default will be parsed from url hash
|
|
296
|
-
|
|
297
|
-
Returns: promise containing `IAuthData` (see [authenticator.authData](#authenticator.authData) for definition)
|
|
298
|
-
|
|
299
|
-
##### `authenticator.setEnvironment()`
|
|
300
|
-
Sets the environment, baseUrl, and authUrl used by the session
|
|
301
|
-
|
|
302
|
-
Declaration:
|
|
303
|
-
``` ts
|
|
304
|
-
setEnvironment(environment?: string): void;
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
Params:
|
|
308
|
-
* `environment?: string` – (Optional, default "mypurecloud.com") Environment the instance uses, e.g. mypurecloud.ie, mypurecloud.com.au, etc.
|
|
309
|
-
|
|
310
|
-
Returns: void
|
|
311
|
-
|
|
312
|
-
##### `authenticator.clearAuthData()`
|
|
313
|
-
Will clear current auth data from localStorage.
|
|
314
|
-
|
|
315
|
-
> NOTE: this will _not_ log the user out. Using `logout()`
|
|
316
|
-
for logging out
|
|
317
|
-
|
|
318
|
-
Declaration:
|
|
319
|
-
``` ts
|
|
320
|
-
clearAuthData(): void;
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
Params: none
|
|
324
|
-
|
|
325
|
-
Returns: void
|
|
326
|
-
|
|
327
|
-
##### `authenticator.logout()`
|
|
328
|
-
Clears auth data from localStorage and redirects the user to the GenesysCloud logout page
|
|
329
|
-
|
|
330
|
-
Declaration:
|
|
331
|
-
``` ts
|
|
332
|
-
logout(logoutRedirectUri?: string): void;
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
Params:
|
|
336
|
-
* `logoutRedirectUri?: string` – Optional, redirectUri to pass to the logout page
|
|
337
|
-
|
|
338
|
-
Returns: void
|
|
339
|
-
|
|
340
|
-
##### `authenticator.setAccessToken()`
|
|
341
|
-
Sets the access token on the authenticator instance and localStorage (if configured)
|
|
342
|
-
|
|
343
|
-
Declaration:
|
|
344
|
-
``` ts
|
|
345
|
-
setAccessToken(token: string): void;
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
Params:
|
|
349
|
-
* `token: string` – The access token
|
|
350
|
-
|
|
351
|
-
Returns: void
|
|
352
|
-
|
|
353
|
-
##### `authenticator.testAccessToken()`
|
|
354
|
-
Test an accessToken by using it to make an API call. It will resolve
|
|
355
|
-
if the token is valid, and will reject if it is not valid.
|
|
356
|
-
|
|
357
|
-
Declaration:
|
|
358
|
-
``` ts
|
|
359
|
-
testAccessToken(token: string): Promise<any>;
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
Params:
|
|
363
|
-
* `token: string` – accessToken to test
|
|
364
|
-
|
|
365
|
-
Returns: promise that will resolve or reject depending on the validity of the token passed in
|
|
366
|
-
|
|
367
|
-
##### `authenticator.parseDate()`
|
|
368
|
-
Parses an ISO-8601 string representation of a date value.
|
|
369
|
-
|
|
370
|
-
Declaration:
|
|
371
|
-
``` ts
|
|
372
|
-
parseDate (str: string): Date;
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
Params:
|
|
376
|
-
* `str: string` – The date value as a string.
|
|
377
|
-
|
|
378
|
-
Returns: The parsed date object.
|
|
379
|
-
|
|
380
|
-
### `handleRedirectFromLogin()`
|
|
381
|
-
Helper function to parse the auth data opened from a popup authentication window.
|
|
382
|
-
It will save the auth data to localStorage.
|
|
383
|
-
|
|
384
|
-
> Note: this will throw errors if it cannot parse or save the data correctly
|
|
385
|
-
|
|
386
|
-
Declaration:
|
|
387
|
-
``` ts
|
|
388
|
-
handleRedirectFromLogin: () => void;
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
Params: none
|
|
392
|
-
|
|
393
|
-
Returns: void
|
|
394
|
-
|
|
395
|
-
### `Utils`
|
|
396
|
-
Utility functions to supplement and extend usage.
|
|
397
|
-
|
|
398
|
-
#### `utils.parseOauthParams()`
|
|
399
|
-
Utility to parse the auth data returned from the login page and return
|
|
400
|
-
authentication data as an object.
|
|
401
|
-
|
|
402
|
-
> Note: this will throw errors if it cannot parse or save the data correctly
|
|
403
|
-
|
|
404
|
-
Declaration:
|
|
405
|
-
``` ts
|
|
406
|
-
parseOauthParams: (hash?: string): IAuthData;
|
|
407
|
-
```
|
|
408
|
-
|
|
409
|
-
Params:
|
|
410
|
-
* `hash?: string` – Optional; hash to parse (default `window.location.hash`)
|
|
411
|
-
|
|
412
|
-
Returns: authentication data parsed from the passed in hash
|
|
413
|
-
|
|
414
|
-
#### `utils.tokenWasIssuedAt()`
|
|
415
|
-
Determine when a token was issued at by subtracting the validity
|
|
416
|
-
time from the expires at time.
|
|
417
|
-
|
|
418
|
-
Declaration:
|
|
419
|
-
``` ts
|
|
420
|
-
tokenWasIssuedAt (expiresAtMs: number, expiresInMs: number): number;
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
Params:
|
|
424
|
-
* `expiresAtMs: number` – epoch time (in milliseconds) for when the token will expire
|
|
425
|
-
* `expiresInMs: number` – milliseconds for how long the token is valid for
|
|
426
|
-
|
|
427
|
-
Returns: milliseconds since epoch time
|
|
428
|
-
|
|
429
|
-
#### `utils.isIssuedTimeWithinTimeframe()`
|
|
430
|
-
Determine if a token was issued within a given timeframe window. Example may be:
|
|
431
|
-
a token is received (either from localStorage or some other way) and you need
|
|
432
|
-
to be able to tell if it was issued within the last 10 minutes. Use this function
|
|
433
|
-
as follows:
|
|
434
|
-
|
|
435
|
-
``` ts
|
|
436
|
-
const tokenExpiryTime = 1624611600000; // "2021-06-25 09:00.000Z"
|
|
437
|
-
const tokenExpiresIn = 86400000; // 1 day: meaning token was issuedAt "2021-06-24 09:00.000Z"
|
|
438
|
-
const timeframe = 600000; // 10 minutes
|
|
439
|
-
const startTime = 1624525260000; // "2021-06-24 09:01.000Z": 1 minute after issued time
|
|
440
|
-
|
|
441
|
-
const willBeTrue = isIssuedTimeWithinTimeframe(
|
|
442
|
-
tokenExpiryTime,
|
|
443
|
-
tokenExpiresIn,
|
|
444
|
-
timeframe,
|
|
445
|
-
startTime
|
|
446
|
-
);
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
Declaration:
|
|
450
|
-
``` ts
|
|
451
|
-
isIssuedTimeWithinTimeframe: (expiresAtMs: number, expiresInMs?: number, timeframe?: number, startTime?: number) => boolean;
|
|
452
|
-
```
|
|
453
|
-
|
|
454
|
-
Params:
|
|
455
|
-
* `expiresAtMs: number` – epoch time (in milliseconds) for when the token will expire
|
|
456
|
-
* `expiresInMs?: number` – Optional; milliseconds for how long the token is valid for (default 691199000)
|
|
457
|
-
* `timeframe?: number` – Optional; timeframe (in milliseconds) to check if the token was issued within
|
|
458
|
-
* `startTime?: number` – Optional; time to count `timeframe` back from (in epoch time). Default is `Date.now()`
|
|
459
|
-
|
|
460
|
-
Returns: boolean of whether the token was issued within the given timeframe (from now)
|
|
461
|
-
|
|
462
|
-
## Limitations
|
|
463
|
-
1. Most browsers will not allow the redirect app to close the window. They will log: `Scripts may close only the windows that were opened by them.` to the console and keep the window open.
|
|
464
|
-
|
|
465
|
-
## TODO
|
|
466
|
-
Need to add an "storage_key_expires_at" and then clean those up. So there aren't tons of `gc-ca_{uuid}`s in localStorage.
|
|
16
|
+
* gcmediastreamsignal@genesys.com
|
|
17
|
+
* Client Signaling and Streaming Team (STREAM).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={},n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof o<"u"?o:typeof self<"u"?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{l as a,n as c,r as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function r(e,t=100){return setTimeout(e,t)}export{r as a,n as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as G}from"./index-CWixJ8vL.js";function $(w,c){for(var m=0;m<c.length;m++){const d=c[m];if(typeof d!="string"&&!Array.isArray(d)){for(const y in d)if(y!=="default"&&!(y in w)){const p=Object.getOwnPropertyDescriptor(d,y);p&&Object.defineProperty(w,y,p.get?p:{enumerable:!0,get:()=>d[y]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var E={exports:{}},U;function X(){return U||(U=1,function(w,c){var m={},d=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof m<"u"&&m,y=function(){function v(){this.fetch=!1,this.DOMException=d.DOMException}return v.prototype=d,new v}();(function(v){(function(u){var a=typeof v<"u"&&v||typeof self<"u"&&self||typeof a<"u"&&a,f={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function S(e){return e&&DataView.prototype.isPrototypeOf(e)}if(f.arrayBuffer)var F=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],I=ArrayBuffer.isView||function(e){return e&&F.indexOf(Object.prototype.toString.call(e))>-1};function _(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function T(e){return typeof e!="string"&&(e=String(e)),e}function B(e){var t={next:function(){var r=e.shift();return{done:r===void 0,value:r}}};return f.iterable&&(t[Symbol.iterator]=function(){return t}),t}function s(e){this.map={},e instanceof s?e.forEach(function(t,r){this.append(r,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}s.prototype.append=function(e,t){e=_(e),t=T(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},s.prototype.delete=function(e){delete this.map[_(e)]},s.prototype.get=function(e){return e=_(e),this.has(e)?this.map[e]:null},s.prototype.has=function(e){return this.map.hasOwnProperty(_(e))},s.prototype.set=function(e,t){this.map[_(e)]=T(t)},s.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},s.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),B(e)},s.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),B(e)},s.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),B(e)},f.iterable&&(s.prototype[Symbol.iterator]=s.prototype.entries);function O(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function D(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function M(e){var t=new FileReader,r=D(t);return t.readAsArrayBuffer(e),r}function q(e){var t=new FileReader,r=D(t);return t.readAsText(e),r}function H(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}function x(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:f.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:f.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():f.arrayBuffer&&f.blob&&S(e)?(this._bodyArrayBuffer=x(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||I(e))?this._bodyArrayBuffer=x(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var e=O(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=O(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(M)}),this.text=function(){var e=O(this);if(e)return e;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(H(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(e){var t=e.toUpperCase();return L.indexOf(t)>-1?t:e}function b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var r=t.body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new s(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!r&&e._bodyInit!=null&&(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new s(t.headers)),this.method=C(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})};function k(e){var t=new FormData;return e.trim().split("&").forEach(function(r){if(r){var n=r.split("="),i=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(o))}}),t}function N(e){var t=new s,r=e.replace(/\r?\n[\t ]+/g," ");return r.split("\r").map(function(n){return n.indexOf(`
|
|
2
|
+
`)===0?n.substr(1,n.length):n}).forEach(function(n){var i=n.split(":"),o=i.shift().trim();if(o){var g=i.join(":").trim();t.append(o,g)}}),t}R.call(b.prototype);function l(e,t){if(!(this instanceof l))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new s(t.headers),this.url=t.url||"",this._initBody(e)}R.call(l.prototype),l.prototype.clone=function(){return new l(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},l.error=function(){var e=new l(null,{status:0,statusText:""});return e.type="error",e};var V=[301,302,303,307,308];l.redirect=function(e,t){if(V.indexOf(t)===-1)throw new RangeError("Invalid status code");return new l(null,{status:t,headers:{location:e}})},u.DOMException=a.DOMException;try{new u.DOMException}catch{u.DOMException=function(t,r){this.message=t,this.name=r;var n=Error(t);this.stack=n.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function P(e,t){return new Promise(function(r,n){var i=new b(e,t);if(i.signal&&i.signal.aborted)return n(new u.DOMException("Aborted","AbortError"));var o=new XMLHttpRequest;function g(){o.abort()}o.onload=function(){var h={status:o.status,statusText:o.statusText,headers:N(o.getAllResponseHeaders()||"")};h.url="responseURL"in o?o.responseURL:h.headers.get("X-Request-URL");var A="response"in o?o.response:o.responseText;setTimeout(function(){r(new l(A,h))},0)},o.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){n(new u.DOMException("Aborted","AbortError"))},0)};function z(h){try{return h===""&&a.location.href?a.location.href:h}catch{return h}}o.open(i.method,z(i.url),!0),i.credentials==="include"?o.withCredentials=!0:i.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(f.blob?o.responseType="blob":f.arrayBuffer&&i.headers.get("Content-Type")&&i.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(o.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof s)?Object.getOwnPropertyNames(t.headers).forEach(function(h){o.setRequestHeader(h,T(t.headers[h]))}):i.headers.forEach(function(h,A){o.setRequestHeader(A,h)}),i.signal&&(i.signal.addEventListener("abort",g),o.onreadystatechange=function(){o.readyState===4&&i.signal.removeEventListener("abort",g)}),o.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}return P.polyfill=!0,a.fetch||(a.fetch=P,a.Headers=s,a.Request=b,a.Response=l),u.Headers=s,u.Request=b,u.Response=l,u.fetch=P,u})({})})(y),y.fetch.ponyfill=!0,delete y.fetch.polyfill;var p=d.fetch?d:y;c=p.fetch,c.default=p.fetch,c.fetch=p.fetch,c.Headers=p.Headers,c.Request=p.Request,c.Response=p.Response,w.exports=c}(E,E.exports)),E.exports}var j=X();const J=G(j),Q=$({__proto__:null,default:J},[j]);export{Q as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(t){return t.charAt(0).toUpperCase()+t.slice(1)}export{e as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(n,a=-1/0,i=1/0){return isNaN(n)?NaN:Math.min(Math.max(n,a),i)}export{t as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e="No data available",t="Scroll Left",o="Scroll Right",n="Select All Table Rows",s="Select Table Row",l="Sorted Ascending",c="Sorted Descending",r="Table Options",d="{headerContent}. The table is not currently sorted by this column. Click the column header to sort the table by this column in ascending order",i="{headerContent}. The table is currently sorted by this column in ascending order. Click the column header to sort the table by this column in descending order",a="{headerContent}. The table is currently sorted by this column in descending order. Click the column header to sort the table by this column in ascending order",h="{headerContent}. The table is currently sorted by this column in descending order. Click the column header to not sort the table by this column",b={emptyMessage:e,scrollLeft:t,scrollRight:o,selectAllTableRows:n,selectTableRow:s,sortAsc:l,sortDesc:c,tableOptions:r,noColumnSort:d,ascendingColumnSort:i,descendingColumnSort:a,descendingColumnSortIncludeUnsorted:h};export{b as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e="Page",a=" of {totalPages, number}",t="First page",g="Previous page",o="Next page",s="Last page",n="Page {currentPage, number} of {totalPages, number}",p="Go to page",P="Page {pageNumber}",c="Page {pageSelected} selected",r={page:e,totalPages:a,firstPage:t,previousPage:g,nextPage:o,lastPage:s,pageInputLabel:n,goToPage:p,pageNumber:P,pageSelected:c};export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t="Bold",o="Italic",n="Underline",e="Strike",i="Code Block",l="Block Quote",s="Ordered List",c="Bullet List",r="Clear Formatting",a="Undo",d="Redo",g="Rich Style Dropdown",h="Rich Style",k="Link",u="Insert",b="Cancel",p="Link Address",y="Text to display",A="Text Highlight",L="No Highlight",m="Orange",x="Coral",S="Pear",D="Mango",H="Raspberry",B="Azure Blue",R="Mineral",C="Island",T="Additional Actions",w={bold:t,italic:o,underline:n,strike:e,codeblock:i,blockQuote:l,orderedList:s,bulletList:c,clearFormatting:r,undo:a,redo:d,delete:"Delete",richStyleDropdown:g,richStyle:h,link:k,insert:u,cancel:b,linkAddress:p,textToDisplay:y,textHighlight:A,noHighlight:L,orange:m,coral:x,pear:S,mango:D,raspberry:H,blue:B,mineral:R,island:C,additionalActions:T};export{w as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e="Create New Tab",o="Scroll Left",t="Scroll Right",s="Tab Options for {tabTitle}",r="Maximum number of tabs created has been reached",c="Toggle sort mode using space",l="Sort mode on, use the left and right arrow keys to reorder tabs. Press space or enter key to complete sort. Press escape key to cancel sort",a="Sort complete",n="Sort cancelled",b={createNewTab:e,scrollLeft:o,scrollRight:t,options:s,disableNewTab:r,toggleSort:c,sortModeOn:l,sortComplete:a,sortCancelled:n};export{b as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a(r,t){const n=t.currentTarget;let e=t.target;for(;e!==n&&e!==null;){if(e.matches(r))return!0;e=e.parentElement}return!1}export{a as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function l(e){return e.nodeType===Node.DOCUMENT_NODE||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e:e.ownerDocument}function u(e,i){let r=null,t=e.getRootNode(),o;for(;t&&t!==r&&!o;){const n=l(t);o=n==null?void 0:n.getElementById(i),r=t,t=t.getRootNode()}return o}export{u as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const Bt=["top","right","bottom","left"],_=Math.min,R=Math.max,ot=Math.round,nt=Math.floor,k=t=>({x:t,y:t}),Ht={left:"right",right:"left",bottom:"top",top:"bottom"},Nt={start:"end",end:"start"};function at(t,e,n){return R(t,_(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function I(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Ct(t){return t==="x"?"y":"x"}function mt(t){return t==="y"?"height":"width"}function Y(t){return["top","bottom"].includes(I(t))?"y":"x"}function ht(t){return Ct(Y(t))}function Vt(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=ht(t),r=mt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function $t(t){const e=it(t);return[ut(t),e,ut(e)]}function ut(t){return t.replace(/start|end/g,e=>Nt[e])}function zt(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function _t(t,e,n,o){const i=Q(t);let r=zt(I(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(ut)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>Ht[e])}function It(t){return{top:0,right:0,bottom:0,left:0,...t}}function Tt(t){return typeof t!="number"?It(t):{top:t,right:t,bottom:t,left:t}}function st(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function yt(t,e,n){let{reference:o,floating:i}=t;const r=Y(e),s=ht(e),c=mt(s),l=I(e),f=r==="y",a=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let u;switch(l){case"top":u={x:a,y:o.y-i.height};break;case"bottom":u={x:a,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:d};break;case"left":u={x:o.x-i.width,y:d};break;default:u={x:o.x,y:o.y}}switch(Q(e)){case"start":u[s]-=h*(n&&f?-1:1);break;case"end":u[s]+=h*(n&&f?-1:1);break}return u}const jt=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:d}=yt(f,o,l),h=o,u={},m=0;for(let g=0;g<c.length;g++){const{name:w,fn:p}=c[g],{x,y,data:b,reset:v}=await p({x:a,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:u,rects:f,platform:s,elements:{reference:t,floating:e}});a=x??a,d=y??d,u={...u,[w]:{...u[w],...b}},v&&m<=50&&(m++,typeof v=="object"&&(v.placement&&(h=v.placement),v.rects&&(f=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:a,y:d}=yt(f,h,l)),g=-1)}return{x:a,y:d,placement:h,strategy:i,middlewareData:u}};async function G(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:f="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:h=!1,padding:u=0}=X(e,t),m=Tt(u),w=c[h?d==="floating"?"reference":"floating":d],p=st(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:a,strategy:l})),x=d==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=st(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:y,strategy:l}):x);return{top:(p.top-v.top+m.top)/b.y,bottom:(v.bottom-p.bottom+m.bottom)/b.y,left:(p.left-v.left+m.left)/b.x,right:(v.right-p.right+m.right)/b.x}}const Yt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:f,padding:a=0}=X(t,e)||{};if(f==null)return{};const d=Tt(a),h={x:n,y:o},u=ht(i),m=mt(u),g=await s.getDimensions(f),w=u==="y",p=w?"top":"left",x=w?"bottom":"right",y=w?"clientHeight":"clientWidth",b=r.reference[m]+r.reference[u]-h[u]-r.floating[m],v=h[u]-r.reference[u],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let A=T?T[y]:0;(!A||!await(s.isElement==null?void 0:s.isElement(T)))&&(A=c.floating[y]||r.floating[m]);const B=b/2-v/2,S=A/2-g[m]/2-1,E=_(d[p],S),N=_(d[x],S),P=E,V=A-g[m]-N,O=A/2-g[m]/2+B,U=at(P,O,V),H=!l.arrow&&Q(i)!=null&&O!==U&&r.reference[m]/2-(O<P?E:N)-g[m]/2<0,F=H?O<P?O-P:O-V:0;return{[u]:h[u]+F,data:{[u]:U,centerOffset:O-U-F,...H&&{alignmentOffset:F}},reset:H}}}),qt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:f}=e,{mainAxis:a=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=I(i),x=Y(c),y=I(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(f.floating)),v=h||(y||!g?[it(c)]:$t(c)),T=m!=="none";!h&&T&&v.push(..._t(c,g,m,b));const A=[c,...v],B=await G(e,w),S=[];let E=((o=r.flip)==null?void 0:o.overflows)||[];if(a&&S.push(B[p]),d){const O=Vt(i,s,b);S.push(B[O[0]],B[O[1]])}if(E=[...E,{placement:i,overflows:S}],!S.every(O=>O<=0)){var N,P;const O=(((N=r.flip)==null?void 0:N.index)||0)+1,U=A[O];if(U)return{data:{index:O,overflows:E},reset:{placement:U}};let H=(P=E.filter(F=>F.overflows[0]<=0).sort((F,$)=>F.overflows[1]-$.overflows[1])[0])==null?void 0:P.placement;if(!H)switch(u){case"bestFit":{var V;const F=(V=E.filter($=>{if(T){const z=Y($.placement);return z===x||z==="y"}return!0}).map($=>[$.placement,$.overflows.filter(z=>z>0).reduce((z,Wt)=>z+Wt,0)]).sort(($,z)=>$[1]-z[1])[0])==null?void 0:V[0];F&&(H=F);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function vt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function bt(t){return Bt.some(e=>t[e]>=0)}const Xt=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await G(e,{...i,elementContext:"reference"}),s=vt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:bt(s)}}}case"escaped":{const r=await G(e,{...i,altBoundary:!0}),s=vt(r,n.floating);return{data:{escapedOffsets:s,escaped:bt(s)}}}default:return{}}}}};async function Ut(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=I(n),c=Q(n),l=Y(n)==="y",f=["left","top"].includes(s)?-1:1,a=r&&l?-1:1,d=X(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof m=="number"&&(u=c==="end"?m*-1:m),l?{x:u*a,y:h*f}:{x:h*f,y:u*a}}const Kt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await Ut(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Gt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:p,y:x}=w;return{x:p,y:x}}},...l}=X(t,e),f={x:n,y:o},a=await G(e,l),d=Y(I(i)),h=Ct(d);let u=f[h],m=f[d];if(r){const w=h==="y"?"top":"left",p=h==="y"?"bottom":"right",x=u+a[w],y=u-a[p];u=at(x,u,y)}if(s){const w=d==="y"?"top":"left",p=d==="y"?"bottom":"right",x=m+a[w],y=m-a[p];m=at(x,m,y)}const g=c.fn({...e,[h]:u,[d]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[h]:r,[d]:s}}}}}},Jt=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...f}=X(t,e),a=await G(e,f),d=I(i),h=Q(i),u=Y(i)==="y",{width:m,height:g}=r.floating;let w,p;d==="top"||d==="bottom"?(w=d,p=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(p=d,w=h==="end"?"top":"bottom");const x=g-a.top-a.bottom,y=m-a.left-a.right,b=_(g-a[w],x),v=_(m-a[p],y),T=!e.middlewareData.shift;let A=b,B=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(B=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(A=x),T&&!h){const E=R(a.left,0),N=R(a.right,0),P=R(a.top,0),V=R(a.bottom,0);u?B=m-2*(E!==0||N!==0?E+N:R(a.left,a.right)):A=g-2*(P!==0||V!==0?P+V:R(a.top,a.bottom))}await l({...e,availableWidth:B,availableHeight:A});const S=await s.getDimensions(c.floating);return m!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}};function rt(){return typeof window<"u"}function Z(t){return Et(t)?(t.nodeName||"").toLowerCase():"#document"}function C(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function W(t){var e;return(e=(Et(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Et(t){return rt()?t instanceof Node||t instanceof C(t).Node:!1}function L(t){return rt()?t instanceof Element||t instanceof C(t).Element:!1}function M(t){return rt()?t instanceof HTMLElement||t instanceof C(t).HTMLElement:!1}function At(t){return!rt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof C(t).ShadowRoot}function et(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=D(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Qt(t){return["table","td","th"].includes(Z(t))}function ct(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function gt(t){const e=pt(),n=L(t)?D(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Zt(t){let e=j(t);for(;M(e)&&!J(e);){if(gt(e))return e;if(ct(e))return null;e=j(e)}return null}function pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(Z(t))}function D(t){return C(t).getComputedStyle(t)}function lt(t){return L(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function j(t){if(Z(t)==="html")return t;const e=t.assignedSlot||t.parentNode||At(t)&&t.host||W(t);return At(e)?e.host:e}function Lt(t){const e=j(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:M(e)&&et(e)?e:Lt(e)}function tt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Lt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=C(i);if(r){const c=dt(s);return e.concat(s,s.visualViewport||[],et(i)?i:[],c&&n?tt(c):[])}return e.concat(i,tt(i,[],n))}function dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Dt(t){const e=D(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=M(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ot(n)!==r||ot(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function wt(t){return L(t)?t:t.contextElement}function K(t){const e=wt(t);if(!M(e))return k(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Dt(e);let s=(r?ot(n.width):n.width)/o,c=(r?ot(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const te=k(0);function St(t){const e=C(t);return!pt()||!e.visualViewport?te:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ee(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==C(t)?!1:e}function q(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=wt(t);let s=k(1);e&&(o?L(o)&&(s=K(o)):s=K(t));const c=ee(r,n,o)?St(r):k(0);let l=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,a=i.width/s.x,d=i.height/s.y;if(r){const h=C(r),u=o&&L(o)?C(o):o;let m=h,g=dt(m);for(;g&&o&&u!==m;){const w=K(g),p=g.getBoundingClientRect(),x=D(g),y=p.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,b=p.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,f*=w.y,a*=w.x,d*=w.y,l+=y,f+=b,m=C(g),g=dt(m)}}return st({width:a,height:d,x:l,y:f})}function xt(t,e){const n=lt(t).scrollLeft;return e?e.left+n:q(W(t)).left+n}function Pt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:xt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function ne(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=W(o),c=e?ct(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},f=k(1);const a=k(0),d=M(o);if((d||!d&&!r)&&((Z(o)!=="body"||et(s))&&(l=lt(o)),M(o))){const u=q(o);f=K(o),a.x=u.x+o.clientLeft,a.y=u.y+o.clientTop}const h=s&&!d&&!r?Pt(s,l,!0):k(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+a.x+h.x,y:n.y*f.y-l.scrollTop*f.y+a.y+h.y}}function oe(t){return Array.from(t.getClientRects())}function ie(t){const e=W(t),n=lt(t),o=t.ownerDocument.body,i=R(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=R(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+xt(t);const c=-n.scrollTop;return D(o).direction==="rtl"&&(s+=R(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function se(t,e){const n=C(t),o=W(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const f=pt();(!f||f&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function re(t,e){const n=q(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=M(t)?K(t):k(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,f=o*r.y;return{width:s,height:c,x:l,y:f}}function Ot(t,e,n){let o;if(e==="viewport")o=se(t,n);else if(e==="document")o=ie(W(t));else if(L(e))o=re(e,n);else{const i=St(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return st(o)}function Ft(t,e){const n=j(t);return n===e||!L(n)||J(n)?!1:D(n).position==="fixed"||Ft(n,e)}function ce(t,e){const n=e.get(t);if(n)return n;let o=tt(t,[],!1).filter(c=>L(c)&&Z(c)!=="body"),i=null;const r=D(t).position==="fixed";let s=r?j(t):t;for(;L(s)&&!J(s);){const c=D(s),l=gt(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||et(s)&&!l&&Ft(t,s))?o=o.filter(a=>a!==s):i=c,s=j(s)}return e.set(t,o),o}function le(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ct(e)?[]:ce(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((f,a)=>{const d=Ot(e,a,i);return f.top=R(d.top,f.top),f.right=_(d.right,f.right),f.bottom=_(d.bottom,f.bottom),f.left=R(d.left,f.left),f},Ot(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function fe(t){const{width:e,height:n}=Dt(t);return{width:e,height:n}}function ae(t,e,n){const o=M(e),i=W(e),r=n==="fixed",s=q(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=k(0);if(o||!o&&!r)if((Z(e)!=="body"||et(i))&&(c=lt(e)),o){const h=q(e,!0,r,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&(l.x=xt(i));const f=i&&!o&&!r?Pt(i,c):k(0),a=s.left+c.scrollLeft-l.x-f.x,d=s.top+c.scrollTop-l.y-f.y;return{x:a,y:d,width:s.width,height:s.height}}function ft(t){return D(t).position==="static"}function Rt(t,e){if(!M(t)||D(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return W(t)===n&&(n=n.ownerDocument.body),n}function kt(t,e){const n=C(t);if(ct(t))return n;if(!M(t)){let i=j(t);for(;i&&!J(i);){if(L(i)&&!ft(i))return i;i=j(i)}return n}let o=Rt(t,e);for(;o&&Qt(o)&&ft(o);)o=Rt(o,e);return o&&J(o)&&ft(o)&&!gt(o)?n:o||Zt(t)||n}const ue=async function(t){const e=this.getOffsetParent||kt,n=this.getDimensions,o=await n(t.floating);return{reference:ae(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function de(t){return D(t).direction==="rtl"}const me={convertOffsetParentRelativeRectToViewportRelativeRect:ne,getDocumentElement:W,getClippingRect:le,getOffsetParent:kt,getElementRects:ue,getClientRects:oe,getDimensions:fe,getScale:K,isElement:L,isRTL:de};function Mt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function he(t,e){let n=null,o;const i=W(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const f=t.getBoundingClientRect(),{left:a,top:d,width:h,height:u}=f;if(c||e(),!h||!u)return;const m=nt(d),g=nt(i.clientWidth-(a+h)),w=nt(i.clientHeight-(d+u)),p=nt(a),y={rootMargin:-m+"px "+-g+"px "+-w+"px "+-p+"px",threshold:R(0,_(1,l))||1};let b=!0;function v(T){const A=T[0].intersectionRatio;if(A!==l){if(!b)return s();A?s(!1,A):o=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Mt(f,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(v,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return s(!0),r}function ge(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=wt(t),a=i||r?[...f?tt(f):[],...tt(e)]:[];a.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const d=f&&c?he(f,n):null;let h=-1,u=null;s&&(u=new ResizeObserver(p=>{let[x]=p;x&&x.target===f&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=u)==null||y.observe(e)})),n()}),f&&!l&&u.observe(f),u.observe(e));let m,g=l?q(t):null;l&&w();function w(){const p=q(t);g&&!Mt(g,p)&&n(),g=p,m=requestAnimationFrame(w)}return n(),()=>{var p;a.forEach(x=>{i&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),d==null||d(),(p=u)==null||p.disconnect(),u=null,l&&cancelAnimationFrame(m)}}const pe=G,we=Kt,xe=Gt,ye=qt,ve=Jt,be=Xt,Ae=Yt,Oe=(t,e,n)=>{const o=new Map,i={platform:me,...n},r={...i.platform,_c:o};return jt(t,e,{...i,platform:r})};export{ge as a,Ae as b,Oe as c,ve as d,pe as e,ye as f,be as h,we as o,xe as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(f){f&&f.focus()}export{o as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function u(i,n=this){function s(o){if(!o||o===document||o===window)return null;o.assignedSlot&&(o=o.assignedSlot);const t=o.closest(i);return t||s(o.getRootNode().host)}return s(n)}export{u as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function i(n,u){function s(o){if(!o||o===document||o===window)return null;o.assignedSlot&&(o=o.assignedSlot);const t=o.closest(u);return t||s(o.getRootNode().host)}return s(n)}export{i as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(n,o){for(const t of n.children)if(t.matches(`[slot=${o}]`))return t;return null}export{r as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function n(e,o){var t;return(t=e.querySelector(`[slot=${o}]`))===null||t===void 0?void 0:t.textContent}export{n as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as c}from"./index-4f1356d9-DSfDpFAA.js";class o{constructor(a){c.includes(a)?this.locale=a:(console.warn(`Locale "${a}" is not supported. Falling back to English translation.`),this.locale="en")}formatDate(a,i,r={}){return a.toLocaleDateString(this.locale,Object.assign({},r,{dateStyle:i}))}formatTime(a,i,r={}){return a.toLocaleTimeString(this.locale,Object.assign({},r,{timeStyle:i}))}formatDateTime(a,i,r={}){return a.toLocaleString(this.locale,Object.assign({},r,{dateStyle:i,timeStyle:i}))}}const A=["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montserrat","America/Nassau","America/New_York","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","CET","CST6CDT","EET","EST","EST5EDT","Etc/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT+8","Etc/GMT+9","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-14","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Etc/UTC","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zurich","HST","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","MET","MST","MST7MDT","PST8PDT","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis","UTC","WET"];function t(e,a){return A.includes(e)?e:a}export{o as D,t as g};
|