@limetech/lime-crm-building-blocks 2.4.2 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/{condition-tree-translate-BQwKtiNZ.js → condition-tree-translate-CXZ3rdCG.js} +1 -1
- package/dist/cjs/{filter-group-logic-CeGmYgsu.js → filter-group-logic-5yhZgTgb.js} +1 -1
- package/dist/cjs/{filter-operators-C3T2czC_.js → filter-operators-CTjk7LWD.js} +1 -1
- package/dist/cjs/{index-Du4GyM0Y.js → index-Cnyo8RUg.js} +20 -2
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{index.esm-C2zw0QJK.js → index.esm-C9-4qA1N.js} +23 -19
- package/dist/cjs/lime-crm-building-blocks.cjs.js +3 -3
- package/dist/cjs/{lime-query-validation-CzYkphmi.js → lime-query-validation-C1zLolkD.js} +1 -1
- package/dist/cjs/limebb-alert-dialog.cjs.entry.js +1 -1
- package/dist/cjs/limebb-browser.cjs.entry.js +2 -2
- package/dist/cjs/limebb-chat-icon-list_3.cjs.entry.js +2 -2
- package/dist/cjs/limebb-chat-list.cjs.entry.js +2 -2
- package/dist/cjs/limebb-color-palette-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-color-palette-swatches.cjs.entry.js +1 -1
- package/dist/cjs/limebb-component-config.cjs.entry.js +3 -3
- package/dist/cjs/limebb-component-picker.cjs.entry.js +2 -2
- package/dist/cjs/limebb-composer-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/limebb-condition-tree-editor.cjs.entry.js +4 -4
- package/dist/cjs/limebb-condition-tree.cjs.entry.js +3 -3
- package/dist/cjs/limebb-currency-picker.cjs.entry.js +2 -2
- package/dist/cjs/limebb-dashboard-widget.cjs.entry.js +1 -1
- package/dist/cjs/limebb-data-cells.cjs.entry.js +2 -2
- package/dist/cjs/limebb-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/limebb-date-range.cjs.entry.js +1 -1
- package/dist/cjs/limebb-document-chips.cjs.entry.js +1 -1
- package/dist/cjs/limebb-document-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-document-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/limebb-feed-item-thumbnail-file-info.cjs.entry.js +1 -1
- package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/limebb-feed.cjs.entry.js +2 -2
- package/dist/cjs/limebb-filter-chip_6.cjs.entry.js +4 -4
- package/dist/cjs/limebb-icon-picker.cjs.entry.js +41 -1
- package/dist/cjs/limebb-info-tile-currency-format.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile-date-format.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile-decimal-format.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile-format.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile-relative-date-format.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile-unit-format.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile.cjs.entry.js +3 -3
- package/dist/cjs/limebb-inline-image.cjs.entry.js +16 -3
- package/dist/cjs/limebb-kanban-group.cjs.entry.js +2 -2
- package/dist/cjs/limebb-kanban-item.cjs.entry.js +2 -2
- package/dist/cjs/limebb-kanban.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +3 -3
- package/dist/cjs/limebb-lime-query-filter-builder.cjs.entry.js +3 -3
- package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +4 -4
- package/dist/cjs/limebb-lime-query-order-by-editor_2.cjs.entry.js +3 -3
- package/dist/cjs/limebb-lime-query-order-by-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +3 -3
- package/dist/cjs/limebb-lime-query-response-format-editor_2.cjs.entry.js +1 -1
- package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limebb-live-docs-info.cjs.entry.js +1 -1
- package/dist/cjs/limebb-loader.cjs.entry.js +2 -2
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +2 -2
- package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +1 -1
- package/dist/cjs/limebb-mention.cjs.entry.js +2 -2
- package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +1 -1
- package/dist/cjs/limebb-notification-item.cjs.entry.js +2 -2
- package/dist/cjs/limebb-notification-list.cjs.entry.js +2 -2
- package/dist/cjs/limebb-object-chip.cjs.entry.js +81 -7
- package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +2 -2
- package/dist/cjs/limebb-property-selector.cjs.entry.js +3 -3
- package/dist/cjs/limebb-rule-arg-filter-editor.cjs.entry.js +2 -2
- package/dist/cjs/limebb-rule-condition-chip.cjs.entry.js +3 -3
- package/dist/cjs/{limebb-rule-condition-editor-CHWTMOmi.js → limebb-rule-condition-editor-ngOQoza9.js} +2 -2
- package/dist/cjs/limebb-rule-condition-editor.cjs.entry.js +3 -3
- package/dist/cjs/limebb-rule-editor.cjs.entry.js +5 -5
- package/dist/cjs/limebb-rule-gate.cjs.entry.js +2 -2
- package/dist/cjs/limebb-text-editor-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-text-editor.cjs.entry.js +3 -3
- package/dist/cjs/limebb-trend-indicator.cjs.entry.js +2 -2
- package/dist/cjs/limebb-value-comparison-editor.cjs.entry.js +3 -3
- package/dist/cjs/{limetype-BzVDjAKS.js → limetype-VOBLbMGk.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{web-component-template-C-AkY5as.js → web-component-template-D8hPsfRp.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/condition-tree/condition-tree-editor/condition-tree-editor.js +1 -1
- package/dist/collection/components/dashboard-widget/dashboard-widget.js +1 -1
- package/dist/collection/components/filter-chip/filter-chip.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +1 -1
- package/dist/collection/components/inline-image/inline-image.js +15 -2
- package/dist/collection/components/object-chip/object-chip.js +68 -1
- package/dist/collection/components/rule-editor/rule-condition-chip/rule-condition-chip.js +1 -1
- package/dist/collection/components/summary-popover/summary-popover.js +1 -1
- package/dist/collection/util/object-markdown.js +33 -0
- package/dist/collection/util/object-resolver.js +3 -4
- package/dist/components/limebb-icon-picker.js +1 -1
- package/dist/components/limebb-inline-image.js +1 -1
- package/dist/components/limebb-object-chip.js +1 -1
- package/dist/esm/{condition-tree-translate-ZQptbaXF.js → condition-tree-translate-BgdN95CB.js} +1 -1
- package/dist/esm/{filter-group-logic-nqCMmV0e.js → filter-group-logic-DWCOjNyY.js} +1 -1
- package/dist/esm/{filter-operators-QbKK26m2.js → filter-operators-Djz0egoX.js} +1 -1
- package/dist/esm/{index-BK566_jX.js → index-f_mBf1UZ.js} +20 -2
- package/dist/esm/{index.esm-C__n3hug.js → index.esm-DkIgMHMo.js} +22 -18
- package/dist/esm/index.js +3 -3
- package/dist/esm/lime-crm-building-blocks.js +4 -4
- package/dist/esm/{lime-query-validation-BvB2v-yP.js → lime-query-validation-CFuF8oLz.js} +1 -1
- package/dist/esm/limebb-alert-dialog.entry.js +1 -1
- package/dist/esm/limebb-browser.entry.js +2 -2
- package/dist/esm/limebb-chat-icon-list_3.entry.js +2 -2
- package/dist/esm/limebb-chat-list.entry.js +2 -2
- package/dist/esm/limebb-color-palette-picker.entry.js +1 -1
- package/dist/esm/limebb-color-palette-swatches.entry.js +1 -1
- package/dist/esm/limebb-component-config.entry.js +3 -3
- package/dist/esm/limebb-component-picker.entry.js +2 -2
- package/dist/esm/limebb-composer-toolbar.entry.js +2 -2
- package/dist/esm/limebb-condition-tree-editor.entry.js +4 -4
- package/dist/esm/limebb-condition-tree.entry.js +3 -3
- package/dist/esm/limebb-currency-picker.entry.js +2 -2
- package/dist/esm/limebb-dashboard-widget.entry.js +1 -1
- package/dist/esm/limebb-data-cells.entry.js +2 -2
- package/dist/esm/limebb-date-picker.entry.js +2 -2
- package/dist/esm/limebb-date-range.entry.js +1 -1
- package/dist/esm/limebb-document-chips.entry.js +1 -1
- package/dist/esm/limebb-document-item.entry.js +1 -1
- package/dist/esm/limebb-document-picker.entry.js +1 -1
- package/dist/esm/limebb-empty-state.entry.js +1 -1
- package/dist/esm/limebb-feed-item-thumbnail-file-info.entry.js +1 -1
- package/dist/esm/limebb-feed-timeline-item.entry.js +2 -2
- package/dist/esm/limebb-feed.entry.js +2 -2
- package/dist/esm/limebb-filter-chip_6.entry.js +4 -4
- package/dist/esm/limebb-icon-picker.entry.js +41 -1
- package/dist/esm/limebb-info-tile-currency-format.entry.js +1 -1
- package/dist/esm/limebb-info-tile-date-format.entry.js +1 -1
- package/dist/esm/limebb-info-tile-decimal-format.entry.js +1 -1
- package/dist/esm/limebb-info-tile-format.entry.js +1 -1
- package/dist/esm/limebb-info-tile-relative-date-format.entry.js +1 -1
- package/dist/esm/limebb-info-tile-unit-format.entry.js +1 -1
- package/dist/esm/limebb-info-tile.entry.js +3 -3
- package/dist/esm/limebb-inline-image.entry.js +16 -3
- package/dist/esm/limebb-kanban-group.entry.js +2 -2
- package/dist/esm/limebb-kanban-item.entry.js +2 -2
- package/dist/esm/limebb-kanban.entry.js +1 -1
- package/dist/esm/limebb-lime-query-builder.entry.js +3 -3
- package/dist/esm/limebb-lime-query-filter-builder.entry.js +3 -3
- package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +4 -4
- package/dist/esm/limebb-lime-query-order-by-editor_2.entry.js +3 -3
- package/dist/esm/limebb-lime-query-order-by-item.entry.js +1 -1
- package/dist/esm/limebb-lime-query-response-format-builder.entry.js +3 -3
- package/dist/esm/limebb-lime-query-response-format-editor_2.entry.js +1 -1
- package/dist/esm/limebb-limeobject-file-viewer.entry.js +2 -2
- package/dist/esm/limebb-live-docs-info.entry.js +1 -1
- package/dist/esm/limebb-loader.entry.js +2 -2
- package/dist/esm/limebb-locale-picker.entry.js +2 -2
- package/dist/esm/limebb-mention-group-counter.entry.js +1 -1
- package/dist/esm/limebb-mention.entry.js +2 -2
- package/dist/esm/limebb-navigation-button_2.entry.js +1 -1
- package/dist/esm/limebb-notification-item.entry.js +2 -2
- package/dist/esm/limebb-notification-list.entry.js +2 -2
- package/dist/esm/limebb-object-chip.entry.js +81 -7
- package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
- package/dist/esm/limebb-property-selector.entry.js +3 -3
- package/dist/esm/limebb-rule-arg-filter-editor.entry.js +2 -2
- package/dist/esm/limebb-rule-condition-chip.entry.js +3 -3
- package/dist/esm/{limebb-rule-condition-editor-DeY758N-.js → limebb-rule-condition-editor-SUdySXLc.js} +2 -2
- package/dist/esm/limebb-rule-condition-editor.entry.js +3 -3
- package/dist/esm/limebb-rule-editor.entry.js +5 -5
- package/dist/esm/limebb-rule-gate.entry.js +2 -2
- package/dist/esm/limebb-text-editor-picker.entry.js +1 -1
- package/dist/esm/limebb-text-editor.entry.js +3 -3
- package/dist/esm/limebb-trend-indicator.entry.js +2 -2
- package/dist/esm/limebb-value-comparison-editor.entry.js +3 -3
- package/dist/esm/{limetype-Muf9VutX.js → limetype-CTws6FIV.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{web-component-template-D1JpeNy_.js → web-component-template-CYI_EVCh.js} +1 -1
- package/dist/lime-crm-building-blocks/index.esm.js +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-b4571d32.entry.js → p-0219b335.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-1ae4962d.entry.js → p-02aad930.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-23d2632b.entry.js → p-04a13584.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3446290c.entry.js → p-054af74c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-895c8966.entry.js → p-09ded02e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-6d2dba20.entry.js → p-12b3242e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-d4635a39.entry.js → p-143fa937.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-166d626b.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-bf693702.entry.js → p-20852807.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-573f9e95.entry.js → p-21b7fc80.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-47b56a75.entry.js → p-24c2812c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-f49250f3.entry.js → p-26139212.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-d6099dc7.entry.js → p-2edda571.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-b72c748b.entry.js → p-346d85fe.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4bdaf436.entry.js → p-3ef055d0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-949ed056.entry.js → p-433289f1.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-5855abdc.entry.js → p-4ac488ff.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-a2e291b4.entry.js → p-4b1fa4d3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-58eed0a6.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-a598f92f.entry.js → p-68a60eb1.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-1917956c.entry.js → p-6a5c26f0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4fd9d615.entry.js → p-6b1e220e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-394b521a.entry.js → p-6c872445.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6cd6f81b.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-7039bf37.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-ec9b5e30.entry.js → p-713f58e0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-32339f09.entry.js → p-7558e5fd.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4f60b7bc.entry.js → p-76461e56.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-c7bfa2e4.entry.js → p-78f12738.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-a4556649.entry.js → p-7911a1d9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-da79c5fc.entry.js → p-7c58eff9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-6bd61290.entry.js → p-7e2ca2a3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-251784bf.entry.js → p-7f1ae431.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-8c0455e4.entry.js → p-80ddcd53.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-4af3ea2c.entry.js → p-80fd47ab.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-b272730c.entry.js → p-84d51dec.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-39a36450.entry.js → p-86980dab.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9959019d.entry.js → p-8a875344.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-7d53756b.entry.js → p-8e8046db.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3b672249.entry.js → p-95a2ba98.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-35d9b3ad.entry.js → p-9a3564ff.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-087d5651.entry.js → p-9d1be8cc.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-a1052482.entry.js → p-9f5065fb.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-DhGRAeCH.js → p-B6a_-5iN.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-B7whyaAL.js → p-BnPKxFWU.js} +1 -1
- package/dist/lime-crm-building-blocks/p-Bub25YTw.js +1 -0
- package/dist/lime-crm-building-blocks/{p-Cve-3L4y.js → p-CCeLGIvD.js} +1 -1
- package/dist/lime-crm-building-blocks/p-CNQXwbmC.js +1 -0
- package/dist/lime-crm-building-blocks/{p-ClYOFrOo.js → p-CsrJNPra.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-7DQ7qvMa.js → p-DcORJz0y.js} +1 -1
- package/dist/lime-crm-building-blocks/p-Dl3vxV2X.js +1 -0
- package/dist/lime-crm-building-blocks/{p-5c541d0c.entry.js → p-a4be0e6b.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-53b44865.entry.js → p-aae20057.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-c58067ec.entry.js → p-ab3625c4.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-ac4c7e2d.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-985ae787.entry.js → p-af747fd5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-27240bb0.entry.js → p-b0eab411.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-a938384f.entry.js → p-b9317449.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-621ab65a.entry.js → p-ba0ff3a3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-d6c7cf0f.entry.js → p-bbf8b2c8.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-bd6c12bc.entry.js → p-c12e421e.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-550606f6.entry.js → p-d0bc3dd9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-d1baf62e.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-ab0210b2.entry.js → p-d71d5131.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-612c6b28.entry.js → p-e245eb5b.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-6e2553b4.entry.js → p-e5ba48fc.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-a14bed52.entry.js → p-ec2d8a50.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e19f4b3b.entry.js → p-ee4343b3.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-eb95767a.entry.js → p-f831aa55.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-BK566_jX.js → p-f_mBf1UZ.js} +2 -2
- package/dist/lime-crm-building-blocks/{p-6303201b.entry.js → p-fa1e6d6f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-3865eec4.entry.js → p-fba754d6.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-627b0c79.entry.js → p-fcf0009b.entry.js} +1 -1
- package/dist/types/components/inline-image/inline-image.d.ts +6 -1
- package/dist/types/components/object-chip/object-chip.d.ts +14 -1
- package/dist/types/components.d.ts +7 -2
- package/dist/types/util/object-markdown.d.ts +14 -0
- package/package.json +9 -9
- package/dist/lime-crm-building-blocks/p-0621e884.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-2adeac66.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-7c3d3e06.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-8f80d024.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-DOULPRTn.js +0 -1
- package/dist/lime-crm-building-blocks/p-DjoMDjMo.js +0 -1
- package/dist/lime-crm-building-blocks/p-DuWEcQ7n.js +0 -1
- package/dist/lime-crm-building-blocks/p-a2ebd5a4.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-bac9d3a9.entry.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
function t(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var e,n,o=(e,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=e[o],i=t(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(e,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(o)?e[o]=n.l.get(o):void 0!==l&&(e[o]=l)}}))},l=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},i=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&o(t,e))},s=(t,e)=>e in t,r=(t,n)=>(e||console.error)(t,n),c=t=>e=t,u=new Map,f=new Map,a=new Map,d="http://www.w3.org/1999/xlink",p="undefined"!=typeof window?window:{},h={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},v=t=>Promise.resolve(t),m=(()=>{try{return!!p.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),y=!!m&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),b=!1,w=[],g=[],$=()=>{var t;return(null==(t=p.document)?void 0:t.hidden)?k(S):h.raf(S)},j=(t,e)=>n=>{t.push(n),b||(b=!0,e&&4&h.u?k(S):$())},O=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},S=()=>{O(w),O(g),(b=w.length>0)&&$()},k=t=>v().then(t),E=j(g,!0);function M(t){const e={mode:"open"};e.delegatesFocus=!!(16&t.u);const o=this.attachShadow(e);void 0===n&&(n=null),n&&(y?o.adoptedStyleSheets.push(n):o.adoptedStyleSheets=[...o.adoptedStyleSheets,n])}function C(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var x,N,A=new WeakMap,L=t=>"sc-"+t.h,R=t=>"object"==(t=typeof t)||"function"===t,T=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)if(o=e[n],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(i="function"!=typeof t&&!R(o))o+="";else if("function"!=typeof t&&void 0===o.u){r("Invalid vNode child");continue}i&&s?c[c.length-1].v+=o:c.push(i?D(null,o):o),s=i}};if(u(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,P);const f=D(t,null);return f.m=e,c.length>0&&(f.$=c),f.j=l,f},D=(t,e)=>({u:0,O:t,v:null!=e?e:null,S:null,$:null,m:null,j:null}),H={},P={forEach:(t,e)=>t.map(U).forEach(e),map:(t,e)=>t.map(U).map(e).map(W)},U=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.k,vtag:t.O,vtext:t.v}),W=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),T(t.vtag,e,...t.vchildren||[])}const e=D(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.k=t.vname,e},z=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const o of e){if(n)break;for(const e of t[o])if("string"==typeof e){n=!0;break}}if(!n)return t;const o={};for(const n of e)o[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return o},F=(t,e)=>null==t||R(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,V=t=>{var e;return null==(e=l(t))?void 0:e.$hostElement$},q=(t,e)=>{const n=V(t);return{emit:t=>B(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},B=(t,e,n)=>{const o=h.ce(e,n);return t.dispatchEvent(o),o},G=(t,e,n,o,i,r)=>{if(n===o)return;let c=s(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,l=_(n);let i=_(o);e.remove(...l.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&ft(o,t);else if(c||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let i;{const e=l(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(i=t[1])}}return i||(i=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const l=R(o);if((c||l&&null!==o)&&!i)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?c=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let s=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(e=u,s=!0),null==o||!1===o?(!1!==o||""===t.getAttribute(e)||4&r&&!Y(e))&&(s?t.removeAttributeNS(d,e):t.removeAttribute(e)):(!c||4&r||i)&&!l&&1===t.nodeType&&(o=!0===o?"":o,s?t.setAttributeNS(d,e,o):t.setAttribute(e,o))}}else if(e="-"===e[2]?e.slice(3):s(p,u)?u.slice(2):u[2]+e.slice(3),n||o){const l=e.endsWith(J);e=e.replace(K,""),n&&h.rel(t,e,n,l),o&&h.ael(t,e,o,l)}},I=new Set(["draggable","contenteditable","spellcheck"]),Y=t=>I.has(t)||t.startsWith("aria-"),Z=/\s/,_=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Z):[]),J="Capture",K=RegExp(J+"$"),Q=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.m||{},i=e.m||{};for(const t of X(Object.keys(l)))t in i||G(o,t,l[t],void 0,n,e.u);for(const t of X(Object.keys(i)))G(o,t,l[t],i[t],n,e.u)};function X(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var tt=!1,et=!1,nt=[],ot=[],lt=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(null!=o.v)l=o.S=p.document.createTextNode(o.v);else{if(et||(et="svg"===o.O),!p.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=p.document.createElementNS(et?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),et&&"foreignObject"===o.O&&(et=!1),Q(null,o,et),null!=x&&void 0!==x&&l["s-si"]!==x&&l.classList.add(l["s-si"]=x),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=lt(t,o,s),i&&e.appendChild(i)}"svg"===o.O?et=!1:"foreignObject"===l.tagName&&(et=!0)}return l["s-hn"]=N,l},it=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===N&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=lt(null,n,l),s&&(o[l].S=s,at(r,s,e)))},st=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;ut(e),t&&t.remove()}}},rt=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),ct=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O,r=e.v;null==r?(et="svg"===s||"foreignObject"!==s&&et,"slot"!==s||tt||t.k!==e.k&&(e.S["s-sn"]=e.k||"",(t=>{h.u|=1;const e=t.closest(N.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(at(e,t,null!=n?n:null),t["s-sh"]=void 0)}h.u&=-2})(e.S.parentElement)),Q(t,e,et),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],p=e[a],h=o.length-1,v=o[0],m=o[h];const y="template"===n.O?t.content:t;for(;r<=a&&c<=h;)if(null==d)d=e[++r];else if(null==p)p=e[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--h];else if(rt(d,v,l))ct(d,v,l),d=e[++r],v=o[++c];else if(rt(p,m,l))ct(p,m,l),p=e[--a],m=o[--h];else if(rt(d,m,l))ct(d,m,l),at(y,d.S,p.S.nextSibling),d=e[++r],m=o[--h];else if(rt(p,v,l))ct(p,v,l),at(y,p.S,d.S),p=e[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===v.j){u=f;break}u>=0?(s=e[u],s.O!==v.O?i=lt(e&&e[c],n,c):(ct(s,v,l),e[u]=void 0,i=s.S),v=o[++c]):(i=lt(e&&e[c],n,c),v=o[++c]),i&&at(d.S.parentNode,i,d.S)}r>a?it(t,null==o[h+1]?null:o[h+1].S,n,o,c,h):c>h&&st(e,r,a)})(o,l,e,i,n):null!==i?(null!==t.v&&(o.textContent=""),it(o,null,e,i,0,i.length-1)):!n&&null!==l&&st(l,0,l.length-1),et&&"svg"===s&&(et=!1)):t.v!==r&&(o.data=r)},ut=t=>{t.m&&t.m.ref&&nt.push((()=>t.m.ref(null))),t.$&&t.$.map(ut)},ft=(t,e)=>{ot.push((()=>t(e)))},at=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),dt=(t,e)=>{if(e&&!t.M&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.M=()=>{e["s-p"].splice(n-1,1),o()})))}},pt=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);dt(t,t.C);const n=()=>ht(t,e);if(!e)return E(n);queueMicrotask((()=>{n()}))},ht=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.u|=256,t.N&&(t.N.map((([t,e])=>$t(o,t,e,n))),t.N=void 0),t.A.length&&t.A.forEach((t=>t(n))),l=$t(o,"componentWillLoad",void 0,n)):l=$t(o,"componentWillUpdate",void 0,n),l=vt(l,(()=>$t(o,"componentWillRender",void 0,n))),vt(l,(()=>yt(t,o,e)))},vt=(t,e)=>mt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),mt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,yt=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=L(e),s=a.get(i);if(!p.document)return i;if(t=11===t.nodeType?t:p.document,s)if("string"==typeof s){let l,r=A.get(t=t.head||t);if(r||A.set(t,r=new Set),!r.has(i)){l=p.document.createElement("style"),l.textContent=s;const c=null!=(n=h.L)?n:C(p.document);if(null!=c&&l.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(m){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),y?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=A.get(t);if(e||A.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}y?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);bt(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>wt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},bt=(t,e,n,o)=>{try{e=e.render&&e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.o,i=t.R||D(null,null),s=(t=>t&&t.O===H)(e)?e:T(null,null,e);if(N=o.tagName,l.T&&(s.m=s.m||{},l.T.forEach((([t,e])=>{s.m[e]=o[t]}))),n&&s.m)for(const t of Object.keys(s.m))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.m[t]=o[t]);s.O=null,s.u|=4,t.R=s,s.S=i.S=o.shadowRoot||o,x=o["s-sc"],tt=!(!(1&l.u)||128&l.u),ct(i,s,n),nt.forEach((t=>t())),nt.length=0,ot.forEach((t=>t())),ot.length=0})(t,e,o)}catch(e){r(e,t.$hostElement$)}return null},wt=t=>{const e=t.$hostElement$,n=t.i,o=t.C;$t(n,"componentDidRender",void 0,e),64&t.u?$t(n,"componentDidUpdate",void 0,e):(t.u|=64,jt(e),$t(n,"componentDidLoad",void 0,e),t.D(e),o||gt()),t.M&&(t.M(),t.M=void 0),512&t.u&&k((()=>pt(t,!1))),t.u&=-517},gt=()=>{k((()=>B(p,"appload",{detail:{namespace:"lime-crm-building-blocks"}})))},$t=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t,o)}},jt=t=>t.classList.add("hydrated"),Ot=(t,e,n,o)=>{const i=l(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${o.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.$hostElement$,c=i.l.get(e),u=i.u,f=i.i;if(n=F(n,o.t[e][0]),!(8&u&&void 0!==c||n===c||Number.isNaN(c)&&Number.isNaN(n))){if(i.l.set(e,n),o.H){const t=o.H[e];t&&t.map((t=>{try{const[[o,l]]=Object.entries(t);(128&u||1&l)&&(f?f[o](n,c,e):i.A.push((()=>{i.i[o](n,c,e)})))}catch(t){r(t,s)}}))}if(2&u){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,c,e)&&!(16&u))return;16&u||pt(i,!1)}}},St=(e,n,o)=>{var i,s;const r=e.prototype;{e.watchers&&!n.H&&(n.H=z(e.watchers)),e.deserializers&&!n.P&&(n.P=e.deserializers),e.serializers&&!n.U&&(n.U=e.serializers);const c=Object.entries(null!=(i=n.t)?i:{});if(c.map((([e,[i]])=>{if(31&i||2&o&&32&i){const{get:s,set:c}=t(r,e)||{};s&&(n.t[e][0]|=2048),c&&(n.t[e][0]|=4096),(1&o||!s)&&Object.defineProperty(r,e,{get(){{if(!(2048&n.t[e][0]))return((t,e)=>l(this).l.get(e))(0,e);const t=l(this),o=t?t.i:r;if(!o)return;return o[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,e,{set(t){const s=l(this);if(s){if(c)return void 0===(32&i?this[e]:s.$hostElement$[e])&&s.l.get(e)&&(t=s.l.get(e)),c.call(this,F(t,i)),void Ot(this,e,t=32&i?this[e]:s.$hostElement$[e],n);{if(!(1&o&&4096&n.t[e][0]))return Ot(this,e,t,n),void(1&o&&!s.i&&s.A.push((()=>{4096&n.t[e][0]&&s.i[e]!==s.l.get(e)&&(s.i[e]=t)})));const l=F(t,i),r=t=>{const o=s.i[e];!s.l.get(e)&&o&&s.l.set(e,o),s.i[e]=t,Ot(this,e,s.i[e],n)};s.i?r(l):(s.l.set(e,l),s.A.push((()=>{const t=s.l.get(e);s.i[e]!==t&&r(t)})))}}}})}})),1&o){const t=new Map;r.attributeChangedCallback=function(e,o,i){h.jmp((()=>{var s;const u=t.get(e),f=l(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&i!==o){const l=f.i,r=null==(s=n.H)?void 0:s[e];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=l[s]&&(128&t||1&r)&&l[s].call(l,i,o,e)}))}return}const a=c.find((([t])=>t===u)),d=a?a[1][0]:0,p=4&d;if(512&d&&8&d&&!R(this[u])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[u])===i)return;const h=p&&null===i&&void 0===this[u];p&&(i=null!==i&&"false"!==i);const v=Object.getOwnPropertyDescriptor(r,u);h||i==this[u]||v.get&&!v.set||(this[u]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.H)?s:{}),...c.filter((([t,e])=>31&e[0])).map((([e,o])=>{var l;const i=o[1]||e;return t.set(i,e),512&o[0]&&(null==(l=n.T)||l.push([e,i])),i}))]))}}return e},kt=async(t,e,n)=>{var o;let l;try{if(!(32&e.u)){if(e.u|=32,e.u&=-1025,n.W){const i=((t,e)=>{var n;const o=t.h.replace(/-/g,"_"),l=t.W;if(!l)return;const i=u.get(l);if(i)return i[o];const s=null!=(n=f.get(l))?n:0,c=[s>0?"s-retry="+s:"",""].filter(Boolean).join("&");
|
|
1
|
+
function t(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var e,n,o=(e,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=e[o],i=t(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(e,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(o)?e[o]=n.l.get(o):void 0!==l&&(e[o]=l)}}))},l=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},i=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&o(t,e))},s=(t,e)=>e in t,r=(t,n)=>(e||console.error)(t,n),c=t=>e=t,u=new Map,f=new Map,a=new Map,d="http://www.w3.org/1999/xlink",p="undefined"!=typeof window?window:{},h={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},v=t=>Promise.resolve(t),m=(()=>{try{return!!p.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),y=!!m&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),b=!1,w=[],g=[],$=()=>{var t;return(null==(t=p.document)?void 0:t.hidden)?k(S):h.raf(S)},j=(t,e)=>n=>{t.push(n),b||(b=!0,e&&4&h.u?k(S):$())},O=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){r(t)}t.length=0},S=()=>{O(w),O(g),(b=w.length>0)&&$()},k=t=>v().then(t),E=j(g,!0);function M(t){const e={mode:"open"};e.delegatesFocus=!!(16&t.u);const o=this.attachShadow(e);void 0===n&&(n=null),n&&(y?o.adoptedStyleSheets.push(n):o.adoptedStyleSheets=[...o.adoptedStyleSheets,n])}function C(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var x,N,A=new WeakMap,L=t=>"sc-"+t.h,P=t=>"object"==(t=typeof t)||"function"===t,R=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)if(o=e[n],Array.isArray(o))u(o);else if(null!=o&&"boolean"!=typeof o){if(i="function"!=typeof t&&!P(o))o+="";else if("function"!=typeof t&&void 0===o.u){r("Invalid vNode child");continue}i&&s?c[c.length-1].v+=o:c.push(i?T(null,o):o),s=i}};if(u(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,H);const f=T(t,null);return f.m=e,c.length>0&&(f.$=c),f.j=l,f},T=(t,e)=>({u:0,O:t,v:null!=e?e:null,S:null,$:null,m:null,j:null}),D={},H={forEach:(t,e)=>t.map(U).forEach(e),map:(t,e)=>t.map(U).map(e).map(W)},U=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.k,vtag:t.O,vtext:t.v}),W=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),R(t.vtag,e,...t.vchildren||[])}const e=T(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.k=t.vname,e},z=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const o of e){if(n)break;for(const e of t[o])if("string"==typeof e){n=!0;break}}if(!n)return t;const o={};for(const n of e)o[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return o},F=(t,e)=>null==t||P(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,V=t=>{var e;return null==(e=l(t))?void 0:e.$hostElement$},q=(t,e)=>{const n=V(t);return{emit:t=>B(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},B=(t,e,n)=>{const o=h.ce(e,n);return t.dispatchEvent(o),o},G=(t,e,n,o,i,r)=>{if(n===o)return;let c=s(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,l=_(n);let i=_(o);e.remove(...l.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&ft(o,t);else if(c||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let i;{const e=l(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(i=t[1])}}return i||(i=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const l=P(o);if((c||l&&null!==o)&&!i)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?c=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let s=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(e=u,s=!0),null==o||!1===o?(!1!==o||""===t.getAttribute(e)||4&r&&!Y(e))&&(s?t.removeAttributeNS(d,e):t.removeAttribute(e)):(!c||4&r||i)&&!l&&1===t.nodeType&&(o=!0===o?"":o,s?t.setAttributeNS(d,e,o):t.setAttribute(e,o))}}else if(e="-"===e[2]?e.slice(3):s(p,u)?u.slice(2):u[2]+e.slice(3),n||o){const l=e.endsWith(J);e=e.replace(K,""),n&&h.rel(t,e,n,l),o&&h.ael(t,e,o,l)}},I=new Set(["draggable","contenteditable","spellcheck"]),Y=t=>I.has(t)||t.startsWith("aria-"),Z=/\s/,_=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Z):[]),J="Capture",K=RegExp(J+"$"),Q=(t,e,n)=>{const o=11===e.S.nodeType&&e.S.host?e.S.host:e.S,l=t&&t.m||{},i=e.m||{};for(const t of X(Object.keys(l)))t in i||G(o,t,l[t],void 0,n,e.u);for(const t of X(Object.keys(i)))G(o,t,l[t],i[t],n,e.u)};function X(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var tt=!1,et=!1,nt=[],ot=[],lt=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(null!=o.v)l=o.S=p.document.createTextNode(o.v);else{if(et||(et="svg"===o.O),!p.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.S=p.document.createElementNS(et?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.O),et&&"foreignObject"===o.O&&(et=!1),Q(null,o,et),null!=x&&void 0!==x&&l["s-si"]!==x&&l.classList.add(l["s-si"]=x),o.$){const e="template"===o.O?l.content:l;for(s=0;s<o.$.length;++s)i=lt(t,o,s),i&&e.appendChild(i)}"svg"===o.O?et=!1:"foreignObject"===l.tagName&&(et=!0)}return l["s-hn"]=N,l},it=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===N&&(r=r.shadowRoot),"template"===n.O&&(r=r.content);l<=i;++l)o[l]&&(s=lt(null,n,l),s&&(o[l].S=s,at(r,s,e)))},st=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.S;ut(e),t&&t.remove()}}},rt=(t,e,n=!1)=>t.O===e.O&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),ct=(t,e,n=!1)=>{const o=e.S=t.S,l=t.$,i=e.$,s=e.O,r=e.v;null==r?(et="svg"===s||"foreignObject"!==s&&et,"slot"!==s||tt||t.k!==e.k&&(e.S["s-sn"]=e.k||"",(t=>{h.u|=1;const e=t.closest(N.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(at(e,t,null!=n?n:null),t["s-sh"]=void 0)}h.u&=-2})(e.S.parentElement)),Q(t,e,et),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],p=e[a],h=o.length-1,v=o[0],m=o[h];const y="template"===n.O?t.content:t;for(;r<=a&&c<=h;)if(null==d)d=e[++r];else if(null==p)p=e[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--h];else if(rt(d,v,l))ct(d,v,l),d=e[++r],v=o[++c];else if(rt(p,m,l))ct(p,m,l),p=e[--a],m=o[--h];else if(rt(d,m,l))ct(d,m,l),at(y,d.S,p.S.nextSibling),d=e[++r],m=o[--h];else if(rt(p,v,l))ct(p,v,l),at(y,p.S,d.S),p=e[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===v.j){u=f;break}u>=0?(s=e[u],s.O!==v.O?i=lt(e&&e[c],n,c):(ct(s,v,l),e[u]=void 0,i=s.S),v=o[++c]):(i=lt(e&&e[c],n,c),v=o[++c]),i&&at(d.S.parentNode,i,d.S)}r>a?it(t,null==o[h+1]?null:o[h+1].S,n,o,c,h):c>h&&st(e,r,a)})(o,l,e,i,n):null!==i?(null!==t.v&&(o.textContent=""),it(o,null,e,i,0,i.length-1)):!n&&null!==l&&st(l,0,l.length-1),et&&"svg"===s&&(et=!1)):t.v!==r&&(o.data=r)},ut=t=>{t.m&&t.m.ref&&nt.push((()=>t.m.ref(null))),t.$&&t.$.map(ut)},ft=(t,e)=>{ot.push((()=>t(e)))},at=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),dt=(t,e)=>{if(e&&!t.M&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.M=()=>{e["s-p"].splice(n-1,1),o()})))}},pt=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);dt(t,t.C);const n=()=>ht(t,e);if(!e)return E(n);queueMicrotask((()=>{n()}))},ht=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.u|=256,t.N&&(t.N.map((([t,e])=>$t(o,t,e,n))),t.N=void 0),t.A.length&&t.A.forEach((t=>t(n))),l=$t(o,"componentWillLoad",void 0,n)):l=$t(o,"componentWillUpdate",void 0,n),l=vt(l,(()=>$t(o,"componentWillRender",void 0,n))),vt(l,(()=>yt(t,o,e)))},vt=(t,e)=>mt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),mt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,yt=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=L(e),s=a.get(i);if(!p.document)return i;if(t=11===t.nodeType?t:p.document,s)if("string"==typeof s){let l,r=A.get(t=t.head||t);if(r||A.set(t,r=new Set),!r.has(i)){l=p.document.createElement("style"),l.textContent=s;const c=null!=(n=h.L)?n:C(p.document);if(null!=c&&l.setAttribute("nonce",c),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(m){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),y?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=A.get(t);if(e||A.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}y?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);bt(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>wt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},bt=(t,e,n,o)=>{try{e=e.render&&e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.o,i=t.P||T(null,null),s=(t=>t&&t.O===D)(e)?e:R(null,null,e);if(N=o.tagName,l.R&&(s.m=s.m||{},l.R.forEach((([t,e])=>{s.m[e]=o[t]}))),n&&s.m)for(const t of Object.keys(s.m))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.m[t]=o[t]);s.O=null,s.u|=4,t.P=s,s.S=i.S=o.shadowRoot||o,x=o["s-sc"],tt=!(!(1&l.u)||128&l.u),ct(i,s,n),nt.forEach((t=>t())),nt.length=0,ot.forEach((t=>t())),ot.length=0})(t,e,o)}catch(e){r(e,t.$hostElement$)}return null},wt=t=>{const e=t.$hostElement$,n=t.i,o=t.C;$t(n,"componentDidRender",void 0,e),64&t.u?$t(n,"componentDidUpdate",void 0,e):(t.u|=64,jt(e),$t(n,"componentDidLoad",void 0,e),t.T(e),o||gt()),t.D(e),t.M&&(t.M(),t.M=void 0),512&t.u&&k((()=>pt(t,!1))),t.u&=-517},gt=()=>{k((()=>B(p,"appload",{detail:{namespace:"lime-crm-building-blocks"}})))},$t=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){r(t,o)}},jt=t=>t.classList.add("hydrated"),Ot=(t,e,n,o)=>{const i=l(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${o.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.$hostElement$,c=i.l.get(e),u=i.u,f=i.i;if(n=F(n,o.t[e][0]),!(8&u&&void 0!==c||n===c||Number.isNaN(c)&&Number.isNaN(n))){if(i.l.set(e,n),o.H){const t=o.H[e];t&&t.map((t=>{try{const[[o,l]]=Object.entries(t);(128&u||1&l)&&(f?f[o](n,c,e):i.A.push((()=>{i.i[o](n,c,e)})))}catch(t){r(t,s)}}))}if(2&u){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(n,c,e)&&!(16&u))return;16&u||pt(i,!1)}}},St=(e,n,o)=>{var i,s;const r=e.prototype;{e.watchers&&!n.H&&(n.H=z(e.watchers)),e.deserializers&&!n.U&&(n.U=e.deserializers),e.serializers&&!n.W&&(n.W=e.serializers);const c=Object.entries(null!=(i=n.t)?i:{});if(c.map((([e,[i]])=>{if(31&i||2&o&&32&i){const{get:s,set:c}=t(r,e)||{};s&&(n.t[e][0]|=2048),c&&(n.t[e][0]|=4096),(1&o||!s)&&Object.defineProperty(r,e,{get(){{if(!(2048&n.t[e][0]))return((t,e)=>l(this).l.get(e))(0,e);const t=l(this),o=t?t.i:r;if(!o)return;return o[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,e,{set(t){const s=l(this);if(s){if(c)return void 0===(32&i?this[e]:s.$hostElement$[e])&&s.l.get(e)&&(t=s.l.get(e)),c.call(this,F(t,i)),void Ot(this,e,t=32&i?this[e]:s.$hostElement$[e],n);{if(!(1&o&&4096&n.t[e][0]))return Ot(this,e,t,n),void(1&o&&!s.i&&s.A.push((()=>{4096&n.t[e][0]&&s.i[e]!==s.l.get(e)&&(s.i[e]=t)})));const l=F(t,i),r=t=>{const o=s.i[e];!s.l.get(e)&&o&&s.l.set(e,o),s.i[e]=t,Ot(this,e,s.i[e],n)};s.i?r(l):(s.l.set(e,l),s.A.push((()=>{const t=s.l.get(e);s.i[e]!==t&&r(t)})))}}}})}else 1&o&&64&i&&Object.defineProperty(r,e,{value(...t){var n;const o=l(this);return null==(n=null==o?void 0:o.F)?void 0:n.then((()=>{var n;return null==(n=o.i)?void 0:n[e](...t)}))}})})),1&o){const t=new Map;r.attributeChangedCallback=function(e,o,i){h.jmp((()=>{var s;const u=t.get(e),f=l(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&i!==o){const l=f.i,r=null==(s=n.H)?void 0:s[e];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=l[s]&&(128&t||1&r)&&l[s].call(l,i,o,e)}))}return}const a=c.find((([t])=>t===u)),d=a?a[1][0]:0,p=4&d;if(512&d&&8&d&&!P(this[u])&&(t=>null==t||!1===t?null:!0===t?"":t+"")(this[u])===i)return;const h=p&&null===i&&void 0===this[u];p&&(i=null!==i&&"false"!==i);const v=4096&d?f.l.get(u):this[u],m=Object.getOwnPropertyDescriptor(r,u);h||i==v||m.get&&!m.set||(this[u]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.H)?s:{}),...c.filter((([t,e])=>31&e[0])).map((([e,o])=>{var l;const i=o[1]||e;return t.set(i,e),512&o[0]&&(null==(l=n.R)||l.push([e,i])),i}))]))}}return e},kt=async(t,e,n)=>{var o;let l;try{if(!(32&e.u)){if(e.u|=32,e.u&=-1025,n.V){const i=((t,e)=>{var n;const o=t.h.replace(/-/g,"_"),l=t.V;if(!l)return;const i=u.get(l);if(i)return i[o];const s=null!=(n=f.get(l))?n:0,c=[s>0?"s-retry="+s:"",""].filter(Boolean).join("&");
|
|
2
2
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
3
|
-
return import(`./${l}.entry.js${c?"?"+c:""}`).then((t=>(f.delete(l),u.set(l,t),t[o])),(t=>{f.set(l,s+1),r(t,e.$hostElement$)}))})(n,e);if(i&&"then"in i){const t=()=>{};l=await i,t()}else l=i;if(!l)throw e.u&=-33,e.
|
|
3
|
+
return import(`./${l}.entry.js${c?"?"+c:""}`).then((t=>(f.delete(l),u.set(l,t),t[o])),(t=>{f.set(l,s+1),r(t,e.$hostElement$)}))})(n,e);if(i&&"then"in i){const t=()=>{};l=await i,t()}else l=i;if(!l)throw e.u&=-33,e.q=(null!=(o=e.q)?o:0)+1,e.q<3&&(e.u|=1024),Error(`Constructor for "${n.h}#${e.B}" was not found`);l.isProxied||(n.H=z(l.watchers),n.W=l.serializers,n.U=l.deserializers,St(l,n,2),l.isProxied=!0);const s=()=>{};e.u|=8;try{new l(e)}catch(e){r(e,t)}e.u&=-9,e.u|=128,s(),Et(e.i,t)}else l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(l&&l.style){let t;"string"==typeof l.style&&(t=l.style);const e=L(n);if(!a.has(e)){const o=()=>{};((t,e,n)=>{let o=a.get(t);m&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,a.set(t,o)})(e,t,!!(1&n.u)),o()}}}const i=e.C,s=()=>pt(e,!0);i&&i["s-rc"]?i["s-rc"].push(s):s()}catch(n){r(n,t),e.M&&(e.M(),e.M=void 0),!e.T||1024&e.u||e.T(t)}},Et=(t,e)=>{$t(t,"connectedCallback",void 0,e)},Mt=(t,e)=>{$t(t,"disconnectedCallback",void 0,e||t)},Ct=(t,e={})=>{var n;if(!p.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],i=e.exclude||[],s=p.customElements,r=p.document.head,c=r.querySelector("meta[charset]"),u=p.document.createElement("style"),f=[];let a,d=!0;if(Object.assign(h,e),h.p=new URL(e.resourcesUrl||"./",p.document.baseURI).href,t.map((t=>{t[1].map((e=>{var n,r;const c={u:e[0],h:e[1],t:e[2],G:e[3]};c.t=e[2],c.G=e[3],c.R=[],c.H=z(e[4]),c.W=null!=(n=e[5])?n:{},c.U=null!=(r=e[6])?r:{};const u=c.h,p=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,I:new Map};n.F=new Promise((t=>n.D=t)),n.Y=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],n.A=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,c),1&c.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else M.call(t,c)}connectedCallback(){const t=l(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,xt(this,t,c.G)),a&&(clearTimeout(a),a=null),d?f.push(this):h.jmp((()=>(t=>{if(!(1&h.u)){const e=l(t);if(!e)return;const n=e.o,o=()=>{};if(1&e.u)xt(t,e,n.G),(null==e?void 0:e.i)?Et(e.i,t):1024&e.u?setTimeout((()=>kt(t,e,n)),1e3):(null==e?void 0:e.Y)&&e.Y.then((()=>Et(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){dt(e,e.C=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),kt(t,e,n)}o()}})(this))))}disconnectedCallback(){h.jmp((()=>(async t=>{if(!(1&h.u)){const e=l(t);(null==e?void 0:e.Z)&&(e.Z.map((t=>t())),e.Z=void 0),(null==e?void 0:e.i)?Mt(e.i,t):(null==e?void 0:e.Y)&&e.Y.then((()=>Mt(e.i,t)))}A.has(t)&&A.delete(t),t.shadowRoot&&A.has(t.shadowRoot)&&A.delete(t.shadowRoot)})(this))),k((()=>{var t;const e=l(this);if(!e)return;const n=f.findIndex((t=>t===this));n>-1&&f.splice(n,1),(null==(t=null==e?void 0:e.P)?void 0:t.S)instanceof Node&&!e.P.S.isConnected&&delete e.P.S}))}componentOnReady(){var t;return null==(t=l(this))?void 0:t.Y}};c.V=t[0],i.includes(u)||s.get(u)||(o.push(u),s.define(u,St(p,c,1)))}))})),o.length>0&&(u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(n=h.L)?n:C(p.document);null!=t&&u.setAttribute("nonce",t),r.insertBefore(u,c?c.nextSibling:r.firstChild)}d=!1,f.length?f.map((t=>t.connectedCallback())):h.jmp((()=>a=setTimeout(gt,30)))},xt=(t,e,n)=>{n&&p.document&&n.map((([n,o,l])=>{const i=t,s=Nt(e,l),r=At(n);h.ael(i,o,s,r),(e.Z=e.Z||[]).push((()=>h.rel(i,o,s,r)))}))},Nt=(t,e)=>n=>{var o;try{256&t.u?null==(o=t.i)||o[e](n):(t.N=t.N||[]).push([e,n])}catch(e){r(e,t.$hostElement$)}},At=t=>({passive:!!(1&t),capture:!!(2&t)}),Lt=t=>h.L=t;export{D as H,c as a,Ct as b,q as c,V as g,R as h,v as p,i as r,Lt as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-f_mBf1UZ.js";const o=class{constructor(i){t(this,i),this.change=e(this,"change"),this.getOptionValue=t=>t.value,this.getAffixValue=t=>{if(t.value)return[t.value]},this.handleChangeOptions=(t,e=t=>t)=>i=>{i.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{options:Object.assign(Object.assign({},this.value.options),{[t]:e(i.detail)||void 0})}))},this.handleChangeAffix=t=>e=>{e.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{[t]:this.getAffixValue(e.detail)}))}}render(){return[this.renderNotation(),this.renderCompactDisplay(),this.renderAffix("prefix"),this.renderAffix("suffix")]}renderNotation(){const t=[{text:"Standard",value:"standard"},{text:"Compact",value:"compact"}],e=t.find((t=>{var e;return t.value===(null===(e=this.value.options)||void 0===e?void 0:e.notation)}));return i("limel-select",{label:"Notation",helperText:"The formatting that should be displayed for the number",options:t,value:e,onChange:this.handleChangeOptions("notation",this.getOptionValue)})}renderCompactDisplay(){const t=[{text:"Short",value:"short"},{text:"Long",value:"long"}],e=t.find((t=>{var e;return t.value===(null===(e=this.value.options)||void 0===e?void 0:e.compactDisplay)}));return i("limel-select",{label:"Compact display",options:t,value:e,onChange:this.handleChangeOptions("compactDisplay",this.getOptionValue)})}renderAffix(t){const e=[{text:"",value:""},{text:"Compact notation",value:"compact"}],o=e.find((e=>{var i;return e.value&&(null===(i=this.value[t])||void 0===i?void 0:i.includes(e.value))}));return i("limel-select",{label:t.charAt(0).toUpperCase()+t.slice(1),options:e,value:o,onChange:this.handleChangeAffix(t)})}};export{o as limebb_info_tile_decimal_format}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as r}from"./p-
|
|
1
|
+
import{r as t,c as e,h as r}from"./p-f_mBf1UZ.js";const o=class{constructor(r){t(this,r),this.change=e(this,"change"),this.getOptionValue=t=>t.value||void 0,this.handleChangeOptions=(t,e=t=>t)=>r=>{r.stopPropagation(),this.change.emit(Object.assign(Object.assign({},this.value),{options:Object.assign(Object.assign({},this.value.options),{[t]:e(r.detail)||void 0})}))}}render(){return[this.renderStyle(),this.renderNumeric()]}renderStyle(){const t=[{value:"long",text:"Long"},{value:"narrow",text:"Narrow"},{value:"short",text:"Short"}],e=t.find((t=>{var e;return t.value&&t.value===(null===(e=this.value.options)||void 0===e?void 0:e.style)}));return r("limel-select",{label:"Style",helperText:"The style of the formatted relative time",options:t,value:e,onChange:this.handleChangeOptions("style",this.getOptionValue)})}renderNumeric(){const t=[{value:"always",text:"Always",secondaryText:'E.g. "in 1 day"'},{value:"auto",text:"Auto",secondaryText:'E.g. "tomorrow"'}],e=t.find((t=>{var e;return t.value&&t.value===(null===(e=this.value.options)||void 0===e?void 0:e.numeric)}));return r("limel-select",{label:"Numeric",helperText:"Whether to use numeric values in the output",options:t,value:e,onChange:this.handleChangeOptions("numeric",this.getOptionValue)})}};export{o as limebb_info_tile_relative_date_format}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as i,h as t}from"./p-
|
|
1
|
+
import{r as e,c as i,h as t}from"./p-f_mBf1UZ.js";import{n as o}from"./p-B6a_-5iN.js";function r(e){for(const i of e.items)e.processedItems.push({type:"notification",item:i});return e}function n(e){const i=[];let t=e.newItemIndicatorInserted;for(const o of e.processedItems)"notification"===o.type&&e.lastVisitedTimestamp&&!t&&new Date(o.item.timestamp)<=e.lastVisitedTimestamp&&e.hasUnseenNotifications&&(i.push({type:"newItemIndicator"}),t=!0),i.push(o);return e.processedItems=i,e.newItemIndicatorInserted=t,e}function a(e){const i=[];let t=null,o=null;for(const r of e.processedItems)if("notification"===r.type){const n=new Date(r.item.timestamp),a=e.dateTimeFormatter.format(n,"date");a!==o&&(t&&i.push(t),t={type:"group",groupType:"dateGroup",heading:a,items:[]},o=a),t&&t.items.push(r)}else"newItemIndicator"===r.type&&(t?t.items.push(r):i.push(r));return t&&i.push(t),Object.assign(Object.assign({},e),{processedItems:i})}const s=class{constructor(t){e(this,t),this.itemClick=i(this,"itemClick"),this.items=[],this.processedItems=[],this.handleItemClick=e=>{this.itemClick.emit(e.detail)}}handleItemsChange(){let e=null;var i,t,o,s;this.lastVisitedTimestamp&&(e="string"==typeof(s=this.lastVisitedTimestamp)?new Date(Date.parse(s)):new Date(s)),this.processedItems=(o={items:i=this.items,processedItems:[],lastVisitedTimestamp:t=e,dateTimeFormatter:this.dateTimeFormatter,newItemIndicatorInserted:!1,lastProcessedDate:null,hasUnseenNotifications:i.some((e=>t&&new Date(e.timestamp)>t))},[r,n,a].reduce(((e,i)=>i(e)),o)).processedItems}componentWillLoad(){this.handleItemsChange()}render(){return[this.renderSpinner(),this.renderNotificationItems()]}renderSpinner(){if(this.loading)return t("limel-spinner",{size:"small"})}renderNotificationItems(){return this.processedItems.map((e=>{switch(e.type){case"group":return this.renderGroup(e);case"newItemIndicator":return this.renderIndicator();default:return null}}))}renderGroup(e){return t("section",{class:"date-group"},t("a",{class:"date-heading"},e.heading),e.items.map((e=>"notification"===e.type?this.renderNotificationItem(e.item):"newItemIndicator"===e.type?this.renderIndicator():void 0)))}renderNotificationItem(e){return t("limebb-notification-item",{platform:this.platform,context:this.context,item:e,key:e.id,onInteract:this.handleItemClick})}renderIndicator(){return t("div",{class:"new-items-indicator"},t("hr",null),t("h3",null,this.translator.get("webclient.new")))}get dateTimeFormatter(){return this.platform.get(o.DateTimeFormatter)}get translator(){return this.platform.get(o.Translate)}static get watchers(){return{items:[{handleItemsChange:0}]}}};s.style='@charset "UTF-8";:host(limebb-notification-list){--limebb-notification-list-background-color:var( --notification-list-background-color, rgb(var(--contrast-300)) );display:flex;flex-direction:column;gap:1rem;max-width:45rem;background-color:var(--limebb-notification-list-background-color);padding:0.5rem}limebb-notification-item:focus{outline:none}limebb-notification-item:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}limebb-notification-item:not(.is-read){--limebb-notification-item-unread-badge-color:rgb( var(--color-red-default) );--limebb-notification-item-unread-badge-scale:1;background-color:rgb(var(--contrast-100)) !important}limebb-notification-item.is-clickable{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:focus,limebb-notification-item.is-clickable:focus-visible{will-change:color, background-color, box-shadow, transform}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}limebb-notification-item.is-clickable:hover{box-shadow:var(--button-shadow-hovered)}limebb-notification-item.is-clickable:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}limebb-notification-item.is-clickable:hover,limebb-notification-item.is-clickable:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}limebb-notification-item.is-clickable:hover{border-color:transparent}limebb-notification-item.is-read{border-color:rgb(var(--contrast-600));background-color:rgb(var(--contrast-500))}limebb-notification-item.is-selected{box-shadow:var(--shadow-focused-state)}limebb-notification-item.is-selected:hover{box-shadow:var(--shadow-focused-state), var(--button-shadow-hovered)}limel-spinner{align-self:center;justify-self:center;margin:auto}.date-group{isolation:isolate;display:flex;flex-direction:column;gap:0.5rem}.date-heading{position:sticky;z-index:1;top:0.25rem;display:flex;border-radius:9rem;padding:0.25rem 0.5rem;margin:0;width:fit-content;font-size:0.75rem;line-height:1;color:rgb(var(--contrast-900));backdrop-filter:blur(0.5rem);-webkit-backdrop-filter:blur(0.5rem);transition:color 0.2s ease, border-color 0.4s ease}.date-heading:hover{color:rgb(var(--contrast-1000));border-color:rgb(var(--contrast-500))}.date-heading:hover:before{opacity:1}.date-heading:before{transition:opacity 0.2s ease;content:"";position:absolute;z-index:-1;inset:0;opacity:0.6;border-radius:inherit;background-color:var(--limebb-notification-list-background-color)}.new-items-indicator{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:flex-end;margin:0.25rem 0}.new-items-indicator hr{border:none;position:absolute;width:100%;height:1px;background-color:rgb(var(--color-red-lighter))}.new-items-indicator h3{z-index:1;padding:0 0.5rem;border-radius:1rem;margin:0 1rem;font-size:small;line-height:0.75rem;text-transform:lowercase;color:rgb(var(--color-red-default));background-color:var(--limebb-notification-list-background-color)}';export{s as limebb_notification_list}
|
|
@@ -20,13 +20,18 @@ export declare class InlineImage {
|
|
|
20
20
|
*/
|
|
21
21
|
width?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Height the image had when it was saved (e.g. `300` or `300px`). Never
|
|
24
|
+
* applied as a fixed height, as that would squeeze the image when its
|
|
25
|
+
* width shrinks. Together with `width`, it only yields the aspect ratio
|
|
26
|
+
* reserved before the image has loaded.
|
|
24
27
|
*/
|
|
25
28
|
height?: string;
|
|
26
29
|
private appName;
|
|
27
30
|
connectedCallback(): void;
|
|
28
31
|
render(): any;
|
|
29
32
|
private hasPlatform;
|
|
33
|
+
private getAspectRatio;
|
|
34
|
+
private toPixels;
|
|
30
35
|
private toCssSize;
|
|
31
36
|
}
|
|
32
37
|
//# sourceMappingURL=inline-image.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LimeWebComponentPlatform } from '@limetech/lime-web-components';
|
|
2
|
+
import { MarkdownDescribable } from '@limetech/lime-elements';
|
|
2
3
|
/**
|
|
3
4
|
* Object chip
|
|
4
5
|
*
|
|
@@ -16,7 +17,7 @@ import { LimeWebComponentPlatform } from '@limetech/lime-web-components';
|
|
|
16
17
|
* @exampleComponent limebb-example-object-chip-size
|
|
17
18
|
* @beta
|
|
18
19
|
*/
|
|
19
|
-
export declare class ObjectChip {
|
|
20
|
+
export declare class ObjectChip implements MarkdownDescribable {
|
|
20
21
|
/**
|
|
21
22
|
* Name of the limetype of the object.
|
|
22
23
|
*/
|
|
@@ -42,10 +43,22 @@ export declare class ObjectChip {
|
|
|
42
43
|
platform?: LimeWebComponentPlatform;
|
|
43
44
|
private data;
|
|
44
45
|
private resolver;
|
|
46
|
+
private waiting;
|
|
45
47
|
connectedCallback(): void;
|
|
46
48
|
disconnectedCallback(): void;
|
|
49
|
+
/**
|
|
50
|
+
* The chip as a markdown link, for text that leaves the application:
|
|
51
|
+
* the object's descriptive pointing at the object's absolute URL.
|
|
52
|
+
* Resolves once the object has loaded, or failed to; the limetype
|
|
53
|
+
* and id stand in for the descriptive when there is none.
|
|
54
|
+
*
|
|
55
|
+
* @returns the link, as markdown
|
|
56
|
+
*/
|
|
57
|
+
toMarkdown(): Promise<string>;
|
|
47
58
|
protected handlePropChange(): void;
|
|
48
59
|
render(): any;
|
|
60
|
+
private settled;
|
|
61
|
+
private releaseWaiting;
|
|
49
62
|
private getChipText;
|
|
50
63
|
private getErrorText;
|
|
51
64
|
}
|
|
@@ -1452,7 +1452,7 @@ export namespace Components {
|
|
|
1452
1452
|
*/
|
|
1453
1453
|
"alt": string;
|
|
1454
1454
|
/**
|
|
1455
|
-
*
|
|
1455
|
+
* Height the image had when it was saved (e.g. `300` or `300px`). Never applied as a fixed height, as that would squeeze the image when its width shrinks. Together with `width`, it only yields the aspect ratio reserved before the image has loaded.
|
|
1456
1456
|
*/
|
|
1457
1457
|
"height"?: string;
|
|
1458
1458
|
/**
|
|
@@ -2386,6 +2386,11 @@ export namespace Components {
|
|
|
2386
2386
|
* @default 'default'
|
|
2387
2387
|
*/
|
|
2388
2388
|
"size": 'small' | 'default';
|
|
2389
|
+
/**
|
|
2390
|
+
* The chip as a markdown link, for text that leaves the application: the object's descriptive pointing at the object's absolute URL. Resolves once the object has loaded, or failed to; the limetype and id stand in for the descriptive when there is none.
|
|
2391
|
+
* @returns the link, as markdown
|
|
2392
|
+
*/
|
|
2393
|
+
"toMarkdown": () => Promise<string>;
|
|
2389
2394
|
}
|
|
2390
2395
|
/**
|
|
2391
2396
|
* This component generates a visualization that displays a percentage value
|
|
@@ -6898,7 +6903,7 @@ declare namespace LocalJSX {
|
|
|
6898
6903
|
*/
|
|
6899
6904
|
"alt"?: string;
|
|
6900
6905
|
/**
|
|
6901
|
-
*
|
|
6906
|
+
* Height the image had when it was saved (e.g. `300` or `300px`). Never applied as a fixed height, as that would squeeze the image when its width shrinks. Together with `width`, it only yields the aspect ratio reserved before the image has loaded.
|
|
6902
6907
|
*/
|
|
6903
6908
|
"height"?: string;
|
|
6904
6909
|
/**
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Lime CRM object as a markdown link, for text that leaves the
|
|
3
|
+
* application. The link text is escaped so it renders literally: it
|
|
4
|
+
* cannot end the link, open another, or carry HTML, entities or
|
|
5
|
+
* formatting. The URL is absolute, resolved against the page's
|
|
6
|
+
* base the same way the chip's own relative link is.
|
|
7
|
+
*
|
|
8
|
+
* @param text - the link text, typically the object's descriptive
|
|
9
|
+
* @param limetype - the object's limetype
|
|
10
|
+
* @param objectid - the object's id
|
|
11
|
+
* @returns the link, as markdown
|
|
12
|
+
*/
|
|
13
|
+
export declare function objectMarkdownLink(text: string, limetype: string, objectid: number): string;
|
|
14
|
+
//# sourceMappingURL=object-markdown.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-crm-building-blocks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "A home for shared components meant for use with Lime CRM",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@limetech/eslint-config": "^4.1.0",
|
|
37
|
-
"@limetech/lime-elements": "^
|
|
38
|
-
"@limetech/lime-web-components": "^7.
|
|
39
|
-
"@lundalogik/lime-icons8": "^2.
|
|
40
|
-
"@lundalogik/limeclient.js": "^1.
|
|
41
|
-
"@stencil/core": "^4.45.
|
|
37
|
+
"@limetech/lime-elements": "^40.6.0",
|
|
38
|
+
"@limetech/lime-web-components": "^7.5.0",
|
|
39
|
+
"@lundalogik/lime-icons8": "^2.42.0",
|
|
40
|
+
"@lundalogik/limeclient.js": "^1.116.0",
|
|
41
|
+
"@stencil/core": "^4.45.1",
|
|
42
42
|
"@stencil/sass": "^3.3.3",
|
|
43
43
|
"@stencil/vitest": "^1.15.1",
|
|
44
44
|
"@types/json-schema": "^7.0.15",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"cross-env": "^10.1.0",
|
|
48
48
|
"currency-codes": "^2.2.0",
|
|
49
49
|
"date-fns": "^4.4.0",
|
|
50
|
-
"eslint": "^10.
|
|
50
|
+
"eslint": "^10.11.0",
|
|
51
51
|
"fs": "^0.0.1-security",
|
|
52
52
|
"globals": "^17.12.0",
|
|
53
53
|
"happy-dom": "^20.14.5",
|
|
54
54
|
"kompendium": "npm:@limetech/kompendium@^1.3.0",
|
|
55
55
|
"lodash-es": "^4.18.1",
|
|
56
|
-
"prettier": "^3.9.
|
|
56
|
+
"prettier": "^3.9.9",
|
|
57
57
|
"replace-in-file": "^7.2.0",
|
|
58
58
|
"shelljs": "^0.10.0",
|
|
59
59
|
"vitest": "^4.1.9",
|
|
60
|
-
"yargs": "^18.
|
|
60
|
+
"yargs": "^18.2.0"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as o}from"./p-BK566_jX.js";import{M as i}from"./p-DhGRAeCH.js";const s=class{constructor(o){e(this,o),this.change=t(this,"change"),this.value={},this.handleExpressionChange=e=>{e.stopPropagation(),this.change.emit({expression:e.detail})}}render(){var e,t;const i=null===(e=this.resolvedContext)||void 0===e?void 0:e.limetype;return i?o("limebb-lime-query-filter-builder",{platform:this.platform,context:this.context,limetype:i,expression:null===(t=this.value)||void 0===t?void 0:t.expression,onExpressionChange:this.handleExpressionChange}):o("limel-callout",{type:"note"},"Select a limetype on the surface to author a filter.")}};(function(e,t,o,i){var s,r=arguments.length,l=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(l=(r<3?s(l):r>3?s(t,o,l):s(t,o))||l);r>3&&l&&Object.defineProperty(t,o,l)})([i("context")],s.prototype,"resolvedContext",void 0),s.style=":host{display:block}";export{s as limebb_rule_arg_filter_editor}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{R as limebb_rule_condition_editor}from"./p-ClYOFrOo.js";import"./p-BK566_jX.js";import"./p-Cve-3L4y.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as i}from"./p-BK566_jX.js";import{k as s}from"./p-DhGRAeCH.js";import{L as r}from"./p-Cve-3L4y.js";import{c as n}from"./p-DOULPRTn.js";const a=class{constructor(i){e(this,i),this.negateChange=t(this,"negateChange"),this.conditionChange=t(this,"conditionChange"),this.open=!1,this.readonly=!1,this.disabled=!1,this.handleNegate=e=>{e.stopPropagation(),this.negateChange.emit(e.detail)},this.handleConditionChange=e=>{e.stopPropagation(),this.conditionChange.emit(e.detail)}}render(){return this.open?[this.renderHeader(),this.renderBody()]:null}renderHeader(){return void 0===this.negated?null:i("limel-header",{class:"header is-narrow",heading:this.heading,icon:this.icon},this.renderNegate())}renderNegate(){return this.readonly?null:i("div",{slot:"actions",class:"header-actions"},i("limel-switch",{class:"negate",label:this.negateLabel,value:this.negated,disabled:this.disabled,onChange:this.handleNegate}))}renderBody(){return this.editor?i(r,{class:"editor",platform:this.platform,context:this.context,name:this.editor.name,props:Object.assign(Object.assign({},this.editor.props),{value:this.value,readonly:this.readonly,disabled:this.disabled,onConditionChange:this.handleConditionChange})}):null}get negateLabel(){return n(this.platform)("webclient.negate","Negate")}};(function(e,t,i,s){var r,n=arguments.length,a=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);n>3&&a&&Object.defineProperty(t,i,a)})([s("context")],a.prototype,"context",void 0),a.style=":host{display:contents}limel-header.header{--header-background-color:rgba(var(--contrast-300));padding-right:0.5rem;gap:1rem}.header-actions{display:grid;grid-auto-flow:column;grid-gap:0.75rem;padding:0.25rem;align-items:center}";export{a as limebb_condition_tree_editor}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,g as s}from"./p-BK566_jX.js";import{n as r,s as n,c as o,I as h,_ as a}from"./p-DhGRAeCH.js";import{A as c,a as u,b as l,E as f,T as d}from"./p-CwMJvF_Z.js";import{o as m,U as v,c as p,a as b,d as g,n as y,i as j,S as w,g as x}from"./p-CtcTT7BK.js";import{d as O}from"./p-Ceen0vzd.js";import{c as k,e as C,S,i as T,a as A,r as I}from"./p-BgAfMcRA.js";import{c as E}from"./p-C2JP2nLw.js";import{h as F,b as M,c as N}from"./p-7DQ7qvMa.js";import{i as _}from"./p-CkTg5UPD.js";import{g as D}from"./p-Oswz9F3I.js";import{i as P}from"./p-6PYziigk.js";var R=/\s/,U=/^\s+/;var $=/^[-+]0x[0-9a-f]+$/i,z=/^0b[01]+$/i,L=/^0o[0-7]+$/i,G=parseInt;function B(t){if("number"==typeof t)return t;if(P(t))return NaN;if(k(t)){var i="function"==typeof t.valueOf?t.valueOf():t;t=k(i)?i+"":i}if("string"!=typeof t)return 0===t?t:+t;var e;t=(e=t)?e.slice(0,function(t){for(var i=t.length;i--&&R.test(t.charAt(i)););return i}(e)+1).replace(U,""):e;var s=z.test(t);return s||L.test(t)?G(t.slice(2),s?2:8):$.test(t)?NaN:+t}var Q=Object.create,q=function(){function t(){}return function(i){if(!k(i))return{};if(Q)return Q(i);t.prototype=i;var e=new t;return t.prototype=void 0,e}}(),H=Object.prototype.hasOwnProperty;var K=m(Object.getPrototypeOf,Object);"object"==typeof exports&&exports&&!exports.nodeType&&exports&&"object"==typeof module&&module&&!module.nodeType&&module;var W=Object.prototype.hasOwnProperty;function J(t){var i=new t.constructor(t.byteLength);return new v(i).set(new v(t)),i}var V=/\w*$/,X=S?S.prototype:void 0,Y=X?X.valueOf:void 0;var Z=y&&y.isMap,tt=Z?g(Z):function(t){return T(t)&&"[object Map]"==b(t)},it=y&&y.isSet,et=it?g(it):function(t){return T(t)&&"[object Set]"==b(t)},st="[object Arguments]",rt="[object Function]",nt="[object Object]",ot={};function ht(t,i,e,s,r,n){var o;if(void 0!==o)return o;if(!k(t))return t;var h=A(t);if(h)o=function(t){var i=t.length,e=new t.constructor(i);return i&&"string"==typeof t[0]&&W.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t);else{var a=b(t),c=a==rt||"[object GeneratorFunction]"==a;if(j(t))return t.slice();if(a==nt||a==st||c&&!r)o=c?{}:function(t){return"function"!=typeof t.constructor||p(t)?{}:q(K(t))}(t);else{if(!ot[a])return r?t:{};o=function(t,i){var e,s,r,n,o=t.constructor;switch(i){case"[object ArrayBuffer]":return J(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return n=J((r=t).buffer),new r.constructor(n,r.byteOffset,r.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t){var i=J(t.buffer);return new t.constructor(i,t.byteOffset,t.length)}(t);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return(s=new(e=t).constructor(e.source,V.exec(e))).lastIndex=e.lastIndex,s;case"[object Symbol]":return Y?Object(Y.call(t)):{}}}(t,a)}}n||(n=new w);var u=n.get(t);if(u)return u;n.set(t,o),et(t)?t.forEach((function(s){o.add(ht(s,i,e,0,t,n))})):tt(t)&&t.forEach((function(s,r){o.set(r,ht(s,i,e,0,t,n))}));var l=h?void 0:x(t);return function(t,i){for(var e=-1,s=null==t?0:t.length;++e<s&&!1!==i(t[e],e););}(l||t,(function(s,r){l&&(s=t[r=s]),function(t,i,e){var s=t[i];H.call(t,i)&&C(s,e)&&(void 0!==e||i in t)||function(t,i,e){"__proto__"==i&&O?O(t,i,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[i]=e}(t,i,e)}(o,r,ht(s,i,e,0,t,n))})),o}ot[st]=ot["[object Array]"]=ot["[object ArrayBuffer]"]=ot["[object DataView]"]=ot["[object Boolean]"]=ot["[object Date]"]=ot["[object Float32Array]"]=ot["[object Float64Array]"]=ot["[object Int8Array]"]=ot["[object Int16Array]"]=ot["[object Int32Array]"]=ot["[object Map]"]=ot["[object Number]"]=ot[nt]=ot["[object RegExp]"]=ot["[object Set]"]=ot["[object String]"]=ot["[object Symbol]"]=ot["[object Uint8Array]"]=ot["[object Uint8ClampedArray]"]=ot["[object Uint16Array]"]=ot["[object Uint32Array]"]=!0,ot["[object Error]"]=ot[rt]=ot["[object WeakMap]"]=!1;var at=function(){return I.Date.now()},ct=Math.max,ut=Math.min;class lt{get limeObjectService(){return this.platform.get(r.LimeObjectRepository)}get queryService(){return this.platform.get(r.Query)}get viewFactoryRegistry(){return this.platform.get(r.ViewFactoryRegistry)}get contextRegistry(){return this.platform.get(r.ContextRegistry)}get translator(){var t;return null===(t=this.platform)||void 0===t?void 0:t.get(r.Translate)}get triggerCharacter(){return this._triggerCharacter}get triggerHandler(){return this._triggerHandler}constructor(t,i,e,s){this.platform=t,this.context=i,this.searchableLimetypes=e,this.host=s,this.groupCounts={},this._triggerCharacter="@",this._triggerHandler={searcher:t=>this.searcher(t),inserter:(t,i)=>this.inserter(t,i),emptySearchMessage:"Start typing a name...",noItemsFoundMessage:"No results for your search...",nodeDefinition:{customElement:{tagName:"limebb-mention",attributes:["limetype","objectid","href"]},mapAttributes:t=>({limetype:t.value.getLimetype().name,objectid:t.value.id,href:`object/${this.context.limetype}/${this.context.id}`})}},this.searcher=async t=>{if(!t)return[];const{objects:i}=await this.limeObjectService.search(t,this.searchableLimetypes,10);return this.createSearchListItems(i)},this.inserter=async(t,i)=>{var e;const s=this.triggerHandler.nodeDefinition;s&&t.insert({node:{tagName:s.customElement.tagName,attributes:s.mapAttributes(i)},children:[null===(e=i.value)||void 0===e?void 0:e.descriptive]})}}async initialize(){await this.loadGroupCounts()}async loadGroupCounts(){const t=this.searchableLimetypes.filter((t=>!M(t,"user")&&F(t,"user"))).map((t=>this.getGroupCounts(t)));for(const i of await Promise.all(t))Object.assign(this.groupCounts,i)}async getGroupCounts(t){var i;const e=N(t,"user"),s=t.name;try{const t=await this.queryService.execute({limetype:s,responseFormat:{object:{_id:null,[e.name]:{count:{aggregate:{op:n.Count}}}}}});if(!(null===(i=t.objects)||void 0===i?void 0:i.length))return{[s]:{}};const r=this.createGroupCount(t.objects,e.name);return{[s]:r}}catch(i){return console.error(`Error fetching group count for limetype: ${t.name}`,i),{[s]:{}}}}createGroupCount(t,i){const e={};for(const s of t){const{_id:t,[i]:r}=s;e[t]=r.count}return e}createSearchListItems(t=[]){return t.map((t=>this.createSearchListItem(t))).filter(_)}createSearchListItem(t){const i=this.viewFactoryRegistry.getFactory("search"),e=this.limeObjectService.getObject(t._limetype,t._id);if(!e)return null;const s=i(e,this.contextRegistry.scope({host:this.host})),r=this.getGroupCountComponent(e);return Object.assign(Object.assign({},s),r?{primaryComponent:r}:{})}getGroupCountComponent(t){var i;const e=t.getLimetype(),s=null===(i=this.groupCounts[e.name])||void 0===i?void 0:i[t.id],r=N(e,"user");if(void 0!==s&&r)return{name:"limebb-mention-group-counter",props:{count:s,limetype:r.relation.getLimetype(),helperLabel:this.translator.get("webclient.notification-center.members-will-be-notified")}}}}class ft{constructor(t,i){this.file=t,this.http=i,this.uploadCancelled=!1,this.getUrl=t=>`api/v1/file/${null!=t?t:""}`}async initialize(){this.uploadService=await this.http.createFileUpload(o.Post,this.getUrl(),this.file),this.progressCallback&&(this.uploadService.onProgress=this.progressCallback)}async upload(){return this.uploadService.upload()}getFileName(){return this.file.name}cancel(){this.uploadService.cancel(),this.uploadCancelled=!0}set onProgress(t){this.progressCallback=t,this.uploadService&&(this.uploadService.onProgress=t)}}var dt=function(t,i,e,s){var r,n=arguments.length,o=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,s);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(o=(n<3?r(o):n>3?r(i,e,o):r(i,e))||o);return n>3&&o&&Object.defineProperty(i,e,o),o};const mt=class{watchOpen(){this.setupHandlers(),this.setPickerMessage()}watchQuery(){this.setPickerMessage()}constructor(e){t(this,e),this.change=i(this,"change"),this.imageUploadingChange=i(this,"imageUploadingChange"),this.allowMentioning=!1,this.contentType="markdown",this.language="en",this.disabled=!1,this.readonly=!1,this.invalid=!1,this.required=!1,this.ui="standard",this.allowResize=!0,this.value="",this.triggerMap={},this.customElements=[],this.allowPasteImages=!1,this.items=[],this.highlightedItemIndex=0,this.isPickerOpen=!1,this.isSearching=!1,this.registeredTriggers=[],this.registeredTriggerMap=this.triggerMap,this.registeredCustomElements=this.customElements,this.activeTrigger=void 0,this.pendingUploads=0,this.handleMouseClick=t=>{this.textEditorPickerElement&&(t.target===this.textEditorPickerElement||this.resetTriggerAndPicker())},this.handleKeyPress=t=>{if(!this.isPickerOpen||!this.activeTrigger)return;if(![u,l,c,f,d].includes(t.key))return;if(t.stopPropagation(),t.preventDefault(),"keyup"===t.type)return;const i={[u]:this.handleEscapeKey,[f]:this.handleEnterOrTabKey,[d]:this.handleEnterOrTabKey,[c]:this.handleArrowKeyPress,[l]:this.handleArrowKeyPress}[t.key];i&&i(t)},this.handleArrowKeyPress=t=>{this.highlightedItemIndex=this.findNonSeparatorIndex(t.key,this.highlightedItemIndex)},this.findNonSeparatorIndex=(t,i,e=0)=>{if(0===this.items.length||e>this.items.length)return i;const s=((t,i,e)=>(i+(t===c?1:-1)+e)%e)(t,i,this.items.length);return this.isListSeparator(this.items[s])?this.findNonSeparatorIndex(t,s,e+1):s},this.handleEscapeKey=()=>{var t;null===(t=this.triggerFunction)||void 0===t||t.stopTrigger(),this.resetTriggerAndPicker()},this.handleEnterOrTabKey=t=>{this.handleItemSelection(t)},this.handleTriggerStart=t=>{t.stopPropagation(),this.activeTrigger=t.detail.trigger,this.triggerFunction=t.detail.textEditor,this.isPickerOpen=!0},this.handleTriggerStop=t=>{t.stopPropagation(),this.resetTriggerAndPicker()},this.handleTriggerChange=t=>{var i;t.stopImmediatePropagation(),this.editorPickerQuery=t.detail.value;const e=null===(i=this.registeredTriggerMap[t.detail.trigger])||void 0===i?void 0:i.searcher;e&&(this.isSearching=!0,this.debouncedSearchFn(e,this.editorPickerQuery))},this.resetTriggerAndPicker=()=>{this.isPickerOpen=!1,this.activeTrigger=void 0,this.triggerFunction=void 0,this.isSearching=!1,this.highlightedItemIndex=0,this.items=[]},this.handleItemSelection=t=>{var i;let e;if(t instanceof CustomEvent)e=t.detail;else{if(!(t instanceof KeyboardEvent))return;{const t=this.items[this.highlightedItemIndex];if(this.isListSeparator(t))return;e=t}}if(!this.activeTrigger||(null==e?void 0:e.disabled))return;const s=this.registeredTriggerMap[this.activeTrigger];try{s.inserter(this.triggerFunction,e)}catch(t){console.error("Error inserting",t)}this.resetTriggerAndPicker(),null===(i=this.textEditor)||void 0===i||i.focus()},this.handleVisibilityChange=()=>{"hidden"===document.visibilityState&&this.saveDraft()},this.handleBeforeUnload=()=>{this.saveDraft()},this.portalId=E(),this.debouncedSearchFn=function(t,i,e){var s,r,n,o,h,a,c=0,u=!1,l=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(i){var e=s,n=r;return s=r=void 0,c=i,o=t.apply(n,e)}function m(t){var e=t-a;return void 0===a||e>=i||e<0||l&&t-c>=n}function v(){var t=at();if(m(t))return p(t);h=setTimeout(v,function(t){var e=i-(t-a);return l?ut(e,n-(t-c)):e}(t))}function p(t){return h=void 0,f&&s?d(t):(s=r=void 0,o)}function b(){var t=at(),e=m(t);if(s=arguments,r=this,a=t,e){if(void 0===h)return function(t){return c=t,h=setTimeout(v,i),u?d(t):o}(a);if(l)return clearTimeout(h),h=setTimeout(v,i),d(a)}return void 0===h&&(h=setTimeout(v,i)),o}return i=B(i)||0,k(e)&&(u=!!e.leading,n=(l="maxWait"in e)?ct(B(e.maxWait)||0,i):n,f="trailing"in e?!!e.trailing:f),b.cancel=function(){void 0!==h&&clearTimeout(h),c=0,s=a=r=h=void 0},b.flush=function(){return void 0===h?o:p(at())},b}((async(t,i)=>{try{const e=await t(i);if(i!==this.editorPickerQuery||!this.activeTrigger)return;this.items=e}catch(t){console.error("Error searching",t)}finally{this.isSearching=!1}}),300)}connectedCallback(){var t,i,e,s;if(this.draftIdentifier){const r=null!==(i=null===(t=this.context)||void 0===t?void 0:t.id)&&void 0!==i?i:"no-limeobject",n=null!==(s=null===(e=this.context)||void 0===e?void 0:e.limetype)&&void 0!==s?s:"no-limetype";this.textEditorInnerId=["text-editor-draft",n,r,this.draftIdentifier].join("-")}this.textEditorInnerId&&(document.addEventListener("visibilitychange",this.handleVisibilityChange),window.addEventListener("beforeunload",this.handleBeforeUnload))}componentWillLoad(){this.allowMentioning&&this.registerMentions(),this.registerTriggers(),this.loadDraft()}disconnectedCallback(){document.removeEventListener("visibilitychange",this.handleVisibilityChange),window.removeEventListener("beforeunload",this.handleBeforeUnload),document.removeEventListener("mousedown",this.handleMouseClick),this.saveDraft(),this.host&&(this.host.removeEventListener("keyup",this.handleKeyPress,{capture:!0}),this.host.removeEventListener("keydown",this.handleKeyPress,{capture:!0})),this.debouncedSearchFn&&this.debouncedSearchFn.cancel&&this.debouncedSearchFn.cancel()}registerMentions(){const t=new lt(this.platform,this.context,this.searchableLimetypes,this.host),i=t.triggerHandler.nodeDefinition;i&&(this.registeredCustomElements.push(i.customElement),this.registeredTriggerMap[t.triggerCharacter]=t.triggerHandler,t.initialize())}registerTriggers(){this.registeredTriggers=Object.keys(this.registeredTriggerMap)}setPickerMessage(){var t;if(!this.activeTrigger)return;const i=this.registeredTriggerMap[this.activeTrigger];this.pickerMessage=(null===(t=this.editorPickerQuery)||void 0===t?void 0:t.length)>0?i.noItemsFoundMessage:i.emptySearchMessage}setupHandlers(){this.isPickerOpen?(this.host.addEventListener("keyup",this.handleKeyPress,{capture:!0}),this.host.addEventListener("keydown",this.handleKeyPress,{capture:!0}),document.addEventListener("mousedown",this.handleMouseClick)):(this.host.removeEventListener("keyup",this.handleKeyPress,{capture:!0}),this.host.removeEventListener("keydown",this.handleKeyPress,{capture:!0}),document.removeEventListener("mousedown",this.handleMouseClick))}isListSeparator(t){return"separator"in t&&!0===t.separator}render(){return[e("limel-text-editor",{key:"c6245590284cdd6f097ae0facf7204fb7c5fd60b",ref:t=>this.textEditor=t,tabindex:this.disabled?-1:0,value:this.value,contentType:this.contentType,customElements:this.registeredCustomElements,"aria-disabled":this.disabled,language:this.language,triggers:this.registeredTriggers,onTriggerStart:this.handleTriggerStart,onTriggerStop:this.handleTriggerStop,onTriggerChange:this.handleTriggerChange,inlineImages:this.inlineImages,ui:this.ui,allowResize:this.allowResize,required:this.required,disabled:this.disabled,readonly:this.readonly,helperText:this.helperText,placeholder:this.placeholder,label:this.label,invalid:this.invalid}),this.renderPicker()]}renderPicker(){if(this.isPickerOpen)return e("limel-portal",{containerId:this.portalId,visible:this.isPickerOpen,openDirection:"top",inheritParentWidth:!0,anchor:this.textEditor},e("limebb-text-editor-picker",{ref:t=>this.textEditorPickerElement=t,items:(t=this.items,i=this.highlightedItemIndex,t.map(((t,e)=>{const s=ht(t,5);return Object.assign(Object.assign({},s),{selected:e===i})}))),onItemSelected:this.handleItemSelection,emptyMessage:this.pickerMessage,isSearching:this.isSearching}));var t,i}get inlineImages(){return Object.assign({tagName:"limebb-inline-image",getUrl:t=>D(this.appName,t)},this.allowPasteImages&&{upload:t=>this.uploadImage(t)})}async uploadImage(t){0===this.pendingUploads&&this.imageUploadingChange.emit(!0),this.pendingUploads++;try{return await this.uploadFile(t)}finally{this.pendingUploads--,0===this.pendingUploads&&this.imageUploadingChange.emit(!1)}}async uploadFile(t){if(t.size>52428800)throw new Error("Image exceeds the maximum file size");const i=this.platform.get(r.Http),e=new ft(t,i);await e.initialize();const s=await e.upload();if(!s.id)throw new Error("File upload response is missing an id");return String(s.id)}loadDraft(){if(!this.userDataService||!this.textEditorInnerId)return;if(this.value)return;const t=this.userDataService.get(this.textEditorInnerId);t&&this.change.emit(t)}saveDraft(){var t,i,e,s;if(!this.textEditorInnerId)return;const r=null===(t=this.value)||void 0===t?void 0:t.trim(),n=null===(i=this.userDataService)||void 0===i?void 0:i.get(this.textEditorInnerId);r&&r!==n?null===(e=this.userDataService)||void 0===e||e.set(this.textEditorInnerId,r):!r&&n&&(null===(s=this.userDataService)||void 0===s||s.set(this.textEditorInnerId,void 0))}get userDataService(){return this.platform.get(r.UserDataRepository)}static get delegatesFocus(){return!0}get host(){return s(this)}static get watchers(){return{isPickerOpen:[{watchOpen:0}],editorPickerQuery:[{watchQuery:0}]}}};dt([h({map:[function(t){return Object.values(t).filter((t=>M(t,"user")||F(t,"user")))}]})],mt.prototype,"searchableLimetypes",void 0),dt([a()],mt.prototype,"appName",void 0),mt.style=":host(limebb-text-editor){display:block;width:100%;min-width:5rem;min-height:5rem;height:100%;max-height:var(--text-editor-max-height, calc(100svh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)) - 4rem))}";export{mt as limebb_text_editor}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as r}from"./p-DhGRAeCH.js";function t(t){return(n,o)=>{var e;let u;try{u=null===(e=null==t?void 0:t.get(r.Translate))||void 0===e?void 0:e.get(n)}catch(r){return o}return u&&u!==n?u:o}}export{t as c}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./p-DhGRAeCH.js";function n(n){return n.op===e.NOT?n.exp.op===e.AND?"NOT_AND":"NOT_OR":n.op===e.AND?"AND":"OR"}function t(n){return n.op===e.NOT?n.exp:n}function o(n,o){const r=t(n),p={op:"AND"===o||"NOT_AND"===o?e.AND:e.OR,exp:[...r.exp]};return"NOT_AND"===o||"NOT_OR"===o?{op:e.NOT,exp:p}:p}function r(n){if(n.op===e.AND||n.op===e.OR)return!0;if(n.op===e.NOT){const t=n.exp;return t.op===e.AND||t.op===e.OR}return!1}function p(e){return r(e)?e:void 0}function u(){return{key:"",op:e.EQUALS,exp:""}}function s(n){return{op:n===e.AND?e.OR:e.AND,exp:[u()]}}function i(e,n){return{op:e.op,exp:[...e.exp,n]}}function a(e,n,t){const o=[...e.exp];return t?(o[n]=t,{type:"updated",expression:{op:e.op,exp:o}}):(o.splice(n,1),0===o.length?{type:"removed",expression:void 0}:{type:"updated",expression:{op:e.op,exp:o}})}export{p as a,i as b,t as c,s as d,u as e,n as g,r as i,o as s,a as u}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as n}from"./p-DhGRAeCH.js";const t=[[n.EQUALS,"equals"],[n.NOT_EQUALS,"not-equals"],[n.GREATER,"greater-than"],[n.GREATER_OR_EQUAL,"greater-than-or-equal"],[n.LESS,"less-than"],[n.LESS_OR_EQUAL,"less-than-or-equal"],[n.IN,"in-filter-set"],[n.LIKE,"contains"],[n.BEGINS,"begins-with"],[n.ENDS,"ends-with"]];function e(n){var e;return null===(e=t.find((([,t])=>t===n)))||void 0===e?void 0:e[0]}function r(n){return n.map((n=>{var e;return null===(e=t.find((([t])=>t===n)))||void 0===e?void 0:e[1]})).filter((n=>void 0!==n))}function a(n){if(n)return r([n])[0]}export{a,e as c,r as o}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,g as i,h as s}from"./p-BK566_jX.js";import{n as r}from"./p-DhGRAeCH.js";import{f as o}from"./p-B95D7tDb.js";import{g as h}from"./p-Oswz9F3I.js";const a=class{constructor(i){t(this,i),this.alt="",this.appName=""}connectedCallback(){var t;const s=o(i(this),this.hasPlatform);this.appName=null!==(t=null==s?void 0:s.platform.get(r.Application).getApplicationName())&&void 0!==t?t:""}render(){if(this.imageId&&this.appName)return s("img",{src:h(this.appName,this.imageId),alt:this.alt,style:{width:this.toCssSize(this.width),height:this.toCssSize(this.height),maxWidth:"100%"}})}hasPlatform(t){return"platform"in t&&!!t.platform&&"object"==typeof t.platform}toCssSize(t){if(t)return/^\d+$/.test(t)?`${t}px`:t}};a.style=":host{display:inline-block;max-width:100%}img{display:inline-block;max-width:100%;height:auto;border-radius:0.25rem;vertical-align:bottom}";export{a as limebb_inline_image}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,g as i,h as s}from"./p-BK566_jX.js";import{g as e}from"./p-7DQ7qvMa.js";import{f as h}from"./p-B95D7tDb.js";import{b as o,n as a}from"./p-DhGRAeCH.js";const r=o("object-resolver");class l{constructor(t){this.onStateChange=t,this.state={loadFailed:!1},this.hasPendingLoad=!1,this.isDisconnected=!1}get resolvedPlatform(){return this._platform}connect(t,i,s,e){this.limetype=t,this.objectid=i,this.isDisconnected=!1,this.hasPendingLoad=!1,this._platform=e||this.findPlatform(s),this._platform?(this.resolveLimeType(),this.loadLimeObject()):r.error(`No platform found. Pass "platform" prop or place the component inside a parent that exposes "platform". limetype=${t}, objectid=${i}`)}update(t,i){this.limetype=t,this.objectid=i,this.updateState({limeobject:void 0,limetypeData:void 0,loadFailed:!1}),this.hasPendingLoad||(this.hasPendingLoad=!0,queueMicrotask((()=>{if(this.hasPendingLoad=!1,!this.isDisconnected){if(!this._platform)return this.updateState({loadFailed:!0}),void r.warn(`Cannot update: no platform available. limetype=${this.limetype}, objectid=${this.objectid}`);this.resolveLimeType(),this.loadLimeObject()}})))}disconnect(){this.isDisconnected=!0}findPlatform(t){const i=h(t,this.hasPlatformProp);return null==i?void 0:i.platform}hasPlatformProp(t){return"platform"in t&&!!t.platform&&"object"==typeof t.platform}resolveLimeType(){const t=this._platform.get(a.LimeTypeRepository);this.updateState({limetypeData:t.getLimeType(this.limetype)})}async loadLimeObject(){const t=this.limetype,i=this.objectid,s=this._platform.get(a.LimeObjectRepository),e=s.getObject(t,i);if(e)this.updateState({limeobject:e});else{try{await s.loadObject(t,i)}catch(s){if(this.isStale(t,i))return;return this.updateState({loadFailed:!0}),void r.error(`Failed to load ${t}/${i}`,s)}this.isStale(t,i)||this.updateState({limeobject:s.getObject(t,i)})}}isStale(t,i){return this.isDisconnected||this.limetype!==t||this.objectid!==i}updateState(t){this.state=Object.assign(Object.assign({},this.state),t),this.isDisconnected||this.onStateChange(this.state)}}const n=class{constructor(i){t(this,i),this.size="default",this.data={loadFailed:!1},this.resolver=new l((t=>{this.data=t}))}connectedCallback(){this.resolver.connect(this.limetype,this.objectid,i(this),this.platform)}disconnectedCallback(){this.resolver.disconnect()}handlePropChange(){this.resolver.update(this.limetype,this.objectid)}render(){if(!this.resolver.resolvedPlatform)return;const t=e(this.data.limetypeData);return s("limel-chip",{text:this.getChipText(),icon:t,size:this.size,link:{href:(i=this.limetype,h=this.objectid,`object/${i}/${h}`)},loading:!this.data.limeobject&&!this.data.loadFailed});var i,h}getChipText(){var t;return(null===(t=this.data.limeobject)||void 0===t?void 0:t.descriptive)?this.data.limeobject.descriptive:this.data.loadFailed?this.getErrorText():""}getErrorText(){if(!this.resolver.resolvedPlatform)return"loading failed";try{return this.resolver.resolvedPlatform.get(a.Translate).get("webclient.limeobject.errors.load-failed")}catch(t){return"loading failed"}}static get watchers(){return{limetype:[{handlePropChange:0}],objectid:[{handlePropChange:0}]}}};n.style=":host{display:inline-block;vertical-align:baseline}";export{n as limebb_object_chip}
|