@realsee/dnalogel 2.3.7-0 → 2.3.7-2
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/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -0
- package/dist/index.cjs.js +19 -19
- package/dist/index.js +845 -840
- package/dist/index.umd.js +16 -16
- package/docs/assets/search.js +1 -1
- 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/PanoMeasurePluginLine.html +43 -26
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- 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/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/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 +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- 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/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/PanoMeasurePlugin/Controller/BaseController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +12 -12
- package/libs/PanoMeasurePlugin/Controller/index.js +11 -11
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +6 -6
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -0
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +55 -50
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var ul = Object.defineProperty, hl = Object.defineProperties;
|
|
|
2
2
|
var fl = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var vo = Object.getOwnPropertySymbols;
|
|
4
4
|
var ml = Object.prototype.hasOwnProperty, pl = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var pi = (i, t, e) => t in i ? ul(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e,
|
|
5
|
+
var pi = (i, t, e) => t in i ? ul(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, W = (i, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
ml.call(t, e) && pi(i, e, t[e]);
|
|
8
8
|
if (vo)
|
|
@@ -575,7 +575,7 @@ class N0 {
|
|
|
575
575
|
const W0 = (i, t) => {
|
|
576
576
|
var Y, P;
|
|
577
577
|
let e = (P = (Y = t == null ? void 0 : t.initialState) == null ? void 0 : Y.enabled) != null ? P : !0, n = !1, o = !0, s = null;
|
|
578
|
-
const a =
|
|
578
|
+
const a = W(W({}, {
|
|
579
579
|
lookAtCurrentCamera: !1,
|
|
580
580
|
lockedPanoIndex: null,
|
|
581
581
|
lockedLatitude: null,
|
|
@@ -598,21 +598,21 @@ const W0 = (i, t) => {
|
|
|
598
598
|
const p = () => {
|
|
599
599
|
if (n)
|
|
600
600
|
return;
|
|
601
|
-
h =
|
|
601
|
+
h = L(i.model, c.fov, c.aspect), u = i.model.bounding.getCenter(new E.Vector3()), l.remove(d), d = T(i.model), l.add(d), n = !0, S();
|
|
602
602
|
function I(O) {
|
|
603
|
-
const
|
|
604
|
-
return
|
|
603
|
+
const N = O.clone();
|
|
604
|
+
return N.uniforms.modelAlpha.value = 1, N.uniforms.map.value && (N.uniforms.map.value.needsUpdate = !0), N;
|
|
605
605
|
}
|
|
606
|
-
function
|
|
606
|
+
function T(O) {
|
|
607
607
|
if (O instanceof E.Mesh) {
|
|
608
|
-
const
|
|
609
|
-
return new E.Mesh(
|
|
608
|
+
const N = O.geometry, Z = Array.isArray(O.material) ? O.material.map(I) : I(O.material);
|
|
609
|
+
return new E.Mesh(N, Z);
|
|
610
610
|
} else if (O instanceof E.Group) {
|
|
611
|
-
const
|
|
612
|
-
return O.children.forEach((Z) =>
|
|
611
|
+
const N = new E.Group();
|
|
612
|
+
return O.children.forEach((Z) => N.add(T(Z))), N;
|
|
613
613
|
} else {
|
|
614
|
-
const
|
|
615
|
-
return O.children.forEach((Z) =>
|
|
614
|
+
const N = new E.Object3D();
|
|
615
|
+
return O.children.forEach((Z) => N.add(T(Z))), N;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
}, m = () => {
|
|
@@ -627,30 +627,30 @@ const W0 = (i, t) => {
|
|
|
627
627
|
}, A = () => {
|
|
628
628
|
e || (e = !0, l.add(d), !n && i.model.loaded && p(), S());
|
|
629
629
|
}, w = () => {
|
|
630
|
-
!e || (l.remove(d), o = !0,
|
|
631
|
-
}, y = (I,
|
|
630
|
+
!e || (l.remove(d), o = !0, k(), e = !1);
|
|
631
|
+
}, y = (I, T = {}) => {
|
|
632
632
|
const O = m();
|
|
633
633
|
if (!O)
|
|
634
634
|
return;
|
|
635
|
-
I.appendChild(O.domElement), x(
|
|
636
|
-
const
|
|
637
|
-
|
|
635
|
+
I.appendChild(O.domElement), x(T);
|
|
636
|
+
const N = window.getComputedStyle(I).position;
|
|
637
|
+
N !== "relative" && N !== "absolute" && N !== "fixed" && N !== "sticky" && (I.style.position = "relative");
|
|
638
638
|
}, x = (I = {}) => {
|
|
639
639
|
if (!s)
|
|
640
640
|
return;
|
|
641
641
|
const O = s.domElement.parentNode;
|
|
642
642
|
if (O != null && O.nodeName) {
|
|
643
|
-
const { width:
|
|
644
|
-
s.setSize(
|
|
643
|
+
const { width: N = O.offsetWidth, height: Z = O.offsetHeight } = I;
|
|
644
|
+
s.setSize(N, Z), c.aspect = N / Z, c.updateProjectionMatrix();
|
|
645
645
|
}
|
|
646
646
|
S();
|
|
647
647
|
};
|
|
648
|
-
function
|
|
649
|
-
const
|
|
650
|
-
Math.pow(
|
|
648
|
+
function L(I, T, O) {
|
|
649
|
+
const N = I.bounding, Z = Math.pow(
|
|
650
|
+
Math.pow(N.max.x - N.min.x + 1, 2) + Math.pow(N.max.y - N.min.y + 1, 2) + Math.pow(N.max.z - N.min.z + 1, 2),
|
|
651
651
|
1 / 2
|
|
652
652
|
);
|
|
653
|
-
let X = Z / 2 / Math.tan(Math.PI *
|
|
653
|
+
let X = Z / 2 / Math.tan(Math.PI * T / 360);
|
|
654
654
|
return O < 1 && (X = X / O), isNaN(X) ? Z : X;
|
|
655
655
|
}
|
|
656
656
|
function C(I) {
|
|
@@ -661,16 +661,16 @@ const W0 = (i, t) => {
|
|
|
661
661
|
return;
|
|
662
662
|
const I = i.getPose();
|
|
663
663
|
I.fov = c.fov, I.offset = u, I.distance = h, typeof a.lockedLatitude == "number" && (I.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (I.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (I.offset = C(a.lockedPanoIndex)), a.lookAtCurrentCamera && (I.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), c.setFromPose(I), o = !0;
|
|
664
|
-
},
|
|
664
|
+
}, k = () => {
|
|
665
665
|
!e || o !== !0 || !s || !s.domElement.parentNode || s.domElement.parentNode.offsetWidth === 0 || (s.render(l, c), o = !1);
|
|
666
666
|
}, F = () => {
|
|
667
667
|
s && s.dispose(), s = null;
|
|
668
668
|
}, H = (I) => {
|
|
669
669
|
Object.assign(a, I), S();
|
|
670
|
-
},
|
|
670
|
+
}, G = () => ({
|
|
671
671
|
enabled: e
|
|
672
672
|
});
|
|
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",
|
|
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: G };
|
|
674
674
|
};
|
|
675
675
|
function gt(...i) {
|
|
676
676
|
const t = [];
|
|
@@ -805,16 +805,16 @@ class Yl extends E.Mesh {
|
|
|
805
805
|
const Zr = 1, Ul = `CSS3DObjectPlus@${Zr}`, Jl = 216e-5, Vl = 3e-3;
|
|
806
806
|
class _r extends Yn {
|
|
807
807
|
constructor(e) {
|
|
808
|
-
var
|
|
809
|
-
const n = e.container, o = e.cornerPoints, s = (
|
|
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]), h = Un(c / s * r), u = Un(d / s * r), p = Vr(...o);
|
|
810
810
|
let m;
|
|
811
811
|
if (l === s)
|
|
812
812
|
n.style.width = `${h}px`, n.style.height = `${u}px`, m = n;
|
|
813
813
|
else {
|
|
814
|
-
const
|
|
815
|
-
|
|
814
|
+
const k = document.createElement("div");
|
|
815
|
+
k.style.width = `${h}px`, k.style.height = `${u}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 * h}px`, n.style.height = `${F * u}px`,
|
|
817
|
+
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * h}px`, n.style.height = `${F * u}px`, k.appendChild(n), m = k;
|
|
818
818
|
}
|
|
819
819
|
super(m);
|
|
820
820
|
f(this, "version", Zr);
|
|
@@ -852,19 +852,19 @@ class _r extends Yn {
|
|
|
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
853
|
this.width = c, this.height = d, this.domWidthPx = h, this.domHeightPx = u, this.centerPosition = p;
|
|
854
854
|
else {
|
|
855
|
-
const
|
|
856
|
-
this.width =
|
|
855
|
+
const k = s / l;
|
|
856
|
+
this.width = k * c, this.height = k * d, this.domWidthPx = k * h, this.domHeightPx = k * u, this.centerPosition = new _().subVectors(p, o[0]).multiplyScalar(k).add(o[0]);
|
|
857
857
|
}
|
|
858
858
|
n.classList.add(`${Ul}__container`);
|
|
859
859
|
const g = new _().subVectors(o[1], o[0]), v = new _().subVectors(o[3], o[0]), A = new _().crossVectors(g, v).normalize();
|
|
860
860
|
this.lookAt(A);
|
|
861
861
|
const w = this.up.clone().applyQuaternion(this.quaternion), y = v.clone(), x = new _().crossVectors(w, y).normalize();
|
|
862
862
|
this.rotateOnWorldAxis(x, w.angleTo(y)), this.position.copy(p), this.addEventListener("added", () => {
|
|
863
|
-
var
|
|
864
|
-
this.mode === "front" && ((
|
|
863
|
+
var k;
|
|
864
|
+
this.mode === "front" && ((k = this.opacityMesh) == null || k.removeFromParent()), this.addParentVisibleListener();
|
|
865
865
|
}), this.addEventListener("removed", () => {
|
|
866
|
-
var
|
|
867
|
-
(
|
|
866
|
+
var k;
|
|
867
|
+
(k = this.opacityMesh) == null || k.removeFromParent(), this.removeParentVisibleListener();
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
setVisible(e, n = { setSelfVisible: !0 }) {
|
|
@@ -1060,7 +1060,7 @@ class fn {
|
|
|
1060
1060
|
!o || (e ? o.add(n) : o.remove(n));
|
|
1061
1061
|
});
|
|
1062
1062
|
f(this, "createObject", (t, e) => {
|
|
1063
|
-
const n = new _r(
|
|
1063
|
+
const n = new _r(W({ cornerPoints: t }, e));
|
|
1064
1064
|
return n.element.classList.add(`${Ti}__container`), n.element.id = `${Ti}__container--${n.uuid}`, n;
|
|
1065
1065
|
});
|
|
1066
1066
|
t && this.setScene(t);
|
|
@@ -1089,7 +1089,7 @@ class fn {
|
|
|
1089
1089
|
setState(t, e = { userAction: !0 }) {
|
|
1090
1090
|
if (this.state.disposed)
|
|
1091
1091
|
return Gt();
|
|
1092
|
-
const n =
|
|
1092
|
+
const n = W({}, this.state);
|
|
1093
1093
|
this.state = Object.assign(this.state, t), n.visible !== this.state.visible && (t.visible ? this.handleShow() : this.handleHide()), n.enabled !== this.state.enabled && (t.enabled ? this.handleEnable() : this.handleDisable()), n.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: n, userAction: e.userAction });
|
|
1094
1094
|
}
|
|
1095
1095
|
dispose() {
|
|
@@ -1269,7 +1269,7 @@ class ic extends fn {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
const { autoRender: r } = o;
|
|
1271
1271
|
o.mode === "behind" && o.behindFiveContainer && (this.behindFiveContainer = o.behindFiveContainer);
|
|
1272
|
-
const a = this.create3DElement(this.five.camera, e, he(
|
|
1272
|
+
const a = this.create3DElement(this.five.camera, e, he(W({}, o), { autoRender: !1 }));
|
|
1273
1273
|
if (!a)
|
|
1274
1274
|
return;
|
|
1275
1275
|
const l = () => {
|
|
@@ -1282,7 +1282,7 @@ class ic extends fn {
|
|
|
1282
1282
|
l();
|
|
1283
1283
|
});
|
|
1284
1284
|
};
|
|
1285
|
-
return r && c(), he(
|
|
1285
|
+
return r && c(), he(W({}, a), { render: r ? void 0 : c });
|
|
1286
1286
|
});
|
|
1287
1287
|
this.five = e;
|
|
1288
1288
|
}
|
|
@@ -1724,20 +1724,20 @@ function Kn(i, t, e) {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
const Wn = /* @__PURE__ */ new Set();
|
|
1726
1726
|
let mt;
|
|
1727
|
-
function
|
|
1727
|
+
function ce() {
|
|
1728
1728
|
mt = {
|
|
1729
1729
|
r: 0,
|
|
1730
1730
|
c: [],
|
|
1731
1731
|
p: mt
|
|
1732
1732
|
};
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function de() {
|
|
1735
1735
|
mt.r || at(mt.c), mt = mt.p;
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function D(i, t) {
|
|
1738
1738
|
i && i.i && (Wn.delete(i), i.i(t));
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function M(i, t, e, n) {
|
|
1741
1741
|
if (i && i.o) {
|
|
1742
1742
|
if (Wn.has(i))
|
|
1743
1743
|
return;
|
|
@@ -1815,7 +1815,7 @@ function pa(i, t) {
|
|
|
1815
1815
|
i.d(1), t.delete(i.key);
|
|
1816
1816
|
}
|
|
1817
1817
|
function lt(i, t) {
|
|
1818
|
-
|
|
1818
|
+
M(i, 1, 1, () => {
|
|
1819
1819
|
t.delete(i.key);
|
|
1820
1820
|
});
|
|
1821
1821
|
}
|
|
@@ -1827,23 +1827,23 @@ function Je(i, t, e, n, o, s, r, a, l, c, d, h) {
|
|
|
1827
1827
|
const v = [], A = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
|
|
1828
1828
|
for (m = p; m--; ) {
|
|
1829
1829
|
const C = h(o, s, m), S = e(C);
|
|
1830
|
-
let
|
|
1831
|
-
|
|
1830
|
+
let k = r.get(S);
|
|
1831
|
+
k ? n && k.p(C, t) : (k = c(S, C), k.c()), A.set(S, v[m] = k), S in g && w.set(S, Math.abs(m - g[S]));
|
|
1832
1832
|
}
|
|
1833
1833
|
const y = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
|
|
1834
|
-
function
|
|
1835
|
-
|
|
1834
|
+
function L(C) {
|
|
1835
|
+
D(C, 1), C.m(a, d), r.set(C.key, C), d = C.first, p--;
|
|
1836
1836
|
}
|
|
1837
1837
|
for (; u && p; ) {
|
|
1838
|
-
const C = v[p - 1], S = i[u - 1],
|
|
1839
|
-
C === S ? (d = C.first, u--, p--) : A.has(F) ? !r.has(
|
|
1838
|
+
const C = v[p - 1], S = i[u - 1], k = C.key, F = S.key;
|
|
1839
|
+
C === S ? (d = C.first, u--, p--) : A.has(F) ? !r.has(k) || y.has(k) ? L(C) : x.has(F) ? u-- : w.get(k) > w.get(F) ? (x.add(k), L(C)) : (y.add(F), u--) : (l(S, r), u--);
|
|
1840
1840
|
}
|
|
1841
1841
|
for (; u--; ) {
|
|
1842
1842
|
const C = i[u];
|
|
1843
1843
|
A.has(C.key) || l(C, r);
|
|
1844
1844
|
}
|
|
1845
1845
|
for (; p; )
|
|
1846
|
-
|
|
1846
|
+
L(v[p - 1]);
|
|
1847
1847
|
return v;
|
|
1848
1848
|
}
|
|
1849
1849
|
function Te(i, t) {
|
|
@@ -1914,7 +1914,7 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
|
|
|
1914
1914
|
c.fragment && c.fragment.l(h), h.forEach(z);
|
|
1915
1915
|
} else
|
|
1916
1916
|
c.fragment && c.fragment.c();
|
|
1917
|
-
t.intro &&
|
|
1917
|
+
t.intro && D(i.$$.fragment), K(i, t.target, t.anchor, t.customElement), ha();
|
|
1918
1918
|
}
|
|
1919
1919
|
cn(l);
|
|
1920
1920
|
}
|
|
@@ -2006,10 +2006,10 @@ function So(i, t) {
|
|
|
2006
2006
|
r & 1 && (a.roomLabel = t[12]), r & 2 && (a.five = t[1]), n.$set(a);
|
|
2007
2007
|
},
|
|
2008
2008
|
i(s) {
|
|
2009
|
-
o || (
|
|
2009
|
+
o || (D(n.$$.fragment, s), o = !0);
|
|
2010
2010
|
},
|
|
2011
2011
|
o(s) {
|
|
2012
|
-
|
|
2012
|
+
M(n.$$.fragment, s), o = !1;
|
|
2013
2013
|
},
|
|
2014
2014
|
d(s) {
|
|
2015
2015
|
s && z(e), $(n, s);
|
|
@@ -2037,18 +2037,18 @@ function Pc(i) {
|
|
|
2037
2037
|
o = yt(t, i[6].bind(t)), s = !0;
|
|
2038
2038
|
},
|
|
2039
2039
|
p(l, [c]) {
|
|
2040
|
-
c & 3 && (r = l[0],
|
|
2040
|
+
c & 3 && (r = l[0], ce(), e = Je(e, c, a, 1, l, r, n, t, lt, So, null, Lo), de());
|
|
2041
2041
|
},
|
|
2042
2042
|
i(l) {
|
|
2043
2043
|
if (!s) {
|
|
2044
2044
|
for (let c = 0; c < r.length; c += 1)
|
|
2045
|
-
|
|
2045
|
+
D(e[c]);
|
|
2046
2046
|
s = !0;
|
|
2047
2047
|
}
|
|
2048
2048
|
},
|
|
2049
2049
|
o(l) {
|
|
2050
2050
|
for (let c = 0; c < e.length; c += 1)
|
|
2051
|
-
|
|
2051
|
+
M(e[c]);
|
|
2052
2052
|
s = !1;
|
|
2053
2053
|
},
|
|
2054
2054
|
d(l) {
|
|
@@ -2065,14 +2065,14 @@ function Ic(i, t, e) {
|
|
|
2065
2065
|
function c(v) {
|
|
2066
2066
|
if (!(l === null || v.floorIndex === l))
|
|
2067
2067
|
return !1;
|
|
2068
|
-
const w = new Qt(), y = o.camera.position.clone(), x = new _(v.position.x, v.position.y, v.position.z),
|
|
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
|
-
return !(C && C.distance + 1 <
|
|
2071
|
+
return !(C && C.distance + 1 < L);
|
|
2072
2072
|
}
|
|
2073
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),
|
|
2075
|
-
return `translate(${x}px, ${
|
|
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
|
+
return `translate(${x}px, ${L}px)`;
|
|
2076
2076
|
}
|
|
2077
2077
|
function h(v) {
|
|
2078
2078
|
const { rendererSize: A, shownFloor: w } = v, y = /* @__PURE__ */ new Map();
|
|
@@ -2080,12 +2080,12 @@ function Ic(i, t, e) {
|
|
|
2080
2080
|
const S = y.get(C.id);
|
|
2081
2081
|
if (S)
|
|
2082
2082
|
return S;
|
|
2083
|
-
const { x:
|
|
2084
|
-
return y.set(C.id,
|
|
2083
|
+
const { x: k, y: F, z: H } = C.position, G = new _(k, F, H).clone().distanceTo(o.camera.position);
|
|
2084
|
+
return y.set(C.id, G), G;
|
|
2085
2085
|
}
|
|
2086
2086
|
return s.map((C) => {
|
|
2087
|
-
const S = c(C),
|
|
2088
|
-
return he(
|
|
2087
|
+
const S = c(C), k = S ? d(C, A) : C.transform, F = x(C), G = s.filter((Y) => Y.visible && x(Y) < F).length * 10;
|
|
2088
|
+
return he(W({}, C), { visible: S, transform: k, zIndex: G });
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
2091
|
function u() {
|
|
@@ -2524,10 +2524,10 @@ function td(i) {
|
|
|
2524
2524
|
o & 2 && (s.url = n[1].url), t.$set(s);
|
|
2525
2525
|
},
|
|
2526
2526
|
i(n) {
|
|
2527
|
-
e || (
|
|
2527
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
2528
2528
|
},
|
|
2529
2529
|
o(n) {
|
|
2530
|
-
|
|
2530
|
+
M(t.$$.fragment, n), e = !1;
|
|
2531
2531
|
},
|
|
2532
2532
|
d(n) {
|
|
2533
2533
|
$(t, n);
|
|
@@ -2550,10 +2550,10 @@ function nd(i) {
|
|
|
2550
2550
|
o & 1 && (s.content = n[0]), t.$set(s);
|
|
2551
2551
|
},
|
|
2552
2552
|
i(n) {
|
|
2553
|
-
e || (
|
|
2553
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
2554
2554
|
},
|
|
2555
2555
|
o(n) {
|
|
2556
|
-
|
|
2556
|
+
M(t.$$.fragment, n), e = !1;
|
|
2557
2557
|
},
|
|
2558
2558
|
d(n) {
|
|
2559
2559
|
$(t, n);
|
|
@@ -2575,15 +2575,15 @@ function id(i) {
|
|
|
2575
2575
|
},
|
|
2576
2576
|
p(l, [c]) {
|
|
2577
2577
|
let d = e;
|
|
2578
|
-
e = a(l), e === d ? ~e && r[e].p(l, c) : (n && (
|
|
2578
|
+
e = a(l), e === d ? ~e && r[e].p(l, c) : (n && (ce(), M(r[d], 1, 1, () => {
|
|
2579
2579
|
r[d] = null;
|
|
2580
|
-
}),
|
|
2580
|
+
}), de()), ~e ? (n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), D(n, 1), n.m(t, null)) : n = null);
|
|
2581
2581
|
},
|
|
2582
2582
|
i(l) {
|
|
2583
|
-
o || (
|
|
2583
|
+
o || (D(n), o = !0);
|
|
2584
2584
|
},
|
|
2585
2585
|
o(l) {
|
|
2586
|
-
|
|
2586
|
+
M(n), o = !1;
|
|
2587
2587
|
},
|
|
2588
2588
|
d(l) {
|
|
2589
2589
|
l && z(t), ~e && r[e].d();
|
|
@@ -2678,44 +2678,44 @@ 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: h } = t, { adaptiveRoomLabelVisibleEnable: u } = t;
|
|
2681
|
-
function p(
|
|
2681
|
+
function p(k, F) {
|
|
2682
2682
|
if (F.width === 0 || F.height === 0)
|
|
2683
2683
|
return () => !1;
|
|
2684
|
-
const H =
|
|
2684
|
+
const H = k.path.map(({ x: Z, y: X }) => [Z, X]), G = k.roomLabel.position, { x: Y, y: P } = G, { width: I, height: T } = F, O = I / 2, N = T / 2;
|
|
2685
2685
|
return function(X) {
|
|
2686
|
-
const U = Y * X,
|
|
2686
|
+
const U = Y * X, le = P * X, ue = H.map(([we, ke]) => [we * X, ke * X]);
|
|
2687
2687
|
return [
|
|
2688
|
-
[U + O,
|
|
2689
|
-
[U - O,
|
|
2690
|
-
[U - O,
|
|
2691
|
-
[U + O,
|
|
2688
|
+
[U + O, le - N],
|
|
2689
|
+
[U - O, le - N],
|
|
2690
|
+
[U - O, le + N],
|
|
2691
|
+
[U + O, le + N]
|
|
2692
2692
|
].every((we) => cd(we, ue));
|
|
2693
2693
|
};
|
|
2694
2694
|
}
|
|
2695
2695
|
const m = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%", w = v.positionInImage.y * 100 + "%", y = (m < 500 || g < 500 ? 10 : 14) / 16 + "rem";
|
|
2696
|
-
let x = !1,
|
|
2696
|
+
let x = !1, L, C;
|
|
2697
2697
|
c.subscribe(function(F) {
|
|
2698
2698
|
e(13, x = !!F && F.id === l.id);
|
|
2699
2699
|
}), Ue(() => {
|
|
2700
|
-
const
|
|
2700
|
+
const k = L == null ? void 0 : L.getClientRects()[0];
|
|
2701
2701
|
e(14, C = {
|
|
2702
|
-
width:
|
|
2703
|
-
height:
|
|
2702
|
+
width: k.width,
|
|
2703
|
+
height: k.height
|
|
2704
2704
|
});
|
|
2705
2705
|
});
|
|
2706
|
-
function S(
|
|
2707
|
-
ze[
|
|
2708
|
-
|
|
2706
|
+
function S(k) {
|
|
2707
|
+
ze[k ? "unshift" : "push"](() => {
|
|
2708
|
+
L = k, e(2, L);
|
|
2709
2709
|
});
|
|
2710
2710
|
}
|
|
2711
|
-
return i.$$set = (
|
|
2712
|
-
"pxmm" in
|
|
2711
|
+
return i.$$set = (k) => {
|
|
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, h = k.getLabelElement), "adaptiveRoomLabelVisibleEnable" in k && e(12, u = k.adaptiveRoomLabelVisibleEnable);
|
|
2713
2713
|
}, i.$$.update = () => {
|
|
2714
2714
|
i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = C ? p(l, C) : void 0), i.$$.dirty & 3 && e(4, s = h == null ? void 0 : h(l)), i.$$.dirty & 45568 && e(3, r = u ? x ? !0 : !!(o != null && o(a)) : !0);
|
|
2715
2715
|
}, [
|
|
2716
2716
|
l,
|
|
2717
2717
|
h,
|
|
2718
|
-
|
|
2718
|
+
L,
|
|
2719
2719
|
r,
|
|
2720
2720
|
s,
|
|
2721
2721
|
n,
|
|
@@ -2780,18 +2780,18 @@ function To(i) {
|
|
|
2780
2780
|
o = yt(t, i[9].bind(t)), s = !0;
|
|
2781
2781
|
},
|
|
2782
2782
|
p(l, c) {
|
|
2783
|
-
c & 111 && (r = l[6],
|
|
2783
|
+
c & 111 && (r = l[6], ce(), e = Je(e, c, a, 1, l, r, n, t, lt, Bo, null, Mo), de());
|
|
2784
2784
|
},
|
|
2785
2785
|
i(l) {
|
|
2786
2786
|
if (!s) {
|
|
2787
2787
|
for (let c = 0; c < r.length; c += 1)
|
|
2788
|
-
|
|
2788
|
+
D(e[c]);
|
|
2789
2789
|
s = !0;
|
|
2790
2790
|
}
|
|
2791
2791
|
},
|
|
2792
2792
|
o(l) {
|
|
2793
2793
|
for (let c = 0; c < e.length; c += 1)
|
|
2794
|
-
|
|
2794
|
+
M(e[c]);
|
|
2795
2795
|
s = !1;
|
|
2796
2796
|
},
|
|
2797
2797
|
d(l) {
|
|
@@ -2841,10 +2841,10 @@ function Bo(i, t) {
|
|
|
2841
2841
|
n.$set(c);
|
|
2842
2842
|
},
|
|
2843
2843
|
i(a) {
|
|
2844
|
-
o || (
|
|
2844
|
+
o || (D(n.$$.fragment, a), o = !0);
|
|
2845
2845
|
},
|
|
2846
2846
|
o(a) {
|
|
2847
|
-
|
|
2847
|
+
M(n.$$.fragment, a), o = !1;
|
|
2848
2848
|
},
|
|
2849
2849
|
d(a) {
|
|
2850
2850
|
a && z(e), $(n, a);
|
|
@@ -2861,15 +2861,15 @@ function fd(i) {
|
|
|
2861
2861
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
2862
2862
|
},
|
|
2863
2863
|
p(o, [s]) {
|
|
2864
|
-
o[6] ? n ? (n.p(o, s), s & 64 &&
|
|
2864
|
+
o[6] ? n ? (n.p(o, s), s & 64 && D(n, 1)) : (n = To(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
2865
2865
|
n = null;
|
|
2866
|
-
}),
|
|
2866
|
+
}), de());
|
|
2867
2867
|
},
|
|
2868
2868
|
i(o) {
|
|
2869
|
-
e || (
|
|
2869
|
+
e || (D(n), e = !0);
|
|
2870
2870
|
},
|
|
2871
2871
|
o(o) {
|
|
2872
|
-
|
|
2872
|
+
M(n), e = !1;
|
|
2873
2873
|
},
|
|
2874
2874
|
d(o) {
|
|
2875
2875
|
n && n.d(o), o && z(t);
|
|
@@ -3093,10 +3093,10 @@ function Fo(i, t) {
|
|
|
3093
3093
|
n.$set(c);
|
|
3094
3094
|
},
|
|
3095
3095
|
i(a) {
|
|
3096
|
-
o || (
|
|
3096
|
+
o || (D(n.$$.fragment, a), o = !0);
|
|
3097
3097
|
},
|
|
3098
3098
|
o(a) {
|
|
3099
|
-
|
|
3099
|
+
M(n.$$.fragment, a), o = !1;
|
|
3100
3100
|
},
|
|
3101
3101
|
d(a) {
|
|
3102
3102
|
a && z(e), $(n, a);
|
|
@@ -3124,18 +3124,18 @@ function wd(i) {
|
|
|
3124
3124
|
o = !0;
|
|
3125
3125
|
},
|
|
3126
3126
|
p(a, [l]) {
|
|
3127
|
-
l & 19 && (s = a[4],
|
|
3127
|
+
l & 19 && (s = a[4], ce(), e = Je(e, l, r, 1, a, s, n, t, lt, Fo, null, Oo), de()), l & 8 && R(t, "width", a[3]), l & 4 && R(t, "height", a[2]);
|
|
3128
3128
|
},
|
|
3129
3129
|
i(a) {
|
|
3130
3130
|
if (!o) {
|
|
3131
3131
|
for (let l = 0; l < s.length; l += 1)
|
|
3132
|
-
|
|
3132
|
+
D(e[l]);
|
|
3133
3133
|
o = !0;
|
|
3134
3134
|
}
|
|
3135
3135
|
},
|
|
3136
3136
|
o(a) {
|
|
3137
3137
|
for (let l = 0; l < e.length; l += 1)
|
|
3138
|
-
|
|
3138
|
+
M(e[l]);
|
|
3139
3139
|
o = !1;
|
|
3140
3140
|
},
|
|
3141
3141
|
d(a) {
|
|
@@ -3332,10 +3332,10 @@ function Rd(i) {
|
|
|
3332
3332
|
o & 1 && (s.path = n[5].path), t.$set(s);
|
|
3333
3333
|
},
|
|
3334
3334
|
i(n) {
|
|
3335
|
-
e || (
|
|
3335
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
3336
3336
|
},
|
|
3337
3337
|
o(n) {
|
|
3338
|
-
|
|
3338
|
+
M(t.$$.fragment, n), e = !1;
|
|
3339
3339
|
},
|
|
3340
3340
|
d(n) {
|
|
3341
3341
|
$(t, n);
|
|
@@ -3356,10 +3356,10 @@ function Hd(i) {
|
|
|
3356
3356
|
o & 1 && (s.path = n[5].path), t.$set(s);
|
|
3357
3357
|
},
|
|
3358
3358
|
i(n) {
|
|
3359
|
-
e || (
|
|
3359
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
3360
3360
|
},
|
|
3361
3361
|
o(n) {
|
|
3362
|
-
|
|
3362
|
+
M(t.$$.fragment, n), e = !1;
|
|
3363
3363
|
},
|
|
3364
3364
|
d(n) {
|
|
3365
3365
|
$(t, n);
|
|
@@ -3380,10 +3380,10 @@ function Od(i) {
|
|
|
3380
3380
|
o & 1 && (s.path = n[5].path), t.$set(s);
|
|
3381
3381
|
},
|
|
3382
3382
|
i(n) {
|
|
3383
|
-
e || (
|
|
3383
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
3384
3384
|
},
|
|
3385
3385
|
o(n) {
|
|
3386
|
-
|
|
3386
|
+
M(t.$$.fragment, n), e = !1;
|
|
3387
3387
|
},
|
|
3388
3388
|
d(n) {
|
|
3389
3389
|
$(t, n);
|
|
@@ -3405,15 +3405,15 @@ function Xo(i) {
|
|
|
3405
3405
|
},
|
|
3406
3406
|
p(l, c) {
|
|
3407
3407
|
let d = e;
|
|
3408
|
-
e = a(l), e === d ? r[e].p(l, c) : (
|
|
3408
|
+
e = a(l), e === d ? r[e].p(l, c) : (ce(), M(r[d], 1, 1, () => {
|
|
3409
3409
|
r[d] = null;
|
|
3410
|
-
}),
|
|
3410
|
+
}), de(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), D(n, 1), n.m(t, null));
|
|
3411
3411
|
},
|
|
3412
3412
|
i(l) {
|
|
3413
|
-
o || (
|
|
3413
|
+
o || (D(n), o = !0);
|
|
3414
3414
|
},
|
|
3415
3415
|
o(l) {
|
|
3416
|
-
|
|
3416
|
+
M(n), o = !1;
|
|
3417
3417
|
},
|
|
3418
3418
|
d(l) {
|
|
3419
3419
|
l && z(t), r[e].d();
|
|
@@ -3424,7 +3424,7 @@ function Fd(i) {
|
|
|
3424
3424
|
let t, e, n = i[0], o = [];
|
|
3425
3425
|
for (let r = 0; r < n.length; r += 1)
|
|
3426
3426
|
o[r] = Xo(Wo(i, n, r));
|
|
3427
|
-
const s = (r) =>
|
|
3427
|
+
const s = (r) => M(o[r], 1, 1, () => {
|
|
3428
3428
|
o[r] = null;
|
|
3429
3429
|
});
|
|
3430
3430
|
return {
|
|
@@ -3446,24 +3446,24 @@ function Fd(i) {
|
|
|
3446
3446
|
let l;
|
|
3447
3447
|
for (l = 0; l < n.length; l += 1) {
|
|
3448
3448
|
const c = Wo(r, n, l);
|
|
3449
|
-
o[l] ? (o[l].p(c, a),
|
|
3449
|
+
o[l] ? (o[l].p(c, a), D(o[l], 1)) : (o[l] = Xo(c), o[l].c(), D(o[l], 1), o[l].m(t, null));
|
|
3450
3450
|
}
|
|
3451
|
-
for (
|
|
3451
|
+
for (ce(), l = n.length; l < o.length; l += 1)
|
|
3452
3452
|
s(l);
|
|
3453
|
-
|
|
3453
|
+
de();
|
|
3454
3454
|
}
|
|
3455
3455
|
},
|
|
3456
3456
|
i(r) {
|
|
3457
3457
|
if (!e) {
|
|
3458
3458
|
for (let a = 0; a < n.length; a += 1)
|
|
3459
|
-
|
|
3459
|
+
D(o[a]);
|
|
3460
3460
|
e = !0;
|
|
3461
3461
|
}
|
|
3462
3462
|
},
|
|
3463
3463
|
o(r) {
|
|
3464
3464
|
o = o.filter(Boolean);
|
|
3465
3465
|
for (let a = 0; a < o.length; a += 1)
|
|
3466
|
-
|
|
3466
|
+
M(o[a]);
|
|
3467
3467
|
e = !1;
|
|
3468
3468
|
},
|
|
3469
3469
|
d(r) {
|
|
@@ -3477,7 +3477,7 @@ function Gd(i, t, e) {
|
|
|
3477
3477
|
return i.$$set = (l) => {
|
|
3478
3478
|
"floorIndex" in l && e(3, o = l.floorIndex), "floorplanData" in l && e(4, s = l.floorplanData);
|
|
3479
3479
|
}, i.$$.update = () => {
|
|
3480
|
-
i.$$.dirty & 24 && e(0, n = s.floorDatas[o].rooms.map((l) => he(
|
|
3480
|
+
i.$$.dirty & 24 && e(0, n = s.floorDatas[o].rooms.map((l) => he(W({}, l), {
|
|
3481
3481
|
path: l.path.map((c) => va(c, s.bounding))
|
|
3482
3482
|
})));
|
|
3483
3483
|
}, [n, r, a, o, s];
|
|
@@ -3583,10 +3583,10 @@ function Uo(i, t) {
|
|
|
3583
3583
|
n.$set(c);
|
|
3584
3584
|
},
|
|
3585
3585
|
i(a) {
|
|
3586
|
-
o || (
|
|
3586
|
+
o || (D(n.$$.fragment, a), o = !0);
|
|
3587
3587
|
},
|
|
3588
3588
|
o(a) {
|
|
3589
|
-
|
|
3589
|
+
M(n.$$.fragment, a), o = !1;
|
|
3590
3590
|
},
|
|
3591
3591
|
d(a) {
|
|
3592
3592
|
a && z(e), $(n, a);
|
|
@@ -3614,18 +3614,18 @@ function Vd(i) {
|
|
|
3614
3614
|
s = !0;
|
|
3615
3615
|
},
|
|
3616
3616
|
p(l, [c]) {
|
|
3617
|
-
c & 7 && (r = l[1].floorDatas[l[0]].rooms,
|
|
3617
|
+
c & 7 && (r = l[1].floorDatas[l[0]].rooms, ce(), n = Je(n, c, a, 1, l, r, o, e, lt, Uo, null, Yo), de());
|
|
3618
3618
|
},
|
|
3619
3619
|
i(l) {
|
|
3620
3620
|
if (!s) {
|
|
3621
3621
|
for (let c = 0; c < r.length; c += 1)
|
|
3622
|
-
|
|
3622
|
+
D(n[c]);
|
|
3623
3623
|
s = !0;
|
|
3624
3624
|
}
|
|
3625
3625
|
},
|
|
3626
3626
|
o(l) {
|
|
3627
3627
|
for (let c = 0; c < n.length; c += 1)
|
|
3628
|
-
|
|
3628
|
+
M(n[c]);
|
|
3629
3629
|
s = !1;
|
|
3630
3630
|
},
|
|
3631
3631
|
d(l) {
|
|
@@ -3692,10 +3692,10 @@ function Jo(i) {
|
|
|
3692
3692
|
t.$set(a);
|
|
3693
3693
|
},
|
|
3694
3694
|
i(s) {
|
|
3695
|
-
e || (
|
|
3695
|
+
e || (D(t.$$.fragment, s), e = !0);
|
|
3696
3696
|
},
|
|
3697
3697
|
o(s) {
|
|
3698
|
-
|
|
3698
|
+
M(t.$$.fragment, s), e = !1;
|
|
3699
3699
|
},
|
|
3700
3700
|
d(s) {
|
|
3701
3701
|
$(t, s);
|
|
@@ -3738,10 +3738,10 @@ function Vo(i) {
|
|
|
3738
3738
|
t.$set(a);
|
|
3739
3739
|
},
|
|
3740
3740
|
i(s) {
|
|
3741
|
-
e || (
|
|
3741
|
+
e || (D(t.$$.fragment, s), e = !0);
|
|
3742
3742
|
},
|
|
3743
3743
|
o(s) {
|
|
3744
|
-
|
|
3744
|
+
M(t.$$.fragment, s), e = !1;
|
|
3745
3745
|
},
|
|
3746
3746
|
d(s) {
|
|
3747
3747
|
$(t, s);
|
|
@@ -3778,10 +3778,10 @@ function Zo(i) {
|
|
|
3778
3778
|
t.$set(a);
|
|
3779
3779
|
},
|
|
3780
3780
|
i(s) {
|
|
3781
|
-
e || (
|
|
3781
|
+
e || (D(t.$$.fragment, s), e = !0);
|
|
3782
3782
|
},
|
|
3783
3783
|
o(s) {
|
|
3784
|
-
|
|
3784
|
+
M(t.$$.fragment, s), e = !1;
|
|
3785
3785
|
},
|
|
3786
3786
|
d(s) {
|
|
3787
3787
|
$(t, s);
|
|
@@ -3826,26 +3826,26 @@ function qd(i) {
|
|
|
3826
3826
|
floorplanData: A[5]
|
|
3827
3827
|
}
|
|
3828
3828
|
]) : {};
|
|
3829
|
-
e.$set(y), A[2] ? u ? (u.p(A, w), w & 4 &&
|
|
3829
|
+
e.$set(y), A[2] ? u ? (u.p(A, w), w & 4 && D(u, 1)) : (u = Jo(A), u.c(), D(u, 1), u.m(t, o)) : u && (ce(), M(u, 1, 1, () => {
|
|
3830
3830
|
u = null;
|
|
3831
|
-
}),
|
|
3831
|
+
}), de());
|
|
3832
3832
|
const x = w & 34 ? Te(p, [
|
|
3833
3833
|
{
|
|
3834
3834
|
floorplanData: A[5],
|
|
3835
3835
|
floorIndex: A[1]
|
|
3836
3836
|
}
|
|
3837
3837
|
]) : {};
|
|
3838
|
-
s.$set(x), A[3] ? g ? (g.p(A, w), w & 8 &&
|
|
3838
|
+
s.$set(x), A[3] ? g ? (g.p(A, w), w & 8 && D(g, 1)) : (g = Vo(A), g.c(), D(g, 1), g.m(t, a)) : g && (ce(), M(g, 1, 1, () => {
|
|
3839
3839
|
g = null;
|
|
3840
|
-
}),
|
|
3840
|
+
}), de()), A[4] ? v ? (v.p(A, w), w & 16 && D(v, 1)) : (v = Zo(A), v.c(), D(v, 1), v.m(t, null)) : v && (ce(), M(v, 1, 1, () => {
|
|
3841
3841
|
v = null;
|
|
3842
|
-
}),
|
|
3842
|
+
}), de()), (!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
3844
|
i(A) {
|
|
3845
|
-
c || (
|
|
3845
|
+
c || (D(e.$$.fragment, A), D(u), D(s.$$.fragment, A), D(g), D(v), c = !0);
|
|
3846
3846
|
},
|
|
3847
3847
|
o(A) {
|
|
3848
|
-
|
|
3848
|
+
M(e.$$.fragment, A), M(u), M(s.$$.fragment, A), M(g), M(v), c = !1;
|
|
3849
3849
|
},
|
|
3850
3850
|
d(A) {
|
|
3851
3851
|
A && z(t), $(e), u && u.d(), $(s), g && g.d(), v && v.d();
|
|
@@ -3906,7 +3906,7 @@ function qo(i) {
|
|
|
3906
3906
|
let t, e, n, o, s, r, a = i[9].floorDatas, l = [];
|
|
3907
3907
|
for (let p = 0; p < a.length; p += 1)
|
|
3908
3908
|
l[p] = Ko(_o(i, a, p));
|
|
3909
|
-
const c = (p) =>
|
|
3909
|
+
const c = (p) => M(l[p], 1, 1, () => {
|
|
3910
3910
|
l[p] = null;
|
|
3911
3911
|
}), d = [
|
|
3912
3912
|
{
|
|
@@ -3940,11 +3940,11 @@ function qo(i) {
|
|
|
3940
3940
|
let v;
|
|
3941
3941
|
for (v = 0; v < a.length; v += 1) {
|
|
3942
3942
|
const A = _o(i, a, v);
|
|
3943
|
-
l[v] ? (l[v].p(A, m),
|
|
3943
|
+
l[v] ? (l[v].p(A, m), D(l[v], 1)) : (l[v] = Ko(A), l[v].c(), D(l[v], 1), l[v].m(t, e));
|
|
3944
3944
|
}
|
|
3945
|
-
for (
|
|
3945
|
+
for (ce(), v = a.length; v < l.length; v += 1)
|
|
3946
3946
|
c(v);
|
|
3947
|
-
|
|
3947
|
+
de();
|
|
3948
3948
|
}
|
|
3949
3949
|
const g = m & 3592 ? Te(d, [
|
|
3950
3950
|
{
|
|
@@ -3954,15 +3954,15 @@ function qo(i) {
|
|
|
3954
3954
|
cameraImageUrl: i[11]
|
|
3955
3955
|
}
|
|
3956
3956
|
]) : {};
|
|
3957
|
-
n.$set(g), i[6] ? u ? (u.p(i, m), m & 64 &&
|
|
3957
|
+
n.$set(g), i[6] ? u ? (u.p(i, m), m & 64 && D(u, 1)) : (u = $o(i), u.c(), D(u, 1), u.m(t, null)) : u && (ce(), M(u, 1, 1, () => {
|
|
3958
3958
|
u = null;
|
|
3959
|
-
}),
|
|
3959
|
+
}), de());
|
|
3960
3960
|
},
|
|
3961
3961
|
i(p) {
|
|
3962
3962
|
if (!r) {
|
|
3963
3963
|
for (let m = 0; m < a.length; m += 1)
|
|
3964
|
-
|
|
3965
|
-
|
|
3964
|
+
D(l[m]);
|
|
3965
|
+
D(n.$$.fragment, p), D(u), s || Ie(() => {
|
|
3966
3966
|
s = Ht(t, Tt, {
|
|
3967
3967
|
duration: i[0],
|
|
3968
3968
|
easing: Vt
|
|
@@ -3973,8 +3973,8 @@ function qo(i) {
|
|
|
3973
3973
|
o(p) {
|
|
3974
3974
|
l = l.filter(Boolean);
|
|
3975
3975
|
for (let m = 0; m < l.length; m += 1)
|
|
3976
|
-
|
|
3977
|
-
|
|
3976
|
+
M(l[m]);
|
|
3977
|
+
M(n.$$.fragment, p), M(u), r = !1;
|
|
3978
3978
|
},
|
|
3979
3979
|
d(p) {
|
|
3980
3980
|
p && z(t), nt(l, p), $(n), u && u.d();
|
|
@@ -4033,10 +4033,10 @@ function Ko(i) {
|
|
|
4033
4033
|
t.$set(a);
|
|
4034
4034
|
},
|
|
4035
4035
|
i(s) {
|
|
4036
|
-
e || (
|
|
4036
|
+
e || (D(t.$$.fragment, s), e = !0);
|
|
4037
4037
|
},
|
|
4038
4038
|
o(s) {
|
|
4039
|
-
|
|
4039
|
+
M(t.$$.fragment, s), e = !1;
|
|
4040
4040
|
},
|
|
4041
4041
|
d(s) {
|
|
4042
4042
|
$(t, s);
|
|
@@ -4062,10 +4062,10 @@ function $o(i) {
|
|
|
4062
4062
|
o & 512 && (s.floorplanData = n[9]), o & 4 && (s.northDesc = n[2]), t.$set(s);
|
|
4063
4063
|
},
|
|
4064
4064
|
i(n) {
|
|
4065
|
-
e || (
|
|
4065
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
4066
4066
|
},
|
|
4067
4067
|
o(n) {
|
|
4068
|
-
|
|
4068
|
+
M(t.$$.fragment, n), e = !1;
|
|
4069
4069
|
},
|
|
4070
4070
|
d(n) {
|
|
4071
4071
|
$(t, n);
|
|
@@ -4082,15 +4082,15 @@ function tu(i) {
|
|
|
4082
4082
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
4083
4083
|
},
|
|
4084
4084
|
p(o, [s]) {
|
|
4085
|
-
o[1] ? n ? (n.p(o, s), s & 2 &&
|
|
4085
|
+
o[1] ? n ? (n.p(o, s), s & 2 && D(n, 1)) : (n = qo(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
4086
4086
|
n = null;
|
|
4087
|
-
}),
|
|
4087
|
+
}), de());
|
|
4088
4088
|
},
|
|
4089
4089
|
i(o) {
|
|
4090
|
-
e || (
|
|
4090
|
+
e || (D(n), e = !0);
|
|
4091
4091
|
},
|
|
4092
4092
|
o(o) {
|
|
4093
|
-
|
|
4093
|
+
M(n), e = !1;
|
|
4094
4094
|
},
|
|
4095
4095
|
d(o) {
|
|
4096
4096
|
n && n.d(o), o && z(t);
|
|
@@ -4403,7 +4403,7 @@ class mu extends Ot {
|
|
|
4403
4403
|
immediately: !1,
|
|
4404
4404
|
isAutoShow: !1,
|
|
4405
4405
|
userAction: !0
|
|
4406
|
-
}, o =
|
|
4406
|
+
}, o = W(W({}, n), e), s = () => J(this, null, function* () {
|
|
4407
4407
|
this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
|
|
4408
4408
|
let a = !1, l;
|
|
4409
4409
|
this.showRejection = (u) => {
|
|
@@ -4433,7 +4433,7 @@ class mu extends Ot {
|
|
|
4433
4433
|
f(this, "_hide", (e) => {
|
|
4434
4434
|
var s;
|
|
4435
4435
|
(s = this.showRejection) == null || s.call(this, Ge.BreakOffByHide), this.showPromise = void 0;
|
|
4436
|
-
const o =
|
|
4436
|
+
const o = W(W({}, {
|
|
4437
4437
|
userAction: !0,
|
|
4438
4438
|
isAutoHide: !1
|
|
4439
4439
|
}), e);
|
|
@@ -4514,7 +4514,7 @@ class mu extends Ot {
|
|
|
4514
4514
|
getLabelElement: void 0,
|
|
4515
4515
|
getRoomAreaText: (l) => (l / 1e6).toFixed(1) + "\u33A1",
|
|
4516
4516
|
getRuleDistanceText: (l) => l.toString()
|
|
4517
|
-
}, s = n ? ci(n, ["selector", "scale"]) : {}, r =
|
|
4517
|
+
}, s = n ? ci(n, ["selector", "scale"]) : {}, r = W(W({}, o), s);
|
|
4518
4518
|
this.state = {
|
|
4519
4519
|
enabled: !0,
|
|
4520
4520
|
visible: !1,
|
|
@@ -4565,8 +4565,8 @@ class mu extends Ot {
|
|
|
4565
4565
|
});
|
|
4566
4566
|
}
|
|
4567
4567
|
updateState(e, n) {
|
|
4568
|
-
const o = this.state, s = e.config ?
|
|
4569
|
-
this.state = he(
|
|
4568
|
+
const o = this.state, s = e.config ? W(W({}, o.config), e.config) : o.config;
|
|
4569
|
+
this.state = he(W(W({}, this.state), e), { config: s }), !Ke(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
|
|
4570
4570
|
}
|
|
4571
4571
|
initContainer() {
|
|
4572
4572
|
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
@@ -4591,7 +4591,7 @@ class mu extends Ot {
|
|
|
4591
4591
|
render(e) {
|
|
4592
4592
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
4593
4593
|
return;
|
|
4594
|
-
const n = he(
|
|
4594
|
+
const n = he(W({}, this.state.config), {
|
|
4595
4595
|
visible: this.state.visible,
|
|
4596
4596
|
duration: e != null ? e : 0,
|
|
4597
4597
|
panoIndex: this.panoIndex,
|
|
@@ -4675,7 +4675,7 @@ class Au extends Ot {
|
|
|
4675
4675
|
immediately: !1,
|
|
4676
4676
|
isAutoShow: !1,
|
|
4677
4677
|
userAction: !0
|
|
4678
|
-
}, o =
|
|
4678
|
+
}, o = W(W({}, n), e), s = () => J(this, null, function* () {
|
|
4679
4679
|
this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
|
|
4680
4680
|
let a = !1, l;
|
|
4681
4681
|
this.showRejection = (u) => {
|
|
@@ -4705,7 +4705,7 @@ class Au extends Ot {
|
|
|
4705
4705
|
f(this, "_hide", (e) => {
|
|
4706
4706
|
var s;
|
|
4707
4707
|
(s = this.showRejection) == null || s.call(this, Ge.BreakOffByHide), this.showPromise = void 0;
|
|
4708
|
-
const o =
|
|
4708
|
+
const o = W(W({}, {
|
|
4709
4709
|
userAction: !0,
|
|
4710
4710
|
isAutoHide: !1
|
|
4711
4711
|
}), e);
|
|
@@ -4784,7 +4784,7 @@ class Au extends Ot {
|
|
|
4784
4784
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
4785
4785
|
getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
|
|
4786
4786
|
getRuleDistanceText: (a) => a.toString()
|
|
4787
|
-
}, s = n ? ci(n, ["selector", "scale"]) : {}, r =
|
|
4787
|
+
}, s = n ? ci(n, ["selector", "scale"]) : {}, r = W(W({}, o), s);
|
|
4788
4788
|
this.state = {
|
|
4789
4789
|
enabled: !0,
|
|
4790
4790
|
visible: !1,
|
|
@@ -4842,8 +4842,8 @@ class Au extends Ot {
|
|
|
4842
4842
|
});
|
|
4843
4843
|
}
|
|
4844
4844
|
updateState(e, n) {
|
|
4845
|
-
const o = this.state, s = e.config ?
|
|
4846
|
-
this.state = he(
|
|
4845
|
+
const o = this.state, s = e.config ? W(W({}, o.config), e.config) : o.config;
|
|
4846
|
+
this.state = he(W(W({}, this.state), e), { config: s }), !Ke(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
|
|
4847
4847
|
}
|
|
4848
4848
|
initContainer() {
|
|
4849
4849
|
this.container.classList.add("floorplan-plugin"), Object.assign(this.container.style, {
|
|
@@ -4868,7 +4868,7 @@ class Au extends Ot {
|
|
|
4868
4868
|
render(e) {
|
|
4869
4869
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
4870
4870
|
return;
|
|
4871
|
-
const n = he(
|
|
4871
|
+
const n = he(W({}, this.state.config), {
|
|
4872
4872
|
visible: this.state.visible,
|
|
4873
4873
|
duration: e != null ? e : 0,
|
|
4874
4874
|
panoIndex: this.panoIndex,
|
|
@@ -4969,7 +4969,7 @@ class vu extends Ot {
|
|
|
4969
4969
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
4970
4970
|
getRoomAreaText: (a) => (a / 1e6).toFixed(1) + "\u33A1",
|
|
4971
4971
|
getRuleDistanceText: (a) => a.toString()
|
|
4972
|
-
}, s = n ? ci(n, ["selector", "scale"]) : {}, r =
|
|
4972
|
+
}, s = n ? ci(n, ["selector", "scale"]) : {}, r = W(W({}, o), s);
|
|
4973
4973
|
this.state = {
|
|
4974
4974
|
enabled: !0,
|
|
4975
4975
|
visible: !1,
|
|
@@ -5072,8 +5072,8 @@ class vu extends Ot {
|
|
|
5072
5072
|
this.addEventListener(), this.wrapper && this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n });
|
|
5073
5073
|
}
|
|
5074
5074
|
updateState(e, n) {
|
|
5075
|
-
const o = this.state, s = e.config ?
|
|
5076
|
-
this.state = he(
|
|
5075
|
+
const o = this.state, s = e.config ? W(W({}, o.config), e.config) : o.config;
|
|
5076
|
+
this.state = he(W(W({}, this.state), e), { config: s }), !Ke(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
|
|
5077
5077
|
}
|
|
5078
5078
|
addEventListener() {
|
|
5079
5079
|
if (!this.state.enabled || this.hasAddedEventListener)
|
|
@@ -5099,7 +5099,7 @@ class vu extends Ot {
|
|
|
5099
5099
|
render(e) {
|
|
5100
5100
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
5101
5101
|
return;
|
|
5102
|
-
const n = he(
|
|
5102
|
+
const n = he(W({}, this.state.config), {
|
|
5103
5103
|
visible: this.state.visible,
|
|
5104
5104
|
duration: e != null ? e : 0,
|
|
5105
5105
|
panoIndex: this.panoIndex,
|
|
@@ -5152,8 +5152,8 @@ function Cu(i, t, e) {
|
|
|
5152
5152
|
const v = m.bounding, A = m.observers[g];
|
|
5153
5153
|
if (!A)
|
|
5154
5154
|
return "";
|
|
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),
|
|
5156
|
-
return `translate(${x}px, ${
|
|
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
|
+
return `translate(${x}px, ${L}px)`;
|
|
5157
5157
|
}
|
|
5158
5158
|
function u(m) {
|
|
5159
5159
|
e(6, c = m);
|
|
@@ -5301,10 +5301,10 @@ function is(i) {
|
|
|
5301
5301
|
t.$set(a);
|
|
5302
5302
|
},
|
|
5303
5303
|
i(s) {
|
|
5304
|
-
e || (
|
|
5304
|
+
e || (D(t.$$.fragment, s), e = !0);
|
|
5305
5305
|
},
|
|
5306
5306
|
o(s) {
|
|
5307
|
-
|
|
5307
|
+
M(t.$$.fragment, s), e = !1;
|
|
5308
5308
|
},
|
|
5309
5309
|
d(s) {
|
|
5310
5310
|
$(t, s);
|
|
@@ -5344,15 +5344,15 @@ function Du(i) {
|
|
|
5344
5344
|
]) : {};
|
|
5345
5345
|
t.$set(u);
|
|
5346
5346
|
const p = {};
|
|
5347
|
-
h & 32 && (p.extraObjects = d[5]), n.$set(p), d[3] ? c ? (c.p(d, h), h & 8 &&
|
|
5347
|
+
h & 32 && (p.extraObjects = d[5]), n.$set(p), d[3] ? c ? (c.p(d, h), h & 8 && D(c, 1)) : (c = is(d), c.c(), D(c, 1), c.m(s.parentNode, s)) : c && (ce(), M(c, 1, 1, () => {
|
|
5348
5348
|
c = null;
|
|
5349
|
-
}),
|
|
5349
|
+
}), de());
|
|
5350
5350
|
},
|
|
5351
5351
|
i(d) {
|
|
5352
|
-
r || (
|
|
5352
|
+
r || (D(t.$$.fragment, d), D(n.$$.fragment, d), D(c), r = !0);
|
|
5353
5353
|
},
|
|
5354
5354
|
o(d) {
|
|
5355
|
-
|
|
5355
|
+
M(t.$$.fragment, d), M(n.$$.fragment, d), M(c), r = !1;
|
|
5356
5356
|
},
|
|
5357
5357
|
d(d) {
|
|
5358
5358
|
$(t, d), d && z(e), $(n, d), d && z(o), c && c.d(d), d && z(s);
|
|
@@ -5402,15 +5402,15 @@ function os(i) {
|
|
|
5402
5402
|
B(s, t, r), o && o.m(t, null), e = yt(t, i[12].bind(t)), n = !0;
|
|
5403
5403
|
},
|
|
5404
5404
|
p(s, r) {
|
|
5405
|
-
s[6] !== 0 ? o ? (o.p(s, r), r & 64 &&
|
|
5405
|
+
s[6] !== 0 ? o ? (o.p(s, r), r & 64 && D(o, 1)) : (o = ss(s), o.c(), D(o, 1), o.m(t, null)) : o && (ce(), M(o, 1, 1, () => {
|
|
5406
5406
|
o = null;
|
|
5407
|
-
}),
|
|
5407
|
+
}), de());
|
|
5408
5408
|
},
|
|
5409
5409
|
i(s) {
|
|
5410
|
-
n || (
|
|
5410
|
+
n || (D(o), n = !0);
|
|
5411
5411
|
},
|
|
5412
5412
|
o(s) {
|
|
5413
|
-
|
|
5413
|
+
M(o), n = !1;
|
|
5414
5414
|
},
|
|
5415
5415
|
d(s) {
|
|
5416
5416
|
s && z(t), o && o.d(), e();
|
|
@@ -5474,10 +5474,10 @@ function ss(i) {
|
|
|
5474
5474
|
o.$set(g), p & 256 && s !== (s = `${u[8]}px`) && R(t, "width", s), p & 2048 && r !== (r = `${u[11]}px`) && R(t, "height", r);
|
|
5475
5475
|
},
|
|
5476
5476
|
i(u) {
|
|
5477
|
-
a || (
|
|
5477
|
+
a || (D(e.$$.fragment, u), D(o.$$.fragment, u), a = !0);
|
|
5478
5478
|
},
|
|
5479
5479
|
o(u) {
|
|
5480
|
-
|
|
5480
|
+
M(e.$$.fragment, u), M(o.$$.fragment, u), a = !1;
|
|
5481
5481
|
},
|
|
5482
5482
|
d(u) {
|
|
5483
5483
|
u && z(t), $(e), $(o);
|
|
@@ -5494,15 +5494,15 @@ function Mu(i) {
|
|
|
5494
5494
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
5495
5495
|
},
|
|
5496
5496
|
p(o, [s]) {
|
|
5497
|
-
o[1] ? n ? (n.p(o, s), s & 2 &&
|
|
5497
|
+
o[1] ? n ? (n.p(o, s), s & 2 && D(n, 1)) : (n = os(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
5498
5498
|
n = null;
|
|
5499
|
-
}),
|
|
5499
|
+
}), de());
|
|
5500
5500
|
},
|
|
5501
5501
|
i(o) {
|
|
5502
|
-
e || (
|
|
5502
|
+
e || (D(n), e = !0);
|
|
5503
5503
|
},
|
|
5504
5504
|
o(o) {
|
|
5505
|
-
|
|
5505
|
+
M(n), e = !1;
|
|
5506
5506
|
},
|
|
5507
5507
|
d(o) {
|
|
5508
5508
|
n && n.d(o), o && z(t);
|
|
@@ -5525,10 +5525,10 @@ function Tu(i, t, e) {
|
|
|
5525
5525
|
"five" in y && e(0, n = y.five), "visible" in y && e(1, o = y.visible), "hoverEnable" in y && e(2, s = y.hoverEnable), "floorplanData" in y && e(3, r = y.floorplanData), "cameraImageUrl" in y && e(4, a = y.cameraImageUrl), "extraObjects" in y && e(5, l = y.extraObjects);
|
|
5526
5526
|
}, i.$$.update = () => {
|
|
5527
5527
|
if (i.$$.dirty & 456) {
|
|
5528
|
-
const y = Math.min(h, u), { max: x, min:
|
|
5528
|
+
const y = Math.min(h, u), { 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, p =
|
|
5531
|
+
e(8, p = k[0]), e(11, m = k[1]), e(9, c = p / C);
|
|
5532
5532
|
}
|
|
5533
5533
|
}, [
|
|
5534
5534
|
n,
|
|
@@ -5590,7 +5590,7 @@ class ju extends Ot {
|
|
|
5590
5590
|
const o = {
|
|
5591
5591
|
hoverEnable: !1,
|
|
5592
5592
|
cameraImageUrl: vt
|
|
5593
|
-
}, s = n != null && n.configs ? n.configs : {}, r =
|
|
5593
|
+
}, s = n != null && n.configs ? n.configs : {}, r = W(W({}, o), s);
|
|
5594
5594
|
this.state = { enabled: !0, visible: !0, config: r }, n != null && n.wrapper && console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"), typeof (n == null ? void 0 : n.wrapper) == "string" ? this.wrapperSelector = n.wrapper : (n == null ? void 0 : n.wrapper) instanceof Element && (this.wrapper = n.wrapper), e.once("dispose", this.dispose);
|
|
5595
5595
|
}
|
|
5596
5596
|
load(e, n, o = !0) {
|
|
@@ -5673,7 +5673,7 @@ class ju extends Ot {
|
|
|
5673
5673
|
}
|
|
5674
5674
|
updateState(e, n) {
|
|
5675
5675
|
const o = this.state;
|
|
5676
|
-
this.state =
|
|
5676
|
+
this.state = W(W({}, this.state), e), !Ke(this.state, o, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: n });
|
|
5677
5677
|
}
|
|
5678
5678
|
render() {
|
|
5679
5679
|
if (this.disposed || !this.state.enabled)
|
|
@@ -5684,7 +5684,7 @@ class ju extends Ot {
|
|
|
5684
5684
|
}
|
|
5685
5685
|
if (!this.data || !this.wrapper)
|
|
5686
5686
|
return;
|
|
5687
|
-
const e = he(
|
|
5687
|
+
const e = he(W({}, this.state.config), {
|
|
5688
5688
|
five: this.five,
|
|
5689
5689
|
floorplanData: this.data,
|
|
5690
5690
|
visible: this.state.visible,
|
|
@@ -5806,7 +5806,7 @@ function Ea(i, t) {
|
|
|
5806
5806
|
i.traverse((e) => {
|
|
5807
5807
|
var n;
|
|
5808
5808
|
if (e.type === "Mesh") {
|
|
5809
|
-
const o = e, s =
|
|
5809
|
+
const o = e, s = W({ map: o.material.map || {} }, t);
|
|
5810
5810
|
o.material = new un(s), o.renderOrder = 1, ((n = e.parent) == null ? void 0 : n.type) === "Mesh" && (e.renderOrder = e.parent.renderOrder + 1);
|
|
5811
5811
|
}
|
|
5812
5812
|
});
|
|
@@ -5827,14 +5827,14 @@ const eA = (i, t) => {
|
|
|
5827
5827
|
const x = [0, p - Math.PI / 2, 0], {
|
|
5828
5828
|
model: {
|
|
5829
5829
|
bounding: {
|
|
5830
|
-
max: { x:
|
|
5831
|
-
min: { x: S, y:
|
|
5830
|
+
max: { x: L, z: C },
|
|
5831
|
+
min: { x: S, y: k, z: F }
|
|
5832
5832
|
}
|
|
5833
5833
|
}
|
|
5834
5834
|
} = i;
|
|
5835
|
-
o.yBase =
|
|
5836
|
-
const H = { x: (
|
|
5837
|
-
return Qu(y, { position: H, rotation: x, scale:
|
|
5835
|
+
o.yBase = k;
|
|
5836
|
+
const H = { x: (L + S) / 2, y: k - 1.6, z: (C + F) / 2 }, G = 45e-4 * A;
|
|
5837
|
+
return Qu(y, { position: H, rotation: x, scale: G }), o.object = y, !0;
|
|
5838
5838
|
}), r = ({ latitude: h }) => {
|
|
5839
5839
|
if (!o.object)
|
|
5840
5840
|
return;
|
|
@@ -5868,20 +5868,20 @@ function Ru(i, t) {
|
|
|
5868
5868
|
const Hu = ({ x: i, y: t, z: e }) => new _(i, t, e), tA = (i, t) => {
|
|
5869
5869
|
var g, v, A;
|
|
5870
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
|
-
var H,
|
|
5871
|
+
var H, G, Y, P, I, T, O, N;
|
|
5872
5872
|
const y = (H = w == null ? void 0 : w.position) != null ? H : o;
|
|
5873
5873
|
if (!y)
|
|
5874
5874
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
5875
|
-
const x = Hu(y),
|
|
5876
|
-
if (e.rad =
|
|
5877
|
-
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${
|
|
5875
|
+
const x = Hu(y), L = (G = w == null ? void 0 : w.rad) != null ? G : s, C = (Y = w == null ? void 0 : w.fbx_url) != null ? Y : r;
|
|
5876
|
+
if (e.rad = L, L === void 0)
|
|
5877
|
+
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${L}`));
|
|
5878
5878
|
const S = yield new Ur().loadAsync(C);
|
|
5879
|
-
S.position.copy(x), S.rotation.z =
|
|
5880
|
-
const
|
|
5881
|
-
if (!
|
|
5882
|
-
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${
|
|
5883
|
-
const F = (
|
|
5884
|
-
return
|
|
5879
|
+
S.position.copy(x), S.rotation.z = L, S.scale.set(0.8, 0.8, 0.8), Ea(S, { transparent: !0, side: E.DoubleSide });
|
|
5880
|
+
const k = (O = (T = (I = (P = S.children) == null ? void 0 : P[0]) == null ? void 0 : I.children) == null ? void 0 : T[3]) == null ? void 0 : O.clone();
|
|
5881
|
+
if (!k)
|
|
5882
|
+
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${k}`));
|
|
5883
|
+
const F = (N = t.name) != null ? N : "\u5165\u6237\u95E8";
|
|
5884
|
+
return k.material = new un({ transparent: !0, map: Ru(F) }), k.renderOrder = 3, S.children[0].add(k), e.object = S, !0;
|
|
5885
5885
|
}), c = () => {
|
|
5886
5886
|
if (e.animation)
|
|
5887
5887
|
return;
|
|
@@ -5891,23 +5891,23 @@ const Hu = ({ x: i, y: t, z: e }) => new _(i, t, e), tA = (i, t) => {
|
|
|
5891
5891
|
a.push(y);
|
|
5892
5892
|
const x = y.clipAction(e.object.animations[0]);
|
|
5893
5893
|
x.timeScale = w;
|
|
5894
|
-
let
|
|
5894
|
+
let L;
|
|
5895
5895
|
const C = () => {
|
|
5896
|
-
let H = 0,
|
|
5896
|
+
let H = 0, G = 0;
|
|
5897
5897
|
const Y = 1e3 / 30, P = (I) => {
|
|
5898
5898
|
H = requestAnimationFrame(P);
|
|
5899
|
-
const
|
|
5900
|
-
|
|
5899
|
+
const T = I - G;
|
|
5900
|
+
T < Y || (G = I, a.forEach((O) => O.update(T / 1e3)), i.needsRender = !0);
|
|
5901
5901
|
};
|
|
5902
5902
|
return H = requestAnimationFrame(P), () => {
|
|
5903
5903
|
cancelAnimationFrame(H);
|
|
5904
5904
|
};
|
|
5905
5905
|
}, F = { play: () => {
|
|
5906
|
-
|
|
5906
|
+
L || (x.play(), L = C(), requestAnimationFrame(() => {
|
|
5907
5907
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
5908
5908
|
}));
|
|
5909
5909
|
}, stop: () => {
|
|
5910
|
-
x.stop(),
|
|
5910
|
+
x.stop(), L == null || L(), L = void 0;
|
|
5911
5911
|
} };
|
|
5912
5912
|
e.animation = F;
|
|
5913
5913
|
}, d = (w) => {
|
|
@@ -6237,45 +6237,45 @@ const Uu = `<style type="text/css">
|
|
|
6237
6237
|
if (!w)
|
|
6238
6238
|
return !1;
|
|
6239
6239
|
for (const y in v) {
|
|
6240
|
-
const x = v[y], { standingPosition:
|
|
6241
|
-
const H = F.length > 0 ? g.rooms[g.observers[F[0]]].name : "",
|
|
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 : "", G = A[H] ? A[H].floor : null;
|
|
6242
6242
|
let Y = 1 / 0, P = {
|
|
6243
6243
|
index: 0,
|
|
6244
|
-
x:
|
|
6245
|
-
y:
|
|
6246
|
-
z:
|
|
6244
|
+
x: L.x,
|
|
6245
|
+
y: L.y,
|
|
6246
|
+
z: L.z
|
|
6247
6247
|
};
|
|
6248
6248
|
F.forEach((X) => {
|
|
6249
6249
|
if (!w.observers[X])
|
|
6250
6250
|
return;
|
|
6251
|
-
const { standingPosition: U } = w.observers[X],
|
|
6251
|
+
const { standingPosition: U } = w.observers[X], le = {
|
|
6252
6252
|
index: X,
|
|
6253
6253
|
x: U.x,
|
|
6254
6254
|
y: U.y,
|
|
6255
6255
|
z: U.z
|
|
6256
|
-
}, ue = Ju({ x: S, z:
|
|
6257
|
-
|
|
6256
|
+
}, ue = Ju({ x: S, z: k }, le);
|
|
6257
|
+
G ? ue < Y && Math.abs(le.y - G) < 0.3 && (Y = ue, P = le) : ue < Y && (Y = ue, P = le);
|
|
6258
6258
|
});
|
|
6259
|
-
const I = new _(S, P.y,
|
|
6259
|
+
const I = new _(S, P.y, k);
|
|
6260
6260
|
Object.assign(I, { observers: F });
|
|
6261
|
-
const
|
|
6261
|
+
const T = A[H] ? A[H].roof : null, O = T ? new _(S, T, k) : null;
|
|
6262
6262
|
return O && Object.assign(O, { observers: F }), { origin: I, vertical: O };
|
|
6263
6263
|
});
|
|
6264
6264
|
r[y] = {
|
|
6265
6265
|
origins: C.map((S) => S.origin),
|
|
6266
6266
|
rules: []
|
|
6267
6267
|
};
|
|
6268
|
-
for (const { origin: S, vertical:
|
|
6269
|
-
if (!
|
|
6268
|
+
for (const { origin: S, vertical: k } of C) {
|
|
6269
|
+
if (!k)
|
|
6270
6270
|
continue;
|
|
6271
|
-
const F = n(y, S.distanceTo(
|
|
6272
|
-
o.append(F), r[y].rules.push({ vertical: !0, rule: [S,
|
|
6271
|
+
const F = n(y, S.distanceTo(k));
|
|
6272
|
+
o.append(F), r[y].rules.push({ vertical: !0, rule: [S, k], $element: F });
|
|
6273
6273
|
}
|
|
6274
6274
|
for (let S = 0; S < C.length; S++) {
|
|
6275
|
-
let
|
|
6276
|
-
|
|
6277
|
-
const { origin: F } = C[S], { origin: H } = C[
|
|
6278
|
-
o.append(
|
|
6275
|
+
let k = S + 1;
|
|
6276
|
+
k >= C.length && (k = 0);
|
|
6277
|
+
const { origin: F } = C[S], { origin: H } = C[k], G = n(y, F.distanceTo(H));
|
|
6278
|
+
o.append(G), r[y].rules.push({ vertical: !1, rule: [F, H], $element: G });
|
|
6279
6279
|
}
|
|
6280
6280
|
}
|
|
6281
6281
|
return e.loaded = !0, !0;
|
|
@@ -6283,7 +6283,7 @@ const Uu = `<style type="text/css">
|
|
|
6283
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 =
|
|
6286
|
+
return e.loaded = !1, e.options = W(W({}, 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
|
});
|
|
@@ -6307,8 +6307,8 @@ const Uu = `<style type="text/css">
|
|
|
6307
6307
|
{ x: A, y: w }
|
|
6308
6308
|
]
|
|
6309
6309
|
], x = [];
|
|
6310
|
-
for (let
|
|
6311
|
-
const C = xa([g, v], [y[
|
|
6310
|
+
for (let L = 0; L < y.length; L++) {
|
|
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;
|
|
@@ -6325,33 +6325,33 @@ const Uu = `<style type="text/css">
|
|
|
6325
6325
|
H.split(",").indexOf(v.toString()) >= 0 && (y = H);
|
|
6326
6326
|
if (!y) {
|
|
6327
6327
|
for (const H in r)
|
|
6328
|
-
for (const { $element:
|
|
6329
|
-
|
|
6328
|
+
for (const { $element: G } of r[H].rules)
|
|
6329
|
+
G.style.display = "none";
|
|
6330
6330
|
return;
|
|
6331
6331
|
}
|
|
6332
|
-
const x = A.position,
|
|
6332
|
+
const x = A.position, L = A.getWorldDirection(new _()), C = g.clientWidth, S = g.clientHeight;
|
|
6333
6333
|
if (w !== Be.Mode.Panorama) {
|
|
6334
6334
|
for (const H in r)
|
|
6335
|
-
for (const { $element:
|
|
6336
|
-
|
|
6335
|
+
for (const { $element: G } of r[H].rules)
|
|
6336
|
+
G.style.display = "none";
|
|
6337
6337
|
return;
|
|
6338
6338
|
}
|
|
6339
6339
|
for (const H in r)
|
|
6340
|
-
for (const { $element:
|
|
6341
|
-
|
|
6342
|
-
const [
|
|
6343
|
-
const Y = H.clone().setY(0).sub(x).normalize().angleTo(
|
|
6340
|
+
for (const { $element: G } of r[H].rules)
|
|
6341
|
+
G.style.display = H === y ? "block" : "none";
|
|
6342
|
+
const [k] = r[y].origins.slice().filter((H) => H.observers.indexOf(v) >= 0).sort((H, G) => {
|
|
6343
|
+
const Y = H.clone().setY(0).sub(x).normalize().angleTo(L.clone().setY(0)), P = G.clone().setY(0).sub(x).normalize().angleTo(L.clone().setY(0));
|
|
6344
6344
|
return Y - P;
|
|
6345
6345
|
});
|
|
6346
|
-
for (const { rule: H, vertical:
|
|
6347
|
-
const [P, I] = H,
|
|
6348
|
-
if (!
|
|
6346
|
+
for (const { rule: H, vertical: G, $element: Y } of r[y].rules) {
|
|
6347
|
+
const [P, I] = H, T = Y.querySelector(".PanoRulerPlugin-rule-line");
|
|
6348
|
+
if (!T)
|
|
6349
6349
|
return;
|
|
6350
|
-
if (!
|
|
6350
|
+
if (!k) {
|
|
6351
6351
|
Y.style.display = "none";
|
|
6352
6352
|
continue;
|
|
6353
6353
|
}
|
|
6354
|
-
if (P !==
|
|
6354
|
+
if (P !== k && I !== k) {
|
|
6355
6355
|
Y.style.display = "none";
|
|
6356
6356
|
continue;
|
|
6357
6357
|
}
|
|
@@ -6363,11 +6363,11 @@ const Uu = `<style type="text/css">
|
|
|
6363
6363
|
Y.style.display = "none";
|
|
6364
6364
|
continue;
|
|
6365
6365
|
}
|
|
6366
|
-
if (P.clone().sub(x).normalize().angleTo(
|
|
6366
|
+
if (P.clone().sub(x).normalize().angleTo(L) > Math.PI / 2) {
|
|
6367
6367
|
Y.style.display = "none";
|
|
6368
6368
|
continue;
|
|
6369
6369
|
}
|
|
6370
|
-
if (I.clone().sub(x).normalize().angleTo(
|
|
6370
|
+
if (I.clone().sub(x).normalize().angleTo(L) > Math.PI / 2) {
|
|
6371
6371
|
Y.style.display = "none";
|
|
6372
6372
|
continue;
|
|
6373
6373
|
}
|
|
@@ -6376,13 +6376,13 @@ const Uu = `<style type="text/css">
|
|
|
6376
6376
|
Y.style.display = "none";
|
|
6377
6377
|
continue;
|
|
6378
6378
|
}
|
|
6379
|
-
const
|
|
6379
|
+
const le = P.clone().project(A), ue = (le.x + 1) / 2 * C, me = (-le.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,
|
|
6383
6383
|
y: ~~He
|
|
6384
6384
|
}, C, S);
|
|
6385
|
-
if (re && re.length === 1 && (
|
|
6385
|
+
if (re && re.length === 1 && (k === P ? (ve = Math.sqrt(Math.pow(re[0].x - ue, 2) + Math.pow(re[0].y - me, 2)), be = ve / se * 50) : k === I && (ve = Math.sqrt(Math.pow(re[0].x - ke, 2) + Math.pow(re[0].y - He, 2)), be = 100 - ve / se * 50)), re && re.length === 2) {
|
|
6386
6386
|
const dt = {
|
|
6387
6387
|
x: (re[0].x + re[1].x) / 2,
|
|
6388
6388
|
y: (re[0].y + re[1].y) / 2
|
|
@@ -6391,8 +6391,8 @@ const Uu = `<style type="text/css">
|
|
|
6391
6391
|
Math.pow(dt.x - ue, 2) + Math.pow(dt.y - me, 2)
|
|
6392
6392
|
) / se * 100;
|
|
6393
6393
|
}
|
|
6394
|
-
const Ct = (Math.PI / 2 - Math.atan2(ke - ue, me - He)) / Math.PI * 180, ge =
|
|
6395
|
-
ct >= se || ct / 2 >= be / 100 * se || ct / 2 >= (1 - be / 100) * se ?
|
|
6394
|
+
const Ct = (Math.PI / 2 - Math.atan2(ke - ue, me - He)) / Math.PI * 180, ge = T.querySelector(".PanoRulerPlugin-rule-label"), ct = ge.children[0].clientWidth;
|
|
6395
|
+
ct >= se || ct / 2 >= be / 100 * se || ct / 2 >= (1 - be / 100) * se ? T.style.display = "none" : (T.style.display = "block", T.style.width = se + "px", T.style.left = ue + "px", T.style.top = me + "px", T.style.transform = `rotate(${-Ct}deg)`, ge.style.left = `${be}%`);
|
|
6396
6396
|
}
|
|
6397
6397
|
}, h = () => ka(d), u = () => {
|
|
6398
6398
|
var g, v;
|
|
@@ -6403,8 +6403,8 @@ const Uu = `<style type="text/css">
|
|
|
6403
6403
|
const v = g.distanceText;
|
|
6404
6404
|
e.options.distanceText = v, Object.values(r).forEach((A) => {
|
|
6405
6405
|
A.rules.forEach((w) => {
|
|
6406
|
-
const [y, x] = w.rule,
|
|
6407
|
-
!C || (C.innerText = v(
|
|
6406
|
+
const [y, x] = w.rule, L = y.distanceTo(x), C = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
6407
|
+
!C || (C.innerText = v(L));
|
|
6408
6408
|
});
|
|
6409
6409
|
});
|
|
6410
6410
|
}
|
|
@@ -6551,10 +6551,10 @@ function hs(i) {
|
|
|
6551
6551
|
o & 1 && (s.rulerItemProp = n[12]), t.$set(s);
|
|
6552
6552
|
},
|
|
6553
6553
|
i(n) {
|
|
6554
|
-
e || (
|
|
6554
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
6555
6555
|
},
|
|
6556
6556
|
o(n) {
|
|
6557
|
-
|
|
6557
|
+
M(t.$$.fragment, n), e = !1;
|
|
6558
6558
|
},
|
|
6559
6559
|
d(n) {
|
|
6560
6560
|
$(t, n);
|
|
@@ -6565,7 +6565,7 @@ function th(i) {
|
|
|
6565
6565
|
let t, e, n = i[0], o = [];
|
|
6566
6566
|
for (let r = 0; r < n.length; r += 1)
|
|
6567
6567
|
o[r] = hs(us(i, n, r));
|
|
6568
|
-
const s = (r) =>
|
|
6568
|
+
const s = (r) => M(o[r], 1, 1, () => {
|
|
6569
6569
|
o[r] = null;
|
|
6570
6570
|
});
|
|
6571
6571
|
return {
|
|
@@ -6586,24 +6586,24 @@ function th(i) {
|
|
|
6586
6586
|
let l;
|
|
6587
6587
|
for (l = 0; l < n.length; l += 1) {
|
|
6588
6588
|
const c = us(r, n, l);
|
|
6589
|
-
o[l] ? (o[l].p(c, a),
|
|
6589
|
+
o[l] ? (o[l].p(c, a), D(o[l], 1)) : (o[l] = hs(c), o[l].c(), D(o[l], 1), o[l].m(t, null));
|
|
6590
6590
|
}
|
|
6591
|
-
for (
|
|
6591
|
+
for (ce(), l = n.length; l < o.length; l += 1)
|
|
6592
6592
|
s(l);
|
|
6593
|
-
|
|
6593
|
+
de();
|
|
6594
6594
|
}
|
|
6595
6595
|
},
|
|
6596
6596
|
i(r) {
|
|
6597
6597
|
if (!e) {
|
|
6598
6598
|
for (let a = 0; a < n.length; a += 1)
|
|
6599
|
-
|
|
6599
|
+
D(o[a]);
|
|
6600
6600
|
e = !0;
|
|
6601
6601
|
}
|
|
6602
6602
|
},
|
|
6603
6603
|
o(r) {
|
|
6604
6604
|
o = o.filter(Boolean);
|
|
6605
6605
|
for (let a = 0; a < o.length; a += 1)
|
|
6606
|
-
|
|
6606
|
+
M(o[a]);
|
|
6607
6607
|
e = !1;
|
|
6608
6608
|
},
|
|
6609
6609
|
d(r) {
|
|
@@ -6615,70 +6615,70 @@ function nh(i, t, e) {
|
|
|
6615
6615
|
var g, v, A, w;
|
|
6616
6616
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
6617
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
|
-
const
|
|
6618
|
+
const L = [
|
|
6619
6619
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
6620
6620
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
6621
6621
|
[{ x: a, y: 0 }, { x: a, y: l }],
|
|
6622
6622
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
6623
6623
|
], C = [];
|
|
6624
|
-
for (let S = 0; S <
|
|
6625
|
-
const
|
|
6626
|
-
|
|
6624
|
+
for (let S = 0; S < L.length; S++) {
|
|
6625
|
+
const k = xa([y, x], [L[S][0], L[S][1]], !0);
|
|
6626
|
+
k && C.push(k);
|
|
6627
6627
|
}
|
|
6628
6628
|
return C.length === 0 ? !1 : C;
|
|
6629
6629
|
}, d = (y, x) => {
|
|
6630
|
-
const
|
|
6630
|
+
const L = y.clone().project(n.camera), C = (L.x + 1) / 2 * a, S = (-L.y + 1) / 2 * l, k = x.clone().project(n.camera), F = (k.x + 1) / 2 * a, H = (-k.y + 1) / 2 * l, G = Math.sqrt(Math.pow(F - C, 2) + Math.pow(H - S, 2));
|
|
6631
6631
|
return {
|
|
6632
6632
|
startLeft: C,
|
|
6633
6633
|
startTop: S,
|
|
6634
6634
|
endLeft: F,
|
|
6635
6635
|
endTop: H,
|
|
6636
|
-
distance:
|
|
6636
|
+
distance: G
|
|
6637
6637
|
};
|
|
6638
|
-
}, h = (y, x,
|
|
6639
|
-
const C = n.camera.position, S = n.camera.getWorldDirection(new _()),
|
|
6638
|
+
}, h = (y, x, L) => {
|
|
6639
|
+
const C = n.camera.position, S = n.camera.getWorldDirection(new _()), k = y.clone().sub(C).normalize().angleTo(S), F = x.clone().sub(C).normalize().angleTo(S), H = y.distanceTo(x), Y = x.clone().sub(x.clone().sub(y).divide(new _(2, 2, 2))).distanceTo(C), { startLeft: P, startTop: I, endLeft: T, endTop: O, distance: N } = d(y, x), X = -((Math.PI / 2 - Math.atan2(T - P, I - O)) / Math.PI) * 180;
|
|
6640
6640
|
let U = !0;
|
|
6641
|
-
|
|
6642
|
-
let
|
|
6643
|
-
const me = c({ x: ~~P, y: ~~I }, { x: ~~
|
|
6644
|
-
if (me && me.length === 1 && (Ke(y,
|
|
6641
|
+
L || (U = !1), !Ke(y, L) && !Ke(x, L) && (U = !1), H < 0.3 && (U = !1), k > Math.PI / 2 && (U = !1), F > Math.PI / 2 && (U = !1), Y / H > 8 && (U = !1);
|
|
6642
|
+
let le = 50, ue = N;
|
|
6643
|
+
const me = c({ x: ~~P, y: ~~I }, { x: ~~T, y: ~~O });
|
|
6644
|
+
if (me && me.length === 1 && (Ke(y, L) ? (ue = Math.sqrt(Math.pow(me[0].x - P, 2) + Math.pow(me[0].y - I, 2)), le = ue / N * 50) : Ke(x, L) && (ue = Math.sqrt(Math.pow(me[0].x - T, 2) + Math.pow(me[0].y - O, 2)), le = 100 - ue / N * 50)), me && me.length === 2) {
|
|
6645
6645
|
const we = {
|
|
6646
6646
|
x: (me[0].x + me[1].x) / 2,
|
|
6647
6647
|
y: (me[0].y + me[1].y) / 2
|
|
6648
6648
|
};
|
|
6649
|
-
|
|
6649
|
+
le = Math.sqrt(Math.pow(we.x - P, 2) + Math.pow(we.y - I, 2)) / N * 100;
|
|
6650
6650
|
}
|
|
6651
6651
|
return {
|
|
6652
6652
|
startLeft: P,
|
|
6653
6653
|
startTop: I,
|
|
6654
|
-
distance:
|
|
6654
|
+
distance: N,
|
|
6655
6655
|
deg: X,
|
|
6656
6656
|
visible: U,
|
|
6657
|
-
labelOffset:
|
|
6657
|
+
labelOffset: le,
|
|
6658
6658
|
ruleLength: H
|
|
6659
6659
|
};
|
|
6660
6660
|
}, u = () => {
|
|
6661
|
-
const y = n.panoIndex, x = o.find((
|
|
6661
|
+
const y = n.panoIndex, x = o.find((G) => G.panoIndex === y);
|
|
6662
6662
|
if (!x)
|
|
6663
6663
|
return e(0, r = []);
|
|
6664
6664
|
if (n.currentMode !== Be.Mode.Panorama)
|
|
6665
6665
|
return e(0, r = []);
|
|
6666
|
-
const
|
|
6667
|
-
const P =
|
|
6666
|
+
const L = n.camera.position, C = n.camera.getWorldDirection(new _()), S = x.lines.map((G) => new _(G.start[0], -G.start[1], -G.start[2])), k = x.lines.map((G) => new _(G.end[0], -G.end[1], -G.end[2])), [F] = S.concat(k).sort((G, Y) => {
|
|
6667
|
+
const P = G.clone().setY(0).sub(L).normalize().angleTo(C.clone().setY(0)), I = Y.clone().setY(0).sub(L).normalize().angleTo(C.clone().setY(0));
|
|
6668
6668
|
return P - I;
|
|
6669
|
-
}), H = x.lines.map((
|
|
6669
|
+
}), H = x.lines.map((G) => {
|
|
6670
6670
|
var ue, me;
|
|
6671
|
-
const Y =
|
|
6672
|
-
return
|
|
6671
|
+
const Y = G.start, P = G.end, { startLeft: I, startTop: T, distance: O, deg: N, visible: Z, labelOffset: X, ruleLength: U } = h(new _(Y[0], -Y[1], -Y[2]), new _(P[0], -P[1], -P[2]), F), le = [];
|
|
6672
|
+
return G.children && ((ue = G.children) == null ? void 0 : ue.length) > 0 && ((me = G.children) == null || me.forEach((we) => {
|
|
6673
6673
|
const ke = we.start, He = we.end, { distance: se } = d(new _(ke[0], -ke[1], -ke[2]), new _(He[0], -He[1], -He[2]));
|
|
6674
|
-
|
|
6674
|
+
le.push({ width: se, state: we.state });
|
|
6675
6675
|
})), {
|
|
6676
6676
|
width: O,
|
|
6677
6677
|
left: I,
|
|
6678
|
-
top:
|
|
6679
|
-
rotateDeg:
|
|
6680
|
-
state:
|
|
6681
|
-
children:
|
|
6678
|
+
top: T,
|
|
6679
|
+
rotateDeg: N,
|
|
6680
|
+
state: G.state,
|
|
6681
|
+
children: le,
|
|
6682
6682
|
labelOffset: X,
|
|
6683
6683
|
visible: Z,
|
|
6684
6684
|
labelElement: s.distanceText(U)
|
|
@@ -6717,7 +6717,7 @@ class oh {
|
|
|
6717
6717
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
6718
6718
|
"style",
|
|
6719
6719
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
6720
|
-
), e && (e.data && this.load(e.data), this.state.options =
|
|
6720
|
+
), e && (e.data && this.load(e.data), this.state.options = W(W({}, this.state.options), e.options || {}), (n = e.options) != null && n.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => J(this, null, function* () {
|
|
6721
6721
|
var s, r;
|
|
6722
6722
|
(r = (s = this.five.getElement()) == null ? void 0 : s.parentNode) == null || r.append(this.container);
|
|
6723
6723
|
})), this.five.once("dispose", () => this.dispose());
|
|
@@ -6870,7 +6870,7 @@ class lh extends Ot {
|
|
|
6870
6870
|
this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
|
|
6871
6871
|
visible: !0,
|
|
6872
6872
|
enabled: !0,
|
|
6873
|
-
config:
|
|
6873
|
+
config: W(W({}, this.state.config), n || {})
|
|
6874
6874
|
});
|
|
6875
6875
|
}
|
|
6876
6876
|
enable(e = Sn) {
|
|
@@ -6913,7 +6913,7 @@ class lh extends Ot {
|
|
|
6913
6913
|
this.state = {
|
|
6914
6914
|
visible: (s = e.visible) != null ? s : o.visible,
|
|
6915
6915
|
enabled: (r = e.enabled) != null ? r : o.enabled,
|
|
6916
|
-
config:
|
|
6916
|
+
config: W(W({}, o.config), e.config || {})
|
|
6917
6917
|
}, this.hooks.emit("stateChange", {
|
|
6918
6918
|
state: this.state,
|
|
6919
6919
|
prevState: o,
|
|
@@ -6923,7 +6923,7 @@ class lh extends Ot {
|
|
|
6923
6923
|
load(e, n, o = !0) {
|
|
6924
6924
|
return J(this, null, function* () {
|
|
6925
6925
|
const s = yield this.formatData(e);
|
|
6926
|
-
JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data =
|
|
6926
|
+
JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = W({}, s), this.init(), n && this.setState(n, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
|
|
6927
6927
|
});
|
|
6928
6928
|
}
|
|
6929
6929
|
formatData(e) {
|
|
@@ -7211,7 +7211,7 @@ const fh = 1, mh = 3, ph = new An(16777215), gh = new An(6522623), Ah = new An(1
|
|
|
7211
7211
|
lineRenderOrder: 20,
|
|
7212
7212
|
pointsRenderOrder: 20
|
|
7213
7213
|
};
|
|
7214
|
-
he(
|
|
7214
|
+
he(W({}, La), { dashed: !0 });
|
|
7215
7215
|
const Ch = {
|
|
7216
7216
|
pointTexture: Da,
|
|
7217
7217
|
pointSize: yh,
|
|
@@ -7238,73 +7238,78 @@ function et(i) {
|
|
|
7238
7238
|
}
|
|
7239
7239
|
function Ph() {
|
|
7240
7240
|
const i = document.createElement("div");
|
|
7241
|
-
return i.setAttribute("style", "backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);"), i.style.padding = "3px 6px", i.style.lineHeight = "1", i.style.textAlign = "center", i.style.transform = "translate(-50%, -50%)", i.style.borderRadius = "100px", i.style.fontSize = "14px", i.style.color = "#fff", i.style.background = "rgba(195,195,195,0.70)", i.style.border = "0.5px solid rgba(255,255,255,0.6)", i.style.
|
|
7241
|
+
return i.setAttribute("style", "backdrop-filter: blur(4px);-webkit-backdrop-filter: blur(4px);"), i.style.width = "max-content", i.style.padding = "3px 6px", i.style.lineHeight = "1", i.style.textAlign = "center", i.style.transform = "translate(-50%, -50%)", i.style.borderRadius = "100px", i.style.fontSize = "14px", i.style.color = "#fff", i.style.background = "rgba(195,195,195,0.70)", i.style.border = "0.5px solid rgba(255,255,255,0.6)", i.style.cursor = "pointer", i;
|
|
7242
7242
|
}
|
|
7243
7243
|
function Ih(i) {
|
|
7244
7244
|
const t = document.createElement("div");
|
|
7245
|
-
return t.id = "distance_" + i.id, t.classList.add("five-plugin-measure__distance"), t.style.opacity = "0", t.style.position = "absolute", t.style.left = "0", t.style.top = "0", t.style.transform = "translate3d(0, 0, 0)", t.style.transformOrigin = "left top", t;
|
|
7245
|
+
return t.id = "distance_" + i.id, t.classList.add("five-plugin-measure__distance"), t.style.opacity = "0", t.style.position = "absolute", t.style.left = "0", t.style.top = "0", t.style.width = "0", t.style.height = "0", t.style.transform = "translate3d(0, 0, 0)", t.style.transformOrigin = "left top", t;
|
|
7246
7246
|
}
|
|
7247
7247
|
function xh(i) {
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7248
|
+
let t = !0;
|
|
7249
|
+
const { line: e } = i, n = e.id, o = Ph(), s = Ih(e), r = i.userDistanceItem, a = new _(0, 0, 0), l = {
|
|
7250
|
+
lineID: n,
|
|
7251
|
+
ndcPosition: a,
|
|
7252
|
+
update: u,
|
|
7253
|
+
appendTo: p,
|
|
7254
|
+
remove: m,
|
|
7255
|
+
highlight: d,
|
|
7256
|
+
unHighlight: h,
|
|
7257
|
+
getCurrentContent: g,
|
|
7258
|
+
setItemSelectable: v
|
|
7257
7259
|
};
|
|
7258
|
-
s != null &&
|
|
7259
|
-
function l() {
|
|
7260
|
-
var g;
|
|
7261
|
-
(g = i.clickCallback) == null || g.call(i, a);
|
|
7262
|
-
}
|
|
7260
|
+
s.style.pointerEvents = t ? "all" : "none", r != null && r.element ? s.appendChild(r.element) : s.appendChild(o);
|
|
7263
7261
|
function c() {
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
n.style.border = "0.5px solid #95AEFF", n.style.background = "linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)";
|
|
7262
|
+
var A;
|
|
7263
|
+
(A = i.clickCallback) == null || A.call(i, l);
|
|
7267
7264
|
}
|
|
7268
7265
|
function d() {
|
|
7269
|
-
if (
|
|
7270
|
-
return
|
|
7271
|
-
|
|
7266
|
+
if (r)
|
|
7267
|
+
return r.highlight();
|
|
7268
|
+
o.style.border = "0.5px solid #95AEFF", o.style.background = "linear-gradient(90deg, #95AEFF 0%, #6386FF 100%)";
|
|
7272
7269
|
}
|
|
7273
|
-
function h(
|
|
7274
|
-
if (
|
|
7275
|
-
|
|
7270
|
+
function h() {
|
|
7271
|
+
if (r)
|
|
7272
|
+
return r.unHighlight();
|
|
7273
|
+
o.style.border = "0.5px solid rgba(255,255,255,0.6)", o.style.background = "rgba(195,195,195,0.70)";
|
|
7274
|
+
}
|
|
7275
|
+
function u(A) {
|
|
7276
|
+
if (e.mesh.visible === !1) {
|
|
7277
|
+
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7276
7278
|
return;
|
|
7277
7279
|
}
|
|
7278
|
-
const
|
|
7279
|
-
if (!
|
|
7280
|
+
const w = A.getElement();
|
|
7281
|
+
if (!w)
|
|
7280
7282
|
return;
|
|
7281
|
-
const
|
|
7282
|
-
if (
|
|
7283
|
+
const y = w.clientWidth, x = w.clientHeight, L = y / 2, C = x / 2;
|
|
7284
|
+
if (e.points.length < 2)
|
|
7283
7285
|
return;
|
|
7284
|
-
const [
|
|
7285
|
-
if ((() => !(Math.abs(
|
|
7286
|
-
|
|
7286
|
+
const [S, k] = e.points, F = S.position.clone().project(A.camera), H = k.position.clone().project(A.camera), G = F.clone().lerp(H, 0.5), Y = new Qe(F.x * L, F.y * C), P = new Qe(H.x * L, H.y * C), I = Y.distanceTo(P);
|
|
7287
|
+
if ((() => !(Math.abs(F.z) > 1 || Math.abs(H.z) > 1 || !et(F) && !et(H) || !et(G) || I === 0))() === !1) {
|
|
7288
|
+
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7287
7289
|
return;
|
|
7288
7290
|
}
|
|
7289
|
-
const
|
|
7290
|
-
|
|
7291
|
-
const
|
|
7292
|
-
|
|
7291
|
+
const O = (G.x + 1) / 2 * y, N = -(G.y - 1) / 2 * x, X = -(Math.atan((Y.y - P.y) / (Y.x - P.x)) * 180) / Math.PI, U = s.parentElement && o.clientWidth > I ? -20 : 0;
|
|
7292
|
+
s.style.transform = `translate(${O}px, ${N}px) rotate(${X}deg) translateY(${U}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
|
|
7293
|
+
const le = g();
|
|
7294
|
+
o.innerText = le;
|
|
7293
7295
|
}
|
|
7294
|
-
function
|
|
7295
|
-
|
|
7296
|
-
}
|
|
7297
|
-
function p() {
|
|
7298
|
-
n.removeEventListener("click", l), o.remove();
|
|
7296
|
+
function p(A) {
|
|
7297
|
+
A.appendChild(s), s.addEventListener("click", c);
|
|
7299
7298
|
}
|
|
7300
7299
|
function m() {
|
|
7301
|
-
|
|
7302
|
-
|
|
7300
|
+
o.removeEventListener("click", c), s.remove();
|
|
7301
|
+
}
|
|
7302
|
+
function g() {
|
|
7303
|
+
var S, k, F;
|
|
7304
|
+
if (e.points.length < 2)
|
|
7303
7305
|
return "";
|
|
7304
|
-
const [
|
|
7305
|
-
return
|
|
7306
|
+
const [A, w] = e.points, y = A.position.clone().distanceTo(w.position), x = (S = i.line.text) != null ? S : i.line.model.config.defaultText, L = (F = (k = i.line.model.config) == null ? void 0 : k.getDistanceText) == null ? void 0 : F.call(k, y), C = x != null ? x : L;
|
|
7307
|
+
return C != null ? C : y.toFixed(2) + "m";
|
|
7306
7308
|
}
|
|
7307
|
-
|
|
7309
|
+
function v(A) {
|
|
7310
|
+
t = A;
|
|
7311
|
+
}
|
|
7312
|
+
return l;
|
|
7308
7313
|
}
|
|
7309
7314
|
class $t {
|
|
7310
7315
|
constructor(t, e, n) {
|
|
@@ -7433,7 +7438,7 @@ class fi {
|
|
|
7433
7438
|
this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((t) => t.distanceItem.update(this.five));
|
|
7434
7439
|
});
|
|
7435
7440
|
var n, o;
|
|
7436
|
-
this.five = t.five, this.hook = t.hook, this.model = t.model, this.config = t.config, this.magnifier = t.magnifier, this.container = t.container, this.fiveHelper = t.fiveHelper, this.isMobile = (o = (n = t.openParams) == null ? void 0 : n.isMobile) != null ? o : !1, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new $t(new $e([0, 0, 0]), new $e([0, 0, 0]), this.model), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
|
|
7441
|
+
this.five = t.five, this.hook = t.hook, this.model = t.model, this.config = t.config, this.magnifier = t.magnifier, this.container = t.container, this.fiveHelper = t.fiveHelper, this.isMobile = (o = (n = t.openParams) == null ? void 0 : n.isMobile) != null ? o : !1, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new $t(new $e([0, 0, 0]), new $e([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
|
|
7437
7442
|
const e = this.five.getElement();
|
|
7438
7443
|
e && (e.addEventListener("touchstart", Mn), e.addEventListener("contextmenu", Mn));
|
|
7439
7444
|
}
|
|
@@ -7523,7 +7528,7 @@ class Tn extends fi {
|
|
|
7523
7528
|
const o = new $e(this.mouseGroup.position), s = this.lastPoint;
|
|
7524
7529
|
if (o && (this.lastPoint = o), o && s) {
|
|
7525
7530
|
const r = new $t(s, o, this.model);
|
|
7526
|
-
r.distanceItem.appendTo(this.container), this.polyline.addLine(r), this.group.add(r.mesh), r.distanceItem.update(this.five);
|
|
7531
|
+
r.distanceItem.setItemSelectable(!1), r.distanceItem.appendTo(this.container), this.polyline.addLine(r), this.group.add(r.mesh), r.distanceItem.update(this.five);
|
|
7527
7532
|
}
|
|
7528
7533
|
this.pressPoint = void 0, this.hasAppendMouseGroup = !1, this.magnifier.remove(), this.group.remove(this.mouseGroup), this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", o.position);
|
|
7529
7534
|
});
|
|
@@ -7644,7 +7649,7 @@ class ps extends fi {
|
|
|
7644
7649
|
const o = new vn(n);
|
|
7645
7650
|
this.hammer = o;
|
|
7646
7651
|
}
|
|
7647
|
-
this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive)
|
|
7652
|
+
this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
7648
7653
|
}
|
|
7649
7654
|
dispose() {
|
|
7650
7655
|
var e;
|
|
@@ -7854,7 +7859,7 @@ class As extends fi {
|
|
|
7854
7859
|
onClick: this.deleteDomClickCallback,
|
|
7855
7860
|
cancelDelete: this.cancelDeleteClickCallback
|
|
7856
7861
|
}).appendTo(this.container), this.model.getAllLines().forEach((o) => {
|
|
7857
|
-
o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.group.add(o.mesh);
|
|
7862
|
+
o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), o.distanceItem.setItemSelectable(!0), this.group.add(o.mesh);
|
|
7858
7863
|
});
|
|
7859
7864
|
const n = this.five.getElement();
|
|
7860
7865
|
if (n) {
|
|
@@ -7862,7 +7867,7 @@ class As extends fi {
|
|
|
7862
7867
|
const o = new vn(n);
|
|
7863
7868
|
this.hammer = o, o.on("pan", this.onPan), o.on("panstart", this.onPanStart), o.on("panend", this.onPanEnd);
|
|
7864
7869
|
}
|
|
7865
|
-
this.
|
|
7870
|
+
this.updateDistanceUI(), this.five.needsRender = !0, this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsPanGesture", this.wantsPanGesture), this.model.hook.on("polylineRemoved", this.polylineRemoved);
|
|
7866
7871
|
}
|
|
7867
7872
|
dispose() {
|
|
7868
7873
|
var e;
|
|
@@ -8040,7 +8045,7 @@ class Gh {
|
|
|
8040
8045
|
const t = this.five.model.intersectRaycaster(this.raycaster)[0];
|
|
8041
8046
|
return t || null;
|
|
8042
8047
|
});
|
|
8043
|
-
this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = Ma(
|
|
8048
|
+
this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = Ma(W({ isMobile: !0 }, t.openParams.crossHairParameter)), this.fiveHelper = t.fiveHelper, this.container.innerHTML = Th, this.container.classList.add("range-piece-controller"), this.content = this.container.querySelector(".range-piece__content"), this.content && (this.content.style.transform = `matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`, this.content.style.opacity = `${this.pieceStyl.opacity}`), t.container.append(this.container), this.intersectMesh = new Fn(
|
|
8044
8049
|
new Dl(0.04, 0.08, 32),
|
|
8045
8050
|
new un({ color: 1245179, opacity: 0, side: Wr, transparent: !0 })
|
|
8046
8051
|
), this.container.addEventListener("animationend", this.computedCenterMouseXY), this.five.on("cameraUpdate", this.onCameraDirectionUpdate), this.hook.on("willChangeState", this.onWillChangeState);
|
|
@@ -8630,7 +8635,7 @@ class vs {
|
|
|
8630
8635
|
};
|
|
8631
8636
|
});
|
|
8632
8637
|
var r;
|
|
8633
|
-
this._params = e, this.measureController = t, this.mode = (r = e.mode) != null ? r : "pc", this.container = document.createElement("div"), this.container.innerHTML = this.mode === "mobile" ? Wh : Uh, this.container.classList.add("fpm__ui-controller", this.mode), e.container.appendChild(this.container);
|
|
8638
|
+
this._params = e, this.measureController = t, this.mode = (r = e.mode) != null ? r : "pc", this.container = document.createElement("div"), this.container.innerHTML = this.mode === "mobile" ? Wh : Uh, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)", e.container.appendChild(this.container);
|
|
8634
8639
|
const n = this.container.querySelectorAll(".fpm__text"), o = this.container.querySelector(".fpm_ui-bg"), s = this.container.querySelector(".fpm_operating-space");
|
|
8635
8640
|
Object.assign(o == null ? void 0 : o.style, Zh), Object.assign(s == null ? void 0 : s.style, Vh), Object.assign(this.container.style, Jh), n.forEach((a) => Object.assign(a.style, Kh));
|
|
8636
8641
|
}
|
|
@@ -8752,17 +8757,17 @@ class sf {
|
|
|
8752
8757
|
this.controller = new e[t](n), this.hook.emit("modeChange", t);
|
|
8753
8758
|
});
|
|
8754
8759
|
var o, s, r, a;
|
|
8755
|
-
this.five = t, this.params = e, this.config = ci(e, ["openParams", "magnifierParams"]), this.model = new co(this.config), this.fiveHelper = new uh(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new dh(t, (r = e.magnifierParams) != null ? r : { width: 190, height: 190, scale: 2 }), this.group = new Vi(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0"
|
|
8760
|
+
this.five = t, this.params = e, this.config = ci(e, ["openParams", "magnifierParams"]), this.model = new co(this.config), this.fiveHelper = new uh(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new dh(t, (r = e.magnifierParams) != null ? r : { width: 190, height: 190, scale: 2 }), this.group = new Vi(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
8756
8761
|
const n = (a = this.params.openParams) != null ? a : {};
|
|
8757
8762
|
if (this.params.useUIController !== !1) {
|
|
8758
|
-
const l =
|
|
8763
|
+
const l = W({
|
|
8759
8764
|
container: this.container,
|
|
8760
8765
|
openParams: n
|
|
8761
8766
|
}, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
|
|
8762
8767
|
this.useUIController = new vs(this, l);
|
|
8763
8768
|
}
|
|
8764
8769
|
if (this.params.useGuideController !== !1) {
|
|
8765
|
-
const l =
|
|
8770
|
+
const l = W({
|
|
8766
8771
|
container: this.container
|
|
8767
8772
|
}, typeof this.params.useGuideController == "object" ? this.params.useGuideController : {});
|
|
8768
8773
|
this.useGuideController = new nf(this, l);
|
|
@@ -8834,7 +8839,7 @@ class sf {
|
|
|
8834
8839
|
var e;
|
|
8835
8840
|
if (this.isMobile = t, this.params.useUIController !== !1) {
|
|
8836
8841
|
(e = this.useUIController) == null || e.dispose();
|
|
8837
|
-
const n =
|
|
8842
|
+
const n = W({
|
|
8838
8843
|
container: this.container,
|
|
8839
8844
|
mode: this.isMobile ? "mobile" : "pc"
|
|
8840
8845
|
}, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
|
|
@@ -8865,7 +8870,7 @@ class sf {
|
|
|
8865
8870
|
container: this.container,
|
|
8866
8871
|
fiveHelper: this.fiveHelper,
|
|
8867
8872
|
openParams: t,
|
|
8868
|
-
mouseGroup: Ma(
|
|
8873
|
+
mouseGroup: Ma(W({}, t.crossHairParameter)),
|
|
8869
8874
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
8870
8875
|
};
|
|
8871
8876
|
}
|
|
@@ -8980,20 +8985,20 @@ function hf(i, t, e) {
|
|
|
8980
8985
|
);
|
|
8981
8986
|
const y = (C) => {
|
|
8982
8987
|
const S = Object.keys(u);
|
|
8983
|
-
let
|
|
8984
|
-
for (;
|
|
8985
|
-
const F =
|
|
8988
|
+
let k = C.target;
|
|
8989
|
+
for (; k; ) {
|
|
8990
|
+
const F = k.getAttribute("class");
|
|
8986
8991
|
if (!F) {
|
|
8987
|
-
|
|
8992
|
+
k = k.parentNode;
|
|
8988
8993
|
continue;
|
|
8989
8994
|
}
|
|
8990
8995
|
if (F.includes("PanoSpatialTagPlugin__tag-content")) {
|
|
8991
|
-
|
|
8996
|
+
k = null;
|
|
8992
8997
|
break;
|
|
8993
8998
|
}
|
|
8994
8999
|
S.forEach((H) => {
|
|
8995
9000
|
F.includes(H) && u[H](n);
|
|
8996
|
-
}),
|
|
9001
|
+
}), k = k.parentNode;
|
|
8997
9002
|
}
|
|
8998
9003
|
};
|
|
8999
9004
|
Ue(() => {
|
|
@@ -9002,7 +9007,7 @@ function hf(i, t, e) {
|
|
|
9002
9007
|
const x = Ra.subscribe((C) => {
|
|
9003
9008
|
if (C === null)
|
|
9004
9009
|
return;
|
|
9005
|
-
const [S,
|
|
9010
|
+
const [S, k] = C.split("-PanoSpatialTagPlugin-");
|
|
9006
9011
|
n === S && (p.emit("clickOrigin", { id: n, show: A }), w || (e(10, A = d), e(12, d = !d), w = setTimeout(
|
|
9007
9012
|
() => {
|
|
9008
9013
|
w = void 0;
|
|
@@ -9015,7 +9020,7 @@ function hf(i, t, e) {
|
|
|
9015
9020
|
}), wt(() => {
|
|
9016
9021
|
p.emit("destroyTag", { id: n }), x(), h();
|
|
9017
9022
|
});
|
|
9018
|
-
function
|
|
9023
|
+
function L(C) {
|
|
9019
9024
|
ze[C ? "unshift" : "push"](() => {
|
|
9020
9025
|
v = C, e(9, v);
|
|
9021
9026
|
});
|
|
@@ -9039,7 +9044,7 @@ function hf(i, t, e) {
|
|
|
9039
9044
|
h,
|
|
9040
9045
|
u,
|
|
9041
9046
|
p,
|
|
9042
|
-
|
|
9047
|
+
L
|
|
9043
9048
|
];
|
|
9044
9049
|
}
|
|
9045
9050
|
class ff extends oe {
|
|
@@ -9209,9 +9214,9 @@ class vf {
|
|
|
9209
9214
|
}
|
|
9210
9215
|
}
|
|
9211
9216
|
const Pi = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", aA = (i, t) => {
|
|
9212
|
-
var X, U,
|
|
9217
|
+
var X, U, le, ue, me, we, ke, He;
|
|
9213
9218
|
let e = t == null ? void 0 : t.container, n = 1.4;
|
|
9214
|
-
const o = (X = t == null ? void 0 : t.wait) != null ? X : 200, s = (U = t == null ? void 0 : t.maxNumberOnScreen) != null ? U : 3, r = (
|
|
9219
|
+
const o = (X = t == null ? void 0 : t.wait) != null ? X : 200, s = (U = t == null ? void 0 : t.maxNumberOnScreen) != null ? U : 3, r = (le = t == null ? void 0 : t.minRad) != null ? le : 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, h = bn(i), u = document.createElement("div");
|
|
9215
9220
|
u.classList.add("PanoSpatialTagPlugin"), Object.assign(u.style, mf);
|
|
9216
9221
|
const p = new Ye();
|
|
9217
9222
|
let m = new Image();
|
|
@@ -9230,7 +9235,7 @@ const Pi = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9230
9235
|
target: u,
|
|
9231
9236
|
props: { origins: g.origins }
|
|
9232
9237
|
}), A = (se, ve) => {
|
|
9233
|
-
|
|
9238
|
+
L(), ve && C();
|
|
9234
9239
|
}, w = () => {
|
|
9235
9240
|
g.forbidden && (g.forbidden = !1, C());
|
|
9236
9241
|
}, y = (se, ve) => {
|
|
@@ -9262,13 +9267,13 @@ const Pi = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9262
9267
|
}), setTimeout(() => {
|
|
9263
9268
|
g.tags.forEach((ge) => {
|
|
9264
9269
|
ge.destroying && (ge.app.$destroy(), ge = null);
|
|
9265
|
-
}), g.tags = g.tags.filter((ge) => !ge.destroying),
|
|
9270
|
+
}), g.tags = g.tags.filter((ge) => !ge.destroying), L();
|
|
9266
9271
|
}, 1900);
|
|
9267
9272
|
}, x = (se) => {
|
|
9268
9273
|
se !== Be.Mode.Panorama && !g.forbidden && (v.$set({ origins: [] }), g.tags.forEach((ve) => {
|
|
9269
9274
|
ve.app.$destroy(), ve = null;
|
|
9270
9275
|
}), g.origins = [], g.tags = [], g.forbidden = !0);
|
|
9271
|
-
},
|
|
9276
|
+
}, L = () => {
|
|
9272
9277
|
if (g.forbidden || !g.enabled)
|
|
9273
9278
|
return;
|
|
9274
9279
|
const se = i.camera, ve = se.getWorldDirection(new E.Vector3());
|
|
@@ -9286,7 +9291,7 @@ const Pi = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9286
9291
|
g.forbidden || !g.enabled || (g.timeoutId && clearTimeout(g.timeoutId), g.timeoutId = setTimeout(() => {
|
|
9287
9292
|
g.timeoutId = void 0;
|
|
9288
9293
|
const se = S();
|
|
9289
|
-
se.length && (g.tags = g.tags.concat(se),
|
|
9294
|
+
se.length && (g.tags = g.tags.concat(se), L());
|
|
9290
9295
|
}, o));
|
|
9291
9296
|
}, S = () => {
|
|
9292
9297
|
const { clientWidth: se, clientHeight: ve } = i.getElement(), be = [], re = i.camera, it = new E.Frustum(), Ct = new E.Matrix4(), ge = re.getWorldDirection(new E.Vector3());
|
|
@@ -9387,7 +9392,7 @@ const Pi = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9387
9392
|
}
|
|
9388
9393
|
}
|
|
9389
9394
|
return be;
|
|
9390
|
-
},
|
|
9395
|
+
}, k = (se) => {
|
|
9391
9396
|
g.points = se.points.map((ve) => {
|
|
9392
9397
|
var be, re;
|
|
9393
9398
|
return {
|
|
@@ -9402,7 +9407,7 @@ const Pi = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9402
9407
|
g.intersectObjects = se, C();
|
|
9403
9408
|
}, H = () => {
|
|
9404
9409
|
g.enabled = !0, C();
|
|
9405
|
-
},
|
|
9410
|
+
}, G = () => {
|
|
9406
9411
|
g.enabled = !1, v.$set({ origins: [] }), g.tags.forEach((se) => {
|
|
9407
9412
|
se.app.$destroy(), se = null;
|
|
9408
9413
|
}), g.origins = [], g.tags = [];
|
|
@@ -9418,28 +9423,28 @@ const Pi = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9418
9423
|
g.tags.forEach((ve) => {
|
|
9419
9424
|
ve.id === se && ve.app.$set({ folded: !1 });
|
|
9420
9425
|
});
|
|
9421
|
-
},
|
|
9426
|
+
}, T = (se) => {
|
|
9422
9427
|
g.tags.forEach((ve) => {
|
|
9423
9428
|
ve.id === se && ve.app.$set({ folded: !0 });
|
|
9424
9429
|
});
|
|
9425
9430
|
}, O = () => {
|
|
9426
|
-
i.once("renderFrame",
|
|
9427
|
-
},
|
|
9431
|
+
i.once("renderFrame", L);
|
|
9432
|
+
}, N = () => {
|
|
9428
9433
|
e || (e = i.getElement().parentElement), e && e.appendChild(u), 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);
|
|
9429
9434
|
}, Z = () => {
|
|
9430
9435
|
m = null, h.disposeAll(), v.$destroy(), g.tags.forEach((se) => {
|
|
9431
9436
|
se.app.$destroy(), se = null;
|
|
9432
|
-
}), g.origins = [], g.tags = [], i.off("modelLoaded",
|
|
9437
|
+
}), g.origins = [], g.tags = [], i.off("modelLoaded", N), 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);
|
|
9433
9438
|
};
|
|
9434
|
-
return window.addEventListener("resize", O, !1), (He = i == null ? void 0 : i.model) != null && He.loaded ?
|
|
9435
|
-
load:
|
|
9439
|
+
return window.addEventListener("resize", O, !1), (He = i == null ? void 0 : i.model) != null && He.loaded ? N() : i.once("modelLoaded", N), i.on("dispose", Z), {
|
|
9440
|
+
load: k,
|
|
9436
9441
|
setIntersectObjects: F,
|
|
9437
9442
|
unfoldAll: Y,
|
|
9438
9443
|
foldAll: P,
|
|
9439
9444
|
unfold: I,
|
|
9440
|
-
fold:
|
|
9445
|
+
fold: T,
|
|
9441
9446
|
enable: H,
|
|
9442
|
-
disable:
|
|
9447
|
+
disable: G,
|
|
9443
9448
|
hooks: p,
|
|
9444
9449
|
dispose: Z
|
|
9445
9450
|
};
|
|
@@ -9520,10 +9525,10 @@ function Ds(i, t) {
|
|
|
9520
9525
|
r & 2 && (a.itemLabel = t[26]), r & 1 && (a.hooks = t[0]), n.$set(a);
|
|
9521
9526
|
},
|
|
9522
9527
|
i(s) {
|
|
9523
|
-
o || (
|
|
9528
|
+
o || (D(n.$$.fragment, s), o = !0);
|
|
9524
9529
|
},
|
|
9525
9530
|
o(s) {
|
|
9526
|
-
|
|
9531
|
+
M(n.$$.fragment, s), o = !1;
|
|
9527
9532
|
},
|
|
9528
9533
|
d(s) {
|
|
9529
9534
|
s && z(e), $(n, s);
|
|
@@ -9551,18 +9556,18 @@ function If(i) {
|
|
|
9551
9556
|
o = yt(t, i[9].bind(t)), s = !0;
|
|
9552
9557
|
},
|
|
9553
9558
|
p(l, [c]) {
|
|
9554
|
-
c & 3 && (r = l[1],
|
|
9559
|
+
c & 3 && (r = l[1], ce(), e = Je(e, c, a, 1, l, r, n, t, lt, Ds, null, ks), de()), c & 16 && R(t, "opacity", l[4] ? 1 : 0);
|
|
9555
9560
|
},
|
|
9556
9561
|
i(l) {
|
|
9557
9562
|
if (!s) {
|
|
9558
9563
|
for (let c = 0; c < r.length; c += 1)
|
|
9559
|
-
|
|
9564
|
+
D(e[c]);
|
|
9560
9565
|
s = !0;
|
|
9561
9566
|
}
|
|
9562
9567
|
},
|
|
9563
9568
|
o(l) {
|
|
9564
9569
|
for (let c = 0; c < e.length; c += 1)
|
|
9565
|
-
|
|
9570
|
+
M(e[c]);
|
|
9566
9571
|
s = !1;
|
|
9567
9572
|
},
|
|
9568
9573
|
d(l) {
|
|
@@ -9578,13 +9583,13 @@ function kf(i, t, e) {
|
|
|
9578
9583
|
const { Raycaster: n, Vector3: o } = E;
|
|
9579
9584
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, h = null, u, p, m = [], g = !0;
|
|
9580
9585
|
const v = (P, I) => {
|
|
9581
|
-
const
|
|
9582
|
-
|
|
9583
|
-
const [X] = P.model.intersectRaycaster(
|
|
9586
|
+
const T = new n(), O = P.camera.position.clone(), N = new o().fromArray(I.modelPosition), Z = N.distanceTo(O);
|
|
9587
|
+
T.set(O.clone(), N.clone().sub(O).normalize());
|
|
9588
|
+
const [X] = P.model.intersectRaycaster(T);
|
|
9584
9589
|
return !(X && X.distance + 1 < Z);
|
|
9585
9590
|
}, A = (P, I) => {
|
|
9586
|
-
const
|
|
9587
|
-
return [
|
|
9591
|
+
const T = new o(I.modelPosition[0], I.modelPosition[1], I.modelPosition[2]), O = P.project2d(T), N = O == null ? void 0 : O.x, Z = O == null ? void 0 : O.y;
|
|
9592
|
+
return [N, Z];
|
|
9588
9593
|
}, w = (P) => `translate(${P[0]}px, ${P[1]}px)`, y = (P, I) => m.length === 0 ? !1 : !!m.find((O) => P[0] >= O[0] - I && P[0] <= O[0] + I || P[1] >= O[1] - Ls && P[1] <= O[1] + Ls);
|
|
9589
9594
|
function x(P, I) {
|
|
9590
9595
|
switch (I) {
|
|
@@ -9598,52 +9603,52 @@ function kf(i, t, e) {
|
|
|
9598
9603
|
return Math.ceil(-92.59 * P + 300);
|
|
9599
9604
|
}
|
|
9600
9605
|
}
|
|
9601
|
-
const
|
|
9602
|
-
const
|
|
9603
|
-
const Z = A(P,
|
|
9606
|
+
const L = (P, I) => {
|
|
9607
|
+
const T = I.map((N) => {
|
|
9608
|
+
const Z = A(P, N), X = N.name.length * xf, U = x(N.modelPosition[1], c), ue = (r ? v(P, N) : !0) && !y([Z[0], Z[1] + U], X);
|
|
9604
9609
|
if (!ue)
|
|
9605
|
-
return he(
|
|
9610
|
+
return he(W({}, N), { visible: ue });
|
|
9606
9611
|
m.push(Z);
|
|
9607
9612
|
const me = w(Z);
|
|
9608
|
-
return he(
|
|
9613
|
+
return he(W({}, N), {
|
|
9609
9614
|
visible: ue,
|
|
9610
9615
|
transform: me,
|
|
9611
9616
|
strokeLength: U
|
|
9612
9617
|
});
|
|
9613
|
-
}), O =
|
|
9614
|
-
itemLabelItem:
|
|
9615
|
-
distance: new o(
|
|
9616
|
-
})).sort((
|
|
9617
|
-
return
|
|
9618
|
-
const Z = O.findIndex((X) => X.itemLabelItem.id ===
|
|
9619
|
-
return Z !== void 0 ? he(
|
|
9618
|
+
}), O = T.filter(({ visible: N }) => N).map((N) => ({
|
|
9619
|
+
itemLabelItem: N,
|
|
9620
|
+
distance: new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]).clone().distanceTo(P.camera.position)
|
|
9621
|
+
})).sort((N, Z) => N.distance - Z.distance);
|
|
9622
|
+
return T.map((N) => {
|
|
9623
|
+
const Z = O.findIndex((X) => X.itemLabelItem.id === N.id);
|
|
9624
|
+
return Z !== void 0 ? he(W({}, N), { zIndex: Z * 10 }) : N;
|
|
9620
9625
|
});
|
|
9621
9626
|
}, C = () => {
|
|
9622
|
-
m = [], e(1, h =
|
|
9627
|
+
m = [], e(1, h = L(s, h));
|
|
9623
9628
|
};
|
|
9624
9629
|
Ki(() => {
|
|
9625
9630
|
H();
|
|
9626
9631
|
});
|
|
9627
9632
|
const S = () => {
|
|
9628
|
-
e(4, g = !1),
|
|
9633
|
+
e(4, g = !1), k();
|
|
9629
9634
|
};
|
|
9630
9635
|
Ue(() => {
|
|
9631
9636
|
e(1, h = a), d = a, C(), F(), s.on("cameraUpdate", S);
|
|
9632
9637
|
});
|
|
9633
|
-
const
|
|
9638
|
+
const k = Ha(
|
|
9634
9639
|
() => {
|
|
9635
9640
|
e(4, g = !0), C();
|
|
9636
9641
|
},
|
|
9637
9642
|
300
|
|
9638
9643
|
), F = () => {
|
|
9639
|
-
window.addEventListener("resize",
|
|
9644
|
+
window.addEventListener("resize", G, !1);
|
|
9640
9645
|
}, H = () => {
|
|
9641
9646
|
d !== a && (e(1, h = a), d = a, C());
|
|
9642
|
-
},
|
|
9647
|
+
}, G = () => {
|
|
9643
9648
|
s.once("renderFrame", C);
|
|
9644
9649
|
};
|
|
9645
9650
|
wt(() => {
|
|
9646
|
-
s.off("cameraUpdate", S), window.removeEventListener("resize",
|
|
9651
|
+
s.off("cameraUpdate", S), window.removeEventListener("resize", G, !1);
|
|
9647
9652
|
});
|
|
9648
9653
|
function Y() {
|
|
9649
9654
|
u = this.clientWidth, p = this.clientHeight, e(2, u), e(3, p);
|
|
@@ -9683,7 +9688,7 @@ class Df extends oe {
|
|
|
9683
9688
|
}
|
|
9684
9689
|
}
|
|
9685
9690
|
function Lf(i) {
|
|
9686
|
-
return i.model_item_labels.map((t) =>
|
|
9691
|
+
return i.model_item_labels.map((t) => W({
|
|
9687
9692
|
modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
|
|
9688
9693
|
}, t));
|
|
9689
9694
|
}
|
|
@@ -9819,22 +9824,22 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9819
9824
|
A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
9820
9825
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
9821
9826
|
}, c = () => e.rectPoints.map((A, w) => {
|
|
9822
|
-
const y = new E.BufferGeometry(), x = 128,
|
|
9823
|
-
|
|
9827
|
+
const y = new E.BufferGeometry(), x = 128, L = [];
|
|
9828
|
+
L.push(...A[0].toArray());
|
|
9824
9829
|
for (let P = 1; P < x; P++)
|
|
9825
|
-
|
|
9830
|
+
L.push(
|
|
9826
9831
|
A[0].x + (A[1].x - A[0].x) * P / x,
|
|
9827
9832
|
A[0].y + (A[1].y - A[0].y) * P / x,
|
|
9828
9833
|
A[0].z + (A[1].z - A[0].z) * P / x
|
|
9829
9834
|
);
|
|
9830
|
-
|
|
9835
|
+
L.push(...A[1].toArray()), L.push(...A[2].toArray());
|
|
9831
9836
|
for (let P = 1; P < x; P++)
|
|
9832
|
-
|
|
9837
|
+
L.push(
|
|
9833
9838
|
A[2].x + (A[3].x - A[2].x) * P / x,
|
|
9834
9839
|
A[2].y + (A[3].y - A[2].y) * P / x,
|
|
9835
9840
|
A[2].z + (A[3].z - A[2].z) * P / x
|
|
9836
9841
|
);
|
|
9837
|
-
|
|
9842
|
+
L.push(...A[3].toArray());
|
|
9838
9843
|
const C = [];
|
|
9839
9844
|
C.push(0, 1);
|
|
9840
9845
|
for (let P = 1; P < x; P++)
|
|
@@ -9846,15 +9851,15 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9846
9851
|
const S = [];
|
|
9847
9852
|
for (let P = 0; P < x; P++)
|
|
9848
9853
|
S.push(P, P + 1, x * 2 - P, P, x * 2 - P, x * 2 + 1 - P);
|
|
9849
|
-
y.setAttribute("position", new E.BufferAttribute(new Float32Array(
|
|
9850
|
-
const
|
|
9851
|
-
i.scene.add(
|
|
9854
|
+
y.setAttribute("position", new E.BufferAttribute(new Float32Array(L), 3)), y.setAttribute("uv", new E.BufferAttribute(new Float32Array(C), 2)), y.setIndex(new E.BufferAttribute(new Uint32Array(S), 1));
|
|
9855
|
+
const k = new E.AxesHelper(10);
|
|
9856
|
+
i.scene.add(k);
|
|
9852
9857
|
const F = new E.MeshBasicMaterial({
|
|
9853
9858
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
9854
9859
|
side: E.DoubleSide
|
|
9855
9860
|
}), H = new E.Mesh(y, F);
|
|
9856
9861
|
H.renderOrder = 1, H.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
|
|
9857
|
-
const
|
|
9862
|
+
const G = [A[1], A[2], A[3], A[0]], Y = n.create3DDomContainer(G);
|
|
9858
9863
|
if (Y != null && Y.container) {
|
|
9859
9864
|
const P = document.createElement("div");
|
|
9860
9865
|
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);
|
|
@@ -9868,20 +9873,20 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9868
9873
|
const w = new E.TextureLoader().load(A);
|
|
9869
9874
|
return w.minFilter = E.LinearFilter, w.magFilter = E.LinearFilter, w.format = E.RGBFormat, w;
|
|
9870
9875
|
}, h = (A, w) => new Promise((y, x) => {
|
|
9871
|
-
const
|
|
9872
|
-
|
|
9873
|
-
if (
|
|
9874
|
-
if (
|
|
9876
|
+
const L = new XMLHttpRequest();
|
|
9877
|
+
L.onreadystatechange = () => {
|
|
9878
|
+
if (L.readyState == 4)
|
|
9879
|
+
if (L.status == 200) {
|
|
9875
9880
|
const C = window.URL || window.webkitURL;
|
|
9876
|
-
w = w || document.createElement("video"), w.crossOrigin = "anonymous", w.muted = !0, w.loop = !0, w.playsInline = !0, w.src = C.createObjectURL(
|
|
9881
|
+
w = w || document.createElement("video"), w.crossOrigin = "anonymous", w.muted = !0, w.loop = !0, w.playsInline = !0, w.src = C.createObjectURL(L.response);
|
|
9877
9882
|
const S = new E.VideoTexture(w);
|
|
9878
9883
|
S.minFilter = E.LinearFilter, S.magFilter = E.LinearFilter, S.format = E.RGBFormat, y(Object.assign(S, { videoSource: A }));
|
|
9879
9884
|
} else
|
|
9880
|
-
x(new Error("Video download Error: " +
|
|
9881
|
-
},
|
|
9885
|
+
x(new Error("Video download Error: " + L.status));
|
|
9886
|
+
}, L.onerror = (C) => x(C), L.open("GET", A), L.responseType = "blob", L.send();
|
|
9882
9887
|
}), u = (A, w) => J(void 0, null, function* () {
|
|
9883
|
-
const { video_src: y, video_poster_src: x, points:
|
|
9884
|
-
e.videoSource = y, e.rectPoints = Sf(
|
|
9888
|
+
const { video_src: y, video_poster_src: x, points: L } = A;
|
|
9889
|
+
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 h(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
9885
9890
|
}), p = (A) => {
|
|
9886
9891
|
if (!e.enabled)
|
|
9887
9892
|
return;
|
|
@@ -9895,14 +9900,14 @@ const dA = (i, { videoElement: t }) => {
|
|
|
9895
9900
|
return;
|
|
9896
9901
|
const A = i.camera.position;
|
|
9897
9902
|
if (o.forEach((w, y) => {
|
|
9898
|
-
const x = w.css3DObject.position.clone(),
|
|
9899
|
-
S && S.distance + F <
|
|
9903
|
+
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;
|
|
9904
|
+
S && S.distance + F < k ? w.hide() : w.show();
|
|
9900
9905
|
}), !r()) {
|
|
9901
9906
|
const w = e.rectPoints.find((y) => {
|
|
9902
9907
|
const x = y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);
|
|
9903
|
-
return y.map((
|
|
9904
|
-
const C =
|
|
9905
|
-
return !(
|
|
9908
|
+
return y.map((L) => L.clone().add(x).divideScalar(2)).filter((L) => {
|
|
9909
|
+
const C = L.distanceTo(A), S = new E.Raycaster(A, L.clone().sub(A).normalize()), k = i.model.intersectRaycaster(S)[0], F = 0.01;
|
|
9910
|
+
return !(k && k.distance + F < C);
|
|
9906
9911
|
}).length >= 2;
|
|
9907
9912
|
});
|
|
9908
9913
|
(!w || w.length === 0) && s(!0);
|
|
@@ -10069,7 +10074,7 @@ const Hf = (i, t) => {
|
|
|
10069
10074
|
}
|
|
10070
10075
|
}, Of = (i) => `translate(${i[0]}px, ${i[1]}px)`;
|
|
10071
10076
|
function Ms(i) {
|
|
10072
|
-
return i.map((t) =>
|
|
10077
|
+
return i.map((t) => W({
|
|
10073
10078
|
observerIndex: void 0,
|
|
10074
10079
|
visible: !1,
|
|
10075
10080
|
isFold: !1
|
|
@@ -10103,10 +10108,10 @@ function Bs(i) {
|
|
|
10103
10108
|
o[0] & 2 && (s.itemLabel = n[30]), o[0] & 1 && (s.hooks = n[0]), o[0] & 4 && (s.anchorEnabled = n[2]), t.$set(s);
|
|
10104
10109
|
},
|
|
10105
10110
|
i(n) {
|
|
10106
|
-
e || (
|
|
10111
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
10107
10112
|
},
|
|
10108
10113
|
o(n) {
|
|
10109
|
-
|
|
10114
|
+
M(t.$$.fragment, n), e = !1;
|
|
10110
10115
|
},
|
|
10111
10116
|
d(n) {
|
|
10112
10117
|
$(t, n);
|
|
@@ -10125,15 +10130,15 @@ function js(i, t) {
|
|
|
10125
10130
|
B(r, e, a), s && s.m(r, a), B(r, n, a), o = !0;
|
|
10126
10131
|
},
|
|
10127
10132
|
p(r, a) {
|
|
10128
|
-
t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 &&
|
|
10133
|
+
t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 && D(s, 1)) : (s = Bs(t), s.c(), D(s, 1), s.m(n.parentNode, n)) : s && (ce(), M(s, 1, 1, () => {
|
|
10129
10134
|
s = null;
|
|
10130
|
-
}),
|
|
10135
|
+
}), de());
|
|
10131
10136
|
},
|
|
10132
10137
|
i(r) {
|
|
10133
|
-
o || (
|
|
10138
|
+
o || (D(s), o = !0);
|
|
10134
10139
|
},
|
|
10135
10140
|
o(r) {
|
|
10136
|
-
|
|
10141
|
+
M(s), o = !1;
|
|
10137
10142
|
},
|
|
10138
10143
|
d(r) {
|
|
10139
10144
|
r && z(e), s && s.d(r), r && z(n);
|
|
@@ -10161,18 +10166,18 @@ function Gf(i) {
|
|
|
10161
10166
|
o = yt(t, i[12].bind(t)), s = !0;
|
|
10162
10167
|
},
|
|
10163
10168
|
p(l, c) {
|
|
10164
|
-
c[0] & 71 && (r = l[1],
|
|
10169
|
+
c[0] & 71 && (r = l[1], ce(), e = Je(e, c, a, 1, l, r, n, t, lt, js, null, Ts), de()), c[0] & 32 && R(t, "opacity", l[5] ? 1 : 0);
|
|
10165
10170
|
},
|
|
10166
10171
|
i(l) {
|
|
10167
10172
|
if (!s) {
|
|
10168
10173
|
for (let c = 0; c < r.length; c += 1)
|
|
10169
|
-
|
|
10174
|
+
D(e[c]);
|
|
10170
10175
|
s = !0;
|
|
10171
10176
|
}
|
|
10172
10177
|
},
|
|
10173
10178
|
o(l) {
|
|
10174
10179
|
for (let c = 0; c < e.length; c += 1)
|
|
10175
|
-
|
|
10180
|
+
M(e[c]);
|
|
10176
10181
|
s = !1;
|
|
10177
10182
|
},
|
|
10178
10183
|
d(l) {
|
|
@@ -10187,44 +10192,44 @@ let Nf = 11;
|
|
|
10187
10192
|
function Wf(i, t, e) {
|
|
10188
10193
|
const { Raycaster: n, Vector3: o } = E;
|
|
10189
10194
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, h = null, u = null, p = (s == null ? void 0 : s.currentMode) === Be.Mode.Panorama, m, g, v = [], A = !0;
|
|
10190
|
-
const w = (
|
|
10191
|
-
const
|
|
10192
|
-
return d !== void 0 &&
|
|
10193
|
-
}, y = (
|
|
10194
|
-
const { camera: O, model:
|
|
10195
|
+
const w = (T, O) => {
|
|
10196
|
+
const N = T.camera.position.clone(), Z = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), X = Z.distanceTo(N);
|
|
10197
|
+
return d !== void 0 && T.state.mode === Be.Mode.Panorama && X > d ? !1 : zs(T, Z.clone().sub(N).normalize(), N, X);
|
|
10198
|
+
}, y = (T) => {
|
|
10199
|
+
const { camera: O, model: N } = s, { x: Z, y: X, z: U } = T.clone().project(O), le = (Z + 1) / 2, ue = (2 - (X + 1)) / 2, ke = Math.abs(U) < 1 && [le, ue].every((He) => He < 1 && He >= 0);
|
|
10195
10200
|
return Boolean(ke);
|
|
10196
|
-
}, x = (
|
|
10197
|
-
const
|
|
10201
|
+
}, x = (T, O) => {
|
|
10202
|
+
const N = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), Z = T.project2d(N), X = Z == null ? void 0 : Z.x, U = Z == null ? void 0 : Z.y;
|
|
10198
10203
|
return [X, U];
|
|
10199
|
-
},
|
|
10200
|
-
const
|
|
10201
|
-
if (
|
|
10202
|
-
return he(
|
|
10203
|
-
const U = x(
|
|
10204
|
+
}, L = (T, O) => {
|
|
10205
|
+
const N = O.map((X) => {
|
|
10206
|
+
if (T.state.panoIndex !== X.panoIndex)
|
|
10207
|
+
return he(W({}, X), { visible: !1 });
|
|
10208
|
+
const U = x(T, X);
|
|
10204
10209
|
X.name.length * Nf;
|
|
10205
|
-
const
|
|
10210
|
+
const le = Hf(X.modelPosition[1], c), ue = T.currentMode === Be.Mode.Panorama ? y(new o(X.position[0], X.position[1], X.position[2])) : !0, me = r ? w(T, X) : !1, we = ue && !me;
|
|
10206
10211
|
if (!we)
|
|
10207
|
-
return he(
|
|
10212
|
+
return he(W({}, X), { visible: we });
|
|
10208
10213
|
v.push(U);
|
|
10209
10214
|
const ke = Of(U);
|
|
10210
|
-
return he(
|
|
10215
|
+
return he(W({}, X), {
|
|
10211
10216
|
visible: we,
|
|
10212
10217
|
transform: ke,
|
|
10213
|
-
strokeLength:
|
|
10218
|
+
strokeLength: le
|
|
10214
10219
|
});
|
|
10215
|
-
}), Z =
|
|
10220
|
+
}), Z = N.filter(({ visible: X }) => X).map((X) => ({
|
|
10216
10221
|
itemLabelItem: X,
|
|
10217
|
-
distance: new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]).clone().distanceTo(
|
|
10222
|
+
distance: new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]).clone().distanceTo(T.camera.position)
|
|
10218
10223
|
})).sort((X, U) => X.distance - U.distance);
|
|
10219
|
-
return
|
|
10220
|
-
const U = Z.findIndex((
|
|
10221
|
-
return U !== void 0 ? he(
|
|
10224
|
+
return N.map((X) => {
|
|
10225
|
+
const U = Z.findIndex((le) => le.itemLabelItem.id === X.id);
|
|
10226
|
+
return U !== void 0 ? he(W({}, X), { zIndex: U * 10 }) : X;
|
|
10222
10227
|
});
|
|
10223
10228
|
}, C = () => {
|
|
10224
|
-
v = [], e(1, u =
|
|
10229
|
+
v = [], e(1, u = L(s, u));
|
|
10225
10230
|
}, S = () => {
|
|
10226
|
-
e(5, A = !1),
|
|
10227
|
-
},
|
|
10231
|
+
e(5, A = !1), k();
|
|
10232
|
+
}, k = Ha(
|
|
10228
10233
|
() => {
|
|
10229
10234
|
e(5, A = !0), C();
|
|
10230
10235
|
},
|
|
@@ -10233,47 +10238,47 @@ function Wf(i, t, e) {
|
|
|
10233
10238
|
s.once("renderFrame", C);
|
|
10234
10239
|
}, H = () => {
|
|
10235
10240
|
window.addEventListener("resize", F, !1);
|
|
10236
|
-
},
|
|
10241
|
+
}, G = () => {
|
|
10237
10242
|
h !== a && (e(1, u = Ms(a)), h = a, C());
|
|
10238
|
-
}, Y = (
|
|
10239
|
-
let
|
|
10243
|
+
}, Y = (T, O) => {
|
|
10244
|
+
let N = [];
|
|
10240
10245
|
for (let X = 0; X < O.length; X++) {
|
|
10241
|
-
const { position: U, panoIndex:
|
|
10242
|
-
(d === void 0 || ue <= d || s.state.mode !== Be.Mode.Panorama) &&
|
|
10246
|
+
const { position: U, panoIndex: le } = O[X], ue = T.distanceTo(U);
|
|
10247
|
+
(d === void 0 || ue <= d || s.state.mode !== Be.Mode.Panorama) && N.push({ panoIndex: le, obVector: U, distance: ue });
|
|
10243
10248
|
}
|
|
10244
|
-
|
|
10249
|
+
N = N.sort((X, U) => X.distance - U.distance);
|
|
10245
10250
|
let Z;
|
|
10246
|
-
for (let X = 0; X <
|
|
10247
|
-
const { obVector: U, distance:
|
|
10248
|
-
if (!zs(s,
|
|
10251
|
+
for (let X = 0; X < N.length; X++) {
|
|
10252
|
+
const { obVector: U, distance: le, panoIndex: ue } = N[X];
|
|
10253
|
+
if (!zs(s, T, U, le)) {
|
|
10249
10254
|
Z = ue;
|
|
10250
10255
|
break;
|
|
10251
10256
|
}
|
|
10252
10257
|
}
|
|
10253
10258
|
return typeof Z == "number" ? O[Z] : void 0;
|
|
10254
|
-
}, P = (
|
|
10259
|
+
}, P = (T) => {
|
|
10255
10260
|
if (s.state.mode === Be.Mode.Panorama)
|
|
10256
10261
|
return;
|
|
10257
|
-
const O = s.work.observers,
|
|
10258
|
-
if (Z && (
|
|
10259
|
-
const X = O[
|
|
10262
|
+
const O = s.work.observers, N = new o().fromArray(T.position), Z = Y(N, O);
|
|
10263
|
+
if (Z && (T.observerIndex = Z.panoIndex), typeof T.observerIndex == "number") {
|
|
10264
|
+
const X = O[T.observerIndex], U = N.clone().sub(X.position).normalize(), le = {
|
|
10260
10265
|
longitude: Math.PI + Math.atan2(U.x, U.z),
|
|
10261
10266
|
latitude: Math.acos(U.y / U.length()) - Math.PI / 2
|
|
10262
10267
|
};
|
|
10263
|
-
s.setState(he(
|
|
10268
|
+
s.setState(he(W({}, le), {
|
|
10264
10269
|
mode: Be.Mode.Panorama,
|
|
10265
|
-
panoIndex:
|
|
10270
|
+
panoIndex: T.observerIndex
|
|
10266
10271
|
})), s.once("initAnimationEnded", () => {
|
|
10267
|
-
e(1, u = u.map((ue) => he(
|
|
10268
|
-
isFold: ue.id !==
|
|
10272
|
+
e(1, u = u.map((ue) => he(W({}, ue), {
|
|
10273
|
+
isFold: ue.id !== T.id
|
|
10269
10274
|
}))), s.once("cameraUpdate", () => {
|
|
10270
|
-
e(1, u = u.map((ue) => he(
|
|
10275
|
+
e(1, u = u.map((ue) => he(W({}, ue), { isFold: !1 })));
|
|
10271
10276
|
});
|
|
10272
10277
|
});
|
|
10273
10278
|
}
|
|
10274
10279
|
};
|
|
10275
10280
|
Ki(() => {
|
|
10276
|
-
|
|
10281
|
+
G();
|
|
10277
10282
|
}), Ue(() => {
|
|
10278
10283
|
e(1, u = Ms(a)), h = a, C(), H(), s.on("cameraUpdate", S);
|
|
10279
10284
|
}), wt(() => {
|
|
@@ -10282,8 +10287,8 @@ function Wf(i, t, e) {
|
|
|
10282
10287
|
function I() {
|
|
10283
10288
|
m = this.clientWidth, g = this.clientHeight, e(3, m), e(4, g);
|
|
10284
10289
|
}
|
|
10285
|
-
return i.$$set = (
|
|
10286
|
-
"five" in
|
|
10290
|
+
return i.$$set = (T) => {
|
|
10291
|
+
"five" in T && e(7, s = T.five), "modelOcclusionEnable" in T && e(8, r = T.modelOcclusionEnable), "itemLabels" in T && e(9, a = T.itemLabels), "hooks" in T && e(0, l = T.hooks), "displayStrategyType" in T && e(10, c = T.displayStrategyType), "maxVisibleDistance" in T && e(11, d = T.maxVisibleDistance);
|
|
10287
10292
|
}, [
|
|
10288
10293
|
l,
|
|
10289
10294
|
u,
|
|
@@ -10322,7 +10327,7 @@ class Xf extends oe {
|
|
|
10322
10327
|
}
|
|
10323
10328
|
}
|
|
10324
10329
|
function Yf(i) {
|
|
10325
|
-
return i.item_labels.map((t) => he(
|
|
10330
|
+
return i.item_labels.map((t) => he(W({}, t), {
|
|
10326
10331
|
modelPosition: [t.position[0], t.position[1], t.position[2]],
|
|
10327
10332
|
observerIndex: void 0
|
|
10328
10333
|
}));
|
|
@@ -10413,18 +10418,18 @@ class Jf extends di {
|
|
|
10413
10418
|
this.five = e, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
10414
10419
|
}
|
|
10415
10420
|
enable(e) {
|
|
10416
|
-
this.enabled = !0, this.updateState(he(
|
|
10421
|
+
this.enabled = !0, this.updateState(he(W({}, e), { userAction: !0 }));
|
|
10417
10422
|
}
|
|
10418
10423
|
disable(e) {
|
|
10419
|
-
this.enabled = !1, this.updateState(he(
|
|
10424
|
+
this.enabled = !1, this.updateState(he(W({}, e), { userAction: !0 }));
|
|
10420
10425
|
}
|
|
10421
10426
|
show(e) {
|
|
10422
10427
|
if (!!this.state.enabled)
|
|
10423
|
-
return this.setState(he(
|
|
10428
|
+
return this.setState(he(W({}, this.state), { visible: !0 }), e), Promise.resolve();
|
|
10424
10429
|
}
|
|
10425
10430
|
hide(e) {
|
|
10426
10431
|
if (!!this.state.enabled)
|
|
10427
|
-
return this.setState(he(
|
|
10432
|
+
return this.setState(he(W({}, this.state), { visible: !1 }), e), Promise.resolve();
|
|
10428
10433
|
}
|
|
10429
10434
|
dispose() {
|
|
10430
10435
|
this.container.remove();
|
|
@@ -10432,8 +10437,8 @@ class Jf extends di {
|
|
|
10432
10437
|
setState(e, n) {
|
|
10433
10438
|
if (!this.enabled)
|
|
10434
10439
|
return;
|
|
10435
|
-
const o =
|
|
10436
|
-
this.state =
|
|
10440
|
+
const o = W({}, this.state);
|
|
10441
|
+
this.state = W(W(W({}, this.state), e), n), this.stateChangedCallback(o, n);
|
|
10437
10442
|
}
|
|
10438
10443
|
get visible() {
|
|
10439
10444
|
return this.five.state.mode === Be.Mode.Panorama;
|
|
@@ -10442,7 +10447,7 @@ class Jf extends di {
|
|
|
10442
10447
|
!this.enabled || (this.container = e, this.render());
|
|
10443
10448
|
}
|
|
10444
10449
|
updateState(e) {
|
|
10445
|
-
this.setState(he(
|
|
10450
|
+
this.setState(he(W({}, this.state), { enabled: this.enabled, visible: this.visible }), e);
|
|
10446
10451
|
}
|
|
10447
10452
|
}
|
|
10448
10453
|
function Vf(i) {
|
|
@@ -10587,7 +10592,7 @@ class im extends Jf {
|
|
|
10587
10592
|
}), this.fixDoorPosition();
|
|
10588
10593
|
});
|
|
10589
10594
|
f(this, "fixDoorPosition", () => {
|
|
10590
|
-
var d, h, u, p, m, g, v, A, w, y, x,
|
|
10595
|
+
var d, h, u, p, m, g, v, A, w, y, x, L;
|
|
10591
10596
|
const { panoIndex: e, camera: n } = this.five;
|
|
10592
10597
|
if (e === null)
|
|
10593
10598
|
return;
|
|
@@ -10596,29 +10601,29 @@ class im extends Jf {
|
|
|
10596
10601
|
const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new _()), l = [], c = [...this.labelItems];
|
|
10597
10602
|
if (c.forEach((C, S) => {
|
|
10598
10603
|
if (C.visible) {
|
|
10599
|
-
const
|
|
10600
|
-
C.left = P, C.top = I, C.inSight =
|
|
10604
|
+
const k = n.position.distanceTo(C.position), F = C.position.clone().add(new _(0, this.OffsetHeight, 0)), G = F.clone().sub(n.position).normalize().angleTo(a), Y = F.clone().project(n), P = (Y.x + 1) / 2.2 * 100, I = (-Y.y + 1) / 2.2 * 100, T = P >= 0 && P <= 100 && I >= 0 && I <= 100 && k > this.MinVisibledistance && k <= this.MaxVisibledistance;
|
|
10605
|
+
C.left = P, C.top = I, C.inSight = T && G < Math.PI / 2, C.cameraToward = $f(this.five), T ? l.push({ disFromCameraToLabel: k, left: P, top: I, index: S }) : C.transform = "translate(-50%, -50%)";
|
|
10601
10606
|
} else
|
|
10602
10607
|
C.inSight = !1;
|
|
10603
10608
|
}), l.length > 1) {
|
|
10604
10609
|
let C = 0;
|
|
10605
|
-
l.sort((S,
|
|
10610
|
+
l.sort((S, k) => k.disFromCameraToLabel - S.disFromCameraToLabel);
|
|
10606
10611
|
for (let S = 1; S < l.length; S++) {
|
|
10607
|
-
const { index:
|
|
10608
|
-
if (!I || !
|
|
10612
|
+
const { index: k, left: F, top: H } = l[S - 1], { index: G, left: Y, top: P } = l[S], I = this.container.children[k], T = this.container.children[G];
|
|
10613
|
+
if (!I || !T)
|
|
10609
10614
|
return;
|
|
10610
10615
|
const O = {
|
|
10611
10616
|
left: s * F / 100,
|
|
10612
10617
|
top: r * H / 100,
|
|
10613
10618
|
width: (u = (h = (d = I.children) == null ? void 0 : d[0]) == null ? void 0 : h.clientWidth) != null ? u : 0,
|
|
10614
10619
|
height: (g = (m = (p = I.children) == null ? void 0 : p[0]) == null ? void 0 : m.clientHeight) != null ? g : 0
|
|
10615
|
-
},
|
|
10620
|
+
}, N = {
|
|
10616
10621
|
left: s * Y / 100,
|
|
10617
10622
|
top: r * P / 100,
|
|
10618
|
-
width: (w = (A = (v =
|
|
10619
|
-
height: (
|
|
10623
|
+
width: (w = (A = (v = T.children) == null ? void 0 : v[0]) == null ? void 0 : A.clientWidth) != null ? w : 0,
|
|
10624
|
+
height: (L = (x = (y = T.children) == null ? void 0 : y[0]) == null ? void 0 : x.clientHeight) != null ? L : 0
|
|
10620
10625
|
};
|
|
10621
|
-
Kf(O,
|
|
10626
|
+
Kf(O, N) && (C++, c[k].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[G].transform = `translate(-50%, ${C * 100 - 50}%)`);
|
|
10622
10627
|
}
|
|
10623
10628
|
}
|
|
10624
10629
|
this.labelItems = c, this.render();
|
|
@@ -10670,7 +10675,7 @@ class im extends Jf {
|
|
|
10670
10675
|
toward: tm(d.rad)
|
|
10671
10676
|
});
|
|
10672
10677
|
});
|
|
10673
|
-
}), this.labelItems = this.doorLabels.map((r) => he(
|
|
10678
|
+
}), this.labelItems = this.doorLabels.map((r) => he(W({}, r), {
|
|
10674
10679
|
left: 0,
|
|
10675
10680
|
top: 0,
|
|
10676
10681
|
visible: !1,
|
|
@@ -10733,13 +10738,13 @@ function lm(i, t) {
|
|
|
10733
10738
|
return p.forEach((m, g) => {
|
|
10734
10739
|
let v = 0, A = 99999999;
|
|
10735
10740
|
d.forEach((C, S) => {
|
|
10736
|
-
const
|
|
10737
|
-
|
|
10741
|
+
const k = C.distanceTo(m);
|
|
10742
|
+
k < A && (v = S, A = k);
|
|
10738
10743
|
});
|
|
10739
|
-
const w = d[v + 1], y = w == null ? void 0 : w.distanceTo(m), x = d[v - 1],
|
|
10744
|
+
const w = d[v + 1], y = w == null ? void 0 : w.distanceTo(m), x = d[v - 1], L = x == null ? void 0 : x.distanceTo(m);
|
|
10740
10745
|
if (v > u && v - u > 1) {
|
|
10741
10746
|
let C = v;
|
|
10742
|
-
x !== void 0 &&
|
|
10747
|
+
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);
|
|
10743
10748
|
let S = u;
|
|
10744
10749
|
if (w !== void 0 && y > 0.2 && y < 0.3 ? S = u + 1 : A > 0.2 && A < 0.3 && (S = u), d[S] && d[S + 1]) {
|
|
10745
10750
|
const H = p[g - 1];
|
|
@@ -10747,13 +10752,13 @@ function lm(i, t) {
|
|
|
10747
10752
|
if (H.equals(d[S]))
|
|
10748
10753
|
S += 1;
|
|
10749
10754
|
else {
|
|
10750
|
-
const
|
|
10751
|
-
|
|
10755
|
+
const G = new _().subVectors(d[S + 1], d[S]), Y = new _().subVectors(H, d[S]);
|
|
10756
|
+
G.angleTo(Y) < Math.PI / 2 && (S += 1);
|
|
10752
10757
|
}
|
|
10753
10758
|
}
|
|
10754
10759
|
if (C < S || C - S <= 1)
|
|
10755
10760
|
return;
|
|
10756
|
-
const
|
|
10761
|
+
const k = d.slice(S, C), F = Qs(k, e, n);
|
|
10757
10762
|
h.push(F), u = v;
|
|
10758
10763
|
}
|
|
10759
10764
|
}), h;
|
|
@@ -10768,9 +10773,9 @@ function Qs(i, t, e) {
|
|
|
10768
10773
|
});
|
|
10769
10774
|
let g = 0;
|
|
10770
10775
|
for (let A = 0; A < i.length; A++) {
|
|
10771
|
-
const [w, y] = r[A][0], x = i[A], { x:
|
|
10772
|
-
p[A * 6 + 0] =
|
|
10773
|
-
const F = new _(
|
|
10776
|
+
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);
|
|
10777
|
+
p[A * 6 + 0] = k.x, p[A * 6 + 1] = k.y, p[A * 6 + 2] = k.z;
|
|
10778
|
+
const F = new _(L - w * n, C + 0.05, S - y * n);
|
|
10774
10779
|
p[A * 6 + 3] = F.x, p[A * 6 + 4] = F.y, p[A * 6 + 5] = F.z, g += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
|
|
10775
10780
|
const H = g / t / o;
|
|
10776
10781
|
m[A * 4 + 0] = 0, m[A * 4 + 1] = H, m[A * 4 + 2] = 1, m[A * 4 + 3] = H, A !== i.length - 1 && (u[A * 6 + 0] = A * 2 + 0, u[A * 6 + 1] = A * 2 + 2, u[A * 6 + 2] = A * 2 + 1, u[A * 6 + 3] = A * 2 + 2, u[A * 6 + 4] = A * 2 + 3, u[A * 6 + 5] = A * 2 + 1);
|
|
@@ -10849,8 +10854,8 @@ class Ga extends Ot {
|
|
|
10849
10854
|
var s;
|
|
10850
10855
|
if (this.state.disposed)
|
|
10851
10856
|
return this.disposedErrorLog();
|
|
10852
|
-
const o =
|
|
10853
|
-
this.state =
|
|
10857
|
+
const o = W({}, this.state);
|
|
10858
|
+
this.state = W(W({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible, n == null ? void 0 : n.userAction), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled, n == null ? void 0 : n.userAction), Ke(o, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (s = n == null ? void 0 : n.userAction) != null ? s : !0 }), this.five.needsRender = !0);
|
|
10854
10859
|
}
|
|
10855
10860
|
handleEnable(e, n = !0) {
|
|
10856
10861
|
this.linesGroup && (e ? (this.five.scene.add(this.linesGroup), this.actionWhenEnabled(() => this.hooks.emit("enable", { userAction: n }))) : (this.five.scene.remove(this.linesGroup), this.hooks.emit("disable", { userAction: n })));
|
|
@@ -11019,7 +11024,7 @@ class Xa extends Ot {
|
|
|
11019
11024
|
this.state.playing && this.setState({ playing: !1 }, { userAction: s }), this.setState({ playing: !0 }, { userAction: s, playFromIndex: n, playFromId: o });
|
|
11020
11025
|
}
|
|
11021
11026
|
playFromStart(e) {
|
|
11022
|
-
return this.playFrom(he(
|
|
11027
|
+
return this.playFrom(he(W({}, e), { index: 0 }));
|
|
11023
11028
|
}
|
|
11024
11029
|
pause(e) {
|
|
11025
11030
|
this.setState({ playing: !1 }, e);
|
|
@@ -11049,8 +11054,8 @@ class Xa extends Ot {
|
|
|
11049
11054
|
return Os();
|
|
11050
11055
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
11051
11056
|
return bm();
|
|
11052
|
-
const o =
|
|
11053
|
-
this.state =
|
|
11057
|
+
const o = W({}, this.state);
|
|
11058
|
+
this.state = W(W({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible, n == null ? void 0 : n.userAction), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled, n == null ? void 0 : n.userAction), e.playing !== void 0 && e.playing !== o.playing && this.changePlayState(e.playing, n), e.speed !== void 0 && e.speed !== o.speed && this.changeSpeed(e.speed, n == null ? void 0 : n.userAction), Ke(o, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (s = n == null ? void 0 : n.userAction) != null ? s : !0 });
|
|
11054
11059
|
}
|
|
11055
11060
|
formatData(e) {
|
|
11056
11061
|
return J(this, null, function* () {
|
|
@@ -11065,7 +11070,7 @@ class Xa extends Ot {
|
|
|
11065
11070
|
keyframes: o.keyframes.map((s, r) => {
|
|
11066
11071
|
var c;
|
|
11067
11072
|
const a = o.keyframes[r + 1], l = (() => !a || a.start === void 0 || s.end === void 0 ? 0 : a.start - s.end)();
|
|
11068
|
-
return
|
|
11073
|
+
return W({ id: (c = s.uuid) != null ? c : Fe(), moveIndex: r, stay: l, index: r }, s);
|
|
11069
11074
|
})
|
|
11070
11075
|
};
|
|
11071
11076
|
if (o.panoIndexList) {
|
|
@@ -11086,9 +11091,9 @@ class Xa extends Ot {
|
|
|
11086
11091
|
o.moveType === void 0 || o.moveType === "justMove" ? s.push({
|
|
11087
11092
|
moveIndex: d,
|
|
11088
11093
|
stay: o.stay,
|
|
11089
|
-
data:
|
|
11090
|
-
}) : o.moveType === "moveAndRotate" && (s.push({ moveIndex: d, stay: o.stay, data: { effect: "Move", panoIndex: c, moveEffect: r } }), h && s.push({ moveIndex: d, stay: o.stay, data:
|
|
11091
|
-
}), { keyframesId: Fe(), keyframes: s.map((c, d) =>
|
|
11094
|
+
data: W({ effect: "Move", panoIndex: c, moveEffect: r }, h != null ? h : {})
|
|
11095
|
+
}) : o.moveType === "moveAndRotate" && (s.push({ moveIndex: d, stay: o.stay, data: { effect: "Move", panoIndex: c, moveEffect: r } }), h && s.push({ moveIndex: d, stay: o.stay, data: W({ effect: "Rotate", panoIndex: c }, h) }));
|
|
11096
|
+
}), { keyframesId: Fe(), keyframes: s.map((c, d) => W({ id: Fe(), index: d }, c)) };
|
|
11092
11097
|
} else
|
|
11093
11098
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
11094
11099
|
});
|
|
@@ -11531,15 +11536,15 @@ function xm(i) {
|
|
|
11531
11536
|
B(a, t, l), Q(t, e), Q(e, n), Q(n, o), Q(n, s), r && r.m(t, null);
|
|
11532
11537
|
},
|
|
11533
11538
|
p(a, [l]) {
|
|
11534
|
-
a[3] ? r ? (r.p(a, l), l & 8 &&
|
|
11539
|
+
a[3] ? r ? (r.p(a, l), l & 8 && D(r, 1)) : (r = Ns(a), r.c(), D(r, 1), r.m(t, null)) : r && (ce(), M(r, 1, 1, () => {
|
|
11535
11540
|
r = null;
|
|
11536
|
-
}),
|
|
11541
|
+
}), de());
|
|
11537
11542
|
},
|
|
11538
11543
|
i(a) {
|
|
11539
|
-
|
|
11544
|
+
D(r);
|
|
11540
11545
|
},
|
|
11541
11546
|
o(a) {
|
|
11542
|
-
|
|
11547
|
+
M(r);
|
|
11543
11548
|
},
|
|
11544
11549
|
d(a) {
|
|
11545
11550
|
a && z(t), r && r.d();
|
|
@@ -11623,15 +11628,15 @@ function Lm(i) {
|
|
|
11623
11628
|
e && e.m(n, o), B(n, t, o);
|
|
11624
11629
|
},
|
|
11625
11630
|
p(n, [o]) {
|
|
11626
|
-
n[2] ? e ? (e.p(n, o), o & 4 &&
|
|
11631
|
+
n[2] ? e ? (e.p(n, o), o & 4 && D(e, 1)) : (e = Ws(n), e.c(), D(e, 1), e.m(t.parentNode, t)) : e && (ce(), M(e, 1, 1, () => {
|
|
11627
11632
|
e = null;
|
|
11628
|
-
}),
|
|
11633
|
+
}), de());
|
|
11629
11634
|
},
|
|
11630
11635
|
i(n) {
|
|
11631
|
-
|
|
11636
|
+
D(e);
|
|
11632
11637
|
},
|
|
11633
11638
|
o(n) {
|
|
11634
|
-
|
|
11639
|
+
M(e);
|
|
11635
11640
|
},
|
|
11636
11641
|
d(n) {
|
|
11637
11642
|
e && e.d(n), n && z(t);
|
|
@@ -11838,7 +11843,7 @@ function Zs(i) {
|
|
|
11838
11843
|
i = h, (!l || u & 1 && s !== (s = "arrow " + i[0] + " svelte-1ogmlqq")) && b(o, "class", s);
|
|
11839
11844
|
},
|
|
11840
11845
|
i(h) {
|
|
11841
|
-
l || (
|
|
11846
|
+
l || (D(e.$$.fragment, h), h && Ie(() => {
|
|
11842
11847
|
a && a.end(1), r = Ht(o, Tt, {
|
|
11843
11848
|
duration: i[2],
|
|
11844
11849
|
delay: i[3],
|
|
@@ -11847,7 +11852,7 @@ function Zs(i) {
|
|
|
11847
11852
|
}), l = !0);
|
|
11848
11853
|
},
|
|
11849
11854
|
o(h) {
|
|
11850
|
-
|
|
11855
|
+
M(e.$$.fragment, h), r && r.invalidate(), h && (a = Kt(o, Tt, {
|
|
11851
11856
|
duration: i[2],
|
|
11852
11857
|
delay: i[4],
|
|
11853
11858
|
easing: Zt
|
|
@@ -11868,15 +11873,15 @@ function Rm(i) {
|
|
|
11868
11873
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
11869
11874
|
},
|
|
11870
11875
|
p(o, [s]) {
|
|
11871
|
-
o[1] ? n ? (n.p(o, s), s & 2 &&
|
|
11876
|
+
o[1] ? n ? (n.p(o, s), s & 2 && D(n, 1)) : (n = Zs(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
11872
11877
|
n = null;
|
|
11873
|
-
}),
|
|
11878
|
+
}), de());
|
|
11874
11879
|
},
|
|
11875
11880
|
i(o) {
|
|
11876
|
-
e || (
|
|
11881
|
+
e || (D(n), e = !0);
|
|
11877
11882
|
},
|
|
11878
11883
|
o(o) {
|
|
11879
|
-
|
|
11884
|
+
M(n), e = !1;
|
|
11880
11885
|
},
|
|
11881
11886
|
d(o) {
|
|
11882
11887
|
n && n.d(o), o && z(t);
|
|
@@ -11951,10 +11956,10 @@ function qs(i, t) {
|
|
|
11951
11956
|
r & 1 && (a.unfolded = t[0]), r & 2 && (a.content = t[12]), r & 32 && (a.outDelay = t[5]), n.$set(a), r & 128 && R(e, "transform", t[7]);
|
|
11952
11957
|
},
|
|
11953
11958
|
i(s) {
|
|
11954
|
-
o || (
|
|
11959
|
+
o || (D(n.$$.fragment, s), o = !0);
|
|
11955
11960
|
},
|
|
11956
11961
|
o(s) {
|
|
11957
|
-
|
|
11962
|
+
M(n.$$.fragment, s), o = !1;
|
|
11958
11963
|
},
|
|
11959
11964
|
d(s) {
|
|
11960
11965
|
s && z(e), $(n), t[10](null);
|
|
@@ -11982,10 +11987,10 @@ function Ks(i) {
|
|
|
11982
11987
|
s & 64 && (r.direction = o[6]), s & 1 && (r.visible = o[0]), e.$set(r);
|
|
11983
11988
|
},
|
|
11984
11989
|
i(o) {
|
|
11985
|
-
n || (
|
|
11990
|
+
n || (D(e.$$.fragment, o), n = !0);
|
|
11986
11991
|
},
|
|
11987
11992
|
o(o) {
|
|
11988
|
-
|
|
11993
|
+
M(e.$$.fragment, o), n = !1;
|
|
11989
11994
|
},
|
|
11990
11995
|
d(o) {
|
|
11991
11996
|
o && z(t), $(e);
|
|
@@ -12012,21 +12017,21 @@ function Nm(i) {
|
|
|
12012
12017
|
B(c, n, d), l && l.m(c, d), B(c, o, d), s = !0;
|
|
12013
12018
|
},
|
|
12014
12019
|
p(c, [d]) {
|
|
12015
|
-
d & 167 && (r = c[1],
|
|
12020
|
+
d & 167 && (r = c[1], ce(), t = Je(t, d, a, 1, c, r, e, n.parentNode, lt, qs, n, _s), de()), c[3] < c[4] ? l ? (l.p(c, d), d & 24 && D(l, 1)) : (l = Ks(c), l.c(), D(l, 1), l.m(o.parentNode, o)) : l && (ce(), M(l, 1, 1, () => {
|
|
12016
12021
|
l = null;
|
|
12017
|
-
}),
|
|
12022
|
+
}), de());
|
|
12018
12023
|
},
|
|
12019
12024
|
i(c) {
|
|
12020
12025
|
if (!s) {
|
|
12021
12026
|
for (let d = 0; d < r.length; d += 1)
|
|
12022
|
-
|
|
12023
|
-
|
|
12027
|
+
D(t[d]);
|
|
12028
|
+
D(l), s = !0;
|
|
12024
12029
|
}
|
|
12025
12030
|
},
|
|
12026
12031
|
o(c) {
|
|
12027
12032
|
for (let d = 0; d < t.length; d += 1)
|
|
12028
|
-
|
|
12029
|
-
|
|
12033
|
+
M(t[d]);
|
|
12034
|
+
M(l), s = !1;
|
|
12030
12035
|
},
|
|
12031
12036
|
d(c) {
|
|
12032
12037
|
for (let d = 0; d < t.length; d += 1)
|
|
@@ -12127,10 +12132,10 @@ function $s(i) {
|
|
|
12127
12132
|
g & 4 && (w.visible = m[2]), g & 2 && (w.textUnfolded = m[1]), g & 16 && (w.textItems = m[4]), a.$set(w);
|
|
12128
12133
|
},
|
|
12129
12134
|
i(m) {
|
|
12130
|
-
c || (
|
|
12135
|
+
c || (D(t.$$.fragment, m), D(o.$$.fragment, m), D(a.$$.fragment, m), c = !0);
|
|
12131
12136
|
},
|
|
12132
12137
|
o(m) {
|
|
12133
|
-
|
|
12138
|
+
M(t.$$.fragment, m), M(o.$$.fragment, m), M(a.$$.fragment, m), c = !1;
|
|
12134
12139
|
},
|
|
12135
12140
|
d(m) {
|
|
12136
12141
|
$(t, m), m && z(e), m && z(n), $(o), m && z(s), m && z(r), $(a), l(), d = !1, h();
|
|
@@ -12147,15 +12152,15 @@ function Ym(i) {
|
|
|
12147
12152
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
12148
12153
|
},
|
|
12149
12154
|
p(o, [s]) {
|
|
12150
|
-
o[0].state ? n ? (n.p(o, s), s & 1 &&
|
|
12155
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && D(n, 1)) : (n = $s(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
12151
12156
|
n = null;
|
|
12152
|
-
}),
|
|
12157
|
+
}), de());
|
|
12153
12158
|
},
|
|
12154
12159
|
i(o) {
|
|
12155
|
-
e || (
|
|
12160
|
+
e || (D(n), e = !0);
|
|
12156
12161
|
},
|
|
12157
12162
|
o(o) {
|
|
12158
|
-
|
|
12163
|
+
M(n), e = !1;
|
|
12159
12164
|
},
|
|
12160
12165
|
d(o) {
|
|
12161
12166
|
n && n.d(o), o && z(t);
|
|
@@ -12243,15 +12248,15 @@ function Zm(i) {
|
|
|
12243
12248
|
B(a, t, l), Q(t, e), Q(e, n), Q(n, o), Q(n, s), r && r.m(t, null);
|
|
12244
12249
|
},
|
|
12245
12250
|
p(a, [l]) {
|
|
12246
|
-
a[3] ? r ? (r.p(a, l), l & 8 &&
|
|
12251
|
+
a[3] ? r ? (r.p(a, l), l & 8 && D(r, 1)) : (r = er(a), r.c(), D(r, 1), r.m(t, null)) : r && (ce(), M(r, 1, 1, () => {
|
|
12247
12252
|
r = null;
|
|
12248
|
-
}),
|
|
12253
|
+
}), de());
|
|
12249
12254
|
},
|
|
12250
12255
|
i(a) {
|
|
12251
|
-
|
|
12256
|
+
D(r);
|
|
12252
12257
|
},
|
|
12253
12258
|
o(a) {
|
|
12254
|
-
|
|
12259
|
+
M(r);
|
|
12255
12260
|
},
|
|
12256
12261
|
d(a) {
|
|
12257
12262
|
a && z(t), r && r.d();
|
|
@@ -12485,7 +12490,7 @@ function tp({
|
|
|
12485
12490
|
scrollbarEl: r,
|
|
12486
12491
|
paginationEl: a
|
|
12487
12492
|
}) {
|
|
12488
|
-
const l = n.filter((
|
|
12493
|
+
const l = n.filter((L) => L !== "children" && L !== "direction"), {
|
|
12489
12494
|
params: c,
|
|
12490
12495
|
pagination: d,
|
|
12491
12496
|
navigation: h,
|
|
@@ -12495,15 +12500,15 @@ function tp({
|
|
|
12495
12500
|
} = i;
|
|
12496
12501
|
let g, v, A, w, y;
|
|
12497
12502
|
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) && u && !u.el && (w = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && h && !h.prevEl && !h.nextEl && (y = !0);
|
|
12498
|
-
const x = (
|
|
12499
|
-
!i[
|
|
12503
|
+
const x = (L) => {
|
|
12504
|
+
!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));
|
|
12500
12505
|
};
|
|
12501
|
-
l.forEach((
|
|
12502
|
-
if (jt(c[
|
|
12503
|
-
pt(c[
|
|
12506
|
+
l.forEach((L) => {
|
|
12507
|
+
if (jt(c[L]) && jt(e[L]))
|
|
12508
|
+
pt(c[L], e[L]);
|
|
12504
12509
|
else {
|
|
12505
|
-
const C = e[
|
|
12506
|
-
(C === !0 || C === !1) && (
|
|
12510
|
+
const C = e[L];
|
|
12511
|
+
(C === !0 || C === !1) && (L === "navigation" || L === "pagination" || L === "scrollbar") ? C === !1 && x(L) : c[L] = e[L];
|
|
12507
12512
|
}
|
|
12508
12513
|
}), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && p && c.virtual.enabled ? (p.slides = t, p.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && m.init() && m.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), u.init(), u.updateSize(), u.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), h.init(), h.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();
|
|
12509
12514
|
}
|
|
@@ -12555,9 +12560,9 @@ function lr(i) {
|
|
|
12555
12560
|
}
|
|
12556
12561
|
function ap(i) {
|
|
12557
12562
|
let t, e, n, o, s, r, a = Ni(i[2]), l, c = Xi(i[2]), d, h = Wi(i[2]), u, p, m;
|
|
12558
|
-
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),
|
|
12559
|
-
let S = a && rr(i),
|
|
12560
|
-
const H = i[12]["container-end"],
|
|
12563
|
+
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);
|
|
12564
|
+
let S = a && rr(i), k = c && ar(i), F = h && lr(i);
|
|
12565
|
+
const H = i[12]["container-end"], G = xt(H, i, i[11], tr);
|
|
12561
12566
|
let Y = [
|
|
12562
12567
|
{
|
|
12563
12568
|
class: p = oi(`${i[1]}${i[0] ? ` ${i[0]}` : ""}`)
|
|
@@ -12568,60 +12573,60 @@ function ap(i) {
|
|
|
12568
12573
|
P = ye(P, Y[I]);
|
|
12569
12574
|
return {
|
|
12570
12575
|
c() {
|
|
12571
|
-
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(),
|
|
12576
|
+
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(), u = V(), G && G.c(), b(n, "class", "swiper-wrapper"), Vn(t, P);
|
|
12572
12577
|
},
|
|
12573
|
-
m(I,
|
|
12574
|
-
B(I, t,
|
|
12578
|
+
m(I, T) {
|
|
12579
|
+
B(I, t, T), 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, u), G && G.m(t, null), i[17](t), m = !0;
|
|
12575
12580
|
},
|
|
12576
|
-
p(I, [
|
|
12577
|
-
v && v.p && (!m ||
|
|
12581
|
+
p(I, [T]) {
|
|
12582
|
+
v && v.p && (!m || T & 2560) && Dt(
|
|
12578
12583
|
v,
|
|
12579
12584
|
g,
|
|
12580
12585
|
I,
|
|
12581
12586
|
I[11],
|
|
12582
|
-
m ? kt(g, I[11],
|
|
12587
|
+
m ? kt(g, I[11], T, rp) : Lt(I[11]),
|
|
12583
12588
|
sr
|
|
12584
|
-
), w && w.p && (!m ||
|
|
12589
|
+
), w && w.p && (!m || T & 2560) && Dt(
|
|
12585
12590
|
w,
|
|
12586
12591
|
A,
|
|
12587
12592
|
I,
|
|
12588
12593
|
I[11],
|
|
12589
|
-
m ? kt(A, I[11],
|
|
12594
|
+
m ? kt(A, I[11], T, sp) : Lt(I[11]),
|
|
12590
12595
|
or
|
|
12591
|
-
), x && x.p && (!m ||
|
|
12596
|
+
), x && x.p && (!m || T & 2560) && Dt(
|
|
12592
12597
|
x,
|
|
12593
12598
|
y,
|
|
12594
12599
|
I,
|
|
12595
12600
|
I[11],
|
|
12596
|
-
m ? kt(y, I[11],
|
|
12601
|
+
m ? kt(y, I[11], T, op) : Lt(I[11]),
|
|
12597
12602
|
ir
|
|
12598
|
-
), C && C.p && (!m ||
|
|
12603
|
+
), C && C.p && (!m || T & 2560) && Dt(
|
|
12599
12604
|
C,
|
|
12600
|
-
|
|
12605
|
+
L,
|
|
12601
12606
|
I,
|
|
12602
12607
|
I[11],
|
|
12603
|
-
m ? kt(
|
|
12608
|
+
m ? kt(L, I[11], T, ip) : Lt(I[11]),
|
|
12604
12609
|
nr
|
|
12605
|
-
),
|
|
12606
|
-
|
|
12610
|
+
), T & 4 && (a = Ni(I[2])), a ? S ? S.p(I, T) : (S = rr(I), S.c(), S.m(t, l)) : S && (S.d(1), S = null), T & 4 && (c = Xi(I[2])), c ? k ? k.p(I, T) : (k = ar(I), k.c(), k.m(t, d)) : k && (k.d(1), k = null), T & 4 && (h = Wi(I[2])), h ? F ? F.p(I, T) : (F = lr(I), F.c(), F.m(t, u)) : F && (F.d(1), F = null), G && G.p && (!m || T & 2560) && Dt(
|
|
12611
|
+
G,
|
|
12607
12612
|
H,
|
|
12608
12613
|
I,
|
|
12609
12614
|
I[11],
|
|
12610
|
-
m ? kt(H, I[11],
|
|
12615
|
+
m ? kt(H, I[11], T, np) : Lt(I[11]),
|
|
12611
12616
|
tr
|
|
12612
12617
|
), Vn(t, P = Te(Y, [
|
|
12613
|
-
(!m ||
|
|
12614
|
-
|
|
12618
|
+
(!m || T & 3 && p !== (p = oi(`${I[1]}${I[0] ? ` ${I[0]}` : ""}`))) && { class: p },
|
|
12619
|
+
T & 8 && I[3]
|
|
12615
12620
|
]));
|
|
12616
12621
|
},
|
|
12617
12622
|
i(I) {
|
|
12618
|
-
m || (
|
|
12623
|
+
m || (D(v, I), D(w, I), D(x, I), D(C, I), D(G, I), m = !0);
|
|
12619
12624
|
},
|
|
12620
12625
|
o(I) {
|
|
12621
|
-
|
|
12626
|
+
M(v, I), M(w, I), M(x, I), M(C, I), M(G, I), m = !1;
|
|
12622
12627
|
},
|
|
12623
12628
|
d(I) {
|
|
12624
|
-
I && z(t), v && v.d(I), w && w.d(I), x && x.d(I), C && C.d(I), S && S.d(),
|
|
12629
|
+
I && z(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(), G && G.d(I), i[17](null);
|
|
12625
12630
|
}
|
|
12626
12631
|
};
|
|
12627
12632
|
}
|
|
@@ -12629,14 +12634,14 @@ function lp(i, t, e) {
|
|
|
12629
12634
|
const n = ["class", "swiper"];
|
|
12630
12635
|
let o = Jn(t, n), { $$slots: s = {}, $$scope: r } = t;
|
|
12631
12636
|
const a = uc();
|
|
12632
|
-
let { class: l = void 0 } = t, c = "swiper", d = !1, h = null, u = null, p, m, g, v, A = null, w = null, y = null, x = null,
|
|
12637
|
+
let { class: l = void 0 } = t, c = "swiper", d = !1, h = null, u = null, p, m, g, v, A = null, w = null, y = null, x = null, L = null, C = { slides: [] };
|
|
12633
12638
|
function S() {
|
|
12634
12639
|
return h;
|
|
12635
12640
|
}
|
|
12636
|
-
const
|
|
12641
|
+
const k = (O) => {
|
|
12637
12642
|
e(9, C = O), fc().then(() => {
|
|
12638
|
-
h.$wrapperEl.children(".swiper-slide").each((
|
|
12639
|
-
|
|
12643
|
+
h.$wrapperEl.children(".swiper-slide").each((N) => {
|
|
12644
|
+
N.onSwiper && N.onSwiper(h);
|
|
12640
12645
|
}), h.updateSlides(), h.updateProgress(), h.updateSlidesClasses(), h.lazy && h.params.lazy.enabled && h.lazy.load();
|
|
12641
12646
|
});
|
|
12642
12647
|
}, F = () => {
|
|
@@ -12646,18 +12651,18 @@ function lp(i, t, e) {
|
|
|
12646
12651
|
const H = () => {
|
|
12647
12652
|
d = !0;
|
|
12648
12653
|
};
|
|
12649
|
-
if (m.onAny = (O, ...
|
|
12650
|
-
a(O,
|
|
12654
|
+
if (m.onAny = (O, ...N) => {
|
|
12655
|
+
a(O, N);
|
|
12651
12656
|
}, Object.assign(m.on, {
|
|
12652
12657
|
_beforeBreakpoint: H,
|
|
12653
|
-
_containerClasses(O,
|
|
12654
|
-
e(1, c =
|
|
12658
|
+
_containerClasses(O, N) {
|
|
12659
|
+
e(1, c = N);
|
|
12655
12660
|
}
|
|
12656
12661
|
}), h = new Mi(m), ji("swiper", h), h.virtual && h.params.virtual.enabled) {
|
|
12657
12662
|
const O = {
|
|
12658
12663
|
cache: !1,
|
|
12659
|
-
renderExternal: (
|
|
12660
|
-
|
|
12664
|
+
renderExternal: (N) => {
|
|
12665
|
+
k(N), m.virtual && m.virtual.renderExternal && m.virtual.renderExternal(N);
|
|
12661
12666
|
},
|
|
12662
12667
|
renderExternalUpdate: !1
|
|
12663
12668
|
};
|
|
@@ -12669,7 +12674,7 @@ function lp(i, t, e) {
|
|
|
12669
12674
|
el: A,
|
|
12670
12675
|
nextEl: y,
|
|
12671
12676
|
prevEl: w,
|
|
12672
|
-
paginationEl:
|
|
12677
|
+
paginationEl: L,
|
|
12673
12678
|
scrollbarEl: x,
|
|
12674
12679
|
swiper: h
|
|
12675
12680
|
},
|
|
@@ -12689,12 +12694,12 @@ function lp(i, t, e) {
|
|
|
12689
12694
|
nextEl: y,
|
|
12690
12695
|
prevEl: w,
|
|
12691
12696
|
scrollbarEl: x,
|
|
12692
|
-
paginationEl:
|
|
12697
|
+
paginationEl: L
|
|
12693
12698
|
}), d = !1, u = g;
|
|
12694
12699
|
}), wt(() => {
|
|
12695
12700
|
typeof window != "undefined" && h && !h.destroyed && h.destroy(!0, !1);
|
|
12696
12701
|
});
|
|
12697
|
-
function
|
|
12702
|
+
function G(O) {
|
|
12698
12703
|
ze[O ? "unshift" : "push"](() => {
|
|
12699
12704
|
w = O, e(5, w);
|
|
12700
12705
|
});
|
|
@@ -12711,10 +12716,10 @@ function lp(i, t, e) {
|
|
|
12711
12716
|
}
|
|
12712
12717
|
function I(O) {
|
|
12713
12718
|
ze[O ? "unshift" : "push"](() => {
|
|
12714
|
-
|
|
12719
|
+
L = O, e(8, L);
|
|
12715
12720
|
});
|
|
12716
12721
|
}
|
|
12717
|
-
function
|
|
12722
|
+
function T(O) {
|
|
12718
12723
|
ze[O ? "unshift" : "push"](() => {
|
|
12719
12724
|
A = O, e(4, A);
|
|
12720
12725
|
});
|
|
@@ -12730,16 +12735,16 @@ function lp(i, t, e) {
|
|
|
12730
12735
|
w,
|
|
12731
12736
|
y,
|
|
12732
12737
|
x,
|
|
12733
|
-
|
|
12738
|
+
L,
|
|
12734
12739
|
C,
|
|
12735
12740
|
S,
|
|
12736
12741
|
r,
|
|
12737
12742
|
s,
|
|
12738
|
-
|
|
12743
|
+
G,
|
|
12739
12744
|
Y,
|
|
12740
12745
|
P,
|
|
12741
12746
|
I,
|
|
12742
|
-
|
|
12747
|
+
T
|
|
12743
12748
|
];
|
|
12744
12749
|
}
|
|
12745
12750
|
class cp extends oe {
|
|
@@ -12772,10 +12777,10 @@ function hp(i) {
|
|
|
12772
12777
|
);
|
|
12773
12778
|
},
|
|
12774
12779
|
i(o) {
|
|
12775
|
-
t || (
|
|
12780
|
+
t || (D(n, o), t = !0);
|
|
12776
12781
|
},
|
|
12777
12782
|
o(o) {
|
|
12778
|
-
|
|
12783
|
+
M(n, o), t = !1;
|
|
12779
12784
|
},
|
|
12780
12785
|
d(o) {
|
|
12781
12786
|
n && n.d(o);
|
|
@@ -12803,10 +12808,10 @@ function fp(i) {
|
|
|
12803
12808
|
), (!n || a & 1 && e !== (e = typeof r[0] == "number" ? r[0] : void 0)) && b(t, "data-swiper-zoom", e);
|
|
12804
12809
|
},
|
|
12805
12810
|
i(r) {
|
|
12806
|
-
n || (
|
|
12811
|
+
n || (D(s, r), n = !0);
|
|
12807
12812
|
},
|
|
12808
12813
|
o(r) {
|
|
12809
|
-
|
|
12814
|
+
M(s, r), n = !1;
|
|
12810
12815
|
},
|
|
12811
12816
|
d(r) {
|
|
12812
12817
|
r && z(t), s && s.d(r);
|
|
@@ -12840,9 +12845,9 @@ function mp(i) {
|
|
|
12840
12845
|
},
|
|
12841
12846
|
p(h, [u]) {
|
|
12842
12847
|
let p = e;
|
|
12843
|
-
e = l(h), e === p ? a[e].p(h, u) : (
|
|
12848
|
+
e = l(h), e === p ? a[e].p(h, u) : (ce(), M(a[p], 1, 1, () => {
|
|
12844
12849
|
a[p] = null;
|
|
12845
|
-
}),
|
|
12850
|
+
}), de(), n = a[e], n ? n.p(h, u) : (n = a[e] = r[e](h), n.c()), D(n, 1), n.m(t, null)), Vn(t, d = Te(c, [
|
|
12846
12851
|
(!s || u & 12 && o !== (o = oi(`${h[3]}${h[2] ? ` ${h[2]}` : ""}`))) && { class: o },
|
|
12847
12852
|
(!s || u & 2) && {
|
|
12848
12853
|
"data-swiper-slide-index": h[1]
|
|
@@ -12851,10 +12856,10 @@ function mp(i) {
|
|
|
12851
12856
|
]));
|
|
12852
12857
|
},
|
|
12853
12858
|
i(h) {
|
|
12854
|
-
s || (
|
|
12859
|
+
s || (D(n), s = !0);
|
|
12855
12860
|
},
|
|
12856
12861
|
o(h) {
|
|
12857
|
-
|
|
12862
|
+
M(n), s = !1;
|
|
12858
12863
|
},
|
|
12859
12864
|
d(h) {
|
|
12860
12865
|
h && z(t), a[e].d(), i[9](null);
|
|
@@ -12865,8 +12870,8 @@ function pp(i, t, e) {
|
|
|
12865
12870
|
let n;
|
|
12866
12871
|
const o = ["zoom", "virtualIndex", "class"];
|
|
12867
12872
|
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, h = null, u = "swiper-slide", p = pn("swiper"), m = !1;
|
|
12868
|
-
const g = (y, x,
|
|
12869
|
-
x === h && e(3, u =
|
|
12873
|
+
const g = (y, x, L) => {
|
|
12874
|
+
x === h && e(3, u = L);
|
|
12870
12875
|
}, v = () => {
|
|
12871
12876
|
!p || m || (p.on("_slideClass", g), m = !0);
|
|
12872
12877
|
}, A = () => {
|
|
@@ -13083,12 +13088,12 @@ function fr(i) {
|
|
|
13083
13088
|
p(d, h) {
|
|
13084
13089
|
i = d;
|
|
13085
13090
|
let u = e;
|
|
13086
|
-
e = c(i), e === u ? l[e].p(i, h) : (
|
|
13091
|
+
e = c(i), e === u ? l[e].p(i, h) : (ce(), M(l[u], 1, 1, () => {
|
|
13087
13092
|
l[u] = null;
|
|
13088
|
-
}),
|
|
13093
|
+
}), de(), n = l[e], n ? n.p(i, h) : (n = l[e] = a[e](i), n.c()), D(n, 1), n.m(t, null)), (!r || h & 16) && q(t, "unfolded", i[4]);
|
|
13089
13094
|
},
|
|
13090
13095
|
i(d) {
|
|
13091
|
-
r || (
|
|
13096
|
+
r || (D(n), d && Ie(() => {
|
|
13092
13097
|
s && s.end(1), o = Ht(t, zo, i[5] ? {
|
|
13093
13098
|
y: 4,
|
|
13094
13099
|
duration: i[3],
|
|
@@ -13098,7 +13103,7 @@ function fr(i) {
|
|
|
13098
13103
|
}), r = !0);
|
|
13099
13104
|
},
|
|
13100
13105
|
o(d) {
|
|
13101
|
-
|
|
13106
|
+
M(n), o && o.invalidate(), d && (s = Kt(t, zo, i[5] ? {
|
|
13102
13107
|
y: 4,
|
|
13103
13108
|
duration: i[3],
|
|
13104
13109
|
delay: i[2],
|
|
@@ -13131,10 +13136,10 @@ function Ep(i) {
|
|
|
13131
13136
|
o & 1 && (s.media = n[0][0]), o & 256 && (s.objectFit = n[8]), o & 64 && (s.playButtonIfNeed = n[6]), o & 128 && (s.canPlay = n[7]), t.$set(s);
|
|
13132
13137
|
},
|
|
13133
13138
|
i(n) {
|
|
13134
|
-
e || (
|
|
13139
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
13135
13140
|
},
|
|
13136
13141
|
o(n) {
|
|
13137
|
-
|
|
13142
|
+
M(t.$$.fragment, n), e = !1;
|
|
13138
13143
|
},
|
|
13139
13144
|
d(n) {
|
|
13140
13145
|
$(t, n);
|
|
@@ -13173,10 +13178,10 @@ function Pp(i) {
|
|
|
13173
13178
|
}) : !1), o & 67111360 && (s.$$scope = { dirty: o, ctx: n }), t.$set(s);
|
|
13174
13179
|
},
|
|
13175
13180
|
i(n) {
|
|
13176
|
-
e || (
|
|
13181
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
13177
13182
|
},
|
|
13178
13183
|
o(n) {
|
|
13179
|
-
|
|
13184
|
+
M(t.$$.fragment, n), e = !1;
|
|
13180
13185
|
},
|
|
13181
13186
|
d(n) {
|
|
13182
13187
|
$(t, n);
|
|
@@ -13204,10 +13209,10 @@ function Ip(i) {
|
|
|
13204
13209
|
s & 2048 && (r.media = o[23]), s & 256 && (r.objectFit = o[8]), s & 64 && (r.playButtonIfNeed = o[6]), s & 128 && (r.canPlay = o[7]), t.$set(r);
|
|
13205
13210
|
},
|
|
13206
13211
|
i(o) {
|
|
13207
|
-
n || (
|
|
13212
|
+
n || (D(t.$$.fragment, o), n = !0);
|
|
13208
13213
|
},
|
|
13209
13214
|
o(o) {
|
|
13210
|
-
|
|
13215
|
+
M(t.$$.fragment, o), n = !1;
|
|
13211
13216
|
},
|
|
13212
13217
|
d(o) {
|
|
13213
13218
|
$(t, o), o && z(e);
|
|
@@ -13233,10 +13238,10 @@ function mr(i) {
|
|
|
13233
13238
|
o & 67111360 && (s.$$scope = { dirty: o, ctx: n }), t.$set(s);
|
|
13234
13239
|
},
|
|
13235
13240
|
i(n) {
|
|
13236
|
-
e || (
|
|
13241
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
13237
13242
|
},
|
|
13238
13243
|
o(n) {
|
|
13239
|
-
|
|
13244
|
+
M(t.$$.fragment, n), e = !1;
|
|
13240
13245
|
},
|
|
13241
13246
|
d(n) {
|
|
13242
13247
|
$(t, n);
|
|
@@ -13247,7 +13252,7 @@ function xp(i) {
|
|
|
13247
13252
|
let t, e, n = i[11], o = [];
|
|
13248
13253
|
for (let r = 0; r < n.length; r += 1)
|
|
13249
13254
|
o[r] = mr(hr(i, n, r));
|
|
13250
|
-
const s = (r) =>
|
|
13255
|
+
const s = (r) => M(o[r], 1, 1, () => {
|
|
13251
13256
|
o[r] = null;
|
|
13252
13257
|
});
|
|
13253
13258
|
return {
|
|
@@ -13267,24 +13272,24 @@ function xp(i) {
|
|
|
13267
13272
|
let l;
|
|
13268
13273
|
for (l = 0; l < n.length; l += 1) {
|
|
13269
13274
|
const c = hr(r, n, l);
|
|
13270
|
-
o[l] ? (o[l].p(c, a),
|
|
13275
|
+
o[l] ? (o[l].p(c, a), D(o[l], 1)) : (o[l] = mr(c), o[l].c(), D(o[l], 1), o[l].m(t.parentNode, t));
|
|
13271
13276
|
}
|
|
13272
|
-
for (
|
|
13277
|
+
for (ce(), l = n.length; l < o.length; l += 1)
|
|
13273
13278
|
s(l);
|
|
13274
|
-
|
|
13279
|
+
de();
|
|
13275
13280
|
}
|
|
13276
13281
|
},
|
|
13277
13282
|
i(r) {
|
|
13278
13283
|
if (!e) {
|
|
13279
13284
|
for (let a = 0; a < n.length; a += 1)
|
|
13280
|
-
|
|
13285
|
+
D(o[a]);
|
|
13281
13286
|
e = !0;
|
|
13282
13287
|
}
|
|
13283
13288
|
},
|
|
13284
13289
|
o(r) {
|
|
13285
13290
|
o = o.filter(Boolean);
|
|
13286
13291
|
for (let a = 0; a < o.length; a += 1)
|
|
13287
|
-
|
|
13292
|
+
M(o[a]);
|
|
13288
13293
|
e = !1;
|
|
13289
13294
|
},
|
|
13290
13295
|
d(r) {
|
|
@@ -13302,15 +13307,15 @@ function kp(i) {
|
|
|
13302
13307
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
13303
13308
|
},
|
|
13304
13309
|
p(o, [s]) {
|
|
13305
|
-
o[4] ? n ? (n.p(o, s), s & 16 &&
|
|
13310
|
+
o[4] ? n ? (n.p(o, s), s & 16 && D(n, 1)) : (n = fr(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
13306
13311
|
n = null;
|
|
13307
|
-
}),
|
|
13312
|
+
}), de());
|
|
13308
13313
|
},
|
|
13309
13314
|
i(o) {
|
|
13310
|
-
e || (
|
|
13315
|
+
e || (D(n), e = !0);
|
|
13311
13316
|
},
|
|
13312
13317
|
o(o) {
|
|
13313
|
-
|
|
13318
|
+
M(n), e = !1;
|
|
13314
13319
|
},
|
|
13315
13320
|
d(o) {
|
|
13316
13321
|
n && n.d(o), o && z(t);
|
|
@@ -13321,7 +13326,7 @@ function Dp(i, t, e) {
|
|
|
13321
13326
|
let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: h = !0 } = t, { animation: u = !0 } = t, { playButtonIfNeed: p = "small" } = t, { canPlay: m = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: A = { autoplay: !0, autoplayVideo: !1 } } = t;
|
|
13322
13327
|
const w = pn("mediaStore"), y = pn("hooks");
|
|
13323
13328
|
let x;
|
|
13324
|
-
function
|
|
13329
|
+
function L(H) {
|
|
13325
13330
|
!n || !x || (w.set({ currentMediaUrl: this.src }), y.emit("playStateChange", {
|
|
13326
13331
|
event: H,
|
|
13327
13332
|
state: "playing",
|
|
@@ -13338,37 +13343,37 @@ function Dp(i, t, e) {
|
|
|
13338
13343
|
}), x.autoplay.running || x.autoplay.start());
|
|
13339
13344
|
}
|
|
13340
13345
|
let S = null;
|
|
13341
|
-
const
|
|
13346
|
+
const k = (H) => {
|
|
13342
13347
|
e(10, x = H.detail[0]);
|
|
13343
13348
|
}, F = (H) => J(this, null, function* () {
|
|
13344
|
-
var O,
|
|
13349
|
+
var O, N, Z;
|
|
13345
13350
|
if (!s || !A.autoplayVideo)
|
|
13346
13351
|
return;
|
|
13347
|
-
const
|
|
13348
|
-
if (!
|
|
13352
|
+
const G = H.detail[0];
|
|
13353
|
+
if (!G)
|
|
13349
13354
|
return;
|
|
13350
|
-
const Y =
|
|
13355
|
+
const Y = G.realIndex;
|
|
13351
13356
|
if (Y === S)
|
|
13352
13357
|
return;
|
|
13353
13358
|
e(12, S = Y);
|
|
13354
13359
|
const P = o[Y];
|
|
13355
13360
|
if (!P || P.type !== "Video")
|
|
13356
13361
|
return;
|
|
13357
|
-
|
|
13358
|
-
const
|
|
13359
|
-
if (
|
|
13360
|
-
|
|
13361
|
-
const X = (Z = (
|
|
13362
|
-
|
|
13362
|
+
G.autoplay.stop(), G.slides.map((X) => X.querySelector("video")).filter(Bt).forEach((X) => X.pause());
|
|
13363
|
+
const T = (O = G.slides[G.activeIndex]) == null ? void 0 : O.querySelector("video");
|
|
13364
|
+
if (T && (T.removeEventListener("play", L), T.removeEventListener("pause", C), T.addEventListener("play", L), T.addEventListener("pause", C)), T) {
|
|
13365
|
+
T.addEventListener("click", () => T.pause());
|
|
13366
|
+
const X = (Z = (N = T.parentElement) == null ? void 0 : N.getElementsByClassName("video-play-button-container")) == null ? void 0 : Z[0];
|
|
13367
|
+
T.addEventListener("play", () => X == null ? void 0 : X.classList.remove("showPlayButton")), T.addEventListener("pause", () => X == null ? void 0 : X.classList.add("showPlayButton")), X && (T.paused ? X.classList.add("showPlayButton") : X.classList.remove("showPlayButton"), X.addEventListener("click", () => T.play()));
|
|
13363
13368
|
}
|
|
13364
13369
|
});
|
|
13365
13370
|
return i.$$set = (H) => {
|
|
13366
13371
|
"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, h = H.unfolded), "animation" in H && e(5, u = H.animation), "playButtonIfNeed" in H && e(6, p = H.playButtonIfNeed), "canPlay" in H && e(7, m = 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);
|
|
13367
13372
|
}, i.$$.update = () => {
|
|
13368
13373
|
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) => {
|
|
13369
|
-
const
|
|
13370
|
-
|
|
13371
|
-
Y !==
|
|
13374
|
+
const G = H.querySelector("video");
|
|
13375
|
+
G && w.subscribe(({ currentMediaUrl: Y }) => {
|
|
13376
|
+
Y !== G.src && G.pause();
|
|
13372
13377
|
});
|
|
13373
13378
|
});
|
|
13374
13379
|
}, [
|
|
@@ -13387,11 +13392,11 @@ function Dp(i, t, e) {
|
|
|
13387
13392
|
S,
|
|
13388
13393
|
n,
|
|
13389
13394
|
s,
|
|
13390
|
-
|
|
13395
|
+
L,
|
|
13391
13396
|
C,
|
|
13392
13397
|
r,
|
|
13393
13398
|
v,
|
|
13394
|
-
|
|
13399
|
+
k,
|
|
13395
13400
|
F
|
|
13396
13401
|
];
|
|
13397
13402
|
}
|
|
@@ -13470,23 +13475,23 @@ function gr(i) {
|
|
|
13470
13475
|
const v = {};
|
|
13471
13476
|
g & 16 && (v.visible = m[4]), t.$set(v);
|
|
13472
13477
|
const A = {};
|
|
13473
|
-
g & 16 && (A.unfolded = m[4]), o.$set(A), g & 20 && (h = m[2],
|
|
13478
|
+
g & 16 && (A.unfolded = m[4]), o.$set(A), g & 20 && (h = m[2], ce(), r = Je(r, g, u, 1, m, h, a, l.parentNode, lt, Ar, l, pr), de()), m[3] ? p ? (p.p(m, g), g & 8 && D(p, 1)) : (p = vr(m), p.c(), D(p, 1), p.m(c.parentNode, c)) : p && (ce(), M(p, 1, 1, () => {
|
|
13474
13479
|
p = null;
|
|
13475
|
-
}),
|
|
13480
|
+
}), de());
|
|
13476
13481
|
},
|
|
13477
13482
|
i(m) {
|
|
13478
13483
|
if (!d) {
|
|
13479
|
-
|
|
13484
|
+
D(t.$$.fragment, m), D(o.$$.fragment, m);
|
|
13480
13485
|
for (let g = 0; g < h.length; g += 1)
|
|
13481
|
-
|
|
13482
|
-
|
|
13486
|
+
D(r[g]);
|
|
13487
|
+
D(p), d = !0;
|
|
13483
13488
|
}
|
|
13484
13489
|
},
|
|
13485
13490
|
o(m) {
|
|
13486
|
-
|
|
13491
|
+
M(t.$$.fragment, m), M(o.$$.fragment, m);
|
|
13487
13492
|
for (let g = 0; g < r.length; g += 1)
|
|
13488
|
-
|
|
13489
|
-
|
|
13493
|
+
M(r[g]);
|
|
13494
|
+
M(p), d = !1;
|
|
13490
13495
|
},
|
|
13491
13496
|
d(m) {
|
|
13492
13497
|
$(t, m), m && z(e), m && z(n), $(o), m && z(s);
|
|
@@ -13519,10 +13524,10 @@ function Ar(i, t) {
|
|
|
13519
13524
|
r & 16 && (a.unfolded = t[4]), r & 4 && (a.content = t[1]), n.$set(a);
|
|
13520
13525
|
},
|
|
13521
13526
|
i(s) {
|
|
13522
|
-
o || (
|
|
13527
|
+
o || (D(n.$$.fragment, s), o = !0);
|
|
13523
13528
|
},
|
|
13524
13529
|
o(s) {
|
|
13525
|
-
|
|
13530
|
+
M(n.$$.fragment, s), o = !1;
|
|
13526
13531
|
},
|
|
13527
13532
|
d(s) {
|
|
13528
13533
|
s && z(e), $(n);
|
|
@@ -13555,10 +13560,10 @@ function vr(i) {
|
|
|
13555
13560
|
s & 16 && (r.unfolded = o[4]), s & 8 && (r.mediaData = o[3]), s & 1 && (r.tag = o[0]), e.$set(r);
|
|
13556
13561
|
},
|
|
13557
13562
|
i(o) {
|
|
13558
|
-
n || (
|
|
13563
|
+
n || (D(e.$$.fragment, o), n = !0);
|
|
13559
13564
|
},
|
|
13560
13565
|
o(o) {
|
|
13561
|
-
|
|
13566
|
+
M(e.$$.fragment, o), n = !1;
|
|
13562
13567
|
},
|
|
13563
13568
|
d(o) {
|
|
13564
13569
|
o && z(t), $(e);
|
|
@@ -13575,15 +13580,15 @@ function Sp(i) {
|
|
|
13575
13580
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
13576
13581
|
},
|
|
13577
13582
|
p(o, [s]) {
|
|
13578
|
-
o[0].state ? n ? (n.p(o, s), s & 1 &&
|
|
13583
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && D(n, 1)) : (n = gr(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
13579
13584
|
n = null;
|
|
13580
|
-
}),
|
|
13585
|
+
}), de());
|
|
13581
13586
|
},
|
|
13582
13587
|
i(o) {
|
|
13583
|
-
e || (
|
|
13588
|
+
e || (D(n), e = !0);
|
|
13584
13589
|
},
|
|
13585
13590
|
o(o) {
|
|
13586
|
-
|
|
13591
|
+
M(n), e = !1;
|
|
13587
13592
|
},
|
|
13588
13593
|
d(o) {
|
|
13589
13594
|
n && n.d(o), o && z(t);
|
|
@@ -13735,7 +13740,7 @@ function kr(i) {
|
|
|
13735
13740
|
};
|
|
13736
13741
|
}
|
|
13737
13742
|
function Bp(i) {
|
|
13738
|
-
var
|
|
13743
|
+
var G, Y;
|
|
13739
13744
|
let t, e, n, o, s, r, a, l, c, d, h, u, p, m, g = i[2].title + "", v, A, w, y, x;
|
|
13740
13745
|
e = new Ve({
|
|
13741
13746
|
props: {
|
|
@@ -13747,68 +13752,68 @@ function Bp(i) {
|
|
|
13747
13752
|
spreadRadius: 75
|
|
13748
13753
|
}
|
|
13749
13754
|
});
|
|
13750
|
-
let
|
|
13751
|
-
for (let P = 0; P <
|
|
13752
|
-
C[P] = Cr(yr(i,
|
|
13753
|
-
let S = i[2].tags || [],
|
|
13755
|
+
let L = i[2].brandTags || [], C = [];
|
|
13756
|
+
for (let P = 0; P < L.length; P += 1)
|
|
13757
|
+
C[P] = Cr(yr(i, L, P));
|
|
13758
|
+
let S = i[2].tags || [], k = [];
|
|
13754
13759
|
for (let P = 0; P < S.length; P += 1)
|
|
13755
|
-
|
|
13756
|
-
let F = ((
|
|
13760
|
+
k[P] = Pr(br(i, S, P));
|
|
13761
|
+
let F = ((G = i[2].price) == null ? void 0 : G.value) !== void 0 && ((Y = i[2].price) == null ? void 0 : Y.value) !== null && Ir(i), H = i[2].highlightText && kr(i);
|
|
13757
13762
|
return {
|
|
13758
13763
|
c() {
|
|
13759
13764
|
var P, I;
|
|
13760
13765
|
t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), s = V(), r = j("div"), a = j("img"), c = V(), d = j("div");
|
|
13761
|
-
for (let
|
|
13762
|
-
C[
|
|
13766
|
+
for (let T = 0; T < C.length; T += 1)
|
|
13767
|
+
C[T].c();
|
|
13763
13768
|
h = V();
|
|
13764
|
-
for (let
|
|
13765
|
-
|
|
13769
|
+
for (let T = 0; T < k.length; T += 1)
|
|
13770
|
+
k[T].c();
|
|
13766
13771
|
u = V(), p = j("div"), m = 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"), tt(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(m, "class", "text svelte-8mby9k"), b(p, "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]);
|
|
13767
13772
|
},
|
|
13768
13773
|
m(P, I) {
|
|
13769
13774
|
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);
|
|
13770
|
-
for (let
|
|
13771
|
-
C[
|
|
13775
|
+
for (let T = 0; T < C.length; T += 1)
|
|
13776
|
+
C[T].m(d, null);
|
|
13772
13777
|
Q(d, h);
|
|
13773
|
-
for (let
|
|
13774
|
-
|
|
13778
|
+
for (let T = 0; T < k.length; T += 1)
|
|
13779
|
+
k[T].m(d, null);
|
|
13775
13780
|
Q(r, u), Q(r, p), Q(p, m), Q(m, v), Q(r, A), Q(r, w), F && F.m(w, null), Q(w, y), H && H.m(w, null), x = !0;
|
|
13776
13781
|
},
|
|
13777
13782
|
p(P, [I]) {
|
|
13778
|
-
var O,
|
|
13779
|
-
const
|
|
13780
|
-
if (I & 2 && (
|
|
13781
|
-
|
|
13783
|
+
var O, N, Z, X;
|
|
13784
|
+
const T = {};
|
|
13785
|
+
if (I & 2 && (T.visible = P[1]), e.$set(T), I & 2 && R(o, "transition-delay", P[1] ? Rn + "ms" : Hn + Lr - Dr - 40 + "ms"), (!x || I & 4 && !tt(a.src, l = P[2].headerPictureUrl)) && b(a, "src", l), I & 4) {
|
|
13786
|
+
L = P[2].brandTags || [];
|
|
13782
13787
|
let U;
|
|
13783
|
-
for (U = 0; U <
|
|
13784
|
-
const
|
|
13785
|
-
C[U] ? C[U].p(
|
|
13788
|
+
for (U = 0; U < L.length; U += 1) {
|
|
13789
|
+
const le = yr(P, L, U);
|
|
13790
|
+
C[U] ? C[U].p(le, I) : (C[U] = Cr(le), C[U].c(), C[U].m(d, h));
|
|
13786
13791
|
}
|
|
13787
13792
|
for (; U < C.length; U += 1)
|
|
13788
13793
|
C[U].d(1);
|
|
13789
|
-
C.length =
|
|
13794
|
+
C.length = L.length;
|
|
13790
13795
|
}
|
|
13791
13796
|
if (I & 4) {
|
|
13792
13797
|
S = P[2].tags || [];
|
|
13793
13798
|
let U;
|
|
13794
13799
|
for (U = 0; U < S.length; U += 1) {
|
|
13795
|
-
const
|
|
13796
|
-
|
|
13800
|
+
const le = br(P, S, U);
|
|
13801
|
+
k[U] ? k[U].p(le, I) : (k[U] = Pr(le), k[U].c(), k[U].m(d, null));
|
|
13797
13802
|
}
|
|
13798
|
-
for (; U <
|
|
13799
|
-
|
|
13800
|
-
|
|
13803
|
+
for (; U < k.length; U += 1)
|
|
13804
|
+
k[U].d(1);
|
|
13805
|
+
k.length = S.length;
|
|
13801
13806
|
}
|
|
13802
|
-
(!x || I & 4) && g !== (g = P[2].title + "") && Me(v, g), ((O = P[2].price) == null ? void 0 : O.value) !== void 0 && ((
|
|
13807
|
+
(!x || I & 4) && g !== (g = P[2].title + "") && Me(v, g), ((O = P[2].price) == null ? void 0 : O.value) !== void 0 && ((N = P[2].price) == null ? void 0 : N.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]);
|
|
13803
13808
|
},
|
|
13804
13809
|
i(P) {
|
|
13805
|
-
x || (
|
|
13810
|
+
x || (D(e.$$.fragment, P), x = !0);
|
|
13806
13811
|
},
|
|
13807
13812
|
o(P) {
|
|
13808
|
-
|
|
13813
|
+
M(e.$$.fragment, P), x = !1;
|
|
13809
13814
|
},
|
|
13810
13815
|
d(P) {
|
|
13811
|
-
P && z(t), $(e), nt(C, P), nt(
|
|
13816
|
+
P && z(t), $(e), nt(C, P), nt(k, P), F && F.d(), H && H.d();
|
|
13812
13817
|
}
|
|
13813
13818
|
};
|
|
13814
13819
|
}
|
|
@@ -13853,7 +13858,7 @@ function Sr(i) {
|
|
|
13853
13858
|
i = m, (!h || g & 8 && !tt(r.src, a = i[3])) && b(r, "src", a), g & 64 && l !== (l = i[6]) && r[l ? "pause" : "play"](), (!h || g & 64) && q(t, "paused", i[6]);
|
|
13854
13859
|
},
|
|
13855
13860
|
i(m) {
|
|
13856
|
-
h || (
|
|
13861
|
+
h || (D(e.$$.fragment, m), m && Ie(() => {
|
|
13857
13862
|
d && d.end(1), c = Ht(t, Tt, {
|
|
13858
13863
|
duration: i[2],
|
|
13859
13864
|
delay: i[0],
|
|
@@ -13862,7 +13867,7 @@ function Sr(i) {
|
|
|
13862
13867
|
}), h = !0);
|
|
13863
13868
|
},
|
|
13864
13869
|
o(m) {
|
|
13865
|
-
|
|
13870
|
+
M(e.$$.fragment, m), c && c.invalidate(), m && (d = Kt(t, Tt, {
|
|
13866
13871
|
duration: i[2],
|
|
13867
13872
|
delay: i[1],
|
|
13868
13873
|
easing: Zt
|
|
@@ -13883,15 +13888,15 @@ function Hp(i) {
|
|
|
13883
13888
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
13884
13889
|
},
|
|
13885
13890
|
p(o, [s]) {
|
|
13886
|
-
o[4] ? n ? (n.p(o, s), s & 16 &&
|
|
13891
|
+
o[4] ? n ? (n.p(o, s), s & 16 && D(n, 1)) : (n = Sr(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
13887
13892
|
n = null;
|
|
13888
|
-
}),
|
|
13893
|
+
}), de());
|
|
13889
13894
|
},
|
|
13890
13895
|
i(o) {
|
|
13891
|
-
e || (
|
|
13896
|
+
e || (D(n), e = !0);
|
|
13892
13897
|
},
|
|
13893
13898
|
o(o) {
|
|
13894
|
-
|
|
13899
|
+
M(n), e = !1;
|
|
13895
13900
|
},
|
|
13896
13901
|
d(o) {
|
|
13897
13902
|
n && n.d(o), o && z(t);
|
|
@@ -13906,13 +13911,13 @@ function Op(i, t, e) {
|
|
|
13906
13911
|
v !== r && (h == null || h.pause());
|
|
13907
13912
|
});
|
|
13908
13913
|
function p(v) {
|
|
13909
|
-
d.set({ currentMediaUrl: r }), h && (c.emit("click",
|
|
13914
|
+
d.set({ currentMediaUrl: r }), h && (c.emit("click", W({
|
|
13910
13915
|
event: v,
|
|
13911
13916
|
target: "AudioTagPlayIcon",
|
|
13912
13917
|
audioInstance: h
|
|
13913
13918
|
}, l)), h.paused ? h.play() : h.pause(), e(
|
|
13914
13919
|
5,
|
|
13915
|
-
h.onplay = (A) => c.emit("playStateChange",
|
|
13920
|
+
h.onplay = (A) => c.emit("playStateChange", W({
|
|
13916
13921
|
event: A,
|
|
13917
13922
|
state: "playing",
|
|
13918
13923
|
mediaInstance: h
|
|
@@ -13920,7 +13925,7 @@ function Op(i, t, e) {
|
|
|
13920
13925
|
h
|
|
13921
13926
|
), e(
|
|
13922
13927
|
5,
|
|
13923
|
-
h.onpause = (A) => c.emit("playStateChange",
|
|
13928
|
+
h.onpause = (A) => c.emit("playStateChange", W({
|
|
13924
13929
|
event: A,
|
|
13925
13930
|
state: "paused",
|
|
13926
13931
|
mediaInstance: h
|
|
@@ -13978,7 +13983,7 @@ function Gp(i) {
|
|
|
13978
13983
|
ae(i, "svelte-4r8s18", ".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}");
|
|
13979
13984
|
}
|
|
13980
13985
|
function zr(i) {
|
|
13981
|
-
var w, y, x,
|
|
13986
|
+
var w, y, x, L;
|
|
13982
13987
|
let t, e, n, o, s, r, a, l, c, d, h, u, p, m, g, v, A;
|
|
13983
13988
|
return e = new Ve({
|
|
13984
13989
|
props: {
|
|
@@ -14000,7 +14005,7 @@ function zr(i) {
|
|
|
14000
14005
|
unfolded: i[5],
|
|
14001
14006
|
url: i[0].data.audioUrl,
|
|
14002
14007
|
duration: 1e3,
|
|
14003
|
-
outDelay: 20 * Math.min((
|
|
14008
|
+
outDelay: 20 * Math.min((L = (x = i[3][0]) == null ? void 0 : x.content.length) != null ? L : 10, 15),
|
|
14004
14009
|
hooksInfo: { tag: i[0] }
|
|
14005
14010
|
}
|
|
14006
14011
|
}), p = new Va({
|
|
@@ -14017,21 +14022,21 @@ function zr(i) {
|
|
|
14017
14022
|
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, h), Q(l, u), K(p, u, null), m = yt(a, i[8].bind(a)), g = !0, v || (A = Ee(u, "click", i[6]), v = !0);
|
|
14018
14023
|
},
|
|
14019
14024
|
p(C, S) {
|
|
14020
|
-
var Y, P, I,
|
|
14021
|
-
const
|
|
14022
|
-
S & 32 && (
|
|
14025
|
+
var Y, P, I, T;
|
|
14026
|
+
const k = {};
|
|
14027
|
+
S & 32 && (k.visible = C[5]), S & 4 && (k.left = C[2] / 2 + "px"), e.$set(k);
|
|
14023
14028
|
const F = {};
|
|
14024
14029
|
S & 32 && (F.unfolded = C[5]), S & 24 && (F.outDelay = C[4] + 20 * Math.min((P = (Y = C[3][0]) == null ? void 0 : Y.content.length) != null ? P : 10, 15)), s.$set(F), S & 4 && R(o, "width", C[2] + "px");
|
|
14025
14030
|
const H = {};
|
|
14026
|
-
S & 32 && (H.unfolded = C[5]), S & 1 && (H.url = C[0].data.audioUrl), S & 8 && (H.outDelay = 20 * Math.min((
|
|
14027
|
-
const
|
|
14028
|
-
S & 32 && (
|
|
14031
|
+
S & 32 && (H.unfolded = C[5]), S & 1 && (H.url = C[0].data.audioUrl), S & 8 && (H.outDelay = 20 * Math.min((T = (I = C[3][0]) == null ? void 0 : I.content.length) != null ? T : 10, 15)), S & 1 && (H.hooksInfo = { tag: C[0] }), d.$set(H);
|
|
14032
|
+
const G = {};
|
|
14033
|
+
S & 32 && (G.visible = C[5]), S & 2 && (G.textUnfolded = C[1]), S & 8 && (G.textItems = C[3]), p.$set(G), (!g || S & 32) && q(t, "unfolded", C[5]);
|
|
14029
14034
|
},
|
|
14030
14035
|
i(C) {
|
|
14031
|
-
g || (
|
|
14036
|
+
g || (D(e.$$.fragment, C), D(s.$$.fragment, C), D(d.$$.fragment, C), D(p.$$.fragment, C), g = !0);
|
|
14032
14037
|
},
|
|
14033
14038
|
o(C) {
|
|
14034
|
-
|
|
14039
|
+
M(e.$$.fragment, C), M(s.$$.fragment, C), M(d.$$.fragment, C), M(p.$$.fragment, C), g = !1;
|
|
14035
14040
|
},
|
|
14036
14041
|
d(C) {
|
|
14037
14042
|
C && z(t), $(e), $(s), $(d), $(p), m(), v = !1, A();
|
|
@@ -14048,15 +14053,15 @@ function Np(i) {
|
|
|
14048
14053
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
14049
14054
|
},
|
|
14050
14055
|
p(o, [s]) {
|
|
14051
|
-
o[0].state ? n ? (n.p(o, s), s & 1 &&
|
|
14056
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && D(n, 1)) : (n = zr(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
14052
14057
|
n = null;
|
|
14053
|
-
}),
|
|
14058
|
+
}), de());
|
|
14054
14059
|
},
|
|
14055
14060
|
i(o) {
|
|
14056
|
-
e || (
|
|
14061
|
+
e || (D(n), e = !0);
|
|
14057
14062
|
},
|
|
14058
14063
|
o(o) {
|
|
14059
|
-
|
|
14064
|
+
M(n), e = !1;
|
|
14060
14065
|
},
|
|
14061
14066
|
d(o) {
|
|
14062
14067
|
n && n.d(o), o && z(t);
|
|
@@ -14123,10 +14128,10 @@ function Mr(i) {
|
|
|
14123
14128
|
s & 32 && (r.unfolded = o[5]), s & 16 && (r.mediaData = o[4]), s & 4 && (r.objectFit = o[2]), s & 2 && (r.enableCarousel = o[1]), s & 8 && (r.autoplayConfig = o[3]), s & 1 && (r.tag = o[0]), e.$set(r);
|
|
14124
14129
|
},
|
|
14125
14130
|
i(o) {
|
|
14126
|
-
n || (
|
|
14131
|
+
n || (D(e.$$.fragment, o), n = !0);
|
|
14127
14132
|
},
|
|
14128
14133
|
o(o) {
|
|
14129
|
-
|
|
14134
|
+
M(e.$$.fragment, o), n = !1;
|
|
14130
14135
|
},
|
|
14131
14136
|
d(o) {
|
|
14132
14137
|
o && z(t), $(e);
|
|
@@ -14143,15 +14148,15 @@ function Up(i) {
|
|
|
14143
14148
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
14144
14149
|
},
|
|
14145
14150
|
p(o, [s]) {
|
|
14146
|
-
o[0].state && o[4] ? n ? (n.p(o, s), s & 17 &&
|
|
14151
|
+
o[0].state && o[4] ? n ? (n.p(o, s), s & 17 && D(n, 1)) : (n = Mr(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
14147
14152
|
n = null;
|
|
14148
|
-
}),
|
|
14153
|
+
}), de());
|
|
14149
14154
|
},
|
|
14150
14155
|
i(o) {
|
|
14151
|
-
e || (
|
|
14156
|
+
e || (D(n), e = !0);
|
|
14152
14157
|
},
|
|
14153
14158
|
o(o) {
|
|
14154
|
-
|
|
14159
|
+
M(n), e = !1;
|
|
14155
14160
|
},
|
|
14156
14161
|
d(o) {
|
|
14157
14162
|
n && n.d(o), o && z(t);
|
|
@@ -14199,10 +14204,10 @@ function _p(i) {
|
|
|
14199
14204
|
K(t, s, r), B(s, e, r), B(s, n, r), o = !0;
|
|
14200
14205
|
},
|
|
14201
14206
|
i(s) {
|
|
14202
|
-
o || (
|
|
14207
|
+
o || (D(t.$$.fragment, s), o = !0);
|
|
14203
14208
|
},
|
|
14204
14209
|
o(s) {
|
|
14205
|
-
|
|
14210
|
+
M(t.$$.fragment, s), o = !1;
|
|
14206
14211
|
},
|
|
14207
14212
|
d(s) {
|
|
14208
14213
|
$(t, s), s && z(e), s && z(n);
|
|
@@ -14230,10 +14235,10 @@ function qp(i) {
|
|
|
14230
14235
|
K(t, c, d), B(c, e, d), B(c, n, d), B(c, o, d), B(c, s, d), B(c, r, d), B(c, a, d), l = !0;
|
|
14231
14236
|
},
|
|
14232
14237
|
i(c) {
|
|
14233
|
-
l || (
|
|
14238
|
+
l || (D(t.$$.fragment, c), l = !0);
|
|
14234
14239
|
},
|
|
14235
14240
|
o(c) {
|
|
14236
|
-
|
|
14241
|
+
M(t.$$.fragment, c), l = !1;
|
|
14237
14242
|
},
|
|
14238
14243
|
d(c) {
|
|
14239
14244
|
$(t, c), c && z(e), c && z(n), c && z(o), c && z(s), c && z(r), c && z(a);
|
|
@@ -14267,15 +14272,15 @@ function Kp(i) {
|
|
|
14267
14272
|
},
|
|
14268
14273
|
p(v, [A]) {
|
|
14269
14274
|
let w = n;
|
|
14270
|
-
n = g(v), n !== w && (o && (
|
|
14275
|
+
n = g(v), n !== w && (o && (ce(), M(m[w], 1, 1, () => {
|
|
14271
14276
|
m[w] = null;
|
|
14272
|
-
}),
|
|
14277
|
+
}), de()), ~n ? (o = m[n], o || (o = m[n] = p[n](v), o.c()), D(o, 1), o.m(e, null)) : o = null), (!u || A & 1) && d !== (d = v[0].text + "") && Me(h, d);
|
|
14273
14278
|
},
|
|
14274
14279
|
i(v) {
|
|
14275
|
-
u || (
|
|
14280
|
+
u || (D(o), D(a.$$.fragment, v), u = !0);
|
|
14276
14281
|
},
|
|
14277
14282
|
o(v) {
|
|
14278
|
-
|
|
14283
|
+
M(o), M(a.$$.fragment, v), u = !1;
|
|
14279
14284
|
},
|
|
14280
14285
|
d(v) {
|
|
14281
14286
|
v && z(t), ~n && m[n].d(), $(a);
|
|
@@ -14384,10 +14389,10 @@ function rg(i) {
|
|
|
14384
14389
|
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14385
14390
|
},
|
|
14386
14391
|
i(n) {
|
|
14387
|
-
e || (
|
|
14392
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14388
14393
|
},
|
|
14389
14394
|
o(n) {
|
|
14390
|
-
|
|
14395
|
+
M(t.$$.fragment, n), e = !1;
|
|
14391
14396
|
},
|
|
14392
14397
|
d(n) {
|
|
14393
14398
|
$(t, n);
|
|
@@ -14410,10 +14415,10 @@ function ag(i) {
|
|
|
14410
14415
|
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14411
14416
|
},
|
|
14412
14417
|
i(n) {
|
|
14413
|
-
e || (
|
|
14418
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14414
14419
|
},
|
|
14415
14420
|
o(n) {
|
|
14416
|
-
|
|
14421
|
+
M(t.$$.fragment, n), e = !1;
|
|
14417
14422
|
},
|
|
14418
14423
|
d(n) {
|
|
14419
14424
|
$(t, n);
|
|
@@ -14436,10 +14441,10 @@ function lg(i) {
|
|
|
14436
14441
|
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14437
14442
|
},
|
|
14438
14443
|
i(n) {
|
|
14439
|
-
e || (
|
|
14444
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14440
14445
|
},
|
|
14441
14446
|
o(n) {
|
|
14442
|
-
|
|
14447
|
+
M(t.$$.fragment, n), e = !1;
|
|
14443
14448
|
},
|
|
14444
14449
|
d(n) {
|
|
14445
14450
|
$(t, n);
|
|
@@ -14462,10 +14467,10 @@ function cg(i) {
|
|
|
14462
14467
|
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14463
14468
|
},
|
|
14464
14469
|
i(n) {
|
|
14465
|
-
e || (
|
|
14470
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14466
14471
|
},
|
|
14467
14472
|
o(n) {
|
|
14468
|
-
|
|
14473
|
+
M(t.$$.fragment, n), e = !1;
|
|
14469
14474
|
},
|
|
14470
14475
|
d(n) {
|
|
14471
14476
|
$(t, n);
|
|
@@ -14488,10 +14493,10 @@ function dg(i) {
|
|
|
14488
14493
|
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14489
14494
|
},
|
|
14490
14495
|
i(n) {
|
|
14491
|
-
e || (
|
|
14496
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14492
14497
|
},
|
|
14493
14498
|
o(n) {
|
|
14494
|
-
|
|
14499
|
+
M(t.$$.fragment, n), e = !1;
|
|
14495
14500
|
},
|
|
14496
14501
|
d(n) {
|
|
14497
14502
|
$(t, n);
|
|
@@ -14514,10 +14519,10 @@ function ug(i) {
|
|
|
14514
14519
|
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14515
14520
|
},
|
|
14516
14521
|
i(n) {
|
|
14517
|
-
e || (
|
|
14522
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14518
14523
|
},
|
|
14519
14524
|
o(n) {
|
|
14520
|
-
|
|
14525
|
+
M(t.$$.fragment, n), e = !1;
|
|
14521
14526
|
},
|
|
14522
14527
|
d(n) {
|
|
14523
14528
|
$(t, n);
|
|
@@ -14540,10 +14545,10 @@ function hg(i) {
|
|
|
14540
14545
|
o & 2 && (s.tag = Le(n[1])), t.$set(s);
|
|
14541
14546
|
},
|
|
14542
14547
|
i(n) {
|
|
14543
|
-
e || (
|
|
14548
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14544
14549
|
},
|
|
14545
14550
|
o(n) {
|
|
14546
|
-
|
|
14551
|
+
M(t.$$.fragment, n), e = !1;
|
|
14547
14552
|
},
|
|
14548
14553
|
d(n) {
|
|
14549
14554
|
$(t, n);
|
|
@@ -14575,15 +14580,15 @@ function fg(i) {
|
|
|
14575
14580
|
p(p, [m]) {
|
|
14576
14581
|
var v, A, w;
|
|
14577
14582
|
let g = o;
|
|
14578
|
-
o = u(p), o === g ? ~o && h[o].p(p, m) : (s && (
|
|
14583
|
+
o = u(p), o === g ? ~o && h[o].p(p, m) : (s && (ce(), M(h[g], 1, 1, () => {
|
|
14579
14584
|
h[g] = null;
|
|
14580
|
-
}),
|
|
14585
|
+
}), de()), ~o ? (s = h[o], s ? s.p(p, m) : (s = h[o] = d[o](p), s.c()), D(s, 1), s.m(n, null)) : s = null), (!a || m & 2) && q(n, "unfolded", (v = p[1].state) == null ? void 0 : v.unfolded), (!a || m & 2 && r !== (r = p[1].id)) && b(t, "data-id", r), (!a || m & 2) && q(t, "disable", p[1].enabled === !1 || ((A = p[1].temporaryState) == null ? void 0 : A.visible) === !1), (!a || m & 26) && q(t, "hide", !p[3].visible || !p[3].enabled || !p[4].visible || !((w = p[1].state) != null && w.visible)), (!a || m & 1) && q(t, "withAnimation", p[0]), (!a || m & 2) && q(t, "unClickable", p[1].clickable === !1), m & 2 && R(t, "width", p[1].pointType === "PointTag" ? 0 : "100%"), m & 2 && R(t, "height", p[1].pointType === "PointTag" ? 0 : "100%");
|
|
14581
14586
|
},
|
|
14582
14587
|
i(p) {
|
|
14583
|
-
a || (
|
|
14588
|
+
a || (D(s), a = !0);
|
|
14584
14589
|
},
|
|
14585
14590
|
o(p) {
|
|
14586
|
-
|
|
14591
|
+
M(s), a = !1;
|
|
14587
14592
|
},
|
|
14588
14593
|
d(p) {
|
|
14589
14594
|
p && z(t), ~o && h[o].d(), l = !1, c();
|
|
@@ -14660,10 +14665,10 @@ function gg(i) {
|
|
|
14660
14665
|
c & 12 && R(o, "transition-delay", l[3] ? l[2] + "ms" : "0ms"), (!a || c & 2) && R(r, "--iconUrl", "url(" + l[1] + ")"), c & 12 && R(r, "transition-delay", l[3] ? l[2] + "ms" : "0ms"), (!a || c & 8) && q(t, "folded", l[3]), (!a || c & 1) && q(t, "unfolded", l[0]);
|
|
14661
14666
|
},
|
|
14662
14667
|
i(l) {
|
|
14663
|
-
a || (
|
|
14668
|
+
a || (D(e.$$.fragment, l), a = !0);
|
|
14664
14669
|
},
|
|
14665
14670
|
o(l) {
|
|
14666
|
-
|
|
14671
|
+
M(e.$$.fragment, l), a = !1;
|
|
14667
14672
|
},
|
|
14668
14673
|
d(l) {
|
|
14669
14674
|
l && z(t), $(e);
|
|
@@ -14705,10 +14710,10 @@ function yg(i) {
|
|
|
14705
14710
|
c & 6 && R(o, "transition-delay", l[2] ? l[1] + "ms" : "0ms"), c & 6 && R(r, "transition-delay", l[2] ? l[1] + "ms" : "0ms"), (!a || c & 1) && q(t, "unfolded", l[0]), (!a || c & 4) && q(t, "folded", l[2]);
|
|
14706
14711
|
},
|
|
14707
14712
|
i(l) {
|
|
14708
|
-
a || (
|
|
14713
|
+
a || (D(e.$$.fragment, l), a = !0);
|
|
14709
14714
|
},
|
|
14710
14715
|
o(l) {
|
|
14711
|
-
|
|
14716
|
+
M(e.$$.fragment, l), a = !1;
|
|
14712
14717
|
},
|
|
14713
14718
|
d(l) {
|
|
14714
14719
|
l && z(t), $(e);
|
|
@@ -14741,15 +14746,15 @@ function Br(i) {
|
|
|
14741
14746
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
14742
14747
|
},
|
|
14743
14748
|
p(o, s) {
|
|
14744
|
-
o[0].contentType !== Xe.Link ? n ? (n.p(o, s), s & 1 &&
|
|
14749
|
+
o[0].contentType !== Xe.Link ? n ? (n.p(o, s), s & 1 && D(n, 1)) : (n = jr(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
14745
14750
|
n = null;
|
|
14746
|
-
}),
|
|
14751
|
+
}), de());
|
|
14747
14752
|
},
|
|
14748
14753
|
i(o) {
|
|
14749
|
-
e || (
|
|
14754
|
+
e || (D(n), e = !0);
|
|
14750
14755
|
},
|
|
14751
14756
|
o(o) {
|
|
14752
|
-
|
|
14757
|
+
M(n), e = !1;
|
|
14753
14758
|
},
|
|
14754
14759
|
d(o) {
|
|
14755
14760
|
n && n.d(o), o && z(t);
|
|
@@ -14772,15 +14777,15 @@ function jr(i) {
|
|
|
14772
14777
|
},
|
|
14773
14778
|
p(d, h) {
|
|
14774
14779
|
let u = n;
|
|
14775
|
-
n = c(d), n === u ? l[n].p(d, h) : (
|
|
14780
|
+
n = c(d), n === u ? l[n].p(d, h) : (ce(), M(l[u], 1, 1, () => {
|
|
14776
14781
|
l[u] = null;
|
|
14777
|
-
}),
|
|
14782
|
+
}), de(), o = l[n], o ? o.p(d, h) : (o = l[n] = a[n](d), o.c()), D(o, 1), o.m(s.parentNode, s));
|
|
14778
14783
|
},
|
|
14779
14784
|
i(d) {
|
|
14780
|
-
r || (
|
|
14785
|
+
r || (D(o), r = !0);
|
|
14781
14786
|
},
|
|
14782
14787
|
o(d) {
|
|
14783
|
-
|
|
14788
|
+
M(o), r = !1;
|
|
14784
14789
|
},
|
|
14785
14790
|
d(d) {
|
|
14786
14791
|
d && z(t), d && z(e), l[n].d(d), d && z(s);
|
|
@@ -14806,10 +14811,10 @@ function Pg(i) {
|
|
|
14806
14811
|
o & 1 && (s.unfolded = n[0].state.unfolded), o & 2 && (s.foldDelay = n[1]), t.$set(s);
|
|
14807
14812
|
},
|
|
14808
14813
|
i(n) {
|
|
14809
|
-
e || (
|
|
14814
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14810
14815
|
},
|
|
14811
14816
|
o(n) {
|
|
14812
|
-
|
|
14817
|
+
M(t.$$.fragment, n), e = !1;
|
|
14813
14818
|
},
|
|
14814
14819
|
d(n) {
|
|
14815
14820
|
$(t, n);
|
|
@@ -14836,10 +14841,10 @@ function Ig(i) {
|
|
|
14836
14841
|
o & 1 && (s.iconUrl = n[0].style.point.iconUrl), o & 1 && (s.unfolded = n[0].state.unfolded), o & 2 && (s.foldDelay = n[1]), t.$set(s);
|
|
14837
14842
|
},
|
|
14838
14843
|
i(n) {
|
|
14839
|
-
e || (
|
|
14844
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14840
14845
|
},
|
|
14841
14846
|
o(n) {
|
|
14842
|
-
|
|
14847
|
+
M(t.$$.fragment, n), e = !1;
|
|
14843
14848
|
},
|
|
14844
14849
|
d(n) {
|
|
14845
14850
|
$(t, n);
|
|
@@ -14858,15 +14863,15 @@ function xg(i) {
|
|
|
14858
14863
|
},
|
|
14859
14864
|
p(a, [l]) {
|
|
14860
14865
|
var c, d, h;
|
|
14861
|
-
((c = a[0].pointTagStyle) == null ? void 0 : c.leftPercent) && ((d = a[0].pointTagStyle) == null ? void 0 : d.topPercent) && a[0].enabled !== !1 && a[0].state && ((h = a[0].temporaryState) == null ? void 0 : h.visible) !== !1 ? n ? (n.p(a, l), l & 1 &&
|
|
14866
|
+
((c = a[0].pointTagStyle) == null ? void 0 : c.leftPercent) && ((d = a[0].pointTagStyle) == null ? void 0 : d.topPercent) && a[0].enabled !== !1 && a[0].state && ((h = a[0].temporaryState) == null ? void 0 : h.visible) !== !1 ? n ? (n.p(a, l), l & 1 && D(n, 1)) : (n = Br(a), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
14862
14867
|
n = null;
|
|
14863
|
-
}),
|
|
14868
|
+
}), de());
|
|
14864
14869
|
},
|
|
14865
14870
|
i(a) {
|
|
14866
|
-
e || (
|
|
14871
|
+
e || (D(n), e = !0);
|
|
14867
14872
|
},
|
|
14868
14873
|
o(a) {
|
|
14869
|
-
|
|
14874
|
+
M(n), e = !1;
|
|
14870
14875
|
},
|
|
14871
14876
|
d(a) {
|
|
14872
14877
|
n && n.d(a), a && z(t);
|
|
@@ -14913,10 +14918,10 @@ function Qr(i) {
|
|
|
14913
14918
|
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);
|
|
14914
14919
|
},
|
|
14915
14920
|
i(n) {
|
|
14916
|
-
e || (
|
|
14921
|
+
e || (D(t.$$.fragment, n), e = !0);
|
|
14917
14922
|
},
|
|
14918
14923
|
o(n) {
|
|
14919
|
-
|
|
14924
|
+
M(t.$$.fragment, n), e = !1;
|
|
14920
14925
|
},
|
|
14921
14926
|
d(n) {
|
|
14922
14927
|
$(t, n);
|
|
@@ -14937,10 +14942,10 @@ function Rr(i) {
|
|
|
14937
14942
|
a & 2 && (l.tag = r[1]), e.$set(l);
|
|
14938
14943
|
},
|
|
14939
14944
|
i(r) {
|
|
14940
|
-
n || (
|
|
14945
|
+
n || (D(e.$$.fragment, r), n = !0);
|
|
14941
14946
|
},
|
|
14942
14947
|
o(r) {
|
|
14943
|
-
|
|
14948
|
+
M(e.$$.fragment, r), n = !1;
|
|
14944
14949
|
},
|
|
14945
14950
|
d(r) {
|
|
14946
14951
|
r && z(t), $(e), o = !1, s();
|
|
@@ -14959,17 +14964,17 @@ function Sg(i) {
|
|
|
14959
14964
|
},
|
|
14960
14965
|
p(c, [d]) {
|
|
14961
14966
|
var h, u;
|
|
14962
|
-
c[1].dimensionType === qe.Two ? s ? (s.p(c, d), d & 2 &&
|
|
14967
|
+
c[1].dimensionType === qe.Two ? s ? (s.p(c, d), d & 2 && D(s, 1)) : (s = Qr(c), s.c(), D(s, 1), s.m(t, e)) : s && (ce(), M(s, 1, 1, () => {
|
|
14963
14968
|
s = null;
|
|
14964
|
-
}),
|
|
14969
|
+
}), de()), c[1].pointType === We.PointTag && ((u = (h = c[1].style) == null ? void 0 : h.point) == null ? void 0 : u.style) !== "noPoint" ? r ? (r.p(c, d), d & 2 && D(r, 1)) : (r = Rr(c), r.c(), D(r, 1), r.m(t, null)) : r && (ce(), M(r, 1, 1, () => {
|
|
14965
14970
|
r = null;
|
|
14966
|
-
}),
|
|
14971
|
+
}), de()), (!o || d & 2 && n !== (n = c[1].id)) && b(t, "data-id", n), (!o || d & 1024) && q(t, "hide", c[10]), (!o || d & 64) && q(t, "unfolded", c[6]), d & 512 && R(t, "left", c[9]), d & 256 && R(t, "top", c[8]), d & 128 && R(t, "z-index", c[7]);
|
|
14967
14972
|
},
|
|
14968
14973
|
i(c) {
|
|
14969
|
-
o || (
|
|
14974
|
+
o || (D(s), D(r), o = !0);
|
|
14970
14975
|
},
|
|
14971
14976
|
o(c) {
|
|
14972
|
-
|
|
14977
|
+
M(s), M(r), o = !1;
|
|
14973
14978
|
},
|
|
14974
14979
|
d(c) {
|
|
14975
14980
|
c && z(t), s && s.d(), r && r.d();
|
|
@@ -14992,8 +14997,8 @@ function zg(i, t, e) {
|
|
|
14992
14997
|
return i.$$set = (y) => {
|
|
14993
14998
|
"withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, h = y.hooks), "state" in y && e(3, u = y.state), "mediaStore" in y && e(4, p = y.mediaStore), "temporaryState" in y && e(5, m = y.temporaryState);
|
|
14994
14999
|
}, i.$$.update = () => {
|
|
14995
|
-
var y, x,
|
|
14996
|
-
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 = ((
|
|
15000
|
+
var y, x, L, C;
|
|
15001
|
+
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();
|
|
14997
15002
|
}, [
|
|
14998
15003
|
c,
|
|
14999
15004
|
d,
|
|
@@ -15058,18 +15063,18 @@ function Or(i) {
|
|
|
15058
15063
|
o = !0;
|
|
15059
15064
|
},
|
|
15060
15065
|
p(a, l) {
|
|
15061
|
-
l & 63 && (s = a[1],
|
|
15066
|
+
l & 63 && (s = a[1], ce(), e = Je(e, l, r, 1, a, s, n, t, lt, Fr, null, Hr), de()), (!o || l & 40) && q(t, "hide", !a[3].visible || !a[5].visible), (!o || l & 1) && q(t, "withAnimation", a[0]);
|
|
15062
15067
|
},
|
|
15063
15068
|
i(a) {
|
|
15064
15069
|
if (!o) {
|
|
15065
15070
|
for (let l = 0; l < s.length; l += 1)
|
|
15066
|
-
|
|
15071
|
+
D(e[l]);
|
|
15067
15072
|
o = !0;
|
|
15068
15073
|
}
|
|
15069
15074
|
},
|
|
15070
15075
|
o(a) {
|
|
15071
15076
|
for (let l = 0; l < e.length; l += 1)
|
|
15072
|
-
|
|
15077
|
+
M(e[l]);
|
|
15073
15078
|
o = !1;
|
|
15074
15079
|
},
|
|
15075
15080
|
d(a) {
|
|
@@ -15120,10 +15125,10 @@ function Fr(i, t) {
|
|
|
15120
15125
|
n.$set(d), (!s || c & 2) && q(e, "hide", !((h = t[6].pointTagStyle) != null && h.leftPercent) || !((u = t[6].pointTagStyle) != null && u.topPercent) || t[6].enabled === !1 || !t[6].state || ((p = t[6].temporaryState) == null ? void 0 : p.visible) === !1);
|
|
15121
15126
|
},
|
|
15122
15127
|
i(l) {
|
|
15123
|
-
s || (
|
|
15128
|
+
s || (D(n.$$.fragment, l), s = !0);
|
|
15124
15129
|
},
|
|
15125
15130
|
o(l) {
|
|
15126
|
-
|
|
15131
|
+
M(n.$$.fragment, l), s = !1;
|
|
15127
15132
|
},
|
|
15128
15133
|
d(l) {
|
|
15129
15134
|
l && z(e), $(n);
|
|
@@ -15140,15 +15145,15 @@ function Bg(i) {
|
|
|
15140
15145
|
n && n.m(o, s), B(o, t, s), e = !0;
|
|
15141
15146
|
},
|
|
15142
15147
|
p(o, [s]) {
|
|
15143
|
-
o[3].enabled ? n ? (n.p(o, s), s & 8 &&
|
|
15148
|
+
o[3].enabled ? n ? (n.p(o, s), s & 8 && D(n, 1)) : (n = Or(o), n.c(), D(n, 1), n.m(t.parentNode, t)) : n && (ce(), M(n, 1, 1, () => {
|
|
15144
15149
|
n = null;
|
|
15145
|
-
}),
|
|
15150
|
+
}), de());
|
|
15146
15151
|
},
|
|
15147
15152
|
i(o) {
|
|
15148
|
-
e || (
|
|
15153
|
+
e || (D(n), e = !0);
|
|
15149
15154
|
},
|
|
15150
15155
|
o(o) {
|
|
15151
|
-
|
|
15156
|
+
M(n), e = !1;
|
|
15152
15157
|
},
|
|
15153
15158
|
d(o) {
|
|
15154
15159
|
n && n.d(o), o && z(t);
|
|
@@ -15518,7 +15523,7 @@ class Gg extends Og {
|
|
|
15518
15523
|
f(this, "disposedErrorLog", () => {
|
|
15519
15524
|
console.error(`${Yi} is disposed`);
|
|
15520
15525
|
});
|
|
15521
|
-
this.params =
|
|
15526
|
+
this.params = W({
|
|
15522
15527
|
debug: !1,
|
|
15523
15528
|
mergePluginDefaultConfigToLoadDataConfig: !1,
|
|
15524
15529
|
config: this.config,
|
|
@@ -15546,8 +15551,8 @@ class Gg extends Og {
|
|
|
15546
15551
|
addTag(e, n) {
|
|
15547
15552
|
const s = (Array.isArray(e) ? e : [e]).map((r) => {
|
|
15548
15553
|
const a = this.getTagConfig(r);
|
|
15549
|
-
return he(
|
|
15550
|
-
state:
|
|
15554
|
+
return he(W({}, r), {
|
|
15555
|
+
state: W({ visible: void 0, unfolded: Fg }, a.initialState),
|
|
15551
15556
|
hooks: new Ye(),
|
|
15552
15557
|
clickable: a.clickable
|
|
15553
15558
|
});
|
|
@@ -15598,7 +15603,7 @@ class Gg extends Og {
|
|
|
15598
15603
|
setState(e, n) {
|
|
15599
15604
|
if (this.store.disposed)
|
|
15600
15605
|
return this.disposedErrorLog();
|
|
15601
|
-
const { userAction: o = !0, visibleWithAnimation: s = !1 } = n, r =
|
|
15606
|
+
const { userAction: o = !0, visibleWithAnimation: s = !1 } = n, r = W({}, this.state);
|
|
15602
15607
|
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: o });
|
|
15603
15608
|
}
|
|
15604
15609
|
changeTagNormalById(e, n) {
|
|
@@ -15687,7 +15692,7 @@ class Gg extends Og {
|
|
|
15687
15692
|
handleFiveWantsMoveToPano() {
|
|
15688
15693
|
this.tags.forEach((e) => {
|
|
15689
15694
|
const n = this.getTagConfig(e);
|
|
15690
|
-
typeof n.visibleConfig == "object" && n.visibleConfig.keep ? e.temporaryState = he(
|
|
15695
|
+
typeof n.visibleConfig == "object" && n.visibleConfig.keep ? e.temporaryState = he(W({}, e.temporaryState), { visible: n.visibleConfig.keep === "visible" }) : typeof n.visibleConfig == "object" && n.visibleConfig.alwaysShowWhenMovePano ? e.temporaryState = he(W({}, e.temporaryState), { visible: !0 }) : e.temporaryState = he(W({}, e.temporaryState), { visible: !1 });
|
|
15691
15696
|
}), this.updateRenderAllTags();
|
|
15692
15697
|
}
|
|
15693
15698
|
temporaryShow() {
|
|
@@ -15735,7 +15740,7 @@ class Gg extends Og {
|
|
|
15735
15740
|
handleFivePanoArrived() {
|
|
15736
15741
|
return J(this, null, function* () {
|
|
15737
15742
|
yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
15738
|
-
e.temporaryState = he(
|
|
15743
|
+
e.temporaryState = he(W({}, e.temporaryState), { visible: !0 });
|
|
15739
15744
|
}), this.updateRenderAllTags();
|
|
15740
15745
|
});
|
|
15741
15746
|
}
|
|
@@ -15968,7 +15973,7 @@ function _g(i, t) {
|
|
|
15968
15973
|
return i;
|
|
15969
15974
|
}
|
|
15970
15975
|
function qg(i) {
|
|
15971
|
-
const t = Mt(
|
|
15976
|
+
const t = Mt(W({
|
|
15972
15977
|
position: "absolute",
|
|
15973
15978
|
display: "block",
|
|
15974
15979
|
borderRadius: "4px",
|
|
@@ -16160,7 +16165,7 @@ function $g() {
|
|
|
16160
16165
|
] };
|
|
16161
16166
|
}
|
|
16162
16167
|
function ht(i) {
|
|
16163
|
-
const t = Mt(
|
|
16168
|
+
const t = Mt(W({
|
|
16164
16169
|
background: "#FFFFFF",
|
|
16165
16170
|
width: "9px",
|
|
16166
16171
|
height: "9px",
|
|
@@ -16780,14 +16785,14 @@ class a0 {
|
|
|
16780
16785
|
return o0();
|
|
16781
16786
|
if (!this.state.enabled && t.enabled !== !0 && t.disposed !== !0)
|
|
16782
16787
|
return r0();
|
|
16783
|
-
const n =
|
|
16784
|
-
this.state =
|
|
16788
|
+
const n = W({}, this.state);
|
|
16789
|
+
this.state = W(W({}, this.state), t), t.disposed !== void 0 && t.disposed !== n.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && this.handleVisible(t.visible), t.enabled !== void 0 && this.handleEnable(t.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: n });
|
|
16785
16790
|
}
|
|
16786
16791
|
addControllers(t) {
|
|
16787
|
-
this.controllers =
|
|
16792
|
+
this.controllers = W(W({}, this.controllers), t), this.addEventListener(), this.setState(this.state);
|
|
16788
16793
|
}
|
|
16789
16794
|
addHelpers(t) {
|
|
16790
|
-
this.helpers =
|
|
16795
|
+
this.helpers = W(W({}, this.helpers), t);
|
|
16791
16796
|
}
|
|
16792
16797
|
getCurrentState() {
|
|
16793
16798
|
return this.state;
|
|
@@ -17028,34 +17033,34 @@ class c0 extends mo {
|
|
|
17028
17033
|
const a = e.ray.intersectPlane(s, new _());
|
|
17029
17034
|
if (!a || Vg(a, this.camera.position))
|
|
17030
17035
|
return;
|
|
17031
|
-
const l = new _().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, h = new _().subVectors(r[1], r[0]), u = new _().subVectors(r[3], r[0]), p = (
|
|
17036
|
+
const l = new _().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, h = new _().subVectors(r[1], r[0]), u = new _().subVectors(r[3], r[0]), p = (G) => {
|
|
17032
17037
|
const Y = new _(0, 0, 0);
|
|
17033
17038
|
if (!this.startInfo)
|
|
17034
17039
|
return Y;
|
|
17035
|
-
const P = (
|
|
17036
|
-
if (
|
|
17040
|
+
const P = (G === "ew" ? h : u).clone(), I = c.clone().projectOnVector(P), T = a.clone().projectOnVector(P), O = l.clone().projectOnVector(P);
|
|
17041
|
+
if (T.equals(I))
|
|
17037
17042
|
return Y;
|
|
17038
|
-
if (
|
|
17039
|
-
const X = new _().subVectors(
|
|
17040
|
-
this.startInfo.dragPointInCenterBottom = U ||
|
|
17043
|
+
if (G === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
17044
|
+
const X = new _().subVectors(T, O), U = X.x < 0 && P.x >= 0, le = X.y < 0 && P.y >= 0, ue = X.z < 0 && P.z >= 0;
|
|
17045
|
+
this.startInfo.dragPointInCenterBottom = U || le || ue;
|
|
17041
17046
|
}
|
|
17042
|
-
if (
|
|
17043
|
-
const X = new _().subVectors(
|
|
17044
|
-
this.startInfo.dragPointInCenterLeft = U ||
|
|
17047
|
+
if (G === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
17048
|
+
const X = new _().subVectors(T, O), U = X.x < 0 && P.x >= 0, le = X.y < 0 && P.y >= 0, ue = X.z < 0 && P.z >= 0;
|
|
17049
|
+
this.startInfo.dragPointInCenterLeft = U || le || ue;
|
|
17045
17050
|
}
|
|
17046
|
-
const
|
|
17047
|
-
return Z > 0.3 ? (console.warn("offset.length() > 0.3, skipped", Z), Y) :
|
|
17051
|
+
const N = new _().subVectors(T, I), Z = N.length();
|
|
17052
|
+
return Z > 0.3 ? (console.warn("offset.length() > 0.3, skipped", Z), Y) : N;
|
|
17048
17053
|
}, m = p("ew"), g = p("ns"), v = () => {
|
|
17049
|
-
const
|
|
17054
|
+
const G = m;
|
|
17050
17055
|
this.helperObject3D.cornerPositions.forEach((Y, P) => {
|
|
17051
17056
|
var I;
|
|
17052
|
-
(I = this.startInfo) != null && I.dragPointInCenterLeft ? (P === 0 || P === 3) && Y.add(
|
|
17057
|
+
(I = this.startInfo) != null && I.dragPointInCenterLeft ? (P === 0 || P === 3) && Y.add(G) : (P === 1 || P === 2) && Y.add(G);
|
|
17053
17058
|
});
|
|
17054
17059
|
}, A = () => {
|
|
17055
|
-
const
|
|
17060
|
+
const G = g;
|
|
17056
17061
|
this.helperObject3D.cornerPositions.forEach((Y, P) => {
|
|
17057
17062
|
var I;
|
|
17058
|
-
(I = this.startInfo) != null && I.dragPointInCenterBottom ? (P === 0 || P === 1) && Y.add(
|
|
17063
|
+
(I = this.startInfo) != null && I.dragPointInCenterBottom ? (P === 0 || P === 1) && Y.add(G) : (P === 2 || P === 3) && Y.add(G);
|
|
17059
17064
|
});
|
|
17060
17065
|
};
|
|
17061
17066
|
switch (d) {
|
|
@@ -17069,10 +17074,10 @@ class c0 extends mo {
|
|
|
17069
17074
|
case "nwse":
|
|
17070
17075
|
v(), A();
|
|
17071
17076
|
}
|
|
17072
|
-
const w = new _().subVectors(r[1], r[0]).length() / h.length(), y = new _().subVectors(r[3], r[0]).length() / u.length(), x = new _(w, y, 1),
|
|
17073
|
-
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(
|
|
17074
|
-
const C = new _().addVectors(r[0], r[2]).divideScalar(2), S = new _().subVectors(C, l),
|
|
17075
|
-
n.applyMatrix4(
|
|
17077
|
+
const w = new _().subVectors(r[1], r[0]).length() / h.length(), y = new _().subVectors(r[3], r[0]).length() / u.length(), x = new _(w, y, 1), L = new E.Matrix4().scale(x);
|
|
17078
|
+
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(L) : n.scale.applyMatrix4(L), o.position.copy(a);
|
|
17079
|
+
const C = new _().addVectors(r[0], r[2]).divideScalar(2), S = new _().subVectors(C, l), k = new E.Matrix4().setPosition(S);
|
|
17080
|
+
n.applyMatrix4(k), (F = this.helperObject3D.css3DInstance) == null || F.css3DObject.applyMatrix4(k), (H = this.helperObject3D.plane) == null || H.applyMatrix4(k), this.hooks.emit("scaleUpdate", { matrix4: L, helperOrigin: l }), this.hooks.emit("positionUpdate", { matrix4: k }), this.render();
|
|
17076
17081
|
}
|
|
17077
17082
|
dragEnd() {
|
|
17078
17083
|
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render(), console.log("%c RectangleScaleController dragEnd", "color: #e94e4e"));
|
|
@@ -17137,8 +17142,8 @@ class m0 extends di {
|
|
|
17137
17142
|
return u0();
|
|
17138
17143
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
17139
17144
|
return f0();
|
|
17140
|
-
const o =
|
|
17141
|
-
this.state =
|
|
17145
|
+
const o = W({}, this.state);
|
|
17146
|
+
this.state = W(W({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: o });
|
|
17142
17147
|
}
|
|
17143
17148
|
getObject3DHelper(e) {
|
|
17144
17149
|
return this.objectHelperMap.get(e);
|