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

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 +1 -1
  5. package/docs/classes/Magnifier.html +1 -1
  6. package/docs/classes/ModelRoomLabelController.html +1 -1
  7. package/docs/classes/Object3DHelperController.html +1 -1
  8. package/docs/classes/PaintBrush.html +1 -1
  9. package/docs/classes/PanoTagPluginController.html +3 -3
  10. package/docs/enums/CameraMovementEffect.html +1 -1
  11. package/docs/enums/ContentType.html +1 -1
  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 +1 -1
  21. package/docs/index.html +2 -2
  22. package/docs/interfaces/CSS3DRenderPluginEventMap.html +1 -1
  23. package/docs/interfaces/CSS3DRenderPluginState.html +1 -1
  24. package/docs/interfaces/CameraMovementPluginExportType.html +1 -1
  25. package/docs/interfaces/ContentTypeMap.html +23 -0
  26. package/docs/interfaces/FloorplanBounding.html +1 -1
  27. package/docs/interfaces/FloorplanData.html +1 -1
  28. package/docs/interfaces/FloorplanEntrance.html +1 -1
  29. package/docs/interfaces/FloorplanExtraObject.html +1 -1
  30. package/docs/interfaces/FloorplanExtraObject3D.html +1 -1
  31. package/docs/interfaces/FloorplanFloorData.html +1 -1
  32. package/docs/interfaces/FloorplanImagePosition.html +1 -1
  33. package/docs/interfaces/FloorplanObserver.html +1 -1
  34. package/docs/interfaces/FloorplanOutlineItem.html +1 -1
  35. package/docs/interfaces/FloorplanPosition.html +1 -1
  36. package/docs/interfaces/FloorplanRoomItem.html +1 -1
  37. package/docs/interfaces/FloorplanRoomLabelItem.html +1 -1
  38. package/docs/interfaces/FloorplanServerBounding.html +1 -1
  39. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  40. package/docs/interfaces/FloorplanServerData.html +1 -1
  41. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  42. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  43. package/docs/interfaces/FloorplanServerEntrance.html +1 -1
  44. package/docs/interfaces/FloorplanServerFloorData.html +1 -1
  45. package/docs/interfaces/FloorplanServerImagePosition.html +1 -1
  46. package/docs/interfaces/FloorplanServerObserver.html +1 -1
  47. package/docs/interfaces/FloorplanServerOutlineItem.html +1 -1
  48. package/docs/interfaces/FloorplanServerPosition.html +1 -1
  49. package/docs/interfaces/FloorplanServerRoomItem.html +1 -1
  50. package/docs/interfaces/FloorplanServerRoomLabelItem.html +1 -1
  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 +1 -1
  70. package/docs/interfaces/PaintBrushAction.html +1 -1
  71. package/docs/interfaces/PaintBrushConfigs.html +1 -1
  72. package/docs/interfaces/PaintBrushState.html +1 -1
  73. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +1 -1
  74. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  75. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  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 +1 -1
  97. package/docs/interfaces/RoomRules.html +1 -1
  98. package/docs/interfaces/Rooms.html +1 -1
  99. package/docs/interfaces/Scissor.html +1 -1
  100. package/docs/interfaces/TagConfig.html +1 -1
  101. package/docs/interfaces/Tags.html +1 -1
  102. package/docs/modules.html +3 -3
  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 -3
  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,33 +1,32 @@
1
- import { S as w, i as N, s as L, a as j, r as b, c as _, f as c, t as p, d as g, g as y, h as v, e as q, o as I, b as M, j as h, m as C, k as U } from "../../../../index.164f1850.js";
2
- import z from "../../../utils/nullishCoalescing.js";
3
- import { ContentType as k } from "../../../typings/tag.js";
4
- import A from "./CustomPoint.js";
5
- import B from "./DefaultPoint.js";
1
+ import { S as C, i as N, s as L, a as j, r as k, c as _, f as c, t as p, d as g, g as y, h as v, e as q, o as I, b as M, j as h, m as U, k as w } from "../../../../index.164f1850.js";
2
+ import { ContentType as b } from "../../../typings/tag.js";
3
+ import z from "./CustomPoint.js";
4
+ import A from "./DefaultPoint.js";
6
5
  import "../Shadow.js";
7
6
  import "../../../../index.dca207cb.js";
8
7
  import "../../../../index.6a0eead1.js";
9
- function E(i) {
8
+ function B(i) {
10
9
  j(i, "svelte-r4i9gl", ".point-click-helper.svelte-r4i9gl{width:2.5rem;height:2.5rem;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}");
11
10
  }
12
- function T(i) {
13
- let o, n, e = i[0].contentType !== k.Link && D(i);
11
+ function $(i) {
12
+ let o, l, e = i[0].contentType !== b.Link && D(i);
14
13
  return {
15
14
  c() {
16
- e && e.c(), o = b();
15
+ e && e.c(), o = k();
17
16
  },
18
- m(t, l) {
19
- e && e.m(t, l), _(t, o, l), n = !0;
17
+ m(t, n) {
18
+ e && e.m(t, n), _(t, o, n), l = !0;
20
19
  },
21
- p(t, l) {
22
- t[0].contentType !== k.Link ? e ? (e.p(t, l), l & 1 && c(e, 1)) : (e = D(t), e.c(), c(e, 1), e.m(o.parentNode, o)) : e && (v(), p(e, 1, 1, () => {
20
+ p(t, n) {
21
+ t[0].contentType !== b.Link ? e ? (e.p(t, n), n & 1 && c(e, 1)) : (e = D(t), e.c(), c(e, 1), e.m(o.parentNode, o)) : e && (v(), p(e, 1, 1, () => {
23
22
  e = null;
24
23
  }), g());
25
24
  },
26
25
  i(t) {
27
- n || (c(e), n = !0);
26
+ l || (c(e), l = !0);
28
27
  },
29
28
  o(t) {
30
- p(e), n = !1;
29
+ p(e), l = !1;
31
30
  },
32
31
  d(t) {
33
32
  e && e.d(t), t && y(o);
@@ -35,39 +34,39 @@ function T(i) {
35
34
  };
36
35
  }
37
36
  function D(i) {
38
- let o, n, e, t, l, u;
39
- const f = [G, F], s = [];
40
- function d(r, a) {
41
- var m, $, S, P;
42
- return (($ = (m = r[0].style) == null ? void 0 : m.point) == null ? void 0 : $.style) === "CustomIcon" && ((P = (S = r[0].style) == null ? void 0 : S.point) == null ? void 0 : P.iconUrl) ? 0 : 1;
37
+ let o, l, e, t, n, a;
38
+ const f = [F, E], s = [];
39
+ function d(r, u) {
40
+ var m, S, P, T;
41
+ return ((S = (m = r[0].style) == null ? void 0 : m.point) == null ? void 0 : S.style) === "CustomIcon" && ((T = (P = r[0].style) == null ? void 0 : P.point) == null ? void 0 : T.iconUrl) ? 0 : 1;
43
42
  }
44
43
  return e = d(i), t = s[e] = f[e](i), {
45
44
  c() {
46
- o = q("div"), n = I(), t.c(), l = b(), M(o, "class", "point-click-helper svelte-r4i9gl");
45
+ o = q("div"), l = I(), t.c(), n = k(), M(o, "class", "point-click-helper svelte-r4i9gl");
47
46
  },
48
- m(r, a) {
49
- _(r, o, a), _(r, n, a), s[e].m(r, a), _(r, l, a), u = !0;
47
+ m(r, u) {
48
+ _(r, o, u), _(r, l, u), s[e].m(r, u), _(r, n, u), a = !0;
50
49
  },
51
- p(r, a) {
50
+ p(r, u) {
52
51
  let m = e;
53
- e = d(r), e === m ? s[e].p(r, a) : (v(), p(s[m], 1, 1, () => {
52
+ e = d(r), e === m ? s[e].p(r, u) : (v(), p(s[m], 1, 1, () => {
54
53
  s[m] = null;
55
- }), g(), t = s[e], t ? t.p(r, a) : (t = s[e] = f[e](r), t.c()), c(t, 1), t.m(l.parentNode, l));
54
+ }), g(), t = s[e], t ? t.p(r, u) : (t = s[e] = f[e](r), t.c()), c(t, 1), t.m(n.parentNode, n));
56
55
  },
57
56
  i(r) {
58
- u || (c(t), u = !0);
57
+ a || (c(t), a = !0);
59
58
  },
60
59
  o(r) {
61
- p(t), u = !1;
60
+ p(t), a = !1;
62
61
  },
63
62
  d(r) {
64
- r && y(o), r && y(n), s[e].d(r), r && y(l);
63
+ r && y(o), r && y(l), s[e].d(r), r && y(n);
65
64
  }
66
65
  };
67
66
  }
68
- function F(i) {
69
- let o, n;
70
- return o = new B({
67
+ function E(i) {
68
+ let o, l;
69
+ return o = new A({
71
70
  props: {
72
71
  unfolded: i[0].state.unfolded,
73
72
  foldDelay: i[1]
@@ -77,26 +76,26 @@ function F(i) {
77
76
  h(o.$$.fragment);
78
77
  },
79
78
  m(e, t) {
80
- C(o, e, t), n = !0;
79
+ U(o, e, t), l = !0;
81
80
  },
82
81
  p(e, t) {
83
- const l = {};
84
- t & 1 && (l.unfolded = e[0].state.unfolded), t & 2 && (l.foldDelay = e[1]), o.$set(l);
82
+ const n = {};
83
+ t & 1 && (n.unfolded = e[0].state.unfolded), t & 2 && (n.foldDelay = e[1]), o.$set(n);
85
84
  },
86
85
  i(e) {
87
- n || (c(o.$$.fragment, e), n = !0);
86
+ l || (c(o.$$.fragment, e), l = !0);
88
87
  },
89
88
  o(e) {
90
- p(o.$$.fragment, e), n = !1;
89
+ p(o.$$.fragment, e), l = !1;
91
90
  },
92
91
  d(e) {
93
- U(o, e);
92
+ w(o, e);
94
93
  }
95
94
  };
96
95
  }
97
- function G(i) {
98
- let o, n;
99
- return o = new A({
96
+ function F(i) {
97
+ let o, l;
98
+ return o = new z({
100
99
  props: {
101
100
  iconUrl: i[0].style.point.iconUrl,
102
101
  unfolded: i[0].state.unfolded,
@@ -107,68 +106,65 @@ function G(i) {
107
106
  h(o.$$.fragment);
108
107
  },
109
108
  m(e, t) {
110
- C(o, e, t), n = !0;
109
+ U(o, e, t), l = !0;
111
110
  },
112
111
  p(e, t) {
113
- const l = {};
114
- t & 1 && (l.iconUrl = e[0].style.point.iconUrl), t & 1 && (l.unfolded = e[0].state.unfolded), t & 2 && (l.foldDelay = e[1]), o.$set(l);
112
+ const n = {};
113
+ t & 1 && (n.iconUrl = e[0].style.point.iconUrl), t & 1 && (n.unfolded = e[0].state.unfolded), t & 2 && (n.foldDelay = e[1]), o.$set(n);
115
114
  },
116
115
  i(e) {
117
- n || (c(o.$$.fragment, e), n = !0);
116
+ l || (c(o.$$.fragment, e), l = !0);
118
117
  },
119
118
  o(e) {
120
- p(o.$$.fragment, e), n = !1;
119
+ p(o.$$.fragment, e), l = !1;
121
120
  },
122
121
  d(e) {
123
- U(o, e);
122
+ w(o, e);
124
123
  }
125
124
  };
126
125
  }
127
- function H(i) {
128
- var t, l, u;
129
- let o, n, e = ((t = i[0].pointTagStyle) == null ? void 0 : t.leftPercent) && ((l = i[0].pointTagStyle) == null ? void 0 : l.topPercent) && i[0].enabled !== !1 && i[0].state && ((u = i[0].temporaryState) == null ? void 0 : u.visible) !== !1 && T(i);
126
+ function G(i) {
127
+ var t, n, a;
128
+ let o, l, e = ((t = i[0].pointTagStyle) == null ? void 0 : t.leftPercent) && ((n = i[0].pointTagStyle) == null ? void 0 : n.topPercent) && i[0].enabled !== !1 && i[0].state && ((a = i[0].temporaryState) == null ? void 0 : a.visible) !== !1 && $(i);
130
129
  return {
131
130
  c() {
132
- e && e.c(), o = b();
131
+ e && e.c(), o = k();
133
132
  },
134
133
  m(f, s) {
135
- e && e.m(f, s), _(f, o, s), n = !0;
134
+ e && e.m(f, s), _(f, o, s), l = !0;
136
135
  },
137
136
  p(f, [s]) {
138
- var d, r, a;
139
- ((d = f[0].pointTagStyle) == null ? void 0 : d.leftPercent) && ((r = f[0].pointTagStyle) == null ? void 0 : r.topPercent) && f[0].enabled !== !1 && f[0].state && ((a = f[0].temporaryState) == null ? void 0 : a.visible) !== !1 ? e ? (e.p(f, s), s & 1 && c(e, 1)) : (e = T(f), e.c(), c(e, 1), e.m(o.parentNode, o)) : e && (v(), p(e, 1, 1, () => {
137
+ var d, r, u;
138
+ ((d = f[0].pointTagStyle) == null ? void 0 : d.leftPercent) && ((r = f[0].pointTagStyle) == null ? void 0 : r.topPercent) && f[0].enabled !== !1 && f[0].state && ((u = f[0].temporaryState) == null ? void 0 : u.visible) !== !1 ? e ? (e.p(f, s), s & 1 && c(e, 1)) : (e = $(f), e.c(), c(e, 1), e.m(o.parentNode, o)) : e && (v(), p(e, 1, 1, () => {
140
139
  e = null;
141
140
  }), g());
142
141
  },
143
142
  i(f) {
144
- n || (c(e), n = !0);
143
+ l || (c(e), l = !0);
145
144
  },
146
145
  o(f) {
147
- p(e), n = !1;
146
+ p(e), l = !1;
148
147
  },
149
148
  d(f) {
150
149
  e && e.d(f), f && y(o);
151
150
  }
152
151
  };
153
152
  }
154
- function J(i, o, n) {
153
+ function H(i, o, l) {
155
154
  let e;
156
- var t;
157
- let { tag: l } = o;
158
- return i.$$set = (u) => {
159
- "tag" in u && n(0, l = u.tag);
155
+ var t, n;
156
+ let { tag: a } = o;
157
+ return i.$$set = (f) => {
158
+ "tag" in f && l(0, a = f.tag);
160
159
  }, i.$$.update = () => {
161
- i.$$.dirty & 5 && n(1, e = z(
162
- n(2, t = l.style) === null || t === void 0 ? void 0 : t.foldedPointDelay,
163
- l.contentType === k.Marketing ? 600 : void 0
164
- ));
165
- }, [l, e, t];
160
+ i.$$.dirty & 13 && l(1, e = l(3, n = l(2, t = a.style) === null || t === void 0 ? void 0 : t.foldedPointDelay) !== null && n !== void 0 ? n : a.contentType === b.Marketing ? 600 : void 0);
161
+ }, [a, e, t, n];
166
162
  }
167
- class Z extends w {
163
+ class X extends C {
168
164
  constructor(o) {
169
- super(), N(this, o, J, H, L, { tag: 0 }, E);
165
+ super(), N(this, o, H, G, L, { tag: 0 }, B);
170
166
  }
171
167
  }
172
168
  export {
173
- Z as default
169
+ X as default
174
170
  };
@@ -17,7 +17,7 @@ import "../utils/search.js";
17
17
  import "../utils/constants.js";
18
18
  import "./Common/Arrow.js";
19
19
  import "../Assets/Icon.js";
20
- import "../utils/nullishCoalescing.js";
20
+ import "../utils/doUtil.js";
21
21
  import "./Tag/ImageTextTag.js";
22
22
  import "./Common/Line/Polyline.js";
23
23
  import "./Common/Media.js";
@@ -1,26 +1,26 @@
1
- import { S as G, i as H, s as J, a as O, r as P, c as E, f as c, t as b, d as Q, g as F, e as w, j as $, o as q, b as z, q as y, z as V, I as N, m as D, p, A as X, K as Y, k as M, h as Z } from "../../../index.164f1850.js";
2
- import x from "../../../shared-utils/uuid.js";
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";
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 ee from "../Common/Shadow.js";
7
- import te from "../Common/Audio.js";
8
- import ie from "../Common/Line/Straight.js";
9
- import oe from "../Common/MultiLineText.js";
10
- import U from "../../utils/nullishCoalescing.js";
6
+ import oe from "../Common/Shadow.js";
7
+ import ne from "../Common/Audio.js";
8
+ import se from "../Common/Line/Straight.js";
9
+ import le from "../Common/MultiLineText.js";
11
10
  import "../../../shared-utils/isNil.js";
12
11
  import "../../utils/search.js";
13
12
  import "../../../index.dca207cb.js";
14
13
  import "../../../index.6a0eead1.js";
15
14
  import "../Common/Arrow.js";
16
15
  import "../../Assets/Icon.js";
17
- function ne(e) {
18
- O(e, "svelte-4r8s18", ".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}");
16
+ import "../../utils/doUtil.js";
17
+ function re(e) {
18
+ V(e, "svelte-4r8s18", ".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}");
19
19
  }
20
- function B(e) {
21
- var W, j;
22
- let o, n, i, s, l, h, f, a, m, d, k, g, u, v, S, A, R;
23
- return n = new ee({
20
+ function G(e) {
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({
24
24
  props: {
25
25
  visible: e[6],
26
26
  left: e[3] / 2 + "px",
@@ -29,22 +29,22 @@ function B(e) {
29
29
  blurRadius: 120,
30
30
  spreadRadius: 60
31
31
  }
32
- }), l = new ie({
32
+ }), l = new se({
33
33
  props: {
34
34
  unfolded: e[6],
35
35
  duration: 1e3,
36
- outDelay: e[5] + 20 * Math.min(U((W = e[4][0]) == null ? void 0 : W.content.length, 10), 15)
36
+ outDelay: e[5] + 20 * Math.min((W = (R = e[4][0]) == null ? void 0 : R.content.length) != null ? W : 10, 15)
37
37
  }
38
- }), d = new te({
38
+ }), d = new ne({
39
39
  props: {
40
40
  unfolded: e[6],
41
41
  mediaStore: e[0],
42
42
  url: e[1].data.audioUrl,
43
43
  duration: 1e3,
44
- outDelay: 20 * Math.min(U((j = e[4][0]) == null ? void 0 : j.content.length, 10), 15),
44
+ outDelay: 20 * Math.min((K = (j = e[4][0]) == null ? void 0 : j.content.length) != null ? K : 10, 15),
45
45
  hooksInfo: { tag: e[1] }
46
46
  }
47
- }), u = new oe({
47
+ }), u = new le({
48
48
  props: {
49
49
  visible: e[6],
50
50
  textUnfolded: e[2],
@@ -52,59 +52,59 @@ function B(e) {
52
52
  }
53
53
  }), {
54
54
  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"), V(() => e[10].call(f)), z(o, "class", "audio-tag svelte-4r8s18"), N(o, "unfolded", e[6]);
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]);
56
56
  },
57
57
  m(t, r) {
58
- E(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, A || (R = Y(g, "click", e[7]), A = !0);
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);
59
59
  },
60
60
  p(t, r) {
61
- var K, L;
62
- const C = {};
63
- r & 64 && (C.visible = t[6]), r & 8 && (C.left = t[3] / 2 + "px"), n.$set(C);
61
+ 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
64
  const T = {};
65
- r & 64 && (T.unfolded = t[6]), r & 48 && (T.outDelay = t[5] + 20 * Math.min(U((K = t[4][0]) == null ? void 0 : K.content.length, 10), 15)), l.$set(T), r & 8 && y(s, "width", t[3] + "px");
66
- const _ = {};
67
- r & 64 && (_.unfolded = t[6]), r & 1 && (_.mediaStore = t[0]), r & 2 && (_.url = t[1].data.audioUrl), r & 16 && (_.outDelay = 20 * Math.min(U((L = t[4][0]) == null ? void 0 : L.content.length, 10), 15)), r & 2 && (_.hooksInfo = { tag: t[1] }), d.$set(_);
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
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) && N(o, "unfolded", t[6]);
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]);
70
70
  },
71
71
  i(t) {
72
- S || (c(n.$$.fragment, t), c(l.$$.fragment, t), c(d.$$.fragment, t), c(u.$$.fragment, t), S = !0);
72
+ S || (_(n.$$.fragment, t), _(l.$$.fragment, t), _(d.$$.fragment, t), _(u.$$.fragment, t), S = !0);
73
73
  },
74
74
  o(t) {
75
75
  b(n.$$.fragment, t), b(l.$$.fragment, t), b(d.$$.fragment, t), b(u.$$.fragment, t), S = !1;
76
76
  },
77
77
  d(t) {
78
- t && F(o), M(n), M(l), M(d), M(u), v(), A = !1, R();
78
+ t && J(o), M(n), M(l), M(d), M(u), v(), U = !1, C();
79
79
  }
80
80
  };
81
81
  }
82
- function se(e) {
83
- let o, n, i = e[1].state && B(e);
82
+ function ae(e) {
83
+ let o, n, i = e[1].state && G(e);
84
84
  return {
85
85
  c() {
86
- i && i.c(), o = P();
86
+ i && i.c(), o = X();
87
87
  },
88
88
  m(s, l) {
89
- i && i.m(s, l), E(s, o, l), n = !0;
89
+ i && i.m(s, l), H(s, o, l), n = !0;
90
90
  },
91
91
  p(s, [l]) {
92
- s[1].state ? i ? (i.p(s, l), l & 2 && c(i, 1)) : (i = B(s), i.c(), c(i, 1), i.m(o.parentNode, o)) : i && (Z(), b(i, 1, 1, () => {
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, () => {
93
93
  i = null;
94
- }), Q());
94
+ }), Y());
95
95
  },
96
96
  i(s) {
97
- n || (c(i), n = !0);
97
+ n || (_(i), n = !0);
98
98
  },
99
99
  o(s) {
100
100
  b(i), n = !1;
101
101
  },
102
102
  d(s) {
103
- i && i.d(s), s && F(o);
103
+ i && i.d(s), s && J(o);
104
104
  }
105
105
  };
106
106
  }
107
- function le(e, o, n) {
107
+ function de(e, o, n) {
108
108
  let i, s, l;
109
109
  var h;
110
110
  let { mediaStore: f } = o, { tag: a } = o, m = !1, d, k = [];
@@ -117,7 +117,7 @@ function le(e, o, n) {
117
117
  return e.$$set = (v) => {
118
118
  "mediaStore" in v && n(0, f = v.mediaStore), "tag" in v && n(1, a = v.tag);
119
119
  }, 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: x(), content: s }]), e.$$.dirty & 4 && n(5, l = m ? 450 : 0);
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);
121
121
  }, [
122
122
  f,
123
123
  a,
@@ -132,11 +132,11 @@ function le(e, o, n) {
132
132
  u
133
133
  ];
134
134
  }
135
- class ze extends G {
135
+ class De extends O {
136
136
  constructor(o) {
137
- super(), H(this, o, le, se, J, { mediaStore: 0, tag: 1 }, ne);
137
+ super(), P(this, o, de, ae, Q, { mediaStore: 0, tag: 1 }, re);
138
138
  }
139
139
  }
140
140
  export {
141
- ze as default
141
+ De as default
142
142
  };