@realsee/dnalogel 2.1.0-alpha.21 → 2.1.0-alpha.23

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 (131) hide show
  1. package/dist/index.es.js +12944 -17266
  2. package/dist/index.js +6027 -5946
  3. package/docs/assets/search.js +1 -1
  4. package/docs/classes/CruisePluginController.html +14 -14
  5. package/docs/classes/Magnifier.html +4 -4
  6. package/docs/classes/ModelRoomLabelController.html +4 -4
  7. package/docs/classes/Object3DHelperController.html +9 -9
  8. package/docs/classes/PaintBrush.html +3 -3
  9. package/docs/classes/PanoTagPluginController.html +23 -23
  10. package/docs/enums/CameraMovementEffect.html +2 -2
  11. package/docs/enums/ContentType.html +7 -7
  12. package/docs/enums/DIRECTION.html +1 -1
  13. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  14. package/docs/enums/DimensionType.html +1 -1
  15. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  16. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  17. package/docs/enums/LinkType.html +1 -1
  18. package/docs/enums/PaintBrushTypeEnum.html +1 -1
  19. package/docs/enums/PointType.html +1 -1
  20. package/docs/enums/Rotation.html +2 -2
  21. package/docs/index.html +2 -2
  22. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  23. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  24. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  25. package/docs/interfaces/ContentTypeMap.html +23 -0
  26. package/docs/interfaces/FloorplanBounding.html +4 -4
  27. package/docs/interfaces/FloorplanData.html +2 -2
  28. package/docs/interfaces/FloorplanEntrance.html +7 -7
  29. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  30. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  31. package/docs/interfaces/FloorplanFloorData.html +2 -2
  32. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  33. package/docs/interfaces/FloorplanObserver.html +2 -2
  34. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  35. package/docs/interfaces/FloorplanPosition.html +2 -2
  36. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  37. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  38. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  39. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  40. package/docs/interfaces/FloorplanServerData.html +2 -2
  41. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  42. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  43. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  44. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  45. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  46. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  47. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  48. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  49. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  50. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  51. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  52. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  53. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  54. package/docs/interfaces/LineJson.html +1 -1
  55. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  56. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  57. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  58. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  59. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  60. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  62. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  63. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  64. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  66. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  67. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  68. package/docs/interfaces/Object3DHelperState.html +1 -1
  69. package/docs/interfaces/OpenParameter.html +2 -2
  70. package/docs/interfaces/PaintBrushAction.html +7 -7
  71. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  72. package/docs/interfaces/PaintBrushState.html +1 -1
  73. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  74. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  75. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  76. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  77. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  78. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  79. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  80. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  81. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  82. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  83. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  84. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  85. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  86. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  87. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  88. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  89. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  90. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  91. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  92. package/docs/interfaces/Point.html +1 -1
  93. package/docs/interfaces/PointJson.html +1 -1
  94. package/docs/interfaces/Room.html +1 -1
  95. package/docs/interfaces/RoomInfo.html +1 -1
  96. package/docs/interfaces/RoomLabel.html +7 -7
  97. package/docs/interfaces/RoomRules.html +1 -1
  98. package/docs/interfaces/Rooms.html +1 -1
  99. package/docs/interfaces/Scissor.html +5 -5
  100. package/docs/interfaces/TagConfig.html +3 -3
  101. package/docs/interfaces/Tags.html +3 -3
  102. package/docs/modules.html +21 -21
  103. package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -1
  104. package/libs/PanoTagPlugin/Assets/Icon.js +3 -2
  105. package/libs/PanoTagPlugin/Components/Common/Media.js +558 -548
  106. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +107 -57
  107. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +85 -79
  108. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +65 -69
  109. package/libs/PanoTagPlugin/Components/PointTag.js +1 -1
  110. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +42 -42
  111. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +91 -93
  112. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +54 -58
  113. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +43 -40
  114. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +56 -56
  115. package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
  116. package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -1
  117. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
  118. package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
  119. package/libs/PanoTagPlugin/controller/index.js +24 -30
  120. package/libs/PanoTagPlugin/index.js +2 -2
  121. package/libs/PanoTagPlugin/tag.config.js +1 -2
  122. package/libs/PanoTagPlugin/typings/tag.d.ts +1 -1
  123. package/libs/PanoTagPlugin/utils/doUtil.d.ts +1 -0
  124. package/libs/PanoTagPlugin/utils/doUtil.js +12 -0
  125. package/libs/{TagComputer.5bd7014b.js → TagComputer.0920083a.js} +108 -90
  126. package/libs/index.js +2 -2
  127. package/package.json +1 -2
  128. package/dist/index.cjs.js +0 -556
  129. package/dist/index.umd.js +0 -556
  130. package/libs/PanoTagPlugin/utils/nullishCoalescing.d.ts +0 -2
  131. package/libs/PanoTagPlugin/utils/nullishCoalescing.js +0 -7
@@ -1,97 +1,147 @@
1
- import { S as b, i as k, s as w, a as j, r as g, c, n as _, g as d, e as u, b as n, o as y, l as m, q as h } from "../../../index.164f1850.js";
2
- import { Image_Play as C } from "../../Assets/Icon.js";
3
- import v from "../../utils/nullishCoalescing.js";
4
- function F(o) {
5
- j(o, "svelte-6jwk1w", ".media-item.svelte-6jwk1w{height:100%}.media-content.svelte-6jwk1w{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-6jwk1w{width:1.75rem;height:1.75rem;background-size:100%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}");
1
+ import { S as j, i as C, s as N, a as F, r as U, c as m, n as h, g as _, e as d, b as r, G as q, o as S, l as g, I as f, q as y, p as z, K as k, L } from "../../../index.164f1850.js";
2
+ import { Image_Play_Large as P, Image_Play_Small as B } from "../../Assets/Icon.js";
3
+ function G(l) {
4
+ F(l, "svelte-cwtvzu", ".media-item.svelte-cwtvzu.svelte-cwtvzu{height:100%}.media-content.svelte-cwtvzu.svelte-cwtvzu{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-cwtvzu.svelte-cwtvzu{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-cwtvzu.svelte-cwtvzu{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0}.video-play-button-container.showPlayButton.svelte-cwtvzu.svelte-cwtvzu{display:block}.video-icon.large.svelte-cwtvzu.svelte-cwtvzu{width:12.5rem;height:6.25rem}.video-icon.small.svelte-cwtvzu.svelte-cwtvzu{width:1.75rem;height:1.75rem}.video-icon.svelte-cwtvzu .video-icon-img.svelte-cwtvzu{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-cwtvzu .video-icon-img.canPlay.svelte-cwtvzu{cursor:pointer}");
6
5
  }
7
- function p(o) {
8
- let e, i;
9
- function s(r, a) {
10
- if (r[0].type === "Image")
11
- return U;
12
- if (r[0].type === "Video")
13
- return I;
6
+ function I(l) {
7
+ let e, t;
8
+ function a(u, i) {
9
+ if (u[0].type === "Image")
10
+ return M;
11
+ if (u[0].type === "Video")
12
+ return K;
14
13
  }
15
- let l = s(o), t = l && l(o);
14
+ let s = a(l), o = s && s(l);
16
15
  return {
17
16
  c() {
18
- e = u("div"), t && t.c(), n(e, "class", "media-item svelte-6jwk1w"), n(e, "style", i = `object-fit: ${o[1]};`);
17
+ e = d("div"), o && o.c(), r(e, "class", "media-item svelte-cwtvzu"), r(e, "style", t = `object-fit: ${l[3]};`);
19
18
  },
20
- m(r, a) {
21
- c(r, e, a), t && t.m(e, null);
19
+ m(u, i) {
20
+ m(u, e, i), o && o.m(e, null);
22
21
  },
23
- p(r, a) {
24
- l === (l = s(r)) && t ? t.p(r, a) : (t && t.d(1), t = l && l(r), t && (t.c(), t.m(e, null))), a & 2 && i !== (i = `object-fit: ${r[1]};`) && n(e, "style", i);
22
+ p(u, i) {
23
+ s === (s = a(u)) && o ? o.p(u, i) : (o && o.d(1), o = s && s(u), o && (o.c(), o.m(e, null))), i & 8 && t !== (t = `object-fit: ${u[3]};`) && r(e, "style", t);
25
24
  },
26
- d(r) {
27
- r && d(e), t && t.d();
25
+ d(u) {
26
+ u && _(e), o && o.d();
28
27
  }
29
28
  };
30
29
  }
31
- function I(o) {
32
- let e, i, s, l, t, r;
30
+ function K(l) {
31
+ let e, t, a, s, o, u, i, v, p, w;
33
32
  return {
34
33
  c() {
35
- e = u("video"), t = y(), r = u("div"), n(e, "class", "media-content svelte-6jwk1w"), m(e.src, i = o[0].url) || n(e, "src", i), n(e, "poster", s = v(o[0].videoCoverUrl, void 0)), n(e, "preload", l = o[0].videoCoverUrl ? void 0 : "auto"), e.playsInline = !0, n(e, "paused", ""), e.loop = !1, n(e, "crossorigin", ""), e.controls = !1, e.muted = !0, n(r, "class", "video-icon svelte-6jwk1w"), h(r, "background-image", "url(" + C + ")");
34
+ var c;
35
+ e = d("video"), o = S(), u = d("div"), i = d("div"), v = d("div"), r(e, "class", "media-content svelte-cwtvzu"), g(e.src, t = l[0].url) || r(e, "src", t), r(e, "poster", a = (c = l[0].videoCoverUrl) != null ? c : void 0), r(e, "preload", s = l[0].videoCoverUrl ? void 0 : "auto"), e.playsInline = !0, r(e, "paused", ""), e.loop = !1, r(e, "crossorigin", ""), e.controls = !1, f(e, "showPlayButton", l[5]), r(v, "class", "video-icon-img svelte-cwtvzu"), y(v, "background-image", "url(" + (l[1] === "large" ? P : B) + ")"), f(v, "canPlay", l[2]), r(i, "class", "video-icon svelte-cwtvzu"), f(i, "large", l[1] === "large"), f(i, "small", l[1] === "small"), r(u, "class", "video-play-button-container svelte-cwtvzu"), f(u, "showPlayButton", l[5]);
36
36
  },
37
- m(a, f) {
38
- c(a, e, f), c(a, t, f), c(a, r, f);
37
+ m(c, n) {
38
+ m(c, e, n), l[7](e), m(c, o, n), m(c, u, n), z(u, i), z(i, v), p || (w = [
39
+ k(e, "click", l[6]),
40
+ k(v, "click", l[8])
41
+ ], p = !0);
39
42
  },
40
- p(a, f) {
41
- f & 1 && !m(e.src, i = a[0].url) && n(e, "src", i), f & 1 && s !== (s = v(a[0].videoCoverUrl, void 0)) && n(e, "poster", s), f & 1 && l !== (l = a[0].videoCoverUrl ? void 0 : "auto") && n(e, "preload", l);
43
+ p(c, n) {
44
+ var b;
45
+ n & 1 && !g(e.src, t = c[0].url) && r(e, "src", t), n & 1 && a !== (a = (b = c[0].videoCoverUrl) != null ? b : void 0) && r(e, "poster", a), n & 1 && s !== (s = c[0].videoCoverUrl ? void 0 : "auto") && r(e, "preload", s), n & 32 && f(e, "showPlayButton", c[5]), n & 2 && y(v, "background-image", "url(" + (c[1] === "large" ? P : B) + ")"), n & 4 && f(v, "canPlay", c[2]), n & 2 && f(i, "large", c[1] === "large"), n & 2 && f(i, "small", c[1] === "small"), n & 32 && f(u, "showPlayButton", c[5]);
42
46
  },
43
- d(a) {
44
- a && d(e), a && d(t), a && d(r);
47
+ d(c) {
48
+ c && _(e), l[7](null), c && _(o), c && _(u), p = !1, L(w);
45
49
  }
46
50
  };
47
51
  }
48
- function U(o) {
49
- let e, i, s;
52
+ function M(l) {
53
+ let e, t, a;
50
54
  return {
51
55
  c() {
52
- e = u("img"), n(e, "class", "media-content svelte-6jwk1w"), m(e.src, i = o[0].url) || n(e, "src", i), n(e, "alt", s = o[0].name);
56
+ e = d("img"), r(e, "class", "media-content svelte-cwtvzu"), g(e.src, t = l[0].url) || r(e, "src", t), r(e, "alt", a = l[0].name);
53
57
  },
54
- m(l, t) {
55
- c(l, e, t);
58
+ m(s, o) {
59
+ m(s, e, o);
56
60
  },
57
- p(l, t) {
58
- t & 1 && !m(e.src, i = l[0].url) && n(e, "src", i), t & 1 && s !== (s = l[0].name) && n(e, "alt", s);
61
+ p(s, o) {
62
+ o & 1 && !g(e.src, t = s[0].url) && r(e, "src", t), o & 1 && a !== (a = s[0].name) && r(e, "alt", a);
59
63
  },
60
- d(l) {
61
- l && d(e);
64
+ d(s) {
65
+ s && _(e);
62
66
  }
63
67
  };
64
68
  }
65
- function q(o) {
66
- let e, i = o[0] && p(o);
69
+ function V(l) {
70
+ let e, t = l[0] && I(l);
67
71
  return {
68
72
  c() {
69
- i && i.c(), e = g();
73
+ t && t.c(), e = U();
70
74
  },
71
- m(s, l) {
72
- i && i.m(s, l), c(s, e, l);
75
+ m(a, s) {
76
+ t && t.m(a, s), m(a, e, s);
73
77
  },
74
- p(s, [l]) {
75
- s[0] ? i ? i.p(s, l) : (i = p(s), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
78
+ p(a, [s]) {
79
+ a[0] ? t ? t.p(a, s) : (t = I(a), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
76
80
  },
77
- i: _,
78
- o: _,
79
- d(s) {
80
- i && i.d(s), s && d(e);
81
+ i: h,
82
+ o: h,
83
+ d(a) {
84
+ t && t.d(a), a && _(e);
81
85
  }
82
86
  };
83
87
  }
84
- function z(o, e, i) {
85
- let { media: s } = e, { objectFit: l = "cover" } = e;
86
- return o.$$set = (t) => {
87
- "media" in t && i(0, s = t.media), "objectFit" in t && i(1, l = t.objectFit);
88
- }, [s, l];
88
+ function A(l, e, t) {
89
+ let { media: a } = e, { playButtonIfNeed: s = "small" } = e, { canPlay: o = !0 } = e, { objectFit: u = "cover" } = e, i, v = !1;
90
+ const p = () => i == null ? void 0 : i.pause();
91
+ function w(n) {
92
+ q[n ? "unshift" : "push"](() => {
93
+ i = n, t(4, i);
94
+ });
95
+ }
96
+ const c = () => {
97
+ !o || i && i.play();
98
+ };
99
+ return l.$$set = (n) => {
100
+ "media" in n && t(0, a = n.media), "playButtonIfNeed" in n && t(1, s = n.playButtonIfNeed), "canPlay" in n && t(2, o = n.canPlay), "objectFit" in n && t(3, u = n.objectFit);
101
+ }, l.$$.update = () => {
102
+ l.$$.dirty & 16 && i && (t(5, v = i.paused), t(
103
+ 4,
104
+ i.onplay = () => {
105
+ t(5, v = !1);
106
+ },
107
+ i
108
+ ), t(
109
+ 4,
110
+ i.onpause = () => {
111
+ t(5, v = !0);
112
+ },
113
+ i
114
+ ));
115
+ }, [
116
+ a,
117
+ s,
118
+ o,
119
+ u,
120
+ i,
121
+ v,
122
+ p,
123
+ w,
124
+ c
125
+ ];
89
126
  }
90
- class P extends b {
127
+ class H extends j {
91
128
  constructor(e) {
92
- super(), k(this, e, z, q, w, { media: 0, objectFit: 1 }, F);
129
+ super(), C(
130
+ this,
131
+ e,
132
+ A,
133
+ V,
134
+ N,
135
+ {
136
+ media: 0,
137
+ playButtonIfNeed: 1,
138
+ canPlay: 2,
139
+ objectFit: 3
140
+ },
141
+ G
142
+ );
93
143
  }
94
144
  }
95
145
  export {
96
- P as default
146
+ H as default
97
147
  };
@@ -1,6 +1,7 @@
1
- import { S as C, i as T, s as q, a as M, o as Y, r as j, c as p, B as A, d as b, f as _, t as d, g as h, e as z, j as D, b as S, q as k, m as H, k as I, h as v, C as B, G as E } from "../../../index.164f1850.js";
2
- import G from "./Text.js";
3
- import L from "./Arrow.js";
1
+ import { S as C, i as N, s as T, a as q, o as B, r as M, c as h, B as Y, d as b, f as d, t as _, g, e as H, j as x, b as D, q as v, m as U, k as I, h as k, C as j, G as A } from "../../../index.164f1850.js";
2
+ import E from "./Text.js";
3
+ import G from "./Arrow.js";
4
+ import L from "../../utils/doUtil.js";
4
5
  import "../../../shared-utils/isNil.js";
5
6
  import "three";
6
7
  import "../../utils/search.js";
@@ -10,49 +11,49 @@ import "../../../index.6a0eead1.js";
10
11
  import "../../Assets/Icon.js";
11
12
  import "./Shadow.js";
12
13
  function F(l) {
13
- M(l, "svelte-1fuzm7v", ".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}");
14
+ q(l, "svelte-1fuzm7v", ".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}");
14
15
  }
15
- function y(l, e, i) {
16
- const r = l.slice();
17
- return r[11] = e[i].id, r[12] = e[i].content, r;
16
+ function y(l, t, i) {
17
+ const o = l.slice();
18
+ return o[11] = t[i].id, o[12] = t[i].content, o;
18
19
  }
19
- function w(l, e) {
20
- let i, r, o;
21
- return r = new G({
20
+ function w(l, t) {
21
+ let i, o, r;
22
+ return o = new E({
22
23
  props: {
23
- unfolded: e[0],
24
- content: e[12],
24
+ unfolded: t[0],
25
+ content: t[12],
25
26
  inDelay: 500,
26
- outDelay: e[5]
27
+ outDelay: t[5]
27
28
  }
28
29
  }), {
29
30
  key: l,
30
31
  first: null,
31
32
  c() {
32
- i = z("div"), D(r.$$.fragment), S(i, "class", "text svelte-1fuzm7v"), k(i, "transform", e[7]), this.first = i;
33
+ i = H("div"), x(o.$$.fragment), D(i, "class", "text svelte-1fuzm7v"), v(i, "transform", t[7]), this.first = i;
33
34
  },
34
35
  m(s, a) {
35
- p(s, i, a), H(r, i, null), e[10](i), o = !0;
36
+ h(s, i, a), U(o, i, null), t[10](i), r = !0;
36
37
  },
37
38
  p(s, a) {
38
- e = s;
39
+ t = s;
39
40
  const m = {};
40
- a & 1 && (m.unfolded = e[0]), a & 2 && (m.content = e[12]), a & 32 && (m.outDelay = e[5]), r.$set(m), a & 128 && k(i, "transform", e[7]);
41
+ a & 1 && (m.unfolded = t[0]), a & 2 && (m.content = t[12]), a & 32 && (m.outDelay = t[5]), o.$set(m), a & 128 && v(i, "transform", t[7]);
41
42
  },
42
43
  i(s) {
43
- o || (_(r.$$.fragment, s), o = !0);
44
+ r || (d(o.$$.fragment, s), r = !0);
44
45
  },
45
46
  o(s) {
46
- d(r.$$.fragment, s), o = !1;
47
+ _(o.$$.fragment, s), r = !1;
47
48
  },
48
49
  d(s) {
49
- s && h(i), I(r), e[10](null);
50
+ s && g(i), I(o), t[10](null);
50
51
  }
51
52
  };
52
53
  }
53
- function x(l) {
54
- let e, i, r;
55
- return i = new L({
54
+ function z(l) {
55
+ let t, i, o;
56
+ return i = new G({
56
57
  props: {
57
58
  direction: l[6],
58
59
  visible: l[0],
@@ -61,106 +62,111 @@ function x(l) {
61
62
  }
62
63
  }), {
63
64
  c() {
64
- e = z("div"), D(i.$$.fragment), S(e, "class", "arrow svelte-1fuzm7v");
65
+ t = H("div"), x(i.$$.fragment), D(t, "class", "arrow svelte-1fuzm7v");
65
66
  },
66
- m(o, s) {
67
- p(o, e, s), H(i, e, null), r = !0;
67
+ m(r, s) {
68
+ h(r, t, s), U(i, t, null), o = !0;
68
69
  },
69
- p(o, s) {
70
+ p(r, s) {
70
71
  const a = {};
71
- s & 64 && (a.direction = o[6]), s & 1 && (a.visible = o[0]), i.$set(a);
72
+ s & 64 && (a.direction = r[6]), s & 1 && (a.visible = r[0]), i.$set(a);
72
73
  },
73
- i(o) {
74
- r || (_(i.$$.fragment, o), r = !0);
74
+ i(r) {
75
+ o || (d(i.$$.fragment, r), o = !0);
75
76
  },
76
- o(o) {
77
- d(i.$$.fragment, o), r = !1;
77
+ o(r) {
78
+ _(i.$$.fragment, r), o = !1;
78
79
  },
79
- d(o) {
80
- o && h(e), I(i);
80
+ d(r) {
81
+ r && g(t), I(i);
81
82
  }
82
83
  };
83
84
  }
84
85
  function J(l) {
85
- let e = [], i = /* @__PURE__ */ new Map(), r, o, s, a = l[1];
86
- const m = (t) => t[11];
87
- for (let t = 0; t < a.length; t += 1) {
88
- let n = y(l, a, t), c = m(n);
89
- i.set(c, e[t] = w(c, n));
86
+ let t = [], i = /* @__PURE__ */ new Map(), o, r, s, a = l[1];
87
+ const m = (e) => e[11];
88
+ for (let e = 0; e < a.length; e += 1) {
89
+ let n = y(l, a, e), c = m(n);
90
+ i.set(c, t[e] = w(c, n));
90
91
  }
91
- let f = l[3] < l[4] && x(l);
92
+ let f = l[3] < l[4] && z(l);
92
93
  return {
93
94
  c() {
94
- for (let t = 0; t < e.length; t += 1)
95
- e[t].c();
96
- r = Y(), f && f.c(), o = j();
95
+ for (let e = 0; e < t.length; e += 1)
96
+ t[e].c();
97
+ o = B(), f && f.c(), r = M();
97
98
  },
98
- m(t, n) {
99
- for (let c = 0; c < e.length; c += 1)
100
- e[c].m(t, n);
101
- p(t, r, n), f && f.m(t, n), p(t, o, n), s = !0;
99
+ m(e, n) {
100
+ for (let c = 0; c < t.length; c += 1)
101
+ t[c].m(e, n);
102
+ h(e, o, n), f && f.m(e, n), h(e, r, n), s = !0;
102
103
  },
103
- p(t, [n]) {
104
- n & 167 && (a = t[1], v(), e = A(e, n, m, 1, t, a, i, r.parentNode, B, w, r, y), b()), t[3] < t[4] ? f ? (f.p(t, n), n & 24 && _(f, 1)) : (f = x(t), f.c(), _(f, 1), f.m(o.parentNode, o)) : f && (v(), d(f, 1, 1, () => {
104
+ p(e, [n]) {
105
+ n & 167 && (a = e[1], k(), t = Y(t, n, m, 1, e, a, i, o.parentNode, j, w, o, y), b()), e[3] < e[4] ? f ? (f.p(e, n), n & 24 && d(f, 1)) : (f = z(e), f.c(), d(f, 1), f.m(r.parentNode, r)) : f && (k(), _(f, 1, 1, () => {
105
106
  f = null;
106
107
  }), b());
107
108
  },
108
- i(t) {
109
+ i(e) {
109
110
  if (!s) {
110
111
  for (let n = 0; n < a.length; n += 1)
111
- _(e[n]);
112
- _(f), s = !0;
112
+ d(t[n]);
113
+ d(f), s = !0;
113
114
  }
114
115
  },
115
- o(t) {
116
- for (let n = 0; n < e.length; n += 1)
117
- d(e[n]);
118
- d(f), s = !1;
116
+ o(e) {
117
+ for (let n = 0; n < t.length; n += 1)
118
+ _(t[n]);
119
+ _(f), s = !1;
119
120
  },
120
- d(t) {
121
- for (let n = 0; n < e.length; n += 1)
122
- e[n].d(t);
123
- t && h(r), f && f.d(t), t && h(o);
121
+ d(e) {
122
+ for (let n = 0; n < t.length; n += 1)
123
+ t[n].d(e);
124
+ e && g(o), f && f.d(e), e && g(r);
124
125
  }
125
126
  };
126
127
  }
127
- function K(l, e, i) {
128
- let r, o, s, { visible: a = !1 } = e, { textUnfolded: m = !1 } = e, { textItems: f } = e, t, n = 0, c = 0, g = 0;
129
- function N(u) {
130
- E[u ? "unshift" : "push"](() => {
131
- t = u, i(2, t);
128
+ function K(l, t, i) {
129
+ let o, r, s, { visible: a = !1 } = t, { textUnfolded: m = !1 } = t, { textItems: f } = t, e, n = 0, c = 0, p = 0;
130
+ function S(u) {
131
+ A[u ? "unshift" : "push"](() => {
132
+ e = u, i(2, e);
132
133
  });
133
134
  }
134
135
  return l.$$set = (u) => {
135
136
  "visible" in u && i(0, a = u.visible), "textUnfolded" in u && i(8, m = u.textUnfolded), "textItems" in u && i(1, f = u.textItems);
136
137
  }, l.$$.update = () => {
137
- if (l.$$.dirty & 4 && t) {
138
- const { height: u, lineHeight: U } = getComputedStyle(t);
139
- i(4, g = Number(u.replace("px", ""))), i(3, c = Number(U.replace("px", "")));
138
+ if (l.$$.dirty & 5 && e && a) {
139
+ const { lineHeight: u } = getComputedStyle(e);
140
+ i(4, p = e.offsetHeight), L(
141
+ () => e == null ? void 0 : e.offsetHeight,
142
+ Boolean
143
+ ).then(() => {
144
+ i(4, p = e.offsetHeight);
145
+ }), i(3, c = Number(u.replace("px", "")));
140
146
  }
141
- l.$$.dirty & 280 && i(9, n = m ? c - g : 0), l.$$.dirty & 512 && i(7, r = `translateY(${n}px)`), l.$$.dirty & 256 && i(6, o = m ? "left" : "right"), l.$$.dirty & 256 && i(5, s = m ? 450 : 0);
147
+ l.$$.dirty & 280 && i(9, n = m ? c - p : 0), l.$$.dirty & 512 && i(7, o = `translateY(${n}px)`), l.$$.dirty & 256 && i(6, r = m ? "left" : "right"), l.$$.dirty & 256 && i(5, s = m ? 450 : 0);
142
148
  }, [
143
149
  a,
144
150
  f,
145
- t,
151
+ e,
146
152
  c,
147
- g,
153
+ p,
148
154
  s,
149
- o,
150
155
  r,
156
+ o,
151
157
  m,
152
158
  n,
153
- N
159
+ S
154
160
  ];
155
161
  }
156
- class ie extends C {
157
- constructor(e) {
158
- super(), T(
162
+ class ne extends C {
163
+ constructor(t) {
164
+ super(), N(
159
165
  this,
160
- e,
166
+ t,
161
167
  K,
162
168
  J,
163
- q,
169
+ T,
164
170
  {
165
171
  visible: 0,
166
172
  textUnfolded: 8,
@@ -171,5 +177,5 @@ class ie extends C {
171
177
  }
172
178
  }
173
179
  export {
174
- ie as default
180
+ ne as default
175
181
  };