@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.
- package/dist/PanoTagPlugin/typings/controller.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
- package/dist/index.cjs.js +31 -31
- package/dist/index.js +3156 -3101
- package/dist/index.umd.js +31 -31
- package/dist/shared-utils/audio.d.ts +16 -4
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +41 -41
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +16 -16
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +10 -10
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +6 -6
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/Components/Common/Audio.js +88 -129
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +93 -70
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +25 -25
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +128 -148
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +112 -105
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +52 -48
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +59 -43
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +45 -45
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +40 -39
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +107 -0
- package/libs/index.js +93 -92
- package/libs/shared-utils/audio.d.ts +16 -4
- package/libs/shared-utils/audio.js +42 -38
- package/package.json +1 -1
|
@@ -1,215 +1,195 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
|
|
8
|
-
import { name2Rgba as
|
|
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
|
-
|
|
15
|
-
|
|
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
|
|
18
|
-
let o, t, e,
|
|
19
|
-
return e = new
|
|
18
|
+
function A(n) {
|
|
19
|
+
let o, t, e, i;
|
|
20
|
+
return e = new Q({
|
|
20
21
|
props: {
|
|
21
|
-
|
|
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
|
-
|
|
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 =
|
|
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(
|
|
46
|
-
|
|
33
|
+
m(r, a) {
|
|
34
|
+
v(r, o, a), c(o, t), T(e, t, null), i = !0;
|
|
47
35
|
},
|
|
48
|
-
p(
|
|
49
|
-
const
|
|
50
|
-
a & 1 && (
|
|
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(
|
|
53
|
-
|
|
40
|
+
i(r) {
|
|
41
|
+
i || (h(e.$$.fragment, r), i = !0);
|
|
54
42
|
},
|
|
55
|
-
o(
|
|
56
|
-
|
|
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 &&
|
|
66
|
+
i && y(t);
|
|
60
67
|
}
|
|
61
68
|
};
|
|
62
69
|
}
|
|
63
|
-
function
|
|
70
|
+
function Z(n) {
|
|
64
71
|
let o;
|
|
65
72
|
return {
|
|
66
73
|
c() {
|
|
67
|
-
o =
|
|
74
|
+
o = U(n[6]);
|
|
68
75
|
},
|
|
69
76
|
m(t, e) {
|
|
70
|
-
|
|
77
|
+
v(t, o, e);
|
|
71
78
|
},
|
|
72
79
|
p(t, e) {
|
|
73
|
-
e &
|
|
80
|
+
e & 64 && E(o, t[6]);
|
|
74
81
|
},
|
|
75
82
|
d(t) {
|
|
76
|
-
t &&
|
|
83
|
+
t && y(o);
|
|
77
84
|
}
|
|
78
85
|
};
|
|
79
86
|
}
|
|
80
|
-
function
|
|
81
|
-
let o, t, e;
|
|
82
|
-
|
|
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: [
|
|
94
|
+
$$slots: { default: [Z] },
|
|
86
95
|
$$scope: { ctx: n }
|
|
87
96
|
}
|
|
88
97
|
}), {
|
|
89
98
|
c() {
|
|
90
|
-
o =
|
|
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(
|
|
93
|
-
|
|
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(
|
|
96
|
-
const
|
|
97
|
-
|
|
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(
|
|
100
|
-
|
|
110
|
+
i(l) {
|
|
111
|
+
p || (h(e.$$.fragment, l), h(d.$$.fragment, l), p = !0);
|
|
101
112
|
},
|
|
102
|
-
o(
|
|
103
|
-
|
|
113
|
+
o(l) {
|
|
114
|
+
b(e.$$.fragment, l), b(d.$$.fragment, l), p = !1;
|
|
104
115
|
},
|
|
105
|
-
d(
|
|
106
|
-
|
|
116
|
+
d(l) {
|
|
117
|
+
l && y(o), C(e), s && s.d(), C(d);
|
|
107
118
|
}
|
|
108
119
|
};
|
|
109
120
|
}
|
|
110
|
-
function
|
|
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
|
-
|
|
125
|
+
e && e.c(), o = Y();
|
|
156
126
|
},
|
|
157
|
-
m(
|
|
158
|
-
|
|
127
|
+
m(i, r) {
|
|
128
|
+
e && e.m(i, r), v(i, o, r), t = !0;
|
|
159
129
|
},
|
|
160
|
-
p(
|
|
161
|
-
|
|
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
|
-
}),
|
|
133
|
+
}), B());
|
|
181
134
|
},
|
|
182
|
-
i(
|
|
183
|
-
t || (
|
|
135
|
+
i(i) {
|
|
136
|
+
t || (h(e), t = !0);
|
|
184
137
|
},
|
|
185
|
-
o(
|
|
186
|
-
|
|
138
|
+
o(i) {
|
|
139
|
+
b(e), t = !1;
|
|
187
140
|
},
|
|
188
|
-
d(
|
|
189
|
-
e && e.d(
|
|
141
|
+
d(i) {
|
|
142
|
+
e && e.d(i), i && y(o);
|
|
190
143
|
}
|
|
191
144
|
};
|
|
192
145
|
}
|
|
193
|
-
function
|
|
194
|
-
let e,
|
|
195
|
-
|
|
196
|
-
|
|
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
|
|
199
|
-
n.$$.dirty & 1 && t(
|
|
200
|
-
var
|
|
201
|
-
return a.data.backgroundColor === "dark" ? "rgba(0, 0, 0, 0.3)" : a.data.backgroundColor === "light" ? "rgba(255, 255, 255, 0.3)" : (
|
|
202
|
-
})()), n.$$.dirty & 2 && t(
|
|
203
|
-
const { r:
|
|
204
|
-
return (
|
|
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
|
-
}, [
|
|
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
|
|
188
|
+
class he extends G {
|
|
209
189
|
constructor(o) {
|
|
210
|
-
super(),
|
|
190
|
+
super(), M(this, o, te, ee, N, { tag: 0 }, X);
|
|
211
191
|
}
|
|
212
192
|
}
|
|
213
193
|
export {
|
|
214
|
-
|
|
194
|
+
he as default
|
|
215
195
|
};
|