@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
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunk3UAJLO5Ucjs = require('./chunk-3UAJLO5U.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJGCFRTNDcjs = require('./chunk-JGCFRTND.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkMA4Q5RBPcjs = require('./chunk-MA4Q5RBP.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkZX7SCPLOcjs = require('./chunk-ZX7SCPLO.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -31,63 +31,71 @@ var _chunkOJLR5MEOcjs = require('./chunk-OJLR5MEO.cjs');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
+
var _chunkL6ZQGWCXcjs = require('./chunk-L6ZQGWCX.cjs');
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
|
|
38
|
+
var _chunkJO5TLJPMcjs = require('./chunk-JO5TLJPM.cjs');
|
|
37
39
|
|
|
38
|
-
var _chunkP42V6N34cjs = require('./chunk-P42V6N34.cjs');
|
|
39
40
|
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
var _chunkWCVZCGK5cjs = require('./chunk-WCVZCGK5.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
|
|
48
47
|
|
|
49
48
|
|
|
50
49
|
|
|
51
50
|
|
|
51
|
+
var _chunkHETQETPVcjs = require('./chunk-HETQETPV.cjs');
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
var _chunkKT3U3ZRPcjs = require('./chunk-KT3U3ZRP.cjs');
|
|
54
55
|
|
|
55
56
|
|
|
57
|
+
var _chunkDC4RTYWKcjs = require('./chunk-DC4RTYWK.cjs');
|
|
56
58
|
|
|
57
59
|
|
|
58
|
-
var _chunkSEXWHIMScjs = require('./chunk-SEXWHIMS.cjs');
|
|
59
60
|
|
|
61
|
+
var _chunkGQ7JJUITcjs = require('./chunk-GQ7JJUIT.cjs');
|
|
60
62
|
|
|
61
63
|
|
|
62
|
-
var _chunkUVTD52MDcjs = require('./chunk-UVTD52MD.cjs');
|
|
63
64
|
|
|
64
65
|
|
|
66
|
+
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
67
|
+
|
|
65
68
|
|
|
66
69
|
|
|
67
|
-
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
68
70
|
|
|
69
71
|
|
|
72
|
+
var _chunkETYLOZOBcjs = require('./chunk-ETYLOZOB.cjs');
|
|
70
73
|
|
|
71
74
|
|
|
75
|
+
var _chunkF5BPGWGTcjs = require('./chunk-F5BPGWGT.cjs');
|
|
72
76
|
|
|
73
77
|
|
|
74
|
-
var _chunk6NTPY5QAcjs = require('./chunk-6NTPY5QA.cjs');
|
|
75
78
|
|
|
76
79
|
|
|
77
|
-
var
|
|
80
|
+
var _chunkAECTRMGQcjs = require('./chunk-AECTRMGQ.cjs');
|
|
78
81
|
|
|
79
82
|
|
|
80
83
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
81
84
|
|
|
82
85
|
|
|
86
|
+
var _chunkULWVKHSIcjs = require('./chunk-ULWVKHSI.cjs');
|
|
83
87
|
|
|
84
88
|
|
|
85
89
|
|
|
86
|
-
|
|
90
|
+
|
|
91
|
+
var _chunkXXBLN4BPcjs = require('./chunk-XXBLN4BP.cjs');
|
|
87
92
|
|
|
88
93
|
|
|
89
94
|
var _chunkDFQYAYBHcjs = require('./chunk-DFQYAYBH.cjs');
|
|
90
95
|
|
|
96
|
+
|
|
97
|
+
var _chunkCPA2CKRZcjs = require('./chunk-CPA2CKRZ.cjs');
|
|
98
|
+
|
|
91
99
|
// src/components/tickets/ticket-center.tsx
|
|
92
100
|
var _reactquery = require('@tanstack/react-query');
|
|
93
101
|
var _lucidereact = require('lucide-react');
|
|
@@ -114,7 +122,7 @@ var TicketActionFailure = class extends Error {
|
|
|
114
122
|
function useTicketActions(options) {
|
|
115
123
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
116
124
|
const ticketActionEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
|
|
117
|
-
const ticketLive =
|
|
125
|
+
const ticketLive = _chunkZX7SCPLOcjs.useOptionalTicketLive.call(void 0, );
|
|
118
126
|
const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
|
|
119
127
|
const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
|
|
120
128
|
const formInFlightRef = _react.useRef.call(void 0, null);
|
|
@@ -159,7 +167,7 @@ function useTicketActions(options) {
|
|
|
159
167
|
}, []);
|
|
160
168
|
const executeTicketAction = _react.useCallback.call(void 0,
|
|
161
169
|
async (toolName, args) => {
|
|
162
|
-
const res = await
|
|
170
|
+
const res = await _chunkULWVKHSIcjs.embedAuthedFetch.call(void 0, ticketActionEndpoint, {
|
|
163
171
|
method: "POST",
|
|
164
172
|
body: JSON.stringify({ tool_name: toolName, args })
|
|
165
173
|
});
|
|
@@ -275,10 +283,10 @@ function useTicketActions(options) {
|
|
|
275
283
|
..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
|
|
276
284
|
});
|
|
277
285
|
if (result.mirror_synced === false) {
|
|
278
|
-
toast2(
|
|
286
|
+
toast2(_chunkZX7SCPLOcjs.TOAST_COPY.open_mirror_pending);
|
|
279
287
|
watchMirrorSync(placeholderId, result.ticket_id);
|
|
280
288
|
} else {
|
|
281
|
-
toast2(
|
|
289
|
+
toast2(_chunkZX7SCPLOcjs.TOAST_COPY.open_success);
|
|
282
290
|
await queryClient.invalidateQueries({ queryKey: ["tickets"] });
|
|
283
291
|
removeOptimistic(placeholderId);
|
|
284
292
|
}
|
|
@@ -364,7 +372,7 @@ function useTicketActions(options) {
|
|
|
364
372
|
...hasText ? { content_addendum: trimmed } : {},
|
|
365
373
|
...hasFiles ? { attachments } : {}
|
|
366
374
|
},
|
|
367
|
-
|
|
375
|
+
_chunkZX7SCPLOcjs.TOAST_COPY.comment_success,
|
|
368
376
|
"send message"
|
|
369
377
|
);
|
|
370
378
|
if (ok) {
|
|
@@ -387,13 +395,13 @@ function useTicketActions(options) {
|
|
|
387
395
|
status: "CLOSED",
|
|
388
396
|
..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
|
|
389
397
|
},
|
|
390
|
-
|
|
398
|
+
_chunkZX7SCPLOcjs.TOAST_COPY.close_success,
|
|
391
399
|
"close ticket"
|
|
392
400
|
),
|
|
393
401
|
[updateTicket]
|
|
394
402
|
);
|
|
395
403
|
const reopenTicket = _react.useCallback.call(void 0,
|
|
396
|
-
(ticket) => updateTicket(ticket, { status: "OPEN" },
|
|
404
|
+
(ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkZX7SCPLOcjs.TOAST_COPY.reopen_success, "reopen ticket"),
|
|
397
405
|
[updateTicket]
|
|
398
406
|
);
|
|
399
407
|
return _react.useMemo.call(void 0,
|
|
@@ -537,8 +545,8 @@ function useTicketsList(filters) {
|
|
|
537
545
|
const search = (_nullishCoalesce(filters.search, () => ( ""))).trim();
|
|
538
546
|
const status = (_nullishCoalesce(filters.status, () => ( ""))).trim().toLowerCase();
|
|
539
547
|
const statusFilter = status && status !== "all" ? status : "";
|
|
540
|
-
const page =
|
|
541
|
-
const pageSize =
|
|
548
|
+
const page = _chunkAECTRMGQcjs.positiveInt.call(void 0, filters.page, 1);
|
|
549
|
+
const pageSize = _chunkAECTRMGQcjs.positiveInt.call(void 0, filters.pageSize, DEFAULT_PAGE_SIZE, { max: _chunkAECTRMGQcjs.PAGE_PARAM_LIMITS.maxPageSize });
|
|
542
550
|
const enabled = !!customerEmail;
|
|
543
551
|
const identityKey = customerEmail || "anon";
|
|
544
552
|
const query = _reactquery.useQuery.call(void 0, {
|
|
@@ -562,7 +570,7 @@ function useTicketsList(filters) {
|
|
|
562
570
|
pageSize
|
|
563
571
|
};
|
|
564
572
|
if (statusFilter) body.status = statusFilter;
|
|
565
|
-
const response = await
|
|
573
|
+
const response = await _chunkULWVKHSIcjs.embedAuthedFetch.call(void 0, findTicketEndpoint, {
|
|
566
574
|
method: "POST",
|
|
567
575
|
body: JSON.stringify(body)
|
|
568
576
|
});
|
|
@@ -577,7 +585,7 @@ function useTicketsList(filters) {
|
|
|
577
585
|
const totalCount = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([data, 'optionalAccess', _12 => _12.totalCount]), () => ( _optionalChain([data, 'optionalAccess', _13 => _13.count]))), () => ( _optionalChain([data, 'optionalAccess', _14 => _14.tickets, 'optionalAccess', _15 => _15.length]))), () => ( 0));
|
|
578
586
|
const echoedPage = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _16 => _16.page]), () => ( page));
|
|
579
587
|
const echoedPageSize = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _17 => _17.pageSize]), () => ( pageSize));
|
|
580
|
-
const totalPages = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _18 => _18.totalPages]), () => (
|
|
588
|
+
const totalPages = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _18 => _18.totalPages]), () => ( _chunkAECTRMGQcjs.pageCount.call(void 0, totalCount, echoedPageSize)));
|
|
581
589
|
return {
|
|
582
590
|
tickets: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _19 => _19.tickets]), () => ( [])),
|
|
583
591
|
// Loading-state-truth = `data === undefined`. TanStack v5's
|
|
@@ -608,14 +616,14 @@ function useTicketsList(filters) {
|
|
|
608
616
|
// src/components/tickets/ticket-open-form.tsx
|
|
609
617
|
|
|
610
618
|
var _jsxruntime = require('react/jsx-runtime');
|
|
611
|
-
var COUNTER_VISIBLE_AT = Math.floor(
|
|
619
|
+
var COUNTER_VISIBLE_AT = Math.floor(_chunkZX7SCPLOcjs.TICKET_TEXT_MAX_CHARS * 0.8);
|
|
612
620
|
function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
613
621
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
614
622
|
const [content, setContent] = _react.useState.call(void 0, "");
|
|
615
|
-
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } =
|
|
623
|
+
const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkHETQETPVcjs.useChatAttachments.call(void 0, );
|
|
616
624
|
const trimmedSubject = subject.trim();
|
|
617
625
|
const trimmedContent = content.trim();
|
|
618
|
-
const overCap = content.length >
|
|
626
|
+
const overCap = content.length > _chunkZX7SCPLOcjs.TICKET_TEXT_MAX_CHARS;
|
|
619
627
|
const showCounter = content.length >= COUNTER_VISIBLE_AT;
|
|
620
628
|
const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
|
|
621
629
|
const handleSubmit = async (e) => {
|
|
@@ -632,7 +640,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
632
640
|
clear();
|
|
633
641
|
}
|
|
634
642
|
};
|
|
635
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
643
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkETYLOZOBcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkHETQETPVcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
|
|
636
644
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
|
|
637
645
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
|
|
638
646
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Can't find what you're looking for? Submit a support ticket below \u2014 we'll follow up shortly." }),
|
|
@@ -642,7 +650,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
642
650
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
643
651
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-subject", className: "mb-1 block text-ods-text-primary text-h6", children: "Ticket Subject" }),
|
|
644
652
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
645
|
-
|
|
653
|
+
_chunkXXBLN4BPcjs.Input,
|
|
646
654
|
{
|
|
647
655
|
id: "ticket-subject",
|
|
648
656
|
type: "text",
|
|
@@ -657,7 +665,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
657
665
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
658
666
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
|
|
659
667
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
660
|
-
|
|
668
|
+
_chunkL6ZQGWCXcjs.Textarea,
|
|
661
669
|
{
|
|
662
670
|
id: "ticket-content",
|
|
663
671
|
placeholder: "Describe your issue or question in detail...",
|
|
@@ -671,11 +679,11 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
671
679
|
showCounter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: `mt-1 text-right text-h6 ${overCap ? "text-ods-error" : "text-ods-text-secondary"}`, children: [
|
|
672
680
|
content.length,
|
|
673
681
|
"/",
|
|
674
|
-
|
|
682
|
+
_chunkZX7SCPLOcjs.TICKET_TEXT_MAX_CHARS
|
|
675
683
|
] })
|
|
676
684
|
] }),
|
|
677
685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
678
|
-
|
|
686
|
+
_chunkHETQETPVcjs.ChatAttachmentChipStrip,
|
|
679
687
|
{
|
|
680
688
|
attachments,
|
|
681
689
|
onRemove: removeAttachment,
|
|
@@ -684,7 +692,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
|
|
|
684
692
|
),
|
|
685
693
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
|
|
686
694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
687
|
-
|
|
695
|
+
_chunkHETQETPVcjs.ChatAttachmentAddButton,
|
|
688
696
|
{
|
|
689
697
|
attachmentsEnabled: !supportSystemDown,
|
|
690
698
|
attachmentsCount: attachments.length,
|
|
@@ -714,7 +722,7 @@ var _usesticktobottom = require('use-stick-to-bottom');
|
|
|
714
722
|
|
|
715
723
|
var LIST_ENGAGEMENTS_ENDPOINT = "/api/chat/agent/list-engagements";
|
|
716
724
|
function useTicketEngagements(externalTicketId, enabled = true) {
|
|
717
|
-
const identity =
|
|
725
|
+
const identity = _chunkHETQETPVcjs.useChatIdentity.call(void 0, );
|
|
718
726
|
const identityKey = _nullishCoalesce(_optionalChain([identity, 'access', _21 => _21.user, 'optionalAccess', _22 => _22.email]), () => ( "anon"));
|
|
719
727
|
const listEngagementsEndpoint = _nullishCoalesce(_chunkUJ7AXHRZcjs.useRequiredChatRuntime.call(void 0, ).endpoints.listEngagementsUrl, () => ( LIST_ENGAGEMENTS_ENDPOINT));
|
|
720
728
|
const fetchable = enabled && !!externalTicketId && !externalTicketId.startsWith("temp-");
|
|
@@ -734,7 +742,7 @@ function useTicketEngagements(externalTicketId, enabled = true) {
|
|
|
734
742
|
// `['ticket-engagements', id]`; focus/mount refetch is the no-stream
|
|
735
743
|
// fallback.
|
|
736
744
|
queryFn: async () => {
|
|
737
|
-
const response = await
|
|
745
|
+
const response = await _chunkULWVKHSIcjs.embedAuthedFetch.call(void 0, listEngagementsEndpoint, {
|
|
738
746
|
method: "POST",
|
|
739
747
|
body: JSON.stringify({ ticket_id: externalTicketId })
|
|
740
748
|
});
|
|
@@ -787,7 +795,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
|
|
|
787
795
|
dateClosed: clickup.date_closed,
|
|
788
796
|
clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
|
|
789
797
|
};
|
|
790
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${
|
|
798
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${_chunkETYLOZOBcjs.CONTENT_CARD_SKELETON_FRAME_CLASS} ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGCFRTNDcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
|
|
791
799
|
}
|
|
792
800
|
|
|
793
801
|
// src/components/tickets/ticket-reply-composer.tsx
|
|
@@ -802,7 +810,7 @@ function TicketReplyComposer({
|
|
|
802
810
|
}) {
|
|
803
811
|
const [resolution, setResolution] = _react.useState.call(void 0, "");
|
|
804
812
|
const [closeDialogOpen, setCloseDialogOpen] = _react.useState.call(void 0, false);
|
|
805
|
-
const attachments =
|
|
813
|
+
const attachments = _chunkHETQETPVcjs.useChatAttachments.call(void 0, );
|
|
806
814
|
const { readyAttachments, clear: clearAttachments } = attachments;
|
|
807
815
|
const ticketRef = { id: ticket.id, external_id: ticket.external_id };
|
|
808
816
|
const hasReadyFiles = readyAttachments.length > 0;
|
|
@@ -823,7 +831,7 @@ function TicketReplyComposer({
|
|
|
823
831
|
const disabled = busy || supportSystemDown;
|
|
824
832
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
825
833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
826
|
-
|
|
834
|
+
_chunkHETQETPVcjs.ChatAttachmentChipStrip,
|
|
827
835
|
{
|
|
828
836
|
attachments: attachments.attachments,
|
|
829
837
|
onRemove: attachments.removeAttachment,
|
|
@@ -832,7 +840,7 @@ function TicketReplyComposer({
|
|
|
832
840
|
}
|
|
833
841
|
),
|
|
834
842
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
835
|
-
|
|
843
|
+
_chunkDC4RTYWKcjs.ChatInput,
|
|
836
844
|
{
|
|
837
845
|
fullWidth: true,
|
|
838
846
|
autoFocus: true,
|
|
@@ -840,13 +848,13 @@ function TicketReplyComposer({
|
|
|
840
848
|
sending: busy || attachments.hasInflightUploads,
|
|
841
849
|
disabled: supportSystemDown,
|
|
842
850
|
allowEmptySend: hasReadyFiles,
|
|
843
|
-
maxLength:
|
|
851
|
+
maxLength: _chunkZX7SCPLOcjs.TICKET_TEXT_MAX_CHARS,
|
|
844
852
|
onSend: handleSend
|
|
845
853
|
}
|
|
846
854
|
),
|
|
847
855
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
|
|
848
856
|
!supportSystemDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
849
|
-
|
|
857
|
+
_chunkHETQETPVcjs.ChatAttachmentAddButton,
|
|
850
858
|
{
|
|
851
859
|
attachmentsEnabled: true,
|
|
852
860
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -869,25 +877,25 @@ function TicketReplyComposer({
|
|
|
869
877
|
}
|
|
870
878
|
)
|
|
871
879
|
] }),
|
|
872
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
873
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
874
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
875
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
880
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL6ZQGWCXcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkL6ZQGWCXcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
|
|
881
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkL6ZQGWCXcjs.AlertDialogHeader, { children: [
|
|
882
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL6ZQGWCXcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
|
|
883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL6ZQGWCXcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
|
|
876
884
|
] }),
|
|
877
885
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
878
|
-
|
|
886
|
+
_chunkL6ZQGWCXcjs.Textarea,
|
|
879
887
|
{
|
|
880
888
|
value: resolution,
|
|
881
889
|
onChange: (e) => setResolution(e.target.value),
|
|
882
890
|
placeholder: "Resolution (optional)",
|
|
883
891
|
rows: 3,
|
|
884
|
-
maxLength:
|
|
892
|
+
maxLength: _chunkZX7SCPLOcjs.TICKET_TEXT_MAX_CHARS,
|
|
885
893
|
className: "mt-2"
|
|
886
894
|
}
|
|
887
895
|
),
|
|
888
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
896
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkL6ZQGWCXcjs.AlertDialogFooter, { children: [
|
|
889
897
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
-
|
|
898
|
+
_chunkL6ZQGWCXcjs.AlertDialogCancel,
|
|
891
899
|
{
|
|
892
900
|
disabled: busy,
|
|
893
901
|
className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
|
|
@@ -895,7 +903,7 @@ function TicketReplyComposer({
|
|
|
895
903
|
}
|
|
896
904
|
),
|
|
897
905
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
898
|
-
|
|
906
|
+
_chunkL6ZQGWCXcjs.AlertDialogAction,
|
|
899
907
|
{
|
|
900
908
|
onClick: () => void confirmClose(),
|
|
901
909
|
disabled: busy,
|
|
@@ -957,10 +965,10 @@ var TICKET_FEED_HEIGHT = "h-[60vh] md:h-[420px]";
|
|
|
957
965
|
var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6";
|
|
958
966
|
var TICKET_FEED_SKELETON_ROWS = 6;
|
|
959
967
|
function TicketTimelinePanel({ ticket }) {
|
|
960
|
-
const identity =
|
|
961
|
-
const externalId =
|
|
968
|
+
const identity = _chunkHETQETPVcjs.useChatIdentity.call(void 0, );
|
|
969
|
+
const externalId = _chunkZX7SCPLOcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
|
|
962
970
|
const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
|
|
963
|
-
const live =
|
|
971
|
+
const live = _chunkZX7SCPLOcjs.useOptionalTicketLive.call(void 0, );
|
|
964
972
|
const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
|
|
965
973
|
const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
|
|
966
974
|
const markReadDebounceRef = _react.useRef.call(void 0, null);
|
|
@@ -984,7 +992,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
984
992
|
markReadDebounceRef.current = setTimeout(() => {
|
|
985
993
|
markReadDebounceRef.current = null;
|
|
986
994
|
void markRead(externalId);
|
|
987
|
-
},
|
|
995
|
+
}, _chunkZX7SCPLOcjs.TICKET_MARK_READ_DEBOUNCE_MS);
|
|
988
996
|
}, [engagementsCount, externalId, markRead]);
|
|
989
997
|
const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
|
|
990
998
|
const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
|
|
@@ -999,11 +1007,11 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
999
1007
|
const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _40 => _40.user, 'optionalAccess', _41 => _41.email]) || "You";
|
|
1000
1008
|
const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _42 => _42.user, 'optionalAccess', _43 => _43.avatarUrl]), () => ( void 0)) : void 0;
|
|
1001
1009
|
if (isLoading) {
|
|
1002
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_FEED_INNER, children: Array.from({ length: TICKET_FEED_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1010
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_FEED_INNER, children: Array.from({ length: TICKET_FEED_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHETQETPVcjs.ChatMessageRowSkeleton, {}, i)) }) });
|
|
1003
1011
|
}
|
|
1004
1012
|
if (bodyTurns.length === 0 && engagements.length === 0) {
|
|
1005
1013
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1006
|
-
|
|
1014
|
+
_chunkMA4Q5RBPcjs.EmptyState,
|
|
1007
1015
|
{
|
|
1008
1016
|
type: "generic",
|
|
1009
1017
|
title: "No conversation yet",
|
|
@@ -1018,7 +1026,7 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1018
1026
|
const isResolution = turn.startsWith("[Resolution]");
|
|
1019
1027
|
const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
|
|
1020
1028
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1021
|
-
|
|
1029
|
+
_chunkHETQETPVcjs.ChatMessageRow,
|
|
1022
1030
|
{
|
|
1023
1031
|
displayName: customerName,
|
|
1024
1032
|
avatarUrl: customerAvatar,
|
|
@@ -1047,13 +1055,13 @@ function TicketTimelinePanel({ ticket }) {
|
|
|
1047
1055
|
}
|
|
1048
1056
|
const engAttachments = mapEngagementAttachments(eng.attachments);
|
|
1049
1057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1050
|
-
|
|
1058
|
+
_chunkHETQETPVcjs.ChatMessageRow,
|
|
1051
1059
|
{
|
|
1052
1060
|
displayName: author,
|
|
1053
1061
|
avatarUrl: avatarSrc,
|
|
1054
|
-
timeLabel: eng.createdAt ?
|
|
1062
|
+
timeLabel: eng.createdAt ? _chunkKT3U3ZRPcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
|
|
1055
1063
|
body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
|
|
1056
|
-
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1064
|
+
footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL6ZQGWCXcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
|
|
1057
1065
|
},
|
|
1058
1066
|
eng.id
|
|
1059
1067
|
);
|
|
@@ -1138,7 +1146,7 @@ function AssignedAgentRow({ assignedOwner }) {
|
|
|
1138
1146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h5", children: "Assigned to" }),
|
|
1139
1147
|
displayLabel ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5 font-medium text-ods-text-primary", children: [
|
|
1140
1148
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1141
|
-
|
|
1149
|
+
_chunkF5BPGWGTcjs.SquareAvatar,
|
|
1142
1150
|
{
|
|
1143
1151
|
size: "sm",
|
|
1144
1152
|
variant: "round",
|
|
@@ -1166,11 +1174,11 @@ function TicketRow({
|
|
|
1166
1174
|
onActionCollapsed,
|
|
1167
1175
|
id
|
|
1168
1176
|
}) {
|
|
1169
|
-
const optimistic =
|
|
1177
|
+
const optimistic = _chunkZX7SCPLOcjs.isOptimistic.call(void 0, ticket);
|
|
1170
1178
|
const rowRef = _react.useRef.call(void 0, null);
|
|
1171
1179
|
const handleClick = _react.useCallback.call(void 0, () => {
|
|
1172
1180
|
onToggle(ticket.id);
|
|
1173
|
-
|
|
1181
|
+
_chunkGQ7JJUITcjs.scrollElementIntoView.call(void 0, rowRef.current, {
|
|
1174
1182
|
adjustTargetY: (raw) => {
|
|
1175
1183
|
if (!rowRef.current) return raw;
|
|
1176
1184
|
const expandedDrawer = document.querySelector('div[id^="ticket-drawer-"]');
|
|
@@ -1194,7 +1202,7 @@ function TicketRow({
|
|
|
1194
1202
|
// so the badge accurately reflects "Closed" with a checkmark.
|
|
1195
1203
|
statusLabel: _nullishCoalesce(ticket.pipeline_stage_label, () => ( void 0)),
|
|
1196
1204
|
category: _nullishCoalesce(ticket.customer_company, () => ( void 0)),
|
|
1197
|
-
timeAgo: ticket.hubspot_updated_at ?
|
|
1205
|
+
timeAgo: ticket.hubspot_updated_at ? _chunkKT3U3ZRPcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : void 0,
|
|
1198
1206
|
// Linked-work chip: surfaced whenever the ticket has a linked
|
|
1199
1207
|
// ClickUp task. Uses the linked task's own status so the chip text
|
|
1200
1208
|
// reads "Working" / "Waiting on version release" / etc. — useful
|
|
@@ -1204,7 +1212,7 @@ function TicketRow({
|
|
|
1204
1212
|
};
|
|
1205
1213
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rowRef, id, className: "scroll-mt-24", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Collapsible, { open: expanded && !optimistic, className: "border-b border-ods-border last:border-b-0", children: [
|
|
1206
1214
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1207
|
-
|
|
1215
|
+
_chunkHETQETPVcjs.ChatTicketItem,
|
|
1208
1216
|
{
|
|
1209
1217
|
ticket: tileData,
|
|
1210
1218
|
onClick: optimistic ? void 0 : handleClick,
|
|
@@ -1236,14 +1244,14 @@ function TicketRow({
|
|
|
1236
1244
|
|
|
1237
1245
|
// src/components/tickets/ticket-center.tsx
|
|
1238
1246
|
|
|
1239
|
-
function TicketCenter({ toast: toast2 =
|
|
1240
|
-
const identity =
|
|
1247
|
+
function TicketCenter({ toast: toast2 = _chunkJO5TLJPMcjs.toast } = {}) {
|
|
1248
|
+
const identity = _chunkHETQETPVcjs.useChatIdentity.call(void 0, );
|
|
1241
1249
|
if (identity.isLoading) {
|
|
1242
1250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterSkeleton, {});
|
|
1243
1251
|
}
|
|
1244
1252
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _62 => _62.user, 'optionalAccess', _63 => _63.email])) {
|
|
1245
1253
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1246
|
-
|
|
1254
|
+
_chunkMA4Q5RBPcjs.EmptyState,
|
|
1247
1255
|
{
|
|
1248
1256
|
type: "generic",
|
|
1249
1257
|
title: "Sign in to manage tickets",
|
|
@@ -1308,7 +1316,7 @@ function TicketCenterAuthed({
|
|
|
1308
1316
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
1309
1317
|
lastUpdatedAt && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
|
|
1310
1318
|
"Updated ",
|
|
1311
|
-
|
|
1319
|
+
_chunkKT3U3ZRPcjs.formatRelativeTime.call(void 0, new Date(lastUpdatedAt))
|
|
1312
1320
|
] }),
|
|
1313
1321
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1314
1322
|
_chunkDFQYAYBHcjs.Button,
|
|
@@ -1324,22 +1332,22 @@ function TicketCenterAuthed({
|
|
|
1324
1332
|
)
|
|
1325
1333
|
] })
|
|
1326
1334
|
] }),
|
|
1327
|
-
isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketListSkeleton, {}) : merged.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1328
|
-
|
|
1335
|
+
isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketListSkeleton, {}) : merged.length === 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkETYLOZOBcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1336
|
+
_chunkMA4Q5RBPcjs.EmptyState,
|
|
1329
1337
|
{
|
|
1330
1338
|
type: "generic",
|
|
1331
1339
|
title: "No tickets yet",
|
|
1332
1340
|
description: "Open one above to start the conversation.",
|
|
1333
1341
|
showCTA: false
|
|
1334
1342
|
}
|
|
1335
|
-
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1343
|
+
) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkETYLOZOBcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1336
1344
|
TicketRow,
|
|
1337
1345
|
{
|
|
1338
|
-
id:
|
|
1346
|
+
id: _chunkHETQETPVcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1339
1347
|
ticket,
|
|
1340
1348
|
expanded: expandedTicketId === ticket.id,
|
|
1341
1349
|
onToggle: toggleRow,
|
|
1342
|
-
busy:
|
|
1350
|
+
busy: _chunkZX7SCPLOcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1343
1351
|
supportSystemDown,
|
|
1344
1352
|
onSendMessage: actions.sendMessage,
|
|
1345
1353
|
onClose: actions.closeTicket,
|
|
@@ -1353,22 +1361,22 @@ function TicketCenterAuthed({
|
|
|
1353
1361
|
}
|
|
1354
1362
|
function TicketCenterSkeleton() {
|
|
1355
1363
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-6", children: [
|
|
1356
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1357
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1358
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1359
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1364
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkETYLOZOBcjs.Card, { className: "p-6", children: [
|
|
1365
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.Skeleton, { className: "mb-4 h-7 w-48" }),
|
|
1366
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.Skeleton, { className: "mb-3 h-10 w-full" }),
|
|
1367
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.Skeleton, { className: "h-24 w-full" })
|
|
1360
1368
|
] }),
|
|
1361
1369
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketListSkeleton, {})
|
|
1362
1370
|
] });
|
|
1363
1371
|
}
|
|
1364
1372
|
function TicketListSkeleton() {
|
|
1365
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1373
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkETYLOZOBcjs.Card, { className: "overflow-hidden", children: [0, 1, 2].map((i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-4 border-b border-ods-border px-4 last:border-b-0", children: [
|
|
1366
1374
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
1367
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1368
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1375
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.Skeleton, { className: "h-4 w-2/3" }),
|
|
1376
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.Skeleton, { className: "h-3 w-full" })
|
|
1369
1377
|
] }),
|
|
1370
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1371
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.Skeleton, { className: "h-8 w-20" }),
|
|
1379
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCPA2CKRZcjs.Skeleton, { className: "h-8 w-16" })
|
|
1372
1380
|
] }, i)) });
|
|
1373
1381
|
}
|
|
1374
1382
|
|
|
@@ -1393,10 +1401,10 @@ function HelpCenterCard({
|
|
|
1393
1401
|
onClearReplyError,
|
|
1394
1402
|
id
|
|
1395
1403
|
}) {
|
|
1396
|
-
const optimistic =
|
|
1404
|
+
const optimistic = _chunkZX7SCPLOcjs.isOptimistic.call(void 0, ticket);
|
|
1397
1405
|
const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
|
|
1398
1406
|
const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
|
|
1399
|
-
const relativeUpdated = ticket.hubspot_updated_at ?
|
|
1407
|
+
const relativeUpdated = ticket.hubspot_updated_at ? _chunkKT3U3ZRPcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
|
|
1400
1408
|
const title = (ticket.subject || "").trim() || "(untitled)";
|
|
1401
1409
|
const subtitle = `UPDATED ${relativeUpdated}, #${ticket.external_id || "\u2014"}${ticket.pipeline_stage_label ? `, ${ticket.pipeline_stage_label}` : ""}`;
|
|
1402
1410
|
const description = _nullishCoalesce(_nullishCoalesce(ticket.preview, () => ( ticket.body)), () => ( ""));
|
|
@@ -1409,17 +1417,17 @@ function HelpCenterCard({
|
|
|
1409
1417
|
_react.useEffect.call(void 0, () => {
|
|
1410
1418
|
if (!isExpanded) return void 0;
|
|
1411
1419
|
const raf = requestAnimationFrame(() => {
|
|
1412
|
-
|
|
1413
|
-
headerOffset:
|
|
1420
|
+
_chunkGQ7JJUITcjs.scrollElementIntoView.call(void 0, rowRef.current, {
|
|
1421
|
+
headerOffset: _chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX
|
|
1414
1422
|
});
|
|
1415
1423
|
});
|
|
1416
1424
|
return () => cancelAnimationFrame(raf);
|
|
1417
1425
|
}, [isExpanded]);
|
|
1418
|
-
const live =
|
|
1426
|
+
const live = _chunkZX7SCPLOcjs.useOptionalTicketLive.call(void 0, );
|
|
1419
1427
|
const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
|
|
1420
1428
|
const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1421
1429
|
unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1422
|
-
|
|
1430
|
+
_chunkETYLOZOBcjs.StatusBadge,
|
|
1423
1431
|
{
|
|
1424
1432
|
text: `${unreadCount} NEW`,
|
|
1425
1433
|
colorScheme: "warning",
|
|
@@ -1428,16 +1436,16 @@ function HelpCenterCard({
|
|
|
1428
1436
|
}
|
|
1429
1437
|
),
|
|
1430
1438
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1431
|
-
|
|
1439
|
+
_chunkETYLOZOBcjs.StatusBadge,
|
|
1432
1440
|
{
|
|
1433
1441
|
text: rawStatus,
|
|
1434
|
-
colorScheme:
|
|
1442
|
+
colorScheme: _chunkETYLOZOBcjs.getStatusColorScheme.call(void 0, rawStatus),
|
|
1435
1443
|
variant: "card",
|
|
1436
1444
|
className: "border border-ods-border"
|
|
1437
1445
|
}
|
|
1438
1446
|
),
|
|
1439
1447
|
priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1440
|
-
|
|
1448
|
+
_chunkETYLOZOBcjs.StatusBadge,
|
|
1441
1449
|
{
|
|
1442
1450
|
text: priority,
|
|
1443
1451
|
colorScheme: mapPriorityScheme(priority),
|
|
@@ -1451,7 +1459,7 @@ function HelpCenterCard({
|
|
|
1451
1459
|
{
|
|
1452
1460
|
ref: rowRef,
|
|
1453
1461
|
id,
|
|
1454
|
-
style: { scrollMarginTop:
|
|
1462
|
+
style: { scrollMarginTop: _chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX },
|
|
1455
1463
|
className: `border-b border-ods-border last:border-b-0 ${optimistic ? "opacity-60" : ""}`,
|
|
1456
1464
|
"aria-busy": optimistic || void 0,
|
|
1457
1465
|
children: [
|
|
@@ -1465,7 +1473,7 @@ function HelpCenterCard({
|
|
|
1465
1473
|
"aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
|
|
1466
1474
|
className: "w-full p-[12px] text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent disabled:cursor-default content-md:p-[16px]",
|
|
1467
1475
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1468
|
-
|
|
1476
|
+
_chunkJGCFRTNDcjs.DevCardRowContent,
|
|
1469
1477
|
{
|
|
1470
1478
|
title,
|
|
1471
1479
|
subtitle,
|
|
@@ -1540,12 +1548,12 @@ function HelpCenterCreateForm({
|
|
|
1540
1548
|
const [subject, setSubject] = _react.useState.call(void 0, "");
|
|
1541
1549
|
const [subjectError, setSubjectError] = _react.useState.call(void 0, null);
|
|
1542
1550
|
const subjectField = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
1543
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1551
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkXXBLN4BPcjs.Label, { htmlFor: "help-center-subject", children: [
|
|
1544
1552
|
"Subject",
|
|
1545
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1553
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXXBLN4BPcjs.RequiredMark, {})
|
|
1546
1554
|
] }),
|
|
1547
1555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1548
|
-
|
|
1556
|
+
_chunkXXBLN4BPcjs.Input,
|
|
1549
1557
|
{
|
|
1550
1558
|
id: "help-center-subject",
|
|
1551
1559
|
type: "text",
|
|
@@ -1566,7 +1574,7 @@ function HelpCenterCreateForm({
|
|
|
1566
1574
|
subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
|
|
1567
1575
|
] });
|
|
1568
1576
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1569
|
-
|
|
1577
|
+
_chunk3UAJLO5Ucjs.ContactForm,
|
|
1570
1578
|
{
|
|
1571
1579
|
rescue: null,
|
|
1572
1580
|
title: "Open a new ticket",
|
|
@@ -1604,31 +1612,31 @@ function HelpCenterCreateForm({
|
|
|
1604
1612
|
|
|
1605
1613
|
// src/components/tickets/help-center-list.tsx
|
|
1606
1614
|
|
|
1607
|
-
function HelpCenterList({ toast: toast2 =
|
|
1608
|
-
const identity =
|
|
1615
|
+
function HelpCenterList({ toast: toast2 = _chunkJO5TLJPMcjs.toast, backButton, title, shell } = {}) {
|
|
1616
|
+
const identity = _chunkHETQETPVcjs.useChatIdentity.call(void 0, );
|
|
1609
1617
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
1610
1618
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
1611
1619
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
1612
|
-
const search = searchParams.get(
|
|
1620
|
+
const search = searchParams.get(_chunkHETQETPVcjs.DEV_SECTION_PARAM_KEYS.search) || "";
|
|
1613
1621
|
const status = searchParams.get("status") || "all";
|
|
1614
|
-
const ticketParam = searchParams.get(
|
|
1615
|
-
const page =
|
|
1622
|
+
const ticketParam = searchParams.get(_chunkHETQETPVcjs.TICKET_OPEN_PARAM) || "";
|
|
1623
|
+
const page = _chunkAECTRMGQcjs.positiveInt.call(void 0, searchParams.get("page"), 1);
|
|
1616
1624
|
if (identity.isLoading) {
|
|
1617
1625
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1618
|
-
|
|
1626
|
+
_chunkJGCFRTNDcjs.DevSectionPage,
|
|
1619
1627
|
{
|
|
1620
1628
|
sectionKey: "tickets",
|
|
1621
1629
|
backButton,
|
|
1622
1630
|
title,
|
|
1623
1631
|
shell,
|
|
1624
1632
|
preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
|
|
1625
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1633
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGCFRTNDcjs.DevCardRowSkeletonList, {})
|
|
1626
1634
|
}
|
|
1627
1635
|
);
|
|
1628
1636
|
}
|
|
1629
1637
|
if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
|
|
1630
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1631
|
-
|
|
1638
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGCFRTNDcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1639
|
+
_chunkMA4Q5RBPcjs.EmptyState,
|
|
1632
1640
|
{
|
|
1633
1641
|
type: "generic",
|
|
1634
1642
|
title: "Sign in to manage tickets",
|
|
@@ -1679,8 +1687,8 @@ function HelpCenterListAuthed({
|
|
|
1679
1687
|
const setOpenTicket = _react.useCallback.call(void 0,
|
|
1680
1688
|
(externalId) => {
|
|
1681
1689
|
const params = new URLSearchParams(searchParams.toString());
|
|
1682
|
-
if (externalId) params.set(
|
|
1683
|
-
else params.delete(
|
|
1690
|
+
if (externalId) params.set(_chunkHETQETPVcjs.TICKET_OPEN_PARAM, externalId);
|
|
1691
|
+
else params.delete(_chunkHETQETPVcjs.TICKET_OPEN_PARAM);
|
|
1684
1692
|
const qs = params.toString();
|
|
1685
1693
|
router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
|
|
1686
1694
|
},
|
|
@@ -1737,7 +1745,7 @@ function HelpCenterListAuthed({
|
|
|
1737
1745
|
[tickets, ticketParam, setOpenTicket]
|
|
1738
1746
|
);
|
|
1739
1747
|
const merged = [...optimisticTickets, ...tickets];
|
|
1740
|
-
|
|
1748
|
+
_chunkJO5TLJPMcjs.useScrollToHash.call(void 0, tickets, { headerOffset: _chunkGQ7JJUITcjs.STICKY_HEADER_OFFSET_PX });
|
|
1741
1749
|
const hasActiveFilters = search !== "" || status !== "" && status !== "all";
|
|
1742
1750
|
const hasResults = merged.length > 0;
|
|
1743
1751
|
const form = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1757,15 +1765,15 @@ function HelpCenterListAuthed({
|
|
|
1757
1765
|
] }),
|
|
1758
1766
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDFQYAYBHcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
|
|
1759
1767
|
] }),
|
|
1760
|
-
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1768
|
+
!error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGCFRTNDcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
|
|
1761
1769
|
// Bridge state — background refetch in flight and the
|
|
1762
1770
|
// optimistic placeholder was just removed by the mutation
|
|
1763
1771
|
// callback. Without this branch "No tickets yet" would flash
|
|
1764
1772
|
// for ~50ms between `removeOptimistic` and the server
|
|
1765
1773
|
// response landing.
|
|
1766
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1774
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGCFRTNDcjs.DevCardRowSkeletonList, { rows: 1 })
|
|
1767
1775
|
) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1768
|
-
|
|
1776
|
+
_chunkJGCFRTNDcjs.ListEmptyState,
|
|
1769
1777
|
{
|
|
1770
1778
|
isFiltered: hasActiveFilters,
|
|
1771
1779
|
filtered: {
|
|
@@ -1796,11 +1804,11 @@ function HelpCenterListAuthed({
|
|
|
1796
1804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full overflow-clip rounded-[6px] border border-ods-border bg-ods-card", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1797
1805
|
HelpCenterCard,
|
|
1798
1806
|
{
|
|
1799
|
-
id:
|
|
1807
|
+
id: _chunkHETQETPVcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
|
|
1800
1808
|
ticket,
|
|
1801
1809
|
expanded: expandedTicketId === ticket.id,
|
|
1802
1810
|
onToggle: toggleRow,
|
|
1803
|
-
busy:
|
|
1811
|
+
busy: _chunkZX7SCPLOcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
|
|
1804
1812
|
supportSystemDown,
|
|
1805
1813
|
onSendMessage: actions.sendMessage,
|
|
1806
1814
|
onClose: actions.closeTicket,
|
|
@@ -1812,9 +1820,9 @@ function HelpCenterListAuthed({
|
|
|
1812
1820
|
ticket.id
|
|
1813
1821
|
)) })
|
|
1814
1822
|
) }),
|
|
1815
|
-
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1823
|
+
!error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMA4Q5RBPcjs.UnifiedPagination, { currentPage: page, totalPages })
|
|
1816
1824
|
] });
|
|
1817
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1825
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJGCFRTNDcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
|
|
1818
1826
|
}
|
|
1819
1827
|
|
|
1820
1828
|
|