@realsee/dnalogel 2.3.9-alpha.4 → 2.3.9-alpha.6

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 (257) hide show
  1. package/dist/PanoTagPlugin/typings/controller.d.ts +2 -0
  2. package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
  3. package/dist/index.cjs.js +31 -31
  4. package/dist/index.js +3156 -3101
  5. package/dist/index.umd.js +31 -31
  6. package/dist/shared-utils/audio.d.ts +16 -4
  7. package/docs/classes/CSS3DRender.html +31 -31
  8. package/docs/classes/CruisePluginController.html +24 -24
  9. package/docs/classes/Magnifier.html +16 -16
  10. package/docs/classes/ModelRoomLabelController.html +11 -11
  11. package/docs/classes/Object3DHelperController.html +24 -24
  12. package/docs/classes/PaintBrush.html +15 -15
  13. package/docs/classes/PanoTagPluginController.html +41 -41
  14. package/docs/classes/Util.BetterTween.html +8 -8
  15. package/docs/classes/Util.FivePointSelector.html +12 -12
  16. package/docs/classes/Util.Interval.html +12 -12
  17. package/docs/classes/Util.Magnifier.html +17 -17
  18. package/docs/classes/Util.PointDomHelper.html +11 -11
  19. package/docs/classes/Util.PointHelper.html +11 -11
  20. package/docs/classes/Util.Rectangle.html +13 -13
  21. package/docs/enums/CameraMovementEffect.html +7 -7
  22. package/docs/enums/ContentType.html +16 -16
  23. package/docs/enums/DIRECTION.html +9 -9
  24. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  25. package/docs/enums/DimensionType.html +7 -7
  26. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  27. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  28. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  29. package/docs/enums/PointType.html +7 -7
  30. package/docs/enums/Rotation.html +8 -8
  31. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  32. package/docs/functions/CameraMovementPlugin.html +4 -4
  33. package/docs/functions/CruisePlugin.html +4 -4
  34. package/docs/functions/GuideLinePlugin.html +5 -5
  35. package/docs/functions/ItemLabelPlugin.html +4 -4
  36. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  37. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  38. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  39. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  40. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  41. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  42. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  43. package/docs/functions/ModelViewPlugin.html +4 -4
  44. package/docs/functions/Object3DHelperPlugin.html +4 -4
  45. package/docs/functions/PanoCompassPlugin.html +4 -4
  46. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  47. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  48. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  49. package/docs/functions/PanoMeasurePlugin.html +4 -4
  50. package/docs/functions/PanoRulerPlugin.html +4 -4
  51. package/docs/functions/PanoRulerProPlugin.html +4 -4
  52. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  53. package/docs/functions/PanoTagPlugin.html +4 -4
  54. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  55. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  56. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  57. package/docs/functions/Util.getFrameTime.html +5 -5
  58. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  59. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  60. package/docs/functions/Util.isNil.html +5 -5
  61. package/docs/functions/Util.nextFrame.html +5 -5
  62. package/docs/functions/Util.notNil.html +5 -5
  63. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  64. package/docs/functions/Util.tweenProgress.html +5 -5
  65. package/docs/functions/pluginFlag.html +5 -5
  66. package/docs/index.html +4 -4
  67. package/docs/interfaces/AddTagConfig.html +6 -6
  68. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  69. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  70. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  71. package/docs/interfaces/EventMap.html +15 -15
  72. package/docs/interfaces/FloorplanBounding.html +8 -8
  73. package/docs/interfaces/FloorplanData.html +10 -10
  74. package/docs/interfaces/FloorplanEntrance.html +11 -11
  75. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  76. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  77. package/docs/interfaces/FloorplanFloorData.html +9 -9
  78. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  79. package/docs/interfaces/FloorplanObserver.html +9 -9
  80. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  81. package/docs/interfaces/FloorplanPosition.html +7 -7
  82. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  83. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  84. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  85. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  86. package/docs/interfaces/FloorplanServerData.html +7 -7
  87. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  88. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  89. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  90. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  91. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  92. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  93. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  94. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  95. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  96. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  97. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  98. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  99. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  100. package/docs/interfaces/LineJson.html +7 -7
  101. package/docs/interfaces/MinMax.html +7 -7
  102. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  103. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  104. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  105. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  106. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  107. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  108. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  109. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  110. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  111. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  112. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  113. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  114. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  115. package/docs/interfaces/Object3DHelperState.html +8 -8
  116. package/docs/interfaces/OpenParameter.html +7 -7
  117. package/docs/interfaces/PaintBrushAction.html +12 -12
  118. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  119. package/docs/interfaces/PaintBrushState.html +10 -10
  120. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  121. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  122. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  123. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  124. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  125. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  126. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  127. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  128. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  129. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  130. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  131. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  132. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  133. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  134. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  135. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  136. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  137. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  138. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  139. package/docs/interfaces/Point.html +8 -8
  140. package/docs/interfaces/PointJson.html +8 -8
  141. package/docs/interfaces/Room.html +9 -9
  142. package/docs/interfaces/RoomInfo.html +7 -7
  143. package/docs/interfaces/RoomLabel.html +14 -14
  144. package/docs/interfaces/RoomRules.html +5 -5
  145. package/docs/interfaces/Rooms.html +5 -5
  146. package/docs/interfaces/Scissor.html +9 -9
  147. package/docs/interfaces/State.html +8 -8
  148. package/docs/interfaces/TagCache.html +10 -10
  149. package/docs/interfaces/TagConfig.html +10 -10
  150. package/docs/interfaces/TagIconUrl.html +9 -9
  151. package/docs/interfaces/Tags.html +9 -9
  152. package/docs/interfaces/TemporaryState.html +6 -6
  153. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  154. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  155. package/docs/modules/Util.html +5 -5
  156. package/docs/modules.html +4 -4
  157. package/docs/types/ArrayPosition.html +5 -5
  158. package/docs/types/AudioAppearance.html +5 -5
  159. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  160. package/docs/types/CSS3DRenderExportType.html +5 -5
  161. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  162. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  163. package/docs/types/Color.html +5 -5
  164. package/docs/types/ContentTypeConfigKey.html +5 -5
  165. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  166. package/docs/types/ContentTypeMap.html +5 -5
  167. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  168. package/docs/types/Create3DElementReturnType.html +5 -5
  169. package/docs/types/CruisePluginExportType.html +5 -5
  170. package/docs/types/Direction-1.html +5 -5
  171. package/docs/types/Direction4.html +5 -5
  172. package/docs/types/FloorplanRuleLabels.html +5 -5
  173. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  174. package/docs/types/GuideLinePluginExportType.html +5 -5
  175. package/docs/types/HelperEventMap.html +5 -5
  176. package/docs/types/LoadTagConfig.html +5 -5
  177. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  178. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  179. package/docs/types/MediaData.html +5 -5
  180. package/docs/types/MediaStore.html +5 -5
  181. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  182. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  183. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  184. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  185. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  186. package/docs/types/MoveArgs.html +5 -5
  187. package/docs/types/MoveOpts.html +5 -5
  188. package/docs/types/Object3DHelperEventMap.html +5 -5
  189. package/docs/types/ObjectFit.html +5 -5
  190. package/docs/types/PaintBrushEventMap.html +5 -5
  191. package/docs/types/PanoCompassPluginData.html +5 -5
  192. package/docs/types/PanoCompassPluginExportType.html +5 -5
  193. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  194. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  195. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  196. package/docs/types/PanoIndex.html +5 -5
  197. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  198. package/docs/types/PanoMeasureReturnType.html +5 -5
  199. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  200. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  201. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  202. package/docs/types/PlaneTag.html +5 -5
  203. package/docs/types/PlaneTagElement.html +5 -5
  204. package/docs/types/Point2DElement.html +5 -5
  205. package/docs/types/Point2DTag.html +5 -5
  206. package/docs/types/Point3DElement.html +5 -5
  207. package/docs/types/Point3DTag.html +5 -5
  208. package/docs/types/PointTag.html +5 -5
  209. package/docs/types/PointTagElement.html +5 -5
  210. package/docs/types/Position.html +5 -5
  211. package/docs/types/RotateArgs.html +5 -5
  212. package/docs/types/RotateOpts.html +5 -5
  213. package/docs/types/RuleLabelsKey.html +5 -5
  214. package/docs/types/RuleLabelsValue.html +5 -5
  215. package/docs/types/StickType.html +5 -5
  216. package/docs/types/Tag.html +5 -5
  217. package/docs/types/Tag2D.html +5 -5
  218. package/docs/types/Tag3D.html +5 -5
  219. package/docs/types/TagContentType.html +5 -5
  220. package/docs/types/TagDimensionType.html +5 -5
  221. package/docs/types/TagElement.html +6 -6
  222. package/docs/types/TagEvents.html +5 -5
  223. package/docs/types/TagHooks.html +5 -5
  224. package/docs/types/TagIconSize.html +5 -5
  225. package/docs/types/TagId.html +5 -5
  226. package/docs/types/TagPointType.html +5 -5
  227. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  228. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  229. package/docs/types/WorkCode.html +5 -5
  230. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  231. package/docs/variables/PLUGIN.html +5 -5
  232. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  233. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  234. package/docs/variables/VERSION.html +5 -5
  235. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  236. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  237. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  238. package/libs/PanoTagPlugin/Components/Common/Audio.js +88 -129
  239. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +93 -70
  240. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +25 -25
  241. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +128 -148
  242. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +112 -105
  243. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +52 -48
  244. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +59 -43
  245. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +45 -45
  246. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  247. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  248. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  249. package/libs/PanoTagPlugin/controller/index.js +40 -39
  250. package/libs/PanoTagPlugin/index.js +12 -11
  251. package/libs/PanoTagPlugin/typings/controller.d.ts +2 -0
  252. package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
  253. package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +107 -0
  254. package/libs/index.js +93 -92
  255. package/libs/shared-utils/audio.d.ts +16 -4
  256. package/libs/shared-utils/audio.js +42 -38
  257. package/package.json +1 -1
@@ -1,215 +1,195 @@
1
- import { SvelteComponent as S, init as A, safe_not_equal as P, append_styles as U, empty as R, insert as f, transition_in as m, transition_out as c, check_outros as W, detach as u, element as d, create_component as _, attr as s, set_style as g, append as j, mount_component as b, destroy_component as h, group_outros as q, text as T, set_data as y } from "../../../../vendor/svelte/internal/index.js";
2
- import E from "../../Common/Icon/audioIcon.js";
3
- import F from "../../Common/Text/MText.js";
4
- import G from "../../Common/Audio.js";
5
- import v from "../../../utils/timeToString.js";
1
+ import { SvelteComponent as G, init as M, safe_not_equal as N, append_styles as W, empty as Y, insert as v, transition_in as h, transition_out as b, check_outros as B, detach as y, createEventDispatcher as H, element as g, create_component as w, attr as _, set_style as q, append as c, mount_component as T, destroy_component as C, space as R, group_outros as J, bubble as K, text as U, set_data as E } from "../../../../vendor/svelte/internal/index.js";
2
+ import L from "../../Common/Icon/audioIcon.js";
3
+ import O from "../../Common/Text/MText.js";
4
+ import Q from "../../Common/Audio.js";
5
+ import S from "../../../utils/timeToString.js";
6
6
  import "three";
7
- import { noTypecheck as k } from "../../../utils/noTypecheck.js";
8
- import { name2Rgba as M } from "../../../utils/color.js";
7
+ import { noTypecheck as z } from "../../../utils/noTypecheck.js";
8
+ import { name2Rgba as V } from "../../../utils/color.js";
9
9
  import "../../../utils/px2rem.js";
10
10
  import "../../Common/Shadow.js";
11
11
  import "../../../../vendor/svelte/transition/index.js";
12
12
  import "../../../../vendor/svelte/easing/index.js";
13
13
  import "../../../../shared-utils/audio.js";
14
- function N(n) {
15
- U(n, "svelte-1fezrt1", ".audio-tag__wrapper.svelte-1fezrt1{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.audio-tag.svelte-1fezrt1{position:relative;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;padding:0.1875rem;padding-right:0.625rem;border-radius:624999.9375rem;border:0.03125rem solid rgba(255, 255, 255, 0.2)}.currentTime.svelte-1fezrt1{font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;margin-left:0.25rem}.text.svelte-1fezrt1{font-weight:bold;font-size:0.75rem;margin-left:0.125rem}.audio-icon__wrapper.svelte-1fezrt1{position:relative;vertical-align:top;pointer-events:none;width:1.375rem;height:1.375rem}");
14
+ import "../../../utils/audio/SharedAudio.js";
15
+ function X(n) {
16
+ W(n, "svelte-qnju8y", ".audio-tag__wrapper.svelte-qnju8y{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.audio-tag.svelte-qnju8y{position:relative;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;padding:0.1875rem;padding-right:0.625rem;border-radius:624999.9375rem;border:0.03125rem solid rgba(255, 255, 255, 0.2)}.currentTime.svelte-qnju8y{font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;margin-left:0.25rem}.audio__inner.svelte-qnju8y{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.text.svelte-qnju8y{font-weight:bold;font-size:0.75rem;margin-left:0.125rem}.audio-icon__wrapper.svelte-qnju8y{position:relative;vertical-align:top;pointer-events:none;width:1.375rem;height:1.375rem}");
16
17
  }
17
- function z(n) {
18
- let o, t, e, r;
19
- return e = new G({
18
+ function A(n) {
19
+ let o, t, e, i;
20
+ return e = new Q({
20
21
  props: {
21
- paused: !n[0].state.visible,
22
+ style: "width: max-content; height: max-content;",
23
+ enable: n[0].state.visible,
22
24
  url: n[0].data.audioUrl,
23
25
  hooksInfo: { tag: n[0] },
24
- style: "width: max-content; height: max-content;",
25
- slotWrapperStyle: "display: flex; align-items: center; justify-content: center;",
26
- $$slots: {
27
- currentTime: [
28
- H,
29
- ({ duration: i, currentTime: a, playing: l }) => ({ 4: i, 5: a, 6: l }),
30
- ({ duration: i, currentTime: a, playing: l }) => (i ? 16 : 0) | (a ? 32 : 0) | (l ? 64 : 0)
31
- ],
32
- audioIcon: [
33
- D,
34
- ({ playing: i }) => ({ 6: i }),
35
- ({ playing: i }) => i ? 64 : 0
36
- ],
37
- default: [B]
38
- },
26
+ $$slots: { default: [x] },
39
27
  $$scope: { ctx: n }
40
28
  }
41
- }), {
29
+ }), e.$on("play", n[7]), e.$on("pause", n[8]), e.$on("timeupdate", n[9]), e.$on("duration", n[10]), e.$on("audioRef", n[11]), {
42
30
  c() {
43
- o = d("div"), t = d("div"), _(e.$$.fragment), s(t, "class", "audio-tag svelte-1fezrt1"), g(t, "background-color", n[1]), g(t, "color", n[2]), s(o, "class", "audio-tag__wrapper svelte-1fezrt1");
31
+ o = g("div"), t = g("div"), w(e.$$.fragment), _(t, "class", "audio-tag svelte-qnju8y"), q(t, "background-color", n[1]), q(t, "color", n[5]), _(o, "class", "audio-tag__wrapper svelte-qnju8y");
44
32
  },
45
- m(i, a) {
46
- f(i, o, a), j(o, t), b(e, t, null), r = !0;
33
+ m(r, a) {
34
+ v(r, o, a), c(o, t), T(e, t, null), i = !0;
47
35
  },
48
- p(i, a) {
49
- const l = {};
50
- a & 1 && (l.paused = !i[0].state.visible), a & 1 && (l.url = i[0].data.audioUrl), a & 1 && (l.hooksInfo = { tag: i[0] }), a & 248 && (l.$$scope = { dirty: a, ctx: i }), e.$set(l), a & 2 && g(t, "background-color", i[1]), a & 4 && g(t, "color", i[2]);
36
+ p(r, a) {
37
+ const u = {};
38
+ a & 1 && (u.enable = r[0].state.visible), a & 1 && (u.url = r[0].data.audioUrl), a & 1 && (u.hooksInfo = { tag: r[0] }), a & 8284 && (u.$$scope = { dirty: a, ctx: r }), e.$set(u), a & 2 && q(t, "background-color", r[1]), a & 32 && q(t, "color", r[5]);
51
39
  },
52
- i(i) {
53
- r || (m(e.$$.fragment, i), r = !0);
40
+ i(r) {
41
+ i || (h(e.$$.fragment, r), i = !0);
54
42
  },
55
- o(i) {
56
- c(e.$$.fragment, i), r = !1;
43
+ o(r) {
44
+ b(e.$$.fragment, r), i = !1;
45
+ },
46
+ d(r) {
47
+ r && y(o), C(e);
48
+ }
49
+ };
50
+ }
51
+ function P(n) {
52
+ var e;
53
+ let o = S(z(n[2] ? n[3] : (e = n[4]) != null ? e : 0)) + "", t;
54
+ return {
55
+ c() {
56
+ t = U(o);
57
+ },
58
+ m(i, r) {
59
+ v(i, t, r);
60
+ },
61
+ p(i, r) {
62
+ var a;
63
+ r & 28 && o !== (o = S(z(i[2] ? i[3] : (a = i[4]) != null ? a : 0)) + "") && E(t, o);
57
64
  },
58
65
  d(i) {
59
- i && u(o), h(e);
66
+ i && y(t);
60
67
  }
61
68
  };
62
69
  }
63
- function Y(n) {
70
+ function Z(n) {
64
71
  let o;
65
72
  return {
66
73
  c() {
67
- o = T(n[3]);
74
+ o = U(n[6]);
68
75
  },
69
76
  m(t, e) {
70
- f(t, o, e);
77
+ v(t, o, e);
71
78
  },
72
79
  p(t, e) {
73
- e & 8 && y(o, t[3]);
80
+ e & 64 && E(o, t[6]);
74
81
  },
75
82
  d(t) {
76
- t && u(o);
83
+ t && y(o);
77
84
  }
78
85
  };
79
86
  }
80
- function B(n) {
81
- let o, t, e;
82
- return t = new F({
87
+ function x(n) {
88
+ let o, t, e, i, r, a, u, d, p;
89
+ e = new L({ props: { playing: n[2] } });
90
+ let s = typeof (n[2] ? n[3] : n[4]) == "number" && P(n);
91
+ return d = new O({
83
92
  props: {
84
93
  maxWidth: 72,
85
- $$slots: { default: [Y] },
94
+ $$slots: { default: [Z] },
86
95
  $$scope: { ctx: n }
87
96
  }
88
97
  }), {
89
98
  c() {
90
- o = d("div"), _(t.$$.fragment), s(o, "class", "text svelte-1fezrt1");
99
+ o = g("div"), t = g("div"), w(e.$$.fragment), i = R(), r = g("div"), s && s.c(), a = R(), u = g("div"), w(d.$$.fragment), _(t, "class", "audio-icon__wrapper svelte-qnju8y"), _(r, "class", "currentTime svelte-qnju8y"), _(u, "class", "text svelte-qnju8y"), _(o, "class", "audio__inner svelte-qnju8y");
91
100
  },
92
- m(r, i) {
93
- f(r, o, i), b(t, o, null), e = !0;
101
+ m(l, m) {
102
+ v(l, o, m), c(o, t), T(e, t, null), c(o, i), c(o, r), s && s.m(r, null), c(o, a), c(o, u), T(d, u, null), p = !0;
94
103
  },
95
- p(r, i) {
96
- const a = {};
97
- i & 136 && (a.$$scope = { dirty: i, ctx: r }), t.$set(a);
104
+ p(l, m) {
105
+ const $ = {};
106
+ m & 4 && ($.playing = l[2]), e.$set($), typeof (l[2] ? l[3] : l[4]) == "number" ? s ? s.p(l, m) : (s = P(l), s.c(), s.m(r, null)) : s && (s.d(1), s = null);
107
+ const k = {};
108
+ m & 8256 && (k.$$scope = { dirty: m, ctx: l }), d.$set(k);
98
109
  },
99
- i(r) {
100
- e || (m(t.$$.fragment, r), e = !0);
110
+ i(l) {
111
+ p || (h(e.$$.fragment, l), h(d.$$.fragment, l), p = !0);
101
112
  },
102
- o(r) {
103
- c(t.$$.fragment, r), e = !1;
113
+ o(l) {
114
+ b(e.$$.fragment, l), b(d.$$.fragment, l), p = !1;
104
115
  },
105
- d(r) {
106
- r && u(o), h(t);
116
+ d(l) {
117
+ l && y(o), C(e), s && s.d(), C(d);
107
118
  }
108
119
  };
109
120
  }
110
- function D(n) {
111
- let o, t, e;
112
- return t = new E({ props: { playing: n[6] } }), {
113
- c() {
114
- o = d("div"), _(t.$$.fragment), s(o, "slot", "audioIcon"), s(o, "class", "audio-icon__wrapper svelte-1fezrt1");
115
- },
116
- m(r, i) {
117
- f(r, o, i), b(t, o, null), e = !0;
118
- },
119
- p(r, i) {
120
- const a = {};
121
- i & 64 && (a.playing = r[6]), t.$set(a);
122
- },
123
- i(r) {
124
- e || (m(t.$$.fragment, r), e = !0);
125
- },
126
- o(r) {
127
- c(t.$$.fragment, r), e = !1;
128
- },
129
- d(r) {
130
- r && u(o), h(t);
131
- }
132
- };
133
- }
134
- function w(n) {
135
- let o = v(k(n[6] ? n[5] : n[4])) + "", t;
136
- return {
137
- c() {
138
- t = T(o);
139
- },
140
- m(e, r) {
141
- f(e, t, r);
142
- },
143
- p(e, r) {
144
- r & 112 && o !== (o = v(k(e[6] ? e[5] : e[4])) + "") && y(t, o);
145
- },
146
- d(e) {
147
- e && u(t);
148
- }
149
- };
150
- }
151
- function H(n) {
152
- let o, t = typeof (n[6] ? n[5] : n[4]) == "number" && w(n);
121
+ function ee(n) {
122
+ let o, t, e = n[0].state && A(n);
153
123
  return {
154
124
  c() {
155
- o = d("div"), t && t.c(), s(o, "slot", "currentTime"), s(o, "class", "currentTime svelte-1fezrt1");
125
+ e && e.c(), o = Y();
156
126
  },
157
- m(e, r) {
158
- f(e, o, r), t && t.m(o, null);
127
+ m(i, r) {
128
+ e && e.m(i, r), v(i, o, r), t = !0;
159
129
  },
160
- p(e, r) {
161
- typeof (e[6] ? e[5] : e[4]) == "number" ? t ? t.p(e, r) : (t = w(e), t.c(), t.m(o, null)) : t && (t.d(1), t = null);
162
- },
163
- d(e) {
164
- e && u(o), t && t.d();
165
- }
166
- };
167
- }
168
- function J(n) {
169
- let o, t, e = n[0].state && z(n);
170
- return {
171
- c() {
172
- e && e.c(), o = R();
173
- },
174
- m(r, i) {
175
- e && e.m(r, i), f(r, o, i), t = !0;
176
- },
177
- p(r, [i]) {
178
- r[0].state ? e ? (e.p(r, i), i & 1 && m(e, 1)) : (e = z(r), e.c(), m(e, 1), e.m(o.parentNode, o)) : e && (q(), c(e, 1, 1, () => {
130
+ p(i, [r]) {
131
+ i[0].state ? e ? (e.p(i, r), r & 1 && h(e, 1)) : (e = A(i), e.c(), h(e, 1), e.m(o.parentNode, o)) : e && (J(), b(e, 1, 1, () => {
179
132
  e = null;
180
- }), W());
133
+ }), B());
181
134
  },
182
- i(r) {
183
- t || (m(e), t = !0);
135
+ i(i) {
136
+ t || (h(e), t = !0);
184
137
  },
185
- o(r) {
186
- c(e), t = !1;
138
+ o(i) {
139
+ b(e), t = !1;
187
140
  },
188
- d(r) {
189
- e && e.d(r), r && u(o);
141
+ d(i) {
142
+ e && e.d(i), i && y(o);
190
143
  }
191
144
  };
192
145
  }
193
- function K(n, o, t) {
194
- let e, r, i, { tag: a } = o;
195
- return n.$$set = (l) => {
196
- "tag" in l && t(0, a = l.tag);
146
+ function te(n, o, t) {
147
+ let e, i, r, { tag: a } = o;
148
+ H();
149
+ let u = !1, d = 0, p = 0;
150
+ const s = () => {
151
+ t(2, u = !0);
152
+ }, l = () => {
153
+ t(2, u = !1);
154
+ }, m = (f) => {
155
+ t(3, d = f.detail);
156
+ }, $ = (f) => {
157
+ t(4, p = f.detail);
158
+ };
159
+ function k(f) {
160
+ K.call(this, n, f);
161
+ }
162
+ return n.$$set = (f) => {
163
+ "tag" in f && t(0, a = f.tag);
197
164
  }, n.$$.update = () => {
198
- var l, $;
199
- n.$$.dirty & 1 && t(3, e = ($ = (l = a.data.title) != null ? l : a.data.text) != null ? $ : ""), n.$$.dirty & 1 && t(1, r = (() => {
200
- var p;
201
- return a.data.backgroundColor === "dark" ? "rgba(0, 0, 0, 0.3)" : a.data.backgroundColor === "light" ? "rgba(255, 255, 255, 0.3)" : (p = a.data.backgroundColor) != null ? p : "rgba(0, 0, 0, 0.3)";
202
- })()), n.$$.dirty & 2 && t(2, i = (() => {
203
- const { r: p, g: C, b: I } = M(r);
204
- return (p * 299 + C * 587 + I * 114) / 1e3 >= 128 ? "rgba(0, 0, 0, 0.6)" : "white";
165
+ var f, I;
166
+ n.$$.dirty & 1 && t(6, e = (I = (f = a.data.title) != null ? f : a.data.text) != null ? I : ""), n.$$.dirty & 1 && t(1, i = (() => {
167
+ var j;
168
+ return a.data.backgroundColor === "dark" ? "rgba(0, 0, 0, 0.3)" : a.data.backgroundColor === "light" ? "rgba(255, 255, 255, 0.3)" : (j = a.data.backgroundColor) != null ? j : "rgba(0, 0, 0, 0.3)";
169
+ })()), n.$$.dirty & 2 && t(5, r = (() => {
170
+ const { r: j, g: D, b: F } = V(i);
171
+ return (j * 299 + D * 587 + F * 114) / 1e3 >= 128 ? "rgba(0, 0, 0, 0.6)" : "white";
205
172
  })());
206
- }, [a, r, i, e];
173
+ }, [
174
+ a,
175
+ i,
176
+ u,
177
+ d,
178
+ p,
179
+ r,
180
+ e,
181
+ s,
182
+ l,
183
+ m,
184
+ $,
185
+ k
186
+ ];
207
187
  }
208
- class le extends S {
188
+ class he extends G {
209
189
  constructor(o) {
210
- super(), A(this, o, K, J, P, { tag: 0 }, N);
190
+ super(), M(this, o, te, ee, N, { tag: 0 }, X);
211
191
  }
212
192
  }
213
193
  export {
214
- le as default
194
+ he as default
215
195
  };