@kedem/okdb 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/okdb.js +1 -1
- package/okdb-data/default/data.mdb +0 -0
- package/okdb-data/default/lock.mdb +0 -0
- package/okdb-data/~log/data.mdb +0 -0
- package/okdb-data/~log/lock.mdb +0 -0
- package/okdb-data/~system/data.mdb +0 -0
- package/okdb-data/~system/lock.mdb +0 -0
- package/okdb.js +1 -1
- package/package.json +1 -1
- package/public/admin-app.js +1 -1
- package/public/components/admin-route-host.ok.js +1 -1
- package/public/components/env-picker.ok.js +1 -1
- package/public/components/field-path-input.ok.js +1 -1
- package/public/components/geo-map.ok.js +1 -1
- package/public/components/ok-cron-input.ok.js +1 -1
- package/public/components/ok-dropzone.ok.js +1 -1
- package/public/components/ok-js-input.ok.js +1 -1
- package/public/components/ok-json-input.ok.js +1 -1
- package/public/components/ok-text-monaco-input.ok.js +1 -1
- package/public/components/theme-toggle.ok.js +1 -1
- package/public/login-app.js +1 -1
- package/public/modules/ok.js +1 -1
- package/public/sections/api/parts/api-endpoint.ok.js +1 -1
- package/public/sections/auth/modals/create-token-modal.ok.js +1 -1
- package/public/sections/auth/modals/edit-token-modal.ok.js +1 -1
- package/public/sections/auth/modals/perm-info-popover.ok.js +1 -1
- package/public/sections/auth/parts/token-detail.ok.js +1 -1
- package/public/sections/auth/parts/token-list.ok.js +1 -1
- package/public/sections/db/modals/add-item-modal.ok.js +1 -1
- package/public/sections/db/modals/create-env-modal.ok.js +1 -1
- package/public/sections/db/modals/create-fts-modal.ok.js +1 -1
- package/public/sections/db/modals/create-index-modal.ok.js +1 -1
- package/public/sections/db/modals/create-pipeline-modal.ok.js +1 -1
- package/public/sections/db/modals/demo-env-modal.ok.js +1 -1
- package/public/sections/db/modals/remove-env-modal.ok.js +1 -1
- package/public/sections/db/modals/schema-edit-modal.ok.js +1 -1
- package/public/sections/db/parts/db-overview.ok.js +1 -1
- package/public/sections/db/parts/db-pipelines-panel.ok.js +1 -1
- package/public/sections/db/parts/edit-row.ok.js +1 -1
- package/public/sections/db/parts/tm-timeline.ok.js +1 -1
- package/public/sections/db/parts/type-changelog.ok.js +1 -1
- package/public/sections/db/parts/type-list.ok.js +1 -1
- package/public/sections/db/parts/type-pipelines-tab.ok.js +1 -1
- package/public/sections/db/parts/type-schema-tab.ok.js +1 -1
- package/public/sections/db/parts/type-viewer.ok.js +1 -1
- package/public/sections/db/parts/type-violations-tab.ok.js +1 -1
- package/public/sections/embeddings/modals/register-model-modal.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-engine-list.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-model-catalog.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +1 -1
- package/public/sections/engines/engine-panel-shared-style.js +1 -1
- package/public/sections/engines/engine-ui-utils.js +1 -1
- package/public/sections/engines/modals/engine-modal.ok.js +1 -1
- package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
- package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
- package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
- package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
- package/public/sections/engines/parts/engine-row-item.ok.js +1 -1
- package/public/sections/engines/parts/generic-engine-panel.ok.js +1 -1
- package/public/sections/files/parts/files-blob-status.ok.js +1 -1
- package/public/sections/files/parts/files-collection-list.ok.js +1 -1
- package/public/sections/files/parts/files-collection-panel.ok.js +1 -1
- package/public/sections/files/parts/files-file-list.ok.js +1 -1
- package/public/sections/files/parts/files-overview.ok.js +1 -1
- package/public/sections/files/parts/files-path-browser.ok.js +1 -1
- package/public/sections/files/parts/files-upload-panel.ok.js +1 -1
- package/public/sections/functions/modals/function-modal.ok.js +1 -1
- package/public/sections/functions/parts/function-detail.ok.js +1 -1
- package/public/sections/functions/parts/function-logs.ok.js +1 -1
- package/public/sections/functions/parts/function-runner.ok.js +1 -1
- package/public/sections/functions/parts/functions-list.ok.js +1 -1
- package/public/sections/license/parts/license-panel.ok.js +1 -1
- package/public/sections/queue/modals/create-bucket-modal.ok.js +1 -1
- package/public/sections/queue/modals/edit-bucket-modal.ok.js +1 -1
- package/public/sections/queue/modals/edit-job-modal.ok.js +1 -1
- package/public/sections/queue/modals/enqueue-job-modal.ok.js +1 -1
- package/public/sections/queue/modals/job-type-modal.ok.js +1 -1
- package/public/sections/queue/parts/ok-job-form.ok.js +1 -1
- package/public/sections/queue/parts/queue-buckets.ok.js +1 -1
- package/public/sections/queue/parts/queue-job-types.ok.js +1 -1
- package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
- package/public/sections/queue/parts/queue-types.ok.js +1 -1
- package/public/sections/queue/parts/queue-workers.ok.js +1 -1
- package/public/sections/sync/parts/sync-node-detail.ok.js +1 -1
- package/public/sections/sync/parts/sync-retention.ok.js +1 -1
- package/public/sections/sync/parts/sync-topology.ok.js +1 -1
- package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
- package/public/sections/system/parts/system-api-panel.ok.js +1 -1
- package/public/sections/system/parts/system-auth-panel.ok.js +1 -1
- package/public/sections/system/parts/system-log-history.ok.js +1 -1
- package/public/sections/system/parts/system-log.ok.js +1 -1
- package/public/sections/system/parts/system-status.ok.js +1 -1
- package/public/sections/system/parts/system-sync-panel.ok.js +1 -1
- package/public/sections/views/modals/create-view-modal.ok.js +1 -1
- package/public/sections/views/parts/view-detail.ok.js +1 -1
- package/public/sections/views/parts/views-list.ok.js +1 -1
- package/public/sections/views/parts/views-overview.ok.js +1 -1
- package/public/setup-app.js +1 -1
- package/public/stores/auth-store.js +1 -1
- package/public/stores/events-store.js +1 -1
- package/public/stores/functions-store.js +1 -1
- package/public/stores/okdb-store.js +1 -1
- package/public/stores/theme-store.js +1 -1
- package/public/util/permissions.js +1 -1
- package/public/util/sift-schema.js +1 -1
- package/public/view-models/type-query-vm.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x9de5a5=_0x46ba;(function(_0x1b09cc,_0x1cdf3d){const _0x2f1122=_0x46ba,_0x496639=_0x1b09cc();while(!![]){try{const _0x4777ea=-parseInt(_0x2f1122(0x85))/0x1*(parseInt(_0x2f1122(0xd2))/0x2)+-parseInt(_0x2f1122(0x87))/0x3+-parseInt(_0x2f1122(0xb2))/0x4+parseInt(_0x2f1122(0x7d))/0x5*(parseInt(_0x2f1122(0xcb))/0x6)+parseInt(_0x2f1122(0x83))/0x7+parseInt(_0x2f1122(0xae))/0x8*(-parseInt(_0x2f1122(0xc1))/0x9)+parseInt(_0x2f1122(0x8f))/0xa;if(_0x4777ea===_0x1cdf3d)break;else _0x496639['push'](_0x496639['shift']());}catch(_0xbdd110){_0x496639['push'](_0x496639['shift']());}}}(_0x1bcb,0x7aeba));function _0x46ba(_0x2c30f0,_0x162662){_0x2c30f0=_0x2c30f0-0x75;const _0x1bcb80=_0x1bcb();let _0x46ba36=_0x1bcb80[_0x2c30f0];return _0x46ba36;}function _0x1bcb(){const _0x3662d6=['Failed','application/json','map','error','/item/','/ttl','object','clock','var(--okdb-success)','stores','TTL\x20set\x20(','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<transition\x20name=\x22grow\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Clock\x20+\x20TTL\x20badges\x20row\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20margin-bottom:8px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22toggleClock()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:10px;\x20padding:1px\x207px;\x20border-radius:4px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-muted);\x20cursor:pointer;\x20font-family:monospace;\x20display:flex;\x20align-items:center;\x20gap:5px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Show\x20change\x20history\x20for\x20this\x20record\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22clockBusy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>clock\x20…</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22!clockBusy\x20&&\x20latestClock\x20!=\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>clock:\x20{{\x20latestClock\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22latestTime\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-family:sans-serif;\x20font-size:10px;\x22>·\x20{{\x20latestTime\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.4;\x22>{{\x20clockOpen\x20?\x20\x27▲\x27\x20:\x20\x27▼\x27\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22!clockBusy\x20&&\x20latestClock\x20==\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.5;\x22>no\x20clock</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22ttlOpen\x20=\x20!ttlOpen\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22\x27font-size:10px;\x20padding:1px\x207px;\x20border-radius:4px;\x20border:1px\x20solid\x20\x27\x20+\x20(ttlInfo\x20?\x20ttlBadgeColor\x20+\x20\x2755\x27\x20:\x20\x27var(--okdb-app-border)\x27)\x20+\x20\x27;\x20background:var(--okdb-app-bg-deep);\x20color:\x27\x20+\x20ttlBadgeColor\x20+\x20\x27;\x20cursor:pointer;\x20font-family:monospace;\x20display:flex;\x20align-items:center;\x20gap:5px;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22TTL\x20(time-to-live)\x20for\x20this\x20record\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>{{\x20ttlBadgeText\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ttlInfo\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.4;\x22>{{\x20ttlOpen\x20?\x20\x27▲\x27\x20:\x20\x27▼\x27\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Changelog\x20+\x20time-travel\x20panel\x20(opens\x20when\x20clock\x20badge\x20clicked)\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22clockOpen\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22margin-bottom:10px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Changelog\x20table\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22clockEntries\x20&&\x20clockEntries.length\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22margin-bottom:8px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:6px;\x20overflow:hidden;\x20font-size:11px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:grid;\x20grid-template-columns:auto\x20auto\x201fr\x20auto;\x20gap:0;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:4px\x2010px;\x20opacity:.4;\x20border-bottom:1px\x20solid\x20var(--okdb-app-border);\x20font-weight:600;\x22>clock</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:4px\x2010px;\x20opacity:.4;\x20border-bottom:1px\x20solid\x20var(--okdb-app-border);\x20font-weight:600;\x22>action</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:4px\x2010px;\x20opacity:.4;\x20border-bottom:1px\x20solid\x20var(--okdb-app-border);\x20font-weight:600;\x22>wall\x20time</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:4px\x2010px;\x20opacity:.4;\x20border-bottom:1px\x20solid\x20var(--okdb-app-border);\x20font-weight:600;\x22>origin</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22clockEntries\x22\x20let:item=\x22entry\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:3px\x2010px;\x20font-family:monospace;\x20opacity:.8;\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface);\x22>{{\x20entry.clock\x20??\x20\x27—\x27\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:3px\x2010px;\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface);\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27color:\x27\x20+\x20(entry.action\x20===\x20\x27put\x27\x20?\x20\x27var(--okdb-success)\x27\x20:\x20entry.action\x20===\x20\x27remove\x27\x20?\x20\x27var(--okdb-danger)\x27\x20:\x20\x27var(--okdb-warning)\x27)\x22>{{\x20entry.action\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:3px\x2010px;\x20opacity:.6;\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface);\x20white-space:nowrap;\x22>{{\x20hlcToDate(entry.timestamp)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:3px\x2010px;\x20font-family:monospace;\x20opacity:.35;\x20font-size:10px;\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface);\x20white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20max-width:120px;\x22\x20:title=\x22entry.origin\x22>{{\x20(entry.origin\x20||\x20\x27—\x27).slice(0,\x208)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Time-travel\x20scrubber\x20(sits\x20outside\x20overflow:hidden\x20so\x20tooltips\x20aren\x27t\x20clipped)\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tm-timeline\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:type=\x22type\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:item-key=\x22key\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:env=\x22$ok.stores.okdb.selectedEnv\x20||\x20\x27default\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:selected-clock=\x22tmSelectedClock\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@tm-clock-select=\x22onTMClockSelect($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@tm-diffs-loaded=\x22tmDiffs\x20=\x20$event.detail.diffs\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20TTL\x20detail\x20panel\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ttlOpen\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22margin-bottom:10px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:6px;\x20padding:10px;\x20font-size:11px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x20margin-bottom:8px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-weight:600;\x20opacity:.6;\x22>Time-to-Live</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ttlInfo\x20&&\x20ttlInfo.expiresAt\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27color:\x27\x20+\x20ttlBadgeColor\x20+\x20\x27;\x20font-family:monospace;\x27\x22>{{\x20fmtDuration(ttlInfo.remainingMs)\x20}}\x20remaining</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.35;\x20font-size:10px;\x22>·\x20expires\x20{{\x20new\x20Date(ttlInfo.expiresAt).toLocaleString()\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22!ttlInfo\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.4;\x22>No\x20TTL\x20set\x20—\x20this\x20item\x20will\x20not\x20expire.</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@change=\x22onTTLPresetChange($event.target.value)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:11px;\x20padding:2px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:4px;\x20color:var(--okdb-app-fg);\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22\x22>Custom…</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22ttlPresets\x22\x20let:item=\x22p\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20:value=\x22String(p.ms)\x22\x20:selected=\x22ttlPreset\x20===\x20String(p.ms)\x22>{{\x20p.label\x20}}</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20type=\x22number\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20!value=\x22ttlInputMs\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@input=\x22(ttlInputMs\x20=\x20$el.value,\x20ttlPreset\x20=\x20\x27\x27)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20placeholder=\x22ms\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22width:100px;\x20font-size:11px;\x20padding:2px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:4px;\x20color:var(--okdb-app-fg);\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22setItemTTL()\x22\x20:disabled=\x22ttlBusy\x20||\x20!ttlInputMs\x22\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20color:var(--okdb-success);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-success)\x2033%,\x20transparent);\x22>Set\x20TTL</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ttlInfo\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clearItemTTL()\x22\x20:disabled=\x22ttlBusy\x22\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x22>Clear\x20TTL</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22loadTTL()\x22\x20:disabled=\x22ttlBusy\x22\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20opacity:.5;\x22\x20title=\x22Refresh\x20TTL\x20info\x22>↻</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20JSON\x20header\x20with\x20historical\x20clock\x20badge\x20+\x20prev/next\x20navigation\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:5px;\x20margin-bottom:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22tmSelectedClock\x20!==\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22goPrev()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22!canGoPrev\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22\x27font-size:12px;\x20padding:0\x206px;\x20height:20px;\x20line-height:1;\x20border-radius:4px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-muted);\x20cursor:pointer;\x20font-family:monospace;\x20opacity:\x27\x20+\x20(canGoPrev\x20?\x20\x271\x27\x20:\x20\x27.3\x27)\x20+\x20\x27;\x20transition:opacity\x20120ms;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Previous\x20snapshot\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>←</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-flex;\x20align-items:center;\x20gap:6px;\x20font-size:10px;\x20padding:1px\x208px;\x20border-radius:4px;\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2012%,\x20transparent);\x20color:var(--okdb-accent);\x20font-family:monospace;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>clock\x20{{\x20tmSelectedClock\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22tmSelectedTime\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.6;\x20font-family:sans-serif;\x20font-weight:400;\x22>{{\x20tmSelectedTime\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22goNext()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22!canGoNext\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22\x27font-size:12px;\x20padding:0\x206px;\x20height:20px;\x20line-height:1;\x20border-radius:4px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-muted);\x20cursor:pointer;\x20font-family:monospace;\x20opacity:\x27\x20+\x20(canGoNext\x20?\x20\x271\x27\x20:\x20\x27.3\x27)\x20+\x20\x27;\x20transition:opacity\x20120ms;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Next\x20snapshot\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>→</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22position:relative;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-json-input\x20ref=\x22editor\x22\x20:value=\x22tmSelectedClock\x20!==\x20null\x20?\x20tmValue\x20:\x20row\x22\x20@edit=\x22edited=$event.detail\x22\x20@parse-error=\x22jsonError=$event.detail\x22\x20style=\x22min-height:\x20300px\x22></ok-json-input>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22tmFetchBusy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22position:absolute;\x20inset:0;\x20background:var(--okdb-app-bg)88;\x20display:flex;\x20align-items:center;\x20justify-content:center;\x20border-radius:6px;\x20z-index:2;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:12px;\x20opacity:.6;\x22>loading…</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22margin-top:8px;\x20display:flex;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22reset\x22\x20:disabled=\x22!hasEditedValue\x22>Reset</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22save\x22\x20:disabled=\x22!hasEditedValue\x20||\x20busySave\x22>Save</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22remove\x22\x20:disabled=\x22busyRemove\x22>Delete</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</transition>\x0a\x20\x20\x20\x20','toLocaleString','tmSelectedDiff','24\x20hr','no\x20ttl','var(--okdb-orange)','floor','DELETE','5\x20min','change','Save\x20failed','1\x20min','api','32axCbeS','key','catch','ttlInputMs','2716528cwitsQ','tmSelectedClock','value','ttlBusy','Remove\x20row\x20error','shared','edited','Save\x20row\x20error','canGoNext','ttlInfo','tmFetchBusy','tmDiffClocks','busyRemove','toast','$ok','1933407PUZNXv','var(--okdb-app-fg-muted)','parse','TTL\x20cleared','reset','numeric','ttlPreset','clockEntries','length','json','30buaqGt','$watch','busySave','all','clockOpen','remainingMs','loadClock','2MlQLLi','loadTTL','type','clockBusy','hlcToDate','tmCurrentIdx','find','dispatchEvent','tmValue','statusText','info','onTMClockSelect','fmtDuration','jsonError','7\x20days','row','422575PLzsoE','message','2-digit','remove','edit-row','15\x20min','4176242sanDkH','PUT','1005921CYXEJo','Failed\x20to\x20clear\x20TTL','2965797iQBAjV','/type/','var(--okdb-danger)','6\x20hr','tmDiffs','canGoPrev','string','data','30172450eVkWjT','Failed\x20to\x20set\x20TTL','timestamp','$el','$attr','result','$refs'];_0x1bcb=function(){return _0x3662d6;};return _0x1bcb();}import _0x3d64d1 from'../../../components/ok-json-input.ok.js';import _0x1e70b2 from'./tm-timeline.ok.js';function o(_0xf803a1){const _0x326e18=_0x46ba;return!!_0xf803a1&&_0x326e18(0x9c)==typeof _0xf803a1&&!Array['isArray'](_0xf803a1);}export default{'tag':_0x9de5a5(0x81),'dependencies':[_0x3d64d1,_0x1e70b2],'attr':{'type':{},'key':{},'row':{}},'context':_0x4ee3e3=>({get 'api'(){const _0x5f0112=_0x9de5a5;return _0x4ee3e3[_0x5f0112(0xc0)][_0x5f0112(0x9f)]['okdb']['apiBase'];},get 'type'(){const _0x41fec4=_0x9de5a5;return _0x4ee3e3[_0x41fec4(0x93)]['type'];},get 'key'(){const _0x167b31=_0x9de5a5;return _0x4ee3e3['$attr'][_0x167b31(0xaf)];},get 'row'(){const _0x3e88d6=_0x9de5a5;return _0x4ee3e3['$attr'][_0x3e88d6(0x7c)];},get 'hasEditedValue'(){const _0x406635=_0x9de5a5;return void 0x0!==this[_0x406635(0xb8)]&&!this['jsonError'];},'edited':void 0x0,'jsonError':!0x1,'busySave':!0x1,'busyRemove':!0x1,'tmSelectedClock':null,'tmFetchBusy':!0x1,'tmValue':null,'tmDiffs':[],get 'tmDiffClocks'(){const _0x49eaf2=_0x9de5a5;return this[_0x49eaf2(0x8b)][_0x49eaf2(0x98)](_0xca72=>_0xca72[_0x49eaf2(0x9d)]);},get 'tmSelectedDiff'(){const _0x49ce9a=_0x9de5a5;return null===this[_0x49ce9a(0xb3)]?null:this[_0x49ce9a(0x8b)][_0x49ce9a(0xd8)](_0x4e1644=>_0x4e1644[_0x49ce9a(0x9d)]===this[_0x49ce9a(0xb3)])??null;},get 'tmSelectedTime'(){const _0xb15307=_0x9de5a5,_0x34a8f7=this[_0xb15307(0xa3)]?.[_0xb15307(0x91)];return _0x34a8f7?new Date(_0x34a8f7)[_0xb15307(0xa2)]('en-GB',{'day':_0xb15307(0xc6),'month':'short','year':_0xb15307(0xc6),'hour':'2-digit','minute':'2-digit','second':_0xb15307(0x7f)}):null;},get 'tmCurrentIdx'(){const _0x1af87d=_0x9de5a5;return null===this[_0x1af87d(0xb3)]?-0x1:this[_0x1af87d(0xbd)]['indexOf'](this[_0x1af87d(0xb3)]);},get 'canGoPrev'(){return this['tmCurrentIdx']>0x0;},get 'canGoNext'(){const _0x500dba=_0x9de5a5;return-0x1!==this[_0x500dba(0xd7)]&&this[_0x500dba(0xd7)]<this[_0x500dba(0xbd)][_0x500dba(0xc9)]-0x1;},'goPrev'(){const _0x4eaeb1=_0x9de5a5;this[_0x4eaeb1(0x8c)]&&this['onTMClockSelect']({'clock':this[_0x4eaeb1(0xbd)][this[_0x4eaeb1(0xd7)]-0x1]});},'goNext'(){const _0xb8346c=_0x9de5a5;this[_0xb8346c(0xba)]&&this[_0xb8346c(0x78)]({'clock':this['tmDiffClocks'][this[_0xb8346c(0xd7)]+0x1]});},'clockOpen':!0x1,'clockBusy':!0x1,'clockEntries':null,'ttlInfo':null,'ttlBusy':!0x1,'ttlOpen':!0x1,'ttlInputMs':'','ttlPreset':'','ttlPresets':[{'label':_0x9de5a5(0xac),'ms':0xea60},{'label':_0x9de5a5(0xa9),'ms':0x493e0},{'label':_0x9de5a5(0x82),'ms':0xdbba0},{'label':'1\x20hr','ms':0x36ee80},{'label':_0x9de5a5(0x8a),'ms':0x1499700},{'label':_0x9de5a5(0xa4),'ms':0x5265c00},{'label':_0x9de5a5(0x7b),'ms':0x240c8400},{'label':'30\x20days','ms':0x9a7ec800}],async 'loadTTL'(){const _0x31779e=_0x9de5a5;if(!this[_0x31779e(0xb5)]){this[_0x31779e(0xb5)]=!0x0;try{const _0xf45927=await fetch(this[_0x31779e(0xad)]+_0x31779e(0x88)+encodeURIComponent(this[_0x31779e(0xd4)])+'/item/'+encodeURIComponent(this[_0x31779e(0xaf)])+_0x31779e(0x9b)),_0x3b262d=await _0xf45927[_0x31779e(0xca)](),_0x496805=_0x3b262d[_0x31779e(0x8e)]??_0x3b262d[_0x31779e(0x94)]??null;this['ttlInfo']=_0x496805||!0x1;}catch{this[_0x31779e(0xbb)]=!0x1;}finally{this[_0x31779e(0xb5)]=!0x1;}}},async 'setItemTTL'(){const _0x8e794=_0x9de5a5,_0x4ab082=parseInt(this['ttlInputMs']);if(_0x4ab082&&!(_0x4ab082<=0x0)){this[_0x8e794(0xb5)]=!0x0;try{const _0x13cdf4=await fetch(this['api']+_0x8e794(0x88)+encodeURIComponent(this[_0x8e794(0xd4)])+'/item/'+encodeURIComponent(this[_0x8e794(0xaf)])+'/ttl',{'method':_0x8e794(0x84),'headers':{'Content-Type':_0x8e794(0x97)},'body':JSON['stringify']({'ttl':_0x4ab082})});if(!_0x13cdf4['ok']){const _0x4c0850=await _0x13cdf4['json']()[_0x8e794(0xb0)](()=>({}));throw new Error(_0x4c0850?.[_0x8e794(0x99)]?.['message']||_0x13cdf4[_0x8e794(0x76)]);}_0x4ee3e3[_0x8e794(0xc0)][_0x8e794(0xb7)]?.[_0x8e794(0xbf)]?.[_0x8e794(0x77)]?.(_0x8e794(0xa0)+this[_0x8e794(0x79)](_0x4ab082)+')'),await this[_0x8e794(0xd3)]();}catch(_0x155140){_0x4ee3e3[_0x8e794(0xc0)][_0x8e794(0xb7)]?.[_0x8e794(0xbf)]?.[_0x8e794(0x99)]?.(_0x155140[_0x8e794(0x7e)]||_0x8e794(0x90));}finally{this[_0x8e794(0xb5)]=!0x1;}}},async 'clearItemTTL'(){const _0x27d9ad=_0x9de5a5;this[_0x27d9ad(0xb5)]=!0x0;try{const _0x5897fd=await fetch(this[_0x27d9ad(0xad)]+_0x27d9ad(0x88)+encodeURIComponent(this[_0x27d9ad(0xd4)])+_0x27d9ad(0x9a)+encodeURIComponent(this['key'])+_0x27d9ad(0x9b),{'method':_0x27d9ad(0xa8)});if(!_0x5897fd['ok'])throw new Error(_0x5897fd[_0x27d9ad(0x76)]);this[_0x27d9ad(0xbb)]=!0x1,this[_0x27d9ad(0xb1)]='',this['ttlPreset']='',_0x4ee3e3[_0x27d9ad(0xc0)]['shared']?.[_0x27d9ad(0xbf)]?.[_0x27d9ad(0x77)]?.(_0x27d9ad(0xc4));}catch(_0x2ab868){_0x4ee3e3[_0x27d9ad(0xc0)][_0x27d9ad(0xb7)]?.[_0x27d9ad(0xbf)]?.[_0x27d9ad(0x99)]?.(_0x2ab868[_0x27d9ad(0x7e)]||_0x27d9ad(0x86));}finally{this[_0x27d9ad(0xb5)]=!0x1;}},'onTTLPresetChange'(_0x1ea537){const _0x11cc5e=_0x9de5a5;this[_0x11cc5e(0xc7)]=_0x1ea537,_0x1ea537&&(this[_0x11cc5e(0xb1)]=_0x1ea537);},'fmtDuration'(_0x345a07){const _0x29f1e2=_0x9de5a5;if(null==_0x345a07)return'—';const _0x157401=Math[_0x29f1e2(0xa7)](_0x345a07/0x3e8);return _0x157401<0x3c?_0x157401+'s':_0x157401<0xe10?Math[_0x29f1e2(0xa7)](_0x157401/0x3c)+'m\x20'+_0x157401%0x3c+'s':_0x157401<0x15180?Math[_0x29f1e2(0xa7)](_0x157401/0xe10)+'h\x20'+Math[_0x29f1e2(0xa7)](_0x157401%0xe10/0x3c)+'m':Math['floor'](_0x157401/0x15180)+'d\x20'+Math[_0x29f1e2(0xa7)](_0x157401%0x15180/0xe10)+'h';},get 'ttlBadgeText'(){const _0x5e8d09=_0x9de5a5;return this[_0x5e8d09(0xb5)]?'ttl\x20…':this[_0x5e8d09(0xbb)]?this['ttlInfo']['remainingMs']<=0x0?'ttl:\x20expired':'ttl:\x20'+this[_0x5e8d09(0x79)](this[_0x5e8d09(0xbb)][_0x5e8d09(0xd0)]):_0x5e8d09(0xa5);},get 'ttlBadgeColor'(){const _0x335cc4=_0x9de5a5;return this[_0x335cc4(0xbb)]?this['ttlInfo'][_0x335cc4(0xd0)]<=0x0?_0x335cc4(0x89):this[_0x335cc4(0xbb)][_0x335cc4(0xd0)]<0xea60?_0x335cc4(0xa6):_0x335cc4(0x9e):_0x335cc4(0xc2);},'hlcToDate'(_0x3d5e9e){const _0x3b3ba5=Number(_0x3d5e9e)||0x0,_0x2a43e7=(_0x3b3ba5-_0x3b3ba5%0x400)/0x400;return _0x2a43e7?new Date(_0x2a43e7)['toLocaleString']():'—';},get 'latestClock'(){const _0x5efca2=_0x9de5a5;return this[_0x5efca2(0xc8)]?.['length']?this['clockEntries'][0x0][_0x5efca2(0x9d)]??null:null;},get 'latestTime'(){const _0xefb9f3=_0x9de5a5;if(!this[_0xefb9f3(0xc8)]?.[_0xefb9f3(0xc9)])return null;const _0xec1a3=this[_0xefb9f3(0xc8)][0x0][_0xefb9f3(0x91)];return _0xec1a3?this[_0xefb9f3(0xd6)](_0xec1a3):null;},async 'toggleClock'(){const _0x22e919=_0x9de5a5;this[_0x22e919(0xcf)]=!this[_0x22e919(0xcf)];},async 'loadClock'(){const _0x15604d=_0x9de5a5;if(!this[_0x15604d(0xd5)]){this['clockBusy']=!0x0;try{const _0x11bc12=await fetch(this[_0x15604d(0xad)]+'/type/'+encodeURIComponent(this[_0x15604d(0xd4)])+_0x15604d(0x9a)+encodeURIComponent(this['key'])+'/changelog?limit=20'),_0x204542=await _0x11bc12['json']();this[_0x15604d(0xc8)]=_0x204542[_0x15604d(0x8e)]??[];}catch{this[_0x15604d(0xc8)]=[];}finally{this[_0x15604d(0xd5)]=!0x1;}}},async 'onTMClockSelect'({clock:_0x21e3fe}){const _0x39e575=_0x9de5a5;if(this[_0x39e575(0xb3)]=_0x21e3fe,null===_0x21e3fe)return this['tmValue']=null,this['tmFetchBusy']=!0x1,void(this[_0x39e575(0xb8)]=void 0x0);this['tmFetchBusy']=!0x0;try{const _0x4c2389=await fetch(this[_0x39e575(0xad)]+'/time-machine/'+encodeURIComponent(this['type'])+'/'+encodeURIComponent(this[_0x39e575(0xaf)])+'/at/'+_0x21e3fe),_0x5591f1=await _0x4c2389[_0x39e575(0xca)]();if(!_0x4c2389['ok'])throw new Error(_0x5591f1?.[_0x39e575(0x99)]?.[_0x39e575(0x7e)]||_0x39e575(0x96));this[_0x39e575(0x75)]=_0x5591f1[_0x39e575(0x94)]?.[_0x39e575(0xb4)]??_0x5591f1[_0x39e575(0x8e)]?.[_0x39e575(0xb4)]??null,this[_0x39e575(0xb8)]=JSON[_0x39e575(0xc3)](JSON['stringify'](this[_0x39e575(0x75)]));}catch{this['tmSelectedClock']=null,this[_0x39e575(0x75)]=null;}finally{this[_0x39e575(0xbc)]=!0x1;}},'reset'(){const _0x289975=_0x9de5a5;this[_0x289975(0xb8)]=void 0x0,this[_0x289975(0x7a)]=!0x1,_0x4ee3e3[_0x289975(0x95)]['editor'][_0x289975(0xc5)]?.();},async 'save'(){const _0x4484a6=_0x9de5a5;if(void 0x0!==this[_0x4484a6(0xb8)]&&!this[_0x4484a6(0x7a)]){this[_0x4484a6(0xcd)]=!0x0;try{const _0x2737cc=this[_0x4484a6(0xb8)],_0x3a3654=await fetch(this['api']+_0x4484a6(0x88)+this['type']+_0x4484a6(0x9a)+this[_0x4484a6(0xaf)],{'method':_0x4484a6(0x84),'headers':{'Content-Type':_0x4484a6(0x97)},'body':JSON['stringify'](_0x2737cc)});if(!_0x3a3654['ok']){const _0x331fd6=await _0x3a3654['json']()[_0x4484a6(0xb0)](()=>({})),_0x4f70a7=_0x331fd6?.[_0x4484a6(0x99)]?.[_0x4484a6(0x7e)]||_0x331fd6?.[_0x4484a6(0x7e)]||_0x331fd6?.[_0x4484a6(0x99)]||_0x3a3654[_0x4484a6(0x76)];throw new Error(_0x4484a6(0x8d)==typeof _0x4f70a7?_0x4f70a7:_0x3a3654[_0x4484a6(0x76)]);}o(this['row'])&&o(_0x2737cc)&&(Object['keys'](this[_0x4484a6(0x7c)])['forEach'](_0x325b64=>delete this[_0x4484a6(0x7c)][_0x325b64]),Object['assign'](this[_0x4484a6(0x7c)],_0x2737cc)),_0x4ee3e3[_0x4484a6(0x92)][_0x4484a6(0xd9)](new CustomEvent(_0x4484a6(0xaa),{'detail':{'key':this[_0x4484a6(0xaf)],'value':_0x2737cc}})),this[_0x4484a6(0xc8)]=null,await this[_0x4484a6(0xd1)]();}catch(_0x1e2523){console['error'](_0x4484a6(0xb9),_0x1e2523),_0x4ee3e3[_0x4484a6(0xc0)]['shared']?.['toast']?.[_0x4484a6(0x99)]?.(_0x1e2523[_0x4484a6(0x7e)]||_0x4484a6(0xab));}finally{this[_0x4484a6(0xcd)]=!0x1;}}},async 'remove'(){const _0x111794=_0x9de5a5;this[_0x111794(0xbe)]=!0x0;try{const _0x4150a5=await fetch(this['api']+_0x111794(0x88)+this[_0x111794(0xd4)]+_0x111794(0x9a)+this[_0x111794(0xaf)],{'method':_0x111794(0xa8)});if(!_0x4150a5['ok'])throw new Error(_0x4150a5[_0x111794(0x76)]);_0x4ee3e3[_0x111794(0xc0)][_0x111794(0xb7)][_0x111794(0xbf)]?.[_0x111794(0x77)](this[_0x111794(0xaf)]+'\x20deleted'),_0x4ee3e3['$el'][_0x111794(0xd9)](new CustomEvent(_0x111794(0x80),{'detail':{'key':this[_0x111794(0xaf)],'value':this[_0x111794(0x7c)]}})),await _0x4ee3e3[_0x111794(0xc0)]['stores']['okdb']['reloadTypes']();}catch(_0x386f6d){console[_0x111794(0x99)](_0x111794(0xb6),_0x386f6d);}finally{this[_0x111794(0xbe)]=!0x1;}}}),async 'init'(_0x2e06c3){const _0x17bc13=_0x9de5a5;_0x2e06c3[_0x17bc13(0xcc)](()=>_0x2e06c3[_0x17bc13(0x93)][_0x17bc13(0xd4)]+'|'+_0x2e06c3['$attr'][_0x17bc13(0xaf)],()=>{const _0x42ce03=_0x17bc13;this[_0x42ce03(0xb3)]=null,this[_0x42ce03(0x75)]=null,this[_0x42ce03(0xbc)]=!0x1,this['tmDiffs']=[];}),await Promise[_0x17bc13(0xce)]([this['loadClock'](),this[_0x17bc13(0xd3)]()]);},'template':_0x9de5a5(0xa1)};
|
|
1
|
+
function _0x2565(){const _0x447169=['3817816wqkrhP','$el','6zKxbUU','Failed\x20to\x20set\x20TTL','assign','short','catch','tmCurrentIdx','/time-machine/','/type/','tmSelectedClock','ttl\x20…','1\x20hr','message','ttlInputMs','all','en-GB','loadTTL','forEach','indexOf','2VQdWqe','946096gFmGVp','2523255SVLjpG','clockOpen','tmValue','type','jsonError','$refs','parse','data','var(--okdb-app-fg-muted)','loadClock','info','var(--okdb-orange)','apiBase','edited','busyRemove','onTMClockSelect','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<transition\x20name=\x22grow\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Clock\x20+\x20TTL\x20badges\x20row\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20margin-bottom:8px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22toggleClock()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:10px;\x20padding:1px\x207px;\x20border-radius:4px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-muted);\x20cursor:pointer;\x20font-family:monospace;\x20display:flex;\x20align-items:center;\x20gap:5px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Show\x20change\x20history\x20for\x20this\x20record\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22clockBusy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>clock\x20…</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22!clockBusy\x20&&\x20latestClock\x20!=\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>clock:\x20{{\x20latestClock\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22latestTime\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-family:sans-serif;\x20font-size:10px;\x22>·\x20{{\x20latestTime\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.4;\x22>{{\x20clockOpen\x20?\x20\x27▲\x27\x20:\x20\x27▼\x27\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22!clockBusy\x20&&\x20latestClock\x20==\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.5;\x22>no\x20clock</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22ttlOpen\x20=\x20!ttlOpen\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22\x27font-size:10px;\x20padding:1px\x207px;\x20border-radius:4px;\x20border:1px\x20solid\x20\x27\x20+\x20(ttlInfo\x20?\x20ttlBadgeColor\x20+\x20\x2755\x27\x20:\x20\x27var(--okdb-app-border)\x27)\x20+\x20\x27;\x20background:var(--okdb-app-bg-deep);\x20color:\x27\x20+\x20ttlBadgeColor\x20+\x20\x27;\x20cursor:pointer;\x20font-family:monospace;\x20display:flex;\x20align-items:center;\x20gap:5px;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22TTL\x20(time-to-live)\x20for\x20this\x20record\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>{{\x20ttlBadgeText\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ttlInfo\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.4;\x22>{{\x20ttlOpen\x20?\x20\x27▲\x27\x20:\x20\x27▼\x27\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Changelog\x20+\x20time-travel\x20panel\x20(opens\x20when\x20clock\x20badge\x20clicked)\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22clockOpen\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22margin-bottom:10px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Changelog\x20table\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22clockEntries\x20&&\x20clockEntries.length\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22margin-bottom:8px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:6px;\x20overflow:hidden;\x20font-size:11px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:grid;\x20grid-template-columns:auto\x20auto\x201fr\x20auto;\x20gap:0;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:4px\x2010px;\x20opacity:.4;\x20border-bottom:1px\x20solid\x20var(--okdb-app-border);\x20font-weight:600;\x22>clock</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:4px\x2010px;\x20opacity:.4;\x20border-bottom:1px\x20solid\x20var(--okdb-app-border);\x20font-weight:600;\x22>action</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:4px\x2010px;\x20opacity:.4;\x20border-bottom:1px\x20solid\x20var(--okdb-app-border);\x20font-weight:600;\x22>wall\x20time</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:4px\x2010px;\x20opacity:.4;\x20border-bottom:1px\x20solid\x20var(--okdb-app-border);\x20font-weight:600;\x22>origin</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22clockEntries\x22\x20let:item=\x22entry\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:3px\x2010px;\x20font-family:monospace;\x20opacity:.8;\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface);\x22>{{\x20entry.clock\x20??\x20\x27—\x27\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:3px\x2010px;\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface);\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27color:\x27\x20+\x20(entry.action\x20===\x20\x27put\x27\x20?\x20\x27var(--okdb-success)\x27\x20:\x20entry.action\x20===\x20\x27remove\x27\x20?\x20\x27var(--okdb-danger)\x27\x20:\x20\x27var(--okdb-warning)\x27)\x22>{{\x20entry.action\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:3px\x2010px;\x20opacity:.6;\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface);\x20white-space:nowrap;\x22>{{\x20hlcToDate(entry.timestamp)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:3px\x2010px;\x20font-family:monospace;\x20opacity:.35;\x20font-size:10px;\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface);\x20white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20max-width:120px;\x22\x20:title=\x22entry.origin\x22>{{\x20(entry.origin\x20||\x20\x27—\x27).slice(0,\x208)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Time-travel\x20scrubber\x20(sits\x20outside\x20overflow:hidden\x20so\x20tooltips\x20aren\x27t\x20clipped)\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<tm-timeline\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:type=\x22type\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:item-key=\x22key\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:env=\x22$ok.stores.okdb.selectedEnv\x20||\x20\x27default\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:selected-clock=\x22tmSelectedClock\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@tm-clock-select=\x22onTMClockSelect($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@tm-diffs-loaded=\x22tmDiffs\x20=\x20$event.detail.diffs\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20TTL\x20detail\x20panel\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ttlOpen\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22margin-bottom:10px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:6px;\x20padding:10px;\x20font-size:11px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x20margin-bottom:8px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-weight:600;\x20opacity:.6;\x22>Time-to-Live</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ttlInfo\x20&&\x20ttlInfo.expiresAt\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27color:\x27\x20+\x20ttlBadgeColor\x20+\x20\x27;\x20font-family:monospace;\x27\x22>{{\x20fmtDuration(ttlInfo.remainingMs)\x20}}\x20remaining</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.35;\x20font-size:10px;\x22>·\x20expires\x20{{\x20new\x20Date(ttlInfo.expiresAt).toLocaleString()\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22!ttlInfo\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.4;\x22>No\x20TTL\x20set\x20—\x20this\x20item\x20will\x20not\x20expire.</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@change=\x22onTTLPresetChange($event.target.value)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:11px;\x20padding:2px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:4px;\x20color:var(--okdb-app-fg);\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22\x22>Custom…</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22ttlPresets\x22\x20let:item=\x22p\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20:value=\x22String(p.ms)\x22\x20:selected=\x22ttlPreset\x20===\x20String(p.ms)\x22>{{\x20p.label\x20}}</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20type=\x22number\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20!value=\x22ttlInputMs\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@input=\x22(ttlInputMs\x20=\x20$el.value,\x20ttlPreset\x20=\x20\x27\x27)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20placeholder=\x22ms\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22width:100px;\x20font-size:11px;\x20padding:2px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:4px;\x20color:var(--okdb-app-fg);\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22setItemTTL()\x22\x20:disabled=\x22ttlBusy\x20||\x20!ttlInputMs\x22\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20color:var(--okdb-success);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-success)\x2033%,\x20transparent);\x22>Set\x20TTL</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ttlInfo\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clearItemTTL()\x22\x20:disabled=\x22ttlBusy\x22\x20style=\x22font-size:11px;\x20padding:2px\x2010px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x22>Clear\x20TTL</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22loadTTL()\x22\x20:disabled=\x22ttlBusy\x22\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20opacity:.5;\x22\x20title=\x22Refresh\x20TTL\x20info\x22>↻</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20JSON\x20header\x20with\x20historical\x20clock\x20badge\x20+\x20prev/next\x20navigation\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:5px;\x20margin-bottom:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22tmSelectedClock\x20!==\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22goPrev()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22!canGoPrev\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22\x27font-size:12px;\x20padding:0\x206px;\x20height:20px;\x20line-height:1;\x20border-radius:4px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-muted);\x20cursor:pointer;\x20font-family:monospace;\x20opacity:\x27\x20+\x20(canGoPrev\x20?\x20\x271\x27\x20:\x20\x27.3\x27)\x20+\x20\x27;\x20transition:opacity\x20120ms;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Previous\x20snapshot\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>←</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-flex;\x20align-items:center;\x20gap:6px;\x20font-size:10px;\x20padding:1px\x208px;\x20border-radius:4px;\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2012%,\x20transparent);\x20color:var(--okdb-accent);\x20font-family:monospace;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>clock\x20{{\x20tmSelectedClock\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22tmSelectedTime\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.6;\x20font-family:sans-serif;\x20font-weight:400;\x22>{{\x20tmSelectedTime\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22goNext()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:disabled=\x22!canGoNext\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22\x27font-size:12px;\x20padding:0\x206px;\x20height:20px;\x20line-height:1;\x20border-radius:4px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-muted);\x20cursor:pointer;\x20font-family:monospace;\x20opacity:\x27\x20+\x20(canGoNext\x20?\x20\x271\x27\x20:\x20\x27.3\x27)\x20+\x20\x27;\x20transition:opacity\x20120ms;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Next\x20snapshot\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>→</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22position:relative;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-json-input\x20ref=\x22editor\x22\x20:value=\x22tmSelectedClock\x20!==\x20null\x20?\x20tmValue\x20:\x20row\x22\x20@edit=\x22edited=$event.detail\x22\x20@parse-error=\x22jsonError=$event.detail\x22\x20style=\x22min-height:\x20300px\x22></ok-json-input>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22tmFetchBusy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22position:absolute;\x20inset:0;\x20background:var(--okdb-app-bg)88;\x20display:flex;\x20align-items:center;\x20justify-content:center;\x20border-radius:6px;\x20z-index:2;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:12px;\x20opacity:.6;\x22>loading…</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22margin-top:8px;\x20display:flex;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22reset\x22\x20:disabled=\x22!hasEditedValue\x22>Reset</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22save\x22\x20:disabled=\x22!hasEditedValue\x20||\x20busySave\x22>Save</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22remove\x22\x20:disabled=\x22busyRemove\x22>Delete</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</transition>\x0a\x20\x20\x20\x20','var(--okdb-success)','busySave','timestamp','Failed\x20to\x20clear\x20TTL','/ttl','7\x20days','$ok','remainingMs','Save\x20failed','DELETE','fmtDuration','tmFetchBusy','3262350bIrdwC','823499GJfzGU','value','toast','string','/changelog?limit=20','ttlPreset','numeric','5\x20min','6421257ZrkKqq','error','object','map','key','726873EXMVVi','statusText','toLocaleString','ttlBusy','find','Failed','\x20deleted','dispatchEvent','keys','stringify','/item/','stores','clockBusy','PUT','application/json','canGoPrev','$attr','30\x20days','ttlInfo','api','row','2-digit','json','TTL\x20set\x20(','shared','okdb','tmDiffs','clock','tmDiffClocks','clockEntries','floor','$watch','length','reloadTypes','24\x20hr','remove'];_0x2565=function(){return _0x447169;};return _0x2565();}const _0x41e131=_0x3bfb;(function(_0x1843c0,_0x242574){const _0x4d45ea=_0x3bfb,_0xadd0c3=_0x1843c0();while(!![]){try{const _0x3a5413=-parseInt(_0x4d45ea(0x125))/0x1*(parseInt(_0x4d45ea(0x105))/0x2)+parseInt(_0x4d45ea(0xcd))/0x3+parseInt(_0x4d45ea(0xf1))/0x4+parseInt(_0x4d45ea(0x107))/0x5*(parseInt(_0x4d45ea(0xf3))/0x6)+parseInt(_0x4d45ea(0x124))/0x7+parseInt(_0x4d45ea(0x106))/0x8+-parseInt(_0x4d45ea(0x12d))/0x9;if(_0x3a5413===_0x242574)break;else _0xadd0c3['push'](_0xadd0c3['shift']());}catch(_0x1ec7ee){_0xadd0c3['push'](_0xadd0c3['shift']());}}}(_0x2565,0xb6cc0));import _0x56789e from'../../../components/ok-json-input.ok.js';import _0x584c72 from'./tm-timeline.ok.js';function _0x3bfb(_0x1a2ae9,_0x433b97){_0x1a2ae9=_0x1a2ae9-0xca;const _0x2565f4=_0x2565();let _0x3bfb7f=_0x2565f4[_0x1a2ae9];return _0x3bfb7f;}function o(_0x514d96){const _0x12d3fd=_0x3bfb;return!!_0x514d96&&_0x12d3fd(0xca)==typeof _0x514d96&&!Array['isArray'](_0x514d96);}export default{'tag':'edit-row','dependencies':[_0x56789e,_0x584c72],'attr':{'type':{},'key':{},'row':{}},'context':_0x320a7f=>({get 'api'(){const _0xb0c805=_0x3bfb;return _0x320a7f[_0xb0c805(0x11e)][_0xb0c805(0xd8)][_0xb0c805(0xe6)][_0xb0c805(0x113)];},get 'type'(){return _0x320a7f['$attr']['type'];},get 'key'(){const _0x53b6fa=_0x3bfb;return _0x320a7f[_0x53b6fa(0xdd)][_0x53b6fa(0xcc)];},get 'row'(){const _0x4f7ad1=_0x3bfb;return _0x320a7f['$attr'][_0x4f7ad1(0xe1)];},get 'hasEditedValue'(){const _0x5f094b=_0x3bfb;return void 0x0!==this[_0x5f094b(0x114)]&&!this[_0x5f094b(0x10b)];},'edited':void 0x0,'jsonError':!0x1,'busySave':!0x1,'busyRemove':!0x1,'tmSelectedClock':null,'tmFetchBusy':!0x1,'tmValue':null,'tmDiffs':[],get 'tmDiffClocks'(){const _0x2bad37=_0x3bfb;return this[_0x2bad37(0xe7)][_0x2bad37(0xcb)](_0x37c4e8=>_0x37c4e8[_0x2bad37(0xe8)]);},get 'tmSelectedDiff'(){const _0x3c8e8a=_0x3bfb;return null===this[_0x3c8e8a(0xfb)]?null:this['tmDiffs'][_0x3c8e8a(0xd1)](_0x30583d=>_0x30583d['clock']===this[_0x3c8e8a(0xfb)])??null;},get 'tmSelectedTime'(){const _0x5dbdd7=_0x3bfb,_0x521b84=this['tmSelectedDiff']?.[_0x5dbdd7(0x11a)];return _0x521b84?new Date(_0x521b84)[_0x5dbdd7(0xcf)](_0x5dbdd7(0x101),{'day':_0x5dbdd7(0x12b),'month':_0x5dbdd7(0xf6),'year':_0x5dbdd7(0x12b),'hour':_0x5dbdd7(0xe2),'minute':_0x5dbdd7(0xe2),'second':_0x5dbdd7(0xe2)}):null;},get 'tmCurrentIdx'(){const _0x49eb03=_0x3bfb;return null===this[_0x49eb03(0xfb)]?-0x1:this[_0x49eb03(0xe9)][_0x49eb03(0x104)](this['tmSelectedClock']);},get 'canGoPrev'(){const _0x143eee=_0x3bfb;return this[_0x143eee(0xf8)]>0x0;},get 'canGoNext'(){const _0xf3b5e4=_0x3bfb;return-0x1!==this[_0xf3b5e4(0xf8)]&&this[_0xf3b5e4(0xf8)]<this['tmDiffClocks']['length']-0x1;},'goPrev'(){const _0x46d29a=_0x3bfb;this[_0x46d29a(0xdc)]&&this['onTMClockSelect']({'clock':this[_0x46d29a(0xe9)][this['tmCurrentIdx']-0x1]});},'goNext'(){const _0x5a1fb6=_0x3bfb;this['canGoNext']&&this[_0x5a1fb6(0x116)]({'clock':this[_0x5a1fb6(0xe9)][this['tmCurrentIdx']+0x1]});},'clockOpen':!0x1,'clockBusy':!0x1,'clockEntries':null,'ttlInfo':null,'ttlBusy':!0x1,'ttlOpen':!0x1,'ttlInputMs':'','ttlPreset':'','ttlPresets':[{'label':'1\x20min','ms':0xea60},{'label':_0x41e131(0x12c),'ms':0x493e0},{'label':'15\x20min','ms':0xdbba0},{'label':_0x41e131(0xfd),'ms':0x36ee80},{'label':'6\x20hr','ms':0x1499700},{'label':_0x41e131(0xef),'ms':0x5265c00},{'label':_0x41e131(0x11d),'ms':0x240c8400},{'label':_0x41e131(0xde),'ms':0x9a7ec800}],async 'loadTTL'(){const _0x3e9597=_0x41e131;if(!this[_0x3e9597(0xd0)]){this[_0x3e9597(0xd0)]=!0x0;try{const _0x4afbac=await fetch(this[_0x3e9597(0xe0)]+_0x3e9597(0xfa)+encodeURIComponent(this[_0x3e9597(0x10a)])+_0x3e9597(0xd7)+encodeURIComponent(this[_0x3e9597(0xcc)])+_0x3e9597(0x11c)),_0x2e3da7=await _0x4afbac[_0x3e9597(0xe3)](),_0xd00092=_0x2e3da7[_0x3e9597(0x10e)]??_0x2e3da7['result']??null;this[_0x3e9597(0xdf)]=_0xd00092||!0x1;}catch{this['ttlInfo']=!0x1;}finally{this[_0x3e9597(0xd0)]=!0x1;}}},async 'setItemTTL'(){const _0x35c2a2=_0x41e131,_0x46a6ef=parseInt(this[_0x35c2a2(0xff)]);if(_0x46a6ef&&!(_0x46a6ef<=0x0)){this[_0x35c2a2(0xd0)]=!0x0;try{const _0x392c55=await fetch(this['api']+_0x35c2a2(0xfa)+encodeURIComponent(this[_0x35c2a2(0x10a)])+_0x35c2a2(0xd7)+encodeURIComponent(this[_0x35c2a2(0xcc)])+'/ttl',{'method':_0x35c2a2(0xda),'headers':{'Content-Type':_0x35c2a2(0xdb)},'body':JSON[_0x35c2a2(0xd6)]({'ttl':_0x46a6ef})});if(!_0x392c55['ok']){const _0x540882=await _0x392c55[_0x35c2a2(0xe3)]()['catch'](()=>({}));throw new Error(_0x540882?.[_0x35c2a2(0x12e)]?.[_0x35c2a2(0xfe)]||_0x392c55[_0x35c2a2(0xce)]);}_0x320a7f[_0x35c2a2(0x11e)][_0x35c2a2(0xe5)]?.[_0x35c2a2(0x127)]?.[_0x35c2a2(0x111)]?.(_0x35c2a2(0xe4)+this[_0x35c2a2(0x122)](_0x46a6ef)+')'),await this[_0x35c2a2(0x102)]();}catch(_0x2c2473){_0x320a7f[_0x35c2a2(0x11e)][_0x35c2a2(0xe5)]?.[_0x35c2a2(0x127)]?.[_0x35c2a2(0x12e)]?.(_0x2c2473['message']||_0x35c2a2(0xf4));}finally{this[_0x35c2a2(0xd0)]=!0x1;}}},async 'clearItemTTL'(){const _0x150de6=_0x41e131;this[_0x150de6(0xd0)]=!0x0;try{const _0x595169=await fetch(this[_0x150de6(0xe0)]+_0x150de6(0xfa)+encodeURIComponent(this[_0x150de6(0x10a)])+'/item/'+encodeURIComponent(this[_0x150de6(0xcc)])+_0x150de6(0x11c),{'method':_0x150de6(0x121)});if(!_0x595169['ok'])throw new Error(_0x595169[_0x150de6(0xce)]);this['ttlInfo']=!0x1,this[_0x150de6(0xff)]='',this[_0x150de6(0x12a)]='',_0x320a7f[_0x150de6(0x11e)][_0x150de6(0xe5)]?.['toast']?.[_0x150de6(0x111)]?.('TTL\x20cleared');}catch(_0x9861a6){_0x320a7f[_0x150de6(0x11e)][_0x150de6(0xe5)]?.['toast']?.[_0x150de6(0x12e)]?.(_0x9861a6[_0x150de6(0xfe)]||_0x150de6(0x11b));}finally{this[_0x150de6(0xd0)]=!0x1;}},'onTTLPresetChange'(_0x583a26){const _0x59271a=_0x41e131;this['ttlPreset']=_0x583a26,_0x583a26&&(this[_0x59271a(0xff)]=_0x583a26);},'fmtDuration'(_0x3b31f0){const _0x55b14b=_0x41e131;if(null==_0x3b31f0)return'—';const _0x7b4d1f=Math['floor'](_0x3b31f0/0x3e8);return _0x7b4d1f<0x3c?_0x7b4d1f+'s':_0x7b4d1f<0xe10?Math[_0x55b14b(0xeb)](_0x7b4d1f/0x3c)+'m\x20'+_0x7b4d1f%0x3c+'s':_0x7b4d1f<0x15180?Math[_0x55b14b(0xeb)](_0x7b4d1f/0xe10)+'h\x20'+Math[_0x55b14b(0xeb)](_0x7b4d1f%0xe10/0x3c)+'m':Math[_0x55b14b(0xeb)](_0x7b4d1f/0x15180)+'d\x20'+Math[_0x55b14b(0xeb)](_0x7b4d1f%0x15180/0xe10)+'h';},get 'ttlBadgeText'(){const _0x2df51c=_0x41e131;return this['ttlBusy']?_0x2df51c(0xfc):this['ttlInfo']?this[_0x2df51c(0xdf)][_0x2df51c(0x11f)]<=0x0?'ttl:\x20expired':'ttl:\x20'+this['fmtDuration'](this['ttlInfo'][_0x2df51c(0x11f)]):'no\x20ttl';},get 'ttlBadgeColor'(){const _0xc9b16f=_0x41e131;return this[_0xc9b16f(0xdf)]?this[_0xc9b16f(0xdf)][_0xc9b16f(0x11f)]<=0x0?'var(--okdb-danger)':this[_0xc9b16f(0xdf)][_0xc9b16f(0x11f)]<0xea60?_0xc9b16f(0x112):_0xc9b16f(0x118):_0xc9b16f(0x10f);},'hlcToDate'(_0x1e3aac){const _0x53eb8f=_0x41e131,_0x24c6fb=Number(_0x1e3aac)||0x0,_0x1943fa=(_0x24c6fb-_0x24c6fb%0x400)/0x400;return _0x1943fa?new Date(_0x1943fa)[_0x53eb8f(0xcf)]():'—';},get 'latestClock'(){const _0x547c38=_0x41e131;return this['clockEntries']?.[_0x547c38(0xed)]?this[_0x547c38(0xea)][0x0][_0x547c38(0xe8)]??null:null;},get 'latestTime'(){const _0x5a844e=_0x41e131;if(!this[_0x5a844e(0xea)]?.[_0x5a844e(0xed)])return null;const _0x4471cf=this[_0x5a844e(0xea)][0x0]['timestamp'];return _0x4471cf?this['hlcToDate'](_0x4471cf):null;},async 'toggleClock'(){const _0x737661=_0x41e131;this[_0x737661(0x108)]=!this[_0x737661(0x108)];},async 'loadClock'(){const _0x129070=_0x41e131;if(!this['clockBusy']){this['clockBusy']=!0x0;try{const _0x41fca0=await fetch(this[_0x129070(0xe0)]+_0x129070(0xfa)+encodeURIComponent(this[_0x129070(0x10a)])+_0x129070(0xd7)+encodeURIComponent(this[_0x129070(0xcc)])+_0x129070(0x129)),_0x209980=await _0x41fca0[_0x129070(0xe3)]();this[_0x129070(0xea)]=_0x209980[_0x129070(0x10e)]??[];}catch{this[_0x129070(0xea)]=[];}finally{this[_0x129070(0xd9)]=!0x1;}}},async 'onTMClockSelect'({clock:_0x393335}){const _0x1fcf37=_0x41e131;if(this['tmSelectedClock']=_0x393335,null===_0x393335)return this[_0x1fcf37(0x109)]=null,this[_0x1fcf37(0x123)]=!0x1,void(this[_0x1fcf37(0x114)]=void 0x0);this[_0x1fcf37(0x123)]=!0x0;try{const _0x2c61e4=await fetch(this[_0x1fcf37(0xe0)]+_0x1fcf37(0xf9)+encodeURIComponent(this['type'])+'/'+encodeURIComponent(this[_0x1fcf37(0xcc)])+'/at/'+_0x393335),_0x100711=await _0x2c61e4[_0x1fcf37(0xe3)]();if(!_0x2c61e4['ok'])throw new Error(_0x100711?.[_0x1fcf37(0x12e)]?.[_0x1fcf37(0xfe)]||_0x1fcf37(0xd2));this[_0x1fcf37(0x109)]=_0x100711['result']?.[_0x1fcf37(0x126)]??_0x100711[_0x1fcf37(0x10e)]?.['value']??null,this[_0x1fcf37(0x114)]=JSON[_0x1fcf37(0x10d)](JSON[_0x1fcf37(0xd6)](this[_0x1fcf37(0x109)]));}catch{this[_0x1fcf37(0xfb)]=null,this[_0x1fcf37(0x109)]=null;}finally{this[_0x1fcf37(0x123)]=!0x1;}},'reset'(){const _0x3d7ec7=_0x41e131;this[_0x3d7ec7(0x114)]=void 0x0,this['jsonError']=!0x1,_0x320a7f[_0x3d7ec7(0x10c)]['editor']['reset']?.();},async 'save'(){const _0x98e582=_0x41e131;if(void 0x0!==this[_0x98e582(0x114)]&&!this[_0x98e582(0x10b)]){this[_0x98e582(0x119)]=!0x0;try{const _0x47c294=this['edited'],_0x36bf2c=await fetch(this[_0x98e582(0xe0)]+_0x98e582(0xfa)+this['type']+_0x98e582(0xd7)+this[_0x98e582(0xcc)],{'method':_0x98e582(0xda),'headers':{'Content-Type':_0x98e582(0xdb)},'body':JSON[_0x98e582(0xd6)](_0x47c294)});if(!_0x36bf2c['ok']){const _0x211de5=await _0x36bf2c['json']()[_0x98e582(0xf7)](()=>({})),_0x4889d6=_0x211de5?.['error']?.[_0x98e582(0xfe)]||_0x211de5?.[_0x98e582(0xfe)]||_0x211de5?.[_0x98e582(0x12e)]||_0x36bf2c[_0x98e582(0xce)];throw new Error(_0x98e582(0x128)==typeof _0x4889d6?_0x4889d6:_0x36bf2c['statusText']);}o(this['row'])&&o(_0x47c294)&&(Object[_0x98e582(0xd5)](this[_0x98e582(0xe1)])[_0x98e582(0x103)](_0x395bf7=>delete this[_0x98e582(0xe1)][_0x395bf7]),Object[_0x98e582(0xf5)](this['row'],_0x47c294)),_0x320a7f[_0x98e582(0xf2)]['dispatchEvent'](new CustomEvent('change',{'detail':{'key':this['key'],'value':_0x47c294}})),this[_0x98e582(0xea)]=null,await this[_0x98e582(0x110)]();}catch(_0x4c2072){console[_0x98e582(0x12e)]('Save\x20row\x20error',_0x4c2072),_0x320a7f['$ok'][_0x98e582(0xe5)]?.[_0x98e582(0x127)]?.[_0x98e582(0x12e)]?.(_0x4c2072[_0x98e582(0xfe)]||_0x98e582(0x120));}finally{this['busySave']=!0x1;}}},async 'remove'(){const _0x174dc3=_0x41e131;this['busyRemove']=!0x0;try{const _0x3fcba6=await fetch(this[_0x174dc3(0xe0)]+_0x174dc3(0xfa)+this[_0x174dc3(0x10a)]+'/item/'+this['key'],{'method':_0x174dc3(0x121)});if(!_0x3fcba6['ok'])throw new Error(_0x3fcba6['statusText']);_0x320a7f[_0x174dc3(0x11e)]['shared']['toast']?.[_0x174dc3(0x111)](this[_0x174dc3(0xcc)]+_0x174dc3(0xd3)),_0x320a7f[_0x174dc3(0xf2)][_0x174dc3(0xd4)](new CustomEvent(_0x174dc3(0xf0),{'detail':{'key':this[_0x174dc3(0xcc)],'value':this[_0x174dc3(0xe1)]}})),await _0x320a7f['$ok'][_0x174dc3(0xd8)][_0x174dc3(0xe6)][_0x174dc3(0xee)]();}catch(_0x1f2d78){console['error']('Remove\x20row\x20error',_0x1f2d78);}finally{this[_0x174dc3(0x115)]=!0x1;}}}),async 'init'(_0x3d7e4c){const _0x3083e3=_0x41e131;_0x3d7e4c[_0x3083e3(0xec)](()=>_0x3d7e4c[_0x3083e3(0xdd)][_0x3083e3(0x10a)]+'|'+_0x3d7e4c[_0x3083e3(0xdd)][_0x3083e3(0xcc)],()=>{const _0x5e3ad8=_0x3083e3;this[_0x5e3ad8(0xfb)]=null,this[_0x5e3ad8(0x109)]=null,this[_0x5e3ad8(0x123)]=!0x1,this[_0x5e3ad8(0xe7)]=[];}),await Promise[_0x3083e3(0x100)]([this['loadClock'](),this[_0x3083e3(0x102)]()]);},'template':_0x41e131(0x117)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x14187e=_0x1f1c;(function(_0x31f8fa,_0x26e1ae){const _0x4c5961=_0x1f1c,_0x396264=_0x31f8fa();while(!![]){try{const _0x5e4c3f=parseInt(_0x4c5961(0x1de))/0x1+-parseInt(_0x4c5961(0x1ab))/0x2*(parseInt(_0x4c5961(0x19d))/0x3)+-parseInt(_0x4c5961(0x1ec))/0x4+parseInt(_0x4c5961(0x196))/0x5*(-parseInt(_0x4c5961(0x1ad))/0x6)+-parseInt(_0x4c5961(0x1c2))/0x7*(parseInt(_0x4c5961(0x199))/0x8)+-parseInt(_0x4c5961(0x198))/0x9+parseInt(_0x4c5961(0x1a7))/0xa;if(_0x5e4c3f===_0x26e1ae)break;else _0x396264['push'](_0x396264['shift']());}catch(_0x1c8089){_0x396264['push'](_0x396264['shift']());}}}(_0x3660,0x1ba49));function _0x1f1c(_0x5bc6e0,_0x4eef27){_0x5bc6e0=_0x5bc6e0-0x18e;const _0x366052=_0x3660();let _0x1f1ce4=_0x366052[_0x5bc6e0];return _0x1f1ce4;}import _0x494815 from'@toolkit/elements/ok-icon.ok.js';function _0x3660(){const _0x4e255a=['API','\x20*\x20(100%\x20-\x2012px))','width:16px','left:clamp(40px,\x20calc(6px\x20+\x20','6px','transition:width\x20100ms\x20ease,height\x20100ms\x20ease,background\x20100ms\x20ease,opacity\x20100ms\x20ease','delete','preventDefault','pointer-events:none','display:none','height:16px','height:','querySelector','mouseup','max','type','$el','transition:left\x2070ms\x20cubic-bezier(0.25,0.1,0.25,1)','length','border-radius:50%','dotFraction','push','opacity:','10px','isDragging','124455FVSXKk','numeric','env','left:calc(6px\x20+\x20','border:1px\x20solid\x20var(--okdb-app-border)','set','$attr','join','hoverClock','tm-clock-select','\x0a<if\x20:=\x22diffs.length\x20>\x200\x22>\x0a<div>\x0a\x0a\x20\x20<!--\x20Header:\x20label\x20+\x20\x22back\x20to\x20live\x22\x20button\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20justify-content:space-between;\x20margin-bottom:7px;\x22>\x0a\x20\x20\x20\x20<span\x20style=\x22font-size:10px;\x20font-family:monospace;\x20letter-spacing:.05em;\x20text-transform:uppercase;\x20opacity:.38;\x20user-select:none;\x22>\x0a\x20\x20\x20\x20\x20\x20time\x20travel\x20·\x20{{\x20diffs.length\x20}}\x20snapshot{{\x20diffs.length\x20===\x201\x20?\x20\x27\x27\x20:\x20\x27s\x27\x20}}\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20<if\x20:=\x22selectedClock\x20!==\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22selectCurrent()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:10px;\x20padding:1px\x208px;\x20border-radius:4px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-accent)\x2035%,\x20transparent);\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x208%,\x20transparent);\x20color:var(--okdb-accent);\x20cursor:pointer;\x20font-family:monospace;\x20line-height:1.6;\x22\x0a\x20\x20\x20\x20\x20\x20>←\x20live</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Scrubber:\x20capped\x20width\x20so\x20it\x20never\x20fills\x20a\x20wide\x20table\x20-->\x0a\x20\x20<div\x20style=\x22max-width:480px;\x20padding-bottom:10px;\x22>\x0a\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20data-track\x0a\x20\x20\x20\x20\x20\x20style=\x22position:relative;\x20height:26px;\x20width:100%;\x20user-select:none;\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22\x27cursor:\x27\x20+\x20(isDragging\x20?\x20\x27grabbing\x27\x20:\x20\x27ew-resize\x27)\x22\x0a\x20\x20\x20\x20\x20\x20@mousedown=\x22startDrag($event)\x22\x0a\x20\x20\x20\x20>\x0a\x0a\x20\x20\x20\x20\x20\x20<!--\x20Track\x20line\x20-->\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22position:absolute;\x20left:6px;\x20right:6px;\x20top:50%;\x20height:2px;\x20transform:translateY(-50%);\x20background:var(--okdb-app-border);\x20border-radius:1px;\x20pointer-events:none;\x22></div>\x0a\x0a\x20\x20\x20\x20\x20\x20<!--\x20Diff\x20dots\x20+\x20tooltips\x20-->\x0a\x20\x20\x20\x20\x20\x20<div\x20as=\x22repeat\x22\x20:of=\x22diffs\x22\x20let:item=\x22diff\x22>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Tooltip\x20(above\x20track,\x20shown\x20on\x20hover\x20or\x20drag-snap)\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22activeTooltipClock\x20===\x20diff.clock\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20:style=\x22tooltipStyle(diff)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:5px;\x20margin-bottom:3px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22clock\x22\x20style=\x22width:10px;height:10px;opacity:.5;flex-shrink:0;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-family:monospace;\x20color:var(--okdb-accent);\x20font-size:10px;\x22>clock\x20{{\x20diff.clock\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22wallTime(diff)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22opacity:.7;\x20font-size:11px;\x22>{{\x20wallTime(diff)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22opacity:.4;\x20margin-top:3px;\x20font-size:10px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20fieldsChanged(diff)\x20}}\x20field{{\x20fieldsChanged(diff)\x20===\x201\x20?\x20\x27\x27\x20:\x20\x27s\x27\x20}}\x20changed\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Dot\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22dotStyle(diff)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@mouseenter=\x22!isDragging\x20&&\x20(hoverClock\x20=\x20diff.clock)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@mouseleave=\x22!isDragging\x20&&\x20(hoverClock\x20=\x20null)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22!isDragging\x20&&\x20selectDot(diff.clock)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20></div>\x0a\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<!--\x20Snapping\x20ring:\x20jumps\x20to\x20nearest\x20clock\x20with\x20CSS\x20transition\x20-->\x0a\x20\x20\x20\x20\x20\x20<div\x20:style=\x22dragRingStyle()\x22\x20style=\x22pointer-events:none;\x22></div>\x0a\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a</div>\x0a</if>\x0a','json','clientX','dispatchEvent','275408tLbyfI','forEach','[data-track]','cursor:','padding:6px\x2010px','z-index:3','top:50%','mousemove','width:','_cappedFractions','get','background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2010%,\x20transparent)','diffs','5dDESWH','var(--okdb-app-fg)','1674090QBPyby','9992jUdHwG','load','8px','bottom:calc(100%\x20+\x208px)','11307mxsOaX','abs','addEventListener','left','pointer','map','keys','selectDot','removeEventListener','short','5899310ovXxUy','clock','box-shadow:0\x202px\x2010px\x20color-mix(in\x20srgb,\x20#000\x2025%,\x20transparent)','min','62fOuXnC','var(--okdb-accent)','919626UxONfo','z-index:10','2-digit','background:var(--okdb-app-bg-deep)','/history','\x20*\x20(100%\x20-\x2012px)),\x20calc(100%\x20-\x2040px))','put','floor','data','fracFromEvent','busy','sort','/time-machine/','border-radius:6px','en-GB','.75','toLocaleString','dragClock','transform:translate(-50%,-50%)','white-space:nowrap','position:absolute','427ZRhEwC','itemKey','timestamp'];_0x3660=function(){return _0x4e255a;};return _0x3660();}export default{'tag':'tm-timeline','components':[_0x494815],'attr':{'type':{},'itemKey':{},'env':{},'selectedClock':{}},'context':_0x24a289=>({'busy':!0x1,'diffs':[],'hoverClock':null,'isDragging':!0x1,'dragClock':null,get 'type'(){const _0x4fc543=_0x1f1c;return _0x24a289[_0x4fc543(0x1e4)][_0x4fc543(0x1d4)];},get 'itemKey'(){const _0x563942=_0x1f1c;return _0x24a289[_0x563942(0x1e4)][_0x563942(0x1c3)];},get 'env'(){const _0x30c6cc=_0x1f1c;return _0x24a289[_0x30c6cc(0x1e4)]['env'];},get 'selectedClock'(){const _0x5679e1=_0x1f1c,_0x32dc8c=_0x24a289[_0x5679e1(0x1e4)]['selectedClock'];return null!=_0x32dc8c?Number(_0x32dc8c):null;},get '_cappedFractions'(){const _0x5a47fe=_0x1f1c,_0x47816f=this[_0x5a47fe(0x195)][_0x5a47fe(0x1d7)];if(0x0===_0x47816f)return new Map();if(0x1===_0x47816f)return new Map([[this[_0x5a47fe(0x195)][0x0][_0x5a47fe(0x1a8)],0.5]]);const _0x48fa85=this[_0x5a47fe(0x195)][_0x5a47fe(0x1a2)](_0x531a49=>_0x531a49[_0x5a47fe(0x1a8)]),_0x2d2c0d=[];for(let _0x2e59b6=0x1;_0x2e59b6<_0x47816f;_0x2e59b6++)_0x2d2c0d[_0x5a47fe(0x1da)](_0x48fa85[_0x2e59b6]-_0x48fa85[_0x2e59b6-0x1]);const _0x20bccb=[..._0x2d2c0d][_0x5a47fe(0x1b8)]((_0x34472d,_0x53fd06)=>_0x34472d-_0x53fd06),_0x4c683d=0x4*_0x20bccb[Math[_0x5a47fe(0x1b4)](_0x20bccb[_0x5a47fe(0x1d7)]/0x2)],_0x43ccb8=_0x2d2c0d[_0x5a47fe(0x1a2)](_0x3a1ff1=>Math['min'](_0x3a1ff1,_0x4c683d)),_0x48a152=[0x0];for(const _0x53f621 of _0x43ccb8)_0x48a152[_0x5a47fe(0x1da)](_0x48a152[_0x48a152[_0x5a47fe(0x1d7)]-0x1]+_0x53f621);const _0x93bb74=_0x48a152[_0x48a152[_0x5a47fe(0x1d7)]-0x1],_0x49f3de=new Map();return _0x48fa85[_0x5a47fe(0x1ed)]((_0x1cd7ba,_0x11c6af)=>_0x49f3de[_0x5a47fe(0x1e3)](_0x1cd7ba,_0x93bb74?_0x48a152[_0x11c6af]/_0x93bb74:0x0)),_0x49f3de;},'dotFraction'(_0x534b8c){const _0x4a2cf5=_0x1f1c;return this[_0x4a2cf5(0x192)][_0x4a2cf5(0x193)](_0x534b8c)??0.5;},'fieldsChanged':_0x19db5e=>Object[_0x14187e(0x1a3)](_0x19db5e[_0x14187e(0x1b3)]||{})['length']+(_0x19db5e[_0x14187e(0x1cb)]||[])[_0x14187e(0x1d7)],'wallTime':_0x5f0454=>_0x5f0454[_0x14187e(0x1c4)]?new Date(_0x5f0454[_0x14187e(0x1c4)])[_0x14187e(0x1bd)](_0x14187e(0x1bb),{'day':_0x14187e(0x1df),'month':_0x14187e(0x1a6),'year':_0x14187e(0x1df),'hour':_0x14187e(0x1af),'minute':'2-digit','second':_0x14187e(0x1af)}):null,get 'activeTooltipClock'(){const _0x4cb385=_0x14187e;return this[_0x4cb385(0x1dd)]?this[_0x4cb385(0x1be)]:this[_0x4cb385(0x1e6)];},async 'load'(){const _0x352620=_0x14187e;if(this[_0x352620(0x1d4)]&&this[_0x352620(0x1c3)]&&this['env']){this[_0x352620(0x1b7)]=!0x0;try{const _0x1361fc=__ENV__[_0x352620(0x1c5)]+'/env/'+encodeURIComponent(this[_0x352620(0x1e0)])+_0x352620(0x1b9)+encodeURIComponent(this[_0x352620(0x1d4)])+'/'+encodeURIComponent(this['itemKey'])+_0x352620(0x1b1),_0x4aa9c5=await fetch(_0x1361fc);if(!_0x4aa9c5['ok'])return void(this[_0x352620(0x195)]=[]);const _0xf4a0b1=await _0x4aa9c5[_0x352620(0x1e9)]();this[_0x352620(0x195)]=_0xf4a0b1[_0x352620(0x1b5)]?.[_0x352620(0x195)]||[];}catch{this[_0x352620(0x195)]=[];}finally{this['busy']=!0x1;}_0x24a289[_0x352620(0x1d5)][_0x352620(0x1eb)](new CustomEvent('tm-diffs-loaded',{'detail':{'diffs':this[_0x352620(0x195)]},'bubbles':!0x0}));}},'selectDot'(_0x8a1cef){const _0x38067d=_0x14187e;_0x24a289[_0x38067d(0x1d5)][_0x38067d(0x1eb)](new CustomEvent(_0x38067d(0x1e7),{'detail':{'clock':_0x8a1cef},'bubbles':!0x0}));},'selectCurrent'(){const _0x4ec51e=_0x14187e;_0x24a289['$el'][_0x4ec51e(0x1eb)](new CustomEvent(_0x4ec51e(0x1e7),{'detail':{'clock':null},'bubbles':!0x0}));},'nearestClockForFrac'(_0x4d2365){const _0x33d2e1=_0x14187e;if(!this[_0x33d2e1(0x195)][_0x33d2e1(0x1d7)])return null;const _0x2268bf=this[_0x33d2e1(0x192)];let _0x17762a=this[_0x33d2e1(0x195)][0x0],_0x48bb67=0x1/0x0;for(const _0x3655da of this[_0x33d2e1(0x195)]){const _0x5b4773=Math[_0x33d2e1(0x19e)]((_0x2268bf[_0x33d2e1(0x193)](_0x3655da[_0x33d2e1(0x1a8)])??0x0)-_0x4d2365);_0x5b4773<_0x48bb67&&(_0x48bb67=_0x5b4773,_0x17762a=_0x3655da);}return _0x17762a[_0x33d2e1(0x1a8)];},'fracFromEvent'(_0x515824){const _0x5607d2=_0x14187e,_0x17f6ec=_0x24a289[_0x5607d2(0x1d5)][_0x5607d2(0x1d1)](_0x5607d2(0x1ee));if(!_0x17f6ec)return null;const _0x3590b9=_0x17f6ec['getBoundingClientRect']();return Math[_0x5607d2(0x1d3)](0x0,Math[_0x5607d2(0x1aa)](0x1,(_0x515824[_0x5607d2(0x1ea)]-_0x3590b9[_0x5607d2(0x1a0)])/_0x3590b9['width']));},'startDrag'(_0xad8a80){const _0x468896=_0x14187e;_0xad8a80[_0x468896(0x1cc)]();const _0x2103d6=this[_0x468896(0x1b6)](_0xad8a80);if(null===_0x2103d6)return;this[_0x468896(0x1dd)]=!0x0,this['dragClock']=this['nearestClockForFrac'](_0x2103d6);const _0x508e6e=_0x4a8d60=>{const _0x1d3463=_0x468896,_0x2ce9ed=this[_0x1d3463(0x1b6)](_0x4a8d60);null!==_0x2ce9ed&&(this[_0x1d3463(0x1be)]=this['nearestClockForFrac'](_0x2ce9ed));},_0x2a2496=()=>{const _0x3c5cbf=_0x468896;document[_0x3c5cbf(0x1a5)](_0x3c5cbf(0x190),_0x508e6e),document['removeEventListener'](_0x3c5cbf(0x1d2),_0x2a2496),this[_0x3c5cbf(0x1dd)]=!0x1;const _0x316f48=this['dragClock'];this[_0x3c5cbf(0x1be)]=null,null!==_0x316f48&&(this[_0x3c5cbf(0x1a4)](_0x316f48),this['hoverClock']=_0x316f48);};document[_0x468896(0x19f)](_0x468896(0x190),_0x508e6e),document[_0x468896(0x19f)]('mouseup',_0x2a2496);},'dotStyle'(_0x536fe){const _0x1a4bc3=_0x14187e,_0x5a5246=this[_0x1a4bc3(0x1d9)](_0x536fe[_0x1a4bc3(0x1a8)]),_0x2e1fbc=!this[_0x1a4bc3(0x1dd)]&&this[_0x1a4bc3(0x1e6)]===_0x536fe[_0x1a4bc3(0x1a8)],_0x444279=this[_0x1a4bc3(0x1dd)]&&this['dragClock']===_0x536fe[_0x1a4bc3(0x1a8)];let _0x3a9ab5=_0x1a4bc3(0x1c9),_0x5f47f0='var(--okdb-app-fg-muted)',_0x2a910e='.55';return this['selectedClock']===_0x536fe[_0x1a4bc3(0x1a8)]?(_0x3a9ab5=_0x1a4bc3(0x1dc),_0x5f47f0=_0x1a4bc3(0x1ac),_0x2a910e='1'):_0x444279?(_0x3a9ab5=_0x1a4bc3(0x19b),_0x5f47f0=_0x1a4bc3(0x1ac),_0x2a910e=_0x1a4bc3(0x1bc)):_0x2e1fbc&&(_0x3a9ab5=_0x1a4bc3(0x1dc),_0x5f47f0=_0x1a4bc3(0x197),_0x2a910e='.9'),[_0x1a4bc3(0x1c1),'left:calc(6px\x20+\x20'+_0x5a5246+'\x20*\x20(100%\x20-\x2012px))',_0x1a4bc3(0x18f),'transform:translate(-50%,-50%)',_0x1a4bc3(0x191)+_0x3a9ab5,_0x1a4bc3(0x1d0)+_0x3a9ab5,'border-radius:50%','background:'+_0x5f47f0,_0x1a4bc3(0x1db)+_0x2a910e,_0x1a4bc3(0x1ca),_0x1a4bc3(0x1ef)+(this[_0x1a4bc3(0x1dd)]?'grabbing':_0x1a4bc3(0x1a1)),_0x1a4bc3(0x18e)][_0x1a4bc3(0x1e5)](';');},'dragRingStyle'(){const _0x5ddecc=_0x14187e;return this[_0x5ddecc(0x1dd)]&&null!==this[_0x5ddecc(0x1be)]?[_0x5ddecc(0x1c1),_0x5ddecc(0x1e1)+this['dotFraction'](this[_0x5ddecc(0x1be)])+_0x5ddecc(0x1c6),_0x5ddecc(0x18f),_0x5ddecc(0x1bf),_0x5ddecc(0x1c7),_0x5ddecc(0x1cf),_0x5ddecc(0x1d8),'border:2px\x20solid\x20var(--okdb-accent)',_0x5ddecc(0x194),_0x5ddecc(0x1cd),'z-index:4',_0x5ddecc(0x1d6)][_0x5ddecc(0x1e5)](';'):_0x5ddecc(0x1ce);},'tooltipStyle'(_0x8cf1d8){const _0x33e892=_0x14187e;return[_0x33e892(0x1c1),_0x33e892(0x1c8)+this[_0x33e892(0x1d9)](_0x8cf1d8[_0x33e892(0x1a8)])+_0x33e892(0x1b2),_0x33e892(0x19c),'transform:translateX(-50%)',_0x33e892(0x1b0),_0x33e892(0x1e2),_0x33e892(0x1ba),_0x33e892(0x1f0),'font-size:11px',_0x33e892(0x1c0),'pointer-events:none',_0x33e892(0x1ae),'color:var(--okdb-app-fg)',_0x33e892(0x1a9)]['join'](';');}}),async 'init'(_0x3d32d8){const _0x2956a8=_0x14187e;_0x3d32d8['$watch'](()=>_0x3d32d8[_0x2956a8(0x1e4)][_0x2956a8(0x1d4)]+'|'+_0x3d32d8[_0x2956a8(0x1e4)][_0x2956a8(0x1c3)]+'|'+_0x3d32d8[_0x2956a8(0x1e4)][_0x2956a8(0x1e0)],()=>{const _0x14ab3b=_0x2956a8;this['diffs']=[],this[_0x14ab3b(0x19a)]();}),await this[_0x2956a8(0x19a)]();},'template':_0x14187e(0x1e8),'style':''};
|
|
1
|
+
const _0xd483a5=_0x8d5f;function _0x8d5f(_0x52f4d5,_0x112031){_0x52f4d5=_0x52f4d5-0x18b;const _0x749d11=_0x749d();let _0x8d5f53=_0x749d11[_0x52f4d5];return _0x8d5f53;}(function(_0x8d64e4,_0x551713){const _0x128965=_0x8d5f,_0x577aec=_0x8d64e4();while(!![]){try{const _0x195f70=-parseInt(_0x128965(0x1bb))/0x1+parseInt(_0x128965(0x1e0))/0x2+-parseInt(_0x128965(0x18e))/0x3*(-parseInt(_0x128965(0x19f))/0x4)+parseInt(_0x128965(0x1b7))/0x5+parseInt(_0x128965(0x1a6))/0x6*(-parseInt(_0x128965(0x197))/0x7)+parseInt(_0x128965(0x1e3))/0x8*(parseInt(_0x128965(0x1b6))/0x9)+-parseInt(_0x128965(0x1b5))/0xa;if(_0x195f70===_0x551713)break;else _0x577aec['push'](_0x577aec['shift']());}catch(_0x62e44b){_0x577aec['push'](_0x577aec['shift']());}}}(_0x749d,0x75b5c));import _0x510767 from'@toolkit/elements/ok-icon.ok.js';export default{'tag':'tm-timeline','components':[_0x510767],'attr':{'type':{},'itemKey':{},'env':{},'selectedClock':{}},'context':_0x5a70e9=>({'busy':!0x1,'diffs':[],'hoverClock':null,'isDragging':!0x1,'dragClock':null,get 'type'(){const _0x5f0fe1=_0x8d5f;return _0x5a70e9['$attr'][_0x5f0fe1(0x1cf)];},get 'itemKey'(){const _0x33b1a3=_0x8d5f;return _0x5a70e9[_0x33b1a3(0x1b3)][_0x33b1a3(0x1ca)];},get 'env'(){const _0x5ac1d9=_0x8d5f;return _0x5a70e9[_0x5ac1d9(0x1b3)][_0x5ac1d9(0x1b2)];},get 'selectedClock'(){const _0x2521bf=_0x8d5f,_0x1908ab=_0x5a70e9[_0x2521bf(0x1b3)]['selectedClock'];return null!=_0x1908ab?Number(_0x1908ab):null;},get '_cappedFractions'(){const _0x5387a1=_0x8d5f,_0x378fae=this[_0x5387a1(0x1de)][_0x5387a1(0x1c2)];if(0x0===_0x378fae)return new Map();if(0x1===_0x378fae)return new Map([[this[_0x5387a1(0x1de)][0x0]['clock'],0.5]]);const _0x2fa2e8=this[_0x5387a1(0x1de)]['map'](_0x44175c=>_0x44175c['clock']),_0x159719=[];for(let _0x3b31a8=0x1;_0x3b31a8<_0x378fae;_0x3b31a8++)_0x159719[_0x5387a1(0x1c3)](_0x2fa2e8[_0x3b31a8]-_0x2fa2e8[_0x3b31a8-0x1]);const _0x180115=[..._0x159719][_0x5387a1(0x1d5)]((_0x176456,_0x1c8f30)=>_0x176456-_0x1c8f30),_0x1aab96=0x4*_0x180115[Math['floor'](_0x180115[_0x5387a1(0x1c2)]/0x2)],_0x4b34c8=_0x159719[_0x5387a1(0x198)](_0x59e2e8=>Math[_0x5387a1(0x1c4)](_0x59e2e8,_0x1aab96)),_0x152cc1=[0x0];for(const _0x55249e of _0x4b34c8)_0x152cc1[_0x5387a1(0x1c3)](_0x152cc1[_0x152cc1[_0x5387a1(0x1c2)]-0x1]+_0x55249e);const _0x505d4b=_0x152cc1[_0x152cc1['length']-0x1],_0x1c734e=new Map();return _0x2fa2e8[_0x5387a1(0x194)]((_0x4b495a,_0x271fea)=>_0x1c734e[_0x5387a1(0x18d)](_0x4b495a,_0x505d4b?_0x152cc1[_0x271fea]/_0x505d4b:0x0)),_0x1c734e;},'dotFraction'(_0x204c86){const _0x259b24=_0x8d5f;return this[_0x259b24(0x191)][_0x259b24(0x1a0)](_0x204c86)??0.5;},'fieldsChanged':_0x108c55=>Object[_0xd483a5(0x1da)](_0x108c55[_0xd483a5(0x1c9)]||{})[_0xd483a5(0x1c2)]+(_0x108c55[_0xd483a5(0x1d7)]||[])[_0xd483a5(0x1c2)],'wallTime':_0x1cf9e1=>_0x1cf9e1['timestamp']?new Date(_0x1cf9e1[_0xd483a5(0x1a8)])['toLocaleString'](_0xd483a5(0x1dc),{'day':'numeric','month':_0xd483a5(0x18f),'year':_0xd483a5(0x1db),'hour':_0xd483a5(0x1ed),'minute':_0xd483a5(0x1ed),'second':_0xd483a5(0x1ed)}):null,get 'activeTooltipClock'(){const _0x1a0c7c=_0xd483a5;return this['isDragging']?this[_0x1a0c7c(0x1ae)]:this[_0x1a0c7c(0x1ec)];},async 'load'(){const _0x1ffbe0=_0xd483a5;if(this[_0x1ffbe0(0x1cf)]&&this[_0x1ffbe0(0x1ca)]&&this[_0x1ffbe0(0x1b2)]){this[_0x1ffbe0(0x1b9)]=!0x0;try{const _0x291d30=__ENV__[_0x1ffbe0(0x1d6)]+_0x1ffbe0(0x1b0)+encodeURIComponent(this[_0x1ffbe0(0x1b2)])+_0x1ffbe0(0x192)+encodeURIComponent(this[_0x1ffbe0(0x1cf)])+'/'+encodeURIComponent(this[_0x1ffbe0(0x1ca)])+_0x1ffbe0(0x1a5),_0x5386ad=await fetch(_0x291d30);if(!_0x5386ad['ok'])return void(this[_0x1ffbe0(0x1de)]=[]);const _0x56317a=await _0x5386ad[_0x1ffbe0(0x1a7)]();this[_0x1ffbe0(0x1de)]=_0x56317a[_0x1ffbe0(0x19c)]?.['diffs']||[];}catch{this[_0x1ffbe0(0x1de)]=[];}finally{this['busy']=!0x1;}_0x5a70e9['$el'][_0x1ffbe0(0x1aa)](new CustomEvent(_0x1ffbe0(0x1eb),{'detail':{'diffs':this['diffs']},'bubbles':!0x0}));}},'selectDot'(_0x1e8258){const _0x588f89=_0xd483a5;_0x5a70e9[_0x588f89(0x1b4)]['dispatchEvent'](new CustomEvent(_0x588f89(0x1c5),{'detail':{'clock':_0x1e8258},'bubbles':!0x0}));},'selectCurrent'(){const _0x212c34=_0xd483a5;_0x5a70e9[_0x212c34(0x1b4)][_0x212c34(0x1aa)](new CustomEvent(_0x212c34(0x1c5),{'detail':{'clock':null},'bubbles':!0x0}));},'nearestClockForFrac'(_0x2e6b24){const _0x121d13=_0xd483a5;if(!this[_0x121d13(0x1de)][_0x121d13(0x1c2)])return null;const _0x5ba5f3=this[_0x121d13(0x191)];let _0x12203d=this[_0x121d13(0x1de)][0x0],_0x26695d=0x1/0x0;for(const _0x15f42c of this['diffs']){const _0x4919b6=Math[_0x121d13(0x1c6)]((_0x5ba5f3[_0x121d13(0x1a0)](_0x15f42c[_0x121d13(0x1d4)])??0x0)-_0x2e6b24);_0x4919b6<_0x26695d&&(_0x26695d=_0x4919b6,_0x12203d=_0x15f42c);}return _0x12203d[_0x121d13(0x1d4)];},'fracFromEvent'(_0x2024b6){const _0x17b97b=_0xd483a5,_0x6d17f4=_0x5a70e9[_0x17b97b(0x1b4)][_0x17b97b(0x18c)](_0x17b97b(0x19a));if(!_0x6d17f4)return null;const _0x43c0b3=_0x6d17f4['getBoundingClientRect']();return Math['max'](0x0,Math['min'](0x1,(_0x2024b6[_0x17b97b(0x1af)]-_0x43c0b3[_0x17b97b(0x199)])/_0x43c0b3[_0x17b97b(0x1bd)]));},'startDrag'(_0x569251){const _0x23c4d3=_0xd483a5;_0x569251[_0x23c4d3(0x1ab)]();const _0x3216e4=this['fracFromEvent'](_0x569251);if(null===_0x3216e4)return;this[_0x23c4d3(0x1a2)]=!0x0,this['dragClock']=this[_0x23c4d3(0x1b8)](_0x3216e4);const _0x10a5cd=_0x1c5eba=>{const _0x4d7b6d=_0x23c4d3,_0x5a7fcb=this['fracFromEvent'](_0x1c5eba);null!==_0x5a7fcb&&(this[_0x4d7b6d(0x1ae)]=this[_0x4d7b6d(0x1b8)](_0x5a7fcb));},_0xede425=()=>{const _0x3f9e40=_0x23c4d3;document[_0x3f9e40(0x1be)](_0x3f9e40(0x1e7),_0x10a5cd),document['removeEventListener']('mouseup',_0xede425),this[_0x3f9e40(0x1a2)]=!0x1;const _0x584565=this['dragClock'];this[_0x3f9e40(0x1ae)]=null,null!==_0x584565&&(this[_0x3f9e40(0x1cd)](_0x584565),this[_0x3f9e40(0x1ec)]=_0x584565);};document['addEventListener'](_0x23c4d3(0x1e7),_0x10a5cd),document[_0x23c4d3(0x1a1)](_0x23c4d3(0x1e1),_0xede425);},'dotStyle'(_0x28c6ca){const _0x45348b=_0xd483a5,_0x113812=this[_0x45348b(0x1d9)](_0x28c6ca[_0x45348b(0x1d4)]),_0x163ea2=!this['isDragging']&&this[_0x45348b(0x1ec)]===_0x28c6ca['clock'],_0x5dce40=this[_0x45348b(0x1a2)]&&this[_0x45348b(0x1ae)]===_0x28c6ca[_0x45348b(0x1d4)];let _0x7a7a5b=_0x45348b(0x1d3),_0x241733=_0x45348b(0x1ac),_0x5562cc='.55';return this[_0x45348b(0x1a3)]===_0x28c6ca['clock']?(_0x7a7a5b='10px',_0x241733=_0x45348b(0x19e),_0x5562cc='1'):_0x5dce40?(_0x7a7a5b='8px',_0x241733=_0x45348b(0x19e),_0x5562cc=_0x45348b(0x1cc)):_0x163ea2&&(_0x7a7a5b=_0x45348b(0x1d2),_0x241733=_0x45348b(0x1c0),_0x5562cc='.9'),[_0x45348b(0x1e9),_0x45348b(0x1d8)+_0x113812+'\x20*\x20(100%\x20-\x2012px))',_0x45348b(0x19b),_0x45348b(0x18b),_0x45348b(0x195)+_0x7a7a5b,_0x45348b(0x19d)+_0x7a7a5b,_0x45348b(0x1ad),'background:'+_0x241733,_0x45348b(0x1e4)+_0x5562cc,_0x45348b(0x1ba),_0x45348b(0x1cb)+(this[_0x45348b(0x1a2)]?_0x45348b(0x1bc):_0x45348b(0x1c1)),_0x45348b(0x196)][_0x45348b(0x1ce)](';');},'dragRingStyle'(){const _0x18e072=_0xd483a5;return this[_0x18e072(0x1a2)]&&null!==this[_0x18e072(0x1ae)]?[_0x18e072(0x1e9),'left:calc(6px\x20+\x20'+this[_0x18e072(0x1d9)](this['dragClock'])+_0x18e072(0x1b1),'top:50%',_0x18e072(0x18b),'width:16px',_0x18e072(0x1e2),_0x18e072(0x1ad),'border:2px\x20solid\x20var(--okdb-accent)',_0x18e072(0x1d0),_0x18e072(0x1a4),'z-index:4','transition:left\x2070ms\x20cubic-bezier(0.25,0.1,0.25,1)']['join'](';'):_0x18e072(0x1e5);},'tooltipStyle'(_0x595180){const _0x49250a=_0xd483a5;return[_0x49250a(0x1e9),_0x49250a(0x1ee)+this[_0x49250a(0x1d9)](_0x595180[_0x49250a(0x1d4)])+'\x20*\x20(100%\x20-\x2012px)),\x20calc(100%\x20-\x2040px))',_0x49250a(0x1ea),_0x49250a(0x1e6),'background:var(--okdb-app-bg-deep)',_0x49250a(0x1dd),_0x49250a(0x1c8),_0x49250a(0x1d1),'font-size:11px',_0x49250a(0x1a9),_0x49250a(0x1a4),_0x49250a(0x1bf),_0x49250a(0x1c7),_0x49250a(0x193)]['join'](';');}}),async 'init'(_0x2bf4a2){const _0x4b4f97=_0xd483a5;_0x2bf4a2[_0x4b4f97(0x1e8)](()=>_0x2bf4a2[_0x4b4f97(0x1b3)]['type']+'|'+_0x2bf4a2[_0x4b4f97(0x1b3)][_0x4b4f97(0x1ca)]+'|'+_0x2bf4a2[_0x4b4f97(0x1b3)][_0x4b4f97(0x1b2)],()=>{this['diffs']=[],this['load']();}),await this[_0x4b4f97(0x190)]();},'template':_0xd483a5(0x1df),'style':''};function _0x749d(){const _0x5cd2c6=['abs','color:var(--okdb-app-fg)','border-radius:6px','put','itemKey','cursor:','.75','selectDot','join','type','background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2010%,\x20transparent)','padding:6px\x2010px','10px','6px','clock','sort','API','delete','left:calc(6px\x20+\x20','dotFraction','keys','numeric','en-GB','border:1px\x20solid\x20var(--okdb-app-border)','diffs','\x0a<if\x20:=\x22diffs.length\x20>\x200\x22>\x0a<div>\x0a\x0a\x20\x20<!--\x20Header:\x20label\x20+\x20\x22back\x20to\x20live\x22\x20button\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20justify-content:space-between;\x20margin-bottom:7px;\x22>\x0a\x20\x20\x20\x20<span\x20style=\x22font-size:10px;\x20font-family:monospace;\x20letter-spacing:.05em;\x20text-transform:uppercase;\x20opacity:.38;\x20user-select:none;\x22>\x0a\x20\x20\x20\x20\x20\x20time\x20travel\x20·\x20{{\x20diffs.length\x20}}\x20snapshot{{\x20diffs.length\x20===\x201\x20?\x20\x27\x27\x20:\x20\x27s\x27\x20}}\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20<if\x20:=\x22selectedClock\x20!==\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22selectCurrent()\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:10px;\x20padding:1px\x208px;\x20border-radius:4px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-accent)\x2035%,\x20transparent);\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x208%,\x20transparent);\x20color:var(--okdb-accent);\x20cursor:pointer;\x20font-family:monospace;\x20line-height:1.6;\x22\x0a\x20\x20\x20\x20\x20\x20>←\x20live</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Scrubber:\x20capped\x20width\x20so\x20it\x20never\x20fills\x20a\x20wide\x20table\x20-->\x0a\x20\x20<div\x20style=\x22max-width:480px;\x20padding-bottom:10px;\x22>\x0a\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20data-track\x0a\x20\x20\x20\x20\x20\x20style=\x22position:relative;\x20height:26px;\x20width:100%;\x20user-select:none;\x22\x0a\x20\x20\x20\x20\x20\x20:style=\x22\x27cursor:\x27\x20+\x20(isDragging\x20?\x20\x27grabbing\x27\x20:\x20\x27ew-resize\x27)\x22\x0a\x20\x20\x20\x20\x20\x20@mousedown=\x22startDrag($event)\x22\x0a\x20\x20\x20\x20>\x0a\x0a\x20\x20\x20\x20\x20\x20<!--\x20Track\x20line\x20-->\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22position:absolute;\x20left:6px;\x20right:6px;\x20top:50%;\x20height:2px;\x20transform:translateY(-50%);\x20background:var(--okdb-app-border);\x20border-radius:1px;\x20pointer-events:none;\x22></div>\x0a\x0a\x20\x20\x20\x20\x20\x20<!--\x20Diff\x20dots\x20+\x20tooltips\x20-->\x0a\x20\x20\x20\x20\x20\x20<div\x20as=\x22repeat\x22\x20:of=\x22diffs\x22\x20let:item=\x22diff\x22>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Tooltip\x20(above\x20track,\x20shown\x20on\x20hover\x20or\x20drag-snap)\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22activeTooltipClock\x20===\x20diff.clock\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20:style=\x22tooltipStyle(diff)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:5px;\x20margin-bottom:3px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22clock\x22\x20style=\x22width:10px;height:10px;opacity:.5;flex-shrink:0;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-family:monospace;\x20color:var(--okdb-accent);\x20font-size:10px;\x22>clock\x20{{\x20diff.clock\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22wallTime(diff)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22opacity:.7;\x20font-size:11px;\x22>{{\x20wallTime(diff)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22opacity:.4;\x20margin-top:3px;\x20font-size:10px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20fieldsChanged(diff)\x20}}\x20field{{\x20fieldsChanged(diff)\x20===\x201\x20?\x20\x27\x27\x20:\x20\x27s\x27\x20}}\x20changed\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Dot\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22dotStyle(diff)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@mouseenter=\x22!isDragging\x20&&\x20(hoverClock\x20=\x20diff.clock)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@mouseleave=\x22!isDragging\x20&&\x20(hoverClock\x20=\x20null)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22!isDragging\x20&&\x20selectDot(diff.clock)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20></div>\x0a\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<!--\x20Snapping\x20ring:\x20jumps\x20to\x20nearest\x20clock\x20with\x20CSS\x20transition\x20-->\x0a\x20\x20\x20\x20\x20\x20<div\x20:style=\x22dragRingStyle()\x22\x20style=\x22pointer-events:none;\x22></div>\x0a\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a</div>\x0a</if>\x0a','1887862FkxObM','mouseup','height:16px','8hkniiw','opacity:','display:none','transform:translateX(-50%)','mousemove','$watch','position:absolute','bottom:calc(100%\x20+\x208px)','tm-diffs-loaded','hoverClock','2-digit','left:clamp(40px,\x20calc(6px\x20+\x20','transform:translate(-50%,-50%)','querySelector','set','611904OaCAkS','short','load','_cappedFractions','/time-machine/','box-shadow:0\x202px\x2010px\x20color-mix(in\x20srgb,\x20#000\x2025%,\x20transparent)','forEach','width:','z-index:3','405006lcKjWf','map','left','[data-track]','top:50%','data','height:','var(--okdb-accent)','8ebbbCM','get','addEventListener','isDragging','selectedClock','pointer-events:none','/history','84peOUal','json','timestamp','white-space:nowrap','dispatchEvent','preventDefault','var(--okdb-app-fg-muted)','border-radius:50%','dragClock','clientX','/env/','\x20*\x20(100%\x20-\x2012px))','env','$attr','$el','2230340jsqbsz','1729656LrXgNy','1597400sKXqVZ','nearestClockForFrac','busy','transition:width\x20100ms\x20ease,height\x20100ms\x20ease,background\x20100ms\x20ease,opacity\x20100ms\x20ease','348345SdXKSs','grabbing','width','removeEventListener','z-index:10','var(--okdb-app-fg)','pointer','length','push','min','tm-clock-select'];_0x749d=function(){return _0x5cd2c6;};return _0x749d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1733(){const _0x4bec6d=['m\x20ago','limit','trim','replace','6ztqRno','Failed','var(--okdb-success)','h\x20ago','423511zurWBt','/changelog?','oldestClock','dropType','message','error','shortKey','511158YfiWPx','stores','dropFts','registerType','toUpperCase','81955YtigQq','timemachine','just\x20now','put','#6ee7b7','resetFts','2LMeiZn','var(--okdb-app-fg-muted)','$watch','now','toLocaleDateString','8028BjsQKB','set','/env/','var(--okdb-indigo)','$ok','fts','slice','data','5394072QwEvVq','selectedEnv','var(--okdb-accent)','registerIndex','var(--okdb-orange)','default','$attr','resetIndex','length','394704gRkyXT','changes','clock','s\x20ago','var(--okdb-purple)','busy','round','.ch-th{text-align:left;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.04em;opacity:.5}.ch-td,.ch-th{padding:5px\x208px;border-bottom:1px\x20solid\x20var(--okdb-app-border)}.ch-row:hover\x20.ch-td{background:#ffffff06}','type','meta','load','var(--okdb-warning)','3363871gplODk','index','okdb','type-changelog'];_0x1733=function(){return _0x4bec6d;};return _0x1733();}const _0xe78cbb=_0x4eb7;function _0x4eb7(_0x572333,_0x5018b9){_0x572333=_0x572333-0x190;const _0x1733a8=_0x1733();let _0x4eb747=_0x1733a8[_0x572333];return _0x4eb747;}(function(_0x38efdc,_0x3e4dff){const _0x16203a=_0x4eb7,_0x126be7=_0x38efdc();while(!![]){try{const _0x90ffb7=parseInt(_0x16203a(0x19d))/0x1+parseInt(_0x16203a(0x1af))/0x2*(-parseInt(_0x16203a(0x1a4))/0x3)+parseInt(_0x16203a(0x1c5))/0x4+-parseInt(_0x16203a(0x1a9))/0x5+-parseInt(_0x16203a(0x199))/0x6*(parseInt(_0x16203a(0x191))/0x7)+parseInt(_0x16203a(0x1bc))/0x8+-parseInt(_0x16203a(0x1b4))/0x9;if(_0x90ffb7===_0x3e4dff)break;else _0x126be7['push'](_0x126be7['shift']());}catch(_0x17b2ce){_0x126be7['push'](_0x126be7['shift']());}}}(_0x1733,0x80f60));export default{'tag':_0xe78cbb(0x194),'attr':{'type':{}},'context':_0x487466=>({'busy':!0x1,'error':null,'changes':[],'clock':null,'limit':0x64,'before':null,get 'type'(){const _0xef2de2=_0xe78cbb;return _0x487466[_0xef2de2(0x1c2)][_0xef2de2(0x1cd)];},async 'load'(_0x2020e6=null){const _0x1e1081=_0xe78cbb;if(this[_0x1e1081(0x1cd)]){this[_0x1e1081(0x1ca)]=!0x0,this[_0x1e1081(0x1a2)]=null;try{const _0x561dae=new URLSearchParams({'limit':this[_0x1e1081(0x196)],'annotate':_0x1e1081(0x1aa)});null!=_0x2020e6&&_0x561dae[_0x1e1081(0x1b5)]('before',_0x2020e6);const _0x7085f5=_0x487466[_0x1e1081(0x1b8)][_0x1e1081(0x1a5)][_0x1e1081(0x193)][_0x1e1081(0x1bd)]||_0x1e1081(0x1c1),_0x377355=await fetch(__ENV__['API']+_0x1e1081(0x1b6)+encodeURIComponent(_0x7085f5)+'/type/'+encodeURIComponent(this[_0x1e1081(0x1cd)])+_0x1e1081(0x19e)+_0x561dae),_0x184477=await _0x377355['json']();if(!_0x377355['ok'])throw new Error(_0x184477?.[_0x1e1081(0x1a2)]?.[_0x1e1081(0x1a1)]||_0x1e1081(0x19a));this['changes']=_0x184477[_0x1e1081(0x1bb)]??[],this[_0x1e1081(0x1c7)]=_0x184477[_0x1e1081(0x1ce)]??null,this['before']=_0x2020e6;}catch(_0x48e4ec){this['error']=_0x48e4ec?.[_0x1e1081(0x1a1)]||String(_0x48e4ec),this[_0x1e1081(0x1c6)]=[];}finally{this[_0x1e1081(0x1ca)]=!0x1;}}},get 'hasOlder'(){const _0x35bfd3=_0xe78cbb;return this[_0x35bfd3(0x1c6)][_0x35bfd3(0x1c4)]===this[_0x35bfd3(0x196)];},get 'oldestClock'(){const _0x5c4843=_0xe78cbb;return this[_0x5c4843(0x1c6)]['length']?this['changes'][this[_0x5c4843(0x1c6)]['length']-0x1][_0x5c4843(0x1c7)]:null;},'loadOlder'(){const _0x47d5ed=_0xe78cbb;null!=this[_0x47d5ed(0x19f)]&&this[_0x47d5ed(0x1cf)](this['oldestClock']-0x1);},'loadLatest'(){const _0x47b6f9=_0xe78cbb;this[_0x47b6f9(0x1cf)](null);},'actionColor'(_0x4c2988){const _0x22bde5=_0xe78cbb;switch(_0x4c2988){case _0x22bde5(0x1ac):case'registerFts':return _0x22bde5(0x19b);case'remove':case _0x22bde5(0x1a0):return'var(--okdb-danger)';case _0x22bde5(0x1a7):return _0x22bde5(0x1be);case _0x22bde5(0x1bf):return _0x22bde5(0x1c9);case'dropIndex':return _0x22bde5(0x190);case _0x22bde5(0x1c3):return _0x22bde5(0x1b7);case _0x22bde5(0x1a6):return _0x22bde5(0x1c0);case _0x22bde5(0x1ae):return _0x22bde5(0x1ad);default:return _0x22bde5(0x1b0);}},'actionLabel':_0x31c33b=>_0x31c33b?_0x31c33b[_0xe78cbb(0x198)](/([A-Z])/g,'\x20$1')['replace'](/_/g,'\x20')[_0xe78cbb(0x1a8)]()[_0xe78cbb(0x197)]():'','displayKey'(_0x2a6540){const _0x3b0e85=_0xe78cbb,_0xbe1df4=_0x2a6540['key']||_0x2a6540[_0x3b0e85(0x192)]||_0x2a6540[_0x3b0e85(0x1b9)]||null;return this[_0x3b0e85(0x1a3)](_0xbe1df4);},'shortKey':_0x517a44=>_0x517a44?_0x517a44[_0xe78cbb(0x1c4)]<=0x18?_0x517a44:_0x517a44[_0xe78cbb(0x1ba)](0x0,0xa)+'…'+_0x517a44[_0xe78cbb(0x1ba)](-0x6):'—','relTime'(_0x222f78){const _0x4f7fee=_0xe78cbb;if(!_0x222f78)return'—';const _0x16812f=Date[_0x4f7fee(0x1b2)]()-_0x222f78;return _0x16812f<0x1388?_0x4f7fee(0x1ab):_0x16812f<0xea60?Math[_0x4f7fee(0x1cb)](_0x16812f/0x3e8)+_0x4f7fee(0x1c8):_0x16812f<0x36ee80?Math[_0x4f7fee(0x1cb)](_0x16812f/0xea60)+_0x4f7fee(0x195):_0x16812f<0x5265c00?Math['round'](_0x16812f/0x36ee80)+_0x4f7fee(0x19c):new Date(_0x222f78)[_0x4f7fee(0x1b3)]();}}),async 'init'(_0x3a6286){const _0x5728d4=_0xe78cbb;_0x3a6286[_0x5728d4(0x1b1)](()=>_0x3a6286[_0x5728d4(0x1c2)][_0x5728d4(0x1cd)],()=>{const _0x3f1d0a=_0x5728d4;this[_0x3f1d0a(0x1c6)]=[],this[_0x3f1d0a(0x1cf)]();}),await this[_0x5728d4(0x1cf)]();},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:10px;\x20height:100%;\x20min-height:0;\x22>\x0a\x0a\x20\x20<!--\x20Toolbar\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:13px;\x20opacity:.7;\x22>Change\x20log\x20for\x20<b>{{type}}</b></div>\x0a\x20\x20\x20\x20<div\x20style=\x22margin-left:auto;\x20display:flex;\x20gap:6px;\x20align-items:center;\x22>\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22before\x20!=\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22loadLatest()\x22\x20style=\x22font-size:12px;\x20opacity:.8;\x22>↑\x20Latest</button>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22load(before)\x22\x20:disabled=\x22busy\x22\x20style=\x22font-size:12px;\x20opacity:.8;\x22>↻</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<if\x20:=\x22error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22color:var(--okdb-danger);\x20font-size:12px;\x22>{{error}}</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22!busy\x20&&\x20changes.length\x20===\x200\x20&&\x20!error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22opacity:.5;\x20font-size:13px;\x22>No\x20changes\x20recorded\x20yet.</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20Table\x20-->\x0a\x20\x20<div\x20style=\x22flex:1;\x20min-height:0;\x20overflow:auto;\x22>\x0a\x20\x20\x20\x20<table\x20style=\x22width:100%;\x20border-collapse:collapse;\x20font-size:12px;\x22>\x0a\x20\x20\x20\x20\x20\x20<thead\x20style=\x22position:sticky;\x20top:0;\x20z-index:1;\x20background:var(--okdb-app-bg-deep);\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22\x20style=\x22text-align:right;\x20width:70px;\x22>Clock</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22\x20style=\x22width:110px;\x22>Action</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22>Key</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22\x20style=\x22width:90px;\x22>Origin</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22\x20style=\x22width:90px;\x20text-align:right;\x22>When</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20</thead>\x0a\x20\x20\x20\x20\x20\x20<tbody>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<tr\x20as=\x22repeat\x22\x20:of=\x22changes\x22\x20let:item=\x22ch\x22\x20class=\x22ch-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22\x20style=\x22text-align:right;\x20font-family:monospace;\x20opacity:.6;\x22>{{ch.clock}}</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27font-size:10px;\x20padding:2px\x206px;\x20border-radius:4px;\x20border:1px\x20solid;\x20color:\x27\x20+\x20actionColor(ch.action)\x20+\x20\x27;\x20border-color:\x27\x20+\x20actionColor(ch.action)\x20+\x20\x2744;\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{actionLabel(ch.action)}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ch.tmDiff\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:9px;\x20padding:1px\x205px;\x20border-radius:3px;\x20border:1px\x20solid\x20var(--okdb-accent)44;\x20color:var(--okdb-accent);\x20opacity:.7;\x20font-family:monospace;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Time-machine\x20snapshot\x20available\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>TM</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22\x20style=\x22font-family:monospace;\x20max-width:220px;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x22\x20:title=\x22ch.key\x20||\x20ch.index\x20||\x20ch.fts\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{displayKey(ch)}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22\x20style=\x22font-family:monospace;\x20font-size:11px;\x20opacity:.6;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x22\x20:title=\x22ch.origin\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{ch.origin\x20?\x20ch.origin.slice(0,8)\x20:\x20\x27—\x27}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22\x20style=\x22text-align:right;\x20opacity:.6;\x20white-space:nowrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{relTime(ch.timestamp)}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20</tbody>\x0a\x20\x20\x20\x20</table>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Pagination\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:8px;\x20align-items:center;\x20padding-top:4px;\x20border-top:1px\x20solid\x20var(--okdb-app-border);\x22>\x0a\x20\x20\x20\x20<span\x20style=\x22font-size:12px;\x20opacity:.55;\x22>{{changes.length}}\x20entries</span>\x0a\x20\x20\x20\x20<if\x20:=\x22hasOlder\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22loadOlder()\x22\x20:disabled=\x22busy\x22\x20style=\x22font-size:12px;\x20margin-left:auto;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Load\x20older\x20▼\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':_0xe78cbb(0x1cc)};
|
|
1
|
+
const _0x230940=_0x4736;(function(_0x23902d,_0x8f2aa4){const _0x2d6949=_0x4736,_0x16e27e=_0x23902d();while(!![]){try{const _0x4f27f2=-parseInt(_0x2d6949(0x1c2))/0x1*(-parseInt(_0x2d6949(0x1bc))/0x2)+parseInt(_0x2d6949(0x1d4))/0x3*(-parseInt(_0x2d6949(0x1bf))/0x4)+parseInt(_0x2d6949(0x1b8))/0x5+parseInt(_0x2d6949(0x1b7))/0x6*(-parseInt(_0x2d6949(0x1aa))/0x7)+parseInt(_0x2d6949(0x1c4))/0x8*(-parseInt(_0x2d6949(0x1c9))/0x9)+parseInt(_0x2d6949(0x1a5))/0xa+parseInt(_0x2d6949(0x1df))/0xb*(parseInt(_0x2d6949(0x1ae))/0xc);if(_0x4f27f2===_0x8f2aa4)break;else _0x16e27e['push'](_0x16e27e['shift']());}catch(_0x2d9c17){_0x16e27e['push'](_0x16e27e['shift']());}}}(_0x200c,0x420c4));function _0x200c(){const _0x570693=['118461JWuaAY','$ok','.ch-th{text-align:left;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.04em;opacity:.5}.ch-td,.ch-th{padding:5px\x208px;border-bottom:1px\x20solid\x20var(--okdb-app-border)}.ch-row:hover\x20.ch-td{background:#ffffff06}','shortKey','1541676jVZOoV','var(--okdb-accent)','$attr','var(--okdb-purple)','API','limit','/changelog?','dropFts','resetFts','36tgOJWc','916290sjKmqM','/type/','var(--okdb-orange)','default','384718ZIWsgQ','trim','round','1470548jeCjSb','m\x20ago','busy','1zqBmEX','meta','24SmMflf','registerType','timemachine','put','dropType','1007289iYqkdZ','before','Failed','h\x20ago','slice','error','clock','just\x20now','okdb','toLocaleDateString','#6ee7b7','3VNblzR','fts','var(--okdb-warning)','length','\x20$1','registerIndex','s\x20ago','var(--okdb-app-fg-muted)','$watch','type','message','33hlvQTH','now','\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:10px;\x20height:100%;\x20min-height:0;\x22>\x0a\x0a\x20\x20<!--\x20Toolbar\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:13px;\x20opacity:.7;\x22>Change\x20log\x20for\x20<b>{{type}}</b></div>\x0a\x20\x20\x20\x20<div\x20style=\x22margin-left:auto;\x20display:flex;\x20gap:6px;\x20align-items:center;\x22>\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22before\x20!=\x20null\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22loadLatest()\x22\x20style=\x22font-size:12px;\x20opacity:.8;\x22>↑\x20Latest</button>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22load(before)\x22\x20:disabled=\x22busy\x22\x20style=\x22font-size:12px;\x20opacity:.8;\x22>↻</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<if\x20:=\x22error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22color:var(--okdb-danger);\x20font-size:12px;\x22>{{error}}</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22!busy\x20&&\x20changes.length\x20===\x200\x20&&\x20!error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22opacity:.5;\x20font-size:13px;\x22>No\x20changes\x20recorded\x20yet.</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20Table\x20-->\x0a\x20\x20<div\x20style=\x22flex:1;\x20min-height:0;\x20overflow:auto;\x22>\x0a\x20\x20\x20\x20<table\x20style=\x22width:100%;\x20border-collapse:collapse;\x20font-size:12px;\x22>\x0a\x20\x20\x20\x20\x20\x20<thead\x20style=\x22position:sticky;\x20top:0;\x20z-index:1;\x20background:var(--okdb-app-bg-deep);\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<tr>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22\x20style=\x22text-align:right;\x20width:70px;\x22>Clock</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22\x20style=\x22width:110px;\x22>Action</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22>Key</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22\x20style=\x22width:90px;\x22>Origin</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<th\x20class=\x22ch-th\x22\x20style=\x22width:90px;\x20text-align:right;\x22>When</th>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20</thead>\x0a\x20\x20\x20\x20\x20\x20<tbody>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<tr\x20as=\x22repeat\x22\x20:of=\x22changes\x22\x20let:item=\x22ch\x22\x20class=\x22ch-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22\x20style=\x22text-align:right;\x20font-family:monospace;\x20opacity:.6;\x22>{{ch.clock}}</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27font-size:10px;\x20padding:2px\x206px;\x20border-radius:4px;\x20border:1px\x20solid;\x20color:\x27\x20+\x20actionColor(ch.action)\x20+\x20\x27;\x20border-color:\x27\x20+\x20actionColor(ch.action)\x20+\x20\x2744;\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{actionLabel(ch.action)}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22ch.tmDiff\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22font-size:9px;\x20padding:1px\x205px;\x20border-radius:3px;\x20border:1px\x20solid\x20var(--okdb-accent)44;\x20color:var(--okdb-accent);\x20opacity:.7;\x20font-family:monospace;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Time-machine\x20snapshot\x20available\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>TM</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22\x20style=\x22font-family:monospace;\x20max-width:220px;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x22\x20:title=\x22ch.key\x20||\x20ch.index\x20||\x20ch.fts\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{displayKey(ch)}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22\x20style=\x22font-family:monospace;\x20font-size:11px;\x20opacity:.6;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x22\x20:title=\x22ch.origin\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{ch.origin\x20?\x20ch.origin.slice(0,8)\x20:\x20\x27—\x27}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<td\x20class=\x22ch-td\x22\x20style=\x22text-align:right;\x20opacity:.6;\x20white-space:nowrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{relTime(ch.timestamp)}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</td>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</tr>\x0a\x20\x20\x20\x20\x20\x20</tbody>\x0a\x20\x20\x20\x20</table>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Pagination\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:8px;\x20align-items:center;\x20padding-top:4px;\x20border-top:1px\x20solid\x20var(--okdb-app-border);\x22>\x0a\x20\x20\x20\x20<span\x20style=\x22font-size:12px;\x20opacity:.55;\x22>{{changes.length}}\x20entries</span>\x0a\x20\x20\x20\x20<if\x20:=\x22hasOlder\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22loadOlder()\x22\x20:disabled=\x22busy\x22\x20style=\x22font-size:12px;\x20margin-left:auto;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Load\x20older\x20▼\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','oldestClock','load','registerFts','changes','replace','toUpperCase','json','key','3144340FWCWvd','dropIndex','stores','/env/','var(--okdb-danger)'];_0x200c=function(){return _0x570693;};return _0x200c();}function _0x4736(_0x2d301b,_0x1d6f92){_0x2d301b=_0x2d301b-0x1a1;const _0x200c07=_0x200c();let _0x473610=_0x200c07[_0x2d301b];return _0x473610;}export default{'tag':'type-changelog','attr':{'type':{}},'context':_0x8b667c=>({'busy':!0x1,'error':null,'changes':[],'clock':null,'limit':0x64,'before':null,get 'type'(){const _0x352d5d=_0x4736;return _0x8b667c[_0x352d5d(0x1b0)][_0x352d5d(0x1dd)];},async 'load'(_0x65e1a8=null){const _0x56ec7a=_0x4736;if(this['type']){this[_0x56ec7a(0x1c1)]=!0x0,this[_0x56ec7a(0x1ce)]=null;try{const _0x2cd215=new URLSearchParams({'limit':this[_0x56ec7a(0x1b3)],'annotate':_0x56ec7a(0x1c6)});null!=_0x65e1a8&&_0x2cd215['set'](_0x56ec7a(0x1ca),_0x65e1a8);const _0x5c2259=_0x8b667c[_0x56ec7a(0x1ab)][_0x56ec7a(0x1a7)][_0x56ec7a(0x1d1)]['selectedEnv']||_0x56ec7a(0x1bb),_0x19ae22=await fetch(__ENV__[_0x56ec7a(0x1b2)]+_0x56ec7a(0x1a8)+encodeURIComponent(_0x5c2259)+_0x56ec7a(0x1b9)+encodeURIComponent(this[_0x56ec7a(0x1dd)])+_0x56ec7a(0x1b4)+_0x2cd215),_0x2b0ddf=await _0x19ae22[_0x56ec7a(0x1a3)]();if(!_0x19ae22['ok'])throw new Error(_0x2b0ddf?.[_0x56ec7a(0x1ce)]?.[_0x56ec7a(0x1de)]||_0x56ec7a(0x1cb));this['changes']=_0x2b0ddf['data']??[],this['clock']=_0x2b0ddf[_0x56ec7a(0x1c3)]??null,this[_0x56ec7a(0x1ca)]=_0x65e1a8;}catch(_0x5d2709){this[_0x56ec7a(0x1ce)]=_0x5d2709?.['message']||String(_0x5d2709),this['changes']=[];}finally{this[_0x56ec7a(0x1c1)]=!0x1;}}},get 'hasOlder'(){const _0x1b6055=_0x4736;return this['changes'][_0x1b6055(0x1d7)]===this[_0x1b6055(0x1b3)];},get 'oldestClock'(){const _0x5d5051=_0x4736;return this['changes'][_0x5d5051(0x1d7)]?this[_0x5d5051(0x1e5)][this[_0x5d5051(0x1e5)][_0x5d5051(0x1d7)]-0x1][_0x5d5051(0x1cf)]:null;},'loadOlder'(){const _0x11df58=_0x4736;null!=this[_0x11df58(0x1e2)]&&this['load'](this[_0x11df58(0x1e2)]-0x1);},'loadLatest'(){const _0x28b0f6=_0x4736;this[_0x28b0f6(0x1e3)](null);},'actionColor'(_0x2888e6){const _0x51ea78=_0x4736;switch(_0x2888e6){case _0x51ea78(0x1c7):case _0x51ea78(0x1e4):return'var(--okdb-success)';case'remove':case _0x51ea78(0x1c8):return _0x51ea78(0x1a9);case _0x51ea78(0x1c5):return _0x51ea78(0x1af);case _0x51ea78(0x1d9):return _0x51ea78(0x1b1);case _0x51ea78(0x1a6):return _0x51ea78(0x1d6);case'resetIndex':return'var(--okdb-indigo)';case _0x51ea78(0x1b5):return _0x51ea78(0x1ba);case _0x51ea78(0x1b6):return _0x51ea78(0x1d3);default:return _0x51ea78(0x1db);}},'actionLabel':_0x3b689c=>_0x3b689c?_0x3b689c['replace'](/([A-Z])/g,_0x230940(0x1d8))[_0x230940(0x1a1)](/_/g,'\x20')[_0x230940(0x1a2)]()[_0x230940(0x1bd)]():'','displayKey'(_0x40139f){const _0x19d914=_0x230940,_0x1a7c1c=_0x40139f[_0x19d914(0x1a4)]||_0x40139f['index']||_0x40139f[_0x19d914(0x1d5)]||null;return this[_0x19d914(0x1ad)](_0x1a7c1c);},'shortKey':_0x149428=>_0x149428?_0x149428['length']<=0x18?_0x149428:_0x149428[_0x230940(0x1cd)](0x0,0xa)+'…'+_0x149428[_0x230940(0x1cd)](-0x6):'—','relTime'(_0x6b215b){const _0x530906=_0x230940;if(!_0x6b215b)return'—';const _0x4010bf=Date[_0x530906(0x1e0)]()-_0x6b215b;return _0x4010bf<0x1388?_0x530906(0x1d0):_0x4010bf<0xea60?Math['round'](_0x4010bf/0x3e8)+_0x530906(0x1da):_0x4010bf<0x36ee80?Math[_0x530906(0x1be)](_0x4010bf/0xea60)+_0x530906(0x1c0):_0x4010bf<0x5265c00?Math['round'](_0x4010bf/0x36ee80)+_0x530906(0x1cc):new Date(_0x6b215b)[_0x530906(0x1d2)]();}}),async 'init'(_0xa743f1){const _0x319dfa=_0x230940;_0xa743f1[_0x319dfa(0x1dc)](()=>_0xa743f1[_0x319dfa(0x1b0)]['type'],()=>{const _0x4762f6=_0x319dfa;this[_0x4762f6(0x1e5)]=[],this['load']();}),await this['load']();},'template':_0x230940(0x1e1),'style':_0x230940(0x1ac)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x528f92=_0x203e;function _0x23a9(){const _0x260d4b=['prompt','selected','2LwTSVr','select','22772620IAxJLi','length','message','1595616QGEuEm','Name\x20is\x20required','startsWith','type','$watch','index:drop','reloadInfo','$dispatch','Failed\x20to\x20register\x20type','269742ZenWNG','8784mcZLVG','error','shared','1249441EYpxrW','951000dhswtm','registerType','stores','busy','_unsubs','index:registered','find','okdb','$ok','trim','toast','modal','222416NxQXbM','types','type:registered','type-list','105KuujMt','loaded','allItems','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22busy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-overlay>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22loader-center\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22loader\x22\x20class=\x22spin\x22\x20style=\x22width:32px;height:32px;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</ok-overlay>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22loadError\x20&&\x20!busy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22type-list__error\x22\x20:title=\x22loadError\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22alert-circle\x22\x20style=\x22width:13px;height:13px;flex-shrink:0;opacity:.7;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>{{\x20loadError\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22type-list__error-retry\x22\x20@click=\x22load()\x22\x20title=\x22Retry\x22>↺</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22!loadError\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Overview\x20shortcut\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22type-list__item\x20type-list__overview\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:class=\x22selected\x20==\x20null\x20?\x20\x27type-list__item--selected\x27\x20:\x20\x27\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22select(null)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22margin-bottom:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22home\x22\x20style=\x22width:13px;height:13px;opacity:.6;flex-shrink:0;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22tl-name\x22>Overview</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22height:1px;\x20background:var(--okdb-app-surface-2);\x20margin:2px\x200\x206px;\x22></div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22type-list__add\x22\x20@click=\x22openAddModal\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20+\x20Register\x20Type\x20({{\x20items.length\x20}})\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22items\x22\x20let:item=\x22t\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:class=\x22[\x27type-list__item\x27,\x20selected\x20===\x20t\x20?\x20\x27type-list__item--selected\x27\x20:\x20\x27\x27]\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22select(t)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22tl-name\x22>{{\x20t.type\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22tl-count\x22>{{\x20t.count\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22systemCount\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22type-list__system-toggle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22showSystem\x20=\x20!showSystem\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:title=\x22showSystem\x20?\x20\x27Hide\x20system\x20types\x27\x20:\x20\x27Show\x20system\x20types\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20showSystem\x20?\x20\x27▴\x20hide\x20system\x20(\x27\x20+\x20systemCount\x20+\x20\x27)\x27\x20:\x20\x27⚙\x20system\x20(\x27\x20+\x20systemCount\x20+\x20\x27)\x27\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20','load','e.g.\x20user,\x20product,\x20event','filter','loadError','Register','showSystem','243gABWcL','items','selectedEnv'];_0x23a9=function(){return _0x260d4b;};return _0x23a9();}(function(_0x422171,_0x822aad){const _0x74847=_0x203e,_0x5aca53=_0x422171();while(!![]){try{const _0x331104=-parseInt(_0x74847(0x141))/0x1*(parseInt(_0x74847(0x12f))/0x2)+-parseInt(_0x74847(0x13e))/0x3+-parseInt(_0x74847(0x134))/0x4+parseInt(_0x74847(0x142))/0x5+-parseInt(_0x74847(0x13d))/0x6*(parseInt(_0x74847(0x120))/0x7)+parseInt(_0x74847(0x11c))/0x8*(parseInt(_0x74847(0x12a))/0x9)+parseInt(_0x74847(0x131))/0xa;if(_0x331104===_0x822aad)break;else _0x5aca53['push'](_0x5aca53['shift']());}catch(_0x2c29fb){_0x5aca53['push'](_0x5aca53['shift']());}}}(_0x23a9,0xd9e48));function _0x203e(_0x3813e5,_0x1a00f9){_0x3813e5=_0x3813e5-0x11c;const _0x23a990=_0x23a9();let _0x203ebd=_0x23a990[_0x3813e5];return _0x203ebd;}import _0x38ac5c from'@toolkit/elements/ok-icon.ok.js';import _0x3a09fc from'@toolkit/core/ok-overlay.ok.js';import _0x2fedda from'../../../stores/events-store.js';export default{'tag':_0x528f92(0x11f),'dependencies':[_0x3a09fc,_0x38ac5c],'context':_0x530c34=>({'busy':!0x1,'loadError':null,'showSystem':!0x1,'_unsubs':[],get 'allItems'(){const _0x429f65=_0x528f92;return _0x530c34[_0x429f65(0x14a)][_0x429f65(0x144)][_0x429f65(0x149)][_0x429f65(0x11d)]||[];},get 'items'(){const _0x7a246d=_0x528f92;return this[_0x7a246d(0x129)]?this[_0x7a246d(0x122)]:this[_0x7a246d(0x122)]['filter'](_0x46d578=>!_0x46d578[_0x7a246d(0x137)][_0x7a246d(0x136)]('~'));},get 'systemCount'(){const _0x4a3647=_0x528f92;return this[_0x4a3647(0x122)][_0x4a3647(0x126)](_0x57a78e=>_0x57a78e[_0x4a3647(0x137)][_0x4a3647(0x136)]('~'))[_0x4a3647(0x132)];},'selected':null,async 'load'(){const _0x5bf612=_0x528f92;this[_0x5bf612(0x127)]=null;try{this[_0x5bf612(0x145)]=!0x0,await _0x530c34[_0x5bf612(0x14a)][_0x5bf612(0x144)][_0x5bf612(0x149)]['reloadTypes'](),await _0x530c34['$ok'][_0x5bf612(0x144)][_0x5bf612(0x149)][_0x5bf612(0x13a)]();}catch(_0x29e130){this[_0x5bf612(0x127)]=_0x29e130?.[_0x5bf612(0x133)]||'Failed\x20to\x20load\x20types',console['error']('Error\x20fetching\x20types',_0x29e130);}this[_0x5bf612(0x145)]=!0x1,_0x530c34[_0x5bf612(0x13b)](_0x5bf612(0x121),this[_0x5bf612(0x12b)]);},'select'(_0xcb6a43){const _0x266d1e=_0x528f92;this['selected']=_0xcb6a43??null,_0x530c34[_0x266d1e(0x13b)](_0x266d1e(0x12e),_0xcb6a43??null);},async 'openAddModal'(){const _0x426611=_0x528f92,_0x18918c=await _0x530c34[_0x426611(0x14a)]['shared'][_0x426611(0x14d)][_0x426611(0x12d)]('Type\x20name',{'title':'Register\x20Type','placeholder':_0x426611(0x125),'confirmText':_0x426611(0x128),'validate':_0xb9defb=>!(!_0xb9defb||!_0xb9defb['trim']())||_0x426611(0x135)});if(_0x18918c)try{await _0x530c34['$ok'][_0x426611(0x144)][_0x426611(0x149)][_0x426611(0x143)](_0x18918c[_0x426611(0x14b)]());const _0x58b8ff=this[_0x426611(0x12b)][_0x426611(0x148)](_0x2c77cb=>_0x2c77cb[_0x426611(0x137)]===_0x18918c[_0x426611(0x14b)]());_0x58b8ff&&this[_0x426611(0x130)](_0x58b8ff);}catch(_0x4b5235){_0x530c34['$ok'][_0x426611(0x140)]?.[_0x426611(0x14c)]?.[_0x426611(0x13f)]?.(_0x4b5235?.[_0x426611(0x133)]||_0x426611(0x13c)),console[_0x426611(0x13f)]('registerType\x20error',_0x4b5235);}}}),'mount'(_0x2105e6){const _0x321e47=_0x528f92,_0x5a98cd=()=>this['load']();this[_0x321e47(0x146)]=[_0x2fedda['on'](_0x321e47(0x11e),_0x5a98cd),_0x2fedda['on']('type:drop',_0x5a98cd),_0x2fedda['on'](_0x321e47(0x147),_0x5a98cd),_0x2fedda['on'](_0x321e47(0x139),_0x5a98cd)],_0x2105e6[_0x321e47(0x138)](()=>_0x2105e6[_0x321e47(0x14a)][_0x321e47(0x144)][_0x321e47(0x149)][_0x321e47(0x12c)],()=>this[_0x321e47(0x124)]()),this[_0x321e47(0x124)]();},'unmount'(){const _0x530e3a=_0x528f92;for(const _0xe685b2 of this['_unsubs'])_0xe685b2();this[_0x530e3a(0x146)]=[];},'style':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20type-list\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gap:\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20type-list\x20button\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__add\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x207px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-bottom:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x206px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-app-fg-muted);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x207px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20var(--okdb-app-surface-2);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20var(--okdb-app-border);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-app-fg);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item\x20.tl-name\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex:\x201;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20monospace;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-overflow:\x20ellipsis;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item\x20.tl-count\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x20.5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-shrink:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item--selected\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20var(--okdb-app-bg-deep)\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20color-mix(in\x20srgb,\x20var(--okdb-accent)\x2027%,\x20transparent)\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-accent)\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item--selected\x20.tl-count\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x20.7;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__system-toggle\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-top:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x200.45;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20inherit;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x203px\x206px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__system-toggle:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x200.8;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__error\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x208px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-danger);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20rgba(255,60,60,.06);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x201px\x20solid\x20rgba(255,60,60,.18);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x201.4;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20word-break:\x20break-word;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__error\x20span\x20{\x20flex:\x201;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__error-retry\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-shrink:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-danger);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2014px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x20.7;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__error-retry:hover\x20{\x20opacity:\x201;\x20}\x0a\x20\x20\x20\x20','template':_0x528f92(0x123)};
|
|
1
|
+
function _0x2940(_0x193f3f,_0x5a9c2f){_0x193f3f=_0x193f3f-0x18b;const _0x26f554=_0x26f5();let _0x29408b=_0x26f554[_0x193f3f];return _0x29408b;}const _0x286863=_0x2940;function _0x26f5(){const _0xb43ae9=['136pEFgRA','toast','$dispatch','showSystem','84747CbOphK','56700hxxfJl','items','loadError','types','load','filter','type:registered','reloadTypes','registerType\x20error','trim','$watch','selectedEnv','message','loaded','\x0a\x20\x20\x20\x20\x20\x20\x20\x20type-list\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gap:\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20type-list\x20button\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__add\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x207px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-bottom:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x206px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-app-fg-muted);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x207px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20var(--okdb-app-surface-2);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20var(--okdb-app-border);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-app-fg);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item\x20.tl-name\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex:\x201;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20monospace;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-overflow:\x20ellipsis;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item\x20.tl-count\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x20.5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-shrink:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item--selected\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20var(--okdb-app-bg-deep)\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20color-mix(in\x20srgb,\x20var(--okdb-accent)\x2027%,\x20transparent)\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-accent)\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__item--selected\x20.tl-count\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x20.7;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__system-toggle\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-top:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x200.45;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20inherit;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x203px\x206px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__system-toggle:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x200.8;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-color:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__error\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x208px\x2010px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-danger);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20rgba(255,60,60,.06);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x201px\x20solid\x20rgba(255,60,60,.18);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20line-height:\x201.4;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20word-break:\x20break-word;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__error\x20span\x20{\x20flex:\x201;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__error-retry\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20flex-shrink:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20var(--okdb-danger);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2014px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20opacity:\x20.7;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.type-list__error-retry:hover\x20{\x20opacity:\x201;\x20}\x0a\x20\x20\x20\x20','error','allItems','shared','3111484YaGBsf','$ok','Type\x20name','busy','modal','index:drop','2213834CpZGMZ','find','prompt','300744FEVbCc','Register','_unsubs','Name\x20is\x20required','reloadInfo','156260FOBlAh','registerType','Failed\x20to\x20load\x20types','Register\x20Type','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22busy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-overlay>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22loader-center\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22loader\x22\x20class=\x22spin\x22\x20style=\x22width:32px;height:32px;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</ok-overlay>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22loadError\x20&&\x20!busy\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22type-list__error\x22\x20:title=\x22loadError\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22alert-circle\x22\x20style=\x22width:13px;height:13px;flex-shrink:0;opacity:.7;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>{{\x20loadError\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22type-list__error-retry\x22\x20@click=\x22load()\x22\x20title=\x22Retry\x22>↺</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22!loadError\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20Overview\x20shortcut\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22type-list__item\x20type-list__overview\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:class=\x22selected\x20==\x20null\x20?\x20\x27type-list__item--selected\x27\x20:\x20\x27\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22select(null)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style=\x22margin-bottom:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22home\x22\x20style=\x22width:13px;height:13px;opacity:.6;flex-shrink:0;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22tl-name\x22>Overview</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22height:1px;\x20background:var(--okdb-app-surface-2);\x20margin:2px\x200\x206px;\x22></div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22type-list__add\x22\x20@click=\x22openAddModal\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20+\x20Register\x20Type\x20({{\x20items.length\x20}})\x0a\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22items\x22\x20let:item=\x22t\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:class=\x22[\x27type-list__item\x27,\x20selected\x20===\x20t\x20?\x20\x27type-list__item--selected\x27\x20:\x20\x27\x27]\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22select(t)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22tl-name\x22>{{\x20t.type\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22tl-count\x22>{{\x20t.count\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22systemCount\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22type-list__system-toggle\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22showSystem\x20=\x20!showSystem\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:title=\x22showSystem\x20?\x20\x27Hide\x20system\x20types\x27\x20:\x20\x27Show\x20system\x20types\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20showSystem\x20?\x20\x27▴\x20hide\x20system\x20(\x27\x20+\x20systemCount\x20+\x20\x27)\x27\x20:\x20\x27⚙\x20system\x20(\x27\x20+\x20systemCount\x20+\x20\x27)\x27\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20','type-list','okdb','1950070sjSLMp','select','startsWith','stores','selected','16AjXQYJ','type'];_0x26f5=function(){return _0xb43ae9;};return _0x26f5();}(function(_0x4820b0,_0x77a3fd){const _0xfcbef2=_0x2940,_0x3c8824=_0x4820b0();while(!![]){try{const _0x25982e=-parseInt(_0xfcbef2(0x19a))/0x1+parseInt(_0xfcbef2(0x1a6))/0x2*(parseInt(_0xfcbef2(0x1ac))/0x3)+-parseInt(_0xfcbef2(0x18c))/0x4+parseInt(_0xfcbef2(0x1a1))/0x5+-parseInt(_0xfcbef2(0x1ad))/0x6+parseInt(_0xfcbef2(0x192))/0x7+-parseInt(_0xfcbef2(0x1a8))/0x8*(-parseInt(_0xfcbef2(0x195))/0x9);if(_0x25982e===_0x77a3fd)break;else _0x3c8824['push'](_0x3c8824['shift']());}catch(_0x40a7c5){_0x3c8824['push'](_0x3c8824['shift']());}}}(_0x26f5,0x87ed7));import _0x9b7c98 from'@toolkit/elements/ok-icon.ok.js';import _0x9ef7a6 from'@toolkit/core/ok-overlay.ok.js';import _0x47da52 from'../../../stores/events-store.js';export default{'tag':_0x286863(0x19f),'dependencies':[_0x9ef7a6,_0x9b7c98],'context':_0x3bb405=>({'busy':!0x1,'loadError':null,'showSystem':!0x1,'_unsubs':[],get 'allItems'(){const _0xfc5274=_0x286863;return _0x3bb405[_0xfc5274(0x18d)][_0xfc5274(0x1a4)][_0xfc5274(0x1a0)][_0xfc5274(0x1b0)]||[];},get 'items'(){const _0x552e66=_0x286863;return this[_0x552e66(0x1ab)]?this[_0x552e66(0x1bd)]:this[_0x552e66(0x1bd)]['filter'](_0x2081a8=>!_0x2081a8[_0x552e66(0x1a7)][_0x552e66(0x1a3)]('~'));},get 'systemCount'(){const _0x21d922=_0x286863;return this[_0x21d922(0x1bd)][_0x21d922(0x1b2)](_0x2a621b=>_0x2a621b[_0x21d922(0x1a7)][_0x21d922(0x1a3)]('~'))['length'];},'selected':null,async 'load'(){const _0x579d5e=_0x286863;this[_0x579d5e(0x1af)]=null;try{this[_0x579d5e(0x18f)]=!0x0,await _0x3bb405['$ok'][_0x579d5e(0x1a4)][_0x579d5e(0x1a0)][_0x579d5e(0x1b4)](),await _0x3bb405[_0x579d5e(0x18d)][_0x579d5e(0x1a4)][_0x579d5e(0x1a0)][_0x579d5e(0x199)]();}catch(_0x586042){this[_0x579d5e(0x1af)]=_0x586042?.[_0x579d5e(0x1b9)]||_0x579d5e(0x19c),console['error']('Error\x20fetching\x20types',_0x586042);}this['busy']=!0x1,_0x3bb405[_0x579d5e(0x1aa)](_0x579d5e(0x1ba),this[_0x579d5e(0x1ae)]);},'select'(_0x3fdfe3){const _0x280845=_0x286863;this[_0x280845(0x1a5)]=_0x3fdfe3??null,_0x3bb405['$dispatch'](_0x280845(0x1a5),_0x3fdfe3??null);},async 'openAddModal'(){const _0x2c5b80=_0x286863,_0x2d3875=await _0x3bb405[_0x2c5b80(0x18d)][_0x2c5b80(0x18b)][_0x2c5b80(0x190)][_0x2c5b80(0x194)](_0x2c5b80(0x18e),{'title':_0x2c5b80(0x19d),'placeholder':'e.g.\x20user,\x20product,\x20event','confirmText':_0x2c5b80(0x196),'validate':_0x461fa3=>!(!_0x461fa3||!_0x461fa3[_0x2c5b80(0x1b6)]())||_0x2c5b80(0x198)});if(_0x2d3875)try{await _0x3bb405['$ok'][_0x2c5b80(0x1a4)][_0x2c5b80(0x1a0)][_0x2c5b80(0x19b)](_0x2d3875['trim']());const _0x4d7c9d=this['items'][_0x2c5b80(0x193)](_0x102013=>_0x102013['type']===_0x2d3875['trim']());_0x4d7c9d&&this[_0x2c5b80(0x1a2)](_0x4d7c9d);}catch(_0x339a68){_0x3bb405[_0x2c5b80(0x18d)][_0x2c5b80(0x18b)]?.[_0x2c5b80(0x1a9)]?.[_0x2c5b80(0x1bc)]?.(_0x339a68?.['message']||'Failed\x20to\x20register\x20type'),console[_0x2c5b80(0x1bc)](_0x2c5b80(0x1b5),_0x339a68);}}}),'mount'(_0x394cf6){const _0x5bc74a=_0x286863,_0xd4e280=()=>this[_0x5bc74a(0x1b1)]();this[_0x5bc74a(0x197)]=[_0x47da52['on'](_0x5bc74a(0x1b3),_0xd4e280),_0x47da52['on']('type:drop',_0xd4e280),_0x47da52['on']('index:registered',_0xd4e280),_0x47da52['on'](_0x5bc74a(0x191),_0xd4e280)],_0x394cf6[_0x5bc74a(0x1b7)](()=>_0x394cf6[_0x5bc74a(0x18d)]['stores']['okdb'][_0x5bc74a(0x1b8)],()=>this['load']()),this[_0x5bc74a(0x1b1)]();},'unmount'(){const _0x3360b8=_0x286863;for(const _0x42499b of this[_0x3360b8(0x197)])_0x42499b();this[_0x3360b8(0x197)]=[];},'style':_0x286863(0x1bb),'template':_0x286863(0x19e)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x473e2f=_0x2df3;function _0x2df3(_0x1923b4,_0x11c79b){_0x1923b4=_0x1923b4-0xc5;const _0x1a6f37=_0x1a6f();let _0x2df322=_0x1a6f37[_0x1923b4];return _0x2df322;}(function(_0x30b67c,_0x11e375){const _0x43c60d=_0x2df3,_0x32374f=_0x30b67c();while(!![]){try{const _0x1b1f41=parseInt(_0x43c60d(0x101))/0x1+parseInt(_0x43c60d(0xcb))/0x2*(parseInt(_0x43c60d(0x10a))/0x3)+parseInt(_0x43c60d(0xfa))/0x4+parseInt(_0x43c60d(0xea))/0x5+-parseInt(_0x43c60d(0xe3))/0x6+parseInt(_0x43c60d(0x107))/0x7+-parseInt(_0x43c60d(0xd5))/0x8;if(_0x1b1f41===_0x11e375)break;else _0x32374f['push'](_0x32374f['shift']());}catch(_0x645528){_0x32374f['push'](_0x32374f['shift']());}}}(_0x1a6f,0xdcb0f));function _0x1a6f(){const _0x51e86b=['load','mode','34389zkqidi','error','engine:uninstalled','Failed\x20to\x20load\x20env\x20pipelines','trim','$router','/pipelines','$watch','running','Failed\x20to\x20load\x20embedders','stopped','embedPipelines','embedEngines','274oPghOo','/embeddings/embedders','type','_unsubs','then','sourceType','currentmode','normalizeStatus','open','all','11249968SkOHNt','API','$vars','data','rejected','busy','_search','resolve','/env/','embeddings:pipeline:ready','pipeline:stop','value','$ok','fulfilled','10405122lapvMM','type-pipelines-tab','json','env','stores','Create\x20Pipeline\x20·\x20','_anchor','4736610vnXbQs','engineType','catch','includes','modal','okdb','/engines','engine:started','/db','envName','pipeline','message','search','length','push','focusedPipelineName','1876544cjhEWB','pipelines','Failed\x20to\x20load\x20env\x20engines','name','engines','default','replace','430818EbdKgv','$attr','focusedpipeline','updateFocusedPipeline','status','selectedEnv','4386739tngeUh'];_0x1a6f=function(){return _0x51e86b;};return _0x1a6f();}import _0x442dec from'../../embeddings/parts/engines-overview.ok.js';import _0x146d95 from'../modals/create-pipeline-modal.ok.js';import _0x5fa5f2 from'../../../stores/events-store.js';export default{'tag':_0x473e2f(0xe4),'dependencies':[_0x442dec,_0x146d95],'attr':{'type':{},'focusedpipeline':{},'currentmode':{}},'context':_0x464af9=>({'busy':!0x1,'error':null,'embedEngines':[],'embedPipelines':[],'search':'','status':'all','engineType':'','emptyFileEngines':{'extractors':[],'collections':[],'workers':[]},'_unsubs':[],get 'sourceType'(){const _0x47cc89=_0x473e2f;return _0x464af9[_0x47cc89(0x102)][_0x47cc89(0xcd)]||'';},get 'envName'(){const _0x3d84b4=_0x473e2f;return _0x464af9['$ok'][_0x3d84b4(0xe7)][_0x3d84b4(0xef)][_0x3d84b4(0x106)]||_0x3d84b4(0xff);},get 'mode'(){const _0x526b44=_0x473e2f;return _0x526b44(0xfb)===_0x464af9['$attr'][_0x526b44(0xd1)]?_0x526b44(0xfb):_0x526b44(0xfe);},get 'focusedPipelineName'(){const _0x3b3224=_0x473e2f;return String(_0x464af9[_0x3b3224(0x102)][_0x3b3224(0x103)]||'')[_0x3b3224(0x10e)]();},'normalizeStatus':_0x13bc8c=>[_0x473e2f(0xd4),_0x473e2f(0xc6),'attention',_0x473e2f(0xc8)][_0x473e2f(0xed)](_0x13bc8c)?_0x13bc8c:'all',get 'availableEngineTypes'(){const _0xce0380=_0x473e2f,_0x3e548f=new Set();for(const _0x202e73 of this['embedEngines']??[])_0x202e73?.[_0xce0380(0xcd)]&&_0x3e548f['add'](_0x202e73[_0xce0380(0xcd)]);return[..._0x3e548f]['sort']();},get 'hasWorkspaceData'(){const _0x5cbccf=_0x473e2f;return(this[_0x5cbccf(0xca)]?.[_0x5cbccf(0xf7)]??0x0)>0x0||(this[_0x5cbccf(0xc9)]?.[_0x5cbccf(0xf7)]??0x0)>0x0;},async 'load'(){const _0x48f516=_0x473e2f;if(!this[_0x48f516(0xd0)])return this['embedEngines']=[],this[_0x48f516(0xc9)]=[],this[_0x48f516(0x10b)]=null,void(this[_0x48f516(0xda)]=!0x1);this[_0x48f516(0xda)]=!0x0,this['error']=null;try{const [_0x3cbdc7,_0x56bb11,_0x1da054]=await Promise['allSettled']([fetch(__ENV__[_0x48f516(0xd6)]+_0x48f516(0xdd)+encodeURIComponent(this[_0x48f516(0xf3)])+_0x48f516(0xf0))['then'](async _0x5321ef=>{const _0x1376b6=_0x48f516,_0x3cca2f=await _0x5321ef[_0x1376b6(0xe5)]()[_0x1376b6(0xec)](()=>({}));if(!_0x5321ef['ok'])throw new Error(_0x3cca2f?.[_0x1376b6(0x10b)]?.[_0x1376b6(0xf5)]||_0x1376b6(0xfc));return _0x3cca2f;}),fetch(__ENV__['API']+_0x48f516(0xcc))['then'](async _0x3a96ac=>{const _0x5b74b1=_0x48f516,_0x438d09=await _0x3a96ac[_0x5b74b1(0xe5)]()[_0x5b74b1(0xec)](()=>({}));if(!_0x3a96ac['ok'])throw new Error(_0x438d09?.[_0x5b74b1(0x10b)]?.['message']||_0x5b74b1(0xc7));return _0x438d09;}),fetch(__ENV__['API']+_0x48f516(0xdd)+encodeURIComponent(this[_0x48f516(0xf3)])+_0x48f516(0x110))[_0x48f516(0xcf)](async _0x4ad253=>{const _0x2fa3fc=_0x48f516,_0x4c2454=await _0x4ad253['json']()['catch'](()=>({}));if(!_0x4ad253['ok'])throw new Error(_0x4c2454?.[_0x2fa3fc(0x10b)]?.[_0x2fa3fc(0xf5)]||_0x2fa3fc(0x10d));return _0x4c2454;})]);if(_0x48f516(0xd9)===_0x3cbdc7[_0x48f516(0x105)])throw _0x3cbdc7['reason'];if(_0x48f516(0xd9)===_0x1da054[_0x48f516(0x105)])throw _0x1da054['reason'];const _0x15d43a=_0x3cbdc7['value']?.[_0x48f516(0xd8)]??[],_0x4f4181=_0x48f516(0xe2)===_0x56bb11[_0x48f516(0x105)]?_0x56bb11[_0x48f516(0xe0)]?.['data']??[]:[],_0x561fdc=_0x1da054['value']?.[_0x48f516(0xd8)]??[];this['embedPipelines']=_0x561fdc,this[_0x48f516(0xca)]=[..._0x15d43a,..._0x4f4181];}catch(_0x2254f2){this[_0x48f516(0x10b)]=_0x2254f2?.['message']||String(_0x2254f2),this[_0x48f516(0xc9)]=[],this[_0x48f516(0xca)]=[];}finally{this[_0x48f516(0xda)]=!0x1;}},'setSearchTerm'(_0x515705){const _0x197262=_0x473e2f;this[_0x197262(0xf6)]=String(_0x515705??'');},'setStatusFilter'(_0x255e77){const _0x3128eb=_0x473e2f;this[_0x3128eb(0x105)]=this[_0x3128eb(0xd2)](_0x255e77);},'setEngineTypeFilter'(_0x27fc49){const _0x342ba5=_0x473e2f;this[_0x342ba5(0xeb)]=String(_0x27fc49??'')[_0x342ba5(0x10e)]();},'setMode'(_0x4f8ca6){const _0x260c31=_0x473e2f,_0x155800=_0x464af9[_0x260c31(0xd7)]?.['$router'];if(!_0x155800?.['resolve']||!_0x155800?.[_0x260c31(0x100)])return;const _0x4552af={..._0x155800['_search']||{},'env':this[_0x260c31(0xf3)],'type':this[_0x260c31(0xd0)],'tab':_0x260c31(0xfe),'mode':'pipelines'===_0x4f8ca6?_0x260c31(0xfb):'engines'};this[_0x260c31(0xf9)]?_0x4552af[_0x260c31(0xf4)]=this[_0x260c31(0xf9)]:delete _0x4552af[_0x260c31(0xf4)],_0x155800[_0x260c31(0x100)](_0x155800[_0x260c31(0xdc)](_0x260c31(0xf2),_0x4552af,_0x155800['_anchor']||''));},'clearFilters'(){const _0x4d0ed9=_0x473e2f;this[_0x4d0ed9(0xf6)]='',this[_0x4d0ed9(0x105)]=_0x4d0ed9(0xd4),this['engineType']='';},'updateFocusedPipeline'(_0x49cec9=''){const _0x15baa4=_0x473e2f,_0xe08e50=_0x464af9[_0x15baa4(0xd7)]?.[_0x15baa4(0x10f)];if(!_0xe08e50?.[_0x15baa4(0xdc)]||!_0xe08e50?.['replace'])return;const _0x51db55={..._0xe08e50[_0x15baa4(0xdb)]||{},'env':this[_0x15baa4(0xf3)],'type':this[_0x15baa4(0xd0)],'tab':'engines','mode':this['mode']},_0x3b75b5=String(_0x49cec9||'')[_0x15baa4(0x10e)]();_0x3b75b5?_0x51db55[_0x15baa4(0xf4)]=_0x3b75b5:delete _0x51db55[_0x15baa4(0xf4)],_0xe08e50[_0x15baa4(0x100)](_0xe08e50[_0x15baa4(0xdc)]('/db',_0x51db55,_0xe08e50[_0x15baa4(0xe9)]||''));},'handleOverviewSelect'(_0x31b0fa=null){const _0x1df47c=_0x473e2f;this[_0x1df47c(0x104)](_0x31b0fa?.[_0x1df47c(0xfd)]||'');},'goToType'(_0x1f9cc6=null){const _0x25ad87=_0x473e2f,_0x2c9949=_0x1f9cc6?.[_0x25ad87(0xcd)];if(!_0x2c9949)return;const _0x35890b=_0x1f9cc6?.[_0x25ad87(0xe6)]||this[_0x25ad87(0xf3)],_0x57c7d8=_0x464af9[_0x25ad87(0xd7)]?.[_0x25ad87(0x10f)];_0x57c7d8?.[_0x25ad87(0xdc)]&&_0x57c7d8?.[_0x25ad87(0xf8)]&&_0x57c7d8['push'](_0x57c7d8['resolve'](_0x25ad87(0xf2),{'env':_0x35890b,'type':_0x2c9949,'tab':'engines','mode':_0x25ad87(0xfb)}));},'openGlobalWorkspace'(){const _0x3315d8=_0x473e2f,_0x3c2794=_0x464af9[_0x3315d8(0xd7)]?.['$router'];if(!_0x3c2794?.[_0x3315d8(0xdc)]||!_0x3c2794?.[_0x3315d8(0xf8)])return;const _0x2c2036={'env':this[_0x3315d8(0xf3)],'sourceType':this[_0x3315d8(0xd0)],'mode':this['mode']};_0x3315d8(0xfe)===this[_0x3315d8(0x109)]&&this[_0x3315d8(0xeb)]&&(_0x2c2036[_0x3315d8(0xeb)]=this[_0x3315d8(0xeb)]),this['focusedPipelineName']&&(_0x2c2036[_0x3315d8(0xf4)]=this['focusedPipelineName']),_0x3315d8(0xd4)!==this[_0x3315d8(0x105)]&&(_0x2c2036['status']=this[_0x3315d8(0x105)]),this[_0x3315d8(0xf6)][_0x3315d8(0x10e)]()&&(_0x2c2036['search']=this['search'][_0x3315d8(0x10e)]()),_0x3c2794[_0x3315d8(0xf8)](_0x3c2794[_0x3315d8(0xdc)](_0x3315d8(0xf0),_0x2c2036));},async 'openCreatePipeline'(){const _0x42e4ec=_0x473e2f;this[_0x42e4ec(0xd0)]&&await _0x464af9[_0x42e4ec(0xe1)]['shared'][_0x42e4ec(0xee)][_0x42e4ec(0xd3)]({'owner':_0x464af9,'title':_0x42e4ec(0xe8)+this[_0x42e4ec(0xd0)],'canDrag':!0x0,'content':'<create-pipeline-modal\x20:modal=\x22modal\x22\x20:type=\x22type\x22\x20:env=\x22envName\x22\x20:on-done=\x22onDone\x22\x20/>','context':_0x2e6961=>({'modal':_0x2e6961,'type':this['sourceType'],'envName':this[_0x42e4ec(0xf3)],'onDone':async()=>{const _0x35ec85=_0x42e4ec;await this[_0x35ec85(0x108)]();}})});}}),async 'init'(_0x4ba9f0){const _0x3a0691=_0x473e2f;_0x4ba9f0[_0x3a0691(0xc5)](()=>_0x4ba9f0[_0x3a0691(0x102)]['type'],()=>this[_0x3a0691(0x108)]()),_0x4ba9f0[_0x3a0691(0xc5)](()=>_0x4ba9f0[_0x3a0691(0xe1)][_0x3a0691(0xe7)]['okdb'][_0x3a0691(0x106)],()=>this[_0x3a0691(0x108)]()),await this[_0x3a0691(0x108)]();const _0x33e690=()=>this[_0x3a0691(0x108)]();this[_0x3a0691(0xce)]=[_0x5fa5f2['on'](_0x3a0691(0xf1),_0x33e690),_0x5fa5f2['on']('engine:stopped',_0x33e690),_0x5fa5f2['on']('engine:error',_0x33e690),_0x5fa5f2['on']('engine:installed',_0x33e690),_0x5fa5f2['on'](_0x3a0691(0x10c),_0x33e690),_0x5fa5f2['on'](_0x3a0691(0xde),_0x33e690),_0x5fa5f2['on']('pipeline:start',_0x33e690),_0x5fa5f2['on'](_0x3a0691(0xdf),_0x33e690),_0x5fa5f2['on']('pipeline:delete',_0x33e690)];},'unmount'(){const _0x41a54a=_0x473e2f;for(const _0x3e65d1 of this[_0x41a54a(0xce)])_0x3e65d1();this['_unsubs']=[];},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:12px;\x20flex:1;\x20min-height:0;\x20overflow:auto;\x20padding-right:4px;\x22>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-weight:600;\x20font-size:15px;\x22>Engines</div>\x0a\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20color:#cbd5e1;\x20background:var(--okdb-app-bg-deep);\x22>type:\x20{{\x20sourceType\x20}}</span>\x0a\x20\x20\x20\x20<if\x20:=\x22focusedPipelineName\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-indigo)\x2027%,\x20transparent);\x20color:var(--okdb-indigo);\x20background:color-mix(in\x20srgb,\x20var(--okdb-indigo)\x207%,\x20transparent);\x22>pipeline:\x20{{\x20focusedPipelineName\x20}}</span>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<div\x20style=\x22margin-left:auto;\x20display:flex;\x20gap:6px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22load()\x22\x20:disabled=\x22busy\x22\x20style=\x22font-size:11px;\x20padding:3px\x2010px;\x22>↻</button>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openGlobalWorkspace()\x22\x20style=\x22font-size:11px;\x20padding:3px\x2010px;\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2027%,\x20transparent);\x20color:var(--okdb-accent);\x22>Open\x20Global\x20→</button>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openCreatePipeline()\x22\x20style=\x22background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2013%,\x20transparent);\x20border-color:var(--okdb-accent);\x20color:var(--okdb-accent);\x20font-weight:600;\x20padding:5px\x2014px;\x20font-size:12px;\x22>+\x20Create\x20Pipeline</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:8px;\x20align-items:end;\x20flex-wrap:wrap;\x20padding:10px\x2012px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:10px;\x20background:var(--okdb-app-bg-deep);\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:170px;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>View</span>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20gap:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22setMode(\x27pipelines\x27)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22mode\x20===\x20\x27pipelines\x27\x20?\x20\x27flex:1;\x20font-size:11px;\x20padding:5px\x2010px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-indigo);\x20color:var(--okdb-indigo);\x20background:color-mix(in\x20srgb,\x20var(--okdb-indigo)\x207%,\x20transparent);\x20cursor:pointer;\x27\x20:\x20\x27flex:1;\x20font-size:11px;\x20padding:5px\x2010px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20color:var(--okdb-app-fg-muted);\x20background:var(--okdb-app-bg-deep);\x20cursor:pointer;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20>Pipelines</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22setMode(\x27engines\x27)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22mode\x20===\x20\x27engines\x27\x20?\x20\x27flex:1;\x20font-size:11px;\x20padding:5px\x2010px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-purple);\x20color:var(--okdb-purple);\x20background:color-mix(in\x20srgb,\x20var(--okdb-purple)\x207%,\x20transparent);\x20cursor:pointer;\x27\x20:\x20\x27flex:1;\x20font-size:11px;\x20padding:5px\x2010px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20color:var(--okdb-app-fg-muted);\x20background:var(--okdb-app-bg-deep);\x20cursor:pointer;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20>Engines</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:200px;\x20flex:1;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>Search</span>\x0a\x20\x20\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20\x20\x20:value=\x22search\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@input:debounce.200=\x22setSearchTerm($event.target.value)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:placeholder=\x22mode\x20===\x20\x27engines\x27\x20?\x20\x27Search\x20engines…\x27\x20:\x20\x27Search\x20pipelines…\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20style=\x22width:100%;\x20box-sizing:border-box;\x22\x0a\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20</label>\x0a\x0a\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:150px;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>Status</span>\x0a\x20\x20\x20\x20\x20\x20<select\x20@change=\x22setStatusFilter($event.target.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22all\x22\x20:selected=\x22status\x20===\x20\x27all\x27\x22>Any</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22running\x22\x20:selected=\x22status\x20===\x20\x27running\x27\x22>Running</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22attention\x22\x20:selected=\x22status\x20===\x20\x27attention\x27\x22>Needs\x20attention</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22stopped\x22\x20:selected=\x22status\x20===\x20\x27stopped\x27\x22>Stopped</option>\x0a\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20</label>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22mode\x20===\x20\x27engines\x27\x20&&\x20availableEngineTypes.length\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:170px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>Engine\x20Type</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<select\x20@change=\x22setEngineTypeFilter($event.target.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22\x22\x20:selected=\x22!engineType\x22>All\x20engines</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22availableEngineTypes\x22\x20let:item=\x22engineKind\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20:value=\x22engineKind\x22\x20:selected=\x22engineType\x20===\x20engineKind\x22>{{\x20engineKind\x20}}</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20</label>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22embedPipelines.length\x20>\x201\x22>\x0a\x20\x20\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:190px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>Pipeline</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<select\x20@change=\x22updateFocusedPipeline($event.target.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22\x22\x20:selected=\x22!focusedPipelineName\x22>All\x20pipelines</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22embedPipelines\x22\x20let:item=\x22pipeline\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20:value=\x22pipeline.name\x20||\x20pipeline.pipeline\x20||\x20pipeline.storage_key\x22\x20:selected=\x22focusedPipelineName\x20===\x20(pipeline.name\x20||\x20pipeline.pipeline\x20||\x20pipeline.storage_key)\x22>{{\x20pipeline.meta?.label\x20||\x20pipeline.meta?.pipeline\x20||\x20pipeline.pipeline\x20||\x20pipeline.name\x20||\x20pipeline.storage_key\x20}}</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20</label>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22focusedPipelineName\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22updateFocusedPipeline(\x27\x27)\x22\x20style=\x22font-size:11px;\x20padding:4px\x2010px;\x22>Clear\x20focus</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<if\x20:=\x22search\x20||\x20status\x20!==\x20\x27all\x27\x20||\x20engineType\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clearFilters()\x22\x20style=\x22font-size:11px;\x20padding:4px\x2010px;\x22>Clear\x20filters</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<if\x20:=\x22error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22color:var(--okdb-danger);\x20font-size:12px;\x20padding:8px;\x20border:1px\x20solid\x20var(--okdb-danger);\x20border-radius:6px;\x22>{{\x20error\x20}}</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22!busy\x20&&\x20!hasWorkspaceData\x20&&\x20!error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22padding:22px\x2020px;\x20background:#111a1f;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:10px;\x20display:flex;\x20flex-direction:column;\x20gap:8px;\x20align-items:center;\x20text-align:center;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:30px;\x20opacity:.22;\x22>⊛</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:14px;\x20font-weight:600;\x20opacity:.75;\x22>No\x20engines\x20for\x20{{\x20sourceType\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:12px;\x20opacity:.5;\x20line-height:1.7;\x20max-width:500px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20This\x20is\x20the\x20same\x20engines\x20workspace,\x20already\x20scoped\x20to\x20this\x20type.\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openCreatePipeline()\x22\x20style=\x22background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2013%,\x20transparent);\x20border-color:var(--okdb-accent);\x20color:var(--okdb-accent);\x20font-weight:600;\x20padding:6px\x2014px;\x20font-size:12px;\x22>+\x20Create\x20Pipeline</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22busy\x20&&\x20!hasWorkspaceData\x20&&\x20!error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:12px;\x20opacity:.45;\x20padding:8px\x200;\x22>Loading…</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22hasWorkspaceData\x22>\x0a\x20\x20\x20\x20<engines-overview\x0a\x20\x20\x20\x20\x20\x20embedded=\x22true\x22\x0a\x20\x20\x20\x20\x20\x20filterpipeline=\x22true\x22\x0a\x20\x20\x20\x20\x20\x20:embed-engines=\x22embedEngines\x22\x0a\x20\x20\x20\x20\x20\x20:embed-pipelines=\x22embedPipelines\x22\x0a\x20\x20\x20\x20\x20\x20:file-engines=\x22emptyFileEngines\x22\x0a\x20\x20\x20\x20\x20\x20:mode=\x22mode\x22\x0a\x20\x20\x20\x20\x20\x20pipelinetype=\x22all\x22\x0a\x20\x20\x20\x20\x20\x20:enginetype=\x22engineType\x22\x0a\x20\x20\x20\x20\x20\x20:status=\x22status\x22\x0a\x20\x20\x20\x20\x20\x20:search=\x22search\x22\x0a\x20\x20\x20\x20\x20\x20:sourcetype=\x22sourceType\x22\x0a\x20\x20\x20\x20\x20\x20:selectedpipeline=\x22focusedPipelineName\x22\x0a\x20\x20\x20\x20\x20\x20@select=\x22handleOverviewSelect($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20@refresh=\x22load()\x22\x0a\x20\x20\x20\x20\x20\x20@goto-type=\x22goToType($event.detail)\x22\x0a\x20\x20\x20\x20/>\x0a\x20\x20</if>\x0a\x0a</div>'};
|
|
1
|
+
const _0x310b36=_0x3a75;function _0x5ac5(){const _0x20ec38=['attention','sort','engine:installed','search','12DHmtyp','sourceType','open','value','busy','embeddings:pipeline:ready','fulfilled','message','226242IumXmR','$router','load','running','pipeline:start','envName','$attr','focusedpipeline','add','type','_anchor','then','push','2XBKyOg','\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:12px;\x20flex:1;\x20min-height:0;\x20overflow:auto;\x20padding-right:4px;\x22>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-weight:600;\x20font-size:15px;\x22>Engines</div>\x0a\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20color:#cbd5e1;\x20background:var(--okdb-app-bg-deep);\x22>type:\x20{{\x20sourceType\x20}}</span>\x0a\x20\x20\x20\x20<if\x20:=\x22focusedPipelineName\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20padding:2px\x208px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-indigo)\x2027%,\x20transparent);\x20color:var(--okdb-indigo);\x20background:color-mix(in\x20srgb,\x20var(--okdb-indigo)\x207%,\x20transparent);\x22>pipeline:\x20{{\x20focusedPipelineName\x20}}</span>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<div\x20style=\x22margin-left:auto;\x20display:flex;\x20gap:6px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22load()\x22\x20:disabled=\x22busy\x22\x20style=\x22font-size:11px;\x20padding:3px\x2010px;\x22>↻</button>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openGlobalWorkspace()\x22\x20style=\x22font-size:11px;\x20padding:3px\x2010px;\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2027%,\x20transparent);\x20color:var(--okdb-accent);\x22>Open\x20Global\x20→</button>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openCreatePipeline()\x22\x20style=\x22background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2013%,\x20transparent);\x20border-color:var(--okdb-accent);\x20color:var(--okdb-accent);\x20font-weight:600;\x20padding:5px\x2014px;\x20font-size:12px;\x22>+\x20Create\x20Pipeline</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:8px;\x20align-items:end;\x20flex-wrap:wrap;\x20padding:10px\x2012px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:10px;\x20background:var(--okdb-app-bg-deep);\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:170px;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>View</span>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20gap:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22setMode(\x27pipelines\x27)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22mode\x20===\x20\x27pipelines\x27\x20?\x20\x27flex:1;\x20font-size:11px;\x20padding:5px\x2010px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-indigo);\x20color:var(--okdb-indigo);\x20background:color-mix(in\x20srgb,\x20var(--okdb-indigo)\x207%,\x20transparent);\x20cursor:pointer;\x27\x20:\x20\x27flex:1;\x20font-size:11px;\x20padding:5px\x2010px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20color:var(--okdb-app-fg-muted);\x20background:var(--okdb-app-bg-deep);\x20cursor:pointer;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20>Pipelines</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22setMode(\x27engines\x27)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:style=\x22mode\x20===\x20\x27engines\x27\x20?\x20\x27flex:1;\x20font-size:11px;\x20padding:5px\x2010px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-purple);\x20color:var(--okdb-purple);\x20background:color-mix(in\x20srgb,\x20var(--okdb-purple)\x207%,\x20transparent);\x20cursor:pointer;\x27\x20:\x20\x27flex:1;\x20font-size:11px;\x20padding:5px\x2010px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20color:var(--okdb-app-fg-muted);\x20background:var(--okdb-app-bg-deep);\x20cursor:pointer;\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20>Engines</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:200px;\x20flex:1;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>Search</span>\x0a\x20\x20\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20\x20\x20:value=\x22search\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20@input:debounce.200=\x22setSearchTerm($event.target.value)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:placeholder=\x22mode\x20===\x20\x27engines\x27\x20?\x20\x27Search\x20engines…\x27\x20:\x20\x27Search\x20pipelines…\x27\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20style=\x22width:100%;\x20box-sizing:border-box;\x22\x0a\x20\x20\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20</label>\x0a\x0a\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:150px;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>Status</span>\x0a\x20\x20\x20\x20\x20\x20<select\x20@change=\x22setStatusFilter($event.target.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22all\x22\x20:selected=\x22status\x20===\x20\x27all\x27\x22>Any</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22running\x22\x20:selected=\x22status\x20===\x20\x27running\x27\x22>Running</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22attention\x22\x20:selected=\x22status\x20===\x20\x27attention\x27\x22>Needs\x20attention</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22stopped\x22\x20:selected=\x22status\x20===\x20\x27stopped\x27\x22>Stopped</option>\x0a\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20</label>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22mode\x20===\x20\x27engines\x27\x20&&\x20availableEngineTypes.length\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:170px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>Engine\x20Type</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<select\x20@change=\x22setEngineTypeFilter($event.target.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22\x22\x20:selected=\x22!engineType\x22>All\x20engines</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22availableEngineTypes\x22\x20let:item=\x22engineKind\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20:value=\x22engineKind\x22\x20:selected=\x22engineType\x20===\x20engineKind\x22>{{\x20engineKind\x20}}</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20</label>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22embedPipelines.length\x20>\x201\x22>\x0a\x20\x20\x20\x20\x20\x20<label\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:4px;\x20min-width:190px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-app-fg-muted);\x22>Pipeline</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<select\x20@change=\x22updateFocusedPipeline($event.target.value)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22\x22\x20:selected=\x22!focusedPipelineName\x22>All\x20pipelines</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<each\x20:of=\x22embedPipelines\x22\x20let:item=\x22pipeline\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20:value=\x22pipeline.name\x20||\x20pipeline.pipeline\x20||\x20pipeline.storage_key\x22\x20:selected=\x22focusedPipelineName\x20===\x20(pipeline.name\x20||\x20pipeline.pipeline\x20||\x20pipeline.storage_key)\x22>{{\x20pipeline.meta?.label\x20||\x20pipeline.meta?.pipeline\x20||\x20pipeline.pipeline\x20||\x20pipeline.name\x20||\x20pipeline.storage_key\x20}}</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</each>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20</label>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22focusedPipelineName\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22updateFocusedPipeline(\x27\x27)\x22\x20style=\x22font-size:11px;\x20padding:4px\x2010px;\x22>Clear\x20focus</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20<if\x20:=\x22search\x20||\x20status\x20!==\x20\x27all\x27\x20||\x20engineType\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clearFilters()\x22\x20style=\x22font-size:11px;\x20padding:4px\x2010px;\x22>Clear\x20filters</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<if\x20:=\x22error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22color:var(--okdb-danger);\x20font-size:12px;\x20padding:8px;\x20border:1px\x20solid\x20var(--okdb-danger);\x20border-radius:6px;\x22>{{\x20error\x20}}</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22!busy\x20&&\x20!hasWorkspaceData\x20&&\x20!error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22padding:22px\x2020px;\x20background:#111a1f;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20border-radius:10px;\x20display:flex;\x20flex-direction:column;\x20gap:8px;\x20align-items:center;\x20text-align:center;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:30px;\x20opacity:.22;\x22>⊛</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:14px;\x20font-weight:600;\x20opacity:.75;\x22>No\x20engines\x20for\x20{{\x20sourceType\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:12px;\x20opacity:.5;\x20line-height:1.7;\x20max-width:500px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20This\x20is\x20the\x20same\x20engines\x20workspace,\x20already\x20scoped\x20to\x20this\x20type.\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openCreatePipeline()\x22\x20style=\x22background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2013%,\x20transparent);\x20border-color:var(--okdb-accent);\x20color:var(--okdb-accent);\x20font-weight:600;\x20padding:6px\x2014px;\x20font-size:12px;\x22>+\x20Create\x20Pipeline</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22busy\x20&&\x20!hasWorkspaceData\x20&&\x20!error\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:12px;\x20opacity:.45;\x20padding:8px\x200;\x22>Loading…</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<if\x20:=\x22hasWorkspaceData\x22>\x0a\x20\x20\x20\x20<engines-overview\x0a\x20\x20\x20\x20\x20\x20embedded=\x22true\x22\x0a\x20\x20\x20\x20\x20\x20filterpipeline=\x22true\x22\x0a\x20\x20\x20\x20\x20\x20:embed-engines=\x22embedEngines\x22\x0a\x20\x20\x20\x20\x20\x20:embed-pipelines=\x22embedPipelines\x22\x0a\x20\x20\x20\x20\x20\x20:file-engines=\x22emptyFileEngines\x22\x0a\x20\x20\x20\x20\x20\x20:mode=\x22mode\x22\x0a\x20\x20\x20\x20\x20\x20pipelinetype=\x22all\x22\x0a\x20\x20\x20\x20\x20\x20:enginetype=\x22engineType\x22\x0a\x20\x20\x20\x20\x20\x20:status=\x22status\x22\x0a\x20\x20\x20\x20\x20\x20:search=\x22search\x22\x0a\x20\x20\x20\x20\x20\x20:sourcetype=\x22sourceType\x22\x0a\x20\x20\x20\x20\x20\x20:selectedpipeline=\x22focusedPipelineName\x22\x0a\x20\x20\x20\x20\x20\x20@select=\x22handleOverviewSelect($event.detail)\x22\x0a\x20\x20\x20\x20\x20\x20@refresh=\x22load()\x22\x0a\x20\x20\x20\x20\x20\x20@goto-type=\x22goToType($event.detail)\x22\x0a\x20\x20\x20\x20/>\x0a\x20\x20</if>\x0a\x0a</div>','updateFocusedPipeline','pipeline','modal','catch','7158800vnHqXj','allSettled','892456oVrkst','/engines','$ok','focusedPipelineName','reason','272041pJYGRK','data','engine:stopped','shared','628668kTATWp','resolve','engineType','json','_search','env','embedEngines','okdb','_unsubs','trim','rejected','pipelines','all','embedPipelines','selectedEnv','stores','mode','9LeAVsY','pipeline:delete','length','$watch','<create-pipeline-modal\x20:modal=\x22modal\x22\x20:type=\x22type\x22\x20:env=\x22envName\x22\x20:on-done=\x22onDone\x22\x20/>','includes','engines','error','16948pCcLAb','replace','/db','name','stopped','Failed\x20to\x20load\x20env\x20pipelines','API','$vars','status','type-pipelines-tab','1402475EdoiDs','default'];_0x5ac5=function(){return _0x20ec38;};return _0x5ac5();}(function(_0x440c6f,_0xec5dc0){const _0x7b879a=_0x3a75,_0xcd7d3a=_0x440c6f();while(!![]){try{const _0x4505f3=parseInt(_0x7b879a(0x108))/0x1*(-parseInt(_0x7b879a(0xfb))/0x2)+parseInt(_0x7b879a(0xf3))/0x3*(-parseInt(_0x7b879a(0xe3))/0x4)+-parseInt(_0x7b879a(0xed))/0x5+-parseInt(_0x7b879a(0xca))/0x6+-parseInt(_0x7b879a(0xc6))/0x7+-parseInt(_0x7b879a(0xc1))/0x8*(-parseInt(_0x7b879a(0xdb))/0x9)+parseInt(_0x7b879a(0xbf))/0xa;if(_0x4505f3===_0xec5dc0)break;else _0xcd7d3a['push'](_0xcd7d3a['shift']());}catch(_0x207578){_0xcd7d3a['push'](_0xcd7d3a['shift']());}}}(_0x5ac5,0x2716f));import _0x1ee30f from'../../embeddings/parts/engines-overview.ok.js';import _0x1323f2 from'../modals/create-pipeline-modal.ok.js';function _0x3a75(_0x1525e4,_0x31e059){_0x1525e4=_0x1525e4-0xbb;const _0x5ac520=_0x5ac5();let _0x3a7581=_0x5ac520[_0x1525e4];return _0x3a7581;}import _0x24de04 from'../../../stores/events-store.js';export default{'tag':_0x310b36(0xec),'dependencies':[_0x1ee30f,_0x1323f2],'attr':{'type':{},'focusedpipeline':{},'currentmode':{}},'context':_0x141453=>({'busy':!0x1,'error':null,'embedEngines':[],'embedPipelines':[],'search':'','status':_0x310b36(0xd6),'engineType':'','emptyFileEngines':{'extractors':[],'collections':[],'workers':[]},'_unsubs':[],get 'sourceType'(){const _0x503965=_0x310b36;return _0x141453[_0x503965(0x101)][_0x503965(0x104)]||'';},get 'envName'(){const _0x37fee7=_0x310b36;return _0x141453[_0x37fee7(0xc3)][_0x37fee7(0xd9)][_0x37fee7(0xd1)][_0x37fee7(0xd8)]||_0x37fee7(0xee);},get 'mode'(){const _0x2c0956=_0x310b36;return'pipelines'===_0x141453[_0x2c0956(0x101)]['currentmode']?_0x2c0956(0xd5):_0x2c0956(0xe1);},get 'focusedPipelineName'(){const _0xc84d4f=_0x310b36;return String(_0x141453[_0xc84d4f(0x101)][_0xc84d4f(0x102)]||'')[_0xc84d4f(0xd3)]();},'normalizeStatus':_0x137728=>[_0x310b36(0xd6),_0x310b36(0xfe),_0x310b36(0xef),_0x310b36(0xe7)][_0x310b36(0xe0)](_0x137728)?_0x137728:_0x310b36(0xd6),get 'availableEngineTypes'(){const _0x1b387c=_0x310b36,_0x54189f=new Set();for(const _0x4b6dd9 of this[_0x1b387c(0xd0)]??[])_0x4b6dd9?.[_0x1b387c(0x104)]&&_0x54189f[_0x1b387c(0x103)](_0x4b6dd9['type']);return[..._0x54189f][_0x1b387c(0xf0)]();},get 'hasWorkspaceData'(){const _0x5b0805=_0x310b36;return(this[_0x5b0805(0xd0)]?.[_0x5b0805(0xdd)]??0x0)>0x0||(this[_0x5b0805(0xd7)]?.[_0x5b0805(0xdd)]??0x0)>0x0;},async 'load'(){const _0x36df80=_0x310b36;if(!this['sourceType'])return this[_0x36df80(0xd0)]=[],this[_0x36df80(0xd7)]=[],this['error']=null,void(this['busy']=!0x1);this[_0x36df80(0xf7)]=!0x0,this[_0x36df80(0xe2)]=null;try{const [_0x4734fd,_0x12308c,_0x3928db]=await Promise[_0x36df80(0xc0)]([fetch(__ENV__[_0x36df80(0xe9)]+'/env/'+encodeURIComponent(this['envName'])+_0x36df80(0xc2))['then'](async _0x4a95d2=>{const _0x583c0c=_0x36df80,_0x20a259=await _0x4a95d2[_0x583c0c(0xcd)]()[_0x583c0c(0xbe)](()=>({}));if(!_0x4a95d2['ok'])throw new Error(_0x20a259?.[_0x583c0c(0xe2)]?.['message']||'Failed\x20to\x20load\x20env\x20engines');return _0x20a259;}),fetch(__ENV__['API']+'/embeddings/embedders')[_0x36df80(0x106)](async _0x218115=>{const _0x400c7f=_0x36df80,_0x108901=await _0x218115[_0x400c7f(0xcd)]()[_0x400c7f(0xbe)](()=>({}));if(!_0x218115['ok'])throw new Error(_0x108901?.[_0x400c7f(0xe2)]?.['message']||'Failed\x20to\x20load\x20embedders');return _0x108901;}),fetch(__ENV__['API']+'/env/'+encodeURIComponent(this['envName'])+'/pipelines')[_0x36df80(0x106)](async _0x4702a4=>{const _0x828536=_0x36df80,_0x123d85=await _0x4702a4['json']()[_0x828536(0xbe)](()=>({}));if(!_0x4702a4['ok'])throw new Error(_0x123d85?.[_0x828536(0xe2)]?.[_0x828536(0xfa)]||_0x828536(0xe8));return _0x123d85;})]);if(_0x36df80(0xd4)===_0x4734fd[_0x36df80(0xeb)])throw _0x4734fd[_0x36df80(0xc5)];if(_0x36df80(0xd4)===_0x3928db['status'])throw _0x3928db['reason'];const _0xac2f4d=_0x4734fd[_0x36df80(0xf6)]?.[_0x36df80(0xc7)]??[],_0x4ab6ee=_0x36df80(0xf9)===_0x12308c[_0x36df80(0xeb)]?_0x12308c[_0x36df80(0xf6)]?.[_0x36df80(0xc7)]??[]:[],_0x813c84=_0x3928db[_0x36df80(0xf6)]?.[_0x36df80(0xc7)]??[];this[_0x36df80(0xd7)]=_0x813c84,this[_0x36df80(0xd0)]=[..._0xac2f4d,..._0x4ab6ee];}catch(_0x178f04){this[_0x36df80(0xe2)]=_0x178f04?.[_0x36df80(0xfa)]||String(_0x178f04),this[_0x36df80(0xd7)]=[],this['embedEngines']=[];}finally{this[_0x36df80(0xf7)]=!0x1;}},'setSearchTerm'(_0x209696){const _0x2bea55=_0x310b36;this[_0x2bea55(0xf2)]=String(_0x209696??'');},'setStatusFilter'(_0x34623f){const _0x5d6b4e=_0x310b36;this[_0x5d6b4e(0xeb)]=this['normalizeStatus'](_0x34623f);},'setEngineTypeFilter'(_0x4dd56c){const _0x10f887=_0x310b36;this['engineType']=String(_0x4dd56c??'')[_0x10f887(0xd3)]();},'setMode'(_0x4b4dc4){const _0x580863=_0x310b36,_0x426ee3=_0x141453[_0x580863(0xea)]?.[_0x580863(0xfc)];if(!_0x426ee3?.[_0x580863(0xcb)]||!_0x426ee3?.['replace'])return;const _0x303f63={..._0x426ee3[_0x580863(0xce)]||{},'env':this['envName'],'type':this[_0x580863(0xf4)],'tab':_0x580863(0xe1),'mode':'pipelines'===_0x4b4dc4?_0x580863(0xd5):_0x580863(0xe1)};this['focusedPipelineName']?_0x303f63[_0x580863(0xbc)]=this[_0x580863(0xc4)]:delete _0x303f63['pipeline'],_0x426ee3[_0x580863(0xe4)](_0x426ee3[_0x580863(0xcb)](_0x580863(0xe5),_0x303f63,_0x426ee3[_0x580863(0x105)]||''));},'clearFilters'(){const _0x17117d=_0x310b36;this[_0x17117d(0xf2)]='',this[_0x17117d(0xeb)]=_0x17117d(0xd6),this[_0x17117d(0xcc)]='';},'updateFocusedPipeline'(_0xba4e5b=''){const _0x390b10=_0x310b36,_0x2120a3=_0x141453[_0x390b10(0xea)]?.[_0x390b10(0xfc)];if(!_0x2120a3?.[_0x390b10(0xcb)]||!_0x2120a3?.[_0x390b10(0xe4)])return;const _0x26a181={..._0x2120a3[_0x390b10(0xce)]||{},'env':this['envName'],'type':this['sourceType'],'tab':_0x390b10(0xe1),'mode':this[_0x390b10(0xda)]},_0x9f9df2=String(_0xba4e5b||'')[_0x390b10(0xd3)]();_0x9f9df2?_0x26a181[_0x390b10(0xbc)]=_0x9f9df2:delete _0x26a181['pipeline'],_0x2120a3[_0x390b10(0xe4)](_0x2120a3['resolve'](_0x390b10(0xe5),_0x26a181,_0x2120a3[_0x390b10(0x105)]||''));},'handleOverviewSelect'(_0x48b449=null){const _0x2d3503=_0x310b36;this[_0x2d3503(0xbb)](_0x48b449?.[_0x2d3503(0xe6)]||'');},'goToType'(_0x52f546=null){const _0x1816fc=_0x310b36,_0x19d7d8=_0x52f546?.[_0x1816fc(0x104)];if(!_0x19d7d8)return;const _0x35bd20=_0x52f546?.[_0x1816fc(0xcf)]||this[_0x1816fc(0x100)],_0xaed40c=_0x141453[_0x1816fc(0xea)]?.[_0x1816fc(0xfc)];_0xaed40c?.['resolve']&&_0xaed40c?.[_0x1816fc(0x107)]&&_0xaed40c['push'](_0xaed40c[_0x1816fc(0xcb)](_0x1816fc(0xe5),{'env':_0x35bd20,'type':_0x19d7d8,'tab':_0x1816fc(0xe1),'mode':'pipelines'}));},'openGlobalWorkspace'(){const _0x4b76db=_0x310b36,_0x54add7=_0x141453['$vars']?.[_0x4b76db(0xfc)];if(!_0x54add7?.[_0x4b76db(0xcb)]||!_0x54add7?.[_0x4b76db(0x107)])return;const _0x5693aa={'env':this[_0x4b76db(0x100)],'sourceType':this['sourceType'],'mode':this[_0x4b76db(0xda)]};_0x4b76db(0xe1)===this[_0x4b76db(0xda)]&&this[_0x4b76db(0xcc)]&&(_0x5693aa['engineType']=this[_0x4b76db(0xcc)]),this['focusedPipelineName']&&(_0x5693aa[_0x4b76db(0xbc)]=this[_0x4b76db(0xc4)]),_0x4b76db(0xd6)!==this['status']&&(_0x5693aa[_0x4b76db(0xeb)]=this[_0x4b76db(0xeb)]),this['search'][_0x4b76db(0xd3)]()&&(_0x5693aa['search']=this[_0x4b76db(0xf2)][_0x4b76db(0xd3)]()),_0x54add7[_0x4b76db(0x107)](_0x54add7[_0x4b76db(0xcb)](_0x4b76db(0xc2),_0x5693aa));},async 'openCreatePipeline'(){const _0x1ccd52=_0x310b36;this['sourceType']&&await _0x141453[_0x1ccd52(0xc3)][_0x1ccd52(0xc9)][_0x1ccd52(0xbd)][_0x1ccd52(0xf5)]({'owner':_0x141453,'title':'Create\x20Pipeline\x20·\x20'+this[_0x1ccd52(0xf4)],'canDrag':!0x0,'content':_0x1ccd52(0xdf),'context':_0x37cf71=>({'modal':_0x37cf71,'type':this['sourceType'],'envName':this['envName'],'onDone':async()=>{const _0x59b578=_0x1ccd52;await this[_0x59b578(0xfd)]();}})});}}),async 'init'(_0x5ce6d1){const _0x2a3852=_0x310b36;_0x5ce6d1[_0x2a3852(0xde)](()=>_0x5ce6d1[_0x2a3852(0x101)]['type'],()=>this['load']()),_0x5ce6d1[_0x2a3852(0xde)](()=>_0x5ce6d1['$ok'][_0x2a3852(0xd9)][_0x2a3852(0xd1)][_0x2a3852(0xd8)],()=>this[_0x2a3852(0xfd)]()),await this['load']();const _0x445bb1=()=>this[_0x2a3852(0xfd)]();this[_0x2a3852(0xd2)]=[_0x24de04['on']('engine:started',_0x445bb1),_0x24de04['on'](_0x2a3852(0xc8),_0x445bb1),_0x24de04['on']('engine:error',_0x445bb1),_0x24de04['on'](_0x2a3852(0xf1),_0x445bb1),_0x24de04['on']('engine:uninstalled',_0x445bb1),_0x24de04['on'](_0x2a3852(0xf8),_0x445bb1),_0x24de04['on'](_0x2a3852(0xff),_0x445bb1),_0x24de04['on']('pipeline:stop',_0x445bb1),_0x24de04['on'](_0x2a3852(0xdc),_0x445bb1)];},'unmount'(){const _0xe683bd=_0x310b36;for(const _0x45c9cb of this[_0xe683bd(0xd2)])_0x45c9cb();this[_0xe683bd(0xd2)]=[];},'template':_0x310b36(0x109)};
|