@orangelogic/design-system 2.60.0 → 2.61.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.
Files changed (248) hide show
  1. package/library/apps/cortex/src/types.d.ts +2 -0
  2. package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
  3. package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
  4. package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
  5. package/library/chunks/animate.El-MpOws.js +37 -0
  6. package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
  7. package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
  8. package/library/chunks/array.DCtvHiLS.js +81 -0
  9. package/library/chunks/asset.CG_yXtWK.js +288 -0
  10. package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
  11. package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
  12. package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
  13. package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
  14. package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
  15. package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
  16. package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
  17. package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
  18. package/library/chunks/color.vLD2sNTs.js +164 -0
  19. package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
  20. package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
  21. package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
  22. package/library/chunks/converters.DkDtLstb.js +11 -0
  23. package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
  24. package/library/chunks/custom-element.L4WJXn1j.js +14 -0
  25. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  26. package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
  27. package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
  28. package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
  29. package/library/chunks/dom.CZrJ64Dm.js +92 -0
  30. package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
  31. package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
  32. package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
  33. package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
  34. package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
  35. package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
  36. package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
  37. package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
  38. package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
  39. package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
  40. package/library/chunks/identity.ByMq8VxU.js +6 -0
  41. package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
  42. package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
  43. package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
  44. package/library/chunks/image.mbpyiQpQ.js +82 -0
  45. package/library/chunks/index.S0wy3rzm.js +373 -0
  46. package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
  47. package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
  48. package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
  49. package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
  50. package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
  51. package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
  52. package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
  53. package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
  54. package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
  55. package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
  56. package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
  57. package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
  58. package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
  59. package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
  60. package/library/chunks/responsive.CA6dcNiM.js +17 -0
  61. package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
  62. package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
  63. package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
  64. package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
  65. package/library/chunks/string.Cp_XNbnV.js +160 -0
  66. package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
  67. package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
  68. package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
  69. package/library/chunks/template.CsJd8Pb_.js +20 -0
  70. package/library/chunks/time.D_uFZqqe.js +118 -0
  71. package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
  72. package/library/chunks/toast.BXNbwZV8.js +25 -0
  73. package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
  74. package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
  75. package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
  76. package/library/chunks/url.LjsR2sB5.js +15 -0
  77. package/library/chunks/user-agent.D9aPuOyL.js +4 -0
  78. package/library/chunks/watch.q1sEjPWL.js +501 -0
  79. package/library/components/alert.js +38 -35
  80. package/library/components/animated-image.js +25 -23
  81. package/library/components/animation.js +7 -5
  82. package/library/components/array-line-clamp.d.ts +3 -0
  83. package/library/components/array-line-clamp.js +195 -0
  84. package/library/components/asset-link-format.js +223 -212
  85. package/library/components/atoms.js +164 -162
  86. package/library/components/avatar.js +28 -26
  87. package/library/components/badge.js +10 -8
  88. package/library/components/bicolor-picker.js +21 -19
  89. package/library/components/border-input-group.js +11 -9
  90. package/library/components/breadcrumb-item.js +14 -12
  91. package/library/components/breadcrumb.js +24 -22
  92. package/library/components/button-group.js +26 -24
  93. package/library/components/button.js +14 -13
  94. package/library/components/card.js +28 -19
  95. package/library/components/checkbox.js +29 -23
  96. package/library/components/color-picker.js +19 -17
  97. package/library/components/color-swatch-group.js +20 -17
  98. package/library/components/color-swatch.js +16 -13
  99. package/library/components/confirm-popover.js +11 -9
  100. package/library/components/copy-button.js +15 -13
  101. package/library/components/corner-position-input-group.js +13 -11
  102. package/library/components/cortex-element.d.ts +3 -0
  103. package/library/components/cortex-element.js +5 -0
  104. package/library/components/cropper.js +7 -5
  105. package/library/components/details.js +23 -20
  106. package/library/components/dialog.js +19 -16
  107. package/library/components/divider.js +13 -11
  108. package/library/components/dot-pagination.js +11 -9
  109. package/library/components/dot-status.js +10 -8
  110. package/library/components/drawer.js +63 -51
  111. package/library/components/dropdown.js +29 -26
  112. package/library/components/dynamic-select.js +12 -10
  113. package/library/components/element-clamp.js +28 -25
  114. package/library/components/file-on-demand.js +21 -20
  115. package/library/components/folder-select.js +12 -10
  116. package/library/components/format-bytes.js +11 -10
  117. package/library/components/format-date.js +11 -9
  118. package/library/components/format-number.js +16 -15
  119. package/library/components/format-time.js +118 -9
  120. package/library/components/grid-item.js +48 -46
  121. package/library/components/grid.js +31 -29
  122. package/library/components/header.js +10 -9
  123. package/library/components/hub-connection.js +6 -5
  124. package/library/components/icon-button.js +20 -18
  125. package/library/components/icon.js +17 -15
  126. package/library/components/iframe.js +10 -8
  127. package/library/components/image-comparer.js +27 -25
  128. package/library/components/image.js +14 -11
  129. package/library/components/include.js +26 -24
  130. package/library/components/input-group.js +15 -13
  131. package/library/components/input.js +23 -21
  132. package/library/components/line-clamp.js +12 -10
  133. package/library/components/list-editor.js +17 -15
  134. package/library/components/markdown.js +80 -78
  135. package/library/components/masonry.js +46 -44
  136. package/library/components/menu-item.js +151 -136
  137. package/library/components/menu-label.js +15 -13
  138. package/library/components/menu-section.js +18 -16
  139. package/library/components/menu.js +10 -8
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +12 -10
  142. package/library/components/option.js +10 -8
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +30 -28
  145. package/library/components/pagination.js +14 -12
  146. package/library/components/popup.js +3296 -9
  147. package/library/components/position-picker.js +12 -10
  148. package/library/components/progress-bar.js +13 -11
  149. package/library/components/progress-ring.js +15 -13
  150. package/library/components/qr-code.js +54 -52
  151. package/library/components/radio-button.js +19 -17
  152. package/library/components/radio-card.js +14 -12
  153. package/library/components/radio-group.js +20 -18
  154. package/library/components/radio.js +15 -13
  155. package/library/components/range.js +25 -23
  156. package/library/components/rating.js +17 -15
  157. package/library/components/relative-time.js +16 -14
  158. package/library/components/resize-observer.js +21 -19
  159. package/library/components/select.js +1442 -25
  160. package/library/components/shadow-input-group.js +19 -17
  161. package/library/components/share-option-list.js +20 -18
  162. package/library/components/sidebar.js +14 -12
  163. package/library/components/size-input-group.js +35 -33
  164. package/library/components/skeleton.js +12 -10
  165. package/library/components/space.js +12 -10
  166. package/library/components/spinner.js +17 -15
  167. package/library/components/split-panel.js +15 -13
  168. package/library/components/step.js +18 -16
  169. package/library/components/stepper-wizard.js +11 -9
  170. package/library/components/stepper.js +13 -11
  171. package/library/components/switch.js +21 -19
  172. package/library/components/tab-group.js +15 -13
  173. package/library/components/tab-panel.js +20 -18
  174. package/library/components/tab.js +18 -16
  175. package/library/components/table.js +69 -67
  176. package/library/components/tag.js +11 -9
  177. package/library/components/textarea.js +20 -18
  178. package/library/components/timecode.js +98 -8
  179. package/library/components/tooltip.js +24 -21
  180. package/library/components/tree-item.js +14 -11
  181. package/library/components/tree.js +12 -10
  182. package/library/components/typeface.js +13 -11
  183. package/library/components/types.js +15487 -15444
  184. package/library/components/typography.js +6 -4
  185. package/library/components/video.js +13 -11
  186. package/library/components/visually-hidden.js +15 -13
  187. package/library/events.d.ts +1 -0
  188. package/library/events.js +1 -0
  189. package/library/package.json +11 -2
  190. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
  191. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
  192. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
  193. package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
  194. package/library/packages/atoms/src/components/include/include.d.ts +1 -0
  195. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  196. package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
  197. package/library/packages/atoms/src/index.d.ts +1 -0
  198. package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
  199. package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
  200. package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
  201. package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
  202. package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
  203. package/library/packages/events/src/events.d.ts +6 -2
  204. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  205. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  206. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  207. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
  208. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
  209. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
  210. package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
  211. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
  212. package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
  213. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
  214. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
  215. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
  216. package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
  217. package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
  218. package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
  219. package/library/packages/services/src/api/folder/folder.d.ts +4 -8
  220. package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
  221. package/library/packages/types/src/file-on-demand.d.ts +4 -0
  222. package/library/packages/types/src/folder-select.d.ts +9 -2
  223. package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
  224. package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
  225. package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
  226. package/library/packages/utils/src/font/font.d.ts +26 -0
  227. package/library/packages/utils/src/font/index.d.ts +1 -0
  228. package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
  229. package/library/packages/utils/src/history-manager/index.d.ts +1 -0
  230. package/library/packages/utils/src/index.d.ts +45 -0
  231. package/library/packages/utils/src/template/index.d.ts +1 -0
  232. package/library/packages/utils/src/template/template.d.ts +3 -0
  233. package/library/react-web-component.d.ts +418 -360
  234. package/library/utils.d.ts +1 -0
  235. package/library/utils.js +180 -0
  236. package/package.json +11 -2
  237. package/library/chunks/animation-registry.DavRkTTr.js +0 -69
  238. package/library/chunks/asset.Ba-CxnNM.js +0 -309
  239. package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
  240. package/library/chunks/dom.C0OFx7ND.js +0 -78
  241. package/library/chunks/format-time.BW6-ZWCX.js +0 -226
  242. package/library/chunks/isObjectLike.z36Fu426.js +0 -34
  243. package/library/chunks/popup._w5T7x8f.js +0 -3307
  244. package/library/chunks/select.DfO4de04.js +0 -1441
  245. package/library/chunks/string.BCk3SmdZ.js +0 -144
  246. package/library/chunks/timecode.D7XTiQ_3.js +0 -105
  247. package/library/chunks/watch.BCJD77bD.js +0 -547
  248. package/library/packages/events/src/cx-load-more.d.ts +0 -8
@@ -0,0 +1,501 @@
1
+ import { g as m, r as $, S as Y, i as x, b as U, f as Ae, c as Te, t as E } from "./isObjectLike.D3cpZO39.js";
2
+ function we() {
3
+ this.__data__ = [], this.size = 0;
4
+ }
5
+ function ce(e, t) {
6
+ return e === t || e !== e && t !== t;
7
+ }
8
+ function G(e, t) {
9
+ for (var r = e.length; r--; )
10
+ if (ce(e[r][0], t))
11
+ return r;
12
+ return -1;
13
+ }
14
+ var Oe = Array.prototype, $e = Oe.splice;
15
+ function Pe(e) {
16
+ var t = this.__data__, r = G(t, e);
17
+ if (r < 0)
18
+ return !1;
19
+ var a = t.length - 1;
20
+ return r == a ? t.pop() : $e.call(t, r, 1), --this.size, !0;
21
+ }
22
+ function me(e) {
23
+ var t = this.__data__, r = G(t, e);
24
+ return r < 0 ? void 0 : t[r][1];
25
+ }
26
+ function Ee(e) {
27
+ return G(this.__data__, e) > -1;
28
+ }
29
+ function Se(e, t) {
30
+ var r = this.__data__, a = G(r, e);
31
+ return a < 0 ? (++this.size, r.push([e, t])) : r[a][1] = t, this;
32
+ }
33
+ function v(e) {
34
+ var t = -1, r = e == null ? 0 : e.length;
35
+ for (this.clear(); ++t < r; ) {
36
+ var a = e[t];
37
+ this.set(a[0], a[1]);
38
+ }
39
+ }
40
+ v.prototype.clear = we;
41
+ v.prototype.delete = Pe;
42
+ v.prototype.get = me;
43
+ v.prototype.has = Ee;
44
+ v.prototype.set = Se;
45
+ function xe() {
46
+ this.__data__ = new v(), this.size = 0;
47
+ }
48
+ function je(e) {
49
+ var t = this.__data__, r = t.delete(e);
50
+ return this.size = t.size, r;
51
+ }
52
+ function Ce(e) {
53
+ return this.__data__.get(e);
54
+ }
55
+ function Ie(e) {
56
+ return this.__data__.has(e);
57
+ }
58
+ var j = m($, "Map"), C = m(Object, "create");
59
+ function Le() {
60
+ this.__data__ = C ? C(null) : {}, this.size = 0;
61
+ }
62
+ function Me(e) {
63
+ var t = this.has(e) && delete this.__data__[e];
64
+ return this.size -= t ? 1 : 0, t;
65
+ }
66
+ var De = "__lodash_hash_undefined__", Re = Object.prototype, Ue = Re.hasOwnProperty;
67
+ function Ge(e) {
68
+ var t = this.__data__;
69
+ if (C) {
70
+ var r = t[e];
71
+ return r === De ? void 0 : r;
72
+ }
73
+ return Ue.call(t, e) ? t[e] : void 0;
74
+ }
75
+ var ze = Object.prototype, Be = ze.hasOwnProperty;
76
+ function Fe(e) {
77
+ var t = this.__data__;
78
+ return C ? t[e] !== void 0 : Be.call(t, e);
79
+ }
80
+ var He = "__lodash_hash_undefined__";
81
+ function Ne(e, t) {
82
+ var r = this.__data__;
83
+ return this.size += this.has(e) ? 0 : 1, r[e] = C && t === void 0 ? He : t, this;
84
+ }
85
+ function O(e) {
86
+ var t = -1, r = e == null ? 0 : e.length;
87
+ for (this.clear(); ++t < r; ) {
88
+ var a = e[t];
89
+ this.set(a[0], a[1]);
90
+ }
91
+ }
92
+ O.prototype.clear = Le;
93
+ O.prototype.delete = Me;
94
+ O.prototype.get = Ge;
95
+ O.prototype.has = Fe;
96
+ O.prototype.set = Ne;
97
+ function Ke() {
98
+ this.size = 0, this.__data__ = {
99
+ hash: new O(),
100
+ map: new (j || v)(),
101
+ string: new O()
102
+ };
103
+ }
104
+ function qe(e) {
105
+ var t = typeof e;
106
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
107
+ }
108
+ function z(e, t) {
109
+ var r = e.__data__;
110
+ return qe(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
111
+ }
112
+ function We(e) {
113
+ var t = z(this, e).delete(e);
114
+ return this.size -= t ? 1 : 0, t;
115
+ }
116
+ function Xe(e) {
117
+ return z(this, e).get(e);
118
+ }
119
+ function Ye(e) {
120
+ return z(this, e).has(e);
121
+ }
122
+ function Ze(e, t) {
123
+ var r = z(this, e), a = r.size;
124
+ return r.set(e, t), this.size += r.size == a ? 0 : 1, this;
125
+ }
126
+ function P(e) {
127
+ var t = -1, r = e == null ? 0 : e.length;
128
+ for (this.clear(); ++t < r; ) {
129
+ var a = e[t];
130
+ this.set(a[0], a[1]);
131
+ }
132
+ }
133
+ P.prototype.clear = Ke;
134
+ P.prototype.delete = We;
135
+ P.prototype.get = Xe;
136
+ P.prototype.has = Ye;
137
+ P.prototype.set = Ze;
138
+ var Je = 200;
139
+ function Qe(e, t) {
140
+ var r = this.__data__;
141
+ if (r instanceof v) {
142
+ var a = r.__data__;
143
+ if (!j || a.length < Je - 1)
144
+ return a.push([e, t]), this.size = ++r.size, this;
145
+ r = this.__data__ = new P(a);
146
+ }
147
+ return r.set(e, t), this.size = r.size, this;
148
+ }
149
+ function A(e) {
150
+ var t = this.__data__ = new v(e);
151
+ this.size = t.size;
152
+ }
153
+ A.prototype.clear = xe;
154
+ A.prototype.delete = je;
155
+ A.prototype.get = Ce;
156
+ A.prototype.has = Ie;
157
+ A.prototype.set = Qe;
158
+ var Ve = "__lodash_hash_undefined__";
159
+ function ke(e) {
160
+ return this.__data__.set(e, Ve), this;
161
+ }
162
+ function et(e) {
163
+ return this.__data__.has(e);
164
+ }
165
+ function D(e) {
166
+ var t = -1, r = e == null ? 0 : e.length;
167
+ for (this.__data__ = new P(); ++t < r; )
168
+ this.add(e[t]);
169
+ }
170
+ D.prototype.add = D.prototype.push = ke;
171
+ D.prototype.has = et;
172
+ function tt(e, t) {
173
+ for (var r = -1, a = e == null ? 0 : e.length; ++r < a; )
174
+ if (t(e[r], r, e))
175
+ return !0;
176
+ return !1;
177
+ }
178
+ function rt(e, t) {
179
+ return e.has(t);
180
+ }
181
+ var at = 1, nt = 2;
182
+ function de(e, t, r, a, i, n) {
183
+ var f = r & at, u = e.length, p = t.length;
184
+ if (u != p && !(f && p > u))
185
+ return !1;
186
+ var s = n.get(e), d = n.get(t);
187
+ if (s && d)
188
+ return s == t && d == e;
189
+ var c = -1, l = !0, h = r & nt ? new D() : void 0;
190
+ for (n.set(e, t), n.set(t, e); ++c < u; ) {
191
+ var _ = e[c], g = t[c];
192
+ if (a)
193
+ var y = f ? a(g, _, c, t, e, n) : a(_, g, c, e, t, n);
194
+ if (y !== void 0) {
195
+ if (y)
196
+ continue;
197
+ l = !1;
198
+ break;
199
+ }
200
+ if (h) {
201
+ if (!tt(t, function(T, w) {
202
+ if (!rt(h, w) && (_ === T || i(_, T, r, a, n)))
203
+ return h.push(w);
204
+ })) {
205
+ l = !1;
206
+ break;
207
+ }
208
+ } else if (!(_ === g || i(_, g, r, a, n))) {
209
+ l = !1;
210
+ break;
211
+ }
212
+ }
213
+ return n.delete(e), n.delete(t), l;
214
+ }
215
+ var Z = $.Uint8Array;
216
+ function st(e) {
217
+ var t = -1, r = Array(e.size);
218
+ return e.forEach(function(a, i) {
219
+ r[++t] = [i, a];
220
+ }), r;
221
+ }
222
+ function it(e) {
223
+ var t = -1, r = Array(e.size);
224
+ return e.forEach(function(a) {
225
+ r[++t] = a;
226
+ }), r;
227
+ }
228
+ var ot = 1, ft = 2, ut = "[object Boolean]", pt = "[object Date]", lt = "[object Error]", ct = "[object Map]", dt = "[object Number]", _t = "[object RegExp]", gt = "[object Set]", ht = "[object String]", vt = "[object Symbol]", yt = "[object ArrayBuffer]", bt = "[object DataView]", J = Y ? Y.prototype : void 0, B = J ? J.valueOf : void 0;
229
+ function At(e, t, r, a, i, n, f) {
230
+ switch (r) {
231
+ case bt:
232
+ if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
233
+ return !1;
234
+ e = e.buffer, t = t.buffer;
235
+ case yt:
236
+ return !(e.byteLength != t.byteLength || !n(new Z(e), new Z(t)));
237
+ case ut:
238
+ case pt:
239
+ case dt:
240
+ return ce(+e, +t);
241
+ case lt:
242
+ return e.name == t.name && e.message == t.message;
243
+ case _t:
244
+ case ht:
245
+ return e == t + "";
246
+ case ct:
247
+ var u = st;
248
+ case gt:
249
+ var p = a & ot;
250
+ if (u || (u = it), e.size != t.size && !p)
251
+ return !1;
252
+ var s = f.get(e);
253
+ if (s)
254
+ return s == t;
255
+ a |= ft, f.set(e, t);
256
+ var d = de(u(e), u(t), a, i, n, f);
257
+ return f.delete(e), d;
258
+ case vt:
259
+ if (B)
260
+ return B.call(e) == B.call(t);
261
+ }
262
+ return !1;
263
+ }
264
+ function Tt(e, t) {
265
+ for (var r = -1, a = t.length, i = e.length; ++r < a; )
266
+ e[i + r] = t[r];
267
+ return e;
268
+ }
269
+ var R = Array.isArray;
270
+ function wt(e, t, r) {
271
+ var a = t(e);
272
+ return R(e) ? a : Tt(a, r(e));
273
+ }
274
+ function Ot(e, t) {
275
+ for (var r = -1, a = e == null ? 0 : e.length, i = 0, n = []; ++r < a; ) {
276
+ var f = e[r];
277
+ t(f, r, e) && (n[i++] = f);
278
+ }
279
+ return n;
280
+ }
281
+ function $t() {
282
+ return [];
283
+ }
284
+ var Pt = Object.prototype, mt = Pt.propertyIsEnumerable, Q = Object.getOwnPropertySymbols, Et = Q ? function(e) {
285
+ return e == null ? [] : (e = Object(e), Ot(Q(e), function(t) {
286
+ return mt.call(e, t);
287
+ }));
288
+ } : $t;
289
+ function St(e, t) {
290
+ for (var r = -1, a = Array(e); ++r < e; )
291
+ a[r] = t(r);
292
+ return a;
293
+ }
294
+ var xt = "[object Arguments]";
295
+ function V(e) {
296
+ return x(e) && U(e) == xt;
297
+ }
298
+ var _e = Object.prototype, jt = _e.hasOwnProperty, Ct = _e.propertyIsEnumerable, It = V(/* @__PURE__ */ function() {
299
+ return arguments;
300
+ }()) ? V : function(e) {
301
+ return x(e) && jt.call(e, "callee") && !Ct.call(e, "callee");
302
+ };
303
+ function Lt() {
304
+ return !1;
305
+ }
306
+ var ge = typeof exports == "object" && exports && !exports.nodeType && exports, k = ge && typeof module == "object" && module && !module.nodeType && module, Mt = k && k.exports === ge, ee = Mt ? $.Buffer : void 0, Dt = ee ? ee.isBuffer : void 0, H = Dt || Lt, Rt = 9007199254740991, Ut = /^(?:0|[1-9]\d*)$/;
307
+ function Gt(e, t) {
308
+ var r = typeof e;
309
+ return t = t ?? Rt, !!t && (r == "number" || r != "symbol" && Ut.test(e)) && e > -1 && e % 1 == 0 && e < t;
310
+ }
311
+ var zt = 9007199254740991;
312
+ function he(e) {
313
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= zt;
314
+ }
315
+ var Bt = "[object Arguments]", Ft = "[object Array]", Ht = "[object Boolean]", Nt = "[object Date]", Kt = "[object Error]", qt = "[object Function]", Wt = "[object Map]", Xt = "[object Number]", Yt = "[object Object]", Zt = "[object RegExp]", Jt = "[object Set]", Qt = "[object String]", Vt = "[object WeakMap]", kt = "[object ArrayBuffer]", er = "[object DataView]", tr = "[object Float32Array]", rr = "[object Float64Array]", ar = "[object Int8Array]", nr = "[object Int16Array]", sr = "[object Int32Array]", ir = "[object Uint8Array]", or = "[object Uint8ClampedArray]", fr = "[object Uint16Array]", ur = "[object Uint32Array]", o = {};
316
+ o[tr] = o[rr] = o[ar] = o[nr] = o[sr] = o[ir] = o[or] = o[fr] = o[ur] = !0;
317
+ o[Bt] = o[Ft] = o[kt] = o[Ht] = o[er] = o[Nt] = o[Kt] = o[qt] = o[Wt] = o[Xt] = o[Yt] = o[Zt] = o[Jt] = o[Qt] = o[Vt] = !1;
318
+ function pr(e) {
319
+ return x(e) && he(e.length) && !!o[U(e)];
320
+ }
321
+ function lr(e) {
322
+ return function(t) {
323
+ return e(t);
324
+ };
325
+ }
326
+ var ve = typeof exports == "object" && exports && !exports.nodeType && exports, S = ve && typeof module == "object" && module && !module.nodeType && module, cr = S && S.exports === ve, F = cr && Ae.process, te = function() {
327
+ try {
328
+ var e = S && S.require && S.require("util").types;
329
+ return e || F && F.binding && F.binding("util");
330
+ } catch {
331
+ }
332
+ }(), re = te && te.isTypedArray, ye = re ? lr(re) : pr, dr = Object.prototype, _r = dr.hasOwnProperty;
333
+ function gr(e, t) {
334
+ var r = R(e), a = !r && It(e), i = !r && !a && H(e), n = !r && !a && !i && ye(e), f = r || a || i || n, u = f ? St(e.length, String) : [], p = u.length;
335
+ for (var s in e)
336
+ (t || _r.call(e, s)) && !(f && // Safari 9 has enumerable `arguments.length` in strict mode.
337
+ (s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
338
+ i && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
339
+ n && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
340
+ Gt(s, p))) && u.push(s);
341
+ return u;
342
+ }
343
+ var hr = Object.prototype;
344
+ function vr(e) {
345
+ var t = e && e.constructor, r = typeof t == "function" && t.prototype || hr;
346
+ return e === r;
347
+ }
348
+ function yr(e, t) {
349
+ return function(r) {
350
+ return e(t(r));
351
+ };
352
+ }
353
+ var br = yr(Object.keys, Object), Ar = Object.prototype, Tr = Ar.hasOwnProperty;
354
+ function wr(e) {
355
+ if (!vr(e))
356
+ return br(e);
357
+ var t = [];
358
+ for (var r in Object(e))
359
+ Tr.call(e, r) && r != "constructor" && t.push(r);
360
+ return t;
361
+ }
362
+ function Or(e) {
363
+ return e != null && he(e.length) && !Te(e);
364
+ }
365
+ function $r(e) {
366
+ return Or(e) ? gr(e) : wr(e);
367
+ }
368
+ function ae(e) {
369
+ return wt(e, $r, Et);
370
+ }
371
+ var Pr = 1, mr = Object.prototype, Er = mr.hasOwnProperty;
372
+ function Sr(e, t, r, a, i, n) {
373
+ var f = r & Pr, u = ae(e), p = u.length, s = ae(t), d = s.length;
374
+ if (p != d && !f)
375
+ return !1;
376
+ for (var c = p; c--; ) {
377
+ var l = u[c];
378
+ if (!(f ? l in t : Er.call(t, l)))
379
+ return !1;
380
+ }
381
+ var h = n.get(e), _ = n.get(t);
382
+ if (h && _)
383
+ return h == t && _ == e;
384
+ var g = !0;
385
+ n.set(e, t), n.set(t, e);
386
+ for (var y = f; ++c < p; ) {
387
+ l = u[c];
388
+ var T = e[l], w = t[l];
389
+ if (a)
390
+ var X = f ? a(w, T, l, t, e, n) : a(T, w, l, e, t, n);
391
+ if (!(X === void 0 ? T === w || i(T, w, r, a, n) : X)) {
392
+ g = !1;
393
+ break;
394
+ }
395
+ y || (y = l == "constructor");
396
+ }
397
+ if (g && !y) {
398
+ var I = e.constructor, L = t.constructor;
399
+ I != L && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof L == "function" && L instanceof L) && (g = !1);
400
+ }
401
+ return n.delete(e), n.delete(t), g;
402
+ }
403
+ var N = m($, "DataView"), K = m($, "Promise"), q = m($, "Set"), W = m($, "WeakMap"), ne = "[object Map]", xr = "[object Object]", se = "[object Promise]", ie = "[object Set]", oe = "[object WeakMap]", fe = "[object DataView]", jr = E(N), Cr = E(j), Ir = E(K), Lr = E(q), Mr = E(W), b = U;
404
+ (N && b(new N(new ArrayBuffer(1))) != fe || j && b(new j()) != ne || K && b(K.resolve()) != se || q && b(new q()) != ie || W && b(new W()) != oe) && (b = function(e) {
405
+ var t = U(e), r = t == xr ? e.constructor : void 0, a = r ? E(r) : "";
406
+ if (a)
407
+ switch (a) {
408
+ case jr:
409
+ return fe;
410
+ case Cr:
411
+ return ne;
412
+ case Ir:
413
+ return se;
414
+ case Lr:
415
+ return ie;
416
+ case Mr:
417
+ return oe;
418
+ }
419
+ return t;
420
+ });
421
+ var Dr = 1, ue = "[object Arguments]", pe = "[object Array]", M = "[object Object]", Rr = Object.prototype, le = Rr.hasOwnProperty;
422
+ function Ur(e, t, r, a, i, n) {
423
+ var f = R(e), u = R(t), p = f ? pe : b(e), s = u ? pe : b(t);
424
+ p = p == ue ? M : p, s = s == ue ? M : s;
425
+ var d = p == M, c = s == M, l = p == s;
426
+ if (l && H(e)) {
427
+ if (!H(t))
428
+ return !1;
429
+ f = !0, d = !1;
430
+ }
431
+ if (l && !d)
432
+ return n || (n = new A()), f || ye(e) ? de(e, t, r, a, i, n) : At(e, t, p, r, a, i, n);
433
+ if (!(r & Dr)) {
434
+ var h = d && le.call(e, "__wrapped__"), _ = c && le.call(t, "__wrapped__");
435
+ if (h || _) {
436
+ var g = h ? e.value() : e, y = _ ? t.value() : t;
437
+ return n || (n = new A()), i(g, y, r, a, n);
438
+ }
439
+ }
440
+ return l ? (n || (n = new A()), Sr(e, t, r, a, i, n)) : !1;
441
+ }
442
+ function be(e, t, r, a, i) {
443
+ return e === t ? !0 : e == null || t == null || !x(e) && !x(t) ? e !== e && t !== t : Ur(e, t, r, a, be, i);
444
+ }
445
+ function Gr(e, t) {
446
+ return be(e, t);
447
+ }
448
+ function Br(e, t) {
449
+ const r = {
450
+ deepCompare: !1,
451
+ waitUntilFirstUpdate: !1,
452
+ ...t
453
+ };
454
+ return (a, i) => {
455
+ const { update: n } = a, f = Array.isArray(e) ? e : [e];
456
+ a.update = function(u) {
457
+ f.forEach((p) => {
458
+ const s = p;
459
+ if (u.has(s)) {
460
+ const d = u.get(s), c = this[s];
461
+ (r.deepCompare ? !Gr(d, c) : d !== c) && (!r.waitUntilFirstUpdate || this.hasUpdated) && this[i](
462
+ d,
463
+ c
464
+ );
465
+ }
466
+ }), n.call(this, u);
467
+ };
468
+ };
469
+ }
470
+ export {
471
+ wr as A,
472
+ P as M,
473
+ D as S,
474
+ Z as U,
475
+ Or as a,
476
+ lr as b,
477
+ rt as c,
478
+ It as d,
479
+ Tt as e,
480
+ Ot as f,
481
+ A as g,
482
+ be as h,
483
+ R as i,
484
+ he as j,
485
+ $r as k,
486
+ Gt as l,
487
+ q as m,
488
+ ce as n,
489
+ vr as o,
490
+ gr as p,
491
+ yr as q,
492
+ $t as r,
493
+ it as s,
494
+ Et as t,
495
+ wt as u,
496
+ b as v,
497
+ Br as w,
498
+ te as x,
499
+ H as y,
500
+ ye as z
501
+ };
@@ -1,15 +1,18 @@
1
- import { i as b, n as s, C as x, x as h, c as y } from "../chunks/custom-element.vnXBMQxc.js";
2
- import { c as C } from "../chunks/component.styles.CI-v8BZa.js";
3
- import { s as f, a as u, g as p, b as m } from "../chunks/animation-registry.DavRkTTr.js";
4
- import { w as v } from "../chunks/event.mFzZi4sr.js";
5
- import { L as T } from "../chunks/i18n.BP2FRO1v.js";
6
- import { H as I } from "../chunks/slot.DJLm4Dig.js";
7
- import { w as g } from "../chunks/watch.BCJD77bD.js";
8
- import { r as A } from "../chunks/state.Cw55xXlb.js";
9
- import { e as _ } from "../chunks/query.BBf1UFkC.js";
10
- import { e as w } from "../chunks/class-map.CoZTSvbM.js";
1
+ import { n as s, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as x } from "../chunks/component.styles.DMSLciL5.js";
3
+ import { s as u, a as p } from "../chunks/animate.El-MpOws.js";
4
+ import { c as y } from "../chunks/custom-element.L4WJXn1j.js";
5
+ import { w as m } from "../chunks/event.mFzZi4sr.js";
6
+ import { L as C } from "../chunks/i18n.DrzK7TPf.js";
7
+ import { H as T } from "../chunks/slot.j5oheLJC.js";
8
+ import { w } from "../chunks/watch.q1sEjPWL.js";
9
+ import { i as I, x as h } from "../chunks/lit-element.jLBm65_O.js";
10
+ import { r as A } from "../chunks/state.CSDxrqLd.js";
11
+ import { e as g } from "../chunks/query.BBf1UFkC.js";
12
+ import { e as f } from "../chunks/class-map.BiVq-cVR.js";
13
+ import { s as _, g as v } from "../chunks/animation-registry.HmpwNuGH.js";
11
14
  import H from "./icon-button.js";
12
- const k = b`
15
+ const k = I`
13
16
  :host {
14
17
  display: contents;
15
18
 
@@ -141,21 +144,21 @@ const k = b`
141
144
  display: none;
142
145
  }
143
146
  `;
144
- var z = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, t = (r, a, n, l) => {
145
- for (var o = l > 1 ? void 0 : l ? $(a, n) : a, c = r.length - 1, d; c >= 0; c--)
146
- (d = r[c]) && (o = (l ? d(a, n, o) : d(o)) || o);
147
- return l && o && z(a, n, o), o;
147
+ var z = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, t = (r, o, n, l) => {
148
+ for (var a = l > 1 ? void 0 : l ? $(o, n) : o, c = r.length - 1, d; c >= 0; c--)
149
+ (d = r[c]) && (a = (l ? d(o, n, a) : d(a)) || a);
150
+ return l && a && z(o, n, a), a;
148
151
  };
149
152
  const i = Object.assign(document.createElement("div"), {
150
153
  className: "cx-toast-stack"
151
154
  });
152
- let e = class extends x {
155
+ let e = class extends b {
153
156
  constructor() {
154
- super(...arguments), this.hasSlotController = new I(
157
+ super(...arguments), this.hasSlotController = new T(
155
158
  this,
156
159
  "icon",
157
160
  "suffix"
158
- ), this.localize = new T(this), this.open = !1, this.closable = !1, this.variant = "primary", this.duration = 1 / 0, this.remainingTime = this.duration;
161
+ ), this.localize = new C(this), this.open = !1, this.closable = !1, this.variant = "primary", this.duration = 1 / 0, this.remainingTime = this.duration;
159
162
  }
160
163
  runFirstUpdated() {
161
164
  this.base.hidden = !this.open;
@@ -181,9 +184,9 @@ let e = class extends x {
181
184
  }
182
185
  handleCountdownChange() {
183
186
  if (this.open && this.duration < 1 / 0 && this.countdown) {
184
- const { countdownElement: r } = this, a = "100%", n = "0";
187
+ const { countdownElement: r } = this, o = "100%", n = "0";
185
188
  this.countdownAnimation = r.animate(
186
- [{ width: a }, { width: n }],
189
+ [{ width: o }, { width: n }],
187
190
  {
188
191
  duration: this.duration,
189
192
  easing: "linear"
@@ -197,16 +200,16 @@ let e = class extends x {
197
200
  async handleOpenChange() {
198
201
  if (this.open) {
199
202
  this.emit("cx-show"), this.duration < 1 / 0 && this.restartAutoHide(), await u(this.base), this.base.hidden = !1;
200
- const { keyframes: r, options: a } = p(this, "alert.show", {
203
+ const { keyframes: r, options: o } = v(this, "alert.show", {
201
204
  dir: this.localize.dir()
202
205
  });
203
- await m(this.base, r, a), this.emit("cx-after-show");
206
+ await p(this.base, r, o), this.emit("cx-after-show");
204
207
  } else {
205
208
  this.emit("cx-hide"), clearTimeout(this.autoHideTimeout), clearInterval(this.remainingTimeInterval), await u(this.base);
206
- const { keyframes: r, options: a } = p(this, "alert.hide", {
209
+ const { keyframes: r, options: o } = v(this, "alert.hide", {
207
210
  dir: this.localize.dir()
208
211
  });
209
- await m(this.base, r, a), this.base.hidden = !0, this.emit("cx-after-hide");
212
+ await p(this.base, r, o), this.base.hidden = !0, this.emit("cx-after-hide");
210
213
  }
211
214
  }
212
215
  handleDurationChange() {
@@ -215,12 +218,12 @@ let e = class extends x {
215
218
  /** Shows the alert. */
216
219
  async show() {
217
220
  if (!this.open)
218
- return this.open = !0, v(this, "cx-after-show");
221
+ return this.open = !0, m(this, "cx-after-show");
219
222
  }
220
223
  /** Hides the alert */
221
224
  async hide() {
222
225
  if (this.open)
223
- return this.open = !1, v(this, "cx-after-hide");
226
+ return this.open = !1, m(this, "cx-after-hide");
224
227
  }
225
228
  /**
226
229
  * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when
@@ -244,7 +247,7 @@ let e = class extends x {
244
247
  return h`
245
248
  <div
246
249
  part="base"
247
- class=${w({
250
+ class=${f({
248
251
  alert: !0,
249
252
  "alert--closable": this.closable,
250
253
  "alert--danger": this.variant === "danger",
@@ -283,7 +286,7 @@ let e = class extends x {
283
286
  <div role="timer" class="alert__timer">${this.remainingTime}</div>
284
287
  ${this.countdown ? h`
285
288
  <div
286
- class=${w({
289
+ class=${f({
287
290
  alert__countdown: !0,
288
291
  "alert__countdown--ltr": this.countdown === "ltr"
289
292
  })}
@@ -295,13 +298,13 @@ let e = class extends x {
295
298
  `;
296
299
  }
297
300
  };
298
- e.styles = [C, k];
301
+ e.styles = [x, k];
299
302
  e.dependencies = { "cx-icon-button": H };
300
303
  t([
301
- _('[part~="base"]')
304
+ g('[part~="base"]')
302
305
  ], e.prototype, "base", 2);
303
306
  t([
304
- _(".alert__countdown-elapsed")
307
+ g(".alert__countdown-elapsed")
305
308
  ], e.prototype, "countdownElement", 2);
306
309
  t([
307
310
  s({ reflect: !0, type: Boolean })
@@ -322,22 +325,22 @@ t([
322
325
  A()
323
326
  ], e.prototype, "remainingTime", 2);
324
327
  t([
325
- g("open", { waitUntilFirstUpdate: !0 })
328
+ w("open", { waitUntilFirstUpdate: !0 })
326
329
  ], e.prototype, "handleOpenChange", 1);
327
330
  t([
328
- g("duration")
331
+ w("duration")
329
332
  ], e.prototype, "handleDurationChange", 1);
330
333
  e = t([
331
334
  y("cx-alert")
332
335
  ], e);
333
- f("alert.show", {
336
+ _("alert.show", {
334
337
  keyframes: [
335
338
  { opacity: 0, scale: 0.8 },
336
339
  { opacity: 1, scale: 1 }
337
340
  ],
338
341
  options: { duration: 250, easing: "ease" }
339
342
  });
340
- f("alert.hide", {
343
+ _("alert.hide", {
341
344
  keyframes: [
342
345
  { opacity: 1, scale: 1 },
343
346
  { opacity: 0, scale: 0.8 }