@realsee/dnalogel 3.73.3 → 3.73.5
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/CHANGELOG.md +12 -3
- package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +3684 -3569
- package/dist/index.umd.js +73 -73
- package/dist/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +232 -232
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +181 -121
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +167 -136
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +151 -150
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +41 -33
- package/libs/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/shared-utils/five/getFloorMesh.js +11 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +151 -139
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as re, init as le, safe_not_equal as
|
|
1
|
+
import { SvelteComponent as re, init as le, safe_not_equal as oe, append_styles as ne, element as h, create_component as se, space as C, text as x, attr as d, set_style as T, null_to_empty as G, toggle_class as F, insert as M, mount_component as ae, append as g, set_data as I, transition_in as me, transition_out as pe, detach as P, destroy_component as fe, src_url_equal as O, action_destroyer as ce, listen as de, destroy_each as H, run_all as ge, noop as ie } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import "../../../shared-utils/tag.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "../../../vendor/hammerjs/hammer.js";
|
|
@@ -14,10 +14,10 @@ import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
14
14
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
15
15
|
import "../../../vendor/earcut/src/earcut.js";
|
|
16
16
|
import "../../../shared-utils/five/FivePuppet.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { svelteResizeObserver as
|
|
20
|
-
import { MARKETING_MORE_ICON as
|
|
17
|
+
import be from "../../utils/px2rem.js";
|
|
18
|
+
import he from "../Common/Shadow.js";
|
|
19
|
+
import { svelteResizeObserver as ve } from "../../../shared-utils/svelte/resizeObserver.js";
|
|
20
|
+
import { MARKETING_MORE_ICON as ue, MARKETING_LIGHT_MORE_ICON as we } from "./Assets/marketingIcon.js";
|
|
21
21
|
import "../../../shared-utils/positionToVector3.js";
|
|
22
22
|
import "../../../shared-utils/five/vector3ToScreen.js";
|
|
23
23
|
import "../../../shared-utils/five/getFiveModel.js";
|
|
@@ -72,8 +72,8 @@ import "@realsee/five";
|
|
|
72
72
|
import "../../../vendor/svelte/transition/index.js";
|
|
73
73
|
import "../../../vendor/svelte/easing/index.js";
|
|
74
74
|
import "../../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
75
|
-
function
|
|
76
|
-
|
|
75
|
+
function ze(i) {
|
|
76
|
+
ne(i, "svelte-12mj8bz", '@charset "UTF-8";.svelte-12mj8bz.svelte-12mj8bz{box-sizing:border-box}.marketing.svelte-12mj8bz.svelte-12mj8bz{transform:translateY(-100%)}.marketing.svelte-12mj8bz .line.svelte-12mj8bz{position:absolute;height:1.875rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.marketing.svelte-12mj8bz .content.svelte-12mj8bz{position:relative;min-width:7.5rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.375rem;top:-1.875rem;left:-1rem;transition-property:opacity, transform;transition-duration:500ms}.marketing.svelte-12mj8bz .content .headerImage.svelte-12mj8bz{width:100%;position:absolute;left:0;top:0;transform:translateY(-100%);border-top-left-radius:0.375rem;border-top-right-radius:0.375rem}.marketing.svelte-12mj8bz .content .content-wrapper.svelte-12mj8bz{width:100%;padding:1.25rem}.title-wrapper.svelte-12mj8bz.svelte-12mj8bz{position:relative;width:100%}.title-wrapper.svelte-12mj8bz .title.svelte-12mj8bz{border-radius:0.25rem;width:100%}.title-wrapper.svelte-12mj8bz .title .text.svelte-12mj8bz{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-word;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;letter-spacing:0;font-size:1rem;font-weight:600;line-height:1.375rem}.price-wrapper.svelte-12mj8bz.svelte-12mj8bz{box-sizing:border-box;width:100%;margin-top:0.5rem;display:flex;justify-content:space-between;align-items:center}.price-wrapper.svelte-12mj8bz .price-section.svelte-12mj8bz{flex-shrink:0;overflow:hidden;white-space:nowrap}.price-wrapper.svelte-12mj8bz .price-section .value.svelte-12mj8bz{font-size:1.25rem;font-weight:700;line-height:1.5rem;font-family:DINAlternate-Bold TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.price-wrapper.svelte-12mj8bz .price-section .unit.svelte-12mj8bz{font-size:1.25rem;font-weight:700;line-height:1.5rem;font-family:DINAlternate-Bold TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif !important;letter-spacing:0}.price-wrapper.svelte-12mj8bz .action-section.svelte-12mj8bz{display:flex;align-items:center;height:1.125rem}.price-wrapper.svelte-12mj8bz .action-section .highlight-text.svelte-12mj8bz{font-size:0.75rem;line-height:1.125rem;font-weight:400;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:8.75rem}.tags-wrapper.svelte-12mj8bz.svelte-12mj8bz{position:relative;overflow:hidden;margin-top:0.3125rem}.tags-wrapper.svelte-12mj8bz .tags.svelte-12mj8bz{position:relative;display:inline-flex;max-width:100%;flex-wrap:wrap}.tags-wrapper.svelte-12mj8bz .tags .tag.svelte-12mj8bz{display:block;text-align:center;flex-shrink:0;flex-grow:0;font-size:0.75rem;font-weight:400;height:1.125rem;line-height:1.125rem;margin-right:0.25rem;margin-bottom:0.25rem;padding:0 0.25rem;border-radius:0.125rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.description.svelte-12mj8bz.svelte-12mj8bz{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;width:100%;overflow:hidden;text-overflow:ellipsis;word-break:break-word;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto;white-space:normal;margin-top:0.25rem;font-size:0.875rem;font-weight:400;line-height:1.25rem;letter-spacing:0}.more-share-wrapper.svelte-12mj8bz.svelte-12mj8bz{margin-top:0.75rem;display:block;width:100%;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between}.more-share-wrapper.svelte-12mj8bz .more-text.svelte-12mj8bz{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;height:1.25rem;font-size:0.875rem;font-weight:500;line-height:1.25rem;letter-spacing:0}.more-share-wrapper.svelte-12mj8bz .more-text .more-icon.svelte-12mj8bz{margin-left:0.125rem;width:0.875rem;height:0.875rem}.marketing.light.svelte-12mj8bz .content.svelte-12mj8bz{background-color:white}.marketing.light.svelte-12mj8bz .content .title-wrapper .title .text.svelte-12mj8bz{color:rgba(0, 0, 0, 0.8)}.marketing.light.svelte-12mj8bz .content .tags-wrapper .tags .primary-tag.svelte-12mj8bz{background:rgba(234, 208, 154, 0.5);color:#946700}.marketing.light.svelte-12mj8bz .content .tags-wrapper .tags .secondary-tag.svelte-12mj8bz{background:rgba(0, 0, 0, 0.06);color:rgba(0, 0, 0, 0.5)}.marketing.light.svelte-12mj8bz .content .description.svelte-12mj8bz{color:#000}.marketing.light.svelte-12mj8bz .content .price-wrapper.svelte-12mj8bz{color:#ae7900}.marketing.light.svelte-12mj8bz .content .more-share-wrapper .more-text.svelte-12mj8bz{font-family:PingFangSC-Medium;color:rgba(0, 0, 0, 0.8509803922)}.marketing.dark.svelte-12mj8bz .content.svelte-12mj8bz{background-color:rgba(0, 0, 0, 0.75)}.marketing.dark.svelte-12mj8bz .content .title-wrapper .title .text.svelte-12mj8bz{color:white}.marketing.dark.svelte-12mj8bz .content .tags-wrapper .tags .primary-tag.svelte-12mj8bz{background:rgba(234, 208, 154, 0.5);color:white}.marketing.dark.svelte-12mj8bz .content .tags-wrapper .tags .secondary-tag.svelte-12mj8bz{background:rgba(255, 255, 255, 0.15);color:rgba(255, 255, 255, 0.85)}.marketing.dark.svelte-12mj8bz .content .description.svelte-12mj8bz{color:#fff}.marketing.dark.svelte-12mj8bz .content .price-wrapper.svelte-12mj8bz{color:#ead09a;fill:#ead09a}.marketing.dark.svelte-12mj8bz .content .more-share-wrapper .more-text.svelte-12mj8bz{font-family:PingFangSC-Medium;color:#fff}.marketing.unfolded.svelte-12mj8bz .line.svelte-12mj8bz{transform:translateX(-50%) scale(1, 1);transition-timing-function:ease-out}.marketing.folded.svelte-12mj8bz .line.svelte-12mj8bz{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.marketing.unfolded.svelte-12mj8bz .content.svelte-12mj8bz{opacity:1;transform:translateY(0);transition-timing-function:ease-out}.marketing.folded.svelte-12mj8bz .content.svelte-12mj8bz{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}.tag.svelte-12mj8bz.svelte-12mj8bz,.text.svelte-12mj8bz.svelte-12mj8bz{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}');
|
|
77
77
|
}
|
|
78
78
|
function B(i, e, t) {
|
|
79
79
|
const l = i.slice();
|
|
@@ -83,15 +83,15 @@ function L(i, e, t) {
|
|
|
83
83
|
const l = i.slice();
|
|
84
84
|
return l[0] = e[t], l;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function X(i) {
|
|
87
87
|
let e, t;
|
|
88
88
|
return {
|
|
89
89
|
c() {
|
|
90
|
-
e =
|
|
90
|
+
e = h("img"), d(e, "class", "headerImage svelte-12mj8bz"), O(e.src, t = /*data*/
|
|
91
91
|
i[1].headerPictureUrl) || d(e, "src", t), d(e, "alt", "");
|
|
92
92
|
},
|
|
93
93
|
m(l, r) {
|
|
94
|
-
|
|
94
|
+
M(l, e, r);
|
|
95
95
|
},
|
|
96
96
|
p(l, r) {
|
|
97
97
|
r & /*data*/
|
|
@@ -99,42 +99,42 @@ function j(i) {
|
|
|
99
99
|
l[1].headerPictureUrl) && d(e, "src", t);
|
|
100
100
|
},
|
|
101
101
|
d(l) {
|
|
102
|
-
l &&
|
|
102
|
+
l && P(e);
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
let e, t, l, r,
|
|
106
|
+
function q(i) {
|
|
107
|
+
let e, t, l, r, n, o = (
|
|
108
108
|
/*primaryTags*/
|
|
109
109
|
i[4] || []
|
|
110
|
-
),
|
|
111
|
-
for (let f = 0; f <
|
|
112
|
-
|
|
113
|
-
let
|
|
110
|
+
), a = [];
|
|
111
|
+
for (let f = 0; f < o.length; f += 1)
|
|
112
|
+
a[f] = K(L(i, o, f));
|
|
113
|
+
let m = (
|
|
114
114
|
/*secondaryTags*/
|
|
115
115
|
i[3] || []
|
|
116
116
|
), c = [];
|
|
117
|
-
for (let f = 0; f <
|
|
118
|
-
c[f] = J(B(i,
|
|
117
|
+
for (let f = 0; f < m.length; f += 1)
|
|
118
|
+
c[f] = J(B(i, m, f));
|
|
119
119
|
return {
|
|
120
120
|
c() {
|
|
121
|
-
e =
|
|
122
|
-
for (let f = 0; f <
|
|
123
|
-
|
|
121
|
+
e = h("div"), t = h("div");
|
|
122
|
+
for (let f = 0; f < a.length; f += 1)
|
|
123
|
+
a[f].c();
|
|
124
124
|
l = C();
|
|
125
125
|
for (let f = 0; f < c.length; f += 1)
|
|
126
126
|
c[f].c();
|
|
127
|
-
d(t, "class", "tags svelte-
|
|
127
|
+
d(t, "class", "tags svelte-12mj8bz"), d(e, "class", "tags-wrapper svelte-12mj8bz");
|
|
128
128
|
},
|
|
129
|
-
m(f,
|
|
130
|
-
|
|
131
|
-
for (let
|
|
132
|
-
|
|
129
|
+
m(f, _) {
|
|
130
|
+
M(f, e, _), g(e, t);
|
|
131
|
+
for (let p = 0; p < a.length; p += 1)
|
|
132
|
+
a[p] && a[p].m(t, null);
|
|
133
133
|
g(t, l);
|
|
134
|
-
for (let
|
|
135
|
-
c[
|
|
136
|
-
r || (
|
|
137
|
-
ce(
|
|
134
|
+
for (let p = 0; p < c.length; p += 1)
|
|
135
|
+
c[p] && c[p].m(t, null);
|
|
136
|
+
r || (n = [
|
|
137
|
+
ce(ve.call(null, t)),
|
|
138
138
|
de(
|
|
139
139
|
t,
|
|
140
140
|
"clientHeight",
|
|
@@ -143,36 +143,36 @@ function X(i) {
|
|
|
143
143
|
)
|
|
144
144
|
], r = !0);
|
|
145
145
|
},
|
|
146
|
-
p(f,
|
|
147
|
-
if (
|
|
146
|
+
p(f, _) {
|
|
147
|
+
if (_ & /*minTagWidth, primaryTags*/
|
|
148
148
|
16) {
|
|
149
|
-
|
|
149
|
+
o = /*primaryTags*/
|
|
150
150
|
f[4] || [];
|
|
151
|
-
let
|
|
152
|
-
for (
|
|
153
|
-
const
|
|
154
|
-
|
|
151
|
+
let p;
|
|
152
|
+
for (p = 0; p < o.length; p += 1) {
|
|
153
|
+
const U = L(f, o, p);
|
|
154
|
+
a[p] ? a[p].p(U, _) : (a[p] = K(U), a[p].c(), a[p].m(t, l));
|
|
155
155
|
}
|
|
156
|
-
for (;
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
for (; p < a.length; p += 1)
|
|
157
|
+
a[p].d(1);
|
|
158
|
+
a.length = o.length;
|
|
159
159
|
}
|
|
160
|
-
if (
|
|
160
|
+
if (_ & /*minTagWidth, secondaryTags*/
|
|
161
161
|
8) {
|
|
162
|
-
|
|
162
|
+
m = /*secondaryTags*/
|
|
163
163
|
f[3] || [];
|
|
164
|
-
let
|
|
165
|
-
for (
|
|
166
|
-
const
|
|
167
|
-
c[
|
|
164
|
+
let p;
|
|
165
|
+
for (p = 0; p < m.length; p += 1) {
|
|
166
|
+
const U = B(f, m, p);
|
|
167
|
+
c[p] ? c[p].p(U, _) : (c[p] = J(U), c[p].c(), c[p].m(t, null));
|
|
168
168
|
}
|
|
169
|
-
for (;
|
|
170
|
-
c[
|
|
171
|
-
c.length =
|
|
169
|
+
for (; p < c.length; p += 1)
|
|
170
|
+
c[p].d(1);
|
|
171
|
+
c.length = m.length;
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
d(f) {
|
|
175
|
-
f &&
|
|
175
|
+
f && P(e), H(a, f), H(c, f), r = !1, ge(n);
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
}
|
|
@@ -183,18 +183,18 @@ function K(i) {
|
|
|
183
183
|
), l;
|
|
184
184
|
return {
|
|
185
185
|
c() {
|
|
186
|
-
e =
|
|
186
|
+
e = h("div"), l = x(t), d(e, "class", "tag primary-tag svelte-12mj8bz"), T(e, "min-width", W);
|
|
187
187
|
},
|
|
188
|
-
m(r,
|
|
189
|
-
|
|
188
|
+
m(r, n) {
|
|
189
|
+
M(r, e, n), g(e, l);
|
|
190
190
|
},
|
|
191
|
-
p(r,
|
|
192
|
-
|
|
191
|
+
p(r, n) {
|
|
192
|
+
n & /*primaryTags*/
|
|
193
193
|
16 && t !== (t = /*tag*/
|
|
194
194
|
r[0] + "") && I(l, t);
|
|
195
195
|
},
|
|
196
196
|
d(r) {
|
|
197
|
-
r &&
|
|
197
|
+
r && P(e);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
@@ -205,18 +205,18 @@ function J(i) {
|
|
|
205
205
|
), l;
|
|
206
206
|
return {
|
|
207
207
|
c() {
|
|
208
|
-
e =
|
|
208
|
+
e = h("div"), l = x(t), d(e, "class", "tag secondary-tag svelte-12mj8bz"), T(e, "min-width", W);
|
|
209
209
|
},
|
|
210
|
-
m(r,
|
|
211
|
-
|
|
210
|
+
m(r, n) {
|
|
211
|
+
M(r, e, n), g(e, l);
|
|
212
212
|
},
|
|
213
|
-
p(r,
|
|
214
|
-
|
|
213
|
+
p(r, n) {
|
|
214
|
+
n & /*secondaryTags*/
|
|
215
215
|
8 && t !== (t = /*tag*/
|
|
216
216
|
r[0] + "") && I(l, t);
|
|
217
217
|
},
|
|
218
218
|
d(r) {
|
|
219
|
-
r &&
|
|
219
|
+
r && P(e);
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
}
|
|
@@ -227,18 +227,18 @@ function Q(i) {
|
|
|
227
227
|
), l;
|
|
228
228
|
return {
|
|
229
229
|
c() {
|
|
230
|
-
e =
|
|
230
|
+
e = h("div"), l = x(t), d(e, "class", "description svelte-12mj8bz");
|
|
231
231
|
},
|
|
232
|
-
m(r,
|
|
233
|
-
|
|
232
|
+
m(r, n) {
|
|
233
|
+
M(r, e, n), g(e, l);
|
|
234
234
|
},
|
|
235
|
-
p(r,
|
|
236
|
-
|
|
235
|
+
p(r, n) {
|
|
236
|
+
n & /*data*/
|
|
237
237
|
2 && t !== (t = /*data*/
|
|
238
238
|
r[1].description + "") && I(l, t);
|
|
239
239
|
},
|
|
240
240
|
d(r) {
|
|
241
|
-
r &&
|
|
241
|
+
r && P(e);
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
}
|
|
@@ -246,24 +246,24 @@ function V(i) {
|
|
|
246
246
|
let e, t, l, r = (
|
|
247
247
|
/*havePrice*/
|
|
248
248
|
i[2] && Z(i)
|
|
249
|
-
),
|
|
249
|
+
), n = !/*havePrice*/
|
|
250
250
|
i[2] && /*data*/
|
|
251
251
|
i[1].highlightText && ee(i);
|
|
252
252
|
return {
|
|
253
253
|
c() {
|
|
254
|
-
e =
|
|
254
|
+
e = h("div"), r && r.c(), t = C(), l = h("div"), n && n.c(), d(l, "class", "action-section svelte-12mj8bz"), d(e, "class", "price-wrapper svelte-12mj8bz");
|
|
255
255
|
},
|
|
256
|
-
m(
|
|
257
|
-
|
|
256
|
+
m(o, a) {
|
|
257
|
+
M(o, e, a), r && r.m(e, null), g(e, t), g(e, l), n && n.m(l, null);
|
|
258
258
|
},
|
|
259
|
-
p(
|
|
259
|
+
p(o, a) {
|
|
260
260
|
/*havePrice*/
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
o[2] ? r ? r.p(o, a) : (r = Z(o), r.c(), r.m(e, t)) : r && (r.d(1), r = null), !/*havePrice*/
|
|
262
|
+
o[2] && /*data*/
|
|
263
|
+
o[1].highlightText ? n ? n.p(o, a) : (n = ee(o), n.c(), n.m(l, null)) : n && (n.d(1), n = null);
|
|
264
264
|
},
|
|
265
|
-
d(
|
|
266
|
-
|
|
265
|
+
d(o) {
|
|
266
|
+
o && P(e), r && r.d(), n && n.d();
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
}
|
|
@@ -271,25 +271,25 @@ function Z(i) {
|
|
|
271
271
|
let e, t, l = (
|
|
272
272
|
/*data*/
|
|
273
273
|
i[1].price.value + ""
|
|
274
|
-
), r,
|
|
274
|
+
), r, n, o = (
|
|
275
275
|
/*data*/
|
|
276
276
|
i[1].price.unit && $(i)
|
|
277
277
|
);
|
|
278
278
|
return {
|
|
279
279
|
c() {
|
|
280
|
-
e =
|
|
280
|
+
e = h("div"), t = h("span"), r = x(l), n = C(), o && o.c(), d(t, "class", "value svelte-12mj8bz"), d(e, "class", "price-section svelte-12mj8bz");
|
|
281
281
|
},
|
|
282
|
-
m(
|
|
283
|
-
|
|
282
|
+
m(a, m) {
|
|
283
|
+
M(a, e, m), g(e, t), g(t, r), g(e, n), o && o.m(e, null);
|
|
284
284
|
},
|
|
285
|
-
p(
|
|
286
|
-
|
|
285
|
+
p(a, m) {
|
|
286
|
+
m & /*data*/
|
|
287
287
|
2 && l !== (l = /*data*/
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
a[1].price.value + "") && I(r, l), /*data*/
|
|
289
|
+
a[1].price.unit ? o ? o.p(a, m) : (o = $(a), o.c(), o.m(e, null)) : o && (o.d(1), o = null);
|
|
290
290
|
},
|
|
291
|
-
d(
|
|
292
|
-
|
|
291
|
+
d(a) {
|
|
292
|
+
a && P(e), o && o.d();
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
}
|
|
@@ -300,18 +300,18 @@ function $(i) {
|
|
|
300
300
|
), l;
|
|
301
301
|
return {
|
|
302
302
|
c() {
|
|
303
|
-
e =
|
|
303
|
+
e = h("span"), l = x(t), d(e, "class", "unit svelte-12mj8bz");
|
|
304
304
|
},
|
|
305
|
-
m(r,
|
|
306
|
-
|
|
305
|
+
m(r, n) {
|
|
306
|
+
M(r, e, n), g(e, l);
|
|
307
307
|
},
|
|
308
|
-
p(r,
|
|
309
|
-
|
|
308
|
+
p(r, n) {
|
|
309
|
+
n & /*data*/
|
|
310
310
|
2 && t !== (t = /*data*/
|
|
311
311
|
r[1].price.unit + "") && I(l, t);
|
|
312
312
|
},
|
|
313
313
|
d(r) {
|
|
314
|
-
r &&
|
|
314
|
+
r && P(e);
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
}
|
|
@@ -322,89 +322,89 @@ function ee(i) {
|
|
|
322
322
|
), l;
|
|
323
323
|
return {
|
|
324
324
|
c() {
|
|
325
|
-
e =
|
|
325
|
+
e = h("span"), l = x(t), d(e, "class", "highlight-text svelte-12mj8bz");
|
|
326
326
|
},
|
|
327
|
-
m(r,
|
|
328
|
-
|
|
327
|
+
m(r, n) {
|
|
328
|
+
M(r, e, n), g(e, l);
|
|
329
329
|
},
|
|
330
|
-
p(r,
|
|
331
|
-
|
|
330
|
+
p(r, n) {
|
|
331
|
+
n & /*data*/
|
|
332
332
|
2 && t !== (t = /*data*/
|
|
333
333
|
r[1].highlightText + "") && I(l, t);
|
|
334
334
|
},
|
|
335
335
|
d(r) {
|
|
336
|
-
r &&
|
|
336
|
+
r && P(e);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function te(i) {
|
|
341
341
|
let e, t, l, r;
|
|
342
|
-
function
|
|
342
|
+
function n(m, c) {
|
|
343
343
|
return (
|
|
344
344
|
/*isLight*/
|
|
345
|
-
|
|
345
|
+
m[13] ? _e : je
|
|
346
346
|
);
|
|
347
347
|
}
|
|
348
|
-
let
|
|
348
|
+
let o = n(i), a = o(i);
|
|
349
349
|
return {
|
|
350
350
|
c() {
|
|
351
|
-
e =
|
|
351
|
+
e = h("div"), t = h("div"), l = x(
|
|
352
352
|
/*viewMoreText*/
|
|
353
353
|
i[7]
|
|
354
|
-
), r = C(),
|
|
354
|
+
), r = C(), a.c(), d(t, "class", "more-text svelte-12mj8bz"), d(e, "class", "more-share-wrapper svelte-12mj8bz");
|
|
355
355
|
},
|
|
356
|
-
m(
|
|
357
|
-
|
|
356
|
+
m(m, c) {
|
|
357
|
+
M(m, e, c), g(e, t), g(t, l), g(t, r), a.m(t, null);
|
|
358
358
|
},
|
|
359
|
-
p(
|
|
359
|
+
p(m, c) {
|
|
360
360
|
c & /*viewMoreText*/
|
|
361
361
|
128 && I(
|
|
362
362
|
l,
|
|
363
363
|
/*viewMoreText*/
|
|
364
|
-
|
|
365
|
-
),
|
|
364
|
+
m[7]
|
|
365
|
+
), o === (o = n(m)) && a ? a.p(m, c) : (a.d(1), a = o(m), a && (a.c(), a.m(t, null)));
|
|
366
366
|
},
|
|
367
|
-
d(
|
|
368
|
-
|
|
367
|
+
d(m) {
|
|
368
|
+
m && P(e), a.d();
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function je(i) {
|
|
373
373
|
let e, t;
|
|
374
374
|
return {
|
|
375
375
|
c() {
|
|
376
|
-
e =
|
|
376
|
+
e = h("img"), d(e, "class", "more-icon svelte-12mj8bz"), O(e.src, t = ue) || d(e, "src", t), d(e, "alt", "查看更多");
|
|
377
377
|
},
|
|
378
378
|
m(l, r) {
|
|
379
|
-
|
|
379
|
+
M(l, e, r);
|
|
380
380
|
},
|
|
381
381
|
p: ie,
|
|
382
382
|
d(l) {
|
|
383
|
-
l &&
|
|
383
|
+
l && P(e);
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function _e(i) {
|
|
388
388
|
let e, t;
|
|
389
389
|
return {
|
|
390
390
|
c() {
|
|
391
|
-
e =
|
|
391
|
+
e = h("img"), d(e, "class", "more-icon svelte-12mj8bz"), O(e.src, t = we) || d(e, "src", t), d(e, "alt", "查看更多");
|
|
392
392
|
},
|
|
393
393
|
m(l, r) {
|
|
394
|
-
|
|
394
|
+
M(l, e, r);
|
|
395
395
|
},
|
|
396
396
|
p: ie,
|
|
397
397
|
d(l) {
|
|
398
|
-
l &&
|
|
398
|
+
l && P(e);
|
|
399
399
|
}
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
let e, t, l, r, o, a,
|
|
402
|
+
function ke(i) {
|
|
403
|
+
let e, t, l, r, n, o, a, m, c, f, _, p = (
|
|
404
404
|
/*data*/
|
|
405
405
|
i[1].title + ""
|
|
406
|
-
),
|
|
407
|
-
t = new
|
|
406
|
+
), U, D, R, S, N, k, y;
|
|
407
|
+
t = new he({
|
|
408
408
|
props: {
|
|
409
409
|
visible: (
|
|
410
410
|
/*unfolded*/
|
|
@@ -417,26 +417,26 @@ function ye(i) {
|
|
|
417
417
|
spreadRadius: 75
|
|
418
418
|
}
|
|
419
419
|
});
|
|
420
|
-
let
|
|
420
|
+
let u = (
|
|
421
421
|
/*data*/
|
|
422
|
-
i[1].headerPictureUrl &&
|
|
423
|
-
),
|
|
422
|
+
i[1].headerPictureUrl && X(i)
|
|
423
|
+
), v = (
|
|
424
424
|
/*hasTags*/
|
|
425
|
-
i[9] &&
|
|
426
|
-
),
|
|
425
|
+
i[9] && q(i)
|
|
426
|
+
), w = (
|
|
427
427
|
/*data*/
|
|
428
428
|
i[1].description && Q(i)
|
|
429
|
-
),
|
|
429
|
+
), z = (
|
|
430
430
|
/*havePrice*/
|
|
431
431
|
(i[2] || /*data*/
|
|
432
432
|
i[1].highlightText) && V(i)
|
|
433
|
-
),
|
|
433
|
+
), j = (
|
|
434
434
|
/*hasMore*/
|
|
435
435
|
i[8] && te(i)
|
|
436
436
|
);
|
|
437
437
|
return {
|
|
438
438
|
c() {
|
|
439
|
-
e =
|
|
439
|
+
e = h("div"), se(t.$$.fragment), l = C(), r = h("div"), n = C(), o = h("div"), u && u.c(), a = C(), m = h("div"), c = h("div"), f = h("div"), _ = h("div"), U = x(p), D = C(), v && v.c(), R = C(), w && w.c(), S = C(), z && z.c(), N = C(), j && j.c(), d(r, "class", "line svelte-12mj8bz"), T(
|
|
440
440
|
r,
|
|
441
441
|
"transition-delay",
|
|
442
442
|
/*unfolded*/
|
|
@@ -447,34 +447,34 @@ function ye(i) {
|
|
|
447
447
|
/*lineDelayFolded*/
|
|
448
448
|
i[11] + "ms"
|
|
449
449
|
)
|
|
450
|
-
), d(
|
|
451
|
-
|
|
450
|
+
), d(_, "class", "text svelte-12mj8bz"), d(f, "class", "title svelte-12mj8bz"), d(c, "class", "title-wrapper svelte-12mj8bz"), d(m, "class", "content-wrapper svelte-12mj8bz"), T(
|
|
451
|
+
m,
|
|
452
452
|
"padding-top",
|
|
453
453
|
/*data*/
|
|
454
454
|
i[1].headerPictureUrl ? "10px" : "20px"
|
|
455
|
-
), d(
|
|
455
|
+
), d(o, "class", "content svelte-12mj8bz"), T(o, "max-width", be(
|
|
456
456
|
/*maxWidth*/
|
|
457
457
|
i[15]
|
|
458
|
-
)),
|
|
459
|
-
|
|
458
|
+
)), T(
|
|
459
|
+
o,
|
|
460
460
|
"transition-delay",
|
|
461
461
|
/*unfolded*/
|
|
462
462
|
i[6] ? (
|
|
463
463
|
/*contentDelayUnfolded*/
|
|
464
464
|
i[10] + "ms"
|
|
465
465
|
) : "0ms"
|
|
466
|
-
),
|
|
467
|
-
|
|
466
|
+
), T(
|
|
467
|
+
o,
|
|
468
468
|
"border-top-left-radius",
|
|
469
469
|
/*data*/
|
|
470
470
|
i[1].headerPictureUrl ? "0px" : "6px"
|
|
471
|
-
),
|
|
472
|
-
|
|
471
|
+
), T(
|
|
472
|
+
o,
|
|
473
473
|
"border-top-right-radius",
|
|
474
474
|
/*data*/
|
|
475
475
|
i[1].headerPictureUrl ? "0px" : "6px"
|
|
476
|
-
), d(e, "class",
|
|
477
|
-
i[5]}`) + " svelte-
|
|
476
|
+
), d(e, "class", k = G(`marketing ${/*theme*/
|
|
477
|
+
i[5]}`) + " svelte-12mj8bz"), F(
|
|
478
478
|
e,
|
|
479
479
|
"unfolded",
|
|
480
480
|
/*unfolded*/
|
|
@@ -486,155 +486,155 @@ function ye(i) {
|
|
|
486
486
|
i[14]
|
|
487
487
|
);
|
|
488
488
|
},
|
|
489
|
-
m(
|
|
490
|
-
|
|
489
|
+
m(s, b) {
|
|
490
|
+
M(s, e, b), ae(t, e, null), g(e, l), g(e, r), g(e, n), g(e, o), u && u.m(o, null), g(o, a), g(o, m), g(m, c), g(c, f), g(f, _), g(_, U), g(m, D), v && v.m(m, null), g(m, R), w && w.m(m, null), g(m, S), z && z.m(m, null), g(m, N), j && j.m(m, null), y = !0;
|
|
491
491
|
},
|
|
492
|
-
p(
|
|
492
|
+
p(s, [b]) {
|
|
493
493
|
const E = {};
|
|
494
|
-
|
|
494
|
+
b & /*unfolded*/
|
|
495
495
|
64 && (E.visible = /*unfolded*/
|
|
496
|
-
|
|
497
|
-
6208 &&
|
|
496
|
+
s[6]), t.$set(E), b & /*unfolded, lineDelayUnfolded, lineDelayFolded*/
|
|
497
|
+
6208 && T(
|
|
498
498
|
r,
|
|
499
499
|
"transition-delay",
|
|
500
500
|
/*unfolded*/
|
|
501
|
-
|
|
501
|
+
s[6] ? (
|
|
502
502
|
/*lineDelayUnfolded*/
|
|
503
|
-
|
|
503
|
+
s[12] + "ms"
|
|
504
504
|
) : (
|
|
505
505
|
/*lineDelayFolded*/
|
|
506
|
-
|
|
506
|
+
s[11] + "ms"
|
|
507
507
|
)
|
|
508
508
|
), /*data*/
|
|
509
|
-
|
|
510
|
-
2) &&
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
2 &&
|
|
518
|
-
|
|
509
|
+
s[1].headerPictureUrl ? u ? u.p(s, b) : (u = X(s), u.c(), u.m(o, a)) : u && (u.d(1), u = null), (!y || b & /*data*/
|
|
510
|
+
2) && p !== (p = /*data*/
|
|
511
|
+
s[1].title + "") && I(U, p), /*hasTags*/
|
|
512
|
+
s[9] ? v ? v.p(s, b) : (v = q(s), v.c(), v.m(m, R)) : v && (v.d(1), v = null), /*data*/
|
|
513
|
+
s[1].description ? w ? w.p(s, b) : (w = Q(s), w.c(), w.m(m, S)) : w && (w.d(1), w = null), /*havePrice*/
|
|
514
|
+
s[2] || /*data*/
|
|
515
|
+
s[1].highlightText ? z ? z.p(s, b) : (z = V(s), z.c(), z.m(m, N)) : z && (z.d(1), z = null), /*hasMore*/
|
|
516
|
+
s[8] ? j ? j.p(s, b) : (j = te(s), j.c(), j.m(m, null)) : j && (j.d(1), j = null), b & /*data*/
|
|
517
|
+
2 && T(
|
|
518
|
+
m,
|
|
519
519
|
"padding-top",
|
|
520
520
|
/*data*/
|
|
521
|
-
|
|
522
|
-
),
|
|
523
|
-
1088 &&
|
|
524
|
-
|
|
521
|
+
s[1].headerPictureUrl ? "10px" : "20px"
|
|
522
|
+
), b & /*unfolded, contentDelayUnfolded*/
|
|
523
|
+
1088 && T(
|
|
524
|
+
o,
|
|
525
525
|
"transition-delay",
|
|
526
526
|
/*unfolded*/
|
|
527
|
-
|
|
527
|
+
s[6] ? (
|
|
528
528
|
/*contentDelayUnfolded*/
|
|
529
|
-
|
|
529
|
+
s[10] + "ms"
|
|
530
530
|
) : "0ms"
|
|
531
|
-
),
|
|
532
|
-
2 &&
|
|
533
|
-
|
|
531
|
+
), b & /*data*/
|
|
532
|
+
2 && T(
|
|
533
|
+
o,
|
|
534
534
|
"border-top-left-radius",
|
|
535
535
|
/*data*/
|
|
536
|
-
|
|
537
|
-
),
|
|
538
|
-
2 &&
|
|
539
|
-
|
|
536
|
+
s[1].headerPictureUrl ? "0px" : "6px"
|
|
537
|
+
), b & /*data*/
|
|
538
|
+
2 && T(
|
|
539
|
+
o,
|
|
540
540
|
"border-top-right-radius",
|
|
541
541
|
/*data*/
|
|
542
|
-
|
|
543
|
-
), (!
|
|
544
|
-
32 &&
|
|
545
|
-
|
|
542
|
+
s[1].headerPictureUrl ? "0px" : "6px"
|
|
543
|
+
), (!y || b & /*theme*/
|
|
544
|
+
32 && k !== (k = G(`marketing ${/*theme*/
|
|
545
|
+
s[5]}`) + " svelte-12mj8bz")) && d(e, "class", k), (!y || b & /*theme, unfolded*/
|
|
546
546
|
96) && F(
|
|
547
547
|
e,
|
|
548
548
|
"unfolded",
|
|
549
549
|
/*unfolded*/
|
|
550
|
-
|
|
551
|
-
), (!
|
|
550
|
+
s[6]
|
|
551
|
+
), (!y || b & /*theme, folded*/
|
|
552
552
|
16416) && F(
|
|
553
553
|
e,
|
|
554
554
|
"folded",
|
|
555
555
|
/*folded*/
|
|
556
|
-
|
|
556
|
+
s[14]
|
|
557
557
|
);
|
|
558
558
|
},
|
|
559
|
-
i(
|
|
560
|
-
|
|
559
|
+
i(s) {
|
|
560
|
+
y || (me(t.$$.fragment, s), y = !0);
|
|
561
561
|
},
|
|
562
|
-
o(
|
|
563
|
-
|
|
562
|
+
o(s) {
|
|
563
|
+
pe(t.$$.fragment, s), y = !1;
|
|
564
564
|
},
|
|
565
|
-
d(
|
|
566
|
-
|
|
565
|
+
d(s) {
|
|
566
|
+
s && P(e), fe(t), u && u.d(), v && v.d(), w && w.d(), z && z.d(), j && j.d();
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
570
|
const W = 40;
|
|
571
|
-
function
|
|
572
|
-
let l, r, o, a,
|
|
573
|
-
var
|
|
574
|
-
const
|
|
575
|
-
if (typeof
|
|
576
|
-
return
|
|
577
|
-
if (
|
|
571
|
+
function ye(i, e, t) {
|
|
572
|
+
let l, r, n, o, a, m, c, f, _, p, U, D, R, S, N, { tag: k } = e, y, u = (() => {
|
|
573
|
+
var b;
|
|
574
|
+
const s = (b = k.data.limitWidth) != null ? b : !0;
|
|
575
|
+
if (typeof s == "number")
|
|
576
|
+
return s;
|
|
577
|
+
if (s === !0)
|
|
578
578
|
return 280;
|
|
579
|
-
})(),
|
|
580
|
-
function
|
|
581
|
-
Math.abs(
|
|
579
|
+
})(), v = 0, w = !1;
|
|
580
|
+
function z(s) {
|
|
581
|
+
Math.abs(y - s) > 5 && (t(17, y = s), setTimeout(
|
|
582
582
|
() => {
|
|
583
|
-
t(19,
|
|
583
|
+
t(19, w = !1);
|
|
584
584
|
},
|
|
585
585
|
100
|
|
586
586
|
));
|
|
587
587
|
}
|
|
588
|
-
const
|
|
589
|
-
return i.$$set = (
|
|
590
|
-
"tag" in
|
|
588
|
+
const j = (s) => z(s.detail);
|
|
589
|
+
return i.$$set = (s) => {
|
|
590
|
+
"tag" in s && t(0, k = s.tag);
|
|
591
591
|
}, i.$$.update = () => {
|
|
592
|
-
var
|
|
592
|
+
var s, b, E, Y;
|
|
593
593
|
i.$$.dirty & /*tag*/
|
|
594
|
-
1 && t(6, l = (
|
|
594
|
+
1 && t(6, l = (b = (s = k.state) == null ? void 0 : s.unfolded) != null ? b : !1), i.$$.dirty & /*unfolded*/
|
|
595
595
|
64 && t(14, r = !l), i.$$.dirty & /*tag*/
|
|
596
|
-
1 && t(1,
|
|
597
|
-
2 && t(2,
|
|
598
|
-
1 && t(5,
|
|
599
|
-
32 && t(13,
|
|
600
|
-
917504 && (!
|
|
601
|
-
262146 && t(4, c = (
|
|
602
|
-
262160 && t(20, f = Math.max(0,
|
|
603
|
-
1048578 && t(3,
|
|
604
|
-
24 && t(9, R = c.length > 0 ||
|
|
605
|
-
6 && (
|
|
606
|
-
1 && t(8, S =
|
|
607
|
-
1 && t(7, N = (() => A(
|
|
608
|
-
}, t(12,
|
|
609
|
-
y,
|
|
610
|
-
o,
|
|
611
|
-
a,
|
|
596
|
+
1 && t(1, n = k.data), i.$$.dirty & /*data*/
|
|
597
|
+
2 && t(2, o = A((E = n.price) == null ? void 0 : E.value) && ((Y = n.price) == null ? void 0 : Y.value) !== ""), i.$$.dirty & /*tag*/
|
|
598
|
+
1 && t(5, a = k.data.theme || "light"), i.$$.dirty & /*theme*/
|
|
599
|
+
32 && t(13, m = a === "light"), i.$$.dirty & /*tagsCalculated, tagsOffsetHeight, maxTagsLength*/
|
|
600
|
+
917504 && (!w || u && u > 0) && (t(18, v = Math.max(1, Math.floor(((u || 172) - 20) / W))), y !== void 0 && y > 40 && t(18, v = Math.max(1, v - 1)), t(19, w = !0)), i.$$.dirty & /*data, maxTagsLength*/
|
|
601
|
+
262146 && t(4, c = (n.brandTags || []).filter(Boolean).slice(0, v)), i.$$.dirty & /*maxTagsLength, primaryTags*/
|
|
602
|
+
262160 && t(20, f = Math.max(0, v - c.length)), i.$$.dirty & /*data, secondaryTagsLimit*/
|
|
603
|
+
1048578 && t(3, _ = (n.tags || []).filter(Boolean).slice(0, f)), i.$$.dirty & /*primaryTags, secondaryTags*/
|
|
604
|
+
24 && t(9, R = c.length > 0 || _.length > 0), i.$$.dirty & /*havePrice, data*/
|
|
605
|
+
6 && (o || n.highlightText), i.$$.dirty & /*tag*/
|
|
606
|
+
1 && t(8, S = k.config.popoverConfig.toolbar.showMore), i.$$.dirty & /*tag*/
|
|
607
|
+
1 && t(7, N = (() => A(k.config.popoverConfig.viewMoreText) && k.config.popoverConfig.viewMoreText.trim() !== "" ? k.config.popoverConfig.viewMoreText : "查看更多")());
|
|
608
|
+
}, t(12, p = 400), t(11, U = 180 + 500 - 500 - 40), t(10, D = 400 + 180), [
|
|
612
609
|
k,
|
|
610
|
+
n,
|
|
611
|
+
o,
|
|
612
|
+
_,
|
|
613
613
|
c,
|
|
614
|
-
|
|
614
|
+
a,
|
|
615
615
|
l,
|
|
616
616
|
N,
|
|
617
617
|
S,
|
|
618
618
|
R,
|
|
619
619
|
D,
|
|
620
|
-
|
|
621
|
-
m,
|
|
620
|
+
U,
|
|
622
621
|
p,
|
|
622
|
+
m,
|
|
623
623
|
r,
|
|
624
|
-
w,
|
|
625
|
-
_,
|
|
626
|
-
T,
|
|
627
624
|
u,
|
|
628
|
-
|
|
625
|
+
z,
|
|
626
|
+
y,
|
|
627
|
+
v,
|
|
628
|
+
w,
|
|
629
629
|
f,
|
|
630
|
-
|
|
630
|
+
j
|
|
631
631
|
];
|
|
632
632
|
}
|
|
633
|
-
class
|
|
633
|
+
class Xt extends re {
|
|
634
634
|
constructor(e) {
|
|
635
|
-
super(), le(this, e,
|
|
635
|
+
super(), le(this, e, ye, ke, oe, { tag: 0 }, ze);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
export {
|
|
639
|
-
|
|
639
|
+
Xt as default
|
|
640
640
|
};
|