@flamingo-stack/openframe-frontend-core 0.0.710 → 0.0.712
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/dist/chunk-2NASBO7O.js +1137 -0
- package/dist/{chunk-RQRX4YC3.cjs → chunk-2RKFMUNW.cjs} +46 -46
- package/dist/chunk-2Y7QZAB2.cjs +158 -0
- package/dist/chunk-34I6XI3N.js +136 -0
- package/dist/chunk-3K5ZLZE7.js +292 -0
- package/dist/chunk-3LU4UFPS.cjs +14 -0
- package/dist/{chunk-YBUT4AMG.cjs → chunk-3RKBJT6K.cjs} +8 -6
- package/dist/{chunk-LNW45N2C.js → chunk-3SEEGNRE.js} +35 -27
- package/dist/{chunk-L6Y6OOKG.cjs → chunk-3UAJLO5U.cjs} +41 -39
- package/dist/chunk-4HJRHEXD.cjs +1612 -0
- package/dist/{chunk-JPG7OHEG.js → chunk-4QFWGLZO.js} +1 -1
- package/dist/chunk-4R2L3DSA.js +14 -0
- package/dist/{chunk-36BCTE7D.js → chunk-4UYKNOZG.js} +12 -10
- package/dist/{chunk-DA5UDTLG.js → chunk-5SDELRH3.js} +5 -5
- package/dist/{chunk-CZSZSDD4.js → chunk-5Y72YQEK.js} +22 -113
- package/dist/{chunk-KUC673HM.js → chunk-6T3BTD6Q.js} +204 -982
- package/dist/{chunk-F57ECE2I.js → chunk-6YPTUHM7.js} +4 -4
- package/dist/{chunk-TDYIREDJ.js → chunk-7HNYYNKE.js} +28 -22
- package/dist/{chunk-2G7UYK35.cjs → chunk-7NSU5EQD.cjs} +57 -148
- package/dist/chunk-AAYNCJMW.cjs +48 -0
- package/dist/{chunk-FXJ3WWUB.js → chunk-ADBE7QF3.js} +5 -252
- package/dist/chunk-AECTRMGQ.cjs +334 -0
- package/dist/chunk-AGVXKD4K.js +334 -0
- package/dist/chunk-AL2GUHAJ.cjs +18 -0
- package/dist/{chunk-WMX26HB5.js → chunk-APJZBDQN.js} +12 -12
- package/dist/chunk-AUMKE74M.cjs +16 -0
- package/dist/chunk-B4NCVYEQ.cjs +292 -0
- package/dist/{chunk-2RNB5DTN.cjs → chunk-BXSRTBLU.cjs} +82 -54
- package/dist/chunk-CMGFZHCN.js +233 -0
- package/dist/chunk-CMZ3QTFQ.js +1207 -0
- package/dist/chunk-CPA2CKRZ.cjs +125 -0
- package/dist/{chunk-B73373AG.cjs → chunk-CSCJU6YC.cjs} +35 -33
- package/dist/chunk-CYUUHFXL.js +41 -0
- package/dist/chunk-DC4RTYWK.cjs +1122 -0
- package/dist/{chunk-6YKAT7NV.js → chunk-DDWFCWOE.js} +5 -7
- package/dist/{chunk-F5FF4DME.js → chunk-EFNKS5W4.js} +322 -428
- package/dist/{chunk-2KXTOP6G.cjs → chunk-EOKSKJSS.cjs} +25 -83
- package/dist/{chunk-6NTPY5QA.cjs → chunk-ETYLOZOB.cjs} +978 -2413
- package/dist/chunk-F5BPGWGT.cjs +931 -0
- package/dist/{chunk-4L6XCMOU.js → chunk-FCAVAEHF.js} +8277 -9990
- package/dist/chunk-FFT56TYB.cjs +401 -0
- package/dist/chunk-FYEJTF5Y.js +125 -0
- package/dist/chunk-G3GRYDMS.js +16 -0
- package/dist/{chunk-MR3A4MZV.js → chunk-G3OMVCID.js} +13 -7
- package/dist/chunk-G6OHIX5C.cjs +100 -0
- package/dist/{chunk-UDFRUKLC.cjs → chunk-GEDY7HQI.cjs} +2 -2
- package/dist/chunk-GQ7JJUIT.cjs +1207 -0
- package/dist/chunk-H3PKYE4N.js +18 -0
- package/dist/{chunk-CNWOMQQJ.js → chunk-H5R7U2D2.js} +206 -5
- package/dist/{chunk-SEXWHIMS.cjs → chunk-HETQETPV.cjs} +9648 -9680
- package/dist/{chunk-Y2GSOUCS.cjs → chunk-HWVUR735.cjs} +2 -2
- package/dist/chunk-II4QMH26.cjs +35 -0
- package/dist/chunk-ILNN6QRW.js +1612 -0
- package/dist/chunk-IYVFSLWJ.js +931 -0
- package/dist/{chunk-3AHTOSXJ.cjs → chunk-JGCFRTND.cjs} +23 -17
- package/dist/chunk-JHQ334WS.js +655 -0
- package/dist/{chunk-WCVZCGK5.cjs → chunk-JO5TLJPM.cjs} +129 -907
- package/dist/{chunk-JRU2CXLB.cjs → chunk-JVCAK4W3.cjs} +210 -9
- package/dist/chunk-KBJJQFYU.js +1122 -0
- package/dist/chunk-KEKCQENI.js +48 -0
- package/dist/chunk-KHXZFLIN.cjs +41 -0
- package/dist/chunk-KT3U3ZRP.cjs +1137 -0
- package/dist/chunk-L2VUINHN.js +35 -0
- package/dist/{chunk-P42V6N34.cjs → chunk-L6ZQGWCX.cjs} +4521 -6234
- package/dist/{chunk-PLYEKV3N.cjs → chunk-MA4Q5RBP.cjs} +6 -6
- package/dist/{chunk-SS5MBHDP.js → chunk-N67XG5GY.js} +10 -8
- package/dist/chunk-NPAQSMRY.js +2087 -0
- package/dist/{chunk-I3ST4PLM.js → chunk-NQWJAOHO.js} +6 -4
- package/dist/{chunk-QAOFMK2A.cjs → chunk-OBZJICEA.cjs} +8 -8
- package/dist/{chunk-6IW7TWPV.js → chunk-OPYODNV2.js} +3 -3
- package/dist/chunk-P3JMAMHP.js +401 -0
- package/dist/chunk-PPXR22YC.cjs +2087 -0
- package/dist/chunk-PSVSEN4J.cjs +655 -0
- package/dist/{chunk-4UM2ETLM.js → chunk-RBYVFPER.js} +74 -46
- package/dist/{chunk-PO33GZVY.js → chunk-ROBQ5TR7.js} +10549 -10581
- package/dist/{chunk-ZCLBYT2V.cjs → chunk-T3CLXR43.cjs} +114 -220
- package/dist/{chunk-FI6GMDO7.js → chunk-TTVOLEUS.js} +3605 -5040
- package/dist/{chunk-LM7TXMLU.cjs → chunk-ULWVKHSI.cjs} +8 -255
- package/dist/{chunk-6I4ZAFO2.cjs → chunk-UT3ODMBU.cjs} +15 -15
- package/dist/chunk-WANCBTUE.js +71 -0
- package/dist/{chunk-BIZNSF3U.cjs → chunk-WBNAEYTQ.cjs} +2 -51
- package/dist/chunk-WFPCCBOM.cjs +71 -0
- package/dist/chunk-WI6FHKD7.js +158 -0
- package/dist/chunk-WMNCVLES.js +100 -0
- package/dist/{chunk-UT4YHQZW.js → chunk-WSDT7LYL.js} +0 -49
- package/dist/chunk-WVOTC7HW.cjs +136 -0
- package/dist/{chunk-AOWDNSTM.cjs → chunk-WWJG4GVG.cjs} +93 -87
- package/dist/chunk-XXBLN4BP.cjs +233 -0
- package/dist/{chunk-4IBPRIQH.js → chunk-YBQQNDC7.js} +1 -1
- package/dist/{chunk-LFFB6EMB.js → chunk-YBS5QGON.js} +70 -128
- package/dist/{chunk-NSGXARGJ.cjs → chunk-Z5SWJW5Q.cjs} +125 -117
- package/dist/{chunk-OJLR5MEO.cjs → chunk-ZX7SCPLO.cjs} +6 -8
- package/dist/cloud-tenants-KZUZGD4A.cjs +117 -0
- package/dist/cloud-tenants-OGLVVQ7X.js +117 -0
- package/dist/components/case-studies/index.cjs +45 -29
- package/dist/components/case-studies/index.js +32 -16
- package/dist/components/chat/ask-prompts.d.ts +64 -0
- package/dist/components/chat/ask-prompts.d.ts.map +1 -0
- package/dist/components/chat/entity-cards/case-study-card.d.ts +6 -3
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts +4 -1
- package/dist/components/chat/hooks/use-chat-dialog-manager.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +27 -8
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +57 -38
- package/dist/components/chat/quick-action-chip.d.ts +7 -3
- package/dist/components/chat/quick-action-chip.d.ts.map +1 -1
- package/dist/components/chat/types/component.types.d.ts +4 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/types/unified-chat-state.types.d.ts +12 -0
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +29 -13
- package/dist/components/contact/index.js +28 -12
- package/dist/components/docs/index.cjs +33 -16
- package/dist/components/docs/index.js +33 -16
- package/dist/components/docs/use-scroll-spy.d.ts +23 -1
- package/dist/components/docs/use-scroll-spy.d.ts.map +1 -1
- package/dist/components/embeds/index.cjs +29 -13
- package/dist/components/embeds/index.js +28 -12
- package/dist/components/faq/faq-section.d.ts +8 -1
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +30 -14
- package/dist/components/faq/index.js +29 -13
- package/dist/components/features/array-entry-manager.d.ts +5 -1
- package/dist/components/features/array-entry-manager.d.ts.map +1 -1
- package/dist/components/features/board/board.d.ts +2 -0
- package/dist/components/features/board/board.d.ts.map +1 -1
- package/dist/components/features/board/ticket-card.d.ts.map +1 -1
- package/dist/components/features/board/touch-board.d.ts +1 -1
- package/dist/components/features/board/touch-board.d.ts.map +1 -1
- package/dist/components/features/board/types.d.ts +3 -0
- package/dist/components/features/board/types.d.ts.map +1 -1
- package/dist/components/features/board/use-board-collapse.d.ts +6 -1
- package/dist/components/features/board/use-board-collapse.d.ts.map +1 -1
- package/dist/components/features/capability-explorer.d.ts +94 -0
- package/dist/components/features/capability-explorer.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/index.d.ts +14 -0
- package/dist/components/features/cloud-tenants/index.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-access-cell.d.ts +9 -0
- package/dist/components/features/cloud-tenants/tenant-access-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-cell.d.ts +8 -0
- package/dist/components/features/cloud-tenants/tenant-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-customer-cell.d.ts +9 -0
- package/dist/components/features/cloud-tenants/tenant-customer-cell.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-presentation.d.ts +42 -0
- package/dist/components/features/cloud-tenants/tenant-presentation.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenant-row.d.ts +22 -0
- package/dist/components/features/cloud-tenants/tenant-row.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenants-table-columns.d.ts +42 -0
- package/dist/components/features/cloud-tenants/tenants-table-columns.d.ts.map +1 -0
- package/dist/components/features/cloud-tenants/tenants-table-view.d.ts +26 -0
- package/dist/components/features/cloud-tenants/tenants-table-view.d.ts.map +1 -0
- package/dist/components/features/devices/device-last-online.d.ts +3 -0
- package/dist/components/features/devices/device-last-online.d.ts.map +1 -0
- package/dist/components/features/devices/device-name.d.ts +42 -0
- package/dist/components/features/devices/device-name.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selection-mode-radio.d.ts +26 -0
- package/dist/components/features/devices/device-selector/device-selection-mode-radio.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts +25 -0
- package/dist/components/features/devices/device-selector/device-selector-skeleton.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector.d.ts +38 -0
- package/dist/components/features/devices/device-selector/device-selector.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/device-selector.types.d.ts +133 -0
- package/dist/components/features/devices/device-selector/device-selector.types.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/narrowing.d.ts +13 -0
- package/dist/components/features/devices/device-selector/narrowing.d.ts.map +1 -0
- package/dist/components/features/devices/device-selector/use-device-selector.d.ts +17 -0
- package/dist/components/features/devices/device-selector/use-device-selector.d.ts.map +1 -0
- package/dist/components/features/devices/device-status.d.ts +23 -0
- package/dist/components/features/devices/device-status.d.ts.map +1 -0
- package/dist/components/features/devices/device-statuses.d.ts +40 -0
- package/dist/components/features/devices/device-statuses.d.ts.map +1 -0
- package/dist/components/features/devices/device-tags-filter-button.d.ts +22 -0
- package/dist/components/features/devices/device-tags-filter-button.d.ts.map +1 -0
- package/dist/components/features/devices/device-type-icon.d.ts +11 -0
- package/dist/components/features/devices/device-type-icon.d.ts.map +1 -0
- package/dist/components/features/devices/device-type-tile.d.ts +9 -0
- package/dist/components/features/devices/device-type-tile.d.ts.map +1 -0
- package/dist/components/features/devices/devices-filter-toolbar.d.ts +46 -0
- package/dist/components/features/devices/devices-filter-toolbar.d.ts.map +1 -0
- package/dist/components/features/devices/devices-grid-filters.d.ts +25 -0
- package/dist/components/features/devices/devices-grid-filters.d.ts.map +1 -0
- package/dist/components/features/devices/devices-grid.d.ts +12 -0
- package/dist/components/features/devices/devices-grid.d.ts.map +1 -0
- package/dist/components/features/devices/devices-list.d.ts +131 -0
- package/dist/components/features/devices/devices-list.d.ts.map +1 -0
- package/dist/components/features/devices/devices-panel-header.d.ts +46 -0
- package/dist/components/features/devices/devices-panel-header.d.ts.map +1 -0
- package/dist/components/features/devices/devices-panel-view.d.ts +79 -0
- package/dist/components/features/devices/devices-panel-view.d.ts.map +1 -0
- package/dist/components/features/devices/devices-table-columns.d.ts +76 -0
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -0
- package/dist/components/features/devices/devices-view-config.d.ts +25 -0
- package/dist/components/features/devices/devices-view-config.d.ts.map +1 -0
- package/dist/components/features/devices/index.d.ts +24 -0
- package/dist/components/features/devices/index.d.ts.map +1 -0
- package/dist/components/features/devices/types.d.ts +68 -0
- package/dist/components/features/devices/types.d.ts.map +1 -0
- package/dist/components/features/devices/use-tag-filter-modal.d.ts +50 -0
- package/dist/components/features/devices/use-tag-filter-modal.d.ts.map +1 -0
- package/dist/components/features/index.cjs +227 -12
- package/dist/components/features/index.d.ts +7 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +266 -51
- package/dist/components/features/knowledge-base/index.d.ts +7 -0
- package/dist/components/features/knowledge-base/index.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-article-view.d.ts +44 -0
- package/dist/components/features/knowledge-base/knowledge-base-article-view.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-item-icon.d.ts +13 -0
- package/dist/components/features/knowledge-base/knowledge-base-item-icon.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-status.d.ts +8 -0
- package/dist/components/features/knowledge-base/knowledge-base-status.d.ts.map +1 -0
- package/dist/components/features/knowledge-base/knowledge-base-table.d.ts +52 -0
- package/dist/components/features/knowledge-base/knowledge-base-table.d.ts.map +1 -0
- package/dist/components/features/logs/index.d.ts +12 -0
- package/dist/components/features/logs/index.d.ts.map +1 -0
- package/dist/components/features/logs/log-drawer.d.ts +29 -0
- package/dist/components/features/logs/log-drawer.d.ts.map +1 -0
- package/dist/components/features/logs/log-source-labels.d.ts +11 -0
- package/dist/components/features/logs/log-source-labels.d.ts.map +1 -0
- package/dist/components/features/logs/logs-page-view.d.ts +32 -0
- package/dist/components/features/logs/logs-page-view.d.ts.map +1 -0
- package/dist/components/features/logs/logs-table-columns.d.ts +15 -0
- package/dist/components/features/logs/logs-table-columns.d.ts.map +1 -0
- package/dist/components/features/logs/logs-table-view.d.ts +64 -0
- package/dist/components/features/logs/logs-table-view.d.ts.map +1 -0
- package/dist/components/features/logs/types.d.ts +52 -0
- package/dist/components/features/logs/types.d.ts.map +1 -0
- package/dist/components/features/policies/compute-policy-summary.d.ts +37 -0
- package/dist/components/features/policies/compute-policy-summary.d.ts.map +1 -0
- package/dist/components/features/policies/index.d.ts +8 -0
- package/dist/components/features/policies/index.d.ts.map +1 -0
- package/dist/components/features/policies/policies-table.d.ts +34 -0
- package/dist/components/features/policies/policies-table.d.ts.map +1 -0
- package/dist/components/features/policies/policy-summary-cards.d.ts +17 -0
- package/dist/components/features/policies/policy-summary-cards.d.ts.map +1 -0
- package/dist/components/features/policies/policy-table-row.d.ts +37 -0
- package/dist/components/features/policies/policy-table-row.d.ts.map +1 -0
- package/dist/components/features/remote-session/index.d.ts +8 -0
- package/dist/components/features/remote-session/index.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts +21 -0
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-chat-panel.d.ts +31 -0
- package/dist/components/features/remote-session/remote-desktop-chat-panel.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-fullscreen-toolbar.d.ts +21 -0
- package/dist/components/features/remote-session/remote-desktop-fullscreen-toolbar.d.ts.map +1 -0
- package/dist/components/features/remote-session/remote-desktop-view.d.ts +50 -0
- package/dist/components/features/remote-session/remote-desktop-view.d.ts.map +1 -0
- package/dist/components/features/software/index.d.ts +8 -0
- package/dist/components/features/software/index.d.ts.map +1 -0
- package/dist/components/features/software/package-managers.d.ts +30 -0
- package/dist/components/features/software/package-managers.d.ts.map +1 -0
- package/dist/components/features/software/package-search-field-placeholder.d.ts +7 -0
- package/dist/components/features/software/package-search-field-placeholder.d.ts.map +1 -0
- package/dist/components/features/software/schedule-fields.d.ts +34 -0
- package/dist/components/features/software/schedule-fields.d.ts.map +1 -0
- package/dist/components/features/software/software-action-copy.d.ts +25 -0
- package/dist/components/features/software/software-action-copy.d.ts.map +1 -0
- package/dist/components/features/software/software-action-form.d.ts +71 -0
- package/dist/components/features/software/software-action-form.d.ts.map +1 -0
- package/dist/components/features/software/software-row-fields.d.ts +23 -0
- package/dist/components/features/software/software-row-fields.d.ts.map +1 -0
- package/dist/components/features/software/software-row.d.ts +18 -0
- package/dist/components/features/software/software-row.d.ts.map +1 -0
- package/dist/components/features/sortable-list/index.d.ts +1 -0
- package/dist/components/features/sortable-list/index.d.ts.map +1 -1
- package/dist/components/features/sortable-list/sortable-drag-handle.d.ts +21 -0
- package/dist/components/features/sortable-list/sortable-drag-handle.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +133 -114
- package/dist/components/help-center-pages/index.js +58 -39
- package/dist/components/index.cjs +320 -82
- package/dist/components/index.js +451 -213
- package/dist/components/layout/page-heading.d.ts +12 -3
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +120 -98
- package/dist/components/meeting-scheduler/index.js +50 -28
- package/dist/components/navigation/index.cjs +36 -17
- package/dist/components/navigation/index.d.ts +3 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +36 -17
- package/dist/components/navigation/mingo-ai-button.d.ts +23 -10
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/sticky-section-nav.d.ts +14 -1
- package/dist/components/navigation/sticky-section-nav.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +32 -16
- package/dist/components/onboarding-guides/index.js +31 -15
- package/dist/components/product-demo/cast.d.ts +58 -0
- package/dist/components/product-demo/cast.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/cloud-tenants.d.ts +10 -0
- package/dist/components/product-demo/fixtures/cloud-tenants.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/devices.d.ts +14 -0
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/knowledge.d.ts +14 -0
- package/dist/components/product-demo/fixtures/knowledge.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/logs.d.ts +15 -0
- package/dist/components/product-demo/fixtures/logs.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/policies.d.ts +13 -0
- package/dist/components/product-demo/fixtures/policies.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/remote-session.d.ts +20 -0
- package/dist/components/product-demo/fixtures/remote-session.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/shared.d.ts +156 -0
- package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/software-update.d.ts +19 -0
- package/dist/components/product-demo/fixtures/software-update.d.ts.map +1 -0
- package/dist/components/product-demo/fixtures/tickets-board.d.ts +8 -0
- package/dist/components/product-demo/fixtures/tickets-board.d.ts.map +1 -0
- package/dist/components/product-demo/index.cjs +112 -0
- package/dist/components/product-demo/index.d.ts +6 -0
- package/dist/components/product-demo/index.d.ts.map +1 -0
- package/dist/components/product-demo/index.js +112 -0
- package/dist/components/product-demo/product-screen.d.ts +22 -0
- package/dist/components/product-demo/product-screen.d.ts.map +1 -0
- package/dist/components/product-demo/registry.d.ts +13 -0
- package/dist/components/product-demo/registry.d.ts.map +1 -0
- package/dist/components/product-demo/screen-keys.cjs +25 -0
- package/dist/components/product-demo/screen-keys.d.ts +27 -0
- package/dist/components/product-demo/screen-keys.d.ts.map +1 -0
- package/dist/components/product-demo/screen-keys.js +20 -0
- package/dist/components/product-demo/screens/cloud-tenants.d.ts +8 -0
- package/dist/components/product-demo/screens/cloud-tenants.d.ts.map +1 -0
- package/dist/components/product-demo/screens/devices.d.ts +10 -0
- package/dist/components/product-demo/screens/devices.d.ts.map +1 -0
- package/dist/components/product-demo/screens/knowledge.d.ts +9 -0
- package/dist/components/product-demo/screens/knowledge.d.ts.map +1 -0
- package/dist/components/product-demo/screens/logs.d.ts +4 -0
- package/dist/components/product-demo/screens/logs.d.ts.map +1 -0
- package/dist/components/product-demo/screens/policies.d.ts +8 -0
- package/dist/components/product-demo/screens/policies.d.ts.map +1 -0
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts +11 -0
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts.map +1 -0
- package/dist/components/product-demo/screens/remote-session.d.ts +8 -0
- package/dist/components/product-demo/screens/remote-session.d.ts.map +1 -0
- package/dist/components/product-demo/screens/software-update.d.ts +12 -0
- package/dist/components/product-demo/screens/software-update.d.ts.map +1 -0
- package/dist/components/product-demo/screens/tickets-board.d.ts +4 -0
- package/dist/components/product-demo/screens/tickets-board.d.ts.map +1 -0
- package/dist/components/product-demo/types.d.ts +9 -0
- package/dist/components/product-demo/types.d.ts.map +1 -0
- package/dist/components/related-content/index.cjs +14 -8
- package/dist/components/related-content/index.js +13 -7
- package/dist/components/tickets/index.cjs +36 -20
- package/dist/components/tickets/index.js +35 -19
- package/dist/components/ui/file-manager/index.cjs +38 -34
- package/dist/components/ui/file-manager/index.js +8 -4
- package/dist/components/ui/index.cjs +57 -17
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +141 -101
- package/dist/components/ui/product-screen-frame.d.ts +45 -0
- package/dist/components/ui/product-screen-frame.d.ts.map +1 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts +11 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/tag.d.ts +1 -1
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/devices-LBMG42K6.js +81 -0
- package/dist/devices-YGYJIXQY.cjs +81 -0
- package/dist/hooks/index.cjs +17 -8
- package/dist/hooks/index.js +32 -23
- package/dist/hooks/ui/index.d.ts +1 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-header-height.d.ts +12 -0
- package/dist/hooks/ui/use-header-height.d.ts.map +1 -1
- package/dist/hooks/ui/use-sticky-toolbar.d.ts +29 -0
- package/dist/hooks/ui/use-sticky-toolbar.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +2 -2
- package/dist/hooks/use-location-hash.d.ts.map +1 -1
- package/dist/hooks/use-scroll-to-hash.d.ts +7 -0
- package/dist/hooks/use-scroll-to-hash.d.ts.map +1 -1
- package/dist/index.cjs +276 -25
- package/dist/index.js +729 -478
- package/dist/knowledge-H5BIWJVI.js +108 -0
- package/dist/knowledge-KTCVJIWN.cjs +108 -0
- package/dist/logs-DB5Z7M5Q.js +216 -0
- package/dist/logs-RVCC2UQW.cjs +216 -0
- package/dist/policies-EWUULFBR.js +121 -0
- package/dist/policies-HV4IQCBV.cjs +121 -0
- package/dist/remote-session-GSGZOFDX.js +196 -0
- package/dist/remote-session-R6VAFESR.cjs +196 -0
- package/dist/software-update-6PXKRKBT.js +179 -0
- package/dist/software-update-D4OVSWSG.cjs +179 -0
- package/dist/tickets-board-BHLPAVNJ.cjs +137 -0
- package/dist/tickets-board-PYDNELSK.js +137 -0
- package/dist/types/case-study.d.ts +15 -1
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/utils/date-utils.d.ts +5 -0
- package/dist/utils/date-utils.d.ts.map +1 -1
- package/dist/utils/index.cjs +45 -2
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +41 -3
- package/dist/utils/open-in-new-tab.d.ts +7 -0
- package/dist/utils/open-in-new-tab.d.ts.map +1 -0
- package/dist/utils/same-page-hash-nav.d.ts +31 -0
- package/dist/utils/same-page-hash-nav.d.ts.map +1 -1
- package/dist/utils/scroll-into-view.d.ts +14 -1
- package/dist/utils/scroll-into-view.d.ts.map +1 -1
- package/package.json +13 -1
- package/src/components/chat/ask-prompts.tsx +226 -0
- package/src/components/chat/embeddable-chat.tsx +38 -2
- package/src/components/chat/entity-cards/case-study-card.tsx +122 -46
- package/src/components/chat/hooks/use-chat-dialog-manager.ts +22 -4
- package/src/components/chat/hooks/use-unified-chat.ts +1 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/quick-action-chip.tsx +33 -9
- package/src/components/chat/types/component.types.ts +4 -0
- package/src/components/chat/types/unified-chat-state.types.ts +13 -0
- package/src/components/docs/use-scroll-spy.ts +93 -18
- package/src/components/faq/faq-section.tsx +82 -43
- package/src/components/features/array-entry-manager.tsx +10 -1
- package/src/components/features/board/board.tsx +4 -1
- package/src/components/features/board/ticket-card.tsx +11 -1
- package/src/components/features/board/touch-board.tsx +2 -1
- package/src/components/features/board/types.ts +3 -0
- package/src/components/features/board/use-board-collapse.ts +7 -2
- package/src/components/features/capability-explorer.tsx +412 -0
- package/src/components/features/cloud-tenants/index.ts +28 -0
- package/src/components/features/cloud-tenants/tenant-access-cell.tsx +24 -0
- package/src/components/features/cloud-tenants/tenant-cell.tsx +26 -0
- package/src/components/features/cloud-tenants/tenant-customer-cell.tsx +27 -0
- package/src/components/features/cloud-tenants/tenant-presentation.ts +111 -0
- package/src/components/features/cloud-tenants/tenant-row.ts +21 -0
- package/src/components/features/cloud-tenants/tenants-table-columns.ts +30 -0
- package/src/components/features/cloud-tenants/tenants-table-view.tsx +142 -0
- package/src/components/features/devices/device-last-online.ts +6 -0
- package/src/components/features/devices/device-name.ts +51 -0
- package/src/components/features/devices/device-selector/device-selection-mode-radio.tsx +107 -0
- package/src/components/features/devices/device-selector/device-selector-skeleton.tsx +32 -0
- package/src/components/features/devices/device-selector/device-selector.tsx +799 -0
- package/src/components/features/devices/device-selector/device-selector.types.ts +138 -0
- package/src/components/features/devices/device-selector/narrowing.ts +33 -0
- package/src/components/features/devices/device-selector/use-device-selector.ts +51 -0
- package/src/components/features/devices/device-status.ts +102 -0
- package/src/components/features/devices/device-statuses.ts +88 -0
- package/src/components/features/devices/device-tags-filter-button.tsx +49 -0
- package/src/components/features/devices/device-type-icon.tsx +29 -0
- package/src/components/features/devices/device-type-tile.tsx +17 -0
- package/src/components/features/devices/devices-filter-toolbar.tsx +114 -0
- package/src/components/features/devices/devices-grid-filters.tsx +99 -0
- package/src/components/features/devices/devices-grid.tsx +86 -0
- package/src/components/features/devices/devices-list.tsx +357 -0
- package/src/components/features/devices/devices-panel-header.tsx +97 -0
- package/src/components/features/devices/devices-panel-view.tsx +261 -0
- package/src/components/features/devices/devices-table-columns.tsx +356 -0
- package/src/components/features/devices/devices-view-config.tsx +38 -0
- package/src/components/features/devices/index.ts +89 -0
- package/src/components/features/devices/types.ts +74 -0
- package/src/components/features/devices/use-tag-filter-modal.ts +109 -0
- package/src/components/features/index.ts +9 -0
- package/src/components/features/knowledge-base/index.ts +19 -0
- package/src/components/features/knowledge-base/knowledge-base-article-view.tsx +134 -0
- package/src/components/features/knowledge-base/knowledge-base-item-icon.ts +14 -0
- package/src/components/features/knowledge-base/knowledge-base-status.ts +12 -0
- package/src/components/features/knowledge-base/knowledge-base-table.tsx +180 -0
- package/src/components/features/logs/index.ts +20 -0
- package/src/components/features/logs/log-drawer.tsx +138 -0
- package/src/components/features/logs/log-source-labels.ts +25 -0
- package/src/components/features/logs/logs-page-view.tsx +100 -0
- package/src/components/features/logs/logs-table-columns.ts +16 -0
- package/src/components/features/logs/logs-table-view.tsx +509 -0
- package/src/components/features/logs/types.ts +71 -0
- package/src/components/features/policies/compute-policy-summary.ts +115 -0
- package/src/components/features/policies/index.ts +14 -0
- package/src/components/features/policies/policies-table.tsx +235 -0
- package/src/components/features/policies/policy-summary-cards.tsx +69 -0
- package/src/components/features/policies/policy-table-row.ts +37 -0
- package/src/components/features/remote-session/index.ts +8 -0
- package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +56 -0
- package/src/components/features/remote-session/remote-desktop-chat-panel.tsx +102 -0
- package/src/components/features/remote-session/remote-desktop-fullscreen-toolbar.tsx +119 -0
- package/src/components/features/remote-session/remote-desktop-view.tsx +209 -0
- package/src/components/features/software/index.ts +39 -0
- package/src/components/features/software/package-managers.ts +54 -0
- package/src/components/features/software/package-search-field-placeholder.tsx +23 -0
- package/src/components/features/software/schedule-fields.tsx +105 -0
- package/src/components/features/software/software-action-copy.ts +70 -0
- package/src/components/features/software/software-action-form.tsx +199 -0
- package/src/components/features/software/software-row-fields.tsx +105 -0
- package/src/components/features/software/software-row.ts +22 -0
- package/src/components/features/sortable-list/index.ts +1 -0
- package/src/components/features/sortable-list/sortable-drag-handle.tsx +41 -0
- package/src/components/layout/page-heading.tsx +23 -6
- package/src/components/navigation/index.ts +5 -0
- package/src/components/navigation/mingo-ai-button.tsx +37 -13
- package/src/components/navigation/sticky-section-nav.tsx +99 -1
- package/src/components/product-demo/cast.tsx +78 -0
- package/src/components/product-demo/fixtures/cloud-tenants.ts +63 -0
- package/src/components/product-demo/fixtures/devices.ts +87 -0
- package/src/components/product-demo/fixtures/knowledge.ts +48 -0
- package/src/components/product-demo/fixtures/logs.ts +103 -0
- package/src/components/product-demo/fixtures/policies.ts +77 -0
- package/src/components/product-demo/fixtures/remote-session.ts +65 -0
- package/src/components/product-demo/fixtures/shared.ts +53 -0
- package/src/components/product-demo/fixtures/software-update.ts +63 -0
- package/src/components/product-demo/fixtures/tickets-board.ts +100 -0
- package/src/components/product-demo/index.ts +7 -0
- package/src/components/product-demo/product-screen.tsx +94 -0
- package/src/components/product-demo/registry.ts +20 -0
- package/src/components/product-demo/screen-keys.ts +31 -0
- package/src/components/product-demo/screens/cloud-tenants.tsx +23 -0
- package/src/components/product-demo/screens/devices.tsx +41 -0
- package/src/components/product-demo/screens/knowledge.tsx +27 -0
- package/src/components/product-demo/screens/logs.tsx +113 -0
- package/src/components/product-demo/screens/policies.tsx +29 -0
- package/src/components/product-demo/screens/remote-desktop-picture.tsx +118 -0
- package/src/components/product-demo/screens/remote-session.tsx +46 -0
- package/src/components/product-demo/screens/software-update.tsx +97 -0
- package/src/components/product-demo/screens/tickets-board.tsx +28 -0
- package/src/components/product-demo/types.ts +10 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/product-screen-frame.tsx +136 -0
- package/src/components/ui/radio-group.tsx +16 -4
- package/src/components/ui/snap-carousel.tsx +26 -1
- package/src/components/ui/tag.tsx +5 -0
- package/src/hooks/ui/index.ts +1 -0
- package/src/hooks/ui/use-header-height.ts +51 -2
- package/src/hooks/ui/use-sticky-toolbar.ts +60 -0
- package/src/hooks/use-location-hash.ts +9 -5
- package/src/hooks/use-scroll-to-hash.ts +9 -1
- package/src/types/case-study.ts +21 -1
- package/src/utils/date-utils.ts +8 -1
- package/src/utils/index.ts +5 -0
- package/src/utils/open-in-new-tab.ts +12 -0
- package/src/utils/same-page-hash-nav.ts +57 -0
- package/src/utils/scroll-into-view.ts +21 -5
- package/dist/chunk-BM5MVGH3.cjs +0 -499
- package/dist/chunk-CUME3VTQ.js +0 -144
- package/dist/chunk-CZ7Y7UG4.js +0 -732
- package/dist/chunk-FLKJYMVB.js +0 -499
- package/dist/chunk-OF6GEI5A.cjs +0 -144
- package/dist/chunk-UVTD52MD.cjs +0 -732
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkULWVKHSIcjs = require('./chunk-ULWVKHSI.cjs');
|
|
7
|
+
|
|
8
|
+
// src/hooks/ui/use-drag-and-drop-enabled.ts
|
|
9
|
+
var DRAG_AND_DROP_MEDIA_QUERY = `(pointer: fine) and (hover: hover) and ${_chunkULWVKHSIcjs.breakpoints.md}`;
|
|
10
|
+
function useDragAndDropEnabled() {
|
|
11
|
+
return _nullishCoalesce(_chunkULWVKHSIcjs.useMediaQuery.call(void 0, DRAG_AND_DROP_MEDIA_QUERY), () => ( false));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// src/hooks/ui/use-horizontal-scrollbar.ts
|
|
15
|
+
var _react = require('react');
|
|
16
|
+
function useHorizontalScrollbar() {
|
|
17
|
+
const scrollElRef = _react.useRef.call(void 0, null);
|
|
18
|
+
const trackRef = _react.useRef.call(void 0, null);
|
|
19
|
+
const thumbRef = _react.useRef.call(void 0, null);
|
|
20
|
+
const roRef = _react.useRef.call(void 0, null);
|
|
21
|
+
const moRef = _react.useRef.call(void 0, null);
|
|
22
|
+
const [thumbRatio, setThumbRatio] = _react.useState.call(void 0, 0);
|
|
23
|
+
const [canScrollLeft, setCanScrollLeft] = _react.useState.call(void 0, false);
|
|
24
|
+
const [canScrollRight, setCanScrollRight] = _react.useState.call(void 0, false);
|
|
25
|
+
const prevCanScrollLeftRef = _react.useRef.call(void 0, false);
|
|
26
|
+
const prevCanScrollRightRef = _react.useRef.call(void 0, false);
|
|
27
|
+
const isDraggingRef = _react.useRef.call(void 0, false);
|
|
28
|
+
const dragStartRef = _react.useRef.call(void 0, { mouseX: 0, scrollLeft: 0 });
|
|
29
|
+
const rafIdRef = _react.useRef.call(void 0, 0);
|
|
30
|
+
const syncThumbToDOM = _react.useCallback.call(void 0, () => {
|
|
31
|
+
const el = scrollElRef.current;
|
|
32
|
+
const thumb = thumbRef.current;
|
|
33
|
+
if (!el || !thumb) return;
|
|
34
|
+
const maxScroll = el.scrollWidth - el.clientWidth;
|
|
35
|
+
if (maxScroll <= 0) {
|
|
36
|
+
thumb.style.left = "0%";
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const ratio = el.clientWidth / el.scrollWidth;
|
|
40
|
+
const fraction = Math.min(Math.max(el.scrollLeft, 0), maxScroll) / maxScroll;
|
|
41
|
+
thumb.style.left = `${fraction * (1 - ratio) * 100}%`;
|
|
42
|
+
}, []);
|
|
43
|
+
const syncEdgeFades = _react.useCallback.call(void 0, () => {
|
|
44
|
+
const el = scrollElRef.current;
|
|
45
|
+
if (!el) return;
|
|
46
|
+
const maxScroll = el.scrollWidth - el.clientWidth;
|
|
47
|
+
const ratio = el.clientWidth / el.scrollWidth;
|
|
48
|
+
if (ratio >= 1 || maxScroll <= 0) {
|
|
49
|
+
if (prevCanScrollLeftRef.current) {
|
|
50
|
+
prevCanScrollLeftRef.current = false;
|
|
51
|
+
setCanScrollLeft(false);
|
|
52
|
+
}
|
|
53
|
+
if (prevCanScrollRightRef.current) {
|
|
54
|
+
prevCanScrollRightRef.current = false;
|
|
55
|
+
setCanScrollRight(false);
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const fraction = Math.min(Math.max(el.scrollLeft, 0), maxScroll) / maxScroll;
|
|
60
|
+
const left = fraction > 1e-3;
|
|
61
|
+
const right = fraction < 0.999;
|
|
62
|
+
if (left !== prevCanScrollLeftRef.current) {
|
|
63
|
+
prevCanScrollLeftRef.current = left;
|
|
64
|
+
setCanScrollLeft(left);
|
|
65
|
+
}
|
|
66
|
+
if (right !== prevCanScrollRightRef.current) {
|
|
67
|
+
prevCanScrollRightRef.current = right;
|
|
68
|
+
setCanScrollRight(right);
|
|
69
|
+
}
|
|
70
|
+
}, []);
|
|
71
|
+
const measure = _react.useCallback.call(void 0, () => {
|
|
72
|
+
const el = scrollElRef.current;
|
|
73
|
+
if (!el) return;
|
|
74
|
+
const ratio = el.clientWidth / el.scrollWidth;
|
|
75
|
+
setThumbRatio(ratio >= 1 ? 0 : ratio);
|
|
76
|
+
syncThumbToDOM();
|
|
77
|
+
syncEdgeFades();
|
|
78
|
+
}, [syncThumbToDOM, syncEdgeFades]);
|
|
79
|
+
const scrollRef = _react.useCallback.call(void 0,
|
|
80
|
+
(node) => {
|
|
81
|
+
if (roRef.current) {
|
|
82
|
+
roRef.current.disconnect();
|
|
83
|
+
roRef.current = null;
|
|
84
|
+
}
|
|
85
|
+
if (moRef.current) {
|
|
86
|
+
moRef.current.disconnect();
|
|
87
|
+
moRef.current = null;
|
|
88
|
+
}
|
|
89
|
+
if (rafIdRef.current) {
|
|
90
|
+
cancelAnimationFrame(rafIdRef.current);
|
|
91
|
+
rafIdRef.current = 0;
|
|
92
|
+
}
|
|
93
|
+
scrollElRef.current = node;
|
|
94
|
+
if (node) {
|
|
95
|
+
const ratio = node.clientWidth / node.scrollWidth;
|
|
96
|
+
setThumbRatio(ratio >= 1 ? 0 : ratio);
|
|
97
|
+
const ro = new ResizeObserver(measure);
|
|
98
|
+
roRef.current = ro;
|
|
99
|
+
const observeAll = () => {
|
|
100
|
+
ro.disconnect();
|
|
101
|
+
ro.observe(node);
|
|
102
|
+
for (const child of Array.from(node.children)) ro.observe(child);
|
|
103
|
+
};
|
|
104
|
+
observeAll();
|
|
105
|
+
moRef.current = new MutationObserver(() => {
|
|
106
|
+
observeAll();
|
|
107
|
+
measure();
|
|
108
|
+
});
|
|
109
|
+
moRef.current.observe(node, { childList: true });
|
|
110
|
+
requestAnimationFrame(() => {
|
|
111
|
+
syncThumbToDOM();
|
|
112
|
+
syncEdgeFades();
|
|
113
|
+
});
|
|
114
|
+
} else {
|
|
115
|
+
setThumbRatio(0);
|
|
116
|
+
prevCanScrollLeftRef.current = false;
|
|
117
|
+
prevCanScrollRightRef.current = false;
|
|
118
|
+
setCanScrollLeft(false);
|
|
119
|
+
setCanScrollRight(false);
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
[measure, syncThumbToDOM, syncEdgeFades]
|
|
123
|
+
);
|
|
124
|
+
const onScroll = _react.useCallback.call(void 0, () => {
|
|
125
|
+
if (isDraggingRef.current) return;
|
|
126
|
+
if (rafIdRef.current) cancelAnimationFrame(rafIdRef.current);
|
|
127
|
+
rafIdRef.current = requestAnimationFrame(() => {
|
|
128
|
+
syncThumbToDOM();
|
|
129
|
+
syncEdgeFades();
|
|
130
|
+
});
|
|
131
|
+
}, [syncThumbToDOM, syncEdgeFades]);
|
|
132
|
+
const onTrackClick = _react.useCallback.call(void 0, (e) => {
|
|
133
|
+
if (e.target.closest("[data-scrollbar-thumb]")) return;
|
|
134
|
+
const track = trackRef.current;
|
|
135
|
+
const el = scrollElRef.current;
|
|
136
|
+
if (!track || !el) return;
|
|
137
|
+
const ratio = el.clientWidth / el.scrollWidth;
|
|
138
|
+
if (ratio >= 1) return;
|
|
139
|
+
const rect = track.getBoundingClientRect();
|
|
140
|
+
const thumbWidth = rect.width * ratio;
|
|
141
|
+
const maxThumbOffset = rect.width - thumbWidth;
|
|
142
|
+
if (maxThumbOffset <= 0) return;
|
|
143
|
+
const targetFraction = Math.max(0, Math.min(1, (e.clientX - rect.left - thumbWidth / 2) / maxThumbOffset));
|
|
144
|
+
const targetScrollLeft = targetFraction * (el.scrollWidth - el.clientWidth);
|
|
145
|
+
el.scrollTo({ left: targetScrollLeft, behavior: "smooth" });
|
|
146
|
+
}, []);
|
|
147
|
+
const onTrackWheel = _react.useCallback.call(void 0, (e) => {
|
|
148
|
+
const el = scrollElRef.current;
|
|
149
|
+
if (!el) return;
|
|
150
|
+
e.preventDefault();
|
|
151
|
+
el.scrollLeft += e.deltaX || e.deltaY;
|
|
152
|
+
}, []);
|
|
153
|
+
const onThumbPointerDown = _react.useCallback.call(void 0, (e) => {
|
|
154
|
+
e.preventDefault();
|
|
155
|
+
e.stopPropagation();
|
|
156
|
+
const el = scrollElRef.current;
|
|
157
|
+
if (!el) return;
|
|
158
|
+
isDraggingRef.current = true;
|
|
159
|
+
dragStartRef.current = { mouseX: e.clientX, scrollLeft: el.scrollLeft };
|
|
160
|
+
const target = e.currentTarget;
|
|
161
|
+
target.setPointerCapture(e.pointerId);
|
|
162
|
+
target.style.cursor = "grabbing";
|
|
163
|
+
}, []);
|
|
164
|
+
const onThumbPointerMove = _react.useCallback.call(void 0,
|
|
165
|
+
(e) => {
|
|
166
|
+
if (!isDraggingRef.current) return;
|
|
167
|
+
const el = scrollElRef.current;
|
|
168
|
+
const track = trackRef.current;
|
|
169
|
+
if (!el || !track) return;
|
|
170
|
+
const currentThumbRatio = el.clientWidth / el.scrollWidth;
|
|
171
|
+
if (currentThumbRatio >= 1) return;
|
|
172
|
+
const trackWidth = track.clientWidth;
|
|
173
|
+
const thumbWidth = trackWidth * currentThumbRatio;
|
|
174
|
+
const maxThumbTravel = trackWidth - thumbWidth;
|
|
175
|
+
if (maxThumbTravel <= 0) return;
|
|
176
|
+
const mouseDelta = e.clientX - dragStartRef.current.mouseX;
|
|
177
|
+
const scrollRange = el.scrollWidth - el.clientWidth;
|
|
178
|
+
el.scrollLeft = Math.min(
|
|
179
|
+
Math.max(dragStartRef.current.scrollLeft + mouseDelta / maxThumbTravel * scrollRange, 0),
|
|
180
|
+
scrollRange
|
|
181
|
+
);
|
|
182
|
+
syncThumbToDOM();
|
|
183
|
+
syncEdgeFades();
|
|
184
|
+
},
|
|
185
|
+
[syncThumbToDOM, syncEdgeFades]
|
|
186
|
+
);
|
|
187
|
+
const onThumbPointerUp = _react.useCallback.call(void 0, (e) => {
|
|
188
|
+
isDraggingRef.current = false;
|
|
189
|
+
const target = e.currentTarget;
|
|
190
|
+
target.releasePointerCapture(e.pointerId);
|
|
191
|
+
target.style.cursor = "grab";
|
|
192
|
+
}, []);
|
|
193
|
+
const onThumbPointerCancel = _react.useCallback.call(void 0, (e) => {
|
|
194
|
+
isDraggingRef.current = false;
|
|
195
|
+
const target = e.currentTarget;
|
|
196
|
+
target.style.cursor = "grab";
|
|
197
|
+
}, []);
|
|
198
|
+
return {
|
|
199
|
+
scrollRef,
|
|
200
|
+
trackRef,
|
|
201
|
+
thumbRef,
|
|
202
|
+
thumbRatio,
|
|
203
|
+
canScrollLeft,
|
|
204
|
+
canScrollRight,
|
|
205
|
+
onScroll,
|
|
206
|
+
onTrackClick,
|
|
207
|
+
onTrackWheel,
|
|
208
|
+
onThumbPointerDown,
|
|
209
|
+
onThumbPointerMove,
|
|
210
|
+
onThumbPointerUp,
|
|
211
|
+
onThumbPointerCancel
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// src/hooks/ui/use-local-storage.ts
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
// src/utils/storage-event.ts
|
|
219
|
+
function readLocalStorageUpdateDetail(event) {
|
|
220
|
+
if (!("detail" in event)) return null;
|
|
221
|
+
const detail = event.detail;
|
|
222
|
+
if (typeof detail !== "object" || detail === null) return null;
|
|
223
|
+
if (!("key" in detail) || typeof detail.key !== "string") return null;
|
|
224
|
+
const newValue = "newValue" in detail ? detail.newValue : null;
|
|
225
|
+
if (newValue !== null && newValue !== void 0 && typeof newValue !== "string") return null;
|
|
226
|
+
return { key: detail.key, newValue: _nullishCoalesce(newValue, () => ( null)) };
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
// src/hooks/ui/use-local-storage.ts
|
|
230
|
+
function useLocalStorage(key, initialValue, options) {
|
|
231
|
+
const initialValueRef = _react.useRef.call(void 0, initialValue);
|
|
232
|
+
_react.useEffect.call(void 0, () => {
|
|
233
|
+
initialValueRef.current = initialValue;
|
|
234
|
+
});
|
|
235
|
+
const validate = _optionalChain([options, 'optionalAccess', _ => _.validate]);
|
|
236
|
+
const storage = _react.useMemo.call(void 0,
|
|
237
|
+
() => _chunkULWVKHSIcjs.createLocalStorageAdapter.call(void 0, { key, validate, logTag: `[useLocalStorage:${key}]` }),
|
|
238
|
+
[key, validate]
|
|
239
|
+
);
|
|
240
|
+
const [storedValue, setStoredValue] = _react.useState.call(void 0, () => _nullishCoalesce(storage.load(), () => ( initialValue)));
|
|
241
|
+
const isInitialized = _react.useRef.call(void 0, true);
|
|
242
|
+
const isFromStorageEvent = _react.useRef.call(void 0, false);
|
|
243
|
+
_react.useEffect.call(void 0, () => {
|
|
244
|
+
if (!isInitialized.current) return void 0;
|
|
245
|
+
const syncFromStorage = (source) => {
|
|
246
|
+
const next = storage.load();
|
|
247
|
+
isFromStorageEvent.current = true;
|
|
248
|
+
setStoredValue(_nullishCoalesce(next, () => ( initialValueRef.current)));
|
|
249
|
+
console.log(`\u{1F504} ${next === null ? "Cleared" : "Updated"} localStorage key "${key}" from ${source}`);
|
|
250
|
+
};
|
|
251
|
+
const handleStorageChange = (e) => {
|
|
252
|
+
if (e.key !== key) return;
|
|
253
|
+
syncFromStorage("storage event");
|
|
254
|
+
};
|
|
255
|
+
const handleCustomStorageUpdate = (event) => {
|
|
256
|
+
const detail = readLocalStorageUpdateDetail(event);
|
|
257
|
+
if (_optionalChain([detail, 'optionalAccess', _2 => _2.key]) !== key) return;
|
|
258
|
+
syncFromStorage("custom storage event");
|
|
259
|
+
};
|
|
260
|
+
window.addEventListener("storage", handleStorageChange);
|
|
261
|
+
window.addEventListener("localStorageUpdate", handleCustomStorageUpdate);
|
|
262
|
+
return () => {
|
|
263
|
+
window.removeEventListener("storage", handleStorageChange);
|
|
264
|
+
window.removeEventListener("localStorageUpdate", handleCustomStorageUpdate);
|
|
265
|
+
};
|
|
266
|
+
}, [key, storage]);
|
|
267
|
+
_react.useEffect.call(void 0, () => {
|
|
268
|
+
if (!isInitialized.current) return;
|
|
269
|
+
if (isFromStorageEvent.current) {
|
|
270
|
+
isFromStorageEvent.current = false;
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
storage.save(storedValue);
|
|
274
|
+
}, [storage, storedValue]);
|
|
275
|
+
const setValue = (value) => {
|
|
276
|
+
try {
|
|
277
|
+
const valueToStore = value instanceof Function ? value(storedValue) : value;
|
|
278
|
+
setStoredValue(valueToStore);
|
|
279
|
+
} catch (error) {
|
|
280
|
+
console.error(`Error setting value for localStorage key "${key}":`, error);
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
return [storedValue, setValue];
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
exports.DRAG_AND_DROP_MEDIA_QUERY = DRAG_AND_DROP_MEDIA_QUERY; exports.useDragAndDropEnabled = useDragAndDropEnabled; exports.useHorizontalScrollbar = useHorizontalScrollbar; exports.readLocalStorageUpdateDetail = readLocalStorageUpdateDetail; exports.useLocalStorage = useLocalStorage;
|
|
@@ -1,38 +1,43 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGEDY7HQIcjs = require('./chunk-GEDY7HQI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
var _chunkL6ZQGWCXcjs = require('./chunk-L6ZQGWCX.cjs');
|
|
7
8
|
|
|
8
|
-
var _chunkP42V6N34cjs = require('./chunk-P42V6N34.cjs');
|
|
9
9
|
|
|
10
|
+
var _chunkPPXR22YCcjs = require('./chunk-PPXR22YC.cjs');
|
|
10
11
|
|
|
11
|
-
var _chunkWCVZCGK5cjs = require('./chunk-WCVZCGK5.cjs');
|
|
12
12
|
|
|
13
|
+
var _chunkJO5TLJPMcjs = require('./chunk-JO5TLJPM.cjs');
|
|
13
14
|
|
|
14
|
-
var _chunkBIZNSF3Ucjs = require('./chunk-BIZNSF3U.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
var _chunkHETQETPVcjs = require('./chunk-HETQETPV.cjs');
|
|
18
19
|
|
|
19
|
-
var _chunkSEXWHIMScjs = require('./chunk-SEXWHIMS.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
+
var _chunkGQ7JJUITcjs = require('./chunk-GQ7JJUIT.cjs');
|
|
22
23
|
|
|
23
24
|
|
|
24
|
-
var
|
|
25
|
+
var _chunkWVOTC7HWcjs = require('./chunk-WVOTC7HW.cjs');
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
28
29
|
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
|
|
32
|
+
var _chunkETYLOZOBcjs = require('./chunk-ETYLOZOB.cjs');
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
|
|
34
36
|
|
|
35
37
|
|
|
38
|
+
var _chunkLLRGR4I5cjs = require('./chunk-LLRGR4I5.cjs');
|
|
39
|
+
|
|
40
|
+
|
|
36
41
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
37
42
|
|
|
38
43
|
// src/components/faq/faq-section.tsx
|
|
@@ -56,7 +61,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
56
61
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
57
62
|
"div",
|
|
58
63
|
{
|
|
59
|
-
id:
|
|
64
|
+
id: _chunkHETQETPVcjs.faqItemAnchor.call(void 0, item.id),
|
|
60
65
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
61
66
|
children: [
|
|
62
67
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -134,7 +139,7 @@ function buildFaqJsonLdFromFaqs(faqs, opts = {}) {
|
|
|
134
139
|
|
|
135
140
|
var DEFAULT_HEADING_TEXT = "Frequently Asked Questions";
|
|
136
141
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "") {
|
|
137
|
-
return
|
|
142
|
+
return _chunkETYLOZOBcjs.buildSuggestionUrl.call(void 0, "/api/faqs", { apiBaseUrl, entityType, entityId, count: minResults });
|
|
138
143
|
}
|
|
139
144
|
function groupFaqsBySection(faqs) {
|
|
140
145
|
const byName = /* @__PURE__ */ new Map();
|
|
@@ -149,7 +154,7 @@ function groupFaqsBySection(faqs) {
|
|
|
149
154
|
}
|
|
150
155
|
let group = byName.get(name);
|
|
151
156
|
if (!group) {
|
|
152
|
-
group = { section: name, slug:
|
|
157
|
+
group = { section: name, slug: _chunkHETQETPVcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
153
158
|
byName.set(name, group);
|
|
154
159
|
}
|
|
155
160
|
group.items.push(item);
|
|
@@ -162,7 +167,9 @@ var UNCATEGORIZED_KEY = "__uncategorized__";
|
|
|
162
167
|
var groupKey = (g) => _nullishCoalesce(g.slug, () => ( UNCATEGORIZED_KEY));
|
|
163
168
|
function GroupedFaqList({
|
|
164
169
|
groups,
|
|
165
|
-
categoryHeadingAs
|
|
170
|
+
categoryHeadingAs,
|
|
171
|
+
heading,
|
|
172
|
+
aside
|
|
166
173
|
}) {
|
|
167
174
|
const CategoryHeading = categoryHeadingAs;
|
|
168
175
|
const navGroups = _react.useMemo.call(void 0, () => groups.filter((g) => g.slug), [groups]);
|
|
@@ -192,7 +199,7 @@ function GroupedFaqList({
|
|
|
192
199
|
}
|
|
193
200
|
if (bestId) setActiveSlug(bestId);
|
|
194
201
|
},
|
|
195
|
-
{ rootMargin: `-${
|
|
202
|
+
{ rootMargin: `-${_chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX}px 0px -55% 0px`, threshold: 0 }
|
|
196
203
|
);
|
|
197
204
|
for (const group of navGroupsRef.current) {
|
|
198
205
|
const el = group.slug ? document.getElementById(group.slug) : null;
|
|
@@ -202,7 +209,7 @@ function GroupedFaqList({
|
|
|
202
209
|
}, [slugKey]);
|
|
203
210
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
204
211
|
_react.useEffect.call(void 0, () => {
|
|
205
|
-
const refresh = () => setHashTarget(
|
|
212
|
+
const refresh = () => setHashTarget(_chunkHETQETPVcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
206
213
|
refresh();
|
|
207
214
|
window.addEventListener("hashchange", refresh);
|
|
208
215
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -219,7 +226,7 @@ function GroupedFaqList({
|
|
|
219
226
|
}, [groups, hashTarget]);
|
|
220
227
|
const accordionKeySuffix = _optionalChain([hashTarget, 'optionalAccess', _8 => _8.kind]) === "item" ? `item:${hashTarget.rawId}` : "default";
|
|
221
228
|
const scrollDep = `${groups.length}|` + (_optionalChain([hashTarget, 'optionalAccess', _9 => _9.kind]) === "item" ? `item:${hashTarget.rawId}` : _optionalChain([hashTarget, 'optionalAccess', _10 => _10.kind]) === "section" ? `section:${hashTarget.slug}` : "none");
|
|
222
|
-
|
|
229
|
+
_chunkJO5TLJPMcjs.useScrollToHash.call(void 0, scrollDep, { headerOffset: _chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX });
|
|
223
230
|
const [pillSyncedHash, setPillSyncedHash] = _react.useState.call(void 0, hashTarget);
|
|
224
231
|
if (pillSyncedHash !== hashTarget) {
|
|
225
232
|
setPillSyncedHash(hashTarget);
|
|
@@ -227,43 +234,55 @@ function GroupedFaqList({
|
|
|
227
234
|
}
|
|
228
235
|
const handleJump = _react.useCallback.call(void 0, (e, slug) => {
|
|
229
236
|
e.preventDefault();
|
|
230
|
-
|
|
231
|
-
headerOffset:
|
|
237
|
+
_chunkGQ7JJUITcjs.navigateSamePageHash.call(void 0, "#" + slug, {
|
|
238
|
+
headerOffset: _chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX,
|
|
232
239
|
history: "replace"
|
|
233
240
|
});
|
|
234
241
|
}, []);
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
242
|
+
const categoryNav = navGroups.length > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "nav", { "aria-label": "FAQ categories", className: "flex flex-wrap gap-2", children: navGroups.map((group) => {
|
|
243
|
+
const isActive = group.slug === activeSlug;
|
|
244
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
245
|
+
_chunkLLRGR4I5cjs.next_link_default,
|
|
246
|
+
{
|
|
247
|
+
href: `#${group.slug}`,
|
|
248
|
+
"aria-current": isActive ? "true" : void 0,
|
|
249
|
+
onClick: (e) => handleJump(e, group.slug),
|
|
250
|
+
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
251
|
+
"rounded-full border px-4 py-2 transition-colors text-h6",
|
|
252
|
+
isActive ? "border-ods-text-primary bg-ods-card text-ods-text-primary" : "border-ods-border bg-ods-card text-ods-text-secondary hover:border-ods-text-secondary hover:text-ods-text-primary"
|
|
253
|
+
),
|
|
254
|
+
children: group.section
|
|
255
|
+
},
|
|
256
|
+
group.slug
|
|
257
|
+
);
|
|
258
|
+
}) });
|
|
259
|
+
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
260
|
+
const key = groupKey(group);
|
|
261
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
262
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunkETYLOZOBcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
263
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
264
|
+
FaqAccordion,
|
|
240
265
|
{
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
onClick: (e) => handleJump(e, group.slug),
|
|
244
|
-
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
245
|
-
"rounded-full border px-4 py-2 transition-colors text-h6",
|
|
246
|
-
isActive ? "border-ods-text-primary bg-ods-card text-ods-text-primary" : "border-ods-border bg-ods-card text-ods-text-secondary hover:border-ods-text-secondary hover:text-ods-text-primary"
|
|
247
|
-
),
|
|
248
|
-
children: group.section
|
|
266
|
+
items: group.items,
|
|
267
|
+
defaultOpenIds: _optionalChain([defaultOpenByGroupKey, 'optionalAccess', _12 => _12.get, 'call', _13 => _13(key)])
|
|
249
268
|
},
|
|
250
|
-
|
|
251
|
-
)
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
269
|
+
`${key}:${accordionKeySuffix}`
|
|
270
|
+
)
|
|
271
|
+
] }, key);
|
|
272
|
+
}) });
|
|
273
|
+
if (!aside) {
|
|
274
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
275
|
+
categoryNav,
|
|
276
|
+
questions
|
|
277
|
+
] });
|
|
278
|
+
}
|
|
279
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid gap-10 content-lg:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] content-lg:grid-rows-[auto_1fr] content-lg:gap-x-16", children: [
|
|
280
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
281
|
+
heading,
|
|
282
|
+
categoryNav
|
|
283
|
+
] }),
|
|
284
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:col-start-2 content-lg:row-span-2 content-lg:row-start-1", children: questions }),
|
|
285
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:col-start-1 content-lg:row-start-2", children: aside })
|
|
267
286
|
] });
|
|
268
287
|
}
|
|
269
288
|
function FaqSkeleton() {
|
|
@@ -284,17 +303,18 @@ function FaqSection({
|
|
|
284
303
|
jsonLd,
|
|
285
304
|
className,
|
|
286
305
|
minResults,
|
|
287
|
-
apiBaseUrl = ""
|
|
306
|
+
apiBaseUrl = "",
|
|
307
|
+
aside
|
|
288
308
|
}) {
|
|
289
309
|
const url = buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl);
|
|
290
310
|
const initialData = _react.useMemo.call(void 0,
|
|
291
311
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
292
312
|
[initialFaqs]
|
|
293
313
|
);
|
|
294
|
-
const { data, isLoading, error } =
|
|
314
|
+
const { data, isLoading, error } = _chunkGEDY7HQIcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
295
315
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _14 => _14.faqs]), () => ( [])), [_optionalChain([data, 'optionalAccess', _15 => _15.faqs])]);
|
|
296
316
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
297
|
-
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
317
|
+
const headingNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkETYLOZOBcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
298
318
|
if (error) return null;
|
|
299
319
|
if (!isLoading && faqs.length === 0) return null;
|
|
300
320
|
if (isLoading && faqs.length === 0) {
|
|
@@ -303,14 +323,22 @@ function FaqSection({
|
|
|
303
323
|
const schema = emitJsonLd ? buildFaqJsonLdFromFaqs(faqs, jsonLd) : null;
|
|
304
324
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
305
325
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: _nullishCoalesce(className, () => ( "space-y-10")), children: [
|
|
306
|
-
headingNode,
|
|
307
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
326
|
+
!aside && headingNode,
|
|
327
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
328
|
+
GroupedFaqList,
|
|
329
|
+
{
|
|
330
|
+
groups,
|
|
331
|
+
categoryHeadingAs: heading === null ? "h2" : "h3",
|
|
332
|
+
heading: aside ? headingNode : void 0,
|
|
333
|
+
aside
|
|
334
|
+
}
|
|
335
|
+
)
|
|
308
336
|
] }),
|
|
309
337
|
schema && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
310
338
|
"script",
|
|
311
339
|
{
|
|
312
340
|
type: "application/ld+json",
|
|
313
|
-
dangerouslySetInnerHTML: { __html:
|
|
341
|
+
dangerouslySetInnerHTML: { __html: _chunkWVOTC7HWcjs.serializeJsonLd.call(void 0, schema) }
|
|
314
342
|
}
|
|
315
343
|
)
|
|
316
344
|
] });
|
|
@@ -336,7 +364,7 @@ function FaqDocumentPage({
|
|
|
336
364
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _16 => _16.label]), () => ( "Back to home")),
|
|
337
365
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _17 => _17.href]), () => ( "/")))
|
|
338
366
|
};
|
|
339
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
367
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPPXR22YCcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
340
368
|
FaqSection,
|
|
341
369
|
{
|
|
342
370
|
initialFaqs,
|
|
@@ -349,7 +377,7 @@ function FaqDocumentPage({
|
|
|
349
377
|
minResults
|
|
350
378
|
}
|
|
351
379
|
) });
|
|
352
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
380
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL6ZQGWCXcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
353
381
|
}
|
|
354
382
|
|
|
355
383
|
|