@realsee/dnalogel 2.1.0-alpha.28 → 2.1.0-alpha.29

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 (124) hide show
  1. package/dist/index.cjs.js +59 -59
  2. package/dist/index.es.js +7354 -7304
  3. package/dist/index.js +7354 -7304
  4. package/dist/index.umd.js +43 -43
  5. package/docs/classes/CruisePluginController.html +14 -14
  6. package/docs/classes/Magnifier.html +4 -4
  7. package/docs/classes/ModelRoomLabelController.html +4 -4
  8. package/docs/classes/Object3DHelperController.html +9 -9
  9. package/docs/classes/PaintBrush.html +3 -3
  10. package/docs/classes/PanoTagPluginController.html +23 -23
  11. package/docs/enums/CameraMovementEffect.html +2 -2
  12. package/docs/enums/ContentType.html +7 -7
  13. package/docs/enums/DIRECTION.html +1 -1
  14. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  15. package/docs/enums/DimensionType.html +1 -1
  16. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  17. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  18. package/docs/enums/LinkType.html +1 -1
  19. package/docs/enums/PaintBrushTypeEnum.html +1 -1
  20. package/docs/enums/PointType.html +1 -1
  21. package/docs/enums/Rotation.html +2 -2
  22. package/docs/index.html +1 -1
  23. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  24. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  25. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  26. package/docs/interfaces/ContentTypeMap.html +3 -3
  27. package/docs/interfaces/FloorplanBounding.html +4 -4
  28. package/docs/interfaces/FloorplanData.html +2 -2
  29. package/docs/interfaces/FloorplanEntrance.html +7 -7
  30. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  31. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  32. package/docs/interfaces/FloorplanFloorData.html +2 -2
  33. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  34. package/docs/interfaces/FloorplanObserver.html +2 -2
  35. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  36. package/docs/interfaces/FloorplanPosition.html +2 -2
  37. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  38. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  39. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  40. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  41. package/docs/interfaces/FloorplanServerData.html +2 -2
  42. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  43. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  44. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  45. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  46. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  47. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  48. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  49. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  50. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  51. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  52. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  53. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  54. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  55. package/docs/interfaces/LineJson.html +1 -1
  56. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  57. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  58. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  59. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  60. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  62. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  63. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  64. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  66. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  67. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  68. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  69. package/docs/interfaces/Object3DHelperState.html +1 -1
  70. package/docs/interfaces/OpenParameter.html +2 -2
  71. package/docs/interfaces/PaintBrushAction.html +7 -7
  72. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  73. package/docs/interfaces/PaintBrushState.html +1 -1
  74. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  75. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  76. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  77. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  78. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  79. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  80. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  81. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  82. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  83. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  85. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  86. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  87. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  89. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  90. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  91. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  92. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  93. package/docs/interfaces/Point.html +1 -1
  94. package/docs/interfaces/PointJson.html +1 -1
  95. package/docs/interfaces/Room.html +1 -1
  96. package/docs/interfaces/RoomInfo.html +1 -1
  97. package/docs/interfaces/RoomLabel.html +7 -7
  98. package/docs/interfaces/RoomRules.html +1 -1
  99. package/docs/interfaces/Rooms.html +1 -1
  100. package/docs/interfaces/Scissor.html +5 -5
  101. package/docs/interfaces/TagConfig.html +3 -3
  102. package/docs/interfaces/Tags.html +3 -3
  103. package/docs/modules.html +21 -21
  104. package/libs/PanoTagPlugin/Components/Common/Audio.js +39 -41
  105. package/libs/PanoTagPlugin/Components/Common/Media.js +1060 -1031
  106. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +49 -57
  107. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +27 -27
  108. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +22 -22
  109. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +7 -7
  110. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +64 -66
  111. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +100 -99
  112. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +35 -33
  113. package/libs/PanoTagPlugin/Components/Tag/index.js +60 -63
  114. package/libs/PanoTagPlugin/Components/TagContainer.js +187 -0
  115. package/libs/PanoTagPlugin/Components/TagWrapper.js +61 -62
  116. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
  117. package/libs/PanoTagPlugin/controller/index.d.ts +2 -1
  118. package/libs/PanoTagPlugin/controller/index.js +52 -42
  119. package/libs/PanoTagPlugin/index.js +2 -2
  120. package/libs/PanoTagPlugin/tag.config.js +1 -0
  121. package/libs/{TagComputer.0920083a.js → TagComputer.92e6d9a9.js} +0 -0
  122. package/libs/index.js +2 -2
  123. package/package.json +1 -1
  124. package/libs/PanoTagPlugin/Components/PointTag.js +0 -162
@@ -1,11 +1,11 @@
1
- import { S as O, i as P, s as Q, a as V, r as X, c as H, f as _, t as b, d as Y, g as J, e as w, j as $, o as q, b as z, q as y, z as Z, I as F, m as D, p, A as x, K as ee, k as M, h as te } from "../../../index.164f1850.js";
1
+ import { S as O, i as P, s as Q, a as V, r as X, c as H, f as v, t as _, d as Y, g as J, e as c, j as I, o as A, b as $, q as T, z as Z, I as F, m as D, p, A as x, K as ee, k as M, h as te } from "../../../index.164f1850.js";
2
2
  import ie from "../../../shared-utils/uuid.js";
3
3
  import "../Common/Text.js";
4
4
  import "three";
5
5
  import "../../utils/constants.js";
6
- import oe from "../Common/Shadow.js";
7
- import ne from "../Common/Audio.js";
8
- import se from "../Common/Line/Straight.js";
6
+ import ne from "../Common/Shadow.js";
7
+ import se from "../Common/Audio.js";
8
+ import oe from "../Common/Line/Straight.js";
9
9
  import le from "../Common/MultiLineText.js";
10
10
  import "../../../shared-utils/isNil.js";
11
11
  import "../../utils/search.js";
@@ -19,124 +19,122 @@ function re(e) {
19
19
  }
20
20
  function G(e) {
21
21
  var R, W, j, K;
22
- let o, n, i, s, l, h, f, a, m, d, k, g, u, v, S, U, C;
23
- return n = new oe({
22
+ let s, o, i, n, l, h, a, d, u, f, k, g, m, q, w, U, C;
23
+ return o = new ne({
24
24
  props: {
25
- visible: e[6],
26
- left: e[3] / 2 + "px",
25
+ visible: e[5],
26
+ left: e[2] / 2 + "px",
27
27
  bottom: 12,
28
28
  width: 2,
29
29
  blurRadius: 120,
30
30
  spreadRadius: 60
31
31
  }
32
- }), l = new se({
32
+ }), l = new oe({
33
33
  props: {
34
- unfolded: e[6],
34
+ unfolded: e[5],
35
35
  duration: 1e3,
36
- outDelay: e[5] + 20 * Math.min((W = (R = e[4][0]) == null ? void 0 : R.content.length) != null ? W : 10, 15)
36
+ outDelay: e[4] + 20 * Math.min((W = (R = e[3][0]) == null ? void 0 : R.content.length) != null ? W : 10, 15)
37
37
  }
38
- }), d = new ne({
38
+ }), f = new se({
39
39
  props: {
40
- unfolded: e[6],
41
- mediaStore: e[0],
42
- url: e[1].data.audioUrl,
40
+ unfolded: e[5],
41
+ url: e[0].data.audioUrl,
43
42
  duration: 1e3,
44
- outDelay: 20 * Math.min((K = (j = e[4][0]) == null ? void 0 : j.content.length) != null ? K : 10, 15),
45
- hooksInfo: { tag: e[1] }
43
+ outDelay: 20 * Math.min((K = (j = e[3][0]) == null ? void 0 : j.content.length) != null ? K : 10, 15),
44
+ hooksInfo: { tag: e[0] }
46
45
  }
47
- }), u = new le({
46
+ }), m = new le({
48
47
  props: {
49
- visible: e[6],
50
- textUnfolded: e[2],
51
- textItems: e[4]
48
+ visible: e[5],
49
+ textUnfolded: e[1],
50
+ textItems: e[3]
52
51
  }
53
52
  }), {
54
53
  c() {
55
- o = w("div"), $(n.$$.fragment), i = q(), s = w("div"), $(l.$$.fragment), h = q(), f = w("div"), a = w("div"), m = w("div"), $(d.$$.fragment), k = q(), g = w("div"), $(u.$$.fragment), z(s, "class", "line svelte-4r8s18"), y(s, "width", e[3] + "px"), z(m, "class", "audio-icon svelte-4r8s18"), y(g, "display", "inline-block"), z(a, "class", "wrapper svelte-4r8s18"), z(f, "class", "content svelte-4r8s18"), Z(() => e[10].call(f)), z(o, "class", "audio-tag svelte-4r8s18"), F(o, "unfolded", e[6]);
54
+ s = c("div"), I(o.$$.fragment), i = A(), n = c("div"), I(l.$$.fragment), h = A(), a = c("div"), d = c("div"), u = c("div"), I(f.$$.fragment), k = A(), g = c("div"), I(m.$$.fragment), $(n, "class", "line svelte-4r8s18"), T(n, "width", e[2] + "px"), $(u, "class", "audio-icon svelte-4r8s18"), T(g, "display", "inline-block"), $(d, "class", "wrapper svelte-4r8s18"), $(a, "class", "content svelte-4r8s18"), Z(() => e[9].call(a)), $(s, "class", "audio-tag svelte-4r8s18"), F(s, "unfolded", e[5]);
56
55
  },
57
56
  m(t, r) {
58
- H(t, o, r), D(n, o, null), p(o, i), p(o, s), D(l, s, null), p(o, h), p(o, f), p(f, a), p(a, m), D(d, m, null), p(a, k), p(a, g), D(u, g, null), v = x(f, e[10].bind(f)), S = !0, U || (C = ee(g, "click", e[7]), U = !0);
57
+ H(t, s, r), D(o, s, null), p(s, i), p(s, n), D(l, n, null), p(s, h), p(s, a), p(a, d), p(d, u), D(f, u, null), p(d, k), p(d, g), D(m, g, null), q = x(a, e[9].bind(a)), w = !0, U || (C = ee(g, "click", e[6]), U = !0);
59
58
  },
60
59
  p(t, r) {
61
60
  var L, N, B, E;
62
- const A = {};
63
- r & 64 && (A.visible = t[6]), r & 8 && (A.left = t[3] / 2 + "px"), n.$set(A);
64
- const T = {};
65
- r & 64 && (T.unfolded = t[6]), r & 48 && (T.outDelay = t[5] + 20 * Math.min((N = (L = t[4][0]) == null ? void 0 : L.content.length) != null ? N : 10, 15)), l.$set(T), r & 8 && y(s, "width", t[3] + "px");
66
- const c = {};
67
- r & 64 && (c.unfolded = t[6]), r & 1 && (c.mediaStore = t[0]), r & 2 && (c.url = t[1].data.audioUrl), r & 16 && (c.outDelay = 20 * Math.min((E = (B = t[4][0]) == null ? void 0 : B.content.length) != null ? E : 10, 15)), r & 2 && (c.hooksInfo = { tag: t[1] }), d.$set(c);
68
- const I = {};
69
- r & 64 && (I.visible = t[6]), r & 4 && (I.textUnfolded = t[2]), r & 16 && (I.textItems = t[4]), u.$set(I), (!S || r & 64) && F(o, "unfolded", t[6]);
61
+ const S = {};
62
+ r & 32 && (S.visible = t[5]), r & 4 && (S.left = t[2] / 2 + "px"), o.$set(S);
63
+ const y = {};
64
+ r & 32 && (y.unfolded = t[5]), r & 24 && (y.outDelay = t[4] + 20 * Math.min((N = (L = t[3][0]) == null ? void 0 : L.content.length) != null ? N : 10, 15)), l.$set(y), r & 4 && T(n, "width", t[2] + "px");
65
+ const b = {};
66
+ r & 32 && (b.unfolded = t[5]), r & 1 && (b.url = t[0].data.audioUrl), r & 8 && (b.outDelay = 20 * Math.min((E = (B = t[3][0]) == null ? void 0 : B.content.length) != null ? E : 10, 15)), r & 1 && (b.hooksInfo = { tag: t[0] }), f.$set(b);
67
+ const z = {};
68
+ r & 32 && (z.visible = t[5]), r & 2 && (z.textUnfolded = t[1]), r & 8 && (z.textItems = t[3]), m.$set(z), (!w || r & 32) && F(s, "unfolded", t[5]);
70
69
  },
71
70
  i(t) {
72
- S || (_(n.$$.fragment, t), _(l.$$.fragment, t), _(d.$$.fragment, t), _(u.$$.fragment, t), S = !0);
71
+ w || (v(o.$$.fragment, t), v(l.$$.fragment, t), v(f.$$.fragment, t), v(m.$$.fragment, t), w = !0);
73
72
  },
74
73
  o(t) {
75
- b(n.$$.fragment, t), b(l.$$.fragment, t), b(d.$$.fragment, t), b(u.$$.fragment, t), S = !1;
74
+ _(o.$$.fragment, t), _(l.$$.fragment, t), _(f.$$.fragment, t), _(m.$$.fragment, t), w = !1;
76
75
  },
77
76
  d(t) {
78
- t && J(o), M(n), M(l), M(d), M(u), v(), U = !1, C();
77
+ t && J(s), M(o), M(l), M(f), M(m), q(), U = !1, C();
79
78
  }
80
79
  };
81
80
  }
82
81
  function ae(e) {
83
- let o, n, i = e[1].state && G(e);
82
+ let s, o, i = e[0].state && G(e);
84
83
  return {
85
84
  c() {
86
- i && i.c(), o = X();
85
+ i && i.c(), s = X();
87
86
  },
88
- m(s, l) {
89
- i && i.m(s, l), H(s, o, l), n = !0;
87
+ m(n, l) {
88
+ i && i.m(n, l), H(n, s, l), o = !0;
90
89
  },
91
- p(s, [l]) {
92
- s[1].state ? i ? (i.p(s, l), l & 2 && _(i, 1)) : (i = G(s), i.c(), _(i, 1), i.m(o.parentNode, o)) : i && (te(), b(i, 1, 1, () => {
90
+ p(n, [l]) {
91
+ n[0].state ? i ? (i.p(n, l), l & 1 && v(i, 1)) : (i = G(n), i.c(), v(i, 1), i.m(s.parentNode, s)) : i && (te(), _(i, 1, 1, () => {
93
92
  i = null;
94
93
  }), Y());
95
94
  },
96
- i(s) {
97
- n || (_(i), n = !0);
95
+ i(n) {
96
+ o || (v(i), o = !0);
98
97
  },
99
- o(s) {
100
- b(i), n = !1;
98
+ o(n) {
99
+ _(i), o = !1;
101
100
  },
102
- d(s) {
103
- i && i.d(s), s && J(o);
101
+ d(n) {
102
+ i && i.d(n), n && J(s);
104
103
  }
105
104
  };
106
105
  }
107
- function de(e, o, n) {
108
- let i, s, l;
106
+ function de(e, s, o) {
107
+ let i, n, l;
109
108
  var h;
110
- let { mediaStore: f } = o, { tag: a } = o, m = !1, d, k = [];
111
- function g() {
112
- n(2, m = !m);
109
+ let { tag: a } = s, d = !1, u, f = [];
110
+ function k() {
111
+ o(1, d = !d);
113
112
  }
114
- function u() {
115
- d = this.clientWidth, n(3, d);
113
+ function g() {
114
+ u = this.clientWidth, o(2, u);
116
115
  }
117
- return e.$$set = (v) => {
118
- "mediaStore" in v && n(0, f = v.mediaStore), "tag" in v && n(1, a = v.tag);
116
+ return e.$$set = (m) => {
117
+ "tag" in m && o(0, a = m.tag);
119
118
  }, e.$$.update = () => {
120
- e.$$.dirty & 258 && n(6, i = !!(!(n(8, h = a.state) === null || h === void 0) && h.unfolded)), e.$$.dirty & 2 && n(9, s = a.data.text), e.$$.dirty & 512 && n(4, k = [{ id: ie(), content: s }]), e.$$.dirty & 4 && n(5, l = m ? 450 : 0);
119
+ e.$$.dirty & 129 && o(5, i = !!(!(o(7, h = a.state) === null || h === void 0) && h.unfolded)), e.$$.dirty & 1 && o(8, n = a.data.text), e.$$.dirty & 256 && o(3, f = [{ id: ie(), content: n }]), e.$$.dirty & 2 && o(4, l = d ? 450 : 0);
121
120
  }, [
122
- f,
123
121
  a,
124
- m,
125
122
  d,
126
- k,
123
+ u,
124
+ f,
127
125
  l,
128
126
  i,
129
- g,
127
+ k,
130
128
  h,
131
- s,
132
- u
129
+ n,
130
+ g
133
131
  ];
134
132
  }
135
- class De extends O {
136
- constructor(o) {
137
- super(), P(this, o, de, ae, Q, { mediaStore: 0, tag: 1 }, re);
133
+ class Me extends O {
134
+ constructor(s) {
135
+ super(), P(this, s, de, ae, Q, { tag: 0 }, re);
138
136
  }
139
137
  }
140
138
  export {
141
- De as default
139
+ Me as default
142
140
  };
@@ -1,4 +1,4 @@
1
- import { S as j, i as q, s as Y, a as A, r as R, c as h, f as d, t as c, d as D, g as w, j as y, o as $, e as N, b as z, m as k, h as C, B as E, C as F, k as v } from "../../../index.164f1850.js";
1
+ import { S as q, i as Y, s as z, a as A, r as R, c as h, f as d, t as c, d as j, g as b, j as v, o as y, e as C, b as N, m as w, h as D, B as E, C as F, k as $ } from "../../../index.164f1850.js";
2
2
  import G from "../../../shared-utils/uuid.js";
3
3
  import H from "../Common/Text.js";
4
4
  import J from "../Common/Line/Polyline.js";
@@ -13,121 +13,122 @@ import "../../../index.6a0eead1.js";
13
13
  import "../../utils/noTypecheck.js";
14
14
  import "../Common/MediaItem.js";
15
15
  import "../../Assets/Icon.js";
16
- function O(r) {
17
- A(r, "svelte-1p8f9wy", ".line.svelte-1p8f9wy{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%);z-index:10}.text.svelte-1p8f9wy{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;z-index:10;font-weight:600}.media-wrapper.svelte-1p8f9wy{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;z-index:10;font-weight:600}");
16
+ function O(f) {
17
+ A(f, "svelte-1f7m1lj", ".line.svelte-1f7m1lj{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%)}.text.svelte-1f7m1lj{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;font-weight:600}.media-wrapper.svelte-1f7m1lj{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;font-weight:600}");
18
18
  }
19
- function T(r, l, i) {
20
- const e = r.slice();
21
- return e[8] = l[i].id, e[1] = l[i].content, e;
19
+ function T(f, i, o) {
20
+ const e = f.slice();
21
+ return e[8] = i[o].id, e[1] = i[o].content, e;
22
22
  }
23
- function B(r) {
24
- let l, i, e, o, a, s = [], m = /* @__PURE__ */ new Map(), p, u, b;
25
- l = new L({
23
+ function B(f) {
24
+ let i, o, e, l, a, r = [], u = /* @__PURE__ */ new Map(), p, m, k;
25
+ i = new L({
26
26
  props: {
27
- visible: r[4],
27
+ visible: f[4],
28
28
  left: 61,
29
29
  bottom: 57,
30
30
  width: 2,
31
31
  blurRadius: 150,
32
32
  spreadRadius: 75
33
33
  }
34
- }), o = new J({
34
+ }), l = new J({
35
35
  props: {
36
- unfolded: r[4],
36
+ unfolded: f[4],
37
37
  duration: 1e3,
38
38
  outDelay: 400
39
39
  }
40
40
  });
41
- let g = r[2];
41
+ let g = f[2];
42
42
  const I = (t) => t[8];
43
43
  for (let t = 0; t < g.length; t += 1) {
44
- let n = T(r, g, t), _ = I(n);
45
- m.set(_, s[t] = M(_, n));
44
+ let n = T(f, g, t), _ = I(n);
45
+ u.set(_, r[t] = M(_, n));
46
46
  }
47
- let f = r[3] && P(r);
47
+ let s = f[3] && P(f);
48
48
  return {
49
49
  c() {
50
- y(l.$$.fragment), i = $(), e = N("div"), y(o.$$.fragment), a = $();
51
- for (let t = 0; t < s.length; t += 1)
52
- s[t].c();
53
- p = $(), f && f.c(), u = R(), z(e, "class", "line svelte-1p8f9wy");
50
+ v(i.$$.fragment), o = y(), e = C("div"), v(l.$$.fragment), a = y();
51
+ for (let t = 0; t < r.length; t += 1)
52
+ r[t].c();
53
+ p = y(), s && s.c(), m = R(), N(e, "class", "line svelte-1f7m1lj");
54
54
  },
55
55
  m(t, n) {
56
- k(l, t, n), h(t, i, n), h(t, e, n), k(o, e, null), h(t, a, n);
57
- for (let _ = 0; _ < s.length; _ += 1)
58
- s[_].m(t, n);
59
- h(t, p, n), f && f.m(t, n), h(t, u, n), b = !0;
56
+ w(i, t, n), h(t, o, n), h(t, e, n), w(l, e, null), h(t, a, n);
57
+ for (let _ = 0; _ < r.length; _ += 1)
58
+ r[_].m(t, n);
59
+ h(t, p, n), s && s.m(t, n), h(t, m, n), k = !0;
60
60
  },
61
61
  p(t, n) {
62
62
  const _ = {};
63
- n & 16 && (_.visible = t[4]), l.$set(_);
63
+ n & 16 && (_.visible = t[4]), i.$set(_);
64
64
  const S = {};
65
- n & 16 && (S.unfolded = t[4]), o.$set(S), n & 20 && (g = t[2], C(), s = E(s, n, I, 1, t, g, m, p.parentNode, F, M, p, T), D()), t[3] ? f ? (f.p(t, n), n & 8 && d(f, 1)) : (f = P(t), f.c(), d(f, 1), f.m(u.parentNode, u)) : f && (C(), c(f, 1, 1, () => {
66
- f = null;
67
- }), D());
65
+ n & 16 && (S.unfolded = t[4]), l.$set(S), n & 20 && (g = t[2], D(), r = E(r, n, I, 1, t, g, u, p.parentNode, F, M, p, T), j()), t[3] ? s ? (s.p(t, n), n & 8 && d(s, 1)) : (s = P(t), s.c(), d(s, 1), s.m(m.parentNode, m)) : s && (D(), c(s, 1, 1, () => {
66
+ s = null;
67
+ }), j());
68
68
  },
69
69
  i(t) {
70
- if (!b) {
71
- d(l.$$.fragment, t), d(o.$$.fragment, t);
70
+ if (!k) {
71
+ d(i.$$.fragment, t), d(l.$$.fragment, t);
72
72
  for (let n = 0; n < g.length; n += 1)
73
- d(s[n]);
74
- d(f), b = !0;
73
+ d(r[n]);
74
+ d(s), k = !0;
75
75
  }
76
76
  },
77
77
  o(t) {
78
- c(l.$$.fragment, t), c(o.$$.fragment, t);
79
- for (let n = 0; n < s.length; n += 1)
80
- c(s[n]);
81
- c(f), b = !1;
78
+ c(i.$$.fragment, t), c(l.$$.fragment, t);
79
+ for (let n = 0; n < r.length; n += 1)
80
+ c(r[n]);
81
+ c(s), k = !1;
82
82
  },
83
83
  d(t) {
84
- v(l, t), t && w(i), t && w(e), v(o), t && w(a);
85
- for (let n = 0; n < s.length; n += 1)
86
- s[n].d(t);
87
- t && w(p), f && f.d(t), t && w(u);
84
+ $(i, t), t && b(o), t && b(e), $(l), t && b(a);
85
+ for (let n = 0; n < r.length; n += 1)
86
+ r[n].d(t);
87
+ t && b(p), s && s.d(t), t && b(m);
88
88
  }
89
89
  };
90
90
  }
91
- function M(r, l) {
92
- let i, e, o;
91
+ function M(f, i) {
92
+ let o, e, l;
93
93
  return e = new H({
94
94
  props: {
95
- unfolded: l[4],
96
- content: l[1],
95
+ unfolded: i[4],
96
+ content: i[1],
97
97
  inDelay: 500
98
98
  }
99
99
  }), {
100
- key: r,
100
+ key: f,
101
101
  first: null,
102
102
  c() {
103
- i = N("div"), y(e.$$.fragment), z(i, "class", "text svelte-1p8f9wy"), this.first = i;
103
+ o = C("div"), v(e.$$.fragment), N(o, "class", "text svelte-1f7m1lj"), this.first = o;
104
104
  },
105
- m(a, s) {
106
- h(a, i, s), k(e, i, null), o = !0;
105
+ m(a, r) {
106
+ h(a, o, r), w(e, o, null), l = !0;
107
107
  },
108
- p(a, s) {
109
- l = a;
110
- const m = {};
111
- s & 16 && (m.unfolded = l[4]), s & 4 && (m.content = l[1]), e.$set(m);
108
+ p(a, r) {
109
+ i = a;
110
+ const u = {};
111
+ r & 16 && (u.unfolded = i[4]), r & 4 && (u.content = i[1]), e.$set(u);
112
112
  },
113
113
  i(a) {
114
- o || (d(e.$$.fragment, a), o = !0);
114
+ l || (d(e.$$.fragment, a), l = !0);
115
115
  },
116
116
  o(a) {
117
- c(e.$$.fragment, a), o = !1;
117
+ c(e.$$.fragment, a), l = !1;
118
118
  },
119
119
  d(a) {
120
- a && w(i), v(e);
120
+ a && b(o), $(e);
121
121
  }
122
122
  };
123
123
  }
124
- function P(r) {
125
- let l, i, e;
126
- return i = new K({
124
+ function P(f) {
125
+ let i, o, e;
126
+ return o = new K({
127
127
  props: {
128
128
  autoplayConfig: { autoplay: !1 },
129
- unfolded: r[4],
130
- mediaData: r[3],
129
+ unfolded: f[4],
130
+ mediaData: f[3],
131
+ tag: f[0],
131
132
  enableCarousel: !1,
132
133
  canPlay: !1,
133
134
  playButtonIfNeed: "small",
@@ -136,66 +137,66 @@ function P(r) {
136
137
  }
137
138
  }), {
138
139
  c() {
139
- l = N("div"), y(i.$$.fragment), z(l, "class", "media-wrapper svelte-1p8f9wy");
140
+ i = C("div"), v(o.$$.fragment), N(i, "class", "media-wrapper svelte-1f7m1lj");
140
141
  },
141
- m(o, a) {
142
- h(o, l, a), k(i, l, null), e = !0;
142
+ m(l, a) {
143
+ h(l, i, a), w(o, i, null), e = !0;
143
144
  },
144
- p(o, a) {
145
- const s = {};
146
- a & 16 && (s.unfolded = o[4]), a & 8 && (s.mediaData = o[3]), i.$set(s);
145
+ p(l, a) {
146
+ const r = {};
147
+ a & 16 && (r.unfolded = l[4]), a & 8 && (r.mediaData = l[3]), a & 1 && (r.tag = l[0]), o.$set(r);
147
148
  },
148
- i(o) {
149
- e || (d(i.$$.fragment, o), e = !0);
149
+ i(l) {
150
+ e || (d(o.$$.fragment, l), e = !0);
150
151
  },
151
- o(o) {
152
- c(i.$$.fragment, o), e = !1;
152
+ o(l) {
153
+ c(o.$$.fragment, l), e = !1;
153
154
  },
154
- d(o) {
155
- o && w(l), v(i);
155
+ d(l) {
156
+ l && b(i), $(o);
156
157
  }
157
158
  };
158
159
  }
159
- function Q(r) {
160
- let l, i, e = r[0].state && B(r);
160
+ function Q(f) {
161
+ let i, o, e = f[0].state && B(f);
161
162
  return {
162
163
  c() {
163
- e && e.c(), l = R();
164
+ e && e.c(), i = R();
164
165
  },
165
- m(o, a) {
166
- e && e.m(o, a), h(o, l, a), i = !0;
166
+ m(l, a) {
167
+ e && e.m(l, a), h(l, i, a), o = !0;
167
168
  },
168
- p(o, [a]) {
169
- o[0].state ? e ? (e.p(o, a), a & 1 && d(e, 1)) : (e = B(o), e.c(), d(e, 1), e.m(l.parentNode, l)) : e && (C(), c(e, 1, 1, () => {
169
+ p(l, [a]) {
170
+ l[0].state ? e ? (e.p(l, a), a & 1 && d(e, 1)) : (e = B(l), e.c(), d(e, 1), e.m(i.parentNode, i)) : e && (D(), c(e, 1, 1, () => {
170
171
  e = null;
171
- }), D());
172
+ }), j());
172
173
  },
173
- i(o) {
174
- i || (d(e), i = !0);
174
+ i(l) {
175
+ o || (d(e), o = !0);
175
176
  },
176
- o(o) {
177
- c(e), i = !1;
177
+ o(l) {
178
+ c(e), o = !1;
178
179
  },
179
- d(o) {
180
- e && e.d(o), o && w(l);
180
+ d(l) {
181
+ e && e.d(l), l && b(i);
181
182
  }
182
183
  };
183
184
  }
184
- function U(r, l, i) {
185
- let e, o, a;
186
- var s, m, p;
187
- let { tag: u } = l, b;
188
- return r.$$set = (g) => {
189
- "tag" in g && i(0, u = g.tag);
190
- }, r.$$.update = () => {
191
- r.$$.dirty & 1 && i(4, e = u.state ? u.state.unfolded : !1), r.$$.dirty & 225 && i(1, o = (i(6, m = i(5, s = u.data.text) === null || s === void 0 ? void 0 : s.length) !== null && m !== void 0 ? m : 0) > 7 ? (i(7, p = u.data.text) === null || p === void 0 ? void 0 : p.substring(0, 6)) + "..." : u.data.text), r.$$.dirty & 1 && i(3, a = u.data.mediaData), r.$$.dirty & 2 && i(2, b = o ? [{ id: G(), content: o }] : []);
192
- }, [u, o, b, a, e, s, m, p];
185
+ function U(f, i, o) {
186
+ let e, l, a;
187
+ var r, u, p;
188
+ let { tag: m } = i, k;
189
+ return f.$$set = (g) => {
190
+ "tag" in g && o(0, m = g.tag);
191
+ }, f.$$.update = () => {
192
+ f.$$.dirty & 1 && o(4, e = m.state ? m.state.unfolded : !1), f.$$.dirty & 225 && o(1, l = (o(6, u = o(5, r = m.data.text) === null || r === void 0 ? void 0 : r.length) !== null && u !== void 0 ? u : 0) > 7 ? (o(7, p = m.data.text) === null || p === void 0 ? void 0 : p.substring(0, 6)) + "..." : m.data.text), f.$$.dirty & 1 && o(3, a = m.data.mediaData), f.$$.dirty & 2 && o(2, k = l ? [{ id: G(), content: l }] : []);
193
+ }, [m, l, k, a, e, r, u, p];
193
194
  }
194
- class ue extends j {
195
- constructor(l) {
196
- super(), q(this, l, U, Q, Y, { tag: 0 }, O);
195
+ class me extends q {
196
+ constructor(i) {
197
+ super(), Y(this, i, U, Q, z, { tag: 0 }, O);
197
198
  }
198
199
  }
199
200
  export {
200
- ue as default
201
+ me as default
201
202
  };
@@ -6,18 +6,20 @@ import "three";
6
6
  import "../../utils/noTypecheck.js";
7
7
  import "../Common/MediaItem.js";
8
8
  import "../../Assets/Icon.js";
9
- function S(o) {
10
- h(o, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
9
+ import "../../../shared-utils/isNil.js";
10
+ function S(a) {
11
+ h(a, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
11
12
  }
12
- function c(o) {
13
- let n, a, t;
14
- return a = new P({
13
+ function c(a) {
14
+ let n, o, t;
15
+ return o = new P({
15
16
  props: {
16
- unfolded: o[5],
17
- mediaData: o[4],
18
- objectFit: o[2],
19
- enableCarousel: o[1],
20
- autoplayConfig: o[3],
17
+ unfolded: a[5],
18
+ mediaData: a[4],
19
+ objectFit: a[2],
20
+ enableCarousel: a[1],
21
+ autoplayConfig: a[3],
22
+ tag: a[0],
21
23
  canPlay: !0,
22
24
  playButtonIfNeed: "large",
23
25
  inDelay: 500,
@@ -25,34 +27,34 @@ function c(o) {
25
27
  }
26
28
  }), {
27
29
  c() {
28
- n = k("div"), D(a.$$.fragment), v(n, "class", "media-wrapper svelte-10cw0el");
30
+ n = k("div"), D(o.$$.fragment), v(n, "class", "media-wrapper svelte-10cw0el");
29
31
  },
30
32
  m(e, i) {
31
- _(e, n, i), F(a, n, null), t = !0;
33
+ _(e, n, i), F(o, n, null), t = !0;
32
34
  },
33
35
  p(e, i) {
34
- const l = {};
35
- i & 32 && (l.unfolded = e[5]), i & 16 && (l.mediaData = e[4]), i & 4 && (l.objectFit = e[2]), i & 2 && (l.enableCarousel = e[1]), i & 8 && (l.autoplayConfig = e[3]), a.$set(l);
36
+ const r = {};
37
+ i & 32 && (r.unfolded = e[5]), i & 16 && (r.mediaData = e[4]), i & 4 && (r.objectFit = e[2]), i & 2 && (r.enableCarousel = e[1]), i & 8 && (r.autoplayConfig = e[3]), i & 1 && (r.tag = e[0]), o.$set(r);
36
38
  },
37
39
  i(e) {
38
- t || (f(a.$$.fragment, e), t = !0);
40
+ t || (f(o.$$.fragment, e), t = !0);
39
41
  },
40
42
  o(e) {
41
- d(a.$$.fragment, e), t = !1;
43
+ d(o.$$.fragment, e), t = !1;
42
44
  },
43
45
  d(e) {
44
- e && g(n), M(a);
46
+ e && g(n), M(o);
45
47
  }
46
48
  };
47
49
  }
48
- function q(o) {
49
- let n, a, t = o[0].state && o[4] && c(o);
50
+ function q(a) {
51
+ let n, o, t = a[0].state && a[4] && c(a);
50
52
  return {
51
53
  c() {
52
54
  t && t.c(), n = w();
53
55
  },
54
56
  m(e, i) {
55
- t && t.m(e, i), _(e, n, i), a = !0;
57
+ t && t.m(e, i), _(e, n, i), o = !0;
56
58
  },
57
59
  p(e, [i]) {
58
60
  e[0].state && e[4] ? t ? (t.p(e, i), i & 17 && f(t, 1)) : (t = c(e), t.c(), f(t, 1), t.m(n.parentNode, n)) : t && (N(), d(t, 1, 1, () => {
@@ -60,34 +62,34 @@ function q(o) {
60
62
  }), j());
61
63
  },
62
64
  i(e) {
63
- a || (f(t), a = !0);
65
+ o || (f(t), o = !0);
64
66
  },
65
67
  o(e) {
66
- d(t), a = !1;
68
+ d(t), o = !1;
67
69
  },
68
70
  d(e) {
69
71
  t && t.d(e), e && g(n);
70
72
  }
71
73
  };
72
74
  }
73
- function B(o, n, a) {
74
- let t, e, i, l, p;
75
+ function B(a, n, o) {
76
+ let t, e, i, r, p;
75
77
  var s, u;
76
- let { tag: r } = n;
77
- return o.$$set = (m) => {
78
- "tag" in m && a(0, r = m.tag);
79
- }, o.$$.update = () => {
80
- o.$$.dirty & 1 && a(5, t = r.state ? r.state.unfolded : !1), o.$$.dirty & 1 && a(4, e = r.data.mediaData), o.$$.dirty & 1 && a(1, i = r.data.enableCarousel), o.$$.dirty & 67 && a(3, l = a(6, s = r.data.autoplayConfig) !== null && s !== void 0 ? s : {
78
+ let { tag: l } = n;
79
+ return a.$$set = (m) => {
80
+ "tag" in m && o(0, l = m.tag);
81
+ }, a.$$.update = () => {
82
+ a.$$.dirty & 1 && o(5, t = l.state ? l.state.unfolded : !1), a.$$.dirty & 1 && o(4, e = l.data.mediaData), a.$$.dirty & 1 && o(1, i = l.data.enableCarousel), a.$$.dirty & 67 && o(3, r = o(6, s = l.data.autoplayConfig) !== null && s !== void 0 ? s : {
81
83
  autoplay: i != null ? i : !0,
82
84
  autoplayVideo: !0
83
- }), o.$$.dirty & 129 && a(2, p = a(7, u = r.data.objectFit) !== null && u !== void 0 ? u : (() => r.data.adaptationMode === "stretch" ? "cover" : r.data.adaptationMode === "proportional" ? "contain" : void 0)());
84
- }, [r, i, p, l, e, t, s, u];
85
+ }), a.$$.dirty & 129 && o(2, p = o(7, u = l.data.objectFit) !== null && u !== void 0 ? u : (() => l.data.adaptationMode === "stretch" ? "cover" : l.data.adaptationMode === "proportional" ? "contain" : void 0)());
86
+ }, [l, i, p, r, e, t, s, u];
85
87
  }
86
- class K extends b {
88
+ class L extends b {
87
89
  constructor(n) {
88
90
  super(), y(this, n, B, q, C, { tag: 0 }, S);
89
91
  }
90
92
  }
91
93
  export {
92
- K as default
94
+ L as default
93
95
  };