@realsee/dnalogel 2.6.7-dev.10 → 2.6.7-dev.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +33 -33
- package/dist/index.js +906 -902
- package/dist/index.umd.js +20 -20
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- 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 +23 -23
- 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 +47 -47
- 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 +18 -18
- 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/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/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- 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/HelperOffset.html +8 -8
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- 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/State.html +8 -8
- package/docs/interfaces/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- 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/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.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/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.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/LoadTagConfig.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/MediaStore.html +5 -5
- package/docs/types/ModelElement.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/PanoIndex.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/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.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/StickType.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/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.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/MixedController.js +10 -10
- package/libs/PanoTagPlugin/Components/Common/Media.js +101 -101
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +119 -115
- package/libs/PanoTagPlugin/Components/Tag/index.js +90 -90
- package/libs/PanoTagPlugin/controller/TagComputer.js +5 -5
- package/libs/shared-utils/Object3DHelper/utils/boundingBox.js +15 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -490,17 +490,17 @@ class fc extends dc {
|
|
|
490
490
|
let p = [];
|
|
491
491
|
const v = this;
|
|
492
492
|
v.tween = cc({ step: 0 }, { step: l.length - 1 }, u).onUpdate(({ step: g }) => {
|
|
493
|
-
var
|
|
493
|
+
var y;
|
|
494
494
|
if (v.tweening = !0, !v.ready)
|
|
495
|
-
return a.clearRect(0, 0, v.canvas[h].width, v.canvas[h].height), (
|
|
495
|
+
return a.clearRect(0, 0, v.canvas[h].width, v.canvas[h].height), (y = v.tween) == null ? void 0 : y.stop();
|
|
496
496
|
const A = Math.floor(g);
|
|
497
|
-
if (!p.find((
|
|
497
|
+
if (!p.find((w) => w === A)) {
|
|
498
498
|
if (p.push(A), console.log("__debug__", l, l[A], A), f.push(wi(l[A], v.clientWidth, v.clientHeight)), f.length < 3)
|
|
499
499
|
return;
|
|
500
|
-
const { control:
|
|
501
|
-
if (!
|
|
500
|
+
const { control: w, end: C } = zn(f);
|
|
501
|
+
if (!w || !C)
|
|
502
502
|
return;
|
|
503
|
-
a.quadraticCurveTo(
|
|
503
|
+
a.quadraticCurveTo(w.x, w.y, C.x, C.y), a.stroke();
|
|
504
504
|
}
|
|
505
505
|
}).onComplete((g) => {
|
|
506
506
|
v.tween = void 0, v.tweening = !1, p = [], f = [], s && s(), r();
|
|
@@ -574,8 +574,8 @@ class gb {
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
const Ab = (i, t) => {
|
|
577
|
-
var U,
|
|
578
|
-
let e = (
|
|
577
|
+
var U, V;
|
|
578
|
+
let e = (V = (U = t == null ? void 0 : t.initialState) == null ? void 0 : U.enabled) != null ? V : !0, n = !1, o = !0, s = null;
|
|
579
579
|
const a = O(O({}, {
|
|
580
580
|
lookAtCurrentCamera: !1,
|
|
581
581
|
lockedPanoIndex: null,
|
|
@@ -599,7 +599,7 @@ const Ab = (i, t) => {
|
|
|
599
599
|
const f = () => {
|
|
600
600
|
if (n)
|
|
601
601
|
return;
|
|
602
|
-
h =
|
|
602
|
+
h = x(i.model, c.fov, c.aspect), d = i.model.bounding.getCenter(new E.Vector3()), l.remove(u), u = R(i.model), l.add(u), n = !0, S();
|
|
603
603
|
function B(G) {
|
|
604
604
|
const F = G.clone();
|
|
605
605
|
return F.uniforms.modelAlpha.value = 1, F.uniforms.map.value && (F.uniforms.map.value.needsUpdate = !0), F;
|
|
@@ -622,14 +622,14 @@ const Ab = (i, t) => {
|
|
|
622
622
|
}, v = () => {
|
|
623
623
|
u.traverse((B) => {
|
|
624
624
|
B instanceof E.Mesh && [].concat(B.material).forEach((G) => G.dispose());
|
|
625
|
-
}), l.remove(u), u = new E.Object3D(), l.add(u), n = !1,
|
|
625
|
+
}), l.remove(u), u = new E.Object3D(), l.add(u), n = !1, S();
|
|
626
626
|
}, g = () => {
|
|
627
627
|
!e || n || f();
|
|
628
628
|
}, A = () => {
|
|
629
|
-
e || (e = !0, l.add(u), !n && i.model.loaded && f(),
|
|
630
|
-
},
|
|
629
|
+
e || (e = !0, l.add(u), !n && i.model.loaded && f(), S());
|
|
630
|
+
}, y = () => {
|
|
631
631
|
!e || (l.remove(u), o = !0, k(), e = !1);
|
|
632
|
-
},
|
|
632
|
+
}, w = (B, R = {}) => {
|
|
633
633
|
const G = p();
|
|
634
634
|
if (!G)
|
|
635
635
|
return;
|
|
@@ -644,9 +644,9 @@ const Ab = (i, t) => {
|
|
|
644
644
|
const { width: F = G.offsetWidth, height: ee = G.offsetHeight } = B;
|
|
645
645
|
s.setSize(F, ee), c.aspect = F / ee, c.updateProjectionMatrix();
|
|
646
646
|
}
|
|
647
|
-
|
|
647
|
+
S();
|
|
648
648
|
};
|
|
649
|
-
function
|
|
649
|
+
function x(B, R, G) {
|
|
650
650
|
const F = B.bounding, ee = Math.pow(
|
|
651
651
|
Math.pow(F.max.x - F.min.x + 1, 2) + Math.pow(F.max.y - F.min.y + 1, 2) + Math.pow(F.max.z - F.min.z + 1, 2),
|
|
652
652
|
1 / 2
|
|
@@ -657,21 +657,21 @@ const Ab = (i, t) => {
|
|
|
657
657
|
function I(B) {
|
|
658
658
|
return i.work.observers[B].standingPosition.clone();
|
|
659
659
|
}
|
|
660
|
-
const
|
|
660
|
+
const S = () => {
|
|
661
661
|
if (!e || !h || !d)
|
|
662
662
|
return;
|
|
663
663
|
const B = i.getPose();
|
|
664
664
|
B.fov = c.fov, B.offset = d, B.distance = h, typeof a.lockedLatitude == "number" && (B.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (B.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (B.offset = I(a.lockedPanoIndex)), a.lookAtCurrentCamera && (B.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), c.setFromPose(B), o = !0;
|
|
665
665
|
}, k = () => {
|
|
666
666
|
!e || o !== !0 || !s || !s.domElement.parentNode || s.domElement.parentNode.offsetWidth === 0 || (s.render(l, c), o = !1);
|
|
667
|
-
},
|
|
667
|
+
}, j = () => {
|
|
668
668
|
s && s.dispose(), s = null;
|
|
669
669
|
}, N = (B) => {
|
|
670
|
-
Object.assign(a, B),
|
|
670
|
+
Object.assign(a, B), S();
|
|
671
671
|
}, H = () => ({
|
|
672
672
|
enabled: e
|
|
673
673
|
});
|
|
674
|
-
return Object.assign(window, { camera: c }), i.on("modelLoaded", g), i.on("modelWillLoad", v), i.on("cameraDirectionUpdate",
|
|
674
|
+
return Object.assign(window, { camera: c }), i.on("modelLoaded", g), i.on("modelWillLoad", v), i.on("cameraDirectionUpdate", S), i.on("dispose", j), i.on("renderFrame", k), i.on("cameraPositionUpdate", S), { appendTo: w, refresh: C, changeConfigs: N, enable: A, disable: y, getCurrentState: H };
|
|
675
675
|
};
|
|
676
676
|
function vt(...i) {
|
|
677
677
|
const t = [];
|
|
@@ -806,16 +806,16 @@ class vc extends E.Mesh {
|
|
|
806
806
|
const ma = 1, bc = `CSS3DObjectPlus@${ma}`, yc = 216e-5, wc = 3e-3;
|
|
807
807
|
class Cc extends Fi {
|
|
808
808
|
constructor(e) {
|
|
809
|
-
var
|
|
810
|
-
const n = e.container, o = e.cornerPoints, s = (
|
|
809
|
+
var x, I, S;
|
|
810
|
+
const n = e.container, o = e.cornerPoints, s = (x = e.ratio) != null ? x : wc, r = (I = e.dpr) != null ? I : 1, a = (S = e.pointerEvents) != null ? S : "auto", l = Math.max(yc, s), c = o[0].distanceTo(o[1]), u = o[1].distanceTo(o[2]), h = ei(c / s * r), d = ei(u / s * r), f = oo(...o);
|
|
811
811
|
let p;
|
|
812
812
|
if (l === s)
|
|
813
813
|
n.style.width = `${h}px`, n.style.height = `${d}px`, p = n;
|
|
814
814
|
else {
|
|
815
815
|
const k = document.createElement("div");
|
|
816
816
|
k.style.width = `${h}px`, k.style.height = `${d}px`, k.style.pointerEvents = "none";
|
|
817
|
-
const
|
|
818
|
-
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${
|
|
817
|
+
const j = s / l;
|
|
818
|
+
n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${j * h}px`, n.style.height = `${j * d}px`, k.appendChild(n), p = k;
|
|
819
819
|
}
|
|
820
820
|
super(p);
|
|
821
821
|
m(this, "version", ma);
|
|
@@ -859,8 +859,8 @@ class Cc extends Fi {
|
|
|
859
859
|
n.classList.add(`${bc}__container`);
|
|
860
860
|
const v = new $().subVectors(o[1], o[0]), g = new $().subVectors(o[3], o[0]), A = new $().crossVectors(v, g).normalize();
|
|
861
861
|
this.lookAt(A);
|
|
862
|
-
const
|
|
863
|
-
this.rotateOnWorldAxis(C,
|
|
862
|
+
const y = this.up.clone().applyQuaternion(this.quaternion), w = g.clone(), C = new $().crossVectors(y, w).normalize();
|
|
863
|
+
this.rotateOnWorldAxis(C, y.angleTo(w)), this.position.copy(f), this.addEventListener("added", () => {
|
|
864
864
|
var k;
|
|
865
865
|
this.mode === "front" && ((k = this.opacityMesh) == null || k.removeFromParent()), this.addParentVisibleListener();
|
|
866
866
|
}), this.addEventListener("removed", () => {
|
|
@@ -1037,7 +1037,7 @@ class wn {
|
|
|
1037
1037
|
!C || C.add(f);
|
|
1038
1038
|
}, v = () => {
|
|
1039
1039
|
d || (p(), this.render(t));
|
|
1040
|
-
}, g = (C) => this.setVisibleById(f.id, C), A = (C) => this.setEnabledById(f.id, C),
|
|
1040
|
+
}, g = (C) => this.setVisibleById(f.id, C), A = (C) => this.setEnabledById(f.id, C), y = () => (d = !0, f.removeFromParent(), !0), w = l === "front" ? De.frontModeStore.css3DRenderer : De.behindModeStore.css3DRenderer;
|
|
1041
1041
|
return c && v(), {
|
|
1042
1042
|
id: f.uuid,
|
|
1043
1043
|
container: u,
|
|
@@ -1049,8 +1049,8 @@ class wn {
|
|
|
1049
1049
|
enable: () => A(!0),
|
|
1050
1050
|
disable: () => A(!1),
|
|
1051
1051
|
setEnabled: A,
|
|
1052
|
-
dispose:
|
|
1053
|
-
appendToElement: (C) =>
|
|
1052
|
+
dispose: y,
|
|
1053
|
+
appendToElement: (C) => w.setWrapper(C)
|
|
1054
1054
|
};
|
|
1055
1055
|
});
|
|
1056
1056
|
m(this, "setVisibleById", (t, e) => {
|
|
@@ -1346,11 +1346,11 @@ const vb = (i) => {
|
|
|
1346
1346
|
};
|
|
1347
1347
|
return t.disposers.push(A), { clear: A, pointAxesHelperMesh: g };
|
|
1348
1348
|
}, s = (u, h = 0) => {
|
|
1349
|
-
var A,
|
|
1349
|
+
var A, y;
|
|
1350
1350
|
const d = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
|
|
1351
1351
|
if (!d)
|
|
1352
1352
|
return !1;
|
|
1353
|
-
const f = u.distanceTo(d), p = u.sub(d).normalize(), v = new zt(d, p), g = (
|
|
1353
|
+
const f = u.distanceTo(d), p = u.sub(d).normalize(), v = new zt(d, p), g = (y = i.model.intersectRaycaster(v)) == null ? void 0 : y[0];
|
|
1354
1354
|
return !(g && g.distance + h < f);
|
|
1355
1355
|
}, r = () => t.intersection, a = () => {
|
|
1356
1356
|
var u, h;
|
|
@@ -1458,7 +1458,7 @@ function Pa(i) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Q(i, t) {
|
|
1462
1462
|
i.appendChild(t);
|
|
1463
1463
|
}
|
|
1464
1464
|
function le(i, t, e) {
|
|
@@ -1479,7 +1479,7 @@ function Bc(i) {
|
|
|
1479
1479
|
return Ea(ro(i), t), t.sheet;
|
|
1480
1480
|
}
|
|
1481
1481
|
function Ea(i, t) {
|
|
1482
|
-
return
|
|
1482
|
+
return Q(i.head || i, t), t.sheet;
|
|
1483
1483
|
}
|
|
1484
1484
|
function T(i, t, e) {
|
|
1485
1485
|
i.insertBefore(t, e || null);
|
|
@@ -1523,7 +1523,7 @@ function jc(i) {
|
|
|
1523
1523
|
function Le(i, t) {
|
|
1524
1524
|
t = "" + t, i.wholeText !== t && (i.data = t);
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function L(i, t, e, n) {
|
|
1527
1527
|
e === null ? i.style.removeProperty(t) : i.style.setProperty(t, e, n ? "important" : "");
|
|
1528
1528
|
}
|
|
1529
1529
|
let Qn;
|
|
@@ -1548,7 +1548,7 @@ function Pt(i, t) {
|
|
|
1548
1548
|
r.source === n.contentWindow && t();
|
|
1549
1549
|
})) : (n.src = "about:blank", n.onload = () => {
|
|
1550
1550
|
s = we(n.contentWindow, "resize", t);
|
|
1551
|
-
}),
|
|
1551
|
+
}), Q(i, n), () => {
|
|
1552
1552
|
(o || s && n.contentWindow) && s(), M(n);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
@@ -1734,7 +1734,7 @@ function ae() {
|
|
|
1734
1734
|
function P(i, t) {
|
|
1735
1735
|
i && i.i && (Kn.delete(i), i.i(t));
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function D(i, t, e, n) {
|
|
1738
1738
|
if (i && i.o) {
|
|
1739
1739
|
if (Kn.has(i))
|
|
1740
1740
|
return;
|
|
@@ -1754,13 +1754,13 @@ function Bt(i, t, e) {
|
|
|
1754
1754
|
const { delay: h = 0, duration: d = 300, easing: f = bt, tick: p = X, css: v } = n || Ta;
|
|
1755
1755
|
v && (s = xa(i, 0, 1, d, h, f, v, a++)), p(0, 1);
|
|
1756
1756
|
const g = wa() + h, A = g + d;
|
|
1757
|
-
r && r.abort(), o = !0, Se(() => oi(i, !0, "start")), r = Pa((
|
|
1757
|
+
r && r.abort(), o = !0, Se(() => oi(i, !0, "start")), r = Pa((y) => {
|
|
1758
1758
|
if (o) {
|
|
1759
|
-
if (
|
|
1759
|
+
if (y >= A)
|
|
1760
1760
|
return p(1, 0), oi(i, !0, "end"), l(), o = !1;
|
|
1761
|
-
if (
|
|
1762
|
-
const
|
|
1763
|
-
p(
|
|
1761
|
+
if (y >= g) {
|
|
1762
|
+
const w = f((y - g) / d);
|
|
1763
|
+
p(w, 1 - w);
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
1766
|
return o;
|
|
@@ -1818,7 +1818,7 @@ function Ro(i, t) {
|
|
|
1818
1818
|
const c = o && (t.current = o)(l);
|
|
1819
1819
|
let u = !1;
|
|
1820
1820
|
t.block && (t.blocks ? t.blocks.forEach((h, d) => {
|
|
1821
|
-
d !== s && h && (re(),
|
|
1821
|
+
d !== s && h && (re(), D(h, 1, 1, () => {
|
|
1822
1822
|
t.blocks[d] === h && (t.blocks[d] = null);
|
|
1823
1823
|
}), ae());
|
|
1824
1824
|
}) : t.block.d(1), c.c(), P(c, 1), c.m(t.mount(), t.anchor), u = !0), t.block = c, t.blocks && (t.blocks[s] = c), u && ao();
|
|
@@ -1847,7 +1847,7 @@ function lo(i, t) {
|
|
|
1847
1847
|
i.d(1), t.delete(i.key);
|
|
1848
1848
|
}
|
|
1849
1849
|
function kt(i, t) {
|
|
1850
|
-
|
|
1850
|
+
D(i, 1, 1, () => {
|
|
1851
1851
|
t.delete(i.key);
|
|
1852
1852
|
});
|
|
1853
1853
|
}
|
|
@@ -1856,26 +1856,26 @@ function qe(i, t, e, n, o, s, r, a, l, c, u, h) {
|
|
|
1856
1856
|
const v = {};
|
|
1857
1857
|
for (; p--; )
|
|
1858
1858
|
v[i[p].key] = p;
|
|
1859
|
-
const g = [], A = /* @__PURE__ */ new Map(),
|
|
1859
|
+
const g = [], A = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
|
|
1860
1860
|
for (p = f; p--; ) {
|
|
1861
|
-
const I = h(o, s, p),
|
|
1862
|
-
let k = r.get(
|
|
1863
|
-
k ? n && k.p(I, t) : (k = c(
|
|
1861
|
+
const I = h(o, s, p), S = e(I);
|
|
1862
|
+
let k = r.get(S);
|
|
1863
|
+
k ? n && k.p(I, t) : (k = c(S, I), k.c()), A.set(S, g[p] = k), S in v && y.set(S, Math.abs(p - v[S]));
|
|
1864
1864
|
}
|
|
1865
|
-
const
|
|
1866
|
-
function
|
|
1865
|
+
const w = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
|
|
1866
|
+
function x(I) {
|
|
1867
1867
|
P(I, 1), I.m(a, u), r.set(I.key, I), u = I.first, f--;
|
|
1868
1868
|
}
|
|
1869
1869
|
for (; d && f; ) {
|
|
1870
|
-
const I = g[f - 1],
|
|
1871
|
-
I ===
|
|
1870
|
+
const I = g[f - 1], S = i[d - 1], k = I.key, j = S.key;
|
|
1871
|
+
I === S ? (u = I.first, d--, f--) : A.has(j) ? !r.has(k) || w.has(k) ? x(I) : C.has(j) ? d-- : y.get(k) > y.get(j) ? (C.add(k), x(I)) : (w.add(j), d--) : (l(S, r), d--);
|
|
1872
1872
|
}
|
|
1873
1873
|
for (; d--; ) {
|
|
1874
1874
|
const I = i[d];
|
|
1875
1875
|
A.has(I.key) || l(I, r);
|
|
1876
1876
|
}
|
|
1877
1877
|
for (; f; )
|
|
1878
|
-
|
|
1878
|
+
x(g[f - 1]);
|
|
1879
1879
|
return g;
|
|
1880
1880
|
}
|
|
1881
1881
|
function Oe(i, t) {
|
|
@@ -1982,13 +1982,13 @@ function Jc(i) {
|
|
|
1982
1982
|
let t, e, n = i[0].name + "", o, s, r, a, l;
|
|
1983
1983
|
return {
|
|
1984
1984
|
c() {
|
|
1985
|
-
t = z("div"), e = z("span"), o = Ie(n), s = ne(), r = z("div"), b(e, "class", "room-label-item__text svelte-1d7uzh5"),
|
|
1985
|
+
t = z("div"), e = z("span"), o = Ie(n), s = ne(), r = z("div"), b(e, "class", "room-label-item__text svelte-1d7uzh5"), L(e, "background-image", "url(" + Yc + ")"), J(e, "wide", i[0].name.length > 3), b(r, "class", "room-label-item__bar svelte-1d7uzh5"), b(t, "class", "room-label-item svelte-1d7uzh5"), L(t, "z-index", i[0].zIndex), L(t, "transform", i[0].transform), L(t, "opacity", i[0].visible ? 1 : 0);
|
|
1986
1986
|
},
|
|
1987
1987
|
m(c, u) {
|
|
1988
|
-
T(c, t, u),
|
|
1988
|
+
T(c, t, u), Q(t, e), Q(e, o), Q(t, s), Q(t, r), a || (l = we(e, "click", i[1]), a = !0);
|
|
1989
1989
|
},
|
|
1990
1990
|
p(c, [u]) {
|
|
1991
|
-
u & 1 && n !== (n = c[0].name + "") && Le(o, n), u & 1 && J(e, "wide", c[0].name.length > 3), u & 1 &&
|
|
1991
|
+
u & 1 && n !== (n = c[0].name + "") && Le(o, n), u & 1 && J(e, "wide", c[0].name.length > 3), u & 1 && L(t, "z-index", c[0].zIndex), u & 1 && L(t, "transform", c[0].transform), u & 1 && L(t, "opacity", c[0].visible ? 1 : 0);
|
|
1992
1992
|
},
|
|
1993
1993
|
i: X,
|
|
1994
1994
|
o: X,
|
|
@@ -2048,7 +2048,7 @@ function Ho(i, t) {
|
|
|
2048
2048
|
o || (P(n.$$.fragment, s), o = !0);
|
|
2049
2049
|
},
|
|
2050
2050
|
o(s) {
|
|
2051
|
-
|
|
2051
|
+
D(n.$$.fragment, s), o = !1;
|
|
2052
2052
|
},
|
|
2053
2053
|
d(s) {
|
|
2054
2054
|
s && M(e), q(n, s);
|
|
@@ -2087,7 +2087,7 @@ function eu(i) {
|
|
|
2087
2087
|
},
|
|
2088
2088
|
o(l) {
|
|
2089
2089
|
for (let c = 0; c < e.length; c += 1)
|
|
2090
|
-
|
|
2090
|
+
D(e[c]);
|
|
2091
2091
|
s = !1;
|
|
2092
2092
|
},
|
|
2093
2093
|
d(l) {
|
|
@@ -2104,27 +2104,27 @@ function tu(i, t, e) {
|
|
|
2104
2104
|
function c(g) {
|
|
2105
2105
|
if (!(l === null || g.floorIndex === l))
|
|
2106
2106
|
return !1;
|
|
2107
|
-
const
|
|
2108
|
-
|
|
2109
|
-
const [I] = o.model.intersectRaycaster(
|
|
2110
|
-
return !(I && I.distance + 1 <
|
|
2107
|
+
const y = new zt(), w = o.camera.position.clone(), C = new $(g.position.x, g.position.y, g.position.z), x = C.distanceTo(w);
|
|
2108
|
+
y.set(w.clone(), C.clone().sub(w).normalize());
|
|
2109
|
+
const [I] = o.model.intersectRaycaster(y);
|
|
2110
|
+
return !(I && I.distance + 1 < x);
|
|
2111
2111
|
}
|
|
2112
2112
|
function u(g, A) {
|
|
2113
|
-
const
|
|
2114
|
-
return `translate(${C}px, ${
|
|
2113
|
+
const w = new $(g.position.x, g.position.y, g.position.z).clone().project(o.camera), C = Math.ceil((w.x + 1) / 2 * A.x), x = Math.ceil((-w.y + 1) / 2 * A.y);
|
|
2114
|
+
return `translate(${C}px, ${x}px)`;
|
|
2115
2115
|
}
|
|
2116
2116
|
function h(g) {
|
|
2117
|
-
const { rendererSize: A, shownFloor:
|
|
2117
|
+
const { rendererSize: A, shownFloor: y } = g, w = /* @__PURE__ */ new Map();
|
|
2118
2118
|
function C(I) {
|
|
2119
|
-
const
|
|
2120
|
-
if (
|
|
2121
|
-
return
|
|
2122
|
-
const { x: k, y:
|
|
2123
|
-
return
|
|
2119
|
+
const S = w.get(I.id);
|
|
2120
|
+
if (S)
|
|
2121
|
+
return S;
|
|
2122
|
+
const { x: k, y: j, z: N } = I.position, H = new $(k, j, N).clone().distanceTo(o.camera.position);
|
|
2123
|
+
return w.set(I.id, H), H;
|
|
2124
2124
|
}
|
|
2125
2125
|
return s.map((I) => {
|
|
2126
|
-
const
|
|
2127
|
-
return me(O({}, I), { visible:
|
|
2126
|
+
const S = c(I), k = S ? u(I, A) : I.transform, j = C(I), H = s.filter((U) => U.visible && C(U) < j).length * 10;
|
|
2127
|
+
return me(O({}, I), { visible: S, transform: k, zIndex: H });
|
|
2128
2128
|
});
|
|
2129
2129
|
}
|
|
2130
2130
|
function d() {
|
|
@@ -2338,13 +2338,13 @@ function hu(i) {
|
|
|
2338
2338
|
let t, e;
|
|
2339
2339
|
return {
|
|
2340
2340
|
c() {
|
|
2341
|
-
t = z("div"), e = z("div"), b(e, "class", "floorplan__camera-rotate svelte-17cl35n"),
|
|
2341
|
+
t = z("div"), e = z("div"), b(e, "class", "floorplan__camera-rotate svelte-17cl35n"), L(e, "background-image", `url(${i[0] || yt})`), L(e, "width", i[4]), L(e, "height", i[4]), L(e, "left", "-" + i[4]), L(e, "top", "-" + i[4]), L(e, "transform", `rotate(${i[3]}deg)`), L(e, "transform-origin", `${i[4]} ${i[4]}`), b(t, "class", "floorplan__camera-position svelte-17cl35n"), L(t, "left", i[1]), L(t, "top", i[2]);
|
|
2342
2342
|
},
|
|
2343
2343
|
m(n, o) {
|
|
2344
|
-
T(n, t, o),
|
|
2344
|
+
T(n, t, o), Q(t, e);
|
|
2345
2345
|
},
|
|
2346
2346
|
p(n, [o]) {
|
|
2347
|
-
o & 1 &&
|
|
2347
|
+
o & 1 && L(e, "background-image", `url(${n[0] || yt})`);
|
|
2348
2348
|
},
|
|
2349
2349
|
i: X,
|
|
2350
2350
|
o: X,
|
|
@@ -2356,8 +2356,8 @@ function hu(i) {
|
|
|
2356
2356
|
function fu(i, t, e) {
|
|
2357
2357
|
let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
|
|
2358
2358
|
const { observers: a } = o, l = a[n], c = l.positionInImage.x, u = l.positionInImage.y, h = c * 100 + "%", d = u * 100 + "%", f = -uu(s) + 45, p = document.body.clientWidth, v = document.body.clientHeight, A = `${(p < 500 || v < 500 ? 17 : 37) / 16}rem`;
|
|
2359
|
-
return i.$$set = (
|
|
2360
|
-
"panoIndex" in
|
|
2359
|
+
return i.$$set = (y) => {
|
|
2360
|
+
"panoIndex" in y && e(5, n = y.panoIndex), "floorplanData" in y && e(6, o = y.floorplanData), "lastPanoramaLongitude" in y && e(7, s = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(0, r = y.cameraImageUrl);
|
|
2361
2361
|
}, [
|
|
2362
2362
|
r,
|
|
2363
2363
|
h,
|
|
@@ -2395,10 +2395,10 @@ function Au(i) {
|
|
|
2395
2395
|
let t, e, n, o, s;
|
|
2396
2396
|
return {
|
|
2397
2397
|
c() {
|
|
2398
|
-
t = z("div"), e = z("div"), n = ne(), o = z("span"), s = Ie(i[0]), b(e, "class", "floorplan-plugin__compass-image svelte-rpkaro"),
|
|
2398
|
+
t = z("div"), e = z("div"), n = ne(), o = z("span"), s = Ie(i[0]), b(e, "class", "floorplan-plugin__compass-image svelte-rpkaro"), L(e, "background-image", `url(${pu})`), b(o, "class", "floorplan-plugin__compass-text svelte-rpkaro"), b(t, "class", "floorplan-plugin__compass svelte-rpkaro"), L(t, "transform", i[2]);
|
|
2399
2399
|
},
|
|
2400
2400
|
m(r, a) {
|
|
2401
|
-
T(r, t, a),
|
|
2401
|
+
T(r, t, a), Q(t, e), Q(t, n), Q(t, o), Q(o, s);
|
|
2402
2402
|
},
|
|
2403
2403
|
p(r, a) {
|
|
2404
2404
|
a & 1 && Le(s, r[0]);
|
|
@@ -2513,7 +2513,7 @@ function xu(i) {
|
|
|
2513
2513
|
t = z("div"), e = new ti(!1), n = ne(), o = new ti(!1), e.a = n, o.a = null, b(t, "class", "floorplan-plugin__base-image svelte-ub47ya");
|
|
2514
2514
|
},
|
|
2515
2515
|
m(s, r) {
|
|
2516
|
-
T(s, t, r), e.m(i[1], t),
|
|
2516
|
+
T(s, t, r), e.m(i[1], t), Q(t, n), o.m(i[0], t);
|
|
2517
2517
|
},
|
|
2518
2518
|
p(s, [r]) {
|
|
2519
2519
|
r & 1 && o.p(s[0]);
|
|
@@ -2566,7 +2566,7 @@ function Mu(i) {
|
|
|
2566
2566
|
e || (P(t.$$.fragment, n), e = !0);
|
|
2567
2567
|
},
|
|
2568
2568
|
o(n) {
|
|
2569
|
-
|
|
2569
|
+
D(t.$$.fragment, n), e = !1;
|
|
2570
2570
|
},
|
|
2571
2571
|
d(n) {
|
|
2572
2572
|
q(t, n);
|
|
@@ -2592,7 +2592,7 @@ function Tu(i) {
|
|
|
2592
2592
|
e || (P(t.$$.fragment, n), e = !0);
|
|
2593
2593
|
},
|
|
2594
2594
|
o(n) {
|
|
2595
|
-
|
|
2595
|
+
D(t.$$.fragment, n), e = !1;
|
|
2596
2596
|
},
|
|
2597
2597
|
d(n) {
|
|
2598
2598
|
q(t, n);
|
|
@@ -2614,7 +2614,7 @@ function zu(i) {
|
|
|
2614
2614
|
},
|
|
2615
2615
|
p(l, [c]) {
|
|
2616
2616
|
let u = e;
|
|
2617
|
-
e = a(l), e === u ? ~e && r[e].p(l, c) : (n && (re(),
|
|
2617
|
+
e = a(l), e === u ? ~e && r[e].p(l, c) : (n && (re(), D(r[u], 1, 1, () => {
|
|
2618
2618
|
r[u] = null;
|
|
2619
2619
|
}), ae()), ~e ? (n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), P(n, 1), n.m(t, null)) : n = null);
|
|
2620
2620
|
},
|
|
@@ -2622,7 +2622,7 @@ function zu(i) {
|
|
|
2622
2622
|
o || (P(n), o = !0);
|
|
2623
2623
|
},
|
|
2624
2624
|
o(l) {
|
|
2625
|
-
|
|
2625
|
+
D(n), o = !1;
|
|
2626
2626
|
},
|
|
2627
2627
|
d(l) {
|
|
2628
2628
|
l && M(t), ~e && r[e].d();
|
|
@@ -2670,7 +2670,7 @@ function Qu(i) {
|
|
|
2670
2670
|
t = z("span"), n = Ie(e), o = ne(), s = z("span"), r = Ie(i[5]), b(t, "class", "floorplan-plugin__room-name"), b(s, "class", "floorplan-plugin__room-size svelte-12pzct5");
|
|
2671
2671
|
},
|
|
2672
2672
|
m(a, l) {
|
|
2673
|
-
T(a, t, l),
|
|
2673
|
+
T(a, t, l), Q(t, n), T(a, o, l), T(a, s, l), Q(s, r);
|
|
2674
2674
|
},
|
|
2675
2675
|
p(a, l) {
|
|
2676
2676
|
l & 1 && e !== (e = a[0].name + "") && Le(n, e), l & 32 && Le(r, a[5]);
|
|
@@ -2691,13 +2691,13 @@ function Ru(i) {
|
|
|
2691
2691
|
let n = e(i), o = n && n(i);
|
|
2692
2692
|
return {
|
|
2693
2693
|
c() {
|
|
2694
|
-
t = z("div"), o && o.c(), b(t, "class", "floorplan-plugin__room-label-item svelte-12pzct5"),
|
|
2694
|
+
t = z("div"), o && o.c(), b(t, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), L(t, "left", i[6]), L(t, "top", i[7]), L(t, "font-size", i[8]), L(t, "opacity", i[3] ? "1" : "0");
|
|
2695
2695
|
},
|
|
2696
2696
|
m(s, r) {
|
|
2697
2697
|
T(s, t, r), o && o.m(t, null), i[16](t);
|
|
2698
2698
|
},
|
|
2699
2699
|
p(s, [r]) {
|
|
2700
|
-
n === (n = e(s)) && o ? o.p(s, r) : (o && o.d(1), o = n && n(s), o && (o.c(), o.m(t, null))), r & 8 &&
|
|
2700
|
+
n === (n = e(s)) && o ? o.p(s, r) : (o && o.d(1), o = n && n(s), o && (o.c(), o.m(t, null))), r & 8 && L(t, "opacity", s[3] ? "1" : "0");
|
|
2701
2701
|
},
|
|
2702
2702
|
i: X,
|
|
2703
2703
|
o: X,
|
|
@@ -2717,12 +2717,12 @@ function Ou(i, t) {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
function Hu(i, t, e) {
|
|
2719
2719
|
let n, o, s, r, { pxmm: a } = t, { room: l } = t, { hoveredRoom: c } = t, { getRoomAreaText: u } = t, { getLabelElement: h } = t, { adaptiveRoomLabelVisibleEnable: d } = t;
|
|
2720
|
-
function f(k,
|
|
2721
|
-
if (
|
|
2720
|
+
function f(k, j) {
|
|
2721
|
+
if (j.width === 0 || j.height === 0)
|
|
2722
2722
|
return () => !1;
|
|
2723
|
-
const N = k.path.map(({ x: ee, y: _ }) => [ee, _]), H = k.roomLabel.position, { x: U, y:
|
|
2723
|
+
const N = k.path.map(({ x: ee, y: _ }) => [ee, _]), H = k.roomLabel.position, { x: U, y: V } = H, { width: B, height: R } = j, G = B / 2, F = R / 2;
|
|
2724
2724
|
return function(_) {
|
|
2725
|
-
const Y = U * _, de =
|
|
2725
|
+
const Y = U * _, de = V * _, he = N.map(([Pe, xe]) => [Pe * _, xe * _]);
|
|
2726
2726
|
return [
|
|
2727
2727
|
[Y + G, de - F],
|
|
2728
2728
|
[Y - G, de - F],
|
|
@@ -2731,20 +2731,20 @@ function Hu(i, t, e) {
|
|
|
2731
2731
|
].every((Pe) => Ou(Pe, he));
|
|
2732
2732
|
};
|
|
2733
2733
|
}
|
|
2734
|
-
const p = document.body.clientWidth, v = document.body.clientHeight, g = l.roomLabel, A = g.positionInImage.x * 100 + "%",
|
|
2735
|
-
let C = !1,
|
|
2736
|
-
c.subscribe(function(
|
|
2737
|
-
e(13, C = !!
|
|
2734
|
+
const p = document.body.clientWidth, v = document.body.clientHeight, g = l.roomLabel, A = g.positionInImage.x * 100 + "%", y = g.positionInImage.y * 100 + "%", w = (p < 500 || v < 500 ? 10 : 14) / 16 + "rem";
|
|
2735
|
+
let C = !1, x, I;
|
|
2736
|
+
c.subscribe(function(j) {
|
|
2737
|
+
e(13, C = !!j && j.id === l.id);
|
|
2738
2738
|
}), Ze(() => {
|
|
2739
|
-
const k =
|
|
2739
|
+
const k = x == null ? void 0 : x.getClientRects()[0];
|
|
2740
2740
|
e(14, I = {
|
|
2741
2741
|
width: k.width,
|
|
2742
2742
|
height: k.height
|
|
2743
2743
|
});
|
|
2744
2744
|
});
|
|
2745
|
-
function
|
|
2745
|
+
function S(k) {
|
|
2746
2746
|
ze[k ? "unshift" : "push"](() => {
|
|
2747
|
-
|
|
2747
|
+
x = k, e(2, x);
|
|
2748
2748
|
});
|
|
2749
2749
|
}
|
|
2750
2750
|
return i.$$set = (k) => {
|
|
@@ -2754,13 +2754,13 @@ function Hu(i, t, e) {
|
|
|
2754
2754
|
}, [
|
|
2755
2755
|
l,
|
|
2756
2756
|
h,
|
|
2757
|
-
|
|
2757
|
+
x,
|
|
2758
2758
|
r,
|
|
2759
2759
|
s,
|
|
2760
2760
|
n,
|
|
2761
2761
|
A,
|
|
2762
|
-
w,
|
|
2763
2762
|
y,
|
|
2763
|
+
w,
|
|
2764
2764
|
a,
|
|
2765
2765
|
c,
|
|
2766
2766
|
u,
|
|
@@ -2768,7 +2768,7 @@ function Hu(i, t, e) {
|
|
|
2768
2768
|
C,
|
|
2769
2769
|
I,
|
|
2770
2770
|
o,
|
|
2771
|
-
|
|
2771
|
+
S
|
|
2772
2772
|
];
|
|
2773
2773
|
}
|
|
2774
2774
|
class Fu extends se {
|
|
@@ -2830,7 +2830,7 @@ function Wo(i) {
|
|
|
2830
2830
|
},
|
|
2831
2831
|
o(l) {
|
|
2832
2832
|
for (let c = 0; c < e.length; c += 1)
|
|
2833
|
-
|
|
2833
|
+
D(e[c]);
|
|
2834
2834
|
s = !1;
|
|
2835
2835
|
},
|
|
2836
2836
|
d(l) {
|
|
@@ -2883,7 +2883,7 @@ function No(i, t) {
|
|
|
2883
2883
|
o || (P(n.$$.fragment, a), o = !0);
|
|
2884
2884
|
},
|
|
2885
2885
|
o(a) {
|
|
2886
|
-
|
|
2886
|
+
D(n.$$.fragment, a), o = !1;
|
|
2887
2887
|
},
|
|
2888
2888
|
d(a) {
|
|
2889
2889
|
a && M(e), q(n, a);
|
|
@@ -2900,7 +2900,7 @@ function Wu(i) {
|
|
|
2900
2900
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
2901
2901
|
},
|
|
2902
2902
|
p(o, [s]) {
|
|
2903
|
-
o[6] ? n ? (n.p(o, s), s & 64 && P(n, 1)) : (n = Wo(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
2903
|
+
o[6] ? n ? (n.p(o, s), s & 64 && P(n, 1)) : (n = Wo(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
2904
2904
|
n = null;
|
|
2905
2905
|
}), ae());
|
|
2906
2906
|
},
|
|
@@ -2908,7 +2908,7 @@ function Wu(i) {
|
|
|
2908
2908
|
e || (P(n), e = !0);
|
|
2909
2909
|
},
|
|
2910
2910
|
o(o) {
|
|
2911
|
-
|
|
2911
|
+
D(n), e = !1;
|
|
2912
2912
|
},
|
|
2913
2913
|
d(o) {
|
|
2914
2914
|
n && n.d(o), o && M(t);
|
|
@@ -2975,7 +2975,7 @@ function Yo(i) {
|
|
|
2975
2975
|
let t;
|
|
2976
2976
|
return {
|
|
2977
2977
|
c() {
|
|
2978
|
-
t = z("div"), b(t, "class", "floorplan-plugin__rule-scale svelte-djlmk4"),
|
|
2978
|
+
t = z("div"), b(t, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), L(t, "left", i[14].left * 100 + "%"), L(t, "bottom", i[14].bottom * 100 + "%");
|
|
2979
2979
|
},
|
|
2980
2980
|
m(e, n) {
|
|
2981
2981
|
T(e, t, n);
|
|
@@ -2992,10 +2992,10 @@ function Uo(i, t) {
|
|
|
2992
2992
|
key: i,
|
|
2993
2993
|
first: null,
|
|
2994
2994
|
c() {
|
|
2995
|
-
e = z("div"), n = z("div"), s = Ie(o), r = ne(), b(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), J(n, "is-row", t[2]), b(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"),
|
|
2995
|
+
e = z("div"), n = z("div"), s = Ie(o), r = ne(), b(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), J(n, "is-row", t[2]), b(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), L(e, "left", t[11].left * 100 + "%"), L(e, "bottom", t[11].bottom * 100 + "%"), this.first = e;
|
|
2996
2996
|
},
|
|
2997
2997
|
m(a, l) {
|
|
2998
|
-
T(a, e, l),
|
|
2998
|
+
T(a, e, l), Q(e, n), Q(n, s), Q(e, r);
|
|
2999
2999
|
},
|
|
3000
3000
|
p(a, l) {
|
|
3001
3001
|
t = a, l & 2 && o !== (o = t[1](t[11].distance) + "") && Le(s, o);
|
|
@@ -3023,13 +3023,13 @@ function Yu(i) {
|
|
|
3023
3023
|
s = ne(), r = z("div");
|
|
3024
3024
|
for (let p = 0; p < a.length; p += 1)
|
|
3025
3025
|
a[p].c();
|
|
3026
|
-
b(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), b(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), J(o, "is-row", i[2]), b(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), b(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), J(t, "is-row", i[2]),
|
|
3026
|
+
b(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), b(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), J(o, "is-row", i[2]), b(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), b(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), J(t, "is-row", i[2]), L(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), L(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
|
|
3027
3027
|
},
|
|
3028
3028
|
m(p, v) {
|
|
3029
|
-
T(p, t, v),
|
|
3029
|
+
T(p, t, v), Q(t, e), Q(t, n), Q(t, o);
|
|
3030
3030
|
for (let g = 0; g < h.length; g += 1)
|
|
3031
3031
|
h[g].m(o, null);
|
|
3032
|
-
|
|
3032
|
+
Q(t, s), Q(t, r);
|
|
3033
3033
|
for (let g = 0; g < a.length; g += 1)
|
|
3034
3034
|
a[g].m(r, null);
|
|
3035
3035
|
},
|
|
@@ -3065,8 +3065,8 @@ function Uu(i, t, e) {
|
|
|
3065
3065
|
});
|
|
3066
3066
|
h.unshift({ left: 0, bottom: 0 }), h.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
3067
3067
|
const d = u[u.length - 1] - u[0], f = u.map((p, v, g) => {
|
|
3068
|
-
const A = v === 0 ? 0 : p - g[v - 1],
|
|
3069
|
-
return { left:
|
|
3068
|
+
const A = v === 0 ? 0 : p - g[v - 1], y = v === 0 ? 0 : (p + g[v - 1]) / 2, w = a ? (y - s.min.x - Ot + Ht) / l : 0, C = a ? 0 : (y - s.min.y - Ot + Ht) / c;
|
|
3069
|
+
return { left: w, bottom: C, distance: A };
|
|
3070
3070
|
}).filter(({ distance: p }) => p / d > 0.1);
|
|
3071
3071
|
return i.$$set = (p) => {
|
|
3072
3072
|
"type" in p && e(0, n = p.type), "data" in p && e(5, o = p.data), "bounding" in p && e(6, s = p.bounding), "getRuleDistanceText" in p && e(1, r = p.getRuleDistanceText);
|
|
@@ -3135,7 +3135,7 @@ function Zo(i, t) {
|
|
|
3135
3135
|
o || (P(n.$$.fragment, a), o = !0);
|
|
3136
3136
|
},
|
|
3137
3137
|
o(a) {
|
|
3138
|
-
|
|
3138
|
+
D(n.$$.fragment, a), o = !1;
|
|
3139
3139
|
},
|
|
3140
3140
|
d(a) {
|
|
3141
3141
|
a && M(e), q(n, a);
|
|
@@ -3154,7 +3154,7 @@ function qu(i) {
|
|
|
3154
3154
|
t = z("div");
|
|
3155
3155
|
for (let a = 0; a < e.length; a += 1)
|
|
3156
3156
|
e[a].c();
|
|
3157
|
-
b(t, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"),
|
|
3157
|
+
b(t, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"), L(t, "width", i[3]), L(t, "height", i[2]);
|
|
3158
3158
|
},
|
|
3159
3159
|
m(a, l) {
|
|
3160
3160
|
T(a, t, l);
|
|
@@ -3163,7 +3163,7 @@ function qu(i) {
|
|
|
3163
3163
|
o = !0;
|
|
3164
3164
|
},
|
|
3165
3165
|
p(a, [l]) {
|
|
3166
|
-
l & 19 && (s = a[4], re(), e = qe(e, l, r, 1, a, s, n, t, kt, Zo, null, Jo), ae()), l & 8 &&
|
|
3166
|
+
l & 19 && (s = a[4], re(), e = qe(e, l, r, 1, a, s, n, t, kt, Zo, null, Jo), ae()), l & 8 && L(t, "width", a[3]), l & 4 && L(t, "height", a[2]);
|
|
3167
3167
|
},
|
|
3168
3168
|
i(a) {
|
|
3169
3169
|
if (!o) {
|
|
@@ -3174,7 +3174,7 @@ function qu(i) {
|
|
|
3174
3174
|
},
|
|
3175
3175
|
o(a) {
|
|
3176
3176
|
for (let l = 0; l < e.length; l += 1)
|
|
3177
|
-
|
|
3177
|
+
D(e[l]);
|
|
3178
3178
|
o = !1;
|
|
3179
3179
|
},
|
|
3180
3180
|
d(a) {
|
|
@@ -3291,7 +3291,7 @@ function rd(i) {
|
|
|
3291
3291
|
t = ye("defs"), e = ye("pattern"), n = ye("rect"), o = ye("path"), s = ne(), r = ye("path"), b(n, "x", "0"), b(n, "y", "0"), b(n, "width", i[1]), b(n, "height", i[1]), b(n, "fill", "#323747"), b(o, "d", i[2]), b(o, "stroke", "#ffffff"), b(o, "stroke-opacity", "0.06"), b(o, "stroke-width", "0.5"), b(o, "fill", "none"), b(e, "id", "fpm-room-pattern-0"), b(e, "x", "0"), b(e, "y", "0"), b(e, "width", i[1]), b(e, "height", i[1]), b(e, "patternUnits", "userSpaceOnUse"), b(e, "patternTransform", "scale(50 50)"), b(r, "d", i[0]), b(r, "fill", "url(#fpm-room-pattern-0)");
|
|
3292
3292
|
},
|
|
3293
3293
|
m(a, l) {
|
|
3294
|
-
T(a, t, l),
|
|
3294
|
+
T(a, t, l), Q(t, e), Q(e, n), Q(e, o), T(a, s, l), T(a, r, l);
|
|
3295
3295
|
},
|
|
3296
3296
|
p(a, [l]) {
|
|
3297
3297
|
l & 1 && b(r, "d", a[0]);
|
|
@@ -3325,7 +3325,7 @@ function cd(i) {
|
|
|
3325
3325
|
t = ye("defs"), e = ye("pattern"), n = ye("rect"), o = ye("pattern"), s = ye("rect"), r = ne(), a = ye("path"), l = ne(), c = ye("path"), u = ne(), h = ye("path"), b(n, "x", "0"), b(n, "y", "0"), b(n, "width", "6"), b(n, "height", "50"), b(n, "fill", "none"), b(n, "stroke", "#4B4B57"), b(n, "stroke-width", "0.5"), b(e, "id", "room-material-pattern-1"), b(e, "x", "0"), b(e, "y", "0"), b(e, "width", "12"), b(e, "height", "50"), b(e, "patternUnits", "userSpaceOnUse"), b(e, "patternTransform", "scale(50 50)"), b(s, "x", "0"), b(s, "y", "0"), b(s, "width", "6"), b(s, "height", "50"), b(s, "fill", "none"), b(s, "stroke", "#4B4B57"), b(s, "stroke-width", "0.5"), b(o, "id", "room-material-pattern-2"), b(o, "x", "6"), b(o, "y", "25"), b(o, "width", "12"), b(o, "height", "50"), b(o, "patternUnits", "userSpaceOnUse"), b(o, "patternTransform", "scale(50 50)"), b(a, "d", i[0]), b(a, "fill", "#43434D"), b(c, "d", i[0]), b(c, "fill", "url(#room-material-pattern-1)"), b(h, "d", i[0]), b(h, "fill", "url(#room-material-pattern-2)");
|
|
3326
3326
|
},
|
|
3327
3327
|
m(d, f) {
|
|
3328
|
-
T(d, t, f),
|
|
3328
|
+
T(d, t, f), Q(t, e), Q(e, n), Q(t, o), Q(o, s), T(d, r, f), T(d, a, f), T(d, l, f), T(d, c, f), T(d, u, f), T(d, h, f);
|
|
3329
3329
|
},
|
|
3330
3330
|
p(d, [f]) {
|
|
3331
3331
|
f & 1 && b(a, "d", d[0]), f & 1 && b(c, "d", d[0]), f & 1 && b(h, "d", d[0]);
|
|
@@ -3374,7 +3374,7 @@ function fd(i) {
|
|
|
3374
3374
|
e || (P(t.$$.fragment, n), e = !0);
|
|
3375
3375
|
},
|
|
3376
3376
|
o(n) {
|
|
3377
|
-
|
|
3377
|
+
D(t.$$.fragment, n), e = !1;
|
|
3378
3378
|
},
|
|
3379
3379
|
d(n) {
|
|
3380
3380
|
q(t, n);
|
|
@@ -3398,7 +3398,7 @@ function md(i) {
|
|
|
3398
3398
|
e || (P(t.$$.fragment, n), e = !0);
|
|
3399
3399
|
},
|
|
3400
3400
|
o(n) {
|
|
3401
|
-
|
|
3401
|
+
D(t.$$.fragment, n), e = !1;
|
|
3402
3402
|
},
|
|
3403
3403
|
d(n) {
|
|
3404
3404
|
q(t, n);
|
|
@@ -3422,7 +3422,7 @@ function pd(i) {
|
|
|
3422
3422
|
e || (P(t.$$.fragment, n), e = !0);
|
|
3423
3423
|
},
|
|
3424
3424
|
o(n) {
|
|
3425
|
-
|
|
3425
|
+
D(t.$$.fragment, n), e = !1;
|
|
3426
3426
|
},
|
|
3427
3427
|
d(n) {
|
|
3428
3428
|
q(t, n);
|
|
@@ -3444,7 +3444,7 @@ function es(i) {
|
|
|
3444
3444
|
},
|
|
3445
3445
|
p(l, c) {
|
|
3446
3446
|
let u = e;
|
|
3447
|
-
e = a(l), e === u ? r[e].p(l, c) : (re(),
|
|
3447
|
+
e = a(l), e === u ? r[e].p(l, c) : (re(), D(r[u], 1, 1, () => {
|
|
3448
3448
|
r[u] = null;
|
|
3449
3449
|
}), ae(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), P(n, 1), n.m(t, null));
|
|
3450
3450
|
},
|
|
@@ -3452,7 +3452,7 @@ function es(i) {
|
|
|
3452
3452
|
o || (P(n), o = !0);
|
|
3453
3453
|
},
|
|
3454
3454
|
o(l) {
|
|
3455
|
-
|
|
3455
|
+
D(n), o = !1;
|
|
3456
3456
|
},
|
|
3457
3457
|
d(l) {
|
|
3458
3458
|
l && M(t), r[e].d();
|
|
@@ -3463,7 +3463,7 @@ function gd(i) {
|
|
|
3463
3463
|
let t, e, n = i[0], o = [];
|
|
3464
3464
|
for (let r = 0; r < n.length; r += 1)
|
|
3465
3465
|
o[r] = es($o(i, n, r));
|
|
3466
|
-
const s = (r) =>
|
|
3466
|
+
const s = (r) => D(o[r], 1, 1, () => {
|
|
3467
3467
|
o[r] = null;
|
|
3468
3468
|
});
|
|
3469
3469
|
return {
|
|
@@ -3502,7 +3502,7 @@ function gd(i) {
|
|
|
3502
3502
|
o(r) {
|
|
3503
3503
|
o = o.filter(Boolean);
|
|
3504
3504
|
for (let a = 0; a < o.length; a += 1)
|
|
3505
|
-
|
|
3505
|
+
D(o[a]);
|
|
3506
3506
|
e = !1;
|
|
3507
3507
|
},
|
|
3508
3508
|
d(r) {
|
|
@@ -3625,7 +3625,7 @@ function ns(i, t) {
|
|
|
3625
3625
|
o || (P(n.$$.fragment, a), o = !0);
|
|
3626
3626
|
},
|
|
3627
3627
|
o(a) {
|
|
3628
|
-
|
|
3628
|
+
D(n.$$.fragment, a), o = !1;
|
|
3629
3629
|
},
|
|
3630
3630
|
d(a) {
|
|
3631
3631
|
a && M(e), q(n, a);
|
|
@@ -3647,7 +3647,7 @@ function Ed(i) {
|
|
|
3647
3647
|
b(e, "width", "100%"), b(e, "height", "100%"), b(e, "viewBox", `0 0 ${i[3]} ${i[4]}`), b(e, "class", "svelte-1kqo6e4"), b(t, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
|
|
3648
3648
|
},
|
|
3649
3649
|
m(l, c) {
|
|
3650
|
-
T(l, t, c),
|
|
3650
|
+
T(l, t, c), Q(t, e);
|
|
3651
3651
|
for (let u = 0; u < n.length; u += 1)
|
|
3652
3652
|
n[u].m(e, null);
|
|
3653
3653
|
s = !0;
|
|
@@ -3664,7 +3664,7 @@ function Ed(i) {
|
|
|
3664
3664
|
},
|
|
3665
3665
|
o(l) {
|
|
3666
3666
|
for (let c = 0; c < n.length; c += 1)
|
|
3667
|
-
|
|
3667
|
+
D(n[c]);
|
|
3668
3668
|
s = !1;
|
|
3669
3669
|
},
|
|
3670
3670
|
d(l) {
|
|
@@ -3734,7 +3734,7 @@ function is(i) {
|
|
|
3734
3734
|
e || (P(t.$$.fragment, s), e = !0);
|
|
3735
3735
|
},
|
|
3736
3736
|
o(s) {
|
|
3737
|
-
|
|
3737
|
+
D(t.$$.fragment, s), e = !1;
|
|
3738
3738
|
},
|
|
3739
3739
|
d(s) {
|
|
3740
3740
|
q(t, s);
|
|
@@ -3780,7 +3780,7 @@ function os(i) {
|
|
|
3780
3780
|
e || (P(t.$$.fragment, s), e = !0);
|
|
3781
3781
|
},
|
|
3782
3782
|
o(s) {
|
|
3783
|
-
|
|
3783
|
+
D(t.$$.fragment, s), e = !1;
|
|
3784
3784
|
},
|
|
3785
3785
|
d(s) {
|
|
3786
3786
|
q(t, s);
|
|
@@ -3820,7 +3820,7 @@ function ss(i) {
|
|
|
3820
3820
|
e || (P(t.$$.fragment, s), e = !0);
|
|
3821
3821
|
},
|
|
3822
3822
|
o(s) {
|
|
3823
|
-
|
|
3823
|
+
D(t.$$.fragment, s), e = !1;
|
|
3824
3824
|
},
|
|
3825
3825
|
d(s) {
|
|
3826
3826
|
q(t, s);
|
|
@@ -3855,36 +3855,36 @@ function xd(i) {
|
|
|
3855
3855
|
c() {
|
|
3856
3856
|
t = z("div"), K(e.$$.fragment), n = ne(), d && d.c(), o = ne(), K(s.$$.fragment), r = ne(), v && v.c(), a = ne(), g && g.c(), b(t, "class", l = Re(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
|
|
3857
3857
|
},
|
|
3858
|
-
m(A,
|
|
3859
|
-
T(A, t,
|
|
3858
|
+
m(A, y) {
|
|
3859
|
+
T(A, t, y), Z(e, t, null), Q(t, n), d && d.m(t, null), Q(t, o), Z(s, t, null), Q(t, r), v && v.m(t, null), Q(t, a), g && g.m(t, null), c = !0;
|
|
3860
3860
|
},
|
|
3861
|
-
p(A, [
|
|
3862
|
-
const
|
|
3861
|
+
p(A, [y]) {
|
|
3862
|
+
const w = y & 34 ? Oe(u, [
|
|
3863
3863
|
{
|
|
3864
3864
|
floorIndex: A[1],
|
|
3865
3865
|
floorplanData: A[5]
|
|
3866
3866
|
}
|
|
3867
3867
|
]) : {};
|
|
3868
|
-
e.$set(
|
|
3868
|
+
e.$set(w), A[2] ? d ? (d.p(A, y), y & 4 && P(d, 1)) : (d = is(A), d.c(), P(d, 1), d.m(t, o)) : d && (re(), D(d, 1, 1, () => {
|
|
3869
3869
|
d = null;
|
|
3870
3870
|
}), ae());
|
|
3871
|
-
const C =
|
|
3871
|
+
const C = y & 34 ? Oe(f, [
|
|
3872
3872
|
{
|
|
3873
3873
|
floorplanData: A[5],
|
|
3874
3874
|
floorIndex: A[1]
|
|
3875
3875
|
}
|
|
3876
3876
|
]) : {};
|
|
3877
|
-
s.$set(C), A[3] ? v ? (v.p(A,
|
|
3877
|
+
s.$set(C), A[3] ? v ? (v.p(A, y), y & 8 && P(v, 1)) : (v = os(A), v.c(), P(v, 1), v.m(t, a)) : v && (re(), D(v, 1, 1, () => {
|
|
3878
3878
|
v = null;
|
|
3879
|
-
}), ae()), A[4] ? g ? (g.p(A,
|
|
3879
|
+
}), ae()), A[4] ? g ? (g.p(A, y), y & 16 && P(g, 1)) : (g = ss(A), g.c(), P(g, 1), g.m(t, null)) : g && (re(), D(g, 1, 1, () => {
|
|
3880
3880
|
g = null;
|
|
3881
|
-
}), ae()), (!c ||
|
|
3881
|
+
}), ae()), (!c || y & 1 && l !== (l = Re(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
|
|
3882
3882
|
},
|
|
3883
3883
|
i(A) {
|
|
3884
3884
|
c || (P(e.$$.fragment, A), P(d), P(s.$$.fragment, A), P(v), P(g), c = !0);
|
|
3885
3885
|
},
|
|
3886
3886
|
o(A) {
|
|
3887
|
-
|
|
3887
|
+
D(e.$$.fragment, A), D(d), D(s.$$.fragment, A), D(v), D(g), c = !1;
|
|
3888
3888
|
},
|
|
3889
3889
|
d(A) {
|
|
3890
3890
|
A && M(t), q(e), d && d.d(), q(s), v && v.d(), g && g.d();
|
|
@@ -3945,7 +3945,7 @@ function as(i) {
|
|
|
3945
3945
|
let t, e, n, o, s, r, a = i[9].floorDatas, l = [];
|
|
3946
3946
|
for (let f = 0; f < a.length; f += 1)
|
|
3947
3947
|
l[f] = ls(rs(i, a, f));
|
|
3948
|
-
const c = (f) =>
|
|
3948
|
+
const c = (f) => D(l[f], 1, 1, () => {
|
|
3949
3949
|
l[f] = null;
|
|
3950
3950
|
}), u = [
|
|
3951
3951
|
{
|
|
@@ -3971,7 +3971,7 @@ function as(i) {
|
|
|
3971
3971
|
T(f, t, p);
|
|
3972
3972
|
for (let v = 0; v < l.length; v += 1)
|
|
3973
3973
|
l[v].m(t, null);
|
|
3974
|
-
|
|
3974
|
+
Q(t, e), Z(n, t, null), Q(t, o), d && d.m(t, null), r = !0;
|
|
3975
3975
|
},
|
|
3976
3976
|
p(f, p) {
|
|
3977
3977
|
if (i = f, p & 62384) {
|
|
@@ -3993,7 +3993,7 @@ function as(i) {
|
|
|
3993
3993
|
cameraImageUrl: i[11]
|
|
3994
3994
|
}
|
|
3995
3995
|
]) : {};
|
|
3996
|
-
n.$set(v), i[6] ? d ? (d.p(i, p), p & 64 && P(d, 1)) : (d = cs(i), d.c(), P(d, 1), d.m(t, null)) : d && (re(),
|
|
3996
|
+
n.$set(v), i[6] ? d ? (d.p(i, p), p & 64 && P(d, 1)) : (d = cs(i), d.c(), P(d, 1), d.m(t, null)) : d && (re(), D(d, 1, 1, () => {
|
|
3997
3997
|
d = null;
|
|
3998
3998
|
}), ae());
|
|
3999
3999
|
},
|
|
@@ -4012,8 +4012,8 @@ function as(i) {
|
|
|
4012
4012
|
o(f) {
|
|
4013
4013
|
l = l.filter(Boolean);
|
|
4014
4014
|
for (let p = 0; p < l.length; p += 1)
|
|
4015
|
-
|
|
4016
|
-
|
|
4015
|
+
D(l[p]);
|
|
4016
|
+
D(n.$$.fragment, f), D(d), r = !1;
|
|
4017
4017
|
},
|
|
4018
4018
|
d(f) {
|
|
4019
4019
|
f && M(t), ut(l, f), q(n), d && d.d();
|
|
@@ -4075,7 +4075,7 @@ function ls(i) {
|
|
|
4075
4075
|
e || (P(t.$$.fragment, s), e = !0);
|
|
4076
4076
|
},
|
|
4077
4077
|
o(s) {
|
|
4078
|
-
|
|
4078
|
+
D(t.$$.fragment, s), e = !1;
|
|
4079
4079
|
},
|
|
4080
4080
|
d(s) {
|
|
4081
4081
|
q(t, s);
|
|
@@ -4104,7 +4104,7 @@ function cs(i) {
|
|
|
4104
4104
|
e || (P(t.$$.fragment, n), e = !0);
|
|
4105
4105
|
},
|
|
4106
4106
|
o(n) {
|
|
4107
|
-
|
|
4107
|
+
D(t.$$.fragment, n), e = !1;
|
|
4108
4108
|
},
|
|
4109
4109
|
d(n) {
|
|
4110
4110
|
q(t, n);
|
|
@@ -4121,7 +4121,7 @@ function Md(i) {
|
|
|
4121
4121
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
4122
4122
|
},
|
|
4123
4123
|
p(o, [s]) {
|
|
4124
|
-
o[1] ? n ? (n.p(o, s), s & 2 && P(n, 1)) : (n = as(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
4124
|
+
o[1] ? n ? (n.p(o, s), s & 2 && P(n, 1)) : (n = as(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
4125
4125
|
n = null;
|
|
4126
4126
|
}), ae());
|
|
4127
4127
|
},
|
|
@@ -4129,7 +4129,7 @@ function Md(i) {
|
|
|
4129
4129
|
e || (P(n), e = !0);
|
|
4130
4130
|
},
|
|
4131
4131
|
o(o) {
|
|
4132
|
-
|
|
4132
|
+
D(n), e = !1;
|
|
4133
4133
|
},
|
|
4134
4134
|
d(o) {
|
|
4135
4135
|
n && n.d(o), o && M(t);
|
|
@@ -4137,9 +4137,9 @@ function Md(i) {
|
|
|
4137
4137
|
};
|
|
4138
4138
|
}
|
|
4139
4139
|
function Td(i, t, e) {
|
|
4140
|
-
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: u } = t, { ruleLabelsEnable: h } = t, { floorplanData: d } = t, { lastPanoramaLongitude: f } = t, { cameraImageUrl: p } = t, { getRoomAreaText: v } = t, { getLabelElement: g } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable:
|
|
4141
|
-
return i.$$set = (
|
|
4142
|
-
"duration" in
|
|
4140
|
+
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: u } = t, { ruleLabelsEnable: h } = t, { floorplanData: d } = t, { lastPanoramaLongitude: f } = t, { cameraImageUrl: p } = t, { getRoomAreaText: v } = t, { getLabelElement: g } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: y } = t;
|
|
4141
|
+
return i.$$set = (w) => {
|
|
4142
|
+
"duration" in w && e(0, n = w.duration), "visible" in w && e(1, o = w.visible), "northDesc" in w && e(2, s = w.northDesc), "panoIndex" in w && e(3, r = w.panoIndex), "floorIndex" in w && e(4, a = w.floorIndex), "hoverEnable" in w && e(5, l = w.hoverEnable), "compassEnable" in w && e(6, c = w.compassEnable), "roomLabelsEnable" in w && e(7, u = w.roomLabelsEnable), "ruleLabelsEnable" in w && e(8, h = w.ruleLabelsEnable), "floorplanData" in w && e(9, d = w.floorplanData), "lastPanoramaLongitude" in w && e(10, f = w.lastPanoramaLongitude), "cameraImageUrl" in w && e(11, p = w.cameraImageUrl), "getRoomAreaText" in w && e(12, v = w.getRoomAreaText), "getLabelElement" in w && e(13, g = w.getLabelElement), "getRuleDistanceText" in w && e(14, A = w.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in w && e(15, y = w.adaptiveRoomLabelVisibleEnable);
|
|
4143
4143
|
}, [
|
|
4144
4144
|
n,
|
|
4145
4145
|
o,
|
|
@@ -4156,7 +4156,7 @@ function Td(i, t, e) {
|
|
|
4156
4156
|
v,
|
|
4157
4157
|
g,
|
|
4158
4158
|
A,
|
|
4159
|
-
|
|
4159
|
+
y
|
|
4160
4160
|
];
|
|
4161
4161
|
}
|
|
4162
4162
|
class ho extends se {
|
|
@@ -5167,13 +5167,13 @@ function Zd(i) {
|
|
|
5167
5167
|
let t, e, n;
|
|
5168
5168
|
return {
|
|
5169
5169
|
c() {
|
|
5170
|
-
t = z("div"), e = z("div"), n = z("div"), b(n, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"),
|
|
5170
|
+
t = z("div"), e = z("div"), n = z("div"), b(n, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"), L(n, "background-image", "url(" + (i[0] || yt) + ")"), L(n, "transform", i[1]), b(e, "class", "plugin-radar__camera-position svelte-1nqrlxd"), L(e, "transform", i[2]), b(t, "class", "plugin-radar__camera-wrapper svelte-1nqrlxd");
|
|
5171
5171
|
},
|
|
5172
5172
|
m(o, s) {
|
|
5173
|
-
T(o, t, s),
|
|
5173
|
+
T(o, t, s), Q(t, e), Q(e, n);
|
|
5174
5174
|
},
|
|
5175
5175
|
p(o, [s]) {
|
|
5176
|
-
s & 1 &&
|
|
5176
|
+
s & 1 && L(n, "background-image", "url(" + (o[0] || yt) + ")"), s & 2 && L(n, "transform", o[1]), s & 4 && L(e, "transform", o[2]);
|
|
5177
5177
|
},
|
|
5178
5178
|
i: X,
|
|
5179
5179
|
o: X,
|
|
@@ -5191,8 +5191,8 @@ function Kd(i, t, e) {
|
|
|
5191
5191
|
const g = p.bounding, A = p.observers[v];
|
|
5192
5192
|
if (!A)
|
|
5193
5193
|
return "";
|
|
5194
|
-
const
|
|
5195
|
-
return `translate(${C}px, ${
|
|
5194
|
+
const y = (g.max.x - g.min.x) * r, w = (g.max.y - g.min.y) * r, C = Math.floor(A.positionInImage.x * y), x = Math.floor(A.positionInImage.y * w);
|
|
5195
|
+
return `translate(${C}px, ${x}px)`;
|
|
5196
5196
|
}
|
|
5197
5197
|
function d(p) {
|
|
5198
5198
|
e(6, c = p);
|
|
@@ -5251,13 +5251,13 @@ function hs(i, t) {
|
|
|
5251
5251
|
key: i,
|
|
5252
5252
|
first: null,
|
|
5253
5253
|
c() {
|
|
5254
|
-
e = z("div"), n = z("div"), r = ne(), b(n, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"),
|
|
5254
|
+
e = z("div"), n = z("div"), r = ne(), b(n, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), L(n, "background-image", `url(${t[1].icon.url})`), L(n, "width", o), L(n, "height", s), b(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), L(e, "top", a), L(e, "left", l), this.first = e;
|
|
5255
5255
|
},
|
|
5256
5256
|
m(c, u) {
|
|
5257
|
-
T(c, e, u),
|
|
5257
|
+
T(c, e, u), Q(e, n), Q(e, r);
|
|
5258
5258
|
},
|
|
5259
5259
|
p(c, u) {
|
|
5260
|
-
t = c, u & 1 &&
|
|
5260
|
+
t = c, u & 1 && L(n, "background-image", `url(${t[1].icon.url})`), u & 1 && o !== (o = `${t[1].icon.width / 16}rem`) && L(n, "width", o), u & 1 && s !== (s = `${t[1].icon.height / 16}rem`) && L(n, "height", s), u & 1 && a !== (a = `${t[1].positionInImage.y * 100}%`) && L(e, "top", a), u & 1 && l !== (l = `${t[1].positionInImage.x * 100}%`) && L(e, "left", l);
|
|
5261
5261
|
},
|
|
5262
5262
|
d(c) {
|
|
5263
5263
|
c && M(e);
|
|
@@ -5343,7 +5343,7 @@ function fs(i) {
|
|
|
5343
5343
|
e || (P(t.$$.fragment, s), e = !0);
|
|
5344
5344
|
},
|
|
5345
5345
|
o(s) {
|
|
5346
|
-
|
|
5346
|
+
D(t.$$.fragment, s), e = !1;
|
|
5347
5347
|
},
|
|
5348
5348
|
d(s) {
|
|
5349
5349
|
q(t, s);
|
|
@@ -5383,7 +5383,7 @@ function oh(i) {
|
|
|
5383
5383
|
]) : {};
|
|
5384
5384
|
t.$set(d);
|
|
5385
5385
|
const f = {};
|
|
5386
|
-
h & 32 && (f.extraObjects = u[5]), n.$set(f), u[3] ? c ? (c.p(u, h), h & 8 && P(c, 1)) : (c = fs(u), c.c(), P(c, 1), c.m(s.parentNode, s)) : c && (re(),
|
|
5386
|
+
h & 32 && (f.extraObjects = u[5]), n.$set(f), u[3] ? c ? (c.p(u, h), h & 8 && P(c, 1)) : (c = fs(u), c.c(), P(c, 1), c.m(s.parentNode, s)) : c && (re(), D(c, 1, 1, () => {
|
|
5387
5387
|
c = null;
|
|
5388
5388
|
}), ae());
|
|
5389
5389
|
},
|
|
@@ -5391,7 +5391,7 @@ function oh(i) {
|
|
|
5391
5391
|
r || (P(t.$$.fragment, u), P(n.$$.fragment, u), P(c), r = !0);
|
|
5392
5392
|
},
|
|
5393
5393
|
o(u) {
|
|
5394
|
-
|
|
5394
|
+
D(t.$$.fragment, u), D(n.$$.fragment, u), D(c), r = !1;
|
|
5395
5395
|
},
|
|
5396
5396
|
d(u) {
|
|
5397
5397
|
q(t, u), u && M(e), q(n, u), u && M(o), c && c.d(u), u && M(s);
|
|
@@ -5441,7 +5441,7 @@ function ms(i) {
|
|
|
5441
5441
|
T(s, t, r), o && o.m(t, null), e = Pt(t, i[12].bind(t)), n = !0;
|
|
5442
5442
|
},
|
|
5443
5443
|
p(s, r) {
|
|
5444
|
-
s[6] !== 0 ? o ? (o.p(s, r), r & 64 && P(o, 1)) : (o = ps(s), o.c(), P(o, 1), o.m(t, null)) : o && (re(),
|
|
5444
|
+
s[6] !== 0 ? o ? (o.p(s, r), r & 64 && P(o, 1)) : (o = ps(s), o.c(), P(o, 1), o.m(t, null)) : o && (re(), D(o, 1, 1, () => {
|
|
5445
5445
|
o = null;
|
|
5446
5446
|
}), ae());
|
|
5447
5447
|
},
|
|
@@ -5449,7 +5449,7 @@ function ms(i) {
|
|
|
5449
5449
|
n || (P(o), n = !0);
|
|
5450
5450
|
},
|
|
5451
5451
|
o(s) {
|
|
5452
|
-
|
|
5452
|
+
D(o), n = !1;
|
|
5453
5453
|
},
|
|
5454
5454
|
d(s) {
|
|
5455
5455
|
s && M(t), o && o.d(), e();
|
|
@@ -5485,10 +5485,10 @@ function ps(i) {
|
|
|
5485
5485
|
h = Te(h, u[d]);
|
|
5486
5486
|
return o = new $d({ props: h }), {
|
|
5487
5487
|
c() {
|
|
5488
|
-
t = z("div"), K(e.$$.fragment), n = ne(), K(o.$$.fragment), b(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"),
|
|
5488
|
+
t = z("div"), K(e.$$.fragment), n = ne(), K(o.$$.fragment), b(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), L(t, "width", s), L(t, "height", r);
|
|
5489
5489
|
},
|
|
5490
5490
|
m(d, f) {
|
|
5491
|
-
T(d, t, f), Z(e, t, null),
|
|
5491
|
+
T(d, t, f), Z(e, t, null), Q(t, n), Z(o, t, null), a = !0;
|
|
5492
5492
|
},
|
|
5493
5493
|
p(d, f) {
|
|
5494
5494
|
const p = f & 1581 ? Oe(l, [
|
|
@@ -5510,13 +5510,13 @@ function ps(i) {
|
|
|
5510
5510
|
cameraImageUrl: d[4]
|
|
5511
5511
|
}
|
|
5512
5512
|
]) : {};
|
|
5513
|
-
o.$set(v), f & 256 && s !== (s = `${d[8]}px`) &&
|
|
5513
|
+
o.$set(v), f & 256 && s !== (s = `${d[8]}px`) && L(t, "width", s), f & 2048 && r !== (r = `${d[11]}px`) && L(t, "height", r);
|
|
5514
5514
|
},
|
|
5515
5515
|
i(d) {
|
|
5516
5516
|
a || (P(e.$$.fragment, d), P(o.$$.fragment, d), a = !0);
|
|
5517
5517
|
},
|
|
5518
5518
|
o(d) {
|
|
5519
|
-
|
|
5519
|
+
D(e.$$.fragment, d), D(o.$$.fragment, d), a = !1;
|
|
5520
5520
|
},
|
|
5521
5521
|
d(d) {
|
|
5522
5522
|
d && M(t), q(e), q(o);
|
|
@@ -5533,7 +5533,7 @@ function lh(i) {
|
|
|
5533
5533
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
5534
5534
|
},
|
|
5535
5535
|
p(o, [s]) {
|
|
5536
|
-
o[1] ? n ? (n.p(o, s), s & 2 && P(n, 1)) : (n = ms(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
5536
|
+
o[1] ? n ? (n.p(o, s), s & 2 && P(n, 1)) : (n = ms(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
5537
5537
|
n = null;
|
|
5538
5538
|
}), ae());
|
|
5539
5539
|
},
|
|
@@ -5541,7 +5541,7 @@ function lh(i) {
|
|
|
5541
5541
|
e || (P(n), e = !0);
|
|
5542
5542
|
},
|
|
5543
5543
|
o(o) {
|
|
5544
|
-
|
|
5544
|
+
D(n), e = !1;
|
|
5545
5545
|
},
|
|
5546
5546
|
d(o) {
|
|
5547
5547
|
n && n.d(o), o && M(t);
|
|
@@ -5549,10 +5549,10 @@ function lh(i) {
|
|
|
5549
5549
|
};
|
|
5550
5550
|
}
|
|
5551
5551
|
function ch(i, t, e) {
|
|
5552
|
-
var A,
|
|
5553
|
-
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, u = (
|
|
5554
|
-
function v(
|
|
5555
|
-
e(10, u = n.work.observers[
|
|
5552
|
+
var A, y;
|
|
5553
|
+
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, u = (y = (A = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : A.floorIndex) != null ? y : 0, h = 0, d = 0, f = 0, p = 0;
|
|
5554
|
+
function v(w) {
|
|
5555
|
+
e(10, u = n.work.observers[w].floorIndex);
|
|
5556
5556
|
}
|
|
5557
5557
|
Ze(() => (n.on("panoArrived", v), () => {
|
|
5558
5558
|
n.off("panoArrived", v);
|
|
@@ -5560,12 +5560,12 @@ function ch(i, t, e) {
|
|
|
5560
5560
|
function g() {
|
|
5561
5561
|
h = this.clientWidth, d = this.clientHeight, e(6, h), e(7, d);
|
|
5562
5562
|
}
|
|
5563
|
-
return i.$$set = (
|
|
5564
|
-
"five" in
|
|
5563
|
+
return i.$$set = (w) => {
|
|
5564
|
+
"five" in w && e(0, n = w.five), "visible" in w && e(1, o = w.visible), "hoverEnable" in w && e(2, s = w.hoverEnable), "floorplanData" in w && e(3, r = w.floorplanData), "cameraImageUrl" in w && e(4, a = w.cameraImageUrl), "extraObjects" in w && e(5, l = w.extraObjects);
|
|
5565
5565
|
}, i.$$.update = () => {
|
|
5566
5566
|
if (i.$$.dirty & 456) {
|
|
5567
|
-
const
|
|
5568
|
-
return I >
|
|
5567
|
+
const w = Math.min(h, d), { max: C, min: x } = r.bounding, I = C.x - x.x, S = C.y - x.y, k = function() {
|
|
5568
|
+
return I > S ? [w, w / I * S] : [w / S * I, w];
|
|
5569
5569
|
}();
|
|
5570
5570
|
e(8, f = k[0]), e(11, p = k[1]), e(9, c = f / I);
|
|
5571
5571
|
}
|
|
@@ -5857,8 +5857,8 @@ const Db = (i, t) => {
|
|
|
5857
5857
|
const d = (h == null ? void 0 : h.fbx_url) || e, f = (U = h == null ? void 0 : h.north_rad) != null ? U : n;
|
|
5858
5858
|
if (typeof f != "number")
|
|
5859
5859
|
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
5860
|
-
const p = i.model.bounding, v = p.max.x - p.min.x, g = p.max.z - p.min.z, A = Math.max(v, g),
|
|
5861
|
-
Fa(
|
|
5860
|
+
const p = i.model.bounding, v = p.max.x - p.min.x, g = p.max.z - p.min.z, A = Math.max(v, g), w = yield new ha().loadAsync(d);
|
|
5861
|
+
Fa(w, {
|
|
5862
5862
|
transparent: !0,
|
|
5863
5863
|
side: E.DoubleSide,
|
|
5864
5864
|
blending: E.AdditiveBlending
|
|
@@ -5866,14 +5866,14 @@ const Db = (i, t) => {
|
|
|
5866
5866
|
const C = [0, f - Math.PI / 2, 0], {
|
|
5867
5867
|
model: {
|
|
5868
5868
|
bounding: {
|
|
5869
|
-
max: { x
|
|
5870
|
-
min: { x, y: k, z:
|
|
5869
|
+
max: { x, z: I },
|
|
5870
|
+
min: { x: S, y: k, z: j }
|
|
5871
5871
|
}
|
|
5872
5872
|
}
|
|
5873
5873
|
} = i;
|
|
5874
5874
|
o.yBase = k;
|
|
5875
|
-
const N = { x: (
|
|
5876
|
-
return hh(
|
|
5875
|
+
const N = { x: (x + S) / 2, y: k - 1.6, z: (I + j) / 2 }, H = 45e-4 * A;
|
|
5876
|
+
return hh(w, { position: N, rotation: C, scale: H }), o.object = w, !0;
|
|
5877
5877
|
}), r = ({ latitude: h }) => {
|
|
5878
5878
|
if (!o.object)
|
|
5879
5879
|
return;
|
|
@@ -5906,58 +5906,58 @@ function fh(i, t) {
|
|
|
5906
5906
|
}
|
|
5907
5907
|
const mh = ({ x: i, y: t, z: e }) => new $(i, t, e), Lb = (i, t) => {
|
|
5908
5908
|
var v, g, A;
|
|
5909
|
-
const e = {}, n = (v = t.animationEnabled) != null ? v : !0, o = (g = t.position) != null ? g : 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 = (
|
|
5910
|
-
var N, H, U,
|
|
5911
|
-
const
|
|
5912
|
-
if (!
|
|
5909
|
+
const e = {}, n = (v = t.animationEnabled) != null ? v : !0, o = (g = t.position) != null ? g : 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 = (y) => W(void 0, null, function* () {
|
|
5910
|
+
var N, H, U, V, B, R, G, F;
|
|
5911
|
+
const w = (N = y == null ? void 0 : y.position) != null ? N : o;
|
|
5912
|
+
if (!w)
|
|
5913
5913
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
5914
|
-
const C = mh(
|
|
5915
|
-
if (e.rad =
|
|
5916
|
-
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${
|
|
5917
|
-
const
|
|
5918
|
-
|
|
5919
|
-
const k = (G = (R = (B = (
|
|
5914
|
+
const C = mh(w), x = (H = y == null ? void 0 : y.rad) != null ? H : s, I = (U = y == null ? void 0 : y.fbx_url) != null ? U : r;
|
|
5915
|
+
if (e.rad = x, x === void 0)
|
|
5916
|
+
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${x}`));
|
|
5917
|
+
const S = yield new ha().loadAsync(I);
|
|
5918
|
+
S.position.copy(C), S.rotation.z = x, S.scale.set(0.8, 0.8, 0.8), Fa(S, { transparent: !0, side: E.DoubleSide });
|
|
5919
|
+
const k = (G = (R = (B = (V = S.children) == null ? void 0 : V[0]) == null ? void 0 : B.children) == null ? void 0 : R[3]) == null ? void 0 : G.clone();
|
|
5920
5920
|
if (!k)
|
|
5921
5921
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${k}`));
|
|
5922
|
-
const
|
|
5923
|
-
return k.material = new bn({ transparent: !0, map: fh(
|
|
5922
|
+
const j = (F = t.name) != null ? F : "\u5165\u6237\u95E8";
|
|
5923
|
+
return k.material = new bn({ transparent: !0, map: fh(j) }), k.renderOrder = 3, S.children[0].add(k), e.object = S, !0;
|
|
5924
5924
|
}), c = () => {
|
|
5925
5925
|
if (e.animation)
|
|
5926
5926
|
return;
|
|
5927
5927
|
if (!e.object)
|
|
5928
5928
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
5929
|
-
const
|
|
5930
|
-
a.push(
|
|
5931
|
-
const C =
|
|
5932
|
-
C.timeScale =
|
|
5933
|
-
let
|
|
5929
|
+
const y = 1, w = new _l(e.object);
|
|
5930
|
+
a.push(w);
|
|
5931
|
+
const C = w.clipAction(e.object.animations[0]);
|
|
5932
|
+
C.timeScale = y;
|
|
5933
|
+
let x;
|
|
5934
5934
|
const I = () => {
|
|
5935
5935
|
let N = 0, H = 0;
|
|
5936
|
-
const U = 1e3 / 30,
|
|
5937
|
-
N = requestAnimationFrame(
|
|
5936
|
+
const U = 1e3 / 30, V = (B) => {
|
|
5937
|
+
N = requestAnimationFrame(V);
|
|
5938
5938
|
const R = B - H;
|
|
5939
5939
|
R < U || (H = B, a.forEach((G) => G.update(R / 1e3)), i.needsRender = !0);
|
|
5940
5940
|
};
|
|
5941
|
-
return N = requestAnimationFrame(
|
|
5941
|
+
return N = requestAnimationFrame(V), () => {
|
|
5942
5942
|
cancelAnimationFrame(N);
|
|
5943
5943
|
};
|
|
5944
|
-
},
|
|
5945
|
-
|
|
5944
|
+
}, j = { play: () => {
|
|
5945
|
+
x || (C.play(), x = I(), requestAnimationFrame(() => {
|
|
5946
5946
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
5947
5947
|
}));
|
|
5948
5948
|
}, stop: () => {
|
|
5949
|
-
C.stop(),
|
|
5949
|
+
C.stop(), x == null || x(), x = void 0;
|
|
5950
5950
|
} };
|
|
5951
|
-
e.animation =
|
|
5952
|
-
}, u = (
|
|
5951
|
+
e.animation = j;
|
|
5952
|
+
}, u = (y) => {
|
|
5953
5953
|
var C;
|
|
5954
5954
|
if (!e.object)
|
|
5955
5955
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
5956
|
-
((C =
|
|
5956
|
+
((C = y == null ? void 0 : y.animationEnable) != null ? C : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
|
|
5957
5957
|
}, h = () => {
|
|
5958
5958
|
!e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
|
|
5959
|
-
}, d = (
|
|
5960
|
-
return { load: l, enable: (
|
|
5959
|
+
}, d = (y) => y === "Floorplan" ? u() : h();
|
|
5960
|
+
return { load: l, enable: (y) => (e.enabled || (e.enabled = !0, d(i.currentMode), i.on("modeChange", d), u(y)), !0), disable: () => (e.enabled && (e.enabled = !1, h(), i.off("modeChange", d)), !0) };
|
|
5961
5961
|
};
|
|
5962
5962
|
class Ao extends An.Tween {
|
|
5963
5963
|
constructor() {
|
|
@@ -6077,16 +6077,16 @@ const Ui = (i, t, e) => {
|
|
|
6077
6077
|
})), a.asyncEndCallback && (yield a.asyncEndCallback());
|
|
6078
6078
|
const { from: h, to: d } = n(s);
|
|
6079
6079
|
return yield new Promise((f) => {
|
|
6080
|
-
const p = ({ progress:
|
|
6080
|
+
const p = ({ progress: w }) => {
|
|
6081
6081
|
const C = {};
|
|
6082
|
-
C.longitude = Li(h.longitude, d.longitude,
|
|
6082
|
+
C.longitude = Li(h.longitude, d.longitude, w), C.latitude = Li(h.latitude, d.latitude, w), C.fov = Li(h.fov, d.fov, w), i.setState(C, !0);
|
|
6083
6083
|
}, v = () => {
|
|
6084
6084
|
f(!0);
|
|
6085
6085
|
}, g = () => {
|
|
6086
6086
|
f(!1);
|
|
6087
|
-
}, A = s.rotateSpeed ? Math.ceil(Math.abs(d.longitude - h.longitude) / s.rotateSpeed * 1e3) : r,
|
|
6088
|
-
s.rotation === st.Loop &&
|
|
6089
|
-
|
|
6087
|
+
}, A = s.rotateSpeed ? Math.ceil(Math.abs(d.longitude - h.longitude) / s.rotateSpeed * 1e3) : r, y = bh(A, ui.Easing.Linear.None).onUpdate(p).onComplete(v).onDestroy(g);
|
|
6088
|
+
s.rotation === st.Loop && y.repeat(1 / 0).yoyo(!0), t.interruptCallback = (w = !0) => {
|
|
6089
|
+
y.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), f(w);
|
|
6090
6090
|
}, t.timeoutId = setTimeout(() => {
|
|
6091
6091
|
t.interruptCallback && t.interruptCallback(!0);
|
|
6092
6092
|
}, r);
|
|
@@ -6260,8 +6260,8 @@ const Ch = `<style type="text/css">
|
|
|
6260
6260
|
<div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(g)}</div>
|
|
6261
6261
|
</div>
|
|
6262
6262
|
</div>
|
|
6263
|
-
`,
|
|
6264
|
-
return
|
|
6263
|
+
`, y = document.createElement("div");
|
|
6264
|
+
return y.setAttribute("class", "PanoRulerPlugin-rule"), y.setAttribute("data-name", v), y.setAttribute("style", "display: none"), y.innerHTML = A, y;
|
|
6265
6265
|
}, o = document.createElement("div");
|
|
6266
6266
|
o.setAttribute(
|
|
6267
6267
|
"style",
|
|
@@ -6272,104 +6272,104 @@ const Ch = `<style type="text/css">
|
|
|
6272
6272
|
const r = {}, a = (v, g) => {
|
|
6273
6273
|
if (e.loaded)
|
|
6274
6274
|
throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
|
|
6275
|
-
const A = Eh(v, i),
|
|
6276
|
-
if (!
|
|
6275
|
+
const A = Eh(v, i), y = i.work;
|
|
6276
|
+
if (!y)
|
|
6277
6277
|
return !1;
|
|
6278
|
-
for (const
|
|
6279
|
-
const C = g[
|
|
6280
|
-
const N =
|
|
6281
|
-
let U = 1 / 0,
|
|
6278
|
+
for (const w in g) {
|
|
6279
|
+
const C = g[w], { standingPosition: x } = y.observers[0], I = C.map(({ x: S, z: k, observers: j }) => {
|
|
6280
|
+
const N = j.length > 0 ? v.rooms[v.observers[j[0]]].name : "", H = A[N] ? A[N].floor : null;
|
|
6281
|
+
let U = 1 / 0, V = {
|
|
6282
6282
|
index: 0,
|
|
6283
|
-
x:
|
|
6284
|
-
y:
|
|
6285
|
-
z:
|
|
6283
|
+
x: x.x,
|
|
6284
|
+
y: x.y,
|
|
6285
|
+
z: x.z
|
|
6286
6286
|
};
|
|
6287
|
-
|
|
6288
|
-
if (!
|
|
6287
|
+
j.forEach((_) => {
|
|
6288
|
+
if (!y.observers[_])
|
|
6289
6289
|
return;
|
|
6290
|
-
const { standingPosition: Y } =
|
|
6290
|
+
const { standingPosition: Y } = y.observers[_], de = {
|
|
6291
6291
|
index: _,
|
|
6292
6292
|
x: Y.x,
|
|
6293
6293
|
y: Y.y,
|
|
6294
6294
|
z: Y.z
|
|
6295
|
-
}, he = Ph({ x, z: k }, de);
|
|
6296
|
-
H ? he < U && Math.abs(de.y - H) < 0.3 && (U = he,
|
|
6295
|
+
}, he = Ph({ x: S, z: k }, de);
|
|
6296
|
+
H ? he < U && Math.abs(de.y - H) < 0.3 && (U = he, V = de) : he < U && (U = he, V = de);
|
|
6297
6297
|
});
|
|
6298
|
-
const B = new $(
|
|
6299
|
-
Object.assign(B, { observers:
|
|
6300
|
-
const R = A[N] ? A[N].roof : null, G = R ? new $(
|
|
6301
|
-
return G && Object.assign(G, { observers:
|
|
6298
|
+
const B = new $(S, V.y, k);
|
|
6299
|
+
Object.assign(B, { observers: j });
|
|
6300
|
+
const R = A[N] ? A[N].roof : null, G = R ? new $(S, R, k) : null;
|
|
6301
|
+
return G && Object.assign(G, { observers: j }), { origin: B, vertical: G };
|
|
6302
6302
|
});
|
|
6303
|
-
r[
|
|
6304
|
-
origins: I.map((
|
|
6303
|
+
r[w] = {
|
|
6304
|
+
origins: I.map((S) => S.origin),
|
|
6305
6305
|
rules: []
|
|
6306
6306
|
};
|
|
6307
|
-
for (const { origin:
|
|
6307
|
+
for (const { origin: S, vertical: k } of I) {
|
|
6308
6308
|
if (!k)
|
|
6309
6309
|
continue;
|
|
6310
|
-
const
|
|
6311
|
-
o.append(
|
|
6310
|
+
const j = n(w, S.distanceTo(k));
|
|
6311
|
+
o.append(j), r[w].rules.push({ vertical: !0, rule: [S, k], $element: j });
|
|
6312
6312
|
}
|
|
6313
|
-
for (let
|
|
6314
|
-
let k =
|
|
6313
|
+
for (let S = 0; S < I.length; S++) {
|
|
6314
|
+
let k = S + 1;
|
|
6315
6315
|
k >= I.length && (k = 0);
|
|
6316
|
-
const { origin:
|
|
6317
|
-
o.append(H), r[
|
|
6316
|
+
const { origin: j } = I[S], { origin: N } = I[k], H = n(w, j.distanceTo(N));
|
|
6317
|
+
o.append(H), r[w].rules.push({ vertical: !1, rule: [j, N], $element: H });
|
|
6318
6318
|
}
|
|
6319
6319
|
}
|
|
6320
6320
|
return e.loaded = !0, !0;
|
|
6321
6321
|
}, l = (v, g, A) => W(void 0, null, function* () {
|
|
6322
|
-
const
|
|
6323
|
-
if (!
|
|
6322
|
+
const y = v || t.roomInfo, w = g || t.roomRules;
|
|
6323
|
+
if (!y || !w)
|
|
6324
6324
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
6325
|
-
return e.loaded = !1, e.options = O(O({}, e.options), A || {}), i.model.loaded ? a(
|
|
6326
|
-
(C) => i.once("modelLoaded", () => C(a(
|
|
6325
|
+
return e.loaded = !1, e.options = O(O({}, e.options), A || {}), i.model.loaded ? a(y, w) : yield new Promise(
|
|
6326
|
+
(C) => i.once("modelLoaded", () => C(a(y, w)))
|
|
6327
6327
|
);
|
|
6328
6328
|
});
|
|
6329
6329
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
6330
|
-
const c = (v, g, A,
|
|
6331
|
-
const
|
|
6330
|
+
const c = (v, g, A, y) => {
|
|
6331
|
+
const w = [
|
|
6332
6332
|
[
|
|
6333
6333
|
{ x: 0, y: 0 },
|
|
6334
6334
|
{ x: A, y: 0 }
|
|
6335
6335
|
],
|
|
6336
6336
|
[
|
|
6337
6337
|
{ x: 0, y: 0 },
|
|
6338
|
-
{ x: 0, y
|
|
6338
|
+
{ x: 0, y }
|
|
6339
6339
|
],
|
|
6340
6340
|
[
|
|
6341
6341
|
{ x: A, y: 0 },
|
|
6342
|
-
{ x: A, y
|
|
6342
|
+
{ x: A, y }
|
|
6343
6343
|
],
|
|
6344
6344
|
[
|
|
6345
|
-
{ x: 0, y
|
|
6346
|
-
{ x: A, y
|
|
6345
|
+
{ x: 0, y },
|
|
6346
|
+
{ x: A, y }
|
|
6347
6347
|
]
|
|
6348
6348
|
], C = [];
|
|
6349
|
-
for (let
|
|
6350
|
-
const I = Na([v, g], [
|
|
6349
|
+
for (let x = 0; x < w.length; x++) {
|
|
6350
|
+
const I = Na([v, g], [w[x][0], w[x][1]], !0);
|
|
6351
6351
|
I && C.push(I);
|
|
6352
6352
|
}
|
|
6353
6353
|
return C.length === 0 ? !1 : C;
|
|
6354
6354
|
}, u = () => {
|
|
6355
|
-
var
|
|
6356
|
-
const v = (
|
|
6355
|
+
var j;
|
|
6356
|
+
const v = (j = i.getElement()) == null ? void 0 : j.parentElement;
|
|
6357
6357
|
if (!v || !e.loaded || Object.keys(r).length <= 0)
|
|
6358
6358
|
return;
|
|
6359
|
-
const { panoIndex: g, camera: A, currentMode:
|
|
6359
|
+
const { panoIndex: g, camera: A, currentMode: y } = i;
|
|
6360
6360
|
if (g === void 0)
|
|
6361
6361
|
return;
|
|
6362
|
-
let
|
|
6362
|
+
let w;
|
|
6363
6363
|
for (const N in r)
|
|
6364
|
-
N.split(",").indexOf(g.toString()) >= 0 && (
|
|
6365
|
-
if (!
|
|
6364
|
+
N.split(",").indexOf(g.toString()) >= 0 && (w = N);
|
|
6365
|
+
if (!w) {
|
|
6366
6366
|
for (const N in r)
|
|
6367
6367
|
for (const { $element: H } of r[N].rules)
|
|
6368
6368
|
H.style.display = "none";
|
|
6369
6369
|
return;
|
|
6370
6370
|
}
|
|
6371
|
-
const C = A.position,
|
|
6372
|
-
if (
|
|
6371
|
+
const C = A.position, x = A.getWorldDirection(new $()), I = v.clientWidth, S = v.clientHeight;
|
|
6372
|
+
if (y !== Qe.Mode.Panorama) {
|
|
6373
6373
|
for (const N in r)
|
|
6374
6374
|
for (const { $element: H } of r[N].rules)
|
|
6375
6375
|
H.style.display = "none";
|
|
@@ -6377,51 +6377,51 @@ const Ch = `<style type="text/css">
|
|
|
6377
6377
|
}
|
|
6378
6378
|
for (const N in r)
|
|
6379
6379
|
for (const { $element: H } of r[N].rules)
|
|
6380
|
-
H.style.display = N ===
|
|
6381
|
-
const [k] = r[
|
|
6382
|
-
const U = N.clone().setY(0).sub(C).normalize().angleTo(
|
|
6383
|
-
return U -
|
|
6380
|
+
H.style.display = N === w ? "block" : "none";
|
|
6381
|
+
const [k] = r[w].origins.slice().filter((N) => N.observers.indexOf(g) >= 0).sort((N, H) => {
|
|
6382
|
+
const U = N.clone().setY(0).sub(C).normalize().angleTo(x.clone().setY(0)), V = H.clone().setY(0).sub(C).normalize().angleTo(x.clone().setY(0));
|
|
6383
|
+
return U - V;
|
|
6384
6384
|
});
|
|
6385
|
-
for (const { rule: N, vertical: H, $element: U } of r[
|
|
6386
|
-
const [
|
|
6385
|
+
for (const { rule: N, vertical: H, $element: U } of r[w].rules) {
|
|
6386
|
+
const [V, B] = N, R = U.querySelector(".PanoRulerPlugin-rule-line");
|
|
6387
6387
|
if (!R)
|
|
6388
6388
|
return;
|
|
6389
6389
|
if (!k) {
|
|
6390
6390
|
U.style.display = "none";
|
|
6391
6391
|
continue;
|
|
6392
6392
|
}
|
|
6393
|
-
if (
|
|
6393
|
+
if (V !== k && B !== k) {
|
|
6394
6394
|
U.style.display = "none";
|
|
6395
6395
|
continue;
|
|
6396
6396
|
}
|
|
6397
|
-
if (
|
|
6397
|
+
if (V.distanceTo(B) < 0.3) {
|
|
6398
6398
|
U.style.display = "none";
|
|
6399
6399
|
continue;
|
|
6400
6400
|
}
|
|
6401
|
-
if (
|
|
6401
|
+
if (V.observers.indexOf(g) === -1 || B.observers.indexOf(g) === -1) {
|
|
6402
6402
|
U.style.display = "none";
|
|
6403
6403
|
continue;
|
|
6404
6404
|
}
|
|
6405
|
-
if (
|
|
6405
|
+
if (V.clone().sub(C).normalize().angleTo(x) > Math.PI / 2) {
|
|
6406
6406
|
U.style.display = "none";
|
|
6407
6407
|
continue;
|
|
6408
6408
|
}
|
|
6409
|
-
if (B.clone().sub(C).normalize().angleTo(
|
|
6409
|
+
if (B.clone().sub(C).normalize().angleTo(x) > Math.PI / 2) {
|
|
6410
6410
|
U.style.display = "none";
|
|
6411
6411
|
continue;
|
|
6412
6412
|
}
|
|
6413
|
-
const ee =
|
|
6414
|
-
if (B.clone().sub(B.clone().sub(
|
|
6413
|
+
const ee = V.distanceTo(B);
|
|
6414
|
+
if (B.clone().sub(B.clone().sub(V).divide(new $(2, 2, 2))).distanceTo(C) / ee > 8) {
|
|
6415
6415
|
U.style.display = "none";
|
|
6416
6416
|
continue;
|
|
6417
6417
|
}
|
|
6418
|
-
const de =
|
|
6418
|
+
const de = V.clone().project(A), he = (de.x + 1) / 2 * I, pe = (-de.y + 1) / 2 * S, Pe = B.clone().project(A), xe = (Pe.x + 1) / 2 * I, Be = (-Pe.y + 1) / 2 * S, ce = Math.sqrt(Math.pow(xe - he, 2) + Math.pow(Be - pe, 2));
|
|
6419
6419
|
let be = ce, Ce = 50;
|
|
6420
6420
|
const ue = c({ x: ~~he, y: ~~pe }, {
|
|
6421
6421
|
x: ~~xe,
|
|
6422
6422
|
y: ~~Be
|
|
6423
|
-
}, I,
|
|
6424
|
-
if (ue && ue.length === 1 && (k ===
|
|
6423
|
+
}, I, S);
|
|
6424
|
+
if (ue && ue.length === 1 && (k === V ? (be = Math.sqrt(Math.pow(ue[0].x - he, 2) + Math.pow(ue[0].y - pe, 2)), Ce = be / ce * 50) : k === B && (be = Math.sqrt(Math.pow(ue[0].x - xe, 2) + Math.pow(ue[0].y - Be, 2)), Ce = 100 - be / ce * 50)), ue && ue.length === 2) {
|
|
6425
6425
|
const te = {
|
|
6426
6426
|
x: (ue[0].x + ue[1].x) / 2,
|
|
6427
6427
|
y: (ue[0].y + ue[1].y) / 2
|
|
@@ -6441,9 +6441,9 @@ const Ch = `<style type="text/css">
|
|
|
6441
6441
|
if (v.distanceText && v.distanceText !== e.options.distanceText) {
|
|
6442
6442
|
const g = v.distanceText;
|
|
6443
6443
|
e.options.distanceText = g, Object.values(r).forEach((A) => {
|
|
6444
|
-
A.rules.forEach((
|
|
6445
|
-
const [
|
|
6446
|
-
!I || (I.innerText = g(
|
|
6444
|
+
A.rules.forEach((y) => {
|
|
6445
|
+
const [w, C] = y.rule, x = w.distanceTo(C), I = y.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
6446
|
+
!I || (I.innerText = g(x));
|
|
6447
6447
|
});
|
|
6448
6448
|
});
|
|
6449
6449
|
}
|
|
@@ -6518,13 +6518,13 @@ function ys(i) {
|
|
|
6518
6518
|
let t, e, n = `${i[6].width}px`;
|
|
6519
6519
|
return {
|
|
6520
6520
|
c() {
|
|
6521
|
-
t = z("div"), b(t, "class", e = Re(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]),
|
|
6521
|
+
t = z("div"), b(t, "class", e = Re(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]), L(t, "width", n);
|
|
6522
6522
|
},
|
|
6523
6523
|
m(o, s) {
|
|
6524
6524
|
T(o, t, s);
|
|
6525
6525
|
},
|
|
6526
6526
|
p(o, s) {
|
|
6527
|
-
s & 1 && e !== (e = Re(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), s & 8 && b(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) &&
|
|
6527
|
+
s & 1 && e !== (e = Re(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), s & 8 && b(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && L(t, "width", n);
|
|
6528
6528
|
},
|
|
6529
6529
|
d(o) {
|
|
6530
6530
|
o && M(t);
|
|
@@ -6539,13 +6539,13 @@ function Dh(i) {
|
|
|
6539
6539
|
let p = f(i), v = p(i);
|
|
6540
6540
|
return {
|
|
6541
6541
|
c() {
|
|
6542
|
-
t = z("div"), v.c(), e = ne(), n = z("div"), o = z("div"), r = Ie(s), b(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Se(() => i[4].call(o)), b(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"),
|
|
6542
|
+
t = z("div"), v.c(), e = ne(), n = z("div"), o = z("div"), r = Ie(s), b(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Se(() => i[4].call(o)), b(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), L(n, "left", l), b(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), L(t, "width", c), L(t, "left", u), L(t, "top", h), L(t, "transform", d), L(t, "display", i[0].visible && i[2] ? "block" : "none");
|
|
6543
6543
|
},
|
|
6544
6544
|
m(g, A) {
|
|
6545
|
-
T(g, t, A), v.m(t, null),
|
|
6545
|
+
T(g, t, A), v.m(t, null), Q(t, e), Q(t, n), Q(n, o), Q(o, r), a = Pt(o, i[4].bind(o));
|
|
6546
6546
|
},
|
|
6547
6547
|
p(g, [A]) {
|
|
6548
|
-
p === (p = f(g)) && v ? v.p(g, A) : (v.d(1), v = p(g), v && (v.c(), v.m(t, e))), A & 1 && s !== (s = g[0].labelElement + "") && Le(r, s), A & 1 && l !== (l = `${g[0].labelOffset}%`) &&
|
|
6548
|
+
p === (p = f(g)) && v ? v.p(g, A) : (v.d(1), v = p(g), v && (v.c(), v.m(t, e))), A & 1 && s !== (s = g[0].labelElement + "") && Le(r, s), A & 1 && l !== (l = `${g[0].labelOffset}%`) && L(n, "left", l), A & 1 && c !== (c = `${g[0].width}px`) && L(t, "width", c), A & 1 && u !== (u = `${g[0].left}px`) && L(t, "left", u), A & 1 && h !== (h = `${g[0].top}px`) && L(t, "top", h), A & 1 && d !== (d = `rotate(${g[0].rotateDeg}deg)`) && L(t, "transform", d), A & 5 && L(t, "display", g[0].visible && g[2] ? "block" : "none");
|
|
6549
6549
|
},
|
|
6550
6550
|
i: X,
|
|
6551
6551
|
o: X,
|
|
@@ -6593,7 +6593,7 @@ function Cs(i) {
|
|
|
6593
6593
|
e || (P(t.$$.fragment, n), e = !0);
|
|
6594
6594
|
},
|
|
6595
6595
|
o(n) {
|
|
6596
|
-
|
|
6596
|
+
D(t.$$.fragment, n), e = !1;
|
|
6597
6597
|
},
|
|
6598
6598
|
d(n) {
|
|
6599
6599
|
q(t, n);
|
|
@@ -6604,7 +6604,7 @@ function Mh(i) {
|
|
|
6604
6604
|
let t, e, n = i[0], o = [];
|
|
6605
6605
|
for (let r = 0; r < n.length; r += 1)
|
|
6606
6606
|
o[r] = Cs(ws(i, n, r));
|
|
6607
|
-
const s = (r) =>
|
|
6607
|
+
const s = (r) => D(o[r], 1, 1, () => {
|
|
6608
6608
|
o[r] = null;
|
|
6609
6609
|
});
|
|
6610
6610
|
return {
|
|
@@ -6642,7 +6642,7 @@ function Mh(i) {
|
|
|
6642
6642
|
o(r) {
|
|
6643
6643
|
o = o.filter(Boolean);
|
|
6644
6644
|
for (let a = 0; a < o.length; a += 1)
|
|
6645
|
-
|
|
6645
|
+
D(o[a]);
|
|
6646
6646
|
e = !1;
|
|
6647
6647
|
},
|
|
6648
6648
|
d(r) {
|
|
@@ -6651,44 +6651,44 @@ function Mh(i) {
|
|
|
6651
6651
|
};
|
|
6652
6652
|
}
|
|
6653
6653
|
function Th(i, t, e) {
|
|
6654
|
-
var v, g, A,
|
|
6654
|
+
var v, g, A, y;
|
|
6655
6655
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
6656
|
-
const a = ((g = (v = n.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : g.clientWidth) || 0, l = ((
|
|
6657
|
-
const
|
|
6656
|
+
const a = ((g = (v = n.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : g.clientWidth) || 0, l = ((y = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (w, C) => {
|
|
6657
|
+
const x = [
|
|
6658
6658
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
6659
6659
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
6660
6660
|
[{ x: a, y: 0 }, { x: a, y: l }],
|
|
6661
6661
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
6662
6662
|
], I = [];
|
|
6663
|
-
for (let
|
|
6664
|
-
const k = Na([
|
|
6663
|
+
for (let S = 0; S < x.length; S++) {
|
|
6664
|
+
const k = Na([w, C], [x[S][0], x[S][1]], !0);
|
|
6665
6665
|
k && I.push(k);
|
|
6666
6666
|
}
|
|
6667
6667
|
return I.length === 0 ? !1 : I;
|
|
6668
|
-
}, u = (
|
|
6669
|
-
const
|
|
6668
|
+
}, u = (w, C) => {
|
|
6669
|
+
const x = w.clone().project(n.camera), I = (x.x + 1) / 2 * a, S = (-x.y + 1) / 2 * l, k = C.clone().project(n.camera), j = (k.x + 1) / 2 * a, N = (-k.y + 1) / 2 * l, H = Math.sqrt(Math.pow(j - I, 2) + Math.pow(N - S, 2));
|
|
6670
6670
|
return {
|
|
6671
6671
|
startLeft: I,
|
|
6672
|
-
startTop:
|
|
6673
|
-
endLeft:
|
|
6672
|
+
startTop: S,
|
|
6673
|
+
endLeft: j,
|
|
6674
6674
|
endTop: N,
|
|
6675
6675
|
distance: H
|
|
6676
6676
|
};
|
|
6677
|
-
}, h = (
|
|
6678
|
-
const I = n.camera.position,
|
|
6677
|
+
}, h = (w, C, x) => {
|
|
6678
|
+
const I = n.camera.position, S = n.camera.getWorldDirection(new $()), k = w.clone().sub(I).normalize().angleTo(S), j = C.clone().sub(I).normalize().angleTo(S), N = w.distanceTo(C), U = C.clone().sub(C.clone().sub(w).divide(new $(2, 2, 2))).distanceTo(I), { startLeft: V, startTop: B, endLeft: R, endTop: G, distance: F } = u(w, C), _ = -((Math.PI / 2 - Math.atan2(R - V, B - G)) / Math.PI) * 180;
|
|
6679
6679
|
let Y = !0;
|
|
6680
|
-
|
|
6680
|
+
x || (Y = !1), !tt(w, x) && !tt(C, x) && (Y = !1), N < 0.3 && (Y = !1), k > Math.PI / 2 && (Y = !1), j > Math.PI / 2 && (Y = !1), U / N > 8 && (Y = !1);
|
|
6681
6681
|
let de = 50, he = F;
|
|
6682
|
-
const pe = c({ x: ~~
|
|
6683
|
-
if (pe && pe.length === 1 && (tt(
|
|
6682
|
+
const pe = c({ x: ~~V, y: ~~B }, { x: ~~R, y: ~~G });
|
|
6683
|
+
if (pe && pe.length === 1 && (tt(w, x) ? (he = Math.sqrt(Math.pow(pe[0].x - V, 2) + Math.pow(pe[0].y - B, 2)), de = he / F * 50) : tt(C, x) && (he = Math.sqrt(Math.pow(pe[0].x - R, 2) + Math.pow(pe[0].y - G, 2)), de = 100 - he / F * 50)), pe && pe.length === 2) {
|
|
6684
6684
|
const Pe = {
|
|
6685
6685
|
x: (pe[0].x + pe[1].x) / 2,
|
|
6686
6686
|
y: (pe[0].y + pe[1].y) / 2
|
|
6687
6687
|
};
|
|
6688
|
-
de = Math.sqrt(Math.pow(Pe.x -
|
|
6688
|
+
de = Math.sqrt(Math.pow(Pe.x - V, 2) + Math.pow(Pe.y - B, 2)) / F * 100;
|
|
6689
6689
|
}
|
|
6690
6690
|
return {
|
|
6691
|
-
startLeft:
|
|
6691
|
+
startLeft: V,
|
|
6692
6692
|
startTop: B,
|
|
6693
6693
|
distance: F,
|
|
6694
6694
|
deg: _,
|
|
@@ -6697,17 +6697,17 @@ function Th(i, t, e) {
|
|
|
6697
6697
|
ruleLength: N
|
|
6698
6698
|
};
|
|
6699
6699
|
}, d = () => {
|
|
6700
|
-
const
|
|
6700
|
+
const w = n.panoIndex, C = o.find((H) => H.panoIndex === w);
|
|
6701
6701
|
if (!C)
|
|
6702
6702
|
return e(0, r = []);
|
|
6703
6703
|
if (n.currentMode !== Qe.Mode.Panorama)
|
|
6704
6704
|
return e(0, r = []);
|
|
6705
|
-
const
|
|
6706
|
-
const
|
|
6707
|
-
return
|
|
6705
|
+
const x = n.camera.position, I = n.camera.getWorldDirection(new $()), S = C.lines.map((H) => new $(H.start[0], -H.start[1], -H.start[2])), k = C.lines.map((H) => new $(H.end[0], -H.end[1], -H.end[2])), [j] = S.concat(k).sort((H, U) => {
|
|
6706
|
+
const V = H.clone().setY(0).sub(x).normalize().angleTo(I.clone().setY(0)), B = U.clone().setY(0).sub(x).normalize().angleTo(I.clone().setY(0));
|
|
6707
|
+
return V - B;
|
|
6708
6708
|
}), N = C.lines.map((H) => {
|
|
6709
6709
|
var he, pe;
|
|
6710
|
-
const U = H.start,
|
|
6710
|
+
const U = H.start, V = H.end, { startLeft: B, startTop: R, distance: G, deg: F, visible: ee, labelOffset: _, ruleLength: Y } = h(new $(U[0], -U[1], -U[2]), new $(V[0], -V[1], -V[2]), j), de = [];
|
|
6711
6711
|
return H.children && ((he = H.children) == null ? void 0 : he.length) > 0 && ((pe = H.children) == null || pe.forEach((Pe) => {
|
|
6712
6712
|
const xe = Pe.start, Be = Pe.end, { distance: ce } = u(new $(xe[0], -xe[1], -xe[2]), new $(Be[0], -Be[1], -Be[2]));
|
|
6713
6713
|
de.push({ width: ce, state: Pe.state });
|
|
@@ -6729,8 +6729,8 @@ function Th(i, t, e) {
|
|
|
6729
6729
|
d(), n.on("panoArrived", d), n.on("modeChange", d), n.on("cameraDirectionUpdate", f), n.on("movingToPano", f), n.on("mouseWheel", () => p()), n.on("pinchGesture", () => p());
|
|
6730
6730
|
}), It(() => {
|
|
6731
6731
|
n.off("panoArrived", d), n.off("modeChange", d), n.off("cameraDirectionUpdate", f), n.off("movingToPano", f), n.off("mouseWheel", () => p()), n.off("pinchGesture", () => p());
|
|
6732
|
-
}), i.$$set = (
|
|
6733
|
-
"five" in
|
|
6732
|
+
}), i.$$set = (w) => {
|
|
6733
|
+
"five" in w && e(1, n = w.five), "rulerDatas" in w && e(2, o = w.rulerDatas), "options" in w && e(3, s = w.options);
|
|
6734
6734
|
}, [r, n, o, s];
|
|
6735
6735
|
}
|
|
6736
6736
|
class zh extends se {
|
|
@@ -7370,18 +7370,18 @@ function nf(i) {
|
|
|
7370
7370
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7371
7371
|
return;
|
|
7372
7372
|
}
|
|
7373
|
-
const
|
|
7374
|
-
if (!
|
|
7373
|
+
const y = A.getElement();
|
|
7374
|
+
if (!y)
|
|
7375
7375
|
return;
|
|
7376
|
-
const
|
|
7376
|
+
const w = y.clientWidth, C = y.clientHeight, x = w / 2, I = C / 2;
|
|
7377
7377
|
if (e.points.length < 2)
|
|
7378
7378
|
return;
|
|
7379
|
-
const [
|
|
7380
|
-
if ((() => !(Math.abs(
|
|
7379
|
+
const [S, k] = e.points, j = S.position.clone().project(A.camera), N = k.position.clone().project(A.camera), H = j.clone().lerp(N, 0.5), U = new Ne(j.x * x, j.y * I), V = new Ne(N.x * x, N.y * I), B = U.distanceTo(V);
|
|
7380
|
+
if ((() => !(Math.abs(j.z) > 1 || Math.abs(N.z) > 1 || !At(j) && !At(N) || !At(H) || B === 0))() === !1) {
|
|
7381
7381
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
7382
7382
|
return;
|
|
7383
7383
|
}
|
|
7384
|
-
const G = (H.x + 1) / 2 *
|
|
7384
|
+
const G = (H.x + 1) / 2 * w, F = -(H.y - 1) / 2 * C, _ = -(Math.atan((U.y - V.y) / (U.x - V.x)) * 180) / Math.PI, Y = s.parentElement && o.clientWidth > B ? -20 : 0;
|
|
7385
7385
|
s.style.transform = `translate(${G}px, ${F}px) rotate(${_}deg) translateY(${Y}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
|
|
7386
7386
|
const de = v();
|
|
7387
7387
|
o.innerText = de;
|
|
@@ -7393,11 +7393,11 @@ function nf(i) {
|
|
|
7393
7393
|
o.removeEventListener("click", c), s.remove();
|
|
7394
7394
|
}
|
|
7395
7395
|
function v() {
|
|
7396
|
-
var
|
|
7396
|
+
var S, k, j;
|
|
7397
7397
|
if (e.points.length < 2)
|
|
7398
7398
|
return "";
|
|
7399
|
-
const [A,
|
|
7400
|
-
return I != null ? I :
|
|
7399
|
+
const [A, y] = e.points, w = A.position.clone().distanceTo(y.position), C = (S = i.line.text) != null ? S : i.line.model.config.defaultText, x = (j = (k = i.line.model.config) == null ? void 0 : k.getDistanceText) == null ? void 0 : j.call(k, w), I = C != null ? C : x;
|
|
7400
|
+
return I != null ? I : w.toFixed(2) + "m";
|
|
7401
7401
|
}
|
|
7402
7402
|
function g(A) {
|
|
7403
7403
|
t = A;
|
|
@@ -7868,8 +7868,8 @@ class xs extends Ai {
|
|
|
7868
7868
|
const [p, v] = f.points, g = p.position.clone().project(o), A = v.position.clone().project(o);
|
|
7869
7869
|
if (!At(g) && !At(A))
|
|
7870
7870
|
return null;
|
|
7871
|
-
const
|
|
7872
|
-
return { id: f.id, points: [
|
|
7871
|
+
const y = new Ne(g.x * r, g.y * a), w = new Ne(A.x * r, A.y * a);
|
|
7872
|
+
return { id: f.id, points: [y, w] };
|
|
7873
7873
|
}).filter((f) => !!f);
|
|
7874
7874
|
if (c.length === 0)
|
|
7875
7875
|
return;
|
|
@@ -8025,8 +8025,8 @@ void main() {
|
|
|
8025
8025
|
}
|
|
8026
8026
|
`;
|
|
8027
8027
|
function qa(i) {
|
|
8028
|
-
var A,
|
|
8029
|
-
const t = (A = i.isMobile) != null ? A : !0, e = (
|
|
8028
|
+
var A, y;
|
|
8029
|
+
const t = (A = i.isMobile) != null ? A : !0, e = (y = i.useNormalVector) != null ? y : !0;
|
|
8030
8030
|
let n = 10349931;
|
|
8031
8031
|
e && i.ballColor >= 0 && (n = i.ballColor);
|
|
8032
8032
|
const o = new vn(), s = new Xl(0.3, 0.3), r = t ? mf : pf, a = new la().load(r);
|
|
@@ -8173,7 +8173,7 @@ class rn extends Ai {
|
|
|
8173
8173
|
this.hook.emit("editedPolylineChange", this.polyline);
|
|
8174
8174
|
});
|
|
8175
8175
|
m(this, "onWantsTapGesture", (e) => {
|
|
8176
|
-
if (
|
|
8176
|
+
if (this.state === "editing")
|
|
8177
8177
|
return !1;
|
|
8178
8178
|
const [n] = this.five.model.intersectRaycaster(e);
|
|
8179
8179
|
if (!n)
|
|
@@ -8182,8 +8182,8 @@ class rn extends Ai {
|
|
|
8182
8182
|
const [p, v] = f.points, g = p.position.clone().project(o), A = v.position.clone().project(o);
|
|
8183
8183
|
if (!At(g) && !At(A))
|
|
8184
8184
|
return null;
|
|
8185
|
-
const
|
|
8186
|
-
return { id: f.id, points: [
|
|
8185
|
+
const y = new Ne(g.x * r, g.y * a), w = new Ne(A.x * r, A.y * a);
|
|
8186
|
+
return { id: f.id, points: [y, w] };
|
|
8187
8187
|
}).filter((f) => !!f);
|
|
8188
8188
|
if (c.length === 0)
|
|
8189
8189
|
return;
|
|
@@ -8944,13 +8944,13 @@ function Ss(i) {
|
|
|
8944
8944
|
}
|
|
8945
8945
|
return {
|
|
8946
8946
|
c() {
|
|
8947
|
-
t = z("i"), b(t, "class", "svelte-19zi46m"), J(t, "PanoSpatialTagPlugin__tag-origin", !0), J(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying),
|
|
8947
|
+
t = z("i"), b(t, "class", "svelte-19zi46m"), J(t, "PanoSpatialTagPlugin__tag-origin", !0), J(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), L(t, "top", e), L(t, "left", n), L(t, "visibility", i[3].front ? "visible" : "hidden");
|
|
8948
8948
|
},
|
|
8949
8949
|
m(a, l) {
|
|
8950
8950
|
T(a, t, l), o || (s = we(t, "click", r), o = !0);
|
|
8951
8951
|
},
|
|
8952
8952
|
p(a, l) {
|
|
8953
|
-
i = a, l & 1 && J(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), l & 1 && e !== (e = `${i[3].top}%`) &&
|
|
8953
|
+
i = a, l & 1 && J(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), l & 1 && e !== (e = `${i[3].top}%`) && L(t, "top", e), l & 1 && n !== (n = `${i[3].left}%`) && L(t, "left", n), l & 1 && L(t, "visibility", i[3].front ? "visible" : "hidden");
|
|
8954
8954
|
},
|
|
8955
8955
|
d(a) {
|
|
8956
8956
|
a && M(t), o = !1, s();
|
|
@@ -9013,13 +9013,13 @@ function Ff(i) {
|
|
|
9013
9013
|
let t, e, n, o, s, r, a, l, c, u, h, d, f, p, v;
|
|
9014
9014
|
return {
|
|
9015
9015
|
c() {
|
|
9016
|
-
t = z("div"), e = z("div"), n = ne(), o = z("div"), s = z("i"), r = ne(), a = z("i"), l = ne(), c = z("i"), u = ne(), h = z("div"), d = z("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"),
|
|
9016
|
+
t = z("div"), e = z("div"), n = ne(), o = z("div"), s = z("i"), r = ne(), a = z("i"), l = ne(), c = z("i"), u = ne(), h = z("div"), d = z("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), L(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), L(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(d, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(h, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), L(h, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id", f = "PanoSpatialTagPlugin__" + i[0]), L(t, "height", 20 * i[5] + "rem"), b(t, "class", "svelte-1i5h9zh"), J(t, "PanoSpatialTagPlugin__tag-x", !0), J(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), J(t, "PanoSpatialTagPlugin__tag-show", i[10]), J(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
|
|
9017
9017
|
},
|
|
9018
9018
|
m(g, A) {
|
|
9019
|
-
T(g, t, A),
|
|
9019
|
+
T(g, t, A), Q(t, e), Q(t, n), Q(t, o), Q(o, s), Q(o, r), Q(o, a), Q(o, l), Q(o, c), Q(t, u), Q(t, h), Q(h, d), d.innerHTML = i[2], i[16](d), p || (v = we(d, "click", i[11]), p = !0);
|
|
9020
9020
|
},
|
|
9021
9021
|
p(g, [A]) {
|
|
9022
|
-
A & 394 &&
|
|
9022
|
+
A & 394 && L(e, "transform", "translate(" + g[7] / 2 * g[3] * 3 + "px, " + g[8] / 2 * (g[1] ? -1 : 1) * g[3] * 3 + "px) scale(" + 1 / g[3] + ")"), A & 16 && L(s, "width", g[4] + "rem"), A & 4 && (d.innerHTML = g[2]), A & 8 && L(h, "transform", "scale(" + g[3] * 3 + ")"), A & 1 && f !== (f = "PanoSpatialTagPlugin__" + g[0]) && b(t, "id", f), A & 32 && L(t, "height", 20 * g[5] + "rem"), A & 2 && J(t, "PanoSpatialTagPlugin__tag-upside-down", g[1]), A & 1024 && J(t, "PanoSpatialTagPlugin__tag-show", g[10]), A & 1088 && J(t, "PanoSpatialTagPlugin__tag-hide", g[10] === !1 || g[6]);
|
|
9023
9023
|
},
|
|
9024
9024
|
i: X,
|
|
9025
9025
|
o: X,
|
|
@@ -9029,27 +9029,27 @@ function Ff(i) {
|
|
|
9029
9029
|
};
|
|
9030
9030
|
}
|
|
9031
9031
|
function Gf(i, t, e) {
|
|
9032
|
-
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: h } = t, { events: d } = t, { hooks: f } = t, p = 0, v = 0, g, A,
|
|
9032
|
+
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: u } = t, { dispose: h } = t, { events: d } = t, { hooks: f } = t, p = 0, v = 0, g, A, y = setTimeout(
|
|
9033
9033
|
() => {
|
|
9034
|
-
u || e(10, A = !0),
|
|
9034
|
+
u || e(10, A = !0), y = void 0;
|
|
9035
9035
|
},
|
|
9036
9036
|
100
|
|
9037
9037
|
);
|
|
9038
|
-
const
|
|
9039
|
-
const
|
|
9038
|
+
const w = (I) => {
|
|
9039
|
+
const S = Object.keys(d);
|
|
9040
9040
|
let k = I.target;
|
|
9041
9041
|
for (; k; ) {
|
|
9042
|
-
const
|
|
9043
|
-
if (!
|
|
9042
|
+
const j = k.getAttribute("class");
|
|
9043
|
+
if (!j) {
|
|
9044
9044
|
k = k.parentNode;
|
|
9045
9045
|
continue;
|
|
9046
9046
|
}
|
|
9047
|
-
if (
|
|
9047
|
+
if (j.includes("PanoSpatialTagPlugin__tag-content")) {
|
|
9048
9048
|
k = null;
|
|
9049
9049
|
break;
|
|
9050
9050
|
}
|
|
9051
|
-
|
|
9052
|
-
|
|
9051
|
+
S.forEach((N) => {
|
|
9052
|
+
j.includes(N) && d[N](n);
|
|
9053
9053
|
}), k = k.parentNode;
|
|
9054
9054
|
}
|
|
9055
9055
|
};
|
|
@@ -9059,20 +9059,20 @@ function Gf(i, t, e) {
|
|
|
9059
9059
|
const C = nl.subscribe((I) => {
|
|
9060
9060
|
if (I === null)
|
|
9061
9061
|
return;
|
|
9062
|
-
const [
|
|
9063
|
-
n ===
|
|
9062
|
+
const [S, k] = I.split("-PanoSpatialTagPlugin-");
|
|
9063
|
+
n === S && (f.emit("clickOrigin", { id: n, show: A }), y || (e(10, A = u), e(12, u = !u), y = setTimeout(
|
|
9064
9064
|
() => {
|
|
9065
|
-
|
|
9065
|
+
y = void 0;
|
|
9066
9066
|
},
|
|
9067
9067
|
1500
|
|
9068
9068
|
)));
|
|
9069
9069
|
});
|
|
9070
9070
|
Hc(() => {
|
|
9071
|
-
e(7, p = g.offsetWidth), e(8, v = g.offsetHeight), !
|
|
9071
|
+
e(7, p = g.offsetWidth), e(8, v = g.offsetHeight), !y && e(10, A = !u);
|
|
9072
9072
|
}), It(() => {
|
|
9073
9073
|
f.emit("destroyTag", { id: n }), C(), h();
|
|
9074
9074
|
});
|
|
9075
|
-
function
|
|
9075
|
+
function x(I) {
|
|
9076
9076
|
ze[I ? "unshift" : "push"](() => {
|
|
9077
9077
|
g = I, e(9, g);
|
|
9078
9078
|
});
|
|
@@ -9091,12 +9091,12 @@ function Gf(i, t, e) {
|
|
|
9091
9091
|
v,
|
|
9092
9092
|
g,
|
|
9093
9093
|
A,
|
|
9094
|
-
|
|
9094
|
+
w,
|
|
9095
9095
|
u,
|
|
9096
9096
|
h,
|
|
9097
9097
|
d,
|
|
9098
9098
|
f,
|
|
9099
|
-
|
|
9099
|
+
x
|
|
9100
9100
|
];
|
|
9101
9101
|
}
|
|
9102
9102
|
class Wf extends se {
|
|
@@ -9287,10 +9287,10 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9287
9287
|
target: d,
|
|
9288
9288
|
props: { origins: v.origins }
|
|
9289
9289
|
}), A = (ce, be) => {
|
|
9290
|
-
|
|
9291
|
-
},
|
|
9290
|
+
x(), be && I();
|
|
9291
|
+
}, y = () => {
|
|
9292
9292
|
v.forbidden && (v.forbidden = !1, I());
|
|
9293
|
-
},
|
|
9293
|
+
}, w = (ce, be) => {
|
|
9294
9294
|
if (v.tags.length === 0)
|
|
9295
9295
|
return;
|
|
9296
9296
|
const Ce = be.longitude - i.state.longitude, ue = i.camera.clone();
|
|
@@ -9319,13 +9319,13 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9319
9319
|
}), setTimeout(() => {
|
|
9320
9320
|
v.tags.forEach((Ae) => {
|
|
9321
9321
|
Ae.destroying && (Ae.app.$destroy(), Ae = null);
|
|
9322
|
-
}), v.tags = v.tags.filter((Ae) => !Ae.destroying),
|
|
9322
|
+
}), v.tags = v.tags.filter((Ae) => !Ae.destroying), x();
|
|
9323
9323
|
}, 1900);
|
|
9324
9324
|
}, C = (ce) => {
|
|
9325
9325
|
ce !== Qe.Mode.Panorama && !v.forbidden && (g.$set({ origins: [] }), v.tags.forEach((be) => {
|
|
9326
9326
|
be.app.$destroy(), be = null;
|
|
9327
9327
|
}), v.origins = [], v.tags = [], v.forbidden = !0);
|
|
9328
|
-
},
|
|
9328
|
+
}, x = () => {
|
|
9329
9329
|
if (v.forbidden || !v.enabled)
|
|
9330
9330
|
return;
|
|
9331
9331
|
const ce = i.camera, be = ce.getWorldDirection(new E.Vector3());
|
|
@@ -9342,10 +9342,10 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9342
9342
|
}, I = () => {
|
|
9343
9343
|
v.forbidden || !v.enabled || (v.timeoutId && clearTimeout(v.timeoutId), v.timeoutId = setTimeout(() => {
|
|
9344
9344
|
v.timeoutId = void 0;
|
|
9345
|
-
const ce =
|
|
9346
|
-
ce.length && (v.tags = v.tags.concat(ce),
|
|
9345
|
+
const ce = S();
|
|
9346
|
+
ce.length && (v.tags = v.tags.concat(ce), x());
|
|
9347
9347
|
}, o));
|
|
9348
|
-
},
|
|
9348
|
+
}, S = () => {
|
|
9349
9349
|
const { clientWidth: ce, clientHeight: be } = i.getElement(), Ce = [], ue = i.camera, Ue = new E.Frustum(), ot = new E.Matrix4(), Ae = ue.getWorldDirection(new E.Vector3());
|
|
9350
9350
|
ot.multiplyMatrices(
|
|
9351
9351
|
ue.projectionMatrix,
|
|
@@ -9455,7 +9455,7 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9455
9455
|
weight: (ue = be.weight) != null ? ue : -1
|
|
9456
9456
|
};
|
|
9457
9457
|
}), ce.render && (v.render = ce.render), ce.template && (v.template = ce.template), ce.events && (v.events = ce.events), ce.enabled === !1 && (v.enabled = ce.enabled), ce.folded === !0 && (v.folded = ce.folded);
|
|
9458
|
-
},
|
|
9458
|
+
}, j = (ce) => {
|
|
9459
9459
|
v.intersectObjects = ce, I();
|
|
9460
9460
|
}, N = () => {
|
|
9461
9461
|
v.enabled = !0, I();
|
|
@@ -9467,7 +9467,7 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9467
9467
|
v.folded = !1, v.tags.forEach((ce) => {
|
|
9468
9468
|
ce.app.$set({ folded: v.folded });
|
|
9469
9469
|
});
|
|
9470
|
-
},
|
|
9470
|
+
}, V = () => {
|
|
9471
9471
|
v.folded = !0, v.tags.forEach((ce) => {
|
|
9472
9472
|
ce.app.$set({ folded: v.folded });
|
|
9473
9473
|
});
|
|
@@ -9480,19 +9480,19 @@ const Mi = 1e-3, Vs = 0.01, Jf = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
9480
9480
|
be.id === ce && be.app.$set({ folded: !0 });
|
|
9481
9481
|
});
|
|
9482
9482
|
}, G = () => {
|
|
9483
|
-
i.once("renderFrame",
|
|
9483
|
+
i.once("renderFrame", x);
|
|
9484
9484
|
}, F = () => {
|
|
9485
|
-
e || (e = i.getElement().parentElement), e && e.appendChild(d), v.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, I(), i.on("panoWillArrive",
|
|
9485
|
+
e || (e = i.getElement().parentElement), e && e.appendChild(d), v.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, I(), i.on("panoWillArrive", w), i.on("panoArrived", y), i.on("modeChange", C), i.on("cameraUpdate", A);
|
|
9486
9486
|
}, ee = () => {
|
|
9487
9487
|
p = null, h.disposeAll(), g.$destroy(), v.tags.forEach((ce) => {
|
|
9488
9488
|
ce.app.$destroy(), ce = null;
|
|
9489
|
-
}), v.origins = [], v.tags = [], i.off("modelLoaded", F), i.off("renderFrame",
|
|
9489
|
+
}), v.origins = [], v.tags = [], i.off("modelLoaded", F), i.off("renderFrame", x), i.off("panoWillArrive", w), i.off("panoArrived", y), i.off("modeChange", C), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", G, !1);
|
|
9490
9490
|
};
|
|
9491
9491
|
return window.addEventListener("resize", G, !1), (Be = i == null ? void 0 : i.model) != null && Be.loaded ? F() : i.once("modelLoaded", F), i.on("dispose", ee), {
|
|
9492
9492
|
load: k,
|
|
9493
|
-
setIntersectObjects:
|
|
9493
|
+
setIntersectObjects: j,
|
|
9494
9494
|
unfoldAll: U,
|
|
9495
|
-
foldAll:
|
|
9495
|
+
foldAll: V,
|
|
9496
9496
|
unfold: B,
|
|
9497
9497
|
fold: R,
|
|
9498
9498
|
enable: N,
|
|
@@ -9511,13 +9511,13 @@ function qf(i) {
|
|
|
9511
9511
|
let t, e, n, o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "", s, r, a, l, c, u;
|
|
9512
9512
|
return {
|
|
9513
9513
|
c() {
|
|
9514
|
-
t = z("div"), e = z("div"), n = z("span"), s = Ie(o), r = ne(), a = z("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"),
|
|
9514
|
+
t = z("div"), e = z("div"), n = z("span"), s = Ie(o), r = ne(), a = z("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), L(e, "top", `-${i[0].strokeLength + 26}px`), b(a, "class", "item-label-item__bar svelte-1ir3cyd"), L(a, "height", `${i[0].strokeLength}px`), b(t, "class", l = Re(et("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), L(t, "z-index", i[0].zIndex), L(t, "transform", i[0].transform);
|
|
9515
9515
|
},
|
|
9516
9516
|
m(h, d) {
|
|
9517
|
-
T(h, t, d),
|
|
9517
|
+
T(h, t, d), Q(t, e), Q(e, n), Q(n, s), Q(t, r), Q(t, a), c || (u = we(n, "click", i[1]), c = !0);
|
|
9518
9518
|
},
|
|
9519
9519
|
p(h, [d]) {
|
|
9520
|
-
d & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Le(s, o), d & 1 &&
|
|
9520
|
+
d & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Le(s, o), d & 1 && L(e, "top", `-${h[0].strokeLength + 26}px`), d & 1 && L(a, "height", `${h[0].strokeLength}px`), d & 1 && l !== (l = Re(et("item-label-item", { visible: h[0].visible })) + " svelte-1ir3cyd") && b(t, "class", l), d & 1 && L(t, "z-index", h[0].zIndex), d & 1 && L(t, "transform", h[0].transform);
|
|
9521
9521
|
},
|
|
9522
9522
|
i: X,
|
|
9523
9523
|
o: X,
|
|
@@ -9580,7 +9580,7 @@ function Rs(i, t) {
|
|
|
9580
9580
|
o || (P(n.$$.fragment, s), o = !0);
|
|
9581
9581
|
},
|
|
9582
9582
|
o(s) {
|
|
9583
|
-
|
|
9583
|
+
D(n.$$.fragment, s), o = !1;
|
|
9584
9584
|
},
|
|
9585
9585
|
d(s) {
|
|
9586
9586
|
s && M(e), q(n, s);
|
|
@@ -9599,7 +9599,7 @@ function tm(i) {
|
|
|
9599
9599
|
t = z("div");
|
|
9600
9600
|
for (let l = 0; l < e.length; l += 1)
|
|
9601
9601
|
e[l].c();
|
|
9602
|
-
b(t, "class", "item-labels-container svelte-gk8s47"), Se(() => i[9].call(t)),
|
|
9602
|
+
b(t, "class", "item-labels-container svelte-gk8s47"), Se(() => i[9].call(t)), L(t, "opacity", i[4] ? 1 : 0);
|
|
9603
9603
|
},
|
|
9604
9604
|
m(l, c) {
|
|
9605
9605
|
T(l, t, c);
|
|
@@ -9608,7 +9608,7 @@ function tm(i) {
|
|
|
9608
9608
|
o = Pt(t, i[9].bind(t)), s = !0;
|
|
9609
9609
|
},
|
|
9610
9610
|
p(l, [c]) {
|
|
9611
|
-
c & 3 && (r = l[1], re(), e = qe(e, c, a, 1, l, r, n, t, kt, Rs, null, Qs), ae()), c & 16 &&
|
|
9611
|
+
c & 3 && (r = l[1], re(), e = qe(e, c, a, 1, l, r, n, t, kt, Rs, null, Qs), ae()), c & 16 && L(t, "opacity", l[4] ? 1 : 0);
|
|
9612
9612
|
},
|
|
9613
9613
|
i(l) {
|
|
9614
9614
|
if (!s) {
|
|
@@ -9619,7 +9619,7 @@ function tm(i) {
|
|
|
9619
9619
|
},
|
|
9620
9620
|
o(l) {
|
|
9621
9621
|
for (let c = 0; c < e.length; c += 1)
|
|
9622
|
-
|
|
9622
|
+
D(e[c]);
|
|
9623
9623
|
s = !1;
|
|
9624
9624
|
},
|
|
9625
9625
|
d(l) {
|
|
@@ -9634,34 +9634,34 @@ let Os = 26, nm = 11;
|
|
|
9634
9634
|
function im(i, t, e) {
|
|
9635
9635
|
const { Raycaster: n, Vector3: o } = E;
|
|
9636
9636
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, h = null, d, f, p = [], v = !0;
|
|
9637
|
-
const g = (
|
|
9638
|
-
const R = new n(), G =
|
|
9637
|
+
const g = (V, B) => {
|
|
9638
|
+
const R = new n(), G = V.camera.position.clone(), F = new o().fromArray(B.modelPosition), ee = F.distanceTo(G);
|
|
9639
9639
|
R.set(G.clone(), F.clone().sub(G).normalize());
|
|
9640
|
-
const [_] =
|
|
9640
|
+
const [_] = V.model.intersectRaycaster(R);
|
|
9641
9641
|
return !(_ && _.distance + 1 < ee);
|
|
9642
|
-
}, A = (
|
|
9643
|
-
const R = new o(B.modelPosition[0], B.modelPosition[1], B.modelPosition[2]), G =
|
|
9642
|
+
}, A = (V, B) => {
|
|
9643
|
+
const R = new o(B.modelPosition[0], B.modelPosition[1], B.modelPosition[2]), G = V.project2d(R), F = G == null ? void 0 : G.x, ee = G == null ? void 0 : G.y;
|
|
9644
9644
|
return [F, ee];
|
|
9645
|
-
},
|
|
9646
|
-
function C(
|
|
9645
|
+
}, y = (V) => `translate(${V[0]}px, ${V[1]}px)`, w = (V, B) => p.length === 0 ? !1 : !!p.find((G) => V[0] >= G[0] - B && V[0] <= G[0] + B || V[1] >= G[1] - Os && V[1] <= G[1] + Os);
|
|
9646
|
+
function C(V, B) {
|
|
9647
9647
|
switch (B) {
|
|
9648
9648
|
case Ft.SMALL:
|
|
9649
|
-
return Math.ceil(-27.78 *
|
|
9649
|
+
return Math.ceil(-27.78 * V + 85);
|
|
9650
9650
|
case Ft.MIDLLE:
|
|
9651
|
-
return Math.ceil(-38.9 *
|
|
9651
|
+
return Math.ceil(-38.9 * V + 130);
|
|
9652
9652
|
case Ft.LARGE:
|
|
9653
|
-
return Math.ceil(-44.44 *
|
|
9653
|
+
return Math.ceil(-44.44 * V + 140);
|
|
9654
9654
|
case Ft.EXTRA_LARGE:
|
|
9655
|
-
return Math.ceil(-92.59 *
|
|
9655
|
+
return Math.ceil(-92.59 * V + 300);
|
|
9656
9656
|
}
|
|
9657
9657
|
}
|
|
9658
|
-
const
|
|
9658
|
+
const x = (V, B) => {
|
|
9659
9659
|
const R = B.map((F) => {
|
|
9660
|
-
const ee = A(
|
|
9660
|
+
const ee = A(V, F), _ = F.name.length * nm, Y = C(F.modelPosition[1], c), he = (r ? g(V, F) : !0) && !w([ee[0], ee[1] + Y], _);
|
|
9661
9661
|
if (!he)
|
|
9662
9662
|
return me(O({}, F), { visible: he });
|
|
9663
9663
|
p.push(ee);
|
|
9664
|
-
const pe =
|
|
9664
|
+
const pe = y(ee);
|
|
9665
9665
|
return me(O({}, F), {
|
|
9666
9666
|
visible: he,
|
|
9667
9667
|
transform: pe,
|
|
@@ -9669,30 +9669,30 @@ function im(i, t, e) {
|
|
|
9669
9669
|
});
|
|
9670
9670
|
}), G = R.filter(({ visible: F }) => F).map((F) => ({
|
|
9671
9671
|
itemLabelItem: F,
|
|
9672
|
-
distance: new o(F.modelPosition[0], F.modelPosition[1], F.modelPosition[2]).clone().distanceTo(
|
|
9672
|
+
distance: new o(F.modelPosition[0], F.modelPosition[1], F.modelPosition[2]).clone().distanceTo(V.camera.position)
|
|
9673
9673
|
})).sort((F, ee) => F.distance - ee.distance);
|
|
9674
9674
|
return R.map((F) => {
|
|
9675
9675
|
const ee = G.findIndex((_) => _.itemLabelItem.id === F.id);
|
|
9676
9676
|
return ee !== void 0 ? me(O({}, F), { zIndex: ee * 10 }) : F;
|
|
9677
9677
|
});
|
|
9678
9678
|
}, I = () => {
|
|
9679
|
-
p = [], e(1, h =
|
|
9679
|
+
p = [], e(1, h = x(s, h));
|
|
9680
9680
|
};
|
|
9681
9681
|
Da(() => {
|
|
9682
9682
|
N();
|
|
9683
9683
|
});
|
|
9684
|
-
const
|
|
9684
|
+
const S = () => {
|
|
9685
9685
|
e(4, v = !1), k();
|
|
9686
9686
|
};
|
|
9687
9687
|
Ze(() => {
|
|
9688
|
-
e(1, h = a), u = a, I(),
|
|
9688
|
+
e(1, h = a), u = a, I(), j(), s.on("cameraUpdate", S);
|
|
9689
9689
|
});
|
|
9690
9690
|
const k = il(
|
|
9691
9691
|
() => {
|
|
9692
9692
|
e(4, v = !0), I();
|
|
9693
9693
|
},
|
|
9694
9694
|
300
|
|
9695
|
-
),
|
|
9695
|
+
), j = () => {
|
|
9696
9696
|
window.addEventListener("resize", H, !1);
|
|
9697
9697
|
}, N = () => {
|
|
9698
9698
|
u !== a && (e(1, h = a), u = a, I());
|
|
@@ -9700,13 +9700,13 @@ function im(i, t, e) {
|
|
|
9700
9700
|
s.once("renderFrame", I);
|
|
9701
9701
|
};
|
|
9702
9702
|
It(() => {
|
|
9703
|
-
s.off("cameraUpdate",
|
|
9703
|
+
s.off("cameraUpdate", S), window.removeEventListener("resize", H, !1);
|
|
9704
9704
|
});
|
|
9705
9705
|
function U() {
|
|
9706
9706
|
d = this.clientWidth, f = this.clientHeight, e(2, d), e(3, f);
|
|
9707
9707
|
}
|
|
9708
|
-
return i.$$set = (
|
|
9709
|
-
"five" in
|
|
9708
|
+
return i.$$set = (V) => {
|
|
9709
|
+
"five" in V && e(5, s = V.five), "modelOcclusionEnable" in V && e(6, r = V.modelOcclusionEnable), "itemLabels" in V && e(7, a = V.itemLabels), "hooks" in V && e(0, l = V.hooks), "displayStrategyType" in V && e(8, c = V.displayStrategyType);
|
|
9710
9710
|
}, [
|
|
9711
9711
|
l,
|
|
9712
9712
|
h,
|
|
@@ -9849,17 +9849,17 @@ const Rb = (i, { videoElement: t }) => {
|
|
|
9849
9849
|
}, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
|
|
9850
9850
|
if (e.enabled || !e.videoTexture)
|
|
9851
9851
|
return;
|
|
9852
|
-
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((
|
|
9852
|
+
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((y) => i.scene.add(y));
|
|
9853
9853
|
const A = () => {
|
|
9854
9854
|
if (!e.videoTexture)
|
|
9855
9855
|
return;
|
|
9856
|
-
const
|
|
9857
|
-
var
|
|
9858
|
-
!e.videoTexture || ((
|
|
9856
|
+
const y = () => {
|
|
9857
|
+
var w;
|
|
9858
|
+
!e.videoTexture || ((w = e.videoTexture) == null || w.image.removeEventListener("timeupdate", y), e.videoTextureEnabled = !0, e.videoMeshes.forEach((C) => {
|
|
9859
9859
|
C.material.map !== e.videoTexture && (C.material.map = e.videoTexture);
|
|
9860
9860
|
}), i.needsRender = !0);
|
|
9861
9861
|
};
|
|
9862
|
-
e.videoTexture.image.addEventListener("timeupdate",
|
|
9862
|
+
e.videoTexture.image.addEventListener("timeupdate", y), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
9863
9863
|
n.hide();
|
|
9864
9864
|
}, e.videoTexture.image.onpause = () => {
|
|
9865
9865
|
n.show();
|
|
@@ -9875,75 +9875,75 @@ const Rb = (i, { videoElement: t }) => {
|
|
|
9875
9875
|
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
|
|
9876
9876
|
A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
9877
9877
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
9878
|
-
}, c = () => e.rectPoints.map((A,
|
|
9879
|
-
const
|
|
9880
|
-
|
|
9881
|
-
for (let
|
|
9882
|
-
|
|
9883
|
-
A[0].x + (A[1].x - A[0].x) *
|
|
9884
|
-
A[0].y + (A[1].y - A[0].y) *
|
|
9885
|
-
A[0].z + (A[1].z - A[0].z) *
|
|
9878
|
+
}, c = () => e.rectPoints.map((A, y) => {
|
|
9879
|
+
const w = new E.BufferGeometry(), C = 128, x = [];
|
|
9880
|
+
x.push(...A[0].toArray());
|
|
9881
|
+
for (let V = 1; V < C; V++)
|
|
9882
|
+
x.push(
|
|
9883
|
+
A[0].x + (A[1].x - A[0].x) * V / C,
|
|
9884
|
+
A[0].y + (A[1].y - A[0].y) * V / C,
|
|
9885
|
+
A[0].z + (A[1].z - A[0].z) * V / C
|
|
9886
9886
|
);
|
|
9887
|
-
|
|
9888
|
-
for (let
|
|
9889
|
-
|
|
9890
|
-
A[2].x + (A[3].x - A[2].x) *
|
|
9891
|
-
A[2].y + (A[3].y - A[2].y) *
|
|
9892
|
-
A[2].z + (A[3].z - A[2].z) *
|
|
9887
|
+
x.push(...A[1].toArray()), x.push(...A[2].toArray());
|
|
9888
|
+
for (let V = 1; V < C; V++)
|
|
9889
|
+
x.push(
|
|
9890
|
+
A[2].x + (A[3].x - A[2].x) * V / C,
|
|
9891
|
+
A[2].y + (A[3].y - A[2].y) * V / C,
|
|
9892
|
+
A[2].z + (A[3].z - A[2].z) * V / C
|
|
9893
9893
|
);
|
|
9894
|
-
|
|
9894
|
+
x.push(...A[3].toArray());
|
|
9895
9895
|
const I = [];
|
|
9896
9896
|
I.push(0, 1);
|
|
9897
|
-
for (let
|
|
9898
|
-
I.push(0, 1 -
|
|
9897
|
+
for (let V = 1; V < C; V++)
|
|
9898
|
+
I.push(0, 1 - V / C);
|
|
9899
9899
|
I.push(0, 0), I.push(1, 0);
|
|
9900
|
-
for (let
|
|
9901
|
-
I.push(1,
|
|
9900
|
+
for (let V = 1; V < C; V++)
|
|
9901
|
+
I.push(1, V / C);
|
|
9902
9902
|
I.push(1, 1);
|
|
9903
|
-
const
|
|
9904
|
-
for (let
|
|
9905
|
-
|
|
9906
|
-
|
|
9903
|
+
const S = [];
|
|
9904
|
+
for (let V = 0; V < C; V++)
|
|
9905
|
+
S.push(V, V + 1, C * 2 - V, V, C * 2 - V, C * 2 + 1 - V);
|
|
9906
|
+
w.setAttribute("position", new E.BufferAttribute(new Float32Array(x), 3)), w.setAttribute("uv", new E.BufferAttribute(new Float32Array(I), 2)), w.setIndex(new E.BufferAttribute(new Uint32Array(S), 1));
|
|
9907
9907
|
const k = new E.AxesHelper(10);
|
|
9908
9908
|
i.scene.add(k);
|
|
9909
|
-
const
|
|
9909
|
+
const j = new E.MeshBasicMaterial({
|
|
9910
9910
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
9911
9911
|
side: E.DoubleSide
|
|
9912
|
-
}), N = new E.Mesh(
|
|
9913
|
-
N.renderOrder = 1, N.name = `ModelTVVideoPlugin-${
|
|
9912
|
+
}), N = new E.Mesh(w, j);
|
|
9913
|
+
N.renderOrder = 1, N.name = `ModelTVVideoPlugin-${y}-${performance.now()}`;
|
|
9914
9914
|
const H = [A[1], A[2], A[3], A[0]], U = n.create3DDomContainer(H);
|
|
9915
9915
|
if (U != null && U.container) {
|
|
9916
|
-
const
|
|
9917
|
-
|
|
9916
|
+
const V = document.createElement("div");
|
|
9917
|
+
V.classList.add("play-icon"), V.style.width = "100%", V.style.height = "100%", V.style.display = "flex", V.style.justifyContent = "center", V.style.alignItems = "center", V.style.pointerEvents = "none", U.container.appendChild(V);
|
|
9918
9918
|
const B = document.createElement("img");
|
|
9919
9919
|
B.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", B.style.width = "200px", B.style.pointerEvents = "auto", B.onclick = () => {
|
|
9920
9920
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
9921
|
-
},
|
|
9921
|
+
}, V.appendChild(B), o.set(N, U);
|
|
9922
9922
|
}
|
|
9923
9923
|
return N;
|
|
9924
9924
|
}), u = (A) => {
|
|
9925
|
-
const
|
|
9926
|
-
return
|
|
9927
|
-
}, h = (A,
|
|
9928
|
-
const
|
|
9929
|
-
|
|
9930
|
-
if (
|
|
9931
|
-
if (
|
|
9925
|
+
const y = new E.TextureLoader().load(A);
|
|
9926
|
+
return y.minFilter = E.LinearFilter, y.magFilter = E.LinearFilter, y.format = E.RGBFormat, y;
|
|
9927
|
+
}, h = (A, y) => new Promise((w, C) => {
|
|
9928
|
+
const x = new XMLHttpRequest();
|
|
9929
|
+
x.onreadystatechange = () => {
|
|
9930
|
+
if (x.readyState == 4)
|
|
9931
|
+
if (x.status == 200) {
|
|
9932
9932
|
const I = window.URL || window.webkitURL;
|
|
9933
|
-
|
|
9934
|
-
const
|
|
9935
|
-
|
|
9933
|
+
y = y || document.createElement("video"), y.crossOrigin = "anonymous", y.muted = !0, y.loop = !0, y.playsInline = !0, y.src = I.createObjectURL(x.response);
|
|
9934
|
+
const S = new E.VideoTexture(y);
|
|
9935
|
+
S.minFilter = E.LinearFilter, S.magFilter = E.LinearFilter, S.format = E.RGBFormat, w(Object.assign(S, { videoSource: A }));
|
|
9936
9936
|
} else
|
|
9937
|
-
C(new Error("Video download Error: " +
|
|
9938
|
-
},
|
|
9939
|
-
}), d = (A,
|
|
9940
|
-
const { video_src:
|
|
9941
|
-
e.videoSource =
|
|
9937
|
+
C(new Error("Video download Error: " + x.status));
|
|
9938
|
+
}, x.onerror = (I) => C(I), x.open("GET", A), x.responseType = "blob", x.send();
|
|
9939
|
+
}), d = (A, y) => W(void 0, null, function* () {
|
|
9940
|
+
const { video_src: w, video_poster_src: C, points: x } = A;
|
|
9941
|
+
e.videoSource = w, e.rectPoints = rm(x).map((I) => I.map(({ x: S, y: k, z: j }) => new E.Vector3(S, k, j))), e.imageTexture = u(C), y && (e.videoElement = y), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
9942
9942
|
}), f = (A) => {
|
|
9943
9943
|
if (!e.enabled)
|
|
9944
9944
|
return;
|
|
9945
|
-
const
|
|
9946
|
-
if (!(!
|
|
9945
|
+
const y = e.videoMeshes;
|
|
9946
|
+
if (!(!y || A.intersectObjects(y).length === 0))
|
|
9947
9947
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
9948
9948
|
}, p = (A) => {
|
|
9949
9949
|
A === "Floorplan" ? n.hide() : n.show();
|
|
@@ -9951,18 +9951,18 @@ const Rb = (i, { videoElement: t }) => {
|
|
|
9951
9951
|
if (!e.enabled)
|
|
9952
9952
|
return;
|
|
9953
9953
|
const A = i.camera.position;
|
|
9954
|
-
if (o.forEach((
|
|
9955
|
-
const C =
|
|
9956
|
-
|
|
9954
|
+
if (o.forEach((y, w) => {
|
|
9955
|
+
const C = y.css3DObject.position.clone(), x = C.clone().sub(A).normalize(), I = new E.Raycaster(A, x), S = i.model.intersectRaycaster(I)[0], k = C.distanceTo(A), j = 0.01;
|
|
9956
|
+
S && S.distance + j < k ? y.hide() : y.show();
|
|
9957
9957
|
}), !r()) {
|
|
9958
|
-
const
|
|
9959
|
-
const C =
|
|
9960
|
-
return
|
|
9961
|
-
const I =
|
|
9962
|
-
return !(k && k.distance +
|
|
9958
|
+
const y = e.rectPoints.find((w) => {
|
|
9959
|
+
const C = w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);
|
|
9960
|
+
return w.map((x) => x.clone().add(C).divideScalar(2)).filter((x) => {
|
|
9961
|
+
const I = x.distanceTo(A), S = new E.Raycaster(A, x.clone().sub(A).normalize()), k = i.model.intersectRaycaster(S)[0], j = 0.01;
|
|
9962
|
+
return !(k && k.distance + j < I);
|
|
9963
9963
|
}).length >= 2;
|
|
9964
9964
|
});
|
|
9965
|
-
(!
|
|
9965
|
+
(!y || y.length === 0) && s(!0);
|
|
9966
9966
|
}
|
|
9967
9967
|
}, g = () => {
|
|
9968
9968
|
l(), e.videoTexture = void 0, i.off("modeChange", p), i.off("wantsTapGesture", f), i.off("panoArrived", v), i.off("renderFrame", () => {
|
|
@@ -9989,7 +9989,7 @@ function lm(i) {
|
|
|
9989
9989
|
u && u.c(), t = ne(), e = z("div"), n = z("span"), s = Ie(o), r = ne(), a = z("span"), c = Ie(l), b(n, "class", "item-model svelte-gduhqw"), b(a, "class", "item-name svelte-gduhqw"), b(e, "class", "item-label-text svelte-gduhqw");
|
|
9990
9990
|
},
|
|
9991
9991
|
m(h, d) {
|
|
9992
|
-
u && u.m(h, d), T(h, t, d), T(h, e, d),
|
|
9992
|
+
u && u.m(h, d), T(h, t, d), T(h, e, d), Q(e, n), Q(n, s), Q(e, r), Q(e, a), Q(a, c);
|
|
9993
9993
|
},
|
|
9994
9994
|
p(h, d) {
|
|
9995
9995
|
h[0].icon ? u ? u.p(h, d) : (u = Hs(h), u.c(), u.m(t.parentNode, t)) : u && (u.d(1), u = null), d & 1 && o !== (o = (h[0].code || h[0].id) + "") && Le(s, o), d & 1 && l !== (l = h[0].name + "") && Le(c, l);
|
|
@@ -10021,7 +10021,7 @@ function Hs(i) {
|
|
|
10021
10021
|
t = z("div"), e = z("div"), b(e, "class", "icon svelte-gduhqw"), b(e, "style", n = `background-image: url(${i[0].icon})`), b(t, "class", "icon-wrap svelte-gduhqw");
|
|
10022
10022
|
},
|
|
10023
10023
|
m(r, a) {
|
|
10024
|
-
T(r, t, a),
|
|
10024
|
+
T(r, t, a), Q(t, e), o || (s = we(t, "click", i[7]), o = !0);
|
|
10025
10025
|
},
|
|
10026
10026
|
p(r, a) {
|
|
10027
10027
|
a & 1 && n !== (n = `background-image: url(${r[0].icon})`) && b(e, "style", n);
|
|
@@ -10041,15 +10041,15 @@ function um(i) {
|
|
|
10041
10041
|
c() {
|
|
10042
10042
|
t = z("div"), e = z("div"), f.c(), s = ne(), r = z("div"), b(e, "class", o = Re(et("item-label-item__text-wrap", {
|
|
10043
10043
|
"item-label-item__custom": Boolean(typeof i[0].render == "function")
|
|
10044
|
-
})) + " svelte-gduhqw"),
|
|
10044
|
+
})) + " svelte-gduhqw"), L(e, "bottom", `${i[0].strokeLength}px`), b(r, "class", a = Re(et("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), L(r, "height", `${i[0].strokeLength}px`), b(t, "class", l = Re(et("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), L(t, "z-index", i[0].zIndex), L(t, "transform", i[0].transform);
|
|
10045
10045
|
},
|
|
10046
10046
|
m(p, v) {
|
|
10047
|
-
T(p, t, v),
|
|
10047
|
+
T(p, t, v), Q(t, e), f.m(e, null), Q(t, s), Q(t, r), c || (u = we(e, "click", i[4]), c = !0);
|
|
10048
10048
|
},
|
|
10049
10049
|
p(p, [v]) {
|
|
10050
10050
|
d === (d = h(p, v)) && f ? f.p(p, v) : (f.d(1), f = d(p), f && (f.c(), f.m(e, null))), v & 1 && o !== (o = Re(et("item-label-item__text-wrap", {
|
|
10051
10051
|
"item-label-item__custom": Boolean(typeof p[0].render == "function")
|
|
10052
|
-
})) + " svelte-gduhqw") && b(e, "class", o), v & 1 &&
|
|
10052
|
+
})) + " svelte-gduhqw") && b(e, "class", o), v & 1 && L(e, "bottom", `${p[0].strokeLength}px`), v & 2 && a !== (a = Re(et("item-label-item__bar", { anchor: p[1] })) + " svelte-gduhqw") && b(r, "class", a), v & 1 && L(r, "height", `${p[0].strokeLength}px`), v & 1 && l !== (l = Re(et("item-label-item", { fold: p[0].isFold })) + " svelte-gduhqw") && b(t, "class", l), v & 1 && L(t, "z-index", p[0].zIndex), v & 1 && L(t, "transform", p[0].transform);
|
|
10053
10053
|
},
|
|
10054
10054
|
i: X,
|
|
10055
10055
|
o: X,
|
|
@@ -10163,7 +10163,7 @@ function Ns(i) {
|
|
|
10163
10163
|
e || (P(t.$$.fragment, n), e = !0);
|
|
10164
10164
|
},
|
|
10165
10165
|
o(n) {
|
|
10166
|
-
|
|
10166
|
+
D(t.$$.fragment, n), e = !1;
|
|
10167
10167
|
},
|
|
10168
10168
|
d(n) {
|
|
10169
10169
|
q(t, n);
|
|
@@ -10182,7 +10182,7 @@ function _s(i, t) {
|
|
|
10182
10182
|
T(r, e, a), s && s.m(r, a), T(r, n, a), o = !0;
|
|
10183
10183
|
},
|
|
10184
10184
|
p(r, a) {
|
|
10185
|
-
t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 && P(s, 1)) : (s = Ns(t), s.c(), P(s, 1), s.m(n.parentNode, n)) : s && (re(),
|
|
10185
|
+
t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 && P(s, 1)) : (s = Ns(t), s.c(), P(s, 1), s.m(n.parentNode, n)) : s && (re(), D(s, 1, 1, () => {
|
|
10186
10186
|
s = null;
|
|
10187
10187
|
}), ae());
|
|
10188
10188
|
},
|
|
@@ -10190,7 +10190,7 @@ function _s(i, t) {
|
|
|
10190
10190
|
o || (P(s), o = !0);
|
|
10191
10191
|
},
|
|
10192
10192
|
o(r) {
|
|
10193
|
-
|
|
10193
|
+
D(s), o = !1;
|
|
10194
10194
|
},
|
|
10195
10195
|
d(r) {
|
|
10196
10196
|
r && M(e), s && s.d(r), r && M(n);
|
|
@@ -10209,7 +10209,7 @@ function Am(i) {
|
|
|
10209
10209
|
t = z("div");
|
|
10210
10210
|
for (let l = 0; l < e.length; l += 1)
|
|
10211
10211
|
e[l].c();
|
|
10212
|
-
b(t, "class", "item-labels-container svelte-gk8s47"), Se(() => i[12].call(t)),
|
|
10212
|
+
b(t, "class", "item-labels-container svelte-gk8s47"), Se(() => i[12].call(t)), L(t, "opacity", i[5] ? 1 : 0);
|
|
10213
10213
|
},
|
|
10214
10214
|
m(l, c) {
|
|
10215
10215
|
T(l, t, c);
|
|
@@ -10218,7 +10218,7 @@ function Am(i) {
|
|
|
10218
10218
|
o = Pt(t, i[12].bind(t)), s = !0;
|
|
10219
10219
|
},
|
|
10220
10220
|
p(l, c) {
|
|
10221
|
-
c[0] & 71 && (r = l[1], re(), e = qe(e, c, a, 1, l, r, n, t, kt, _s, null, Ws), ae()), c[0] & 32 &&
|
|
10221
|
+
c[0] & 71 && (r = l[1], re(), e = qe(e, c, a, 1, l, r, n, t, kt, _s, null, Ws), ae()), c[0] & 32 && L(t, "opacity", l[5] ? 1 : 0);
|
|
10222
10222
|
},
|
|
10223
10223
|
i(l) {
|
|
10224
10224
|
if (!s) {
|
|
@@ -10229,7 +10229,7 @@ function Am(i) {
|
|
|
10229
10229
|
},
|
|
10230
10230
|
o(l) {
|
|
10231
10231
|
for (let c = 0; c < e.length; c += 1)
|
|
10232
|
-
|
|
10232
|
+
D(e[c]);
|
|
10233
10233
|
s = !1;
|
|
10234
10234
|
},
|
|
10235
10235
|
d(l) {
|
|
@@ -10244,22 +10244,22 @@ let vm = 11;
|
|
|
10244
10244
|
function bm(i, t, e) {
|
|
10245
10245
|
const { Raycaster: n, Vector3: o } = E;
|
|
10246
10246
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, f = (s == null ? void 0 : s.currentMode) === Qe.Mode.Panorama, p, v, g = [], A = !0;
|
|
10247
|
-
const
|
|
10247
|
+
const y = (R, G) => {
|
|
10248
10248
|
const F = R.camera.position.clone(), ee = new o(G.modelPosition[0], G.modelPosition[1], G.modelPosition[2]), _ = ee.distanceTo(F);
|
|
10249
10249
|
return u !== void 0 && R.state.mode === Qe.Mode.Panorama && _ > u ? !1 : Fs(R, ee.clone().sub(F).normalize(), F, _);
|
|
10250
|
-
},
|
|
10250
|
+
}, w = (R) => {
|
|
10251
10251
|
const { camera: G, model: F } = s, { x: ee, y: _, z: Y } = R.clone().project(G), de = (ee + 1) / 2, he = (2 - (_ + 1)) / 2, xe = Math.abs(Y) < 1 && [de, he].every((Be) => Be < 1 && Be >= 0);
|
|
10252
10252
|
return Boolean(xe);
|
|
10253
10253
|
}, C = (R, G) => {
|
|
10254
10254
|
const F = new o(G.modelPosition[0], G.modelPosition[1], G.modelPosition[2]), ee = R.project2d(F), _ = ee == null ? void 0 : ee.x, Y = ee == null ? void 0 : ee.y;
|
|
10255
10255
|
return [_, Y];
|
|
10256
|
-
},
|
|
10256
|
+
}, x = (R, G) => {
|
|
10257
10257
|
const F = G.map((_) => {
|
|
10258
10258
|
if (R.state.panoIndex !== _.panoIndex)
|
|
10259
10259
|
return me(O({}, _), { visible: !1 });
|
|
10260
10260
|
const Y = C(R, _);
|
|
10261
10261
|
_.name.length * vm;
|
|
10262
|
-
const de = mm(_.modelPosition[1], c), he = R.currentMode === Qe.Mode.Panorama ?
|
|
10262
|
+
const de = mm(_.modelPosition[1], c), he = R.currentMode === Qe.Mode.Panorama ? w(new o(_.position[0], _.position[1], _.position[2])) : !0, pe = r ? y(R, _) : !1, Pe = he && !pe;
|
|
10263
10263
|
if (!Pe)
|
|
10264
10264
|
return me(O({}, _), { visible: Pe });
|
|
10265
10265
|
g.push(Y);
|
|
@@ -10278,18 +10278,18 @@ function bm(i, t, e) {
|
|
|
10278
10278
|
return Y !== void 0 ? me(O({}, _), { zIndex: Y * 10 }) : _;
|
|
10279
10279
|
});
|
|
10280
10280
|
}, I = () => {
|
|
10281
|
-
g = [], e(1, d =
|
|
10282
|
-
},
|
|
10281
|
+
g = [], e(1, d = x(s, d));
|
|
10282
|
+
}, S = () => {
|
|
10283
10283
|
e(5, A = !1), k();
|
|
10284
10284
|
}, k = il(
|
|
10285
10285
|
() => {
|
|
10286
10286
|
e(5, A = !0), I();
|
|
10287
10287
|
},
|
|
10288
10288
|
300
|
|
10289
|
-
),
|
|
10289
|
+
), j = () => {
|
|
10290
10290
|
s.once("renderFrame", I);
|
|
10291
10291
|
}, N = () => {
|
|
10292
|
-
window.addEventListener("resize",
|
|
10292
|
+
window.addEventListener("resize", j, !1);
|
|
10293
10293
|
}, H = () => {
|
|
10294
10294
|
h !== a && (e(1, d = Gs(a)), h = a, I());
|
|
10295
10295
|
}, U = (R, G) => {
|
|
@@ -10308,7 +10308,7 @@ function bm(i, t, e) {
|
|
|
10308
10308
|
}
|
|
10309
10309
|
}
|
|
10310
10310
|
return typeof ee == "number" ? G[ee] : void 0;
|
|
10311
|
-
},
|
|
10311
|
+
}, V = (R) => {
|
|
10312
10312
|
if (s.state.mode === Qe.Mode.Panorama)
|
|
10313
10313
|
return;
|
|
10314
10314
|
const G = s.work.observers, F = new o().fromArray(R.position), ee = U(F, G);
|
|
@@ -10332,9 +10332,9 @@ function bm(i, t, e) {
|
|
|
10332
10332
|
Da(() => {
|
|
10333
10333
|
H();
|
|
10334
10334
|
}), Ze(() => {
|
|
10335
|
-
e(1, d = Gs(a)), h = a, I(), N(), s.on("cameraUpdate",
|
|
10335
|
+
e(1, d = Gs(a)), h = a, I(), N(), s.on("cameraUpdate", S);
|
|
10336
10336
|
}), It(() => {
|
|
10337
|
-
s.off("cameraUpdate",
|
|
10337
|
+
s.off("cameraUpdate", S), window.removeEventListener("resize", j, !1);
|
|
10338
10338
|
});
|
|
10339
10339
|
function B() {
|
|
10340
10340
|
p = this.clientWidth, v = this.clientHeight, e(3, p), e(4, v);
|
|
@@ -10348,7 +10348,7 @@ function bm(i, t, e) {
|
|
|
10348
10348
|
p,
|
|
10349
10349
|
v,
|
|
10350
10350
|
A,
|
|
10351
|
-
|
|
10351
|
+
V,
|
|
10352
10352
|
s,
|
|
10353
10353
|
r,
|
|
10354
10354
|
a,
|
|
@@ -10512,7 +10512,7 @@ function Im(i) {
|
|
|
10512
10512
|
t = z("div"), e = z("div"), n = z("span"), n.textContent = `${i[8]}`, o = ne(), s = z("i"), b(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), b(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), b(e, "class", r = Re(et("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), b(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), b(e, "data-camera-toward", i[7]), b(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), b(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
|
|
10513
10513
|
},
|
|
10514
10514
|
m(c, u) {
|
|
10515
|
-
T(c, t, u),
|
|
10515
|
+
T(c, t, u), Q(t, e), Q(e, n), Q(e, o), Q(e, s), i[10](t), a || (l = we(e, "click", i[9]), a = !0);
|
|
10516
10516
|
},
|
|
10517
10517
|
p(c, [u]) {
|
|
10518
10518
|
u & 1 && r !== (r = Re(et("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-wpy7pz") && b(e, "class", r);
|
|
@@ -10529,8 +10529,8 @@ function km(i, t, e) {
|
|
|
10529
10529
|
const p = () => {
|
|
10530
10530
|
if (!r || !a || !l || !s)
|
|
10531
10531
|
return;
|
|
10532
|
-
const A = s.current.clientWidth / window.innerWidth * 100,
|
|
10533
|
-
if (r <= A / 2 || r >= 100 - A / 2 || a <=
|
|
10532
|
+
const A = s.current.clientWidth / window.innerWidth * 100, y = s.current.clientHeight / window.innerHeight * 100;
|
|
10533
|
+
if (r <= A / 2 || r >= 100 - A / 2 || a <= y / 2 || a >= 100 - y / 2)
|
|
10534
10534
|
return;
|
|
10535
10535
|
u !== f && (console.log("panoDoorLabelPlugin", u, "\u89E6\u53D1\u57CB\u70B9"), f = u);
|
|
10536
10536
|
}, v = (A) => {
|
|
@@ -10644,36 +10644,36 @@ class zm extends Pm {
|
|
|
10644
10644
|
}), this.fixDoorPosition();
|
|
10645
10645
|
});
|
|
10646
10646
|
m(this, "fixDoorPosition", () => {
|
|
10647
|
-
var u, h, d, f, p, v, g, A,
|
|
10647
|
+
var u, h, d, f, p, v, g, A, y, w, C, x;
|
|
10648
10648
|
const { panoIndex: e, camera: n } = this.five;
|
|
10649
10649
|
if (e === null)
|
|
10650
10650
|
return;
|
|
10651
10651
|
if (this.five.currentMode !== "Panorama")
|
|
10652
10652
|
return this.hideAllLabels();
|
|
10653
10653
|
const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new $()), l = [], c = [...this.labelItems];
|
|
10654
|
-
if (c.forEach((I,
|
|
10654
|
+
if (c.forEach((I, S) => {
|
|
10655
10655
|
if (I.visible) {
|
|
10656
|
-
const k = n.position.distanceTo(I.position),
|
|
10657
|
-
I.left =
|
|
10656
|
+
const k = n.position.distanceTo(I.position), j = I.position.clone().add(new $(0, this.OffsetHeight, 0)), H = j.clone().sub(n.position).normalize().angleTo(a), U = j.clone().project(n), V = (U.x + 1) / 2.2 * 100, B = (-U.y + 1) / 2.2 * 100, R = V >= 0 && V <= 100 && B >= 0 && B <= 100 && k > this.MinVisibledistance && k <= this.MaxVisibledistance;
|
|
10657
|
+
I.left = V, I.top = B, I.inSight = R && H < Math.PI / 2, I.cameraToward = Lm(this.five), R ? l.push({ disFromCameraToLabel: k, left: V, top: B, index: S }) : I.transform = "translate(-50%, -50%)";
|
|
10658
10658
|
} else
|
|
10659
10659
|
I.inSight = !1;
|
|
10660
10660
|
}), l.length > 1) {
|
|
10661
10661
|
let I = 0;
|
|
10662
|
-
l.sort((
|
|
10663
|
-
for (let
|
|
10664
|
-
const { index: k, left:
|
|
10662
|
+
l.sort((S, k) => k.disFromCameraToLabel - S.disFromCameraToLabel);
|
|
10663
|
+
for (let S = 1; S < l.length; S++) {
|
|
10664
|
+
const { index: k, left: j, top: N } = l[S - 1], { index: H, left: U, top: V } = l[S], B = this.container.children[k], R = this.container.children[H];
|
|
10665
10665
|
if (!B || !R)
|
|
10666
10666
|
return;
|
|
10667
10667
|
const G = {
|
|
10668
|
-
left: s *
|
|
10668
|
+
left: s * j / 100,
|
|
10669
10669
|
top: r * N / 100,
|
|
10670
10670
|
width: (d = (h = (u = B.children) == null ? void 0 : u[0]) == null ? void 0 : h.clientWidth) != null ? d : 0,
|
|
10671
10671
|
height: (v = (p = (f = B.children) == null ? void 0 : f[0]) == null ? void 0 : p.clientHeight) != null ? v : 0
|
|
10672
10672
|
}, F = {
|
|
10673
10673
|
left: s * U / 100,
|
|
10674
|
-
top: r *
|
|
10675
|
-
width: (
|
|
10676
|
-
height: (
|
|
10674
|
+
top: r * V / 100,
|
|
10675
|
+
width: (y = (A = (g = R.children) == null ? void 0 : g[0]) == null ? void 0 : A.clientWidth) != null ? y : 0,
|
|
10676
|
+
height: (x = (C = (w = R.children) == null ? void 0 : w[0]) == null ? void 0 : C.clientHeight) != null ? x : 0
|
|
10677
10677
|
};
|
|
10678
10678
|
Dm(G, F) && (I++, c[k].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[H].transform = `translate(-50%, ${I * 100 - 50}%)`);
|
|
10679
10679
|
}
|
|
@@ -10716,8 +10716,8 @@ class zm extends Pm {
|
|
|
10716
10716
|
x: g.x,
|
|
10717
10717
|
y: g.y,
|
|
10718
10718
|
z: g.z
|
|
10719
|
-
},
|
|
10720
|
-
|
|
10719
|
+
}, y = Sm(h, A);
|
|
10720
|
+
y < d && (d = y, f = A);
|
|
10721
10721
|
}), f && (h.y = f.y + 0.01);
|
|
10722
10722
|
const p = new $(h.x, h.y, h.z);
|
|
10723
10723
|
p.add(new $(-0.2, 1.8, 0).applyEuler(new Lo(0, u.rad, 0))), this.doorLabels.push({
|
|
@@ -10789,29 +10789,29 @@ function Rm(i, t) {
|
|
|
10789
10789
|
const f = i;
|
|
10790
10790
|
return f.forEach((p, v) => {
|
|
10791
10791
|
let g = 0, A = 99999999;
|
|
10792
|
-
u.forEach((I,
|
|
10792
|
+
u.forEach((I, S) => {
|
|
10793
10793
|
const k = I.distanceTo(p);
|
|
10794
|
-
k < A && (g =
|
|
10794
|
+
k < A && (g = S, A = k);
|
|
10795
10795
|
});
|
|
10796
|
-
const
|
|
10796
|
+
const y = u[g + 1], w = y == null ? void 0 : y.distanceTo(p), C = u[g - 1], x = C == null ? void 0 : C.distanceTo(p);
|
|
10797
10797
|
if (g > d && g - d > 1) {
|
|
10798
10798
|
let I = g;
|
|
10799
|
-
C !== void 0 &&
|
|
10800
|
-
let
|
|
10801
|
-
if (
|
|
10799
|
+
C !== void 0 && x > 0.8 && (I = g + 1), C !== void 0 && x > 0.2 && x < 0.3 ? I = g : A > 0.2 && A < 0.3 && (I = g + 1);
|
|
10800
|
+
let S = d;
|
|
10801
|
+
if (y !== void 0 && w > 0.2 && w < 0.3 ? S = d + 1 : A > 0.2 && A < 0.3 && (S = d), u[S] && u[S + 1]) {
|
|
10802
10802
|
const N = f[v - 1];
|
|
10803
10803
|
if (N)
|
|
10804
|
-
if (N.equals(u[
|
|
10805
|
-
|
|
10804
|
+
if (N.equals(u[S]))
|
|
10805
|
+
S += 1;
|
|
10806
10806
|
else {
|
|
10807
|
-
const H = new $().subVectors(u[
|
|
10808
|
-
H.angleTo(U) < Math.PI / 2 && (
|
|
10807
|
+
const H = new $().subVectors(u[S + 1], u[S]), U = new $().subVectors(N, u[S]);
|
|
10808
|
+
H.angleTo(U) < Math.PI / 2 && (S += 1);
|
|
10809
10809
|
}
|
|
10810
10810
|
}
|
|
10811
|
-
if (I <
|
|
10811
|
+
if (I < S || I - S <= 1)
|
|
10812
10812
|
return;
|
|
10813
|
-
const k = u.slice(
|
|
10814
|
-
h.push(
|
|
10813
|
+
const k = u.slice(S, I), j = Xs(k, e, n);
|
|
10814
|
+
h.push(j), d = g;
|
|
10815
10815
|
}
|
|
10816
10816
|
}), h;
|
|
10817
10817
|
} else {
|
|
@@ -10821,14 +10821,14 @@ function Rm(i, t) {
|
|
|
10821
10821
|
}
|
|
10822
10822
|
function Xs(i, t, e) {
|
|
10823
10823
|
const n = t / 2, o = e / t, s = i.length, r = nc(i.map((A) => [A.x, A.z])), l = (i.length - 1) * Bm * jm, c = 2 * s, u = c * Vm, h = c * Qm, d = new Uint32Array(l), f = new Float32Array(u), p = new Float32Array(h);
|
|
10824
|
-
i.forEach((A,
|
|
10824
|
+
i.forEach((A, y) => {
|
|
10825
10825
|
});
|
|
10826
10826
|
let v = 0;
|
|
10827
10827
|
for (let A = 0; A < i.length; A++) {
|
|
10828
|
-
const [
|
|
10828
|
+
const [y, w] = r[A][0], C = i[A], { x, y: I, z: S } = C, k = new $(x + y * n, I + 0.05, S + w * n);
|
|
10829
10829
|
f[A * 6 + 0] = k.x, f[A * 6 + 1] = k.y, f[A * 6 + 2] = k.z;
|
|
10830
|
-
const
|
|
10831
|
-
f[A * 6 + 3] =
|
|
10830
|
+
const j = new $(x - y * n, I + 0.05, S - w * n);
|
|
10831
|
+
f[A * 6 + 3] = j.x, f[A * 6 + 4] = j.y, f[A * 6 + 5] = j.z, v += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
|
|
10832
10832
|
const N = v / t / o;
|
|
10833
10833
|
p[A * 4 + 0] = 0, p[A * 4 + 1] = N, p[A * 4 + 2] = 1, p[A * 4 + 3] = N, A !== i.length - 1 && (d[A * 6 + 0] = A * 2 + 0, d[A * 6 + 1] = A * 2 + 2, d[A * 6 + 2] = A * 2 + 1, d[A * 6 + 3] = A * 2 + 2, d[A * 6 + 4] = A * 2 + 3, d[A * 6 + 5] = A * 2 + 1);
|
|
10834
10834
|
}
|
|
@@ -11056,16 +11056,16 @@ class cl extends jt {
|
|
|
11056
11056
|
var A;
|
|
11057
11057
|
return v.data.panoIndex !== ((A = c[g - 1]) == null ? void 0 : A.data.panoIndex);
|
|
11058
11058
|
}).map((v) => v.data.panoIndex).forEach((v) => {
|
|
11059
|
-
var A,
|
|
11059
|
+
var A, y;
|
|
11060
11060
|
const g = (A = this.five.work.observers[v]) == null ? void 0 : A.floorIndex;
|
|
11061
11061
|
if (g !== void 0)
|
|
11062
11062
|
if (l === g) {
|
|
11063
|
-
const
|
|
11064
|
-
a[
|
|
11063
|
+
const w = a.length - 1;
|
|
11064
|
+
a[w] = [...(y = a[w]) != null ? y : [], v];
|
|
11065
11065
|
} else {
|
|
11066
11066
|
l = g;
|
|
11067
|
-
const
|
|
11068
|
-
a[
|
|
11067
|
+
const w = a.length;
|
|
11068
|
+
a[w] = [v];
|
|
11069
11069
|
}
|
|
11070
11070
|
}), this.GuideLine || (this.GuideLine = Fm(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: a.map((v) => ({ panoIndexList: v })), config: r.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.info(`${vi} loaded`, r), this.hooks.emit("dataLoaded", r);
|
|
11071
11071
|
});
|
|
@@ -11132,12 +11132,12 @@ class cl extends jt {
|
|
|
11132
11132
|
const { moveEffect: r, moveToFirstPanoEffect: a, moveToFirstPanoDuration: l } = o;
|
|
11133
11133
|
return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, u) => {
|
|
11134
11134
|
const h = (() => {
|
|
11135
|
-
var g, A,
|
|
11135
|
+
var g, A, y, w;
|
|
11136
11136
|
const d = o.panoIndexList.slice(u).find((C) => C !== c);
|
|
11137
11137
|
if (d === void 0)
|
|
11138
11138
|
return;
|
|
11139
11139
|
const f = (g = n[c]) == null ? void 0 : g.position, p = (A = n[d]) == null ? void 0 : A.position;
|
|
11140
|
-
if (!p || !f || ((
|
|
11140
|
+
if (!p || !f || ((y = n[c]) == null ? void 0 : y.floorIndex) !== ((w = n[d]) == null ? void 0 : w.floorIndex))
|
|
11141
11141
|
return;
|
|
11142
11142
|
const v = new E.Vector3().subVectors(p, f);
|
|
11143
11143
|
return _m(v);
|
|
@@ -11458,15 +11458,15 @@ function Zs(i) {
|
|
|
11458
11458
|
let t, e, n, o, s, r, a, l = i[3] && qs(i);
|
|
11459
11459
|
return {
|
|
11460
11460
|
c() {
|
|
11461
|
-
t = z("div"), e = ye("svg"), n = ye("defs"), o = ye("linearGradient"), s = ye("stop"), r = ye("stop"), l && l.c(), b(s, "offset", "25%"), b(s, "stop-color", i[5]), b(s, "stop-opacity", "1"), b(r, "offset", "100%"), b(r, "stop-color", i[5]), b(r, "stop-opacity", "0.5"), b(o, "x1", 0.5), b(o, "y1", 0.5), b(o, "x2", i[8]), b(o, "y2", 0.5), b(o, "id", i[10]), b(o, "gradientUnits", "userSpaceOnUse"), b(e, "class", "straight-line svelte-xuejcm"), b(e, "viewBox", a = "0 0 " + i[8] + " " + i[7]), b(e, "preserveAspectRatio", "none"), b(t, "class", "line svelte-xuejcm"), J(t, "vertical", i[9]), J(t, "horizontal", !i[9]),
|
|
11461
|
+
t = z("div"), e = ye("svg"), n = ye("defs"), o = ye("linearGradient"), s = ye("stop"), r = ye("stop"), l && l.c(), b(s, "offset", "25%"), b(s, "stop-color", i[5]), b(s, "stop-opacity", "1"), b(r, "offset", "100%"), b(r, "stop-color", i[5]), b(r, "stop-opacity", "0.5"), b(o, "x1", 0.5), b(o, "y1", 0.5), b(o, "x2", i[8]), b(o, "y2", 0.5), b(o, "id", i[10]), b(o, "gradientUnits", "userSpaceOnUse"), b(e, "class", "straight-line svelte-xuejcm"), b(e, "viewBox", a = "0 0 " + i[8] + " " + i[7]), b(e, "preserveAspectRatio", "none"), b(t, "class", "line svelte-xuejcm"), J(t, "vertical", i[9]), J(t, "horizontal", !i[9]), L(t, "width", i[8] + "px"), L(t, "height", i[7] + "px");
|
|
11462
11462
|
},
|
|
11463
11463
|
m(c, u) {
|
|
11464
|
-
T(c, t, u),
|
|
11464
|
+
T(c, t, u), Q(t, e), Q(e, n), Q(n, o), Q(o, s), Q(o, r), l && l.m(e, null);
|
|
11465
11465
|
},
|
|
11466
11466
|
p(c, u) {
|
|
11467
|
-
u & 32 && b(s, "stop-color", c[5]), u & 32 && b(r, "stop-color", c[5]), u & 256 && b(o, "x2", c[8]), c[3] ? l ? (l.p(c, u), u & 8 && P(l, 1)) : (l = qs(c), l.c(), P(l, 1), l.m(e, null)) : l && (re(),
|
|
11467
|
+
u & 32 && b(s, "stop-color", c[5]), u & 32 && b(r, "stop-color", c[5]), u & 256 && b(o, "x2", c[8]), c[3] ? l ? (l.p(c, u), u & 8 && P(l, 1)) : (l = qs(c), l.c(), P(l, 1), l.m(e, null)) : l && (re(), D(l, 1, 1, () => {
|
|
11468
11468
|
l = null;
|
|
11469
|
-
}), ae()), u & 384 && a !== (a = "0 0 " + c[8] + " " + c[7]) && b(e, "viewBox", a), u & 512 && J(t, "vertical", c[9]), u & 512 && J(t, "horizontal", !c[9]), u & 256 &&
|
|
11469
|
+
}), ae()), u & 384 && a !== (a = "0 0 " + c[8] + " " + c[7]) && b(e, "viewBox", a), u & 512 && J(t, "vertical", c[9]), u & 512 && J(t, "horizontal", !c[9]), u & 256 && L(t, "width", c[8] + "px"), u & 128 && L(t, "height", c[7] + "px");
|
|
11470
11470
|
},
|
|
11471
11471
|
d(c) {
|
|
11472
11472
|
c && M(t), l && l.d();
|
|
@@ -11584,7 +11584,7 @@ function Ks(i) {
|
|
|
11584
11584
|
${i[8] ? "transform: translateX(-50%); left: 50%" : ""}
|
|
11585
11585
|
${i[9] ? "transform: translateX(-50%); top: 50%" : ""}
|
|
11586
11586
|
${i[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
|
|
11587
|
-
`),
|
|
11587
|
+
`), L(t, "width", _e(i[3])), L(t, "height", _e(i[4])), L(t, "z-index", i[13]);
|
|
11588
11588
|
},
|
|
11589
11589
|
m(r, a) {
|
|
11590
11590
|
T(r, t, a), s = !0;
|
|
@@ -11597,7 +11597,7 @@ function Ks(i) {
|
|
|
11597
11597
|
${i[8] ? "transform: translateX(-50%); left: 50%" : ""}
|
|
11598
11598
|
${i[9] ? "transform: translateX(-50%); top: 50%" : ""}
|
|
11599
11599
|
${i[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
|
|
11600
|
-
`)) && b(t, "style", e), a & 8 &&
|
|
11600
|
+
`)) && b(t, "style", e), a & 8 && L(t, "width", _e(i[3])), a & 16 && L(t, "height", _e(i[4])), a & 8192 && L(t, "z-index", i[13]);
|
|
11601
11601
|
},
|
|
11602
11602
|
i(r) {
|
|
11603
11603
|
s || (r && Se(() => {
|
|
@@ -11622,7 +11622,7 @@ function ep(i) {
|
|
|
11622
11622
|
e && e.m(n, o), T(n, t, o);
|
|
11623
11623
|
},
|
|
11624
11624
|
p(n, [o]) {
|
|
11625
|
-
n[2] ? e ? (e.p(n, o), o & 4 && P(e, 1)) : (e = Ks(n), e.c(), P(e, 1), e.m(t.parentNode, t)) : e && (re(),
|
|
11625
|
+
n[2] ? e ? (e.p(n, o), o & 4 && P(e, 1)) : (e = Ks(n), e.c(), P(e, 1), e.m(t.parentNode, t)) : e && (re(), D(e, 1, 1, () => {
|
|
11626
11626
|
e = null;
|
|
11627
11627
|
}), ae());
|
|
11628
11628
|
},
|
|
@@ -11630,7 +11630,7 @@ function ep(i) {
|
|
|
11630
11630
|
P(e);
|
|
11631
11631
|
},
|
|
11632
11632
|
o(n) {
|
|
11633
|
-
|
|
11633
|
+
D(e);
|
|
11634
11634
|
},
|
|
11635
11635
|
d(n) {
|
|
11636
11636
|
e && e.d(n), n && M(t);
|
|
@@ -11827,7 +11827,7 @@ function mp(i) {
|
|
|
11827
11827
|
t = z("span"), n = Ie(e), b(t, "class", "text-char svelte-1b2n9wi");
|
|
11828
11828
|
},
|
|
11829
11829
|
m(a, l) {
|
|
11830
|
-
T(a, t, l),
|
|
11830
|
+
T(a, t, l), Q(t, n), s();
|
|
11831
11831
|
},
|
|
11832
11832
|
p(a, l) {
|
|
11833
11833
|
i = a, l & 4 && e !== (e = i[0] + "") && Le(n, e), o !== i[20] && (r(), o = i[20], s());
|
|
@@ -11912,34 +11912,34 @@ function Ap(i, t, e) {
|
|
|
11912
11912
|
let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
11913
11913
|
const c = `__EMOJI_SPLIT_${zi}__`, u = `__EMOJI_${zi}__`, h = `__SPACE_${zi}__`;
|
|
11914
11914
|
let d, f, p = [];
|
|
11915
|
-
function v(
|
|
11916
|
-
const I = [],
|
|
11917
|
-
return
|
|
11915
|
+
function v(x) {
|
|
11916
|
+
const I = [], S = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
11917
|
+
return x.slice().replace(S, (k) => `${c}${u}${k}${c}`).split(c).forEach((k) => k.startsWith(u) ? I.push({
|
|
11918
11918
|
id: Ge(),
|
|
11919
11919
|
content: k.slice(u.length)
|
|
11920
|
-
}) : I.push(...k.split("").map((
|
|
11920
|
+
}) : I.push(...k.split("").map((j) => j === " " ? h : j).map((j) => ({ id: Ge(), content: j })))), I;
|
|
11921
11921
|
}
|
|
11922
11922
|
function g() {
|
|
11923
11923
|
if (!f)
|
|
11924
11924
|
return;
|
|
11925
|
-
const
|
|
11926
|
-
f.reversed !==
|
|
11925
|
+
const x = !a;
|
|
11926
|
+
f.reversed !== x && f.reverse(), f.play();
|
|
11927
11927
|
}
|
|
11928
|
-
function A(
|
|
11928
|
+
function A(x) {
|
|
11929
11929
|
if (l) {
|
|
11930
11930
|
e(4, l = !1);
|
|
11931
11931
|
return;
|
|
11932
11932
|
}
|
|
11933
|
-
clearTimeout(d), d = setTimeout(g,
|
|
11933
|
+
clearTimeout(d), d = setTimeout(g, x ? o : s);
|
|
11934
11934
|
}
|
|
11935
|
-
function
|
|
11935
|
+
function y(x) {
|
|
11936
11936
|
const I = function() {
|
|
11937
|
-
const
|
|
11938
|
-
if (
|
|
11939
|
-
return
|
|
11937
|
+
const S = dp((k) => x[k].getBoundingClientRect().x, [Math.min(x.length - 1, 10), Math.min(x.length - 1, 30)]);
|
|
11938
|
+
if (S > 0)
|
|
11939
|
+
return S;
|
|
11940
11940
|
}();
|
|
11941
11941
|
f = So({
|
|
11942
|
-
targets:
|
|
11942
|
+
targets: x.slice(0, I).filter(Je),
|
|
11943
11943
|
autoplay: !1,
|
|
11944
11944
|
duration: 400,
|
|
11945
11945
|
scale: [0.7, 1],
|
|
@@ -11951,20 +11951,20 @@ function Ap(i, t, e) {
|
|
|
11951
11951
|
easing: "easeInOutCubic"
|
|
11952
11952
|
}), a && f.seek(f.duration);
|
|
11953
11953
|
}
|
|
11954
|
-
function
|
|
11955
|
-
ze[
|
|
11956
|
-
p[I] =
|
|
11954
|
+
function w(x, I) {
|
|
11955
|
+
ze[x ? "unshift" : "push"](() => {
|
|
11956
|
+
p[I] = x, e(1, p);
|
|
11957
11957
|
});
|
|
11958
11958
|
}
|
|
11959
|
-
function C(
|
|
11960
|
-
ze[
|
|
11961
|
-
p[I] =
|
|
11959
|
+
function C(x, I) {
|
|
11960
|
+
ze[x ? "unshift" : "push"](() => {
|
|
11961
|
+
p[I] = x, e(1, p);
|
|
11962
11962
|
});
|
|
11963
11963
|
}
|
|
11964
|
-
return i.$$set = (
|
|
11965
|
-
"inDelay" in
|
|
11964
|
+
return i.$$set = (x) => {
|
|
11965
|
+
"inDelay" in x && e(5, o = x.inDelay), "outDelay" in x && e(6, s = x.outDelay), "content" in x && e(0, r = x.content), "unfolded" in x && e(7, a = x.unfolded), "isFistUnfoldedUpdate" in x && e(4, l = x.isFistUnfoldedUpdate);
|
|
11966
11966
|
}, i.$$.update = () => {
|
|
11967
|
-
i.$$.dirty & 1 && e(2, n = v(r)), i.$$.dirty & 128 && A(a), i.$$.dirty & 2 &&
|
|
11967
|
+
i.$$.dirty & 1 && e(2, n = v(r)), i.$$.dirty & 128 && A(a), i.$$.dirty & 2 && y(p.filter((x) => !!x));
|
|
11968
11968
|
}, [
|
|
11969
11969
|
r,
|
|
11970
11970
|
p,
|
|
@@ -11974,7 +11974,7 @@ function Ap(i, t, e) {
|
|
|
11974
11974
|
o,
|
|
11975
11975
|
s,
|
|
11976
11976
|
a,
|
|
11977
|
-
|
|
11977
|
+
w,
|
|
11978
11978
|
C
|
|
11979
11979
|
];
|
|
11980
11980
|
}
|
|
@@ -12011,10 +12011,10 @@ function or(i) {
|
|
|
12011
12011
|
}
|
|
12012
12012
|
}), {
|
|
12013
12013
|
c() {
|
|
12014
|
-
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), b(o, "class", s = "arrow " + i[0] + " svelte-1ogmlqq"),
|
|
12014
|
+
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), b(o, "class", s = "arrow " + i[0] + " svelte-1ogmlqq"), L(o, "background-image", "url(" + vp + ")"), b(t, "class", "arrow-wrapper svelte-1ogmlqq");
|
|
12015
12015
|
},
|
|
12016
12016
|
m(h, d) {
|
|
12017
|
-
T(h, t, d), Z(e, t, null),
|
|
12017
|
+
T(h, t, d), Z(e, t, null), Q(t, n), Q(t, o), l = !0, c || (u = we(o, "click", i[5]), c = !0);
|
|
12018
12018
|
},
|
|
12019
12019
|
p(h, d) {
|
|
12020
12020
|
i = h, (!l || d & 1 && s !== (s = "arrow " + i[0] + " svelte-1ogmlqq")) && b(o, "class", s);
|
|
@@ -12029,7 +12029,7 @@ function or(i) {
|
|
|
12029
12029
|
}), l = !0);
|
|
12030
12030
|
},
|
|
12031
12031
|
o(h) {
|
|
12032
|
-
|
|
12032
|
+
D(e.$$.fragment, h), r && r.invalidate(), h && (a = tn(o, Tt, {
|
|
12033
12033
|
duration: i[2],
|
|
12034
12034
|
delay: i[4],
|
|
12035
12035
|
easing: _t
|
|
@@ -12050,7 +12050,7 @@ function Pp(i) {
|
|
|
12050
12050
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
12051
12051
|
},
|
|
12052
12052
|
p(o, [s]) {
|
|
12053
|
-
o[1] ? n ? (n.p(o, s), s & 2 && P(n, 1)) : (n = or(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
12053
|
+
o[1] ? n ? (n.p(o, s), s & 2 && P(n, 1)) : (n = or(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
12054
12054
|
n = null;
|
|
12055
12055
|
}), ae());
|
|
12056
12056
|
},
|
|
@@ -12058,7 +12058,7 @@ function Pp(i) {
|
|
|
12058
12058
|
e || (P(n), e = !0);
|
|
12059
12059
|
},
|
|
12060
12060
|
o(o) {
|
|
12061
|
-
|
|
12061
|
+
D(n), e = !1;
|
|
12062
12062
|
},
|
|
12063
12063
|
d(o) {
|
|
12064
12064
|
n && n.d(o), o && M(t);
|
|
@@ -12116,20 +12116,20 @@ function sr(i) {
|
|
|
12116
12116
|
}
|
|
12117
12117
|
}), {
|
|
12118
12118
|
c() {
|
|
12119
|
-
t = z("div"), K(e.$$.fragment), b(t, "class", "text svelte-1fuzm7v"),
|
|
12119
|
+
t = z("div"), K(e.$$.fragment), b(t, "class", "text svelte-1fuzm7v"), L(t, "transform", i[7]);
|
|
12120
12120
|
},
|
|
12121
12121
|
m(o, s) {
|
|
12122
12122
|
T(o, t, s), Z(e, t, null), i[10](t), n = !0;
|
|
12123
12123
|
},
|
|
12124
12124
|
p(o, s) {
|
|
12125
12125
|
const r = {};
|
|
12126
|
-
s & 1 && (r.unfolded = o[0]), s & 2 && (r.content = o[1]), s & 32 && (r.outDelay = o[5]), e.$set(r), s & 128 &&
|
|
12126
|
+
s & 1 && (r.unfolded = o[0]), s & 2 && (r.content = o[1]), s & 32 && (r.outDelay = o[5]), e.$set(r), s & 128 && L(t, "transform", o[7]);
|
|
12127
12127
|
},
|
|
12128
12128
|
i(o) {
|
|
12129
12129
|
n || (P(e.$$.fragment, o), n = !0);
|
|
12130
12130
|
},
|
|
12131
12131
|
o(o) {
|
|
12132
|
-
|
|
12132
|
+
D(e.$$.fragment, o), n = !1;
|
|
12133
12133
|
},
|
|
12134
12134
|
d(o) {
|
|
12135
12135
|
o && M(t), q(e), i[10](null);
|
|
@@ -12160,7 +12160,7 @@ function rr(i) {
|
|
|
12160
12160
|
n || (P(e.$$.fragment, o), n = !0);
|
|
12161
12161
|
},
|
|
12162
12162
|
o(o) {
|
|
12163
|
-
|
|
12163
|
+
D(e.$$.fragment, o), n = !1;
|
|
12164
12164
|
},
|
|
12165
12165
|
d(o) {
|
|
12166
12166
|
o && M(t), q(e);
|
|
@@ -12177,9 +12177,9 @@ function Dp(i) {
|
|
|
12177
12177
|
o && o.m(r, a), T(r, t, a), s && s.m(r, a), T(r, e, a), n = !0;
|
|
12178
12178
|
},
|
|
12179
12179
|
p(r, [a]) {
|
|
12180
|
-
r[1] ? o ? (o.p(r, a), a & 2 && P(o, 1)) : (o = sr(r), o.c(), P(o, 1), o.m(t.parentNode, t)) : o && (re(),
|
|
12180
|
+
r[1] ? o ? (o.p(r, a), a & 2 && P(o, 1)) : (o = sr(r), o.c(), P(o, 1), o.m(t.parentNode, t)) : o && (re(), D(o, 1, 1, () => {
|
|
12181
12181
|
o = null;
|
|
12182
|
-
}), ae()), r[3] < r[4] ? s ? (s.p(r, a), a & 24 && P(s, 1)) : (s = rr(r), s.c(), P(s, 1), s.m(e.parentNode, e)) : s && (re(),
|
|
12182
|
+
}), ae()), r[3] < r[4] ? s ? (s.p(r, a), a & 24 && P(s, 1)) : (s = rr(r), s.c(), P(s, 1), s.m(e.parentNode, e)) : s && (re(), D(s, 1, 1, () => {
|
|
12183
12183
|
s = null;
|
|
12184
12184
|
}), ae());
|
|
12185
12185
|
},
|
|
@@ -12187,7 +12187,7 @@ function Dp(i) {
|
|
|
12187
12187
|
n || (P(o), P(s), n = !0);
|
|
12188
12188
|
},
|
|
12189
12189
|
o(r) {
|
|
12190
|
-
|
|
12190
|
+
D(o), D(s), n = !1;
|
|
12191
12191
|
},
|
|
12192
12192
|
d(r) {
|
|
12193
12193
|
o && o.d(r), r && M(t), s && s.d(r), r && M(e);
|
|
@@ -12266,11 +12266,11 @@ function ar(i) {
|
|
|
12266
12266
|
Z(t, f, p), T(f, e, p), Z(n, f, p), T(f, o, p), T(f, s, p), Z(r, s, null), a = Pt(s, i[8].bind(s)), l = !0, c || (u = we(s, "click", i[7]), c = !0);
|
|
12267
12267
|
},
|
|
12268
12268
|
p(f, p) {
|
|
12269
|
-
var
|
|
12269
|
+
var y, w;
|
|
12270
12270
|
const v = {};
|
|
12271
12271
|
p & 4 && (v.visible = f[2]), p & 8 && (v.left = f[3] / 2 + "px"), t.$set(v);
|
|
12272
12272
|
const g = {};
|
|
12273
|
-
p & 4 && (g.unfolded = f[2]), p & 8 && (g.length = f[3]), p & 16 && (g.outDelay = f[4] + 40 * Math.min((
|
|
12273
|
+
p & 4 && (g.unfolded = f[2]), p & 8 && (g.length = f[3]), p & 16 && (g.outDelay = f[4] + 40 * Math.min((w = (y = f[6][0]) == null ? void 0 : y.content.length) != null ? w : 10, 15)), n.$set(g);
|
|
12274
12274
|
const A = {};
|
|
12275
12275
|
p & 4 && (A.visible = f[2]), p & 2 && (A.textUnfolded = f[1]), p & 32 && (A.content = f[5]), r.$set(A);
|
|
12276
12276
|
},
|
|
@@ -12278,7 +12278,7 @@ function ar(i) {
|
|
|
12278
12278
|
l || (P(t.$$.fragment, f), P(n.$$.fragment, f), P(r.$$.fragment, f), l = !0);
|
|
12279
12279
|
},
|
|
12280
12280
|
o(f) {
|
|
12281
|
-
|
|
12281
|
+
D(t.$$.fragment, f), D(n.$$.fragment, f), D(r.$$.fragment, f), l = !1;
|
|
12282
12282
|
},
|
|
12283
12283
|
d(f) {
|
|
12284
12284
|
q(t, f), f && M(e), q(n, f), f && M(o), f && M(s), q(r), a(), c = !1, u();
|
|
@@ -12295,7 +12295,7 @@ function Mp(i) {
|
|
|
12295
12295
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
12296
12296
|
},
|
|
12297
12297
|
p(o, [s]) {
|
|
12298
|
-
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = ar(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
12298
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = ar(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
12299
12299
|
n = null;
|
|
12300
12300
|
}), ae());
|
|
12301
12301
|
},
|
|
@@ -12303,7 +12303,7 @@ function Mp(i) {
|
|
|
12303
12303
|
e || (P(n), e = !0);
|
|
12304
12304
|
},
|
|
12305
12305
|
o(o) {
|
|
12306
|
-
|
|
12306
|
+
D(n), e = !1;
|
|
12307
12307
|
},
|
|
12308
12308
|
d(o) {
|
|
12309
12309
|
n && n.d(o), o && M(t);
|
|
@@ -12375,7 +12375,7 @@ function jp(i) {
|
|
|
12375
12375
|
t || (P(n, o), t = !0);
|
|
12376
12376
|
},
|
|
12377
12377
|
o(o) {
|
|
12378
|
-
|
|
12378
|
+
D(n, o), t = !1;
|
|
12379
12379
|
},
|
|
12380
12380
|
d(o) {
|
|
12381
12381
|
n && n.d(o);
|
|
@@ -12443,7 +12443,7 @@ function cr(i) {
|
|
|
12443
12443
|
t = z("span"), n = Ie(e), b(t, "class", "placeholder svelte-i9wdo4");
|
|
12444
12444
|
},
|
|
12445
12445
|
m(o, s) {
|
|
12446
|
-
T(o, t, s),
|
|
12446
|
+
T(o, t, s), Q(t, n);
|
|
12447
12447
|
},
|
|
12448
12448
|
p(o, s) {
|
|
12449
12449
|
s & 8 && e !== (e = o[3].placeholder + "") && Le(n, e);
|
|
@@ -12461,22 +12461,22 @@ function Rp(i) {
|
|
|
12461
12461
|
}
|
|
12462
12462
|
return e = a(i), n = r[e] = s[e](i), {
|
|
12463
12463
|
c() {
|
|
12464
|
-
t = z("div"), n.c(), b(t, "class", "text svelte-i9wdo4"),
|
|
12464
|
+
t = z("div"), n.c(), b(t, "class", "text svelte-i9wdo4"), L(t, "max-width", typeof i[1] == "number" ? Ee(i[1]) : i[1]), L(t, "-webkit-line-clamp", i[0]);
|
|
12465
12465
|
},
|
|
12466
12466
|
m(l, c) {
|
|
12467
12467
|
T(l, t, c), r[e].m(t, null), o = !0;
|
|
12468
12468
|
},
|
|
12469
12469
|
p(l, [c]) {
|
|
12470
12470
|
let u = e;
|
|
12471
|
-
e = a(l), e === u ? r[e].p(l, c) : (re(),
|
|
12471
|
+
e = a(l), e === u ? r[e].p(l, c) : (re(), D(r[u], 1, 1, () => {
|
|
12472
12472
|
r[u] = null;
|
|
12473
|
-
}), ae(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), P(n, 1), n.m(t, null)), c & 2 &&
|
|
12473
|
+
}), ae(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), P(n, 1), n.m(t, null)), c & 2 && L(t, "max-width", typeof l[1] == "number" ? Ee(l[1]) : l[1]), c & 1 && L(t, "-webkit-line-clamp", l[0]);
|
|
12474
12474
|
},
|
|
12475
12475
|
i(l) {
|
|
12476
12476
|
o || (P(n), o = !0);
|
|
12477
12477
|
},
|
|
12478
12478
|
o(l) {
|
|
12479
|
-
|
|
12479
|
+
D(n), o = !1;
|
|
12480
12480
|
},
|
|
12481
12481
|
d(l) {
|
|
12482
12482
|
l && M(t), r[e].d();
|
|
@@ -12533,25 +12533,25 @@ function ur(i) {
|
|
|
12533
12533
|
let u = (i[0].data.description || ((d = i[0].data.edit) == null ? void 0 : d.description)) && dr(i);
|
|
12534
12534
|
return {
|
|
12535
12535
|
c() {
|
|
12536
|
-
K(t.$$.fragment), e = ne(), n = z("div"), o = z("div"), s = z("div"), r = z("div"), K(a.$$.fragment), l = ne(), u && u.c(), b(r, "class", "title svelte-1oxrkr1"), b(s, "class", "plane svelte-1oxrkr1"), b(o, "class", "plane__wrapper svelte-1oxrkr1"),
|
|
12536
|
+
K(t.$$.fragment), e = ne(), n = z("div"), o = z("div"), s = z("div"), r = z("div"), K(a.$$.fragment), l = ne(), u && u.c(), b(r, "class", "title svelte-1oxrkr1"), b(s, "class", "plane svelte-1oxrkr1"), b(o, "class", "plane__wrapper svelte-1oxrkr1"), L(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), b(n, "class", "plane__container svelte-1oxrkr1"), J(n, "unfolded", i[1]), J(n, "folded", i[3]);
|
|
12537
12537
|
},
|
|
12538
12538
|
m(f, p) {
|
|
12539
|
-
Z(t, f, p), T(f, e, p), T(f, n, p),
|
|
12539
|
+
Z(t, f, p), T(f, e, p), T(f, n, p), Q(n, o), Q(o, s), Q(s, r), Z(a, r, null), Q(s, l), u && u.m(s, null), c = !0;
|
|
12540
12540
|
},
|
|
12541
12541
|
p(f, p) {
|
|
12542
|
-
var A,
|
|
12542
|
+
var A, y;
|
|
12543
12543
|
const v = {};
|
|
12544
12544
|
p & 2 && (v.unfolded = f[1]), t.$set(v);
|
|
12545
12545
|
const g = {};
|
|
12546
|
-
p & 4 && (g.text = f[2]), p & 1 && (g.edit = (A = f[0].data.edit) == null ? void 0 : A.title), a.$set(g), f[0].data.description || ((
|
|
12546
|
+
p & 4 && (g.text = f[2]), p & 1 && (g.edit = (A = f[0].data.edit) == null ? void 0 : A.title), a.$set(g), f[0].data.description || ((y = f[0].data.edit) == null ? void 0 : y.description) ? u ? (u.p(f, p), p & 1 && P(u, 1)) : (u = dr(f), u.c(), P(u, 1), u.m(s, null)) : u && (re(), D(u, 1, 1, () => {
|
|
12547
12547
|
u = null;
|
|
12548
|
-
}), ae()), p & 2 &&
|
|
12548
|
+
}), ae()), p & 2 && L(o, "transform", f[1] ? "translateY(-15px)" : "translateY(0)"), (!c || p & 2) && J(n, "unfolded", f[1]), (!c || p & 8) && J(n, "folded", f[3]);
|
|
12549
12549
|
},
|
|
12550
12550
|
i(f) {
|
|
12551
12551
|
c || (P(t.$$.fragment, f), P(a.$$.fragment, f), P(u), c = !0);
|
|
12552
12552
|
},
|
|
12553
12553
|
o(f) {
|
|
12554
|
-
|
|
12554
|
+
D(t.$$.fragment, f), D(a.$$.fragment, f), D(u), c = !1;
|
|
12555
12555
|
},
|
|
12556
12556
|
d(f) {
|
|
12557
12557
|
q(t, f), f && M(e), f && M(n), q(a), u && u.d();
|
|
@@ -12583,7 +12583,7 @@ function dr(i) {
|
|
|
12583
12583
|
n || (P(e.$$.fragment, s), n = !0);
|
|
12584
12584
|
},
|
|
12585
12585
|
o(s) {
|
|
12586
|
-
|
|
12586
|
+
D(e.$$.fragment, s), n = !1;
|
|
12587
12587
|
},
|
|
12588
12588
|
d(s) {
|
|
12589
12589
|
s && M(t), q(e);
|
|
@@ -12600,7 +12600,7 @@ function Fp(i) {
|
|
|
12600
12600
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
12601
12601
|
},
|
|
12602
12602
|
p(o, [s]) {
|
|
12603
|
-
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = ur(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
12603
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = ur(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
12604
12604
|
n = null;
|
|
12605
12605
|
}), ae());
|
|
12606
12606
|
},
|
|
@@ -12608,7 +12608,7 @@ function Fp(i) {
|
|
|
12608
12608
|
e || (P(n), e = !0);
|
|
12609
12609
|
},
|
|
12610
12610
|
o(o) {
|
|
12611
|
-
|
|
12611
|
+
D(n), e = !1;
|
|
12612
12612
|
},
|
|
12613
12613
|
d(o) {
|
|
12614
12614
|
n && n.d(o), o && M(t);
|
|
@@ -12646,7 +12646,7 @@ function Np(i) {
|
|
|
12646
12646
|
e || (P(t.$$.fragment, n), e = !0);
|
|
12647
12647
|
},
|
|
12648
12648
|
o(n) {
|
|
12649
|
-
|
|
12649
|
+
D(t.$$.fragment, n), e = !1;
|
|
12650
12650
|
},
|
|
12651
12651
|
d(n) {
|
|
12652
12652
|
q(t, n);
|
|
@@ -12670,7 +12670,7 @@ function _p(i) {
|
|
|
12670
12670
|
e || (P(t.$$.fragment, n), e = !0);
|
|
12671
12671
|
},
|
|
12672
12672
|
o(n) {
|
|
12673
|
-
|
|
12673
|
+
D(t.$$.fragment, n), e = !1;
|
|
12674
12674
|
},
|
|
12675
12675
|
d(n) {
|
|
12676
12676
|
q(t, n);
|
|
@@ -12692,7 +12692,7 @@ function Xp(i) {
|
|
|
12692
12692
|
},
|
|
12693
12693
|
p(l, [c]) {
|
|
12694
12694
|
let u = t;
|
|
12695
|
-
t = a(l), t === u ? ~t && r[t].p(l, c) : (e && (re(),
|
|
12695
|
+
t = a(l), t === u ? ~t && r[t].p(l, c) : (e && (re(), D(r[u], 1, 1, () => {
|
|
12696
12696
|
r[u] = null;
|
|
12697
12697
|
}), ae()), ~t ? (e = r[t], e ? e.p(l, c) : (e = r[t] = s[t](l), e.c()), P(e, 1), e.m(n.parentNode, n)) : e = null);
|
|
12698
12698
|
},
|
|
@@ -12700,7 +12700,7 @@ function Xp(i) {
|
|
|
12700
12700
|
o || (P(e), o = !0);
|
|
12701
12701
|
},
|
|
12702
12702
|
o(l) {
|
|
12703
|
-
|
|
12703
|
+
D(e), o = !1;
|
|
12704
12704
|
},
|
|
12705
12705
|
d(l) {
|
|
12706
12706
|
~t && r[t].d(l), l && M(n);
|
|
@@ -12764,10 +12764,10 @@ function Zp(i) {
|
|
|
12764
12764
|
t = ye("svg"), e = ye("defs"), n = ye("linearGradient"), o = ye("stop"), s = ye("stop"), r && r.c(), b(o, "offset", "25%"), b(o, "stop-color", "white"), b(o, "stop-opacity", "1"), b(s, "offset", "100%"), b(s, "stop-color", "white"), b(s, "stop-opacity", "0.5"), b(n, "id", i[4]), b(n, "gradientUnits", "userSpaceOnUse"), b(t, "class", "line svelte-blgtit"), b(t, "viewBox", "0 0 105 21");
|
|
12765
12765
|
},
|
|
12766
12766
|
m(a, l) {
|
|
12767
|
-
T(a, t, l),
|
|
12767
|
+
T(a, t, l), Q(t, e), Q(e, n), Q(n, o), Q(n, s), r && r.m(t, null);
|
|
12768
12768
|
},
|
|
12769
12769
|
p(a, [l]) {
|
|
12770
|
-
a[3] ? r ? (r.p(a, l), l & 8 && P(r, 1)) : (r = hr(a), r.c(), P(r, 1), r.m(t, null)) : r && (re(),
|
|
12770
|
+
a[3] ? r ? (r.p(a, l), l & 8 && P(r, 1)) : (r = hr(a), r.c(), P(r, 1), r.m(t, null)) : r && (re(), D(r, 1, 1, () => {
|
|
12771
12771
|
r = null;
|
|
12772
12772
|
}), ae());
|
|
12773
12773
|
},
|
|
@@ -12775,7 +12775,7 @@ function Zp(i) {
|
|
|
12775
12775
|
P(r);
|
|
12776
12776
|
},
|
|
12777
12777
|
o(a) {
|
|
12778
|
-
|
|
12778
|
+
D(r);
|
|
12779
12779
|
},
|
|
12780
12780
|
d(a) {
|
|
12781
12781
|
a && M(t), r && r.d();
|
|
@@ -12868,7 +12868,7 @@ function mr(i, t) {
|
|
|
12868
12868
|
e = z("div"), K(n.$$.fragment), o = ne(), b(e, "class", "sc-carousel-dots__dot-container svelte-670fde"), this.first = e;
|
|
12869
12869
|
},
|
|
12870
12870
|
m(a, l) {
|
|
12871
|
-
T(a, e, l), Z(n, e, null),
|
|
12871
|
+
T(a, e, l), Z(n, e, null), Q(e, o), s = !0;
|
|
12872
12872
|
},
|
|
12873
12873
|
p(a, l) {
|
|
12874
12874
|
t = a;
|
|
@@ -12879,7 +12879,7 @@ function mr(i, t) {
|
|
|
12879
12879
|
s || (P(n.$$.fragment, a), s = !0);
|
|
12880
12880
|
},
|
|
12881
12881
|
o(a) {
|
|
12882
|
-
|
|
12882
|
+
D(n.$$.fragment, a), s = !1;
|
|
12883
12883
|
},
|
|
12884
12884
|
d(a) {
|
|
12885
12885
|
a && M(e), q(n);
|
|
@@ -12918,7 +12918,7 @@ function og(i) {
|
|
|
12918
12918
|
},
|
|
12919
12919
|
o(a) {
|
|
12920
12920
|
for (let l = 0; l < e.length; l += 1)
|
|
12921
|
-
|
|
12921
|
+
D(e[l]);
|
|
12922
12922
|
o = !1;
|
|
12923
12923
|
},
|
|
12924
12924
|
d(a) {
|
|
@@ -12955,7 +12955,7 @@ function lg(i) {
|
|
|
12955
12955
|
t = z("button"), e = z("i"), b(e, "class", "sc-carousel-arrow__arrow svelte-1bftafx"), J(e, "sc-carousel-arrow__arrow-next", i[0] === Ct), J(e, "sc-carousel-arrow__arrow-prev", i[0] === Yt), b(t, "class", "sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"), J(t, "sc-carousel-arrow__circle_disabled", i[1]);
|
|
12956
12956
|
},
|
|
12957
12957
|
m(s, r) {
|
|
12958
|
-
T(s, t, r),
|
|
12958
|
+
T(s, t, r), Q(t, e), n || (o = we(t, "click", i[2]), n = !0);
|
|
12959
12959
|
},
|
|
12960
12960
|
p(s, [r]) {
|
|
12961
12961
|
r & 1 && J(e, "sc-carousel-arrow__arrow-next", s[0] === Ct), r & 1 && J(e, "sc-carousel-arrow__arrow-prev", s[0] === Yt), r & 2 && J(t, "sc-carousel-arrow__circle_disabled", s[1]);
|
|
@@ -12988,13 +12988,13 @@ function dg(i) {
|
|
|
12988
12988
|
let t;
|
|
12989
12989
|
return {
|
|
12990
12990
|
c() {
|
|
12991
|
-
t = z("div"), b(t, "class", "sc-carousel-progress__indicator svelte-i7yfid"),
|
|
12991
|
+
t = z("div"), b(t, "class", "sc-carousel-progress__indicator svelte-i7yfid"), L(t, "width", i[0] + "%");
|
|
12992
12992
|
},
|
|
12993
12993
|
m(e, n) {
|
|
12994
12994
|
T(e, t, n);
|
|
12995
12995
|
},
|
|
12996
12996
|
p(e, [n]) {
|
|
12997
|
-
n & 1 &&
|
|
12997
|
+
n & 1 && L(t, "width", e[0] + "%");
|
|
12998
12998
|
},
|
|
12999
12999
|
i: X,
|
|
13000
13000
|
o: X,
|
|
@@ -13409,25 +13409,25 @@ function Jg(i, t) {
|
|
|
13409
13409
|
methods: d
|
|
13410
13410
|
});
|
|
13411
13411
|
let p = !1;
|
|
13412
|
-
const v = (A) => (...
|
|
13412
|
+
const v = (A) => (...y) => {
|
|
13413
13413
|
p = !0;
|
|
13414
|
-
const
|
|
13415
|
-
return p = !1,
|
|
13414
|
+
const w = A(...y);
|
|
13415
|
+
return p = !1, w;
|
|
13416
13416
|
};
|
|
13417
|
-
Object.entries(o).forEach(([A,
|
|
13417
|
+
Object.entries(o).forEach(([A, y]) => {
|
|
13418
13418
|
d[A] = v(
|
|
13419
|
-
(...
|
|
13419
|
+
(...w) => y(f(), ...w)
|
|
13420
13420
|
), Object.defineProperty(d[A], "name", { value: A });
|
|
13421
13421
|
}), h = new Proxy(oc(e), {
|
|
13422
|
-
get(A,
|
|
13423
|
-
return u() && !p && r(u(), { prop:
|
|
13422
|
+
get(A, y) {
|
|
13423
|
+
return u() && !p && r(u(), { prop: y, value: A[y] }), Reflect.get(...arguments);
|
|
13424
13424
|
},
|
|
13425
|
-
set(A,
|
|
13426
|
-
return A[
|
|
13425
|
+
set(A, y, w) {
|
|
13426
|
+
return A[y] === w || (Reflect.set(...arguments), u() || (s && s(y, w), a(h, y))), !0;
|
|
13427
13427
|
}
|
|
13428
|
-
}), Object.entries(n).forEach(([A,
|
|
13428
|
+
}), Object.entries(n).forEach(([A, y]) => {
|
|
13429
13429
|
c(A, () => {
|
|
13430
|
-
|
|
13430
|
+
y(f());
|
|
13431
13431
|
});
|
|
13432
13432
|
});
|
|
13433
13433
|
const g = [h, d];
|
|
@@ -13795,7 +13795,7 @@ function Ir(i) {
|
|
|
13795
13795
|
t || (P(o, s), t = !0);
|
|
13796
13796
|
},
|
|
13797
13797
|
o(s) {
|
|
13798
|
-
|
|
13798
|
+
D(o, s), t = !1;
|
|
13799
13799
|
},
|
|
13800
13800
|
d(s) {
|
|
13801
13801
|
o && o.d(s);
|
|
@@ -13824,7 +13824,7 @@ function a0(i) {
|
|
|
13824
13824
|
n || (P(e.$$.fragment, o), n = !0);
|
|
13825
13825
|
},
|
|
13826
13826
|
o(o) {
|
|
13827
|
-
|
|
13827
|
+
D(e.$$.fragment, o), n = !1;
|
|
13828
13828
|
},
|
|
13829
13829
|
d(o) {
|
|
13830
13830
|
o && M(t), q(e);
|
|
@@ -13850,7 +13850,7 @@ function kr(i) {
|
|
|
13850
13850
|
n || (P(e.$$.fragment, o), n = !0);
|
|
13851
13851
|
},
|
|
13852
13852
|
o(o) {
|
|
13853
|
-
|
|
13853
|
+
D(e.$$.fragment, o), n = !1;
|
|
13854
13854
|
},
|
|
13855
13855
|
d(o) {
|
|
13856
13856
|
o && M(t), q(e);
|
|
@@ -13881,7 +13881,7 @@ function xr(i) {
|
|
|
13881
13881
|
t || (P(o, s), t = !0);
|
|
13882
13882
|
},
|
|
13883
13883
|
o(s) {
|
|
13884
|
-
|
|
13884
|
+
D(o, s), t = !1;
|
|
13885
13885
|
},
|
|
13886
13886
|
d(s) {
|
|
13887
13887
|
o && o.d(s);
|
|
@@ -13910,7 +13910,7 @@ function l0(i) {
|
|
|
13910
13910
|
n || (P(e.$$.fragment, o), n = !0);
|
|
13911
13911
|
},
|
|
13912
13912
|
o(o) {
|
|
13913
|
-
|
|
13913
|
+
D(e.$$.fragment, o), n = !1;
|
|
13914
13914
|
},
|
|
13915
13915
|
d(o) {
|
|
13916
13916
|
o && M(t), q(e);
|
|
@@ -13941,7 +13941,7 @@ function Dr(i) {
|
|
|
13941
13941
|
t || (P(o, s), t = !0);
|
|
13942
13942
|
},
|
|
13943
13943
|
o(s) {
|
|
13944
|
-
|
|
13944
|
+
D(o, s), t = !1;
|
|
13945
13945
|
},
|
|
13946
13946
|
d(s) {
|
|
13947
13947
|
o && o.d(s);
|
|
@@ -13970,7 +13970,7 @@ function c0(i) {
|
|
|
13970
13970
|
e || (P(t.$$.fragment, n), e = !0);
|
|
13971
13971
|
},
|
|
13972
13972
|
o(n) {
|
|
13973
|
-
|
|
13973
|
+
D(t.$$.fragment, n), e = !1;
|
|
13974
13974
|
},
|
|
13975
13975
|
d(n) {
|
|
13976
13976
|
q(t, n);
|
|
@@ -13980,13 +13980,13 @@ function c0(i) {
|
|
|
13980
13980
|
function u0(i) {
|
|
13981
13981
|
let t, e, n, o, s, r, a, l, c, u, h, d, f = i[1] && Ir(i);
|
|
13982
13982
|
const p = i[37].default, v = qt(p, i, i[36], Pr);
|
|
13983
|
-
let g = i[3] && kr(i), A = i[1] && xr(i),
|
|
13983
|
+
let g = i[3] && kr(i), A = i[1] && xr(i), y = i[4] && Dr(i);
|
|
13984
13984
|
return {
|
|
13985
13985
|
c() {
|
|
13986
|
-
t = z("div"), e = z("div"), f && f.c(), n = ne(), o = z("div"), s = z("div"), v && v.c(), a = ne(), g && g.c(), l = ne(), A && A.c(), c = ne(),
|
|
13986
|
+
t = z("div"), e = z("div"), f && f.c(), n = ne(), o = z("div"), s = z("div"), v && v.c(), a = ne(), g && g.c(), l = ne(), A && A.c(), c = ne(), y && y.c(), b(s, "class", "sc-carousel__pages-container svelte-sme1z4"), L(s, "transform", "translateX(" + i[8] + "px)"), L(s, "transition-duration", i[9] + "ms"), L(s, "transition-timing-function", i[0]), b(o, "class", "sc-carousel__pages-window svelte-sme1z4"), b(e, "class", "sc-carousel__content-container svelte-sme1z4"), b(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
13987
13987
|
},
|
|
13988
|
-
m(
|
|
13989
|
-
T(
|
|
13988
|
+
m(w, C) {
|
|
13989
|
+
T(w, t, C), Q(t, e), f && f.m(e, null), Q(e, n), Q(e, o), Q(o, s), v && v.m(s, null), i[39](s), Q(o, a), g && g.m(o, null), i[40](o), Q(e, l), A && A.m(e, null), Q(t, c), y && y.m(t, null), u = !0, h || (d = [
|
|
13990
13990
|
Ii(r = Cg.call(null, s, {
|
|
13991
13991
|
thresholdProvider: i[38]
|
|
13992
13992
|
})),
|
|
@@ -14001,34 +14001,34 @@ function u0(i) {
|
|
|
14001
14001
|
we(o, "tapped", i[22])
|
|
14002
14002
|
], h = !0);
|
|
14003
14003
|
},
|
|
14004
|
-
p(
|
|
14005
|
-
|
|
14004
|
+
p(w, C) {
|
|
14005
|
+
w[1] ? f ? (f.p(w, C), C[0] & 2 && P(f, 1)) : (f = Ir(w), f.c(), P(f, 1), f.m(e, n)) : f && (re(), D(f, 1, 1, () => {
|
|
14006
14006
|
f = null;
|
|
14007
14007
|
}), ae()), v && v.p && (!u || C[0] & 96 | C[1] & 32) && $t(
|
|
14008
14008
|
v,
|
|
14009
14009
|
p,
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
u ? Kt(p,
|
|
14010
|
+
w,
|
|
14011
|
+
w[36],
|
|
14012
|
+
u ? Kt(p, w[36], C, s0) : en(w[36]),
|
|
14013
14013
|
Pr
|
|
14014
|
-
), (!u || C[0] & 256) &&
|
|
14015
|
-
thresholdProvider:
|
|
14016
|
-
}),
|
|
14014
|
+
), (!u || C[0] & 256) && L(s, "transform", "translateX(" + w[8] + "px)"), (!u || C[0] & 512) && L(s, "transition-duration", w[9] + "ms"), (!u || C[0] & 1) && L(s, "transition-timing-function", w[0]), r && Zt(r.update) && C[0] & 2048 && r.update.call(null, {
|
|
14015
|
+
thresholdProvider: w[38]
|
|
14016
|
+
}), w[3] ? g ? (g.p(w, C), C[0] & 8 && P(g, 1)) : (g = kr(w), g.c(), P(g, 1), g.m(o, null)) : g && (re(), D(g, 1, 1, () => {
|
|
14017
14017
|
g = null;
|
|
14018
|
-
}), ae()),
|
|
14018
|
+
}), ae()), w[1] ? A ? (A.p(w, C), C[0] & 2 && P(A, 1)) : (A = xr(w), A.c(), P(A, 1), A.m(e, null)) : A && (re(), D(A, 1, 1, () => {
|
|
14019
14019
|
A = null;
|
|
14020
|
-
}), ae()),
|
|
14021
|
-
|
|
14020
|
+
}), ae()), w[4] ? y ? (y.p(w, C), C[0] & 16 && P(y, 1)) : (y = Dr(w), y.c(), P(y, 1), y.m(t, null)) : y && (re(), D(y, 1, 1, () => {
|
|
14021
|
+
y = null;
|
|
14022
14022
|
}), ae());
|
|
14023
14023
|
},
|
|
14024
|
-
i(
|
|
14025
|
-
u || (P(f), P(v,
|
|
14024
|
+
i(w) {
|
|
14025
|
+
u || (P(f), P(v, w), P(g), P(A), P(y), u = !0);
|
|
14026
14026
|
},
|
|
14027
|
-
o(
|
|
14028
|
-
|
|
14027
|
+
o(w) {
|
|
14028
|
+
D(f), D(v, w), D(g), D(A), D(y), u = !1;
|
|
14029
14029
|
},
|
|
14030
|
-
d(
|
|
14031
|
-
|
|
14030
|
+
d(w) {
|
|
14031
|
+
w && M(t), f && f.d(), v && v.d(w), i[39](null), g && g.d(), i[40](null), A && A.d(), y && y.d(), h = !1, dt(d);
|
|
14032
14032
|
}
|
|
14033
14033
|
};
|
|
14034
14034
|
}
|
|
@@ -14044,7 +14044,7 @@ function d0(i, t, e) {
|
|
|
14044
14044
|
loaded: () => e(6, s = ge)
|
|
14045
14045
|
})(te);
|
|
14046
14046
|
}), v = xn();
|
|
14047
|
-
let { timingFunction: g = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite:
|
|
14047
|
+
let { timingFunction: g = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: C = 500 } = t, { autoplay: x = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: S = Ct } = t, { pauseOnFocus: k = !1 } = t, { autoplayProgressVisible: j = !1 } = t, { dots: N = !0 } = t, { swiping: H = !0 } = t, { particlesToShow: U = 1 } = t, { particlesToScroll: V = 1 } = t;
|
|
14048
14048
|
function B(te, ge) {
|
|
14049
14049
|
return W(this, null, function* () {
|
|
14050
14050
|
const je = pn(ge, "animated", !0);
|
|
@@ -14086,7 +14086,7 @@ function d0(i, t, e) {
|
|
|
14086
14086
|
}
|
|
14087
14087
|
Ze(() => {
|
|
14088
14088
|
W(this, null, function* () {
|
|
14089
|
-
yield Qo(), _ && ee && (h.particlesCountWithoutClones = _.children.length, yield Qo(), h.infinite && de(), h.particlesCount = _.children.length, f.showPage(
|
|
14089
|
+
yield Qo(), _ && ee && (h.particlesCountWithoutClones = _.children.length, yield Qo(), h.infinite && de(), h.particlesCount = _.children.length, f.showPage(w, { animated: !1 }), Y.observe(ee));
|
|
14090
14090
|
});
|
|
14091
14091
|
}), It(() => {
|
|
14092
14092
|
Y.disconnect(), d.reset();
|
|
@@ -14140,14 +14140,14 @@ function d0(i, t, e) {
|
|
|
14140
14140
|
}
|
|
14141
14141
|
const Ke = (te) => he(te.detail);
|
|
14142
14142
|
return i.$$set = (te) => {
|
|
14143
|
-
"timingFunction" in te && e(0, g = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2,
|
|
14143
|
+
"timingFunction" in te && e(0, g = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2, y = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, C = te.duration), "autoplay" in te && e(26, x = te.autoplay), "autoplayDuration" in te && e(27, I = te.autoplayDuration), "autoplayDirection" in te && e(28, S = te.autoplayDirection), "pauseOnFocus" in te && e(29, k = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, j = te.autoplayProgressVisible), "dots" in te && e(4, N = te.dots), "swiping" in te && e(30, H = te.swiping), "particlesToShow" in te && e(31, U = te.particlesToShow), "particlesToScroll" in te && e(32, V = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
|
|
14144
14144
|
}, i.$$.update = () => {
|
|
14145
|
-
i.$$.dirty[0] & 32 && v("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite =
|
|
14145
|
+
i.$$.dirty[0] & 32 && v("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite = y), i.$$.dirty[0] & 33554432 && (h.durationMsInit = C), i.$$.dirty[0] & 67108864 && (h.autoplay = x), i.$$.dirty[0] & 134217728 && (h.autoplayDuration = I), i.$$.dirty[0] & 268435456 && (h.autoplayDirection = S), i.$$.dirty[0] & 536870912 && (h.pauseOnFocus = k), i.$$.dirty[1] & 1 && (h.particlesToShowInit = U), i.$$.dirty[1] & 2 && (h.particlesToScrollInit = V);
|
|
14146
14146
|
}, [
|
|
14147
14147
|
g,
|
|
14148
14148
|
A,
|
|
14149
|
-
|
|
14150
|
-
|
|
14149
|
+
y,
|
|
14150
|
+
j,
|
|
14151
14151
|
N,
|
|
14152
14152
|
r,
|
|
14153
14153
|
s,
|
|
@@ -14168,15 +14168,15 @@ function d0(i, t, e) {
|
|
|
14168
14168
|
be,
|
|
14169
14169
|
Ce,
|
|
14170
14170
|
ue,
|
|
14171
|
-
|
|
14171
|
+
w,
|
|
14172
14172
|
C,
|
|
14173
|
-
D,
|
|
14174
|
-
I,
|
|
14175
14173
|
x,
|
|
14174
|
+
I,
|
|
14175
|
+
S,
|
|
14176
14176
|
k,
|
|
14177
14177
|
H,
|
|
14178
14178
|
U,
|
|
14179
|
-
|
|
14179
|
+
V,
|
|
14180
14180
|
B,
|
|
14181
14181
|
R,
|
|
14182
14182
|
G,
|
|
@@ -14230,7 +14230,7 @@ class h0 extends se {
|
|
|
14230
14230
|
}
|
|
14231
14231
|
}
|
|
14232
14232
|
function f0(i) {
|
|
14233
|
-
le(i, "svelte-
|
|
14233
|
+
le(i, "svelte-159ski6", ".media-item.svelte-159ski6.svelte-159ski6{position:relative;height:100%}.media-content.svelte-159ski6.svelte-159ski6{position:relative;pointer-events:auto;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.media-content.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none}.video-icon.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-159ski6.svelte-159ski6{display:none;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-159ski6.svelte-159ski6{pointer-events:none;display:block}.video-icon.svelte-159ski6.svelte-159ski6{pointer-events:auto}.video-icon.large.svelte-159ski6.svelte-159ski6{width:12.5rem;height:6.25rem}.video-icon.small.svelte-159ski6.svelte-159ski6{width:1.75rem;height:1.75rem}.video-icon.svelte-159ski6 .video-icon-img.svelte-159ski6{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-159ski6 .video-icon-img.canPlay.svelte-159ski6{cursor:pointer}");
|
|
14234
14234
|
}
|
|
14235
14235
|
function Lr(i) {
|
|
14236
14236
|
let t;
|
|
@@ -14243,7 +14243,7 @@ function Lr(i) {
|
|
|
14243
14243
|
let n = e(i), o = n && n(i);
|
|
14244
14244
|
return {
|
|
14245
14245
|
c() {
|
|
14246
|
-
t = z("div"), o && o.c(), b(t, "class", "media-item svelte-
|
|
14246
|
+
t = z("div"), o && o.c(), b(t, "class", "media-item svelte-159ski6"), b(t, "draggable", "false");
|
|
14247
14247
|
},
|
|
14248
14248
|
m(s, r) {
|
|
14249
14249
|
T(s, t, r), o && o.m(t, null);
|
|
@@ -14264,13 +14264,13 @@ function m0(i) {
|
|
|
14264
14264
|
let l = a(i), c = l(i);
|
|
14265
14265
|
return {
|
|
14266
14266
|
c() {
|
|
14267
|
-
c.c(), t = ne(), e = z("div"), n = z("div"), o = z("div"), b(o, "class", "video-icon-img svelte-
|
|
14267
|
+
c.c(), t = ne(), e = z("div"), n = z("div"), o = z("div"), b(o, "class", "video-icon-img svelte-159ski6"), L(o, "background-image", "url(" + i[18]() + ")"), J(o, "canPlay", i[5]), b(n, "class", "video-icon svelte-159ski6"), J(n, "large", i[4] === "large"), J(n, "small", i[4] === "small"), b(e, "class", "video-play-button-container svelte-159ski6"), J(e, "showPlayButton", i[9]);
|
|
14268
14268
|
},
|
|
14269
14269
|
m(u, h) {
|
|
14270
|
-
c.m(u, h), T(u, t, h), T(u, e, h),
|
|
14270
|
+
c.m(u, h), T(u, t, h), T(u, e, h), Q(e, n), Q(n, o), s || (r = we(o, "click", i[19]), s = !0);
|
|
14271
14271
|
},
|
|
14272
14272
|
p(u, h) {
|
|
14273
|
-
l === (l = a(u)) && c ? c.p(u, h) : (c.d(1), c = l(u), c && (c.c(), c.m(t.parentNode, t))), h & 8 &&
|
|
14273
|
+
l === (l = a(u)) && c ? c.p(u, h) : (c.d(1), c = l(u), c && (c.c(), c.m(t.parentNode, t))), h & 8 && L(o, "background-image", "url(" + u[18]() + ")"), h & 32 && J(o, "canPlay", u[5]), h & 16 && J(n, "large", u[4] === "large"), h & 16 && J(n, "small", u[4] === "small"), h & 512 && J(e, "showPlayButton", u[9]);
|
|
14274
14274
|
},
|
|
14275
14275
|
d(u) {
|
|
14276
14276
|
c.d(u), u && M(t), u && M(e), s = !1, r();
|
|
@@ -14281,7 +14281,7 @@ function p0(i) {
|
|
|
14281
14281
|
let t, e, n, o;
|
|
14282
14282
|
return {
|
|
14283
14283
|
c() {
|
|
14284
|
-
t = z("img"), b(t, "class", "media-content svelte-
|
|
14284
|
+
t = z("img"), b(t, "class", "media-content svelte-159ski6"), b(t, "style", e = `object-fit: ${i[6]};`), Xe(t.src, n = i[2].url) || b(t, "src", n), b(t, "alt", o = i[2].name), b(t, "draggable", !1);
|
|
14285
14285
|
},
|
|
14286
14286
|
m(s, r) {
|
|
14287
14287
|
T(s, t, r);
|
|
@@ -14298,20 +14298,20 @@ function g0(i) {
|
|
|
14298
14298
|
let t, e, n, o, s, r, a;
|
|
14299
14299
|
return {
|
|
14300
14300
|
c() {
|
|
14301
|
-
t = z("video"), b(t, "class", "media-content svelte-
|
|
14301
|
+
t = z("video"), b(t, "class", "media-content svelte-159ski6"), b(t, "style", e = `object-fit: ${i[6]};`), Xe(t.src, n = i[2].videoCoverUrl ? i[2].url : i[2].url + "#t=0.1") || b(t, "src", n), b(t, "poster", o = i[2].videoCoverUrl), b(t, "preload", s = i[2].videoCoverUrl ? "none" : "auto"), b(t, "disablepictureinpicture", ""), t.playsInline = !0, b(t, "paused", ""), t.muted = !0, b(t, "draggable", !1), t.loop = !1, b(t, "crossorigin", ""), t.controls = !1, J(t, "showPlayButton", i[9]);
|
|
14302
14302
|
},
|
|
14303
14303
|
m(l, c) {
|
|
14304
|
-
T(l, t, c), i[
|
|
14305
|
-
we(t, "play", i[
|
|
14306
|
-
we(t, "pause", i[
|
|
14307
|
-
we(t, "click", i[
|
|
14304
|
+
T(l, t, c), i[17](t), r || (a = [
|
|
14305
|
+
we(t, "play", i[14]),
|
|
14306
|
+
we(t, "pause", i[15]),
|
|
14307
|
+
we(t, "click", i[16])
|
|
14308
14308
|
], r = !0);
|
|
14309
14309
|
},
|
|
14310
14310
|
p(l, c) {
|
|
14311
14311
|
c & 64 && e !== (e = `object-fit: ${l[6]};`) && b(t, "style", e), c & 4 && !Xe(t.src, n = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") && b(t, "src", n), c & 4 && o !== (o = l[2].videoCoverUrl) && b(t, "poster", o), c & 4 && s !== (s = l[2].videoCoverUrl ? "none" : "auto") && b(t, "preload", s), c & 512 && J(t, "showPlayButton", l[9]);
|
|
14312
14312
|
},
|
|
14313
14313
|
d(l) {
|
|
14314
|
-
l && M(t), i[
|
|
14314
|
+
l && M(t), i[17](null), r = !1, dt(a);
|
|
14315
14315
|
}
|
|
14316
14316
|
};
|
|
14317
14317
|
}
|
|
@@ -14319,7 +14319,7 @@ function A0(i) {
|
|
|
14319
14319
|
let t, e, n, o;
|
|
14320
14320
|
return {
|
|
14321
14321
|
c() {
|
|
14322
|
-
t = z("img"), b(t, "class", "media-content svelte-
|
|
14322
|
+
t = z("img"), b(t, "class", "media-content svelte-159ski6"), b(t, "style", e = `object-fit: ${i[6]};`), Xe(t.src, n = i[2].videoCoverUrl) || b(t, "src", n), b(t, "alt", o = i[2].name), b(t, "draggable", !1);
|
|
14323
14323
|
},
|
|
14324
14324
|
m(s, r) {
|
|
14325
14325
|
T(s, t, r);
|
|
@@ -14352,49 +14352,51 @@ function v0(i) {
|
|
|
14352
14352
|
};
|
|
14353
14353
|
}
|
|
14354
14354
|
function b0(i, t, e) {
|
|
14355
|
-
let { mediaInstance:
|
|
14356
|
-
|
|
14357
|
-
|
|
14355
|
+
let n, { mediaInstance: o = { paused: !0 } } = t, { tag: s } = t, { media: r } = t, { playButtonIfNeed: a = "withoutText" } = t, { playButtonSizeIfNeed: l = "small" } = t, { canPlay: c = !0 } = t, { objectFit: u = "fill" } = t, { disableVideoIfHavePoster: h = !1 } = t, d, f = !0, p = !1;
|
|
14356
|
+
function v() {
|
|
14357
|
+
e(12, p = (r == null ? void 0 : r.type) === "Video" && Boolean(r.videoCoverUrl));
|
|
14358
|
+
}
|
|
14359
|
+
const g = Mt("mediaStore"), A = Mt("hooks"), y = () => {
|
|
14360
|
+
p || (d == null || d.play(), d == null || d.pause(), e(12, p = !0));
|
|
14358
14361
|
};
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
+
A.on("loadVideoFirstFrame", y), Ze(() => {
|
|
14363
|
+
g.subscribe(({ currentMediaElement: j }) => {
|
|
14364
|
+
j !== d && (d == null || d.pause());
|
|
14362
14365
|
});
|
|
14363
14366
|
});
|
|
14364
|
-
const
|
|
14365
|
-
e(9, f = !1), e(0,
|
|
14366
|
-
event:
|
|
14367
|
+
const w = (j) => {
|
|
14368
|
+
e(9, f = !1), e(0, o.paused = !1, o), g.set({ currentMediaElement: d }), A.emit("playStateChange", {
|
|
14369
|
+
event: j,
|
|
14367
14370
|
state: "playing",
|
|
14368
|
-
tag:
|
|
14371
|
+
tag: s,
|
|
14369
14372
|
mediaInstance: d
|
|
14370
14373
|
});
|
|
14371
|
-
},
|
|
14372
|
-
e(9, f = !0), e(0,
|
|
14373
|
-
event:
|
|
14374
|
+
}, C = (j) => {
|
|
14375
|
+
e(9, f = !0), e(0, o.paused = !0, o), A.emit("playStateChange", {
|
|
14376
|
+
event: j,
|
|
14374
14377
|
state: "paused",
|
|
14375
|
-
tag:
|
|
14378
|
+
tag: s,
|
|
14376
14379
|
mediaInstance: d
|
|
14377
14380
|
});
|
|
14378
|
-
},
|
|
14381
|
+
}, x = (j) => {
|
|
14379
14382
|
d && d.pause();
|
|
14380
14383
|
};
|
|
14381
|
-
function
|
|
14382
|
-
ze[
|
|
14383
|
-
d =
|
|
14384
|
+
function I(j) {
|
|
14385
|
+
ze[j ? "unshift" : "push"](() => {
|
|
14386
|
+
d = j, e(8, d);
|
|
14384
14387
|
});
|
|
14385
14388
|
}
|
|
14386
|
-
const
|
|
14387
|
-
!
|
|
14389
|
+
const S = () => a === "withText" ? bp : a === "withoutText" ? yp : a, k = (j) => {
|
|
14390
|
+
!c || d && (e(8, d.muted = !1, d), d.play());
|
|
14388
14391
|
};
|
|
14389
|
-
return i.$$set = (
|
|
14390
|
-
"mediaInstance" in
|
|
14392
|
+
return i.$$set = (j) => {
|
|
14393
|
+
"mediaInstance" in j && e(0, o = j.mediaInstance), "tag" in j && e(1, s = j.tag), "media" in j && e(2, r = j.media), "playButtonIfNeed" in j && e(3, a = j.playButtonIfNeed), "playButtonSizeIfNeed" in j && e(4, l = j.playButtonSizeIfNeed), "canPlay" in j && e(5, c = j.canPlay), "objectFit" in j && e(6, u = j.objectFit), "disableVideoIfHavePoster" in j && e(7, h = j.disableVideoIfHavePoster);
|
|
14391
14394
|
}, i.$$.update = () => {
|
|
14392
|
-
if (i.$$.dirty & 256 && d && e(9, f = d.paused), i.$$.dirty & 4356 && (
|
|
14393
|
-
const
|
|
14394
|
-
d &&
|
|
14395
|
+
if (i.$$.dirty & 4 && e(13, n = r == null ? void 0 : r.url), i.$$.dirty & 8192 && Boolean(n) && v(), i.$$.dirty & 256 && d && e(9, f = d.paused), i.$$.dirty & 4356 && (r == null ? void 0 : r.type) === "Video" && !p) {
|
|
14396
|
+
const j = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, H = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && j;
|
|
14397
|
+
d && H && d.paused && (document.removeEventListener("WeixinJSBridgeReady", y), document.removeEventListener("touchstart", y), document.removeEventListener("click", y), document.addEventListener("WeixinJSBridgeReady", y), document.addEventListener("touchstart", y), document.addEventListener("click", y));
|
|
14395
14398
|
}
|
|
14396
14399
|
}, [
|
|
14397
|
-
n,
|
|
14398
14400
|
o,
|
|
14399
14401
|
s,
|
|
14400
14402
|
r,
|
|
@@ -14402,17 +14404,19 @@ function b0(i, t, e) {
|
|
|
14402
14404
|
l,
|
|
14403
14405
|
c,
|
|
14404
14406
|
u,
|
|
14407
|
+
h,
|
|
14405
14408
|
d,
|
|
14406
14409
|
f,
|
|
14407
|
-
|
|
14408
|
-
v,
|
|
14409
|
-
h,
|
|
14410
|
+
g,
|
|
14410
14411
|
A,
|
|
14412
|
+
p,
|
|
14413
|
+
n,
|
|
14411
14414
|
w,
|
|
14412
|
-
y,
|
|
14413
14415
|
C,
|
|
14414
|
-
|
|
14415
|
-
I
|
|
14416
|
+
x,
|
|
14417
|
+
I,
|
|
14418
|
+
S,
|
|
14419
|
+
k
|
|
14416
14420
|
];
|
|
14417
14421
|
}
|
|
14418
14422
|
class pl extends se {
|
|
@@ -14438,7 +14442,7 @@ class pl extends se {
|
|
|
14438
14442
|
}
|
|
14439
14443
|
}
|
|
14440
14444
|
function y0(i) {
|
|
14441
|
-
le(i, "svelte-
|
|
14445
|
+
le(i, "svelte-1ut5wm7", ".media-list-wrapper.svelte-1ut5wm7.svelte-1ut5wm7{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}.media-list-wrapper.svelte-1ut5wm7 .media-list.svelte-1ut5wm7{pointer-events:none;position:relative;height:100%;left:50%;top:50%;transform:translate(-50%, -50%)}.media-list-wrapper.svelte-1ut5wm7 .media-list.svelte-1ut5wm7 .sc-carousel__carousel-container,.media-list-wrapper.svelte-1ut5wm7 .media-list.svelte-1ut5wm7 .sc-carousel__content-container{height:100%}.carouselEnabled.svelte-1ut5wm7.svelte-1ut5wm7{pointer-events:auto}");
|
|
14442
14446
|
}
|
|
14443
14447
|
function Sr(i, t, e) {
|
|
14444
14448
|
const n = i.slice();
|
|
@@ -14452,17 +14456,17 @@ function Mr(i) {
|
|
|
14452
14456
|
}
|
|
14453
14457
|
return n = u(i), o = c[n] = l[n](i), {
|
|
14454
14458
|
c() {
|
|
14455
|
-
t = z("div"), e = z("div"), o.c(), b(e, "class", "media-list svelte-
|
|
14459
|
+
t = z("div"), e = z("div"), o.c(), b(e, "class", "media-list svelte-1ut5wm7"), J(e, "carouselEnabled", i[12]), b(t, "class", "media-list-wrapper svelte-1ut5wm7"), J(t, "unfolded", i[5]);
|
|
14456
14460
|
},
|
|
14457
14461
|
m(h, d) {
|
|
14458
|
-
T(h, t, d),
|
|
14462
|
+
T(h, t, d), Q(t, e), c[n].m(e, null), a = !0;
|
|
14459
14463
|
},
|
|
14460
14464
|
p(h, d) {
|
|
14461
14465
|
i = h;
|
|
14462
14466
|
let f = n;
|
|
14463
|
-
n = u(i), n === f ? c[n].p(i, d) : (re(),
|
|
14467
|
+
n = u(i), n === f ? c[n].p(i, d) : (re(), D(c[f], 1, 1, () => {
|
|
14464
14468
|
c[f] = null;
|
|
14465
|
-
}), ae(), o = c[n], o ? o.p(i, d) : (o = c[n] = l[n](i), o.c()), P(o, 1), o.m(e, null)), (!a || d & 32) && J(t, "unfolded", i[5]);
|
|
14469
|
+
}), ae(), o = c[n], o ? o.p(i, d) : (o = c[n] = l[n](i), o.c()), P(o, 1), o.m(e, null)), (!a || d & 4096) && J(e, "carouselEnabled", i[12]), (!a || d & 32) && J(t, "unfolded", i[5]);
|
|
14466
14470
|
},
|
|
14467
14471
|
i(h) {
|
|
14468
14472
|
a || (P(o), h && Se(() => {
|
|
@@ -14475,7 +14479,7 @@ function Mr(i) {
|
|
|
14475
14479
|
}), a = !0);
|
|
14476
14480
|
},
|
|
14477
14481
|
o(h) {
|
|
14478
|
-
|
|
14482
|
+
D(o), s && s.invalidate(), h && (r = tn(t, Fo, i[6] ? {
|
|
14479
14483
|
y: 4,
|
|
14480
14484
|
duration: i[4],
|
|
14481
14485
|
delay: i[3],
|
|
@@ -14516,7 +14520,7 @@ function w0(i) {
|
|
|
14516
14520
|
e || (P(t.$$.fragment, s), e = !0);
|
|
14517
14521
|
},
|
|
14518
14522
|
o(s) {
|
|
14519
|
-
|
|
14523
|
+
D(t.$$.fragment, s), e = !1;
|
|
14520
14524
|
},
|
|
14521
14525
|
d(s) {
|
|
14522
14526
|
q(t, s);
|
|
@@ -14545,7 +14549,7 @@ function C0(i) {
|
|
|
14545
14549
|
e || (P(t.$$.fragment, o), e = !0);
|
|
14546
14550
|
},
|
|
14547
14551
|
o(o) {
|
|
14548
|
-
|
|
14552
|
+
D(t.$$.fragment, o), e = !1;
|
|
14549
14553
|
},
|
|
14550
14554
|
d(o) {
|
|
14551
14555
|
i[17](null), q(t, o);
|
|
@@ -14585,7 +14589,7 @@ function Tr(i) {
|
|
|
14585
14589
|
n || (P(t.$$.fragment, a), n = !0);
|
|
14586
14590
|
},
|
|
14587
14591
|
o(a) {
|
|
14588
|
-
|
|
14592
|
+
D(t.$$.fragment, a), n = !1;
|
|
14589
14593
|
},
|
|
14590
14594
|
d(a) {
|
|
14591
14595
|
q(t, a);
|
|
@@ -14596,7 +14600,7 @@ function P0(i) {
|
|
|
14596
14600
|
let t, e, n = i[10], o = [];
|
|
14597
14601
|
for (let r = 0; r < n.length; r += 1)
|
|
14598
14602
|
o[r] = Tr(Sr(i, n, r));
|
|
14599
|
-
const s = (r) =>
|
|
14603
|
+
const s = (r) => D(o[r], 1, 1, () => {
|
|
14600
14604
|
o[r] = null;
|
|
14601
14605
|
});
|
|
14602
14606
|
return {
|
|
@@ -14633,7 +14637,7 @@ function P0(i) {
|
|
|
14633
14637
|
o(r) {
|
|
14634
14638
|
o = o.filter(Boolean);
|
|
14635
14639
|
for (let a = 0; a < o.length; a += 1)
|
|
14636
|
-
|
|
14640
|
+
D(o[a]);
|
|
14637
14641
|
e = !1;
|
|
14638
14642
|
},
|
|
14639
14643
|
d(r) {
|
|
@@ -14651,7 +14655,7 @@ function E0(i) {
|
|
|
14651
14655
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
14652
14656
|
},
|
|
14653
14657
|
p(o, [s]) {
|
|
14654
|
-
o[5] ? n ? (n.p(o, s), s & 32 && P(n, 1)) : (n = Mr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
14658
|
+
o[5] ? n ? (n.p(o, s), s & 32 && P(n, 1)) : (n = Mr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
14655
14659
|
n = null;
|
|
14656
14660
|
}), ae());
|
|
14657
14661
|
},
|
|
@@ -14659,7 +14663,7 @@ function E0(i) {
|
|
|
14659
14663
|
e || (P(n), e = !0);
|
|
14660
14664
|
},
|
|
14661
14665
|
o(o) {
|
|
14662
|
-
|
|
14666
|
+
D(n), e = !1;
|
|
14663
14667
|
},
|
|
14664
14668
|
d(o) {
|
|
14665
14669
|
n && n.d(o), o && M(t);
|
|
@@ -14667,33 +14671,33 @@ function E0(i) {
|
|
|
14667
14671
|
};
|
|
14668
14672
|
}
|
|
14669
14673
|
function I0(i, t, e) {
|
|
14670
|
-
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: h = 0 } = t, { unfolded: d = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: p } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: g = { autoplay: !0, autoplayVideo: !1 } } = t, A = [],
|
|
14674
|
+
let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: h = 0 } = t, { unfolded: d = !0 } = t, { animation: f = !0 } = t, { mediaItemConfig: p } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: g = { autoplay: !0, autoplayVideo: !1 } } = t, A = [], y, w = null;
|
|
14671
14675
|
const C = Mt("mediaStore");
|
|
14672
14676
|
Ze(() => {
|
|
14673
|
-
|
|
14677
|
+
w = setInterval(
|
|
14674
14678
|
() => {
|
|
14675
|
-
r && (
|
|
14679
|
+
r && (y == null || y.goToNext());
|
|
14676
14680
|
},
|
|
14677
14681
|
3e3
|
|
14678
14682
|
);
|
|
14679
14683
|
}), It(() => {
|
|
14680
|
-
clearInterval(
|
|
14684
|
+
clearInterval(w);
|
|
14681
14685
|
});
|
|
14682
|
-
function
|
|
14683
|
-
i.$$.not_equal(A[
|
|
14686
|
+
function x(k, j) {
|
|
14687
|
+
i.$$.not_equal(A[j], k) && (A[j] = k, e(8, A));
|
|
14684
14688
|
}
|
|
14685
14689
|
function I(k) {
|
|
14686
14690
|
ze[k ? "unshift" : "push"](() => {
|
|
14687
|
-
|
|
14691
|
+
y = k, e(11, y);
|
|
14688
14692
|
});
|
|
14689
14693
|
}
|
|
14690
|
-
const
|
|
14694
|
+
const S = (k) => {
|
|
14691
14695
|
n || C.set({ currentMediaElement: null });
|
|
14692
14696
|
};
|
|
14693
14697
|
return i.$$set = (k) => {
|
|
14694
14698
|
"tag" in k && e(0, a = k.tag), "mediaData" in k && e(1, l = k.mediaData), "inDelay" in k && e(2, c = k.inDelay), "outDelay" in k && e(3, u = k.outDelay), "duration" in k && e(4, h = k.duration), "unfolded" in k && e(5, d = k.unfolded), "animation" in k && e(6, f = k.animation), "mediaItemConfig" in k && e(7, p = k.mediaItemConfig), "enableCarousel" in k && e(14, v = k.enableCarousel), "autoplayConfig" in k && e(15, g = k.autoplayConfig);
|
|
14695
14699
|
}, i.$$.update = () => {
|
|
14696
|
-
i.$$.dirty & 256 && e(9, n = A.every((k) => k.paused)), i.$$.dirty & 16386 && e(12, o = v && (l == null ? void 0 : l.length) > 1), i.$$.dirty & 2 && e(10, s = l), i.$$.dirty & 34304 && (r = s.length > 1 && g.autoplay && n)
|
|
14700
|
+
i.$$.dirty & 256 && e(9, n = A.every((k) => k.paused)), i.$$.dirty & 16386 && e(12, o = v && (l == null ? void 0 : l.length) > 1), i.$$.dirty & 2 && e(10, s = l), i.$$.dirty & 34304 && (r = s.length > 1 && g.autoplay && n);
|
|
14697
14701
|
}, [
|
|
14698
14702
|
a,
|
|
14699
14703
|
l,
|
|
@@ -14706,14 +14710,14 @@ function I0(i, t, e) {
|
|
|
14706
14710
|
A,
|
|
14707
14711
|
n,
|
|
14708
14712
|
s,
|
|
14709
|
-
|
|
14713
|
+
y,
|
|
14710
14714
|
o,
|
|
14711
14715
|
C,
|
|
14712
14716
|
v,
|
|
14713
14717
|
g,
|
|
14714
|
-
|
|
14718
|
+
x,
|
|
14715
14719
|
I,
|
|
14716
|
-
|
|
14720
|
+
S
|
|
14717
14721
|
];
|
|
14718
14722
|
}
|
|
14719
14723
|
class gl extends se {
|
|
@@ -14772,9 +14776,9 @@ function zr(i) {
|
|
|
14772
14776
|
const f = {};
|
|
14773
14777
|
d & 8 && (f.visible = h[3]), t.$set(f);
|
|
14774
14778
|
const p = {};
|
|
14775
|
-
d & 8 && (p.unfolded = h[3]), o.$set(p), h[2] ? c ? (c.p(h, d), d & 4 && P(c, 1)) : (c = Br(h), c.c(), P(c, 1), c.m(r.parentNode, r)) : c && (re(),
|
|
14779
|
+
d & 8 && (p.unfolded = h[3]), o.$set(p), h[2] ? c ? (c.p(h, d), d & 4 && P(c, 1)) : (c = Br(h), c.c(), P(c, 1), c.m(r.parentNode, r)) : c && (re(), D(c, 1, 1, () => {
|
|
14776
14780
|
c = null;
|
|
14777
|
-
}), ae()), h[1] ? u ? (u.p(h, d), d & 2 && P(u, 1)) : (u = jr(h), u.c(), P(u, 1), u.m(a.parentNode, a)) : u && (re(),
|
|
14781
|
+
}), ae()), h[1] ? u ? (u.p(h, d), d & 2 && P(u, 1)) : (u = jr(h), u.c(), P(u, 1), u.m(a.parentNode, a)) : u && (re(), D(u, 1, 1, () => {
|
|
14778
14782
|
u = null;
|
|
14779
14783
|
}), ae());
|
|
14780
14784
|
},
|
|
@@ -14782,7 +14786,7 @@ function zr(i) {
|
|
|
14782
14786
|
l || (P(t.$$.fragment, h), P(o.$$.fragment, h), P(c), P(u), l = !0);
|
|
14783
14787
|
},
|
|
14784
14788
|
o(h) {
|
|
14785
|
-
|
|
14789
|
+
D(t.$$.fragment, h), D(o.$$.fragment, h), D(c), D(u), l = !1;
|
|
14786
14790
|
},
|
|
14787
14791
|
d(h) {
|
|
14788
14792
|
q(t, h), h && M(e), h && M(n), q(o), h && M(s), c && c.d(h), h && M(r), u && u.d(h), h && M(a);
|
|
@@ -14812,7 +14816,7 @@ function Br(i) {
|
|
|
14812
14816
|
n || (P(e.$$.fragment, o), n = !0);
|
|
14813
14817
|
},
|
|
14814
14818
|
o(o) {
|
|
14815
|
-
|
|
14819
|
+
D(e.$$.fragment, o), n = !1;
|
|
14816
14820
|
},
|
|
14817
14821
|
d(o) {
|
|
14818
14822
|
o && M(t), q(e);
|
|
@@ -14851,7 +14855,7 @@ function jr(i) {
|
|
|
14851
14855
|
n || (P(e.$$.fragment, o), n = !0);
|
|
14852
14856
|
},
|
|
14853
14857
|
o(o) {
|
|
14854
|
-
|
|
14858
|
+
D(e.$$.fragment, o), n = !1;
|
|
14855
14859
|
},
|
|
14856
14860
|
d(o) {
|
|
14857
14861
|
o && M(t), q(e);
|
|
@@ -14868,7 +14872,7 @@ function x0(i) {
|
|
|
14868
14872
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
14869
14873
|
},
|
|
14870
14874
|
p(o, [s]) {
|
|
14871
|
-
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = zr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
14875
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = zr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
14872
14876
|
n = null;
|
|
14873
14877
|
}), ae());
|
|
14874
14878
|
},
|
|
@@ -14876,7 +14880,7 @@ function x0(i) {
|
|
|
14876
14880
|
e || (P(n), e = !0);
|
|
14877
14881
|
},
|
|
14878
14882
|
o(o) {
|
|
14879
|
-
|
|
14883
|
+
D(n), e = !1;
|
|
14880
14884
|
},
|
|
14881
14885
|
d(o) {
|
|
14882
14886
|
n && n.d(o), o && M(t);
|
|
@@ -15232,7 +15236,7 @@ function Rr(i) {
|
|
|
15232
15236
|
t = z("div"), n = Ie(e), b(t, "class", "base-tag primary-tag svelte-8mby9k");
|
|
15233
15237
|
},
|
|
15234
15238
|
m(o, s) {
|
|
15235
|
-
T(o, t, s),
|
|
15239
|
+
T(o, t, s), Q(t, n);
|
|
15236
15240
|
},
|
|
15237
15241
|
p(o, s) {
|
|
15238
15242
|
s & 4 && e !== (e = o[0] + "") && Le(n, e);
|
|
@@ -15266,7 +15270,7 @@ function Hr(i) {
|
|
|
15266
15270
|
t = z("div"), n = Ie(e), b(t, "class", "base-tag secondary-tag svelte-8mby9k");
|
|
15267
15271
|
},
|
|
15268
15272
|
m(o, s) {
|
|
15269
|
-
T(o, t, s),
|
|
15273
|
+
T(o, t, s), Q(t, n);
|
|
15270
15274
|
},
|
|
15271
15275
|
p(o, s) {
|
|
15272
15276
|
s & 4 && e !== (e = o[0] + "") && Le(n, e);
|
|
@@ -15300,7 +15304,7 @@ function Gr(i) {
|
|
|
15300
15304
|
t = z("div"), e = z("span"), o = Ie(n), s = ne(), r && r.c(), b(e, "class", "value svelte-8mby9k"), b(t, "class", "price svelte-8mby9k");
|
|
15301
15305
|
},
|
|
15302
15306
|
m(a, l) {
|
|
15303
|
-
T(a, t, l),
|
|
15307
|
+
T(a, t, l), Q(t, e), Q(e, o), Q(t, s), r && r.m(t, null);
|
|
15304
15308
|
},
|
|
15305
15309
|
p(a, l) {
|
|
15306
15310
|
l & 4 && n !== (n = a[2].price.value + "") && Le(o, n), a[2].price.unit ? r ? r.p(a, l) : (r = Wr(a), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
@@ -15317,7 +15321,7 @@ function Wr(i) {
|
|
|
15317
15321
|
t = z("span"), n = Ie(e), b(t, "class", "unit svelte-8mby9k");
|
|
15318
15322
|
},
|
|
15319
15323
|
m(o, s) {
|
|
15320
|
-
T(o, t, s),
|
|
15324
|
+
T(o, t, s), Q(t, n);
|
|
15321
15325
|
},
|
|
15322
15326
|
p(o, s) {
|
|
15323
15327
|
s & 4 && e !== (e = o[2].price.unit + "") && Le(n, e);
|
|
@@ -15334,7 +15338,7 @@ function Nr(i) {
|
|
|
15334
15338
|
t = z("div"), n = Ie(e), b(t, "class", "goto-button goto-icon svelte-8mby9k");
|
|
15335
15339
|
},
|
|
15336
15340
|
m(o, s) {
|
|
15337
|
-
T(o, t, s),
|
|
15341
|
+
T(o, t, s), Q(t, n);
|
|
15338
15342
|
},
|
|
15339
15343
|
p(o, s) {
|
|
15340
15344
|
s & 4 && e !== (e = o[2].highlightText + "") && Le(n, e);
|
|
@@ -15345,8 +15349,8 @@ function Nr(i) {
|
|
|
15345
15349
|
};
|
|
15346
15350
|
}
|
|
15347
15351
|
function W0(i) {
|
|
15348
|
-
var U,
|
|
15349
|
-
let t, e, n, o, s, r, a, l, c, u, h, d, f, p, v = i[2].title + "", g, A,
|
|
15352
|
+
var U, V;
|
|
15353
|
+
let t, e, n, o, s, r, a, l, c, u, h, d, f, p, v = i[2].title + "", g, A, y, w = Je((U = i[2].price) == null ? void 0 : U.value) && ((V = i[2].price) == null ? void 0 : V.value) !== "", C, x;
|
|
15350
15354
|
e = new it({
|
|
15351
15355
|
props: {
|
|
15352
15356
|
visible: i[1],
|
|
@@ -15357,68 +15361,68 @@ function W0(i) {
|
|
|
15357
15361
|
spreadRadius: 75
|
|
15358
15362
|
}
|
|
15359
15363
|
});
|
|
15360
|
-
let I = i[2].brandTags || [],
|
|
15364
|
+
let I = i[2].brandTags || [], S = [];
|
|
15361
15365
|
for (let B = 0; B < I.length; B += 1)
|
|
15362
|
-
|
|
15363
|
-
let k = i[2].tags || [],
|
|
15366
|
+
S[B] = Or(Qr(i, I, B));
|
|
15367
|
+
let k = i[2].tags || [], j = [];
|
|
15364
15368
|
for (let B = 0; B < k.length; B += 1)
|
|
15365
|
-
|
|
15366
|
-
let N =
|
|
15369
|
+
j[B] = Fr(Vr(i, k, B));
|
|
15370
|
+
let N = w && Gr(i), H = i[2].highlightText && Nr(i);
|
|
15367
15371
|
return {
|
|
15368
15372
|
c() {
|
|
15369
15373
|
var B;
|
|
15370
15374
|
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), s = ne(), r = z("div"), a = z("img"), c = ne(), u = z("div");
|
|
15371
|
-
for (let R = 0; R <
|
|
15372
|
-
|
|
15375
|
+
for (let R = 0; R < S.length; R += 1)
|
|
15376
|
+
S[R].c();
|
|
15373
15377
|
h = ne();
|
|
15374
|
-
for (let R = 0; R <
|
|
15375
|
-
|
|
15376
|
-
d = ne(), f = z("div"), p = z("div"), g = Ie(v), A = ne(),
|
|
15378
|
+
for (let R = 0; R < j.length; R += 1)
|
|
15379
|
+
j[R].c();
|
|
15380
|
+
d = ne(), f = z("div"), p = z("div"), g = Ie(v), A = ne(), y = z("div"), N && N.c(), C = ne(), H && H.c(), b(o, "class", "line svelte-8mby9k"), L(o, "transition-delay", i[1] ? Yn + "ms" : Un + Xr - _r - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), Xe(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(u, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(f, "class", "title svelte-8mby9k"), b(y, "class", "footer svelte-8mby9k"), L(y, "height", Je((B = i[2].price) == null ? void 0 : B.value) && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), L(r, "transition-delay", i[1] ? Yn + Un + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), J(t, "unfolded", i[1]), J(t, "folded", i[3]);
|
|
15377
15381
|
},
|
|
15378
15382
|
m(B, R) {
|
|
15379
|
-
T(B, t, R), Z(e, t, null),
|
|
15380
|
-
for (let G = 0; G <
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
for (let G = 0; G <
|
|
15384
|
-
|
|
15385
|
-
|
|
15383
|
+
T(B, t, R), Z(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), Q(r, a), Q(r, c), Q(r, u);
|
|
15384
|
+
for (let G = 0; G < S.length; G += 1)
|
|
15385
|
+
S[G].m(u, null);
|
|
15386
|
+
Q(u, h);
|
|
15387
|
+
for (let G = 0; G < j.length; G += 1)
|
|
15388
|
+
j[G].m(u, null);
|
|
15389
|
+
Q(r, d), Q(r, f), Q(f, p), Q(p, g), Q(r, A), Q(r, y), N && N.m(y, null), Q(y, C), H && H.m(y, null), x = !0;
|
|
15386
15390
|
},
|
|
15387
15391
|
p(B, [R]) {
|
|
15388
15392
|
var F, ee, _;
|
|
15389
15393
|
const G = {};
|
|
15390
|
-
if (R & 2 && (G.visible = B[1]), e.$set(G), R & 2 &&
|
|
15394
|
+
if (R & 2 && (G.visible = B[1]), e.$set(G), R & 2 && L(o, "transition-delay", B[1] ? Yn + "ms" : Un + Xr - _r - 40 + "ms"), (!x || R & 4 && !Xe(a.src, l = B[2].headerPictureUrl)) && b(a, "src", l), R & 4) {
|
|
15391
15395
|
I = B[2].brandTags || [];
|
|
15392
15396
|
let Y;
|
|
15393
15397
|
for (Y = 0; Y < I.length; Y += 1) {
|
|
15394
15398
|
const de = Qr(B, I, Y);
|
|
15395
|
-
|
|
15399
|
+
S[Y] ? S[Y].p(de, R) : (S[Y] = Or(de), S[Y].c(), S[Y].m(u, h));
|
|
15396
15400
|
}
|
|
15397
|
-
for (; Y <
|
|
15398
|
-
|
|
15399
|
-
|
|
15401
|
+
for (; Y < S.length; Y += 1)
|
|
15402
|
+
S[Y].d(1);
|
|
15403
|
+
S.length = I.length;
|
|
15400
15404
|
}
|
|
15401
15405
|
if (R & 4) {
|
|
15402
15406
|
k = B[2].tags || [];
|
|
15403
15407
|
let Y;
|
|
15404
15408
|
for (Y = 0; Y < k.length; Y += 1) {
|
|
15405
15409
|
const de = Vr(B, k, Y);
|
|
15406
|
-
|
|
15410
|
+
j[Y] ? j[Y].p(de, R) : (j[Y] = Fr(de), j[Y].c(), j[Y].m(u, null));
|
|
15407
15411
|
}
|
|
15408
|
-
for (; Y <
|
|
15409
|
-
|
|
15410
|
-
|
|
15412
|
+
for (; Y < j.length; Y += 1)
|
|
15413
|
+
j[Y].d(1);
|
|
15414
|
+
j.length = k.length;
|
|
15411
15415
|
}
|
|
15412
|
-
(!
|
|
15416
|
+
(!x || R & 4) && v !== (v = B[2].title + "") && Le(g, v), R & 4 && (w = Je((F = B[2].price) == null ? void 0 : F.value) && ((ee = B[2].price) == null ? void 0 : ee.value) !== ""), w ? N ? N.p(B, R) : (N = Gr(B), N.c(), N.m(y, C)) : N && (N.d(1), N = null), B[2].highlightText ? H ? H.p(B, R) : (H = Nr(B), H.c(), H.m(y, null)) : H && (H.d(1), H = null), R & 4 && L(y, "height", Je((_ = B[2].price) == null ? void 0 : _.value) && B[2].highlightText ? void 0 : "1rem"), R & 2 && L(r, "transition-delay", B[1] ? Yn + Un + "ms" : "0ms"), (!x || R & 2) && J(t, "unfolded", B[1]), (!x || R & 8) && J(t, "folded", B[3]);
|
|
15413
15417
|
},
|
|
15414
15418
|
i(B) {
|
|
15415
|
-
|
|
15419
|
+
x || (P(e.$$.fragment, B), x = !0);
|
|
15416
15420
|
},
|
|
15417
15421
|
o(B) {
|
|
15418
|
-
|
|
15422
|
+
D(e.$$.fragment, B), x = !1;
|
|
15419
15423
|
},
|
|
15420
15424
|
d(B) {
|
|
15421
|
-
B && M(t), q(e), ut(
|
|
15425
|
+
B && M(t), q(e), ut(S, B), ut(j, B), N && N.d(), H && H.d();
|
|
15422
15426
|
}
|
|
15423
15427
|
};
|
|
15424
15428
|
}
|
|
@@ -15604,7 +15608,7 @@ function Z0(i) {
|
|
|
15604
15608
|
e || (P(r, a), e = !0);
|
|
15605
15609
|
},
|
|
15606
15610
|
o(a) {
|
|
15607
|
-
|
|
15611
|
+
D(r, a), e = !1;
|
|
15608
15612
|
},
|
|
15609
15613
|
d(a) {
|
|
15610
15614
|
a && M(t), r && r.d(a), n = !1, o();
|
|
@@ -15710,7 +15714,7 @@ function Ur(i) {
|
|
|
15710
15714
|
e || (P(t.$$.fragment, n), e = !0);
|
|
15711
15715
|
},
|
|
15712
15716
|
o(n) {
|
|
15713
|
-
|
|
15717
|
+
D(t.$$.fragment, n), e = !1;
|
|
15714
15718
|
},
|
|
15715
15719
|
d(n) {
|
|
15716
15720
|
q(t, n);
|
|
@@ -15721,21 +15725,21 @@ function $0(i) {
|
|
|
15721
15725
|
let t, e, n, o, s, r = i[1] && Ur();
|
|
15722
15726
|
return {
|
|
15723
15727
|
c() {
|
|
15724
|
-
t = z("div"), r && r.c(), e = ne(), n = z("div"), o = z("div"), o.innerHTML = '<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>', b(o, "class", "sound-wave__container svelte-srt2pi"), b(n, "class", "audio-icon svelte-srt2pi"), J(n, "playing", i[0]), b(t, "class", "audio-icon__wrapper svelte-srt2pi"), b(t, "style", i[2]),
|
|
15728
|
+
t = z("div"), r && r.c(), e = ne(), n = z("div"), o = z("div"), o.innerHTML = '<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>', b(o, "class", "sound-wave__container svelte-srt2pi"), b(n, "class", "audio-icon svelte-srt2pi"), J(n, "playing", i[0]), b(t, "class", "audio-icon__wrapper svelte-srt2pi"), b(t, "style", i[2]), L(t, "width", i[5]), L(t, "height", i[5]);
|
|
15725
15729
|
},
|
|
15726
15730
|
m(a, l) {
|
|
15727
|
-
T(a, t, l), r && r.m(t, null),
|
|
15731
|
+
T(a, t, l), r && r.m(t, null), Q(t, e), Q(t, n), Q(n, o), i[7](o), i[8](t), s = !0;
|
|
15728
15732
|
},
|
|
15729
15733
|
p(a, [l]) {
|
|
15730
|
-
a[1] ? r ? l & 2 && P(r, 1) : (r = Ur(), r.c(), P(r, 1), r.m(t, e)) : r && (re(),
|
|
15734
|
+
a[1] ? r ? l & 2 && P(r, 1) : (r = Ur(), r.c(), P(r, 1), r.m(t, e)) : r && (re(), D(r, 1, 1, () => {
|
|
15731
15735
|
r = null;
|
|
15732
|
-
}), ae()), (!s || l & 1) && J(n, "playing", a[0]), (!s || l & 4) && b(t, "style", a[2]), l & 32 &&
|
|
15736
|
+
}), ae()), (!s || l & 1) && J(n, "playing", a[0]), (!s || l & 4) && b(t, "style", a[2]), l & 32 && L(t, "width", a[5]), l & 32 && L(t, "height", a[5]);
|
|
15733
15737
|
},
|
|
15734
15738
|
i(a) {
|
|
15735
15739
|
s || (P(r), s = !0);
|
|
15736
15740
|
},
|
|
15737
15741
|
o(a) {
|
|
15738
|
-
|
|
15742
|
+
D(r), s = !1;
|
|
15739
15743
|
},
|
|
15740
15744
|
d(a) {
|
|
15741
15745
|
a && M(t), r && r.d(), i[7](null), i[8](null);
|
|
@@ -15792,7 +15796,7 @@ function tA(i) {
|
|
|
15792
15796
|
le(i, "svelte-1s6gk4a", ".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{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-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}");
|
|
15793
15797
|
}
|
|
15794
15798
|
function Jr(i) {
|
|
15795
|
-
var A,
|
|
15799
|
+
var A, y;
|
|
15796
15800
|
let t, e, n, o, s, r, a, l, c, u, h, d, f, p, v;
|
|
15797
15801
|
e = new it({
|
|
15798
15802
|
props: {
|
|
@@ -15815,35 +15819,35 @@ function Jr(i) {
|
|
|
15815
15819
|
props: {
|
|
15816
15820
|
unfolded: i[6],
|
|
15817
15821
|
length: i[3],
|
|
15818
|
-
outDelay: i[4] + 20 * Math.min((
|
|
15822
|
+
outDelay: i[4] + 20 * Math.min((y = (A = i[5]) == null ? void 0 : A.length) != null ? y : 10, 15),
|
|
15819
15823
|
useLinearColor: !0
|
|
15820
15824
|
}
|
|
15821
15825
|
}), {
|
|
15822
15826
|
c() {
|
|
15823
|
-
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), s = z("div"), r = z("div"), g && g.c(), a = ne(), l = z("div"), K(c.$$.fragment), h = ne(), K(d.$$.fragment), b(r, "class", "audio-icon svelte-1s6gk4a"), Se(() => i[11].call(l)),
|
|
15827
|
+
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), s = z("div"), r = z("div"), g && g.c(), a = ne(), l = z("div"), K(c.$$.fragment), h = ne(), K(d.$$.fragment), b(r, "class", "audio-icon svelte-1s6gk4a"), Se(() => i[11].call(l)), L(l, "display", "inline-block"), b(s, "class", "wrapper svelte-1s6gk4a"), b(o, "class", "content svelte-1s6gk4a"), b(t, "class", "audio-tag svelte-1s6gk4a"), J(t, "unfolded", i[6]);
|
|
15824
15828
|
},
|
|
15825
|
-
m(
|
|
15826
|
-
T(
|
|
15829
|
+
m(w, C) {
|
|
15830
|
+
T(w, t, C), Z(e, t, null), Q(t, n), Q(t, o), Q(o, s), Q(s, r), g && g.m(r, null), Q(s, a), Q(s, l), Z(c, l, null), u = Pt(l, i[11].bind(l)), Q(t, h), Z(d, t, null), f = !0, p || (v = we(l, "click", i[7]), p = !0);
|
|
15827
15831
|
},
|
|
15828
|
-
p(
|
|
15829
|
-
var k,
|
|
15830
|
-
const
|
|
15831
|
-
C & 64 && (
|
|
15832
|
+
p(w, C) {
|
|
15833
|
+
var k, j;
|
|
15834
|
+
const x = {};
|
|
15835
|
+
C & 64 && (x.visible = w[6]), C & 8 && (x.left = w[3] / 2 + "px"), e.$set(x), w[6] ? g ? (g.p(w, C), C & 64 && P(g, 1)) : (g = Zr(w), g.c(), P(g, 1), g.m(r, null)) : g && (re(), D(g, 1, 1, () => {
|
|
15832
15836
|
g = null;
|
|
15833
15837
|
}), ae());
|
|
15834
15838
|
const I = {};
|
|
15835
|
-
C & 64 && (I.visible =
|
|
15836
|
-
const
|
|
15837
|
-
C & 64 && (
|
|
15839
|
+
C & 64 && (I.visible = w[6]), C & 2 && (I.textUnfolded = w[1]), C & 32 && (I.content = w[5]), c.$set(I);
|
|
15840
|
+
const S = {};
|
|
15841
|
+
C & 64 && (S.unfolded = w[6]), C & 8 && (S.length = w[3]), C & 48 && (S.outDelay = w[4] + 20 * Math.min((j = (k = w[5]) == null ? void 0 : k.length) != null ? j : 10, 15)), d.$set(S), (!f || C & 64) && J(t, "unfolded", w[6]);
|
|
15838
15842
|
},
|
|
15839
|
-
i(
|
|
15840
|
-
f || (P(e.$$.fragment,
|
|
15843
|
+
i(w) {
|
|
15844
|
+
f || (P(e.$$.fragment, w), P(g), P(c.$$.fragment, w), P(d.$$.fragment, w), f = !0);
|
|
15841
15845
|
},
|
|
15842
|
-
o(
|
|
15843
|
-
|
|
15846
|
+
o(w) {
|
|
15847
|
+
D(e.$$.fragment, w), D(g), D(c.$$.fragment, w), D(d.$$.fragment, w), f = !1;
|
|
15844
15848
|
},
|
|
15845
|
-
d(
|
|
15846
|
-
|
|
15849
|
+
d(w) {
|
|
15850
|
+
w && M(t), q(e), g && g.d(), q(c), u(), q(d), p = !1, v();
|
|
15847
15851
|
}
|
|
15848
15852
|
};
|
|
15849
15853
|
}
|
|
@@ -15868,7 +15872,7 @@ function Zr(i) {
|
|
|
15868
15872
|
t = z("div"), K(e.$$.fragment), n = ne(), K(o.$$.fragment), b(t, "class", "audio svelte-1s6gk4a");
|
|
15869
15873
|
},
|
|
15870
15874
|
m(l, c) {
|
|
15871
|
-
T(l, t, c), Z(e, t, null),
|
|
15875
|
+
T(l, t, c), Z(e, t, null), Q(t, n), Z(o, t, null), a = !0;
|
|
15872
15876
|
},
|
|
15873
15877
|
p(l, c) {
|
|
15874
15878
|
i = l;
|
|
@@ -15886,7 +15890,7 @@ function Zr(i) {
|
|
|
15886
15890
|
},
|
|
15887
15891
|
o(l) {
|
|
15888
15892
|
var c, u;
|
|
15889
|
-
|
|
15893
|
+
D(e.$$.fragment, l), D(o.$$.fragment, l), s && s.invalidate(), l && (r = tn(t, Tt, {
|
|
15890
15894
|
duration: 1e3,
|
|
15891
15895
|
delay: 20 * Math.min((u = (c = i[5]) == null ? void 0 : c.length) != null ? u : 10, 15),
|
|
15892
15896
|
easing: _t
|
|
@@ -15914,7 +15918,7 @@ function nA(i) {
|
|
|
15914
15918
|
n || (P(e.$$.fragment, o), n = !0);
|
|
15915
15919
|
},
|
|
15916
15920
|
o(o) {
|
|
15917
|
-
|
|
15921
|
+
D(e.$$.fragment, o), n = !1;
|
|
15918
15922
|
},
|
|
15919
15923
|
d(o) {
|
|
15920
15924
|
o && M(t), q(e);
|
|
@@ -15931,7 +15935,7 @@ function iA(i) {
|
|
|
15931
15935
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
15932
15936
|
},
|
|
15933
15937
|
p(o, [s]) {
|
|
15934
|
-
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = Jr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
15938
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = Jr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
15935
15939
|
n = null;
|
|
15936
15940
|
}), ae());
|
|
15937
15941
|
},
|
|
@@ -15939,7 +15943,7 @@ function iA(i) {
|
|
|
15939
15943
|
e || (P(n), e = !0);
|
|
15940
15944
|
},
|
|
15941
15945
|
o(o) {
|
|
15942
|
-
|
|
15946
|
+
D(n), e = !1;
|
|
15943
15947
|
},
|
|
15944
15948
|
d(o) {
|
|
15945
15949
|
n && n.d(o), o && M(t);
|
|
@@ -16017,20 +16021,20 @@ function qr(i) {
|
|
|
16017
16021
|
}
|
|
16018
16022
|
}), n.$on("play", i[7]), n.$on("pause", i[8]), n.$on("timeupdate", i[9]), n.$on("duration", i[10]), n.$on("audioRef", i[11]), {
|
|
16019
16023
|
c() {
|
|
16020
|
-
t = z("div"), e = z("div"), K(n.$$.fragment), b(e, "class", "audio-tag svelte-58hfjf"),
|
|
16024
|
+
t = z("div"), e = z("div"), K(n.$$.fragment), b(e, "class", "audio-tag svelte-58hfjf"), L(e, "background-color", i[1]), L(e, "color", i[5]), b(t, "class", "audio-tag__wrapper svelte-58hfjf");
|
|
16021
16025
|
},
|
|
16022
16026
|
m(s, r) {
|
|
16023
|
-
T(s, t, r),
|
|
16027
|
+
T(s, t, r), Q(t, e), Z(n, e, null), o = !0;
|
|
16024
16028
|
},
|
|
16025
16029
|
p(s, r) {
|
|
16026
16030
|
const a = {};
|
|
16027
|
-
r & 1 && (a.enable = s[0].state.visible), r & 1 && (a.url = s[0].data.audioUrl), r & 1 && (a.hooksInfo = { tag: s[0] }), r & 8260 && (a.$$scope = { dirty: r, ctx: s }), n.$set(a), r & 2 &&
|
|
16031
|
+
r & 1 && (a.enable = s[0].state.visible), r & 1 && (a.url = s[0].data.audioUrl), r & 1 && (a.hooksInfo = { tag: s[0] }), r & 8260 && (a.$$scope = { dirty: r, ctx: s }), n.$set(a), r & 2 && L(e, "background-color", s[1]), r & 32 && L(e, "color", s[5]);
|
|
16028
16032
|
},
|
|
16029
16033
|
i(s) {
|
|
16030
16034
|
o || (P(n.$$.fragment, s), o = !0);
|
|
16031
16035
|
},
|
|
16032
16036
|
o(s) {
|
|
16033
|
-
|
|
16037
|
+
D(n.$$.fragment, s), o = !1;
|
|
16034
16038
|
},
|
|
16035
16039
|
d(s) {
|
|
16036
16040
|
s && M(t), q(n);
|
|
@@ -16067,7 +16071,7 @@ function cA(i) {
|
|
|
16067
16071
|
t = z("div"), e = z("div"), K(n.$$.fragment), o = ne(), s = z("div"), K(r.$$.fragment), b(e, "class", "audio-icon__wrapper svelte-58hfjf"), b(s, "class", "text svelte-58hfjf"), b(t, "class", "audio__inner svelte-58hfjf");
|
|
16068
16072
|
},
|
|
16069
16073
|
m(l, c) {
|
|
16070
|
-
T(l, t, c),
|
|
16074
|
+
T(l, t, c), Q(t, e), Z(n, e, null), Q(t, o), Q(t, s), Z(r, s, null), a = !0;
|
|
16071
16075
|
},
|
|
16072
16076
|
p(l, c) {
|
|
16073
16077
|
const u = {};
|
|
@@ -16079,7 +16083,7 @@ function cA(i) {
|
|
|
16079
16083
|
a || (P(n.$$.fragment, l), P(r.$$.fragment, l), a = !0);
|
|
16080
16084
|
},
|
|
16081
16085
|
o(l) {
|
|
16082
|
-
|
|
16086
|
+
D(n.$$.fragment, l), D(r.$$.fragment, l), a = !1;
|
|
16083
16087
|
},
|
|
16084
16088
|
d(l) {
|
|
16085
16089
|
l && M(t), q(n), q(r);
|
|
@@ -16096,7 +16100,7 @@ function uA(i) {
|
|
|
16096
16100
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
16097
16101
|
},
|
|
16098
16102
|
p(o, [s]) {
|
|
16099
|
-
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = qr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
16103
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && P(n, 1)) : (n = qr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
16100
16104
|
n = null;
|
|
16101
16105
|
}), ae());
|
|
16102
16106
|
},
|
|
@@ -16104,7 +16108,7 @@ function uA(i) {
|
|
|
16104
16108
|
e || (P(n), e = !0);
|
|
16105
16109
|
},
|
|
16106
16110
|
o(o) {
|
|
16107
|
-
|
|
16111
|
+
D(n), e = !1;
|
|
16108
16112
|
},
|
|
16109
16113
|
d(o) {
|
|
16110
16114
|
n && n.d(o), o && M(t);
|
|
@@ -16135,8 +16139,8 @@ function dA(i, t, e) {
|
|
|
16135
16139
|
var A;
|
|
16136
16140
|
return r.data.backgroundColor === "dark" ? "rgba(0, 0, 0, 0.3)" : r.data.backgroundColor === "light" ? "rgba(255, 255, 255, 0.3)" : (A = r.data.backgroundColor) != null ? A : "rgba(0, 0, 0, 0.3)";
|
|
16137
16141
|
})()), i.$$.dirty & 2 && e(5, s = (() => {
|
|
16138
|
-
const { r: A, g:
|
|
16139
|
-
return (A * 299 +
|
|
16142
|
+
const { r: A, g: y, b: w } = rA(o);
|
|
16143
|
+
return (A * 299 + y * 587 + w * 114) / 1e3 >= 128 ? "rgba(0, 0, 0, 0.6)" : "white";
|
|
16140
16144
|
})());
|
|
16141
16145
|
}, [
|
|
16142
16146
|
r,
|
|
@@ -16175,7 +16179,7 @@ function fA(i) {
|
|
|
16175
16179
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16176
16180
|
},
|
|
16177
16181
|
o(n) {
|
|
16178
|
-
|
|
16182
|
+
D(t.$$.fragment, n), e = !1;
|
|
16179
16183
|
},
|
|
16180
16184
|
d(n) {
|
|
16181
16185
|
q(t, n);
|
|
@@ -16199,7 +16203,7 @@ function mA(i) {
|
|
|
16199
16203
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16200
16204
|
},
|
|
16201
16205
|
o(n) {
|
|
16202
|
-
|
|
16206
|
+
D(t.$$.fragment, n), e = !1;
|
|
16203
16207
|
},
|
|
16204
16208
|
d(n) {
|
|
16205
16209
|
q(t, n);
|
|
@@ -16221,7 +16225,7 @@ function pA(i) {
|
|
|
16221
16225
|
},
|
|
16222
16226
|
p(l, [c]) {
|
|
16223
16227
|
let u = t;
|
|
16224
|
-
t = a(l), t === u ? ~t && r[t].p(l, c) : (e && (re(),
|
|
16228
|
+
t = a(l), t === u ? ~t && r[t].p(l, c) : (e && (re(), D(r[u], 1, 1, () => {
|
|
16225
16229
|
r[u] = null;
|
|
16226
16230
|
}), ae()), ~t ? (e = r[t], e ? e.p(l, c) : (e = r[t] = s[t](l), e.c()), P(e, 1), e.m(n.parentNode, n)) : e = null);
|
|
16227
16231
|
},
|
|
@@ -16229,7 +16233,7 @@ function pA(i) {
|
|
|
16229
16233
|
o || (P(e), o = !0);
|
|
16230
16234
|
},
|
|
16231
16235
|
o(l) {
|
|
16232
|
-
|
|
16236
|
+
D(e), o = !1;
|
|
16233
16237
|
},
|
|
16234
16238
|
d(l) {
|
|
16235
16239
|
~t && r[t].d(l), l && M(n);
|
|
@@ -16298,7 +16302,7 @@ function Kr(i) {
|
|
|
16298
16302
|
n || (P(e.$$.fragment, s), n = !0);
|
|
16299
16303
|
},
|
|
16300
16304
|
o(s) {
|
|
16301
|
-
|
|
16305
|
+
D(e.$$.fragment, s), n = !1;
|
|
16302
16306
|
},
|
|
16303
16307
|
d(s) {
|
|
16304
16308
|
s && M(t), q(e);
|
|
@@ -16315,7 +16319,7 @@ function bA(i) {
|
|
|
16315
16319
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
16316
16320
|
},
|
|
16317
16321
|
p(o, [s]) {
|
|
16318
|
-
o[0].state && o[5] ? n ? (n.p(o, s), s & 33 && P(n, 1)) : (n = Kr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
16322
|
+
o[0].state && o[5] ? n ? (n.p(o, s), s & 33 && P(n, 1)) : (n = Kr(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
16319
16323
|
n = null;
|
|
16320
16324
|
}), ae());
|
|
16321
16325
|
},
|
|
@@ -16323,7 +16327,7 @@ function bA(i) {
|
|
|
16323
16327
|
e || (P(n), e = !0);
|
|
16324
16328
|
},
|
|
16325
16329
|
o(o) {
|
|
16326
|
-
|
|
16330
|
+
D(n), e = !1;
|
|
16327
16331
|
},
|
|
16328
16332
|
d(o) {
|
|
16329
16333
|
n && n.d(o), o && M(t);
|
|
@@ -16392,21 +16396,21 @@ function ea(i) {
|
|
|
16392
16396
|
let r = s(i), a = r(i);
|
|
16393
16397
|
return {
|
|
16394
16398
|
c() {
|
|
16395
|
-
t = z("div"), o && o.c(), e = ne(), a.c(), b(t, "class", "icon"),
|
|
16399
|
+
t = z("div"), o && o.c(), e = ne(), a.c(), b(t, "class", "icon"), L(t, "width", typeof i[0] == "number" ? Ee(i[0]) : i[0]);
|
|
16396
16400
|
},
|
|
16397
16401
|
m(l, c) {
|
|
16398
|
-
T(l, t, c), o && o.m(t, null),
|
|
16402
|
+
T(l, t, c), o && o.m(t, null), Q(t, e), a.m(t, null), n = !0;
|
|
16399
16403
|
},
|
|
16400
16404
|
p(l, c) {
|
|
16401
|
-
l[2] ? o ? c & 4 && P(o, 1) : (o = ta(), o.c(), P(o, 1), o.m(t, e)) : o && (re(),
|
|
16405
|
+
l[2] ? o ? c & 4 && P(o, 1) : (o = ta(), o.c(), P(o, 1), o.m(t, e)) : o && (re(), D(o, 1, 1, () => {
|
|
16402
16406
|
o = null;
|
|
16403
|
-
}), ae()), r === (r = s(l)) && a ? a.p(l, c) : (a.d(1), a = r(l), a && (a.c(), a.m(t, null))), c & 1 &&
|
|
16407
|
+
}), ae()), r === (r = s(l)) && a ? a.p(l, c) : (a.d(1), a = r(l), a && (a.c(), a.m(t, null))), c & 1 && L(t, "width", typeof l[0] == "number" ? Ee(l[0]) : l[0]);
|
|
16404
16408
|
},
|
|
16405
16409
|
i(l) {
|
|
16406
16410
|
n || (P(o), n = !0);
|
|
16407
16411
|
},
|
|
16408
16412
|
o(l) {
|
|
16409
|
-
|
|
16413
|
+
D(o), n = !1;
|
|
16410
16414
|
},
|
|
16411
16415
|
d(l) {
|
|
16412
16416
|
l && M(t), o && o.d(), a.d();
|
|
@@ -16432,7 +16436,7 @@ function ta(i) {
|
|
|
16432
16436
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16433
16437
|
},
|
|
16434
16438
|
o(n) {
|
|
16435
|
-
|
|
16439
|
+
D(t.$$.fragment, n), e = !1;
|
|
16436
16440
|
},
|
|
16437
16441
|
d(n) {
|
|
16438
16442
|
q(t, n);
|
|
@@ -16490,13 +16494,13 @@ function DA(i) {
|
|
|
16490
16494
|
let t, e, n, o = `url(${i[6]})`, s = `steps(${i[11] - 1})`;
|
|
16491
16495
|
return {
|
|
16492
16496
|
c() {
|
|
16493
|
-
t = z("div"), e = z("div"), n = z("div"), b(n, "class", "icon-keyframe svelte-mhs8j5"),
|
|
16497
|
+
t = z("div"), e = z("div"), n = z("div"), b(n, "class", "icon-keyframe svelte-mhs8j5"), L(n, "width", Ee(i[7])), L(n, "height", Ee(i[8])), L(n, "background-image", o), L(n, "animation-duration", i[12]), L(n, "animation-timing-function", s), L(n, "animation-delay", 0), L(n, "background-size", "100% 100%"), L(n, "--keyframe_offset_x", Ee(i[13])), b(e, "class", "icon-keyframe-wrapper svelte-mhs8j5"), L(e, "transform", typeof i[0] == "number" ? `scale(${i[0] / i[9]})` : void 0), b(t, "class", "icon-keyframe-container svelte-mhs8j5"), L(t, "width", typeof i[0] == "number" ? Ee(i[0]) : Ee(i[9])), L(t, "height", typeof i[0] == "number" ? Ee(i[10] * (i[0] / i[9])) : Ee(i[10]));
|
|
16494
16498
|
},
|
|
16495
16499
|
m(r, a) {
|
|
16496
|
-
T(r, t, a),
|
|
16500
|
+
T(r, t, a), Q(t, e), Q(e, n);
|
|
16497
16501
|
},
|
|
16498
16502
|
p(r, a) {
|
|
16499
|
-
$r(r), a & 2 &&
|
|
16503
|
+
$r(r), a & 2 && L(n, "width", Ee(r[7])), a & 2 && L(n, "height", Ee(r[8])), a & 2 && o !== (o = `url(${r[6]})`) && L(n, "background-image", o), a & 2 && L(n, "animation-duration", r[12]), a & 2 && s !== (s = `steps(${r[11] - 1})`) && L(n, "animation-timing-function", s), a & 2 && L(n, "--keyframe_offset_x", Ee(r[13])), a & 3 && L(e, "transform", typeof r[0] == "number" ? `scale(${r[0] / r[9]})` : void 0), a & 3 && L(t, "width", typeof r[0] == "number" ? Ee(r[0]) : Ee(r[9])), a & 3 && L(t, "height", typeof r[0] == "number" ? Ee(r[10] * (r[0] / r[9])) : Ee(r[10]));
|
|
16500
16504
|
},
|
|
16501
16505
|
d(r) {
|
|
16502
16506
|
r && M(t);
|
|
@@ -16516,7 +16520,7 @@ function SA(i) {
|
|
|
16516
16520
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
16517
16521
|
},
|
|
16518
16522
|
p(o, [s]) {
|
|
16519
|
-
o[1] ? n ? (n.p(o, s), s & 2 && P(n, 1)) : (n = ea(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
16523
|
+
o[1] ? n ? (n.p(o, s), s & 2 && P(n, 1)) : (n = ea(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
16520
16524
|
n = null;
|
|
16521
16525
|
}), ae());
|
|
16522
16526
|
},
|
|
@@ -16524,7 +16528,7 @@ function SA(i) {
|
|
|
16524
16528
|
e || (P(n), e = !0);
|
|
16525
16529
|
},
|
|
16526
16530
|
o(o) {
|
|
16527
|
-
|
|
16531
|
+
D(n), e = !1;
|
|
16528
16532
|
},
|
|
16529
16533
|
d(o) {
|
|
16530
16534
|
n && n.d(o), o && M(t);
|
|
@@ -16571,7 +16575,7 @@ function na(i) {
|
|
|
16571
16575
|
t = z("div"), K(e.$$.fragment), n = ne(), o = z("div"), s = Ie(i[1]), b(o, "class", "text svelte-e58ijk"), b(t, "class", "text-wrapper svelte-e58ijk");
|
|
16572
16576
|
},
|
|
16573
16577
|
m(a, l) {
|
|
16574
|
-
T(a, t, l), Z(e, t, null),
|
|
16578
|
+
T(a, t, l), Z(e, t, null), Q(t, n), Q(t, o), Q(o, s), r = !0;
|
|
16575
16579
|
},
|
|
16576
16580
|
p(a, l) {
|
|
16577
16581
|
(!r || l & 2) && Le(s, a[1]);
|
|
@@ -16580,7 +16584,7 @@ function na(i) {
|
|
|
16580
16584
|
r || (P(e.$$.fragment, a), r = !0);
|
|
16581
16585
|
},
|
|
16582
16586
|
o(a) {
|
|
16583
|
-
|
|
16587
|
+
D(e.$$.fragment, a), r = !1;
|
|
16584
16588
|
},
|
|
16585
16589
|
d(a) {
|
|
16586
16590
|
a && M(t), q(e);
|
|
@@ -16598,11 +16602,11 @@ function zA(i) {
|
|
|
16598
16602
|
t = z("div"), K(e.$$.fragment), n = ne(), s && s.c(), b(t, "class", "wrapper svelte-e58ijk");
|
|
16599
16603
|
},
|
|
16600
16604
|
m(r, a) {
|
|
16601
|
-
T(r, t, a), Z(e, t, null),
|
|
16605
|
+
T(r, t, a), Z(e, t, null), Q(t, n), s && s.m(t, null), o = !0;
|
|
16602
16606
|
},
|
|
16603
16607
|
p(r, [a]) {
|
|
16604
16608
|
const l = {};
|
|
16605
|
-
a & 1 && (l.icon = r[0]), e.$set(l), r[1] && r[2] ? s ? (s.p(r, a), a & 6 && P(s, 1)) : (s = na(r), s.c(), P(s, 1), s.m(t, null)) : s && (re(),
|
|
16609
|
+
a & 1 && (l.icon = r[0]), e.$set(l), r[1] && r[2] ? s ? (s.p(r, a), a & 6 && P(s, 1)) : (s = na(r), s.c(), P(s, 1), s.m(t, null)) : s && (re(), D(s, 1, 1, () => {
|
|
16606
16610
|
s = null;
|
|
16607
16611
|
}), ae());
|
|
16608
16612
|
},
|
|
@@ -16610,7 +16614,7 @@ function zA(i) {
|
|
|
16610
16614
|
o || (P(e.$$.fragment, r), P(s), o = !0);
|
|
16611
16615
|
},
|
|
16612
16616
|
o(r) {
|
|
16613
|
-
|
|
16617
|
+
D(e.$$.fragment, r), D(s), o = !1;
|
|
16614
16618
|
},
|
|
16615
16619
|
d(r) {
|
|
16616
16620
|
r && M(t), q(e), s && s.d();
|
|
@@ -16714,7 +16718,7 @@ class OA extends se {
|
|
|
16714
16718
|
}
|
|
16715
16719
|
}
|
|
16716
16720
|
function HA(i) {
|
|
16717
|
-
le(i, "svelte-
|
|
16721
|
+
le(i, "svelte-1pomljv", '@font-face{font-family:"TG-TYPE";font-style:normal;font-weight:400;src:local("TG-TYPE-Bold"), url(data:application/font-woff2;charset=utf-8;base64,T1RUTwAKAIAAAwAgQ0ZGINFD4CEAAAaQAAAHC0dTVUIAAQAAAAANnAAAAApPUy8yaB5pEwAAAjQAAABgY21hcEItjGUAAAT0AAABfGhlYWQS1WWOAAAAtAAAADZoaGVhBfMBxwAAAhAAAAAkaG10eJ9gBO8AAADsAAABJG1heHAASVAAAAAArAAAAAZuYW1lqczkZQAAApQAAAJecG9zdP+4ADIAAAZwAAAAIAAAUAAASQAAAAEAAAABAADkeHeyXw889QADA+gAAAAA2NoRKwAAAADY2hErACn/OAHgAyAAAQADAAIAAAAAAAAB9ABdAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACCAA7AcwAdwIIADMCCAA0AhwAMwISADkCCAAuAfQANAH+ACsB/gApAggANAEeAFABHgBQAR4AUAIIADQCCAAuAR4AUAEeAFABfAAxAAEAAAPo/zgAAAIcACkAKQHgAAEAAAAAAAAAAAAAAAAAAABJAAMCLgGQAAUACAKKAlgAAABLAooCWAAAAV4AMgEsAAAAAAgAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFVLV04AIAAg/xsDIP84AMgD6ADIAAAAAQAAAAAB9AK8AAAAIAAAAAAAEADGAAEAAAAAAAEADAAAAAEAAAAAAAIABAAMAAEAAAAAAAMAGwAQAAEAAAAAAAQAEQArAAEAAAAAAAUAPAA8AAEAAAAAAAYAEAB4AAEAAAAAAAgADAAAAAEAAAAAAAkADAAAAAMAAQQJAAEAGACIAAMAAQQJAAIACACgAAMAAQQJAAMANgCoAAMAAQQJAAQAIgDeAAMAAQQJAAUAeAEAAAMAAQQJAAYAIAF4AAMAAQQJAAgAGACIAAMAAQQJAAkAGACIQUxJQkFCQSBGb250Qm9sZDEuMDAwO1VLV047QUxJQkFCQUZvbnQtQm9sZEFMSUJBQkEgRm9udCBCb2xkVmVyc2lvbiAxLjAwMDtQUyAwMDEuMDAwO2hvdGNvbnYgMS4wLjg4O21ha2VvdGYubGliMi41LjY0Nzc1QUxJQkFCQUZvbnQtQm9sZABBAEwASQBCAEEAQgBBACAARgBvAG4AdABCAG8AbABkADEALgAwADAAMAA7AFUASwBXAE4AOwBBAEwASQBCAEEAQgBBAEYAbwBuAHQALQBCAG8AbABkAEEATABJAEIAQQBCAEEAIABGAG8AbgB0ACAAQgBvAGwAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAMAAwADsAUABTACAAMAAwADEALgAwADAAMAA7AGgAbwB0AGMAbwBuAHYAIAAxAC4AMAAuADgAOAA7AG0AYQBrAGUAbwB0AGYALgBsAGkAYgAyAC4ANQAuADYANAA3ADcANQBBAEwASQBCAEEAQgBBAEYAbwBuAHQALQBCAG8AbABkAAAAAAADAAAAAwAAASIAAQAAAAAAHAADAAEAAAEiAAABBgAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAABCSEMANjc4OTo7PD0+PwAAAAAAAAACAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGwAAAAAAABwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAFoAAAAQABAAAwAAACAALgA5AFoAegCl/xv//wAAACAALAAwAEEAYQCl/xr////hAAAABv/B/7v/nwAAAAEAAAAOAAAAAAAAAAAACgAAAEIASABDAEYARwADAAAAAAAA/7UAMgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAEAgABAQERQUxJQkFCQUZvbnQtQm9sZAABAQEg+A8A+CAB+CEC+BgEtPtc+HT5tAX3KA/3UBGcHAZWEgAHAQENExoiKTpLbmluZS4wMDEuMDAxbW9uZXkudW5pRkYxQm5pbmUuMDAxdW5pRkYxQWNvcHlyaWdodCBtaXNzaW5nQUxJQkFCQSBGb250IEJvbGQAAAEAAQAAIhkAQhkAEQkBhwABigAADQAADwAAZAABiAABiwABiQAADgAASQIAAQCtAK4ArwCwALEAsgCzALQAtQC2ALcAuAC5ALoAuwC8AL0AvgC/AMAAwQDCAMMAxADFAMYAxwDIAMkAygDLAMwAzQDOAM8A0ADRANIA0wDUANUA1gDXANgA2QDaANsA3ADdAN4A3wDgAOEA4gFDAVoBqwIsAloCuAMcAzkDzwQ4BDoEPARRBFMEVQTNBOIE8QUEmPtc0Ky6rKKsuqzHrKPDoa2irLCspq2vraWssKzOAejVrKytrKzYA/gu+bQV+9H+fPfRBj76ORVqSWbNavs6rM2wSqwH7vsVFUXNafs68wfNaRVqZ6wG704VaklFJ6zNsEmsB/c6TxUn+zqt9xnNB6z7DhX7Bfs69wWsO++6anRpwwfv+0EV+wX7OvcFB/cZahUnXO8GrFMVamsHRVwF8Wr7OqwG0boFRawGDg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4OrIr5UQH3OPdUA/ebihVmaZSdbB9Mr2TL0xr3vgewlK2eqh7Kr86y1BuvrIJ5qh/HZrJIQhr7vgdngmp5bR5OZ0tkQxv46ARUX2FSH/u+B1a5YMDAs7TCHve+B8RjtVYeDnD4utkB93HzA/cL+QgVPfH8vPP5UgcOrIn5UgG++DYD+GmJFfw28wb3svfUBZ2glKSnGsNduFBWXF1UiB4ijgaMsJWsnqoIyLHMstYbsa6Ceawfy2ezSUAaVndXZ2Me+2/7jQX3pwYOrIvy92Tz90ryEr/zM/L3SvMu8hPy+B/3/xUT7LCwpMDDGq6CrHqoHsZnTK5DG2lrg3puH09pZk5EGobykAe4tba6vrViXFZiYlcedyOfBhPyxLpdUlJcW1JSXLvEH5ojfAdllGiebB5LsM5j1xuwrpSeqx/KsLPO1xrKcMNerx4OwPL1Affi8gP4dPdlFWD4fPshBvuJ/HkF+wH3ryPy87YH+8z1Ffc69+QF++QHDrb3ZNf3ZfAB9zX3YwP3nRZlaJSebB9LsGPO1xrzBlK6XMTEubrEHtcHxF26UlJcXFIeI/g0+BYh+677JAaorK2ZsBuwroJ4qx/LZrNHPxo/B2aCaHhrHktmR2NAGw6si/X3b/IBufX3b/ID95n4QBWAg4uKhh/3EfelBfsHBvtK/CMFfnCFbm0aZJVnnmoeSrLPYdobsq6Vnqwfy7K10dgasoGueKwey2RHtT4b+9YETlu7yMe8vcfHvVlPT1laTx8OmIr5UQG/+B8D93iKFfsIBvdo+OYF+6T2+B8oBg6iifL3bPX3QPEStvNB8vc/8jXxE/L4EvgHFRPss7Cnu78arYOreqgexWpNr0YbaWyDem4fUmlmTUcaXqBftGAeE/JWYmROSxpklWieax5Ksc9i2BuxrpWerB/LsbTP2BrHaMVath4T7PsN93QVu7FjXFtlZltcZbC7urGzuh8T8oX8ghVPW7zHx7q6yMa9W1BPWVpQHw6i96Tz92/0AbTz93DzA/hp+HkVsIGveKwezmNFtUAbZGeBeGofSmNiRT8aZJVnnmseSrHPYtoboAb7EvukBfcHBvdL+CEFmaySqaQa+9gWxry+yJ6dhoGcHq12oWZmGk5YW1BMXLnKHg4gCiEK+11L91IlCvdiyhWtb6hpJgoeJAoOIQogCqz3pe/3b/UBufX3bfQD+G74dxWyga94rB7NZEW0PhtlaIF4ah9KY2FFPxo7tkTPZh6MjIqKjB+TiJCIjYoIjgaCoKGHoRuanY6QoB+IgfsB+6QF9wcG9y/4IgWYppGnqhr7a/sCFVBbvMjHu7zGyLxbTk5aWk4fDvtd+AojCoz7jBUmCh8kCq1vqGkeDvtdi/cS94wjCvwKBCIKDiD3ru8BvPeuA7z4EhUn967vBw4eoDf/DAmLDAv47BT4exWcEwAHAQFBXW97ipCarPcv8+7yAfdl8gP4aPf6FfIjB+r3gwUiBi77gwWHBjH3gwUkBuP7gwUnJPcxKPsxI/cx+y/y9y/3MPP7MO4GDvtdi/cSJQr3JBZkcqOzsKSksrCkcWdlcnFmHw6up6eurm+naGhvb2hop2+uHwv3EiUK9yP4ChUiCgt3SgWxBrnmBZGVj5eZGgsB2/cSAwtobm5paqBzqoYLAAABAAAAAAAAAAAAAA==) format("woff2")}*{-webkit-tap-highlight-color:transparent}.content__container.svelte-1pomljv{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.withAnimation.svelte-1pomljv{transition:opacity 0.3s linear}.content__container.unClickable.svelte-1pomljv{pointer-events:none !important}.content__container.unClickable.svelte-1pomljv *{pointer-events:none !important}.content__wrapper.svelte-1pomljv{pointer-events:none;width:100%;height:100%}.content__container.hide.svelte-1pomljv{opacity:0;pointer-events:none}.content__container.hide.svelte-1pomljv *{pointer-events:none !important}.content__container.disable.svelte-1pomljv{display:none}.content.svelte-1pomljv{position:relative;width:100%;height:100%;font-size:0.75rem;line-height:1.125rem;color:#fff}.content.svelte-1pomljv:not(.unfolded){pointer-events:none}.content.svelte-1pomljv:not(.unfolded) *{pointer-events:none !important}');
|
|
16718
16722
|
}
|
|
16719
16723
|
function FA(i) {
|
|
16720
16724
|
let t, e;
|
|
@@ -16752,23 +16756,23 @@ function GA(i) {
|
|
|
16752
16756
|
return ~(o = d(i)) && (s = h[o] = u[o](i)), {
|
|
16753
16757
|
c() {
|
|
16754
16758
|
var f;
|
|
16755
|
-
t = z("div"), e = z("div"), n = z("div"), s && s.c(), b(n, "class", "content svelte-
|
|
16759
|
+
t = z("div"), e = z("div"), n = z("div"), s && s.c(), b(n, "class", "content svelte-1pomljv"), J(n, "unfolded", (f = i[1].state) == null ? void 0 : f.unfolded), b(e, "class", "content__wrapper svelte-1pomljv"), b(t, "class", "content__container svelte-1pomljv"), b(t, "data-id", r = i[1].id), J(t, "disable", i[1].enabled === !1), J(t, "hide", i[4]), J(t, "withAnimation", i[0]), J(t, "unClickable", i[1].clickable === !1), L(t, "width", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0), L(t, "height", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0);
|
|
16756
16760
|
},
|
|
16757
16761
|
m(f, p) {
|
|
16758
|
-
T(f, t, p),
|
|
16762
|
+
T(f, t, p), Q(t, e), Q(e, n), ~o && h[o].m(n, null), a = !0, l || (c = we(t, "click", Ia(i[13])), l = !0);
|
|
16759
16763
|
},
|
|
16760
16764
|
p(f, p) {
|
|
16761
16765
|
var g;
|
|
16762
16766
|
let v = o;
|
|
16763
|
-
o = d(f), o === v ? ~o && h[o].p(f, p) : (s && (re(),
|
|
16767
|
+
o = d(f), o === v ? ~o && h[o].p(f, p) : (s && (re(), D(h[v], 1, 1, () => {
|
|
16764
16768
|
h[v] = null;
|
|
16765
|
-
}), ae()), ~o ? (s = h[o], s ? s.p(f, p) : (s = h[o] = u[o](f), s.c()), P(s, 1), s.m(n, null)) : s = null), (!a || p & 2) && J(n, "unfolded", (g = f[1].state) == null ? void 0 : g.unfolded), (!a || p & 2 && r !== (r = f[1].id)) && b(t, "data-id", r), (!a || p & 2) && J(t, "disable", f[1].enabled === !1), (!a || p & 16) && J(t, "hide", f[4]), (!a || p & 1) && J(t, "withAnimation", f[0]), (!a || p & 2) && J(t, "unClickable", f[1].clickable === !1), p & 2 &&
|
|
16769
|
+
}), ae()), ~o ? (s = h[o], s ? s.p(f, p) : (s = h[o] = u[o](f), s.c()), P(s, 1), s.m(n, null)) : s = null), (!a || p & 2) && J(n, "unfolded", (g = f[1].state) == null ? void 0 : g.unfolded), (!a || p & 2 && r !== (r = f[1].id)) && b(t, "data-id", r), (!a || p & 2) && J(t, "disable", f[1].enabled === !1), (!a || p & 16) && J(t, "hide", f[4]), (!a || p & 1) && J(t, "withAnimation", f[0]), (!a || p & 2) && J(t, "unClickable", f[1].clickable === !1), p & 2 && L(t, "width", f[1].stickType === "Plane" || f[1].contentType === "MediaModel" ? "100%" : 0), p & 2 && L(t, "height", f[1].stickType === "Plane" || f[1].contentType === "MediaModel" ? "100%" : 0);
|
|
16766
16770
|
},
|
|
16767
16771
|
i(f) {
|
|
16768
16772
|
a || (P(s), a = !0);
|
|
16769
16773
|
},
|
|
16770
16774
|
o(f) {
|
|
16771
|
-
|
|
16775
|
+
D(s), a = !1;
|
|
16772
16776
|
},
|
|
16773
16777
|
d(f) {
|
|
16774
16778
|
f && M(t), ~o && h[o].d(), l = !1, c();
|
|
@@ -16794,7 +16798,7 @@ function WA(i) {
|
|
|
16794
16798
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16795
16799
|
},
|
|
16796
16800
|
o(n) {
|
|
16797
|
-
|
|
16801
|
+
D(t.$$.fragment, n), e = !1;
|
|
16798
16802
|
},
|
|
16799
16803
|
d(n) {
|
|
16800
16804
|
q(t, n);
|
|
@@ -16820,7 +16824,7 @@ function NA(i) {
|
|
|
16820
16824
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16821
16825
|
},
|
|
16822
16826
|
o(n) {
|
|
16823
|
-
|
|
16827
|
+
D(t.$$.fragment, n), e = !1;
|
|
16824
16828
|
},
|
|
16825
16829
|
d(n) {
|
|
16826
16830
|
q(t, n);
|
|
@@ -16846,7 +16850,7 @@ function _A(i) {
|
|
|
16846
16850
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16847
16851
|
},
|
|
16848
16852
|
o(n) {
|
|
16849
|
-
|
|
16853
|
+
D(t.$$.fragment, n), e = !1;
|
|
16850
16854
|
},
|
|
16851
16855
|
d(n) {
|
|
16852
16856
|
q(t, n);
|
|
@@ -16872,7 +16876,7 @@ function XA(i) {
|
|
|
16872
16876
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16873
16877
|
},
|
|
16874
16878
|
o(n) {
|
|
16875
|
-
|
|
16879
|
+
D(t.$$.fragment, n), e = !1;
|
|
16876
16880
|
},
|
|
16877
16881
|
d(n) {
|
|
16878
16882
|
q(t, n);
|
|
@@ -16898,7 +16902,7 @@ function YA(i) {
|
|
|
16898
16902
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16899
16903
|
},
|
|
16900
16904
|
o(n) {
|
|
16901
|
-
|
|
16905
|
+
D(t.$$.fragment, n), e = !1;
|
|
16902
16906
|
},
|
|
16903
16907
|
d(n) {
|
|
16904
16908
|
q(t, n);
|
|
@@ -16924,7 +16928,7 @@ function UA(i) {
|
|
|
16924
16928
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16925
16929
|
},
|
|
16926
16930
|
o(n) {
|
|
16927
|
-
|
|
16931
|
+
D(t.$$.fragment, n), e = !1;
|
|
16928
16932
|
},
|
|
16929
16933
|
d(n) {
|
|
16930
16934
|
q(t, n);
|
|
@@ -16950,7 +16954,7 @@ function JA(i) {
|
|
|
16950
16954
|
e || (P(t.$$.fragment, n), e = !0);
|
|
16951
16955
|
},
|
|
16952
16956
|
o(n) {
|
|
16953
|
-
|
|
16957
|
+
D(t.$$.fragment, n), e = !1;
|
|
16954
16958
|
},
|
|
16955
16959
|
d(n) {
|
|
16956
16960
|
q(t, n);
|
|
@@ -16972,7 +16976,7 @@ function ZA(i) {
|
|
|
16972
16976
|
},
|
|
16973
16977
|
p(l, [c]) {
|
|
16974
16978
|
let u = t;
|
|
16975
|
-
t = a(l), t === u ? r[t].p(l, c) : (re(),
|
|
16979
|
+
t = a(l), t === u ? r[t].p(l, c) : (re(), D(r[u], 1, 1, () => {
|
|
16976
16980
|
r[u] = null;
|
|
16977
16981
|
}), ae(), e = r[t], e ? e.p(l, c) : (e = r[t] = s[t](l), e.c()), P(e, 1), e.m(n.parentNode, n));
|
|
16978
16982
|
},
|
|
@@ -16980,7 +16984,7 @@ function ZA(i) {
|
|
|
16980
16984
|
o || (P(e), o = !0);
|
|
16981
16985
|
},
|
|
16982
16986
|
o(l) {
|
|
16983
|
-
|
|
16987
|
+
D(e), o = !1;
|
|
16984
16988
|
},
|
|
16985
16989
|
d(l) {
|
|
16986
16990
|
r[t].d(l), l && M(n);
|
|
@@ -16994,16 +16998,16 @@ function qA(i, t, e) {
|
|
|
16994
16998
|
function A(C) {
|
|
16995
16999
|
C ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
|
|
16996
17000
|
}
|
|
16997
|
-
function
|
|
16998
|
-
var
|
|
16999
|
-
return !(!
|
|
17001
|
+
function y(C, x, I) {
|
|
17002
|
+
var S, k;
|
|
17003
|
+
return !(!x.visible || !x.enabled || !I.visible || !((S = C.state) != null && S.visible) || ((k = C.temporaryState) == null ? void 0 : k.visible) === !1 || Ve(C) && C.mediaVisible === !1);
|
|
17000
17004
|
}
|
|
17001
|
-
const
|
|
17005
|
+
const w = (C) => h.emit("click", { event: C, target: "TagContent", tag: u });
|
|
17002
17006
|
return i.$$set = (C) => {
|
|
17003
17007
|
"withAnimation" in C && e(0, c = C.withAnimation), "tag" in C && e(1, u = C.tag), "hooks" in C && e(2, h = C.hooks), "state" in C && e(5, d = C.state), "mediaStore" in C && e(6, f = C.mediaStore), "temporaryState" in C && e(7, p = C.temporaryState);
|
|
17004
17008
|
}, i.$$.update = () => {
|
|
17005
|
-
var C,
|
|
17006
|
-
i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (
|
|
17009
|
+
var C, x, I, S, k, j, N, H, U, V, B;
|
|
17010
|
+
i.$$.dirty & 2 && e(11, n = (C = u.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(10, o = (x = u.state) == null ? void 0 : x.visible), i.$$.dirty & 162 && e(12, s = d.visible && p.visible && ((I = u.state) == null ? void 0 : I.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !y(u, d, p)), i.$$.dirty & 4096 && A(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== g && (e(9, g = n), n ? (k = (S = u.hooks).emit) == null || k.call(S, "unfolded") : (N = u == null ? void 0 : (j = u.hooks).emit) == null || N.call(j, "folded")), o !== void 0 && o !== v && (e(8, v = o), o ? (U = (H = u.hooks).emit) == null || U.call(H, "show") : (B = (V = u.hooks).emit) == null || B.call(V, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
|
|
17007
17011
|
}, [
|
|
17008
17012
|
c,
|
|
17009
17013
|
u,
|
|
@@ -17018,7 +17022,7 @@ function qA(i, t, e) {
|
|
|
17018
17022
|
o,
|
|
17019
17023
|
n,
|
|
17020
17024
|
s,
|
|
17021
|
-
|
|
17025
|
+
w
|
|
17022
17026
|
];
|
|
17023
17027
|
}
|
|
17024
17028
|
class Il extends se {
|
|
@@ -17060,21 +17064,21 @@ function $A(i) {
|
|
|
17060
17064
|
}
|
|
17061
17065
|
}), {
|
|
17062
17066
|
c() {
|
|
17063
|
-
t = z("div"), e = ne(), n = z("div"), K(o.$$.fragment), s = ne(), r = z("div"), a = ne(), l = z("div"), K(c.$$.fragment), b(t, "class", "tag-point-click-helper svelte-yex9rb"), b(r, "class", "tag-unfolded-point svelte-yex9rb"),
|
|
17067
|
+
t = z("div"), e = ne(), n = z("div"), K(o.$$.fragment), s = ne(), r = z("div"), a = ne(), l = z("div"), K(c.$$.fragment), b(t, "class", "tag-point-click-helper svelte-yex9rb"), b(r, "class", "tag-unfolded-point svelte-yex9rb"), L(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), b(l, "class", "tag-folded-point svelte-yex9rb"), L(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), b(n, "class", "tag-point-wrapper svelte-yex9rb"), J(n, "unfolded", i[0]), J(n, "folded", i[3]), L(n, "width", Ee(i[1])), L(n, "height", Ee(i[1]));
|
|
17064
17068
|
},
|
|
17065
17069
|
m(f, p) {
|
|
17066
|
-
T(f, t, p), T(f, e, p), T(f, n, p), Z(o, n, null),
|
|
17070
|
+
T(f, t, p), T(f, e, p), T(f, n, p), Z(o, n, null), Q(n, s), Q(n, r), Q(n, a), Q(n, l), Z(c, l, null), u = !0, h || (d = we(t, "click", i[4]), h = !0);
|
|
17067
17071
|
},
|
|
17068
17072
|
p(f, [p]) {
|
|
17069
|
-
p & 8 &&
|
|
17073
|
+
p & 8 && L(r, "transition-delay", (f[3] ? f[5] : 0) + "ms");
|
|
17070
17074
|
const v = {};
|
|
17071
|
-
p & 4 && (v.icon = f[2]), p & 2 && (v.width = f[1]), c.$set(v), p & 8 &&
|
|
17075
|
+
p & 4 && (v.icon = f[2]), p & 2 && (v.width = f[1]), c.$set(v), p & 8 && L(l, "transition-delay", (f[3] ? f[5] : 0) + "ms"), (!u || p & 1) && J(n, "unfolded", f[0]), (!u || p & 8) && J(n, "folded", f[3]), p & 2 && L(n, "width", Ee(f[1])), p & 2 && L(n, "height", Ee(f[1]));
|
|
17072
17076
|
},
|
|
17073
17077
|
i(f) {
|
|
17074
17078
|
u || (P(o.$$.fragment, f), P(c.$$.fragment, f), u = !0);
|
|
17075
17079
|
},
|
|
17076
17080
|
o(f) {
|
|
17077
|
-
|
|
17081
|
+
D(o.$$.fragment, f), D(c.$$.fragment, f), u = !1;
|
|
17078
17082
|
},
|
|
17079
17083
|
d(f) {
|
|
17080
17084
|
f && M(t), f && M(e), f && M(n), q(o), q(c), h = !1, d();
|
|
@@ -17100,9 +17104,9 @@ function ev(i, t, e) {
|
|
|
17100
17104
|
}, i.$$.update = () => {
|
|
17101
17105
|
var p, v, g, A;
|
|
17102
17106
|
i.$$.dirty & 64 && e(0, n = (p = l.state) == null ? void 0 : p.unfolded), i.$$.dirty & 1 && e(3, o = !n), i.$$.dirty & 64 && e(2, s = (g = (v = l.style) == null ? void 0 : v.point) != null && g.url ? (A = l.style) == null ? void 0 : A.point : { url: wp }), i.$$.dirty & 64 && e(1, r = (() => {
|
|
17103
|
-
var
|
|
17104
|
-
const
|
|
17105
|
-
return typeof
|
|
17107
|
+
var w, C, x;
|
|
17108
|
+
const y = (x = (C = (w = l.style) == null ? void 0 : w.point) == null ? void 0 : C.size) != null ? x : "S";
|
|
17109
|
+
return typeof y == "number" ? y : y === "S" ? 18 : y === "M" ? 20 : y === "L" ? 24 : y === "XL" ? 28 : 18;
|
|
17106
17110
|
})());
|
|
17107
17111
|
}, h(), [n, r, s, o, d, f, l];
|
|
17108
17112
|
}
|
|
@@ -17157,7 +17161,7 @@ function ov(i) {
|
|
|
17157
17161
|
e || (P(t.$$.fragment, n), e = !0);
|
|
17158
17162
|
},
|
|
17159
17163
|
o(n) {
|
|
17160
|
-
|
|
17164
|
+
D(t.$$.fragment, n), e = !1;
|
|
17161
17165
|
},
|
|
17162
17166
|
d(n) {
|
|
17163
17167
|
q(t, n);
|
|
@@ -17198,7 +17202,7 @@ function rv(i) {
|
|
|
17198
17202
|
e || (P(t.$$.fragment, n), e = !0);
|
|
17199
17203
|
},
|
|
17200
17204
|
o(n) {
|
|
17201
|
-
|
|
17205
|
+
D(t.$$.fragment, n), e = !1;
|
|
17202
17206
|
},
|
|
17203
17207
|
d(n) {
|
|
17204
17208
|
q(t, n);
|
|
@@ -17218,26 +17222,26 @@ function av(i) {
|
|
|
17218
17222
|
}
|
|
17219
17223
|
return r = v(i), a = p[r] = f[r](i), {
|
|
17220
17224
|
c() {
|
|
17221
|
-
t = z("div"), e = z("div"), o.c(), s = ne(), a.c(), b(e, "class", "wrapper svelte-pzwdws"), b(e, "data-tag-unfolded", i[8]), b(e, "data-tag-id", i[11]), b(e, "data-content-type", l = i[1].contentType),
|
|
17225
|
+
t = z("div"), e = z("div"), o.c(), s = ne(), a.c(), b(e, "class", "wrapper svelte-pzwdws"), b(e, "data-tag-unfolded", i[8]), b(e, "data-tag-id", i[11]), b(e, "data-content-type", l = i[1].contentType), L(e, "left", i[7]), L(e, "top", i[6]), L(e, "z-index", i[5]), b(t, "class", "tag svelte-pzwdws"), b(t, "data-tag-id", i[11]), J(t, "unClickable", i[1].clickable === !1), J(t, "disable", i[10]), J(t, "hide", i[9]), J(t, "withAnimation", i[0]);
|
|
17222
17226
|
},
|
|
17223
17227
|
m(g, A) {
|
|
17224
|
-
T(g, t, A),
|
|
17228
|
+
T(g, t, A), Q(t, e), h[n].m(e, null), Q(e, s), p[r].m(e, null), c = !0;
|
|
17225
17229
|
},
|
|
17226
17230
|
p(g, [A]) {
|
|
17227
|
-
let
|
|
17228
|
-
n = d(g), n ===
|
|
17229
|
-
h[
|
|
17231
|
+
let y = n;
|
|
17232
|
+
n = d(g), n === y ? h[n].p(g, A) : (re(), D(h[y], 1, 1, () => {
|
|
17233
|
+
h[y] = null;
|
|
17230
17234
|
}), ae(), o = h[n], o ? o.p(g, A) : (o = h[n] = u[n](g), o.c()), P(o, 1), o.m(e, s));
|
|
17231
|
-
let
|
|
17232
|
-
r = v(g), r ===
|
|
17233
|
-
p[
|
|
17234
|
-
}), ae(), a = p[r], a ? a.p(g, A) : (a = p[r] = f[r](g), a.c()), P(a, 1), a.m(e, null)), (!c || A & 256) && b(e, "data-tag-unfolded", g[8]), (!c || A & 2048) && b(e, "data-tag-id", g[11]), (!c || A & 2 && l !== (l = g[1].contentType)) && b(e, "data-content-type", l), A & 128 &&
|
|
17235
|
+
let w = r;
|
|
17236
|
+
r = v(g), r === w ? p[r].p(g, A) : (re(), D(p[w], 1, 1, () => {
|
|
17237
|
+
p[w] = null;
|
|
17238
|
+
}), ae(), a = p[r], a ? a.p(g, A) : (a = p[r] = f[r](g), a.c()), P(a, 1), a.m(e, null)), (!c || A & 256) && b(e, "data-tag-unfolded", g[8]), (!c || A & 2048) && b(e, "data-tag-id", g[11]), (!c || A & 2 && l !== (l = g[1].contentType)) && b(e, "data-content-type", l), A & 128 && L(e, "left", g[7]), A & 64 && L(e, "top", g[6]), A & 32 && L(e, "z-index", g[5]), (!c || A & 2048) && b(t, "data-tag-id", g[11]), (!c || A & 2) && J(t, "unClickable", g[1].clickable === !1), (!c || A & 1024) && J(t, "disable", g[10]), (!c || A & 512) && J(t, "hide", g[9]), (!c || A & 1) && J(t, "withAnimation", g[0]);
|
|
17235
17239
|
},
|
|
17236
17240
|
i(g) {
|
|
17237
17241
|
c || (P(o), P(a), c = !0);
|
|
17238
17242
|
},
|
|
17239
17243
|
o(g) {
|
|
17240
|
-
|
|
17244
|
+
D(o), D(a), c = !1;
|
|
17241
17245
|
},
|
|
17242
17246
|
d(g) {
|
|
17243
17247
|
g && M(t), h[n].d(), p[r].d();
|
|
@@ -17247,11 +17251,11 @@ function av(i) {
|
|
|
17247
17251
|
function lv(i, t, e) {
|
|
17248
17252
|
let n, o, s, r, a, l, c, u, h, { withAnimation: d = !1 } = t, { tag: f } = t, { mediaStore: p } = t, { state: v } = t, { temporaryState: g } = t;
|
|
17249
17253
|
const A = Mt("hooks");
|
|
17250
|
-
return i.$$set = (
|
|
17251
|
-
"withAnimation" in
|
|
17254
|
+
return i.$$set = (y) => {
|
|
17255
|
+
"withAnimation" in y && e(0, d = y.withAnimation), "tag" in y && e(1, f = y.tag), "mediaStore" in y && e(2, p = y.mediaStore), "state" in y && e(3, v = y.state), "temporaryState" in y && e(4, g = y.temporaryState);
|
|
17252
17256
|
}, i.$$.update = () => {
|
|
17253
|
-
var
|
|
17254
|
-
i.$$.dirty & 2 && e(13, n = (() => !(f.contentType === "Link" || f.contentType === "VRLink" || f.contentType === "PanoLink" || f.contentType === "Audio" && f.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => f.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = f.id), i.$$.dirty & 2 && e(10, r = !((
|
|
17257
|
+
var y, w, C, x, I, S, k, j;
|
|
17258
|
+
i.$$.dirty & 2 && e(13, n = (() => !(f.contentType === "Link" || f.contentType === "VRLink" || f.contentType === "PanoLink" || f.contentType === "Audio" && f.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => f.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = f.id), i.$$.dirty & 2 && e(10, r = !((y = f.pointTagStyle) != null && y.leftPercent) || !((w = f.pointTagStyle) != null && w.topPercent) || f.enabled === !1 || !f.state), i.$$.dirty & 2 && e(9, a = !((C = f.state) != null && C.visible) || ((x = f.temporaryState) == null ? void 0 : x.visible) === !1), i.$$.dirty & 2 && e(8, l = (I = f.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(7, c = ((S = f.pointTagStyle) == null ? void 0 : S.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((k = f.pointTagStyle) == null ? void 0 : k.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (j = f.state) != null && j.unfolded ? 1 : 0);
|
|
17255
17259
|
}, [
|
|
17256
17260
|
d,
|
|
17257
17261
|
f,
|
|
@@ -17328,7 +17332,7 @@ function sa(i) {
|
|
|
17328
17332
|
},
|
|
17329
17333
|
o(a) {
|
|
17330
17334
|
for (let l = 0; l < e.length; l += 1)
|
|
17331
|
-
|
|
17335
|
+
D(e[l]);
|
|
17332
17336
|
o = !1;
|
|
17333
17337
|
},
|
|
17334
17338
|
d(a) {
|
|
@@ -17366,7 +17370,7 @@ function ra(i, t) {
|
|
|
17366
17370
|
o || (P(n.$$.fragment, s), o = !0);
|
|
17367
17371
|
},
|
|
17368
17372
|
o(s) {
|
|
17369
|
-
|
|
17373
|
+
D(n.$$.fragment, s), o = !1;
|
|
17370
17374
|
},
|
|
17371
17375
|
d(s) {
|
|
17372
17376
|
s && M(e), q(n, s);
|
|
@@ -17383,7 +17387,7 @@ function dv(i) {
|
|
|
17383
17387
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
17384
17388
|
},
|
|
17385
17389
|
p(o, [s]) {
|
|
17386
|
-
o[3].enabled ? n ? (n.p(o, s), s & 8 && P(n, 1)) : (n = sa(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(),
|
|
17390
|
+
o[3].enabled ? n ? (n.p(o, s), s & 8 && P(n, 1)) : (n = sa(o), n.c(), P(n, 1), n.m(t.parentNode, t)) : n && (re(), D(n, 1, 1, () => {
|
|
17387
17391
|
n = null;
|
|
17388
17392
|
}), ae());
|
|
17389
17393
|
},
|
|
@@ -17391,7 +17395,7 @@ function dv(i) {
|
|
|
17391
17395
|
e || (P(n), e = !0);
|
|
17392
17396
|
},
|
|
17393
17397
|
o(o) {
|
|
17394
|
-
|
|
17398
|
+
D(n), e = !1;
|
|
17395
17399
|
},
|
|
17396
17400
|
d(o) {
|
|
17397
17401
|
n && n.d(o), o && M(t);
|
|
@@ -17528,7 +17532,7 @@ class gv extends pv {
|
|
|
17528
17532
|
getTagById(e) {
|
|
17529
17533
|
const n = this.tags.find((o) => o.id === e);
|
|
17530
17534
|
if (!n) {
|
|
17531
|
-
console.
|
|
17535
|
+
console.warn(`error: can not find tag id ${e} by getTagById()`);
|
|
17532
17536
|
return;
|
|
17533
17537
|
}
|
|
17534
17538
|
return n;
|
|
@@ -18074,8 +18078,8 @@ class wv extends gv {
|
|
|
18074
18078
|
this.mediaStore.set({ currentMediaElement: null });
|
|
18075
18079
|
}
|
|
18076
18080
|
updateTagCss3DObjectMatrix(e, n) {
|
|
18077
|
-
var v, g, A,
|
|
18078
|
-
const o = (A = (g = (v = e.mergedConfig) == null ? void 0 : v.tag3DConfig) == null ? void 0 : g.ratio) != null ? A : 216e-5, s = (
|
|
18081
|
+
var v, g, A, y;
|
|
18082
|
+
const o = (A = (g = (v = e.mergedConfig) == null ? void 0 : v.tag3DConfig) == null ? void 0 : g.ratio) != null ? A : 216e-5, s = (y = e.tag3DContentSvelte) == null ? void 0 : y.domContainer.css3DObject;
|
|
18079
18083
|
if (!s)
|
|
18080
18084
|
return;
|
|
18081
18085
|
const r = Ve(e) ? e.data.mediaPosition : e.position;
|
|
@@ -18522,7 +18526,7 @@ ve.prototype._onTouchEvent = function(i, t) {
|
|
|
18522
18526
|
};
|
|
18523
18527
|
function xl(i) {
|
|
18524
18528
|
const t = new E.Box3(), e = new E.Vector3();
|
|
18525
|
-
if (i.
|
|
18529
|
+
if (i.traverse((n) => {
|
|
18526
18530
|
var s;
|
|
18527
18531
|
if (n.name === "shadow")
|
|
18528
18532
|
return;
|
|
@@ -18531,14 +18535,14 @@ function xl(i) {
|
|
|
18531
18535
|
if ((s = o == null ? void 0 : o.attributes) != null && s.position) {
|
|
18532
18536
|
const r = o.attributes.position;
|
|
18533
18537
|
for (let a = 0, l = r.count; a < l; a++)
|
|
18534
|
-
e.fromBufferAttribute(r, a).applyMatrix4(n.
|
|
18538
|
+
e.fromBufferAttribute(r, a).applyMatrix4(n.matrix), t.expandByPoint(e);
|
|
18535
18539
|
} else
|
|
18536
18540
|
o.vertices.forEach((r) => {
|
|
18537
|
-
const a = r.clone().applyMatrix4(n.
|
|
18541
|
+
const a = r.clone().applyMatrix4(n.matrix);
|
|
18538
18542
|
t.expandByPoint(a);
|
|
18539
18543
|
});
|
|
18540
18544
|
}), !t.isEmpty())
|
|
18541
|
-
return t
|
|
18545
|
+
return t;
|
|
18542
18546
|
}
|
|
18543
18547
|
class Ln {
|
|
18544
18548
|
constructor(t, e) {
|
|
@@ -19628,12 +19632,12 @@ class _v extends Ln {
|
|
|
19628
19632
|
if (this.rotations.length === 1)
|
|
19629
19633
|
return h.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
|
|
19630
19634
|
{
|
|
19631
|
-
const A = this.rotations[this.rotations.length - 1],
|
|
19632
|
-
if (
|
|
19635
|
+
const A = this.rotations[this.rotations.length - 1], y = this.rotations[this.rotations.length - 2], w = h.angleTo(y.vector), C = h.angleTo(A.vector), x = A.vector.angleTo(y.vector);
|
|
19636
|
+
if (x === 0 || C === 0 || w === 0)
|
|
19633
19637
|
return;
|
|
19634
|
-
if (
|
|
19638
|
+
if (w > C && w > x)
|
|
19635
19639
|
return A.direction;
|
|
19636
|
-
if (
|
|
19640
|
+
if (w < x && C < x || w < C && C > x)
|
|
19637
19641
|
return !A.direction;
|
|
19638
19642
|
}
|
|
19639
19643
|
})();
|
|
@@ -19735,7 +19739,7 @@ class Xv extends Ln {
|
|
|
19735
19739
|
this.scale(n), console.log("%c RectangleScaleController dragging", "color: #49de1b");
|
|
19736
19740
|
}
|
|
19737
19741
|
scale(e) {
|
|
19738
|
-
var
|
|
19742
|
+
var j, N;
|
|
19739
19743
|
if (!this.startInfo)
|
|
19740
19744
|
return;
|
|
19741
19745
|
const n = this.originObject3D, { startPoint: o, plane: s } = this.startInfo, r = this.helperObject3D.cornerPositions;
|
|
@@ -19748,30 +19752,30 @@ class Xv extends Ln {
|
|
|
19748
19752
|
const U = new $(0, 0, 0);
|
|
19749
19753
|
if (!this.startInfo)
|
|
19750
19754
|
return U;
|
|
19751
|
-
const
|
|
19755
|
+
const V = (H === "ew" ? h : d).clone(), B = c.clone().projectOnVector(V), R = a.clone().projectOnVector(V), G = l.clone().projectOnVector(V);
|
|
19752
19756
|
if (R.equals(B))
|
|
19753
19757
|
return U;
|
|
19754
19758
|
if (H === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
19755
|
-
const _ = new $().subVectors(R, G), Y = _.x < 0 &&
|
|
19759
|
+
const _ = new $().subVectors(R, G), Y = _.x < 0 && V.x >= 0, de = _.y < 0 && V.y >= 0, he = _.z < 0 && V.z >= 0;
|
|
19756
19760
|
this.startInfo.dragPointInCenterBottom = Y || de || he;
|
|
19757
19761
|
}
|
|
19758
19762
|
if (H === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
19759
|
-
const _ = new $().subVectors(R, G), Y = _.x < 0 &&
|
|
19763
|
+
const _ = new $().subVectors(R, G), Y = _.x < 0 && V.x >= 0, de = _.y < 0 && V.y >= 0, he = _.z < 0 && V.z >= 0;
|
|
19760
19764
|
this.startInfo.dragPointInCenterLeft = Y || de || he;
|
|
19761
19765
|
}
|
|
19762
19766
|
const F = new $().subVectors(R, B), ee = F.length();
|
|
19763
19767
|
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), U) : F;
|
|
19764
19768
|
}, p = f("ew"), v = f("ns"), g = () => {
|
|
19765
19769
|
const H = p;
|
|
19766
|
-
this.helperObject3D.cornerPositions.forEach((U,
|
|
19770
|
+
this.helperObject3D.cornerPositions.forEach((U, V) => {
|
|
19767
19771
|
var B;
|
|
19768
|
-
(B = this.startInfo) != null && B.dragPointInCenterLeft ? (
|
|
19772
|
+
(B = this.startInfo) != null && B.dragPointInCenterLeft ? (V === 0 || V === 3) && U.add(H) : (V === 1 || V === 2) && U.add(H);
|
|
19769
19773
|
});
|
|
19770
19774
|
}, A = () => {
|
|
19771
19775
|
const H = v;
|
|
19772
|
-
this.helperObject3D.cornerPositions.forEach((U,
|
|
19776
|
+
this.helperObject3D.cornerPositions.forEach((U, V) => {
|
|
19773
19777
|
var B;
|
|
19774
|
-
(B = this.startInfo) != null && B.dragPointInCenterBottom ? (
|
|
19778
|
+
(B = this.startInfo) != null && B.dragPointInCenterBottom ? (V === 0 || V === 1) && U.add(H) : (V === 2 || V === 3) && U.add(H);
|
|
19775
19779
|
});
|
|
19776
19780
|
};
|
|
19777
19781
|
switch (u) {
|
|
@@ -19785,10 +19789,10 @@ class Xv extends Ln {
|
|
|
19785
19789
|
case "nwse":
|
|
19786
19790
|
g(), A();
|
|
19787
19791
|
}
|
|
19788
|
-
const
|
|
19789
|
-
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(
|
|
19790
|
-
const I = new $().addVectors(r[0], r[2]).divideScalar(2),
|
|
19791
|
-
n.applyMatrix4(k), (
|
|
19792
|
+
const y = new $().subVectors(r[1], r[0]).length() / h.length(), w = new $().subVectors(r[3], r[0]).length() / d.length(), C = new $(y, w, 1), x = new E.Matrix4().scale(C);
|
|
19793
|
+
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(x) : n.scale.applyMatrix4(x), o.position.copy(a);
|
|
19794
|
+
const I = new $().addVectors(r[0], r[2]).divideScalar(2), S = new $().subVectors(I, l), k = new E.Matrix4().setPosition(S);
|
|
19795
|
+
n.applyMatrix4(k), (j = this.helperObject3D.css3DInstance) == null || j.css3DObject.applyMatrix4(k), (N = this.helperObject3D.plane) == null || N.applyMatrix4(k), this.hooks.emit("applyObjectScale", { matrix4: x }), this.hooks.emit("applyObjectPosition", { matrix4: k }), this.render();
|
|
19792
19796
|
}
|
|
19793
19797
|
dragEnd() {
|
|
19794
19798
|
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render(), console.log("%c RectangleScaleController dragEnd", "color: #e94e4e"));
|
|
@@ -19899,11 +19903,11 @@ class $v extends mi {
|
|
|
19899
19903
|
o.addControllers({ scaleController: v.helperController }), s.push(() => v.dispose()), ga(this.five).then(() => {
|
|
19900
19904
|
var g, A;
|
|
19901
19905
|
if (e.isCSS3DObjectPlus) {
|
|
19902
|
-
const
|
|
19903
|
-
if (!
|
|
19906
|
+
const y = e;
|
|
19907
|
+
if (!y || y.mode !== "front")
|
|
19904
19908
|
return;
|
|
19905
|
-
const
|
|
19906
|
-
|
|
19909
|
+
const w = (g = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? g : Aa(this.five);
|
|
19910
|
+
w && (this.css3DObjectParentMap.set(y, y.parent), y.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(w), (A = this.css3DRender.getBehindCSS3DObjectGroup()) == null || A.add(y), this.css3DRender.render(this.five.camera));
|
|
19907
19911
|
}
|
|
19908
19912
|
});
|
|
19909
19913
|
} else {
|