@realsee/dnalogel 2.3.7 → 2.3.8-alpha.0
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.cjs.js +22 -22
- package/dist/index.js +1003 -1003
- package/dist/index.umd.js +18 -18
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +51 -51
- package/libs/PanoTagPlugin/Components/TagWrapper.js +56 -56
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var J = (i, t, e) => new Promise((n, o) => {
|
|
|
29
29
|
});
|
|
30
30
|
import * as si from "@tweenjs/tween.js";
|
|
31
31
|
import dn, { Tween as gl, Easing as Al } from "@tweenjs/tween.js";
|
|
32
|
-
import { Camera as vl, Five as
|
|
32
|
+
import { Camera as vl, Five as Be, Subscribe as nt } from "@realsee/five";
|
|
33
33
|
import * as E from "three";
|
|
34
34
|
import { Vector3 as _, Group as _i, Raycaster as Qt, MeshBasicMaterial as un, CanvasTexture as bl, AnimationMixer as yl, Color as An, TextureLoader as Nr, Vector2 as Qe, PlaneGeometry as wl, sRGBEncoding as Cl, Mesh as Fn, CurvePath as El, LineCurve3 as Pl, TubeGeometry as Il, ShaderMaterial as xl, SphereGeometry as kl, DoubleSide as Wr, RingGeometry as Dl, Quaternion as Xr, Euler as yo, Object3D as Ll } from "three";
|
|
35
35
|
import { CSS3DRenderer as Sl, CSS3DObject as Yn } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -305,7 +305,7 @@ class Fl extends Hl {
|
|
|
305
305
|
if (!this.canvas[this.uuid])
|
|
306
306
|
return;
|
|
307
307
|
const { width: d, height: u } = this.canvas[this.uuid];
|
|
308
|
-
c && c.clearRect(0, 0, d, u), this.data[this.uuid].forEach((
|
|
308
|
+
c && c.clearRect(0, 0, d, u), this.data[this.uuid].forEach((m) => this.handleDrawLine(this.uuid, m, { withUndo: !0 }));
|
|
309
309
|
});
|
|
310
310
|
const s = document.createElement("a");
|
|
311
311
|
return s.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--close", s.addEventListener("click", (a) => {
|
|
@@ -353,71 +353,71 @@ class Fl extends Hl {
|
|
|
353
353
|
const o = this.color || "#6D92FF";
|
|
354
354
|
n.strokeStyle = o;
|
|
355
355
|
let s = null, r = [], a, l = [], c = 0;
|
|
356
|
-
const d = (u, h,
|
|
357
|
-
const
|
|
358
|
-
n.strokeStyle =
|
|
356
|
+
const d = (u, h, m) => {
|
|
357
|
+
const p = this.color || "#ff0000";
|
|
358
|
+
n.strokeStyle = p, n.beginPath(), n.moveTo(u.x, u.y), n.quadraticCurveTo(h.x, h.y, m.x, m.y), n.stroke();
|
|
359
359
|
};
|
|
360
360
|
e.onmousedown = (u) => {
|
|
361
361
|
u.preventDefault(), c = Date.now();
|
|
362
|
-
const h = u.clientX,
|
|
363
|
-
r = [], r.push({ x: h, y:
|
|
362
|
+
const h = u.clientX, m = u.clientY;
|
|
363
|
+
r = [], r.push({ x: h, y: m }), s = { x: h, y: m }, a = wn({ x: h, y: m }, this.clientWidth, this.clientHeight), l = [];
|
|
364
364
|
}, e.onmousemove = (u) => {
|
|
365
365
|
if (u.preventDefault(), !s)
|
|
366
366
|
return;
|
|
367
|
-
const h = Number(u.clientX),
|
|
368
|
-
if (Math.abs(h - s.x) < 5 && Math.abs(
|
|
367
|
+
const h = Number(u.clientX), m = Number(u.clientY);
|
|
368
|
+
if (Math.abs(h - s.x) < 5 && Math.abs(m - s.y) < 5 || (r.push({ x: h, y: m }), l.push(wn({ x: h, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
369
369
|
return;
|
|
370
|
-
const { control:
|
|
371
|
-
!
|
|
370
|
+
const { control: p, end: g } = Cn(r);
|
|
371
|
+
!p || !g || (d(s, p, g), s = g);
|
|
372
372
|
}, e.onmouseup = (u) => {
|
|
373
373
|
if (u.preventDefault(), s = null, r.length < 3)
|
|
374
374
|
return;
|
|
375
375
|
this.data[this.uuid] || (this.data[this.uuid] = []);
|
|
376
|
-
const h = Date.now() - c,
|
|
376
|
+
const h = Date.now() - c, m = {
|
|
377
377
|
move: Object.assign({}, a),
|
|
378
378
|
uuid: this.uuid,
|
|
379
379
|
line: [...l],
|
|
380
380
|
color: this.color,
|
|
381
381
|
duration: h < 1280 ? h : h < 2e3 ? 1280 : 0
|
|
382
382
|
};
|
|
383
|
-
this.data[this.uuid].push(
|
|
383
|
+
this.data[this.uuid].push(m), Gn(() => {
|
|
384
384
|
this.emitStateChange({
|
|
385
385
|
type: ft.Drawline,
|
|
386
386
|
color: this.color,
|
|
387
387
|
ready: this.ready,
|
|
388
|
-
state:
|
|
388
|
+
state: m,
|
|
389
389
|
uuid: this.uuid
|
|
390
390
|
});
|
|
391
391
|
});
|
|
392
392
|
}, e.ontouchstart = (u) => {
|
|
393
393
|
u.preventDefault(), c = Date.now();
|
|
394
|
-
const h = u.touches[0].clientX,
|
|
395
|
-
r = [], r.push({ x: h, y:
|
|
394
|
+
const h = u.touches[0].clientX, m = u.touches[0].clientY;
|
|
395
|
+
r = [], r.push({ x: h, y: m }), s = { x: h, y: m }, console.log("ontouchstart", h, m, s), a = wn({ x: h, y: m }, this.clientWidth, this.clientHeight), l = [];
|
|
396
396
|
}, e.ontouchmove = (u) => {
|
|
397
397
|
if (u.preventDefault(), !s)
|
|
398
398
|
return;
|
|
399
|
-
const h = Number(u.touches[0].clientX),
|
|
400
|
-
if (Math.abs(h - s.x) < 5 && Math.abs(
|
|
399
|
+
const h = Number(u.touches[0].clientX), m = Number(u.touches[0].clientY);
|
|
400
|
+
if (Math.abs(h - s.x) < 5 && Math.abs(m - s.y) < 5 || (r.push({ x: h, y: m }), l.push(wn({ x: h, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
401
401
|
return;
|
|
402
|
-
const { control:
|
|
403
|
-
!
|
|
402
|
+
const { control: p, end: g } = Cn(r);
|
|
403
|
+
!p || !g || (d(s, p, g), s = g);
|
|
404
404
|
}, e.ontouchend = e.ontouchcancel = (u) => {
|
|
405
405
|
if (u.preventDefault(), s = null, r.length < 3)
|
|
406
406
|
return;
|
|
407
407
|
this.data[this.uuid] || (this.data[this.uuid] = []);
|
|
408
|
-
const h = Date.now() - c,
|
|
408
|
+
const h = Date.now() - c, m = {
|
|
409
409
|
move: Object.assign({}, a),
|
|
410
410
|
line: [...l],
|
|
411
411
|
uuid: this.uuid,
|
|
412
412
|
color: this.color,
|
|
413
413
|
duration: h < 1280 ? h : h < 2e3 ? 1280 : 0
|
|
414
414
|
};
|
|
415
|
-
this.data[this.uuid].push(
|
|
415
|
+
this.data[this.uuid].push(m), Gn(() => {
|
|
416
416
|
this.emitStateChange({
|
|
417
417
|
type: ft.Drawline,
|
|
418
418
|
color: this.color,
|
|
419
419
|
ready: this.ready,
|
|
420
|
-
state:
|
|
420
|
+
state: m,
|
|
421
421
|
uuid: this.uuid
|
|
422
422
|
});
|
|
423
423
|
});
|
|
@@ -484,34 +484,34 @@ class Fl extends Hl {
|
|
|
484
484
|
if (!a)
|
|
485
485
|
return;
|
|
486
486
|
const { line: l = [], color: c = "black", duration: d = 0, uuid: u } = n, h = gi(n.move || {}, this.clientWidth, this.clientHeight);
|
|
487
|
-
let
|
|
487
|
+
let m = [h];
|
|
488
488
|
if (a.strokeStyle = c, a.beginPath(), a.moveTo(h.x, h.y), d && !o) {
|
|
489
|
-
let
|
|
489
|
+
let p = [];
|
|
490
490
|
const g = this;
|
|
491
|
-
g.tween = Ql({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step:
|
|
491
|
+
g.tween = Ql({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: v }) => {
|
|
492
492
|
var w;
|
|
493
493
|
if (g.tweening = !0, !g.ready)
|
|
494
494
|
return a.clearRect(0, 0, g.canvas[u].width, g.canvas[u].height), (w = g.tween) == null ? void 0 : w.stop();
|
|
495
|
-
const
|
|
496
|
-
if (!
|
|
497
|
-
if (
|
|
495
|
+
const A = Math.floor(v);
|
|
496
|
+
if (!p.find((y) => y === A)) {
|
|
497
|
+
if (p.push(A), console.log("__debug__", l, l[A], A), m.push(gi(l[A], g.clientWidth, g.clientHeight)), m.length < 3)
|
|
498
498
|
return;
|
|
499
|
-
const { control: y, end: x } = Cn(
|
|
499
|
+
const { control: y, end: x } = Cn(m);
|
|
500
500
|
if (!y || !x)
|
|
501
501
|
return;
|
|
502
502
|
a.quadraticCurveTo(y.x, y.y, x.x, x.y), a.stroke();
|
|
503
503
|
}
|
|
504
|
-
}).onComplete((
|
|
505
|
-
g.tween = void 0, g.tweening = !1,
|
|
504
|
+
}).onComplete((v) => {
|
|
505
|
+
g.tween = void 0, g.tweening = !1, p = [], m = [], s && s(), r();
|
|
506
506
|
});
|
|
507
507
|
} else {
|
|
508
|
-
for (let
|
|
509
|
-
if (
|
|
508
|
+
for (let p = 0; p < l.length; p++) {
|
|
509
|
+
if (m.push(gi(l[p], this.clientWidth, this.clientHeight)), m.length < 3)
|
|
510
510
|
continue;
|
|
511
|
-
const { control: g, end:
|
|
512
|
-
!g || !
|
|
511
|
+
const { control: g, end: v } = Cn(m);
|
|
512
|
+
!g || !v || a.quadraticCurveTo(g.x, g.y, v.x, v.y);
|
|
513
513
|
}
|
|
514
|
-
a.stroke(),
|
|
514
|
+
a.stroke(), m = [], s && s(), r();
|
|
515
515
|
}
|
|
516
516
|
})));
|
|
517
517
|
}
|
|
@@ -595,7 +595,7 @@ const W0 = (i, t) => {
|
|
|
595
595
|
l.add(I);
|
|
596
596
|
}
|
|
597
597
|
l.add(d);
|
|
598
|
-
const
|
|
598
|
+
const m = () => {
|
|
599
599
|
if (n)
|
|
600
600
|
return;
|
|
601
601
|
u = L(i.model, c.fov, c.aspect), h = i.model.bounding.getCenter(new E.Vector3()), l.remove(d), d = z(i.model), l.add(d), n = !0, S();
|
|
@@ -615,21 +615,21 @@ const W0 = (i, t) => {
|
|
|
615
615
|
return O.children.forEach((Z) => W.add(z(Z))), W;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
},
|
|
618
|
+
}, p = () => {
|
|
619
619
|
if (!!i.renderer)
|
|
620
620
|
return s || (s = new E.WebGLRenderer({ antialias: !1, alpha: !0 }), s.setPixelRatio(i.renderer.getPixelRatio()), s.outputEncoding = E.sRGBEncoding, s.setClearColor(1579548, 0), s.autoClear = !0), s;
|
|
621
621
|
}, g = () => {
|
|
622
622
|
d.traverse((I) => {
|
|
623
623
|
I instanceof E.Mesh && [].concat(I.material).forEach((O) => O.dispose());
|
|
624
624
|
}), l.remove(d), d = new E.Object3D(), l.add(d), n = !1, S();
|
|
625
|
-
}, A = () => {
|
|
626
|
-
!e || n || p();
|
|
627
625
|
}, v = () => {
|
|
628
|
-
e ||
|
|
626
|
+
!e || n || m();
|
|
627
|
+
}, A = () => {
|
|
628
|
+
e || (e = !0, l.add(d), !n && i.model.loaded && m(), S());
|
|
629
629
|
}, w = () => {
|
|
630
630
|
!e || (l.remove(d), o = !0, k(), e = !1);
|
|
631
631
|
}, y = (I, z = {}) => {
|
|
632
|
-
const O =
|
|
632
|
+
const O = p();
|
|
633
633
|
if (!O)
|
|
634
634
|
return;
|
|
635
635
|
I.appendChild(O.domElement), x(z);
|
|
@@ -670,7 +670,7 @@ const W0 = (i, t) => {
|
|
|
670
670
|
}, N = () => ({
|
|
671
671
|
enabled: e
|
|
672
672
|
});
|
|
673
|
-
return Object.assign(window, { camera: c }), i.on("modelLoaded",
|
|
673
|
+
return Object.assign(window, { camera: c }), i.on("modelLoaded", v), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", S), i.on("dispose", F), i.on("renderFrame", k), i.on("cameraPositionUpdate", S), { appendTo: y, refresh: x, changeConfigs: H, enable: A, disable: w, getCurrentState: N };
|
|
674
674
|
};
|
|
675
675
|
function gt(...i) {
|
|
676
676
|
const t = [];
|
|
@@ -806,17 +806,17 @@ const Zr = 1, Ul = `CSS3DObjectPlus@${Zr}`, Jl = 216e-5, Vl = 3e-3;
|
|
|
806
806
|
class _r extends Yn {
|
|
807
807
|
constructor(e) {
|
|
808
808
|
var L, C, S;
|
|
809
|
-
const n = e.container, o = e.cornerPoints, s = (L = e.ratio) != null ? L : Vl, r = (C = e.dpr) != null ? C : 1, a = (S = e.pointerEvents) != null ? S : "auto", l = Math.max(Jl, s), c = o[0].distanceTo(o[1]), d = o[1].distanceTo(o[2]), u = Un(c / s * r), h = Un(d / s * r),
|
|
810
|
-
let
|
|
809
|
+
const n = e.container, o = e.cornerPoints, s = (L = e.ratio) != null ? L : Vl, r = (C = e.dpr) != null ? C : 1, a = (S = e.pointerEvents) != null ? S : "auto", l = Math.max(Jl, s), c = o[0].distanceTo(o[1]), d = o[1].distanceTo(o[2]), u = Un(c / s * r), h = Un(d / s * r), m = Vr(...o);
|
|
810
|
+
let p;
|
|
811
811
|
if (l === s)
|
|
812
|
-
n.style.width = `${u}px`, n.style.height = `${h}px`,
|
|
812
|
+
n.style.width = `${u}px`, n.style.height = `${h}px`, p = n;
|
|
813
813
|
else {
|
|
814
814
|
const k = document.createElement("div");
|
|
815
815
|
k.style.width = `${u}px`, k.style.height = `${h}px`, k.style.pointerEvents = "none";
|
|
816
816
|
const F = s / l;
|
|
817
|
-
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * u}px`, n.style.height = `${F * h}px`, k.appendChild(n),
|
|
817
|
+
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * u}px`, n.style.height = `${F * h}px`, k.appendChild(n), p = k;
|
|
818
818
|
}
|
|
819
|
-
super(
|
|
819
|
+
super(p);
|
|
820
820
|
f(this, "version", Zr);
|
|
821
821
|
f(this, "isCSS3DObjectPlus", !0);
|
|
822
822
|
f(this, "container");
|
|
@@ -850,16 +850,16 @@ class _r extends Yn {
|
|
|
850
850
|
(e = this.parentVisibleListenerDisposer) == null || e.call(this);
|
|
851
851
|
});
|
|
852
852
|
if (n.style.pointerEvents = a, this.scale.set(l, l, l), this.cornerPoints = o, this.ratio = s, this.container = n, e.mode && (this.mode = e.mode), l === s)
|
|
853
|
-
this.width = c, this.height = d, this.domWidthPx = u, this.domHeightPx = h, this.centerPosition =
|
|
853
|
+
this.width = c, this.height = d, this.domWidthPx = u, this.domHeightPx = h, this.centerPosition = m;
|
|
854
854
|
else {
|
|
855
855
|
const k = s / l;
|
|
856
|
-
this.width = k * c, this.height = k * d, this.domWidthPx = k * u, this.domHeightPx = k * h, this.centerPosition = new _().subVectors(
|
|
856
|
+
this.width = k * c, this.height = k * d, this.domWidthPx = k * u, this.domHeightPx = k * h, this.centerPosition = new _().subVectors(m, o[0]).multiplyScalar(k).add(o[0]);
|
|
857
857
|
}
|
|
858
858
|
n.classList.add(`${Ul}__container`);
|
|
859
|
-
const g = new _().subVectors(o[1], o[0]),
|
|
860
|
-
this.lookAt(
|
|
861
|
-
const w = this.up.clone().applyQuaternion(this.quaternion), y =
|
|
862
|
-
this.rotateOnWorldAxis(x, w.angleTo(y)), this.position.copy(
|
|
859
|
+
const g = new _().subVectors(o[1], o[0]), v = new _().subVectors(o[3], o[0]), A = new _().crossVectors(g, v).normalize();
|
|
860
|
+
this.lookAt(A);
|
|
861
|
+
const w = this.up.clone().applyQuaternion(this.quaternion), y = v.clone(), x = new _().crossVectors(w, y).normalize();
|
|
862
|
+
this.rotateOnWorldAxis(x, w.angleTo(y)), this.position.copy(m), this.addEventListener("added", () => {
|
|
863
863
|
var k;
|
|
864
864
|
this.mode === "front" && ((k = this.opacityMesh) == null || k.removeFromParent()), this.addParentVisibleListener();
|
|
865
865
|
}), this.addEventListener("removed", () => {
|
|
@@ -1027,24 +1027,24 @@ class fn {
|
|
|
1027
1027
|
return console.error(`${nn}: requires 4 point but params may have fewer`);
|
|
1028
1028
|
const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: u } = o, h = this.createObject(s, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: u });
|
|
1029
1029
|
Pe.css3DObjects.push(h), o.scene && this.setScene(o.scene);
|
|
1030
|
-
const
|
|
1030
|
+
const m = () => {
|
|
1031
1031
|
const y = h.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
|
|
1032
1032
|
!y || y.add(h);
|
|
1033
|
-
},
|
|
1034
|
-
|
|
1035
|
-
}, g = (y) => this.setVisibleById(h.id, y),
|
|
1036
|
-
return c &&
|
|
1033
|
+
}, p = () => {
|
|
1034
|
+
m(), this.render(t);
|
|
1035
|
+
}, g = (y) => this.setVisibleById(h.id, y), v = (y) => this.setEnabledById(h.id, y), A = () => (h.removeFromParent(), !0), w = l === "front" ? Pe.frontModeStore.css3DRenderer : Pe.behindModeStore.css3DRenderer;
|
|
1036
|
+
return c && p(), {
|
|
1037
1037
|
id: h.uuid,
|
|
1038
1038
|
container: d,
|
|
1039
1039
|
css3DObject: h,
|
|
1040
|
-
render: c ? void 0 :
|
|
1040
|
+
render: c ? void 0 : p,
|
|
1041
1041
|
show: () => g(!0),
|
|
1042
1042
|
hide: () => g(!1),
|
|
1043
1043
|
setVisible: g,
|
|
1044
|
-
enable: () =>
|
|
1045
|
-
disable: () =>
|
|
1046
|
-
setEnabled:
|
|
1047
|
-
dispose:
|
|
1044
|
+
enable: () => v(!0),
|
|
1045
|
+
disable: () => v(!1),
|
|
1046
|
+
setEnabled: v,
|
|
1047
|
+
dispose: A,
|
|
1048
1048
|
appendToElement: (y) => w.setWrapper(y)
|
|
1049
1049
|
};
|
|
1050
1050
|
});
|
|
@@ -1317,35 +1317,35 @@ const X0 = (i) => {
|
|
|
1317
1317
|
i.off("intersectionOnModelUpdate", e), i.off("intersectionHidden", n);
|
|
1318
1318
|
});
|
|
1319
1319
|
const o = (d, u = 2, h = 0.1) => {
|
|
1320
|
-
const
|
|
1321
|
-
|
|
1320
|
+
const m = u / 2, g = c(d, h), v = new _i();
|
|
1321
|
+
v.add(
|
|
1322
1322
|
vi(
|
|
1323
|
-
new _(g.x +
|
|
1324
|
-
new _(g.x -
|
|
1323
|
+
new _(g.x + m, g.y, g.z),
|
|
1324
|
+
new _(g.x - m, g.y, g.z),
|
|
1325
1325
|
new _(1, 0, 0)
|
|
1326
1326
|
),
|
|
1327
1327
|
vi(
|
|
1328
|
-
new _(g.x, g.y +
|
|
1329
|
-
new _(g.x, g.y -
|
|
1328
|
+
new _(g.x, g.y + m, g.z),
|
|
1329
|
+
new _(g.x, g.y - m, g.z),
|
|
1330
1330
|
new _(0, 1, 0)
|
|
1331
1331
|
),
|
|
1332
1332
|
vi(
|
|
1333
|
-
new _(g.x, g.y, g.z +
|
|
1334
|
-
new _(g.x, g.y, g.z -
|
|
1333
|
+
new _(g.x, g.y, g.z + m),
|
|
1334
|
+
new _(g.x, g.y, g.z - m),
|
|
1335
1335
|
new _(0, 0, 1)
|
|
1336
1336
|
)
|
|
1337
|
-
), i.scene.add(
|
|
1338
|
-
const
|
|
1339
|
-
i.scene.remove(
|
|
1337
|
+
), i.scene.add(v), i.needsRender = !0;
|
|
1338
|
+
const A = () => {
|
|
1339
|
+
i.scene.remove(v);
|
|
1340
1340
|
};
|
|
1341
|
-
return t.disposers.push(
|
|
1341
|
+
return t.disposers.push(A), { clear: A, pointAxesHelperMesh: v };
|
|
1342
1342
|
}, s = (d, u = 0) => {
|
|
1343
|
-
var
|
|
1344
|
-
const h = (
|
|
1343
|
+
var A, w;
|
|
1344
|
+
const h = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
|
|
1345
1345
|
if (!h)
|
|
1346
1346
|
return !1;
|
|
1347
|
-
const
|
|
1348
|
-
return !(
|
|
1347
|
+
const m = d.distanceTo(h), p = d.sub(h).normalize(), g = new Qt(h, p), v = (w = i.model.intersectRaycaster(g)) == null ? void 0 : w[0];
|
|
1348
|
+
return !(v && v.distance + u < m);
|
|
1349
1349
|
}, r = () => t.intersection, a = () => {
|
|
1350
1350
|
var d, u;
|
|
1351
1351
|
(u = (d = t.disposers) == null ? void 0 : d.forEach) == null || u.call(d, (h) => h == null ? void 0 : h()), i.off("intersectionOnModelUpdate", e), i.off("intersectionHidden", n);
|
|
@@ -1437,7 +1437,7 @@ function Jn(i, t) {
|
|
|
1437
1437
|
!t.has(n) && n[0] !== "$" && (e[n] = i[n]);
|
|
1438
1438
|
return e;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function je(i) {
|
|
1441
1441
|
return i == null ? "" : i;
|
|
1442
1442
|
}
|
|
1443
1443
|
const ia = typeof window != "undefined";
|
|
@@ -1526,7 +1526,7 @@ function Vn(i, t) {
|
|
|
1526
1526
|
function rc(i) {
|
|
1527
1527
|
return Array.from(i.childNodes);
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function Te(i, t) {
|
|
1530
1530
|
t = "" + t, i.wholeText !== t && (i.data = t);
|
|
1531
1531
|
}
|
|
1532
1532
|
function R(i, t, e, n) {
|
|
@@ -1605,14 +1605,14 @@ function ca(i, t, e, n, o, s, r, a = 0) {
|
|
|
1605
1605
|
const l = 16.666 / n;
|
|
1606
1606
|
let c = `{
|
|
1607
1607
|
`;
|
|
1608
|
-
for (let
|
|
1609
|
-
const
|
|
1610
|
-
c +=
|
|
1608
|
+
for (let v = 0; v <= 1; v += l) {
|
|
1609
|
+
const A = t + (e - t) * s(v);
|
|
1610
|
+
c += v * 100 + `%{${r(A, 1 - A)}}
|
|
1611
1611
|
`;
|
|
1612
1612
|
}
|
|
1613
1613
|
const d = c + `100% {${r(e, 1 - e)}}
|
|
1614
|
-
}`, u = `__svelte_${lc(d)}_${a}`, h = Ki(i), { stylesheet:
|
|
1615
|
-
|
|
1614
|
+
}`, u = `__svelte_${lc(d)}_${a}`, h = Ki(i), { stylesheet: m, rules: p } = _n.get(h) || cc(h, i);
|
|
1615
|
+
p[u] || (p[u] = !0, m.insertRule(`@keyframes ${u} ${d}`, m.cssRules.length));
|
|
1616
1616
|
const g = i.style.animation || "";
|
|
1617
1617
|
return i.style.animation = `${g ? `${g}, ` : ""}${u} ${n}ms linear ${o}ms 1 both`, qn += 1, u;
|
|
1618
1618
|
}
|
|
@@ -1674,7 +1674,7 @@ function hc(i, t) {
|
|
|
1674
1674
|
const e = i.$$.callbacks[t.type];
|
|
1675
1675
|
e && e.slice().forEach((n) => n.call(this, t));
|
|
1676
1676
|
}
|
|
1677
|
-
const on = [],
|
|
1677
|
+
const on = [], ze = [], Nn = [], Lo = [], da = Promise.resolve();
|
|
1678
1678
|
let Ri = !1;
|
|
1679
1679
|
function ua() {
|
|
1680
1680
|
Ri || (Ri = !0, da.then(ha));
|
|
@@ -1694,8 +1694,8 @@ function ha() {
|
|
|
1694
1694
|
const t = on[kn];
|
|
1695
1695
|
kn++, cn(t), mc(t.$$);
|
|
1696
1696
|
}
|
|
1697
|
-
for (cn(null), on.length = 0, kn = 0;
|
|
1698
|
-
|
|
1697
|
+
for (cn(null), on.length = 0, kn = 0; ze.length; )
|
|
1698
|
+
ze.pop()();
|
|
1699
1699
|
for (let t = 0; t < Nn.length; t += 1) {
|
|
1700
1700
|
const e = Nn[t];
|
|
1701
1701
|
bi.has(e) || (bi.add(e), e());
|
|
@@ -1754,16 +1754,16 @@ function Ht(i, t, e) {
|
|
|
1754
1754
|
s && ji(i, s);
|
|
1755
1755
|
}
|
|
1756
1756
|
function c() {
|
|
1757
|
-
const { delay: u = 0, duration: h = 300, easing:
|
|
1758
|
-
g && (s = ca(i, 0, 1, h, u,
|
|
1759
|
-
const
|
|
1757
|
+
const { delay: u = 0, duration: h = 300, easing: m = Vt, tick: p = te, css: g } = n || ma;
|
|
1758
|
+
g && (s = ca(i, 0, 1, h, u, m, g, a++)), p(0, 1);
|
|
1759
|
+
const v = oa() + u, A = v + h;
|
|
1760
1760
|
r && r.abort(), o = !0, Ie(() => Kn(i, !0, "start")), r = ra((w) => {
|
|
1761
1761
|
if (o) {
|
|
1762
|
-
if (w >=
|
|
1763
|
-
return
|
|
1764
|
-
if (w >=
|
|
1765
|
-
const y =
|
|
1766
|
-
|
|
1762
|
+
if (w >= A)
|
|
1763
|
+
return p(1, 0), Kn(i, !0, "end"), l(), o = !1;
|
|
1764
|
+
if (w >= v) {
|
|
1765
|
+
const y = m((w - v) / h);
|
|
1766
|
+
p(y, 1 - y);
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
return o;
|
|
@@ -1789,14 +1789,14 @@ function Kt(i, t, e) {
|
|
|
1789
1789
|
function a() {
|
|
1790
1790
|
const { delay: l = 0, duration: c = 300, easing: d = Vt, tick: u = te, css: h } = n || ma;
|
|
1791
1791
|
h && (s = ca(i, 1, 0, c, l, d, h));
|
|
1792
|
-
const
|
|
1792
|
+
const m = oa() + l, p = m + c;
|
|
1793
1793
|
Ie(() => Kn(i, !1, "start")), ra((g) => {
|
|
1794
1794
|
if (o) {
|
|
1795
|
-
if (g >=
|
|
1795
|
+
if (g >= p)
|
|
1796
1796
|
return u(0, 1), Kn(i, !1, "end"), --r.r || at(r.c), !1;
|
|
1797
|
-
if (g >=
|
|
1798
|
-
const
|
|
1799
|
-
u(1 -
|
|
1797
|
+
if (g >= m) {
|
|
1798
|
+
const v = d((g - m) / c);
|
|
1799
|
+
u(1 - v, v);
|
|
1800
1800
|
}
|
|
1801
1801
|
}
|
|
1802
1802
|
return o;
|
|
@@ -1820,33 +1820,33 @@ function lt(i, t) {
|
|
|
1820
1820
|
});
|
|
1821
1821
|
}
|
|
1822
1822
|
function Ue(i, t, e, n, o, s, r, a, l, c, d, u) {
|
|
1823
|
-
let h = i.length,
|
|
1823
|
+
let h = i.length, m = s.length, p = h;
|
|
1824
1824
|
const g = {};
|
|
1825
|
-
for (;
|
|
1826
|
-
g[i[
|
|
1827
|
-
const
|
|
1828
|
-
for (
|
|
1829
|
-
const C = u(o, s,
|
|
1825
|
+
for (; p--; )
|
|
1826
|
+
g[i[p].key] = p;
|
|
1827
|
+
const v = [], A = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
|
|
1828
|
+
for (p = m; p--; ) {
|
|
1829
|
+
const C = u(o, s, p), S = e(C);
|
|
1830
1830
|
let k = r.get(S);
|
|
1831
|
-
k ? n && k.p(C, t) : (k = c(S, C), k.c()),
|
|
1831
|
+
k ? n && k.p(C, t) : (k = c(S, C), k.c()), A.set(S, v[p] = k), S in g && w.set(S, Math.abs(p - g[S]));
|
|
1832
1832
|
}
|
|
1833
1833
|
const y = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
|
|
1834
1834
|
function L(C) {
|
|
1835
|
-
D(C, 1), C.m(a, d), r.set(C.key, C), d = C.first,
|
|
1835
|
+
D(C, 1), C.m(a, d), r.set(C.key, C), d = C.first, m--;
|
|
1836
1836
|
}
|
|
1837
|
-
for (; h &&
|
|
1838
|
-
const C =
|
|
1839
|
-
C === S ? (d = C.first, h--,
|
|
1837
|
+
for (; h && m; ) {
|
|
1838
|
+
const C = v[m - 1], S = i[h - 1], k = C.key, F = S.key;
|
|
1839
|
+
C === S ? (d = C.first, h--, m--) : A.has(F) ? !r.has(k) || y.has(k) ? L(C) : x.has(F) ? h-- : w.get(k) > w.get(F) ? (x.add(k), L(C)) : (y.add(F), h--) : (l(S, r), h--);
|
|
1840
1840
|
}
|
|
1841
1841
|
for (; h--; ) {
|
|
1842
1842
|
const C = i[h];
|
|
1843
|
-
|
|
1843
|
+
A.has(C.key) || l(C, r);
|
|
1844
1844
|
}
|
|
1845
|
-
for (;
|
|
1846
|
-
L(
|
|
1847
|
-
return
|
|
1845
|
+
for (; m; )
|
|
1846
|
+
L(v[m - 1]);
|
|
1847
|
+
return v;
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function Me(i, t) {
|
|
1850
1850
|
const e = {}, n = {}, o = { $$scope: 1 };
|
|
1851
1851
|
let s = i.length;
|
|
1852
1852
|
for (; s--; ) {
|
|
@@ -1905,9 +1905,9 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
1905
1905
|
};
|
|
1906
1906
|
r && r(c.root);
|
|
1907
1907
|
let d = !1;
|
|
1908
|
-
if (c.ctx = e ? e(i, t.props || {}, (u, h, ...
|
|
1909
|
-
const
|
|
1910
|
-
return c.ctx && o(c.ctx[u], c.ctx[u] =
|
|
1908
|
+
if (c.ctx = e ? e(i, t.props || {}, (u, h, ...m) => {
|
|
1909
|
+
const p = m.length ? m[0] : h;
|
|
1910
|
+
return c.ctx && o(c.ctx[u], c.ctx[u] = p) && (!c.skip_bound && c.bound[u] && c.bound[u](p), d && gc(i, u)), h;
|
|
1911
1911
|
}) : [], c.update(), d = !0, at(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
|
|
1912
1912
|
if (t.hydrate) {
|
|
1913
1913
|
const u = rc(t.target);
|
|
@@ -1949,7 +1949,7 @@ function bc(i) {
|
|
|
1949
1949
|
B(c, t, d), Q(t, e), Q(e, o), Q(t, s), Q(t, r), a || (l = Ee(e, "click", i[1]), a = !0);
|
|
1950
1950
|
},
|
|
1951
1951
|
p(c, [d]) {
|
|
1952
|
-
d & 1 && n !== (n = c[0].name + "") &&
|
|
1952
|
+
d & 1 && n !== (n = c[0].name + "") && Te(o, n), d & 1 && q(e, "wide", c[0].name.length > 3), d & 1 && R(t, "z-index", c[0].zIndex), d & 1 && R(t, "transform", c[0].transform), d & 1 && R(t, "opacity", c[0].visible ? 1 : 0);
|
|
1953
1953
|
},
|
|
1954
1954
|
i: te,
|
|
1955
1955
|
o: te,
|
|
@@ -2062,20 +2062,20 @@ function Pc(i) {
|
|
|
2062
2062
|
function Ic(i, t, e) {
|
|
2063
2063
|
var g;
|
|
2064
2064
|
let n, { five: o } = t, { roomLabels: s } = t, r, a, l = (g = o.model.shownFloor) != null ? g : null;
|
|
2065
|
-
function c(
|
|
2066
|
-
if (!(l === null ||
|
|
2065
|
+
function c(v) {
|
|
2066
|
+
if (!(l === null || v.floorIndex === l))
|
|
2067
2067
|
return !1;
|
|
2068
|
-
const w = new Qt(), y = o.camera.position.clone(), x = new _(
|
|
2068
|
+
const w = new Qt(), y = o.camera.position.clone(), x = new _(v.position.x, v.position.y, v.position.z), L = x.distanceTo(y);
|
|
2069
2069
|
w.set(y.clone(), x.clone().sub(y).normalize());
|
|
2070
2070
|
const [C] = o.model.intersectRaycaster(w);
|
|
2071
2071
|
return !(C && C.distance + 1 < L);
|
|
2072
2072
|
}
|
|
2073
|
-
function d(
|
|
2074
|
-
const y = new _(
|
|
2073
|
+
function d(v, A) {
|
|
2074
|
+
const y = new _(v.position.x, v.position.y, v.position.z).clone().project(o.camera), x = Math.ceil((y.x + 1) / 2 * A.x), L = Math.ceil((-y.y + 1) / 2 * A.y);
|
|
2075
2075
|
return `translate(${x}px, ${L}px)`;
|
|
2076
2076
|
}
|
|
2077
|
-
function u(
|
|
2078
|
-
const { rendererSize:
|
|
2077
|
+
function u(v) {
|
|
2078
|
+
const { rendererSize: A, shownFloor: w } = v, y = /* @__PURE__ */ new Map();
|
|
2079
2079
|
function x(C) {
|
|
2080
2080
|
const S = y.get(C.id);
|
|
2081
2081
|
if (S)
|
|
@@ -2084,24 +2084,24 @@ function Ic(i, t, e) {
|
|
|
2084
2084
|
return y.set(C.id, N), N;
|
|
2085
2085
|
}
|
|
2086
2086
|
return s.map((C) => {
|
|
2087
|
-
const S = c(C), k = S ? d(C,
|
|
2087
|
+
const S = c(C), k = S ? d(C, A) : C.transform, F = x(C), N = s.filter((Y) => Y.visible && x(Y) < F).length * 10;
|
|
2088
2088
|
return he(G({}, C), { visible: S, transform: k, zIndex: N });
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
2091
|
function h() {
|
|
2092
2092
|
e(0, s = u({ rendererSize: n, shownFloor: l }));
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2095
|
-
e(4, l =
|
|
2094
|
+
function m(v) {
|
|
2095
|
+
e(4, l = v);
|
|
2096
2096
|
}
|
|
2097
|
-
o.on("cameraUpdate", h), o.on("modelShownFloorChange",
|
|
2098
|
-
o.off("cameraUpdate", h), o.off("modelShownFloorChange",
|
|
2097
|
+
o.on("cameraUpdate", h), o.on("modelShownFloorChange", m), wt(() => {
|
|
2098
|
+
o.off("cameraUpdate", h), o.off("modelShownFloorChange", m);
|
|
2099
2099
|
});
|
|
2100
|
-
function
|
|
2100
|
+
function p() {
|
|
2101
2101
|
r = this.clientWidth, a = this.clientHeight, e(2, r), e(3, a);
|
|
2102
2102
|
}
|
|
2103
|
-
return i.$$set = (
|
|
2104
|
-
"five" in
|
|
2103
|
+
return i.$$set = (v) => {
|
|
2104
|
+
"five" in v && e(1, o = v.five), "roomLabels" in v && e(0, s = v.roomLabels);
|
|
2105
2105
|
}, i.$$.update = () => {
|
|
2106
2106
|
i.$$.dirty & 12 && e(5, n = { x: r, y: a }), i.$$.dirty & 48 && e(0, s = u({ rendererSize: n, shownFloor: l }));
|
|
2107
2107
|
}, [
|
|
@@ -2111,7 +2111,7 @@ function Ic(i, t, e) {
|
|
|
2111
2111
|
a,
|
|
2112
2112
|
l,
|
|
2113
2113
|
n,
|
|
2114
|
-
|
|
2114
|
+
p
|
|
2115
2115
|
];
|
|
2116
2116
|
}
|
|
2117
2117
|
class xc extends oe {
|
|
@@ -2316,15 +2316,15 @@ function Qc(i) {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
function Rc(i, t, e) {
|
|
2318
2318
|
let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
|
|
2319
|
-
const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, u = c * 100 + "%", h = d * 100 + "%",
|
|
2319
|
+
const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, u = c * 100 + "%", h = d * 100 + "%", m = -Bc(s) + 45, p = document.body.clientWidth, g = document.body.clientHeight, A = `${(p < 500 || g < 500 ? 17 : 37) / 16}rem`;
|
|
2320
2320
|
return i.$$set = (w) => {
|
|
2321
2321
|
"panoIndex" in w && e(5, n = w.panoIndex), "floorplanData" in w && e(6, o = w.floorplanData), "lastPanoramaLongitude" in w && e(7, s = w.lastPanoramaLongitude), "cameraImageUrl" in w && e(0, r = w.cameraImageUrl);
|
|
2322
2322
|
}, [
|
|
2323
2323
|
r,
|
|
2324
2324
|
u,
|
|
2325
2325
|
h,
|
|
2326
|
-
|
|
2327
|
-
|
|
2326
|
+
m,
|
|
2327
|
+
A,
|
|
2328
2328
|
n,
|
|
2329
2329
|
o,
|
|
2330
2330
|
s
|
|
@@ -2362,7 +2362,7 @@ function Gc(i) {
|
|
|
2362
2362
|
B(r, t, a), Q(t, e), Q(t, n), Q(t, o), Q(o, s);
|
|
2363
2363
|
},
|
|
2364
2364
|
p(r, a) {
|
|
2365
|
-
a & 1 &&
|
|
2365
|
+
a & 1 && Te(s, r[0]);
|
|
2366
2366
|
},
|
|
2367
2367
|
d(r) {
|
|
2368
2368
|
r && T(t);
|
|
@@ -2634,7 +2634,7 @@ function ad(i) {
|
|
|
2634
2634
|
B(a, t, l), Q(t, n), B(a, o, l), B(a, s, l), Q(s, r);
|
|
2635
2635
|
},
|
|
2636
2636
|
p(a, l) {
|
|
2637
|
-
l & 1 && e !== (e = a[0].name + "") &&
|
|
2637
|
+
l & 1 && e !== (e = a[0].name + "") && Te(n, e), l & 32 && Te(r, a[5]);
|
|
2638
2638
|
},
|
|
2639
2639
|
d(a) {
|
|
2640
2640
|
a && T(t), a && T(o), a && T(s);
|
|
@@ -2678,7 +2678,7 @@ function cd(i, t) {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
function dd(i, t, e) {
|
|
2680
2680
|
let n, o, s, r, { pxmm: a } = t, { room: l } = t, { hoveredRoom: c } = t, { getRoomAreaText: d } = t, { getLabelElement: u } = t, { adaptiveRoomLabelVisibleEnable: h } = t;
|
|
2681
|
-
function
|
|
2681
|
+
function m(k, F) {
|
|
2682
2682
|
if (F.width === 0 || F.height === 0)
|
|
2683
2683
|
return () => !1;
|
|
2684
2684
|
const H = k.path.map(({ x: Z, y: X }) => [Z, X]), N = k.roomLabel.position, { x: Y, y: P } = N, { width: I, height: z } = F, O = I / 2, W = z / 2;
|
|
@@ -2692,7 +2692,7 @@ function dd(i, t, e) {
|
|
|
2692
2692
|
].every((we) => cd(we, ue));
|
|
2693
2693
|
};
|
|
2694
2694
|
}
|
|
2695
|
-
const
|
|
2695
|
+
const p = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%", w = v.positionInImage.y * 100 + "%", y = (p < 500 || g < 500 ? 10 : 14) / 16 + "rem";
|
|
2696
2696
|
let x = !1, L, C;
|
|
2697
2697
|
c.subscribe(function(F) {
|
|
2698
2698
|
e(13, x = !!F && F.id === l.id);
|
|
@@ -2704,14 +2704,14 @@ function dd(i, t, e) {
|
|
|
2704
2704
|
});
|
|
2705
2705
|
});
|
|
2706
2706
|
function S(k) {
|
|
2707
|
-
|
|
2707
|
+
ze[k ? "unshift" : "push"](() => {
|
|
2708
2708
|
L = k, e(2, L);
|
|
2709
2709
|
});
|
|
2710
2710
|
}
|
|
2711
2711
|
return i.$$set = (k) => {
|
|
2712
2712
|
"pxmm" in k && e(9, a = k.pxmm), "room" in k && e(0, l = k.room), "hoveredRoom" in k && e(10, c = k.hoveredRoom), "getRoomAreaText" in k && e(11, d = k.getRoomAreaText), "getLabelElement" in k && e(1, u = k.getLabelElement), "adaptiveRoomLabelVisibleEnable" in k && e(12, h = k.adaptiveRoomLabelVisibleEnable);
|
|
2713
2713
|
}, i.$$.update = () => {
|
|
2714
|
-
i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = C ?
|
|
2714
|
+
i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = C ? m(l, C) : void 0), i.$$.dirty & 3 && e(4, s = u == null ? void 0 : u(l)), i.$$.dirty & 45568 && e(3, r = h ? x ? !0 : !!(o != null && o(a)) : !0);
|
|
2715
2715
|
}, [
|
|
2716
2716
|
l,
|
|
2717
2717
|
u,
|
|
@@ -2719,7 +2719,7 @@ function dd(i, t, e) {
|
|
|
2719
2719
|
r,
|
|
2720
2720
|
s,
|
|
2721
2721
|
n,
|
|
2722
|
-
|
|
2722
|
+
A,
|
|
2723
2723
|
w,
|
|
2724
2724
|
y,
|
|
2725
2725
|
a,
|
|
@@ -2828,7 +2828,7 @@ function jo(i, t) {
|
|
|
2828
2828
|
},
|
|
2829
2829
|
p(a, l) {
|
|
2830
2830
|
t = a;
|
|
2831
|
-
const c = l & 111 ?
|
|
2831
|
+
const c = l & 111 ? Me(s, [
|
|
2832
2832
|
{
|
|
2833
2833
|
pxmm: t[5],
|
|
2834
2834
|
room: t[10],
|
|
@@ -2881,11 +2881,11 @@ function md(i, t, e) {
|
|
|
2881
2881
|
function h() {
|
|
2882
2882
|
d = this.clientWidth, e(4, d);
|
|
2883
2883
|
}
|
|
2884
|
-
return i.$$set = (
|
|
2885
|
-
"floorIndex" in
|
|
2884
|
+
return i.$$set = (m) => {
|
|
2885
|
+
"floorIndex" in m && e(7, o = m.floorIndex), "floorplanData" in m && e(8, s = m.floorplanData), "hoveredRoom" in m && e(0, r = m.hoveredRoom), "getRoomAreaText" in m && e(1, a = m.getRoomAreaText), "getLabelElement" in m && e(2, l = m.getLabelElement), "adaptiveRoomLabelVisibleEnable" in m && e(3, c = m.adaptiveRoomLabelVisibleEnable);
|
|
2886
2886
|
}, i.$$.update = () => {
|
|
2887
2887
|
if (i.$$.dirty & 384 && e(6, n = s.floorDatas[o].rooms), i.$$.dirty & 272) {
|
|
2888
|
-
const { max:
|
|
2888
|
+
const { max: m, min: p } = s.bounding, g = m.x - p.x;
|
|
2889
2889
|
e(5, u = d / g);
|
|
2890
2890
|
}
|
|
2891
2891
|
}, [
|
|
@@ -2959,7 +2959,7 @@ function Oo(i, t) {
|
|
|
2959
2959
|
B(a, e, l), Q(e, n), Q(n, s), Q(e, r);
|
|
2960
2960
|
},
|
|
2961
2961
|
p(a, l) {
|
|
2962
|
-
t = a, l & 2 && o !== (o = t[1](t[11].distance) + "") &&
|
|
2962
|
+
t = a, l & 2 && o !== (o = t[1](t[11].distance) + "") && Te(s, o);
|
|
2963
2963
|
},
|
|
2964
2964
|
d(a) {
|
|
2965
2965
|
a && T(e);
|
|
@@ -2968,50 +2968,50 @@ function Oo(i, t) {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
function Ad(i) {
|
|
2970
2970
|
let t, e, n, o, s, r, a = [], l = /* @__PURE__ */ new Map(), c, d = i[3], u = [];
|
|
2971
|
-
for (let
|
|
2972
|
-
u[
|
|
2971
|
+
for (let p = 0; p < d.length; p += 1)
|
|
2972
|
+
u[p] = Ho(Ro(i, d, p));
|
|
2973
2973
|
let h = i[4];
|
|
2974
|
-
const
|
|
2975
|
-
for (let
|
|
2976
|
-
let g = Qo(i, h,
|
|
2977
|
-
l.set(
|
|
2974
|
+
const m = (p) => p[13];
|
|
2975
|
+
for (let p = 0; p < h.length; p += 1) {
|
|
2976
|
+
let g = Qo(i, h, p), v = m(g);
|
|
2977
|
+
l.set(v, a[p] = Oo(v, g));
|
|
2978
2978
|
}
|
|
2979
2979
|
return {
|
|
2980
2980
|
c() {
|
|
2981
2981
|
t = j("div"), e = j("div"), n = V(), o = j("div");
|
|
2982
|
-
for (let
|
|
2983
|
-
u[
|
|
2982
|
+
for (let p = 0; p < u.length; p += 1)
|
|
2983
|
+
u[p].c();
|
|
2984
2984
|
s = V(), r = j("div");
|
|
2985
|
-
for (let
|
|
2986
|
-
a[
|
|
2985
|
+
for (let p = 0; p < a.length; p += 1)
|
|
2986
|
+
a[p].c();
|
|
2987
2987
|
b(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), b(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), q(o, "is-row", i[2]), b(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), b(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), q(t, "is-row", i[2]), R(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), R(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
|
|
2988
2988
|
},
|
|
2989
|
-
m(
|
|
2990
|
-
B(
|
|
2991
|
-
for (let
|
|
2992
|
-
u[
|
|
2989
|
+
m(p, g) {
|
|
2990
|
+
B(p, t, g), Q(t, e), Q(t, n), Q(t, o);
|
|
2991
|
+
for (let v = 0; v < u.length; v += 1)
|
|
2992
|
+
u[v].m(o, null);
|
|
2993
2993
|
Q(t, s), Q(t, r);
|
|
2994
|
-
for (let
|
|
2995
|
-
a[
|
|
2994
|
+
for (let v = 0; v < a.length; v += 1)
|
|
2995
|
+
a[v].m(r, null);
|
|
2996
2996
|
},
|
|
2997
|
-
p(
|
|
2997
|
+
p(p, [g]) {
|
|
2998
2998
|
if (g & 8) {
|
|
2999
|
-
d =
|
|
3000
|
-
let
|
|
3001
|
-
for (
|
|
3002
|
-
const
|
|
3003
|
-
u[
|
|
2999
|
+
d = p[3];
|
|
3000
|
+
let v;
|
|
3001
|
+
for (v = 0; v < d.length; v += 1) {
|
|
3002
|
+
const A = Ro(p, d, v);
|
|
3003
|
+
u[v] ? u[v].p(A, g) : (u[v] = Ho(A), u[v].c(), u[v].m(o, null));
|
|
3004
3004
|
}
|
|
3005
|
-
for (;
|
|
3006
|
-
u[
|
|
3005
|
+
for (; v < u.length; v += 1)
|
|
3006
|
+
u[v].d(1);
|
|
3007
3007
|
u.length = d.length;
|
|
3008
3008
|
}
|
|
3009
|
-
g & 22 && (h =
|
|
3009
|
+
g & 22 && (h = p[4], a = Ue(a, g, m, 1, p, h, l, r, pa, Oo, null, Qo)), g & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + p[0] + " svelte-djlmk4") && b(t, "class", c), g & 5 && q(t, "is-row", p[2]);
|
|
3010
3010
|
},
|
|
3011
3011
|
i: te,
|
|
3012
3012
|
o: te,
|
|
3013
|
-
d(
|
|
3014
|
-
|
|
3013
|
+
d(p) {
|
|
3014
|
+
p && T(t), tt(u, p);
|
|
3015
3015
|
for (let g = 0; g < a.length; g += 1)
|
|
3016
3016
|
a[g].d();
|
|
3017
3017
|
}
|
|
@@ -3020,18 +3020,18 @@ function Ad(i) {
|
|
|
3020
3020
|
const Wt = 1e3, Xt = 180;
|
|
3021
3021
|
function vd(i, t, e) {
|
|
3022
3022
|
let { type: n } = t, { data: o } = t, { bounding: s } = t, { getRuleDistanceText: r } = t;
|
|
3023
|
-
const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Wt - Xt) * 2, c = s.max.y - s.min.y - (Wt - Xt) * 2, d = o.map(([
|
|
3024
|
-
const g = a ? (
|
|
3025
|
-
return { left: g, bottom:
|
|
3023
|
+
const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Wt - Xt) * 2, c = s.max.y - s.min.y - (Wt - Xt) * 2, d = o.map(([p, g]) => a ? [p.x, g.x] : [p.y, g.y]).flat().sort().filter((p, g, v) => g === 0 ? !0 : p !== v[g - 1]), u = d.map((p) => {
|
|
3024
|
+
const g = a ? (p - s.min.x - Wt + Xt) / l : 0, v = a ? 0 : (p - s.min.y - Wt + Xt) / c;
|
|
3025
|
+
return { left: g, bottom: v };
|
|
3026
3026
|
});
|
|
3027
3027
|
u.unshift({ left: 0, bottom: 0 }), u.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
3028
|
-
const h = d[d.length - 1] - d[0],
|
|
3029
|
-
const
|
|
3030
|
-
return { left: y, bottom: x, distance:
|
|
3031
|
-
}).filter(({ distance:
|
|
3032
|
-
return i.$$set = (
|
|
3033
|
-
"type" in
|
|
3034
|
-
}, [n, r, a, u,
|
|
3028
|
+
const h = d[d.length - 1] - d[0], m = d.map((p, g, v) => {
|
|
3029
|
+
const A = g === 0 ? 0 : p - v[g - 1], w = g === 0 ? 0 : (p + v[g - 1]) / 2, y = a ? (w - s.min.x - Wt + Xt) / l : 0, x = a ? 0 : (w - s.min.y - Wt + Xt) / c;
|
|
3030
|
+
return { left: y, bottom: x, distance: A };
|
|
3031
|
+
}).filter(({ distance: p }) => p / h > 0.1);
|
|
3032
|
+
return i.$$set = (p) => {
|
|
3033
|
+
"type" in p && e(0, n = p.type), "data" in p && e(5, o = p.data), "bounding" in p && e(6, s = p.bounding), "getRuleDistanceText" in p && e(1, r = p.getRuleDistanceText);
|
|
3034
|
+
}, [n, r, a, u, m, o, s];
|
|
3035
3035
|
}
|
|
3036
3036
|
class bd extends oe {
|
|
3037
3037
|
constructor(t) {
|
|
@@ -3082,7 +3082,7 @@ function Go(i, t) {
|
|
|
3082
3082
|
},
|
|
3083
3083
|
p(a, l) {
|
|
3084
3084
|
t = a;
|
|
3085
|
-
const c = l & 19 ?
|
|
3085
|
+
const c = l & 19 ? Me(s, [
|
|
3086
3086
|
{
|
|
3087
3087
|
type: t[13],
|
|
3088
3088
|
data: t[14],
|
|
@@ -3147,19 +3147,19 @@ function wd(i) {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
const No = 1e3, Wo = 180;
|
|
3149
3149
|
function Cd(i, t, e) {
|
|
3150
|
-
let n, o, s, r, a, l, c, d, u, h, { floorIndex:
|
|
3151
|
-
return i.$$set = (
|
|
3152
|
-
"floorIndex" in
|
|
3150
|
+
let n, o, s, r, a, l, c, d, u, h, { floorIndex: m } = t, { floorplanData: p } = t, { getRuleDistanceText: g } = t;
|
|
3151
|
+
return i.$$set = (v) => {
|
|
3152
|
+
"floorIndex" in v && e(5, m = v.floorIndex), "floorplanData" in v && e(6, p = v.floorplanData), "getRuleDistanceText" in v && e(0, g = v.getRuleDistanceText);
|
|
3153
3153
|
}, i.$$.update = () => {
|
|
3154
|
-
i.$$.dirty & 64 && e(1, n =
|
|
3154
|
+
i.$$.dirty & 64 && e(1, n = p.bounding), i.$$.dirty & 96 && e(11, o = p.floorDatas[m].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((v) => [v, o[v]])), i.$$.dirty & 2 && e(9, a = n.max.x - n.min.x), i.$$.dirty & 2 && e(7, l = n.max.y - n.min.y), i.$$.dirty & 2 && e(10, c = n.max.x - n.min.x - (No - Wo) * 2), i.$$.dirty & 2 && e(8, d = n.max.y - n.min.y - (No - Wo) * 2), i.$$.dirty & 1536 && e(3, u = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, h = d / l * 100 + "%");
|
|
3155
3155
|
}, [
|
|
3156
3156
|
g,
|
|
3157
3157
|
n,
|
|
3158
3158
|
h,
|
|
3159
3159
|
u,
|
|
3160
3160
|
r,
|
|
3161
|
-
p,
|
|
3162
3161
|
m,
|
|
3162
|
+
p,
|
|
3163
3163
|
l,
|
|
3164
3164
|
d,
|
|
3165
3165
|
a,
|
|
@@ -3285,11 +3285,11 @@ function Md(i) {
|
|
|
3285
3285
|
c() {
|
|
3286
3286
|
t = Ae("defs"), e = Ae("pattern"), n = Ae("rect"), o = Ae("pattern"), s = Ae("rect"), r = V(), a = Ae("path"), l = V(), c = Ae("path"), d = V(), u = Ae("path"), b(n, "x", "0"), b(n, "y", "0"), b(n, "width", "6"), b(n, "height", "50"), b(n, "fill", "none"), b(n, "stroke", "#4B4B57"), b(n, "stroke-width", "0.5"), b(e, "id", "room-material-pattern-1"), b(e, "x", "0"), b(e, "y", "0"), b(e, "width", "12"), b(e, "height", "50"), b(e, "patternUnits", "userSpaceOnUse"), b(e, "patternTransform", "scale(50 50)"), b(s, "x", "0"), b(s, "y", "0"), b(s, "width", "6"), b(s, "height", "50"), b(s, "fill", "none"), b(s, "stroke", "#4B4B57"), b(s, "stroke-width", "0.5"), b(o, "id", "room-material-pattern-2"), b(o, "x", "6"), b(o, "y", "25"), b(o, "width", "12"), b(o, "height", "50"), b(o, "patternUnits", "userSpaceOnUse"), b(o, "patternTransform", "scale(50 50)"), b(a, "d", i[0]), b(a, "fill", "#43434D"), b(c, "d", i[0]), b(c, "fill", "url(#room-material-pattern-1)"), b(u, "d", i[0]), b(u, "fill", "url(#room-material-pattern-2)");
|
|
3287
3287
|
},
|
|
3288
|
-
m(h,
|
|
3289
|
-
B(h, t,
|
|
3288
|
+
m(h, m) {
|
|
3289
|
+
B(h, t, m), Q(t, e), Q(e, n), Q(t, o), Q(o, s), B(h, r, m), B(h, a, m), B(h, l, m), B(h, c, m), B(h, d, m), B(h, u, m);
|
|
3290
3290
|
},
|
|
3291
|
-
p(h, [
|
|
3292
|
-
|
|
3291
|
+
p(h, [m]) {
|
|
3292
|
+
m & 1 && b(a, "d", h[0]), m & 1 && b(c, "d", h[0]), m & 1 && b(u, "d", h[0]);
|
|
3293
3293
|
},
|
|
3294
3294
|
i: te,
|
|
3295
3295
|
o: te,
|
|
@@ -3573,7 +3573,7 @@ function Jo(i, t) {
|
|
|
3573
3573
|
},
|
|
3574
3574
|
p(a, l) {
|
|
3575
3575
|
t = a;
|
|
3576
|
-
const c = l & 7 ?
|
|
3576
|
+
const c = l & 7 ? Me(s, [
|
|
3577
3577
|
{
|
|
3578
3578
|
room: t[5],
|
|
3579
3579
|
floorplanData: t[1],
|
|
@@ -3682,7 +3682,7 @@ function Vo(i) {
|
|
|
3682
3682
|
K(t, s, r), e = !0;
|
|
3683
3683
|
},
|
|
3684
3684
|
p(s, r) {
|
|
3685
|
-
const a = r & 1058 ?
|
|
3685
|
+
const a = r & 1058 ? Me(n, [
|
|
3686
3686
|
{
|
|
3687
3687
|
floorIndex: s[1],
|
|
3688
3688
|
floorplanData: s[5],
|
|
@@ -3725,7 +3725,7 @@ function Zo(i) {
|
|
|
3725
3725
|
K(t, s, r), e = !0;
|
|
3726
3726
|
},
|
|
3727
3727
|
p(s, r) {
|
|
3728
|
-
const a = r & 1762 ?
|
|
3728
|
+
const a = r & 1762 ? Me(n, [
|
|
3729
3729
|
{
|
|
3730
3730
|
floorplanData: s[5],
|
|
3731
3731
|
floorIndex: s[1],
|
|
@@ -3768,7 +3768,7 @@ function _o(i) {
|
|
|
3768
3768
|
K(t, s, r), e = !0;
|
|
3769
3769
|
},
|
|
3770
3770
|
p(s, r) {
|
|
3771
|
-
const a = r & 290 ?
|
|
3771
|
+
const a = r & 290 ? Me(n, [
|
|
3772
3772
|
{
|
|
3773
3773
|
floorplanData: s[5],
|
|
3774
3774
|
floorIndex: s[1],
|
|
@@ -3797,66 +3797,66 @@ function qd(i) {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
];
|
|
3799
3799
|
let u = {};
|
|
3800
|
-
for (let
|
|
3801
|
-
u = ye(u, d[
|
|
3800
|
+
for (let A = 0; A < d.length; A += 1)
|
|
3801
|
+
u = ye(u, d[A]);
|
|
3802
3802
|
e = new Nd({ props: u });
|
|
3803
3803
|
let h = i[2] && Vo(i);
|
|
3804
|
-
const
|
|
3804
|
+
const m = [
|
|
3805
3805
|
{
|
|
3806
3806
|
floorplanData: i[5],
|
|
3807
3807
|
floorIndex: i[1]
|
|
3808
3808
|
}
|
|
3809
3809
|
];
|
|
3810
|
-
let
|
|
3811
|
-
for (let
|
|
3812
|
-
|
|
3813
|
-
s = new Aa({ props:
|
|
3814
|
-
let g = i[3] && Zo(i),
|
|
3810
|
+
let p = {};
|
|
3811
|
+
for (let A = 0; A < m.length; A += 1)
|
|
3812
|
+
p = ye(p, m[A]);
|
|
3813
|
+
s = new Aa({ props: p });
|
|
3814
|
+
let g = i[3] && Zo(i), v = i[4] && _o(i);
|
|
3815
3815
|
return {
|
|
3816
3816
|
c() {
|
|
3817
|
-
t = j("div"), ee(e.$$.fragment), n = V(), h && h.c(), o = V(), ee(s.$$.fragment), r = V(), g && g.c(), a = V(),
|
|
3817
|
+
t = j("div"), ee(e.$$.fragment), n = V(), h && h.c(), o = V(), ee(s.$$.fragment), r = V(), g && g.c(), a = V(), v && v.c(), b(t, "class", l = je(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
|
|
3818
3818
|
},
|
|
3819
|
-
m(
|
|
3820
|
-
B(
|
|
3819
|
+
m(A, w) {
|
|
3820
|
+
B(A, t, w), K(e, t, null), Q(t, n), h && h.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), v && v.m(t, null), c = !0;
|
|
3821
3821
|
},
|
|
3822
|
-
p(
|
|
3823
|
-
const y = w & 34 ?
|
|
3822
|
+
p(A, [w]) {
|
|
3823
|
+
const y = w & 34 ? Me(d, [
|
|
3824
3824
|
{
|
|
3825
|
-
floorIndex:
|
|
3826
|
-
floorplanData:
|
|
3825
|
+
floorIndex: A[1],
|
|
3826
|
+
floorplanData: A[5]
|
|
3827
3827
|
}
|
|
3828
3828
|
]) : {};
|
|
3829
|
-
e.$set(y),
|
|
3829
|
+
e.$set(y), A[2] ? h ? (h.p(A, w), w & 4 && D(h, 1)) : (h = Vo(A), h.c(), D(h, 1), h.m(t, o)) : h && (le(), M(h, 1, 1, () => {
|
|
3830
3830
|
h = null;
|
|
3831
3831
|
}), ce());
|
|
3832
|
-
const x = w & 34 ?
|
|
3832
|
+
const x = w & 34 ? Me(m, [
|
|
3833
3833
|
{
|
|
3834
|
-
floorplanData:
|
|
3835
|
-
floorIndex:
|
|
3834
|
+
floorplanData: A[5],
|
|
3835
|
+
floorIndex: A[1]
|
|
3836
3836
|
}
|
|
3837
3837
|
]) : {};
|
|
3838
|
-
s.$set(x),
|
|
3838
|
+
s.$set(x), A[3] ? g ? (g.p(A, w), w & 8 && D(g, 1)) : (g = Zo(A), g.c(), D(g, 1), g.m(t, a)) : g && (le(), M(g, 1, 1, () => {
|
|
3839
3839
|
g = null;
|
|
3840
|
-
}), ce()),
|
|
3841
|
-
|
|
3842
|
-
}), ce()), (!c || w & 1 && l !== (l =
|
|
3840
|
+
}), ce()), A[4] ? v ? (v.p(A, w), w & 16 && D(v, 1)) : (v = _o(A), v.c(), D(v, 1), v.m(t, null)) : v && (le(), M(v, 1, 1, () => {
|
|
3841
|
+
v = null;
|
|
3842
|
+
}), ce()), (!c || w & 1 && l !== (l = je(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
|
|
3843
3843
|
},
|
|
3844
|
-
i(
|
|
3845
|
-
c || (D(e.$$.fragment,
|
|
3844
|
+
i(A) {
|
|
3845
|
+
c || (D(e.$$.fragment, A), D(h), D(s.$$.fragment, A), D(g), D(v), c = !0);
|
|
3846
3846
|
},
|
|
3847
|
-
o(
|
|
3848
|
-
M(e.$$.fragment,
|
|
3847
|
+
o(A) {
|
|
3848
|
+
M(e.$$.fragment, A), M(h), M(s.$$.fragment, A), M(g), M(v), c = !1;
|
|
3849
3849
|
},
|
|
3850
|
-
d(
|
|
3851
|
-
|
|
3850
|
+
d(A) {
|
|
3851
|
+
A && T(t), $(e), h && h.d(), $(s), g && g.d(), v && v.d();
|
|
3852
3852
|
}
|
|
3853
3853
|
};
|
|
3854
3854
|
}
|
|
3855
3855
|
function Kd(i, t, e) {
|
|
3856
3856
|
let { isCurrent: n } = t, { floorIndex: o } = t, { hoverEnable: s } = t, { roomLabelsEnable: r } = t, { ruleLabelsEnable: a } = t, { floorplanData: l } = t, { getRoomAreaText: c } = t, { getLabelElement: d } = t, { getRuleDistanceText: u } = t, { adaptiveRoomLabelVisibleEnable: h } = t;
|
|
3857
|
-
const
|
|
3858
|
-
return i.$$set = (
|
|
3859
|
-
"isCurrent" in
|
|
3857
|
+
const m = io(void 0);
|
|
3858
|
+
return i.$$set = (p) => {
|
|
3859
|
+
"isCurrent" in p && e(0, n = p.isCurrent), "floorIndex" in p && e(1, o = p.floorIndex), "hoverEnable" in p && e(2, s = p.hoverEnable), "roomLabelsEnable" in p && e(3, r = p.roomLabelsEnable), "ruleLabelsEnable" in p && e(4, a = p.ruleLabelsEnable), "floorplanData" in p && e(5, l = p.floorplanData), "getRoomAreaText" in p && e(6, c = p.getRoomAreaText), "getLabelElement" in p && e(7, d = p.getLabelElement), "getRuleDistanceText" in p && e(8, u = p.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in p && e(9, h = p.adaptiveRoomLabelVisibleEnable);
|
|
3860
3860
|
}, [
|
|
3861
3861
|
n,
|
|
3862
3862
|
o,
|
|
@@ -3868,7 +3868,7 @@ function Kd(i, t, e) {
|
|
|
3868
3868
|
d,
|
|
3869
3869
|
u,
|
|
3870
3870
|
h,
|
|
3871
|
-
|
|
3871
|
+
m
|
|
3872
3872
|
];
|
|
3873
3873
|
}
|
|
3874
3874
|
class $d extends oe {
|
|
@@ -3904,10 +3904,10 @@ function qo(i, t, e) {
|
|
|
3904
3904
|
}
|
|
3905
3905
|
function Ko(i) {
|
|
3906
3906
|
let t, e, n, o, s, r, a = i[9].floorDatas, l = [];
|
|
3907
|
-
for (let
|
|
3908
|
-
l[
|
|
3909
|
-
const c = (
|
|
3910
|
-
l[
|
|
3907
|
+
for (let m = 0; m < a.length; m += 1)
|
|
3908
|
+
l[m] = $o(qo(i, a, m));
|
|
3909
|
+
const c = (m) => M(l[m], 1, 1, () => {
|
|
3910
|
+
l[m] = null;
|
|
3911
3911
|
}), d = [
|
|
3912
3912
|
{
|
|
3913
3913
|
panoIndex: i[3],
|
|
@@ -3917,36 +3917,36 @@ function Ko(i) {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
];
|
|
3919
3919
|
let u = {};
|
|
3920
|
-
for (let
|
|
3921
|
-
u = ye(u, d[
|
|
3920
|
+
for (let m = 0; m < d.length; m += 1)
|
|
3921
|
+
u = ye(u, d[m]);
|
|
3922
3922
|
n = new Hc({ props: u });
|
|
3923
3923
|
let h = i[6] && es(i);
|
|
3924
3924
|
return {
|
|
3925
3925
|
c() {
|
|
3926
3926
|
t = j("div");
|
|
3927
|
-
for (let
|
|
3928
|
-
l[
|
|
3927
|
+
for (let m = 0; m < l.length; m += 1)
|
|
3928
|
+
l[m].c();
|
|
3929
3929
|
e = V(), ee(n.$$.fragment), o = V(), h && h.c(), b(t, "class", "floorplan-main svelte-86bqav");
|
|
3930
3930
|
},
|
|
3931
|
-
m(
|
|
3932
|
-
B(
|
|
3931
|
+
m(m, p) {
|
|
3932
|
+
B(m, t, p);
|
|
3933
3933
|
for (let g = 0; g < l.length; g += 1)
|
|
3934
3934
|
l[g].m(t, null);
|
|
3935
3935
|
Q(t, e), K(n, t, null), Q(t, o), h && h.m(t, null), r = !0;
|
|
3936
3936
|
},
|
|
3937
|
-
p(
|
|
3938
|
-
if (i =
|
|
3937
|
+
p(m, p) {
|
|
3938
|
+
if (i = m, p & 62384) {
|
|
3939
3939
|
a = i[9].floorDatas;
|
|
3940
|
-
let
|
|
3941
|
-
for (
|
|
3942
|
-
const
|
|
3943
|
-
l[
|
|
3940
|
+
let v;
|
|
3941
|
+
for (v = 0; v < a.length; v += 1) {
|
|
3942
|
+
const A = qo(i, a, v);
|
|
3943
|
+
l[v] ? (l[v].p(A, p), D(l[v], 1)) : (l[v] = $o(A), l[v].c(), D(l[v], 1), l[v].m(t, e));
|
|
3944
3944
|
}
|
|
3945
|
-
for (le(),
|
|
3946
|
-
c(
|
|
3945
|
+
for (le(), v = a.length; v < l.length; v += 1)
|
|
3946
|
+
c(v);
|
|
3947
3947
|
ce();
|
|
3948
3948
|
}
|
|
3949
|
-
const g =
|
|
3949
|
+
const g = p & 3592 ? Me(d, [
|
|
3950
3950
|
{
|
|
3951
3951
|
panoIndex: i[3],
|
|
3952
3952
|
floorplanData: i[9],
|
|
@@ -3954,15 +3954,15 @@ function Ko(i) {
|
|
|
3954
3954
|
cameraImageUrl: i[11]
|
|
3955
3955
|
}
|
|
3956
3956
|
]) : {};
|
|
3957
|
-
n.$set(g), i[6] ? h ? (h.p(i,
|
|
3957
|
+
n.$set(g), i[6] ? h ? (h.p(i, p), p & 64 && D(h, 1)) : (h = es(i), h.c(), D(h, 1), h.m(t, null)) : h && (le(), M(h, 1, 1, () => {
|
|
3958
3958
|
h = null;
|
|
3959
3959
|
}), ce());
|
|
3960
3960
|
},
|
|
3961
|
-
i(
|
|
3961
|
+
i(m) {
|
|
3962
3962
|
if (!r) {
|
|
3963
|
-
for (let
|
|
3964
|
-
D(l[
|
|
3965
|
-
D(n.$$.fragment,
|
|
3963
|
+
for (let p = 0; p < a.length; p += 1)
|
|
3964
|
+
D(l[p]);
|
|
3965
|
+
D(n.$$.fragment, m), D(h), s || Ie(() => {
|
|
3966
3966
|
s = Ht(t, Mt, {
|
|
3967
3967
|
duration: i[0],
|
|
3968
3968
|
easing: Vt
|
|
@@ -3970,14 +3970,14 @@ function Ko(i) {
|
|
|
3970
3970
|
}), r = !0;
|
|
3971
3971
|
}
|
|
3972
3972
|
},
|
|
3973
|
-
o(
|
|
3973
|
+
o(m) {
|
|
3974
3974
|
l = l.filter(Boolean);
|
|
3975
|
-
for (let
|
|
3976
|
-
M(l[
|
|
3977
|
-
M(n.$$.fragment,
|
|
3975
|
+
for (let p = 0; p < l.length; p += 1)
|
|
3976
|
+
M(l[p]);
|
|
3977
|
+
M(n.$$.fragment, m), M(h), r = !1;
|
|
3978
3978
|
},
|
|
3979
|
-
d(
|
|
3980
|
-
|
|
3979
|
+
d(m) {
|
|
3980
|
+
m && T(t), tt(l, m), $(n), h && h.d();
|
|
3981
3981
|
}
|
|
3982
3982
|
};
|
|
3983
3983
|
}
|
|
@@ -4012,7 +4012,7 @@ function $o(i) {
|
|
|
4012
4012
|
K(t, s, r), e = !0;
|
|
4013
4013
|
},
|
|
4014
4014
|
p(s, r) {
|
|
4015
|
-
const a = r & 62384 ?
|
|
4015
|
+
const a = r & 62384 ? Me(n, [
|
|
4016
4016
|
r & 62368 && {
|
|
4017
4017
|
hoverEnable: s[5],
|
|
4018
4018
|
floorplanData: s[9],
|
|
@@ -4098,9 +4098,9 @@ function tu(i) {
|
|
|
4098
4098
|
};
|
|
4099
4099
|
}
|
|
4100
4100
|
function nu(i, t, e) {
|
|
4101
|
-
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: u } = t, { floorplanData: h } = t, { lastPanoramaLongitude:
|
|
4101
|
+
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: u } = t, { floorplanData: h } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: p } = t, { getRoomAreaText: g } = t, { getLabelElement: v } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: w } = t;
|
|
4102
4102
|
return i.$$set = (y) => {
|
|
4103
|
-
"duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, u = y.ruleLabelsEnable), "floorplanData" in y && e(9, h = y.floorplanData), "lastPanoramaLongitude" in y && e(10,
|
|
4103
|
+
"duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, u = y.ruleLabelsEnable), "floorplanData" in y && e(9, h = y.floorplanData), "lastPanoramaLongitude" in y && e(10, m = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, p = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, v = y.getLabelElement), "getRuleDistanceText" in y && e(14, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, w = y.adaptiveRoomLabelVisibleEnable);
|
|
4104
4104
|
}, [
|
|
4105
4105
|
n,
|
|
4106
4106
|
o,
|
|
@@ -4112,11 +4112,11 @@ function nu(i, t, e) {
|
|
|
4112
4112
|
d,
|
|
4113
4113
|
u,
|
|
4114
4114
|
h,
|
|
4115
|
-
p,
|
|
4116
4115
|
m,
|
|
4116
|
+
p,
|
|
4117
4117
|
g,
|
|
4118
|
-
A,
|
|
4119
4118
|
v,
|
|
4119
|
+
A,
|
|
4120
4120
|
w
|
|
4121
4121
|
];
|
|
4122
4122
|
}
|
|
@@ -5148,26 +5148,26 @@ function wu(i) {
|
|
|
5148
5148
|
}
|
|
5149
5149
|
function Cu(i, t, e) {
|
|
5150
5150
|
let n, o, { five: s } = t, { pxmm: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, c = s.getCurrentState().panoIndex, d = s.getCurrentState().longitude;
|
|
5151
|
-
function u(
|
|
5152
|
-
const
|
|
5153
|
-
if (!
|
|
5151
|
+
function u(p, g) {
|
|
5152
|
+
const v = p.bounding, A = p.observers[g];
|
|
5153
|
+
if (!A)
|
|
5154
5154
|
return "";
|
|
5155
|
-
const w = (
|
|
5155
|
+
const w = (v.max.x - v.min.x) * r, y = (v.max.y - v.min.y) * r, x = Math.floor(A.positionInImage.x * w), L = Math.floor(A.positionInImage.y * y);
|
|
5156
5156
|
return `translate(${x}px, ${L}px)`;
|
|
5157
5157
|
}
|
|
5158
|
-
function h(
|
|
5159
|
-
e(6, c =
|
|
5158
|
+
function h(p) {
|
|
5159
|
+
e(6, c = p);
|
|
5160
5160
|
}
|
|
5161
|
-
const
|
|
5162
|
-
(
|
|
5163
|
-
e(7, d =
|
|
5161
|
+
const m = lo(
|
|
5162
|
+
(p) => {
|
|
5163
|
+
e(7, d = p.longitude);
|
|
5164
5164
|
},
|
|
5165
5165
|
1e3 / 60
|
|
5166
5166
|
);
|
|
5167
|
-
return Ye(() => (s.on("panoWillArrive", h), s.on("cameraDirectionUpdate",
|
|
5168
|
-
s.off("panoWillArrive", h), s.off("cameraDirectionUpdate",
|
|
5169
|
-
})), i.$$set = (
|
|
5170
|
-
"five" in
|
|
5167
|
+
return Ye(() => (s.on("panoWillArrive", h), s.on("cameraDirectionUpdate", m), function() {
|
|
5168
|
+
s.off("panoWillArrive", h), s.off("cameraDirectionUpdate", m);
|
|
5169
|
+
})), i.$$set = (p) => {
|
|
5170
|
+
"five" in p && e(3, s = p.five), "pxmm" in p && e(4, r = p.pxmm), "floorplanData" in p && e(5, a = p.floorplanData), "cameraImageUrl" in p && e(0, l = p.cameraImageUrl);
|
|
5171
5171
|
}, i.$$.update = () => {
|
|
5172
5172
|
i.$$.dirty & 96 && e(2, n = u(a, c)), i.$$.dirty & 128 && e(1, o = wu(d));
|
|
5173
5173
|
}, [
|
|
@@ -5289,7 +5289,7 @@ function os(i) {
|
|
|
5289
5289
|
K(t, s, r), e = !0;
|
|
5290
5290
|
},
|
|
5291
5291
|
p(s, r) {
|
|
5292
|
-
const a = r & 87 ?
|
|
5292
|
+
const a = r & 87 ? Me(n, [
|
|
5293
5293
|
{
|
|
5294
5294
|
five: s[0],
|
|
5295
5295
|
pxmm: s[1],
|
|
@@ -5336,15 +5336,15 @@ function Du(i) {
|
|
|
5336
5336
|
K(t, d, u), B(d, e, u), K(n, d, u), B(d, o, u), c && c.m(d, u), B(d, s, u), r = !0;
|
|
5337
5337
|
},
|
|
5338
5338
|
p(d, [u]) {
|
|
5339
|
-
const h = u & 20 ?
|
|
5339
|
+
const h = u & 20 ? Me(a, [
|
|
5340
5340
|
{
|
|
5341
5341
|
floorIndex: d[2],
|
|
5342
5342
|
floorplanData: d[4]
|
|
5343
5343
|
}
|
|
5344
5344
|
]) : {};
|
|
5345
5345
|
t.$set(h);
|
|
5346
|
-
const
|
|
5347
|
-
u & 32 && (
|
|
5346
|
+
const m = {};
|
|
5347
|
+
u & 32 && (m.extraObjects = d[5]), n.$set(m), d[3] ? c ? (c.p(d, u), u & 8 && D(c, 1)) : (c = os(d), c.c(), D(c, 1), c.m(s.parentNode, s)) : c && (le(), M(c, 1, 1, () => {
|
|
5348
5348
|
c = null;
|
|
5349
5349
|
}), ce());
|
|
5350
5350
|
},
|
|
@@ -5448,11 +5448,11 @@ function rs(i) {
|
|
|
5448
5448
|
c() {
|
|
5449
5449
|
t = j("div"), ee(e.$$.fragment), n = V(), ee(o.$$.fragment), b(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), R(t, "width", s), R(t, "height", r);
|
|
5450
5450
|
},
|
|
5451
|
-
m(h,
|
|
5452
|
-
B(h, t,
|
|
5451
|
+
m(h, m) {
|
|
5452
|
+
B(h, t, m), K(e, t, null), Q(t, n), K(o, t, null), a = !0;
|
|
5453
5453
|
},
|
|
5454
|
-
p(h,
|
|
5455
|
-
const
|
|
5454
|
+
p(h, m) {
|
|
5455
|
+
const p = m & 1581 ? Me(l, [
|
|
5456
5456
|
{
|
|
5457
5457
|
five: h[0],
|
|
5458
5458
|
pxmm: h[9],
|
|
@@ -5462,8 +5462,8 @@ function rs(i) {
|
|
|
5462
5462
|
extraObjects: h[5]
|
|
5463
5463
|
}
|
|
5464
5464
|
]) : {};
|
|
5465
|
-
e.$set(
|
|
5466
|
-
const g =
|
|
5465
|
+
e.$set(p);
|
|
5466
|
+
const g = m & 537 ? Me(d, [
|
|
5467
5467
|
{
|
|
5468
5468
|
pxmm: h[9],
|
|
5469
5469
|
five: h[0],
|
|
@@ -5471,7 +5471,7 @@ function rs(i) {
|
|
|
5471
5471
|
cameraImageUrl: h[4]
|
|
5472
5472
|
}
|
|
5473
5473
|
]) : {};
|
|
5474
|
-
o.$set(g),
|
|
5474
|
+
o.$set(g), m & 256 && s !== (s = `${h[8]}px`) && R(t, "width", s), m & 2048 && r !== (r = `${h[11]}px`) && R(t, "height", r);
|
|
5475
5475
|
},
|
|
5476
5476
|
i(h) {
|
|
5477
5477
|
a || (D(e.$$.fragment, h), D(o.$$.fragment, h), a = !0);
|
|
@@ -5510,15 +5510,15 @@ function Tu(i) {
|
|
|
5510
5510
|
};
|
|
5511
5511
|
}
|
|
5512
5512
|
function Mu(i, t, e) {
|
|
5513
|
-
var
|
|
5514
|
-
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (w = (
|
|
5513
|
+
var A, w;
|
|
5514
|
+
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (w = (A = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : A.floorIndex) != null ? w : 0, u = 0, h = 0, m = 0, p = 0;
|
|
5515
5515
|
function g(y) {
|
|
5516
5516
|
e(10, d = n.work.observers[y].floorIndex);
|
|
5517
5517
|
}
|
|
5518
5518
|
Ye(() => (n.on("panoArrived", g), () => {
|
|
5519
5519
|
n.off("panoArrived", g);
|
|
5520
5520
|
}));
|
|
5521
|
-
function
|
|
5521
|
+
function v() {
|
|
5522
5522
|
u = this.clientWidth, h = this.clientHeight, e(6, u), e(7, h);
|
|
5523
5523
|
}
|
|
5524
5524
|
return i.$$set = (y) => {
|
|
@@ -5528,7 +5528,7 @@ function Mu(i, t, e) {
|
|
|
5528
5528
|
const y = Math.min(u, h), { max: x, min: L } = r.bounding, C = x.x - L.x, S = x.y - L.y, k = function() {
|
|
5529
5529
|
return C > S ? [y, y / C * S] : [y / S * C, y];
|
|
5530
5530
|
}();
|
|
5531
|
-
e(8,
|
|
5531
|
+
e(8, m = k[0]), e(11, p = k[1]), e(9, c = m / C);
|
|
5532
5532
|
}
|
|
5533
5533
|
}, [
|
|
5534
5534
|
n,
|
|
@@ -5539,11 +5539,11 @@ function Mu(i, t, e) {
|
|
|
5539
5539
|
l,
|
|
5540
5540
|
u,
|
|
5541
5541
|
h,
|
|
5542
|
-
|
|
5542
|
+
m,
|
|
5543
5543
|
c,
|
|
5544
5544
|
d,
|
|
5545
|
-
|
|
5546
|
-
|
|
5545
|
+
p,
|
|
5546
|
+
v
|
|
5547
5547
|
];
|
|
5548
5548
|
}
|
|
5549
5549
|
class Bu extends oe {
|
|
@@ -5815,16 +5815,16 @@ const eA = (i, t) => {
|
|
|
5815
5815
|
var d;
|
|
5816
5816
|
const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (d = t.north_rad) != null ? d : void 0, o = {}, s = (u) => J(void 0, null, function* () {
|
|
5817
5817
|
var Y;
|
|
5818
|
-
const h = (u == null ? void 0 : u.fbx_url) || e,
|
|
5819
|
-
if (typeof
|
|
5818
|
+
const h = (u == null ? void 0 : u.fbx_url) || e, m = (Y = u == null ? void 0 : u.north_rad) != null ? Y : n;
|
|
5819
|
+
if (typeof m != "number")
|
|
5820
5820
|
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
5821
|
-
const
|
|
5821
|
+
const p = i.model.bounding, g = p.max.x - p.min.x, v = p.max.z - p.min.z, A = Math.max(g, v), y = yield new Ur().loadAsync(h);
|
|
5822
5822
|
Ea(y, {
|
|
5823
5823
|
transparent: !0,
|
|
5824
5824
|
side: E.DoubleSide,
|
|
5825
5825
|
blending: E.AdditiveBlending
|
|
5826
5826
|
});
|
|
5827
|
-
const x = [0,
|
|
5827
|
+
const x = [0, m - Math.PI / 2, 0], {
|
|
5828
5828
|
model: {
|
|
5829
5829
|
bounding: {
|
|
5830
5830
|
max: { x: L, z: C },
|
|
@@ -5833,7 +5833,7 @@ const eA = (i, t) => {
|
|
|
5833
5833
|
}
|
|
5834
5834
|
} = i;
|
|
5835
5835
|
o.yBase = k;
|
|
5836
|
-
const H = { x: (L + S) / 2, y: k - 1.6, z: (C + F) / 2 }, N = 45e-4 *
|
|
5836
|
+
const H = { x: (L + S) / 2, y: k - 1.6, z: (C + F) / 2 }, N = 45e-4 * A;
|
|
5837
5837
|
return Qu(y, { position: H, rotation: x, scale: N }), o.object = y, !0;
|
|
5838
5838
|
}), r = ({ latitude: u }) => {
|
|
5839
5839
|
if (!o.object)
|
|
@@ -5846,8 +5846,8 @@ const eA = (i, t) => {
|
|
|
5846
5846
|
const h = 0.6;
|
|
5847
5847
|
if (u >= Math.PI / 4)
|
|
5848
5848
|
return o.yBase - (h + 1.6);
|
|
5849
|
-
const
|
|
5850
|
-
return o.yBase - (h *
|
|
5849
|
+
const m = u * (4 / Math.PI);
|
|
5850
|
+
return o.yBase - (h * m + 1.6);
|
|
5851
5851
|
};
|
|
5852
5852
|
return { load: s, disable: () => {
|
|
5853
5853
|
!o.object || (i.scene.remove(o.object), i.needsRender = !0, i.off("cameraDirectionUpdate", r));
|
|
@@ -5859,15 +5859,15 @@ const eA = (i, t) => {
|
|
|
5859
5859
|
} };
|
|
5860
5860
|
};
|
|
5861
5861
|
function Ru(i, t) {
|
|
5862
|
-
var c, d, u, h,
|
|
5863
|
-
const e = (c = t == null ? void 0 : t.size) != null ? c : 512, n = (d = t == null ? void 0 : t.fontSize) != null ? d : e * (35 / 256) * 1.2, o = (u = t == null ? void 0 : t.backgroundColor) != null ? u : "rgba(0,0,0,0)", s = (h = t == null ? void 0 : t.fontColor) != null ? h : "#fff", r = (
|
|
5862
|
+
var c, d, u, h, m;
|
|
5863
|
+
const e = (c = t == null ? void 0 : t.size) != null ? c : 512, n = (d = t == null ? void 0 : t.fontSize) != null ? d : e * (35 / 256) * 1.2, o = (u = t == null ? void 0 : t.backgroundColor) != null ? u : "rgba(0,0,0,0)", s = (h = t == null ? void 0 : t.fontColor) != null ? h : "#fff", r = (m = t == null ? void 0 : t.textAlign) != null ? m : "center", a = document.createElement("canvas");
|
|
5864
5864
|
a.setAttribute("width", e + ""), a.setAttribute("height", e + "");
|
|
5865
5865
|
const l = a.getContext("2d");
|
|
5866
5866
|
return l.fillStyle = o, l.fillRect(0, 0, e, e), l.font = `${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`, l.textAlign = r, l.fillStyle = s, l.fillText(i, e / 2, e * 0.7), new bl(a);
|
|
5867
5867
|
}
|
|
5868
5868
|
const Hu = ({ x: i, y: t, z: e }) => new _(i, t, e), tA = (i, t) => {
|
|
5869
|
-
var g,
|
|
5870
|
-
const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (
|
|
5869
|
+
var g, v, A;
|
|
5870
|
+
const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (w) => J(void 0, null, function* () {
|
|
5871
5871
|
var H, N, Y, P, I, z, O, W;
|
|
5872
5872
|
const y = (H = w == null ? void 0 : w.position) != null ? H : o;
|
|
5873
5873
|
if (!y)
|
|
@@ -5999,9 +5999,9 @@ const Oi = (i, t, e) => {
|
|
|
5999
5999
|
}, nA = (i) => {
|
|
6000
6000
|
const t = {}, e = (l, c, ...d) => J(void 0, [l, c, ...d], function* (s, r, a = { preload: !0 }) {
|
|
6001
6001
|
return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), s.mode && s.mode !== i.currentMode && (yield i.changeMode(s.mode)), a.preload && s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (yield i.preloadPano(s.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), s.panoIndex === void 0 && s.fov === void 0 && s.latitude === void 0 && s.longitude === void 0 ? !0 : yield new Promise((u, h) => {
|
|
6002
|
-
const
|
|
6003
|
-
|
|
6004
|
-
|
|
6002
|
+
const m = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
|
|
6003
|
+
m !== void 0 ? i.moveToPano(
|
|
6004
|
+
m,
|
|
6005
6005
|
Object.assign(
|
|
6006
6006
|
{
|
|
6007
6007
|
duration: r,
|
|
@@ -6026,28 +6026,28 @@ const Oi = (i, t, e) => {
|
|
|
6026
6026
|
return {
|
|
6027
6027
|
move: e,
|
|
6028
6028
|
rotate: (l, c, ...d) => J(void 0, [l, c, ...d], function* (s, r, a = {}) {
|
|
6029
|
-
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !==
|
|
6029
|
+
t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== Be.Mode.Panorama && (yield i.changeMode(Be.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((m, p) => {
|
|
6030
6030
|
if (!s.panoIndex) {
|
|
6031
|
-
|
|
6031
|
+
m(!0);
|
|
6032
6032
|
return;
|
|
6033
6033
|
}
|
|
6034
6034
|
i.moveToPano(s.panoIndex, {
|
|
6035
|
-
moveEndCallback: () =>
|
|
6036
|
-
moveCancelCallback: () =>
|
|
6035
|
+
moveEndCallback: () => m(!0),
|
|
6036
|
+
moveCancelCallback: () => p(!1)
|
|
6037
6037
|
});
|
|
6038
6038
|
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
6039
6039
|
const { from: u, to: h } = n(s);
|
|
6040
|
-
return yield new Promise((
|
|
6041
|
-
const
|
|
6040
|
+
return yield new Promise((m) => {
|
|
6041
|
+
const p = ({ progress: y }) => {
|
|
6042
6042
|
const x = {};
|
|
6043
6043
|
x.longitude = Ci(u.longitude, h.longitude, y), x.latitude = Ci(u.latitude, h.latitude, y), x.fov = Ci(u.fov, h.fov, y), i.setState(x, !0);
|
|
6044
6044
|
}, g = () => {
|
|
6045
|
-
|
|
6046
|
-
},
|
|
6047
|
-
|
|
6048
|
-
},
|
|
6045
|
+
m(!0);
|
|
6046
|
+
}, v = () => {
|
|
6047
|
+
m(!1);
|
|
6048
|
+
}, A = s.rotateSpeed ? Math.ceil(Math.abs(h.longitude - u.longitude) / s.rotateSpeed * 1e3) : r, w = Wu(A, si.Easing.Linear.None).onUpdate(p).onComplete(g).onDestroy(v);
|
|
6049
6049
|
s.rotation === ot.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (y = !0) => {
|
|
6050
|
-
w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0),
|
|
6050
|
+
w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(y);
|
|
6051
6051
|
}, t.timeoutId = setTimeout(() => {
|
|
6052
6052
|
t.interruptCallback && t.interruptCallback(!0);
|
|
6053
6053
|
}, r);
|
|
@@ -6195,11 +6195,11 @@ const Uu = `<style type="text/css">
|
|
|
6195
6195
|
const [d] = t.model.intersectRaycaster(n), u = d ? d.point.y : 2.7, h = s[a];
|
|
6196
6196
|
if (!h)
|
|
6197
6197
|
return e;
|
|
6198
|
-
const
|
|
6199
|
-
e[
|
|
6198
|
+
const m = i.rooms[h].name;
|
|
6199
|
+
e[m] === void 0 ? e[m] = {
|
|
6200
6200
|
__roof: [u],
|
|
6201
6201
|
__floor: [c.y]
|
|
6202
|
-
} : (e[
|
|
6202
|
+
} : (e[m].__roof.push(u), e[m].__floor.push(c.y));
|
|
6203
6203
|
});
|
|
6204
6204
|
for (const r in e) {
|
|
6205
6205
|
const a = e[r];
|
|
@@ -6213,16 +6213,16 @@ const Uu = `<style type="text/css">
|
|
|
6213
6213
|
options: t.options || {
|
|
6214
6214
|
distanceText: (g) => `${g.toFixed(1)}m`
|
|
6215
6215
|
}
|
|
6216
|
-
}, n = (g,
|
|
6217
|
-
const
|
|
6216
|
+
}, n = (g, v) => {
|
|
6217
|
+
const A = `
|
|
6218
6218
|
<div class="PanoRulerPlugin-rule-line">
|
|
6219
6219
|
<em></em>
|
|
6220
6220
|
<div class="PanoRulerPlugin-rule-label">
|
|
6221
|
-
<div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(
|
|
6221
|
+
<div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(v)}</div>
|
|
6222
6222
|
</div>
|
|
6223
6223
|
</div>
|
|
6224
6224
|
`, w = document.createElement("div");
|
|
6225
|
-
return w.setAttribute("class", "PanoRulerPlugin-rule"), w.setAttribute("data-name", g), w.setAttribute("style", "display: none"), w.innerHTML =
|
|
6225
|
+
return w.setAttribute("class", "PanoRulerPlugin-rule"), w.setAttribute("data-name", g), w.setAttribute("style", "display: none"), w.innerHTML = A, w;
|
|
6226
6226
|
}, o = document.createElement("div");
|
|
6227
6227
|
o.setAttribute(
|
|
6228
6228
|
"style",
|
|
@@ -6230,15 +6230,15 @@ const Uu = `<style type="text/css">
|
|
|
6230
6230
|
);
|
|
6231
6231
|
const s = document.createElement("div");
|
|
6232
6232
|
s.innerHTML = Uu, o.appendChild(s);
|
|
6233
|
-
const r = {}, a = (g,
|
|
6233
|
+
const r = {}, a = (g, v) => {
|
|
6234
6234
|
if (e.loaded)
|
|
6235
6235
|
throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
|
|
6236
|
-
const
|
|
6236
|
+
const A = Vu(g, i), w = i.work;
|
|
6237
6237
|
if (!w)
|
|
6238
6238
|
return !1;
|
|
6239
|
-
for (const y in
|
|
6240
|
-
const x =
|
|
6241
|
-
const H = F.length > 0 ? g.rooms[g.observers[F[0]]].name : "", N =
|
|
6239
|
+
for (const y in v) {
|
|
6240
|
+
const x = v[y], { standingPosition: L } = w.observers[0], C = x.map(({ x: S, z: k, observers: F }) => {
|
|
6241
|
+
const H = F.length > 0 ? g.rooms[g.observers[F[0]]].name : "", N = A[H] ? A[H].floor : null;
|
|
6242
6242
|
let Y = 1 / 0, P = {
|
|
6243
6243
|
index: 0,
|
|
6244
6244
|
x: L.x,
|
|
@@ -6258,7 +6258,7 @@ const Uu = `<style type="text/css">
|
|
|
6258
6258
|
});
|
|
6259
6259
|
const I = new _(S, P.y, k);
|
|
6260
6260
|
Object.assign(I, { observers: F });
|
|
6261
|
-
const z =
|
|
6261
|
+
const z = A[H] ? A[H].roof : null, O = z ? new _(S, z, k) : null;
|
|
6262
6262
|
return O && Object.assign(O, { observers: F }), { origin: I, vertical: O };
|
|
6263
6263
|
});
|
|
6264
6264
|
r[y] = {
|
|
@@ -6279,36 +6279,36 @@ const Uu = `<style type="text/css">
|
|
|
6279
6279
|
}
|
|
6280
6280
|
}
|
|
6281
6281
|
return e.loaded = !0, !0;
|
|
6282
|
-
}, l = (g,
|
|
6283
|
-
const w = g || t.roomInfo, y =
|
|
6282
|
+
}, l = (g, v, A) => J(void 0, null, function* () {
|
|
6283
|
+
const w = g || t.roomInfo, y = v || t.roomRules;
|
|
6284
6284
|
if (!w || !y)
|
|
6285
6285
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
6286
|
-
return e.loaded = !1, e.options = G(G({}, e.options),
|
|
6286
|
+
return e.loaded = !1, e.options = G(G({}, e.options), A || {}), i.model.loaded ? a(w, y) : yield new Promise(
|
|
6287
6287
|
(x) => i.once("modelLoaded", () => x(a(w, y)))
|
|
6288
6288
|
);
|
|
6289
6289
|
});
|
|
6290
6290
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
6291
|
-
const c = (g,
|
|
6291
|
+
const c = (g, v, A, w) => {
|
|
6292
6292
|
const y = [
|
|
6293
6293
|
[
|
|
6294
6294
|
{ x: 0, y: 0 },
|
|
6295
|
-
{ x:
|
|
6295
|
+
{ x: A, y: 0 }
|
|
6296
6296
|
],
|
|
6297
6297
|
[
|
|
6298
6298
|
{ x: 0, y: 0 },
|
|
6299
6299
|
{ x: 0, y: w }
|
|
6300
6300
|
],
|
|
6301
6301
|
[
|
|
6302
|
-
{ x:
|
|
6303
|
-
{ x:
|
|
6302
|
+
{ x: A, y: 0 },
|
|
6303
|
+
{ x: A, y: w }
|
|
6304
6304
|
],
|
|
6305
6305
|
[
|
|
6306
6306
|
{ x: 0, y: w },
|
|
6307
|
-
{ x:
|
|
6307
|
+
{ x: A, y: w }
|
|
6308
6308
|
]
|
|
6309
6309
|
], x = [];
|
|
6310
6310
|
for (let L = 0; L < y.length; L++) {
|
|
6311
|
-
const C = xa([g,
|
|
6311
|
+
const C = xa([g, v], [y[L][0], y[L][1]], !0);
|
|
6312
6312
|
C && x.push(C);
|
|
6313
6313
|
}
|
|
6314
6314
|
return x.length === 0 ? !1 : x;
|
|
@@ -6317,20 +6317,20 @@ const Uu = `<style type="text/css">
|
|
|
6317
6317
|
const g = (F = i.getElement()) == null ? void 0 : F.parentElement;
|
|
6318
6318
|
if (!g || !e.loaded || Object.keys(r).length <= 0)
|
|
6319
6319
|
return;
|
|
6320
|
-
const { panoIndex:
|
|
6321
|
-
if (
|
|
6320
|
+
const { panoIndex: v, camera: A, currentMode: w } = i;
|
|
6321
|
+
if (v === void 0)
|
|
6322
6322
|
return;
|
|
6323
6323
|
let y;
|
|
6324
6324
|
for (const H in r)
|
|
6325
|
-
H.split(",").indexOf(
|
|
6325
|
+
H.split(",").indexOf(v.toString()) >= 0 && (y = H);
|
|
6326
6326
|
if (!y) {
|
|
6327
6327
|
for (const H in r)
|
|
6328
6328
|
for (const { $element: N } of r[H].rules)
|
|
6329
6329
|
N.style.display = "none";
|
|
6330
6330
|
return;
|
|
6331
6331
|
}
|
|
6332
|
-
const x =
|
|
6333
|
-
if (w !==
|
|
6332
|
+
const x = A.position, L = A.getWorldDirection(new _()), C = g.clientWidth, S = g.clientHeight;
|
|
6333
|
+
if (w !== Be.Mode.Panorama) {
|
|
6334
6334
|
for (const H in r)
|
|
6335
6335
|
for (const { $element: N } of r[H].rules)
|
|
6336
6336
|
N.style.display = "none";
|
|
@@ -6339,7 +6339,7 @@ const Uu = `<style type="text/css">
|
|
|
6339
6339
|
for (const H in r)
|
|
6340
6340
|
for (const { $element: N } of r[H].rules)
|
|
6341
6341
|
N.style.display = H === y ? "block" : "none";
|
|
6342
|
-
const [k] = r[y].origins.slice().filter((H) => H.observers.indexOf(
|
|
6342
|
+
const [k] = r[y].origins.slice().filter((H) => H.observers.indexOf(v) >= 0).sort((H, N) => {
|
|
6343
6343
|
const Y = H.clone().setY(0).sub(x).normalize().angleTo(L.clone().setY(0)), P = N.clone().setY(0).sub(x).normalize().angleTo(L.clone().setY(0));
|
|
6344
6344
|
return Y - P;
|
|
6345
6345
|
});
|
|
@@ -6359,7 +6359,7 @@ const Uu = `<style type="text/css">
|
|
|
6359
6359
|
Y.style.display = "none";
|
|
6360
6360
|
continue;
|
|
6361
6361
|
}
|
|
6362
|
-
if (P.observers.indexOf(
|
|
6362
|
+
if (P.observers.indexOf(v) === -1 || I.observers.indexOf(v) === -1) {
|
|
6363
6363
|
Y.style.display = "none";
|
|
6364
6364
|
continue;
|
|
6365
6365
|
}
|
|
@@ -6376,7 +6376,7 @@ const Uu = `<style type="text/css">
|
|
|
6376
6376
|
Y.style.display = "none";
|
|
6377
6377
|
continue;
|
|
6378
6378
|
}
|
|
6379
|
-
const de = P.clone().project(
|
|
6379
|
+
const de = P.clone().project(A), ue = (de.x + 1) / 2 * C, me = (-de.y + 1) / 2 * S, we = I.clone().project(A), ke = (we.x + 1) / 2 * C, He = (-we.y + 1) / 2 * S, se = Math.sqrt(Math.pow(ke - ue, 2) + Math.pow(He - me, 2));
|
|
6380
6380
|
let ve = se, be = 50;
|
|
6381
6381
|
const re = c({ x: ~~ue, y: ~~me }, {
|
|
6382
6382
|
x: ~~ke,
|
|
@@ -6395,26 +6395,26 @@ const Uu = `<style type="text/css">
|
|
|
6395
6395
|
ct >= se || ct / 2 >= be / 100 * se || ct / 2 >= (1 - be / 100) * se ? z.style.display = "none" : (z.style.display = "block", z.style.width = se + "px", z.style.left = ue + "px", z.style.top = me + "px", z.style.transform = `rotate(${-Ct}deg)`, ge.style.left = `${be}%`);
|
|
6396
6396
|
}
|
|
6397
6397
|
}, u = () => ka(d), h = () => {
|
|
6398
|
-
var g,
|
|
6399
|
-
return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (
|
|
6400
|
-
},
|
|
6401
|
-
function
|
|
6398
|
+
var g, v;
|
|
6399
|
+
return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (v = (g = i.getElement()) == null ? void 0 : g.parentElement) == null || v.append(o), d(), i.on("modeChange", d), i.on("cameraUpdate", u), e.enable = !0), !0) : !1;
|
|
6400
|
+
}, m = () => (e.enable && (i.off("modeChange", d), i.off("cameraUpdate", u), o && o.remove(), e.enable = !1), !0);
|
|
6401
|
+
function p(g) {
|
|
6402
6402
|
if (g.distanceText && g.distanceText !== e.options.distanceText) {
|
|
6403
|
-
const
|
|
6404
|
-
e.options.distanceText =
|
|
6405
|
-
|
|
6403
|
+
const v = g.distanceText;
|
|
6404
|
+
e.options.distanceText = v, Object.values(r).forEach((A) => {
|
|
6405
|
+
A.rules.forEach((w) => {
|
|
6406
6406
|
const [y, x] = w.rule, L = y.distanceTo(x), C = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
6407
|
-
!C || (C.innerText =
|
|
6407
|
+
!C || (C.innerText = v(L));
|
|
6408
6408
|
});
|
|
6409
6409
|
});
|
|
6410
6410
|
}
|
|
6411
6411
|
}
|
|
6412
6412
|
return {
|
|
6413
6413
|
enable: h,
|
|
6414
|
-
disable:
|
|
6414
|
+
disable: m,
|
|
6415
6415
|
load: l,
|
|
6416
6416
|
state: e,
|
|
6417
|
-
changeConfigs:
|
|
6417
|
+
changeConfigs: p
|
|
6418
6418
|
};
|
|
6419
6419
|
};
|
|
6420
6420
|
function Zu(i) {
|
|
@@ -6462,13 +6462,13 @@ function qu(i) {
|
|
|
6462
6462
|
let t, e;
|
|
6463
6463
|
return {
|
|
6464
6464
|
c() {
|
|
6465
|
-
t = j("em"), b(t, "class", e =
|
|
6465
|
+
t = j("em"), b(t, "class", e = je(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]);
|
|
6466
6466
|
},
|
|
6467
6467
|
m(n, o) {
|
|
6468
6468
|
B(n, t, o);
|
|
6469
6469
|
},
|
|
6470
6470
|
p(n, o) {
|
|
6471
|
-
o & 1 && e !== (e =
|
|
6471
|
+
o & 1 && e !== (e = je(n[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), o & 8 && b(t, "style", n[3]);
|
|
6472
6472
|
},
|
|
6473
6473
|
d(n) {
|
|
6474
6474
|
n && T(t);
|
|
@@ -6479,13 +6479,13 @@ function us(i) {
|
|
|
6479
6479
|
let t, e, n = `${i[6].width}px`;
|
|
6480
6480
|
return {
|
|
6481
6481
|
c() {
|
|
6482
|
-
t = j("div"), b(t, "class", e =
|
|
6482
|
+
t = j("div"), b(t, "class", e = je(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]), R(t, "width", n);
|
|
6483
6483
|
},
|
|
6484
6484
|
m(o, s) {
|
|
6485
6485
|
B(o, t, s);
|
|
6486
6486
|
},
|
|
6487
6487
|
p(o, s) {
|
|
6488
|
-
s & 1 && e !== (e =
|
|
6488
|
+
s & 1 && e !== (e = je(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), s & 8 && b(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && R(t, "width", n);
|
|
6489
6489
|
},
|
|
6490
6490
|
d(o) {
|
|
6491
6491
|
o && T(t);
|
|
@@ -6494,24 +6494,24 @@ function us(i) {
|
|
|
6494
6494
|
}
|
|
6495
6495
|
function Ku(i) {
|
|
6496
6496
|
let t, e, n, o, s = i[0].labelElement + "", r, a, l = `${i[0].labelOffset}%`, c = `${i[0].width}px`, d = `${i[0].left}px`, u = `${i[0].top}px`, h = `rotate(${i[0].rotateDeg}deg)`;
|
|
6497
|
-
function
|
|
6498
|
-
return
|
|
6497
|
+
function m(v, A) {
|
|
6498
|
+
return v[0].children.length === 0 ? qu : _u;
|
|
6499
6499
|
}
|
|
6500
|
-
let
|
|
6500
|
+
let p = m(i), g = p(i);
|
|
6501
6501
|
return {
|
|
6502
6502
|
c() {
|
|
6503
6503
|
t = j("div"), g.c(), e = V(), n = j("div"), o = j("div"), r = xe(s), b(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Ie(() => i[4].call(o)), b(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), R(n, "left", l), b(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), R(t, "width", c), R(t, "left", d), R(t, "top", u), R(t, "transform", h), R(t, "display", i[0].visible && i[2] ? "block" : "none");
|
|
6504
6504
|
},
|
|
6505
|
-
m(
|
|
6506
|
-
B(
|
|
6505
|
+
m(v, A) {
|
|
6506
|
+
B(v, t, A), g.m(t, null), Q(t, e), Q(t, n), Q(n, o), Q(o, r), a = yt(o, i[4].bind(o));
|
|
6507
6507
|
},
|
|
6508
|
-
p(
|
|
6509
|
-
|
|
6508
|
+
p(v, [A]) {
|
|
6509
|
+
p === (p = m(v)) && g ? g.p(v, A) : (g.d(1), g = p(v), g && (g.c(), g.m(t, e))), A & 1 && s !== (s = v[0].labelElement + "") && Te(r, s), A & 1 && l !== (l = `${v[0].labelOffset}%`) && R(n, "left", l), A & 1 && c !== (c = `${v[0].width}px`) && R(t, "width", c), A & 1 && d !== (d = `${v[0].left}px`) && R(t, "left", d), A & 1 && u !== (u = `${v[0].top}px`) && R(t, "top", u), A & 1 && h !== (h = `rotate(${v[0].rotateDeg}deg)`) && R(t, "transform", h), A & 5 && R(t, "display", v[0].visible && v[2] ? "block" : "none");
|
|
6510
6510
|
},
|
|
6511
6511
|
i: te,
|
|
6512
6512
|
o: te,
|
|
6513
|
-
d(
|
|
6514
|
-
|
|
6513
|
+
d(v) {
|
|
6514
|
+
v && T(t), g.d(), a();
|
|
6515
6515
|
}
|
|
6516
6516
|
};
|
|
6517
6517
|
}
|
|
@@ -6612,9 +6612,9 @@ function th(i) {
|
|
|
6612
6612
|
};
|
|
6613
6613
|
}
|
|
6614
6614
|
function nh(i, t, e) {
|
|
6615
|
-
var g,
|
|
6615
|
+
var g, v, A, w;
|
|
6616
6616
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
6617
|
-
const a = ((
|
|
6617
|
+
const a = ((v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((w = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (y, x) => {
|
|
6618
6618
|
const L = [
|
|
6619
6619
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
6620
6620
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
@@ -6661,7 +6661,7 @@ function nh(i, t, e) {
|
|
|
6661
6661
|
const y = n.panoIndex, x = o.find((N) => N.panoIndex === y);
|
|
6662
6662
|
if (!x)
|
|
6663
6663
|
return e(0, r = []);
|
|
6664
|
-
if (n.currentMode !==
|
|
6664
|
+
if (n.currentMode !== Be.Mode.Panorama)
|
|
6665
6665
|
return e(0, r = []);
|
|
6666
6666
|
const L = n.camera.position, C = n.camera.getWorldDirection(new _()), S = x.lines.map((N) => new _(N.start[0], -N.start[1], -N.start[2])), k = x.lines.map((N) => new _(N.end[0], -N.end[1], -N.end[2])), [F] = S.concat(k).sort((N, Y) => {
|
|
6667
6667
|
const P = N.clone().setY(0).sub(L).normalize().angleTo(C.clone().setY(0)), I = Y.clone().setY(0).sub(L).normalize().angleTo(C.clone().setY(0));
|
|
@@ -6685,11 +6685,11 @@ function nh(i, t, e) {
|
|
|
6685
6685
|
};
|
|
6686
6686
|
});
|
|
6687
6687
|
e(0, r = H);
|
|
6688
|
-
},
|
|
6688
|
+
}, m = () => ui(h), p = lo(h, 80);
|
|
6689
6689
|
return Ye(() => {
|
|
6690
|
-
h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate",
|
|
6690
|
+
h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () => p()), n.on("pinchGesture", () => p());
|
|
6691
6691
|
}), wt(() => {
|
|
6692
|
-
n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate",
|
|
6692
|
+
n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate", m), n.off("movingToPano", m), n.off("mouseWheel", () => p()), n.off("pinchGesture", () => p());
|
|
6693
6693
|
}), i.$$set = (y) => {
|
|
6694
6694
|
"five" in y && e(1, n = y.five), "rulerDatas" in y && e(2, o = y.rulerDatas), "options" in y && e(3, s = y.options);
|
|
6695
6695
|
}, [r, n, o, s];
|
|
@@ -6850,8 +6850,8 @@ class lh extends Ot {
|
|
|
6850
6850
|
this.data.entrance.position.x,
|
|
6851
6851
|
this.data.entrance.position.y,
|
|
6852
6852
|
this.data.entrance.position.z
|
|
6853
|
-
).clone().setY(n.y).sub(n).normalize(),
|
|
6854
|
-
this.entryDoorMesh.rotation.z = new E.Vector3(0, 0, -1).angleTo(h), this.entryDoorMesh.position.copy(
|
|
6853
|
+
).clone().setY(n.y).sub(n).normalize(), m = n.clone().add(h.clone().multiplyScalar(0.7)).setY(n.y + 0.01);
|
|
6854
|
+
this.entryDoorMesh.rotation.z = new E.Vector3(0, 0, -1).angleTo(h), this.entryDoorMesh.position.copy(m), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 0 });
|
|
6855
6855
|
}
|
|
6856
6856
|
this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
|
|
6857
6857
|
n.clone().setY(n.y + 0.01)
|
|
@@ -6867,7 +6867,7 @@ class lh extends Ot {
|
|
|
6867
6867
|
f(this, "onFiveModeChange", (e, n, o, s, r) => {
|
|
6868
6868
|
e !== n && this.setState(
|
|
6869
6869
|
{
|
|
6870
|
-
visible: e ===
|
|
6870
|
+
visible: e === Be.Mode.Panorama
|
|
6871
6871
|
},
|
|
6872
6872
|
{ userAction: r }
|
|
6873
6873
|
);
|
|
@@ -7058,10 +7058,10 @@ class dh {
|
|
|
7058
7058
|
render() {
|
|
7059
7059
|
if (!this.five.renderer || !this.wrapper)
|
|
7060
7060
|
return;
|
|
7061
|
-
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y,
|
|
7062
|
-
ch(
|
|
7063
|
-
const
|
|
7064
|
-
|
|
7061
|
+
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, m = this.five.getPixels(u - l / 2, h - l / 2, l, c, d), p = Math.floor(n * a), g = Math.floor(o * a);
|
|
7062
|
+
ch(m, p, g);
|
|
7063
|
+
const v = new ImageData(p, g);
|
|
7064
|
+
v.data.set(m), e.putImageData(v, 0, 0);
|
|
7065
7065
|
}
|
|
7066
7066
|
initStyle() {
|
|
7067
7067
|
const t = this.canvas;
|
|
@@ -7151,8 +7151,8 @@ const wh = {
|
|
|
7151
7151
|
pointsRenderOrder: 10
|
|
7152
7152
|
};
|
|
7153
7153
|
function Ch(i, t, e) {
|
|
7154
|
-
var d, u, h,
|
|
7155
|
-
const n = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, o = (u = e == null ? void 0 : e.lineColor) != null ? u : new An(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (
|
|
7154
|
+
var d, u, h, m, p;
|
|
7155
|
+
const n = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, o = (u = e == null ? void 0 : e.lineColor) != null ? u : new An(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 10, a = (p = e == null ? void 0 : e.lineRenderOrder) != null ? p : 20, l = new Yr(i, t);
|
|
7156
7156
|
l.setMaterial({ linewidth: n, color: o }), l.line.material.depthTest = !1, l.line.material.transparent = !0, l.line.renderOrder = r, l.points.renderOrder = a;
|
|
7157
7157
|
const c = l.points.material;
|
|
7158
7158
|
return c.depthTest = !1, c.size = s, e != null && e.pointColor && c.color.set(e.pointColor).convertSRGBToLinear(), e != null && e.pointTexture && (c.map = e.pointTexture), l;
|
|
@@ -7175,8 +7175,8 @@ function Ph(i) {
|
|
|
7175
7175
|
}
|
|
7176
7176
|
function Ih(i) {
|
|
7177
7177
|
function t() {
|
|
7178
|
-
var
|
|
7179
|
-
(
|
|
7178
|
+
var p;
|
|
7179
|
+
(p = i.clickCallback) == null || p.call(i, m);
|
|
7180
7180
|
}
|
|
7181
7181
|
function e() {
|
|
7182
7182
|
if (u)
|
|
@@ -7188,30 +7188,30 @@ function Ih(i) {
|
|
|
7188
7188
|
return u.unHighlight();
|
|
7189
7189
|
c.style.border = "0.5px solid rgba(255,255,255,0.6)", c.style.background = "rgba(195,195,195,0.70)";
|
|
7190
7190
|
}
|
|
7191
|
-
function o(
|
|
7192
|
-
const g =
|
|
7191
|
+
function o(p) {
|
|
7192
|
+
const g = p.getElement();
|
|
7193
7193
|
if (!g)
|
|
7194
7194
|
return;
|
|
7195
|
-
const
|
|
7195
|
+
const v = g.clientWidth, A = g.clientHeight;
|
|
7196
7196
|
if (a.points.length < 2)
|
|
7197
7197
|
return;
|
|
7198
|
-
const [w, y] = a.points, x = w.position.clone().project(
|
|
7198
|
+
const [w, y] = a.points, x = w.position.clone().project(p.camera), L = y.position.clone().project(p.camera), C = x.clone().lerp(L, 0.5), S = new Qe(x.x * v, x.y * A), k = new Qe(L.x * v, L.y * A);
|
|
7199
7199
|
if ((() => !(Math.abs(x.z) > 1 || Math.abs(L.z) > 1 || !Ke(x) && !Ke(L) || !Ke(C) || S.distanceTo(k) < 20))() === !1) {
|
|
7200
7200
|
d.style.opacity = "0", d.style.pointerEvents = "none";
|
|
7201
7201
|
return;
|
|
7202
7202
|
}
|
|
7203
|
-
const H = (C.x + 1) / 2 *
|
|
7203
|
+
const H = (C.x + 1) / 2 * v, N = -(C.y - 1) / 2 * A, P = -(Math.atan((S.y - k.y) / (S.x - k.x)) * 180) / Math.PI;
|
|
7204
7204
|
d.style.transform = `translate(${H}px, ${N}px) rotate(${P}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", u && u.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
|
|
7205
7205
|
const I = w.position.clone().distanceTo(y.position), z = i.line.model.params.getDistanceText(I);
|
|
7206
7206
|
c.innerText !== z && (c.innerText = z);
|
|
7207
7207
|
}
|
|
7208
|
-
function s(
|
|
7209
|
-
|
|
7208
|
+
function s(p) {
|
|
7209
|
+
p.appendChild(d), d.addEventListener("click", t);
|
|
7210
7210
|
}
|
|
7211
7211
|
function r() {
|
|
7212
7212
|
c.removeEventListener("click", t), d.remove();
|
|
7213
7213
|
}
|
|
7214
|
-
const { line: a } = i, l = a.id, c = Eh(), d = Ph(a), u = i.userDistanceItem, h = new _(0, 0, 0),
|
|
7214
|
+
const { line: a } = i, l = a.id, c = Eh(), d = Ph(a), u = i.userDistanceItem, h = new _(0, 0, 0), m = {
|
|
7215
7215
|
lineID: l,
|
|
7216
7216
|
ndcPosition: h,
|
|
7217
7217
|
update: o,
|
|
@@ -7220,7 +7220,7 @@ function Ih(i) {
|
|
|
7220
7220
|
highlight: e,
|
|
7221
7221
|
unHighlight: n
|
|
7222
7222
|
};
|
|
7223
|
-
return u != null && u.element ? d.appendChild(u.element) : d.appendChild(c),
|
|
7223
|
+
return u != null && u.element ? d.appendChild(u.element) : d.appendChild(c), m;
|
|
7224
7224
|
}
|
|
7225
7225
|
class $t {
|
|
7226
7226
|
constructor(t, e, n) {
|
|
@@ -7546,25 +7546,25 @@ class kh extends fi {
|
|
|
7546
7546
|
const [n] = this.five.model.intersectRaycaster(e);
|
|
7547
7547
|
if (!n)
|
|
7548
7548
|
return;
|
|
7549
|
-
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((
|
|
7550
|
-
const [
|
|
7551
|
-
if (!Ke(
|
|
7549
|
+
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((m) => {
|
|
7550
|
+
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
7551
|
+
if (!Ke(v) && !Ke(A))
|
|
7552
7552
|
return null;
|
|
7553
7553
|
const w = new Qe(
|
|
7554
|
-
A.x * r,
|
|
7555
|
-
A.y * a
|
|
7556
|
-
), y = new Qe(
|
|
7557
7554
|
v.x * r,
|
|
7558
7555
|
v.y * a
|
|
7556
|
+
), y = new Qe(
|
|
7557
|
+
A.x * r,
|
|
7558
|
+
A.y * a
|
|
7559
7559
|
);
|
|
7560
|
-
return { id:
|
|
7561
|
-
}).filter((
|
|
7560
|
+
return { id: m.id, points: [w, y] };
|
|
7561
|
+
}).filter((m) => !!m);
|
|
7562
7562
|
if (c.length === 0)
|
|
7563
7563
|
return;
|
|
7564
|
-
const u = c.map((
|
|
7565
|
-
const
|
|
7566
|
-
return { id:
|
|
7567
|
-
}).sort((
|
|
7564
|
+
const u = c.map((m) => {
|
|
7565
|
+
const p = ho(l, m.points);
|
|
7566
|
+
return { id: m.id, distance: p.distanceTo(l) };
|
|
7567
|
+
}).sort((m, p) => m.distance - p.distance)[0], h = u.distance > 20 ? void 0 : this.model.lines.find(({ id: m }) => m === u.id);
|
|
7568
7568
|
if (this.highlightedLines.length > 0 && !h)
|
|
7569
7569
|
return this.clearHighlightLines(), !1;
|
|
7570
7570
|
if (h)
|
|
@@ -7670,8 +7670,8 @@ class Sa {
|
|
|
7670
7670
|
const l = (s + 1) / 2 * a.clientWidth, c = -(r - 1) / 2 * a.clientHeight;
|
|
7671
7671
|
let d = l, u = c - 34;
|
|
7672
7672
|
if (this.lines.length === 1 && t.length === 2) {
|
|
7673
|
-
const h = (o[1] - o[0]) / (n[1] - n[0]),
|
|
7674
|
-
Math.abs(h) > 0.4 && (d = l + 57, u =
|
|
7673
|
+
const h = (o[1] - o[0]) / (n[1] - n[0]), p = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
|
|
7674
|
+
Math.abs(h) > 0.4 && (d = l + 57, u = p);
|
|
7675
7675
|
}
|
|
7676
7676
|
return this.container.style.transform = `translate3d(${d}px, ${u}px, 10px)`, this.show();
|
|
7677
7677
|
}
|
|
@@ -7758,28 +7758,28 @@ class Pi extends fi {
|
|
|
7758
7758
|
const [n] = this.five.model.intersectRaycaster(e);
|
|
7759
7759
|
if (!n)
|
|
7760
7760
|
return;
|
|
7761
|
-
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((
|
|
7762
|
-
const [
|
|
7763
|
-
if (!Ke(
|
|
7761
|
+
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((m) => {
|
|
7762
|
+
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
7763
|
+
if (!Ke(v) && !Ke(A))
|
|
7764
7764
|
return null;
|
|
7765
7765
|
const w = new Qe(
|
|
7766
|
-
A.x * r,
|
|
7767
|
-
A.y * a
|
|
7768
|
-
), y = new Qe(
|
|
7769
7766
|
v.x * r,
|
|
7770
7767
|
v.y * a
|
|
7768
|
+
), y = new Qe(
|
|
7769
|
+
A.x * r,
|
|
7770
|
+
A.y * a
|
|
7771
7771
|
);
|
|
7772
|
-
return { id:
|
|
7773
|
-
}).filter((
|
|
7772
|
+
return { id: m.id, points: [w, y] };
|
|
7773
|
+
}).filter((m) => !!m);
|
|
7774
7774
|
if (c.length === 0)
|
|
7775
7775
|
return;
|
|
7776
|
-
const u = c.map((
|
|
7777
|
-
const
|
|
7778
|
-
return { id:
|
|
7779
|
-
}).sort((
|
|
7776
|
+
const u = c.map((m) => {
|
|
7777
|
+
const p = ho(l, m.points);
|
|
7778
|
+
return { id: m.id, distance: p.distanceTo(l) };
|
|
7779
|
+
}).sort((m, p) => m.distance - p.distance)[0];
|
|
7780
7780
|
if (u.distance > 20)
|
|
7781
7781
|
return;
|
|
7782
|
-
const h = this.model.lines.find(({ id:
|
|
7782
|
+
const h = this.model.lines.find(({ id: m }) => m === u.id);
|
|
7783
7783
|
if (!!h)
|
|
7784
7784
|
return this.chooseLine(h), !1;
|
|
7785
7785
|
});
|
|
@@ -7858,22 +7858,22 @@ class As extends fi {
|
|
|
7858
7858
|
const [n] = this.five.model.intersectRaycaster(e);
|
|
7859
7859
|
if (!n)
|
|
7860
7860
|
return;
|
|
7861
|
-
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((
|
|
7862
|
-
const [
|
|
7863
|
-
if (!Ke(
|
|
7861
|
+
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((m) => {
|
|
7862
|
+
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
7863
|
+
if (!Ke(v) && !Ke(A))
|
|
7864
7864
|
return null;
|
|
7865
|
-
const w = new Qe(
|
|
7866
|
-
return { id:
|
|
7867
|
-
}).filter((
|
|
7865
|
+
const w = new Qe(v.x * r, v.y * a), y = new Qe(A.x * r, A.y * a);
|
|
7866
|
+
return { id: m.id, points: [w, y] };
|
|
7867
|
+
}).filter((m) => !!m);
|
|
7868
7868
|
if (c.length === 0)
|
|
7869
7869
|
return;
|
|
7870
|
-
const u = c.map((
|
|
7871
|
-
const
|
|
7872
|
-
return { id:
|
|
7873
|
-
}).sort((
|
|
7870
|
+
const u = c.map((m) => {
|
|
7871
|
+
const p = ho(l, m.points);
|
|
7872
|
+
return { id: m.id, distance: p.distanceTo(l) };
|
|
7873
|
+
}).sort((m, p) => m.distance - p.distance)[0];
|
|
7874
7874
|
if (u.distance > 20)
|
|
7875
7875
|
return;
|
|
7876
|
-
const h = this.model.lines.find(({ id:
|
|
7876
|
+
const h = this.model.lines.find(({ id: m }) => m === u.id);
|
|
7877
7877
|
if (!!h)
|
|
7878
7878
|
return this.chooseLine(h), !1;
|
|
7879
7879
|
});
|
|
@@ -7963,8 +7963,8 @@ void main() {
|
|
|
7963
7963
|
}
|
|
7964
7964
|
`;
|
|
7965
7965
|
function za(i) {
|
|
7966
|
-
var
|
|
7967
|
-
const t = (
|
|
7966
|
+
var A, w;
|
|
7967
|
+
const t = (A = i.isMobile) != null ? A : !0, e = (w = i.useNormalVector) != null ? w : !0;
|
|
7968
7968
|
let n = 10349931;
|
|
7969
7969
|
e && i.ballColor >= 0 && (n = i.ballColor);
|
|
7970
7970
|
const o = new _i(), s = new wl(0.3, 0.3), r = t ? Th : Mh, a = new Nr().load(r);
|
|
@@ -7980,13 +7980,13 @@ function za(i) {
|
|
|
7980
7980
|
fragmentShader: jh,
|
|
7981
7981
|
depthTest: !1,
|
|
7982
7982
|
transparent: !0
|
|
7983
|
-
}),
|
|
7983
|
+
}), m = new Fn(u, h), p = new kl(0.01, 20, 20), g = new un({
|
|
7984
7984
|
color: n,
|
|
7985
7985
|
depthTest: !1,
|
|
7986
7986
|
transparent: !0,
|
|
7987
7987
|
side: Wr
|
|
7988
|
-
}),
|
|
7989
|
-
return
|
|
7988
|
+
}), v = new Fn(p, g);
|
|
7989
|
+
return v.position.set(0, 0, 0.1), o.name = "mouse-current", o.add(c), e && o.add(m, v), o;
|
|
7990
7990
|
}
|
|
7991
7991
|
const Ta = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTUuMyUiIHk9Ii01LjMlIiB3aWR0aD0iMTEwLjUlIiBoZWlnaHQ9IjExMC41JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEiIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbXBvc2l0ZSBpbj0ic2hhZG93Qmx1ck91dGVyMSIgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9Im91dCIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjUgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48ZmlsdGVyIHg9Ii0xMS40JSIgeT0iLTExLjQlIiB3aWR0aD0iMTIyLjklIiBoZWlnaHQ9IjEyMi45JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19jIj48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjUiIGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dCbHVySW5uZXIxIi8+PGZlT2Zmc2V0IGluPSJzaGFkb3dCbHVySW5uZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldElubmVyMSIvPjxmZUNvbXBvc2l0ZSBpbj0ic2hhZG93T2Zmc2V0SW5uZXIxIiBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIgcmVzdWx0PSJzaGFkb3dJbm5lcklubmVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMC4zIDAiIGluPSJzaGFkb3dJbm5lcklubmVyMSIvPjwvZmlsdGVyPjxmaWx0ZXIgeD0iLTEyNi42JSIgeT0iLTMzNy41JSIgd2lkdGg9IjM1My4xJSIgaGVpZ2h0PSI3NzUlIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIGlkPSJwcmVmaXhfX2UiPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjE2IiBpbj0iU291cmNlR3JhcGhpYyIvPjwvZmlsdGVyPjxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMTAwJSIgeDI9IjUwJSIgeTI9IjAlIiBpZD0icHJlZml4X19kIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii43IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjI2LjQzMiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iODIuMzA1JSIvPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iLjQiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJwcmVmaXhfX2YiPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iLjA1IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIuMiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzNiIgY3k9IjM2IiByPSIyOC40NDQiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19jKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSJ1cmwoI3ByZWZpeF9fZCkiIHN0cm9rZS13aWR0aD0iLjQiIGZpbGwtb3BhY2l0eT0iLjI0MSIgZmlsbD0iI0ZGRiIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGN4PSIzNiIgY3k9IjM2IiByPSIyOC4yNDQiLz48ZWxsaXBzZSBmaWxsPSIjRkZGIiBvcGFjaXR5PSIuNTk2IiBmaWx0ZXI9InVybCgjcHJlZml4X19lKSIgY3g9IjM2IiBjeT0iMzYiIHJ4PSIxOC45NjMiIHJ5PSI3LjExMSIvPjxwYXRoIGQ9Ik0zNiAwQzE2LjExOCAwIDAgMTYuMTE4IDAgMzZzMTYuMTE4IDM2IDM2IDM2IDM2LTE2LjExOCAzNi0zNlM1NS44ODIgMCAzNiAwem0wIDQuNDQ0YzE3LjQyOCAwIDMxLjU1NiAxNC4xMjggMzEuNTU2IDMxLjU1NlM1My40MjggNjcuNTU2IDM2IDY3LjU1NiA0LjQ0NCA1My40MjggNC40NDQgMzYgMTguNTcyIDQuNDQ0IDM2IDQuNDQ0eiIgZmlsbD0idXJsKCNwcmVmaXhfX2YpIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+", Ma = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxNS41MSUiIHkxPSIxMi40OTclIiB4Mj0iODUuMjY1JSIgeTI9Ijg2LjE0MyUiIGlkPSJwcmVmaXhfX2IiPjxzdG9wIHN0b3AtY29sb3I9IiM5NUFFRkYiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjNjM4NkZGIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMTAwJSIgeDI9IjUwJSIgeTI9IjAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjOTlBRUZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjI2LjQzMiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iODIuMzA1JSIvPjxzdG9wIHN0b3AtY29sb3I9IiM5OUFFRkYiIHN0b3Atb3BhY2l0eT0iLjQiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJwcmVmaXhfX2QiPjxzdG9wIHN0b3AtY29sb3I9IiM4Nzk3RDIiIHN0b3Atb3BhY2l0eT0iLjA1IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzYyNzdDNyIgc3RvcC1vcGFjaXR5PSIuMiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48ZmlsdGVyIHg9Ii02My4zJSIgeT0iLTE2OC44JSIgd2lkdGg9IjIyNi42JSIgaGVpZ2h0PSI0MzcuNSUiIGZpbHRlclVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgaWQ9InByZWZpeF9fYyI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iOCIgaW49IlNvdXJjZUdyYXBoaWMiLz48L2ZpbHRlcj48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIHN0cm9rZT0idXJsKCNwcmVmaXhfX2EpIiBzdHJva2Utd2lkdGg9Ii40IiBmaWxsPSJ1cmwoI3ByZWZpeF9fYikiIG9wYWNpdHk9Ii43IiBjeD0iMzYiIGN5PSIzNiIgcj0iMjguMjQ0Ii8+PGVsbGlwc2UgZmlsbD0iIzdDOTBEQSIgb3BhY2l0eT0iLjU5NiIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYykiIGN4PSIzNiIgY3k9IjM2IiByeD0iMTguOTYzIiByeT0iNy4xMTEiLz48cGF0aCBkPSJNMzYgMEMxNi4xMTggMCAwIDE2LjExOCAwIDM2czE2LjExOCAzNiAzNiAzNiAzNi0xNi4xMTggMzYtMzZTNTUuODgyIDAgMzYgMHptMCA0LjQ0NGMxNy40MjggMCAzMS41NTYgMTQuMTI4IDMxLjU1NiAzMS41NTZTNTMuNDI4IDY3LjU1NiAzNiA2Ny41NTYgNC40NDQgNTMuNDI4IDQuNDQ0IDM2IDE4LjU3MiA0LjQ0NCAzNiA0LjQ0NHoiIGZpbGw9InVybCgjcHJlZml4X19kKSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==", Qh = `
|
|
7992
7992
|
<svg class="fpm__exit-icon width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -8881,28 +8881,28 @@ function df(i) {
|
|
|
8881
8881
|
ae(i, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
8882
8882
|
}
|
|
8883
8883
|
function uf(i) {
|
|
8884
|
-
let t, e, n, o, s, r, a, l, c, d, u, h,
|
|
8884
|
+
let t, e, n, o, s, r, a, l, c, d, u, h, m, p, g;
|
|
8885
8885
|
return {
|
|
8886
8886
|
c() {
|
|
8887
|
-
t = j("div"), e = j("div"), n = V(), o = j("div"), s = j("i"), r = V(), a = j("i"), l = V(), c = j("i"), d = V(), u = j("div"), h = j("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), R(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), R(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(h, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(u, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), R(u, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id",
|
|
8887
|
+
t = j("div"), e = j("div"), n = V(), o = j("div"), s = j("i"), r = V(), a = j("i"), l = V(), c = j("i"), d = V(), u = j("div"), h = j("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), R(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), R(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(h, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(u, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), R(u, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), R(t, "height", 20 * i[5] + "rem"), b(t, "class", "svelte-1i5h9zh"), q(t, "PanoSpatialTagPlugin__tag-x", !0), q(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), q(t, "PanoSpatialTagPlugin__tag-show", i[10]), q(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
|
|
8888
8888
|
},
|
|
8889
|
-
m(
|
|
8890
|
-
B(
|
|
8889
|
+
m(v, A) {
|
|
8890
|
+
B(v, t, A), Q(t, e), Q(t, n), Q(t, o), Q(o, s), Q(o, r), Q(o, a), Q(o, l), Q(o, c), Q(t, d), Q(t, u), Q(u, h), h.innerHTML = i[2], i[16](h), p || (g = Ee(h, "click", i[11]), p = !0);
|
|
8891
8891
|
},
|
|
8892
|
-
p(
|
|
8893
|
-
|
|
8892
|
+
p(v, [A]) {
|
|
8893
|
+
A & 394 && R(e, "transform", "translate(" + v[7] / 2 * v[3] * 3 + "px, " + v[8] / 2 * (v[1] ? -1 : 1) * v[3] * 3 + "px) scale(" + 1 / v[3] + ")"), A & 16 && R(s, "width", v[4] + "rem"), A & 4 && (h.innerHTML = v[2]), A & 8 && R(u, "transform", "scale(" + v[3] * 3 + ")"), A & 1 && m !== (m = "PanoSpatialTagPlugin__" + v[0]) && b(t, "id", m), A & 32 && R(t, "height", 20 * v[5] + "rem"), A & 2 && q(t, "PanoSpatialTagPlugin__tag-upside-down", v[1]), A & 1024 && q(t, "PanoSpatialTagPlugin__tag-show", v[10]), A & 1088 && q(t, "PanoSpatialTagPlugin__tag-hide", v[10] === !1 || v[6]);
|
|
8894
8894
|
},
|
|
8895
8895
|
i: te,
|
|
8896
8896
|
o: te,
|
|
8897
|
-
d(
|
|
8898
|
-
|
|
8897
|
+
d(v) {
|
|
8898
|
+
v && T(t), i[16](null), p = !1, g();
|
|
8899
8899
|
}
|
|
8900
8900
|
};
|
|
8901
8901
|
}
|
|
8902
8902
|
function hf(i, t, e) {
|
|
8903
|
-
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: u } = t, { events: h } = t, { hooks:
|
|
8903
|
+
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: u } = t, { events: h } = t, { hooks: m } = t, p = 0, g = 0, v, A, w = setTimeout(
|
|
8904
8904
|
() => {
|
|
8905
|
-
d || e(10,
|
|
8905
|
+
d || e(10, A = !0), w = void 0;
|
|
8906
8906
|
},
|
|
8907
8907
|
100
|
|
8908
8908
|
);
|
|
@@ -8925,13 +8925,13 @@ function hf(i, t, e) {
|
|
|
8925
8925
|
}
|
|
8926
8926
|
};
|
|
8927
8927
|
Ye(() => {
|
|
8928
|
-
|
|
8928
|
+
m.emit("initTag", { id: n });
|
|
8929
8929
|
});
|
|
8930
8930
|
const x = Ra.subscribe((C) => {
|
|
8931
8931
|
if (C === null)
|
|
8932
8932
|
return;
|
|
8933
8933
|
const [S, k] = C.split("-PanoSpatialTagPlugin-");
|
|
8934
|
-
n === S && (
|
|
8934
|
+
n === S && (m.emit("clickOrigin", { id: n, show: A }), w || (e(10, A = d), e(12, d = !d), w = setTimeout(
|
|
8935
8935
|
() => {
|
|
8936
8936
|
w = void 0;
|
|
8937
8937
|
},
|
|
@@ -8939,17 +8939,17 @@ function hf(i, t, e) {
|
|
|
8939
8939
|
)));
|
|
8940
8940
|
});
|
|
8941
8941
|
to(() => {
|
|
8942
|
-
e(7,
|
|
8942
|
+
e(7, p = v.offsetWidth), e(8, g = v.offsetHeight), !w && e(10, A = !d);
|
|
8943
8943
|
}), wt(() => {
|
|
8944
|
-
|
|
8944
|
+
m.emit("destroyTag", { id: n }), x(), u();
|
|
8945
8945
|
});
|
|
8946
8946
|
function L(C) {
|
|
8947
|
-
|
|
8948
|
-
|
|
8947
|
+
ze[C ? "unshift" : "push"](() => {
|
|
8948
|
+
v = C, e(9, v);
|
|
8949
8949
|
});
|
|
8950
8950
|
}
|
|
8951
8951
|
return i.$$set = (C) => {
|
|
8952
|
-
"id" in C && e(0, n = C.id), "upsideDown" in C && e(1, o = C.upsideDown), "content" in C && e(2, s = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, d = C.folded), "dispose" in C && e(13, u = C.dispose), "events" in C && e(14, h = C.events), "hooks" in C && e(15,
|
|
8952
|
+
"id" in C && e(0, n = C.id), "upsideDown" in C && e(1, o = C.upsideDown), "content" in C && e(2, s = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, d = C.folded), "dispose" in C && e(13, u = C.dispose), "events" in C && e(14, h = C.events), "hooks" in C && e(15, m = C.hooks);
|
|
8953
8953
|
}, [
|
|
8954
8954
|
n,
|
|
8955
8955
|
o,
|
|
@@ -8958,15 +8958,15 @@ function hf(i, t, e) {
|
|
|
8958
8958
|
a,
|
|
8959
8959
|
l,
|
|
8960
8960
|
c,
|
|
8961
|
-
|
|
8961
|
+
p,
|
|
8962
8962
|
g,
|
|
8963
|
-
A,
|
|
8964
8963
|
v,
|
|
8964
|
+
A,
|
|
8965
8965
|
y,
|
|
8966
8966
|
d,
|
|
8967
8967
|
u,
|
|
8968
8968
|
h,
|
|
8969
|
-
|
|
8969
|
+
m,
|
|
8970
8970
|
L
|
|
8971
8971
|
];
|
|
8972
8972
|
}
|
|
@@ -9141,9 +9141,9 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9141
9141
|
let e = t == null ? void 0 : t.container, n = 1.4;
|
|
9142
9142
|
const o = (X = t == null ? void 0 : t.wait) != null ? X : 200, s = (U = t == null ? void 0 : t.maxNumberOnScreen) != null ? U : 3, r = (de = t == null ? void 0 : t.minRad) != null ? de : Math.PI / 4, a = (ue = t == null ? void 0 : t.nearTolerance) != null ? ue : 100, l = (me = t == null ? void 0 : t.upsideHeight) != null ? me : 1.6, c = (we = t == null ? void 0 : t.minDistance) != null ? we : 1.2, d = (ke = t == null ? void 0 : t.maxDistance) != null ? ke : 3.5, u = bn(i), h = document.createElement("div");
|
|
9143
9143
|
h.classList.add("PanoSpatialTagPlugin"), Object.assign(h.style, mf);
|
|
9144
|
-
const
|
|
9145
|
-
let
|
|
9146
|
-
|
|
9144
|
+
const m = new nt();
|
|
9145
|
+
let p = new Image();
|
|
9146
|
+
p.src = bf;
|
|
9147
9147
|
const g = {
|
|
9148
9148
|
points: [],
|
|
9149
9149
|
origins: [],
|
|
@@ -9154,10 +9154,10 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9154
9154
|
folded: !1,
|
|
9155
9155
|
enabled: !0,
|
|
9156
9156
|
forbidden: !0
|
|
9157
|
-
},
|
|
9157
|
+
}, v = new cf({
|
|
9158
9158
|
target: h,
|
|
9159
9159
|
props: { origins: g.origins }
|
|
9160
|
-
}),
|
|
9160
|
+
}), A = (se, ve) => {
|
|
9161
9161
|
L(), ve && C();
|
|
9162
9162
|
}, w = () => {
|
|
9163
9163
|
g.forbidden && (g.forbidden = !1, C());
|
|
@@ -9193,7 +9193,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9193
9193
|
}), g.tags = g.tags.filter((ge) => !ge.destroying), L();
|
|
9194
9194
|
}, 1900);
|
|
9195
9195
|
}, x = (se) => {
|
|
9196
|
-
se !==
|
|
9196
|
+
se !== Be.Mode.Panorama && !g.forbidden && (v.$set({ origins: [] }), g.tags.forEach((ve) => {
|
|
9197
9197
|
ve.app.$destroy(), ve = null;
|
|
9198
9198
|
}), g.origins = [], g.tags = [], g.forbidden = !0);
|
|
9199
9199
|
}, L = () => {
|
|
@@ -9209,7 +9209,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9209
9209
|
top: (-re.y + 1) / 2 * 100,
|
|
9210
9210
|
destroying: be.destroying
|
|
9211
9211
|
};
|
|
9212
|
-
}),
|
|
9212
|
+
}), v.$set({ origins: g.origins });
|
|
9213
9213
|
}, C = () => {
|
|
9214
9214
|
g.forbidden || !g.enabled || (g.timeoutId && clearTimeout(g.timeoutId), g.timeoutId = setTimeout(() => {
|
|
9215
9215
|
g.timeoutId = void 0;
|
|
@@ -9225,7 +9225,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9225
9225
|
const ct = g.tags.filter(
|
|
9226
9226
|
(De) => it.containsPoint(De.position) && !De.destroying
|
|
9227
9227
|
).length, dt = g.points.reduce((De, Oe) => {
|
|
9228
|
-
if (g.tags.find((
|
|
9228
|
+
if (g.tags.find((Se) => Oe.id === Se.id && !Se.destroying))
|
|
9229
9229
|
return De;
|
|
9230
9230
|
const Ve = re.position.clone().setY(n).distanceTo(Oe.position);
|
|
9231
9231
|
if (Ve < c || Ve > d || !it.containsPoint(Oe.position))
|
|
@@ -9234,10 +9234,10 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9234
9234
|
if (en.angleTo(Oe.normal) > Math.PI / 2 - r && en.angleTo(Oe.normal) < Math.PI / 2 + r)
|
|
9235
9235
|
return De;
|
|
9236
9236
|
const Ft = Oe.position.clone().project(re);
|
|
9237
|
-
if (!g.tags.every((
|
|
9238
|
-
if (
|
|
9237
|
+
if (!g.tags.every((Se) => {
|
|
9238
|
+
if (Se.position.clone().sub(re.position).setY(0).angleTo(ge.setY(0)) > Math.PI / 2)
|
|
9239
9239
|
return !0;
|
|
9240
|
-
const Pt =
|
|
9240
|
+
const Pt = Se.position.clone().project(re);
|
|
9241
9241
|
return Math.sqrt(
|
|
9242
9242
|
Math.pow((Ft.x - Pt.x) / 2 * se, 2) + Math.pow((Ft.y - Pt.y) / 2 * ve, 2)
|
|
9243
9243
|
) > a;
|
|
@@ -9252,14 +9252,14 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9252
9252
|
distance: Ve
|
|
9253
9253
|
};
|
|
9254
9254
|
let Ce;
|
|
9255
|
-
for (let
|
|
9256
|
-
const yn = De[
|
|
9255
|
+
for (let Se = 0, Pt = De.length; Se < Pt; Se++) {
|
|
9256
|
+
const yn = De[Se];
|
|
9257
9257
|
if (Et.weight > yn.weight) {
|
|
9258
|
-
Ce =
|
|
9258
|
+
Ce = Se;
|
|
9259
9259
|
break;
|
|
9260
9260
|
}
|
|
9261
9261
|
if (Et.distance < yn.distance) {
|
|
9262
|
-
Ce =
|
|
9262
|
+
Ce = Se;
|
|
9263
9263
|
break;
|
|
9264
9264
|
}
|
|
9265
9265
|
}
|
|
@@ -9273,9 +9273,9 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9273
9273
|
if (!g.tags.concat(be).every((Ce) => {
|
|
9274
9274
|
if (Ce.position.clone().sub(re.position).setY(0).angleTo(ge.setY(0)) > Math.PI / 2)
|
|
9275
9275
|
return !0;
|
|
9276
|
-
const
|
|
9276
|
+
const Se = Ce.position.clone().project(re);
|
|
9277
9277
|
return Math.sqrt(
|
|
9278
|
-
Math.pow((en.x -
|
|
9278
|
+
Math.pow((en.x - Se.x) / 2 * se, 2) + Math.pow((en.y - Se.y) / 2 * ve, 2)
|
|
9279
9279
|
) > a;
|
|
9280
9280
|
}))
|
|
9281
9281
|
continue;
|
|
@@ -9286,7 +9286,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9286
9286
|
Ve.distance + xs
|
|
9287
9287
|
), [Et] = g.intersectObjects ? Ft.intersectObjects(g.intersectObjects, !0) : i.model.bvhs.loaded ? i.model.intersectRaycaster(Ft) : Ft.intersectObjects(i.model.children, !0);
|
|
9288
9288
|
if (!!Et && Ve.distance - Et.distance < xs) {
|
|
9289
|
-
const { position: Ce, normal:
|
|
9289
|
+
const { position: Ce, normal: Se, id: Pt, replacement: yn } = Ve, sl = new E.Plane().setFromNormalAndCoplanarPoint(Se, Ce), vo = Ce.clone().sub(re.position).cross(new E.Vector3(0, 1, 0)).setLength(Ii), rl = [
|
|
9290
9290
|
Ce.clone(),
|
|
9291
9291
|
Ce.clone().add(vo),
|
|
9292
9292
|
Ce.clone().add(new E.Vector3(0, Ii, 0)).add(vo),
|
|
@@ -9302,13 +9302,13 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9302
9302
|
upsideDown: Ce.y > l,
|
|
9303
9303
|
folded: g.folded,
|
|
9304
9304
|
events: g.events,
|
|
9305
|
-
hooks:
|
|
9305
|
+
hooks: m,
|
|
9306
9306
|
dispose: ll
|
|
9307
9307
|
}
|
|
9308
9308
|
});
|
|
9309
9309
|
be.push({
|
|
9310
9310
|
position: Ce,
|
|
9311
|
-
normal:
|
|
9311
|
+
normal: Se,
|
|
9312
9312
|
id: Pt,
|
|
9313
9313
|
app: cl
|
|
9314
9314
|
});
|
|
@@ -9331,7 +9331,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9331
9331
|
}, H = () => {
|
|
9332
9332
|
g.enabled = !0, C();
|
|
9333
9333
|
}, N = () => {
|
|
9334
|
-
g.enabled = !1,
|
|
9334
|
+
g.enabled = !1, v.$set({ origins: [] }), g.tags.forEach((se) => {
|
|
9335
9335
|
se.app.$destroy(), se = null;
|
|
9336
9336
|
}), g.origins = [], g.tags = [];
|
|
9337
9337
|
}, Y = () => {
|
|
@@ -9353,11 +9353,11 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9353
9353
|
}, O = () => {
|
|
9354
9354
|
i.once("renderFrame", L);
|
|
9355
9355
|
}, W = () => {
|
|
9356
|
-
e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", x), i.on("cameraUpdate",
|
|
9356
|
+
e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", x), i.on("cameraUpdate", A);
|
|
9357
9357
|
}, Z = () => {
|
|
9358
|
-
|
|
9358
|
+
p = null, u.disposeAll(), v.$destroy(), g.tags.forEach((se) => {
|
|
9359
9359
|
se.app.$destroy(), se = null;
|
|
9360
|
-
}), g.origins = [], g.tags = [], i.off("modelLoaded", W), i.off("renderFrame", L), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", x), i.off("cameraUpdate",
|
|
9360
|
+
}), g.origins = [], g.tags = [], i.off("modelLoaded", W), i.off("renderFrame", L), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", x), i.off("cameraUpdate", A), i.off("dispose", Z), window.removeEventListener("resize", O, !1);
|
|
9361
9361
|
};
|
|
9362
9362
|
return window.addEventListener("resize", O, !1), (He = i == null ? void 0 : i.model) != null && He.loaded ? W() : i.once("modelLoaded", W), i.on("dispose", Z), {
|
|
9363
9363
|
load: k,
|
|
@@ -9368,7 +9368,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9368
9368
|
fold: z,
|
|
9369
9369
|
enable: H,
|
|
9370
9370
|
disable: N,
|
|
9371
|
-
hooks:
|
|
9371
|
+
hooks: m,
|
|
9372
9372
|
dispose: Z
|
|
9373
9373
|
};
|
|
9374
9374
|
};
|
|
@@ -9382,13 +9382,13 @@ function wf(i) {
|
|
|
9382
9382
|
let t, e, n, o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "", s, r, a, l, c, d;
|
|
9383
9383
|
return {
|
|
9384
9384
|
c() {
|
|
9385
|
-
t = j("div"), e = j("div"), n = j("span"), s = xe(o), r = V(), a = j("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), R(e, "top", `-${i[0].strokeLength + 26}px`), b(a, "class", "item-label-item__bar svelte-1ir3cyd"), R(a, "height", `${i[0].strokeLength}px`), b(t, "class", l =
|
|
9385
|
+
t = j("div"), e = j("div"), n = j("span"), s = xe(o), r = V(), a = j("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), R(e, "top", `-${i[0].strokeLength + 26}px`), b(a, "class", "item-label-item__bar svelte-1ir3cyd"), R(a, "height", `${i[0].strokeLength}px`), b(t, "class", l = je(Ze("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), R(t, "z-index", i[0].zIndex), R(t, "transform", i[0].transform);
|
|
9386
9386
|
},
|
|
9387
9387
|
m(u, h) {
|
|
9388
9388
|
B(u, t, h), Q(t, e), Q(e, n), Q(n, s), Q(t, r), Q(t, a), c || (d = Ee(n, "click", i[1]), c = !0);
|
|
9389
9389
|
},
|
|
9390
9390
|
p(u, [h]) {
|
|
9391
|
-
h & 1 && o !== (o = (u[0].name.length > 6 ? `${u[0].name.slice(0, 6)}...` : u[0].name) + "") &&
|
|
9391
|
+
h & 1 && o !== (o = (u[0].name.length > 6 ? `${u[0].name.slice(0, 6)}...` : u[0].name) + "") && Te(s, o), h & 1 && R(e, "top", `-${u[0].strokeLength + 26}px`), h & 1 && R(a, "height", `${u[0].strokeLength}px`), h & 1 && l !== (l = je(Ze("item-label-item", { visible: u[0].visible })) + " svelte-1ir3cyd") && b(t, "class", l), h & 1 && R(t, "z-index", u[0].zIndex), h & 1 && R(t, "transform", u[0].transform);
|
|
9392
9392
|
},
|
|
9393
9393
|
i: te,
|
|
9394
9394
|
o: te,
|
|
@@ -9504,16 +9504,16 @@ function If(i) {
|
|
|
9504
9504
|
let Ls = 26, xf = 11;
|
|
9505
9505
|
function kf(i, t, e) {
|
|
9506
9506
|
const { Raycaster: n, Vector3: o } = E;
|
|
9507
|
-
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, u = null, h,
|
|
9508
|
-
const
|
|
9507
|
+
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, u = null, h, m, p = [], g = !0;
|
|
9508
|
+
const v = (P, I) => {
|
|
9509
9509
|
const z = new n(), O = P.camera.position.clone(), W = new o().fromArray(I.modelPosition), Z = W.distanceTo(O);
|
|
9510
9510
|
z.set(O.clone(), W.clone().sub(O).normalize());
|
|
9511
9511
|
const [X] = P.model.intersectRaycaster(z);
|
|
9512
9512
|
return !(X && X.distance + 1 < Z);
|
|
9513
|
-
},
|
|
9513
|
+
}, A = (P, I) => {
|
|
9514
9514
|
const z = new o(I.modelPosition[0], I.modelPosition[1], I.modelPosition[2]), O = P.project2d(z), W = O == null ? void 0 : O.x, Z = O == null ? void 0 : O.y;
|
|
9515
9515
|
return [W, Z];
|
|
9516
|
-
}, w = (P) => `translate(${P[0]}px, ${P[1]}px)`, y = (P, I) =>
|
|
9516
|
+
}, w = (P) => `translate(${P[0]}px, ${P[1]}px)`, y = (P, I) => p.length === 0 ? !1 : !!p.find((O) => P[0] >= O[0] - I && P[0] <= O[0] + I || P[1] >= O[1] - Ls && P[1] <= O[1] + Ls);
|
|
9517
9517
|
function x(P, I) {
|
|
9518
9518
|
switch (I) {
|
|
9519
9519
|
case Yt.SMALL:
|
|
@@ -9528,10 +9528,10 @@ function kf(i, t, e) {
|
|
|
9528
9528
|
}
|
|
9529
9529
|
const L = (P, I) => {
|
|
9530
9530
|
const z = I.map((W) => {
|
|
9531
|
-
const Z =
|
|
9531
|
+
const Z = A(P, W), X = W.name.length * xf, U = x(W.modelPosition[1], c), ue = (r ? v(P, W) : !0) && !y([Z[0], Z[1] + U], X);
|
|
9532
9532
|
if (!ue)
|
|
9533
9533
|
return he(G({}, W), { visible: ue });
|
|
9534
|
-
|
|
9534
|
+
p.push(Z);
|
|
9535
9535
|
const me = w(Z);
|
|
9536
9536
|
return he(G({}, W), {
|
|
9537
9537
|
visible: ue,
|
|
@@ -9547,7 +9547,7 @@ function kf(i, t, e) {
|
|
|
9547
9547
|
return Z !== void 0 ? he(G({}, W), { zIndex: Z * 10 }) : W;
|
|
9548
9548
|
});
|
|
9549
9549
|
}, C = () => {
|
|
9550
|
-
|
|
9550
|
+
p = [], e(1, u = L(s, u));
|
|
9551
9551
|
};
|
|
9552
9552
|
eo(() => {
|
|
9553
9553
|
H();
|
|
@@ -9574,7 +9574,7 @@ function kf(i, t, e) {
|
|
|
9574
9574
|
s.off("cameraUpdate", S), window.removeEventListener("resize", N, !1);
|
|
9575
9575
|
});
|
|
9576
9576
|
function Y() {
|
|
9577
|
-
h = this.clientWidth,
|
|
9577
|
+
h = this.clientWidth, m = this.clientHeight, e(2, h), e(3, m);
|
|
9578
9578
|
}
|
|
9579
9579
|
return i.$$set = (P) => {
|
|
9580
9580
|
"five" in P && e(5, s = P.five), "modelOcclusionEnable" in P && e(6, r = P.modelOcclusionEnable), "itemLabels" in P && e(7, a = P.itemLabels), "hooks" in P && e(0, l = P.hooks), "displayStrategyType" in P && e(8, c = P.displayStrategyType);
|
|
@@ -9582,7 +9582,7 @@ function kf(i, t, e) {
|
|
|
9582
9582
|
l,
|
|
9583
9583
|
u,
|
|
9584
9584
|
h,
|
|
9585
|
-
|
|
9585
|
+
m,
|
|
9586
9586
|
g,
|
|
9587
9587
|
s,
|
|
9588
9588
|
r,
|
|
@@ -9616,7 +9616,7 @@ function Lf(i) {
|
|
|
9616
9616
|
}, t));
|
|
9617
9617
|
}
|
|
9618
9618
|
const lA = (i, t) => {
|
|
9619
|
-
var h,
|
|
9619
|
+
var h, m;
|
|
9620
9620
|
const e = {
|
|
9621
9621
|
container: document.createElement("div"),
|
|
9622
9622
|
data: null,
|
|
@@ -9627,7 +9627,7 @@ const lA = (i, t) => {
|
|
|
9627
9627
|
app: void 0,
|
|
9628
9628
|
hooks: new nt(),
|
|
9629
9629
|
modelOcclusionEnable: (h = t == null ? void 0 : t.modelOcclusionEnable) != null ? h : !0,
|
|
9630
|
-
displayStrategyType: (
|
|
9630
|
+
displayStrategyType: (m = t == null ? void 0 : t.displayStrategyType) != null ? m : Yt.SMALL
|
|
9631
9631
|
};
|
|
9632
9632
|
e.container.setAttribute("class", "model-item-label-plugin-container"), e.container.style.cssText = `
|
|
9633
9633
|
position: absolute;
|
|
@@ -9637,15 +9637,15 @@ const lA = (i, t) => {
|
|
|
9637
9637
|
height: 100%;
|
|
9638
9638
|
z-index: 5;
|
|
9639
9639
|
`, e.container.style.pointerEvents = "none";
|
|
9640
|
-
const n = (
|
|
9641
|
-
e.itemLabels = Lf(
|
|
9640
|
+
const n = (p) => (e.wrapper = p, p.appendChild(e.container), l(), !0), o = (p) => {
|
|
9641
|
+
e.itemLabels = Lf(p), l();
|
|
9642
9642
|
}, s = () => (e.enabled || (e.enabled = !0, l()), !0), r = () => (e.enabled && (e.enabled = !1, l()), !0), a = () => {
|
|
9643
9643
|
d(), e.container.remove();
|
|
9644
9644
|
}, l = () => {
|
|
9645
|
-
var
|
|
9645
|
+
var p;
|
|
9646
9646
|
if (!!e.wrapper) {
|
|
9647
9647
|
if (!e.enabled || !e.fiveModeEnabled) {
|
|
9648
|
-
(
|
|
9648
|
+
(p = e.app) == null || p.$destroy(), e.app = void 0;
|
|
9649
9649
|
return;
|
|
9650
9650
|
}
|
|
9651
9651
|
e.app ? e.app.$set({
|
|
@@ -9667,14 +9667,14 @@ const lA = (i, t) => {
|
|
|
9667
9667
|
i.on("modeChange", u), i.once("dispose", a);
|
|
9668
9668
|
}, d = () => {
|
|
9669
9669
|
i.off("modeChange", u);
|
|
9670
|
-
}, u = (
|
|
9670
|
+
}, u = (p) => {
|
|
9671
9671
|
if (!!e.enabled) {
|
|
9672
|
-
if (
|
|
9672
|
+
if (p !== Be.Mode.Floorplan) {
|
|
9673
9673
|
e.fiveModeEnabled = !1, l();
|
|
9674
9674
|
return;
|
|
9675
9675
|
}
|
|
9676
9676
|
i.once("initAnimationEnded", () => {
|
|
9677
|
-
e.fiveModeEnabled = i.currentMode ===
|
|
9677
|
+
e.fiveModeEnabled = i.currentMode === Be.Mode.Floorplan, l();
|
|
9678
9678
|
});
|
|
9679
9679
|
}
|
|
9680
9680
|
};
|
|
@@ -9715,13 +9715,13 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9715
9715
|
rectPoints: [],
|
|
9716
9716
|
enabled: !1,
|
|
9717
9717
|
videoElement: t
|
|
9718
|
-
}, n = bn(i), o = /* @__PURE__ */ new Map(), s = (
|
|
9719
|
-
e.videoTexture && (e.videoTexture.image.muted =
|
|
9718
|
+
}, n = bn(i), o = /* @__PURE__ */ new Map(), s = (A) => {
|
|
9719
|
+
e.videoTexture && (e.videoTexture.image.muted = A);
|
|
9720
9720
|
}, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
|
|
9721
9721
|
if (e.enabled || !e.videoTexture)
|
|
9722
9722
|
return;
|
|
9723
9723
|
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((w) => i.scene.add(w));
|
|
9724
|
-
const
|
|
9724
|
+
const A = () => {
|
|
9725
9725
|
if (!e.videoTexture)
|
|
9726
9726
|
return;
|
|
9727
9727
|
const w = () => {
|
|
@@ -9739,30 +9739,30 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9739
9739
|
});
|
|
9740
9740
|
};
|
|
9741
9741
|
if (i.model.loaded)
|
|
9742
|
-
|
|
9742
|
+
A();
|
|
9743
9743
|
else
|
|
9744
|
-
return i.once("modelLoaded", () =>
|
|
9744
|
+
return i.once("modelLoaded", () => A());
|
|
9745
9745
|
}, l = () => {
|
|
9746
|
-
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((
|
|
9747
|
-
|
|
9746
|
+
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
|
|
9747
|
+
A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
9748
9748
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
9749
|
-
}, c = () => e.rectPoints.map((
|
|
9749
|
+
}, c = () => e.rectPoints.map((A, w) => {
|
|
9750
9750
|
const y = new E.BufferGeometry(), x = 128, L = [];
|
|
9751
|
-
L.push(...
|
|
9751
|
+
L.push(...A[0].toArray());
|
|
9752
9752
|
for (let P = 1; P < x; P++)
|
|
9753
9753
|
L.push(
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9754
|
+
A[0].x + (A[1].x - A[0].x) * P / x,
|
|
9755
|
+
A[0].y + (A[1].y - A[0].y) * P / x,
|
|
9756
|
+
A[0].z + (A[1].z - A[0].z) * P / x
|
|
9757
9757
|
);
|
|
9758
|
-
L.push(...
|
|
9758
|
+
L.push(...A[1].toArray()), L.push(...A[2].toArray());
|
|
9759
9759
|
for (let P = 1; P < x; P++)
|
|
9760
9760
|
L.push(
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9761
|
+
A[2].x + (A[3].x - A[2].x) * P / x,
|
|
9762
|
+
A[2].y + (A[3].y - A[2].y) * P / x,
|
|
9763
|
+
A[2].z + (A[3].z - A[2].z) * P / x
|
|
9764
9764
|
);
|
|
9765
|
-
L.push(...
|
|
9765
|
+
L.push(...A[3].toArray());
|
|
9766
9766
|
const C = [];
|
|
9767
9767
|
C.push(0, 1);
|
|
9768
9768
|
for (let P = 1; P < x; P++)
|
|
@@ -9782,7 +9782,7 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9782
9782
|
side: E.DoubleSide
|
|
9783
9783
|
}), H = new E.Mesh(y, F);
|
|
9784
9784
|
H.renderOrder = 1, H.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
|
|
9785
|
-
const N = [
|
|
9785
|
+
const N = [A[1], A[2], A[3], A[0]], Y = n.create3DDomContainer(N);
|
|
9786
9786
|
if (Y != null && Y.container) {
|
|
9787
9787
|
const P = document.createElement("div");
|
|
9788
9788
|
P.classList.add("play-icon"), P.style.width = "100%", P.style.height = "100%", P.style.display = "flex", P.style.justifyContent = "center", P.style.alignItems = "center", P.style.pointerEvents = "none", Y.container.appendChild(P);
|
|
@@ -9792,10 +9792,10 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9792
9792
|
}, P.appendChild(I), o.set(H, Y);
|
|
9793
9793
|
}
|
|
9794
9794
|
return H;
|
|
9795
|
-
}), d = (
|
|
9796
|
-
const w = new E.TextureLoader().load(
|
|
9795
|
+
}), d = (A) => {
|
|
9796
|
+
const w = new E.TextureLoader().load(A);
|
|
9797
9797
|
return w.minFilter = E.LinearFilter, w.magFilter = E.LinearFilter, w.format = E.RGBFormat, w;
|
|
9798
|
-
}, u = (
|
|
9798
|
+
}, u = (A, w) => new Promise((y, x) => {
|
|
9799
9799
|
const L = new XMLHttpRequest();
|
|
9800
9800
|
L.onreadystatechange = () => {
|
|
9801
9801
|
if (L.readyState == 4)
|
|
@@ -9803,50 +9803,50 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9803
9803
|
const C = window.URL || window.webkitURL;
|
|
9804
9804
|
w = w || document.createElement("video"), w.crossOrigin = "anonymous", w.muted = !0, w.loop = !0, w.playsInline = !0, w.src = C.createObjectURL(L.response);
|
|
9805
9805
|
const S = new E.VideoTexture(w);
|
|
9806
|
-
S.minFilter = E.LinearFilter, S.magFilter = E.LinearFilter, S.format = E.RGBFormat, y(Object.assign(S, { videoSource:
|
|
9806
|
+
S.minFilter = E.LinearFilter, S.magFilter = E.LinearFilter, S.format = E.RGBFormat, y(Object.assign(S, { videoSource: A }));
|
|
9807
9807
|
} else
|
|
9808
9808
|
x(new Error("Video download Error: " + L.status));
|
|
9809
|
-
}, L.onerror = (C) => x(C), L.open("GET",
|
|
9810
|
-
}), h = (
|
|
9811
|
-
const { video_src: y, video_poster_src: x, points: L } =
|
|
9812
|
-
e.videoSource = y, e.rectPoints = Sf(L).map((C) => C.map(({ x: S, y: k, z: F }) => new E.Vector3(S, k, F))), e.imageTexture = d(x), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!
|
|
9813
|
-
}),
|
|
9809
|
+
}, L.onerror = (C) => x(C), L.open("GET", A), L.responseType = "blob", L.send();
|
|
9810
|
+
}), h = (A, w) => J(void 0, null, function* () {
|
|
9811
|
+
const { video_src: y, video_poster_src: x, points: L } = A;
|
|
9812
|
+
e.videoSource = y, e.rectPoints = Sf(L).map((C) => C.map(({ x: S, y: k, z: F }) => new E.Vector3(S, k, F))), e.imageTexture = d(x), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
9813
|
+
}), m = (A) => {
|
|
9814
9814
|
if (!e.enabled)
|
|
9815
9815
|
return;
|
|
9816
9816
|
const w = e.videoMeshes;
|
|
9817
|
-
if (!(!w ||
|
|
9817
|
+
if (!(!w || A.intersectObjects(w).length === 0))
|
|
9818
9818
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
9819
|
-
},
|
|
9820
|
-
|
|
9819
|
+
}, p = (A) => {
|
|
9820
|
+
A === "Floorplan" ? n.hide() : n.show();
|
|
9821
9821
|
}, g = () => {
|
|
9822
9822
|
if (!e.enabled)
|
|
9823
9823
|
return;
|
|
9824
|
-
const
|
|
9824
|
+
const A = i.camera.position;
|
|
9825
9825
|
if (o.forEach((w, y) => {
|
|
9826
|
-
const x = w.css3DObject.position.clone(), L = x.clone().sub(
|
|
9826
|
+
const x = w.css3DObject.position.clone(), L = x.clone().sub(A).normalize(), C = new E.Raycaster(A, L), S = i.model.intersectRaycaster(C)[0], k = x.distanceTo(A), F = 0.01;
|
|
9827
9827
|
S && S.distance + F < k ? w.hide() : w.show();
|
|
9828
9828
|
}), !r()) {
|
|
9829
9829
|
const w = e.rectPoints.find((y) => {
|
|
9830
9830
|
const x = y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);
|
|
9831
9831
|
return y.map((L) => L.clone().add(x).divideScalar(2)).filter((L) => {
|
|
9832
|
-
const C = L.distanceTo(
|
|
9832
|
+
const C = L.distanceTo(A), S = new E.Raycaster(A, L.clone().sub(A).normalize()), k = i.model.intersectRaycaster(S)[0], F = 0.01;
|
|
9833
9833
|
return !(k && k.distance + F < C);
|
|
9834
9834
|
}).length >= 2;
|
|
9835
9835
|
});
|
|
9836
9836
|
(!w || w.length === 0) && s(!0);
|
|
9837
9837
|
}
|
|
9838
|
-
},
|
|
9839
|
-
l(), e.videoTexture = void 0, i.off("modeChange",
|
|
9840
|
-
e.videoMeshes.forEach((
|
|
9841
|
-
|
|
9838
|
+
}, v = () => {
|
|
9839
|
+
l(), e.videoTexture = void 0, i.off("modeChange", p), i.off("wantsTapGesture", m), i.off("panoArrived", g), i.off("renderFrame", () => {
|
|
9840
|
+
e.videoMeshes.forEach((A) => {
|
|
9841
|
+
A && (A.needsRender = !0);
|
|
9842
9842
|
});
|
|
9843
9843
|
});
|
|
9844
9844
|
};
|
|
9845
|
-
return i.on("modeChange",
|
|
9846
|
-
e.videoMeshes.forEach((
|
|
9847
|
-
|
|
9845
|
+
return i.on("modeChange", p), i.on("wantsTapGesture", m), i.on("panoArrived", g), i.on("renderFrame", () => {
|
|
9846
|
+
e.videoMeshes.forEach((A) => {
|
|
9847
|
+
A && (A.needsRender = !0);
|
|
9848
9848
|
});
|
|
9849
|
-
}), { enable: a, disable: l, load: h, dispose:
|
|
9849
|
+
}), { enable: a, disable: l, load: h, dispose: v, state: e, css3DRenderPlugin: n };
|
|
9850
9850
|
};
|
|
9851
9851
|
function zf(i) {
|
|
9852
9852
|
ae(i, "svelte-gduhqw", `.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
|
|
@@ -9863,7 +9863,7 @@ function Tf(i) {
|
|
|
9863
9863
|
d && d.m(u, h), B(u, t, h), B(u, e, h), Q(e, n), Q(n, s), Q(e, r), Q(e, a), Q(a, c);
|
|
9864
9864
|
},
|
|
9865
9865
|
p(u, h) {
|
|
9866
|
-
u[0].icon ? d ? d.p(u, h) : (d = Ss(u), d.c(), d.m(t.parentNode, t)) : d && (d.d(1), d = null), h & 1 && o !== (o = (u[0].code || u[0].id) + "") &&
|
|
9866
|
+
u[0].icon ? d ? d.p(u, h) : (d = Ss(u), d.c(), d.m(t.parentNode, t)) : d && (d.d(1), d = null), h & 1 && o !== (o = (u[0].code || u[0].id) + "") && Te(s, o), h & 1 && l !== (l = u[0].name + "") && Te(c, l);
|
|
9867
9867
|
},
|
|
9868
9868
|
d(u) {
|
|
9869
9869
|
d && d.d(u), u && T(t), u && T(e);
|
|
@@ -9904,28 +9904,28 @@ function Ss(i) {
|
|
|
9904
9904
|
}
|
|
9905
9905
|
function Bf(i) {
|
|
9906
9906
|
let t, e, n, o, s, r, a, l, c, d;
|
|
9907
|
-
function u(
|
|
9908
|
-
return g & 1 && (n = null), n == null && (n = !!Boolean(typeof
|
|
9907
|
+
function u(p, g) {
|
|
9908
|
+
return g & 1 && (n = null), n == null && (n = !!Boolean(typeof p[0].render == "function")), n ? Mf : Tf;
|
|
9909
9909
|
}
|
|
9910
|
-
let h = u(i, -1),
|
|
9910
|
+
let h = u(i, -1), m = h(i);
|
|
9911
9911
|
return {
|
|
9912
9912
|
c() {
|
|
9913
|
-
t = j("div"), e = j("div"),
|
|
9913
|
+
t = j("div"), e = j("div"), m.c(), s = V(), r = j("div"), b(e, "class", o = je(Ze("item-label-item__text-wrap", {
|
|
9914
9914
|
"item-label-item__custom": Boolean(typeof i[0].render == "function")
|
|
9915
|
-
})) + " svelte-gduhqw"), R(e, "bottom", `${i[0].strokeLength}px`), b(r, "class", a =
|
|
9915
|
+
})) + " svelte-gduhqw"), R(e, "bottom", `${i[0].strokeLength}px`), b(r, "class", a = je(Ze("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), R(r, "height", `${i[0].strokeLength}px`), b(t, "class", l = je(Ze("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), R(t, "z-index", i[0].zIndex), R(t, "transform", i[0].transform);
|
|
9916
9916
|
},
|
|
9917
|
-
m(
|
|
9918
|
-
B(
|
|
9917
|
+
m(p, g) {
|
|
9918
|
+
B(p, t, g), Q(t, e), m.m(e, null), Q(t, s), Q(t, r), c || (d = Ee(e, "click", i[4]), c = !0);
|
|
9919
9919
|
},
|
|
9920
|
-
p(
|
|
9921
|
-
h === (h = u(
|
|
9922
|
-
"item-label-item__custom": Boolean(typeof
|
|
9923
|
-
})) + " svelte-gduhqw") && b(e, "class", o), g & 1 && R(e, "bottom", `${
|
|
9920
|
+
p(p, [g]) {
|
|
9921
|
+
h === (h = u(p, g)) && m ? m.p(p, g) : (m.d(1), m = h(p), m && (m.c(), m.m(e, null))), g & 1 && o !== (o = je(Ze("item-label-item__text-wrap", {
|
|
9922
|
+
"item-label-item__custom": Boolean(typeof p[0].render == "function")
|
|
9923
|
+
})) + " svelte-gduhqw") && b(e, "class", o), g & 1 && R(e, "bottom", `${p[0].strokeLength}px`), g & 2 && a !== (a = je(Ze("item-label-item__bar", { anchor: p[1] })) + " svelte-gduhqw") && b(r, "class", a), g & 1 && R(r, "height", `${p[0].strokeLength}px`), g & 1 && l !== (l = je(Ze("item-label-item", { fold: p[0].isFold })) + " svelte-gduhqw") && b(t, "class", l), g & 1 && R(t, "z-index", p[0].zIndex), g & 1 && R(t, "transform", p[0].transform);
|
|
9924
9924
|
},
|
|
9925
9925
|
i: te,
|
|
9926
9926
|
o: te,
|
|
9927
|
-
d(
|
|
9928
|
-
|
|
9927
|
+
d(p) {
|
|
9928
|
+
p && T(t), m.d(), c = !1, d();
|
|
9929
9929
|
}
|
|
9930
9930
|
};
|
|
9931
9931
|
}
|
|
@@ -9936,7 +9936,7 @@ function jf(i, t, e) {
|
|
|
9936
9936
|
}
|
|
9937
9937
|
let l;
|
|
9938
9938
|
function c(u) {
|
|
9939
|
-
|
|
9939
|
+
ze[u ? "unshift" : "push"](() => {
|
|
9940
9940
|
l = u, e(3, l);
|
|
9941
9941
|
});
|
|
9942
9942
|
}
|
|
@@ -10114,10 +10114,10 @@ function Gf(i) {
|
|
|
10114
10114
|
let Nf = 11;
|
|
10115
10115
|
function Wf(i, t, e) {
|
|
10116
10116
|
const { Raycaster: n, Vector3: o } = E;
|
|
10117
|
-
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, u = null, h = null,
|
|
10117
|
+
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, u = null, h = null, m = (s == null ? void 0 : s.currentMode) === Be.Mode.Panorama, p, g, v = [], A = !0;
|
|
10118
10118
|
const w = (z, O) => {
|
|
10119
10119
|
const W = z.camera.position.clone(), Z = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), X = Z.distanceTo(W);
|
|
10120
|
-
return d !== void 0 && z.state.mode ===
|
|
10120
|
+
return d !== void 0 && z.state.mode === Be.Mode.Panorama && X > d ? !1 : zs(z, Z.clone().sub(W).normalize(), W, X);
|
|
10121
10121
|
}, y = (z) => {
|
|
10122
10122
|
const { camera: O, model: W } = s, { x: Z, y: X, z: U } = z.clone().project(O), de = (Z + 1) / 2, ue = (2 - (X + 1)) / 2, ke = Math.abs(U) < 1 && [de, ue].every((He) => He < 1 && He >= 0);
|
|
10123
10123
|
return Boolean(ke);
|
|
@@ -10130,10 +10130,10 @@ function Wf(i, t, e) {
|
|
|
10130
10130
|
return he(G({}, X), { visible: !1 });
|
|
10131
10131
|
const U = x(z, X);
|
|
10132
10132
|
X.name.length * Nf;
|
|
10133
|
-
const de = Hf(X.modelPosition[1], c), ue = z.currentMode ===
|
|
10133
|
+
const de = Hf(X.modelPosition[1], c), ue = z.currentMode === Be.Mode.Panorama ? y(new o(X.position[0], X.position[1], X.position[2])) : !0, me = r ? w(z, X) : !1, we = ue && !me;
|
|
10134
10134
|
if (!we)
|
|
10135
10135
|
return he(G({}, X), { visible: we });
|
|
10136
|
-
|
|
10136
|
+
v.push(U);
|
|
10137
10137
|
const ke = Of(U);
|
|
10138
10138
|
return he(G({}, X), {
|
|
10139
10139
|
visible: we,
|
|
@@ -10149,12 +10149,12 @@ function Wf(i, t, e) {
|
|
|
10149
10149
|
return U !== void 0 ? he(G({}, X), { zIndex: U * 10 }) : X;
|
|
10150
10150
|
});
|
|
10151
10151
|
}, C = () => {
|
|
10152
|
-
|
|
10152
|
+
v = [], e(1, h = L(s, h));
|
|
10153
10153
|
}, S = () => {
|
|
10154
|
-
e(5,
|
|
10154
|
+
e(5, A = !1), k();
|
|
10155
10155
|
}, k = Ha(
|
|
10156
10156
|
() => {
|
|
10157
|
-
e(5,
|
|
10157
|
+
e(5, A = !0), C();
|
|
10158
10158
|
},
|
|
10159
10159
|
300
|
|
10160
10160
|
), F = () => {
|
|
@@ -10167,7 +10167,7 @@ function Wf(i, t, e) {
|
|
|
10167
10167
|
let W = [];
|
|
10168
10168
|
for (let X = 0; X < O.length; X++) {
|
|
10169
10169
|
const { position: U, panoIndex: de } = O[X], ue = z.distanceTo(U);
|
|
10170
|
-
(d === void 0 || ue <= d || s.state.mode !==
|
|
10170
|
+
(d === void 0 || ue <= d || s.state.mode !== Be.Mode.Panorama) && W.push({ panoIndex: de, obVector: U, distance: ue });
|
|
10171
10171
|
}
|
|
10172
10172
|
W = W.sort((X, U) => X.distance - U.distance);
|
|
10173
10173
|
let Z;
|
|
@@ -10180,7 +10180,7 @@ function Wf(i, t, e) {
|
|
|
10180
10180
|
}
|
|
10181
10181
|
return typeof Z == "number" ? O[Z] : void 0;
|
|
10182
10182
|
}, P = (z) => {
|
|
10183
|
-
if (s.state.mode ===
|
|
10183
|
+
if (s.state.mode === Be.Mode.Panorama)
|
|
10184
10184
|
return;
|
|
10185
10185
|
const O = s.work.observers, W = new o().fromArray(z.position), Z = Y(W, O);
|
|
10186
10186
|
if (Z && (z.observerIndex = Z.panoIndex), typeof z.observerIndex == "number") {
|
|
@@ -10189,7 +10189,7 @@ function Wf(i, t, e) {
|
|
|
10189
10189
|
latitude: Math.acos(U.y / U.length()) - Math.PI / 2
|
|
10190
10190
|
};
|
|
10191
10191
|
s.setState(he(G({}, de), {
|
|
10192
|
-
mode:
|
|
10192
|
+
mode: Be.Mode.Panorama,
|
|
10193
10193
|
panoIndex: z.observerIndex
|
|
10194
10194
|
})), s.once("initAnimationEnded", () => {
|
|
10195
10195
|
e(1, h = h.map((ue) => he(G({}, ue), {
|
|
@@ -10208,17 +10208,17 @@ function Wf(i, t, e) {
|
|
|
10208
10208
|
s.off("cameraUpdate", S), window.removeEventListener("resize", F, !1);
|
|
10209
10209
|
});
|
|
10210
10210
|
function I() {
|
|
10211
|
-
|
|
10211
|
+
p = this.clientWidth, g = this.clientHeight, e(3, p), e(4, g);
|
|
10212
10212
|
}
|
|
10213
10213
|
return i.$$set = (z) => {
|
|
10214
10214
|
"five" in z && e(7, s = z.five), "modelOcclusionEnable" in z && e(8, r = z.modelOcclusionEnable), "itemLabels" in z && e(9, a = z.itemLabels), "hooks" in z && e(0, l = z.hooks), "displayStrategyType" in z && e(10, c = z.displayStrategyType), "maxVisibleDistance" in z && e(11, d = z.maxVisibleDistance);
|
|
10215
10215
|
}, [
|
|
10216
10216
|
l,
|
|
10217
10217
|
h,
|
|
10218
|
-
p,
|
|
10219
10218
|
m,
|
|
10219
|
+
p,
|
|
10220
10220
|
g,
|
|
10221
|
-
|
|
10221
|
+
A,
|
|
10222
10222
|
P,
|
|
10223
10223
|
s,
|
|
10224
10224
|
r,
|
|
@@ -10256,7 +10256,7 @@ function Yf(i) {
|
|
|
10256
10256
|
}));
|
|
10257
10257
|
}
|
|
10258
10258
|
const Uf = void 0, hA = (i, t) => {
|
|
10259
|
-
var h,
|
|
10259
|
+
var h, m, p, g;
|
|
10260
10260
|
const e = {
|
|
10261
10261
|
container: document.createElement("div"),
|
|
10262
10262
|
data: null,
|
|
@@ -10267,8 +10267,8 @@ const Uf = void 0, hA = (i, t) => {
|
|
|
10267
10267
|
app: void 0,
|
|
10268
10268
|
hooks: new nt(),
|
|
10269
10269
|
modelOcclusionEnable: (h = t == null ? void 0 : t.modelOcclusionEnable) != null ? h : !0,
|
|
10270
|
-
onlyVisibleInPanorama: (
|
|
10271
|
-
displayStrategyType: (
|
|
10270
|
+
onlyVisibleInPanorama: (m = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? m : !0,
|
|
10271
|
+
displayStrategyType: (p = t == null ? void 0 : t.displayStrategyType) != null ? p : Ut.SMALL,
|
|
10272
10272
|
maxVisibleDistance: (g = t == null ? void 0 : t.maxVisibleDistance) != null ? g : Uf
|
|
10273
10273
|
};
|
|
10274
10274
|
e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
|
|
@@ -10279,15 +10279,15 @@ const Uf = void 0, hA = (i, t) => {
|
|
|
10279
10279
|
height: 100%;
|
|
10280
10280
|
z-index: 5;
|
|
10281
10281
|
`, e.container.style.pointerEvents = "none";
|
|
10282
|
-
const n = (
|
|
10283
|
-
e.itemLabels = Yf(
|
|
10282
|
+
const n = (v) => (e.wrapper = v, v.appendChild(e.container), l(), !0), o = (v) => {
|
|
10283
|
+
e.itemLabels = Yf(v), l();
|
|
10284
10284
|
}, s = () => (e.enabled || (e.enabled = !0, l()), !0), r = () => (e.enabled && (e.enabled = !1, l()), !0), a = () => {
|
|
10285
10285
|
d(), e.container.remove();
|
|
10286
10286
|
}, l = () => {
|
|
10287
|
-
var
|
|
10287
|
+
var v;
|
|
10288
10288
|
if (!!e.wrapper) {
|
|
10289
10289
|
if (!e.enabled || !e.fiveModeEnabled) {
|
|
10290
|
-
(
|
|
10290
|
+
(v = e.app) == null || v.$destroy(), e.app = void 0;
|
|
10291
10291
|
return;
|
|
10292
10292
|
}
|
|
10293
10293
|
e.app ? e.app.$set({
|
|
@@ -10311,8 +10311,8 @@ const Uf = void 0, hA = (i, t) => {
|
|
|
10311
10311
|
i.on("modeChange", u), i.once("dispose", a);
|
|
10312
10312
|
}, d = () => {
|
|
10313
10313
|
i.off("modeChange", u);
|
|
10314
|
-
}, u = (
|
|
10315
|
-
if (
|
|
10314
|
+
}, u = (v) => {
|
|
10315
|
+
if (v !== Be.Mode.Panorama) {
|
|
10316
10316
|
e.fiveModeEnabled = !1, r();
|
|
10317
10317
|
return;
|
|
10318
10318
|
}
|
|
@@ -10364,7 +10364,7 @@ class Jf extends di {
|
|
|
10364
10364
|
this.state = G(G(G({}, this.state), e), n), this.stateChangedCallback(o, n);
|
|
10365
10365
|
}
|
|
10366
10366
|
get visible() {
|
|
10367
|
-
return this.five.state.mode ===
|
|
10367
|
+
return this.five.state.mode === Be.Mode.Panorama;
|
|
10368
10368
|
}
|
|
10369
10369
|
appendTo(e) {
|
|
10370
10370
|
!this.enabled || (this.container = e, this.render());
|
|
@@ -10380,13 +10380,13 @@ function Zf(i) {
|
|
|
10380
10380
|
let t, e, n, o, s, r, a, l;
|
|
10381
10381
|
return {
|
|
10382
10382
|
c() {
|
|
10383
|
-
t = j("div"), e = j("div"), n = j("span"), n.textContent = `${i[8]}`, o = V(), s = j("i"), b(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), b(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), b(e, "class", r =
|
|
10383
|
+
t = j("div"), e = j("div"), n = j("span"), n.textContent = `${i[8]}`, o = V(), s = j("i"), b(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), b(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), b(e, "class", r = je(Ze("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), b(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), b(e, "data-camera-toward", i[7]), b(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), b(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
|
|
10384
10384
|
},
|
|
10385
10385
|
m(c, d) {
|
|
10386
10386
|
B(c, t, d), Q(t, e), Q(e, n), Q(e, o), Q(e, s), i[10](t), a || (l = Ee(e, "click", i[9]), a = !0);
|
|
10387
10387
|
},
|
|
10388
10388
|
p(c, [d]) {
|
|
10389
|
-
d & 1 && r !== (r =
|
|
10389
|
+
d & 1 && r !== (r = je(Ze("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-wpy7pz") && b(e, "class", r);
|
|
10390
10390
|
},
|
|
10391
10391
|
i: te,
|
|
10392
10392
|
o: te,
|
|
@@ -10396,25 +10396,25 @@ function Zf(i) {
|
|
|
10396
10396
|
};
|
|
10397
10397
|
}
|
|
10398
10398
|
function _f(i, t, e) {
|
|
10399
|
-
let { props: n } = t, { onClick: o } = t, s, { left: r, top: a, inSight: l, transform: c, panoIndex: d, cameraToward: u, name: h } = n,
|
|
10400
|
-
const
|
|
10399
|
+
let { props: n } = t, { onClick: o } = t, s, { left: r, top: a, inSight: l, transform: c, panoIndex: d, cameraToward: u, name: h } = n, m = 0;
|
|
10400
|
+
const p = () => {
|
|
10401
10401
|
if (!r || !a || !l || !s)
|
|
10402
10402
|
return;
|
|
10403
|
-
const
|
|
10404
|
-
if (r <=
|
|
10403
|
+
const A = s.current.clientWidth / window.innerWidth * 100, w = s.current.clientHeight / window.innerHeight * 100;
|
|
10404
|
+
if (r <= A / 2 || r >= 100 - A / 2 || a <= w / 2 || a >= 100 - w / 2)
|
|
10405
10405
|
return;
|
|
10406
|
-
d !==
|
|
10407
|
-
}, g = (
|
|
10406
|
+
d !== m && (console.log("panoDoorLabelPlugin", d, "\u89E6\u53D1\u57CB\u70B9"), m = d);
|
|
10407
|
+
}, g = (A) => {
|
|
10408
10408
|
o && o();
|
|
10409
10409
|
};
|
|
10410
|
-
function A
|
|
10411
|
-
|
|
10412
|
-
s =
|
|
10410
|
+
function v(A) {
|
|
10411
|
+
ze[A ? "unshift" : "push"](() => {
|
|
10412
|
+
s = A, e(2, s);
|
|
10413
10413
|
});
|
|
10414
10414
|
}
|
|
10415
|
-
return i.$$set = (
|
|
10416
|
-
"props" in
|
|
10417
|
-
},
|
|
10415
|
+
return i.$$set = (A) => {
|
|
10416
|
+
"props" in A && e(0, n = A.props), "onClick" in A && e(1, o = A.onClick);
|
|
10417
|
+
}, p(), [
|
|
10418
10418
|
n,
|
|
10419
10419
|
o,
|
|
10420
10420
|
s,
|
|
@@ -10425,7 +10425,7 @@ function _f(i, t, e) {
|
|
|
10425
10425
|
u,
|
|
10426
10426
|
h,
|
|
10427
10427
|
g,
|
|
10428
|
-
|
|
10428
|
+
v
|
|
10429
10429
|
];
|
|
10430
10430
|
}
|
|
10431
10431
|
class qf extends oe {
|
|
@@ -10503,10 +10503,10 @@ class im extends Jf {
|
|
|
10503
10503
|
const d = l.position.clone(), u = d.distanceTo(s);
|
|
10504
10504
|
if (u < this.MinVisibledistance || u > this.MaxVisibledistance)
|
|
10505
10505
|
return;
|
|
10506
|
-
const h = new Qt(),
|
|
10507
|
-
h.set(s,
|
|
10508
|
-
const [
|
|
10509
|
-
|
|
10506
|
+
const h = new Qt(), m = d.clone().sub(s).normalize();
|
|
10507
|
+
h.set(s, m);
|
|
10508
|
+
const [p] = this.five.model.intersectRaycaster(h);
|
|
10509
|
+
p && p.distance + 0.1 < u || a.push(c);
|
|
10510
10510
|
}), this.visibleLabelMap.set(e, a), a;
|
|
10511
10511
|
}
|
|
10512
10512
|
})();
|
|
@@ -10515,7 +10515,7 @@ class im extends Jf {
|
|
|
10515
10515
|
}), this.fixDoorPosition();
|
|
10516
10516
|
});
|
|
10517
10517
|
f(this, "fixDoorPosition", () => {
|
|
10518
|
-
var d, u, h,
|
|
10518
|
+
var d, u, h, m, p, g, v, A, w, y, x, L;
|
|
10519
10519
|
const { panoIndex: e, camera: n } = this.five;
|
|
10520
10520
|
if (e === null)
|
|
10521
10521
|
return;
|
|
@@ -10539,11 +10539,11 @@ class im extends Jf {
|
|
|
10539
10539
|
left: s * F / 100,
|
|
10540
10540
|
top: r * H / 100,
|
|
10541
10541
|
width: (h = (u = (d = I.children) == null ? void 0 : d[0]) == null ? void 0 : u.clientWidth) != null ? h : 0,
|
|
10542
|
-
height: (g = (
|
|
10542
|
+
height: (g = (p = (m = I.children) == null ? void 0 : m[0]) == null ? void 0 : p.clientHeight) != null ? g : 0
|
|
10543
10543
|
}, W = {
|
|
10544
10544
|
left: s * Y / 100,
|
|
10545
10545
|
top: r * P / 100,
|
|
10546
|
-
width: (w = (
|
|
10546
|
+
width: (w = (A = (v = z.children) == null ? void 0 : v[0]) == null ? void 0 : A.clientWidth) != null ? w : 0,
|
|
10547
10547
|
height: (L = (x = (y = z.children) == null ? void 0 : y[0]) == null ? void 0 : x.clientHeight) != null ? L : 0
|
|
10548
10548
|
};
|
|
10549
10549
|
Kf(O, W) && (C++, c[k].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[N].transform = `translate(-50%, ${C * 100 - 50}%)`);
|
|
@@ -10566,8 +10566,8 @@ class im extends Jf {
|
|
|
10566
10566
|
if (a > 0) {
|
|
10567
10567
|
const d = new _(0, 0, -1), u = r.clone(), h = new Xr();
|
|
10568
10568
|
h.setFromUnitVectors(d, u);
|
|
10569
|
-
const
|
|
10570
|
-
|
|
10569
|
+
const m = new yo();
|
|
10570
|
+
m.setFromQuaternion(h, "YXZ"), l.longitude = m.y;
|
|
10571
10571
|
}
|
|
10572
10572
|
this.five.emit("wantsToMoveToPano", s, {}, !0) || this.five.moveToPano(s, { longitude: l.longitude });
|
|
10573
10573
|
}
|
|
@@ -10581,20 +10581,20 @@ class im extends Jf {
|
|
|
10581
10581
|
const a = (c = this.floorplanServerData.computed_data.doors) == null ? void 0 : c.filter((d) => !!(d && d.name === r.name)), l = this.five.work.observers.filter((d, u) => !!r.observer_indexs.find((h) => h === u));
|
|
10582
10582
|
a && a.forEach((d) => {
|
|
10583
10583
|
const u = d.position;
|
|
10584
|
-
let h = 1 / 0,
|
|
10584
|
+
let h = 1 / 0, m;
|
|
10585
10585
|
l.forEach((g) => {
|
|
10586
|
-
const
|
|
10587
|
-
x:
|
|
10588
|
-
y:
|
|
10589
|
-
z:
|
|
10590
|
-
}, w = em(u,
|
|
10591
|
-
w < h && (h = w,
|
|
10592
|
-
}),
|
|
10593
|
-
const
|
|
10594
|
-
|
|
10586
|
+
const v = g.standingPosition, A = {
|
|
10587
|
+
x: v.x,
|
|
10588
|
+
y: v.y,
|
|
10589
|
+
z: v.z
|
|
10590
|
+
}, w = em(u, A);
|
|
10591
|
+
w < h && (h = w, m = A);
|
|
10592
|
+
}), m && (u.y = m.y + 0.01);
|
|
10593
|
+
const p = new _(u.x, u.y, u.z);
|
|
10594
|
+
p.add(new _(-0.2, 1.8, 0).applyEuler(new yo(0, d.rad, 0))), this.doorLabels.push({
|
|
10595
10595
|
roomName: r.name,
|
|
10596
10596
|
name: d.name,
|
|
10597
|
-
position:
|
|
10597
|
+
position: p,
|
|
10598
10598
|
toward: tm(d.rad)
|
|
10599
10599
|
});
|
|
10600
10600
|
});
|
|
@@ -10657,20 +10657,20 @@ function lm(i, t) {
|
|
|
10657
10657
|
if (o) {
|
|
10658
10658
|
const c = Math.ceil(s.getLength() / n * 1.5), d = s.getPoints(c), u = [];
|
|
10659
10659
|
let h = 0;
|
|
10660
|
-
const
|
|
10661
|
-
return
|
|
10662
|
-
let
|
|
10660
|
+
const m = i;
|
|
10661
|
+
return m.forEach((p, g) => {
|
|
10662
|
+
let v = 0, A = 99999999;
|
|
10663
10663
|
d.forEach((C, S) => {
|
|
10664
|
-
const k = C.distanceTo(
|
|
10665
|
-
k <
|
|
10664
|
+
const k = C.distanceTo(p);
|
|
10665
|
+
k < A && (v = S, A = k);
|
|
10666
10666
|
});
|
|
10667
|
-
const w = d[
|
|
10668
|
-
if (
|
|
10669
|
-
let C =
|
|
10670
|
-
x !== void 0 && L > 0.8 && (C =
|
|
10667
|
+
const w = d[v + 1], y = w == null ? void 0 : w.distanceTo(p), x = d[v - 1], L = x == null ? void 0 : x.distanceTo(p);
|
|
10668
|
+
if (v > h && v - h > 1) {
|
|
10669
|
+
let C = v;
|
|
10670
|
+
x !== void 0 && L > 0.8 && (C = v + 1), x !== void 0 && L > 0.2 && L < 0.3 ? C = v : A > 0.2 && A < 0.3 && (C = v + 1);
|
|
10671
10671
|
let S = h;
|
|
10672
|
-
if (w !== void 0 && y > 0.2 && y < 0.3 ? S = h + 1 :
|
|
10673
|
-
const H =
|
|
10672
|
+
if (w !== void 0 && y > 0.2 && y < 0.3 ? S = h + 1 : A > 0.2 && A < 0.3 && (S = h), d[S] && d[S + 1]) {
|
|
10673
|
+
const H = m[g - 1];
|
|
10674
10674
|
if (H)
|
|
10675
10675
|
if (H.equals(d[S]))
|
|
10676
10676
|
S += 1;
|
|
@@ -10682,7 +10682,7 @@ function lm(i, t) {
|
|
|
10682
10682
|
if (C < S || C - S <= 1)
|
|
10683
10683
|
return;
|
|
10684
10684
|
const k = d.slice(S, C), F = Qs(k, e, n);
|
|
10685
|
-
u.push(F), h =
|
|
10685
|
+
u.push(F), h = v;
|
|
10686
10686
|
}
|
|
10687
10687
|
}), u;
|
|
10688
10688
|
} else {
|
|
@@ -10691,20 +10691,20 @@ function lm(i, t) {
|
|
|
10691
10691
|
}
|
|
10692
10692
|
}
|
|
10693
10693
|
function Qs(i, t, e) {
|
|
10694
|
-
const n = t / 2, o = e / t, s = i.length, r = zl(i.map((
|
|
10695
|
-
i.forEach((
|
|
10694
|
+
const n = t / 2, o = e / t, s = i.length, r = zl(i.map((A) => [A.x, A.z])), l = (i.length - 1) * om * sm, c = 2 * s, d = c * rm, u = c * am, h = new Uint32Array(l), m = new Float32Array(d), p = new Float32Array(u);
|
|
10695
|
+
i.forEach((A, w) => {
|
|
10696
10696
|
});
|
|
10697
10697
|
let g = 0;
|
|
10698
|
-
for (let
|
|
10699
|
-
const [w, y] = r[
|
|
10700
|
-
|
|
10698
|
+
for (let A = 0; A < i.length; A++) {
|
|
10699
|
+
const [w, y] = r[A][0], x = i[A], { x: L, y: C, z: S } = x, k = new _(L + w * n, C + 0.05, S + y * n);
|
|
10700
|
+
m[A * 6 + 0] = k.x, m[A * 6 + 1] = k.y, m[A * 6 + 2] = k.z;
|
|
10701
10701
|
const F = new _(L - w * n, C + 0.05, S - y * n);
|
|
10702
|
-
|
|
10702
|
+
m[A * 6 + 3] = F.x, m[A * 6 + 4] = F.y, m[A * 6 + 5] = F.z, g += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
|
|
10703
10703
|
const H = g / t / o;
|
|
10704
|
-
|
|
10704
|
+
p[A * 4 + 0] = 0, p[A * 4 + 1] = H, p[A * 4 + 2] = 1, p[A * 4 + 3] = H, A !== i.length - 1 && (h[A * 6 + 0] = A * 2 + 0, h[A * 6 + 1] = A * 2 + 2, h[A * 6 + 2] = A * 2 + 1, h[A * 6 + 3] = A * 2 + 2, h[A * 6 + 4] = A * 2 + 3, h[A * 6 + 5] = A * 2 + 1);
|
|
10705
10705
|
}
|
|
10706
|
-
const
|
|
10707
|
-
return
|
|
10706
|
+
const v = new E.BufferGeometry();
|
|
10707
|
+
return v.setAttribute("position", new E.BufferAttribute(m, 3)), v.setAttribute("uv", new E.BufferAttribute(p, 2)), v.setIndex(new E.BufferAttribute(h, 1)), v;
|
|
10708
10708
|
}
|
|
10709
10709
|
function cm(i) {
|
|
10710
10710
|
const t = new E.TextureLoader().load(i.textureUrl);
|
|
@@ -10913,30 +10913,30 @@ class Xa extends Ot {
|
|
|
10913
10913
|
}
|
|
10914
10914
|
load(e, n, o) {
|
|
10915
10915
|
return J(this, null, function* () {
|
|
10916
|
-
var d, u, h,
|
|
10916
|
+
var d, u, h, m, p;
|
|
10917
10917
|
if (this.state.disposed)
|
|
10918
10918
|
return Os();
|
|
10919
|
-
this.privateState.fiveOriginGetProgress || (u = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && u.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (
|
|
10919
|
+
this.privateState.fiveOriginGetProgress || (u = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && u.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (m = (h = this.five.controller) == null ? void 0 : h.cameraMotion) == null ? void 0 : m.getProgress), this.clear();
|
|
10920
10920
|
const s = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
10921
10921
|
this.data = r, this.hooks.emit("dataChange", r, s);
|
|
10922
10922
|
let a = [], l;
|
|
10923
10923
|
const c = this.data.keyframes.filter((g) => g.data.panoIndex !== void 0);
|
|
10924
|
-
c.filter((g,
|
|
10925
|
-
var
|
|
10926
|
-
return g.data.panoIndex !== ((
|
|
10924
|
+
c.filter((g, v) => {
|
|
10925
|
+
var A;
|
|
10926
|
+
return g.data.panoIndex !== ((A = c[v - 1]) == null ? void 0 : A.data.panoIndex);
|
|
10927
10927
|
}).map((g) => g.data.panoIndex).forEach((g) => {
|
|
10928
|
-
var
|
|
10929
|
-
const
|
|
10930
|
-
if (
|
|
10931
|
-
if (l ===
|
|
10928
|
+
var A, w;
|
|
10929
|
+
const v = (A = this.five.work.observers[g]) == null ? void 0 : A.floorIndex;
|
|
10930
|
+
if (v !== void 0)
|
|
10931
|
+
if (l === v) {
|
|
10932
10932
|
const y = a.length - 1;
|
|
10933
10933
|
a[y] = [...(w = a[y]) != null ? w : [], g];
|
|
10934
10934
|
} else {
|
|
10935
|
-
l =
|
|
10935
|
+
l = v;
|
|
10936
10936
|
const y = a.length;
|
|
10937
10937
|
a[y] = [g];
|
|
10938
10938
|
}
|
|
10939
|
-
}), this.GuideLine || (this.GuideLine = um(this.five, this.config)), (
|
|
10939
|
+
}), this.GuideLine || (this.GuideLine = um(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: a.map((g) => ({ panoIndexList: g })) }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.log(`${mi} loaded`, r), this.hooks.emit("dataLoaded", r);
|
|
10940
10940
|
});
|
|
10941
10941
|
}
|
|
10942
10942
|
play(e) {
|
|
@@ -11001,14 +11001,14 @@ class Xa extends Ot {
|
|
|
11001
11001
|
const { moveEffect: r, moveToFirstPanoEffect: a, moveToFirstPanoDuration: l } = o;
|
|
11002
11002
|
return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, d) => {
|
|
11003
11003
|
const u = (() => {
|
|
11004
|
-
var
|
|
11004
|
+
var v, A, w, y;
|
|
11005
11005
|
const h = o.panoIndexList.slice(d).find((x) => x !== c);
|
|
11006
11006
|
if (h === void 0)
|
|
11007
11007
|
return;
|
|
11008
|
-
const
|
|
11009
|
-
if (!
|
|
11008
|
+
const m = (v = n[c]) == null ? void 0 : v.position, p = (A = n[h]) == null ? void 0 : A.position;
|
|
11009
|
+
if (!p || !m || ((w = n[c]) == null ? void 0 : w.floorIndex) !== ((y = n[h]) == null ? void 0 : y.floorIndex))
|
|
11010
11010
|
return;
|
|
11011
|
-
const g = new E.Vector3().subVectors(
|
|
11011
|
+
const g = new E.Vector3().subVectors(p, m);
|
|
11012
11012
|
return pm(g);
|
|
11013
11013
|
})();
|
|
11014
11014
|
o.moveType === void 0 || o.moveType === "justMove" ? s.push({
|
|
@@ -11039,46 +11039,46 @@ class Xa extends Ot {
|
|
|
11039
11039
|
}
|
|
11040
11040
|
handlePlay(e) {
|
|
11041
11041
|
return J(this, null, function* () {
|
|
11042
|
-
var
|
|
11042
|
+
var m;
|
|
11043
11043
|
const { data: n, state: o, privateState: s, hooks: r } = this;
|
|
11044
11044
|
if (s.playing || !(n != null && n.keyframes) || (n == null ? void 0 : n.keyframes.length) === 0)
|
|
11045
11045
|
return;
|
|
11046
11046
|
const a = Fe();
|
|
11047
11047
|
s.playId = a, s.playing = !0, s.broke = !1;
|
|
11048
11048
|
const l = n.keyframes, c = this.getPauseData();
|
|
11049
|
-
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (
|
|
11049
|
+
(e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
|
|
11050
11050
|
let d = !1;
|
|
11051
11051
|
const h = yield (() => J(this, null, function* () {
|
|
11052
|
-
var
|
|
11052
|
+
var p, g;
|
|
11053
11053
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
11054
11054
|
return e.playFromIndex;
|
|
11055
11055
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
11056
|
-
return (
|
|
11056
|
+
return (p = this.data) == null ? void 0 : p.keyframes.findIndex((v) => v.id === e.playFromId);
|
|
11057
11057
|
if (c != null && c.keyframeId) {
|
|
11058
|
-
const
|
|
11058
|
+
const v = (g = this.data) == null ? void 0 : g.keyframes.find((A) => A.id === c.keyframeId);
|
|
11059
11059
|
if (c != null && c.fiveState && (yield this.move(c.fiveState, {
|
|
11060
11060
|
moveEffect: s.moveToFirstPanoEffect,
|
|
11061
11061
|
duration: s.moveToFirstPanoDuration
|
|
11062
|
-
})),
|
|
11063
|
-
if (
|
|
11064
|
-
return
|
|
11065
|
-
if (
|
|
11066
|
-
const
|
|
11067
|
-
return yield this.playKeyframe(
|
|
11062
|
+
})), v) {
|
|
11063
|
+
if (v.data.effect === "Move")
|
|
11064
|
+
return v.index;
|
|
11065
|
+
if (v.data.effect === "Rotate") {
|
|
11066
|
+
const A = c.duration !== void 0 ? c.duration * (1 - c.playedProgress) : void 0;
|
|
11067
|
+
return yield this.playKeyframe(v, { duration: A }), d = !0, v.index + 1;
|
|
11068
11068
|
}
|
|
11069
11069
|
}
|
|
11070
11070
|
}
|
|
11071
11071
|
}))();
|
|
11072
11072
|
this.clearPauseData();
|
|
11073
|
-
for (const
|
|
11073
|
+
for (const p of l) {
|
|
11074
11074
|
if (s.broke || !o.playing || !s.playing || a !== s.playId)
|
|
11075
11075
|
return;
|
|
11076
|
-
if (!(h !== void 0 &&
|
|
11076
|
+
if (!(h !== void 0 && p.index < h))
|
|
11077
11077
|
try {
|
|
11078
|
-
r.emit("playIndexChange",
|
|
11078
|
+
r.emit("playIndexChange", p.index, p), yield this.playKeyframe(p, {
|
|
11079
11079
|
moveEffect: d === !1 ? s.moveToFirstPanoEffect : void 0,
|
|
11080
11080
|
duration: d === !1 && typeof s.moveToFirstPanoDuration == "number" ? s.moveToFirstPanoDuration : 800
|
|
11081
|
-
}),
|
|
11081
|
+
}), p.stay && (yield Am(p.stay)), d === !1 && (d = !0);
|
|
11082
11082
|
} catch (g) {
|
|
11083
11083
|
return Promise.resolve("broke");
|
|
11084
11084
|
}
|
|
@@ -11177,8 +11177,8 @@ class Xa extends Ot {
|
|
|
11177
11177
|
updateCamera(e, n) {
|
|
11178
11178
|
return J(this, null, function* () {
|
|
11179
11179
|
const { five: o, privateState: s, state: r } = this, a = (() => {
|
|
11180
|
-
var h,
|
|
11181
|
-
const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (
|
|
11180
|
+
var h, m;
|
|
11181
|
+
const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (m = e.rotateSpeed) != null ? m : d == null ? void 0 : d.rotateSpeed;
|
|
11182
11182
|
if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
|
|
11183
11183
|
return u;
|
|
11184
11184
|
if (u !== void 0)
|
|
@@ -11207,8 +11207,8 @@ class Xa extends Ot {
|
|
|
11207
11207
|
const a = o.getCurrentState().mode !== "Panorama";
|
|
11208
11208
|
a && (this.privateState.modeChanging = !0);
|
|
11209
11209
|
const l = (() => {
|
|
11210
|
-
var h,
|
|
11211
|
-
const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (
|
|
11210
|
+
var h, m;
|
|
11211
|
+
const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (m = e.moveSpeed) != null ? m : d == null ? void 0 : d.moveSpeed;
|
|
11212
11212
|
if ((d == null ? void 0 : d.moveSpeedUnit) === void 0)
|
|
11213
11213
|
return u;
|
|
11214
11214
|
if (u !== void 0)
|
|
@@ -11223,13 +11223,13 @@ class Xa extends Ot {
|
|
|
11223
11223
|
return 800;
|
|
11224
11224
|
})();
|
|
11225
11225
|
s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = c), yield new Promise((d) => {
|
|
11226
|
-
var u, h,
|
|
11226
|
+
var u, h, m;
|
|
11227
11227
|
o.moveToPano(e.panoIndex, {
|
|
11228
11228
|
latitude: e.latitude,
|
|
11229
11229
|
longitude: e.longitude,
|
|
11230
11230
|
fov: e.fov,
|
|
11231
11231
|
duration: this.getSpeededDuration(c),
|
|
11232
|
-
effect: (
|
|
11232
|
+
effect: (m = (h = n == null ? void 0 : n.moveEffect) != null ? h : (u = this.state.config) == null ? void 0 : u.moveEffect) != null ? m : e.moveEffect,
|
|
11233
11233
|
moveCancelCallback: () => d(),
|
|
11234
11234
|
moveEndCallback: () => d()
|
|
11235
11235
|
}), a && o.once("panoArrived", () => d());
|
|
@@ -11338,7 +11338,7 @@ function ym(i, t) {
|
|
|
11338
11338
|
});
|
|
11339
11339
|
});
|
|
11340
11340
|
}
|
|
11341
|
-
const
|
|
11341
|
+
const Le = (i) => i;
|
|
11342
11342
|
function Ya(i) {
|
|
11343
11343
|
if (i.length < 3)
|
|
11344
11344
|
return;
|
|
@@ -11570,9 +11570,9 @@ function Ne(i) {
|
|
|
11570
11570
|
return typeof i == "number" ? i / 16 + "rem" : i;
|
|
11571
11571
|
}
|
|
11572
11572
|
function Sm(i, t, e) {
|
|
11573
|
-
let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: d = !1 } = t, { horizontalCenter: u = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius:
|
|
11574
|
-
return i.$$set = (
|
|
11575
|
-
"inDelay" in
|
|
11573
|
+
let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: d = !1 } = t, { horizontalCenter: u = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius: m } = t, { spreadRadius: p } = t, { opacity: g = 0.15 } = t, { zIndex: v = void 0 } = t;
|
|
11574
|
+
return i.$$set = (A) => {
|
|
11575
|
+
"inDelay" in A && e(0, n = A.inDelay), "outDelay" in A && e(1, o = A.outDelay), "visible" in A && e(2, s = A.visible), "width" in A && e(3, r = A.width), "height" in A && e(4, a = A.height), "left" in A && e(5, l = A.left), "bottom" in A && e(6, c = A.bottom), "center" in A && e(7, d = A.center), "horizontalCenter" in A && e(8, u = A.horizontalCenter), "verticalCenter" in A && e(9, h = A.verticalCenter), "blurRadius" in A && e(10, m = A.blurRadius), "spreadRadius" in A && e(11, p = A.spreadRadius), "opacity" in A && e(12, g = A.opacity), "zIndex" in A && e(13, v = A.zIndex);
|
|
11576
11576
|
}, [
|
|
11577
11577
|
n,
|
|
11578
11578
|
o,
|
|
@@ -11584,10 +11584,10 @@ function Sm(i, t, e) {
|
|
|
11584
11584
|
d,
|
|
11585
11585
|
u,
|
|
11586
11586
|
h,
|
|
11587
|
-
p,
|
|
11588
11587
|
m,
|
|
11588
|
+
p,
|
|
11589
11589
|
g,
|
|
11590
|
-
|
|
11590
|
+
v
|
|
11591
11591
|
];
|
|
11592
11592
|
}
|
|
11593
11593
|
class Je extends oe {
|
|
@@ -11640,7 +11640,7 @@ function Us(i) {
|
|
|
11640
11640
|
B(a, t, l), Q(t, n), s();
|
|
11641
11641
|
},
|
|
11642
11642
|
p(a, l) {
|
|
11643
|
-
i = a, l & 2 && e !== (e = i[10] + "") &&
|
|
11643
|
+
i = a, l & 2 && e !== (e = i[10] + "") && Te(n, e), o !== i[12] && (r(), o = i[12], s());
|
|
11644
11644
|
},
|
|
11645
11645
|
d(a) {
|
|
11646
11646
|
a && T(t), r();
|
|
@@ -11684,22 +11684,22 @@ function Mm(i) {
|
|
|
11684
11684
|
}
|
|
11685
11685
|
function Bm(i, t, e) {
|
|
11686
11686
|
let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, l, c = [], d;
|
|
11687
|
-
function u(
|
|
11687
|
+
function u(m) {
|
|
11688
11688
|
clearTimeout(l), l = setTimeout(
|
|
11689
11689
|
function() {
|
|
11690
|
-
!d || (
|
|
11690
|
+
!d || (m && d.reversed || !m && !d.reversed) && (d.reverse(), d.play());
|
|
11691
11691
|
},
|
|
11692
|
-
|
|
11692
|
+
m ? o : s
|
|
11693
11693
|
);
|
|
11694
11694
|
}
|
|
11695
11695
|
Ye(function() {
|
|
11696
|
-
const
|
|
11697
|
-
const
|
|
11698
|
-
if (
|
|
11699
|
-
return
|
|
11696
|
+
const m = (() => {
|
|
11697
|
+
const p = Pm((g) => c[g].getBoundingClientRect().x, [Math.min(c.length - 1, 10), Math.min(c.length - 1, 30)]);
|
|
11698
|
+
if (p > 0)
|
|
11699
|
+
return p;
|
|
11700
11700
|
})();
|
|
11701
11701
|
d = wo({
|
|
11702
|
-
targets: c.slice(0,
|
|
11702
|
+
targets: c.slice(0, m).filter(Bt),
|
|
11703
11703
|
autoplay: !1,
|
|
11704
11704
|
duration: 400,
|
|
11705
11705
|
scale: [0.7, 1],
|
|
@@ -11711,17 +11711,17 @@ function Bm(i, t, e) {
|
|
|
11711
11711
|
easing: "easeInOutCubic"
|
|
11712
11712
|
}), a && d.seek(d.duration);
|
|
11713
11713
|
});
|
|
11714
|
-
function h(
|
|
11715
|
-
|
|
11716
|
-
c[
|
|
11714
|
+
function h(m, p) {
|
|
11715
|
+
ze[m ? "unshift" : "push"](() => {
|
|
11716
|
+
c[p] = m, e(0, c);
|
|
11717
11717
|
});
|
|
11718
11718
|
}
|
|
11719
|
-
return i.$$set = (
|
|
11720
|
-
"inDelay" in
|
|
11719
|
+
return i.$$set = (m) => {
|
|
11720
|
+
"inDelay" in m && e(2, o = m.inDelay), "outDelay" in m && e(3, s = m.outDelay), "content" in m && e(4, r = m.content), "unfolded" in m && e(5, a = m.unfolded);
|
|
11721
11721
|
}, i.$$.update = () => {
|
|
11722
11722
|
i.$$.dirty & 16 && e(1, n = (() => {
|
|
11723
|
-
const
|
|
11724
|
-
return r.slice().replace(
|
|
11723
|
+
const m = [], p = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu")), g = `__EMOJI_SPLIT_${Xs}__`, v = `__EMOJI_${Xs}__`;
|
|
11724
|
+
return r.slice().replace(p, (A) => `${g}${v}${A}${g}`).split(g).forEach((A) => A.startsWith(v) ? m.push(A.slice(v.length)) : m.push(...A.split(""))), m;
|
|
11725
11725
|
})()), i.$$.dirty & 32 && u(a);
|
|
11726
11726
|
}, [c, n, o, s, r, a, h];
|
|
11727
11727
|
}
|
|
@@ -11965,19 +11965,19 @@ function Nm(i) {
|
|
|
11965
11965
|
}
|
|
11966
11966
|
function Wm(i, t, e) {
|
|
11967
11967
|
let n, o, s, { visible: r = !1 } = t, { textUnfolded: a = !1 } = t, { textItems: l } = t, c, d = 0, u = 0, h = 0;
|
|
11968
|
-
function p
|
|
11969
|
-
|
|
11970
|
-
c =
|
|
11968
|
+
function m(p) {
|
|
11969
|
+
ze[p ? "unshift" : "push"](() => {
|
|
11970
|
+
c = p, e(2, c);
|
|
11971
11971
|
});
|
|
11972
11972
|
}
|
|
11973
|
-
return i.$$set = (
|
|
11974
|
-
"visible" in
|
|
11973
|
+
return i.$$set = (p) => {
|
|
11974
|
+
"visible" in p && e(0, r = p.visible), "textUnfolded" in p && e(8, a = p.textUnfolded), "textItems" in p && e(1, l = p.textItems);
|
|
11975
11975
|
}, i.$$.update = () => {
|
|
11976
11976
|
if (i.$$.dirty & 5 && c && r) {
|
|
11977
|
-
const { lineHeight:
|
|
11977
|
+
const { lineHeight: p } = getComputedStyle(c);
|
|
11978
11978
|
e(4, h = c.offsetHeight), Fm(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
|
|
11979
11979
|
e(4, h = c.offsetHeight);
|
|
11980
|
-
}), e(3, u = Number(
|
|
11980
|
+
}), e(3, u = Number(p.replace("px", "")));
|
|
11981
11981
|
}
|
|
11982
11982
|
i.$$.dirty & 280 && e(9, d = a ? u - h : 0), i.$$.dirty & 512 && e(7, n = `translateY(${d}px)`), i.$$.dirty & 256 && e(6, o = a ? "left" : "right"), i.$$.dirty & 256 && e(5, s = a ? 450 : 0);
|
|
11983
11983
|
}, [
|
|
@@ -11991,7 +11991,7 @@ function Wm(i, t, e) {
|
|
|
11991
11991
|
n,
|
|
11992
11992
|
a,
|
|
11993
11993
|
d,
|
|
11994
|
-
|
|
11994
|
+
m
|
|
11995
11995
|
];
|
|
11996
11996
|
}
|
|
11997
11997
|
class Va extends oe {
|
|
@@ -12015,7 +12015,7 @@ function Xm(i) {
|
|
|
12015
12015
|
ae(i, "svelte-18yy5x8", ".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}");
|
|
12016
12016
|
}
|
|
12017
12017
|
function $s(i) {
|
|
12018
|
-
var h,
|
|
12018
|
+
var h, m;
|
|
12019
12019
|
let t, e, n, o, s, r, a, l, c, d, u;
|
|
12020
12020
|
return t = new Je({
|
|
12021
12021
|
props: {
|
|
@@ -12030,7 +12030,7 @@ function $s(i) {
|
|
|
12030
12030
|
props: {
|
|
12031
12031
|
unfolded: i[2],
|
|
12032
12032
|
duration: 1e3,
|
|
12033
|
-
outDelay: i[5] + 40 * Math.min((
|
|
12033
|
+
outDelay: i[5] + 40 * Math.min((m = (h = i[4][0]) == null ? void 0 : h.content.length) != null ? m : 10, 15)
|
|
12034
12034
|
}
|
|
12035
12035
|
}), a = new Va({
|
|
12036
12036
|
props: {
|
|
@@ -12042,26 +12042,26 @@ function $s(i) {
|
|
|
12042
12042
|
c() {
|
|
12043
12043
|
ee(t.$$.fragment), e = V(), n = j("div"), ee(o.$$.fragment), s = V(), r = j("div"), ee(a.$$.fragment), b(n, "class", "line svelte-18yy5x8"), R(n, "width", i[3] + "px"), b(r, "class", "content svelte-18yy5x8"), Ie(() => i[8].call(r));
|
|
12044
12044
|
},
|
|
12045
|
-
m(
|
|
12046
|
-
K(t,
|
|
12045
|
+
m(p, g) {
|
|
12046
|
+
K(t, p, g), B(p, e, g), B(p, n, g), K(o, n, null), B(p, s, g), B(p, r, g), K(a, r, null), l = yt(r, i[8].bind(r)), c = !0, d || (u = Ee(r, "click", i[6]), d = !0);
|
|
12047
12047
|
},
|
|
12048
|
-
p(
|
|
12048
|
+
p(p, g) {
|
|
12049
12049
|
var y, x;
|
|
12050
|
-
const A = {};
|
|
12051
|
-
g & 4 && (A.visible = m[2]), g & 8 && (A.left = m[3] / 2 + "px"), t.$set(A);
|
|
12052
12050
|
const v = {};
|
|
12053
|
-
g & 4 && (v.
|
|
12051
|
+
g & 4 && (v.visible = p[2]), g & 8 && (v.left = p[3] / 2 + "px"), t.$set(v);
|
|
12052
|
+
const A = {};
|
|
12053
|
+
g & 4 && (A.unfolded = p[2]), g & 48 && (A.outDelay = p[5] + 40 * Math.min((x = (y = p[4][0]) == null ? void 0 : y.content.length) != null ? x : 10, 15)), o.$set(A), g & 8 && R(n, "width", p[3] + "px");
|
|
12054
12054
|
const w = {};
|
|
12055
|
-
g & 4 && (w.visible =
|
|
12055
|
+
g & 4 && (w.visible = p[2]), g & 2 && (w.textUnfolded = p[1]), g & 16 && (w.textItems = p[4]), a.$set(w);
|
|
12056
12056
|
},
|
|
12057
|
-
i(
|
|
12058
|
-
c || (D(t.$$.fragment,
|
|
12057
|
+
i(p) {
|
|
12058
|
+
c || (D(t.$$.fragment, p), D(o.$$.fragment, p), D(a.$$.fragment, p), c = !0);
|
|
12059
12059
|
},
|
|
12060
|
-
o(
|
|
12061
|
-
M(t.$$.fragment,
|
|
12060
|
+
o(p) {
|
|
12061
|
+
M(t.$$.fragment, p), M(o.$$.fragment, p), M(a.$$.fragment, p), c = !1;
|
|
12062
12062
|
},
|
|
12063
|
-
d(
|
|
12064
|
-
$(t,
|
|
12063
|
+
d(p) {
|
|
12064
|
+
$(t, p), p && T(e), p && T(n), $(o), p && T(s), p && T(r), $(a), l(), d = !1, u();
|
|
12065
12065
|
}
|
|
12066
12066
|
};
|
|
12067
12067
|
}
|
|
@@ -12418,11 +12418,11 @@ function tp({
|
|
|
12418
12418
|
pagination: d,
|
|
12419
12419
|
navigation: u,
|
|
12420
12420
|
scrollbar: h,
|
|
12421
|
-
virtual:
|
|
12422
|
-
thumbs:
|
|
12421
|
+
virtual: m,
|
|
12422
|
+
thumbs: p
|
|
12423
12423
|
} = i;
|
|
12424
|
-
let g,
|
|
12425
|
-
n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (
|
|
12424
|
+
let g, v, A, w, y;
|
|
12425
|
+
n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (v = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (A = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && h && !h.el && (w = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && u && !u.prevEl && !u.nextEl && (y = !0);
|
|
12426
12426
|
const x = (L) => {
|
|
12427
12427
|
!i[L] || (i[L].destroy(), L === "navigation" ? (c[L].prevEl = void 0, c[L].nextEl = void 0, i[L].prevEl = void 0, i[L].nextEl = void 0) : (c[L].el = void 0, i[L].el = void 0));
|
|
12428
12428
|
};
|
|
@@ -12433,7 +12433,7 @@ function tp({
|
|
|
12433
12433
|
const C = e[L];
|
|
12434
12434
|
(C === !0 || C === !1) && (L === "navigation" || L === "pagination" || L === "scrollbar") ? C === !1 && x(L) : c[L] = e[L];
|
|
12435
12435
|
}
|
|
12436
|
-
}), l.includes("controller") && !
|
|
12436
|
+
}), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && m && c.virtual.enabled ? (m.slides = t, m.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && p.init() && p.update(!0), v && (i.controller.control = c.controller.control), A && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), w && (r && (c.scrollbar.el = r), h.init(), h.updateSize(), h.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), u.init(), u.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
|
|
12437
12437
|
}
|
|
12438
12438
|
const np = (i) => ({ virtualData: i & 512 }), tr = (i) => ({ virtualData: i[9] }), ip = (i) => ({ virtualData: i & 512 }), nr = (i) => ({ virtualData: i[9] }), op = (i) => ({ virtualData: i & 512 }), ir = (i) => ({ virtualData: i[9] }), sp = (i) => ({ virtualData: i & 512 }), or = (i) => ({ virtualData: i[9] }), rp = (i) => ({ virtualData: i & 512 }), sr = (i) => ({ virtualData: i[9] });
|
|
12439
12439
|
function rr(i) {
|
|
@@ -12482,13 +12482,13 @@ function lr(i) {
|
|
|
12482
12482
|
};
|
|
12483
12483
|
}
|
|
12484
12484
|
function ap(i) {
|
|
12485
|
-
let t, e, n, o, s, r, a = Xi(i[2]), l, c = Ui(i[2]), d, u = Yi(i[2]), h,
|
|
12486
|
-
const g = i[12]["container-start"],
|
|
12485
|
+
let t, e, n, o, s, r, a = Xi(i[2]), l, c = Ui(i[2]), d, u = Yi(i[2]), h, m, p;
|
|
12486
|
+
const g = i[12]["container-start"], v = xt(g, i, i[11], sr), A = i[12]["wrapper-start"], w = xt(A, i, i[11], or), y = i[12].default, x = xt(y, i, i[11], ir), L = i[12]["wrapper-end"], C = xt(L, i, i[11], nr);
|
|
12487
12487
|
let S = a && rr(i), k = c && ar(i), F = u && lr(i);
|
|
12488
12488
|
const H = i[12]["container-end"], N = xt(H, i, i[11], tr);
|
|
12489
12489
|
let Y = [
|
|
12490
12490
|
{
|
|
12491
|
-
class:
|
|
12491
|
+
class: m = oi(`${i[1]}${i[0] ? ` ${i[0]}` : ""}`)
|
|
12492
12492
|
},
|
|
12493
12493
|
i[3]
|
|
12494
12494
|
], P = {};
|
|
@@ -12496,60 +12496,60 @@ function ap(i) {
|
|
|
12496
12496
|
P = ye(P, Y[I]);
|
|
12497
12497
|
return {
|
|
12498
12498
|
c() {
|
|
12499
|
-
t = j("div"),
|
|
12499
|
+
t = j("div"), v && v.c(), e = V(), n = j("div"), w && w.c(), o = V(), x && x.c(), s = V(), C && C.c(), r = V(), S && S.c(), l = V(), k && k.c(), d = V(), F && F.c(), h = V(), N && N.c(), b(n, "class", "swiper-wrapper"), Vn(t, P);
|
|
12500
12500
|
},
|
|
12501
12501
|
m(I, z) {
|
|
12502
|
-
B(I, t, z),
|
|
12502
|
+
B(I, t, z), v && v.m(t, null), Q(t, e), Q(t, n), w && w.m(n, null), Q(n, o), x && x.m(n, null), Q(n, s), C && C.m(n, null), Q(t, r), S && S.m(t, null), Q(t, l), k && k.m(t, null), Q(t, d), F && F.m(t, null), Q(t, h), N && N.m(t, null), i[17](t), p = !0;
|
|
12503
12503
|
},
|
|
12504
12504
|
p(I, [z]) {
|
|
12505
|
-
|
|
12506
|
-
|
|
12505
|
+
v && v.p && (!p || z & 2560) && Dt(
|
|
12506
|
+
v,
|
|
12507
12507
|
g,
|
|
12508
12508
|
I,
|
|
12509
12509
|
I[11],
|
|
12510
|
-
|
|
12510
|
+
p ? kt(g, I[11], z, rp) : Lt(I[11]),
|
|
12511
12511
|
sr
|
|
12512
|
-
), w && w.p && (!
|
|
12512
|
+
), w && w.p && (!p || z & 2560) && Dt(
|
|
12513
12513
|
w,
|
|
12514
|
-
|
|
12514
|
+
A,
|
|
12515
12515
|
I,
|
|
12516
12516
|
I[11],
|
|
12517
|
-
|
|
12517
|
+
p ? kt(A, I[11], z, sp) : Lt(I[11]),
|
|
12518
12518
|
or
|
|
12519
|
-
), x && x.p && (!
|
|
12519
|
+
), x && x.p && (!p || z & 2560) && Dt(
|
|
12520
12520
|
x,
|
|
12521
12521
|
y,
|
|
12522
12522
|
I,
|
|
12523
12523
|
I[11],
|
|
12524
|
-
|
|
12524
|
+
p ? kt(y, I[11], z, op) : Lt(I[11]),
|
|
12525
12525
|
ir
|
|
12526
|
-
), C && C.p && (!
|
|
12526
|
+
), C && C.p && (!p || z & 2560) && Dt(
|
|
12527
12527
|
C,
|
|
12528
12528
|
L,
|
|
12529
12529
|
I,
|
|
12530
12530
|
I[11],
|
|
12531
|
-
|
|
12531
|
+
p ? kt(L, I[11], z, ip) : Lt(I[11]),
|
|
12532
12532
|
nr
|
|
12533
|
-
), z & 4 && (a = Xi(I[2])), a ? S ? S.p(I, z) : (S = rr(I), S.c(), S.m(t, l)) : S && (S.d(1), S = null), z & 4 && (c = Ui(I[2])), c ? k ? k.p(I, z) : (k = ar(I), k.c(), k.m(t, d)) : k && (k.d(1), k = null), z & 4 && (u = Yi(I[2])), u ? F ? F.p(I, z) : (F = lr(I), F.c(), F.m(t, h)) : F && (F.d(1), F = null), N && N.p && (!
|
|
12533
|
+
), z & 4 && (a = Xi(I[2])), a ? S ? S.p(I, z) : (S = rr(I), S.c(), S.m(t, l)) : S && (S.d(1), S = null), z & 4 && (c = Ui(I[2])), c ? k ? k.p(I, z) : (k = ar(I), k.c(), k.m(t, d)) : k && (k.d(1), k = null), z & 4 && (u = Yi(I[2])), u ? F ? F.p(I, z) : (F = lr(I), F.c(), F.m(t, h)) : F && (F.d(1), F = null), N && N.p && (!p || z & 2560) && Dt(
|
|
12534
12534
|
N,
|
|
12535
12535
|
H,
|
|
12536
12536
|
I,
|
|
12537
12537
|
I[11],
|
|
12538
|
-
|
|
12538
|
+
p ? kt(H, I[11], z, np) : Lt(I[11]),
|
|
12539
12539
|
tr
|
|
12540
|
-
), Vn(t, P =
|
|
12541
|
-
(!
|
|
12540
|
+
), Vn(t, P = Me(Y, [
|
|
12541
|
+
(!p || z & 3 && m !== (m = oi(`${I[1]}${I[0] ? ` ${I[0]}` : ""}`))) && { class: m },
|
|
12542
12542
|
z & 8 && I[3]
|
|
12543
12543
|
]));
|
|
12544
12544
|
},
|
|
12545
12545
|
i(I) {
|
|
12546
|
-
|
|
12546
|
+
p || (D(v, I), D(w, I), D(x, I), D(C, I), D(N, I), p = !0);
|
|
12547
12547
|
},
|
|
12548
12548
|
o(I) {
|
|
12549
|
-
M(
|
|
12549
|
+
M(v, I), M(w, I), M(x, I), M(C, I), M(N, I), p = !1;
|
|
12550
12550
|
},
|
|
12551
12551
|
d(I) {
|
|
12552
|
-
I && T(t),
|
|
12552
|
+
I && T(t), v && v.d(I), w && w.d(I), x && x.d(I), C && C.d(I), S && S.d(), k && k.d(), F && F.d(), N && N.d(I), i[17](null);
|
|
12553
12553
|
}
|
|
12554
12554
|
};
|
|
12555
12555
|
}
|
|
@@ -12557,7 +12557,7 @@ function lp(i, t, e) {
|
|
|
12557
12557
|
const n = ["class", "swiper"];
|
|
12558
12558
|
let o = Jn(t, n), { $$slots: s = {}, $$scope: r } = t;
|
|
12559
12559
|
const a = uc();
|
|
12560
|
-
let { class: l = void 0 } = t, c = "swiper", d = !1, u = null, h = null,
|
|
12560
|
+
let { class: l = void 0 } = t, c = "swiper", d = !1, u = null, h = null, m, p, g, v, A = null, w = null, y = null, x = null, L = null, C = { slides: [] };
|
|
12561
12561
|
function S() {
|
|
12562
12562
|
return u;
|
|
12563
12563
|
}
|
|
@@ -12568,41 +12568,41 @@ function lp(i, t, e) {
|
|
|
12568
12568
|
}), u.updateSlides(), u.updateProgress(), u.updateSlidesClasses(), u.lazy && u.params.lazy.enabled && u.lazy.load();
|
|
12569
12569
|
});
|
|
12570
12570
|
}, F = () => {
|
|
12571
|
-
|
|
12571
|
+
m = Km(o), e(2, p = m.params), g = m.passedParams, e(3, v = m.rest);
|
|
12572
12572
|
};
|
|
12573
12573
|
F(), h = g;
|
|
12574
12574
|
const H = () => {
|
|
12575
12575
|
d = !0;
|
|
12576
12576
|
};
|
|
12577
|
-
if (
|
|
12577
|
+
if (p.onAny = (O, ...W) => {
|
|
12578
12578
|
a(O, W);
|
|
12579
|
-
}, Object.assign(
|
|
12579
|
+
}, Object.assign(p.on, {
|
|
12580
12580
|
_beforeBreakpoint: H,
|
|
12581
12581
|
_containerClasses(O, W) {
|
|
12582
12582
|
e(1, c = W);
|
|
12583
12583
|
}
|
|
12584
|
-
}), u = new Mi(
|
|
12584
|
+
}), u = new Mi(p), Qi("swiper", u), u.virtual && u.params.virtual.enabled) {
|
|
12585
12585
|
const O = {
|
|
12586
12586
|
cache: !1,
|
|
12587
12587
|
renderExternal: (W) => {
|
|
12588
|
-
k(W),
|
|
12588
|
+
k(W), p.virtual && p.virtual.renderExternal && p.virtual.renderExternal(W);
|
|
12589
12589
|
},
|
|
12590
12590
|
renderExternalUpdate: !1
|
|
12591
12591
|
};
|
|
12592
12592
|
pt(u.params.virtual, O), pt(u.originalParams.virtual, O);
|
|
12593
12593
|
}
|
|
12594
12594
|
Ye(() => {
|
|
12595
|
-
!
|
|
12595
|
+
!A || ($m(
|
|
12596
12596
|
{
|
|
12597
|
-
el:
|
|
12597
|
+
el: A,
|
|
12598
12598
|
nextEl: y,
|
|
12599
12599
|
prevEl: w,
|
|
12600
12600
|
paginationEl: L,
|
|
12601
12601
|
scrollbarEl: x,
|
|
12602
12602
|
swiper: u
|
|
12603
12603
|
},
|
|
12604
|
-
|
|
12605
|
-
), a("swiper", [u]), !
|
|
12604
|
+
p
|
|
12605
|
+
), a("swiper", [u]), !p.virtual && u.slides.each((O) => {
|
|
12606
12606
|
O.onSwiper && O.onSwiper(u);
|
|
12607
12607
|
}));
|
|
12608
12608
|
}), to(() => {
|
|
@@ -12623,28 +12623,28 @@ function lp(i, t, e) {
|
|
|
12623
12623
|
typeof window != "undefined" && u && !u.destroyed && u.destroy(!0, !1);
|
|
12624
12624
|
});
|
|
12625
12625
|
function N(O) {
|
|
12626
|
-
|
|
12626
|
+
ze[O ? "unshift" : "push"](() => {
|
|
12627
12627
|
w = O, e(5, w);
|
|
12628
12628
|
});
|
|
12629
12629
|
}
|
|
12630
12630
|
function Y(O) {
|
|
12631
|
-
|
|
12631
|
+
ze[O ? "unshift" : "push"](() => {
|
|
12632
12632
|
y = O, e(6, y);
|
|
12633
12633
|
});
|
|
12634
12634
|
}
|
|
12635
12635
|
function P(O) {
|
|
12636
|
-
|
|
12636
|
+
ze[O ? "unshift" : "push"](() => {
|
|
12637
12637
|
x = O, e(7, x);
|
|
12638
12638
|
});
|
|
12639
12639
|
}
|
|
12640
12640
|
function I(O) {
|
|
12641
|
-
|
|
12641
|
+
ze[O ? "unshift" : "push"](() => {
|
|
12642
12642
|
L = O, e(8, L);
|
|
12643
12643
|
});
|
|
12644
12644
|
}
|
|
12645
12645
|
function z(O) {
|
|
12646
|
-
|
|
12647
|
-
|
|
12646
|
+
ze[O ? "unshift" : "push"](() => {
|
|
12647
|
+
A = O, e(4, A);
|
|
12648
12648
|
});
|
|
12649
12649
|
}
|
|
12650
12650
|
return i.$$set = (O) => {
|
|
@@ -12652,9 +12652,9 @@ function lp(i, t, e) {
|
|
|
12652
12652
|
}, [
|
|
12653
12653
|
l,
|
|
12654
12654
|
c,
|
|
12655
|
-
|
|
12656
|
-
A,
|
|
12655
|
+
p,
|
|
12657
12656
|
v,
|
|
12657
|
+
A,
|
|
12658
12658
|
w,
|
|
12659
12659
|
y,
|
|
12660
12660
|
x,
|
|
@@ -12767,10 +12767,10 @@ function mp(i) {
|
|
|
12767
12767
|
B(u, t, h), a[e].m(t, null), i[9](t), s = !0;
|
|
12768
12768
|
},
|
|
12769
12769
|
p(u, [h]) {
|
|
12770
|
-
let
|
|
12771
|
-
e = l(u), e ===
|
|
12772
|
-
a[
|
|
12773
|
-
}), ce(), n = a[e], n ? n.p(u, h) : (n = a[e] = r[e](u), n.c()), D(n, 1), n.m(t, null)), Vn(t, d =
|
|
12770
|
+
let m = e;
|
|
12771
|
+
e = l(u), e === m ? a[e].p(u, h) : (le(), M(a[m], 1, 1, () => {
|
|
12772
|
+
a[m] = null;
|
|
12773
|
+
}), ce(), n = a[e], n ? n.p(u, h) : (n = a[e] = r[e](u), n.c()), D(n, 1), n.m(t, null)), Vn(t, d = Me(c, [
|
|
12774
12774
|
(!s || h & 12 && o !== (o = oi(`${u[3]}${u[2] ? ` ${u[2]}` : ""}`))) && { class: o },
|
|
12775
12775
|
(!s || h & 2) && {
|
|
12776
12776
|
"data-swiper-slide-index": u[1]
|
|
@@ -12792,37 +12792,37 @@ function mp(i) {
|
|
|
12792
12792
|
function pp(i, t, e) {
|
|
12793
12793
|
let n;
|
|
12794
12794
|
const o = ["zoom", "virtualIndex", "class"];
|
|
12795
|
-
let s = Jn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, u = null, h = "swiper-slide",
|
|
12795
|
+
let s = Jn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, u = null, h = "swiper-slide", m = pn("swiper"), p = !1;
|
|
12796
12796
|
const g = (y, x, L) => {
|
|
12797
12797
|
x === u && e(3, h = L);
|
|
12798
|
-
}, A = () => {
|
|
12799
|
-
!p || m || (p.on("_slideClass", g), m = !0);
|
|
12800
12798
|
}, v = () => {
|
|
12801
|
-
!p || (
|
|
12799
|
+
!m || p || (m.on("_slideClass", g), p = !0);
|
|
12800
|
+
}, A = () => {
|
|
12801
|
+
!m || (m.off("_slideClass", g), p = !1);
|
|
12802
12802
|
};
|
|
12803
12803
|
Ye(() => {
|
|
12804
12804
|
typeof c != "undefined" && (e(
|
|
12805
12805
|
4,
|
|
12806
12806
|
u.onSwiper = (y) => {
|
|
12807
|
-
|
|
12807
|
+
m = y, v();
|
|
12808
12808
|
},
|
|
12809
12809
|
u
|
|
12810
|
-
),
|
|
12810
|
+
), v());
|
|
12811
12811
|
}), to(() => {
|
|
12812
|
-
if (!(!u || !
|
|
12813
|
-
if (
|
|
12812
|
+
if (!(!u || !m)) {
|
|
12813
|
+
if (m.destroyed) {
|
|
12814
12814
|
h !== "swiper-slide" && e(3, h = "swiper-slide");
|
|
12815
12815
|
return;
|
|
12816
12816
|
}
|
|
12817
|
-
|
|
12817
|
+
v();
|
|
12818
12818
|
}
|
|
12819
12819
|
}), eo(() => {
|
|
12820
|
-
|
|
12820
|
+
v();
|
|
12821
12821
|
}), wt(() => {
|
|
12822
|
-
!
|
|
12822
|
+
!m || A();
|
|
12823
12823
|
});
|
|
12824
12824
|
function w(y) {
|
|
12825
|
-
|
|
12825
|
+
ze[y ? "unshift" : "push"](() => {
|
|
12826
12826
|
u = y, e(4, u);
|
|
12827
12827
|
});
|
|
12828
12828
|
}
|
|
@@ -12888,15 +12888,15 @@ function vp(i) {
|
|
|
12888
12888
|
var h;
|
|
12889
12889
|
t = j("video"), r = V(), a = j("div"), l = j("div"), c = j("div"), b(t, "class", "media-content svelte-cwtvzu"), b(t, "style", e = `object-fit: ${i[3]};`), et(t.src, n = i[0].url + "#t=0.1") || b(t, "src", n), b(t, "poster", o = (h = i[0].videoCoverUrl) != null ? h : void 0), b(t, "preload", s = i[0].videoCoverUrl ? void 0 : "auto"), t.playsInline = !0, b(t, "paused", ""), t.loop = !1, b(t, "crossorigin", ""), t.controls = !1, q(t, "showPlayButton", i[5]), b(c, "class", "video-icon-img svelte-cwtvzu"), R(c, "background-image", "url(" + (i[1] === "large" ? Js : Vs) + ")"), q(c, "canPlay", i[2]), b(l, "class", "video-icon svelte-cwtvzu"), q(l, "large", i[1] === "large"), q(l, "small", i[1] === "small"), b(a, "class", "video-play-button-container svelte-cwtvzu"), q(a, "showPlayButton", i[5]);
|
|
12890
12890
|
},
|
|
12891
|
-
m(h,
|
|
12892
|
-
B(h, t,
|
|
12891
|
+
m(h, m) {
|
|
12892
|
+
B(h, t, m), i[7](t), B(h, r, m), B(h, a, m), Q(a, l), Q(l, c), d || (u = [
|
|
12893
12893
|
Ee(t, "click", i[6]),
|
|
12894
12894
|
Ee(c, "click", i[8])
|
|
12895
12895
|
], d = !0);
|
|
12896
12896
|
},
|
|
12897
|
-
p(h,
|
|
12898
|
-
var
|
|
12899
|
-
|
|
12897
|
+
p(h, m) {
|
|
12898
|
+
var p;
|
|
12899
|
+
m & 8 && e !== (e = `object-fit: ${h[3]};`) && b(t, "style", e), m & 1 && !et(t.src, n = h[0].url + "#t=0.1") && b(t, "src", n), m & 1 && o !== (o = (p = h[0].videoCoverUrl) != null ? p : void 0) && b(t, "poster", o), m & 1 && s !== (s = h[0].videoCoverUrl ? void 0 : "auto") && b(t, "preload", s), m & 32 && q(t, "showPlayButton", h[5]), m & 2 && R(c, "background-image", "url(" + (h[1] === "large" ? Js : Vs) + ")"), m & 4 && q(c, "canPlay", h[2]), m & 2 && q(l, "large", h[1] === "large"), m & 2 && q(l, "small", h[1] === "small"), m & 32 && q(a, "showPlayButton", h[5]);
|
|
12900
12900
|
},
|
|
12901
12901
|
d(h) {
|
|
12902
12902
|
h && T(t), i[7](null), h && T(r), h && T(a), d = !1, at(u);
|
|
@@ -12943,7 +12943,7 @@ function wp(i, t, e) {
|
|
|
12943
12943
|
let { media: n } = t, { playButtonIfNeed: o = "small" } = t, { canPlay: s = !0 } = t, { objectFit: r = "cover" } = t, a, l = !1;
|
|
12944
12944
|
const c = () => a == null ? void 0 : a.pause();
|
|
12945
12945
|
function d(h) {
|
|
12946
|
-
|
|
12946
|
+
ze[h ? "unshift" : "push"](() => {
|
|
12947
12947
|
a = h, e(4, a);
|
|
12948
12948
|
});
|
|
12949
12949
|
}
|
|
@@ -13076,7 +13076,7 @@ function Pp(i) {
|
|
|
13076
13076
|
style: "height: 100%",
|
|
13077
13077
|
modules: [Tl],
|
|
13078
13078
|
spaceBetween: 30,
|
|
13079
|
-
autoplay: i[14] ?
|
|
13079
|
+
autoplay: i[14] ? Le({
|
|
13080
13080
|
delay: 4e3,
|
|
13081
13081
|
stopOnLastSlide: !1,
|
|
13082
13082
|
disableOnInteraction: !1
|
|
@@ -13094,7 +13094,7 @@ function Pp(i) {
|
|
|
13094
13094
|
},
|
|
13095
13095
|
p(n, o) {
|
|
13096
13096
|
const s = {};
|
|
13097
|
-
o & 16384 && (s.autoplay = n[14] ?
|
|
13097
|
+
o & 16384 && (s.autoplay = n[14] ? Le({
|
|
13098
13098
|
delay: 4e3,
|
|
13099
13099
|
stopOnLastSlide: !1,
|
|
13100
13100
|
disableOnInteraction: !1
|
|
@@ -13246,7 +13246,7 @@ function kp(i) {
|
|
|
13246
13246
|
};
|
|
13247
13247
|
}
|
|
13248
13248
|
function Dp(i, t, e) {
|
|
13249
|
-
let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: u = !0 } = t, { animation: h = !0 } = t, { playButtonIfNeed:
|
|
13249
|
+
let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: u = !0 } = t, { animation: h = !0 } = t, { playButtonIfNeed: m = "small" } = t, { canPlay: p = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: A = { autoplay: !0, autoplayVideo: !1 } } = t;
|
|
13250
13250
|
const w = pn("mediaStore"), y = pn("hooks");
|
|
13251
13251
|
let x;
|
|
13252
13252
|
function L(H) {
|
|
@@ -13270,7 +13270,7 @@ function Dp(i, t, e) {
|
|
|
13270
13270
|
e(10, x = H.detail[0]);
|
|
13271
13271
|
}, F = (H) => J(this, null, function* () {
|
|
13272
13272
|
var O, W, Z;
|
|
13273
|
-
if (!s || !
|
|
13273
|
+
if (!s || !A.autoplayVideo)
|
|
13274
13274
|
return;
|
|
13275
13275
|
const N = H.detail[0];
|
|
13276
13276
|
if (!N)
|
|
@@ -13291,9 +13291,9 @@ function Dp(i, t, e) {
|
|
|
13291
13291
|
}
|
|
13292
13292
|
});
|
|
13293
13293
|
return i.$$set = (H) => {
|
|
13294
|
-
"tag" in H && e(17, r = H.tag), "mediaData" in H && e(0, a = H.mediaData), "inDelay" in H && e(1, l = H.inDelay), "outDelay" in H && e(2, c = H.outDelay), "duration" in H && e(3, d = H.duration), "unfolded" in H && e(4, u = H.unfolded), "animation" in H && e(5, h = H.animation), "playButtonIfNeed" in H && e(6,
|
|
13294
|
+
"tag" in H && e(17, r = H.tag), "mediaData" in H && e(0, a = H.mediaData), "inDelay" in H && e(1, l = H.inDelay), "outDelay" in H && e(2, c = H.outDelay), "duration" in H && e(3, d = H.duration), "unfolded" in H && e(4, u = H.unfolded), "animation" in H && e(5, h = H.animation), "playButtonIfNeed" in H && e(6, m = H.playButtonIfNeed), "canPlay" in H && e(7, p = H.canPlay), "objectFit" in H && e(8, g = H.objectFit), "enableCarousel" in H && e(18, v = H.enableCarousel), "autoplayConfig" in H && e(9, A = H.autoplayConfig);
|
|
13295
13295
|
}, i.$$.update = () => {
|
|
13296
|
-
i.$$.dirty & 262145 && e(13, n =
|
|
13296
|
+
i.$$.dirty & 262145 && e(13, n = v && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && A.autoplay), i.$$.dirty & 1024 && x && x.slides.forEach((H) => {
|
|
13297
13297
|
const N = H.querySelector("video");
|
|
13298
13298
|
N && w.subscribe(({ currentMediaUrl: Y }) => {
|
|
13299
13299
|
Y !== N.src && N.pause();
|
|
@@ -13306,10 +13306,10 @@ function Dp(i, t, e) {
|
|
|
13306
13306
|
d,
|
|
13307
13307
|
u,
|
|
13308
13308
|
h,
|
|
13309
|
-
p,
|
|
13310
13309
|
m,
|
|
13310
|
+
p,
|
|
13311
13311
|
g,
|
|
13312
|
-
|
|
13312
|
+
A,
|
|
13313
13313
|
x,
|
|
13314
13314
|
o,
|
|
13315
13315
|
S,
|
|
@@ -13318,7 +13318,7 @@ function Dp(i, t, e) {
|
|
|
13318
13318
|
L,
|
|
13319
13319
|
C,
|
|
13320
13320
|
r,
|
|
13321
|
-
|
|
13321
|
+
v,
|
|
13322
13322
|
k,
|
|
13323
13323
|
F
|
|
13324
13324
|
];
|
|
@@ -13375,52 +13375,52 @@ function gr(i) {
|
|
|
13375
13375
|
}
|
|
13376
13376
|
});
|
|
13377
13377
|
let u = i[2];
|
|
13378
|
-
const h = (
|
|
13379
|
-
for (let
|
|
13380
|
-
let g = pr(i, u,
|
|
13381
|
-
a.set(
|
|
13378
|
+
const h = (p) => p[5];
|
|
13379
|
+
for (let p = 0; p < u.length; p += 1) {
|
|
13380
|
+
let g = pr(i, u, p), v = h(g);
|
|
13381
|
+
a.set(v, r[p] = Ar(v, g));
|
|
13382
13382
|
}
|
|
13383
|
-
let
|
|
13383
|
+
let m = i[3] && vr(i);
|
|
13384
13384
|
return {
|
|
13385
13385
|
c() {
|
|
13386
13386
|
ee(t.$$.fragment), e = V(), n = j("div"), ee(o.$$.fragment), s = V();
|
|
13387
|
-
for (let
|
|
13388
|
-
r[
|
|
13389
|
-
l = V(),
|
|
13387
|
+
for (let p = 0; p < r.length; p += 1)
|
|
13388
|
+
r[p].c();
|
|
13389
|
+
l = V(), m && m.c(), c = fe(), b(n, "class", "line svelte-1f7m1lj");
|
|
13390
13390
|
},
|
|
13391
|
-
m(
|
|
13392
|
-
K(t,
|
|
13393
|
-
for (let
|
|
13394
|
-
r[
|
|
13395
|
-
B(
|
|
13391
|
+
m(p, g) {
|
|
13392
|
+
K(t, p, g), B(p, e, g), B(p, n, g), K(o, n, null), B(p, s, g);
|
|
13393
|
+
for (let v = 0; v < r.length; v += 1)
|
|
13394
|
+
r[v].m(p, g);
|
|
13395
|
+
B(p, l, g), m && m.m(p, g), B(p, c, g), d = !0;
|
|
13396
13396
|
},
|
|
13397
|
-
p(
|
|
13398
|
-
const A = {};
|
|
13399
|
-
g & 16 && (A.visible = m[4]), t.$set(A);
|
|
13397
|
+
p(p, g) {
|
|
13400
13398
|
const v = {};
|
|
13401
|
-
g & 16 && (v.
|
|
13402
|
-
|
|
13399
|
+
g & 16 && (v.visible = p[4]), t.$set(v);
|
|
13400
|
+
const A = {};
|
|
13401
|
+
g & 16 && (A.unfolded = p[4]), o.$set(A), g & 20 && (u = p[2], le(), r = Ue(r, g, h, 1, p, u, a, l.parentNode, lt, Ar, l, pr), ce()), p[3] ? m ? (m.p(p, g), g & 8 && D(m, 1)) : (m = vr(p), m.c(), D(m, 1), m.m(c.parentNode, c)) : m && (le(), M(m, 1, 1, () => {
|
|
13402
|
+
m = null;
|
|
13403
13403
|
}), ce());
|
|
13404
13404
|
},
|
|
13405
|
-
i(
|
|
13405
|
+
i(p) {
|
|
13406
13406
|
if (!d) {
|
|
13407
|
-
D(t.$$.fragment,
|
|
13407
|
+
D(t.$$.fragment, p), D(o.$$.fragment, p);
|
|
13408
13408
|
for (let g = 0; g < u.length; g += 1)
|
|
13409
13409
|
D(r[g]);
|
|
13410
|
-
D(
|
|
13410
|
+
D(m), d = !0;
|
|
13411
13411
|
}
|
|
13412
13412
|
},
|
|
13413
|
-
o(
|
|
13414
|
-
M(t.$$.fragment,
|
|
13413
|
+
o(p) {
|
|
13414
|
+
M(t.$$.fragment, p), M(o.$$.fragment, p);
|
|
13415
13415
|
for (let g = 0; g < r.length; g += 1)
|
|
13416
13416
|
M(r[g]);
|
|
13417
|
-
M(
|
|
13417
|
+
M(m), d = !1;
|
|
13418
13418
|
},
|
|
13419
|
-
d(
|
|
13420
|
-
$(t,
|
|
13419
|
+
d(p) {
|
|
13420
|
+
$(t, p), p && T(e), p && T(n), $(o), p && T(s);
|
|
13421
13421
|
for (let g = 0; g < r.length; g += 1)
|
|
13422
|
-
r[g].d(
|
|
13423
|
-
|
|
13422
|
+
r[g].d(p);
|
|
13423
|
+
p && T(l), m && m.d(p), p && T(c);
|
|
13424
13424
|
}
|
|
13425
13425
|
};
|
|
13426
13426
|
}
|
|
@@ -13553,7 +13553,7 @@ function wr(i) {
|
|
|
13553
13553
|
B(o, t, s), Q(t, n);
|
|
13554
13554
|
},
|
|
13555
13555
|
p(o, s) {
|
|
13556
|
-
s & 4 && e !== (e = o[0] + "") &&
|
|
13556
|
+
s & 4 && e !== (e = o[0] + "") && Te(n, e);
|
|
13557
13557
|
},
|
|
13558
13558
|
d(o) {
|
|
13559
13559
|
o && T(t);
|
|
@@ -13587,7 +13587,7 @@ function Er(i) {
|
|
|
13587
13587
|
B(o, t, s), Q(t, n);
|
|
13588
13588
|
},
|
|
13589
13589
|
p(o, s) {
|
|
13590
|
-
s & 4 && e !== (e = o[0] + "") &&
|
|
13590
|
+
s & 4 && e !== (e = o[0] + "") && Te(n, e);
|
|
13591
13591
|
},
|
|
13592
13592
|
d(o) {
|
|
13593
13593
|
o && T(t);
|
|
@@ -13621,7 +13621,7 @@ function Ir(i) {
|
|
|
13621
13621
|
B(a, t, l), Q(t, e), Q(e, o), Q(t, s), r && r.m(t, null);
|
|
13622
13622
|
},
|
|
13623
13623
|
p(a, l) {
|
|
13624
|
-
l & 4 && n !== (n = a[2].price.value + "") &&
|
|
13624
|
+
l & 4 && n !== (n = a[2].price.value + "") && Te(o, n), a[2].price.unit ? r ? r.p(a, l) : (r = xr(a), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
13625
13625
|
},
|
|
13626
13626
|
d(a) {
|
|
13627
13627
|
a && T(t), r && r.d();
|
|
@@ -13638,7 +13638,7 @@ function xr(i) {
|
|
|
13638
13638
|
B(o, t, s), Q(t, n);
|
|
13639
13639
|
},
|
|
13640
13640
|
p(o, s) {
|
|
13641
|
-
s & 4 && e !== (e = o[2].price.unit + "") &&
|
|
13641
|
+
s & 4 && e !== (e = o[2].price.unit + "") && Te(n, e);
|
|
13642
13642
|
},
|
|
13643
13643
|
d(o) {
|
|
13644
13644
|
o && T(t);
|
|
@@ -13655,7 +13655,7 @@ function kr(i) {
|
|
|
13655
13655
|
B(o, t, s), Q(t, n);
|
|
13656
13656
|
},
|
|
13657
13657
|
p(o, s) {
|
|
13658
|
-
s & 4 && e !== (e = o[2].highlightText + "") &&
|
|
13658
|
+
s & 4 && e !== (e = o[2].highlightText + "") && Te(n, e);
|
|
13659
13659
|
},
|
|
13660
13660
|
d(o) {
|
|
13661
13661
|
o && T(t);
|
|
@@ -13664,7 +13664,7 @@ function kr(i) {
|
|
|
13664
13664
|
}
|
|
13665
13665
|
function Bp(i) {
|
|
13666
13666
|
var N, Y;
|
|
13667
|
-
let t, e, n, o, s, r, a, l, c, d, u, h,
|
|
13667
|
+
let t, e, n, o, s, r, a, l, c, d, u, h, m, p, g = i[2].title + "", v, A, w, y, x;
|
|
13668
13668
|
e = new Je({
|
|
13669
13669
|
props: {
|
|
13670
13670
|
visible: i[1],
|
|
@@ -13691,7 +13691,7 @@ function Bp(i) {
|
|
|
13691
13691
|
u = V();
|
|
13692
13692
|
for (let z = 0; z < k.length; z += 1)
|
|
13693
13693
|
k[z].c();
|
|
13694
|
-
h = V(),
|
|
13694
|
+
h = V(), m = j("div"), p = j("div"), v = xe(g), A = V(), w = j("div"), F && F.c(), y = V(), H && H.c(), b(o, "class", "line svelte-8mby9k"), R(o, "transition-delay", i[1] ? Rn + "ms" : Hn + Lr - Dr - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(m, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), R(w, "height", ((P = i[2].price) == null ? void 0 : P.value) !== void 0 && ((I = i[2].price) == null ? void 0 : I.value) !== null && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), R(r, "transition-delay", i[1] ? Rn + Hn + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), q(t, "unfolded", i[1]), q(t, "folded", i[3]);
|
|
13695
13695
|
},
|
|
13696
13696
|
m(P, I) {
|
|
13697
13697
|
B(P, t, I), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), Q(r, a), Q(r, c), Q(r, d);
|
|
@@ -13700,7 +13700,7 @@ function Bp(i) {
|
|
|
13700
13700
|
Q(d, u);
|
|
13701
13701
|
for (let z = 0; z < k.length; z += 1)
|
|
13702
13702
|
k[z].m(d, null);
|
|
13703
|
-
Q(r, h), Q(r,
|
|
13703
|
+
Q(r, h), Q(r, m), Q(m, p), Q(p, v), Q(r, A), Q(r, w), F && F.m(w, null), Q(w, y), H && H.m(w, null), x = !0;
|
|
13704
13704
|
},
|
|
13705
13705
|
p(P, [I]) {
|
|
13706
13706
|
var O, W, Z, X;
|
|
@@ -13727,7 +13727,7 @@ function Bp(i) {
|
|
|
13727
13727
|
k[U].d(1);
|
|
13728
13728
|
k.length = S.length;
|
|
13729
13729
|
}
|
|
13730
|
-
(!x || I & 4) && g !== (g = P[2].title + "") &&
|
|
13730
|
+
(!x || I & 4) && g !== (g = P[2].title + "") && Te(v, g), ((O = P[2].price) == null ? void 0 : O.value) !== void 0 && ((W = P[2].price) == null ? void 0 : W.value) !== null ? F ? F.p(P, I) : (F = Ir(P), F.c(), F.m(w, y)) : F && (F.d(1), F = null), P[2].highlightText ? H ? H.p(P, I) : (H = kr(P), H.c(), H.m(w, null)) : H && (H.d(1), H = null), I & 4 && R(w, "height", ((Z = P[2].price) == null ? void 0 : Z.value) !== void 0 && ((X = P[2].price) == null ? void 0 : X.value) !== null && P[2].highlightText ? void 0 : "1rem"), I & 2 && R(r, "transition-delay", P[1] ? Rn + Hn + "ms" : "0ms"), (!x || I & 2) && q(t, "unfolded", P[1]), (!x || I & 8) && q(t, "folded", P[3]);
|
|
13731
13731
|
},
|
|
13732
13732
|
i(P) {
|
|
13733
13733
|
x || (D(e.$$.fragment, P), x = !0);
|
|
@@ -13759,7 +13759,7 @@ function Rp(i) {
|
|
|
13759
13759
|
ae(i, "svelte-1ku3wt4", `.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`);
|
|
13760
13760
|
}
|
|
13761
13761
|
function Sr(i) {
|
|
13762
|
-
let t, e, n, o, s, r, a, l = !0, c, d, u, h,
|
|
13762
|
+
let t, e, n, o, s, r, a, l = !0, c, d, u, h, m;
|
|
13763
13763
|
return e = new Je({
|
|
13764
13764
|
props: {
|
|
13765
13765
|
center: !0,
|
|
@@ -13770,18 +13770,18 @@ function Sr(i) {
|
|
|
13770
13770
|
c() {
|
|
13771
13771
|
t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), s = V(), r = j("audio"), b(o, "class", "audio-icon svelte-1ku3wt4"), r.controls = !1, b(r, "playsinline", ""), et(r.src, a = i[3]) || b(r, "src", a), b(t, "class", "audio svelte-1ku3wt4"), q(t, "paused", i[6]);
|
|
13772
13772
|
},
|
|
13773
|
-
m(
|
|
13774
|
-
B(
|
|
13773
|
+
m(p, g) {
|
|
13774
|
+
B(p, t, g), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), i[9](r), u = !0, h || (m = [
|
|
13775
13775
|
Ee(r, "play", i[10]),
|
|
13776
13776
|
Ee(r, "pause", i[10]),
|
|
13777
13777
|
Ee(t, "click", $i(i[7]))
|
|
13778
13778
|
], h = !0);
|
|
13779
13779
|
},
|
|
13780
|
-
p(
|
|
13781
|
-
i =
|
|
13780
|
+
p(p, g) {
|
|
13781
|
+
i = p, (!u || g & 8 && !et(r.src, a = i[3])) && b(r, "src", a), g & 64 && l !== (l = i[6]) && r[l ? "pause" : "play"](), (!u || g & 64) && q(t, "paused", i[6]);
|
|
13782
13782
|
},
|
|
13783
|
-
i(
|
|
13784
|
-
u || (D(e.$$.fragment,
|
|
13783
|
+
i(p) {
|
|
13784
|
+
u || (D(e.$$.fragment, p), p && Ie(() => {
|
|
13785
13785
|
d && d.end(1), c = Ht(t, Mt, {
|
|
13786
13786
|
duration: i[2],
|
|
13787
13787
|
delay: i[0],
|
|
@@ -13789,15 +13789,15 @@ function Sr(i) {
|
|
|
13789
13789
|
}), c.start();
|
|
13790
13790
|
}), u = !0);
|
|
13791
13791
|
},
|
|
13792
|
-
o(
|
|
13793
|
-
M(e.$$.fragment,
|
|
13792
|
+
o(p) {
|
|
13793
|
+
M(e.$$.fragment, p), c && c.invalidate(), p && (d = Kt(t, Mt, {
|
|
13794
13794
|
duration: i[2],
|
|
13795
13795
|
delay: i[1],
|
|
13796
13796
|
easing: Zt
|
|
13797
13797
|
})), u = !1;
|
|
13798
13798
|
},
|
|
13799
|
-
d(
|
|
13800
|
-
|
|
13799
|
+
d(p) {
|
|
13800
|
+
p && T(t), $(e), i[9](null), p && d && d.end(), h = !1, at(m);
|
|
13801
13801
|
}
|
|
13802
13802
|
};
|
|
13803
13803
|
}
|
|
@@ -13830,42 +13830,42 @@ function Op(i, t, e) {
|
|
|
13830
13830
|
let { inDelay: n = 0 } = t, { outDelay: o = 0 } = t, { duration: s = 0 } = t, { url: r } = t, { unfolded: a } = t, { hooksInfo: l = {} } = t;
|
|
13831
13831
|
const c = pn("hooks"), d = pn("mediaStore");
|
|
13832
13832
|
let u, h = !0;
|
|
13833
|
-
d.subscribe(({ currentMediaUrl:
|
|
13834
|
-
|
|
13833
|
+
d.subscribe(({ currentMediaUrl: v }) => {
|
|
13834
|
+
v !== r && (u == null || u.pause());
|
|
13835
13835
|
});
|
|
13836
|
-
function
|
|
13836
|
+
function m(v) {
|
|
13837
13837
|
d.set({ currentMediaUrl: r }), u && (c.emit("click", G({
|
|
13838
|
-
event:
|
|
13838
|
+
event: v,
|
|
13839
13839
|
target: "AudioTagPlayIcon",
|
|
13840
13840
|
audioInstance: u
|
|
13841
13841
|
}, l)), u.paused ? u.play() : u.pause(), e(
|
|
13842
13842
|
5,
|
|
13843
|
-
u.onplay = (
|
|
13844
|
-
event:
|
|
13843
|
+
u.onplay = (A) => c.emit("playStateChange", G({
|
|
13844
|
+
event: A,
|
|
13845
13845
|
state: "playing",
|
|
13846
13846
|
mediaInstance: u
|
|
13847
13847
|
}, l)),
|
|
13848
13848
|
u
|
|
13849
13849
|
), e(
|
|
13850
13850
|
5,
|
|
13851
|
-
u.onpause = (
|
|
13852
|
-
event:
|
|
13851
|
+
u.onpause = (A) => c.emit("playStateChange", G({
|
|
13852
|
+
event: A,
|
|
13853
13853
|
state: "paused",
|
|
13854
13854
|
mediaInstance: u
|
|
13855
13855
|
}, l)),
|
|
13856
13856
|
u
|
|
13857
13857
|
));
|
|
13858
13858
|
}
|
|
13859
|
-
function
|
|
13860
|
-
|
|
13861
|
-
u =
|
|
13859
|
+
function p(v) {
|
|
13860
|
+
ze[v ? "unshift" : "push"](() => {
|
|
13861
|
+
u = v, e(5, u);
|
|
13862
13862
|
});
|
|
13863
13863
|
}
|
|
13864
13864
|
function g() {
|
|
13865
13865
|
h = this.paused, e(6, h);
|
|
13866
13866
|
}
|
|
13867
|
-
return i.$$set = (
|
|
13868
|
-
"inDelay" in
|
|
13867
|
+
return i.$$set = (v) => {
|
|
13868
|
+
"inDelay" in v && e(0, n = v.inDelay), "outDelay" in v && e(1, o = v.outDelay), "duration" in v && e(2, s = v.duration), "url" in v && e(3, r = v.url), "unfolded" in v && e(4, a = v.unfolded), "hooksInfo" in v && e(8, l = v.hooksInfo);
|
|
13869
13869
|
}, i.$$.update = () => {
|
|
13870
13870
|
i.$$.dirty & 48 && (a || u == null || u.pause());
|
|
13871
13871
|
}, [
|
|
@@ -13876,9 +13876,9 @@ function Op(i, t, e) {
|
|
|
13876
13876
|
a,
|
|
13877
13877
|
u,
|
|
13878
13878
|
h,
|
|
13879
|
-
p,
|
|
13880
|
-
l,
|
|
13881
13879
|
m,
|
|
13880
|
+
l,
|
|
13881
|
+
p,
|
|
13882
13882
|
g
|
|
13883
13883
|
];
|
|
13884
13884
|
}
|
|
@@ -13907,7 +13907,7 @@ function Gp(i) {
|
|
|
13907
13907
|
}
|
|
13908
13908
|
function zr(i) {
|
|
13909
13909
|
var w, y, x, L;
|
|
13910
|
-
let t, e, n, o, s, r, a, l, c, d, u, h,
|
|
13910
|
+
let t, e, n, o, s, r, a, l, c, d, u, h, m, p, g, v, A;
|
|
13911
13911
|
return e = new Je({
|
|
13912
13912
|
props: {
|
|
13913
13913
|
visible: i[5],
|
|
@@ -13931,7 +13931,7 @@ function zr(i) {
|
|
|
13931
13931
|
outDelay: 20 * Math.min((L = (x = i[3][0]) == null ? void 0 : x.content.length) != null ? L : 10, 15),
|
|
13932
13932
|
hooksInfo: { tag: i[0] }
|
|
13933
13933
|
}
|
|
13934
|
-
}),
|
|
13934
|
+
}), m = new Va({
|
|
13935
13935
|
props: {
|
|
13936
13936
|
visible: i[5],
|
|
13937
13937
|
textUnfolded: i[1],
|
|
@@ -13939,10 +13939,10 @@ function zr(i) {
|
|
|
13939
13939
|
}
|
|
13940
13940
|
}), {
|
|
13941
13941
|
c() {
|
|
13942
|
-
t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), ee(s.$$.fragment), r = V(), a = j("div"), l = j("div"), c = j("div"), ee(d.$$.fragment), u = V(), h = j("div"), ee(
|
|
13942
|
+
t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), ee(s.$$.fragment), r = V(), a = j("div"), l = j("div"), c = j("div"), ee(d.$$.fragment), u = V(), h = j("div"), ee(m.$$.fragment), b(o, "class", "line svelte-4r8s18"), R(o, "width", i[2] + "px"), b(c, "class", "audio-icon svelte-4r8s18"), R(h, "display", "inline-block"), b(l, "class", "wrapper svelte-4r8s18"), b(a, "class", "content svelte-4r8s18"), Ie(() => i[8].call(a)), b(t, "class", "audio-tag svelte-4r8s18"), q(t, "unfolded", i[5]);
|
|
13943
13943
|
},
|
|
13944
13944
|
m(C, S) {
|
|
13945
|
-
B(C, t, S), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, u), Q(l, h), K(
|
|
13945
|
+
B(C, t, S), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, u), Q(l, h), K(m, h, null), p = yt(a, i[8].bind(a)), g = !0, v || (A = Ee(h, "click", i[6]), v = !0);
|
|
13946
13946
|
},
|
|
13947
13947
|
p(C, S) {
|
|
13948
13948
|
var Y, P, I, z;
|
|
@@ -13953,16 +13953,16 @@ function zr(i) {
|
|
|
13953
13953
|
const H = {};
|
|
13954
13954
|
S & 32 && (H.unfolded = C[5]), S & 1 && (H.url = C[0].data.audioUrl), S & 8 && (H.outDelay = 20 * Math.min((z = (I = C[3][0]) == null ? void 0 : I.content.length) != null ? z : 10, 15)), S & 1 && (H.hooksInfo = { tag: C[0] }), d.$set(H);
|
|
13955
13955
|
const N = {};
|
|
13956
|
-
S & 32 && (N.visible = C[5]), S & 2 && (N.textUnfolded = C[1]), S & 8 && (N.textItems = C[3]),
|
|
13956
|
+
S & 32 && (N.visible = C[5]), S & 2 && (N.textUnfolded = C[1]), S & 8 && (N.textItems = C[3]), m.$set(N), (!g || S & 32) && q(t, "unfolded", C[5]);
|
|
13957
13957
|
},
|
|
13958
13958
|
i(C) {
|
|
13959
|
-
g || (D(e.$$.fragment, C), D(s.$$.fragment, C), D(d.$$.fragment, C), D(
|
|
13959
|
+
g || (D(e.$$.fragment, C), D(s.$$.fragment, C), D(d.$$.fragment, C), D(m.$$.fragment, C), g = !0);
|
|
13960
13960
|
},
|
|
13961
13961
|
o(C) {
|
|
13962
|
-
M(e.$$.fragment, C), M(s.$$.fragment, C), M(d.$$.fragment, C), M(
|
|
13962
|
+
M(e.$$.fragment, C), M(s.$$.fragment, C), M(d.$$.fragment, C), M(m.$$.fragment, C), g = !1;
|
|
13963
13963
|
},
|
|
13964
13964
|
d(C) {
|
|
13965
|
-
C && T(t), $(e), $(s), $(d), $(
|
|
13965
|
+
C && T(t), $(e), $(s), $(d), $(m), p(), v = !1, A();
|
|
13966
13966
|
}
|
|
13967
13967
|
};
|
|
13968
13968
|
}
|
|
@@ -14169,12 +14169,12 @@ function qp(i) {
|
|
|
14169
14169
|
};
|
|
14170
14170
|
}
|
|
14171
14171
|
function Kp(i) {
|
|
14172
|
-
let t, e, n, o, s, r, a, l, c, d = i[
|
|
14173
|
-
const p = [qp, _p],
|
|
14174
|
-
function
|
|
14175
|
-
return A[
|
|
14172
|
+
let t, e, n, o, s, r, a, l, c, d = i[1].text + "", u, h, m;
|
|
14173
|
+
const p = [qp, _p], g = [];
|
|
14174
|
+
function v(A, w) {
|
|
14175
|
+
return A[1].linkType === Wi.VrLink ? 0 : A[1].linkType === Wi.NormalLink ? 1 : -1;
|
|
14176
14176
|
}
|
|
14177
|
-
return ~(n =
|
|
14177
|
+
return ~(n = v(i)) && (o = g[n] = p[n](i)), a = new Je({
|
|
14178
14178
|
props: {
|
|
14179
14179
|
visible: !0,
|
|
14180
14180
|
outDelay: 0,
|
|
@@ -14188,39 +14188,39 @@ function Kp(i) {
|
|
|
14188
14188
|
}
|
|
14189
14189
|
}), {
|
|
14190
14190
|
c() {
|
|
14191
|
-
t = j("div"), e = j("div"), o && o.c(), s = V(), r = j("div"), ee(a.$$.fragment), l = V(), c = j("div"), u = xe(d), b(e, "class", "icon svelte-7x7u86"), b(c, "class", "text svelte-7x7u86"), b(r, "class", "text-wrapper svelte-7x7u86"), b(t, "class", "wrapper svelte-7x7u86");
|
|
14191
|
+
t = j("div"), e = j("div"), o && o.c(), s = V(), r = j("div"), ee(a.$$.fragment), l = V(), c = j("div"), u = xe(d), b(e, "class", "icon svelte-7x7u86"), b(c, "class", "text svelte-7x7u86"), b(r, "class", "text-wrapper svelte-7x7u86"), b(t, "class", "wrapper svelte-7x7u86"), b(t, "data-link-type", h = i[0].data.linkType);
|
|
14192
14192
|
},
|
|
14193
|
-
m(A,
|
|
14194
|
-
B(A, t,
|
|
14193
|
+
m(A, w) {
|
|
14194
|
+
B(A, t, w), Q(t, e), ~n && g[n].m(e, null), Q(t, s), Q(t, r), K(a, r, null), Q(r, l), Q(r, c), Q(c, u), m = !0;
|
|
14195
14195
|
},
|
|
14196
|
-
p(A, [
|
|
14197
|
-
let
|
|
14198
|
-
n =
|
|
14199
|
-
|
|
14200
|
-
}), ce()), ~n ? (o =
|
|
14196
|
+
p(A, [w]) {
|
|
14197
|
+
let y = n;
|
|
14198
|
+
n = v(A), n !== y && (o && (le(), M(g[y], 1, 1, () => {
|
|
14199
|
+
g[y] = null;
|
|
14200
|
+
}), ce()), ~n ? (o = g[n], o || (o = g[n] = p[n](A), o.c()), D(o, 1), o.m(e, null)) : o = null), (!m || w & 2) && d !== (d = A[1].text + "") && Te(u, d), (!m || w & 1 && h !== (h = A[0].data.linkType)) && b(t, "data-link-type", h);
|
|
14201
14201
|
},
|
|
14202
14202
|
i(A) {
|
|
14203
|
-
|
|
14203
|
+
m || (D(o), D(a.$$.fragment, A), m = !0);
|
|
14204
14204
|
},
|
|
14205
14205
|
o(A) {
|
|
14206
|
-
M(o), M(a.$$.fragment, A),
|
|
14206
|
+
M(o), M(a.$$.fragment, A), m = !1;
|
|
14207
14207
|
},
|
|
14208
14208
|
d(A) {
|
|
14209
|
-
A && T(t), ~n &&
|
|
14209
|
+
A && T(t), ~n && g[n].d(), $(a);
|
|
14210
14210
|
}
|
|
14211
14211
|
};
|
|
14212
14212
|
}
|
|
14213
14213
|
function $p(i, t, e) {
|
|
14214
14214
|
let n, { tag: o } = t;
|
|
14215
14215
|
return i.$$set = (s) => {
|
|
14216
|
-
"tag" in s && e(
|
|
14216
|
+
"tag" in s && e(0, o = s.tag);
|
|
14217
14217
|
}, i.$$.update = () => {
|
|
14218
|
-
i.$$.dirty &
|
|
14219
|
-
}, [
|
|
14218
|
+
i.$$.dirty & 1 && e(1, n = o.data);
|
|
14219
|
+
}, [o, n];
|
|
14220
14220
|
}
|
|
14221
14221
|
class eg extends oe {
|
|
14222
14222
|
constructor(t) {
|
|
14223
|
-
super(), ie(this, t, $p, Kp, ne, { tag:
|
|
14223
|
+
super(), ie(this, t, $p, Kp, ne, { tag: 0 }, Zp);
|
|
14224
14224
|
}
|
|
14225
14225
|
}
|
|
14226
14226
|
function tg(i) {
|
|
@@ -14278,7 +14278,7 @@ function ig(i, t, e) {
|
|
|
14278
14278
|
s == null || s();
|
|
14279
14279
|
});
|
|
14280
14280
|
function r(a) {
|
|
14281
|
-
|
|
14281
|
+
ze[a ? "unshift" : "push"](() => {
|
|
14282
14282
|
o = a, e(1, o);
|
|
14283
14283
|
});
|
|
14284
14284
|
}
|
|
@@ -14299,7 +14299,7 @@ function sg(i) {
|
|
|
14299
14299
|
function rg(i) {
|
|
14300
14300
|
let t, e;
|
|
14301
14301
|
return t = new Vp({
|
|
14302
|
-
props: { tag:
|
|
14302
|
+
props: { tag: Le(i[1]) }
|
|
14303
14303
|
}), {
|
|
14304
14304
|
c() {
|
|
14305
14305
|
ee(t.$$.fragment);
|
|
@@ -14309,7 +14309,7 @@ function rg(i) {
|
|
|
14309
14309
|
},
|
|
14310
14310
|
p(n, o) {
|
|
14311
14311
|
const s = {};
|
|
14312
|
-
o & 2 && (s.tag =
|
|
14312
|
+
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14313
14313
|
},
|
|
14314
14314
|
i(n) {
|
|
14315
14315
|
e || (D(t.$$.fragment, n), e = !0);
|
|
@@ -14325,7 +14325,7 @@ function rg(i) {
|
|
|
14325
14325
|
function ag(i) {
|
|
14326
14326
|
let t, e;
|
|
14327
14327
|
return t = new eg({
|
|
14328
|
-
props: { tag:
|
|
14328
|
+
props: { tag: Le(i[1]) }
|
|
14329
14329
|
}), {
|
|
14330
14330
|
c() {
|
|
14331
14331
|
ee(t.$$.fragment);
|
|
@@ -14335,7 +14335,7 @@ function ag(i) {
|
|
|
14335
14335
|
},
|
|
14336
14336
|
p(n, o) {
|
|
14337
14337
|
const s = {};
|
|
14338
|
-
o & 2 && (s.tag =
|
|
14338
|
+
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14339
14339
|
},
|
|
14340
14340
|
i(n) {
|
|
14341
14341
|
e || (D(t.$$.fragment, n), e = !0);
|
|
@@ -14351,7 +14351,7 @@ function ag(i) {
|
|
|
14351
14351
|
function lg(i) {
|
|
14352
14352
|
let t, e;
|
|
14353
14353
|
return t = new Qp({
|
|
14354
|
-
props: { tag:
|
|
14354
|
+
props: { tag: Le(i[1]) }
|
|
14355
14355
|
}), {
|
|
14356
14356
|
c() {
|
|
14357
14357
|
ee(t.$$.fragment);
|
|
@@ -14361,7 +14361,7 @@ function lg(i) {
|
|
|
14361
14361
|
},
|
|
14362
14362
|
p(n, o) {
|
|
14363
14363
|
const s = {};
|
|
14364
|
-
o & 2 && (s.tag =
|
|
14364
|
+
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14365
14365
|
},
|
|
14366
14366
|
i(n) {
|
|
14367
14367
|
e || (D(t.$$.fragment, n), e = !0);
|
|
@@ -14377,7 +14377,7 @@ function lg(i) {
|
|
|
14377
14377
|
function cg(i) {
|
|
14378
14378
|
let t, e;
|
|
14379
14379
|
return t = new Xp({
|
|
14380
|
-
props: { tag:
|
|
14380
|
+
props: { tag: Le(i[1]) }
|
|
14381
14381
|
}), {
|
|
14382
14382
|
c() {
|
|
14383
14383
|
ee(t.$$.fragment);
|
|
@@ -14387,7 +14387,7 @@ function cg(i) {
|
|
|
14387
14387
|
},
|
|
14388
14388
|
p(n, o) {
|
|
14389
14389
|
const s = {};
|
|
14390
|
-
o & 2 && (s.tag =
|
|
14390
|
+
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14391
14391
|
},
|
|
14392
14392
|
i(n) {
|
|
14393
14393
|
e || (D(t.$$.fragment, n), e = !0);
|
|
@@ -14403,7 +14403,7 @@ function cg(i) {
|
|
|
14403
14403
|
function dg(i) {
|
|
14404
14404
|
let t, e;
|
|
14405
14405
|
return t = new Tp({
|
|
14406
|
-
props: { tag:
|
|
14406
|
+
props: { tag: Le(i[1]) }
|
|
14407
14407
|
}), {
|
|
14408
14408
|
c() {
|
|
14409
14409
|
ee(t.$$.fragment);
|
|
@@ -14413,7 +14413,7 @@ function dg(i) {
|
|
|
14413
14413
|
},
|
|
14414
14414
|
p(n, o) {
|
|
14415
14415
|
const s = {};
|
|
14416
|
-
o & 2 && (s.tag =
|
|
14416
|
+
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14417
14417
|
},
|
|
14418
14418
|
i(n) {
|
|
14419
14419
|
e || (D(t.$$.fragment, n), e = !0);
|
|
@@ -14429,7 +14429,7 @@ function dg(i) {
|
|
|
14429
14429
|
function ug(i) {
|
|
14430
14430
|
let t, e;
|
|
14431
14431
|
return t = new Jm({
|
|
14432
|
-
props: { tag:
|
|
14432
|
+
props: { tag: Le(i[1]) }
|
|
14433
14433
|
}), {
|
|
14434
14434
|
c() {
|
|
14435
14435
|
ee(t.$$.fragment);
|
|
@@ -14439,7 +14439,7 @@ function ug(i) {
|
|
|
14439
14439
|
},
|
|
14440
14440
|
p(n, o) {
|
|
14441
14441
|
const s = {};
|
|
14442
|
-
o & 2 && (s.tag =
|
|
14442
|
+
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14443
14443
|
},
|
|
14444
14444
|
i(n) {
|
|
14445
14445
|
e || (D(t.$$.fragment, n), e = !0);
|
|
@@ -14455,7 +14455,7 @@ function ug(i) {
|
|
|
14455
14455
|
function hg(i) {
|
|
14456
14456
|
let t, e;
|
|
14457
14457
|
return t = new og({
|
|
14458
|
-
props: { tag:
|
|
14458
|
+
props: { tag: Le(i[1]) }
|
|
14459
14459
|
}), {
|
|
14460
14460
|
c() {
|
|
14461
14461
|
ee(t.$$.fragment);
|
|
@@ -14465,7 +14465,7 @@ function hg(i) {
|
|
|
14465
14465
|
},
|
|
14466
14466
|
p(n, o) {
|
|
14467
14467
|
const s = {};
|
|
14468
|
-
o & 2 && (s.tag =
|
|
14468
|
+
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14469
14469
|
},
|
|
14470
14470
|
i(n) {
|
|
14471
14471
|
e || (D(t.$$.fragment, n), e = !0);
|
|
@@ -14489,48 +14489,48 @@ function fg(i) {
|
|
|
14489
14489
|
ag,
|
|
14490
14490
|
rg
|
|
14491
14491
|
], u = [];
|
|
14492
|
-
function h(
|
|
14493
|
-
return
|
|
14492
|
+
function h(m, p) {
|
|
14493
|
+
return m[1].element ? 0 : m[1].contentType === Xe.Text ? 1 : m[1].contentType === Xe.ImageText ? 2 : m[1].contentType === Xe.Audio ? 3 : m[1].contentType === Xe.Marketing ? 4 : m[1].contentType === Xe.Link ? 5 : m[1].contentType === Xe.MediaPlane ? 6 : -1;
|
|
14494
14494
|
}
|
|
14495
14495
|
return ~(o = h(i)) && (s = u[o] = d[o](i)), {
|
|
14496
14496
|
c() {
|
|
14497
|
-
var
|
|
14498
|
-
t = j("div"), e = j("div"), n = j("div"), s && s.c(), b(n, "class", "content svelte-95x526"), q(n, "unfolded", (
|
|
14497
|
+
var m, p, g;
|
|
14498
|
+
t = j("div"), e = j("div"), n = j("div"), s && s.c(), b(n, "class", "content svelte-95x526"), q(n, "unfolded", (m = i[1].state) == null ? void 0 : m.unfolded), b(e, "class", "content__wrapper svelte-95x526"), b(t, "class", "content__container svelte-95x526"), b(t, "data-id", r = i[1].id), q(t, "disable", i[1].enabled === !1 || ((p = i[1].temporaryState) == null ? void 0 : p.visible) === !1), q(t, "hide", !i[3].visible || !i[3].enabled || !i[4].visible || !((g = i[1].state) != null && g.visible)), q(t, "withAnimation", i[0]), q(t, "unClickable", i[1].clickable === !1), R(t, "width", i[1].pointType === "PointTag" ? 0 : "100%"), R(t, "height", i[1].pointType === "PointTag" ? 0 : "100%");
|
|
14499
14499
|
},
|
|
14500
|
-
m(
|
|
14501
|
-
B(
|
|
14500
|
+
m(m, p) {
|
|
14501
|
+
B(m, t, p), Q(t, e), Q(e, n), ~o && u[o].m(n, null), a = !0, l || (c = Ee(t, "click", $i(i[11])), l = !0);
|
|
14502
14502
|
},
|
|
14503
|
-
p(
|
|
14504
|
-
var
|
|
14503
|
+
p(m, [p]) {
|
|
14504
|
+
var v, A, w;
|
|
14505
14505
|
let g = o;
|
|
14506
|
-
o = h(
|
|
14506
|
+
o = h(m), o === g ? ~o && u[o].p(m, p) : (s && (le(), M(u[g], 1, 1, () => {
|
|
14507
14507
|
u[g] = null;
|
|
14508
|
-
}), ce()), ~o ? (s = u[o], s ? s.p(
|
|
14508
|
+
}), ce()), ~o ? (s = u[o], s ? s.p(m, p) : (s = u[o] = d[o](m), s.c()), D(s, 1), s.m(n, null)) : s = null), (!a || p & 2) && q(n, "unfolded", (v = m[1].state) == null ? void 0 : v.unfolded), (!a || p & 2 && r !== (r = m[1].id)) && b(t, "data-id", r), (!a || p & 2) && q(t, "disable", m[1].enabled === !1 || ((A = m[1].temporaryState) == null ? void 0 : A.visible) === !1), (!a || p & 26) && q(t, "hide", !m[3].visible || !m[3].enabled || !m[4].visible || !((w = m[1].state) != null && w.visible)), (!a || p & 1) && q(t, "withAnimation", m[0]), (!a || p & 2) && q(t, "unClickable", m[1].clickable === !1), p & 2 && R(t, "width", m[1].pointType === "PointTag" ? 0 : "100%"), p & 2 && R(t, "height", m[1].pointType === "PointTag" ? 0 : "100%");
|
|
14509
14509
|
},
|
|
14510
|
-
i(
|
|
14510
|
+
i(m) {
|
|
14511
14511
|
a || (D(s), a = !0);
|
|
14512
14512
|
},
|
|
14513
|
-
o(
|
|
14513
|
+
o(m) {
|
|
14514
14514
|
M(s), a = !1;
|
|
14515
14515
|
},
|
|
14516
|
-
d(
|
|
14517
|
-
|
|
14516
|
+
d(m) {
|
|
14517
|
+
m && T(t), ~o && u[o].d(), l = !1, c();
|
|
14518
14518
|
}
|
|
14519
14519
|
};
|
|
14520
14520
|
}
|
|
14521
14521
|
function mg(i, t, e) {
|
|
14522
14522
|
let n, o, s, r, { withAnimation: a = !1 } = t, { tag: l } = t, { hooks: c } = t, { state: d } = t, { mediaStore: u } = t, { temporaryState: h } = t;
|
|
14523
14523
|
Qi("hooks", c), Qi("mediaStore", u);
|
|
14524
|
-
let
|
|
14525
|
-
function g(
|
|
14526
|
-
|
|
14524
|
+
let m, p;
|
|
14525
|
+
function g(A) {
|
|
14526
|
+
A ? c.emit("exposure", { id: r, type: "start" }) : c.emit("exposure", { id: r, type: "end" });
|
|
14527
14527
|
}
|
|
14528
|
-
const
|
|
14529
|
-
return i.$$set = (
|
|
14530
|
-
"withAnimation" in
|
|
14528
|
+
const v = (A) => c.emit("click", { event: A, target: "TagContent", tag: l });
|
|
14529
|
+
return i.$$set = (A) => {
|
|
14530
|
+
"withAnimation" in A && e(0, a = A.withAnimation), "tag" in A && e(1, l = A.tag), "hooks" in A && e(2, c = A.hooks), "state" in A && e(3, d = A.state), "mediaStore" in A && e(5, u = A.mediaStore), "temporaryState" in A && e(4, h = A.temporaryState);
|
|
14531
14531
|
}, i.$$.update = () => {
|
|
14532
|
-
var
|
|
14533
|
-
i.$$.dirty & 2 && e(9, n = (
|
|
14532
|
+
var A, w;
|
|
14533
|
+
i.$$.dirty & 2 && e(9, n = (A = l.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(8, o = (w = l.state) == null ? void 0 : w.visible), i.$$.dirty & 280 && e(10, s = d.visible && h.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== p && (e(7, p = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== m && (e(6, m = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
|
|
14534
14534
|
}, [
|
|
14535
14535
|
a,
|
|
14536
14536
|
l,
|
|
@@ -14538,12 +14538,12 @@ function mg(i, t, e) {
|
|
|
14538
14538
|
d,
|
|
14539
14539
|
h,
|
|
14540
14540
|
u,
|
|
14541
|
-
p,
|
|
14542
14541
|
m,
|
|
14542
|
+
p,
|
|
14543
14543
|
o,
|
|
14544
14544
|
n,
|
|
14545
14545
|
s,
|
|
14546
|
-
|
|
14546
|
+
v
|
|
14547
14547
|
];
|
|
14548
14548
|
}
|
|
14549
14549
|
class Ka extends oe {
|
|
@@ -14688,8 +14688,8 @@ function jr(i) {
|
|
|
14688
14688
|
let t, e, n, o, s, r;
|
|
14689
14689
|
const a = [Ig, Pg], l = [];
|
|
14690
14690
|
function c(d, u) {
|
|
14691
|
-
var h,
|
|
14692
|
-
return ((
|
|
14691
|
+
var h, m, p, g;
|
|
14692
|
+
return ((m = (h = d[0].style) == null ? void 0 : h.point) == null ? void 0 : m.style) === "CustomIcon" && ((g = (p = d[0].style) == null ? void 0 : p.point) == null ? void 0 : g.iconUrl) ? 0 : 1;
|
|
14693
14693
|
}
|
|
14694
14694
|
return n = c(i), o = l[n] = a[n](i), {
|
|
14695
14695
|
c() {
|
|
@@ -14824,7 +14824,7 @@ function Qr(i) {
|
|
|
14824
14824
|
props: {
|
|
14825
14825
|
mediaStore: i[4],
|
|
14826
14826
|
withAnimation: i[0],
|
|
14827
|
-
tag:
|
|
14827
|
+
tag: Le(i[1]),
|
|
14828
14828
|
hooks: i[2],
|
|
14829
14829
|
state: i[3],
|
|
14830
14830
|
temporaryState: i[5]
|
|
@@ -14838,7 +14838,7 @@ function Qr(i) {
|
|
|
14838
14838
|
},
|
|
14839
14839
|
p(n, o) {
|
|
14840
14840
|
const s = {};
|
|
14841
|
-
o & 16 && (s.mediaStore = n[4]), o & 1 && (s.withAnimation = n[0]), o & 2 && (s.tag =
|
|
14841
|
+
o & 16 && (s.mediaStore = n[4]), o & 1 && (s.withAnimation = n[0]), o & 2 && (s.tag = Le(n[1])), o & 4 && (s.hooks = n[2]), o & 8 && (s.state = n[3]), o & 32 && (s.temporaryState = n[5]), t.$set(s);
|
|
14842
14842
|
},
|
|
14843
14843
|
i(n) {
|
|
14844
14844
|
e || (D(t.$$.fragment, n), e = !0);
|
|
@@ -14880,18 +14880,18 @@ function Sg(i) {
|
|
|
14880
14880
|
let t, e, n, o, s, r = i[1].dimensionType === _e.Two && Qr(i), a = i[1].pointType === We.PointTag && ((c = (l = i[1].style) == null ? void 0 : l.point) == null ? void 0 : c.style) !== "noPoint" && Rr(i);
|
|
14881
14881
|
return {
|
|
14882
14882
|
c() {
|
|
14883
|
-
t = j("div"), r && r.c(), e = V(), a && a.c(), b(t, "class", n =
|
|
14883
|
+
t = j("div"), r && r.c(), e = V(), a && a.c(), b(t, "class", "wrapper svelte-1vzhbu2"), b(t, "data-content-type", n = i[1].contentType), b(t, "data-id", o = i[1].id), q(t, "hide", i[10]), q(t, "unfolded", i[6]), R(t, "left", i[9]), R(t, "top", i[8]), R(t, "z-index", i[7]);
|
|
14884
14884
|
},
|
|
14885
14885
|
m(d, u) {
|
|
14886
14886
|
B(d, t, u), r && r.m(t, null), Q(t, e), a && a.m(t, null), s = !0;
|
|
14887
14887
|
},
|
|
14888
14888
|
p(d, [u]) {
|
|
14889
|
-
var h,
|
|
14889
|
+
var h, m;
|
|
14890
14890
|
d[1].dimensionType === _e.Two ? r ? (r.p(d, u), u & 2 && D(r, 1)) : (r = Qr(d), r.c(), D(r, 1), r.m(t, e)) : r && (le(), M(r, 1, 1, () => {
|
|
14891
14891
|
r = null;
|
|
14892
|
-
}), ce()), d[1].pointType === We.PointTag && ((
|
|
14892
|
+
}), ce()), d[1].pointType === We.PointTag && ((m = (h = d[1].style) == null ? void 0 : h.point) == null ? void 0 : m.style) !== "noPoint" ? a ? (a.p(d, u), u & 2 && D(a, 1)) : (a = Rr(d), a.c(), D(a, 1), a.m(t, null)) : a && (le(), M(a, 1, 1, () => {
|
|
14893
14893
|
a = null;
|
|
14894
|
-
}), ce()), (!s || u & 2 && n !== (n =
|
|
14894
|
+
}), ce()), (!s || u & 2 && n !== (n = d[1].contentType)) && b(t, "data-content-type", n), (!s || u & 2 && o !== (o = d[1].id)) && b(t, "data-id", o), (!s || u & 1024) && q(t, "hide", d[10]), (!s || u & 64) && q(t, "unfolded", d[6]), u & 512 && R(t, "left", d[9]), u & 256 && R(t, "top", d[8]), u & 128 && R(t, "z-index", d[7]);
|
|
14895
14895
|
},
|
|
14896
14896
|
i(d) {
|
|
14897
14897
|
s || (D(r), D(a), s = !0);
|
|
@@ -14905,30 +14905,30 @@ function Sg(i) {
|
|
|
14905
14905
|
};
|
|
14906
14906
|
}
|
|
14907
14907
|
function zg(i, t, e) {
|
|
14908
|
-
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: u } = t, { state: h } = t, { mediaStore:
|
|
14909
|
-
function
|
|
14910
|
-
g !== void 0 && clearTimeout(g),
|
|
14908
|
+
let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: u } = t, { state: h } = t, { mediaStore: m } = t, { temporaryState: p } = t, g, v = !1;
|
|
14909
|
+
function A(y) {
|
|
14910
|
+
g !== void 0 && clearTimeout(g), v = !0, g = setTimeout(
|
|
14911
14911
|
() => {
|
|
14912
|
-
|
|
14912
|
+
v = !1;
|
|
14913
14913
|
},
|
|
14914
14914
|
800
|
|
14915
14915
|
);
|
|
14916
14916
|
}
|
|
14917
14917
|
const w = (y) => {
|
|
14918
|
-
|
|
14918
|
+
v || u.emit("click", { event: y, target: "TagPoint", tag: d });
|
|
14919
14919
|
};
|
|
14920
14920
|
return i.$$set = (y) => {
|
|
14921
|
-
"withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, u = y.hooks), "state" in y && e(3, h = y.state), "mediaStore" in y && e(4,
|
|
14921
|
+
"withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, u = y.hooks), "state" in y && e(3, h = y.state), "mediaStore" in y && e(4, m = y.mediaStore), "temporaryState" in y && e(5, p = y.temporaryState);
|
|
14922
14922
|
}, i.$$.update = () => {
|
|
14923
14923
|
var y, x, L, C;
|
|
14924
|
-
i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (x = d.state) == null ? void 0 : x.unfolded), i.$$.dirty & 2 && e(9, r = ((L = d.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((C = d.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 &&
|
|
14924
|
+
i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (x = d.state) == null ? void 0 : x.unfolded), i.$$.dirty & 2 && e(9, r = ((L = d.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((C = d.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 && A();
|
|
14925
14925
|
}, [
|
|
14926
14926
|
c,
|
|
14927
14927
|
d,
|
|
14928
14928
|
u,
|
|
14929
14929
|
h,
|
|
14930
|
-
p,
|
|
14931
14930
|
m,
|
|
14931
|
+
p,
|
|
14932
14932
|
s,
|
|
14933
14933
|
l,
|
|
14934
14934
|
a,
|
|
@@ -15033,9 +15033,9 @@ function Fr(i, t) {
|
|
|
15033
15033
|
B(l, e, c), K(n, e, null), Q(e, o), s = !0;
|
|
15034
15034
|
},
|
|
15035
15035
|
p(l, c) {
|
|
15036
|
-
var u, h,
|
|
15036
|
+
var u, h, m;
|
|
15037
15037
|
t = l;
|
|
15038
|
-
const d = c & 63 ?
|
|
15038
|
+
const d = c & 63 ? Me(r, [
|
|
15039
15039
|
{
|
|
15040
15040
|
tag: t[6],
|
|
15041
15041
|
hooks: t[2],
|
|
@@ -15045,7 +15045,7 @@ function Fr(i, t) {
|
|
|
15045
15045
|
withAnimation: t[0]
|
|
15046
15046
|
}
|
|
15047
15047
|
]) : {};
|
|
15048
|
-
n.$set(d), (!s || c & 2) && q(e, "hide", !((u = t[6].pointTagStyle) != null && u.leftPercent) || !((h = t[6].pointTagStyle) != null && h.topPercent) || t[6].enabled === !1 || !t[6].state || ((
|
|
15048
|
+
n.$set(d), (!s || c & 2) && q(e, "hide", !((u = t[6].pointTagStyle) != null && u.leftPercent) || !((h = t[6].pointTagStyle) != null && h.topPercent) || t[6].enabled === !1 || !t[6].state || ((m = t[6].temporaryState) == null ? void 0 : m.visible) === !1);
|
|
15049
15049
|
},
|
|
15050
15050
|
i(l) {
|
|
15051
15051
|
s || (D(n.$$.fragment, l), s = !0);
|
|
@@ -15164,8 +15164,8 @@ class Hg extends di {
|
|
|
15164
15164
|
if (l || (l = /* @__PURE__ */ new Map(), this.tagCacheByPanoIndex[a] = l), n === void 0)
|
|
15165
15165
|
return l;
|
|
15166
15166
|
if (o === void 0) {
|
|
15167
|
-
const
|
|
15168
|
-
return
|
|
15167
|
+
const m = l.get(n);
|
|
15168
|
+
return m || (l.set(n, {}), l.get(n));
|
|
15169
15169
|
}
|
|
15170
15170
|
return (h = l.get(n)) == null ? void 0 : h[o];
|
|
15171
15171
|
}
|
|
@@ -15204,7 +15204,7 @@ class Og extends Hg {
|
|
|
15204
15204
|
return o.visible;
|
|
15205
15205
|
{
|
|
15206
15206
|
const a = (() => {
|
|
15207
|
-
var d, u, h,
|
|
15207
|
+
var d, u, h, m, p;
|
|
15208
15208
|
const l = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, c = this.getDistance(e);
|
|
15209
15209
|
if (typeof l == "function")
|
|
15210
15210
|
return l(this.five, { tag: e, distance: c });
|
|
@@ -15220,10 +15220,10 @@ class Og extends Hg {
|
|
|
15220
15220
|
const g = (h = this.five.work.observers[s]) == null ? void 0 : h.position;
|
|
15221
15221
|
if (g === void 0)
|
|
15222
15222
|
throw new Error(`getVisible(): observerPosition is ${g}`);
|
|
15223
|
-
const
|
|
15224
|
-
this.raycaster.set(g,
|
|
15225
|
-
const [
|
|
15226
|
-
if (
|
|
15223
|
+
const v = jn(e.position).sub(g).normalize();
|
|
15224
|
+
this.raycaster.set(g, v);
|
|
15225
|
+
const [A] = this.five.model.intersectRaycaster(this.raycaster), w = (p = (m = l.intersectRaycaster) == null ? void 0 : m.distanceAccuracy) != null ? p : 0.01;
|
|
15226
|
+
if (A && A.distance + w < c)
|
|
15227
15227
|
return !1;
|
|
15228
15228
|
}
|
|
15229
15229
|
return !(l.angleRange && e.dimensionType === _e.Three && Qn(this.getAngle(e), l.angleRange) === !1);
|
|
@@ -15285,16 +15285,16 @@ class Og extends Hg {
|
|
|
15285
15285
|
}
|
|
15286
15286
|
if (r.autoUnfold.strategy === "MinimumDistance") {
|
|
15287
15287
|
const d = this.filterPointTag().filter((h) => this.getVisibleByPanoIndex(h)).filter((h) => {
|
|
15288
|
-
const
|
|
15289
|
-
if (!
|
|
15288
|
+
const m = this.getTagProject(h);
|
|
15289
|
+
if (!m)
|
|
15290
15290
|
return !1;
|
|
15291
|
-
const { x:
|
|
15292
|
-
return !(Math.abs(
|
|
15291
|
+
const { x: p, y: g, z: v } = m;
|
|
15292
|
+
return !(Math.abs(v) > 1 || Math.abs(p) > 1 || Math.abs(g) > 1);
|
|
15293
15293
|
}).filter((h) => {
|
|
15294
|
-
var
|
|
15295
|
-
const
|
|
15296
|
-
return typeof
|
|
15297
|
-
}).map((h) => ({ id: h.id, distance: this.getDistance(h) })).filter((h) => h.distance !== void 0).sort((h,
|
|
15294
|
+
var p;
|
|
15295
|
+
const m = this.getTagConfig(h).unfoldedConfig;
|
|
15296
|
+
return typeof m == "object" && ((p = m.autoUnfold) == null ? void 0 : p.strategy) === "MinimumDistance";
|
|
15297
|
+
}).map((h) => ({ id: h.id, distance: this.getDistance(h) })).filter((h) => h.distance !== void 0).sort((h, m) => h.distance - m.distance).findIndex((h) => h.id === e.id);
|
|
15298
15298
|
if (d === -1 || d <= ((a = r.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
|
|
15299
15299
|
return !1;
|
|
15300
15300
|
}
|
|
@@ -16076,7 +16076,7 @@ function $g() {
|
|
|
16076
16076
|
});
|
|
16077
16077
|
i.appendChild(t), t.appendChild(e);
|
|
16078
16078
|
const n = "-4px", o = { direction: "nesw", element: ht({ cursor: "nesw-resize", left: n, bottom: n }) }, s = { direction: "ns", element: ht({ cursor: "ns-resize", bottom: n }) }, r = { direction: "nwse", element: ht({ cursor: "nwse-resize", right: n, bottom: n }) }, a = { direction: "ew", element: ht({ cursor: "ew-resize", right: n }) }, l = { direction: "nesw", element: ht({ cursor: "nesw-resize", right: n, top: n }) }, c = { direction: "ns", element: ht({ cursor: "ns-resize", top: n }) }, d = { direction: "nwse", element: ht({ cursor: "nwse-resize", left: n, top: n }) }, u = { direction: "ew", element: ht({ cursor: "ew-resize", left: n }) };
|
|
16079
|
-
return new Array(s, a, c, u, o, r, l, d).forEach((
|
|
16079
|
+
return new Array(s, a, c, u, o, r, l, d).forEach((m) => t.appendChild(m.element)), { container: i, squares: [
|
|
16080
16080
|
o,
|
|
16081
16081
|
s,
|
|
16082
16082
|
r,
|
|
@@ -16821,10 +16821,10 @@ class l0 extends po {
|
|
|
16821
16821
|
case "z":
|
|
16822
16822
|
return u;
|
|
16823
16823
|
}
|
|
16824
|
-
})(),
|
|
16825
|
-
|
|
16826
|
-
const g =
|
|
16827
|
-
this.setAngleHelperStart(o,
|
|
16824
|
+
})(), m = new E.Plane().setFromNormalAndCoplanarPoint(h, s), p = new E.Vector3();
|
|
16825
|
+
m.projectPoint(s.clone(), p);
|
|
16826
|
+
const g = p.clone().sub(r), v = g.clone(), A = g.angleTo(a.baseAxes);
|
|
16827
|
+
this.setAngleHelperStart(o, A), this.setAngleHelperLength(o, 0), this.rotations.push({ vector: g.clone(), direction: !0 }), this.startInfo = { direction: o, startVector: g, staticStartVector: v, plane: m, angleHelper: a }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("rotateStart"), this.isDragging = !0, console.log(`%c RotateController dragStart ${o}`, "color: #e5af2e");
|
|
16828
16828
|
}
|
|
16829
16829
|
dragging(e) {
|
|
16830
16830
|
var o;
|
|
@@ -16844,24 +16844,24 @@ class l0 extends po {
|
|
|
16844
16844
|
const h = u.clone().sub(d);
|
|
16845
16845
|
if (n.angleTo(h) === 0 || (this.lastRotation === void 0 && (this.lastRotation = { angle: 0 }), this.rotations.length === 0))
|
|
16846
16846
|
return;
|
|
16847
|
-
const
|
|
16847
|
+
const m = (() => {
|
|
16848
16848
|
if (this.rotations.length === 1)
|
|
16849
16849
|
return h.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
|
|
16850
16850
|
{
|
|
16851
|
-
const g = this.rotations[this.rotations.length - 1],
|
|
16852
|
-
if (y === 0 || w === 0 ||
|
|
16851
|
+
const g = this.rotations[this.rotations.length - 1], v = this.rotations[this.rotations.length - 2], A = h.angleTo(v.vector), w = h.angleTo(g.vector), y = g.vector.angleTo(v.vector);
|
|
16852
|
+
if (y === 0 || w === 0 || A === 0)
|
|
16853
16853
|
return;
|
|
16854
|
-
if (
|
|
16854
|
+
if (A > w && A > y)
|
|
16855
16855
|
return g.direction;
|
|
16856
|
-
if (
|
|
16856
|
+
if (A < y && w < y || A < w && w > y)
|
|
16857
16857
|
return !g.direction;
|
|
16858
16858
|
}
|
|
16859
16859
|
})();
|
|
16860
|
-
if (
|
|
16860
|
+
if (m === void 0)
|
|
16861
16861
|
return console.warn("rotationDirection is undefined");
|
|
16862
|
-
this.rotations.push({ vector: h, direction:
|
|
16863
|
-
const
|
|
16864
|
-
l.applyQuaternion(
|
|
16862
|
+
this.rotations.push({ vector: h, direction: m }), this.rotations = this.rotations.slice(-2), this.lastRotation.angle = this.lastRotation.angle + h.angleTo(n) * (m ? 1 : -1), this.setAngleHelperLength(a, this.lastRotation.angle), this.setTipsAngle(this.lastRotation.angle / Math.PI * 180);
|
|
16863
|
+
const p = new E.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize());
|
|
16864
|
+
l.applyQuaternion(p), this.helperObject3D.applyHelperQuaternion(p), this.helperObject3DQuaternion.premultiply(p), this.hooks.emit("rotateUpdate", { quaternion: p, origin: d }), this.startInfo.startVector = h;
|
|
16865
16865
|
}
|
|
16866
16866
|
dragEnd() {
|
|
16867
16867
|
!this.isDragging || (console.log("%c RotateController dragEnd", "color: #e94e4e"), this.startInfo = void 0, this.isDragging = !1, this.lastRotation = void 0, this.rotations = [], this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
|
|
@@ -16956,7 +16956,7 @@ class c0 extends po {
|
|
|
16956
16956
|
const a = e.ray.intersectPlane(s, new _());
|
|
16957
16957
|
if (!a || Vg(a, this.camera.position))
|
|
16958
16958
|
return;
|
|
16959
|
-
const l = new _().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, u = new _().subVectors(r[1], r[0]), h = new _().subVectors(r[3], r[0]),
|
|
16959
|
+
const l = new _().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, u = new _().subVectors(r[1], r[0]), h = new _().subVectors(r[3], r[0]), m = (N) => {
|
|
16960
16960
|
const Y = new _(0, 0, 0);
|
|
16961
16961
|
if (!this.startInfo)
|
|
16962
16962
|
return Y;
|
|
@@ -16973,13 +16973,13 @@ class c0 extends po {
|
|
|
16973
16973
|
}
|
|
16974
16974
|
const W = new _().subVectors(z, I), Z = W.length();
|
|
16975
16975
|
return Z > 0.3 ? (console.warn("offset.length() > 0.3, skipped", Z), Y) : W;
|
|
16976
|
-
},
|
|
16977
|
-
const N =
|
|
16976
|
+
}, p = m("ew"), g = m("ns"), v = () => {
|
|
16977
|
+
const N = p;
|
|
16978
16978
|
this.helperObject3D.cornerPositions.forEach((Y, P) => {
|
|
16979
16979
|
var I;
|
|
16980
16980
|
(I = this.startInfo) != null && I.dragPointInCenterLeft ? (P === 0 || P === 3) && Y.add(N) : (P === 1 || P === 2) && Y.add(N);
|
|
16981
16981
|
});
|
|
16982
|
-
},
|
|
16982
|
+
}, A = () => {
|
|
16983
16983
|
const N = g;
|
|
16984
16984
|
this.helperObject3D.cornerPositions.forEach((Y, P) => {
|
|
16985
16985
|
var I;
|
|
@@ -16988,14 +16988,14 @@ class c0 extends po {
|
|
|
16988
16988
|
};
|
|
16989
16989
|
switch (d) {
|
|
16990
16990
|
case "ew":
|
|
16991
|
-
|
|
16991
|
+
v();
|
|
16992
16992
|
break;
|
|
16993
16993
|
case "ns":
|
|
16994
|
-
|
|
16994
|
+
A();
|
|
16995
16995
|
break;
|
|
16996
16996
|
case "nesw":
|
|
16997
16997
|
case "nwse":
|
|
16998
|
-
|
|
16998
|
+
v(), A();
|
|
16999
16999
|
}
|
|
17000
17000
|
const w = new _().subVectors(r[1], r[0]).length() / u.length(), y = new _().subVectors(r[3], r[0]).length() / h.length(), x = new _(w, y, 1), L = new E.Matrix4().scale(x);
|
|
17001
17001
|
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(L) : n.scale.applyMatrix4(L), o.position.copy(a);
|
|
@@ -17089,17 +17089,17 @@ class m0 extends di {
|
|
|
17089
17089
|
if (l) {
|
|
17090
17090
|
let u;
|
|
17091
17091
|
s && r && (u = { container: s });
|
|
17092
|
-
const h = new Kg(e, u),
|
|
17093
|
-
o.addControllers({ rotateController:
|
|
17092
|
+
const h = new Kg(e, u), m = new Ti(this.five, l0, e, h);
|
|
17093
|
+
o.addControllers({ rotateController: m.helperController });
|
|
17094
17094
|
}
|
|
17095
17095
|
if (c && s) {
|
|
17096
17096
|
const u = new e0(e, s, r, this.five.scene), h = new Ti(this.five, d0, e, u);
|
|
17097
17097
|
o.addControllers({ scaleController: h.helperController });
|
|
17098
17098
|
}
|
|
17099
17099
|
e.isCSS3DObjectPlus && Kr(this.five).then(() => {
|
|
17100
|
-
var
|
|
17101
|
-
const u = e, h = (
|
|
17102
|
-
h && (this.css3DObjectParentMap.set(u, u.parent), u.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(h), (
|
|
17100
|
+
var m, p;
|
|
17101
|
+
const u = e, h = (m = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? m : $r(this.five);
|
|
17102
|
+
h && (this.css3DObjectParentMap.set(u, u.parent), u.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(h), (p = this.css3DRender.getBehindCSS3DObjectGroup()) == null || p.add(u), this.css3DRender.render(this.five.camera));
|
|
17103
17103
|
});
|
|
17104
17104
|
}
|
|
17105
17105
|
removeObject3DHelper(e) {
|
|
@@ -17249,10 +17249,10 @@ class tl {
|
|
|
17249
17249
|
render() {
|
|
17250
17250
|
if (!this.five.renderer || !this.containerDom)
|
|
17251
17251
|
return;
|
|
17252
|
-
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y,
|
|
17253
|
-
g0(
|
|
17254
|
-
const
|
|
17255
|
-
|
|
17252
|
+
const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, m = this.five.getPixels(u - l / 2, h - l / 2, l, c, d), p = Math.floor(n * a), g = Math.floor(o * a);
|
|
17253
|
+
g0(m, p, g);
|
|
17254
|
+
const v = new ImageData(p, g);
|
|
17255
|
+
v.data.set(m), e.putImageData(v, 0, 0);
|
|
17256
17256
|
}
|
|
17257
17257
|
initStyle() {
|
|
17258
17258
|
const t = this.canvas;
|