@realsee/dnalogel 2.6.7-dev.10 → 2.6.7-dev.11

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 (268) hide show
  1. package/dist/index.cjs.js +33 -33
  2. package/dist/index.js +901 -897
  3. package/dist/index.umd.js +20 -20
  4. package/docs/classes/CSS3DRender.html +31 -31
  5. package/docs/classes/CruisePluginController.html +24 -24
  6. package/docs/classes/Magnifier.html +20 -20
  7. package/docs/classes/ModelRoomLabelController.html +11 -11
  8. package/docs/classes/Object3DHelperController.html +24 -24
  9. package/docs/classes/PaintBrush.html +15 -15
  10. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  11. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  12. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  13. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  14. package/docs/classes/PanoTagPluginController.html +47 -47
  15. package/docs/classes/Util.BetterTween.html +8 -8
  16. package/docs/classes/Util.FivePointSelector.html +12 -12
  17. package/docs/classes/Util.Interval.html +12 -12
  18. package/docs/classes/Util.Magnifier.html +17 -17
  19. package/docs/classes/Util.PointDomHelper.html +11 -11
  20. package/docs/classes/Util.PointHelper.html +11 -11
  21. package/docs/classes/Util.Rectangle.html +13 -13
  22. package/docs/enums/CameraMovementEffect.html +7 -7
  23. package/docs/enums/ContentType.html +18 -18
  24. package/docs/enums/DIRECTION.html +9 -9
  25. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/DimensionType.html +7 -7
  27. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  28. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  30. package/docs/enums/PointType.html +7 -7
  31. package/docs/enums/Rotation.html +8 -8
  32. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  33. package/docs/functions/CameraMovementPlugin.html +4 -4
  34. package/docs/functions/CruisePlugin.html +4 -4
  35. package/docs/functions/GuideLinePlugin.html +5 -5
  36. package/docs/functions/ItemLabelPlugin.html +4 -4
  37. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  39. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  40. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  41. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  42. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  43. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  44. package/docs/functions/ModelViewPlugin.html +4 -4
  45. package/docs/functions/Object3DHelperPlugin.html +4 -4
  46. package/docs/functions/PanoCompassPlugin.html +4 -4
  47. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  48. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  49. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  50. package/docs/functions/PanoMeasurePlugin.html +4 -4
  51. package/docs/functions/PanoRulerPlugin.html +4 -4
  52. package/docs/functions/PanoRulerProPlugin.html +4 -4
  53. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  54. package/docs/functions/PanoTagPlugin.html +4 -4
  55. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  56. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  57. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  58. package/docs/functions/Util.getFrameTime.html +5 -5
  59. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  60. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  61. package/docs/functions/Util.isNil.html +5 -5
  62. package/docs/functions/Util.nextFrame.html +5 -5
  63. package/docs/functions/Util.notNil.html +5 -5
  64. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  65. package/docs/functions/Util.tweenProgress.html +5 -5
  66. package/docs/functions/pluginFlag.html +5 -5
  67. package/docs/index.html +4 -4
  68. package/docs/interfaces/AddTagConfig.html +6 -6
  69. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  70. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  71. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  72. package/docs/interfaces/EventMap.html +15 -15
  73. package/docs/interfaces/FloorplanBounding.html +8 -8
  74. package/docs/interfaces/FloorplanData.html +10 -10
  75. package/docs/interfaces/FloorplanEntrance.html +11 -11
  76. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  77. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  78. package/docs/interfaces/FloorplanFloorData.html +9 -9
  79. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  80. package/docs/interfaces/FloorplanObserver.html +9 -9
  81. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  82. package/docs/interfaces/FloorplanPosition.html +7 -7
  83. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  84. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  85. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  86. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  87. package/docs/interfaces/FloorplanServerData.html +7 -7
  88. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  89. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  90. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  91. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  92. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  94. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  95. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  96. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  97. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  98. package/docs/interfaces/HelperOffset.html +8 -8
  99. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  100. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  101. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  102. package/docs/interfaces/MinMax.html +7 -7
  103. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  104. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  105. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  106. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  107. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  108. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  110. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  111. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  112. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  113. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  114. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  115. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  116. package/docs/interfaces/Object3DHelperState.html +8 -8
  117. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  118. package/docs/interfaces/PaintBrushAction.html +12 -12
  119. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  120. package/docs/interfaces/PaintBrushState.html +10 -10
  121. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  123. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  124. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  125. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  126. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  127. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  128. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  129. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  130. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  131. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  132. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  133. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  134. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  135. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  136. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  137. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  138. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  139. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  140. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  141. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  142. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  143. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  144. package/docs/interfaces/Point.html +8 -8
  145. package/docs/interfaces/Room.html +9 -9
  146. package/docs/interfaces/RoomInfo.html +7 -7
  147. package/docs/interfaces/RoomLabel.html +14 -14
  148. package/docs/interfaces/RoomRules.html +5 -5
  149. package/docs/interfaces/Rooms.html +5 -5
  150. package/docs/interfaces/Scissor.html +9 -9
  151. package/docs/interfaces/State.html +8 -8
  152. package/docs/interfaces/TagCache.html +12 -12
  153. package/docs/interfaces/TagConfig.html +10 -10
  154. package/docs/interfaces/TagIconUrl.html +9 -9
  155. package/docs/interfaces/Tags.html +9 -9
  156. package/docs/interfaces/TemporaryState.html +6 -6
  157. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  158. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  159. package/docs/modules/Util.html +5 -5
  160. package/docs/modules.html +4 -4
  161. package/docs/types/ArrayPosition.html +5 -5
  162. package/docs/types/AudioAppearance.html +5 -5
  163. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  164. package/docs/types/CSS3DRenderExportType.html +5 -5
  165. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  166. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  167. package/docs/types/ClassFunctionParameters.html +5 -5
  168. package/docs/types/Color.html +5 -5
  169. package/docs/types/ContentTypeConfigKey.html +5 -5
  170. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  171. package/docs/types/ContentTypeMap.html +5 -5
  172. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  173. package/docs/types/Create3DElementReturnType.html +5 -5
  174. package/docs/types/CruisePluginExportType.html +5 -5
  175. package/docs/types/Direction-1.html +5 -5
  176. package/docs/types/Direction4.html +5 -5
  177. package/docs/types/FloorplanRuleLabels.html +5 -5
  178. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  179. package/docs/types/GuideLinePluginExportType.html +5 -5
  180. package/docs/types/HelperEventMap.html +5 -5
  181. package/docs/types/LoadTagConfig.html +5 -5
  182. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  183. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  184. package/docs/types/MediaData.html +5 -5
  185. package/docs/types/MediaStore.html +5 -5
  186. package/docs/types/ModelElement.html +5 -5
  187. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  188. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  189. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  190. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  191. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  192. package/docs/types/MoveArgs.html +5 -5
  193. package/docs/types/MoveOpts.html +5 -5
  194. package/docs/types/Object3DHelperEventMap.html +5 -5
  195. package/docs/types/ObjectFit.html +5 -5
  196. package/docs/types/PaintBrushEventMap.html +5 -5
  197. package/docs/types/PanoCompassPluginData.html +5 -5
  198. package/docs/types/PanoCompassPluginExportType.html +5 -5
  199. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  200. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  201. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  202. package/docs/types/PanoIndex.html +5 -5
  203. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  204. package/docs/types/PanoMeasureReturnType.html +5 -5
  205. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  206. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  207. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  208. package/docs/types/PlaneTag.html +5 -5
  209. package/docs/types/PlaneTagElement.html +5 -5
  210. package/docs/types/Point2DElement.html +5 -5
  211. package/docs/types/Point2DTag.html +5 -5
  212. package/docs/types/Point3DElement.html +5 -5
  213. package/docs/types/Point3DTag.html +5 -5
  214. package/docs/types/PointTag.html +5 -5
  215. package/docs/types/PointTagElement.html +5 -5
  216. package/docs/types/Position.html +5 -5
  217. package/docs/types/RotateArgs.html +5 -5
  218. package/docs/types/RotateOpts.html +5 -5
  219. package/docs/types/RuleLabelsKey.html +5 -5
  220. package/docs/types/RuleLabelsValue.html +5 -5
  221. package/docs/types/StickType.html +5 -5
  222. package/docs/types/Tag.html +5 -5
  223. package/docs/types/Tag2D.html +5 -5
  224. package/docs/types/Tag3D.html +5 -5
  225. package/docs/types/TagContentType.html +5 -5
  226. package/docs/types/TagDimensionType.html +5 -5
  227. package/docs/types/TagElement.html +5 -5
  228. package/docs/types/TagEvents.html +5 -5
  229. package/docs/types/TagGLTFObject.html +5 -5
  230. package/docs/types/TagHooks.html +5 -5
  231. package/docs/types/TagIconSize.html +5 -5
  232. package/docs/types/TagId.html +5 -5
  233. package/docs/types/TagPointType.html +5 -5
  234. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  235. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  236. package/docs/types/WorkCode.html +5 -5
  237. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  238. package/docs/variables/PLUGIN.html +5 -5
  239. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  240. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  241. package/docs/variables/VERSION.html +5 -5
  242. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  243. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  244. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  245. package/libs/PanoMeasurePlugin/Controller/MixedController.js +10 -10
  246. package/libs/PanoTagPlugin/Components/Common/Media.js +101 -101
  247. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +119 -115
  248. package/libs/PanoTagPlugin/Components/Tag/index.js +90 -90
  249. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  250. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  251. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  252. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  253. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  254. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  255. package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
  256. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  257. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  258. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  259. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  260. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  261. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  262. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  263. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  264. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  265. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  266. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  267. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  268. package/package.json +1 -1
@@ -1,199 +1,203 @@
1
- import { SvelteComponent as O, init as W, safe_not_equal as H, append_styles as T, empty as M, insert as g, noop as w, detach as y, getContext as B, onMount as A, element as _, attr as a, binding_callbacks as J, space as R, set_style as P, toggle_class as v, append as C, listen as q, src_url_equal as p, run_all as X } from "../../../vendor/svelte/internal/index.js";
2
- import { Image_Play_Icon_With_Text as D, Image_Play_Icon as G } from "../../Assets/Icon.js";
3
- function K(n) {
4
- T(n, "svelte-bh2qfj", ".media-item.svelte-bh2qfj.svelte-bh2qfj{position:relative;height:100%}.media-content.svelte-bh2qfj.svelte-bh2qfj{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-bh2qfj.svelte-bh2qfj{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-bh2qfj.svelte-bh2qfj{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-bh2qfj.svelte-bh2qfj{display:block}.video-icon.large.svelte-bh2qfj.svelte-bh2qfj{width:12.5rem;height:6.25rem}.video-icon.small.svelte-bh2qfj.svelte-bh2qfj{width:1.75rem;height:1.75rem}.video-icon.svelte-bh2qfj .video-icon-img.svelte-bh2qfj{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-bh2qfj .video-icon-img.canPlay.svelte-bh2qfj{cursor:pointer}");
1
+ import { SvelteComponent as T, init as M, safe_not_equal as q, append_styles as A, empty as J, insert as y, noop as C, detach as b, getContext as S, onMount as R, element as k, attr as a, binding_callbacks as X, space as D, set_style as j, toggle_class as _, append as U, listen as w, src_url_equal as h, run_all as G } from "../../../vendor/svelte/internal/index.js";
2
+ import { Image_Play_Icon_With_Text as K, Image_Play_Icon as Q } from "../../Assets/Icon.js";
3
+ function Y(l) {
4
+ A(l, "svelte-159ski6", ".media-item.svelte-159ski6.svelte-159ski6{position:relative;height:100%}.media-content.svelte-159ski6.svelte-159ski6{position:relative;pointer-events:auto;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.media-content.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none}.video-icon.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-159ski6.svelte-159ski6{display:none;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none;display:block}.video-icon.svelte-159ski6.svelte-159ski6{pointer-events:auto}.video-icon.large.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem}.video-icon.small.svelte-159ski6.svelte-159ski6{width:1.75rem;height:1.75rem}.video-icon.svelte-159ski6 .video-icon-img.svelte-159ski6{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-159ski6 .video-icon-img.canPlay.svelte-159ski6{cursor:pointer}");
5
5
  }
6
- function S(n) {
6
+ function L(l) {
7
7
  let e;
8
- function t(o, s) {
9
- if (o[2].type === "Image")
10
- return Y;
11
- if (o[2].type === "Video")
12
- return Q;
8
+ function t(s, n) {
9
+ if (s[2].type === "Image")
10
+ return x;
11
+ if (s[2].type === "Video")
12
+ return Z;
13
13
  }
14
- let l = t(n), i = l && l(n);
14
+ let o = t(l), i = o && o(l);
15
15
  return {
16
16
  c() {
17
- e = _("div"), i && i.c(), a(e, "class", "media-item svelte-bh2qfj"), a(e, "draggable", "false");
17
+ e = k("div"), i && i.c(), a(e, "class", "media-item svelte-159ski6"), a(e, "draggable", "false");
18
18
  },
19
- m(o, s) {
20
- g(o, e, s), i && i.m(e, null);
19
+ m(s, n) {
20
+ y(s, e, n), i && i.m(e, null);
21
21
  },
22
- p(o, s) {
23
- l === (l = t(o)) && i ? i.p(o, s) : (i && i.d(1), i = l && l(o), i && (i.c(), i.m(e, null)));
22
+ p(s, n) {
23
+ o === (o = t(s)) && i ? i.p(s, n) : (i && i.d(1), i = o && o(s), i && (i.c(), i.m(e, null)));
24
24
  },
25
- d(o) {
26
- o && y(e), i && i.d();
25
+ d(s) {
26
+ s && b(e), i && i.d();
27
27
  }
28
28
  };
29
29
  }
30
- function Q(n) {
31
- let e, t, l, i, o, s;
32
- function b(u, m) {
33
- return u[7] && u[2].videoCoverUrl ? x : Z;
30
+ function Z(l) {
31
+ let e, t, o, i, s, n;
32
+ function v(f, m) {
33
+ return f[7] && f[2].videoCoverUrl ? ee : $;
34
34
  }
35
- let c = b(n), d = c(n);
35
+ let c = v(l), d = c(l);
36
36
  return {
37
37
  c() {
38
- d.c(), e = R(), t = _("div"), l = _("div"), i = _("div"), a(i, "class", "video-icon-img svelte-bh2qfj"), P(i, "background-image", "url(" + n[17]() + ")"), v(i, "canPlay", n[5]), a(l, "class", "video-icon svelte-bh2qfj"), v(l, "large", n[4] === "large"), v(l, "small", n[4] === "small"), a(t, "class", "video-play-button-container svelte-bh2qfj"), v(t, "showPlayButton", n[9]);
38
+ d.c(), e = D(), t = k("div"), o = k("div"), i = k("div"), a(i, "class", "video-icon-img svelte-159ski6"), j(i, "background-image", "url(" + l[18]() + ")"), _(i, "canPlay", l[5]), a(o, "class", "video-icon svelte-159ski6"), _(o, "large", l[4] === "large"), _(o, "small", l[4] === "small"), a(t, "class", "video-play-button-container svelte-159ski6"), _(t, "showPlayButton", l[9]);
39
39
  },
40
- m(u, m) {
41
- d.m(u, m), g(u, e, m), g(u, t, m), C(t, l), C(l, i), o || (s = q(i, "click", n[18]), o = !0);
40
+ m(f, m) {
41
+ d.m(f, m), y(f, e, m), y(f, t, m), U(t, o), U(o, i), s || (n = w(i, "click", l[19]), s = !0);
42
42
  },
43
- p(u, m) {
44
- c === (c = b(u)) && d ? d.p(u, m) : (d.d(1), d = c(u), d && (d.c(), d.m(e.parentNode, e))), m & 8 && P(i, "background-image", "url(" + u[17]() + ")"), m & 32 && v(i, "canPlay", u[5]), m & 16 && v(l, "large", u[4] === "large"), m & 16 && v(l, "small", u[4] === "small"), m & 512 && v(t, "showPlayButton", u[9]);
43
+ p(f, m) {
44
+ c === (c = v(f)) && d ? d.p(f, m) : (d.d(1), d = c(f), d && (d.c(), d.m(e.parentNode, e))), m & 8 && j(i, "background-image", "url(" + f[18]() + ")"), m & 32 && _(i, "canPlay", f[5]), m & 16 && _(o, "large", f[4] === "large"), m & 16 && _(o, "small", f[4] === "small"), m & 512 && _(t, "showPlayButton", f[9]);
45
45
  },
46
- d(u) {
47
- d.d(u), u && y(e), u && y(t), o = !1, s();
46
+ d(f) {
47
+ d.d(f), f && b(e), f && b(t), s = !1, n();
48
48
  }
49
49
  };
50
50
  }
51
- function Y(n) {
52
- let e, t, l, i;
51
+ function x(l) {
52
+ let e, t, o, i;
53
53
  return {
54
54
  c() {
55
- e = _("img"), a(e, "class", "media-content svelte-bh2qfj"), a(e, "style", t = `object-fit: ${n[6]};`), p(e.src, l = n[2].url) || a(e, "src", l), a(e, "alt", i = n[2].name), a(e, "draggable", !1);
55
+ e = k("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", t = `object-fit: ${l[6]};`), h(e.src, o = l[2].url) || a(e, "src", o), a(e, "alt", i = l[2].name), a(e, "draggable", !1);
56
56
  },
57
- m(o, s) {
58
- g(o, e, s);
57
+ m(s, n) {
58
+ y(s, e, n);
59
59
  },
60
- p(o, s) {
61
- s & 64 && t !== (t = `object-fit: ${o[6]};`) && a(e, "style", t), s & 4 && !p(e.src, l = o[2].url) && a(e, "src", l), s & 4 && i !== (i = o[2].name) && a(e, "alt", i);
60
+ p(s, n) {
61
+ n & 64 && t !== (t = `object-fit: ${s[6]};`) && a(e, "style", t), n & 4 && !h(e.src, o = s[2].url) && a(e, "src", o), n & 4 && i !== (i = s[2].name) && a(e, "alt", i);
62
62
  },
63
- d(o) {
64
- o && y(e);
63
+ d(s) {
64
+ s && b(e);
65
65
  }
66
66
  };
67
67
  }
68
- function Z(n) {
69
- let e, t, l, i, o, s, b;
68
+ function $(l) {
69
+ let e, t, o, i, s, n, v;
70
70
  return {
71
71
  c() {
72
- e = _("video"), a(e, "class", "media-content svelte-bh2qfj"), a(e, "style", t = `object-fit: ${n[6]};`), p(e.src, l = n[2].videoCoverUrl ? n[2].url : n[2].url + "#t=0.1") || a(e, "src", l), a(e, "poster", i = n[2].videoCoverUrl), a(e, "preload", o = n[2].videoCoverUrl ? "none" : "auto"), a(e, "disablepictureinpicture", ""), e.playsInline = !0, a(e, "paused", ""), e.muted = !0, a(e, "draggable", !1), e.loop = !1, a(e, "crossorigin", ""), e.controls = !1, v(e, "showPlayButton", n[9]), P(e, "position", "relative");
72
+ e = k("video"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", t = `object-fit: ${l[6]};`), h(e.src, o = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") || a(e, "src", o), a(e, "poster", i = l[2].videoCoverUrl), a(e, "preload", s = l[2].videoCoverUrl ? "none" : "auto"), a(e, "disablepictureinpicture", ""), e.playsInline = !0, a(e, "paused", ""), e.muted = !0, a(e, "draggable", !1), e.loop = !1, a(e, "crossorigin", ""), e.controls = !1, _(e, "showPlayButton", l[9]);
73
73
  },
74
74
  m(c, d) {
75
- g(c, e, d), n[16](e), s || (b = [
76
- q(e, "play", n[13]),
77
- q(e, "pause", n[14]),
78
- q(e, "click", n[15])
79
- ], s = !0);
75
+ y(c, e, d), l[17](e), n || (v = [
76
+ w(e, "play", l[14]),
77
+ w(e, "pause", l[15]),
78
+ w(e, "click", l[16])
79
+ ], n = !0);
80
80
  },
81
81
  p(c, d) {
82
- d & 64 && t !== (t = `object-fit: ${c[6]};`) && a(e, "style", t), d & 4 && !p(e.src, l = c[2].videoCoverUrl ? c[2].url : c[2].url + "#t=0.1") && a(e, "src", l), d & 4 && i !== (i = c[2].videoCoverUrl) && a(e, "poster", i), d & 4 && o !== (o = c[2].videoCoverUrl ? "none" : "auto") && a(e, "preload", o), d & 512 && v(e, "showPlayButton", c[9]);
82
+ d & 64 && t !== (t = `object-fit: ${c[6]};`) && a(e, "style", t), d & 4 && !h(e.src, o = c[2].videoCoverUrl ? c[2].url : c[2].url + "#t=0.1") && a(e, "src", o), d & 4 && i !== (i = c[2].videoCoverUrl) && a(e, "poster", i), d & 4 && s !== (s = c[2].videoCoverUrl ? "none" : "auto") && a(e, "preload", s), d & 512 && _(e, "showPlayButton", c[9]);
83
83
  },
84
84
  d(c) {
85
- c && y(e), n[16](null), s = !1, X(b);
85
+ c && b(e), l[17](null), n = !1, G(v);
86
86
  }
87
87
  };
88
88
  }
89
- function x(n) {
90
- let e, t, l, i;
89
+ function ee(l) {
90
+ let e, t, o, i;
91
91
  return {
92
92
  c() {
93
- e = _("img"), a(e, "class", "media-content svelte-bh2qfj"), a(e, "style", t = `object-fit: ${n[6]};`), p(e.src, l = n[2].videoCoverUrl) || a(e, "src", l), a(e, "alt", i = n[2].name), a(e, "draggable", !1);
93
+ e = k("img"), a(e, "class", "media-content svelte-159ski6"), a(e, "style", t = `object-fit: ${l[6]};`), h(e.src, o = l[2].videoCoverUrl) || a(e, "src", o), a(e, "alt", i = l[2].name), a(e, "draggable", !1);
94
94
  },
95
- m(o, s) {
96
- g(o, e, s);
95
+ m(s, n) {
96
+ y(s, e, n);
97
97
  },
98
- p(o, s) {
99
- s & 64 && t !== (t = `object-fit: ${o[6]};`) && a(e, "style", t), s & 4 && !p(e.src, l = o[2].videoCoverUrl) && a(e, "src", l), s & 4 && i !== (i = o[2].name) && a(e, "alt", i);
98
+ p(s, n) {
99
+ n & 64 && t !== (t = `object-fit: ${s[6]};`) && a(e, "style", t), n & 4 && !h(e.src, o = s[2].videoCoverUrl) && a(e, "src", o), n & 4 && i !== (i = s[2].name) && a(e, "alt", i);
100
100
  },
101
- d(o) {
102
- o && y(e);
101
+ d(s) {
102
+ s && b(e);
103
103
  }
104
104
  };
105
105
  }
106
- function $(n) {
107
- let e, t = n[2] && S(n);
106
+ function te(l) {
107
+ let e, t = l[2] && L(l);
108
108
  return {
109
109
  c() {
110
- t && t.c(), e = M();
110
+ t && t.c(), e = J();
111
111
  },
112
- m(l, i) {
113
- t && t.m(l, i), g(l, e, i);
112
+ m(o, i) {
113
+ t && t.m(o, i), y(o, e, i);
114
114
  },
115
- p(l, [i]) {
116
- l[2] ? t ? t.p(l, i) : (t = S(l), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
115
+ p(o, [i]) {
116
+ o[2] ? t ? t.p(o, i) : (t = L(o), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
117
117
  },
118
- i: w,
119
- o: w,
120
- d(l) {
121
- t && t.d(l), l && y(e);
118
+ i: C,
119
+ o: C,
120
+ d(o) {
121
+ t && t.d(o), o && b(e);
122
122
  }
123
123
  };
124
124
  }
125
- function ee(n, e, t) {
126
- let { mediaInstance: l = { paused: !0 } } = e, { tag: i } = e, { media: o } = e, { playButtonIfNeed: s = "withoutText" } = e, { playButtonSizeIfNeed: b = "small" } = e, { canPlay: c = !0 } = e, { objectFit: d = "fill" } = e, { disableVideoIfHavePoster: u = !1 } = e, m = (o == null ? void 0 : o.type) === "Video" && Boolean(o == null ? void 0 : o.videoCoverUrl), f, j = !0;
127
- const I = B("mediaStore"), k = B("hooks"), h = () => {
128
- m || (f == null || f.play(), f == null || f.pause(), t(12, m = !0));
125
+ function ie(l, e, t) {
126
+ let o, { mediaInstance: i = { paused: !0 } } = e, { tag: s } = e, { media: n } = e, { playButtonIfNeed: v = "withoutText" } = e, { playButtonSizeIfNeed: c = "small" } = e, { canPlay: d = !0 } = e, { objectFit: f = "fill" } = e, { disableVideoIfHavePoster: m = !1 } = e, u, I = !0, p = !1;
127
+ function N() {
128
+ t(12, p = (n == null ? void 0 : n.type) === "Video" && Boolean(n.videoCoverUrl));
129
+ }
130
+ const B = S("mediaStore"), P = S("hooks"), g = () => {
131
+ p || (u == null || u.play(), u == null || u.pause(), t(12, p = !0));
129
132
  };
130
- k.on("loadVideoFirstFrame", h), A(() => {
131
- I.subscribe(({ currentMediaElement: r }) => {
132
- r !== f && (f == null || f.pause());
133
+ P.on("loadVideoFirstFrame", g), R(() => {
134
+ B.subscribe(({ currentMediaElement: r }) => {
135
+ r !== u && (u == null || u.pause());
133
136
  });
134
137
  });
135
- const N = (r) => {
136
- t(9, j = !1), t(0, l.paused = !1, l), I.set({ currentMediaElement: f }), k.emit("playStateChange", {
138
+ const V = (r) => {
139
+ t(9, I = !1), t(0, i.paused = !1, i), B.set({ currentMediaElement: u }), P.emit("playStateChange", {
137
140
  event: r,
138
141
  state: "playing",
139
- tag: i,
140
- mediaInstance: f
142
+ tag: s,
143
+ mediaInstance: u
141
144
  });
142
- }, U = (r) => {
143
- t(9, j = !0), t(0, l.paused = !0, l), k.emit("playStateChange", {
145
+ }, E = (r) => {
146
+ t(9, I = !0), t(0, i.paused = !0, i), P.emit("playStateChange", {
144
147
  event: r,
145
148
  state: "paused",
146
- tag: i,
147
- mediaInstance: f
149
+ tag: s,
150
+ mediaInstance: u
148
151
  });
149
- }, L = (r) => {
150
- f && f.pause();
152
+ }, z = (r) => {
153
+ u && u.pause();
151
154
  };
152
- function V(r) {
153
- J[r ? "unshift" : "push"](() => {
154
- f = r, t(8, f);
155
+ function F(r) {
156
+ X[r ? "unshift" : "push"](() => {
157
+ u = r, t(8, u);
155
158
  });
156
159
  }
157
- const E = () => s === "withText" ? D : s === "withoutText" ? G : s, z = (r) => {
158
- !c || f && (t(8, f.muted = !1, f), f.play());
160
+ const O = () => v === "withText" ? K : v === "withoutText" ? Q : v, W = (r) => {
161
+ !d || u && (t(8, u.muted = !1, u), u.play());
159
162
  };
160
- return n.$$set = (r) => {
161
- "mediaInstance" in r && t(0, l = r.mediaInstance), "tag" in r && t(1, i = r.tag), "media" in r && t(2, o = r.media), "playButtonIfNeed" in r && t(3, s = r.playButtonIfNeed), "playButtonSizeIfNeed" in r && t(4, b = r.playButtonSizeIfNeed), "canPlay" in r && t(5, c = r.canPlay), "objectFit" in r && t(6, d = r.objectFit), "disableVideoIfHavePoster" in r && t(7, u = r.disableVideoIfHavePoster);
162
- }, n.$$.update = () => {
163
- if (n.$$.dirty & 256 && f && t(9, j = f.paused), n.$$.dirty & 4356 && (o == null ? void 0 : o.type) === "Video" && !m) {
164
- const r = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, F = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && r;
165
- f && F && f.paused && (document.removeEventListener("WeixinJSBridgeReady", h), document.removeEventListener("touchstart", h), document.removeEventListener("click", h), document.addEventListener("WeixinJSBridgeReady", h), document.addEventListener("touchstart", h), document.addEventListener("click", h));
163
+ return l.$$set = (r) => {
164
+ "mediaInstance" in r && t(0, i = r.mediaInstance), "tag" in r && t(1, s = r.tag), "media" in r && t(2, n = r.media), "playButtonIfNeed" in r && t(3, v = r.playButtonIfNeed), "playButtonSizeIfNeed" in r && t(4, c = r.playButtonSizeIfNeed), "canPlay" in r && t(5, d = r.canPlay), "objectFit" in r && t(6, f = r.objectFit), "disableVideoIfHavePoster" in r && t(7, m = r.disableVideoIfHavePoster);
165
+ }, l.$$.update = () => {
166
+ if (l.$$.dirty & 4 && t(13, o = n == null ? void 0 : n.url), l.$$.dirty & 8192 && Boolean(o) && N(), l.$$.dirty & 256 && u && t(9, I = u.paused), l.$$.dirty & 4356 && (n == null ? void 0 : n.type) === "Video" && !p) {
167
+ const r = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, H = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && r;
168
+ u && H && u.paused && (document.removeEventListener("WeixinJSBridgeReady", g), document.removeEventListener("touchstart", g), document.removeEventListener("click", g), document.addEventListener("WeixinJSBridgeReady", g), document.addEventListener("touchstart", g), document.addEventListener("click", g));
166
169
  }
167
170
  }, [
168
- l,
169
171
  i,
170
- o,
171
172
  s,
172
- b,
173
+ n,
174
+ v,
173
175
  c,
174
176
  d,
175
- u,
176
177
  f,
177
- j,
178
- I,
179
- k,
180
178
  m,
181
- N,
182
- U,
183
- L,
179
+ u,
180
+ I,
181
+ B,
182
+ P,
183
+ p,
184
+ o,
184
185
  V,
185
186
  E,
186
- z
187
+ z,
188
+ F,
189
+ O,
190
+ W
187
191
  ];
188
192
  }
189
- class oe extends O {
193
+ class ne extends T {
190
194
  constructor(e) {
191
- super(), W(
195
+ super(), M(
192
196
  this,
193
197
  e,
194
- ee,
195
- $,
196
- H,
198
+ ie,
199
+ te,
200
+ q,
197
201
  {
198
202
  mediaInstance: 0,
199
203
  tag: 1,
@@ -204,10 +208,10 @@ class oe extends O {
204
208
  objectFit: 6,
205
209
  disableVideoIfHavePoster: 7
206
210
  },
207
- K
211
+ Y
208
212
  );
209
213
  }
210
214
  }
211
215
  export {
212
- oe as default
216
+ ne as default
213
217
  };