@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.
- package/dist/index.es.js +12944 -17266
- package/dist/index.js +6027 -5946
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +1 -1
- package/docs/classes/Magnifier.html +1 -1
- package/docs/classes/ModelRoomLabelController.html +1 -1
- package/docs/classes/Object3DHelperController.html +1 -1
- package/docs/classes/PaintBrush.html +1 -1
- package/docs/classes/PanoTagPluginController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +1 -1
- package/docs/enums/ContentType.html +1 -1
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PaintBrushTypeEnum.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginState.html +1 -1
- package/docs/interfaces/CameraMovementPluginExportType.html +1 -1
- package/docs/interfaces/ContentTypeMap.html +23 -0
- package/docs/interfaces/FloorplanBounding.html +1 -1
- package/docs/interfaces/FloorplanData.html +1 -1
- package/docs/interfaces/FloorplanEntrance.html +1 -1
- package/docs/interfaces/FloorplanExtraObject.html +1 -1
- package/docs/interfaces/FloorplanExtraObject3D.html +1 -1
- package/docs/interfaces/FloorplanFloorData.html +1 -1
- package/docs/interfaces/FloorplanImagePosition.html +1 -1
- package/docs/interfaces/FloorplanObserver.html +1 -1
- package/docs/interfaces/FloorplanOutlineItem.html +1 -1
- package/docs/interfaces/FloorplanPosition.html +1 -1
- package/docs/interfaces/FloorplanRoomItem.html +1 -1
- package/docs/interfaces/FloorplanRoomLabelItem.html +1 -1
- package/docs/interfaces/FloorplanServerBounding.html +1 -1
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +1 -1
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +1 -1
- package/docs/interfaces/FloorplanServerFloorData.html +1 -1
- package/docs/interfaces/FloorplanServerImagePosition.html +1 -1
- package/docs/interfaces/FloorplanServerObserver.html +1 -1
- package/docs/interfaces/FloorplanServerOutlineItem.html +1 -1
- package/docs/interfaces/FloorplanServerPosition.html +1 -1
- package/docs/interfaces/FloorplanServerRoomItem.html +1 -1
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +1 -1
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +1 -1
- package/docs/interfaces/PaintBrushAction.html +1 -1
- package/docs/interfaces/PaintBrushConfigs.html +1 -1
- package/docs/interfaces/PaintBrushState.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +1 -1
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +1 -1
- package/docs/interfaces/TagConfig.html +1 -1
- package/docs/interfaces/Tags.html +1 -1
- package/docs/modules.html +3 -3
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -1
- package/libs/PanoTagPlugin/Assets/Icon.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/Media.js +558 -548
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +107 -57
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +85 -79
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +65 -69
- package/libs/PanoTagPlugin/Components/PointTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +42 -42
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +91 -93
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +54 -58
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +43 -40
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +56 -56
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +24 -30
- package/libs/PanoTagPlugin/index.js +2 -2
- package/libs/PanoTagPlugin/tag.config.js +1 -2
- package/libs/PanoTagPlugin/typings/tag.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/doUtil.js +12 -0
- package/libs/{TagComputer.5bd7014b.js → TagComputer.0920083a.js} +108 -90
- package/libs/index.js +2 -2
- package/package.json +1 -3
- package/dist/index.cjs.js +0 -556
- package/dist/index.umd.js +0 -556
- package/libs/PanoTagPlugin/utils/nullishCoalescing.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/nullishCoalescing.js +0 -7
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { S as
|
|
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 z, b as C, m as k, h as N, B as E, C as F, k as v } 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";
|
|
5
5
|
import K from "../Common/Media.js";
|
|
6
6
|
import L from "../Common/Shadow.js";
|
|
7
|
-
import O from "../../utils/nullishCoalescing.js";
|
|
8
7
|
import "../../../shared-utils/isNil.js";
|
|
9
8
|
import "three";
|
|
10
9
|
import "../../utils/search.js";
|
|
@@ -14,18 +13,18 @@ import "../../../index.6a0eead1.js";
|
|
|
14
13
|
import "../../utils/noTypecheck.js";
|
|
15
14
|
import "../Common/MediaItem.js";
|
|
16
15
|
import "../../Assets/Icon.js";
|
|
17
|
-
function
|
|
18
|
-
A(
|
|
16
|
+
function O(a) {
|
|
17
|
+
A(a, "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}");
|
|
19
18
|
}
|
|
20
|
-
function
|
|
21
|
-
const e =
|
|
22
|
-
return e[
|
|
19
|
+
function T(a, l, i) {
|
|
20
|
+
const e = a.slice();
|
|
21
|
+
return e[8] = l[i].id, e[1] = l[i].content, e;
|
|
23
22
|
}
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
|
|
23
|
+
function B(a) {
|
|
24
|
+
let l, i, e, o, r, f = [], m = /* @__PURE__ */ new Map(), p, u, b;
|
|
25
|
+
l = new L({
|
|
27
26
|
props: {
|
|
28
|
-
visible:
|
|
27
|
+
visible: a[4],
|
|
29
28
|
left: 61,
|
|
30
29
|
bottom: 57,
|
|
31
30
|
width: 2,
|
|
@@ -34,137 +33,139 @@ function M(s) {
|
|
|
34
33
|
}
|
|
35
34
|
}), o = new J({
|
|
36
35
|
props: {
|
|
37
|
-
unfolded:
|
|
36
|
+
unfolded: a[4],
|
|
38
37
|
duration: 1e3,
|
|
39
38
|
outDelay: 400
|
|
40
39
|
}
|
|
41
40
|
});
|
|
42
|
-
let
|
|
43
|
-
const
|
|
44
|
-
for (let t = 0; t <
|
|
45
|
-
let
|
|
46
|
-
|
|
41
|
+
let g = a[2];
|
|
42
|
+
const I = (t) => t[8];
|
|
43
|
+
for (let t = 0; t < g.length; t += 1) {
|
|
44
|
+
let n = T(a, g, t), _ = I(n);
|
|
45
|
+
m.set(_, f[t] = M(_, n));
|
|
47
46
|
}
|
|
48
|
-
let
|
|
47
|
+
let s = a[3] && P(a);
|
|
49
48
|
return {
|
|
50
49
|
c() {
|
|
51
|
-
y(
|
|
52
|
-
for (let t = 0; t <
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
m(t,
|
|
57
|
-
k(
|
|
58
|
-
for (let
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
p(t,
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
50
|
+
y(l.$$.fragment), i = $(), e = z("div"), y(o.$$.fragment), r = $();
|
|
51
|
+
for (let t = 0; t < f.length; t += 1)
|
|
52
|
+
f[t].c();
|
|
53
|
+
p = $(), s && s.c(), u = R(), C(e, "class", "line svelte-1p8f9wy");
|
|
54
|
+
},
|
|
55
|
+
m(t, n) {
|
|
56
|
+
k(l, t, n), h(t, i, n), h(t, e, n), k(o, e, null), h(t, r, n);
|
|
57
|
+
for (let _ = 0; _ < f.length; _ += 1)
|
|
58
|
+
f[_].m(t, n);
|
|
59
|
+
h(t, p, n), s && s.m(t, n), h(t, u, n), b = !0;
|
|
60
|
+
},
|
|
61
|
+
p(t, n) {
|
|
62
|
+
const _ = {};
|
|
63
|
+
n & 16 && (_.visible = t[4]), l.$set(_);
|
|
64
|
+
const S = {};
|
|
65
|
+
n & 16 && (S.unfolded = t[4]), o.$set(S), n & 20 && (g = t[2], N(), f = E(f, n, I, 1, t, g, m, p.parentNode, F, M, p, T), D()), t[3] ? s ? (s.p(t, n), n & 8 && d(s, 1)) : (s = P(t), s.c(), d(s, 1), s.m(u.parentNode, u)) : s && (N(), c(s, 1, 1, () => {
|
|
66
|
+
s = null;
|
|
68
67
|
}), D());
|
|
69
68
|
},
|
|
70
69
|
i(t) {
|
|
71
|
-
if (!
|
|
72
|
-
d(
|
|
73
|
-
for (let
|
|
74
|
-
d(
|
|
75
|
-
d(
|
|
70
|
+
if (!b) {
|
|
71
|
+
d(l.$$.fragment, t), d(o.$$.fragment, t);
|
|
72
|
+
for (let n = 0; n < g.length; n += 1)
|
|
73
|
+
d(f[n]);
|
|
74
|
+
d(s), b = !0;
|
|
76
75
|
}
|
|
77
76
|
},
|
|
78
77
|
o(t) {
|
|
79
|
-
|
|
80
|
-
for (let
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
c(l.$$.fragment, t), c(o.$$.fragment, t);
|
|
79
|
+
for (let n = 0; n < f.length; n += 1)
|
|
80
|
+
c(f[n]);
|
|
81
|
+
c(s), b = !1;
|
|
83
82
|
},
|
|
84
83
|
d(t) {
|
|
85
|
-
v(
|
|
86
|
-
for (let
|
|
87
|
-
|
|
88
|
-
t &&
|
|
84
|
+
v(l, t), t && w(i), t && w(e), v(o), t && w(r);
|
|
85
|
+
for (let n = 0; n < f.length; n += 1)
|
|
86
|
+
f[n].d(t);
|
|
87
|
+
t && w(p), s && s.d(t), t && w(u);
|
|
89
88
|
}
|
|
90
89
|
};
|
|
91
90
|
}
|
|
92
|
-
function
|
|
91
|
+
function M(a, l) {
|
|
93
92
|
let i, e, o;
|
|
94
93
|
return e = new H({
|
|
95
94
|
props: {
|
|
96
|
-
unfolded:
|
|
97
|
-
content:
|
|
95
|
+
unfolded: l[4],
|
|
96
|
+
content: l[1],
|
|
98
97
|
inDelay: 500
|
|
99
98
|
}
|
|
100
99
|
}), {
|
|
101
|
-
key:
|
|
100
|
+
key: a,
|
|
102
101
|
first: null,
|
|
103
102
|
c() {
|
|
104
|
-
i = z("div"), y(e.$$.fragment),
|
|
103
|
+
i = z("div"), y(e.$$.fragment), C(i, "class", "text svelte-1p8f9wy"), this.first = i;
|
|
105
104
|
},
|
|
106
|
-
m(r,
|
|
107
|
-
|
|
105
|
+
m(r, f) {
|
|
106
|
+
h(r, i, f), k(e, i, null), o = !0;
|
|
108
107
|
},
|
|
109
|
-
p(r,
|
|
110
|
-
|
|
111
|
-
const
|
|
112
|
-
|
|
108
|
+
p(r, f) {
|
|
109
|
+
l = r;
|
|
110
|
+
const m = {};
|
|
111
|
+
f & 16 && (m.unfolded = l[4]), f & 4 && (m.content = l[1]), e.$set(m);
|
|
113
112
|
},
|
|
114
113
|
i(r) {
|
|
115
114
|
o || (d(e.$$.fragment, r), o = !0);
|
|
116
115
|
},
|
|
117
116
|
o(r) {
|
|
118
|
-
|
|
117
|
+
c(e.$$.fragment, r), o = !1;
|
|
119
118
|
},
|
|
120
119
|
d(r) {
|
|
121
|
-
r &&
|
|
120
|
+
r && w(i), v(e);
|
|
122
121
|
}
|
|
123
122
|
};
|
|
124
123
|
}
|
|
125
|
-
function
|
|
126
|
-
let
|
|
124
|
+
function P(a) {
|
|
125
|
+
let l, i, e;
|
|
127
126
|
return i = new K({
|
|
128
127
|
props: {
|
|
129
128
|
autoplayConfig: { autoplay: !1 },
|
|
130
|
-
unfolded:
|
|
131
|
-
mediaData:
|
|
129
|
+
unfolded: a[4],
|
|
130
|
+
mediaData: a[3],
|
|
131
|
+
canPlay: !1,
|
|
132
|
+
playButtonIfNeed: "small",
|
|
132
133
|
inDelay: 500,
|
|
133
134
|
duration: 500
|
|
134
135
|
}
|
|
135
136
|
}), {
|
|
136
137
|
c() {
|
|
137
|
-
|
|
138
|
+
l = z("div"), y(i.$$.fragment), C(l, "class", "media-wrapper svelte-1p8f9wy");
|
|
138
139
|
},
|
|
139
140
|
m(o, r) {
|
|
140
|
-
|
|
141
|
+
h(o, l, r), k(i, l, null), e = !0;
|
|
141
142
|
},
|
|
142
143
|
p(o, r) {
|
|
143
|
-
const
|
|
144
|
-
r & 16 && (
|
|
144
|
+
const f = {};
|
|
145
|
+
r & 16 && (f.unfolded = o[4]), r & 8 && (f.mediaData = o[3]), i.$set(f);
|
|
145
146
|
},
|
|
146
147
|
i(o) {
|
|
147
148
|
e || (d(i.$$.fragment, o), e = !0);
|
|
148
149
|
},
|
|
149
150
|
o(o) {
|
|
150
|
-
|
|
151
|
+
c(i.$$.fragment, o), e = !1;
|
|
151
152
|
},
|
|
152
153
|
d(o) {
|
|
153
|
-
o &&
|
|
154
|
+
o && w(l), v(i);
|
|
154
155
|
}
|
|
155
156
|
};
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
let
|
|
158
|
+
function Q(a) {
|
|
159
|
+
let l, i, e = a[0].state && B(a);
|
|
159
160
|
return {
|
|
160
161
|
c() {
|
|
161
|
-
e && e.c(),
|
|
162
|
+
e && e.c(), l = R();
|
|
162
163
|
},
|
|
163
164
|
m(o, r) {
|
|
164
|
-
e && e.m(o, r),
|
|
165
|
+
e && e.m(o, r), h(o, l, r), i = !0;
|
|
165
166
|
},
|
|
166
167
|
p(o, [r]) {
|
|
167
|
-
o[0].state ? e ? (e.p(o, r), r & 1 && d(e, 1)) : (e =
|
|
168
|
+
o[0].state ? e ? (e.p(o, r), r & 1 && d(e, 1)) : (e = B(o), e.c(), d(e, 1), e.m(l.parentNode, l)) : e && (N(), c(e, 1, 1, () => {
|
|
168
169
|
e = null;
|
|
169
170
|
}), D());
|
|
170
171
|
},
|
|
@@ -172,31 +173,28 @@ function U(s) {
|
|
|
172
173
|
i || (d(e), i = !0);
|
|
173
174
|
},
|
|
174
175
|
o(o) {
|
|
175
|
-
|
|
176
|
+
c(e), i = !1;
|
|
176
177
|
},
|
|
177
178
|
d(o) {
|
|
178
|
-
e && e.d(o), o &&
|
|
179
|
+
e && e.d(o), o && w(l);
|
|
179
180
|
}
|
|
180
181
|
};
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
+
function U(a, l, i) {
|
|
183
184
|
let e, o, r;
|
|
184
|
-
var
|
|
185
|
-
let { tag:
|
|
186
|
-
return
|
|
187
|
-
"tag" in
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
0
|
|
192
|
-
) > 7 ? (i(6, u = m.data.text) === null || u === void 0 ? void 0 : u.substring(0, 6)) + "..." : m.data.text), s.$$.dirty & 1 && i(3, r = m.data.mediaData), s.$$.dirty & 2 && i(2, c = o ? [{ id: G(), content: o }] : []);
|
|
193
|
-
}, [m, o, c, r, e, a, u];
|
|
185
|
+
var f, m, p;
|
|
186
|
+
let { tag: u } = l, b;
|
|
187
|
+
return a.$$set = (g) => {
|
|
188
|
+
"tag" in g && i(0, u = g.tag);
|
|
189
|
+
}, a.$$.update = () => {
|
|
190
|
+
a.$$.dirty & 1 && i(4, e = u.state ? u.state.unfolded : !1), a.$$.dirty & 225 && i(1, o = (i(6, m = i(5, f = u.data.text) === null || f === void 0 ? void 0 : f.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), a.$$.dirty & 1 && i(3, r = u.data.mediaData), a.$$.dirty & 2 && i(2, b = o ? [{ id: G(), content: o }] : []);
|
|
191
|
+
}, [u, o, b, r, e, f, m, p];
|
|
194
192
|
}
|
|
195
|
-
class
|
|
196
|
-
constructor(
|
|
197
|
-
super(),
|
|
193
|
+
class ue extends j {
|
|
194
|
+
constructor(l) {
|
|
195
|
+
super(), q(this, l, U, Q, Y, { tag: 0 }, O);
|
|
198
196
|
}
|
|
199
197
|
}
|
|
200
198
|
export {
|
|
201
|
-
|
|
199
|
+
ue as default
|
|
202
200
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { S as fe, i as de, s as ce, a as ge, e as
|
|
2
|
-
import ke from "
|
|
3
|
-
import ye from "../Common/Shadow.js";
|
|
1
|
+
import { S as fe, i as de, s as ce, a as ge, e as k, j as ue, o as A, u as R, b as g, q as D, l as K, I as q, c as S, m as be, p as f, v as E, f as he, t as ve, g as T, k as pe, D as W, r as me } from "../../../index.164f1850.js";
|
|
2
|
+
import ke from "../Common/Shadow.js";
|
|
4
3
|
import "../../../index.dca207cb.js";
|
|
5
4
|
import "../../../index.6a0eead1.js";
|
|
6
|
-
function
|
|
5
|
+
function ye(i) {
|
|
7
6
|
ge(i, "svelte-8mby9k", ".svelte-8mby9k.svelte-8mby9k{box-sizing:border-box}.marketing.svelte-8mby9k.svelte-8mby9k{transform:translateY(-100%)}.content.svelte-8mby9k .headerImage.svelte-8mby9k{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-8mby9k.svelte-8mby9k{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-8mby9k.svelte-8mby9k{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-8mby9k.svelte-8mby9k{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-8mby9k .text.svelte-8mby9k{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-8mby9k.svelte-8mby9k{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-8mby9k .goto-button.svelte-8mby9k{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-8mby9k .goto-icon.svelte-8mby9k::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-8mby9k.svelte-8mby9k{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-8mby9k .value.svelte-8mby9k{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-8mby9k .unit.svelte-8mby9k{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-8mby9k.svelte-8mby9k{position:relative;background-color:white;display:flex;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem;min-height:1.75rem}.tag.svelte-8mby9k .base-tag.svelte-8mby9k{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-8mby9k .primary-tag.svelte-8mby9k{background:#e5eefe;color:#0055ff}.tag.svelte-8mby9k .secondary-tag.svelte-8mby9k{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 1)}.folded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-8mby9k .content.svelte-8mby9k{opacity:1}.folded.svelte-8mby9k .content.svelte-8mby9k{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}");
|
|
8
7
|
}
|
|
9
8
|
function $(i, t, e) {
|
|
@@ -18,7 +17,7 @@ function ee(i) {
|
|
|
18
17
|
let t, e = i[0] + "", l;
|
|
19
18
|
return {
|
|
20
19
|
c() {
|
|
21
|
-
t =
|
|
20
|
+
t = k("div"), l = R(e), g(t, "class", "base-tag primary-tag svelte-8mby9k");
|
|
22
21
|
},
|
|
23
22
|
m(n, o) {
|
|
24
23
|
S(n, t, o), f(t, l);
|
|
@@ -52,7 +51,7 @@ function le(i) {
|
|
|
52
51
|
let t, e = i[0] + "", l;
|
|
53
52
|
return {
|
|
54
53
|
c() {
|
|
55
|
-
t =
|
|
54
|
+
t = k("div"), l = R(e), g(t, "class", "base-tag secondary-tag svelte-8mby9k");
|
|
56
55
|
},
|
|
57
56
|
m(n, o) {
|
|
58
57
|
S(n, t, o), f(t, l);
|
|
@@ -86,13 +85,13 @@ function ne(i) {
|
|
|
86
85
|
let t, e, l = i[2].price.value + "", n, o, r = i[2].price.unit && ae(i);
|
|
87
86
|
return {
|
|
88
87
|
c() {
|
|
89
|
-
t =
|
|
88
|
+
t = k("div"), e = k("span"), n = R(l), o = A(), r && r.c(), g(e, "class", "value svelte-8mby9k"), g(t, "class", "price svelte-8mby9k");
|
|
90
89
|
},
|
|
91
|
-
m(m,
|
|
92
|
-
S(m, t,
|
|
90
|
+
m(m, u) {
|
|
91
|
+
S(m, t, u), f(t, e), f(e, n), f(t, o), r && r.m(t, null);
|
|
93
92
|
},
|
|
94
|
-
p(m,
|
|
95
|
-
|
|
93
|
+
p(m, u) {
|
|
94
|
+
u & 4 && l !== (l = m[2].price.value + "") && E(n, l), m[2].price.unit ? r ? r.p(m, u) : (r = ae(m), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
96
95
|
},
|
|
97
96
|
d(m) {
|
|
98
97
|
m && T(t), r && r.d();
|
|
@@ -103,7 +102,7 @@ function ae(i) {
|
|
|
103
102
|
let t, e = i[2].price.unit + "", l;
|
|
104
103
|
return {
|
|
105
104
|
c() {
|
|
106
|
-
t =
|
|
105
|
+
t = k("span"), l = R(e), g(t, "class", "unit svelte-8mby9k");
|
|
107
106
|
},
|
|
108
107
|
m(n, o) {
|
|
109
108
|
S(n, t, o), f(t, l);
|
|
@@ -120,7 +119,7 @@ function re(i) {
|
|
|
120
119
|
let t, e = i[2].highlightText + "", l;
|
|
121
120
|
return {
|
|
122
121
|
c() {
|
|
123
|
-
t =
|
|
122
|
+
t = k("div"), l = R(e), g(t, "class", "goto-button goto-icon svelte-8mby9k");
|
|
124
123
|
},
|
|
125
124
|
m(n, o) {
|
|
126
125
|
S(n, t, o), f(t, l);
|
|
@@ -133,10 +132,10 @@ function re(i) {
|
|
|
133
132
|
}
|
|
134
133
|
};
|
|
135
134
|
}
|
|
136
|
-
function
|
|
135
|
+
function _e(i) {
|
|
137
136
|
var O, Z;
|
|
138
|
-
let t, e, l, n, o, r, m,
|
|
139
|
-
e = new
|
|
137
|
+
let t, e, l, n, o, r, m, u, G, _, F, P, B, U, Y = i[2].title + "", J, N, y, M, w;
|
|
138
|
+
e = new ke({
|
|
140
139
|
props: {
|
|
141
140
|
visible: i[1],
|
|
142
141
|
outDelay: 500,
|
|
@@ -146,59 +145,59 @@ function we(i) {
|
|
|
146
145
|
spreadRadius: 75
|
|
147
146
|
}
|
|
148
147
|
});
|
|
149
|
-
let z = i[2].brandTags || [],
|
|
148
|
+
let z = i[2].brandTags || [], b = [];
|
|
150
149
|
for (let a = 0; a < z.length; a += 1)
|
|
151
|
-
|
|
152
|
-
let C = i[2].tags || [],
|
|
150
|
+
b[a] = te(x(i, z, a));
|
|
151
|
+
let C = i[2].tags || [], h = [];
|
|
153
152
|
for (let a = 0; a < C.length; a += 1)
|
|
154
|
-
|
|
155
|
-
let
|
|
153
|
+
h[a] = ie($(i, C, a));
|
|
154
|
+
let v = ((O = i[2].price) == null ? void 0 : O.value) !== void 0 && ((Z = i[2].price) == null ? void 0 : Z.value) !== null && ne(i), p = i[2].highlightText && re(i);
|
|
156
155
|
return {
|
|
157
156
|
c() {
|
|
158
157
|
var a, d;
|
|
159
|
-
t =
|
|
160
|
-
for (let c = 0; c < u.length; c += 1)
|
|
161
|
-
u[c].c();
|
|
162
|
-
V = A();
|
|
158
|
+
t = k("div"), ue(e.$$.fragment), l = A(), n = k("div"), o = A(), r = k("div"), m = k("img"), G = A(), _ = k("div");
|
|
163
159
|
for (let c = 0; c < b.length; c += 1)
|
|
164
160
|
b[c].c();
|
|
165
|
-
|
|
161
|
+
F = A();
|
|
162
|
+
for (let c = 0; c < h.length; c += 1)
|
|
163
|
+
h[c].c();
|
|
164
|
+
P = A(), B = k("div"), U = k("div"), J = R(Y), N = A(), y = k("div"), v && v.c(), M = A(), p && p.c(), g(n, "class", "line svelte-8mby9k"), D(n, "transition-delay", i[1] ? L + "ms" : V + oe - se - 40 + "ms"), g(m, "class", "headerImage svelte-8mby9k"), K(m.src, u = i[2].headerPictureUrl) || g(m, "src", u), g(m, "alt", ""), g(_, "class", "tag svelte-8mby9k"), g(U, "class", "text svelte-8mby9k"), g(B, "class", "title svelte-8mby9k"), g(y, "class", "footer svelte-8mby9k"), D(y, "height", ((a = i[2].price) == null ? void 0 : a.value) !== void 0 && ((d = i[2].price) == null ? void 0 : d.value) !== null && i[2].highlightText ? void 0 : "1rem"), g(r, "class", "content svelte-8mby9k"), D(r, "transition-delay", i[1] ? L + V + "ms" : "0ms"), g(t, "class", "marketing svelte-8mby9k"), q(t, "unfolded", i[1]), q(t, "folded", i[3]);
|
|
166
165
|
},
|
|
167
166
|
m(a, d) {
|
|
168
|
-
S(a, t, d), be(e, t, null), f(t, l), f(t, n), f(t, o), f(t, r), f(r, m), f(r,
|
|
169
|
-
for (let c = 0; c < u.length; c += 1)
|
|
170
|
-
u[c].m(_, null);
|
|
171
|
-
f(_, V);
|
|
167
|
+
S(a, t, d), be(e, t, null), f(t, l), f(t, n), f(t, o), f(t, r), f(r, m), f(r, G), f(r, _);
|
|
172
168
|
for (let c = 0; c < b.length; c += 1)
|
|
173
169
|
b[c].m(_, null);
|
|
174
|
-
f(
|
|
170
|
+
f(_, F);
|
|
171
|
+
for (let c = 0; c < h.length; c += 1)
|
|
172
|
+
h[c].m(_, null);
|
|
173
|
+
f(r, P), f(r, B), f(B, U), f(U, J), f(r, N), f(r, y), v && v.m(y, null), f(y, M), p && p.m(y, null), w = !0;
|
|
175
174
|
},
|
|
176
175
|
p(a, [d]) {
|
|
177
176
|
var Q, X, j, H;
|
|
178
177
|
const c = {};
|
|
179
|
-
if (d & 2 && (c.visible = a[1]), e.$set(c), d & 2 && D(n, "transition-delay", a[1] ?
|
|
178
|
+
if (d & 2 && (c.visible = a[1]), e.$set(c), d & 2 && D(n, "transition-delay", a[1] ? L + "ms" : V + oe - se - 40 + "ms"), (!w || d & 4 && !K(m.src, u = a[2].headerPictureUrl)) && g(m, "src", u), d & 4) {
|
|
180
179
|
z = a[2].brandTags || [];
|
|
181
180
|
let s;
|
|
182
181
|
for (s = 0; s < z.length; s += 1) {
|
|
183
|
-
const
|
|
184
|
-
|
|
182
|
+
const I = x(a, z, s);
|
|
183
|
+
b[s] ? b[s].p(I, d) : (b[s] = te(I), b[s].c(), b[s].m(_, F));
|
|
185
184
|
}
|
|
186
|
-
for (; s <
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
for (; s < b.length; s += 1)
|
|
186
|
+
b[s].d(1);
|
|
187
|
+
b.length = z.length;
|
|
189
188
|
}
|
|
190
189
|
if (d & 4) {
|
|
191
190
|
C = a[2].tags || [];
|
|
192
191
|
let s;
|
|
193
192
|
for (s = 0; s < C.length; s += 1) {
|
|
194
|
-
const
|
|
195
|
-
|
|
193
|
+
const I = $(a, C, s);
|
|
194
|
+
h[s] ? h[s].p(I, d) : (h[s] = ie(I), h[s].c(), h[s].m(_, null));
|
|
196
195
|
}
|
|
197
|
-
for (; s <
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
for (; s < h.length; s += 1)
|
|
197
|
+
h[s].d(1);
|
|
198
|
+
h.length = C.length;
|
|
200
199
|
}
|
|
201
|
-
(!w || d & 4) &&
|
|
200
|
+
(!w || d & 4) && Y !== (Y = a[2].title + "") && E(J, Y), ((Q = a[2].price) == null ? void 0 : Q.value) !== void 0 && ((X = a[2].price) == null ? void 0 : X.value) !== null ? v ? v.p(a, d) : (v = ne(a), v.c(), v.m(y, M)) : v && (v.d(1), v = null), a[2].highlightText ? p ? p.p(a, d) : (p = re(a), p.c(), p.m(y, null)) : p && (p.d(1), p = null), d & 4 && D(y, "height", ((j = a[2].price) == null ? void 0 : j.value) !== void 0 && ((H = a[2].price) == null ? void 0 : H.value) !== null && a[2].highlightText ? void 0 : "1rem"), d & 2 && D(r, "transition-delay", a[1] ? L + V + "ms" : "0ms"), (!w || d & 2) && q(t, "unfolded", a[1]), (!w || d & 8) && q(t, "folded", a[3]);
|
|
202
201
|
},
|
|
203
202
|
i(a) {
|
|
204
203
|
w || (he(e.$$.fragment, a), w = !0);
|
|
@@ -207,29 +206,26 @@ function we(i) {
|
|
|
207
206
|
ve(e.$$.fragment, a), w = !1;
|
|
208
207
|
},
|
|
209
208
|
d(a) {
|
|
210
|
-
a && T(t), pe(e), W(
|
|
209
|
+
a && T(t), pe(e), W(b, a), W(h, a), v && v.d(), p && p.d();
|
|
211
210
|
}
|
|
212
211
|
};
|
|
213
212
|
}
|
|
214
|
-
const
|
|
215
|
-
function
|
|
213
|
+
const L = 400, se = 500, V = 180, oe = 500;
|
|
214
|
+
function we(i, t, e) {
|
|
216
215
|
let l, n, o;
|
|
217
|
-
var r;
|
|
218
|
-
let { tag:
|
|
219
|
-
return i.$$set = (
|
|
220
|
-
"tag" in
|
|
216
|
+
var r, m;
|
|
217
|
+
let { tag: u } = t;
|
|
218
|
+
return i.$$set = (G) => {
|
|
219
|
+
"tag" in G && e(0, u = G.tag);
|
|
221
220
|
}, i.$$.update = () => {
|
|
222
|
-
i.$$.dirty &
|
|
223
|
-
|
|
224
|
-
!1
|
|
225
|
-
)), i.$$.dirty & 2 && e(3, n = !l), i.$$.dirty & 1 && e(2, o = m.data);
|
|
226
|
-
}, [m, l, o, n, r];
|
|
221
|
+
i.$$.dirty & 49 && e(1, l = e(5, m = e(4, r = u.state) === null || r === void 0 ? void 0 : r.unfolded) !== null && m !== void 0 ? m : !1), i.$$.dirty & 2 && e(3, n = !l), i.$$.dirty & 1 && e(2, o = u.data);
|
|
222
|
+
}, [u, l, o, n, r, m];
|
|
227
223
|
}
|
|
228
|
-
class
|
|
224
|
+
class Ce extends fe {
|
|
229
225
|
constructor(t) {
|
|
230
|
-
super(), de(this, t,
|
|
226
|
+
super(), de(this, t, we, _e, ce, { tag: 0 }, ye);
|
|
231
227
|
}
|
|
232
228
|
}
|
|
233
229
|
export {
|
|
234
|
-
|
|
230
|
+
Ce as default
|
|
235
231
|
};
|