@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.
- package/library/chunks/{AxisLabelRadial.CgPb7ghO.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B6rG-Ylz.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.C-YfO-57.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.DhoXSsjo.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.CZi2LBZ2.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CykTMTsG.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.BlQ7B4D0.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BQ0JzFEe.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.DuVS2EHe.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.DRO0jnR6.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.DEO3f_qs.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.Bryx2w1J.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.TyXECvYG.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.DK48nKk4.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.DbXRplXx.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.B27osQYu.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.C4wFzD_x.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BEmFiHyd.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.CBqjLDqb.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
- package/library/chunks/{am-chart.B_OdX4Q-.js → am-chart.H2jnOzFc.js} +254 -262
- package/library/chunks/{animation.DfUHRQry.js → animation.7ifl4x2S.js} +4 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.D7E0-cUV.js +460 -0
- package/library/chunks/{button.KnE3mcyM.js → button.CauAHfdl.js} +10 -45
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
- package/library/chunks/{color-swatch-group.p3Sdqlat.js → color-swatch-group.D5BP2W3P.js} +50 -220
- package/library/chunks/{color-swatch.C0oPHfOu.js → color-swatch.2HS4bc3N.js} +20 -204
- package/library/chunks/{colorPicker.CJwbdhtn.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.DmGAMS8X.js +121 -0
- package/library/chunks/{cropper.tSDgXKqJ.js → cropper.ZU2Dy-MM.js} +8182 -8540
- package/library/chunks/{dialog.DpZBbTCn.js → dialog.2UW1LNm1.js} +117 -314
- package/library/chunks/{dom.BQVKDNd8.js → dom.BslZF2Y_.js} +1 -1
- package/library/chunks/dot-pagination.DsAfSNzr.js +204 -0
- package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.Fpyb8xvv.js} +214 -203
- package/library/chunks/{exporting.DCqJtW6l.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.Dig_iVvx.js +1956 -0
- package/library/chunks/{flow.Ch1rU01m.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/folder-select.BT1drT8C.js +775 -0
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{form.DgwYWi0O.js → form.CFc09rKh.js} +1 -1
- package/library/chunks/{gantt.rWdF_jmG.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.BePZwMCQ.js +170 -0
- package/library/chunks/{hierarchy.HoRJAu6S.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
- package/library/chunks/{i18n.C0iakJkV.js → i18n.BFqTRDCA.js} +19 -12
- package/library/chunks/icon-button.rKe0N4VB.js +149 -0
- package/library/chunks/iframe.DznmlYpV.js +73 -0
- package/library/chunks/{image.C9avagDq.js → image.CEtCGsNL.js} +275 -488
- package/library/chunks/{index.D2JPKXqq.js → index.C9khsiad.js} +17 -17
- package/library/chunks/isObjectLike.z36Fu426.js +34 -0
- package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
- package/library/chunks/{json.DHNMAC-m.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.B2mFE9f7.js → list-editor.CJ96S1Np.js} +58 -372
- package/library/chunks/{map.BHmZ4Crx.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.COnEtd3X.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/pagination.DaD9Yul6.js +334 -0
- package/library/chunks/{percent.CM9cr1H3.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.CQUnnhGk.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{responsive.CrX-HUow.js → responsive.BndCeSg0.js} +1 -1
- package/library/chunks/{sliceGrouper.iv1p8MAK.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.CU0y6a5P.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/string.BigZhczf.js +185 -0
- package/library/chunks/{tab-group.05PY0smt.js → tab-group.0Po0eoxR.js} +33 -584
- package/library/chunks/{table.DNTm_GMS.js → table.WNd284in.js} +3535 -4852
- package/library/chunks/{timeline.yzdwtGKM.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
- package/library/chunks/toast.B2cJgW5u.js +71 -0
- package/library/chunks/transformation.CzBptarI.js +140 -0
- package/library/chunks/{tree.CeMLCbs-.js → tree.QCQd_cuc.js} +32 -400
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/url.Cj9cIQXJ.js +27 -0
- package/library/chunks/{venn.BOEi13la.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/watch.BCJD77bD.js +547 -0
- package/library/chunks/{wc.V-lq02JF.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.Df1hy9ac.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +11 -179
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +13 -101
- package/library/components/animation.js +3 -3
- package/library/components/array-line-clamp.js +8 -89
- package/library/components/asset-link-format.js +718 -1380
- package/library/components/atoms.js +18 -18
- package/library/components/avatar.js +6 -95
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +5 -26
- package/library/components/breadcrumb-item.js +25 -156
- package/library/components/breadcrumb.js +4 -22
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +6 -6
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +13 -254
- package/library/components/color-picker.js +57 -728
- package/library/components/color-swatch-group.js +9 -9
- package/library/components/color-swatch.js +5 -5
- package/library/components/confirm-popover.js +6 -6
- package/library/components/copy-button.js +11 -256
- package/library/components/corner-position-input-group.js +5 -58
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +6 -6
- package/library/components/divider.js +6 -68
- package/library/components/dot-pagination.js +4 -4
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +11 -242
- package/library/components/dropdown.js +49 -151
- package/library/components/dynamic-select.js +10 -75
- package/library/components/e-chart.js +8 -51
- package/library/components/element-clamp.js +7 -80
- package/library/components/file-on-demand.js +13 -13
- package/library/components/folder-select.js +9 -7
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +3 -7
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +4 -14
- package/library/components/grid-item.js +5 -172
- package/library/components/grid.js +5 -41
- package/library/components/header.js +4 -4
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +14 -679
- package/library/components/icon.js +9 -2449
- package/library/components/iframe.js +4 -4
- package/library/components/image-comparer.js +9 -129
- package/library/components/image.js +4 -4
- package/library/components/include.js +3 -7
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +358 -966
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +9 -9
- package/library/components/markdown.js +2 -4
- package/library/components/masonry.js +24 -223
- package/library/components/menu-item.js +155 -445
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +5 -113
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +3 -7
- package/library/components/option.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +10 -8
- package/library/components/popup.js +385 -682
- package/library/components/position-picker.js +4 -94
- package/library/components/progress-bar.js +19 -136
- package/library/components/progress-ring.js +4 -95
- package/library/components/qr-code.js +5 -17
- package/library/components/radio-button.js +5 -25
- package/library/components/radio-card.js +8 -176
- package/library/components/radio-group.js +22 -153
- package/library/components/radio.js +14 -171
- package/library/components/range.js +123 -660
- package/library/components/rating.js +58 -238
- package/library/components/relative-time.js +3 -13
- package/library/components/resize-observer.js +4 -8
- package/library/components/select.js +305 -1012
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +21 -313
- package/library/components/sidebar.js +15 -221
- package/library/components/size-input-group.js +12 -77
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +7 -76
- package/library/components/split-panel.js +18 -125
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +17 -34
- package/library/components/switch.js +13 -276
- package/library/components/tab-group.js +7 -7
- package/library/components/tab-panel.js +5 -32
- package/library/components/tab.js +11 -257
- package/library/components/table.js +8 -8
- package/library/components/tag.js +15 -166
- package/library/components/textarea.js +183 -504
- package/library/components/timecode.js +6 -25
- package/library/components/tooltip.js +10 -94
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +4 -4
- package/library/components/typeface.js +24 -123
- package/library/components/types.js +37225 -47339
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3875 -6263
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +10 -0
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +2 -1
- package/library/packages/atoms/src/components/image/image.d.ts +15 -1
- package/library/packages/atoms/src/components/input/auto-grow-controller.d.ts +23 -0
- package/library/packages/atoms/src/components/input/input.d.ts +10 -2
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +4 -0
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +32 -2
- package/library/packages/atoms/src/components/popup/overlay/Overlay.d.ts +10 -0
- package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/table.d.ts +49 -8
- package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/TabulatorFull.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/Edit.d.ts +1 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +40 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/Filter.d.ts +10 -3
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Filter/formatter-display-resolvers.d.ts +93 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/Group.d.ts +8 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupComponent.d.ts +3 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupLoadMore.d.ts +7 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/GroupRows/GroupRows.d.ts +2 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Page/Page.d.ts +2 -2
- package/library/packages/atoms/src/components/textarea/textarea.d.ts +19 -4
- package/library/packages/atoms/src/components/video/video.d.ts +3 -1
- package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +11 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +6 -0
- package/library/packages/events/src/cx-bento-range-change.d.ts +9 -0
- package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +10 -0
- package/library/packages/events/src/cx-lightbox-close.d.ts +6 -0
- package/library/packages/events/src/cx-lightbox-download.d.ts +11 -0
- package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
- package/library/packages/events/src/cx-video-format-picker-delete.d.ts +6 -0
- package/library/packages/events/src/cx-video-format-picker-select.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +11 -1
- package/library/packages/molecules/src/cropper/cropper.d.ts +2 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +2 -0
- package/library/packages/molecules/src/estimated-reading-time/estimated-reading-time.d.ts +3 -2
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/storybook/storybook.d.ts +60 -23
- package/library/packages/molecules/src/timeline/timeline.d.ts +14 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +55 -0
- package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +2 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -1
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +95 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +57 -26
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +44 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +5 -1
- package/library/packages/organisms/src/comment/comment.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +6 -2
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +45 -4
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +13 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +45 -1
- package/library/packages/organisms/src/content-builder/styleController.d.ts +20 -2
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/organisms/src/lightbox/lightbox.d.ts +79 -0
- package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +3 -2
- package/library/packages/services/src/api/asset/asset.types.d.ts +84 -0
- package/library/packages/services/src/api/asset/asset.utils.d.ts +9 -0
- package/library/packages/services/src/api/endpoints.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +17 -5
- package/library/packages/types/src/asset-click-action.d.ts +3 -1
- package/library/packages/types/src/bento-grid.d.ts +37 -0
- package/library/packages/types/src/content-builder.d.ts +27 -1
- package/library/packages/types/src/gallery.d.ts +0 -6
- package/library/packages/types/src/icon-button.d.ts +7 -0
- package/library/packages/types/src/menu-item.d.ts +33 -0
- package/library/packages/types/src/storybook.d.ts +19 -0
- package/library/packages/types/src/table.d.ts +37 -1
- package/library/packages/types/src/textarea.d.ts +4 -0
- package/library/packages/types/src/video-format-picker.d.ts +11 -0
- package/library/packages/utils/src/actions/asset-click.d.ts +1 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +10 -3
- package/library/packages/utils/src/index.d.ts +1 -0
- package/library/packages/utils/src/string/string.d.ts +33 -0
- package/library/packages/utils/src/transformation/index.d.ts +1 -0
- package/library/packages/utils/src/url/url.d.ts +9 -0
- package/library/react-web-component.d.ts +293 -29
- package/library/utils.js +483 -178
- package/package.json +4 -1
- package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
- package/library/chunks/asset.CG_yXtWK.js +0 -288
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.zmOFI4e-.js +0 -288
- package/library/chunks/content-builder.D_phDrlo.js +0 -127
- package/library/chunks/dot-pagination.COBkyhoJ.js +0 -325
- package/library/chunks/file-on-demand.CbE-qsiP.js +0 -3740
- package/library/chunks/folder-select.Bl_WkhVE.js +0 -844
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.BduX6KJP.js +0 -777
- package/library/chunks/identity.ByMq8VxU.js +0 -6
- package/library/chunks/iframe.BPKV2K7z.js +0 -160
- package/library/chunks/index.B3wJT3XS.js +0 -373
- package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
- package/library/chunks/option.DnpkE8Xi.js +0 -296
- package/library/chunks/pagination.C30LoTya.js +0 -341
- package/library/chunks/string.B_rEG27K.js +0 -160
- package/library/chunks/toast.BXNbwZV8.js +0 -25
- package/library/chunks/typography.oDzoLbZS.js +0 -149
- package/library/chunks/url.LjsR2sB5.js +0 -15
- package/library/chunks/watch.q1sEjPWL.js +0 -501
- /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
|
|
2
|
-
import { C as
|
|
3
|
-
import { r as
|
|
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.
|
|
7
|
-
import { c as
|
|
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
|
|
10
|
-
import { w as q } from "./watch.
|
|
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
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import Ne from "../components/
|
|
20
|
-
|
|
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 &&
|
|
25
|
+
return r && Ue(t, o, r), r;
|
|
24
26
|
};
|
|
25
|
-
class S extends
|
|
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 =
|
|
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
|
-
|
|
63
|
+
d({ attribute: "has-event", reflect: !0, type: Boolean })
|
|
62
64
|
], S.prototype, "hasEvent");
|
|
63
65
|
E([
|
|
64
|
-
|
|
66
|
+
d({ reflect: !0, type: String })
|
|
65
67
|
], S.prototype, "easing");
|
|
66
68
|
E([
|
|
67
|
-
|
|
69
|
+
d({ attribute: "highlight-border", reflect: !0, type: Boolean })
|
|
68
70
|
], S.prototype, "highlightBorder");
|
|
69
71
|
E([
|
|
70
|
-
|
|
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
|
-
|
|
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
|
-
|
|
86
|
+
d({ attribute: "highlight-background", reflect: !0, type: Boolean })
|
|
85
87
|
], S.prototype, "highlightBackground");
|
|
86
88
|
E([
|
|
87
|
-
|
|
89
|
+
d({ attribute: "highlight-opacity", reflect: !0, type: Boolean })
|
|
88
90
|
], S.prototype, "highlightOpacity");
|
|
89
91
|
E([
|
|
90
|
-
|
|
92
|
+
d({ attribute: "effect", reflect: !0, type: String })
|
|
91
93
|
], S.prototype, "effect");
|
|
92
94
|
E([
|
|
93
|
-
|
|
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
|
-
|
|
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
|
-
|
|
109
|
+
L()
|
|
108
110
|
], S.prototype, "hasSlotContent");
|
|
109
111
|
E([
|
|
110
|
-
|
|
112
|
+
L()
|
|
111
113
|
], S.prototype, "isCustomSlot");
|
|
112
114
|
E([
|
|
113
|
-
|
|
115
|
+
L()
|
|
114
116
|
], S.prototype, "isHovering");
|
|
115
|
-
var
|
|
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 &&
|
|
120
|
+
return r && Ye(t, o, r), r;
|
|
119
121
|
};
|
|
120
|
-
class
|
|
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",
|
|
164
|
-
|
|
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
|
|
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
|
|
180
|
-
let
|
|
181
|
-
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
|
-
},
|
|
190
|
+
}, _ = ($) => {
|
|
189
191
|
if (g > 0 && p > 0) {
|
|
190
192
|
let f = g, v = p;
|
|
191
193
|
if (this.keepRatio) {
|
|
192
|
-
const
|
|
193
|
-
let
|
|
194
|
-
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
|
-
|
|
211
|
+
I
|
|
210
212
|
);
|
|
211
213
|
};
|
|
212
214
|
this.ownerDocument.defaultView?.addEventListener(
|
|
213
215
|
"mousemove",
|
|
214
|
-
|
|
215
|
-
), this.ownerDocument.defaultView?.addEventListener("mouseup",
|
|
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
|
|
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
|
-
],
|
|
239
|
+
], T.prototype, "containingElement");
|
|
255
240
|
O([
|
|
256
|
-
|
|
257
|
-
],
|
|
241
|
+
d({ reflect: !0, type: String })
|
|
242
|
+
], T.prototype, "width");
|
|
258
243
|
O([
|
|
259
|
-
|
|
260
|
-
],
|
|
244
|
+
d({ reflect: !0, type: String })
|
|
245
|
+
], T.prototype, "height");
|
|
261
246
|
O([
|
|
262
|
-
|
|
263
|
-
],
|
|
247
|
+
d({ type: Boolean })
|
|
248
|
+
], T.prototype, "resizable");
|
|
264
249
|
O([
|
|
265
|
-
|
|
266
|
-
],
|
|
250
|
+
d({ attribute: "height-mode", reflect: !0, type: String })
|
|
251
|
+
], T.prototype, "heightMode");
|
|
267
252
|
O([
|
|
268
|
-
|
|
269
|
-
],
|
|
253
|
+
d({ attribute: "no-limit", reflect: !0, type: Boolean })
|
|
254
|
+
], T.prototype, "noLimit");
|
|
270
255
|
O([
|
|
271
|
-
|
|
272
|
-
],
|
|
256
|
+
L()
|
|
257
|
+
], T.prototype, "isResizeActive");
|
|
273
258
|
O([
|
|
274
|
-
|
|
275
|
-
],
|
|
259
|
+
L()
|
|
260
|
+
], T.prototype, "isResizing");
|
|
276
261
|
O([
|
|
277
|
-
|
|
278
|
-
],
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
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) :
|
|
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
|
-
},
|
|
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
|
-
},
|
|
342
|
-
var o = t.getBoundingClientRect(), h = o.top, r = o.left, g = o.width, p = o.height, C = t.cloneNode(),
|
|
343
|
-
return C.removeAttribute("id"), C.style.position = "absolute", C.style.top = h +
|
|
344
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
331
|
+
z();
|
|
363
332
|
return;
|
|
364
333
|
}
|
|
365
|
-
|
|
334
|
+
R.indexOf(n) !== -1 && H({ target: n });
|
|
366
335
|
}, g = function() {
|
|
367
|
-
if (!(
|
|
336
|
+
if (!(Z || !i.original)) {
|
|
368
337
|
var a = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
|
369
|
-
Math.abs(he - a) >
|
|
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) &&
|
|
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({},
|
|
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
|
|
381
|
-
|
|
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
|
|
360
|
+
var y = n.reduce(function(s, w) {
|
|
392
361
|
return [].concat(s, ce(w));
|
|
393
362
|
}, []);
|
|
394
|
-
return
|
|
395
|
-
return
|
|
363
|
+
return y.filter(function(s) {
|
|
364
|
+
return R.indexOf(s) === -1;
|
|
396
365
|
}).forEach(function(s) {
|
|
397
|
-
|
|
366
|
+
R.push(s), s.classList.add("medium-zoom-image");
|
|
398
367
|
}), K.forEach(function(s) {
|
|
399
|
-
var w = s.type, W = s.listener,
|
|
400
|
-
|
|
401
|
-
|
|
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 &&
|
|
408
|
-
var
|
|
376
|
+
i.zoomed && z();
|
|
377
|
+
var y = n.length > 0 ? n.reduce(function(s, w) {
|
|
409
378
|
return [].concat(s, ce(w));
|
|
410
|
-
}, []) :
|
|
411
|
-
return
|
|
412
|
-
s.classList.remove("medium-zoom-image"), s.dispatchEvent(
|
|
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
|
-
}),
|
|
416
|
-
return
|
|
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
|
|
421
|
-
|
|
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
|
|
426
|
-
|
|
427
|
-
}), K = K.filter(function(
|
|
428
|
-
return !(
|
|
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
|
-
},
|
|
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 (
|
|
441
|
-
if (
|
|
442
|
-
s = B({}, s,
|
|
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
|
|
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:
|
|
448
|
-
left:
|
|
416
|
+
height: ve,
|
|
417
|
+
left: ye,
|
|
449
418
|
top: ze
|
|
450
419
|
});
|
|
451
420
|
}
|
|
452
|
-
w = w || s.width -
|
|
453
|
-
var
|
|
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(
|
|
457
|
-
if (n &&
|
|
458
|
-
|
|
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
|
-
|
|
431
|
+
Z = !1, i.zoomed.removeEventListener("transitionend", ie), i.original.dispatchEvent(V("medium-zoom:opened", {
|
|
463
432
|
detail: { zoom: b }
|
|
464
|
-
})),
|
|
433
|
+
})), y(b);
|
|
465
434
|
};
|
|
466
435
|
if (i.zoomed) {
|
|
467
|
-
|
|
436
|
+
y(b);
|
|
468
437
|
return;
|
|
469
438
|
}
|
|
470
439
|
if (n)
|
|
471
440
|
i.original = n;
|
|
472
|
-
else if (
|
|
473
|
-
var w =
|
|
441
|
+
else if (R.length > 0) {
|
|
442
|
+
var w = R;
|
|
474
443
|
i.original = w[0];
|
|
475
444
|
} else {
|
|
476
|
-
|
|
445
|
+
y(b);
|
|
477
446
|
return;
|
|
478
447
|
}
|
|
479
|
-
if (i.original.dispatchEvent(
|
|
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,
|
|
482
|
-
var W = ee(
|
|
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",
|
|
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(
|
|
458
|
+
clearInterval(N), console.warn("Unable to reach the zoom image target " + i.zoomedHd.src), i.zoomedHd = null, u();
|
|
490
459
|
};
|
|
491
|
-
var
|
|
492
|
-
i.zoomedHd.complete && (clearInterval(
|
|
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
|
|
497
|
-
i.zoomedHd.removeEventListener("load",
|
|
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
|
-
},
|
|
471
|
+
}, z = function() {
|
|
503
472
|
return new h(function(a) {
|
|
504
|
-
if (
|
|
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),
|
|
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
|
-
|
|
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
|
-
},
|
|
486
|
+
}, H = function() {
|
|
518
487
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = a.target;
|
|
519
|
-
return i.original ?
|
|
488
|
+
return i.original ? z() : A({ target: n });
|
|
520
489
|
}, k = function() {
|
|
521
|
-
return
|
|
490
|
+
return c;
|
|
522
491
|
}, te = function() {
|
|
523
|
-
return
|
|
524
|
-
},
|
|
492
|
+
return R;
|
|
493
|
+
}, fe = function() {
|
|
525
494
|
return i.original;
|
|
526
|
-
},
|
|
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]" ?
|
|
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
|
-
},
|
|
540
|
-
var J =
|
|
541
|
-
document.addEventListener("click", r), document.addEventListener("keyup", p), document.addEventListener("scroll", g), window.addEventListener("resize",
|
|
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:
|
|
544
|
-
close:
|
|
545
|
-
toggle:
|
|
512
|
+
open: A,
|
|
513
|
+
close: z,
|
|
514
|
+
toggle: H,
|
|
546
515
|
update: C,
|
|
547
|
-
clone:
|
|
548
|
-
attach:
|
|
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:
|
|
523
|
+
getZoomedImage: fe
|
|
555
524
|
};
|
|
556
525
|
return b;
|
|
557
526
|
};
|
|
558
|
-
function
|
|
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
|
|
567
|
-
|
|
568
|
-
const
|
|
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
|
-
${
|
|
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
|
|
937
|
-
for (var r = h > 1 ? void 0 : h ?
|
|
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 &&
|
|
786
|
+
return h && r && rt(t, o, r), r;
|
|
940
787
|
};
|
|
941
|
-
let l = class extends
|
|
788
|
+
let l = class extends T {
|
|
942
789
|
constructor() {
|
|
943
|
-
super(...arguments), this.localize = new
|
|
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 =
|
|
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
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
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
|
|
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
|
-
() =>
|
|
1122
|
-
() =>
|
|
945
|
+
() => ge,
|
|
946
|
+
() => P(
|
|
1123
947
|
this.effect === Y.Jump || this.effect === Y.Zoom,
|
|
1124
|
-
() =>
|
|
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
|
-
() =>
|
|
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
|
-
|
|
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
|
-
() =>
|
|
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
|
-
${
|
|
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,
|
|
966
|
+
l.styles = [We, qe, ot];
|
|
1189
967
|
l.dependencies = {
|
|
1190
|
-
"cx-icon":
|
|
1191
|
-
"cx-popup":
|
|
1192
|
-
"cx-resize-observer":
|
|
1193
|
-
"cx-skeleton":
|
|
1194
|
-
"cx-space":
|
|
968
|
+
"cx-icon": _e,
|
|
969
|
+
"cx-popup": Ze,
|
|
970
|
+
"cx-resize-observer": Ne,
|
|
971
|
+
"cx-skeleton": Pe,
|
|
972
|
+
"cx-space": Ve
|
|
1195
973
|
};
|
|
1196
|
-
|
|
974
|
+
m([
|
|
1197
975
|
X(".image")
|
|
1198
976
|
], l.prototype, "imageElement", 2);
|
|
1199
|
-
|
|
977
|
+
m([
|
|
1200
978
|
X(".zoom-image")
|
|
1201
979
|
], l.prototype, "zoomImageElement", 2);
|
|
1202
|
-
|
|
980
|
+
m([
|
|
1203
981
|
X(".highlighter")
|
|
1204
982
|
], l.prototype, "highlighterElement", 2);
|
|
1205
|
-
|
|
1206
|
-
|
|
983
|
+
m([
|
|
984
|
+
L()
|
|
1207
985
|
], l.prototype, "isLoaded", 2);
|
|
1208
|
-
|
|
1209
|
-
|
|
986
|
+
m([
|
|
987
|
+
L()
|
|
1210
988
|
], l.prototype, "isError", 2);
|
|
1211
|
-
|
|
1212
|
-
|
|
989
|
+
m([
|
|
990
|
+
L()
|
|
991
|
+
], l.prototype, "_retryIndex", 2);
|
|
992
|
+
m([
|
|
993
|
+
d({ reflect: !0, type: String })
|
|
1213
994
|
], l.prototype, "src", 2);
|
|
1214
|
-
|
|
1215
|
-
|
|
995
|
+
m([
|
|
996
|
+
d({ reflect: !0, type: String })
|
|
1216
997
|
], l.prototype, "placeholder", 2);
|
|
1217
|
-
|
|
1218
|
-
|
|
998
|
+
m([
|
|
999
|
+
d({ reflect: !0, type: String })
|
|
1219
1000
|
], l.prototype, "alt", 2);
|
|
1220
|
-
|
|
1221
|
-
|
|
1001
|
+
m([
|
|
1002
|
+
d({ attribute: "object-fit", reflect: !0 })
|
|
1222
1003
|
], l.prototype, "objectFit", 2);
|
|
1223
|
-
|
|
1224
|
-
|
|
1004
|
+
m([
|
|
1005
|
+
d({ reflect: !0, type: Boolean })
|
|
1225
1006
|
], l.prototype, "skeleton", 2);
|
|
1226
|
-
|
|
1227
|
-
|
|
1007
|
+
m([
|
|
1008
|
+
d({ reflect: !0, type: Boolean })
|
|
1228
1009
|
], l.prototype, "fallback", 2);
|
|
1229
|
-
|
|
1230
|
-
|
|
1010
|
+
m([
|
|
1011
|
+
d({ attribute: "can-zoom", reflect: !0, type: Boolean })
|
|
1231
1012
|
], l.prototype, "canZoom", 2);
|
|
1232
|
-
|
|
1233
|
-
|
|
1013
|
+
m([
|
|
1014
|
+
d({ reflect: !0, type: Boolean })
|
|
1234
1015
|
], l.prototype, "loading", 2);
|
|
1235
|
-
|
|
1236
|
-
|
|
1016
|
+
m([
|
|
1017
|
+
d({ reflect: !0, type: Boolean })
|
|
1237
1018
|
], l.prototype, "block", 2);
|
|
1238
|
-
|
|
1239
|
-
|
|
1019
|
+
m([
|
|
1020
|
+
d({ attribute: "html-loading", reflect: !0, type: String })
|
|
1240
1021
|
], l.prototype, "htmlLoading", 2);
|
|
1241
|
-
|
|
1242
|
-
|
|
1022
|
+
m([
|
|
1023
|
+
d({ attribute: "click-handler-type", reflect: !0, type: String })
|
|
1243
1024
|
], l.prototype, "clickHandlerType", 2);
|
|
1244
|
-
|
|
1245
|
-
|
|
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
|
-
|
|
1248
|
-
|
|
1034
|
+
m([
|
|
1035
|
+
L()
|
|
1249
1036
|
], l.prototype, "imageRatio", 2);
|
|
1250
|
-
|
|
1251
|
-
|
|
1037
|
+
m([
|
|
1038
|
+
L()
|
|
1252
1039
|
], l.prototype, "parsedAlt", 2);
|
|
1253
|
-
|
|
1254
|
-
|
|
1040
|
+
m([
|
|
1041
|
+
L()
|
|
1255
1042
|
], l.prototype, "parsedAltDarkMode", 2);
|
|
1256
|
-
|
|
1043
|
+
m([
|
|
1257
1044
|
q("isLoaded"),
|
|
1258
1045
|
q("canZoom", { waitUntilFirstUpdate: !0 })
|
|
1259
1046
|
], l.prototype, "handleCanZoomChange", 1);
|
|
1260
|
-
|
|
1047
|
+
m([
|
|
1261
1048
|
q("objectFit", { waitUntilFirstUpdate: !0 })
|
|
1262
1049
|
], l.prototype, "handleObjectFitChange", 1);
|
|
1263
|
-
|
|
1050
|
+
m([
|
|
1264
1051
|
q("src"),
|
|
1265
1052
|
q("srcDarkMode")
|
|
1266
1053
|
], l.prototype, "handleSrcChange", 1);
|
|
1267
|
-
|
|
1054
|
+
m([
|
|
1268
1055
|
Oe(100)
|
|
1269
1056
|
], l.prototype, "updateLastPatchedWidth", 1);
|
|
1270
|
-
l =
|
|
1271
|
-
|
|
1057
|
+
l = m([
|
|
1058
|
+
Te("cx-image")
|
|
1272
1059
|
], l);
|
|
1273
1060
|
export {
|
|
1274
1061
|
l as C,
|
|
1275
|
-
|
|
1276
|
-
|
|
1062
|
+
Fe as H,
|
|
1063
|
+
T as R,
|
|
1277
1064
|
S as a,
|
|
1278
1065
|
Y as b,
|
|
1279
1066
|
U as c,
|
|
1280
|
-
|
|
1281
|
-
|
|
1067
|
+
pe as d,
|
|
1068
|
+
ue as e,
|
|
1282
1069
|
ne as f,
|
|
1283
|
-
|
|
1070
|
+
qe as r
|
|
1284
1071
|
};
|