@orangelogic/design-system 2.0.0-29DUO2-beta-3 → 2.0.0-29IORR-beta-2

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 (307) hide show
  1. package/library/chunks/{AxisLabelRadial.CgPb7ghO.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B6rG-Ylz.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.C-YfO-57.js → CandlestickSeries.CkXGtRWE.js} +2 -2
  4. package/library/chunks/{Circle.DhoXSsjo.js → Circle.DBa5Ok8V.js} +1 -1
  5. package/library/chunks/{ColumnSeries.CZi2LBZ2.js → ColumnSeries.DGazbfza.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CykTMTsG.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
  7. package/library/chunks/{EditableLabel.BlQ7B4D0.js → EditableLabel.BWeq6fgX.js} +1 -1
  8. package/library/chunks/{Gradient.BQ0JzFEe.js → Gradient.CdcsPIru.js} +1 -1
  9. package/library/chunks/{LinearGradient.DuVS2EHe.js → LinearGradient.B1z9AGUt.js} +2 -2
  10. package/library/chunks/{Picture.DRO0jnR6.js → Picture.YSPC0l0Q.js} +1 -1
  11. package/library/chunks/{Polygon.DEO3f_qs.js → Polygon.BwMvXN2H.js} +1 -1
  12. package/library/chunks/{ProgressPie.Bryx2w1J.js → ProgressPie.DlCwXN17.js} +5 -5
  13. package/library/chunks/{RadialLabel.TyXECvYG.js → RadialLabel.DyVOf2K8.js} +1 -1
  14. package/library/chunks/{Scrollbar.DK48nKk4.js → Scrollbar.BdZVb_Z-.js} +1 -1
  15. package/library/chunks/{Slice.DbXRplXx.js → Slice.DiEswWa6.js} +1 -1
  16. package/library/chunks/{Slider.B27osQYu.js → Slider.C20No2z5.js} +1 -1
  17. package/library/chunks/{SpriteResizer.C4wFzD_x.js → SpriteResizer.DFnmcy0h.js} +1 -1
  18. package/library/chunks/{Triangle.BEmFiHyd.js → Triangle.BaOef7HV.js} +1 -1
  19. package/library/chunks/{ZoomTools.CBqjLDqb.js → ZoomTools.D5JPehoL.js} +1 -1
  20. package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
  21. package/library/chunks/{am-chart.B_OdX4Q-.js → am-chart.H2jnOzFc.js} +254 -262
  22. package/library/chunks/{animation.DfUHRQry.js → animation.7ifl4x2S.js} +4 -8
  23. package/library/chunks/array.DCtvHiLS.js +81 -0
  24. package/library/chunks/asset.D7E0-cUV.js +460 -0
  25. package/library/chunks/{button.KnE3mcyM.js → button.CauAHfdl.js} +10 -45
  26. package/library/chunks/button.styles.CKqn956w.js +5 -0
  27. package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
  28. package/library/chunks/{color-swatch-group.p3Sdqlat.js → color-swatch-group.D5BP2W3P.js} +50 -220
  29. package/library/chunks/{color-swatch.C0oPHfOu.js → color-swatch.2HS4bc3N.js} +20 -204
  30. package/library/chunks/{colorPicker.CJwbdhtn.js → colorPicker.06n6P3aK.js} +5 -5
  31. package/library/chunks/component.styles.CRO4Odto.js +5 -0
  32. package/library/chunks/confirm-popover.DmGAMS8X.js +121 -0
  33. package/library/chunks/{cropper.tSDgXKqJ.js → cropper.ZU2Dy-MM.js} +8182 -8540
  34. package/library/chunks/{dialog.DpZBbTCn.js → dialog.2UW1LNm1.js} +117 -314
  35. package/library/chunks/{dom.BQVKDNd8.js → dom.BslZF2Y_.js} +1 -1
  36. package/library/chunks/dot-pagination.DsAfSNzr.js +204 -0
  37. package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.Fpyb8xvv.js} +214 -203
  38. package/library/chunks/{exporting.DCqJtW6l.js → exporting.Chnl3UWi.js} +2 -2
  39. package/library/chunks/file-on-demand.Dig_iVvx.js +1956 -0
  40. package/library/chunks/{flow.Ch1rU01m.js → flow.D2CqFQa7.js} +5 -5
  41. package/library/chunks/folder-select.BT1drT8C.js +775 -0
  42. package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
  43. package/library/chunks/{form.DgwYWi0O.js → form.CFc09rKh.js} +1 -1
  44. package/library/chunks/{gantt.rWdF_jmG.js → gantt.DSHD2gjO.js} +8 -8
  45. package/library/chunks/header.BePZwMCQ.js +170 -0
  46. package/library/chunks/{hierarchy.HoRJAu6S.js → hierarchy.DwVsMmsP.js} +5 -5
  47. package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
  48. package/library/chunks/{i18n.C0iakJkV.js → i18n.BFqTRDCA.js} +19 -12
  49. package/library/chunks/icon-button.rKe0N4VB.js +149 -0
  50. package/library/chunks/iframe.DznmlYpV.js +73 -0
  51. package/library/chunks/{image.C9avagDq.js → image.CEtCGsNL.js} +275 -488
  52. package/library/chunks/{index.D2JPKXqq.js → index.C9khsiad.js} +17 -17
  53. package/library/chunks/isObjectLike.z36Fu426.js +34 -0
  54. package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
  55. package/library/chunks/{json.DHNMAC-m.js → json.zyETMOw-.js} +3 -3
  56. package/library/chunks/{list-editor.B2mFE9f7.js → list-editor.CJ96S1Np.js} +58 -372
  57. package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
  58. package/library/chunks/option.COnEtd3X.js +123 -0
  59. package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
  60. package/library/chunks/pagination.DaD9Yul6.js +334 -0
  61. package/library/chunks/{percent.CM9cr1H3.js → percent.DuQwbCCg.js} +3 -3
  62. package/library/chunks/{radar.CQUnnhGk.js → radar.FpYl3UH5.js} +4 -4
  63. package/library/chunks/{responsive.CrX-HUow.js → responsive.BndCeSg0.js} +1 -1
  64. package/library/chunks/{sliceGrouper.iv1p8MAK.js → sliceGrouper.BsE7fGMt.js} +1 -1
  65. package/library/chunks/{stock.CU0y6a5P.js → stock.BR-ag4Pt.js} +9 -9
  66. package/library/chunks/string.BigZhczf.js +185 -0
  67. package/library/chunks/{tab-group.05PY0smt.js → tab-group.0Po0eoxR.js} +33 -584
  68. package/library/chunks/{table.DNTm_GMS.js → table.WNd284in.js} +3535 -4852
  69. package/library/chunks/{timeline.yzdwtGKM.js → timeline.DkzkmgEM.js} +5 -5
  70. package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
  71. package/library/chunks/toast.B2cJgW5u.js +71 -0
  72. package/library/chunks/transformation.CzBptarI.js +140 -0
  73. package/library/chunks/{tree.CeMLCbs-.js → tree.QCQd_cuc.js} +32 -400
  74. package/library/chunks/typography.DJC_UXgs.js +52 -0
  75. package/library/chunks/url.Cj9cIQXJ.js +27 -0
  76. package/library/chunks/{venn.BOEi13la.js → venn.D739bOV3.js} +1 -1
  77. package/library/chunks/watch.BCJD77bD.js +547 -0
  78. package/library/chunks/{wc.V-lq02JF.js → wc.DzW311D-.js} +1 -1
  79. package/library/chunks/{xy.Df1hy9ac.js → xy.DCRDfTsa.js} +10 -10
  80. package/library/components/alert.js +11 -179
  81. package/library/components/am-chart.js +3 -3
  82. package/library/components/animated-image.js +13 -101
  83. package/library/components/animation.js +3 -3
  84. package/library/components/array-line-clamp.js +8 -89
  85. package/library/components/asset-link-format.js +718 -1380
  86. package/library/components/atoms.js +18 -18
  87. package/library/components/avatar.js +6 -95
  88. package/library/components/badge.js +11 -139
  89. package/library/components/bicolor-picker.js +4 -23
  90. package/library/components/border-input-group.js +5 -26
  91. package/library/components/breadcrumb-item.js +25 -156
  92. package/library/components/breadcrumb.js +4 -22
  93. package/library/components/button-group.js +3 -28
  94. package/library/components/button.js +6 -6
  95. package/library/components/card.js +4 -126
  96. package/library/components/checkbox.js +13 -254
  97. package/library/components/color-picker.js +57 -728
  98. package/library/components/color-swatch-group.js +9 -9
  99. package/library/components/color-swatch.js +5 -5
  100. package/library/components/confirm-popover.js +6 -6
  101. package/library/components/copy-button.js +11 -256
  102. package/library/components/corner-position-input-group.js +5 -58
  103. package/library/components/cropper.js +2 -2
  104. package/library/components/details.js +6 -152
  105. package/library/components/dialog.js +6 -6
  106. package/library/components/divider.js +6 -68
  107. package/library/components/dot-pagination.js +4 -4
  108. package/library/components/dot-status.js +25 -95
  109. package/library/components/drawer.js +11 -242
  110. package/library/components/dropdown.js +49 -151
  111. package/library/components/dynamic-select.js +10 -75
  112. package/library/components/e-chart.js +8 -51
  113. package/library/components/element-clamp.js +7 -80
  114. package/library/components/file-on-demand.js +13 -13
  115. package/library/components/folder-select.js +9 -7
  116. package/library/components/format-bytes.js +1 -1
  117. package/library/components/format-date.js +3 -7
  118. package/library/components/format-number.js +1 -1
  119. package/library/components/format-time.js +4 -14
  120. package/library/components/grid-item.js +5 -172
  121. package/library/components/grid.js +5 -41
  122. package/library/components/header.js +4 -4
  123. package/library/components/hub-connection.js +2 -2
  124. package/library/components/icon-button.js +14 -679
  125. package/library/components/icon.js +9 -2449
  126. package/library/components/iframe.js +4 -4
  127. package/library/components/image-comparer.js +9 -129
  128. package/library/components/image.js +4 -4
  129. package/library/components/include.js +3 -7
  130. package/library/components/input-group.js +4 -29
  131. package/library/components/input.js +358 -966
  132. package/library/components/line-clamp.js +7 -83
  133. package/library/components/list-editor.js +9 -9
  134. package/library/components/markdown.js +2 -4
  135. package/library/components/masonry.js +24 -223
  136. package/library/components/menu-item.js +155 -445
  137. package/library/components/menu-label.js +3 -20
  138. package/library/components/menu-section.js +3 -17
  139. package/library/components/menu.js +5 -113
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +3 -7
  142. package/library/components/option.js +4 -4
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +5 -16
  145. package/library/components/pagination.js +10 -8
  146. package/library/components/popup.js +385 -682
  147. package/library/components/position-picker.js +4 -94
  148. package/library/components/progress-bar.js +19 -136
  149. package/library/components/progress-ring.js +4 -95
  150. package/library/components/qr-code.js +5 -17
  151. package/library/components/radio-button.js +5 -25
  152. package/library/components/radio-card.js +8 -176
  153. package/library/components/radio-group.js +22 -153
  154. package/library/components/radio.js +14 -171
  155. package/library/components/range.js +123 -660
  156. package/library/components/rating.js +58 -238
  157. package/library/components/relative-time.js +3 -13
  158. package/library/components/resize-observer.js +4 -8
  159. package/library/components/select.js +305 -1012
  160. package/library/components/shadow-input-group.js +5 -24
  161. package/library/components/share-option-list.js +21 -313
  162. package/library/components/sidebar.js +15 -221
  163. package/library/components/size-input-group.js +12 -77
  164. package/library/components/skeleton.js +7 -80
  165. package/library/components/space.js +6 -143
  166. package/library/components/spinner.js +7 -76
  167. package/library/components/split-panel.js +18 -125
  168. package/library/components/step.js +21 -272
  169. package/library/components/stepper-wizard.js +9 -43
  170. package/library/components/stepper.js +17 -34
  171. package/library/components/switch.js +13 -276
  172. package/library/components/tab-group.js +7 -7
  173. package/library/components/tab-panel.js +5 -32
  174. package/library/components/tab.js +11 -257
  175. package/library/components/table.js +8 -8
  176. package/library/components/tag.js +15 -166
  177. package/library/components/textarea.js +183 -504
  178. package/library/components/timecode.js +6 -25
  179. package/library/components/tooltip.js +10 -94
  180. package/library/components/tree-item.js +4 -4
  181. package/library/components/tree.js +4 -4
  182. package/library/components/typeface.js +24 -123
  183. package/library/components/types.js +37225 -47339
  184. package/library/components/typography.js +2 -2
  185. package/library/components/video.js +3875 -6263
  186. package/library/components/visually-hidden.js +3 -15
  187. package/library/package.json +4 -1
  188. package/library/packages/atoms/src/components/dialog/dialog.d.ts +10 -0
  189. package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
  190. package/library/packages/atoms/src/components/image/image.d.ts +15 -1
  191. package/library/packages/atoms/src/components/input/auto-grow-controller.d.ts +23 -0
  192. package/library/packages/atoms/src/components/input/input.d.ts +10 -2
  193. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -0
  194. package/library/packages/atoms/src/components/pagination/pagination.d.ts +32 -2
  195. package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +10 -0
  196. package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
  197. package/library/packages/atoms/src/components/select/select.d.ts +11 -0
  198. package/library/packages/atoms/src/components/table/table.d.ts +49 -8
  199. package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
  200. package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
  201. package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
  202. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
  203. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
  204. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +40 -1
  205. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +10 -3
  206. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/formatter-display-resolvers.d.ts +93 -0
  207. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
  208. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
  209. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
  210. package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
  211. package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +2 -2
  212. package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
  213. package/library/packages/atoms/src/components/video/video.d.ts +3 -1
  214. package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
  215. package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
  216. package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
  217. package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
  218. package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
  219. package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
  220. package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
  221. package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
  222. package/library/packages/events/src/cx-video-format-picker-delete.d.ts +6 -0
  223. package/library/packages/events/src/cx-video-format-picker-select.d.ts +8 -0
  224. package/library/packages/events/src/events.d.ts +11 -1
  225. package/library/packages/molecules/src/cropper/cropper.d.ts +2 -0
  226. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +2 -0
  227. package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +3 -2
  228. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
  229. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
  230. package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
  231. package/library/packages/molecules/src/index.d.ts +1 -0
  232. package/library/packages/molecules/src/storybook/storybook.d.ts +60 -23
  233. package/library/packages/molecules/src/timeline/timeline.d.ts +14 -0
  234. package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +55 -0
  235. package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +2 -0
  236. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -1
  237. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
  238. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +95 -0
  239. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
  240. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
  241. package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
  242. package/library/packages/organisms/src/carousel/carousel.d.ts +5 -1
  243. package/library/packages/organisms/src/comment/comment.d.ts +1 -0
  244. package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
  245. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
  246. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
  247. package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
  248. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
  249. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
  250. package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
  251. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
  252. package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
  253. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
  254. package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
  255. package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
  256. package/library/packages/organisms/src/content-builder/styleController.d.ts +20 -2
  257. package/library/packages/organisms/src/index.d.ts +2 -0
  258. package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
  259. package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
  260. package/library/packages/services/src/api/asset/asset.d.ts +3 -2
  261. package/library/packages/services/src/api/asset/asset.types.d.ts +84 -0
  262. package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
  263. package/library/packages/services/src/api/endpoints.d.ts +1 -1
  264. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
  265. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +17 -5
  266. package/library/packages/types/src/asset-click-action.d.ts +3 -1
  267. package/library/packages/types/src/bento-grid.d.ts +37 -0
  268. package/library/packages/types/src/content-builder.d.ts +27 -1
  269. package/library/packages/types/src/gallery.d.ts +0 -6
  270. package/library/packages/types/src/icon-button.d.ts +7 -0
  271. package/library/packages/types/src/menu-item.d.ts +33 -0
  272. package/library/packages/types/src/storybook.d.ts +19 -0
  273. package/library/packages/types/src/table.d.ts +37 -1
  274. package/library/packages/types/src/textarea.d.ts +4 -0
  275. package/library/packages/types/src/video-format-picker.d.ts +11 -0
  276. package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
  277. package/library/packages/utils/src/custom-element/i18n.d.ts +10 -3
  278. package/library/packages/utils/src/index.d.ts +1 -0
  279. package/library/packages/utils/src/string/string.d.ts +33 -0
  280. package/library/packages/utils/src/transformation/index.d.ts +1 -0
  281. package/library/packages/utils/src/url/url.d.ts +9 -0
  282. package/library/react-web-component.d.ts +293 -29
  283. package/library/utils.js +483 -178
  284. package/package.json +4 -1
  285. package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
  286. package/library/chunks/asset.CG_yXtWK.js +0 -288
  287. package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
  288. package/library/chunks/component.styles.DMSLciL5.js +0 -71
  289. package/library/chunks/confirm-popover.zmOFI4e-.js +0 -288
  290. package/library/chunks/content-builder.D_phDrlo.js +0 -127
  291. package/library/chunks/dot-pagination.COBkyhoJ.js +0 -325
  292. package/library/chunks/file-on-demand.CbE-qsiP.js +0 -3740
  293. package/library/chunks/folder-select.Bl_WkhVE.js +0 -844
  294. package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
  295. package/library/chunks/header.BduX6KJP.js +0 -777
  296. package/library/chunks/identity.ByMq8VxU.js +0 -6
  297. package/library/chunks/iframe.BPKV2K7z.js +0 -160
  298. package/library/chunks/index.B3wJT3XS.js +0 -373
  299. package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
  300. package/library/chunks/option.DnpkE8Xi.js +0 -296
  301. package/library/chunks/pagination.C30LoTya.js +0 -341
  302. package/library/chunks/string.B_rEG27K.js +0 -160
  303. package/library/chunks/toast.BXNbwZV8.js +0 -25
  304. package/library/chunks/typography.oDzoLbZS.js +0 -149
  305. package/library/chunks/url.LjsR2sB5.js +0 -15
  306. package/library/chunks/watch.q1sEjPWL.js +0 -501
  307. /package/library/packages/{organisms/src/asset-link-format/asset-link-format.utils.d.ts → utils/src/transformation/transformation.d.ts} +0 -0
@@ -1,30 +1,32 @@
1
- import { x as T, i as se, E as Le } from "./lit-element.jLBm65_O.js";
2
- import { C as Re, n as m } from "./lib-cortex-element.CVMmyPMC.js";
3
- import { r as H } from "./state.CSDxrqLd.js";
1
+ import { x as D, i as se, E as ge } from "./lit-element.jLBm65_O.js";
2
+ import { C as Le, n as d } from "./lib-cortex-element.CVMmyPMC.js";
3
+ import { r as L } from "./state.CSDxrqLd.js";
4
4
  import { e as X } from "./query.BBf1UFkC.js";
5
5
  import { E as He, b as de, a as $e } from "./index.Cpamj0jB.js";
6
- import { c as We } from "./component.styles.DMSLciL5.js";
7
- import { c as Ae } from "./custom-element.L4WJXn1j.js";
6
+ import { c as We } from "./component.styles.CRO4Odto.js";
7
+ import { c as Te } from "./custom-element.L4WJXn1j.js";
8
8
  import { d as Oe } from "./debounce.DaHuiSGU.js";
9
- import { L as Me } from "./i18n.C0iakJkV.js";
10
- import { w as q } from "./watch.q1sEjPWL.js";
9
+ import { L as Ae } from "./i18n.BFqTRDCA.js";
10
+ import { w as q } from "./watch.BCJD77bD.js";
11
11
  import { e as j } from "./class-map.BiVq-cVR.js";
12
- import { o as De } from "./if-defined.BRoBj_Rp.js";
13
- import { o as je } from "./style-map.llVFPd__.js";
14
- import { n as V } from "./when.Dr1es41R.js";
15
- import Te from "../components/icon.js";
16
- import Be from "../components/popup.js";
17
- import Ze from "../components/resize-observer.js";
18
- import Ie from "../components/skeleton.js";
19
- import Ne from "../components/space.js";
20
- var Pe = /* @__PURE__ */ ((e) => (e.Bottom = "bottom", e.BottomCenter = "bottom-center", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.CenterCenter = "center-center", e.CenterLeft = "center-left", e.CenterRight = "center-right", e.Left = "left", e.Right = "right", e.Top = "top", e.TopCenter = "top-center", e.TopLeft = "top-left", e.TopRight = "top-right", e))(Pe || {}), Y = /* @__PURE__ */ ((e) => (e.Jump = "jump", e.None = "none", e.TextReveal = "text-reveal", e.Zoom = "zoom", e))(Y || {}), ge = /* @__PURE__ */ ((e) => (e.PopOut = "pop-out", e.WithinBorders = "within-borders", e))(ge || {}), ue = /* @__PURE__ */ ((e) => (e.Fade = "fade", e.Slide = "slide", e))(ue || {}), ne = /* @__PURE__ */ ((e) => (e.Auto = "auto", e.Fixed = "fixed", e))(ne || {}), Ve = Object.defineProperty, E = (e, t, o, h) => {
12
+ import { o as Me } from "./if-defined.BRoBj_Rp.js";
13
+ import { e as De, i as je } from "./directive.oAbCiebi.js";
14
+ import { m as Be } from "./directive-helpers.Dm4rc594.js";
15
+ import { o as Ie } from "./style-map.llVFPd__.js";
16
+ import { n as P } from "./when.Dr1es41R.js";
17
+ import _e from "../components/icon.js";
18
+ import Ze from "../components/popup.js";
19
+ import Ne from "../components/resize-observer.js";
20
+ import Pe from "../components/skeleton.js";
21
+ import Ve from "../components/space.js";
22
+ var Fe = /* @__PURE__ */ ((e) => (e.Bottom = "bottom", e.BottomCenter = "bottom-center", e.BottomLeft = "bottom-left", e.BottomRight = "bottom-right", e.CenterCenter = "center-center", e.CenterLeft = "center-left", e.CenterRight = "center-right", e.Left = "left", e.Right = "right", e.Top = "top", e.TopCenter = "top-center", e.TopLeft = "top-left", e.TopRight = "top-right", e))(Fe || {}), Y = /* @__PURE__ */ ((e) => (e.Jump = "jump", e.None = "none", e.TextReveal = "text-reveal", e.Zoom = "zoom", e))(Y || {}), ue = /* @__PURE__ */ ((e) => (e.PopOut = "pop-out", e.WithinBorders = "within-borders", e))(ue || {}), pe = /* @__PURE__ */ ((e) => (e.Fade = "fade", e.Slide = "slide", e))(pe || {}), ne = /* @__PURE__ */ ((e) => (e.Auto = "auto", e.Fixed = "fixed", e))(ne || {}), Ue = Object.defineProperty, E = (e, t, o, h) => {
21
23
  for (var r = void 0, g = e.length - 1, p; g >= 0; g--)
22
24
  (p = e[g]) && (r = p(t, o, r) || r);
23
- return r && Ve(t, o, r), r;
25
+ return r && Ue(t, o, r), r;
24
26
  };
25
- class S extends Re {
27
+ class S extends Le {
26
28
  constructor() {
27
- super(...arguments), this.hasEvent = !1, this.easing = He.Linear, this.highlightBorder = !1, this.highlightColorOverlay = !1, this.highlightDropShadow = !1, this.highlightBackground = !1, this.highlightOpacity = !1, this.effect = Y.None, this.textRevealStyle = ue.Slide, this.zoomStyle = ge.WithinBorders, this.hasSlotContent = !1, this.isCustomSlot = !1, this.isHovering = !1;
29
+ super(...arguments), this.hasEvent = !1, this.easing = He.Linear, this.highlightBorder = !1, this.highlightColorOverlay = !1, this.highlightDropShadow = !1, this.highlightBackground = !1, this.highlightOpacity = !1, this.effect = Y.None, this.textRevealStyle = pe.Slide, this.zoomStyle = ue.WithinBorders, this.hasSlotContent = !1, this.isCustomSlot = !1, this.isHovering = !1;
28
30
  }
29
31
  get easeCSSVariable() {
30
32
  return de[this.easing] || de.linear;
@@ -58,66 +60,66 @@ E([
58
60
  X("slot")
59
61
  ], S.prototype, "slotEl");
60
62
  E([
61
- m({ attribute: "has-event", reflect: !0, type: Boolean })
63
+ d({ attribute: "has-event", reflect: !0, type: Boolean })
62
64
  ], S.prototype, "hasEvent");
63
65
  E([
64
- m({ reflect: !0, type: String })
66
+ d({ reflect: !0, type: String })
65
67
  ], S.prototype, "easing");
66
68
  E([
67
- m({ attribute: "highlight-border", reflect: !0, type: Boolean })
69
+ d({ attribute: "highlight-border", reflect: !0, type: Boolean })
68
70
  ], S.prototype, "highlightBorder");
69
71
  E([
70
- m({
72
+ d({
71
73
  attribute: "highlight-color-overlay",
72
74
  reflect: !0,
73
75
  type: Boolean
74
76
  })
75
77
  ], S.prototype, "highlightColorOverlay");
76
78
  E([
77
- m({
79
+ d({
78
80
  attribute: "highlight-drop-shadow",
79
81
  reflect: !0,
80
82
  type: Boolean
81
83
  })
82
84
  ], S.prototype, "highlightDropShadow");
83
85
  E([
84
- m({ attribute: "highlight-background", reflect: !0, type: Boolean })
86
+ d({ attribute: "highlight-background", reflect: !0, type: Boolean })
85
87
  ], S.prototype, "highlightBackground");
86
88
  E([
87
- m({ attribute: "highlight-opacity", reflect: !0, type: Boolean })
89
+ d({ attribute: "highlight-opacity", reflect: !0, type: Boolean })
88
90
  ], S.prototype, "highlightOpacity");
89
91
  E([
90
- m({ attribute: "effect", reflect: !0, type: String })
92
+ d({ attribute: "effect", reflect: !0, type: String })
91
93
  ], S.prototype, "effect");
92
94
  E([
93
- m({
95
+ d({
94
96
  attribute: "text-reveal-style",
95
97
  reflect: !0,
96
98
  type: String
97
99
  })
98
100
  ], S.prototype, "textRevealStyle");
99
101
  E([
100
- m({
102
+ d({
101
103
  attribute: "zoom-style",
102
104
  reflect: !0,
103
105
  type: String
104
106
  })
105
107
  ], S.prototype, "zoomStyle");
106
108
  E([
107
- H()
109
+ L()
108
110
  ], S.prototype, "hasSlotContent");
109
111
  E([
110
- H()
112
+ L()
111
113
  ], S.prototype, "isCustomSlot");
112
114
  E([
113
- H()
115
+ L()
114
116
  ], S.prototype, "isHovering");
115
- var Fe = Object.defineProperty, O = (e, t, o, h) => {
117
+ var Ye = Object.defineProperty, O = (e, t, o, h) => {
116
118
  for (var r = void 0, g = e.length - 1, p; g >= 0; g--)
117
119
  (p = e[g]) && (r = p(t, o, r) || r);
118
- return r && Fe(t, o, r), r;
120
+ return r && Ye(t, o, r), r;
119
121
  };
120
- class A extends S {
122
+ class T extends S {
121
123
  constructor() {
122
124
  super(), this.width = "", this.height = "", this.resizable = !1, this.heightMode = ne.Fixed, this.noLimit = !1, this.isResizeActive = !1, this.isResizing = !1, this.resizeSize = {
123
125
  height: 0,
@@ -160,8 +162,8 @@ class A extends S {
160
162
  width: this.containingElement?.clientWidth || 0
161
163
  };
162
164
  if (!this.noLimit && this.parentElement) {
163
- const $ = getComputedStyle(this.parentElement), f = $.getPropertyValue("padding-left").trim() || "0px", v = $.getPropertyValue("padding-right").trim() || "0px", M = Number(f.replace("px", "")), y = Number(v.replace("px", "")), R = getComputedStyle(this.parentElement).getPropertyValue("--padding").trim() || "0px", k = Number(R.replace("px", "")), te = Math.max(
164
- M + y,
165
+ const $ = getComputedStyle(this.parentElement), f = $.getPropertyValue("padding-left").trim() || "0px", v = $.getPropertyValue("padding-right").trim() || "0px", A = Number(f.replace("px", "")), z = Number(v.replace("px", "")), H = getComputedStyle(this.parentElement).getPropertyValue("--padding").trim() || "0px", k = Number(H.replace("px", "")), te = Math.max(
166
+ A + z,
165
167
  k * 2
166
168
  );
167
169
  this.maxWidth = Math.max(this.maxWidth - te, 0);
@@ -172,26 +174,26 @@ class A extends S {
172
174
  event: t
173
175
  }
174
176
  });
175
- const Z = ($) => {
177
+ const I = ($) => {
176
178
  g = Number(C.width) + (o ? r.x - $.pageX : $.pageX - r.x), p = Number(C.height) + (h ? r.y - $.pageY : $.pageY - r.y), this.keepRatio && (p >= g / this.ratio && (p = g / this.ratio), g >= p * this.ratio && (g = p * this.ratio));
177
179
  let f = g, v = p;
178
180
  if (this.keepRatio) {
179
- const M = this.maxWidth ?? 1 / 0, y = this.maxHeight ?? 1 / 0;
180
- let R = Math.min(f, M), k = R / this.ratio;
181
- k > y && (k = y, R = k * this.ratio), f = R, v = k;
181
+ const A = this.maxWidth ?? 1 / 0, z = this.maxHeight ?? 1 / 0;
182
+ let H = Math.min(f, A), k = H / this.ratio;
183
+ k > z && (k = z, H = k * this.ratio), f = H, v = k;
182
184
  } else
183
185
  f = this.maxWidth ? Math.min(f, this.maxWidth) : f, v = this.maxHeight ? Math.min(v, this.maxHeight) : v;
184
186
  this.resizeSize = {
185
187
  height: Math.round(v),
186
188
  width: Math.round(f)
187
189
  }, this.keepRatio ? (this.minHeight && this.resizeSize.height < this.minHeight && (this.resizeSize.height = this.minHeight, this.resizeSize.width = Math.round(this.minHeight * this.ratio)), this.minWidth && this.resizeSize.width < this.minWidth && (this.resizeSize.width = this.minWidth, this.resizeSize.height = Math.round(this.minWidth / this.ratio))) : (this.minHeight && this.resizeSize.height < this.minHeight && (this.resizeSize.height = this.minHeight), this.minWidth && this.resizeSize.width < this.minWidth && (this.resizeSize.width = this.minWidth));
188
- }, I = ($) => {
190
+ }, _ = ($) => {
189
191
  if (g > 0 && p > 0) {
190
192
  let f = g, v = p;
191
193
  if (this.keepRatio) {
192
- const M = this.maxWidth ?? 1 / 0, y = this.maxHeight ?? 1 / 0;
193
- let R = Math.min(f, M), k = R / this.ratio;
194
- k > y && (k = y, R = k * this.ratio), f = R, v = k;
194
+ const A = this.maxWidth ?? 1 / 0, z = this.maxHeight ?? 1 / 0;
195
+ let H = Math.min(f, A), k = H / this.ratio;
196
+ k > z && (k = z, H = k * this.ratio), f = H, v = k;
195
197
  } else
196
198
  f = this.maxWidth ? Math.min(f, this.maxWidth) : f, v = this.maxHeight ? Math.min(v, this.maxHeight) : v;
197
199
  this.keepRatio ? (this.minHeight && v < this.minHeight && (v = this.minHeight, f = Math.round(this.minHeight * this.ratio)), this.minWidth && f < this.minWidth && (f = this.minWidth, v = Math.round(this.minWidth / this.ratio))) : (this.minHeight && v < this.minHeight && (v = this.minHeight), this.minWidth && f < this.minWidth && (f = this.minWidth)), this.width = `${Math.round(f)}px`, this.height = `${Math.round(v)}px`, this.resizeSize = {
@@ -206,13 +208,13 @@ class A extends S {
206
208
  }
207
209
  }), this.ownerDocument.defaultView?.removeEventListener(
208
210
  "mousemove",
209
- Z
211
+ I
210
212
  );
211
213
  };
212
214
  this.ownerDocument.defaultView?.addEventListener(
213
215
  "mousemove",
214
- Z
215
- ), this.ownerDocument.defaultView?.addEventListener("mouseup", I, {
216
+ I
217
+ ), this.ownerDocument.defaultView?.addEventListener("mouseup", _, {
216
218
  once: !0
217
219
  });
218
220
  }
@@ -229,87 +231,54 @@ class A extends S {
229
231
  this.handleResizeDragging(t, !1, !1);
230
232
  }
231
233
  renderResizer() {
232
- return T`
233
- <div
234
- class="resizer resizer--top-left"
235
- @mousedown=${this.handleResizeDraggingTopLeft}
236
- ></div>
237
- <div
238
- class="resizer resizer--top-right"
239
- @mousedown=${this.handleResizeDraggingTopRight}
240
- ></div>
241
- <div
242
- class="resizer resizer--bottom-left"
243
- @mousedown=${this.handleResizeDraggingBottomLeft}
244
- ></div>
245
- <div
246
- class="resizer resizer--bottom-right"
247
- @mousedown=${this.handleResizeDraggingBottomRight}
248
- ></div>
249
- `;
234
+ return D`<div class="resizer resizer--top-left" @mousedown=${this.handleResizeDraggingTopLeft}></div><div class="resizer resizer--top-right" @mousedown=${this.handleResizeDraggingTopRight}></div><div class="resizer resizer--bottom-left" @mousedown=${this.handleResizeDraggingBottomLeft}></div><div class="resizer resizer--bottom-right" @mousedown=${this.handleResizeDraggingBottomRight}></div>`;
250
235
  }
251
236
  }
252
237
  O([
253
238
  X('[part="base"]')
254
- ], A.prototype, "containingElement");
239
+ ], T.prototype, "containingElement");
255
240
  O([
256
- m({ reflect: !0, type: String })
257
- ], A.prototype, "width");
241
+ d({ reflect: !0, type: String })
242
+ ], T.prototype, "width");
258
243
  O([
259
- m({ reflect: !0, type: String })
260
- ], A.prototype, "height");
244
+ d({ reflect: !0, type: String })
245
+ ], T.prototype, "height");
261
246
  O([
262
- m({ type: Boolean })
263
- ], A.prototype, "resizable");
247
+ d({ type: Boolean })
248
+ ], T.prototype, "resizable");
264
249
  O([
265
- m({ attribute: "height-mode", reflect: !0, type: String })
266
- ], A.prototype, "heightMode");
250
+ d({ attribute: "height-mode", reflect: !0, type: String })
251
+ ], T.prototype, "heightMode");
267
252
  O([
268
- m({ attribute: "no-limit", reflect: !0, type: Boolean })
269
- ], A.prototype, "noLimit");
253
+ d({ attribute: "no-limit", reflect: !0, type: Boolean })
254
+ ], T.prototype, "noLimit");
270
255
  O([
271
- H()
272
- ], A.prototype, "isResizeActive");
256
+ L()
257
+ ], T.prototype, "isResizeActive");
273
258
  O([
274
- H()
275
- ], A.prototype, "isResizing");
259
+ L()
260
+ ], T.prototype, "isResizing");
276
261
  O([
277
- H()
278
- ], A.prototype, "resizeSize");
279
- const _e = se`
280
- .resizer {
281
- background-color: var(--cx-color-primary);
282
- width: 8px;
283
- height: 8px;
284
- position: absolute;
285
- z-index: 100;
286
- }
287
-
288
- .resizer--top-left {
289
- top: calc(-1px - var(--border-width, 0px));
290
- left: calc(-1px - var(--border-width, 0px));
291
- cursor: nw-resize;
292
- }
293
-
294
- .resizer--top-right {
295
- top: calc(-1px - var(--border-width, 0px));
296
- right: calc(-1px - var(--border-width, 0px));
297
- cursor: ne-resize;
262
+ L()
263
+ ], T.prototype, "resizeSize");
264
+ const qe = se`.resizer{background-color:var(--cx-color-primary);z-index:100;width:8px;height:8px;position:absolute}.resizer--top-left{top:calc(-1px - var(--border-width,0px));left:calc(-1px - var(--border-width,0px));cursor:nw-resize}.resizer--top-right{top:calc(-1px - var(--border-width,0px));right:calc(-1px - var(--border-width,0px));cursor:ne-resize}.resizer--bottom-left{bottom:calc(-1px - var(--border-width,0px));left:calc(-1px - var(--border-width,0px));cursor:sw-resize}.resizer--bottom-right{bottom:calc(-1px - var(--border-width,0px));right:calc(-1px - var(--border-width,0px));cursor:se-resize}`;
265
+ var U = /* @__PURE__ */ ((e) => (e.Automatic = "automatic", e.Manual = "manual", e))(U || {});
266
+ /**
267
+ * @license
268
+ * Copyright 2021 Google LLC
269
+ * SPDX-License-Identifier: BSD-3-Clause
270
+ */
271
+ const Xe = De(class extends je {
272
+ constructor() {
273
+ super(...arguments), this.key = ge;
298
274
  }
299
-
300
- .resizer--bottom-left {
301
- bottom: calc(-1px - var(--border-width, 0px));
302
- left: calc(-1px - var(--border-width, 0px));
303
- cursor: sw-resize;
275
+ render(e, t) {
276
+ return this.key = e, t;
304
277
  }
305
-
306
- .resizer--bottom-right {
307
- bottom: calc(-1px - var(--border-width, 0px));
308
- right: calc(-1px - var(--border-width, 0px));
309
- cursor: se-resize;
278
+ update(e, [t, o]) {
279
+ return t !== this.key && (Be(e), this.key = t), o;
310
280
  }
311
- `;
312
- var U = /* @__PURE__ */ ((e) => (e.Automatic = "automatic", e.Manual = "manual", e))(U || {});
281
+ });
313
282
  /*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */
314
283
  var B = Object.assign || function(e) {
315
284
  for (var t = 1; t < arguments.length; t++) {
@@ -320,7 +289,7 @@ var B = Object.assign || function(e) {
320
289
  return e;
321
290
  }, Q = function(t) {
322
291
  return t.tagName === "IMG";
323
- }, Ue = function(t) {
292
+ }, Ke = function(t) {
324
293
  return NodeList.prototype.isPrototypeOf(t);
325
294
  }, ee = function(t) {
326
295
  return t && t.nodeType === 1;
@@ -329,19 +298,19 @@ var B = Object.assign || function(e) {
329
298
  return o.substr(-4).toLowerCase() === ".svg";
330
299
  }, ce = function(t) {
331
300
  try {
332
- return Array.isArray(t) ? t.filter(Q) : Ue(t) ? [].slice.call(t).filter(Q) : ee(t) ? [t].filter(Q) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(Q) : [];
301
+ return Array.isArray(t) ? t.filter(Q) : Ke(t) ? [].slice.call(t).filter(Q) : ee(t) ? [t].filter(Q) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(Q) : [];
333
302
  } catch {
334
303
  throw new TypeError(`The provided selector is invalid.
335
304
  Expects a CSS selector, a Node element, a NodeList or an array.
336
305
  See: https://github.com/francoischalifour/medium-zoom`);
337
306
  }
338
- }, Ye = function(t) {
307
+ }, Je = function(t) {
339
308
  var o = document.createElement("div");
340
309
  return o.classList.add("medium-zoom-overlay"), o.style.background = t, o;
341
- }, qe = function(t) {
342
- var o = t.getBoundingClientRect(), h = o.top, r = o.left, g = o.width, p = o.height, C = t.cloneNode(), Z = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, I = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
343
- return C.removeAttribute("id"), C.style.position = "absolute", C.style.top = h + Z + "px", C.style.left = r + I + "px", C.style.width = g + "px", C.style.height = p + "px", C.style.transform = "", C;
344
- }, F = function(t, o) {
310
+ }, Ge = function(t) {
311
+ var o = t.getBoundingClientRect(), h = o.top, r = o.left, g = o.width, p = o.height, C = t.cloneNode(), I = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, _ = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
312
+ return C.removeAttribute("id"), C.style.position = "absolute", C.style.top = h + I + "px", C.style.left = r + _ + "px", C.style.width = g + "px", C.style.height = p + "px", C.style.transform = "", C;
313
+ }, V = function(t, o) {
345
314
  var h = B({
346
315
  bubbles: !1,
347
316
  cancelable: !1,
@@ -351,7 +320,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
351
320
  return new CustomEvent(t, h);
352
321
  var r = document.createEvent("CustomEvent");
353
322
  return r.initCustomEvent(t, h.bubbles, h.cancelable, h.detail), r;
354
- }, Xe = function e(t) {
323
+ }, Qe = function e(t) {
355
324
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = window.Promise || function(a) {
356
325
  function n() {
357
326
  }
@@ -359,75 +328,75 @@ See: https://github.com/francoischalifour/medium-zoom`);
359
328
  }, r = function(a) {
360
329
  var n = a.target;
361
330
  if (n === J) {
362
- y();
331
+ z();
363
332
  return;
364
333
  }
365
- L.indexOf(n) !== -1 && R({ target: n });
334
+ R.indexOf(n) !== -1 && H({ target: n });
366
335
  }, g = function() {
367
- if (!(N || !i.original)) {
336
+ if (!(Z || !i.original)) {
368
337
  var a = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
369
- Math.abs(he - a) > d.scrollOffset && setTimeout(y, 150);
338
+ Math.abs(he - a) > c.scrollOffset && setTimeout(z, 150);
370
339
  }
371
340
  }, p = function(a) {
372
341
  var n = a.key || a.keyCode;
373
- (n === "Escape" || n === "Esc" || n === 27) && y();
342
+ (n === "Escape" || n === "Esc" || n === 27) && z();
374
343
  }, C = function() {
375
344
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = a;
376
- if (a.background && (J.style.background = a.background), a.container && a.container instanceof Object && (n.container = B({}, d.container, a.container)), a.template) {
345
+ if (a.background && (J.style.background = a.background), a.container && a.container instanceof Object && (n.container = B({}, c.container, a.container)), a.template) {
377
346
  var u = ee(a.template) ? a.template : document.querySelector(a.template);
378
347
  n.template = u;
379
348
  }
380
- return d = B({}, d, n), L.forEach(function(z) {
381
- z.dispatchEvent(F("medium-zoom:update", {
349
+ return c = B({}, c, n), R.forEach(function(y) {
350
+ y.dispatchEvent(V("medium-zoom:update", {
382
351
  detail: { zoom: b }
383
352
  }));
384
353
  }), b;
385
- }, Z = function() {
386
- var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
387
- return e(B({}, d, a));
388
354
  }, I = function() {
355
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
356
+ return e(B({}, c, a));
357
+ }, _ = function() {
389
358
  for (var a = arguments.length, n = Array(a), u = 0; u < a; u++)
390
359
  n[u] = arguments[u];
391
- var z = n.reduce(function(s, w) {
360
+ var y = n.reduce(function(s, w) {
392
361
  return [].concat(s, ce(w));
393
362
  }, []);
394
- return z.filter(function(s) {
395
- return L.indexOf(s) === -1;
363
+ return y.filter(function(s) {
364
+ return R.indexOf(s) === -1;
396
365
  }).forEach(function(s) {
397
- L.push(s), s.classList.add("medium-zoom-image");
366
+ R.push(s), s.classList.add("medium-zoom-image");
398
367
  }), K.forEach(function(s) {
399
- var w = s.type, W = s.listener, P = s.options;
400
- z.forEach(function(D) {
401
- D.addEventListener(w, W, P);
368
+ var w = s.type, W = s.listener, N = s.options;
369
+ y.forEach(function(M) {
370
+ M.addEventListener(w, W, N);
402
371
  });
403
372
  }), b;
404
373
  }, $ = function() {
405
374
  for (var a = arguments.length, n = Array(a), u = 0; u < a; u++)
406
375
  n[u] = arguments[u];
407
- i.zoomed && y();
408
- var z = n.length > 0 ? n.reduce(function(s, w) {
376
+ i.zoomed && z();
377
+ var y = n.length > 0 ? n.reduce(function(s, w) {
409
378
  return [].concat(s, ce(w));
410
- }, []) : L;
411
- return z.forEach(function(s) {
412
- s.classList.remove("medium-zoom-image"), s.dispatchEvent(F("medium-zoom:detach", {
379
+ }, []) : R;
380
+ return y.forEach(function(s) {
381
+ s.classList.remove("medium-zoom-image"), s.dispatchEvent(V("medium-zoom:detach", {
413
382
  detail: { zoom: b }
414
383
  }));
415
- }), L = L.filter(function(s) {
416
- return z.indexOf(s) === -1;
384
+ }), R = R.filter(function(s) {
385
+ return y.indexOf(s) === -1;
417
386
  }), b;
418
387
  }, f = function(a, n) {
419
388
  var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
420
- return L.forEach(function(z) {
421
- z.addEventListener("medium-zoom:" + a, n, u);
389
+ return R.forEach(function(y) {
390
+ y.addEventListener("medium-zoom:" + a, n, u);
422
391
  }), K.push({ type: "medium-zoom:" + a, listener: n, options: u }), b;
423
392
  }, v = function(a, n) {
424
393
  var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
425
- return L.forEach(function(z) {
426
- z.removeEventListener("medium-zoom:" + a, n, u);
427
- }), K = K.filter(function(z) {
428
- return !(z.type === "medium-zoom:" + a && z.listener.toString() === n.toString());
394
+ return R.forEach(function(y) {
395
+ y.removeEventListener("medium-zoom:" + a, n, u);
396
+ }), K = K.filter(function(y) {
397
+ return !(y.type === "medium-zoom:" + a && y.listener.toString() === n.toString());
429
398
  }), b;
430
- }, M = function() {
399
+ }, A = function() {
431
400
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = a.target, u = function() {
432
401
  var s = {
433
402
  width: document.documentElement.clientWidth,
@@ -437,125 +406,125 @@ See: https://github.com/francoischalifour/medium-zoom`);
437
406
  right: 0,
438
407
  bottom: 0
439
408
  }, w = void 0, W = void 0;
440
- if (d.container)
441
- if (d.container instanceof Object)
442
- s = B({}, s, d.container), w = s.width - s.left - s.right - d.margin * 2, W = s.height - s.top - s.bottom - d.margin * 2;
409
+ if (c.container)
410
+ if (c.container instanceof Object)
411
+ s = B({}, s, c.container), w = s.width - s.left - s.right - c.margin * 2, W = s.height - s.top - s.bottom - c.margin * 2;
443
412
  else {
444
- var P = ee(d.container) ? d.container : document.querySelector(d.container), D = P.getBoundingClientRect(), ie = D.width, fe = D.height, ve = D.left, ze = D.top;
413
+ var N = ee(c.container) ? c.container : document.querySelector(c.container), M = N.getBoundingClientRect(), ie = M.width, ve = M.height, ye = M.left, ze = M.top;
445
414
  s = B({}, s, {
446
415
  width: ie,
447
- height: fe,
448
- left: ve,
416
+ height: ve,
417
+ left: ye,
449
418
  top: ze
450
419
  });
451
420
  }
452
- w = w || s.width - d.margin * 2, W = W || s.height - d.margin * 2;
453
- var _ = i.zoomedHd || i.original, ye = me(_) ? w : _.naturalWidth || w, be = me(_) ? W : _.naturalHeight || W, G = _.getBoundingClientRect(), xe = G.top, we = G.left, oe = G.width, re = G.height, Se = Math.min(Math.max(oe, ye), w) / oe, Ee = Math.min(Math.max(re, be), W) / re, ae = Math.min(Se, Ee), Ce = (-we + (w - oe) / 2 + d.margin + s.left) / ae, ke = (-xe + (W - re) / 2 + d.margin + s.top) / ae, le = "scale(" + ae + ") translate3d(" + Ce + "px, " + ke + "px, 0)";
421
+ w = w || s.width - c.margin * 2, W = W || s.height - c.margin * 2;
422
+ var F = i.zoomedHd || i.original, be = me(F) ? w : F.naturalWidth || w, xe = me(F) ? W : F.naturalHeight || W, G = F.getBoundingClientRect(), we = G.top, Se = G.left, oe = G.width, re = G.height, Ee = Math.min(Math.max(oe, be), w) / oe, Ce = Math.min(Math.max(re, xe), W) / re, ae = Math.min(Ee, Ce), ke = (-Se + (w - oe) / 2 + c.margin + s.left) / ae, Re = (-we + (W - re) / 2 + c.margin + s.top) / ae, le = "scale(" + ae + ") translate3d(" + ke + "px, " + Re + "px, 0)";
454
423
  i.zoomed.style.transform = le, i.zoomedHd && (i.zoomedHd.style.transform = le);
455
424
  };
456
- return new h(function(z) {
457
- if (n && L.indexOf(n) === -1) {
458
- z(b);
425
+ return new h(function(y) {
426
+ if (n && R.indexOf(n) === -1) {
427
+ y(b);
459
428
  return;
460
429
  }
461
430
  var s = function ie() {
462
- N = !1, i.zoomed.removeEventListener("transitionend", ie), i.original.dispatchEvent(F("medium-zoom:opened", {
431
+ Z = !1, i.zoomed.removeEventListener("transitionend", ie), i.original.dispatchEvent(V("medium-zoom:opened", {
463
432
  detail: { zoom: b }
464
- })), z(b);
433
+ })), y(b);
465
434
  };
466
435
  if (i.zoomed) {
467
- z(b);
436
+ y(b);
468
437
  return;
469
438
  }
470
439
  if (n)
471
440
  i.original = n;
472
- else if (L.length > 0) {
473
- var w = L;
441
+ else if (R.length > 0) {
442
+ var w = R;
474
443
  i.original = w[0];
475
444
  } else {
476
- z(b);
445
+ y(b);
477
446
  return;
478
447
  }
479
- if (i.original.dispatchEvent(F("medium-zoom:open", {
448
+ if (i.original.dispatchEvent(V("medium-zoom:open", {
480
449
  detail: { zoom: b }
481
- })), he = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, N = !0, i.zoomed = qe(i.original), document.body.appendChild(J), d.template) {
482
- var W = ee(d.template) ? d.template : document.querySelector(d.template);
450
+ })), he = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, Z = !0, i.zoomed = Ge(i.original), document.body.appendChild(J), c.template) {
451
+ var W = ee(c.template) ? c.template : document.querySelector(c.template);
483
452
  i.template = document.createElement("div"), i.template.appendChild(W.content.cloneNode(!0)), document.body.appendChild(i.template);
484
453
  }
485
454
  if (i.original.parentElement && i.original.parentElement.tagName === "PICTURE" && i.original.currentSrc && (i.zoomed.src = i.original.currentSrc), document.body.appendChild(i.zoomed), window.requestAnimationFrame(function() {
486
455
  document.body.classList.add("medium-zoom--opened");
487
- }), i.original.classList.add("medium-zoom-image--hidden"), i.zoomed.classList.add("medium-zoom-image--opened"), i.zoomed.addEventListener("click", y), i.zoomed.addEventListener("transitionend", s), i.original.getAttribute("data-zoom-src")) {
456
+ }), i.original.classList.add("medium-zoom-image--hidden"), i.zoomed.classList.add("medium-zoom-image--opened"), i.zoomed.addEventListener("click", z), i.zoomed.addEventListener("transitionend", s), i.original.getAttribute("data-zoom-src")) {
488
457
  i.zoomedHd = i.zoomed.cloneNode(), i.zoomedHd.removeAttribute("srcset"), i.zoomedHd.removeAttribute("sizes"), i.zoomedHd.removeAttribute("loading"), i.zoomedHd.src = i.zoomed.getAttribute("data-zoom-src"), i.zoomedHd.onerror = function() {
489
- clearInterval(P), console.warn("Unable to reach the zoom image target " + i.zoomedHd.src), i.zoomedHd = null, u();
458
+ clearInterval(N), console.warn("Unable to reach the zoom image target " + i.zoomedHd.src), i.zoomedHd = null, u();
490
459
  };
491
- var P = setInterval(function() {
492
- i.zoomedHd.complete && (clearInterval(P), i.zoomedHd.classList.add("medium-zoom-image--opened"), i.zoomedHd.addEventListener("click", y), document.body.appendChild(i.zoomedHd), u());
460
+ var N = setInterval(function() {
461
+ i.zoomedHd.complete && (clearInterval(N), i.zoomedHd.classList.add("medium-zoom-image--opened"), i.zoomedHd.addEventListener("click", z), document.body.appendChild(i.zoomedHd), u());
493
462
  }, 10);
494
463
  } else if (i.original.hasAttribute("srcset")) {
495
464
  i.zoomedHd = i.zoomed.cloneNode(), i.zoomedHd.removeAttribute("sizes"), i.zoomedHd.removeAttribute("loading");
496
- var D = i.zoomedHd.addEventListener("load", function() {
497
- i.zoomedHd.removeEventListener("load", D), i.zoomedHd.classList.add("medium-zoom-image--opened"), i.zoomedHd.addEventListener("click", y), document.body.appendChild(i.zoomedHd), u();
465
+ var M = i.zoomedHd.addEventListener("load", function() {
466
+ i.zoomedHd.removeEventListener("load", M), i.zoomedHd.classList.add("medium-zoom-image--opened"), i.zoomedHd.addEventListener("click", z), document.body.appendChild(i.zoomedHd), u();
498
467
  });
499
468
  } else
500
469
  u();
501
470
  });
502
- }, y = function() {
471
+ }, z = function() {
503
472
  return new h(function(a) {
504
- if (N || !i.original) {
473
+ if (Z || !i.original) {
505
474
  a(b);
506
475
  return;
507
476
  }
508
477
  var n = function u() {
509
- i.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(i.zoomed), i.zoomedHd && document.body.removeChild(i.zoomedHd), document.body.removeChild(J), i.zoomed.classList.remove("medium-zoom-image--opened"), i.template && document.body.removeChild(i.template), N = !1, i.zoomed.removeEventListener("transitionend", u), i.original.dispatchEvent(F("medium-zoom:closed", {
478
+ i.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(i.zoomed), i.zoomedHd && document.body.removeChild(i.zoomedHd), document.body.removeChild(J), i.zoomed.classList.remove("medium-zoom-image--opened"), i.template && document.body.removeChild(i.template), Z = !1, i.zoomed.removeEventListener("transitionend", u), i.original.dispatchEvent(V("medium-zoom:closed", {
510
479
  detail: { zoom: b }
511
480
  })), i.original = null, i.zoomed = null, i.zoomedHd = null, i.template = null, a(b);
512
481
  };
513
- N = !0, document.body.classList.remove("medium-zoom--opened"), i.zoomed.style.transform = "", i.zoomedHd && (i.zoomedHd.style.transform = ""), i.template && (i.template.style.transition = "opacity 150ms", i.template.style.opacity = 0), i.original.dispatchEvent(F("medium-zoom:close", {
482
+ Z = !0, document.body.classList.remove("medium-zoom--opened"), i.zoomed.style.transform = "", i.zoomedHd && (i.zoomedHd.style.transform = ""), i.template && (i.template.style.transition = "opacity 150ms", i.template.style.opacity = 0), i.original.dispatchEvent(V("medium-zoom:close", {
514
483
  detail: { zoom: b }
515
484
  })), i.zoomed.addEventListener("transitionend", n);
516
485
  });
517
- }, R = function() {
486
+ }, H = function() {
518
487
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = a.target;
519
- return i.original ? y() : M({ target: n });
488
+ return i.original ? z() : A({ target: n });
520
489
  }, k = function() {
521
- return d;
490
+ return c;
522
491
  }, te = function() {
523
- return L;
524
- }, pe = function() {
492
+ return R;
493
+ }, fe = function() {
525
494
  return i.original;
526
- }, L = [], K = [], N = !1, he = 0, d = o, i = {
495
+ }, R = [], K = [], Z = !1, he = 0, c = o, i = {
527
496
  original: null,
528
497
  zoomed: null,
529
498
  zoomedHd: null,
530
499
  template: null
531
500
  // If the selector is omitted, it's replaced by the options
532
501
  };
533
- Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") && I(t), d = B({
502
+ Object.prototype.toString.call(t) === "[object Object]" ? c = t : (t || typeof t == "string") && _(t), c = B({
534
503
  margin: 0,
535
504
  background: "#fff",
536
505
  scrollOffset: 40,
537
506
  container: null,
538
507
  template: null
539
- }, d);
540
- var J = Ye(d.background);
541
- document.addEventListener("click", r), document.addEventListener("keyup", p), document.addEventListener("scroll", g), window.addEventListener("resize", y);
508
+ }, c);
509
+ var J = Je(c.background);
510
+ document.addEventListener("click", r), document.addEventListener("keyup", p), document.addEventListener("scroll", g), window.addEventListener("resize", z);
542
511
  var b = {
543
- open: M,
544
- close: y,
545
- toggle: R,
512
+ open: A,
513
+ close: z,
514
+ toggle: H,
546
515
  update: C,
547
- clone: Z,
548
- attach: I,
516
+ clone: I,
517
+ attach: _,
549
518
  detach: $,
550
519
  on: f,
551
520
  off: v,
552
521
  getOptions: k,
553
522
  getImages: te,
554
- getZoomedImage: pe
523
+ getZoomedImage: fe
555
524
  };
556
525
  return b;
557
526
  };
558
- function Ke(e, t) {
527
+ function et(e, t) {
559
528
  t === void 0 && (t = {});
560
529
  var o = t.insertAt;
561
530
  if (!(typeof document > "u")) {
@@ -563,131 +532,9 @@ function Ke(e, t) {
563
532
  r.type = "text/css", o === "top" && h.firstChild ? h.insertBefore(r, h.firstChild) : h.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e));
564
533
  }
565
534
  }
566
- var Je = ".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";
567
- Ke(Je);
568
- const Ge = se`
569
- :host([effect='jump']) .container,
570
- :host([effect='text-reveal']) .container,
571
- :host([effect='zoom']) .container {
572
- overflow: initial;
573
- }
574
-
575
- :host([effect='jump']) .highlighter {
576
- transition:
577
- all var(--transition-duration, 0.5s) var(--easing, linear),
578
- transform var(--transition-transform-duration, 0.5s) var(--easing, linear);
579
- }
580
-
581
- :host([effect='jump']) .highlighter:hover {
582
- transform: translateY(
583
- calc(var(--highlightable-item-effect-jump-distance, 0) * -1)
584
- );
585
- }
586
-
587
- .highlighter--effect-text-reveal,
588
- :host([effect='zoom']) .highlighter--zoom-style-within-borders {
589
- overflow: hidden;
590
- }
591
-
592
- :host([effect='zoom'][zoom-style='pop-out']) .highlighter:hover {
593
- z-index: 3;
594
- animation: none;
595
- }
596
-
597
- :host([effect='zoom'][zoom-style='pop-out']) .highlighter:not(:hover) {
598
- animation: drop-z var(--transition-transform-duration) forwards;
599
- }
600
-
601
- @keyframes drop-z {
602
- 0% {
603
- z-index: 2;
604
- }
605
-
606
- 99% {
607
- z-index: 2;
608
- }
609
-
610
- 100% {
611
- z-index: 0;
612
- }
613
- }
614
-
615
- .highlighter--can-hover:hover::after,
616
- .highlighter--selected::after,
617
- .highlighter--color-overlay::after {
618
- content: '';
619
- position: absolute;
620
- pointer-events: none;
621
- width: 100%;
622
- height: 100%;
623
- top: 0;
624
- left: 0;
625
- transition: all var(--transition-duration, 0.5s) var(--easing, linear);
626
- }
627
-
628
- .highlighter--can-hover:hover::after,
629
- .highlighter--selected::after {
630
- outline: 2px solid var(--cx-color-primary);
631
- }
632
-
633
- .highlighter--border:hover .image {
634
- border-color: var(
635
- --highlightable-item-highlight-border-color,
636
- var(--cx-color-primary)
637
- );
638
- }
639
-
640
- .highlighter--color-overlay::after {
641
- border-radius: var(--border-radius, none);
642
- }
643
-
644
- .highlighter--color-overlay:hover::after {
645
- background-color: var(
646
- --highlightable-item-highlight-color-overlay-color,
647
- transparent
648
- );
649
- }
650
-
651
- .highlighter--drop-shadow:hover .image {
652
- box-shadow: var(--highlightable-item-highlight-drop-shadow, none);
653
- }
654
-
655
- .highlighter--background:hover .highlightable-item {
656
- --content-background-color: var(
657
- --highlightable-item-highlight-background,
658
- transparent
659
- );
660
- --highlightable-item-background-color: var(
661
- --highlightable-item-highlight-background,
662
- transparent
663
- );
664
- }
665
-
666
- .highlighter--opacity {
667
- opacity: var(--highlightable-item-highlight-opacity, 1);
668
- }
669
-
670
- :host([effect='zoom'][zoom-style='within-borders']) .highlighter .image,
671
- :host([effect='zoom'][zoom-style='pop-out']) .highlighter {
672
- transition: transform var(--transition-transform-duration, 0.5s)
673
- var(--easing, linear);
674
- }
675
-
676
- :host([effect='zoom'][zoom-style='within-borders']) .highlighter:hover .image,
677
- :host([effect='zoom'][zoom-style='pop-out']) .highlighter:hover {
678
- transform: scale(var(--highlightable-item-effect-zoom-scale, 1));
679
- }
680
-
681
- .highlightable-item {
682
- transition:
683
- background-color var(--transition-duration, 0.5s) var(--easing, linear),
684
- border-color var(--transition-duration, 0.5s) var(--easing, linear),
685
- box-shadow var(--transition-duration, 0.5s) var(--easing, linear),
686
- opacity var(--transition-duration, 0.5s) var(--easing, linear),
687
- transform var(--transition-transform-duration, 0.5s) var(--easing, linear),
688
- visibility var(--transition-duration, 0.5s) var(--easing, linear);
689
- }
690
- `, Qe = se`
535
+ var tt = ".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";
536
+ et(tt);
537
+ const it = se`:host([effect=jump]) .container,:host([effect=text-reveal]) .container,:host([effect=zoom]) .container{overflow:initial}:host([effect=jump]) .highlighter{transition:all var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=jump]) .highlighter:hover{transform:translateY(calc(var(--highlightable-item-effect-jump-distance,0) * -1))}.highlighter--effect-text-reveal,:host([effect=zoom]) .highlighter--zoom-style-within-borders{overflow:hidden}:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{z-index:3;animation:none}:host([effect=zoom][zoom-style=pop-out]) .highlighter:not(:hover){animation:drop-z var(--transition-transform-duration) forwards}@keyframes drop-z{0%{z-index:2}99%{z-index:2}to{z-index:0}}.highlighter--can-hover:hover:after,.highlighter--selected:after,.highlighter--color-overlay:after{content:"";pointer-events:none;width:100%;height:100%;transition:all var(--transition-duration,.5s) var(--easing,linear);position:absolute;top:0;left:0}.highlighter--can-hover:hover:after,.highlighter--selected:after{outline:2px solid var(--cx-color-primary)}.highlighter--border:hover .image{border-color:var(--highlightable-item-highlight-border-color,var(--cx-color-primary))}.highlighter--color-overlay:after{border-radius:var(--border-radius,none)}.highlighter--color-overlay:hover:after{background-color:var(--highlightable-item-highlight-color-overlay-color,transparent)}.highlighter--drop-shadow:hover .image{box-shadow:var(--highlightable-item-highlight-drop-shadow,none)}.highlighter--background:hover .highlightable-item{--content-background-color:var(--highlightable-item-highlight-background,transparent);--highlightable-item-background-color:var(--highlightable-item-highlight-background,transparent)}.highlighter--opacity{opacity:var(--highlightable-item-highlight-opacity,1)}:host([effect=zoom][zoom-style=within-borders]) .highlighter .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter{transition:transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=zoom][zoom-style=within-borders]) .highlighter:hover .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{transform:scale(var(--highlightable-item-effect-zoom-scale,1))}.highlightable-item{transition:background-color var(--transition-duration,.5s) var(--easing,linear), border-color var(--transition-duration,.5s) var(--easing,linear), box-shadow var(--transition-duration,.5s) var(--easing,linear), opacity var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear), visibility var(--transition-duration,.5s) var(--easing,linear)}`, ot = se`
691
538
  :host {
692
539
  --justify-content: flex-start;
693
540
  --border-radius: 0px;
@@ -740,7 +587,7 @@ const Ge = se`
740
587
  max-height: 100%;
741
588
  }
742
589
 
743
- ${Ge}
590
+ ${it}
744
591
 
745
592
  :host([block]) {
746
593
  width: 100%;
@@ -933,14 +780,14 @@ const Ge = se`
933
780
  --font-size: var(--cx-font-size-4x-large);
934
781
  }
935
782
  `;
936
- var et = Object.defineProperty, tt = Object.getOwnPropertyDescriptor, c = (e, t, o, h) => {
937
- for (var r = h > 1 ? void 0 : h ? tt(t, o) : t, g = e.length - 1, p; g >= 0; g--)
783
+ var rt = Object.defineProperty, at = Object.getOwnPropertyDescriptor, m = (e, t, o, h) => {
784
+ for (var r = h > 1 ? void 0 : h ? at(t, o) : t, g = e.length - 1, p; g >= 0; g--)
938
785
  (p = e[g]) && (r = (h ? p(t, o, r) : p(r)) || r);
939
- return h && r && et(t, o, r), r;
786
+ return h && r && rt(t, o, r), r;
940
787
  };
941
- let l = class extends A {
788
+ let l = class extends T {
942
789
  constructor() {
943
- super(...arguments), this.localize = new Me(this), this.isLoaded = !1, this.isError = !1, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = $e.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.clickHandlerType = U.Automatic, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
790
+ super(...arguments), this.localize = new Ae(this), this._retryCount = 0, this._retryTimer = null, this.isLoaded = !1, this.isError = !1, this._retryIndex = 0, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = $e.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.clickHandlerType = U.Automatic, this.retryOnError = !1, this.maxRetries = 3, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
944
791
  }
945
792
  get currentAltValue() {
946
793
  return this.alt;
@@ -987,7 +834,7 @@ let l = class extends A {
987
834
  this.hasUpdated && this.requestUpdate("canZoom");
988
835
  }
989
836
  disconnectedCallback() {
990
- super.disconnectedCallback(), this.zoom && this.zoom.detach();
837
+ super.disconnectedCallback(), this.zoom && this.zoom.detach(), this.clearRetryTimer();
991
838
  }
992
839
  /**
993
840
  * Handle mouse enter event.
@@ -1017,10 +864,19 @@ let l = class extends A {
1017
864
  await this.updateComplete, this.requestUpdate();
1018
865
  }
1019
866
  handleSrcChange() {
1020
- this.isLoaded = !1, this.isError = !1;
867
+ this.isLoaded = !1, this.isError = !1, this._retryCount = 0, this._retryIndex = 0, this.clearRetryTimer();
868
+ }
869
+ clearRetryTimer() {
870
+ this._retryTimer !== null && (clearTimeout(this._retryTimer), this._retryTimer = null);
871
+ }
872
+ scheduleRetry() {
873
+ const e = Math.min(1e3 * Math.pow(2, this._retryCount - 1), 1e4);
874
+ this._retryTimer = setTimeout(() => {
875
+ this._retryTimer = null, this._retryIndex += 1;
876
+ }, e);
1021
877
  }
1022
878
  async initZoom() {
1023
- this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = Xe(this.zoomImageElement, {
879
+ this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = Qe(this.zoomImageElement, {
1024
880
  background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
1025
881
  margin: 0,
1026
882
  scrollOffset: 0
@@ -1038,6 +894,10 @@ let l = class extends A {
1038
894
  this.imageRatio = h / o, this.isLoaded || (this.emit("cx-load"), this.isLoaded = !0, this.isError = !1);
1039
895
  }
1040
896
  handleError() {
897
+ if (this.retryOnError && this._retryCount < this.maxRetries) {
898
+ this._retryCount += 1, this.scheduleRetry();
899
+ return;
900
+ }
1041
901
  this.emit("cx-error"), this.isLoaded = !0, this.isError = !0;
1042
902
  }
1043
903
  handleSizeChange() {
@@ -1066,219 +926,146 @@ let l = class extends A {
1066
926
  }
1067
927
  renderContent() {
1068
928
  const e = this.currentSrc, t = this.currentAltValue;
1069
- return T`
1070
- <div
1071
- part="content"
1072
- slot="anchor"
1073
- class=${j(this.highlighterClass)}
1074
- >
1075
- <img
1076
- part="image"
1077
- class=${j(this.imageClass)}
1078
- src=${e || this.placeholder}
1079
- alt=${t}
1080
- aria-label=${t}
1081
- crossorigin="anonymous"
1082
- @load=${this.handleLoad}
1083
- @error=${this.handleError}
1084
- loading=${this.htmlLoading}
1085
- />
1086
- </div>
1087
- `;
929
+ return D`<div part="content" slot="anchor" class=${j(this.highlighterClass)}>${Xe(
930
+ this._retryIndex,
931
+ D`<img part="image" class=${j(this.imageClass)} src=${e || this.placeholder} alt=${t} aria-label=${t} crossorigin="anonymous" @load=${this.handleLoad} @error=${this.handleError} loading=${this.htmlLoading}>`
932
+ )}</div>`;
1088
933
  }
1089
934
  render() {
1090
935
  const e = this.hasZoomAction, t = this.currentAltValue, o = !this.currentSrc && !this.placeholder;
1091
- return T`<div
1092
- part="base"
1093
- class=${j({
936
+ return D`<div part="base" class=${j({
1094
937
  container: !0,
1095
938
  "container--empty": o,
1096
939
  "container--loading": this.loading,
1097
940
  "container--resizing": this.resizable && this.isResizeActive
1098
- })}
1099
- style=${je({
941
+ })} style=${Ie({
1100
942
  "--easing": this.easeCSSVariable
1101
- })}
1102
- data-empty-label=${this.localize.term("emptyImage")}
1103
- @click=${this.startResizing}
1104
- @keydown=${this.handleKeyDown}
1105
- >
1106
- <cx-resize-observer @cx-resize=${this.handleResize}>
1107
- <div
1108
- part="highlighter"
1109
- tabindex=${De(this.highlighterTabindex)}
1110
- role=${this.highlighterRole}
1111
- aria-label=${t}
1112
- aria-roledescription=${this.localize.term("image")}
1113
- class=${j(o ? {} : this.getHighlighterClass())}
1114
- @click=${this.handleClickAction}
1115
- @mouseenter=${this.handleMouseEnter}
1116
- @mouseleave=${this.handleMouseLeave}
1117
- @blur=${this.handleBlur}
1118
- >
1119
- ${V(
943
+ })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${Me(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${j(o ? {} : this.getHighlighterClass())} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${P(
1120
944
  o,
1121
- () => Le,
1122
- () => V(
945
+ () => ge,
946
+ () => P(
1123
947
  this.effect === Y.Jump || this.effect === Y.Zoom,
1124
- () => T`
1125
- <cx-popup
1126
- class="popup-container"
1127
- strategy="absolute"
1128
- active
1129
- placement="center"
1130
- sync="both"
1131
- >
1132
- ${this.renderContent()}
1133
- </cx-popup>
1134
- `,
948
+ () => D`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
1135
949
  () => this.renderContent()
1136
950
  )
1137
- )}
1138
- <div class="zoom-image-container">
1139
- ${V(
951
+ )}<div class="zoom-image-container">${P(
1140
952
  e,
1141
- () => T`<img
1142
- part="zoom-image"
1143
- class=${j({
953
+ () => D`<img part="zoom-image" class=${j({
1144
954
  "zoom-image": !0,
1145
955
  "zoom-image--hidden": !this.isZoomed
1146
- })}
1147
- src=${this.currentSrc || this.placeholder}
1148
- alt=""
1149
- aria-hidden="true"
1150
- decoding="async"
1151
- draggable="false"
1152
- crossorigin="anonymous"
1153
- />`
1154
- )}
1155
- </div>
1156
- ${V(
956
+ })} src=${this.currentSrc || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin="anonymous">`
957
+ )}</div>${P(
1157
958
  this.skeleton && !this.isLoaded && !this.isError || this.loading,
1158
- () => T`
1159
- <slot name="skeleton" part="skeleton">
1160
- <div
1161
- class=${j({
959
+ () => D`<slot name="skeleton" part="skeleton"><div class=${j({
1162
960
  skeleton: !0
1163
- })}
1164
- >
1165
- <cx-skeleton effect="sheen"></cx-skeleton>
1166
- </div>
1167
- </slot>
1168
- `
961
+ })}><cx-skeleton effect="sheen"></cx-skeleton></div></slot>`
1169
962
  )}
1170
- ${V(this.isError && this.fallback, () => T`
1171
- <slot name="fallback" part="fallback">
1172
- <cx-space
1173
- class=${j({ fallback: !0 })}
1174
- direction="column"
1175
- align-items="center"
1176
- justify-content="center"
1177
- >
1178
- <cx-icon name="hide_image" part="fallback-icon"> </cx-icon>
1179
- </cx-space>
1180
- </slot>
1181
- `)}
1182
- </div>
1183
- </cx-resize-observer>
1184
- ${V(this.resizable && this.isResizeActive, () => this.renderResizer())}
1185
- </div>`;
963
+ ${P(this.isError && this.fallback, () => D`<slot name="fallback" part="fallback"><cx-space class=${j({ fallback: !0 })} direction="column" align-items="center" justify-content="center"><cx-icon name="hide_image" part="fallback-icon"> </cx-icon></cx-space></slot>`)}</div></cx-resize-observer>${P(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
1186
964
  }
1187
965
  };
1188
- l.styles = [We, _e, Qe];
966
+ l.styles = [We, qe, ot];
1189
967
  l.dependencies = {
1190
- "cx-icon": Te,
1191
- "cx-popup": Be,
1192
- "cx-resize-observer": Ze,
1193
- "cx-skeleton": Ie,
1194
- "cx-space": Ne
968
+ "cx-icon": _e,
969
+ "cx-popup": Ze,
970
+ "cx-resize-observer": Ne,
971
+ "cx-skeleton": Pe,
972
+ "cx-space": Ve
1195
973
  };
1196
- c([
974
+ m([
1197
975
  X(".image")
1198
976
  ], l.prototype, "imageElement", 2);
1199
- c([
977
+ m([
1200
978
  X(".zoom-image")
1201
979
  ], l.prototype, "zoomImageElement", 2);
1202
- c([
980
+ m([
1203
981
  X(".highlighter")
1204
982
  ], l.prototype, "highlighterElement", 2);
1205
- c([
1206
- H()
983
+ m([
984
+ L()
1207
985
  ], l.prototype, "isLoaded", 2);
1208
- c([
1209
- H()
986
+ m([
987
+ L()
1210
988
  ], l.prototype, "isError", 2);
1211
- c([
1212
- m({ reflect: !0, type: String })
989
+ m([
990
+ L()
991
+ ], l.prototype, "_retryIndex", 2);
992
+ m([
993
+ d({ reflect: !0, type: String })
1213
994
  ], l.prototype, "src", 2);
1214
- c([
1215
- m({ reflect: !0, type: String })
995
+ m([
996
+ d({ reflect: !0, type: String })
1216
997
  ], l.prototype, "placeholder", 2);
1217
- c([
1218
- m({ reflect: !0, type: String })
998
+ m([
999
+ d({ reflect: !0, type: String })
1219
1000
  ], l.prototype, "alt", 2);
1220
- c([
1221
- m({ attribute: "object-fit", reflect: !0 })
1001
+ m([
1002
+ d({ attribute: "object-fit", reflect: !0 })
1222
1003
  ], l.prototype, "objectFit", 2);
1223
- c([
1224
- m({ reflect: !0, type: Boolean })
1004
+ m([
1005
+ d({ reflect: !0, type: Boolean })
1225
1006
  ], l.prototype, "skeleton", 2);
1226
- c([
1227
- m({ reflect: !0, type: Boolean })
1007
+ m([
1008
+ d({ reflect: !0, type: Boolean })
1228
1009
  ], l.prototype, "fallback", 2);
1229
- c([
1230
- m({ attribute: "can-zoom", reflect: !0, type: Boolean })
1010
+ m([
1011
+ d({ attribute: "can-zoom", reflect: !0, type: Boolean })
1231
1012
  ], l.prototype, "canZoom", 2);
1232
- c([
1233
- m({ reflect: !0, type: Boolean })
1013
+ m([
1014
+ d({ reflect: !0, type: Boolean })
1234
1015
  ], l.prototype, "loading", 2);
1235
- c([
1236
- m({ reflect: !0, type: Boolean })
1016
+ m([
1017
+ d({ reflect: !0, type: Boolean })
1237
1018
  ], l.prototype, "block", 2);
1238
- c([
1239
- m({ attribute: "html-loading", reflect: !0, type: String })
1019
+ m([
1020
+ d({ attribute: "html-loading", reflect: !0, type: String })
1240
1021
  ], l.prototype, "htmlLoading", 2);
1241
- c([
1242
- m({ attribute: "click-handler-type", reflect: !0, type: String })
1022
+ m([
1023
+ d({ attribute: "click-handler-type", reflect: !0, type: String })
1243
1024
  ], l.prototype, "clickHandlerType", 2);
1244
- c([
1245
- H()
1025
+ m([
1026
+ d({ attribute: "retry-on-error", type: Boolean })
1027
+ ], l.prototype, "retryOnError", 2);
1028
+ m([
1029
+ d({ attribute: "max-retries", type: Number })
1030
+ ], l.prototype, "maxRetries", 2);
1031
+ m([
1032
+ L()
1246
1033
  ], l.prototype, "isZoomed", 2);
1247
- c([
1248
- H()
1034
+ m([
1035
+ L()
1249
1036
  ], l.prototype, "imageRatio", 2);
1250
- c([
1251
- H()
1037
+ m([
1038
+ L()
1252
1039
  ], l.prototype, "parsedAlt", 2);
1253
- c([
1254
- H()
1040
+ m([
1041
+ L()
1255
1042
  ], l.prototype, "parsedAltDarkMode", 2);
1256
- c([
1043
+ m([
1257
1044
  q("isLoaded"),
1258
1045
  q("canZoom", { waitUntilFirstUpdate: !0 })
1259
1046
  ], l.prototype, "handleCanZoomChange", 1);
1260
- c([
1047
+ m([
1261
1048
  q("objectFit", { waitUntilFirstUpdate: !0 })
1262
1049
  ], l.prototype, "handleObjectFitChange", 1);
1263
- c([
1050
+ m([
1264
1051
  q("src"),
1265
1052
  q("srcDarkMode")
1266
1053
  ], l.prototype, "handleSrcChange", 1);
1267
- c([
1054
+ m([
1268
1055
  Oe(100)
1269
1056
  ], l.prototype, "updateLastPatchedWidth", 1);
1270
- l = c([
1271
- Ae("cx-image")
1057
+ l = m([
1058
+ Te("cx-image")
1272
1059
  ], l);
1273
1060
  export {
1274
1061
  l as C,
1275
- Pe as H,
1276
- A as R,
1062
+ Fe as H,
1063
+ T as R,
1277
1064
  S as a,
1278
1065
  Y as b,
1279
1066
  U as c,
1280
- ue as d,
1281
- ge as e,
1067
+ pe as d,
1068
+ ue as e,
1282
1069
  ne as f,
1283
- _e as r
1070
+ qe as r
1284
1071
  };