@realsee/dnalogel 2.2.2 → 2.2.3
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 +13 -13
- package/dist/index.js +874 -874
- package/dist/index.umd.js +13 -13
- package/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoTagPluginController.html +4 -4
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/LinkType.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/PointType.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- 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 +4 -4
- 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 +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/ContentTypeMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/LineJson.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/OpenParameter.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/PointJson.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeyArray.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/VERSION.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoDoorLabelPlugin/Controller.js +51 -51
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ import * as P from "three";
|
|
|
34
34
|
import { Vector3 as Z, Group as Ci, Raycaster as Tt, MeshBasicMaterial as qt, CanvasTexture as ka, AnimationMixer as Da, Color as tn, TextureLoader as ur, Vector2 as je, PlaneGeometry as La, sRGBEncoding as Sa, Mesh as En, CurvePath as za, LineCurve3 as Ma, TubeGeometry as Ta, ShaderMaterial as ja, SphereGeometry as Ba, DoubleSide as fr, RingGeometry as Qa, Quaternion as hr, Euler as Xi, Object3D as Ra } from "three";
|
|
35
35
|
import { CSS3DObject as mr, CSS3DRenderer as Yi } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
36
36
|
import { Line as pr } from "@realsee/five/line";
|
|
37
|
-
import { SvelteComponent as te, init as ne, safe_not_equal as ie, append_styles as ce, element as O, text as Le, space as V, attr as b, set_style as R, toggle_class as q, insert as T, append as Q, listen as Pe, set_data as Se, noop as re, detach as j, add_render_callback as Re, add_resize_listener as gt, group_outros as ue, update_keyed_each as Ye, outro_and_destroy_block as at, check_outros as fe, transition_in as
|
|
37
|
+
import { SvelteComponent as te, init as ne, safe_not_equal as ie, append_styles as ce, element as O, text as Le, space as V, attr as b, set_style as R, toggle_class as q, insert as T, append as Q, listen as Pe, set_data as Se, noop as re, detach as j, add_render_callback as Re, add_resize_listener as gt, group_outros as ue, update_keyed_each as Ye, outro_and_destroy_block as at, check_outros as fe, transition_in as x, transition_out as M, globals as Oa, empty as pe, create_component as _, mount_component as K, destroy_component as $, src_url_equal as et, HtmlTag as xn, binding_callbacks as Qe, assign as Ee, get_spread_update as ze, destroy_block as gr, destroy_each as tt, svg_element as be, run_all as Ei, null_to_empty as Te, create_in_transition as jt, create_out_transition as Nt, bubble as Ha, create_slot as Et, set_attributes as kn, update_slot_base as Pt, get_all_dirty_from_scope as It, get_slot_changes as xt, compute_rest_props as Dn, exclude_internal_props as Ar, stop_propagation as Pi } from "svelte/internal";
|
|
38
38
|
import { onDestroy as At, onMount as Ue, afterUpdate as Ii, beforeUpdate as xi, createEventDispatcher as Fa, setContext as ai, tick as Ga, getContext as _t } from "svelte";
|
|
39
39
|
import { linear as li, cubicInOut as Kt, cubicOut as Na } from "svelte/easing";
|
|
40
40
|
import { fade as St, draw as Ln, fly as Ui } from "svelte/transition";
|
|
@@ -494,9 +494,9 @@ class Ka extends qa {
|
|
|
494
494
|
let p = [];
|
|
495
495
|
const g = this;
|
|
496
496
|
g.tween = Va({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: v }) => {
|
|
497
|
-
var
|
|
497
|
+
var C;
|
|
498
498
|
if (g.tweening = !0, !g.ready)
|
|
499
|
-
return a.clearRect(0, 0, g.canvas[f].width, g.canvas[f].height), (
|
|
499
|
+
return a.clearRect(0, 0, g.canvas[f].width, g.canvas[f].height), (C = g.tween) == null ? void 0 : C.stop();
|
|
500
500
|
const A = Math.floor(v);
|
|
501
501
|
if (!p.find((y) => y === A)) {
|
|
502
502
|
if (p.push(A), console.log("__debug__", l, l[A], A), m.push(Un(l[A], g.clientWidth, g.clientHeight)), m.length < 3)
|
|
@@ -587,85 +587,85 @@ const Hg = (i, t) => {
|
|
|
587
587
|
}), t == null ? void 0 : t.config), r = new P.Scene(), a = new xa(60);
|
|
588
588
|
let l = new P.Object3D(), c, d;
|
|
589
589
|
{
|
|
590
|
-
const
|
|
591
|
-
|
|
590
|
+
const w = new P.DirectionalLight(16777215, 0.5);
|
|
591
|
+
w.position.copy(new P.Vector3(1, 1, 1)), r.add(w);
|
|
592
592
|
}
|
|
593
593
|
{
|
|
594
|
-
const
|
|
595
|
-
r.add(
|
|
594
|
+
const w = new P.DirectionalLight(16777215, 0.3);
|
|
595
|
+
r.add(w);
|
|
596
596
|
}
|
|
597
597
|
{
|
|
598
|
-
const
|
|
599
|
-
r.add(
|
|
598
|
+
const w = new P.AmbientLight(16777215, 0.3);
|
|
599
|
+
r.add(w);
|
|
600
600
|
}
|
|
601
601
|
r.add(l);
|
|
602
602
|
const f = () => {
|
|
603
603
|
if (!!i.renderer)
|
|
604
604
|
return n || (n = new P.WebGLRenderer({ antialias: !1, alpha: !0 }), n.setPixelRatio(i.renderer.getPixelRatio()), n.outputEncoding = P.sRGBEncoding, n.setClearColor(1579548, 0), n.autoClear = !0), n;
|
|
605
605
|
}, u = () => {
|
|
606
|
-
l.traverse((
|
|
607
|
-
|
|
608
|
-
}), r.remove(l), l = new P.Object3D(), r.add(l),
|
|
606
|
+
l.traverse((w) => {
|
|
607
|
+
w instanceof P.Mesh && [].concat(w.material).forEach((D) => D.dispose());
|
|
608
|
+
}), r.remove(l), l = new P.Object3D(), r.add(l), C();
|
|
609
609
|
}, m = () => {
|
|
610
610
|
c = v(i.model, a.fov, a.aspect), d = i.model.bounding.getCenter(new P.Vector3());
|
|
611
|
-
function
|
|
611
|
+
function w(D) {
|
|
612
612
|
const H = D.clone();
|
|
613
613
|
return H.uniforms.modelAlpha.value = 1, H.uniforms.map.value && (H.uniforms.map.value.needsUpdate = !0), H;
|
|
614
614
|
}
|
|
615
615
|
function L(D) {
|
|
616
616
|
if (D instanceof P.Mesh) {
|
|
617
|
-
const H = D.geometry,
|
|
618
|
-
return new P.Mesh(H,
|
|
617
|
+
const H = D.geometry, B = Array.isArray(D.material) ? D.material.map(w) : w(D.material);
|
|
618
|
+
return new P.Mesh(H, B);
|
|
619
619
|
} else if (D instanceof P.Group) {
|
|
620
620
|
const H = new P.Group();
|
|
621
|
-
return D.children.forEach((
|
|
621
|
+
return D.children.forEach((B) => H.add(L(B))), H;
|
|
622
622
|
} else {
|
|
623
623
|
const H = new P.Object3D();
|
|
624
|
-
return D.children.forEach((
|
|
624
|
+
return D.children.forEach((B) => H.add(L(B))), H;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
r.remove(l), l = L(i.model), r.add(l),
|
|
628
|
-
}, p = (
|
|
627
|
+
r.remove(l), l = L(i.model), r.add(l), C();
|
|
628
|
+
}, p = (w, L = {}) => {
|
|
629
629
|
const D = f();
|
|
630
630
|
if (!D)
|
|
631
631
|
return;
|
|
632
|
-
|
|
633
|
-
const H = window.getComputedStyle(
|
|
634
|
-
H !== "relative" && H !== "absolute" && H !== "fixed" && H !== "sticky" && (
|
|
635
|
-
}, g = (
|
|
632
|
+
w.appendChild(D.domElement), g(L);
|
|
633
|
+
const H = window.getComputedStyle(w).position;
|
|
634
|
+
H !== "relative" && H !== "absolute" && H !== "fixed" && H !== "sticky" && (w.style.position = "relative");
|
|
635
|
+
}, g = (w = {}) => {
|
|
636
636
|
if (!n)
|
|
637
637
|
return;
|
|
638
638
|
const D = n.domElement.parentNode;
|
|
639
639
|
if (D != null && D.nodeName) {
|
|
640
|
-
const { width: H = D.offsetWidth, height:
|
|
641
|
-
n.setSize(H,
|
|
640
|
+
const { width: H = D.offsetWidth, height: B = D.offsetHeight } = w;
|
|
641
|
+
n.setSize(H, B), a.aspect = H / B, a.updateProjectionMatrix();
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
C();
|
|
644
644
|
};
|
|
645
|
-
function v(
|
|
646
|
-
const H =
|
|
645
|
+
function v(w, L, D) {
|
|
646
|
+
const H = w.bounding, B = Math.pow(
|
|
647
647
|
Math.pow(H.max.x - H.min.x + 1, 2) + Math.pow(H.max.y - H.min.y + 1, 2) + Math.pow(H.max.z - H.min.z + 1, 2),
|
|
648
648
|
1 / 2
|
|
649
649
|
);
|
|
650
|
-
let F =
|
|
651
|
-
return D < 1 && (F = F / D), isNaN(F) ?
|
|
650
|
+
let F = B / 2 / Math.tan(Math.PI * L / 360);
|
|
651
|
+
return D < 1 && (F = F / D), isNaN(F) ? B : F;
|
|
652
652
|
}
|
|
653
|
-
function A(
|
|
654
|
-
return i.work.observers[
|
|
653
|
+
function A(w) {
|
|
654
|
+
return i.work.observers[w].standingPosition.clone();
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const C = () => {
|
|
657
657
|
if (!c || !d)
|
|
658
658
|
return;
|
|
659
|
-
const
|
|
660
|
-
|
|
659
|
+
const w = i.getPose();
|
|
660
|
+
w.fov = a.fov, w.offset = d, w.distance = c, typeof s.lockedLatitude == "number" && (w.latitude = s.lockedLatitude), typeof s.lockedLongitude == "number" && (w.longitude = s.lockedLongitude), typeof s.lockedPanoIndex == "number" && (w.offset = A(s.lockedPanoIndex)), s.lookAtCurrentCamera && (w.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), a.setFromPose(w), e = !0;
|
|
661
661
|
}, y = () => {
|
|
662
662
|
e !== !0 || !n || !n.domElement.parentNode || n.domElement.parentNode.offsetWidth === 0 || (n.render(r, a), e = !1);
|
|
663
663
|
}, I = () => {
|
|
664
664
|
n && n.dispose(), n = null;
|
|
665
|
-
},
|
|
666
|
-
Object.assign(s,
|
|
665
|
+
}, k = (w) => {
|
|
666
|
+
Object.assign(s, w), C();
|
|
667
667
|
};
|
|
668
|
-
return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate",
|
|
668
|
+
return Object.assign(window, { camera: a }), i.on("modelLoaded", m), i.on("modelWillLoad", u), i.on("cameraDirectionUpdate", C), i.on("dispose", I), i.on("renderFrame", y), i.on("cameraPositionUpdate", C), { appendTo: p, refresh: g, changeConfigs: k };
|
|
669
669
|
};
|
|
670
670
|
function $a(i) {
|
|
671
671
|
return typeof Symbol == "undefined" ? `$Symbol<${i}>$` : Symbol(i);
|
|
@@ -734,8 +734,8 @@ class Cr extends mr {
|
|
|
734
734
|
else {
|
|
735
735
|
const I = document.createElement("div");
|
|
736
736
|
I.style.width = `${d}px`, I.style.height = `${f}px`, I.style.pointerEvents = "none";
|
|
737
|
-
const
|
|
738
|
-
e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${
|
|
737
|
+
const k = o / a;
|
|
738
|
+
e.style.position = "absolute", e.style.left = "0", e.style.top = "0", e.style.width = `${k * d}px`, e.style.height = `${k * f}px`, I.appendChild(e), m = I;
|
|
739
739
|
}
|
|
740
740
|
super(m);
|
|
741
741
|
h(this, "version", wr);
|
|
@@ -759,8 +759,8 @@ class Cr extends mr {
|
|
|
759
759
|
e.classList.add(`${nl}__container`);
|
|
760
760
|
const p = new Z().subVectors(n[1], n[0]), g = new Z().subVectors(n[3], n[0]), v = new Z().crossVectors(p, g).normalize();
|
|
761
761
|
this.lookAt(v);
|
|
762
|
-
const A = this.up.clone().applyQuaternion(this.quaternion),
|
|
763
|
-
this.rotateOnWorldAxis(y, A.angleTo(
|
|
762
|
+
const A = this.up.clone().applyQuaternion(this.quaternion), C = g.clone(), y = new Z().crossVectors(A, C).normalize();
|
|
763
|
+
this.rotateOnWorldAxis(y, A.angleTo(C)), this.position.copy(u);
|
|
764
764
|
}
|
|
765
765
|
changeMode(e, n) {
|
|
766
766
|
if (e === this.mode)
|
|
@@ -812,12 +812,12 @@ class Pr {
|
|
|
812
812
|
const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: f } = o, u = [], { css3DObject: m, opacityMesh: p } = this.createObject(s, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: f });
|
|
813
813
|
d.id = `container--${m.uuid}`;
|
|
814
814
|
const g = l === "front" && !de.frontModeStore, v = l === "behind" && !de.behindModeStore;
|
|
815
|
-
l === "front" && this.initGlobalModeStore("front"), l === "behind" && this.initGlobalModeStore("behind", o.scene), m.hooks.on("changeMode", (E, S,
|
|
815
|
+
l === "front" && this.initGlobalModeStore("front"), l === "behind" && this.initGlobalModeStore("behind", o.scene), m.hooks.on("changeMode", (E, S, z) => {
|
|
816
816
|
var ae, le, me;
|
|
817
817
|
if (E === S)
|
|
818
818
|
return;
|
|
819
|
-
E === "front" && this.initGlobalModeStore("front"), E === "behind" && this.initGlobalModeStore("behind",
|
|
820
|
-
const N = S === "front" ? de.frontModeStore : de.behindModeStore,
|
|
819
|
+
E === "front" && this.initGlobalModeStore("front"), E === "behind" && this.initGlobalModeStore("behind", z);
|
|
820
|
+
const N = S === "front" ? de.frontModeStore : de.behindModeStore, X = E === "front" ? de.frontModeStore : de.behindModeStore, ee = S === "behind" ? this.store.behindModeCSS3DObjects : this.store.frontModeCSS3DObjects, W = E === "behind" ? this.store.behindModeCSS3DObjects : this.store.frontModeCSS3DObjects;
|
|
821
821
|
if (!ee || !W)
|
|
822
822
|
return console.error(`${Ct}: changeMode error: prevObjects or nextObjects is undefined`);
|
|
823
823
|
const U = ee[m.uuid];
|
|
@@ -825,13 +825,13 @@ class Pr {
|
|
|
825
825
|
return console.error(`${Ct}: changeMode error: prevObject is undefined`);
|
|
826
826
|
if (E === "behind") {
|
|
827
827
|
const ye = (ae = U.opacityMesh) != null ? ae : this.createOpacityMesh(U.css3DObject);
|
|
828
|
-
N == null || N.css3DScene.remove(U.css3DObject), W[m.uuid] = { css3DObject: m, opacityMesh: ye, visible: !0, enabled: !0, mode: E, scene:
|
|
828
|
+
N == null || N.css3DScene.remove(U.css3DObject), W[m.uuid] = { css3DObject: m, opacityMesh: ye, visible: !0, enabled: !0, mode: E, scene: z }, X == null || X.css3DScene.add(m), z == null || z.add(ye);
|
|
829
829
|
}
|
|
830
|
-
E === "front" && (N == null || N.css3DScene.remove(U.css3DObject), (me = (le = ee[m.uuid]) == null ? void 0 : le.scene) == null || me.remove(U.opacityMesh), W[m.uuid] = { css3DObject: m, visible: !0, enabled: !0, mode: E },
|
|
830
|
+
E === "front" && (N == null || N.css3DScene.remove(U.css3DObject), (me = (le = ee[m.uuid]) == null ? void 0 : le.scene) == null || me.remove(U.opacityMesh), W[m.uuid] = { css3DObject: m, visible: !0, enabled: !0, mode: E }, X == null || X.css3DScene.add(m)), E === "behind" && this.appendToElement(de.behindModeContainer, "behind"), E === "front" && this.appendToElement(de.frontModeContainer, "front"), this.render(t), console.log("change success");
|
|
831
831
|
});
|
|
832
|
-
const A = l === "front" ? de.frontModeStore : de.behindModeStore, { css3DScene:
|
|
832
|
+
const A = l === "front" ? de.frontModeStore : de.behindModeStore, { css3DScene: C, css3DRenderer: y } = A, I = (() => {
|
|
833
833
|
const E = () => {
|
|
834
|
-
var
|
|
834
|
+
var z, N;
|
|
835
835
|
const S = m.mode;
|
|
836
836
|
if (S === "front")
|
|
837
837
|
this.store.frontModeCSS3DObjects[m.uuid] = {
|
|
@@ -852,32 +852,32 @@ class Pr {
|
|
|
852
852
|
scene: o.scene
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
return p && ((
|
|
855
|
+
C.getObjectById(m.id) || C.add(m), S === "behind" && p && ((z = o.scene) != null && z.getObjectById(p.id) || (N = o.scene) == null || N.add(p), u.push(() => {
|
|
856
|
+
var X;
|
|
857
|
+
return p && ((X = o.scene) == null ? void 0 : X.remove(p));
|
|
858
858
|
}));
|
|
859
859
|
};
|
|
860
860
|
return g || v ? (y.domElement.style.position = "absolute", y.domElement.style.top = "0", y.domElement.style.userSelect = "none", y.domElement.style.pointerEvents = "none", y.domElement.classList.add(_i(l)), () => {
|
|
861
861
|
E(), this.render(t);
|
|
862
862
|
}) : (this.store.rendered = !0, () => E());
|
|
863
|
-
})(),
|
|
864
|
-
if (
|
|
865
|
-
this.appendToElement(
|
|
863
|
+
})(), k = l === "front" ? de.frontModeContainer : de.behindModeContainer;
|
|
864
|
+
if (k) {
|
|
865
|
+
this.appendToElement(k, l);
|
|
866
866
|
const E = l === "front" ? de.frontModeStore : de.behindModeStore;
|
|
867
867
|
E && (E.appendedToPage = !0);
|
|
868
868
|
}
|
|
869
|
-
const
|
|
870
|
-
return this.store.disposers.push(
|
|
869
|
+
const w = (E) => this.setVisibleById(m.uuid, E), L = (E) => this.setEnabledById(m.uuid, E), D = () => w(!0), H = () => w(!1), B = () => L(!0), F = () => L(!1), Y = () => (delete this.store.frontModeCSS3DObjects[m.uuid], delete this.store.behindModeCSS3DObjects[m.uuid], u.forEach((E) => E == null ? void 0 : E()), C.remove(m), C.children.length === 0 && (typeof A.requestAnimationFrameId == "number" && cancelAnimationFrame(A.requestAnimationFrameId), y.domElement.remove(), l === "front" && (de.frontModeStore = void 0), l === "behind" && (de.behindModeStore = void 0), de.frontModeResizeObserver = void 0, de.behindModeResizeObserver = void 0), !0);
|
|
870
|
+
return this.store.disposers.push(Y), c && I(), {
|
|
871
871
|
id: m.uuid,
|
|
872
872
|
container: d,
|
|
873
|
-
dispose:
|
|
873
|
+
dispose: Y,
|
|
874
874
|
css3DObject: m,
|
|
875
875
|
render: c ? void 0 : I,
|
|
876
876
|
show: D,
|
|
877
877
|
hide: H,
|
|
878
|
-
setVisible:
|
|
878
|
+
setVisible: w,
|
|
879
879
|
disable: F,
|
|
880
|
-
enable:
|
|
880
|
+
enable: B,
|
|
881
881
|
setEnabled: L,
|
|
882
882
|
appendToElement: (E) => this.appendToElement(E, l)
|
|
883
883
|
};
|
|
@@ -1177,11 +1177,11 @@ const Fg = (i) => {
|
|
|
1177
1177
|
};
|
|
1178
1178
|
return t.disposers.push(A), { clear: A, pointAxesHelperMesh: v };
|
|
1179
1179
|
}, s = (d, f = 0) => {
|
|
1180
|
-
var A,
|
|
1180
|
+
var A, C;
|
|
1181
1181
|
const u = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
|
|
1182
1182
|
if (!u)
|
|
1183
1183
|
return !1;
|
|
1184
|
-
const m = d.distanceTo(u), p = d.sub(u).normalize(), g = new Tt(u, p), v = (
|
|
1184
|
+
const m = d.distanceTo(u), p = d.sub(u).normalize(), g = new Tt(u, p), v = (C = i.model.intersectRaycaster(g)) == null ? void 0 : C[0];
|
|
1185
1185
|
return !(v && v.distance + f < m);
|
|
1186
1186
|
}, r = () => t.intersection, a = () => {
|
|
1187
1187
|
var d, f;
|
|
@@ -1262,10 +1262,10 @@ function eo(i, t) {
|
|
|
1262
1262
|
r & 1 && (a.roomLabel = t[12]), r & 2 && (a.five = t[1]), n.$set(a);
|
|
1263
1263
|
},
|
|
1264
1264
|
i(s) {
|
|
1265
|
-
o || (
|
|
1265
|
+
o || (x(n.$$.fragment, s), o = !0);
|
|
1266
1266
|
},
|
|
1267
1267
|
o(s) {
|
|
1268
|
-
|
|
1268
|
+
M(n.$$.fragment, s), o = !1;
|
|
1269
1269
|
},
|
|
1270
1270
|
d(s) {
|
|
1271
1271
|
s && j(e), $(n, s);
|
|
@@ -1298,13 +1298,13 @@ function pl(i) {
|
|
|
1298
1298
|
i(l) {
|
|
1299
1299
|
if (!s) {
|
|
1300
1300
|
for (let c = 0; c < r.length; c += 1)
|
|
1301
|
-
|
|
1301
|
+
x(e[c]);
|
|
1302
1302
|
s = !0;
|
|
1303
1303
|
}
|
|
1304
1304
|
},
|
|
1305
1305
|
o(l) {
|
|
1306
1306
|
for (let c = 0; c < e.length; c += 1)
|
|
1307
|
-
|
|
1307
|
+
M(e[c]);
|
|
1308
1308
|
s = !1;
|
|
1309
1309
|
},
|
|
1310
1310
|
d(l) {
|
|
@@ -1321,27 +1321,27 @@ function gl(i, t, e) {
|
|
|
1321
1321
|
function c(v) {
|
|
1322
1322
|
if (!(l === null || v.floorIndex === l))
|
|
1323
1323
|
return !1;
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1326
|
-
const [
|
|
1327
|
-
return !(
|
|
1324
|
+
const C = new Tt(), y = o.camera.position.clone(), I = new Z(v.position.x, v.position.y, v.position.z), k = I.distanceTo(y);
|
|
1325
|
+
C.set(y.clone(), I.clone().sub(y).normalize());
|
|
1326
|
+
const [w] = o.model.intersectRaycaster(C);
|
|
1327
|
+
return !(w && w.distance + 1 < k);
|
|
1328
1328
|
}
|
|
1329
1329
|
function d(v, A) {
|
|
1330
|
-
const y = new Z(v.position.x, v.position.y, v.position.z).clone().project(o.camera), I = Math.ceil((y.x + 1) / 2 * A.x),
|
|
1331
|
-
return `translate(${I}px, ${
|
|
1330
|
+
const y = new Z(v.position.x, v.position.y, v.position.z).clone().project(o.camera), I = Math.ceil((y.x + 1) / 2 * A.x), k = Math.ceil((-y.y + 1) / 2 * A.y);
|
|
1331
|
+
return `translate(${I}px, ${k}px)`;
|
|
1332
1332
|
}
|
|
1333
1333
|
function f(v) {
|
|
1334
|
-
const { rendererSize: A, shownFloor:
|
|
1335
|
-
function I(
|
|
1336
|
-
const L = y.get(
|
|
1334
|
+
const { rendererSize: A, shownFloor: C } = v, y = /* @__PURE__ */ new Map();
|
|
1335
|
+
function I(w) {
|
|
1336
|
+
const L = y.get(w.id);
|
|
1337
1337
|
if (L)
|
|
1338
1338
|
return L;
|
|
1339
|
-
const { x: D, y: H, z:
|
|
1340
|
-
return y.set(
|
|
1339
|
+
const { x: D, y: H, z: B } = w.position, F = new Z(D, H, B).clone().distanceTo(o.camera.position);
|
|
1340
|
+
return y.set(w.id, F), F;
|
|
1341
1341
|
}
|
|
1342
|
-
return s.map((
|
|
1343
|
-
const L = c(
|
|
1344
|
-
return he(G({},
|
|
1342
|
+
return s.map((w) => {
|
|
1343
|
+
const L = c(w), D = L ? d(w, A) : w.transform, H = I(w), F = s.filter((Y) => Y.visible && I(Y) < H).length * 10;
|
|
1344
|
+
return he(G({}, w), { visible: L, transform: D, zIndex: F });
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
1347
|
function u() {
|
|
@@ -1536,8 +1536,8 @@ function kl(i) {
|
|
|
1536
1536
|
function Dl(i, t, e) {
|
|
1537
1537
|
let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
|
|
1538
1538
|
const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, f = c * 100 + "%", u = d * 100 + "%", m = -Il(s) + 45, p = document.body.clientWidth, g = document.body.clientHeight, A = `${(p < 500 || g < 500 ? 17 : 37) / 16}rem`;
|
|
1539
|
-
return i.$$set = (
|
|
1540
|
-
"panoIndex" in
|
|
1539
|
+
return i.$$set = (C) => {
|
|
1540
|
+
"panoIndex" in C && e(5, n = C.panoIndex), "floorplanData" in C && e(6, o = C.floorplanData), "lastPanoramaLongitude" in C && e(7, s = C.lastPanoramaLongitude), "cameraImageUrl" in C && e(0, r = C.cameraImageUrl);
|
|
1541
1541
|
}, [
|
|
1542
1542
|
r,
|
|
1543
1543
|
f,
|
|
@@ -1716,10 +1716,10 @@ function Ul(i) {
|
|
|
1716
1716
|
o & 2 && (s.url = n[1].url), t.$set(s);
|
|
1717
1717
|
},
|
|
1718
1718
|
i(n) {
|
|
1719
|
-
e || (
|
|
1719
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
1720
1720
|
},
|
|
1721
1721
|
o(n) {
|
|
1722
|
-
|
|
1722
|
+
M(t.$$.fragment, n), e = !1;
|
|
1723
1723
|
},
|
|
1724
1724
|
d(n) {
|
|
1725
1725
|
$(t, n);
|
|
@@ -1742,10 +1742,10 @@ function Jl(i) {
|
|
|
1742
1742
|
o & 1 && (s.content = n[0]), t.$set(s);
|
|
1743
1743
|
},
|
|
1744
1744
|
i(n) {
|
|
1745
|
-
e || (
|
|
1745
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
1746
1746
|
},
|
|
1747
1747
|
o(n) {
|
|
1748
|
-
|
|
1748
|
+
M(t.$$.fragment, n), e = !1;
|
|
1749
1749
|
},
|
|
1750
1750
|
d(n) {
|
|
1751
1751
|
$(t, n);
|
|
@@ -1767,15 +1767,15 @@ function Vl(i) {
|
|
|
1767
1767
|
},
|
|
1768
1768
|
p(l, [c]) {
|
|
1769
1769
|
let d = e;
|
|
1770
|
-
e = a(l), e === d ? ~e && r[e].p(l, c) : (n && (ue(),
|
|
1770
|
+
e = a(l), e === d ? ~e && r[e].p(l, c) : (n && (ue(), M(r[d], 1, 1, () => {
|
|
1771
1771
|
r[d] = null;
|
|
1772
|
-
}), fe()), ~e ? (n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()),
|
|
1772
|
+
}), fe()), ~e ? (n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), x(n, 1), n.m(t, null)) : n = null);
|
|
1773
1773
|
},
|
|
1774
1774
|
i(l) {
|
|
1775
|
-
o || (
|
|
1775
|
+
o || (x(n), o = !0);
|
|
1776
1776
|
},
|
|
1777
1777
|
o(l) {
|
|
1778
|
-
|
|
1778
|
+
M(n), o = !1;
|
|
1779
1779
|
},
|
|
1780
1780
|
d(l) {
|
|
1781
1781
|
l && j(t), ~e && r[e].d();
|
|
@@ -1873,53 +1873,53 @@ function tc(i, t, e) {
|
|
|
1873
1873
|
function m(D, H) {
|
|
1874
1874
|
if (H.width === 0 || H.height === 0)
|
|
1875
1875
|
return () => !1;
|
|
1876
|
-
const
|
|
1876
|
+
const B = D.path.map(({ x: ee, y: W }) => [ee, W]), F = D.roomLabel.position, { x: Y, y: E } = F, { width: S, height: z } = H, N = S / 2, X = z / 2;
|
|
1877
1877
|
return function(W) {
|
|
1878
|
-
const U =
|
|
1878
|
+
const U = Y * W, ae = E * W, le = B.map(([ye, Ie]) => [ye * W, Ie * W]);
|
|
1879
1879
|
return [
|
|
1880
|
-
[U + N, ae -
|
|
1881
|
-
[U - N, ae -
|
|
1882
|
-
[U - N, ae +
|
|
1883
|
-
[U + N, ae +
|
|
1880
|
+
[U + N, ae - X],
|
|
1881
|
+
[U - N, ae - X],
|
|
1882
|
+
[U - N, ae + X],
|
|
1883
|
+
[U + N, ae + X]
|
|
1884
1884
|
].every((ye) => ec(ye, le));
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
|
-
const p = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%",
|
|
1888
|
-
let I = !1,
|
|
1887
|
+
const p = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%", C = v.positionInImage.y * 100 + "%", y = (p < 500 || g < 500 ? 10 : 14) / 16 + "rem";
|
|
1888
|
+
let I = !1, k, w;
|
|
1889
1889
|
c.subscribe(function(H) {
|
|
1890
1890
|
e(13, I = !!H && H.id === l.id);
|
|
1891
1891
|
}), Ue(() => {
|
|
1892
|
-
const D =
|
|
1893
|
-
e(14,
|
|
1892
|
+
const D = k == null ? void 0 : k.getClientRects()[0];
|
|
1893
|
+
e(14, w = {
|
|
1894
1894
|
width: D.width,
|
|
1895
1895
|
height: D.height
|
|
1896
1896
|
});
|
|
1897
1897
|
});
|
|
1898
1898
|
function L(D) {
|
|
1899
1899
|
Qe[D ? "unshift" : "push"](() => {
|
|
1900
|
-
|
|
1900
|
+
k = D, e(2, k);
|
|
1901
1901
|
});
|
|
1902
1902
|
}
|
|
1903
1903
|
return i.$$set = (D) => {
|
|
1904
1904
|
"pxmm" in D && e(9, a = D.pxmm), "room" in D && e(0, l = D.room), "hoveredRoom" in D && e(10, c = D.hoveredRoom), "getRoomAreaText" in D && e(11, d = D.getRoomAreaText), "getLabelElement" in D && e(1, f = D.getLabelElement), "adaptiveRoomLabelVisibleEnable" in D && e(12, u = D.adaptiveRoomLabelVisibleEnable);
|
|
1905
1905
|
}, i.$$.update = () => {
|
|
1906
|
-
i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o =
|
|
1906
|
+
i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = w ? m(l, w) : void 0), i.$$.dirty & 3 && e(4, s = f == null ? void 0 : f(l)), i.$$.dirty & 45568 && e(3, r = u ? I ? !0 : !!(o != null && o(a)) : !0);
|
|
1907
1907
|
}, [
|
|
1908
1908
|
l,
|
|
1909
1909
|
f,
|
|
1910
|
-
|
|
1910
|
+
k,
|
|
1911
1911
|
r,
|
|
1912
1912
|
s,
|
|
1913
1913
|
n,
|
|
1914
1914
|
A,
|
|
1915
|
-
|
|
1915
|
+
C,
|
|
1916
1916
|
y,
|
|
1917
1917
|
a,
|
|
1918
1918
|
c,
|
|
1919
1919
|
d,
|
|
1920
1920
|
u,
|
|
1921
1921
|
I,
|
|
1922
|
-
|
|
1922
|
+
w,
|
|
1923
1923
|
o,
|
|
1924
1924
|
L
|
|
1925
1925
|
];
|
|
@@ -1977,13 +1977,13 @@ function no(i) {
|
|
|
1977
1977
|
i(l) {
|
|
1978
1978
|
if (!s) {
|
|
1979
1979
|
for (let c = 0; c < r.length; c += 1)
|
|
1980
|
-
|
|
1980
|
+
x(e[c]);
|
|
1981
1981
|
s = !0;
|
|
1982
1982
|
}
|
|
1983
1983
|
},
|
|
1984
1984
|
o(l) {
|
|
1985
1985
|
for (let c = 0; c < e.length; c += 1)
|
|
1986
|
-
|
|
1986
|
+
M(e[c]);
|
|
1987
1987
|
s = !1;
|
|
1988
1988
|
},
|
|
1989
1989
|
d(l) {
|
|
@@ -2033,10 +2033,10 @@ function io(i, t) {
|
|
|
2033
2033
|
n.$set(c);
|
|
2034
2034
|
},
|
|
2035
2035
|
i(a) {
|
|
2036
|
-
o || (
|
|
2036
|
+
o || (x(n.$$.fragment, a), o = !0);
|
|
2037
2037
|
},
|
|
2038
2038
|
o(a) {
|
|
2039
|
-
|
|
2039
|
+
M(n.$$.fragment, a), o = !1;
|
|
2040
2040
|
},
|
|
2041
2041
|
d(a) {
|
|
2042
2042
|
a && j(e), $(n, a);
|
|
@@ -2053,15 +2053,15 @@ function oc(i) {
|
|
|
2053
2053
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
2054
2054
|
},
|
|
2055
2055
|
p(o, [s]) {
|
|
2056
|
-
o[6] ? n ? (n.p(o, s), s & 64 &&
|
|
2056
|
+
o[6] ? n ? (n.p(o, s), s & 64 && x(n, 1)) : (n = no(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
2057
2057
|
n = null;
|
|
2058
2058
|
}), fe());
|
|
2059
2059
|
},
|
|
2060
2060
|
i(o) {
|
|
2061
|
-
e || (
|
|
2061
|
+
e || (x(n), e = !0);
|
|
2062
2062
|
},
|
|
2063
2063
|
o(o) {
|
|
2064
|
-
|
|
2064
|
+
M(n), e = !1;
|
|
2065
2065
|
},
|
|
2066
2066
|
d(o) {
|
|
2067
2067
|
n && n.d(o), o && j(t);
|
|
@@ -2218,7 +2218,7 @@ function cc(i, t, e) {
|
|
|
2218
2218
|
});
|
|
2219
2219
|
f.unshift({ left: 0, bottom: 0 }), f.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
2220
2220
|
const u = d[d.length - 1] - d[0], m = d.map((p, g, v) => {
|
|
2221
|
-
const A = g === 0 ? 0 : p - v[g - 1],
|
|
2221
|
+
const A = g === 0 ? 0 : p - v[g - 1], C = g === 0 ? 0 : (p + v[g - 1]) / 2, y = a ? (C - s.min.x - Rt + Ot) / l : 0, I = a ? 0 : (C - s.min.y - Rt + Ot) / c;
|
|
2222
2222
|
return { left: y, bottom: I, distance: A };
|
|
2223
2223
|
}).filter(({ distance: p }) => p / u > 0.1);
|
|
2224
2224
|
return i.$$set = (p) => {
|
|
@@ -2285,10 +2285,10 @@ function co(i, t) {
|
|
|
2285
2285
|
n.$set(c);
|
|
2286
2286
|
},
|
|
2287
2287
|
i(a) {
|
|
2288
|
-
o || (
|
|
2288
|
+
o || (x(n.$$.fragment, a), o = !0);
|
|
2289
2289
|
},
|
|
2290
2290
|
o(a) {
|
|
2291
|
-
|
|
2291
|
+
M(n.$$.fragment, a), o = !1;
|
|
2292
2292
|
},
|
|
2293
2293
|
d(a) {
|
|
2294
2294
|
a && j(e), $(n, a);
|
|
@@ -2321,13 +2321,13 @@ function fc(i) {
|
|
|
2321
2321
|
i(a) {
|
|
2322
2322
|
if (!o) {
|
|
2323
2323
|
for (let l = 0; l < s.length; l += 1)
|
|
2324
|
-
|
|
2324
|
+
x(e[l]);
|
|
2325
2325
|
o = !0;
|
|
2326
2326
|
}
|
|
2327
2327
|
},
|
|
2328
2328
|
o(a) {
|
|
2329
2329
|
for (let l = 0; l < e.length; l += 1)
|
|
2330
|
-
|
|
2330
|
+
M(e[l]);
|
|
2331
2331
|
o = !1;
|
|
2332
2332
|
},
|
|
2333
2333
|
d(a) {
|
|
@@ -2524,10 +2524,10 @@ function Dc(i) {
|
|
|
2524
2524
|
o & 1 && (s.path = n[5].path), t.$set(s);
|
|
2525
2525
|
},
|
|
2526
2526
|
i(n) {
|
|
2527
|
-
e || (
|
|
2527
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
2528
2528
|
},
|
|
2529
2529
|
o(n) {
|
|
2530
|
-
|
|
2530
|
+
M(t.$$.fragment, n), e = !1;
|
|
2531
2531
|
},
|
|
2532
2532
|
d(n) {
|
|
2533
2533
|
$(t, n);
|
|
@@ -2548,10 +2548,10 @@ function Lc(i) {
|
|
|
2548
2548
|
o & 1 && (s.path = n[5].path), t.$set(s);
|
|
2549
2549
|
},
|
|
2550
2550
|
i(n) {
|
|
2551
|
-
e || (
|
|
2551
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
2552
2552
|
},
|
|
2553
2553
|
o(n) {
|
|
2554
|
-
|
|
2554
|
+
M(t.$$.fragment, n), e = !1;
|
|
2555
2555
|
},
|
|
2556
2556
|
d(n) {
|
|
2557
2557
|
$(t, n);
|
|
@@ -2572,10 +2572,10 @@ function Sc(i) {
|
|
|
2572
2572
|
o & 1 && (s.path = n[5].path), t.$set(s);
|
|
2573
2573
|
},
|
|
2574
2574
|
i(n) {
|
|
2575
|
-
e || (
|
|
2575
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
2576
2576
|
},
|
|
2577
2577
|
o(n) {
|
|
2578
|
-
|
|
2578
|
+
M(t.$$.fragment, n), e = !1;
|
|
2579
2579
|
},
|
|
2580
2580
|
d(n) {
|
|
2581
2581
|
$(t, n);
|
|
@@ -2597,15 +2597,15 @@ function mo(i) {
|
|
|
2597
2597
|
},
|
|
2598
2598
|
p(l, c) {
|
|
2599
2599
|
let d = e;
|
|
2600
|
-
e = a(l), e === d ? r[e].p(l, c) : (ue(),
|
|
2600
|
+
e = a(l), e === d ? r[e].p(l, c) : (ue(), M(r[d], 1, 1, () => {
|
|
2601
2601
|
r[d] = null;
|
|
2602
|
-
}), fe(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()),
|
|
2602
|
+
}), fe(), n = r[e], n ? n.p(l, c) : (n = r[e] = s[e](l), n.c()), x(n, 1), n.m(t, null));
|
|
2603
2603
|
},
|
|
2604
2604
|
i(l) {
|
|
2605
|
-
o || (
|
|
2605
|
+
o || (x(n), o = !0);
|
|
2606
2606
|
},
|
|
2607
2607
|
o(l) {
|
|
2608
|
-
|
|
2608
|
+
M(n), o = !1;
|
|
2609
2609
|
},
|
|
2610
2610
|
d(l) {
|
|
2611
2611
|
l && j(t), r[e].d();
|
|
@@ -2616,7 +2616,7 @@ function zc(i) {
|
|
|
2616
2616
|
let t, e, n = i[0], o = [];
|
|
2617
2617
|
for (let r = 0; r < n.length; r += 1)
|
|
2618
2618
|
o[r] = mo(ho(i, n, r));
|
|
2619
|
-
const s = (r) =>
|
|
2619
|
+
const s = (r) => M(o[r], 1, 1, () => {
|
|
2620
2620
|
o[r] = null;
|
|
2621
2621
|
});
|
|
2622
2622
|
return {
|
|
@@ -2638,7 +2638,7 @@ function zc(i) {
|
|
|
2638
2638
|
let l;
|
|
2639
2639
|
for (l = 0; l < n.length; l += 1) {
|
|
2640
2640
|
const c = ho(r, n, l);
|
|
2641
|
-
o[l] ? (o[l].p(c, a),
|
|
2641
|
+
o[l] ? (o[l].p(c, a), x(o[l], 1)) : (o[l] = mo(c), o[l].c(), x(o[l], 1), o[l].m(t, null));
|
|
2642
2642
|
}
|
|
2643
2643
|
for (ue(), l = n.length; l < o.length; l += 1)
|
|
2644
2644
|
s(l);
|
|
@@ -2648,14 +2648,14 @@ function zc(i) {
|
|
|
2648
2648
|
i(r) {
|
|
2649
2649
|
if (!e) {
|
|
2650
2650
|
for (let a = 0; a < n.length; a += 1)
|
|
2651
|
-
|
|
2651
|
+
x(o[a]);
|
|
2652
2652
|
e = !0;
|
|
2653
2653
|
}
|
|
2654
2654
|
},
|
|
2655
2655
|
o(r) {
|
|
2656
2656
|
o = o.filter(Boolean);
|
|
2657
2657
|
for (let a = 0; a < o.length; a += 1)
|
|
2658
|
-
|
|
2658
|
+
M(o[a]);
|
|
2659
2659
|
e = !1;
|
|
2660
2660
|
},
|
|
2661
2661
|
d(r) {
|
|
@@ -2775,10 +2775,10 @@ function go(i, t) {
|
|
|
2775
2775
|
n.$set(c);
|
|
2776
2776
|
},
|
|
2777
2777
|
i(a) {
|
|
2778
|
-
o || (
|
|
2778
|
+
o || (x(n.$$.fragment, a), o = !0);
|
|
2779
2779
|
},
|
|
2780
2780
|
o(a) {
|
|
2781
|
-
|
|
2781
|
+
M(n.$$.fragment, a), o = !1;
|
|
2782
2782
|
},
|
|
2783
2783
|
d(a) {
|
|
2784
2784
|
a && j(e), $(n, a);
|
|
@@ -2811,13 +2811,13 @@ function Hc(i) {
|
|
|
2811
2811
|
i(l) {
|
|
2812
2812
|
if (!s) {
|
|
2813
2813
|
for (let c = 0; c < r.length; c += 1)
|
|
2814
|
-
|
|
2814
|
+
x(n[c]);
|
|
2815
2815
|
s = !0;
|
|
2816
2816
|
}
|
|
2817
2817
|
},
|
|
2818
2818
|
o(l) {
|
|
2819
2819
|
for (let c = 0; c < n.length; c += 1)
|
|
2820
|
-
|
|
2820
|
+
M(n[c]);
|
|
2821
2821
|
s = !1;
|
|
2822
2822
|
},
|
|
2823
2823
|
d(l) {
|
|
@@ -2884,10 +2884,10 @@ function Ao(i) {
|
|
|
2884
2884
|
t.$set(a);
|
|
2885
2885
|
},
|
|
2886
2886
|
i(s) {
|
|
2887
|
-
e || (
|
|
2887
|
+
e || (x(t.$$.fragment, s), e = !0);
|
|
2888
2888
|
},
|
|
2889
2889
|
o(s) {
|
|
2890
|
-
|
|
2890
|
+
M(t.$$.fragment, s), e = !1;
|
|
2891
2891
|
},
|
|
2892
2892
|
d(s) {
|
|
2893
2893
|
$(t, s);
|
|
@@ -2930,10 +2930,10 @@ function vo(i) {
|
|
|
2930
2930
|
t.$set(a);
|
|
2931
2931
|
},
|
|
2932
2932
|
i(s) {
|
|
2933
|
-
e || (
|
|
2933
|
+
e || (x(t.$$.fragment, s), e = !0);
|
|
2934
2934
|
},
|
|
2935
2935
|
o(s) {
|
|
2936
|
-
|
|
2936
|
+
M(t.$$.fragment, s), e = !1;
|
|
2937
2937
|
},
|
|
2938
2938
|
d(s) {
|
|
2939
2939
|
$(t, s);
|
|
@@ -2970,10 +2970,10 @@ function bo(i) {
|
|
|
2970
2970
|
t.$set(a);
|
|
2971
2971
|
},
|
|
2972
2972
|
i(s) {
|
|
2973
|
-
e || (
|
|
2973
|
+
e || (x(t.$$.fragment, s), e = !0);
|
|
2974
2974
|
},
|
|
2975
2975
|
o(s) {
|
|
2976
|
-
|
|
2976
|
+
M(t.$$.fragment, s), e = !1;
|
|
2977
2977
|
},
|
|
2978
2978
|
d(s) {
|
|
2979
2979
|
$(t, s);
|
|
@@ -3008,36 +3008,36 @@ function Nc(i) {
|
|
|
3008
3008
|
c() {
|
|
3009
3009
|
t = O("div"), _(e.$$.fragment), n = V(), u && u.c(), o = V(), _(s.$$.fragment), r = V(), g && g.c(), a = V(), v && v.c(), b(t, "class", l = Te(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
|
|
3010
3010
|
},
|
|
3011
|
-
m(A,
|
|
3012
|
-
T(A, t,
|
|
3011
|
+
m(A, C) {
|
|
3012
|
+
T(A, t, C), K(e, t, null), Q(t, n), u && u.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), v && v.m(t, null), c = !0;
|
|
3013
3013
|
},
|
|
3014
|
-
p(A, [
|
|
3015
|
-
const y =
|
|
3014
|
+
p(A, [C]) {
|
|
3015
|
+
const y = C & 34 ? ze(d, [
|
|
3016
3016
|
{
|
|
3017
3017
|
floorIndex: A[1],
|
|
3018
3018
|
floorplanData: A[5]
|
|
3019
3019
|
}
|
|
3020
3020
|
]) : {};
|
|
3021
|
-
e.$set(y), A[2] ? u ? (u.p(A,
|
|
3021
|
+
e.$set(y), A[2] ? u ? (u.p(A, C), C & 4 && x(u, 1)) : (u = Ao(A), u.c(), x(u, 1), u.m(t, o)) : u && (ue(), M(u, 1, 1, () => {
|
|
3022
3022
|
u = null;
|
|
3023
3023
|
}), fe());
|
|
3024
|
-
const I =
|
|
3024
|
+
const I = C & 34 ? ze(m, [
|
|
3025
3025
|
{
|
|
3026
3026
|
floorplanData: A[5],
|
|
3027
3027
|
floorIndex: A[1]
|
|
3028
3028
|
}
|
|
3029
3029
|
]) : {};
|
|
3030
|
-
s.$set(I), A[3] ? g ? (g.p(A,
|
|
3030
|
+
s.$set(I), A[3] ? g ? (g.p(A, C), C & 8 && x(g, 1)) : (g = vo(A), g.c(), x(g, 1), g.m(t, a)) : g && (ue(), M(g, 1, 1, () => {
|
|
3031
3031
|
g = null;
|
|
3032
|
-
}), fe()), A[4] ? v ? (v.p(A,
|
|
3032
|
+
}), fe()), A[4] ? v ? (v.p(A, C), C & 16 && x(v, 1)) : (v = bo(A), v.c(), x(v, 1), v.m(t, null)) : v && (ue(), M(v, 1, 1, () => {
|
|
3033
3033
|
v = null;
|
|
3034
|
-
}), fe()), (!c ||
|
|
3034
|
+
}), fe()), (!c || C & 1 && l !== (l = Te(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
|
|
3035
3035
|
},
|
|
3036
3036
|
i(A) {
|
|
3037
|
-
c || (
|
|
3037
|
+
c || (x(e.$$.fragment, A), x(u), x(s.$$.fragment, A), x(g), x(v), c = !0);
|
|
3038
3038
|
},
|
|
3039
3039
|
o(A) {
|
|
3040
|
-
|
|
3040
|
+
M(e.$$.fragment, A), M(u), M(s.$$.fragment, A), M(g), M(v), c = !1;
|
|
3041
3041
|
},
|
|
3042
3042
|
d(A) {
|
|
3043
3043
|
A && j(t), $(e), u && u.d(), $(s), g && g.d(), v && v.d();
|
|
@@ -3098,7 +3098,7 @@ function wo(i) {
|
|
|
3098
3098
|
let t, e, n, o, s, r, a = i[9].floorDatas, l = [];
|
|
3099
3099
|
for (let m = 0; m < a.length; m += 1)
|
|
3100
3100
|
l[m] = Co(yo(i, a, m));
|
|
3101
|
-
const c = (m) =>
|
|
3101
|
+
const c = (m) => M(l[m], 1, 1, () => {
|
|
3102
3102
|
l[m] = null;
|
|
3103
3103
|
}), d = [
|
|
3104
3104
|
{
|
|
@@ -3132,7 +3132,7 @@ function wo(i) {
|
|
|
3132
3132
|
let v;
|
|
3133
3133
|
for (v = 0; v < a.length; v += 1) {
|
|
3134
3134
|
const A = yo(i, a, v);
|
|
3135
|
-
l[v] ? (l[v].p(A, p),
|
|
3135
|
+
l[v] ? (l[v].p(A, p), x(l[v], 1)) : (l[v] = Co(A), l[v].c(), x(l[v], 1), l[v].m(t, e));
|
|
3136
3136
|
}
|
|
3137
3137
|
for (ue(), v = a.length; v < l.length; v += 1)
|
|
3138
3138
|
c(v);
|
|
@@ -3146,15 +3146,15 @@ function wo(i) {
|
|
|
3146
3146
|
cameraImageUrl: i[11]
|
|
3147
3147
|
}
|
|
3148
3148
|
]) : {};
|
|
3149
|
-
n.$set(g), i[6] ? u ? (u.p(i, p), p & 64 &&
|
|
3149
|
+
n.$set(g), i[6] ? u ? (u.p(i, p), p & 64 && x(u, 1)) : (u = Eo(i), u.c(), x(u, 1), u.m(t, null)) : u && (ue(), M(u, 1, 1, () => {
|
|
3150
3150
|
u = null;
|
|
3151
3151
|
}), fe());
|
|
3152
3152
|
},
|
|
3153
3153
|
i(m) {
|
|
3154
3154
|
if (!r) {
|
|
3155
3155
|
for (let p = 0; p < a.length; p += 1)
|
|
3156
|
-
|
|
3157
|
-
|
|
3156
|
+
x(l[p]);
|
|
3157
|
+
x(n.$$.fragment, m), x(u), s || Re(() => {
|
|
3158
3158
|
s = jt(t, St, {
|
|
3159
3159
|
duration: i[0],
|
|
3160
3160
|
easing: li
|
|
@@ -3165,8 +3165,8 @@ function wo(i) {
|
|
|
3165
3165
|
o(m) {
|
|
3166
3166
|
l = l.filter(Boolean);
|
|
3167
3167
|
for (let p = 0; p < l.length; p += 1)
|
|
3168
|
-
|
|
3169
|
-
|
|
3168
|
+
M(l[p]);
|
|
3169
|
+
M(n.$$.fragment, m), M(u), r = !1;
|
|
3170
3170
|
},
|
|
3171
3171
|
d(m) {
|
|
3172
3172
|
m && j(t), tt(l, m), $(n), u && u.d();
|
|
@@ -3225,10 +3225,10 @@ function Co(i) {
|
|
|
3225
3225
|
t.$set(a);
|
|
3226
3226
|
},
|
|
3227
3227
|
i(s) {
|
|
3228
|
-
e || (
|
|
3228
|
+
e || (x(t.$$.fragment, s), e = !0);
|
|
3229
3229
|
},
|
|
3230
3230
|
o(s) {
|
|
3231
|
-
|
|
3231
|
+
M(t.$$.fragment, s), e = !1;
|
|
3232
3232
|
},
|
|
3233
3233
|
d(s) {
|
|
3234
3234
|
$(t, s);
|
|
@@ -3254,10 +3254,10 @@ function Eo(i) {
|
|
|
3254
3254
|
o & 512 && (s.floorplanData = n[9]), o & 4 && (s.northDesc = n[2]), t.$set(s);
|
|
3255
3255
|
},
|
|
3256
3256
|
i(n) {
|
|
3257
|
-
e || (
|
|
3257
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
3258
3258
|
},
|
|
3259
3259
|
o(n) {
|
|
3260
|
-
|
|
3260
|
+
M(t.$$.fragment, n), e = !1;
|
|
3261
3261
|
},
|
|
3262
3262
|
d(n) {
|
|
3263
3263
|
$(t, n);
|
|
@@ -3274,15 +3274,15 @@ function Uc(i) {
|
|
|
3274
3274
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
3275
3275
|
},
|
|
3276
3276
|
p(o, [s]) {
|
|
3277
|
-
o[1] ? n ? (n.p(o, s), s & 2 &&
|
|
3277
|
+
o[1] ? n ? (n.p(o, s), s & 2 && x(n, 1)) : (n = wo(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
3278
3278
|
n = null;
|
|
3279
3279
|
}), fe());
|
|
3280
3280
|
},
|
|
3281
3281
|
i(o) {
|
|
3282
|
-
e || (
|
|
3282
|
+
e || (x(n), e = !0);
|
|
3283
3283
|
},
|
|
3284
3284
|
o(o) {
|
|
3285
|
-
|
|
3285
|
+
M(n), e = !1;
|
|
3286
3286
|
},
|
|
3287
3287
|
d(o) {
|
|
3288
3288
|
n && n.d(o), o && j(t);
|
|
@@ -3290,9 +3290,9 @@ function Uc(i) {
|
|
|
3290
3290
|
};
|
|
3291
3291
|
}
|
|
3292
3292
|
function Jc(i, t, e) {
|
|
3293
|
-
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: f } = t, { floorplanData: u } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: p } = t, { getRoomAreaText: g } = t, { getLabelElement: v } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable:
|
|
3293
|
+
let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: f } = t, { floorplanData: u } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: p } = t, { getRoomAreaText: g } = t, { getLabelElement: v } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: C } = t;
|
|
3294
3294
|
return i.$$set = (y) => {
|
|
3295
|
-
"duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, f = y.ruleLabelsEnable), "floorplanData" in y && e(9, u = y.floorplanData), "lastPanoramaLongitude" in y && e(10, m = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, p = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, v = y.getLabelElement), "getRuleDistanceText" in y && e(14, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15,
|
|
3295
|
+
"duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, f = y.ruleLabelsEnable), "floorplanData" in y && e(9, u = y.floorplanData), "lastPanoramaLongitude" in y && e(10, m = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, p = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, v = y.getLabelElement), "getRuleDistanceText" in y && e(14, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, C = y.adaptiveRoomLabelVisibleEnable);
|
|
3296
3296
|
}, [
|
|
3297
3297
|
n,
|
|
3298
3298
|
o,
|
|
@@ -3309,7 +3309,7 @@ function Jc(i, t, e) {
|
|
|
3309
3309
|
g,
|
|
3310
3310
|
v,
|
|
3311
3311
|
A,
|
|
3312
|
-
|
|
3312
|
+
C
|
|
3313
3313
|
];
|
|
3314
3314
|
}
|
|
3315
3315
|
class Li extends te {
|
|
@@ -4344,8 +4344,8 @@ function hd(i, t, e) {
|
|
|
4344
4344
|
const v = p.bounding, A = p.observers[g];
|
|
4345
4345
|
if (!A)
|
|
4346
4346
|
return "";
|
|
4347
|
-
const
|
|
4348
|
-
return `translate(${I}px, ${
|
|
4347
|
+
const C = (v.max.x - v.min.x) * r, y = (v.max.y - v.min.y) * r, I = Math.floor(A.positionInImage.x * C), k = Math.floor(A.positionInImage.y * y);
|
|
4348
|
+
return `translate(${I}px, ${k}px)`;
|
|
4349
4349
|
}
|
|
4350
4350
|
function u(p) {
|
|
4351
4351
|
e(6, c = p);
|
|
@@ -4493,10 +4493,10 @@ function ko(i) {
|
|
|
4493
4493
|
t.$set(a);
|
|
4494
4494
|
},
|
|
4495
4495
|
i(s) {
|
|
4496
|
-
e || (
|
|
4496
|
+
e || (x(t.$$.fragment, s), e = !0);
|
|
4497
4497
|
},
|
|
4498
4498
|
o(s) {
|
|
4499
|
-
|
|
4499
|
+
M(t.$$.fragment, s), e = !1;
|
|
4500
4500
|
},
|
|
4501
4501
|
d(s) {
|
|
4502
4502
|
$(t, s);
|
|
@@ -4536,15 +4536,15 @@ function bd(i) {
|
|
|
4536
4536
|
]) : {};
|
|
4537
4537
|
t.$set(u);
|
|
4538
4538
|
const m = {};
|
|
4539
|
-
f & 32 && (m.extraObjects = d[5]), n.$set(m), d[3] ? c ? (c.p(d, f), f & 8 &&
|
|
4539
|
+
f & 32 && (m.extraObjects = d[5]), n.$set(m), d[3] ? c ? (c.p(d, f), f & 8 && x(c, 1)) : (c = ko(d), c.c(), x(c, 1), c.m(s.parentNode, s)) : c && (ue(), M(c, 1, 1, () => {
|
|
4540
4540
|
c = null;
|
|
4541
4541
|
}), fe());
|
|
4542
4542
|
},
|
|
4543
4543
|
i(d) {
|
|
4544
|
-
r || (
|
|
4544
|
+
r || (x(t.$$.fragment, d), x(n.$$.fragment, d), x(c), r = !0);
|
|
4545
4545
|
},
|
|
4546
4546
|
o(d) {
|
|
4547
|
-
|
|
4547
|
+
M(t.$$.fragment, d), M(n.$$.fragment, d), M(c), r = !1;
|
|
4548
4548
|
},
|
|
4549
4549
|
d(d) {
|
|
4550
4550
|
$(t, d), d && j(e), $(n, d), d && j(o), c && c.d(d), d && j(s);
|
|
@@ -4594,15 +4594,15 @@ function Do(i) {
|
|
|
4594
4594
|
T(s, t, r), o && o.m(t, null), e = gt(t, i[12].bind(t)), n = !0;
|
|
4595
4595
|
},
|
|
4596
4596
|
p(s, r) {
|
|
4597
|
-
s[6] !== 0 ? o ? (o.p(s, r), r & 64 &&
|
|
4597
|
+
s[6] !== 0 ? o ? (o.p(s, r), r & 64 && x(o, 1)) : (o = Lo(s), o.c(), x(o, 1), o.m(t, null)) : o && (ue(), M(o, 1, 1, () => {
|
|
4598
4598
|
o = null;
|
|
4599
4599
|
}), fe());
|
|
4600
4600
|
},
|
|
4601
4601
|
i(s) {
|
|
4602
|
-
n || (
|
|
4602
|
+
n || (x(o), n = !0);
|
|
4603
4603
|
},
|
|
4604
4604
|
o(s) {
|
|
4605
|
-
|
|
4605
|
+
M(o), n = !1;
|
|
4606
4606
|
},
|
|
4607
4607
|
d(s) {
|
|
4608
4608
|
s && j(t), o && o.d(), e();
|
|
@@ -4666,10 +4666,10 @@ function Lo(i) {
|
|
|
4666
4666
|
o.$set(g), m & 256 && s !== (s = `${u[8]}px`) && R(t, "width", s, !1), m & 2048 && r !== (r = `${u[11]}px`) && R(t, "height", r, !1);
|
|
4667
4667
|
},
|
|
4668
4668
|
i(u) {
|
|
4669
|
-
a || (
|
|
4669
|
+
a || (x(e.$$.fragment, u), x(o.$$.fragment, u), a = !0);
|
|
4670
4670
|
},
|
|
4671
4671
|
o(u) {
|
|
4672
|
-
|
|
4672
|
+
M(e.$$.fragment, u), M(o.$$.fragment, u), a = !1;
|
|
4673
4673
|
},
|
|
4674
4674
|
d(u) {
|
|
4675
4675
|
u && j(t), $(e), $(o);
|
|
@@ -4686,15 +4686,15 @@ function Ed(i) {
|
|
|
4686
4686
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
4687
4687
|
},
|
|
4688
4688
|
p(o, [s]) {
|
|
4689
|
-
o[1] ? n ? (n.p(o, s), s & 2 &&
|
|
4689
|
+
o[1] ? n ? (n.p(o, s), s & 2 && x(n, 1)) : (n = Do(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
4690
4690
|
n = null;
|
|
4691
4691
|
}), fe());
|
|
4692
4692
|
},
|
|
4693
4693
|
i(o) {
|
|
4694
|
-
e || (
|
|
4694
|
+
e || (x(n), e = !0);
|
|
4695
4695
|
},
|
|
4696
4696
|
o(o) {
|
|
4697
|
-
|
|
4697
|
+
M(n), e = !1;
|
|
4698
4698
|
},
|
|
4699
4699
|
d(o) {
|
|
4700
4700
|
n && n.d(o), o && j(t);
|
|
@@ -4702,8 +4702,8 @@ function Ed(i) {
|
|
|
4702
4702
|
};
|
|
4703
4703
|
}
|
|
4704
4704
|
function Pd(i, t, e) {
|
|
4705
|
-
var A,
|
|
4706
|
-
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (
|
|
4705
|
+
var A, C;
|
|
4706
|
+
let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (C = (A = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : A.floorIndex) != null ? C : 0, f = 0, u = 0, m = 0, p = 0;
|
|
4707
4707
|
function g(y) {
|
|
4708
4708
|
e(10, d = n.work.observers[y].floorIndex);
|
|
4709
4709
|
}
|
|
@@ -4717,10 +4717,10 @@ function Pd(i, t, e) {
|
|
|
4717
4717
|
"five" in y && e(0, n = y.five), "visible" in y && e(1, o = y.visible), "hoverEnable" in y && e(2, s = y.hoverEnable), "floorplanData" in y && e(3, r = y.floorplanData), "cameraImageUrl" in y && e(4, a = y.cameraImageUrl), "extraObjects" in y && e(5, l = y.extraObjects);
|
|
4718
4718
|
}, i.$$.update = () => {
|
|
4719
4719
|
if (i.$$.dirty & 456) {
|
|
4720
|
-
const y = Math.min(f, u), { max: I, min:
|
|
4721
|
-
return
|
|
4720
|
+
const y = Math.min(f, u), { max: I, min: k } = r.bounding, w = I.x - k.x, L = I.y - k.y, D = function() {
|
|
4721
|
+
return w > L ? [y, y / w * L] : [y / L * w, y];
|
|
4722
4722
|
}();
|
|
4723
|
-
e(8, m = D[0]), e(11, p = D[1]), e(9, c = m /
|
|
4723
|
+
e(8, m = D[0]), e(11, p = D[1]), e(9, c = m / w);
|
|
4724
4724
|
}
|
|
4725
4725
|
}, [
|
|
4726
4726
|
n,
|
|
@@ -5006,8 +5006,8 @@ function zr(i, t) {
|
|
|
5006
5006
|
const qg = (i, t) => {
|
|
5007
5007
|
var d;
|
|
5008
5008
|
const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (d = t.north_rad) != null ? d : void 0, o = {}, s = (f) => J(void 0, null, function* () {
|
|
5009
|
-
var
|
|
5010
|
-
const u = (f == null ? void 0 : f.fbx_url) || e, m = (
|
|
5009
|
+
var Y;
|
|
5010
|
+
const u = (f == null ? void 0 : f.fbx_url) || e, m = (Y = f == null ? void 0 : f.north_rad) != null ? Y : n;
|
|
5011
5011
|
if (typeof m != "number")
|
|
5012
5012
|
throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
|
|
5013
5013
|
const p = i.model.bounding, g = p.max.x - p.min.x, v = p.max.z - p.min.z, A = Math.max(g, v), y = yield new vr().loadAsync(u);
|
|
@@ -5019,14 +5019,14 @@ const qg = (i, t) => {
|
|
|
5019
5019
|
const I = [0, m - Math.PI / 2, 0], {
|
|
5020
5020
|
model: {
|
|
5021
5021
|
bounding: {
|
|
5022
|
-
max: { x, z:
|
|
5022
|
+
max: { x: k, z: w },
|
|
5023
5023
|
min: { x: L, y: D, z: H }
|
|
5024
5024
|
}
|
|
5025
5025
|
}
|
|
5026
5026
|
} = i;
|
|
5027
5027
|
o.yBase = D;
|
|
5028
|
-
const
|
|
5029
|
-
return kd(y, { position:
|
|
5028
|
+
const B = { x: (k + L) / 2, y: D - 1.6, z: (w + H) / 2 }, F = 45e-4 * A;
|
|
5029
|
+
return kd(y, { position: B, rotation: I, scale: F }), o.object = y, !0;
|
|
5030
5030
|
}), r = ({ latitude: f }) => {
|
|
5031
5031
|
if (!o.object)
|
|
5032
5032
|
return;
|
|
@@ -5059,55 +5059,55 @@ function Dd(i, t) {
|
|
|
5059
5059
|
}
|
|
5060
5060
|
const Ld = ({ x: i, y: t, z: e }) => new Z(i, t, e), _g = (i, t) => {
|
|
5061
5061
|
var g, v, A;
|
|
5062
|
-
const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (
|
|
5063
|
-
var H,
|
|
5064
|
-
const y = (H =
|
|
5062
|
+
const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (C) => J(void 0, null, function* () {
|
|
5063
|
+
var H, B, F, Y, E, S, z;
|
|
5064
|
+
const y = (H = C == null ? void 0 : C.position) != null ? H : o;
|
|
5065
5065
|
if (!y)
|
|
5066
5066
|
return Promise.reject("ModelEntryDoorGuidePlugin.load(): position is undefined");
|
|
5067
|
-
const I = Ld(y),
|
|
5068
|
-
if (e.rad =
|
|
5069
|
-
return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${
|
|
5070
|
-
const L = yield new vr().loadAsync(
|
|
5071
|
-
L.position.copy(I), L.rotation.z =
|
|
5072
|
-
const D = (
|
|
5067
|
+
const I = Ld(y), k = (B = C == null ? void 0 : C.rad) != null ? B : s, w = (F = C == null ? void 0 : C.fbx_url) != null ? F : r;
|
|
5068
|
+
if (e.rad = k, k === void 0)
|
|
5069
|
+
return Promise.reject(`ModelEntryDoorGuidePlugin.load(): rad is ${k}`);
|
|
5070
|
+
const L = yield new vr().loadAsync(w);
|
|
5071
|
+
L.position.copy(I), L.rotation.z = k, L.scale.set(0.8, 0.8, 0.8), zr(L, { transparent: !0, side: P.DoubleSide });
|
|
5072
|
+
const D = (z = (S = (E = (Y = L.children) == null ? void 0 : Y[0]) == null ? void 0 : E.children) == null ? void 0 : S[3]) == null ? void 0 : z.clone();
|
|
5073
5073
|
return D ? (D.material = new qt({ transparent: !0, map: Dd("\u5165\u6237\u95E8") }), D.renderOrder = 3, L.children[0].add(D), e.object = L, !0) : Promise.reject(`ModelEntryDoorGuidePlugin.load(): textMesh is ${D}`);
|
|
5074
5074
|
}), c = () => {
|
|
5075
5075
|
if (e.animation)
|
|
5076
5076
|
return;
|
|
5077
5077
|
if (!e.object)
|
|
5078
5078
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
5079
|
-
const
|
|
5079
|
+
const C = 1, y = new Da(e.object);
|
|
5080
5080
|
a.push(y);
|
|
5081
5081
|
const I = y.clipAction(e.object.animations[0]);
|
|
5082
|
-
I.timeScale =
|
|
5083
|
-
let
|
|
5084
|
-
const
|
|
5085
|
-
let
|
|
5086
|
-
const
|
|
5087
|
-
|
|
5088
|
-
const
|
|
5089
|
-
|
|
5082
|
+
I.timeScale = C;
|
|
5083
|
+
let k;
|
|
5084
|
+
const w = () => {
|
|
5085
|
+
let B = 0, F = 0;
|
|
5086
|
+
const Y = 1e3 / 30, E = (S) => {
|
|
5087
|
+
B = requestAnimationFrame(E);
|
|
5088
|
+
const z = S - F;
|
|
5089
|
+
z < Y || (F = S, a.forEach((N) => N.update(z / 1e3)), i.needsRender = !0);
|
|
5090
5090
|
};
|
|
5091
|
-
return
|
|
5092
|
-
cancelAnimationFrame(
|
|
5091
|
+
return B = requestAnimationFrame(E), () => {
|
|
5092
|
+
cancelAnimationFrame(B);
|
|
5093
5093
|
};
|
|
5094
5094
|
}, H = { play: () => {
|
|
5095
|
-
|
|
5095
|
+
k || (I.play(), k = w(), requestAnimationFrame(() => {
|
|
5096
5096
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
5097
5097
|
}));
|
|
5098
5098
|
}, stop: () => {
|
|
5099
|
-
I.stop(),
|
|
5099
|
+
I.stop(), k == null || k(), k = void 0;
|
|
5100
5100
|
} };
|
|
5101
5101
|
e.animation = H;
|
|
5102
|
-
}, d = (
|
|
5102
|
+
}, d = (C) => {
|
|
5103
5103
|
var I;
|
|
5104
5104
|
if (!e.object)
|
|
5105
5105
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
5106
|
-
((I =
|
|
5106
|
+
((I = C == null ? void 0 : C.animationEnable) != null ? I : n) && (e.animation || c(), e.animation.play()), i.scene.add(e.object), i.needsRender = !0;
|
|
5107
5107
|
}, f = () => {
|
|
5108
5108
|
!e.object || (e.animation && e.animation.stop(), i.scene.remove(e.object), i.needsRender = !0);
|
|
5109
|
-
}, u = (
|
|
5110
|
-
return { load: l, enable: (
|
|
5109
|
+
}, u = (C) => C === "Floorplan" ? d() : f();
|
|
5110
|
+
return { load: l, enable: (C) => (e.enabled || (e.enabled = !0, u(i.currentMode), i.on("modeChange", u), d(C)), !0), disable: () => (e.enabled && (e.enabled = !1, f(), i.off("modeChange", u)), !0) };
|
|
5111
5111
|
};
|
|
5112
5112
|
class ji extends Zt.Tween {
|
|
5113
5113
|
constructor() {
|
|
@@ -5234,9 +5234,9 @@ const ui = (i, t, e) => {
|
|
|
5234
5234
|
m(!0);
|
|
5235
5235
|
}, v = () => {
|
|
5236
5236
|
m(!1);
|
|
5237
|
-
}, A = s.rotateSpeed ? Math.ceil(Math.abs(u.longitude - f.longitude) / s.rotateSpeed * 1e3) : r,
|
|
5238
|
-
s.rotation === ot.Loop &&
|
|
5239
|
-
|
|
5237
|
+
}, A = s.rotateSpeed ? Math.ceil(Math.abs(u.longitude - f.longitude) / s.rotateSpeed * 1e3) : r, C = jd(A, Qn.Easing.Linear.None).onUpdate(p).onComplete(g).onDestroy(v);
|
|
5238
|
+
s.rotation === ot.Loop && C.repeat(1 / 0).yoyo(!0), t.interruptCallback = (y = !0) => {
|
|
5239
|
+
C.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(y);
|
|
5240
5240
|
}, t.timeoutId = setTimeout(() => {
|
|
5241
5241
|
t.interruptCallback && t.interruptCallback(!0);
|
|
5242
5242
|
}, r);
|
|
@@ -5410,8 +5410,8 @@ const Rd = `<style type="text/css">
|
|
|
5410
5410
|
<div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(v)}</div>
|
|
5411
5411
|
</div>
|
|
5412
5412
|
</div>
|
|
5413
|
-
`,
|
|
5414
|
-
return
|
|
5413
|
+
`, C = document.createElement("div");
|
|
5414
|
+
return C.setAttribute("class", "PanoRulerPlugin-rule"), C.setAttribute("data-name", g), C.setAttribute("style", "display: none"), C.innerHTML = A, C;
|
|
5415
5415
|
}, o = document.createElement("div");
|
|
5416
5416
|
o.setAttribute(
|
|
5417
5417
|
"style",
|
|
@@ -5422,62 +5422,62 @@ const Rd = `<style type="text/css">
|
|
|
5422
5422
|
const r = {}, a = (g, v) => {
|
|
5423
5423
|
if (e.loaded)
|
|
5424
5424
|
throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
|
|
5425
|
-
const A = Hd(g, i),
|
|
5426
|
-
if (!
|
|
5425
|
+
const A = Hd(g, i), C = i.work;
|
|
5426
|
+
if (!C)
|
|
5427
5427
|
return !1;
|
|
5428
5428
|
for (const y in v) {
|
|
5429
|
-
const I = v[y], { standingPosition:
|
|
5430
|
-
const
|
|
5431
|
-
let
|
|
5429
|
+
const I = v[y], { standingPosition: k } = C.observers[0], w = I.map(({ x: L, z: D, observers: H }) => {
|
|
5430
|
+
const B = H.length > 0 ? g.rooms[g.observers[H[0]]].name : "", F = A[B] ? A[B].floor : null;
|
|
5431
|
+
let Y = 1 / 0, E = {
|
|
5432
5432
|
index: 0,
|
|
5433
|
-
x:
|
|
5434
|
-
y:
|
|
5435
|
-
z:
|
|
5433
|
+
x: k.x,
|
|
5434
|
+
y: k.y,
|
|
5435
|
+
z: k.z
|
|
5436
5436
|
};
|
|
5437
5437
|
H.forEach((W) => {
|
|
5438
|
-
if (!
|
|
5438
|
+
if (!C.observers[W])
|
|
5439
5439
|
return;
|
|
5440
|
-
const { standingPosition: U } =
|
|
5440
|
+
const { standingPosition: U } = C.observers[W], ae = {
|
|
5441
5441
|
index: W,
|
|
5442
5442
|
x: U.x,
|
|
5443
5443
|
y: U.y,
|
|
5444
5444
|
z: U.z
|
|
5445
5445
|
}, le = Od({ x: L, z: D }, ae);
|
|
5446
|
-
F ? le <
|
|
5446
|
+
F ? le < Y && Math.abs(ae.y - F) < 0.3 && (Y = le, E = ae) : le < Y && (Y = le, E = ae);
|
|
5447
5447
|
});
|
|
5448
5448
|
const S = new Z(L, E.y, D);
|
|
5449
5449
|
Object.assign(S, { observers: H });
|
|
5450
|
-
const
|
|
5450
|
+
const z = A[B] ? A[B].roof : null, N = z ? new Z(L, z, D) : null;
|
|
5451
5451
|
return N && Object.assign(N, { observers: H }), { origin: S, vertical: N };
|
|
5452
5452
|
});
|
|
5453
5453
|
r[y] = {
|
|
5454
|
-
origins:
|
|
5454
|
+
origins: w.map((L) => L.origin),
|
|
5455
5455
|
rules: []
|
|
5456
5456
|
};
|
|
5457
|
-
for (const { origin: L, vertical: D } of
|
|
5457
|
+
for (const { origin: L, vertical: D } of w) {
|
|
5458
5458
|
if (!D)
|
|
5459
5459
|
continue;
|
|
5460
5460
|
const H = n(y, L.distanceTo(D));
|
|
5461
5461
|
o.append(H), r[y].rules.push({ vertical: !0, rule: [L, D], $element: H });
|
|
5462
5462
|
}
|
|
5463
|
-
for (let L = 0; L <
|
|
5463
|
+
for (let L = 0; L < w.length; L++) {
|
|
5464
5464
|
let D = L + 1;
|
|
5465
|
-
D >=
|
|
5466
|
-
const { origin: H } =
|
|
5467
|
-
o.append(F), r[y].rules.push({ vertical: !1, rule: [H,
|
|
5465
|
+
D >= w.length && (D = 0);
|
|
5466
|
+
const { origin: H } = w[L], { origin: B } = w[D], F = n(y, H.distanceTo(B));
|
|
5467
|
+
o.append(F), r[y].rules.push({ vertical: !1, rule: [H, B], $element: F });
|
|
5468
5468
|
}
|
|
5469
5469
|
}
|
|
5470
5470
|
return e.loaded = !0, !0;
|
|
5471
5471
|
}, l = (g, v, A) => J(void 0, null, function* () {
|
|
5472
|
-
const
|
|
5473
|
-
if (!
|
|
5472
|
+
const C = g || t.roomInfo, y = v || t.roomRules;
|
|
5473
|
+
if (!C || !y)
|
|
5474
5474
|
throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
|
|
5475
|
-
return e.loaded = !1, e.options = G(G({}, e.options), A || {}), i.model.loaded ? a(
|
|
5476
|
-
(I) => i.once("modelLoaded", () => I(a(
|
|
5475
|
+
return e.loaded = !1, e.options = G(G({}, e.options), A || {}), i.model.loaded ? a(C, y) : yield new Promise(
|
|
5476
|
+
(I) => i.once("modelLoaded", () => I(a(C, y)))
|
|
5477
5477
|
);
|
|
5478
5478
|
});
|
|
5479
5479
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
5480
|
-
const c = (g, v, A,
|
|
5480
|
+
const c = (g, v, A, C) => {
|
|
5481
5481
|
const y = [
|
|
5482
5482
|
[
|
|
5483
5483
|
{ x: 0, y: 0 },
|
|
@@ -5485,20 +5485,20 @@ const Rd = `<style type="text/css">
|
|
|
5485
5485
|
],
|
|
5486
5486
|
[
|
|
5487
5487
|
{ x: 0, y: 0 },
|
|
5488
|
-
{ x: 0, y:
|
|
5488
|
+
{ x: 0, y: C }
|
|
5489
5489
|
],
|
|
5490
5490
|
[
|
|
5491
5491
|
{ x: A, y: 0 },
|
|
5492
|
-
{ x: A, y:
|
|
5492
|
+
{ x: A, y: C }
|
|
5493
5493
|
],
|
|
5494
5494
|
[
|
|
5495
|
-
{ x: 0, y:
|
|
5496
|
-
{ x: A, y:
|
|
5495
|
+
{ x: 0, y: C },
|
|
5496
|
+
{ x: A, y: C }
|
|
5497
5497
|
]
|
|
5498
5498
|
], I = [];
|
|
5499
|
-
for (let
|
|
5500
|
-
const
|
|
5501
|
-
|
|
5499
|
+
for (let k = 0; k < y.length; k++) {
|
|
5500
|
+
const w = jr([g, v], [y[k][0], y[k][1]], !0);
|
|
5501
|
+
w && I.push(w);
|
|
5502
5502
|
}
|
|
5503
5503
|
return I.length === 0 ? !1 : I;
|
|
5504
5504
|
}, d = () => {
|
|
@@ -5506,71 +5506,71 @@ const Rd = `<style type="text/css">
|
|
|
5506
5506
|
const g = (H = i.getElement()) == null ? void 0 : H.parentElement;
|
|
5507
5507
|
if (!g || !e.loaded || Object.keys(r).length <= 0)
|
|
5508
5508
|
return;
|
|
5509
|
-
const { panoIndex: v, camera: A, currentMode:
|
|
5509
|
+
const { panoIndex: v, camera: A, currentMode: C } = i;
|
|
5510
5510
|
if (v === void 0)
|
|
5511
5511
|
return;
|
|
5512
5512
|
let y;
|
|
5513
|
-
for (const
|
|
5514
|
-
|
|
5513
|
+
for (const B in r)
|
|
5514
|
+
B.split(",").indexOf(v.toString()) >= 0 && (y = B);
|
|
5515
5515
|
if (!y) {
|
|
5516
|
-
for (const
|
|
5517
|
-
for (const { $element: F } of r[
|
|
5516
|
+
for (const B in r)
|
|
5517
|
+
for (const { $element: F } of r[B].rules)
|
|
5518
5518
|
F.style.display = "none";
|
|
5519
5519
|
return;
|
|
5520
5520
|
}
|
|
5521
|
-
const I = A.position,
|
|
5522
|
-
if (
|
|
5523
|
-
for (const
|
|
5524
|
-
for (const { $element: F } of r[
|
|
5521
|
+
const I = A.position, k = A.getWorldDirection(new Z()), w = g.clientWidth, L = g.clientHeight;
|
|
5522
|
+
if (C !== Me.Mode.Panorama) {
|
|
5523
|
+
for (const B in r)
|
|
5524
|
+
for (const { $element: F } of r[B].rules)
|
|
5525
5525
|
F.style.display = "none";
|
|
5526
5526
|
return;
|
|
5527
5527
|
}
|
|
5528
|
-
for (const
|
|
5529
|
-
for (const { $element: F } of r[
|
|
5530
|
-
F.style.display =
|
|
5531
|
-
const [D] = r[y].origins.slice().filter((
|
|
5532
|
-
const
|
|
5533
|
-
return
|
|
5528
|
+
for (const B in r)
|
|
5529
|
+
for (const { $element: F } of r[B].rules)
|
|
5530
|
+
F.style.display = B === y ? "block" : "none";
|
|
5531
|
+
const [D] = r[y].origins.slice().filter((B) => B.observers.indexOf(v) >= 0).sort((B, F) => {
|
|
5532
|
+
const Y = B.clone().setY(0).sub(I).normalize().angleTo(k.clone().setY(0)), E = F.clone().setY(0).sub(I).normalize().angleTo(k.clone().setY(0));
|
|
5533
|
+
return Y - E;
|
|
5534
5534
|
});
|
|
5535
|
-
for (const { rule:
|
|
5536
|
-
const [E, S] =
|
|
5537
|
-
if (!
|
|
5535
|
+
for (const { rule: B, vertical: F, $element: Y } of r[y].rules) {
|
|
5536
|
+
const [E, S] = B, z = Y.querySelector(".PanoRulerPlugin-rule-line");
|
|
5537
|
+
if (!z)
|
|
5538
5538
|
return;
|
|
5539
5539
|
if (!D) {
|
|
5540
|
-
|
|
5540
|
+
Y.style.display = "none";
|
|
5541
5541
|
continue;
|
|
5542
5542
|
}
|
|
5543
5543
|
if (E !== D && S !== D) {
|
|
5544
|
-
|
|
5544
|
+
Y.style.display = "none";
|
|
5545
5545
|
continue;
|
|
5546
5546
|
}
|
|
5547
5547
|
if (E.distanceTo(S) < 0.3) {
|
|
5548
|
-
|
|
5548
|
+
Y.style.display = "none";
|
|
5549
5549
|
continue;
|
|
5550
5550
|
}
|
|
5551
5551
|
if (E.observers.indexOf(v) === -1 || S.observers.indexOf(v) === -1) {
|
|
5552
|
-
|
|
5552
|
+
Y.style.display = "none";
|
|
5553
5553
|
continue;
|
|
5554
5554
|
}
|
|
5555
|
-
if (E.clone().sub(I).normalize().angleTo(
|
|
5556
|
-
|
|
5555
|
+
if (E.clone().sub(I).normalize().angleTo(k) > Math.PI / 2) {
|
|
5556
|
+
Y.style.display = "none";
|
|
5557
5557
|
continue;
|
|
5558
5558
|
}
|
|
5559
|
-
if (S.clone().sub(I).normalize().angleTo(
|
|
5560
|
-
|
|
5559
|
+
if (S.clone().sub(I).normalize().angleTo(k) > Math.PI / 2) {
|
|
5560
|
+
Y.style.display = "none";
|
|
5561
5561
|
continue;
|
|
5562
5562
|
}
|
|
5563
5563
|
const ee = E.distanceTo(S);
|
|
5564
5564
|
if (S.clone().sub(S.clone().sub(E).divide(new Z(2, 2, 2))).distanceTo(I) / ee > 8) {
|
|
5565
|
-
|
|
5565
|
+
Y.style.display = "none";
|
|
5566
5566
|
continue;
|
|
5567
5567
|
}
|
|
5568
|
-
const ae = E.clone().project(A), le = (ae.x + 1) / 2 *
|
|
5568
|
+
const ae = E.clone().project(A), le = (ae.x + 1) / 2 * w, me = (-ae.y + 1) / 2 * L, ye = S.clone().project(A), Ie = (ye.x + 1) / 2 * w, Oe = (-ye.y + 1) / 2 * L, oe = Math.sqrt(Math.pow(Ie - le, 2) + Math.pow(Oe - me, 2));
|
|
5569
5569
|
let ve = oe, we = 50;
|
|
5570
5570
|
const se = c({ x: ~~le, y: ~~me }, {
|
|
5571
5571
|
x: ~~Ie,
|
|
5572
5572
|
y: ~~Oe
|
|
5573
|
-
},
|
|
5573
|
+
}, w, L);
|
|
5574
5574
|
if (se && se.length === 1 && (D === E ? (ve = Math.sqrt(Math.pow(se[0].x - le, 2) + Math.pow(se[0].y - me, 2)), we = ve / oe * 50) : D === S && (ve = Math.sqrt(Math.pow(se[0].x - Ie, 2) + Math.pow(se[0].y - Oe, 2)), we = 100 - ve / oe * 50)), se && se.length === 2) {
|
|
5575
5575
|
const ct = {
|
|
5576
5576
|
x: (se[0].x + se[1].x) / 2,
|
|
@@ -5580,8 +5580,8 @@ const Rd = `<style type="text/css">
|
|
|
5580
5580
|
Math.pow(ct.x - le, 2) + Math.pow(ct.y - me, 2)
|
|
5581
5581
|
) / oe * 100;
|
|
5582
5582
|
}
|
|
5583
|
-
const vt = (Math.PI / 2 - Math.atan2(Ie - le, me - Oe)) / Math.PI * 180, Ae =
|
|
5584
|
-
lt >= oe || lt / 2 >= we / 100 * oe || lt / 2 >= (1 - we / 100) * oe ?
|
|
5583
|
+
const vt = (Math.PI / 2 - Math.atan2(Ie - le, me - Oe)) / Math.PI * 180, Ae = z.querySelector(".PanoRulerPlugin-rule-label"), lt = Ae.children[0].clientWidth;
|
|
5584
|
+
lt >= oe || lt / 2 >= we / 100 * oe || lt / 2 >= (1 - we / 100) * oe ? z.style.display = "none" : (z.style.display = "block", z.style.width = oe + "px", z.style.left = le + "px", z.style.top = me + "px", z.style.transform = `rotate(${-vt}deg)`, Ae.style.left = `${we}%`);
|
|
5585
5585
|
}
|
|
5586
5586
|
}, f = () => Br(d), u = () => {
|
|
5587
5587
|
var g, v;
|
|
@@ -5591,9 +5591,9 @@ const Rd = `<style type="text/css">
|
|
|
5591
5591
|
if (g.distanceText && g.distanceText !== e.options.distanceText) {
|
|
5592
5592
|
const v = g.distanceText;
|
|
5593
5593
|
e.options.distanceText = v, Object.values(r).forEach((A) => {
|
|
5594
|
-
A.rules.forEach((
|
|
5595
|
-
const [y, I] =
|
|
5596
|
-
!
|
|
5594
|
+
A.rules.forEach((C) => {
|
|
5595
|
+
const [y, I] = C.rule, k = y.distanceTo(I), w = C.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
5596
|
+
!w || (w.innerText = v(k));
|
|
5597
5597
|
});
|
|
5598
5598
|
});
|
|
5599
5599
|
}
|
|
@@ -5750,10 +5750,10 @@ function Qo(i) {
|
|
|
5750
5750
|
o & 1 && (s.rulerItemProp = n[12]), t.$set(s);
|
|
5751
5751
|
},
|
|
5752
5752
|
i(n) {
|
|
5753
|
-
e || (
|
|
5753
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
5754
5754
|
},
|
|
5755
5755
|
o(n) {
|
|
5756
|
-
|
|
5756
|
+
M(t.$$.fragment, n), e = !1;
|
|
5757
5757
|
},
|
|
5758
5758
|
d(n) {
|
|
5759
5759
|
$(t, n);
|
|
@@ -5764,7 +5764,7 @@ function Ud(i) {
|
|
|
5764
5764
|
let t, e, n = i[0], o = [];
|
|
5765
5765
|
for (let r = 0; r < n.length; r += 1)
|
|
5766
5766
|
o[r] = Qo(Bo(i, n, r));
|
|
5767
|
-
const s = (r) =>
|
|
5767
|
+
const s = (r) => M(o[r], 1, 1, () => {
|
|
5768
5768
|
o[r] = null;
|
|
5769
5769
|
});
|
|
5770
5770
|
return {
|
|
@@ -5785,7 +5785,7 @@ function Ud(i) {
|
|
|
5785
5785
|
let l;
|
|
5786
5786
|
for (l = 0; l < n.length; l += 1) {
|
|
5787
5787
|
const c = Bo(r, n, l);
|
|
5788
|
-
o[l] ? (o[l].p(c, a),
|
|
5788
|
+
o[l] ? (o[l].p(c, a), x(o[l], 1)) : (o[l] = Qo(c), o[l].c(), x(o[l], 1), o[l].m(t, null));
|
|
5789
5789
|
}
|
|
5790
5790
|
for (ue(), l = n.length; l < o.length; l += 1)
|
|
5791
5791
|
s(l);
|
|
@@ -5795,14 +5795,14 @@ function Ud(i) {
|
|
|
5795
5795
|
i(r) {
|
|
5796
5796
|
if (!e) {
|
|
5797
5797
|
for (let a = 0; a < n.length; a += 1)
|
|
5798
|
-
|
|
5798
|
+
x(o[a]);
|
|
5799
5799
|
e = !0;
|
|
5800
5800
|
}
|
|
5801
5801
|
},
|
|
5802
5802
|
o(r) {
|
|
5803
5803
|
o = o.filter(Boolean);
|
|
5804
5804
|
for (let a = 0; a < o.length; a += 1)
|
|
5805
|
-
|
|
5805
|
+
M(o[a]);
|
|
5806
5806
|
e = !1;
|
|
5807
5807
|
},
|
|
5808
5808
|
d(r) {
|
|
@@ -5811,50 +5811,50 @@ function Ud(i) {
|
|
|
5811
5811
|
};
|
|
5812
5812
|
}
|
|
5813
5813
|
function Jd(i, t, e) {
|
|
5814
|
-
var g, v, A,
|
|
5814
|
+
var g, v, A, C;
|
|
5815
5815
|
let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
|
|
5816
|
-
const a = ((v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((
|
|
5817
|
-
const
|
|
5816
|
+
const a = ((v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((C = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : C.clientHeight) || 0, c = (y, I) => {
|
|
5817
|
+
const k = [
|
|
5818
5818
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
5819
5819
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
5820
5820
|
[{ x: a, y: 0 }, { x: a, y: l }],
|
|
5821
5821
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
5822
|
-
],
|
|
5823
|
-
for (let L = 0; L <
|
|
5824
|
-
const D = jr([y, I], [
|
|
5825
|
-
D &&
|
|
5822
|
+
], w = [];
|
|
5823
|
+
for (let L = 0; L < k.length; L++) {
|
|
5824
|
+
const D = jr([y, I], [k[L][0], k[L][1]], !0);
|
|
5825
|
+
D && w.push(D);
|
|
5826
5826
|
}
|
|
5827
|
-
return
|
|
5827
|
+
return w.length === 0 ? !1 : w;
|
|
5828
5828
|
}, d = (y, I) => {
|
|
5829
|
-
const
|
|
5829
|
+
const k = y.clone().project(n.camera), w = (k.x + 1) / 2 * a, L = (-k.y + 1) / 2 * l, D = I.clone().project(n.camera), H = (D.x + 1) / 2 * a, B = (-D.y + 1) / 2 * l, F = Math.sqrt(Math.pow(H - w, 2) + Math.pow(B - L, 2));
|
|
5830
5830
|
return {
|
|
5831
|
-
startLeft:
|
|
5831
|
+
startLeft: w,
|
|
5832
5832
|
startTop: L,
|
|
5833
5833
|
endLeft: H,
|
|
5834
|
-
endTop:
|
|
5834
|
+
endTop: B,
|
|
5835
5835
|
distance: F
|
|
5836
5836
|
};
|
|
5837
|
-
}, f = (y, I,
|
|
5838
|
-
const
|
|
5837
|
+
}, f = (y, I, k) => {
|
|
5838
|
+
const w = n.camera.position, L = n.camera.getWorldDirection(new Z()), D = y.clone().sub(w).normalize().angleTo(L), H = I.clone().sub(w).normalize().angleTo(L), B = y.distanceTo(I), Y = I.clone().sub(I.clone().sub(y).divide(new Z(2, 2, 2))).distanceTo(w), { startLeft: E, startTop: S, endLeft: z, endTop: N, distance: X } = d(y, I), W = -((Math.PI / 2 - Math.atan2(z - E, S - N)) / Math.PI) * 180;
|
|
5839
5839
|
let U = !0;
|
|
5840
|
-
|
|
5841
|
-
let ae = 50, le =
|
|
5842
|
-
const me = c({ x: ~~E, y: ~~S }, { x: ~~
|
|
5843
|
-
if (me && me.length === 1 && (_e(y,
|
|
5840
|
+
k || (U = !1), !_e(y, k) && !_e(I, k) && (U = !1), B < 0.3 && (U = !1), D > Math.PI / 2 && (U = !1), H > Math.PI / 2 && (U = !1), Y / B > 8 && (U = !1);
|
|
5841
|
+
let ae = 50, le = X;
|
|
5842
|
+
const me = c({ x: ~~E, y: ~~S }, { x: ~~z, y: ~~N });
|
|
5843
|
+
if (me && me.length === 1 && (_e(y, k) ? (le = Math.sqrt(Math.pow(me[0].x - E, 2) + Math.pow(me[0].y - S, 2)), ae = le / X * 50) : _e(I, k) && (le = Math.sqrt(Math.pow(me[0].x - z, 2) + Math.pow(me[0].y - N, 2)), ae = 100 - le / X * 50)), me && me.length === 2) {
|
|
5844
5844
|
const ye = {
|
|
5845
5845
|
x: (me[0].x + me[1].x) / 2,
|
|
5846
5846
|
y: (me[0].y + me[1].y) / 2
|
|
5847
5847
|
};
|
|
5848
|
-
ae = Math.sqrt(Math.pow(ye.x - E, 2) + Math.pow(ye.y - S, 2)) /
|
|
5848
|
+
ae = Math.sqrt(Math.pow(ye.x - E, 2) + Math.pow(ye.y - S, 2)) / X * 100;
|
|
5849
5849
|
}
|
|
5850
5850
|
return {
|
|
5851
5851
|
startLeft: E,
|
|
5852
5852
|
startTop: S,
|
|
5853
|
-
distance:
|
|
5853
|
+
distance: X,
|
|
5854
5854
|
deg: W,
|
|
5855
5855
|
visible: U,
|
|
5856
5856
|
labelOffset: ae,
|
|
5857
|
-
ruleLength:
|
|
5857
|
+
ruleLength: B
|
|
5858
5858
|
};
|
|
5859
5859
|
}, u = () => {
|
|
5860
5860
|
const y = n.panoIndex, I = o.find((F) => F.panoIndex === y);
|
|
@@ -5862,20 +5862,20 @@ function Jd(i, t, e) {
|
|
|
5862
5862
|
return e(0, r = []);
|
|
5863
5863
|
if (n.currentMode !== Me.Mode.Panorama)
|
|
5864
5864
|
return e(0, r = []);
|
|
5865
|
-
const
|
|
5866
|
-
const E = F.clone().setY(0).sub(
|
|
5865
|
+
const k = n.camera.position, w = n.camera.getWorldDirection(new Z()), L = I.lines.map((F) => new Z(F.start[0], -F.start[1], -F.start[2])), D = I.lines.map((F) => new Z(F.end[0], -F.end[1], -F.end[2])), [H] = L.concat(D).sort((F, Y) => {
|
|
5866
|
+
const E = F.clone().setY(0).sub(k).normalize().angleTo(w.clone().setY(0)), S = Y.clone().setY(0).sub(k).normalize().angleTo(w.clone().setY(0));
|
|
5867
5867
|
return E - S;
|
|
5868
|
-
}),
|
|
5868
|
+
}), B = I.lines.map((F) => {
|
|
5869
5869
|
var le, me;
|
|
5870
|
-
const
|
|
5870
|
+
const Y = F.start, E = F.end, { startLeft: S, startTop: z, distance: N, deg: X, visible: ee, labelOffset: W, ruleLength: U } = f(new Z(Y[0], -Y[1], -Y[2]), new Z(E[0], -E[1], -E[2]), H), ae = [];
|
|
5871
5871
|
return F.children && ((le = F.children) == null ? void 0 : le.length) > 0 && ((me = F.children) == null || me.forEach((ye) => {
|
|
5872
5872
|
const Ie = ye.start, Oe = ye.end, { distance: oe } = d(new Z(Ie[0], -Ie[1], -Ie[2]), new Z(Oe[0], -Oe[1], -Oe[2]));
|
|
5873
5873
|
ae.push({ width: oe, state: ye.state });
|
|
5874
5874
|
})), {
|
|
5875
5875
|
width: N,
|
|
5876
5876
|
left: S,
|
|
5877
|
-
top:
|
|
5878
|
-
rotateDeg:
|
|
5877
|
+
top: z,
|
|
5878
|
+
rotateDeg: X,
|
|
5879
5879
|
state: F.state,
|
|
5880
5880
|
children: ae,
|
|
5881
5881
|
labelOffset: W,
|
|
@@ -5883,7 +5883,7 @@ function Jd(i, t, e) {
|
|
|
5883
5883
|
labelElement: s.distanceText(U)
|
|
5884
5884
|
};
|
|
5885
5885
|
});
|
|
5886
|
-
e(0, r =
|
|
5886
|
+
e(0, r = B);
|
|
5887
5887
|
}, m = () => Gn(u), p = Ti(u, 80);
|
|
5888
5888
|
return Ue(() => {
|
|
5889
5889
|
u(), n.on("panoArrived", u), n.on("modeChange", u), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () => p()), n.on("pinchGesture", () => p());
|
|
@@ -6394,15 +6394,15 @@ function gu(i) {
|
|
|
6394
6394
|
const v = g.clientWidth, A = g.clientHeight;
|
|
6395
6395
|
if (a.points.length < 2)
|
|
6396
6396
|
return;
|
|
6397
|
-
const [
|
|
6398
|
-
if ((() => !(Math.abs(I.z) > 1 || Math.abs(
|
|
6397
|
+
const [C, y] = a.points, I = C.position.clone().project(p.camera), k = y.position.clone().project(p.camera), w = I.clone().lerp(k, 0.5), L = new je(I.x * v, I.y * A), D = new je(k.x * v, k.y * A);
|
|
6398
|
+
if ((() => !(Math.abs(I.z) > 1 || Math.abs(k.z) > 1 || !Ke(I) && !Ke(k) || !Ke(w) || L.distanceTo(D) < 20))() === !1) {
|
|
6399
6399
|
d.style.opacity = "0", d.style.pointerEvents = "none";
|
|
6400
6400
|
return;
|
|
6401
6401
|
}
|
|
6402
|
-
const
|
|
6403
|
-
d.style.transform = `translate(${
|
|
6404
|
-
const S =
|
|
6405
|
-
c.innerText !==
|
|
6402
|
+
const B = (w.x + 1) / 2 * v, F = -(w.y - 1) / 2 * A, E = -(Math.atan((L.y - D.y) / (L.x - D.x)) * 180) / Math.PI;
|
|
6403
|
+
d.style.transform = `translate(${B}px, ${F}px) rotate(${E}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", f && f.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
|
|
6404
|
+
const S = C.position.clone().distanceTo(y.position), z = i.line.model.params.getDistanceText(S);
|
|
6405
|
+
c.innerText !== z && (c.innerText = z);
|
|
6406
6406
|
}
|
|
6407
6407
|
function s(p) {
|
|
6408
6408
|
p.appendChild(d), d.addEventListener("click", t);
|
|
@@ -6749,14 +6749,14 @@ class vu extends Wn {
|
|
|
6749
6749
|
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
6750
6750
|
if (!Ke(v) && !Ke(A))
|
|
6751
6751
|
return null;
|
|
6752
|
-
const
|
|
6752
|
+
const C = new je(
|
|
6753
6753
|
v.x * r,
|
|
6754
6754
|
v.y * a
|
|
6755
6755
|
), y = new je(
|
|
6756
6756
|
A.x * r,
|
|
6757
6757
|
A.y * a
|
|
6758
6758
|
);
|
|
6759
|
-
return { id: m.id, points: [
|
|
6759
|
+
return { id: m.id, points: [C, y] };
|
|
6760
6760
|
}).filter((m) => !!m);
|
|
6761
6761
|
if (c.length === 0)
|
|
6762
6762
|
return;
|
|
@@ -6961,14 +6961,14 @@ class Kn extends Wn {
|
|
|
6961
6961
|
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
6962
6962
|
if (!Ke(v) && !Ke(A))
|
|
6963
6963
|
return null;
|
|
6964
|
-
const
|
|
6964
|
+
const C = new je(
|
|
6965
6965
|
v.x * r,
|
|
6966
6966
|
v.y * a
|
|
6967
6967
|
), y = new je(
|
|
6968
6968
|
A.x * r,
|
|
6969
6969
|
A.y * a
|
|
6970
6970
|
);
|
|
6971
|
-
return { id: m.id, points: [
|
|
6971
|
+
return { id: m.id, points: [C, y] };
|
|
6972
6972
|
}).filter((m) => !!m);
|
|
6973
6973
|
if (c.length === 0)
|
|
6974
6974
|
return;
|
|
@@ -7061,8 +7061,8 @@ class Fo extends Wn {
|
|
|
7061
7061
|
const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
|
|
7062
7062
|
if (!Ke(v) && !Ke(A))
|
|
7063
7063
|
return null;
|
|
7064
|
-
const
|
|
7065
|
-
return { id: m.id, points: [
|
|
7064
|
+
const C = new je(v.x * r, v.y * a), y = new je(A.x * r, A.y * a);
|
|
7065
|
+
return { id: m.id, points: [C, y] };
|
|
7066
7066
|
}).filter((m) => !!m);
|
|
7067
7067
|
if (c.length === 0)
|
|
7068
7068
|
return;
|
|
@@ -7162,8 +7162,8 @@ void main() {
|
|
|
7162
7162
|
}
|
|
7163
7163
|
`;
|
|
7164
7164
|
function Hr(i) {
|
|
7165
|
-
var A,
|
|
7166
|
-
const t = (A = i.isMobile) != null ? A : !0, e = (
|
|
7165
|
+
var A, C;
|
|
7166
|
+
const t = (A = i.isMobile) != null ? A : !0, e = (C = i.useNormalVector) != null ? C : !0;
|
|
7167
7167
|
let n = 10349931;
|
|
7168
7168
|
e && i.ballColor >= 0 && (n = i.ballColor);
|
|
7169
7169
|
const o = new Ci(), s = new La(0.3, 0.3), r = t ? Eu : Pu, a = new ur().load(r);
|
|
@@ -8033,15 +8033,15 @@ function tf(i) {
|
|
|
8033
8033
|
};
|
|
8034
8034
|
}
|
|
8035
8035
|
function nf(i, t, e) {
|
|
8036
|
-
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: f } = t, { events: u } = t, { hooks: m } = t, p = 0, g = 0, v, A,
|
|
8036
|
+
let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: f } = t, { events: u } = t, { hooks: m } = t, p = 0, g = 0, v, A, C = setTimeout(
|
|
8037
8037
|
() => {
|
|
8038
|
-
d || e(10, A = !0),
|
|
8038
|
+
d || e(10, A = !0), C = void 0;
|
|
8039
8039
|
},
|
|
8040
8040
|
100
|
|
8041
8041
|
);
|
|
8042
|
-
const y = (
|
|
8042
|
+
const y = (w) => {
|
|
8043
8043
|
const L = Object.keys(u);
|
|
8044
|
-
let D =
|
|
8044
|
+
let D = w.target;
|
|
8045
8045
|
for (; D; ) {
|
|
8046
8046
|
const H = D.getAttribute("class");
|
|
8047
8047
|
if (!H) {
|
|
@@ -8052,37 +8052,37 @@ function nf(i, t, e) {
|
|
|
8052
8052
|
D = null;
|
|
8053
8053
|
break;
|
|
8054
8054
|
}
|
|
8055
|
-
L.forEach((
|
|
8056
|
-
H.includes(
|
|
8055
|
+
L.forEach((B) => {
|
|
8056
|
+
H.includes(B) && u[B](n);
|
|
8057
8057
|
}), D = D.parentNode;
|
|
8058
8058
|
}
|
|
8059
8059
|
};
|
|
8060
8060
|
Ue(() => {
|
|
8061
8061
|
m.emit("initTag", { id: n });
|
|
8062
8062
|
});
|
|
8063
|
-
const I = Yr.subscribe((
|
|
8064
|
-
if (
|
|
8063
|
+
const I = Yr.subscribe((w) => {
|
|
8064
|
+
if (w === null)
|
|
8065
8065
|
return;
|
|
8066
|
-
const [L, D] =
|
|
8067
|
-
n === L && (m.emit("clickOrigin", { id: n, show: A }),
|
|
8066
|
+
const [L, D] = w.split("-PanoSpatialTagPlugin-");
|
|
8067
|
+
n === L && (m.emit("clickOrigin", { id: n, show: A }), C || (e(10, A = d), e(12, d = !d), C = setTimeout(
|
|
8068
8068
|
() => {
|
|
8069
|
-
|
|
8069
|
+
C = void 0;
|
|
8070
8070
|
},
|
|
8071
8071
|
1500
|
|
8072
8072
|
)));
|
|
8073
8073
|
});
|
|
8074
8074
|
Ii(() => {
|
|
8075
|
-
e(7, p = v.offsetWidth), e(8, g = v.offsetHeight), !
|
|
8075
|
+
e(7, p = v.offsetWidth), e(8, g = v.offsetHeight), !C && e(10, A = !d);
|
|
8076
8076
|
}), At(() => {
|
|
8077
8077
|
m.emit("destroyTag", { id: n }), I(), f();
|
|
8078
8078
|
});
|
|
8079
|
-
function
|
|
8080
|
-
Qe[
|
|
8081
|
-
v =
|
|
8079
|
+
function k(w) {
|
|
8080
|
+
Qe[w ? "unshift" : "push"](() => {
|
|
8081
|
+
v = w, e(9, v);
|
|
8082
8082
|
});
|
|
8083
8083
|
}
|
|
8084
|
-
return i.$$set = (
|
|
8085
|
-
"id" in
|
|
8084
|
+
return i.$$set = (w) => {
|
|
8085
|
+
"id" in w && e(0, n = w.id), "upsideDown" in w && e(1, o = w.upsideDown), "content" in w && e(2, s = w.content), "contentZoom" in w && e(3, r = w.contentZoom), "lineWidthZoom" in w && e(4, a = w.lineWidthZoom), "lineHeightZoom" in w && e(5, l = w.lineHeightZoom), "destroying" in w && e(6, c = w.destroying), "folded" in w && e(12, d = w.folded), "dispose" in w && e(13, f = w.dispose), "events" in w && e(14, u = w.events), "hooks" in w && e(15, m = w.hooks);
|
|
8086
8086
|
}, [
|
|
8087
8087
|
n,
|
|
8088
8088
|
o,
|
|
@@ -8100,7 +8100,7 @@ function nf(i, t, e) {
|
|
|
8100
8100
|
f,
|
|
8101
8101
|
u,
|
|
8102
8102
|
m,
|
|
8103
|
-
|
|
8103
|
+
k
|
|
8104
8104
|
];
|
|
8105
8105
|
}
|
|
8106
8106
|
class of extends te {
|
|
@@ -8291,9 +8291,9 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
8291
8291
|
target: u,
|
|
8292
8292
|
props: { origins: g.origins }
|
|
8293
8293
|
}), A = (oe, ve) => {
|
|
8294
|
-
|
|
8295
|
-
},
|
|
8296
|
-
g.forbidden && (g.forbidden = !1,
|
|
8294
|
+
k(), ve && w();
|
|
8295
|
+
}, C = () => {
|
|
8296
|
+
g.forbidden && (g.forbidden = !1, w());
|
|
8297
8297
|
}, y = (oe, ve) => {
|
|
8298
8298
|
if (g.tags.length === 0)
|
|
8299
8299
|
return;
|
|
@@ -8323,13 +8323,13 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
8323
8323
|
}), setTimeout(() => {
|
|
8324
8324
|
g.tags.forEach((Ae) => {
|
|
8325
8325
|
Ae.destroying && (Ae.app.$destroy(), Ae = null);
|
|
8326
|
-
}), g.tags = g.tags.filter((Ae) => !Ae.destroying),
|
|
8326
|
+
}), g.tags = g.tags.filter((Ae) => !Ae.destroying), k();
|
|
8327
8327
|
}, 1900);
|
|
8328
8328
|
}, I = (oe) => {
|
|
8329
8329
|
oe !== Me.Mode.Panorama && !g.forbidden && (v.$set({ origins: [] }), g.tags.forEach((ve) => {
|
|
8330
8330
|
ve.app.$destroy(), ve = null;
|
|
8331
8331
|
}), g.origins = [], g.tags = [], g.forbidden = !0);
|
|
8332
|
-
},
|
|
8332
|
+
}, k = () => {
|
|
8333
8333
|
if (g.forbidden || !g.enabled)
|
|
8334
8334
|
return;
|
|
8335
8335
|
const oe = i.camera, ve = oe.getWorldDirection(new P.Vector3());
|
|
@@ -8343,11 +8343,11 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
8343
8343
|
destroying: we.destroying
|
|
8344
8344
|
};
|
|
8345
8345
|
}), v.$set({ origins: g.origins });
|
|
8346
|
-
},
|
|
8346
|
+
}, w = () => {
|
|
8347
8347
|
g.forbidden || !g.enabled || (g.timeoutId && clearTimeout(g.timeoutId), g.timeoutId = setTimeout(() => {
|
|
8348
8348
|
g.timeoutId = void 0;
|
|
8349
8349
|
const oe = L();
|
|
8350
|
-
oe.length && (g.tags = g.tags.concat(oe),
|
|
8350
|
+
oe.length && (g.tags = g.tags.concat(oe), k());
|
|
8351
8351
|
}, o));
|
|
8352
8352
|
}, L = () => {
|
|
8353
8353
|
const { clientWidth: oe, clientHeight: ve } = i.getElement(), we = [], se = i.camera, it = new P.Frustum(), vt = new P.Matrix4(), Ae = se.getWorldDirection(new P.Vector3());
|
|
@@ -8460,14 +8460,14 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
8460
8460
|
};
|
|
8461
8461
|
}), oe.render && (g.render = oe.render), oe.template && (g.template = oe.template), oe.events && (g.events = oe.events), oe.enabled === !1 && (g.enabled = oe.enabled), oe.folded === !0 && (g.folded = oe.folded);
|
|
8462
8462
|
}, H = (oe) => {
|
|
8463
|
-
g.intersectObjects = oe,
|
|
8464
|
-
},
|
|
8465
|
-
g.enabled = !0,
|
|
8463
|
+
g.intersectObjects = oe, w();
|
|
8464
|
+
}, B = () => {
|
|
8465
|
+
g.enabled = !0, w();
|
|
8466
8466
|
}, F = () => {
|
|
8467
8467
|
g.enabled = !1, v.$set({ origins: [] }), g.tags.forEach((oe) => {
|
|
8468
8468
|
oe.app.$destroy(), oe = null;
|
|
8469
8469
|
}), g.origins = [], g.tags = [];
|
|
8470
|
-
},
|
|
8470
|
+
}, Y = () => {
|
|
8471
8471
|
g.folded = !1, g.tags.forEach((oe) => {
|
|
8472
8472
|
oe.app.$set({ folded: g.folded });
|
|
8473
8473
|
});
|
|
@@ -8479,27 +8479,27 @@ const $n = 1e-3, Zo = 0.01, df = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
8479
8479
|
g.tags.forEach((ve) => {
|
|
8480
8480
|
ve.id === oe && ve.app.$set({ folded: !1 });
|
|
8481
8481
|
});
|
|
8482
|
-
},
|
|
8482
|
+
}, z = (oe) => {
|
|
8483
8483
|
g.tags.forEach((ve) => {
|
|
8484
8484
|
ve.id === oe && ve.app.$set({ folded: !0 });
|
|
8485
8485
|
});
|
|
8486
8486
|
}, N = () => {
|
|
8487
|
-
i.once("renderFrame",
|
|
8488
|
-
},
|
|
8489
|
-
e || (e = i.getElement().parentElement), e && e.appendChild(u), g.forbidden = !1, n = i.model.bounding.getCenter(new P.Vector3()).y,
|
|
8487
|
+
i.once("renderFrame", k);
|
|
8488
|
+
}, X = () => {
|
|
8489
|
+
e || (e = i.getElement().parentElement), e && e.appendChild(u), g.forbidden = !1, n = i.model.bounding.getCenter(new P.Vector3()).y, w(), i.on("panoWillArrive", y), i.on("panoArrived", C), i.on("modeChange", I), i.on("cameraUpdate", A);
|
|
8490
8490
|
}, ee = () => {
|
|
8491
8491
|
p = null, f.disposeAll(), v.$destroy(), g.tags.forEach((oe) => {
|
|
8492
8492
|
oe.app.$destroy(), oe = null;
|
|
8493
|
-
}), g.origins = [], g.tags = [], i.off("modelLoaded",
|
|
8493
|
+
}), g.origins = [], g.tags = [], i.off("modelLoaded", X), i.off("renderFrame", k), i.off("panoWillArrive", y), i.off("panoArrived", C), i.off("modeChange", I), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", N, !1);
|
|
8494
8494
|
};
|
|
8495
|
-
return window.addEventListener("resize", N, !1), (Oe = i == null ? void 0 : i.model) != null && Oe.loaded ?
|
|
8495
|
+
return window.addEventListener("resize", N, !1), (Oe = i == null ? void 0 : i.model) != null && Oe.loaded ? X() : i.once("modelLoaded", X), i.on("dispose", ee), {
|
|
8496
8496
|
load: D,
|
|
8497
8497
|
setIntersectObjects: H,
|
|
8498
|
-
unfoldAll:
|
|
8498
|
+
unfoldAll: Y,
|
|
8499
8499
|
foldAll: E,
|
|
8500
8500
|
unfold: S,
|
|
8501
|
-
fold:
|
|
8502
|
-
enable:
|
|
8501
|
+
fold: z,
|
|
8502
|
+
enable: B,
|
|
8503
8503
|
disable: F,
|
|
8504
8504
|
hooks: m,
|
|
8505
8505
|
dispose: ee
|
|
@@ -8581,10 +8581,10 @@ function _o(i, t) {
|
|
|
8581
8581
|
r & 2 && (a.itemLabel = t[26]), r & 1 && (a.hooks = t[0]), n.$set(a);
|
|
8582
8582
|
},
|
|
8583
8583
|
i(s) {
|
|
8584
|
-
o || (
|
|
8584
|
+
o || (x(n.$$.fragment, s), o = !0);
|
|
8585
8585
|
},
|
|
8586
8586
|
o(s) {
|
|
8587
|
-
|
|
8587
|
+
M(n.$$.fragment, s), o = !1;
|
|
8588
8588
|
},
|
|
8589
8589
|
d(s) {
|
|
8590
8590
|
s && j(e), $(n, s);
|
|
@@ -8617,13 +8617,13 @@ function gf(i) {
|
|
|
8617
8617
|
i(l) {
|
|
8618
8618
|
if (!s) {
|
|
8619
8619
|
for (let c = 0; c < r.length; c += 1)
|
|
8620
|
-
|
|
8620
|
+
x(e[c]);
|
|
8621
8621
|
s = !0;
|
|
8622
8622
|
}
|
|
8623
8623
|
},
|
|
8624
8624
|
o(l) {
|
|
8625
8625
|
for (let c = 0; c < e.length; c += 1)
|
|
8626
|
-
|
|
8626
|
+
M(e[c]);
|
|
8627
8627
|
s = !1;
|
|
8628
8628
|
},
|
|
8629
8629
|
d(l) {
|
|
@@ -8639,14 +8639,14 @@ function vf(i, t, e) {
|
|
|
8639
8639
|
const { Raycaster: n, Vector3: o } = P;
|
|
8640
8640
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, f = null, u, m, p = [], g = !0;
|
|
8641
8641
|
const v = (E, S) => {
|
|
8642
|
-
const
|
|
8643
|
-
|
|
8644
|
-
const [W] = E.model.intersectRaycaster(
|
|
8642
|
+
const z = new n(), N = E.camera.position.clone(), X = new o().fromArray(S.modelPosition), ee = X.distanceTo(N);
|
|
8643
|
+
z.set(N.clone(), X.clone().sub(N).normalize());
|
|
8644
|
+
const [W] = E.model.intersectRaycaster(z);
|
|
8645
8645
|
return !(W && W.distance + 1 < ee);
|
|
8646
8646
|
}, A = (E, S) => {
|
|
8647
|
-
const
|
|
8648
|
-
return [
|
|
8649
|
-
},
|
|
8647
|
+
const z = new o(S.modelPosition[0], S.modelPosition[1], S.modelPosition[2]), N = E.project2d(z), X = N == null ? void 0 : N.x, ee = N == null ? void 0 : N.y;
|
|
8648
|
+
return [X, ee];
|
|
8649
|
+
}, C = (E) => `translate(${E[0]}px, ${E[1]}px)`, y = (E, S) => p.length === 0 ? !1 : !!p.find((N) => E[0] >= N[0] - S && E[0] <= N[0] + S || E[1] >= N[1] - Ko && E[1] <= N[1] + Ko);
|
|
8650
8650
|
function I(E, S) {
|
|
8651
8651
|
switch (S) {
|
|
8652
8652
|
case Ht.SMALL:
|
|
@@ -8659,54 +8659,54 @@ function vf(i, t, e) {
|
|
|
8659
8659
|
return Math.ceil(-92.59 * E + 300);
|
|
8660
8660
|
}
|
|
8661
8661
|
}
|
|
8662
|
-
const
|
|
8663
|
-
const
|
|
8664
|
-
const ee = A(E,
|
|
8662
|
+
const k = (E, S) => {
|
|
8663
|
+
const z = S.map((X) => {
|
|
8664
|
+
const ee = A(E, X), W = X.name.length * Af, U = I(X.modelPosition[1], c), le = (r ? v(E, X) : !0) && !y([ee[0], ee[1] + U], W);
|
|
8665
8665
|
if (!le)
|
|
8666
|
-
return he(G({},
|
|
8666
|
+
return he(G({}, X), { visible: le });
|
|
8667
8667
|
p.push(ee);
|
|
8668
|
-
const me =
|
|
8669
|
-
return he(G({},
|
|
8668
|
+
const me = C(ee);
|
|
8669
|
+
return he(G({}, X), {
|
|
8670
8670
|
visible: le,
|
|
8671
8671
|
transform: me,
|
|
8672
8672
|
strokeLength: U
|
|
8673
8673
|
});
|
|
8674
|
-
}), N =
|
|
8675
|
-
itemLabelItem:
|
|
8676
|
-
distance: new o(
|
|
8677
|
-
})).sort((
|
|
8678
|
-
return
|
|
8679
|
-
const ee = N.findIndex((W) => W.itemLabelItem.id ===
|
|
8680
|
-
return ee !== void 0 ? he(G({},
|
|
8674
|
+
}), N = z.filter(({ visible: X }) => X).map((X) => ({
|
|
8675
|
+
itemLabelItem: X,
|
|
8676
|
+
distance: new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]).clone().distanceTo(E.camera.position)
|
|
8677
|
+
})).sort((X, ee) => X.distance - ee.distance);
|
|
8678
|
+
return z.map((X) => {
|
|
8679
|
+
const ee = N.findIndex((W) => W.itemLabelItem.id === X.id);
|
|
8680
|
+
return ee !== void 0 ? he(G({}, X), { zIndex: ee * 10 }) : X;
|
|
8681
8681
|
});
|
|
8682
|
-
},
|
|
8683
|
-
p = [], e(1, f =
|
|
8682
|
+
}, w = () => {
|
|
8683
|
+
p = [], e(1, f = k(s, f));
|
|
8684
8684
|
};
|
|
8685
8685
|
xi(() => {
|
|
8686
|
-
|
|
8686
|
+
B();
|
|
8687
8687
|
});
|
|
8688
8688
|
const L = () => {
|
|
8689
8689
|
e(4, g = !1), D();
|
|
8690
8690
|
};
|
|
8691
8691
|
Ue(() => {
|
|
8692
|
-
e(1, f = a), d = a,
|
|
8692
|
+
e(1, f = a), d = a, w(), H(), s.on("cameraUpdate", L);
|
|
8693
8693
|
});
|
|
8694
8694
|
const D = Ur(
|
|
8695
8695
|
() => {
|
|
8696
|
-
e(4, g = !0),
|
|
8696
|
+
e(4, g = !0), w();
|
|
8697
8697
|
},
|
|
8698
8698
|
300
|
|
8699
8699
|
), H = () => {
|
|
8700
8700
|
window.addEventListener("resize", F, !1);
|
|
8701
|
-
},
|
|
8702
|
-
d !== a && (e(1, f = a), d = a,
|
|
8701
|
+
}, B = () => {
|
|
8702
|
+
d !== a && (e(1, f = a), d = a, w());
|
|
8703
8703
|
}, F = () => {
|
|
8704
|
-
s.once("renderFrame",
|
|
8704
|
+
s.once("renderFrame", w);
|
|
8705
8705
|
};
|
|
8706
8706
|
At(() => {
|
|
8707
8707
|
s.off("cameraUpdate", L), window.removeEventListener("resize", F, !1);
|
|
8708
8708
|
});
|
|
8709
|
-
function
|
|
8709
|
+
function Y() {
|
|
8710
8710
|
u = this.clientWidth, m = this.clientHeight, e(2, u), e(3, m);
|
|
8711
8711
|
}
|
|
8712
8712
|
return i.$$set = (E) => {
|
|
@@ -8721,7 +8721,7 @@ function vf(i, t, e) {
|
|
|
8721
8721
|
r,
|
|
8722
8722
|
a,
|
|
8723
8723
|
c,
|
|
8724
|
-
|
|
8724
|
+
Y
|
|
8725
8725
|
];
|
|
8726
8726
|
}
|
|
8727
8727
|
class bf extends te {
|
|
@@ -8853,17 +8853,17 @@ const r0 = (i, { videoElement: t }) => {
|
|
|
8853
8853
|
}, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
|
|
8854
8854
|
if (e.enabled || !e.videoTexture)
|
|
8855
8855
|
return;
|
|
8856
|
-
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((
|
|
8856
|
+
e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((C) => i.scene.add(C));
|
|
8857
8857
|
const A = () => {
|
|
8858
8858
|
if (!e.videoTexture)
|
|
8859
8859
|
return;
|
|
8860
|
-
const
|
|
8860
|
+
const C = () => {
|
|
8861
8861
|
var y;
|
|
8862
|
-
!e.videoTexture || ((y = e.videoTexture) == null || y.image.removeEventListener("timeupdate",
|
|
8862
|
+
!e.videoTexture || ((y = e.videoTexture) == null || y.image.removeEventListener("timeupdate", C), e.videoTextureEnabled = !0, e.videoMeshes.forEach((I) => {
|
|
8863
8863
|
I.material.map !== e.videoTexture && (I.material.map = e.videoTexture);
|
|
8864
8864
|
}), i.needsRender = !0);
|
|
8865
8865
|
};
|
|
8866
|
-
e.videoTexture.image.addEventListener("timeupdate",
|
|
8866
|
+
e.videoTexture.image.addEventListener("timeupdate", C), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
8867
8867
|
n.hide();
|
|
8868
8868
|
}, e.videoTexture.image.onpause = () => {
|
|
8869
8869
|
n.show();
|
|
@@ -8879,75 +8879,75 @@ const r0 = (i, { videoElement: t }) => {
|
|
|
8879
8879
|
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
|
|
8880
8880
|
A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
|
|
8881
8881
|
}), e.videoMeshes = [], i.needsRender = !0);
|
|
8882
|
-
}, c = () => e.rectPoints.map((A,
|
|
8883
|
-
const y = new P.BufferGeometry(), I = 128,
|
|
8884
|
-
|
|
8882
|
+
}, c = () => e.rectPoints.map((A, C) => {
|
|
8883
|
+
const y = new P.BufferGeometry(), I = 128, k = [];
|
|
8884
|
+
k.push(...A[0].toArray());
|
|
8885
8885
|
for (let E = 1; E < I; E++)
|
|
8886
|
-
|
|
8886
|
+
k.push(
|
|
8887
8887
|
A[0].x + (A[1].x - A[0].x) * E / I,
|
|
8888
8888
|
A[0].y + (A[1].y - A[0].y) * E / I,
|
|
8889
8889
|
A[0].z + (A[1].z - A[0].z) * E / I
|
|
8890
8890
|
);
|
|
8891
|
-
|
|
8891
|
+
k.push(...A[1].toArray()), k.push(...A[2].toArray());
|
|
8892
8892
|
for (let E = 1; E < I; E++)
|
|
8893
|
-
|
|
8893
|
+
k.push(
|
|
8894
8894
|
A[2].x + (A[3].x - A[2].x) * E / I,
|
|
8895
8895
|
A[2].y + (A[3].y - A[2].y) * E / I,
|
|
8896
8896
|
A[2].z + (A[3].z - A[2].z) * E / I
|
|
8897
8897
|
);
|
|
8898
|
-
|
|
8899
|
-
const
|
|
8900
|
-
|
|
8898
|
+
k.push(...A[3].toArray());
|
|
8899
|
+
const w = [];
|
|
8900
|
+
w.push(0, 1);
|
|
8901
8901
|
for (let E = 1; E < I; E++)
|
|
8902
|
-
|
|
8903
|
-
|
|
8902
|
+
w.push(0, 1 - E / I);
|
|
8903
|
+
w.push(0, 0), w.push(1, 0);
|
|
8904
8904
|
for (let E = 1; E < I; E++)
|
|
8905
|
-
|
|
8906
|
-
|
|
8905
|
+
w.push(1, E / I);
|
|
8906
|
+
w.push(1, 1);
|
|
8907
8907
|
const L = [];
|
|
8908
8908
|
for (let E = 0; E < I; E++)
|
|
8909
8909
|
L.push(E, E + 1, I * 2 - E, E, I * 2 - E, I * 2 + 1 - E);
|
|
8910
|
-
y.setAttribute("position", new P.BufferAttribute(new Float32Array(
|
|
8910
|
+
y.setAttribute("position", new P.BufferAttribute(new Float32Array(k), 3)), y.setAttribute("uv", new P.BufferAttribute(new Float32Array(w), 2)), y.setIndex(new P.BufferAttribute(new Uint32Array(L), 1));
|
|
8911
8911
|
const D = new P.AxesHelper(10);
|
|
8912
8912
|
i.scene.add(D);
|
|
8913
8913
|
const H = new P.MeshBasicMaterial({
|
|
8914
8914
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
8915
8915
|
side: P.DoubleSide
|
|
8916
|
-
}),
|
|
8917
|
-
|
|
8918
|
-
const F = [A[1], A[2], A[3], A[0]],
|
|
8919
|
-
if (
|
|
8916
|
+
}), B = new P.Mesh(y, H);
|
|
8917
|
+
B.renderOrder = 1, B.name = `ModelTVVideoPlugin-${C}-${performance.now()}`;
|
|
8918
|
+
const F = [A[1], A[2], A[3], A[0]], Y = n.create3DDomContainer(F);
|
|
8919
|
+
if (Y != null && Y.container) {
|
|
8920
8920
|
const E = document.createElement("div");
|
|
8921
|
-
E.classList.add("play-icon"), E.style.width = "100%", E.style.height = "100%", E.style.display = "flex", E.style.justifyContent = "center", E.style.alignItems = "center", E.style.pointerEvents = "none",
|
|
8921
|
+
E.classList.add("play-icon"), E.style.width = "100%", E.style.height = "100%", E.style.display = "flex", E.style.justifyContent = "center", E.style.alignItems = "center", E.style.pointerEvents = "none", Y.container.appendChild(E);
|
|
8922
8922
|
const S = document.createElement("img");
|
|
8923
8923
|
S.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", S.style.width = "200px", S.style.pointerEvents = "auto", S.onclick = () => {
|
|
8924
8924
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
8925
|
-
}, E.appendChild(S), o.set(
|
|
8925
|
+
}, E.appendChild(S), o.set(B, Y);
|
|
8926
8926
|
}
|
|
8927
|
-
return
|
|
8927
|
+
return B;
|
|
8928
8928
|
}), d = (A) => {
|
|
8929
|
-
const
|
|
8930
|
-
return
|
|
8931
|
-
}, f = (A,
|
|
8932
|
-
const
|
|
8933
|
-
|
|
8934
|
-
if (
|
|
8935
|
-
if (
|
|
8936
|
-
const
|
|
8937
|
-
|
|
8938
|
-
const L = new P.VideoTexture(
|
|
8929
|
+
const C = new P.TextureLoader().load(A);
|
|
8930
|
+
return C.minFilter = P.LinearFilter, C.magFilter = P.LinearFilter, C.format = P.RGBFormat, C;
|
|
8931
|
+
}, f = (A, C) => new Promise((y, I) => {
|
|
8932
|
+
const k = new XMLHttpRequest();
|
|
8933
|
+
k.onreadystatechange = () => {
|
|
8934
|
+
if (k.readyState == 4)
|
|
8935
|
+
if (k.status == 200) {
|
|
8936
|
+
const w = window.URL || window.webkitURL;
|
|
8937
|
+
C = C || document.createElement("video"), C.crossOrigin = "anonymous", C.muted = !0, C.loop = !0, C.playsInline = !0, C.src = w.createObjectURL(k.response);
|
|
8938
|
+
const L = new P.VideoTexture(C);
|
|
8939
8939
|
L.minFilter = P.LinearFilter, L.magFilter = P.LinearFilter, L.format = P.RGBFormat, y(Object.assign(L, { videoSource: A }));
|
|
8940
8940
|
} else
|
|
8941
|
-
I(new Error("Video download Error: " +
|
|
8942
|
-
},
|
|
8943
|
-
}), u = (A,
|
|
8944
|
-
const { video_src: y, video_poster_src: I, points:
|
|
8945
|
-
e.videoSource = y, e.rectPoints = wf(
|
|
8941
|
+
I(new Error("Video download Error: " + k.status));
|
|
8942
|
+
}, k.onerror = (w) => I(w), k.open("GET", A), k.responseType = "blob", k.send();
|
|
8943
|
+
}), u = (A, C) => J(void 0, null, function* () {
|
|
8944
|
+
const { video_src: y, video_poster_src: I, points: k } = A;
|
|
8945
|
+
e.videoSource = y, e.rectPoints = wf(k).map((w) => w.map(({ x: L, y: D, z: H }) => new P.Vector3(L, D, H))), e.imageTexture = d(I), C && (e.videoElement = C), e.videoTexture = yield f(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
|
|
8946
8946
|
}), m = (A) => {
|
|
8947
8947
|
if (!e.enabled)
|
|
8948
8948
|
return;
|
|
8949
|
-
const
|
|
8950
|
-
if (!(!
|
|
8949
|
+
const C = e.videoMeshes;
|
|
8950
|
+
if (!(!C || A.intersectObjects(C).length === 0))
|
|
8951
8951
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
8952
8952
|
}, p = (A) => {
|
|
8953
8953
|
A === "Floorplan" ? n.hide() : n.show();
|
|
@@ -8955,18 +8955,18 @@ const r0 = (i, { videoElement: t }) => {
|
|
|
8955
8955
|
if (!e.enabled)
|
|
8956
8956
|
return;
|
|
8957
8957
|
const A = i.camera.position;
|
|
8958
|
-
if (o.forEach((
|
|
8959
|
-
const I =
|
|
8960
|
-
L && L.distance + H < D ?
|
|
8958
|
+
if (o.forEach((C, y) => {
|
|
8959
|
+
const I = C.css3DObject.position.clone(), k = I.clone().sub(A).normalize(), w = new P.Raycaster(A, k), L = i.model.intersectRaycaster(w)[0], D = I.distanceTo(A), H = 0.01;
|
|
8960
|
+
L && L.distance + H < D ? C.hide() : C.show();
|
|
8961
8961
|
}), !r()) {
|
|
8962
|
-
const
|
|
8962
|
+
const C = e.rectPoints.find((y) => {
|
|
8963
8963
|
const I = y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);
|
|
8964
|
-
return y.map((
|
|
8965
|
-
const
|
|
8966
|
-
return !(D && D.distance + H <
|
|
8964
|
+
return y.map((k) => k.clone().add(I).divideScalar(2)).filter((k) => {
|
|
8965
|
+
const w = k.distanceTo(A), L = new P.Raycaster(A, k.clone().sub(A).normalize()), D = i.model.intersectRaycaster(L)[0], H = 0.01;
|
|
8966
|
+
return !(D && D.distance + H < w);
|
|
8967
8967
|
}).length >= 2;
|
|
8968
8968
|
});
|
|
8969
|
-
(!
|
|
8969
|
+
(!C || C.length === 0) && s(!0);
|
|
8970
8970
|
}
|
|
8971
8971
|
}, v = () => {
|
|
8972
8972
|
l(), e.videoTexture = void 0, i.off("modeChange", p), i.off("wantsTapGesture", m), i.off("panoArrived", g), i.off("renderFrame", () => {
|
|
@@ -9164,10 +9164,10 @@ function is(i) {
|
|
|
9164
9164
|
o[0] & 2 && (s.itemLabel = n[30]), o[0] & 1 && (s.hooks = n[0]), o[0] & 4 && (s.anchorEnabled = n[2]), t.$set(s);
|
|
9165
9165
|
},
|
|
9166
9166
|
i(n) {
|
|
9167
|
-
e || (
|
|
9167
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
9168
9168
|
},
|
|
9169
9169
|
o(n) {
|
|
9170
|
-
|
|
9170
|
+
M(t.$$.fragment, n), e = !1;
|
|
9171
9171
|
},
|
|
9172
9172
|
d(n) {
|
|
9173
9173
|
$(t, n);
|
|
@@ -9186,15 +9186,15 @@ function os(i, t) {
|
|
|
9186
9186
|
T(r, e, a), s && s.m(r, a), T(r, n, a), o = !0;
|
|
9187
9187
|
},
|
|
9188
9188
|
p(r, a) {
|
|
9189
|
-
t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 &&
|
|
9189
|
+
t = r, t[30].visible ? s ? (s.p(t, a), a[0] & 2 && x(s, 1)) : (s = is(t), s.c(), x(s, 1), s.m(n.parentNode, n)) : s && (ue(), M(s, 1, 1, () => {
|
|
9190
9190
|
s = null;
|
|
9191
9191
|
}), fe());
|
|
9192
9192
|
},
|
|
9193
9193
|
i(r) {
|
|
9194
|
-
o || (
|
|
9194
|
+
o || (x(s), o = !0);
|
|
9195
9195
|
},
|
|
9196
9196
|
o(r) {
|
|
9197
|
-
|
|
9197
|
+
M(s), o = !1;
|
|
9198
9198
|
},
|
|
9199
9199
|
d(r) {
|
|
9200
9200
|
r && j(e), s && s.d(r), r && j(n);
|
|
@@ -9227,13 +9227,13 @@ function Mf(i) {
|
|
|
9227
9227
|
i(l) {
|
|
9228
9228
|
if (!s) {
|
|
9229
9229
|
for (let c = 0; c < r.length; c += 1)
|
|
9230
|
-
|
|
9230
|
+
x(e[c]);
|
|
9231
9231
|
s = !0;
|
|
9232
9232
|
}
|
|
9233
9233
|
},
|
|
9234
9234
|
o(l) {
|
|
9235
9235
|
for (let c = 0; c < e.length; c += 1)
|
|
9236
|
-
|
|
9236
|
+
M(e[c]);
|
|
9237
9237
|
s = !1;
|
|
9238
9238
|
},
|
|
9239
9239
|
d(l) {
|
|
@@ -9248,22 +9248,22 @@ let Tf = 11;
|
|
|
9248
9248
|
function jf(i, t, e) {
|
|
9249
9249
|
const { Raycaster: n, Vector3: o } = P;
|
|
9250
9250
|
let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, f = null, u = null, m = (s == null ? void 0 : s.currentMode) === Me.Mode.Panorama, p, g, v = [], A = !0;
|
|
9251
|
-
const
|
|
9252
|
-
const
|
|
9253
|
-
return d !== void 0 &&
|
|
9254
|
-
}, y = (
|
|
9255
|
-
const { camera: N, model:
|
|
9251
|
+
const C = (z, N) => {
|
|
9252
|
+
const X = z.camera.position.clone(), ee = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), W = ee.distanceTo(X);
|
|
9253
|
+
return d !== void 0 && z.state.mode === Me.Mode.Panorama && W > d ? !1 : es(z, ee.clone().sub(X).normalize(), X, W);
|
|
9254
|
+
}, y = (z) => {
|
|
9255
|
+
const { camera: N, model: X } = s, { x: ee, y: W, z: U } = z.clone().project(N), ae = (ee + 1) / 2, le = (2 - (W + 1)) / 2, Ie = Math.abs(U) < 1 && [ae, le].every((Oe) => Oe < 1 && Oe >= 0);
|
|
9256
9256
|
return Boolean(Ie);
|
|
9257
|
-
}, I = (
|
|
9258
|
-
const
|
|
9257
|
+
}, I = (z, N) => {
|
|
9258
|
+
const X = new o(N.modelPosition[0], N.modelPosition[1], N.modelPosition[2]), ee = z.project2d(X), W = ee == null ? void 0 : ee.x, U = ee == null ? void 0 : ee.y;
|
|
9259
9259
|
return [W, U];
|
|
9260
|
-
},
|
|
9261
|
-
const
|
|
9262
|
-
if (
|
|
9260
|
+
}, k = (z, N) => {
|
|
9261
|
+
const X = N.map((W) => {
|
|
9262
|
+
if (z.state.panoIndex !== W.panoIndex)
|
|
9263
9263
|
return he(G({}, W), { visible: !1 });
|
|
9264
|
-
const U = I(
|
|
9264
|
+
const U = I(z, W);
|
|
9265
9265
|
W.name.length * Tf;
|
|
9266
|
-
const ae = Lf(W.modelPosition[1], c), le =
|
|
9266
|
+
const ae = Lf(W.modelPosition[1], c), le = z.currentMode === Me.Mode.Panorama ? y(new o(W.position[0], W.position[1], W.position[2])) : !0, me = r ? C(z, W) : !1, ye = le && !me;
|
|
9267
9267
|
if (!ye)
|
|
9268
9268
|
return he(G({}, W), { visible: ye });
|
|
9269
9269
|
v.push(U);
|
|
@@ -9273,60 +9273,60 @@ function jf(i, t, e) {
|
|
|
9273
9273
|
transform: Ie,
|
|
9274
9274
|
strokeLength: ae
|
|
9275
9275
|
});
|
|
9276
|
-
}), ee =
|
|
9276
|
+
}), ee = X.filter(({ visible: W }) => W).map((W) => ({
|
|
9277
9277
|
itemLabelItem: W,
|
|
9278
|
-
distance: new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]).clone().distanceTo(
|
|
9278
|
+
distance: new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]).clone().distanceTo(z.camera.position)
|
|
9279
9279
|
})).sort((W, U) => W.distance - U.distance);
|
|
9280
|
-
return
|
|
9280
|
+
return X.map((W) => {
|
|
9281
9281
|
const U = ee.findIndex((ae) => ae.itemLabelItem.id === W.id);
|
|
9282
9282
|
return U !== void 0 ? he(G({}, W), { zIndex: U * 10 }) : W;
|
|
9283
9283
|
});
|
|
9284
|
-
},
|
|
9285
|
-
v = [], e(1, u =
|
|
9284
|
+
}, w = () => {
|
|
9285
|
+
v = [], e(1, u = k(s, u));
|
|
9286
9286
|
}, L = () => {
|
|
9287
9287
|
e(5, A = !1), D();
|
|
9288
9288
|
}, D = Ur(
|
|
9289
9289
|
() => {
|
|
9290
|
-
e(5, A = !0),
|
|
9290
|
+
e(5, A = !0), w();
|
|
9291
9291
|
},
|
|
9292
9292
|
300
|
|
9293
9293
|
), H = () => {
|
|
9294
|
-
s.once("renderFrame",
|
|
9295
|
-
},
|
|
9294
|
+
s.once("renderFrame", w);
|
|
9295
|
+
}, B = () => {
|
|
9296
9296
|
window.addEventListener("resize", H, !1);
|
|
9297
9297
|
}, F = () => {
|
|
9298
|
-
f !== a && (e(1, u = ts(a)), f = a,
|
|
9299
|
-
},
|
|
9300
|
-
let
|
|
9298
|
+
f !== a && (e(1, u = ts(a)), f = a, w());
|
|
9299
|
+
}, Y = (z, N) => {
|
|
9300
|
+
let X = [];
|
|
9301
9301
|
for (let W = 0; W < N.length; W++) {
|
|
9302
|
-
const { position: U, panoIndex: ae } = N[W], le =
|
|
9303
|
-
(d === void 0 || le <= d || s.state.mode !== Me.Mode.Panorama) &&
|
|
9302
|
+
const { position: U, panoIndex: ae } = N[W], le = z.distanceTo(U);
|
|
9303
|
+
(d === void 0 || le <= d || s.state.mode !== Me.Mode.Panorama) && X.push({ panoIndex: ae, obVector: U, distance: le });
|
|
9304
9304
|
}
|
|
9305
|
-
|
|
9305
|
+
X = X.sort((W, U) => W.distance - U.distance);
|
|
9306
9306
|
let ee;
|
|
9307
|
-
for (let W = 0; W <
|
|
9308
|
-
const { obVector: U, distance: ae, panoIndex: le } =
|
|
9309
|
-
if (!es(s,
|
|
9307
|
+
for (let W = 0; W < X.length; W++) {
|
|
9308
|
+
const { obVector: U, distance: ae, panoIndex: le } = X[W];
|
|
9309
|
+
if (!es(s, z, U, ae)) {
|
|
9310
9310
|
ee = le;
|
|
9311
9311
|
break;
|
|
9312
9312
|
}
|
|
9313
9313
|
}
|
|
9314
9314
|
return typeof ee == "number" ? N[ee] : void 0;
|
|
9315
|
-
}, E = (
|
|
9315
|
+
}, E = (z) => {
|
|
9316
9316
|
if (s.state.mode === Me.Mode.Panorama)
|
|
9317
9317
|
return;
|
|
9318
|
-
const N = s.work.observers,
|
|
9319
|
-
if (ee && (
|
|
9320
|
-
const W = N[
|
|
9318
|
+
const N = s.work.observers, X = new o().fromArray(z.position), ee = Y(X, N);
|
|
9319
|
+
if (ee && (z.observerIndex = ee.panoIndex), typeof z.observerIndex == "number") {
|
|
9320
|
+
const W = N[z.observerIndex], U = X.clone().sub(W.position).normalize(), ae = {
|
|
9321
9321
|
longitude: Math.PI + Math.atan2(U.x, U.z),
|
|
9322
9322
|
latitude: Math.acos(U.y / U.length()) - Math.PI / 2
|
|
9323
9323
|
};
|
|
9324
9324
|
s.setState(he(G({}, ae), {
|
|
9325
9325
|
mode: Me.Mode.Panorama,
|
|
9326
|
-
panoIndex:
|
|
9326
|
+
panoIndex: z.observerIndex
|
|
9327
9327
|
})), s.once("initAnimationEnded", () => {
|
|
9328
9328
|
e(1, u = u.map((le) => he(G({}, le), {
|
|
9329
|
-
isFold: le.id !==
|
|
9329
|
+
isFold: le.id !== z.id
|
|
9330
9330
|
}))), s.once("cameraUpdate", () => {
|
|
9331
9331
|
e(1, u = u.map((le) => he(G({}, le), { isFold: !1 })));
|
|
9332
9332
|
});
|
|
@@ -9336,15 +9336,15 @@ function jf(i, t, e) {
|
|
|
9336
9336
|
xi(() => {
|
|
9337
9337
|
F();
|
|
9338
9338
|
}), Ue(() => {
|
|
9339
|
-
e(1, u = ts(a)), f = a,
|
|
9339
|
+
e(1, u = ts(a)), f = a, w(), B(), s.on("cameraUpdate", L);
|
|
9340
9340
|
}), At(() => {
|
|
9341
9341
|
s.off("cameraUpdate", L), window.removeEventListener("resize", H, !1);
|
|
9342
9342
|
});
|
|
9343
9343
|
function S() {
|
|
9344
9344
|
p = this.clientWidth, g = this.clientHeight, e(3, p), e(4, g);
|
|
9345
9345
|
}
|
|
9346
|
-
return i.$$set = (
|
|
9347
|
-
"five" in
|
|
9346
|
+
return i.$$set = (z) => {
|
|
9347
|
+
"five" in z && e(7, s = z.five), "modelOcclusionEnable" in z && e(8, r = z.modelOcclusionEnable), "itemLabels" in z && e(9, a = z.itemLabels), "hooks" in z && e(0, l = z.hooks), "displayStrategyType" in z && e(10, c = z.displayStrategyType), "maxVisibleDistance" in z && e(11, d = z.maxVisibleDistance);
|
|
9348
9348
|
}, [
|
|
9349
9349
|
l,
|
|
9350
9350
|
u,
|
|
@@ -9533,8 +9533,8 @@ function Gf(i, t, e) {
|
|
|
9533
9533
|
const p = () => {
|
|
9534
9534
|
if (!r || !a || !l || !s)
|
|
9535
9535
|
return;
|
|
9536
|
-
const A = s.current.clientWidth / window.innerWidth * 100,
|
|
9537
|
-
if (r <= A / 2 || r >= 100 - A / 2 || a <=
|
|
9536
|
+
const A = s.current.clientWidth / window.innerWidth * 100, C = s.current.clientHeight / window.innerHeight * 100;
|
|
9537
|
+
if (r <= A / 2 || r >= 100 - A / 2 || a <= C / 2 || a >= 100 - C / 2)
|
|
9538
9538
|
return;
|
|
9539
9539
|
d !== m && (console.log("panoDoorLabelPlugin", d, "\u89E6\u53D1\u57CB\u70B9"), m = d);
|
|
9540
9540
|
}, g = (A) => {
|
|
@@ -9648,38 +9648,38 @@ class Vf extends Of {
|
|
|
9648
9648
|
}), this.fixDoorPosition();
|
|
9649
9649
|
});
|
|
9650
9650
|
h(this, "fixDoorPosition", () => {
|
|
9651
|
-
var d, f, u, m, p, g, v, A,
|
|
9651
|
+
var d, f, u, m, p, g, v, A, C, y, I, k;
|
|
9652
9652
|
const { panoIndex: e, camera: n } = this.five;
|
|
9653
9653
|
if (e === null)
|
|
9654
9654
|
return;
|
|
9655
9655
|
if (this.five.currentMode !== "Panorama")
|
|
9656
9656
|
return this.hideAllLabels();
|
|
9657
9657
|
const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new Z()), l = [], c = [...this.labelItems];
|
|
9658
|
-
if (c.forEach((
|
|
9659
|
-
if (
|
|
9660
|
-
const
|
|
9661
|
-
|
|
9658
|
+
if (c.forEach((w, L) => {
|
|
9659
|
+
if (w.visible) {
|
|
9660
|
+
const D = n.position.distanceTo(w.position), H = w.position.clone().add(new Z(0, this.OffsetHeight, 0)), F = H.clone().sub(n.position).normalize().angleTo(a), Y = H.clone().project(n), E = (Y.x + 1) / 2.2 * 100, S = (-Y.y + 1) / 2.2 * 100, z = E >= 0 && E <= 100 && S >= 0 && S <= 100 && D > this.MinVisibledistance && D <= this.MaxVisibledistance;
|
|
9661
|
+
w.left = E, w.top = S, w.inSight = z && F < Math.PI / 2, w.cameraToward = Xf(this.five), z ? l.push({ disFromCameraToLabel: D, left: E, top: S, index: L }) : w.transform = "translate(-50%, -50%)";
|
|
9662
9662
|
} else
|
|
9663
|
-
|
|
9663
|
+
w.inSight = !1;
|
|
9664
9664
|
}), l.length > 1) {
|
|
9665
|
-
let
|
|
9666
|
-
l.sort((
|
|
9667
|
-
for (let
|
|
9668
|
-
const { index:
|
|
9669
|
-
if (!
|
|
9665
|
+
let w = 0;
|
|
9666
|
+
l.sort((L, D) => D.disFromCameraToLabel - L.disFromCameraToLabel);
|
|
9667
|
+
for (let L = 1; L < l.length; L++) {
|
|
9668
|
+
const { index: D, left: H, top: B } = l[L - 1], { index: F, left: Y, top: E } = l[L], S = this.container.children[D], z = this.container.children[F];
|
|
9669
|
+
if (!S || !z)
|
|
9670
9670
|
return;
|
|
9671
|
-
const
|
|
9672
|
-
left: s *
|
|
9673
|
-
top: r *
|
|
9674
|
-
width: (
|
|
9675
|
-
height: (g = (p =
|
|
9676
|
-
},
|
|
9677
|
-
left: s *
|
|
9678
|
-
top: r *
|
|
9679
|
-
width: (A = (v =
|
|
9680
|
-
height: (
|
|
9671
|
+
const N = {
|
|
9672
|
+
left: s * H / 100,
|
|
9673
|
+
top: r * B / 100,
|
|
9674
|
+
width: (u = (f = (d = S.children) == null ? void 0 : d[0]) == null ? void 0 : f.clientWidth) != null ? u : 0,
|
|
9675
|
+
height: (g = (p = (m = S.children) == null ? void 0 : m[0]) == null ? void 0 : p.clientHeight) != null ? g : 0
|
|
9676
|
+
}, X = {
|
|
9677
|
+
left: s * Y / 100,
|
|
9678
|
+
top: r * E / 100,
|
|
9679
|
+
width: (C = (A = (v = z.children) == null ? void 0 : v[0]) == null ? void 0 : A.clientWidth) != null ? C : 0,
|
|
9680
|
+
height: (k = (I = (y = z.children) == null ? void 0 : y[0]) == null ? void 0 : I.clientHeight) != null ? k : 0
|
|
9681
9681
|
};
|
|
9682
|
-
Wf(
|
|
9682
|
+
Wf(N, X) && (w++, c[D].transform = `translate(-50%, ${(w - 1) * 100 - 50}%)`, c[F].transform = `translate(-50%, ${w * 100 - 50}%)`);
|
|
9683
9683
|
}
|
|
9684
9684
|
}
|
|
9685
9685
|
this.labelItems = c, this.render();
|
|
@@ -9721,8 +9721,8 @@ class Vf extends Of {
|
|
|
9721
9721
|
x: v.x,
|
|
9722
9722
|
y: v.y,
|
|
9723
9723
|
z: v.z
|
|
9724
|
-
},
|
|
9725
|
-
|
|
9724
|
+
}, C = Yf(f, A);
|
|
9725
|
+
C < u && (u = C, m = A);
|
|
9726
9726
|
}), m && (f.y = m.y + 0.01);
|
|
9727
9727
|
const p = new Z(f.x, f.y, f.z);
|
|
9728
9728
|
p.add(new Z(-0.2, 1.8, 0).applyEuler(new Xi(0, d.rad, 0))), this.doorLabels.push({
|
|
@@ -9794,28 +9794,28 @@ function $f(i, t) {
|
|
|
9794
9794
|
const m = i;
|
|
9795
9795
|
return m.forEach((p, g) => {
|
|
9796
9796
|
let v = 0, A = 99999999;
|
|
9797
|
-
d.forEach((
|
|
9798
|
-
const D =
|
|
9797
|
+
d.forEach((w, L) => {
|
|
9798
|
+
const D = w.distanceTo(p);
|
|
9799
9799
|
D < A && (v = L, A = D);
|
|
9800
9800
|
});
|
|
9801
|
-
const
|
|
9801
|
+
const C = d[v + 1], y = C == null ? void 0 : C.distanceTo(p), I = d[v - 1], k = I == null ? void 0 : I.distanceTo(p);
|
|
9802
9802
|
if (v > u && v - u > 1) {
|
|
9803
|
-
let
|
|
9804
|
-
I !== void 0 &&
|
|
9803
|
+
let w = v;
|
|
9804
|
+
I !== void 0 && k > 0.8 && (w = v + 1), I !== void 0 && k > 0.2 && k < 0.3 ? w = v : A > 0.2 && A < 0.3 && (w = v + 1);
|
|
9805
9805
|
let L = u;
|
|
9806
|
-
if (
|
|
9807
|
-
const
|
|
9808
|
-
if (
|
|
9809
|
-
if (
|
|
9806
|
+
if (C !== void 0 && y > 0.2 && y < 0.3 ? L = u + 1 : A > 0.2 && A < 0.3 && (L = u), d[L] && d[L + 1]) {
|
|
9807
|
+
const B = m[g - 1];
|
|
9808
|
+
if (B)
|
|
9809
|
+
if (B.equals(d[L]))
|
|
9810
9810
|
L += 1;
|
|
9811
9811
|
else {
|
|
9812
|
-
const F = new Z().subVectors(d[L + 1], d[L]),
|
|
9813
|
-
F.angleTo(
|
|
9812
|
+
const F = new Z().subVectors(d[L + 1], d[L]), Y = new Z().subVectors(B, d[L]);
|
|
9813
|
+
F.angleTo(Y) < Math.PI / 2 && (L += 1);
|
|
9814
9814
|
}
|
|
9815
9815
|
}
|
|
9816
|
-
if (
|
|
9816
|
+
if (w < L || w - L <= 1)
|
|
9817
9817
|
return;
|
|
9818
|
-
const D = d.slice(L,
|
|
9818
|
+
const D = d.slice(L, w), H = ss(D, e, n);
|
|
9819
9819
|
f.push(H), u = v;
|
|
9820
9820
|
}
|
|
9821
9821
|
}), f;
|
|
@@ -9826,16 +9826,16 @@ function $f(i, t) {
|
|
|
9826
9826
|
}
|
|
9827
9827
|
function ss(i, t, e) {
|
|
9828
9828
|
const n = t / 2, o = e / t, s = i.length, r = Wa(i.map((A) => [A.x, A.z])), l = (i.length - 1) * Zf * qf, c = 2 * s, d = c * _f, f = c * Kf, u = new Uint32Array(l), m = new Float32Array(d), p = new Float32Array(f);
|
|
9829
|
-
i.forEach((A,
|
|
9829
|
+
i.forEach((A, C) => {
|
|
9830
9830
|
});
|
|
9831
9831
|
let g = 0;
|
|
9832
9832
|
for (let A = 0; A < i.length; A++) {
|
|
9833
|
-
const [
|
|
9833
|
+
const [C, y] = r[A][0], I = i[A], { x: k, y: w, z: L } = I, D = new Z(k + C * n, w + 0.05, L + y * n);
|
|
9834
9834
|
m[A * 6 + 0] = D.x, m[A * 6 + 1] = D.y, m[A * 6 + 2] = D.z;
|
|
9835
|
-
const H = new Z(
|
|
9835
|
+
const H = new Z(k - C * n, w + 0.05, L - y * n);
|
|
9836
9836
|
m[A * 6 + 3] = H.x, m[A * 6 + 4] = H.y, m[A * 6 + 5] = H.z, g += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
|
|
9837
|
-
const
|
|
9838
|
-
p[A * 4 + 0] = 0, p[A * 4 + 1] =
|
|
9837
|
+
const B = g / t / o;
|
|
9838
|
+
p[A * 4 + 0] = 0, p[A * 4 + 1] = B, p[A * 4 + 2] = 1, p[A * 4 + 3] = B, A !== i.length - 1 && (u[A * 6 + 0] = A * 2 + 0, u[A * 6 + 1] = A * 2 + 2, u[A * 6 + 2] = A * 2 + 1, u[A * 6 + 3] = A * 2 + 2, u[A * 6 + 4] = A * 2 + 3, u[A * 6 + 5] = A * 2 + 1);
|
|
9839
9839
|
}
|
|
9840
9840
|
const v = new P.BufferGeometry();
|
|
9841
9841
|
return v.setAttribute("position", new P.BufferAttribute(m, 3)), v.setAttribute("uv", new P.BufferAttribute(p, 2)), v.setIndex(new P.BufferAttribute(u, 1)), v;
|
|
@@ -10059,12 +10059,12 @@ class Kr extends Bt {
|
|
|
10059
10059
|
var A;
|
|
10060
10060
|
return g.data.panoIndex !== ((A = c[v - 1]) == null ? void 0 : A.data.panoIndex);
|
|
10061
10061
|
}).map((g) => g.data.panoIndex).forEach((g) => {
|
|
10062
|
-
var A,
|
|
10062
|
+
var A, C;
|
|
10063
10063
|
const v = (A = this.five.work.observers[g]) == null ? void 0 : A.floorIndex;
|
|
10064
10064
|
if (v !== void 0)
|
|
10065
10065
|
if (l === v) {
|
|
10066
10066
|
const y = a.length - 1;
|
|
10067
|
-
a[y] = [...(
|
|
10067
|
+
a[y] = [...(C = a[y]) != null ? C : [], g];
|
|
10068
10068
|
} else {
|
|
10069
10069
|
l = v;
|
|
10070
10070
|
const y = a.length;
|
|
@@ -10135,12 +10135,12 @@ class Kr extends Bt {
|
|
|
10135
10135
|
const { moveEffect: r, moveToFirstPanoEffect: a } = o;
|
|
10136
10136
|
return this.privateState.moveToFirstPanoEffect = a, o.panoIndexList.forEach((l, c) => {
|
|
10137
10137
|
const d = (() => {
|
|
10138
|
-
var g, v, A,
|
|
10138
|
+
var g, v, A, C;
|
|
10139
10139
|
const f = o.panoIndexList.slice(c).find((y) => y !== l);
|
|
10140
10140
|
if (f === void 0)
|
|
10141
10141
|
return;
|
|
10142
10142
|
const u = (g = n[l]) == null ? void 0 : g.position, m = (v = n[f]) == null ? void 0 : v.position;
|
|
10143
|
-
if (!m || !u || ((A = n[l]) == null ? void 0 : A.floorIndex) !== ((
|
|
10143
|
+
if (!m || !u || ((A = n[l]) == null ? void 0 : A.floorIndex) !== ((C = n[f]) == null ? void 0 : C.floorIndex))
|
|
10144
10144
|
return;
|
|
10145
10145
|
const p = new P.Vector3().subVectors(m, u);
|
|
10146
10146
|
return rh(p);
|
|
@@ -10589,15 +10589,15 @@ function Ah(i) {
|
|
|
10589
10589
|
T(a, t, l), Q(t, e), Q(e, n), Q(n, o), Q(n, s), r && r.m(t, null);
|
|
10590
10590
|
},
|
|
10591
10591
|
p(a, [l]) {
|
|
10592
|
-
a[3] ? r ? (r.p(a, l), l & 8 &&
|
|
10592
|
+
a[3] ? r ? (r.p(a, l), l & 8 && x(r, 1)) : (r = us(a), r.c(), x(r, 1), r.m(t, null)) : r && (ue(), M(r, 1, 1, () => {
|
|
10593
10593
|
r = null;
|
|
10594
10594
|
}), fe());
|
|
10595
10595
|
},
|
|
10596
10596
|
i(a) {
|
|
10597
|
-
|
|
10597
|
+
x(r);
|
|
10598
10598
|
},
|
|
10599
10599
|
o(a) {
|
|
10600
|
-
|
|
10600
|
+
M(r);
|
|
10601
10601
|
},
|
|
10602
10602
|
d(a) {
|
|
10603
10603
|
a && j(t), r && r.d();
|
|
@@ -10681,15 +10681,15 @@ function yh(i) {
|
|
|
10681
10681
|
e && e.m(n, o), T(n, t, o);
|
|
10682
10682
|
},
|
|
10683
10683
|
p(n, [o]) {
|
|
10684
|
-
n[2] ? e ? (e.p(n, o), o & 4 &&
|
|
10684
|
+
n[2] ? e ? (e.p(n, o), o & 4 && x(e, 1)) : (e = fs(n), e.c(), x(e, 1), e.m(t.parentNode, t)) : e && (ue(), M(e, 1, 1, () => {
|
|
10685
10685
|
e = null;
|
|
10686
10686
|
}), fe());
|
|
10687
10687
|
},
|
|
10688
10688
|
i(n) {
|
|
10689
|
-
|
|
10689
|
+
x(e);
|
|
10690
10690
|
},
|
|
10691
10691
|
o(n) {
|
|
10692
|
-
|
|
10692
|
+
M(e);
|
|
10693
10693
|
},
|
|
10694
10694
|
d(n) {
|
|
10695
10695
|
e && e.d(n), n && j(t);
|
|
@@ -10896,7 +10896,7 @@ function vs(i) {
|
|
|
10896
10896
|
i = f, (!l || u & 1 && s !== (s = "arrow " + i[0] + " svelte-1ogmlqq")) && b(o, "class", s);
|
|
10897
10897
|
},
|
|
10898
10898
|
i(f) {
|
|
10899
|
-
l || (
|
|
10899
|
+
l || (x(e.$$.fragment, f), f && Re(() => {
|
|
10900
10900
|
a && a.end(1), r = jt(o, St, {
|
|
10901
10901
|
duration: i[2],
|
|
10902
10902
|
delay: i[3],
|
|
@@ -10905,7 +10905,7 @@ function vs(i) {
|
|
|
10905
10905
|
}), l = !0);
|
|
10906
10906
|
},
|
|
10907
10907
|
o(f) {
|
|
10908
|
-
|
|
10908
|
+
M(e.$$.fragment, f), r && r.invalidate(), f && (a = Nt(o, St, {
|
|
10909
10909
|
duration: i[2],
|
|
10910
10910
|
delay: i[4],
|
|
10911
10911
|
easing: Kt
|
|
@@ -10926,15 +10926,15 @@ function Dh(i) {
|
|
|
10926
10926
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
10927
10927
|
},
|
|
10928
10928
|
p(o, [s]) {
|
|
10929
|
-
o[1] ? n ? (n.p(o, s), s & 2 &&
|
|
10929
|
+
o[1] ? n ? (n.p(o, s), s & 2 && x(n, 1)) : (n = vs(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
10930
10930
|
n = null;
|
|
10931
10931
|
}), fe());
|
|
10932
10932
|
},
|
|
10933
10933
|
i(o) {
|
|
10934
|
-
e || (
|
|
10934
|
+
e || (x(n), e = !0);
|
|
10935
10935
|
},
|
|
10936
10936
|
o(o) {
|
|
10937
|
-
|
|
10937
|
+
M(n), e = !1;
|
|
10938
10938
|
},
|
|
10939
10939
|
d(o) {
|
|
10940
10940
|
n && n.d(o), o && j(t);
|
|
@@ -11009,10 +11009,10 @@ function ys(i, t) {
|
|
|
11009
11009
|
r & 1 && (a.unfolded = t[0]), r & 2 && (a.content = t[12]), r & 32 && (a.outDelay = t[5]), n.$set(a), r & 128 && R(e, "transform", t[7], !1);
|
|
11010
11010
|
},
|
|
11011
11011
|
i(s) {
|
|
11012
|
-
o || (
|
|
11012
|
+
o || (x(n.$$.fragment, s), o = !0);
|
|
11013
11013
|
},
|
|
11014
11014
|
o(s) {
|
|
11015
|
-
|
|
11015
|
+
M(n.$$.fragment, s), o = !1;
|
|
11016
11016
|
},
|
|
11017
11017
|
d(s) {
|
|
11018
11018
|
s && j(e), $(n), t[10](null);
|
|
@@ -11040,10 +11040,10 @@ function ws(i) {
|
|
|
11040
11040
|
s & 64 && (r.direction = o[6]), s & 1 && (r.visible = o[0]), e.$set(r);
|
|
11041
11041
|
},
|
|
11042
11042
|
i(o) {
|
|
11043
|
-
n || (
|
|
11043
|
+
n || (x(e.$$.fragment, o), n = !0);
|
|
11044
11044
|
},
|
|
11045
11045
|
o(o) {
|
|
11046
|
-
|
|
11046
|
+
M(e.$$.fragment, o), n = !1;
|
|
11047
11047
|
},
|
|
11048
11048
|
d(o) {
|
|
11049
11049
|
o && j(t), $(e);
|
|
@@ -11070,21 +11070,21 @@ function Th(i) {
|
|
|
11070
11070
|
T(c, n, d), l && l.m(c, d), T(c, o, d), s = !0;
|
|
11071
11071
|
},
|
|
11072
11072
|
p(c, [d]) {
|
|
11073
|
-
d & 167 && (r = c[1], ue(), t = Ye(t, d, a, 1, c, r, e, n.parentNode, at, ys, n, bs), fe()), c[3] < c[4] ? l ? (l.p(c, d), d & 24 &&
|
|
11073
|
+
d & 167 && (r = c[1], ue(), t = Ye(t, d, a, 1, c, r, e, n.parentNode, at, ys, n, bs), fe()), c[3] < c[4] ? l ? (l.p(c, d), d & 24 && x(l, 1)) : (l = ws(c), l.c(), x(l, 1), l.m(o.parentNode, o)) : l && (ue(), M(l, 1, 1, () => {
|
|
11074
11074
|
l = null;
|
|
11075
11075
|
}), fe());
|
|
11076
11076
|
},
|
|
11077
11077
|
i(c) {
|
|
11078
11078
|
if (!s) {
|
|
11079
11079
|
for (let d = 0; d < r.length; d += 1)
|
|
11080
|
-
|
|
11081
|
-
|
|
11080
|
+
x(t[d]);
|
|
11081
|
+
x(l), s = !0;
|
|
11082
11082
|
}
|
|
11083
11083
|
},
|
|
11084
11084
|
o(c) {
|
|
11085
11085
|
for (let d = 0; d < t.length; d += 1)
|
|
11086
|
-
|
|
11087
|
-
|
|
11086
|
+
M(t[d]);
|
|
11087
|
+
M(l), s = !1;
|
|
11088
11088
|
},
|
|
11089
11089
|
d(c) {
|
|
11090
11090
|
for (let d = 0; d < t.length; d += 1)
|
|
@@ -11181,14 +11181,14 @@ function Cs(i) {
|
|
|
11181
11181
|
g & 4 && (v.visible = p[2]), g & 8 && (v.left = p[3] / 2 + "px"), t.$set(v);
|
|
11182
11182
|
const A = {};
|
|
11183
11183
|
g & 4 && (A.unfolded = p[2]), g & 48 && (A.outDelay = p[5] + 40 * Math.min((I = (y = p[4][0]) == null ? void 0 : y.content.length) != null ? I : 10, 15)), o.$set(A), g & 8 && R(n, "width", p[3] + "px", !1);
|
|
11184
|
-
const
|
|
11185
|
-
g & 4 && (
|
|
11184
|
+
const C = {};
|
|
11185
|
+
g & 4 && (C.visible = p[2]), g & 2 && (C.textUnfolded = p[1]), g & 16 && (C.textItems = p[4]), a.$set(C);
|
|
11186
11186
|
},
|
|
11187
11187
|
i(p) {
|
|
11188
|
-
c || (
|
|
11188
|
+
c || (x(t.$$.fragment, p), x(o.$$.fragment, p), x(a.$$.fragment, p), c = !0);
|
|
11189
11189
|
},
|
|
11190
11190
|
o(p) {
|
|
11191
|
-
|
|
11191
|
+
M(t.$$.fragment, p), M(o.$$.fragment, p), M(a.$$.fragment, p), c = !1;
|
|
11192
11192
|
},
|
|
11193
11193
|
d(p) {
|
|
11194
11194
|
$(t, p), p && j(e), p && j(n), $(o), p && j(s), p && j(r), $(a), l(), d = !1, f();
|
|
@@ -11205,15 +11205,15 @@ function Qh(i) {
|
|
|
11205
11205
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
11206
11206
|
},
|
|
11207
11207
|
p(o, [s]) {
|
|
11208
|
-
o[0].state ? n ? (n.p(o, s), s & 1 &&
|
|
11208
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && x(n, 1)) : (n = Cs(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
11209
11209
|
n = null;
|
|
11210
11210
|
}), fe());
|
|
11211
11211
|
},
|
|
11212
11212
|
i(o) {
|
|
11213
|
-
e || (
|
|
11213
|
+
e || (x(n), e = !0);
|
|
11214
11214
|
},
|
|
11215
11215
|
o(o) {
|
|
11216
|
-
|
|
11216
|
+
M(n), e = !1;
|
|
11217
11217
|
},
|
|
11218
11218
|
d(o) {
|
|
11219
11219
|
n && n.d(o), o && j(t);
|
|
@@ -11301,15 +11301,15 @@ function Fh(i) {
|
|
|
11301
11301
|
T(a, t, l), Q(t, e), Q(e, n), Q(n, o), Q(n, s), r && r.m(t, null);
|
|
11302
11302
|
},
|
|
11303
11303
|
p(a, [l]) {
|
|
11304
|
-
a[3] ? r ? (r.p(a, l), l & 8 &&
|
|
11304
|
+
a[3] ? r ? (r.p(a, l), l & 8 && x(r, 1)) : (r = Es(a), r.c(), x(r, 1), r.m(t, null)) : r && (ue(), M(r, 1, 1, () => {
|
|
11305
11305
|
r = null;
|
|
11306
11306
|
}), fe());
|
|
11307
11307
|
},
|
|
11308
11308
|
i(a) {
|
|
11309
|
-
|
|
11309
|
+
x(r);
|
|
11310
11310
|
},
|
|
11311
11311
|
o(a) {
|
|
11312
|
-
|
|
11312
|
+
M(r);
|
|
11313
11313
|
},
|
|
11314
11314
|
d(a) {
|
|
11315
11315
|
a && j(t), r && r.d();
|
|
@@ -11543,7 +11543,7 @@ function Uh({
|
|
|
11543
11543
|
scrollbarEl: r,
|
|
11544
11544
|
paginationEl: a
|
|
11545
11545
|
}) {
|
|
11546
|
-
const l = n.filter((
|
|
11546
|
+
const l = n.filter((k) => k !== "children" && k !== "direction"), {
|
|
11547
11547
|
params: c,
|
|
11548
11548
|
pagination: d,
|
|
11549
11549
|
navigation: f,
|
|
@@ -11551,19 +11551,19 @@ function Uh({
|
|
|
11551
11551
|
virtual: m,
|
|
11552
11552
|
thumbs: p
|
|
11553
11553
|
} = i;
|
|
11554
|
-
let g, v, A,
|
|
11555
|
-
n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (v = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (A = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && u && !u.el && (
|
|
11556
|
-
const I = (
|
|
11557
|
-
!i[
|
|
11554
|
+
let g, v, A, C, y;
|
|
11555
|
+
n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (v = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (A = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && u && !u.el && (C = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && f && !f.prevEl && !f.nextEl && (y = !0);
|
|
11556
|
+
const I = (k) => {
|
|
11557
|
+
!i[k] || (i[k].destroy(), k === "navigation" ? (c[k].prevEl = void 0, c[k].nextEl = void 0, i[k].prevEl = void 0, i[k].nextEl = void 0) : (c[k].el = void 0, i[k].el = void 0));
|
|
11558
11558
|
};
|
|
11559
|
-
l.forEach((
|
|
11560
|
-
if (Mt(c[
|
|
11561
|
-
ht(c[
|
|
11559
|
+
l.forEach((k) => {
|
|
11560
|
+
if (Mt(c[k]) && Mt(e[k]))
|
|
11561
|
+
ht(c[k], e[k]);
|
|
11562
11562
|
else {
|
|
11563
|
-
const
|
|
11564
|
-
(
|
|
11563
|
+
const w = e[k];
|
|
11564
|
+
(w === !0 || w === !1) && (k === "navigation" || k === "pagination" || k === "scrollbar") ? w === !1 && I(k) : c[k] = e[k];
|
|
11565
11565
|
}
|
|
11566
|
-
}), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && m && c.virtual.enabled ? (m.slides = t, m.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && p.init() && p.update(!0), v && (i.controller.control = c.controller.control), A && (a && (c.pagination.el = a), d.init(), d.render(), d.update()),
|
|
11566
|
+
}), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && m && c.virtual.enabled ? (m.slides = t, m.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && p.init() && p.update(!0), v && (i.controller.control = c.controller.control), A && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), C && (r && (c.scrollbar.el = r), u.init(), u.updateSize(), u.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), f.init(), f.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
|
|
11567
11567
|
}
|
|
11568
11568
|
const Jh = (i) => ({ virtualData: i & 512 }), Ps = (i) => ({ virtualData: i[9] }), Vh = (i) => ({ virtualData: i & 512 }), Is = (i) => ({ virtualData: i[9] }), Zh = (i) => ({ virtualData: i & 512 }), xs = (i) => ({ virtualData: i[9] }), qh = (i) => ({ virtualData: i & 512 }), ks = (i) => ({ virtualData: i[9] }), _h = (i) => ({ virtualData: i & 512 }), Ds = (i) => ({ virtualData: i[9] });
|
|
11569
11569
|
function Ls(i) {
|
|
@@ -11613,73 +11613,73 @@ function zs(i) {
|
|
|
11613
11613
|
}
|
|
11614
11614
|
function Kh(i) {
|
|
11615
11615
|
let t, e, n, o, s, r, a = gi(i[2]), l, c = vi(i[2]), d, f = Ai(i[2]), u, m, p;
|
|
11616
|
-
const g = i[12]["container-start"], v = Et(g, i, i[11], Ds), A = i[12]["wrapper-start"],
|
|
11616
|
+
const g = i[12]["container-start"], v = Et(g, i, i[11], Ds), A = i[12]["wrapper-start"], C = Et(A, i, i[11], ks), y = i[12].default, I = Et(y, i, i[11], xs), k = i[12]["wrapper-end"], w = Et(k, i, i[11], Is);
|
|
11617
11617
|
let L = a && Ls(i), D = c && Ss(i), H = f && zs(i);
|
|
11618
|
-
const
|
|
11619
|
-
let
|
|
11618
|
+
const B = i[12]["container-end"], F = Et(B, i, i[11], Ps);
|
|
11619
|
+
let Y = [
|
|
11620
11620
|
{
|
|
11621
11621
|
class: m = Bn(`${i[1]}${i[0] ? ` ${i[0]}` : ""}`)
|
|
11622
11622
|
},
|
|
11623
11623
|
i[3]
|
|
11624
11624
|
], E = {};
|
|
11625
|
-
for (let S = 0; S <
|
|
11626
|
-
E = Ee(E,
|
|
11625
|
+
for (let S = 0; S < Y.length; S += 1)
|
|
11626
|
+
E = Ee(E, Y[S]);
|
|
11627
11627
|
return {
|
|
11628
11628
|
c() {
|
|
11629
|
-
t = O("div"), v && v.c(), e = V(), n = O("div"),
|
|
11629
|
+
t = O("div"), v && v.c(), e = V(), n = O("div"), C && C.c(), o = V(), I && I.c(), s = V(), w && w.c(), r = V(), L && L.c(), l = V(), D && D.c(), d = V(), H && H.c(), u = V(), F && F.c(), b(n, "class", "swiper-wrapper"), kn(t, E);
|
|
11630
11630
|
},
|
|
11631
|
-
m(S,
|
|
11632
|
-
T(S, t,
|
|
11631
|
+
m(S, z) {
|
|
11632
|
+
T(S, t, z), v && v.m(t, null), Q(t, e), Q(t, n), C && C.m(n, null), Q(n, o), I && I.m(n, null), Q(n, s), w && w.m(n, null), Q(t, r), L && L.m(t, null), Q(t, l), D && D.m(t, null), Q(t, d), H && H.m(t, null), Q(t, u), F && F.m(t, null), i[17](t), p = !0;
|
|
11633
11633
|
},
|
|
11634
|
-
p(S, [
|
|
11635
|
-
v && v.p && (!p ||
|
|
11634
|
+
p(S, [z]) {
|
|
11635
|
+
v && v.p && (!p || z & 2560) && Pt(
|
|
11636
11636
|
v,
|
|
11637
11637
|
g,
|
|
11638
11638
|
S,
|
|
11639
11639
|
S[11],
|
|
11640
|
-
p ? xt(g, S[11],
|
|
11640
|
+
p ? xt(g, S[11], z, _h) : It(S[11]),
|
|
11641
11641
|
Ds
|
|
11642
|
-
),
|
|
11643
|
-
|
|
11642
|
+
), C && C.p && (!p || z & 2560) && Pt(
|
|
11643
|
+
C,
|
|
11644
11644
|
A,
|
|
11645
11645
|
S,
|
|
11646
11646
|
S[11],
|
|
11647
|
-
p ? xt(A, S[11],
|
|
11647
|
+
p ? xt(A, S[11], z, qh) : It(S[11]),
|
|
11648
11648
|
ks
|
|
11649
|
-
), I && I.p && (!p ||
|
|
11649
|
+
), I && I.p && (!p || z & 2560) && Pt(
|
|
11650
11650
|
I,
|
|
11651
11651
|
y,
|
|
11652
11652
|
S,
|
|
11653
11653
|
S[11],
|
|
11654
|
-
p ? xt(y, S[11],
|
|
11654
|
+
p ? xt(y, S[11], z, Zh) : It(S[11]),
|
|
11655
11655
|
xs
|
|
11656
|
-
),
|
|
11657
|
-
|
|
11658
|
-
|
|
11656
|
+
), w && w.p && (!p || z & 2560) && Pt(
|
|
11657
|
+
w,
|
|
11658
|
+
k,
|
|
11659
11659
|
S,
|
|
11660
11660
|
S[11],
|
|
11661
|
-
p ? xt(
|
|
11661
|
+
p ? xt(k, S[11], z, Vh) : It(S[11]),
|
|
11662
11662
|
Is
|
|
11663
|
-
),
|
|
11663
|
+
), z & 4 && (a = gi(S[2])), a ? L ? L.p(S, z) : (L = Ls(S), L.c(), L.m(t, l)) : L && (L.d(1), L = null), z & 4 && (c = vi(S[2])), c ? D ? D.p(S, z) : (D = Ss(S), D.c(), D.m(t, d)) : D && (D.d(1), D = null), z & 4 && (f = Ai(S[2])), f ? H ? H.p(S, z) : (H = zs(S), H.c(), H.m(t, u)) : H && (H.d(1), H = null), F && F.p && (!p || z & 2560) && Pt(
|
|
11664
11664
|
F,
|
|
11665
|
-
|
|
11665
|
+
B,
|
|
11666
11666
|
S,
|
|
11667
11667
|
S[11],
|
|
11668
|
-
p ? xt(
|
|
11668
|
+
p ? xt(B, S[11], z, Jh) : It(S[11]),
|
|
11669
11669
|
Ps
|
|
11670
|
-
), kn(t, E = ze(
|
|
11671
|
-
(!p ||
|
|
11672
|
-
|
|
11670
|
+
), kn(t, E = ze(Y, [
|
|
11671
|
+
(!p || z & 3 && m !== (m = Bn(`${S[1]}${S[0] ? ` ${S[0]}` : ""}`))) && { class: m },
|
|
11672
|
+
z & 8 && S[3]
|
|
11673
11673
|
]));
|
|
11674
11674
|
},
|
|
11675
11675
|
i(S) {
|
|
11676
|
-
p || (
|
|
11676
|
+
p || (x(v, S), x(C, S), x(I, S), x(w, S), x(F, S), p = !0);
|
|
11677
11677
|
},
|
|
11678
11678
|
o(S) {
|
|
11679
|
-
|
|
11679
|
+
M(v, S), M(C, S), M(I, S), M(w, S), M(F, S), p = !1;
|
|
11680
11680
|
},
|
|
11681
11681
|
d(S) {
|
|
11682
|
-
S && j(t), v && v.d(S),
|
|
11682
|
+
S && j(t), v && v.d(S), C && C.d(S), I && I.d(S), w && w.d(S), L && L.d(), D && D.d(), H && H.d(), F && F.d(S), i[17](null);
|
|
11683
11683
|
}
|
|
11684
11684
|
};
|
|
11685
11685
|
}
|
|
@@ -11687,35 +11687,35 @@ function $h(i, t, e) {
|
|
|
11687
11687
|
const n = ["class", "swiper"];
|
|
11688
11688
|
let o = Dn(t, n), { $$slots: s = {}, $$scope: r } = t;
|
|
11689
11689
|
const a = Fa();
|
|
11690
|
-
let { class: l = void 0 } = t, c = "swiper", d = !1, f = null, u = null, m, p, g, v, A = null,
|
|
11690
|
+
let { class: l = void 0 } = t, c = "swiper", d = !1, f = null, u = null, m, p, g, v, A = null, C = null, y = null, I = null, k = null, w = { slides: [] };
|
|
11691
11691
|
function L() {
|
|
11692
11692
|
return f;
|
|
11693
11693
|
}
|
|
11694
11694
|
const D = (N) => {
|
|
11695
|
-
e(9,
|
|
11696
|
-
f.$wrapperEl.children(".swiper-slide").each((
|
|
11697
|
-
|
|
11695
|
+
e(9, w = N), Ga().then(() => {
|
|
11696
|
+
f.$wrapperEl.children(".swiper-slide").each((X) => {
|
|
11697
|
+
X.onSwiper && X.onSwiper(f);
|
|
11698
11698
|
}), f.updateSlides(), f.updateProgress(), f.updateSlidesClasses(), f.lazy && f.params.lazy.enabled && f.lazy.load();
|
|
11699
11699
|
});
|
|
11700
11700
|
}, H = () => {
|
|
11701
11701
|
m = Wh(o), e(2, p = m.params), g = m.passedParams, e(3, v = m.rest);
|
|
11702
11702
|
};
|
|
11703
11703
|
H(), u = g;
|
|
11704
|
-
const
|
|
11704
|
+
const B = () => {
|
|
11705
11705
|
d = !0;
|
|
11706
11706
|
};
|
|
11707
|
-
if (p.onAny = (N, ...
|
|
11708
|
-
a(N,
|
|
11707
|
+
if (p.onAny = (N, ...X) => {
|
|
11708
|
+
a(N, X);
|
|
11709
11709
|
}, Object.assign(p.on, {
|
|
11710
|
-
_beforeBreakpoint:
|
|
11711
|
-
_containerClasses(N,
|
|
11712
|
-
e(1, c =
|
|
11710
|
+
_beforeBreakpoint: B,
|
|
11711
|
+
_containerClasses(N, X) {
|
|
11712
|
+
e(1, c = X);
|
|
11713
11713
|
}
|
|
11714
11714
|
}), f = new ci(p), ai("swiper", f), f.virtual && f.params.virtual.enabled) {
|
|
11715
11715
|
const N = {
|
|
11716
11716
|
cache: !1,
|
|
11717
|
-
renderExternal: (
|
|
11718
|
-
D(
|
|
11717
|
+
renderExternal: (X) => {
|
|
11718
|
+
D(X), p.virtual && p.virtual.renderExternal && p.virtual.renderExternal(X);
|
|
11719
11719
|
},
|
|
11720
11720
|
renderExternalUpdate: !1
|
|
11721
11721
|
};
|
|
@@ -11726,8 +11726,8 @@ function $h(i, t, e) {
|
|
|
11726
11726
|
{
|
|
11727
11727
|
el: A,
|
|
11728
11728
|
nextEl: y,
|
|
11729
|
-
prevEl:
|
|
11730
|
-
paginationEl:
|
|
11729
|
+
prevEl: C,
|
|
11730
|
+
paginationEl: k,
|
|
11731
11731
|
scrollbarEl: I,
|
|
11732
11732
|
swiper: f
|
|
11733
11733
|
},
|
|
@@ -11745,19 +11745,19 @@ function $h(i, t, e) {
|
|
|
11745
11745
|
passedParams: g,
|
|
11746
11746
|
changedParams: N,
|
|
11747
11747
|
nextEl: y,
|
|
11748
|
-
prevEl:
|
|
11748
|
+
prevEl: C,
|
|
11749
11749
|
scrollbarEl: I,
|
|
11750
|
-
paginationEl:
|
|
11750
|
+
paginationEl: k
|
|
11751
11751
|
}), d = !1, u = g;
|
|
11752
11752
|
}), At(() => {
|
|
11753
11753
|
typeof window != "undefined" && f && !f.destroyed && f.destroy(!0, !1);
|
|
11754
11754
|
});
|
|
11755
11755
|
function F(N) {
|
|
11756
11756
|
Qe[N ? "unshift" : "push"](() => {
|
|
11757
|
-
|
|
11757
|
+
C = N, e(5, C);
|
|
11758
11758
|
});
|
|
11759
11759
|
}
|
|
11760
|
-
function
|
|
11760
|
+
function Y(N) {
|
|
11761
11761
|
Qe[N ? "unshift" : "push"](() => {
|
|
11762
11762
|
y = N, e(6, y);
|
|
11763
11763
|
});
|
|
@@ -11769,10 +11769,10 @@ function $h(i, t, e) {
|
|
|
11769
11769
|
}
|
|
11770
11770
|
function S(N) {
|
|
11771
11771
|
Qe[N ? "unshift" : "push"](() => {
|
|
11772
|
-
|
|
11772
|
+
k = N, e(8, k);
|
|
11773
11773
|
});
|
|
11774
11774
|
}
|
|
11775
|
-
function
|
|
11775
|
+
function z(N) {
|
|
11776
11776
|
Qe[N ? "unshift" : "push"](() => {
|
|
11777
11777
|
A = N, e(4, A);
|
|
11778
11778
|
});
|
|
@@ -11785,19 +11785,19 @@ function $h(i, t, e) {
|
|
|
11785
11785
|
p,
|
|
11786
11786
|
v,
|
|
11787
11787
|
A,
|
|
11788
|
-
|
|
11788
|
+
C,
|
|
11789
11789
|
y,
|
|
11790
11790
|
I,
|
|
11791
|
-
|
|
11792
|
-
|
|
11791
|
+
k,
|
|
11792
|
+
w,
|
|
11793
11793
|
L,
|
|
11794
11794
|
r,
|
|
11795
11795
|
s,
|
|
11796
11796
|
F,
|
|
11797
|
-
|
|
11797
|
+
Y,
|
|
11798
11798
|
E,
|
|
11799
11799
|
S,
|
|
11800
|
-
|
|
11800
|
+
z
|
|
11801
11801
|
];
|
|
11802
11802
|
}
|
|
11803
11803
|
class em extends te {
|
|
@@ -11830,10 +11830,10 @@ function im(i) {
|
|
|
11830
11830
|
);
|
|
11831
11831
|
},
|
|
11832
11832
|
i(o) {
|
|
11833
|
-
t || (
|
|
11833
|
+
t || (x(n, o), t = !0);
|
|
11834
11834
|
},
|
|
11835
11835
|
o(o) {
|
|
11836
|
-
|
|
11836
|
+
M(n, o), t = !1;
|
|
11837
11837
|
},
|
|
11838
11838
|
d(o) {
|
|
11839
11839
|
n && n.d(o);
|
|
@@ -11861,10 +11861,10 @@ function om(i) {
|
|
|
11861
11861
|
), (!n || a & 1 && e !== (e = typeof r[0] == "number" ? r[0] : void 0)) && b(t, "data-swiper-zoom", e);
|
|
11862
11862
|
},
|
|
11863
11863
|
i(r) {
|
|
11864
|
-
n || (
|
|
11864
|
+
n || (x(s, r), n = !0);
|
|
11865
11865
|
},
|
|
11866
11866
|
o(r) {
|
|
11867
|
-
|
|
11867
|
+
M(s, r), n = !1;
|
|
11868
11868
|
},
|
|
11869
11869
|
d(r) {
|
|
11870
11870
|
r && j(t), s && s.d(r);
|
|
@@ -11898,9 +11898,9 @@ function sm(i) {
|
|
|
11898
11898
|
},
|
|
11899
11899
|
p(f, [u]) {
|
|
11900
11900
|
let m = e;
|
|
11901
|
-
e = l(f), e === m ? a[e].p(f, u) : (ue(),
|
|
11901
|
+
e = l(f), e === m ? a[e].p(f, u) : (ue(), M(a[m], 1, 1, () => {
|
|
11902
11902
|
a[m] = null;
|
|
11903
|
-
}), fe(), n = a[e], n ? n.p(f, u) : (n = a[e] = r[e](f), n.c()),
|
|
11903
|
+
}), fe(), n = a[e], n ? n.p(f, u) : (n = a[e] = r[e](f), n.c()), x(n, 1), n.m(t, null)), kn(t, d = ze(c, [
|
|
11904
11904
|
(!s || u & 12 && o !== (o = Bn(`${f[3]}${f[2] ? ` ${f[2]}` : ""}`))) && { class: o },
|
|
11905
11905
|
(!s || u & 2) && {
|
|
11906
11906
|
"data-swiper-slide-index": f[1]
|
|
@@ -11909,10 +11909,10 @@ function sm(i) {
|
|
|
11909
11909
|
]));
|
|
11910
11910
|
},
|
|
11911
11911
|
i(f) {
|
|
11912
|
-
s || (
|
|
11912
|
+
s || (x(n), s = !0);
|
|
11913
11913
|
},
|
|
11914
11914
|
o(f) {
|
|
11915
|
-
|
|
11915
|
+
M(n), s = !1;
|
|
11916
11916
|
},
|
|
11917
11917
|
d(f) {
|
|
11918
11918
|
f && j(t), a[e].d(), i[9](null);
|
|
@@ -11923,8 +11923,8 @@ function rm(i, t, e) {
|
|
|
11923
11923
|
let n;
|
|
11924
11924
|
const o = ["zoom", "virtualIndex", "class"];
|
|
11925
11925
|
let s = Dn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, f = null, u = "swiper-slide", m = _t("swiper"), p = !1;
|
|
11926
|
-
const g = (y, I,
|
|
11927
|
-
I === f && e(3, u =
|
|
11926
|
+
const g = (y, I, k) => {
|
|
11927
|
+
I === f && e(3, u = k);
|
|
11928
11928
|
}, v = () => {
|
|
11929
11929
|
!m || p || (m.on("_slideClass", g), p = !0);
|
|
11930
11930
|
}, A = () => {
|
|
@@ -11951,7 +11951,7 @@ function rm(i, t, e) {
|
|
|
11951
11951
|
}), At(() => {
|
|
11952
11952
|
!m || A();
|
|
11953
11953
|
});
|
|
11954
|
-
function
|
|
11954
|
+
function C(y) {
|
|
11955
11955
|
Qe[y ? "unshift" : "push"](() => {
|
|
11956
11956
|
f = y, e(4, f);
|
|
11957
11957
|
});
|
|
@@ -11976,7 +11976,7 @@ function rm(i, t, e) {
|
|
|
11976
11976
|
s,
|
|
11977
11977
|
a,
|
|
11978
11978
|
r,
|
|
11979
|
-
|
|
11979
|
+
C
|
|
11980
11980
|
];
|
|
11981
11981
|
}
|
|
11982
11982
|
class am extends te {
|
|
@@ -12141,12 +12141,12 @@ function Qs(i) {
|
|
|
12141
12141
|
p(d, f) {
|
|
12142
12142
|
i = d;
|
|
12143
12143
|
let u = e;
|
|
12144
|
-
e = c(i), e === u ? l[e].p(i, f) : (ue(),
|
|
12144
|
+
e = c(i), e === u ? l[e].p(i, f) : (ue(), M(l[u], 1, 1, () => {
|
|
12145
12145
|
l[u] = null;
|
|
12146
|
-
}), fe(), n = l[e], n ? n.p(i, f) : (n = l[e] = a[e](i), n.c()),
|
|
12146
|
+
}), fe(), n = l[e], n ? n.p(i, f) : (n = l[e] = a[e](i), n.c()), x(n, 1), n.m(t, null)), f & 16 && q(t, "unfolded", i[4]);
|
|
12147
12147
|
},
|
|
12148
12148
|
i(d) {
|
|
12149
|
-
r || (
|
|
12149
|
+
r || (x(n), d && Re(() => {
|
|
12150
12150
|
s && s.end(1), o = jt(t, Ui, i[5] ? {
|
|
12151
12151
|
y: 4,
|
|
12152
12152
|
duration: i[3],
|
|
@@ -12156,7 +12156,7 @@ function Qs(i) {
|
|
|
12156
12156
|
}), r = !0);
|
|
12157
12157
|
},
|
|
12158
12158
|
o(d) {
|
|
12159
|
-
|
|
12159
|
+
M(n), o && o.invalidate(), d && (s = Nt(t, Ui, i[5] ? {
|
|
12160
12160
|
y: 4,
|
|
12161
12161
|
duration: i[3],
|
|
12162
12162
|
delay: i[2],
|
|
@@ -12189,10 +12189,10 @@ function mm(i) {
|
|
|
12189
12189
|
o & 1 && (s.media = n[0][0]), o & 256 && (s.objectFit = n[8]), o & 64 && (s.playButtonIfNeed = n[6]), o & 128 && (s.canPlay = n[7]), t.$set(s);
|
|
12190
12190
|
},
|
|
12191
12191
|
i(n) {
|
|
12192
|
-
e || (
|
|
12192
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
12193
12193
|
},
|
|
12194
12194
|
o(n) {
|
|
12195
|
-
|
|
12195
|
+
M(t.$$.fragment, n), e = !1;
|
|
12196
12196
|
},
|
|
12197
12197
|
d(n) {
|
|
12198
12198
|
$(t, n);
|
|
@@ -12231,10 +12231,10 @@ function pm(i) {
|
|
|
12231
12231
|
}) : !1), o & 67111360 && (s.$$scope = { dirty: o, ctx: n }), t.$set(s);
|
|
12232
12232
|
},
|
|
12233
12233
|
i(n) {
|
|
12234
|
-
e || (
|
|
12234
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
12235
12235
|
},
|
|
12236
12236
|
o(n) {
|
|
12237
|
-
|
|
12237
|
+
M(t.$$.fragment, n), e = !1;
|
|
12238
12238
|
},
|
|
12239
12239
|
d(n) {
|
|
12240
12240
|
$(t, n);
|
|
@@ -12262,10 +12262,10 @@ function gm(i) {
|
|
|
12262
12262
|
s & 2048 && (r.media = o[23]), s & 256 && (r.objectFit = o[8]), s & 64 && (r.playButtonIfNeed = o[6]), s & 128 && (r.canPlay = o[7]), t.$set(r);
|
|
12263
12263
|
},
|
|
12264
12264
|
i(o) {
|
|
12265
|
-
n || (
|
|
12265
|
+
n || (x(t.$$.fragment, o), n = !0);
|
|
12266
12266
|
},
|
|
12267
12267
|
o(o) {
|
|
12268
|
-
|
|
12268
|
+
M(t.$$.fragment, o), n = !1;
|
|
12269
12269
|
},
|
|
12270
12270
|
d(o) {
|
|
12271
12271
|
$(t, o), o && j(e);
|
|
@@ -12291,10 +12291,10 @@ function Rs(i) {
|
|
|
12291
12291
|
o & 67111360 && (s.$$scope = { dirty: o, ctx: n }), t.$set(s);
|
|
12292
12292
|
},
|
|
12293
12293
|
i(n) {
|
|
12294
|
-
e || (
|
|
12294
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
12295
12295
|
},
|
|
12296
12296
|
o(n) {
|
|
12297
|
-
|
|
12297
|
+
M(t.$$.fragment, n), e = !1;
|
|
12298
12298
|
},
|
|
12299
12299
|
d(n) {
|
|
12300
12300
|
$(t, n);
|
|
@@ -12305,7 +12305,7 @@ function Am(i) {
|
|
|
12305
12305
|
let t, e, n = i[11], o = [];
|
|
12306
12306
|
for (let r = 0; r < n.length; r += 1)
|
|
12307
12307
|
o[r] = Rs(Bs(i, n, r));
|
|
12308
|
-
const s = (r) =>
|
|
12308
|
+
const s = (r) => M(o[r], 1, 1, () => {
|
|
12309
12309
|
o[r] = null;
|
|
12310
12310
|
});
|
|
12311
12311
|
return {
|
|
@@ -12325,7 +12325,7 @@ function Am(i) {
|
|
|
12325
12325
|
let l;
|
|
12326
12326
|
for (l = 0; l < n.length; l += 1) {
|
|
12327
12327
|
const c = Bs(r, n, l);
|
|
12328
|
-
o[l] ? (o[l].p(c, a),
|
|
12328
|
+
o[l] ? (o[l].p(c, a), x(o[l], 1)) : (o[l] = Rs(c), o[l].c(), x(o[l], 1), o[l].m(t.parentNode, t));
|
|
12329
12329
|
}
|
|
12330
12330
|
for (ue(), l = n.length; l < o.length; l += 1)
|
|
12331
12331
|
s(l);
|
|
@@ -12335,14 +12335,14 @@ function Am(i) {
|
|
|
12335
12335
|
i(r) {
|
|
12336
12336
|
if (!e) {
|
|
12337
12337
|
for (let a = 0; a < n.length; a += 1)
|
|
12338
|
-
|
|
12338
|
+
x(o[a]);
|
|
12339
12339
|
e = !0;
|
|
12340
12340
|
}
|
|
12341
12341
|
},
|
|
12342
12342
|
o(r) {
|
|
12343
12343
|
o = o.filter(Boolean);
|
|
12344
12344
|
for (let a = 0; a < o.length; a += 1)
|
|
12345
|
-
|
|
12345
|
+
M(o[a]);
|
|
12346
12346
|
e = !1;
|
|
12347
12347
|
},
|
|
12348
12348
|
d(r) {
|
|
@@ -12360,15 +12360,15 @@ function vm(i) {
|
|
|
12360
12360
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
12361
12361
|
},
|
|
12362
12362
|
p(o, [s]) {
|
|
12363
|
-
o[4] ? n ? (n.p(o, s), s & 16 &&
|
|
12363
|
+
o[4] ? n ? (n.p(o, s), s & 16 && x(n, 1)) : (n = Qs(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
12364
12364
|
n = null;
|
|
12365
12365
|
}), fe());
|
|
12366
12366
|
},
|
|
12367
12367
|
i(o) {
|
|
12368
|
-
e || (
|
|
12368
|
+
e || (x(n), e = !0);
|
|
12369
12369
|
},
|
|
12370
12370
|
o(o) {
|
|
12371
|
-
|
|
12371
|
+
M(n), e = !1;
|
|
12372
12372
|
},
|
|
12373
12373
|
d(o) {
|
|
12374
12374
|
n && n.d(o), o && j(t);
|
|
@@ -12377,56 +12377,56 @@ function vm(i) {
|
|
|
12377
12377
|
}
|
|
12378
12378
|
function bm(i, t, e) {
|
|
12379
12379
|
let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: f = !0 } = t, { animation: u = !0 } = t, { playButtonIfNeed: m = "small" } = t, { canPlay: p = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: A = { autoplay: !0, autoplayVideo: !1 } } = t;
|
|
12380
|
-
const
|
|
12380
|
+
const C = _t("mediaStore"), y = _t("hooks");
|
|
12381
12381
|
let I;
|
|
12382
|
-
function
|
|
12383
|
-
!n || !I || (
|
|
12384
|
-
event:
|
|
12382
|
+
function k(B) {
|
|
12383
|
+
!n || !I || (C.set({ currentMediaUrl: this.src }), y.emit("playStateChange", {
|
|
12384
|
+
event: B,
|
|
12385
12385
|
state: "playing",
|
|
12386
12386
|
tag: r,
|
|
12387
12387
|
mediaInstance: this
|
|
12388
12388
|
}), I.autoplay.stop());
|
|
12389
12389
|
}
|
|
12390
|
-
function
|
|
12390
|
+
function w(B) {
|
|
12391
12391
|
!n || !I || (y.emit("playStateChange", {
|
|
12392
|
-
event:
|
|
12392
|
+
event: B,
|
|
12393
12393
|
state: "paused",
|
|
12394
12394
|
tag: r,
|
|
12395
12395
|
mediaInstance: this
|
|
12396
12396
|
}), I.autoplay.running || I.autoplay.start());
|
|
12397
12397
|
}
|
|
12398
12398
|
let L = null;
|
|
12399
|
-
const D = (
|
|
12400
|
-
e(10, I =
|
|
12401
|
-
}, H = (
|
|
12402
|
-
var N,
|
|
12399
|
+
const D = (B) => {
|
|
12400
|
+
e(10, I = B.detail[0]);
|
|
12401
|
+
}, H = (B) => J(this, null, function* () {
|
|
12402
|
+
var N, X, ee;
|
|
12403
12403
|
if (!s || !A.autoplayVideo)
|
|
12404
12404
|
return;
|
|
12405
|
-
const F =
|
|
12405
|
+
const F = B.detail[0];
|
|
12406
12406
|
if (!F)
|
|
12407
12407
|
return;
|
|
12408
|
-
const
|
|
12409
|
-
if (
|
|
12408
|
+
const Y = F.realIndex;
|
|
12409
|
+
if (Y === L)
|
|
12410
12410
|
return;
|
|
12411
|
-
e(12, L =
|
|
12412
|
-
const E = o[
|
|
12411
|
+
e(12, L = Y);
|
|
12412
|
+
const E = o[Y];
|
|
12413
12413
|
if (!E || E.type !== "Video")
|
|
12414
12414
|
return;
|
|
12415
12415
|
F.autoplay.stop(), F.slides.map((W) => W.querySelector("video")).filter(zt).forEach((W) => W.pause());
|
|
12416
|
-
const
|
|
12417
|
-
if (
|
|
12418
|
-
|
|
12419
|
-
const W = (ee = (
|
|
12420
|
-
|
|
12416
|
+
const z = (N = F.slides[F.activeIndex]) == null ? void 0 : N.querySelector("video");
|
|
12417
|
+
if (z && (z.removeEventListener("play", k), z.removeEventListener("pause", w), z.addEventListener("play", k), z.addEventListener("pause", w)), z) {
|
|
12418
|
+
z.addEventListener("click", () => z.pause());
|
|
12419
|
+
const W = (ee = (X = z.parentElement) == null ? void 0 : X.getElementsByClassName("video-play-button-container")) == null ? void 0 : ee[0];
|
|
12420
|
+
z.addEventListener("play", () => W == null ? void 0 : W.classList.remove("showPlayButton")), z.addEventListener("pause", () => W == null ? void 0 : W.classList.add("showPlayButton")), W && (z.paused ? W.classList.add("showPlayButton") : W.classList.remove("showPlayButton"), W.addEventListener("click", () => z.play()));
|
|
12421
12421
|
}
|
|
12422
12422
|
});
|
|
12423
|
-
return i.$$set = (
|
|
12424
|
-
"tag" in
|
|
12423
|
+
return i.$$set = (B) => {
|
|
12424
|
+
"tag" in B && e(17, r = B.tag), "mediaData" in B && e(0, a = B.mediaData), "inDelay" in B && e(1, l = B.inDelay), "outDelay" in B && e(2, c = B.outDelay), "duration" in B && e(3, d = B.duration), "unfolded" in B && e(4, f = B.unfolded), "animation" in B && e(5, u = B.animation), "playButtonIfNeed" in B && e(6, m = B.playButtonIfNeed), "canPlay" in B && e(7, p = B.canPlay), "objectFit" in B && e(8, g = B.objectFit), "enableCarousel" in B && e(18, v = B.enableCarousel), "autoplayConfig" in B && e(9, A = B.autoplayConfig);
|
|
12425
12425
|
}, i.$$.update = () => {
|
|
12426
|
-
i.$$.dirty & 262145 && e(13, n = v && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && A.autoplay), i.$$.dirty & 1024 && I && I.slides.forEach((
|
|
12427
|
-
const F =
|
|
12428
|
-
F &&
|
|
12429
|
-
|
|
12426
|
+
i.$$.dirty & 262145 && e(13, n = v && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && A.autoplay), i.$$.dirty & 1024 && I && I.slides.forEach((B) => {
|
|
12427
|
+
const F = B.querySelector("video");
|
|
12428
|
+
F && C.subscribe(({ currentMediaUrl: Y }) => {
|
|
12429
|
+
Y !== F.src && F.pause();
|
|
12430
12430
|
});
|
|
12431
12431
|
});
|
|
12432
12432
|
}, [
|
|
@@ -12445,8 +12445,8 @@ function bm(i, t, e) {
|
|
|
12445
12445
|
L,
|
|
12446
12446
|
n,
|
|
12447
12447
|
s,
|
|
12448
|
-
|
|
12449
|
-
|
|
12448
|
+
k,
|
|
12449
|
+
w,
|
|
12450
12450
|
r,
|
|
12451
12451
|
v,
|
|
12452
12452
|
D,
|
|
@@ -12528,23 +12528,23 @@ function Hs(i) {
|
|
|
12528
12528
|
const v = {};
|
|
12529
12529
|
g & 16 && (v.visible = p[4]), t.$set(v);
|
|
12530
12530
|
const A = {};
|
|
12531
|
-
g & 16 && (A.unfolded = p[4]), o.$set(A), g & 20 && (f = p[2], ue(), r = Ye(r, g, u, 1, p, f, a, l.parentNode, at, Fs, l, Os), fe()), p[3] ? m ? (m.p(p, g), g & 8 &&
|
|
12531
|
+
g & 16 && (A.unfolded = p[4]), o.$set(A), g & 20 && (f = p[2], ue(), r = Ye(r, g, u, 1, p, f, a, l.parentNode, at, Fs, l, Os), fe()), p[3] ? m ? (m.p(p, g), g & 8 && x(m, 1)) : (m = Gs(p), m.c(), x(m, 1), m.m(c.parentNode, c)) : m && (ue(), M(m, 1, 1, () => {
|
|
12532
12532
|
m = null;
|
|
12533
12533
|
}), fe());
|
|
12534
12534
|
},
|
|
12535
12535
|
i(p) {
|
|
12536
12536
|
if (!d) {
|
|
12537
|
-
|
|
12537
|
+
x(t.$$.fragment, p), x(o.$$.fragment, p);
|
|
12538
12538
|
for (let g = 0; g < f.length; g += 1)
|
|
12539
|
-
|
|
12540
|
-
|
|
12539
|
+
x(r[g]);
|
|
12540
|
+
x(m), d = !0;
|
|
12541
12541
|
}
|
|
12542
12542
|
},
|
|
12543
12543
|
o(p) {
|
|
12544
|
-
|
|
12544
|
+
M(t.$$.fragment, p), M(o.$$.fragment, p);
|
|
12545
12545
|
for (let g = 0; g < r.length; g += 1)
|
|
12546
|
-
|
|
12547
|
-
|
|
12546
|
+
M(r[g]);
|
|
12547
|
+
M(m), d = !1;
|
|
12548
12548
|
},
|
|
12549
12549
|
d(p) {
|
|
12550
12550
|
$(t, p), p && j(e), p && j(n), $(o), p && j(s);
|
|
@@ -12577,10 +12577,10 @@ function Fs(i, t) {
|
|
|
12577
12577
|
r & 16 && (a.unfolded = t[4]), r & 4 && (a.content = t[1]), n.$set(a);
|
|
12578
12578
|
},
|
|
12579
12579
|
i(s) {
|
|
12580
|
-
o || (
|
|
12580
|
+
o || (x(n.$$.fragment, s), o = !0);
|
|
12581
12581
|
},
|
|
12582
12582
|
o(s) {
|
|
12583
|
-
|
|
12583
|
+
M(n.$$.fragment, s), o = !1;
|
|
12584
12584
|
},
|
|
12585
12585
|
d(s) {
|
|
12586
12586
|
s && j(e), $(n);
|
|
@@ -12613,10 +12613,10 @@ function Gs(i) {
|
|
|
12613
12613
|
s & 16 && (r.unfolded = o[4]), s & 8 && (r.mediaData = o[3]), s & 1 && (r.tag = o[0]), e.$set(r);
|
|
12614
12614
|
},
|
|
12615
12615
|
i(o) {
|
|
12616
|
-
n || (
|
|
12616
|
+
n || (x(e.$$.fragment, o), n = !0);
|
|
12617
12617
|
},
|
|
12618
12618
|
o(o) {
|
|
12619
|
-
|
|
12619
|
+
M(e.$$.fragment, o), n = !1;
|
|
12620
12620
|
},
|
|
12621
12621
|
d(o) {
|
|
12622
12622
|
o && j(t), $(e);
|
|
@@ -12633,15 +12633,15 @@ function wm(i) {
|
|
|
12633
12633
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
12634
12634
|
},
|
|
12635
12635
|
p(o, [s]) {
|
|
12636
|
-
o[0].state ? n ? (n.p(o, s), s & 1 &&
|
|
12636
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && x(n, 1)) : (n = Hs(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
12637
12637
|
n = null;
|
|
12638
12638
|
}), fe());
|
|
12639
12639
|
},
|
|
12640
12640
|
i(o) {
|
|
12641
|
-
e || (
|
|
12641
|
+
e || (x(n), e = !0);
|
|
12642
12642
|
},
|
|
12643
12643
|
o(o) {
|
|
12644
|
-
|
|
12644
|
+
M(n), e = !1;
|
|
12645
12645
|
},
|
|
12646
12646
|
d(o) {
|
|
12647
12647
|
n && n.d(o), o && j(t);
|
|
@@ -12793,8 +12793,8 @@ function qs(i) {
|
|
|
12793
12793
|
};
|
|
12794
12794
|
}
|
|
12795
12795
|
function Im(i) {
|
|
12796
|
-
var F,
|
|
12797
|
-
let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g = i[2].title + "", v, A,
|
|
12796
|
+
var F, Y;
|
|
12797
|
+
let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g = i[2].title + "", v, A, C, y, I;
|
|
12798
12798
|
e = new Je({
|
|
12799
12799
|
props: {
|
|
12800
12800
|
visible: i[1],
|
|
@@ -12805,29 +12805,29 @@ function Im(i) {
|
|
|
12805
12805
|
spreadRadius: 75
|
|
12806
12806
|
}
|
|
12807
12807
|
});
|
|
12808
|
-
let
|
|
12809
|
-
for (let E = 0; E <
|
|
12810
|
-
|
|
12808
|
+
let k = i[2].brandTags || [], w = [];
|
|
12809
|
+
for (let E = 0; E < k.length; E += 1)
|
|
12810
|
+
w[E] = Ys(Ws(i, k, E));
|
|
12811
12811
|
let L = i[2].tags || [], D = [];
|
|
12812
12812
|
for (let E = 0; E < L.length; E += 1)
|
|
12813
12813
|
D[E] = Js(Ns(i, L, E));
|
|
12814
|
-
let H = ((F = i[2].price) == null ? void 0 : F.value) !== void 0 && ((
|
|
12814
|
+
let H = ((F = i[2].price) == null ? void 0 : F.value) !== void 0 && ((Y = i[2].price) == null ? void 0 : Y.value) !== null && Vs(i), B = i[2].highlightText && qs(i);
|
|
12815
12815
|
return {
|
|
12816
12816
|
c() {
|
|
12817
12817
|
var E, S;
|
|
12818
12818
|
t = O("div"), _(e.$$.fragment), n = V(), o = O("div"), s = V(), r = O("div"), a = O("img"), c = V(), d = O("div");
|
|
12819
|
-
for (let
|
|
12820
|
-
|
|
12819
|
+
for (let z = 0; z < w.length; z += 1)
|
|
12820
|
+
w[z].c();
|
|
12821
12821
|
f = V();
|
|
12822
|
-
for (let
|
|
12823
|
-
D[
|
|
12824
|
-
u = V(), m = O("div"), p = O("div"), v = Le(g), A = V(),
|
|
12822
|
+
for (let z = 0; z < D.length; z += 1)
|
|
12823
|
+
D[z].c();
|
|
12824
|
+
u = V(), m = O("div"), p = O("div"), v = Le(g), A = V(), C = O("div"), H && H.c(), y = V(), B && B.c(), b(o, "class", "line svelte-8mby9k"), R(
|
|
12825
12825
|
o,
|
|
12826
12826
|
"transition-delay",
|
|
12827
12827
|
i[1] ? yn + "ms" : wn + Ks - _s - 40 + "ms",
|
|
12828
12828
|
!1
|
|
12829
|
-
), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(m, "class", "title svelte-8mby9k"), b(
|
|
12830
|
-
|
|
12829
|
+
), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(m, "class", "title svelte-8mby9k"), b(C, "class", "footer svelte-8mby9k"), R(
|
|
12830
|
+
C,
|
|
12831
12831
|
"height",
|
|
12832
12832
|
((E = i[2].price) == null ? void 0 : E.value) !== void 0 && ((S = i[2].price) == null ? void 0 : S.value) !== null && i[2].highlightText ? void 0 : "1rem",
|
|
12833
12833
|
!1
|
|
@@ -12840,31 +12840,31 @@ function Im(i) {
|
|
|
12840
12840
|
},
|
|
12841
12841
|
m(E, S) {
|
|
12842
12842
|
T(E, t, S), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), Q(r, a), Q(r, c), Q(r, d);
|
|
12843
|
-
for (let
|
|
12844
|
-
|
|
12843
|
+
for (let z = 0; z < w.length; z += 1)
|
|
12844
|
+
w[z].m(d, null);
|
|
12845
12845
|
Q(d, f);
|
|
12846
|
-
for (let
|
|
12847
|
-
D[
|
|
12848
|
-
Q(r, u), Q(r, m), Q(m, p), Q(p, v), Q(r, A), Q(r,
|
|
12846
|
+
for (let z = 0; z < D.length; z += 1)
|
|
12847
|
+
D[z].m(d, null);
|
|
12848
|
+
Q(r, u), Q(r, m), Q(m, p), Q(p, v), Q(r, A), Q(r, C), H && H.m(C, null), Q(C, y), B && B.m(C, null), I = !0;
|
|
12849
12849
|
},
|
|
12850
12850
|
p(E, [S]) {
|
|
12851
|
-
var N,
|
|
12852
|
-
const
|
|
12853
|
-
if (S & 2 && (
|
|
12851
|
+
var N, X, ee, W;
|
|
12852
|
+
const z = {};
|
|
12853
|
+
if (S & 2 && (z.visible = E[1]), e.$set(z), S & 2 && R(
|
|
12854
12854
|
o,
|
|
12855
12855
|
"transition-delay",
|
|
12856
12856
|
E[1] ? yn + "ms" : wn + Ks - _s - 40 + "ms",
|
|
12857
12857
|
!1
|
|
12858
12858
|
), (!I || S & 4 && !et(a.src, l = E[2].headerPictureUrl)) && b(a, "src", l), S & 4) {
|
|
12859
|
-
|
|
12859
|
+
k = E[2].brandTags || [];
|
|
12860
12860
|
let U;
|
|
12861
|
-
for (U = 0; U <
|
|
12862
|
-
const ae = Ws(E,
|
|
12863
|
-
|
|
12861
|
+
for (U = 0; U < k.length; U += 1) {
|
|
12862
|
+
const ae = Ws(E, k, U);
|
|
12863
|
+
w[U] ? w[U].p(ae, S) : (w[U] = Ys(ae), w[U].c(), w[U].m(d, f));
|
|
12864
12864
|
}
|
|
12865
|
-
for (; U <
|
|
12866
|
-
|
|
12867
|
-
|
|
12865
|
+
for (; U < w.length; U += 1)
|
|
12866
|
+
w[U].d(1);
|
|
12867
|
+
w.length = k.length;
|
|
12868
12868
|
}
|
|
12869
12869
|
if (S & 4) {
|
|
12870
12870
|
L = E[2].tags || [];
|
|
@@ -12877,8 +12877,8 @@ function Im(i) {
|
|
|
12877
12877
|
D[U].d(1);
|
|
12878
12878
|
D.length = L.length;
|
|
12879
12879
|
}
|
|
12880
|
-
(!I || S & 4) && g !== (g = E[2].title + "") && Se(v, g), ((N = E[2].price) == null ? void 0 : N.value) !== void 0 && ((
|
|
12881
|
-
|
|
12880
|
+
(!I || S & 4) && g !== (g = E[2].title + "") && Se(v, g), ((N = E[2].price) == null ? void 0 : N.value) !== void 0 && ((X = E[2].price) == null ? void 0 : X.value) !== null ? H ? H.p(E, S) : (H = Vs(E), H.c(), H.m(C, y)) : H && (H.d(1), H = null), E[2].highlightText ? B ? B.p(E, S) : (B = qs(E), B.c(), B.m(C, null)) : B && (B.d(1), B = null), S & 4 && R(
|
|
12881
|
+
C,
|
|
12882
12882
|
"height",
|
|
12883
12883
|
((ee = E[2].price) == null ? void 0 : ee.value) !== void 0 && ((W = E[2].price) == null ? void 0 : W.value) !== null && E[2].highlightText ? void 0 : "1rem",
|
|
12884
12884
|
!1
|
|
@@ -12890,13 +12890,13 @@ function Im(i) {
|
|
|
12890
12890
|
), S & 2 && q(t, "unfolded", E[1]), S & 8 && q(t, "folded", E[3]);
|
|
12891
12891
|
},
|
|
12892
12892
|
i(E) {
|
|
12893
|
-
I || (
|
|
12893
|
+
I || (x(e.$$.fragment, E), I = !0);
|
|
12894
12894
|
},
|
|
12895
12895
|
o(E) {
|
|
12896
|
-
|
|
12896
|
+
M(e.$$.fragment, E), I = !1;
|
|
12897
12897
|
},
|
|
12898
12898
|
d(E) {
|
|
12899
|
-
E && j(t), $(e), tt(
|
|
12899
|
+
E && j(t), $(e), tt(w, E), tt(D, E), H && H.d(), B && B.d();
|
|
12900
12900
|
}
|
|
12901
12901
|
};
|
|
12902
12902
|
}
|
|
@@ -12941,7 +12941,7 @@ function $s(i) {
|
|
|
12941
12941
|
i = p, (!f || g & 8 && !et(r.src, a = i[3])) && b(r, "src", a), g & 64 && l !== (l = i[6]) && r[l ? "pause" : "play"](), g & 64 && q(t, "paused", i[6]);
|
|
12942
12942
|
},
|
|
12943
12943
|
i(p) {
|
|
12944
|
-
f || (
|
|
12944
|
+
f || (x(e.$$.fragment, p), p && Re(() => {
|
|
12945
12945
|
d && d.end(1), c = jt(t, St, {
|
|
12946
12946
|
duration: i[2],
|
|
12947
12947
|
delay: i[0],
|
|
@@ -12950,7 +12950,7 @@ function $s(i) {
|
|
|
12950
12950
|
}), f = !0);
|
|
12951
12951
|
},
|
|
12952
12952
|
o(p) {
|
|
12953
|
-
|
|
12953
|
+
M(e.$$.fragment, p), c && c.invalidate(), p && (d = Nt(t, St, {
|
|
12954
12954
|
duration: i[2],
|
|
12955
12955
|
delay: i[1],
|
|
12956
12956
|
easing: Kt
|
|
@@ -12971,15 +12971,15 @@ function Lm(i) {
|
|
|
12971
12971
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
12972
12972
|
},
|
|
12973
12973
|
p(o, [s]) {
|
|
12974
|
-
o[4] ? n ? (n.p(o, s), s & 16 &&
|
|
12974
|
+
o[4] ? n ? (n.p(o, s), s & 16 && x(n, 1)) : (n = $s(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
12975
12975
|
n = null;
|
|
12976
12976
|
}), fe());
|
|
12977
12977
|
},
|
|
12978
12978
|
i(o) {
|
|
12979
|
-
e || (
|
|
12979
|
+
e || (x(n), e = !0);
|
|
12980
12980
|
},
|
|
12981
12981
|
o(o) {
|
|
12982
|
-
|
|
12982
|
+
M(n), e = !1;
|
|
12983
12983
|
},
|
|
12984
12984
|
d(o) {
|
|
12985
12985
|
n && n.d(o), o && j(t);
|
|
@@ -13066,7 +13066,7 @@ function Mm(i) {
|
|
|
13066
13066
|
ce(i, "svelte-4r8s18", ".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}");
|
|
13067
13067
|
}
|
|
13068
13068
|
function er(i) {
|
|
13069
|
-
var
|
|
13069
|
+
var C, y, I, k;
|
|
13070
13070
|
let t, e, n, o, s, r, a, l, c, d, f, u, m, p, g, v, A;
|
|
13071
13071
|
return e = new Je({
|
|
13072
13072
|
props: {
|
|
@@ -13081,14 +13081,14 @@ function er(i) {
|
|
|
13081
13081
|
props: {
|
|
13082
13082
|
unfolded: i[5],
|
|
13083
13083
|
duration: 1e3,
|
|
13084
|
-
outDelay: i[4] + 20 * Math.min((y = (
|
|
13084
|
+
outDelay: i[4] + 20 * Math.min((y = (C = i[3][0]) == null ? void 0 : C.content.length) != null ? y : 10, 15)
|
|
13085
13085
|
}
|
|
13086
13086
|
}), d = new zm({
|
|
13087
13087
|
props: {
|
|
13088
13088
|
unfolded: i[5],
|
|
13089
13089
|
url: i[0].data.audioUrl,
|
|
13090
13090
|
duration: 1e3,
|
|
13091
|
-
outDelay: 20 * Math.min((
|
|
13091
|
+
outDelay: 20 * Math.min((k = (I = i[3][0]) == null ? void 0 : I.content.length) != null ? k : 10, 15),
|
|
13092
13092
|
hooksInfo: { tag: i[0] }
|
|
13093
13093
|
}
|
|
13094
13094
|
}), m = new na({
|
|
@@ -13101,28 +13101,28 @@ function er(i) {
|
|
|
13101
13101
|
c() {
|
|
13102
13102
|
t = O("div"), _(e.$$.fragment), n = V(), o = O("div"), _(s.$$.fragment), r = V(), a = O("div"), l = O("div"), c = O("div"), _(d.$$.fragment), f = V(), u = O("div"), _(m.$$.fragment), b(o, "class", "line svelte-4r8s18"), R(o, "width", i[2] + "px", !1), b(c, "class", "audio-icon svelte-4r8s18"), R(u, "display", "inline-block", !1), b(l, "class", "wrapper svelte-4r8s18"), b(a, "class", "content svelte-4r8s18"), Re(() => i[8].call(a)), b(t, "class", "audio-tag svelte-4r8s18"), q(t, "unfolded", i[5]);
|
|
13103
13103
|
},
|
|
13104
|
-
m(
|
|
13105
|
-
T(
|
|
13104
|
+
m(w, L) {
|
|
13105
|
+
T(w, t, L), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, f), Q(l, u), K(m, u, null), p = gt(a, i[8].bind(a)), g = !0, v || (A = Pe(u, "click", i[6]), v = !0);
|
|
13106
13106
|
},
|
|
13107
|
-
p(
|
|
13108
|
-
var
|
|
13107
|
+
p(w, L) {
|
|
13108
|
+
var Y, E, S, z;
|
|
13109
13109
|
const D = {};
|
|
13110
|
-
L & 32 && (D.visible =
|
|
13110
|
+
L & 32 && (D.visible = w[5]), L & 4 && (D.left = w[2] / 2 + "px"), e.$set(D);
|
|
13111
13111
|
const H = {};
|
|
13112
|
-
L & 32 && (H.unfolded =
|
|
13113
|
-
const
|
|
13114
|
-
L & 32 && (
|
|
13112
|
+
L & 32 && (H.unfolded = w[5]), L & 24 && (H.outDelay = w[4] + 20 * Math.min((E = (Y = w[3][0]) == null ? void 0 : Y.content.length) != null ? E : 10, 15)), s.$set(H), L & 4 && R(o, "width", w[2] + "px", !1);
|
|
13113
|
+
const B = {};
|
|
13114
|
+
L & 32 && (B.unfolded = w[5]), L & 1 && (B.url = w[0].data.audioUrl), L & 8 && (B.outDelay = 20 * Math.min((z = (S = w[3][0]) == null ? void 0 : S.content.length) != null ? z : 10, 15)), L & 1 && (B.hooksInfo = { tag: w[0] }), d.$set(B);
|
|
13115
13115
|
const F = {};
|
|
13116
|
-
L & 32 && (F.visible =
|
|
13116
|
+
L & 32 && (F.visible = w[5]), L & 2 && (F.textUnfolded = w[1]), L & 8 && (F.textItems = w[3]), m.$set(F), L & 32 && q(t, "unfolded", w[5]);
|
|
13117
13117
|
},
|
|
13118
|
-
i(
|
|
13119
|
-
g || (
|
|
13118
|
+
i(w) {
|
|
13119
|
+
g || (x(e.$$.fragment, w), x(s.$$.fragment, w), x(d.$$.fragment, w), x(m.$$.fragment, w), g = !0);
|
|
13120
13120
|
},
|
|
13121
|
-
o(
|
|
13122
|
-
|
|
13121
|
+
o(w) {
|
|
13122
|
+
M(e.$$.fragment, w), M(s.$$.fragment, w), M(d.$$.fragment, w), M(m.$$.fragment, w), g = !1;
|
|
13123
13123
|
},
|
|
13124
|
-
d(
|
|
13125
|
-
|
|
13124
|
+
d(w) {
|
|
13125
|
+
w && j(t), $(e), $(s), $(d), $(m), p(), v = !1, A();
|
|
13126
13126
|
}
|
|
13127
13127
|
};
|
|
13128
13128
|
}
|
|
@@ -13136,15 +13136,15 @@ function Tm(i) {
|
|
|
13136
13136
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
13137
13137
|
},
|
|
13138
13138
|
p(o, [s]) {
|
|
13139
|
-
o[0].state ? n ? (n.p(o, s), s & 1 &&
|
|
13139
|
+
o[0].state ? n ? (n.p(o, s), s & 1 && x(n, 1)) : (n = er(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
13140
13140
|
n = null;
|
|
13141
13141
|
}), fe());
|
|
13142
13142
|
},
|
|
13143
13143
|
i(o) {
|
|
13144
|
-
e || (
|
|
13144
|
+
e || (x(n), e = !0);
|
|
13145
13145
|
},
|
|
13146
13146
|
o(o) {
|
|
13147
|
-
|
|
13147
|
+
M(n), e = !1;
|
|
13148
13148
|
},
|
|
13149
13149
|
d(o) {
|
|
13150
13150
|
n && n.d(o), o && j(t);
|
|
@@ -13211,10 +13211,10 @@ function tr(i) {
|
|
|
13211
13211
|
s & 32 && (r.unfolded = o[5]), s & 16 && (r.mediaData = o[4]), s & 4 && (r.objectFit = o[2]), s & 2 && (r.enableCarousel = o[1]), s & 8 && (r.autoplayConfig = o[3]), s & 1 && (r.tag = o[0]), e.$set(r);
|
|
13212
13212
|
},
|
|
13213
13213
|
i(o) {
|
|
13214
|
-
n || (
|
|
13214
|
+
n || (x(e.$$.fragment, o), n = !0);
|
|
13215
13215
|
},
|
|
13216
13216
|
o(o) {
|
|
13217
|
-
|
|
13217
|
+
M(e.$$.fragment, o), n = !1;
|
|
13218
13218
|
},
|
|
13219
13219
|
d(o) {
|
|
13220
13220
|
o && j(t), $(e);
|
|
@@ -13231,15 +13231,15 @@ function Rm(i) {
|
|
|
13231
13231
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
13232
13232
|
},
|
|
13233
13233
|
p(o, [s]) {
|
|
13234
|
-
o[0].state && o[4] ? n ? (n.p(o, s), s & 17 &&
|
|
13234
|
+
o[0].state && o[4] ? n ? (n.p(o, s), s & 17 && x(n, 1)) : (n = tr(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
13235
13235
|
n = null;
|
|
13236
13236
|
}), fe());
|
|
13237
13237
|
},
|
|
13238
13238
|
i(o) {
|
|
13239
|
-
e || (
|
|
13239
|
+
e || (x(n), e = !0);
|
|
13240
13240
|
},
|
|
13241
13241
|
o(o) {
|
|
13242
|
-
|
|
13242
|
+
M(n), e = !1;
|
|
13243
13243
|
},
|
|
13244
13244
|
d(o) {
|
|
13245
13245
|
n && n.d(o), o && j(t);
|
|
@@ -13287,10 +13287,10 @@ function Gm(i) {
|
|
|
13287
13287
|
K(t, s, r), T(s, e, r), T(s, n, r), o = !0;
|
|
13288
13288
|
},
|
|
13289
13289
|
i(s) {
|
|
13290
|
-
o || (
|
|
13290
|
+
o || (x(t.$$.fragment, s), o = !0);
|
|
13291
13291
|
},
|
|
13292
13292
|
o(s) {
|
|
13293
|
-
|
|
13293
|
+
M(t.$$.fragment, s), o = !1;
|
|
13294
13294
|
},
|
|
13295
13295
|
d(s) {
|
|
13296
13296
|
$(t, s), s && j(e), s && j(n);
|
|
@@ -13318,10 +13318,10 @@ function Nm(i) {
|
|
|
13318
13318
|
K(t, c, d), T(c, e, d), T(c, n, d), T(c, o, d), T(c, s, d), T(c, r, d), T(c, a, d), l = !0;
|
|
13319
13319
|
},
|
|
13320
13320
|
i(c) {
|
|
13321
|
-
l || (
|
|
13321
|
+
l || (x(t.$$.fragment, c), l = !0);
|
|
13322
13322
|
},
|
|
13323
13323
|
o(c) {
|
|
13324
|
-
|
|
13324
|
+
M(t.$$.fragment, c), l = !1;
|
|
13325
13325
|
},
|
|
13326
13326
|
d(c) {
|
|
13327
13327
|
$(t, c), c && j(e), c && j(n), c && j(o), c && j(s), c && j(r), c && j(a);
|
|
@@ -13354,16 +13354,16 @@ function Wm(i) {
|
|
|
13354
13354
|
T(v, t, A), Q(t, e), ~n && p[n].m(e, null), Q(t, s), Q(t, r), K(a, r, null), Q(r, l), Q(r, c), Q(c, f), u = !0;
|
|
13355
13355
|
},
|
|
13356
13356
|
p(v, [A]) {
|
|
13357
|
-
let
|
|
13358
|
-
n = g(v), n !==
|
|
13359
|
-
p[
|
|
13360
|
-
}), fe()), ~n ? (o = p[n], o || (o = p[n] = m[n](v), o.c()),
|
|
13357
|
+
let C = n;
|
|
13358
|
+
n = g(v), n !== C && (o && (ue(), M(p[C], 1, 1, () => {
|
|
13359
|
+
p[C] = null;
|
|
13360
|
+
}), fe()), ~n ? (o = p[n], o || (o = p[n] = m[n](v), o.c()), x(o, 1), o.m(e, null)) : o = null), (!u || A & 1) && d !== (d = v[0].text + "") && Se(f, d);
|
|
13361
13361
|
},
|
|
13362
13362
|
i(v) {
|
|
13363
|
-
u || (
|
|
13363
|
+
u || (x(o), x(a.$$.fragment, v), u = !0);
|
|
13364
13364
|
},
|
|
13365
13365
|
o(v) {
|
|
13366
|
-
|
|
13366
|
+
M(o), M(a.$$.fragment, v), u = !1;
|
|
13367
13367
|
},
|
|
13368
13368
|
d(v) {
|
|
13369
13369
|
v && j(t), ~n && p[n].d(), $(a);
|
|
@@ -13472,10 +13472,10 @@ function _m(i) {
|
|
|
13472
13472
|
o & 2 && (s.tag = ke(n[1])), t.$set(s);
|
|
13473
13473
|
},
|
|
13474
13474
|
i(n) {
|
|
13475
|
-
e || (
|
|
13475
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13476
13476
|
},
|
|
13477
13477
|
o(n) {
|
|
13478
|
-
|
|
13478
|
+
M(t.$$.fragment, n), e = !1;
|
|
13479
13479
|
},
|
|
13480
13480
|
d(n) {
|
|
13481
13481
|
$(t, n);
|
|
@@ -13498,10 +13498,10 @@ function Km(i) {
|
|
|
13498
13498
|
o & 2 && (s.tag = ke(n[1])), t.$set(s);
|
|
13499
13499
|
},
|
|
13500
13500
|
i(n) {
|
|
13501
|
-
e || (
|
|
13501
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13502
13502
|
},
|
|
13503
13503
|
o(n) {
|
|
13504
|
-
|
|
13504
|
+
M(t.$$.fragment, n), e = !1;
|
|
13505
13505
|
},
|
|
13506
13506
|
d(n) {
|
|
13507
13507
|
$(t, n);
|
|
@@ -13524,10 +13524,10 @@ function $m(i) {
|
|
|
13524
13524
|
o & 2 && (s.tag = ke(n[1])), t.$set(s);
|
|
13525
13525
|
},
|
|
13526
13526
|
i(n) {
|
|
13527
|
-
e || (
|
|
13527
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13528
13528
|
},
|
|
13529
13529
|
o(n) {
|
|
13530
|
-
|
|
13530
|
+
M(t.$$.fragment, n), e = !1;
|
|
13531
13531
|
},
|
|
13532
13532
|
d(n) {
|
|
13533
13533
|
$(t, n);
|
|
@@ -13550,10 +13550,10 @@ function ep(i) {
|
|
|
13550
13550
|
o & 2 && (s.tag = ke(n[1])), t.$set(s);
|
|
13551
13551
|
},
|
|
13552
13552
|
i(n) {
|
|
13553
|
-
e || (
|
|
13553
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13554
13554
|
},
|
|
13555
13555
|
o(n) {
|
|
13556
|
-
|
|
13556
|
+
M(t.$$.fragment, n), e = !1;
|
|
13557
13557
|
},
|
|
13558
13558
|
d(n) {
|
|
13559
13559
|
$(t, n);
|
|
@@ -13576,10 +13576,10 @@ function tp(i) {
|
|
|
13576
13576
|
o & 2 && (s.tag = ke(n[1])), t.$set(s);
|
|
13577
13577
|
},
|
|
13578
13578
|
i(n) {
|
|
13579
|
-
e || (
|
|
13579
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13580
13580
|
},
|
|
13581
13581
|
o(n) {
|
|
13582
|
-
|
|
13582
|
+
M(t.$$.fragment, n), e = !1;
|
|
13583
13583
|
},
|
|
13584
13584
|
d(n) {
|
|
13585
13585
|
$(t, n);
|
|
@@ -13602,10 +13602,10 @@ function np(i) {
|
|
|
13602
13602
|
o & 2 && (s.tag = ke(n[1])), t.$set(s);
|
|
13603
13603
|
},
|
|
13604
13604
|
i(n) {
|
|
13605
|
-
e || (
|
|
13605
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13606
13606
|
},
|
|
13607
13607
|
o(n) {
|
|
13608
|
-
|
|
13608
|
+
M(t.$$.fragment, n), e = !1;
|
|
13609
13609
|
},
|
|
13610
13610
|
d(n) {
|
|
13611
13611
|
$(t, n);
|
|
@@ -13628,10 +13628,10 @@ function ip(i) {
|
|
|
13628
13628
|
o & 2 && (s.tag = ke(n[1])), t.$set(s);
|
|
13629
13629
|
},
|
|
13630
13630
|
i(n) {
|
|
13631
|
-
e || (
|
|
13631
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13632
13632
|
},
|
|
13633
13633
|
o(n) {
|
|
13634
|
-
|
|
13634
|
+
M(t.$$.fragment, n), e = !1;
|
|
13635
13635
|
},
|
|
13636
13636
|
d(n) {
|
|
13637
13637
|
$(t, n);
|
|
@@ -13661,17 +13661,17 @@ function op(i) {
|
|
|
13661
13661
|
T(m, t, p), Q(t, e), Q(e, n), ~o && f[o].m(n, null), a = !0, l || (c = Pe(t, "click", Pi(i[11])), l = !0);
|
|
13662
13662
|
},
|
|
13663
13663
|
p(m, [p]) {
|
|
13664
|
-
var v, A,
|
|
13664
|
+
var v, A, C;
|
|
13665
13665
|
let g = o;
|
|
13666
|
-
o = u(m), o === g ? ~o && f[o].p(m, p) : (s && (ue(),
|
|
13666
|
+
o = u(m), o === g ? ~o && f[o].p(m, p) : (s && (ue(), M(f[g], 1, 1, () => {
|
|
13667
13667
|
f[g] = null;
|
|
13668
|
-
}), fe()), ~o ? (s = f[o], s ? s.p(m, p) : (s = f[o] = d[o](m), s.c()),
|
|
13668
|
+
}), fe()), ~o ? (s = f[o], s ? s.p(m, p) : (s = f[o] = d[o](m), s.c()), x(s, 1), s.m(n, null)) : s = null), p & 2 && q(n, "unfolded", (v = m[1].state) == null ? void 0 : v.unfolded), (!a || p & 2 && r !== (r = m[1].id)) && b(t, "data-id", r), p & 2 && q(t, "disable", m[1].enabled === !1 || ((A = m[1].temporaryState) == null ? void 0 : A.visible) === !1), p & 26 && q(t, "hide", !m[3].visible || !m[3].enabled || !m[4].visible || !((C = m[1].state) != null && C.visible)), p & 1 && q(t, "withAnimation", m[0]), p & 2 && q(t, "unClickable", m[1].clickable === !1), p & 2 && R(t, "width", m[1].pointType === "PointTag" ? 0 : "100%", !1), p & 2 && R(t, "height", m[1].pointType === "PointTag" ? 0 : "100%", !1);
|
|
13669
13669
|
},
|
|
13670
13670
|
i(m) {
|
|
13671
|
-
a || (
|
|
13671
|
+
a || (x(s), a = !0);
|
|
13672
13672
|
},
|
|
13673
13673
|
o(m) {
|
|
13674
|
-
|
|
13674
|
+
M(s), a = !1;
|
|
13675
13675
|
},
|
|
13676
13676
|
d(m) {
|
|
13677
13677
|
m && j(t), ~o && f[o].d(), l = !1, c();
|
|
@@ -13689,8 +13689,8 @@ function sp(i, t, e) {
|
|
|
13689
13689
|
return i.$$set = (A) => {
|
|
13690
13690
|
"withAnimation" in A && e(0, a = A.withAnimation), "tag" in A && e(1, l = A.tag), "hooks" in A && e(2, c = A.hooks), "state" in A && e(3, d = A.state), "mediaStore" in A && e(5, f = A.mediaStore), "temporaryState" in A && e(4, u = A.temporaryState);
|
|
13691
13691
|
}, i.$$.update = () => {
|
|
13692
|
-
var A,
|
|
13693
|
-
i.$$.dirty & 2 && e(9, n = (A = l.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(8, o = (
|
|
13692
|
+
var A, C;
|
|
13693
|
+
i.$$.dirty & 2 && e(9, n = (A = l.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(8, o = (C = l.state) == null ? void 0 : C.visible), i.$$.dirty & 280 && e(10, s = d.visible && u.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== p && (e(7, p = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== m && (e(6, m = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
|
|
13694
13694
|
}, [
|
|
13695
13695
|
a,
|
|
13696
13696
|
l,
|
|
@@ -13748,10 +13748,10 @@ function ap(i) {
|
|
|
13748
13748
|
c & 12 && R(o, "transition-delay", l[3] ? l[2] + "ms" : "0ms", !1), (!a || c & 2) && R(r, "--iconUrl", "url(" + l[1] + ")"), c & 12 && R(r, "transition-delay", l[3] ? l[2] + "ms" : "0ms", !1), c & 8 && q(t, "folded", l[3]), c & 1 && q(t, "unfolded", l[0]);
|
|
13749
13749
|
},
|
|
13750
13750
|
i(l) {
|
|
13751
|
-
a || (
|
|
13751
|
+
a || (x(e.$$.fragment, l), a = !0);
|
|
13752
13752
|
},
|
|
13753
13753
|
o(l) {
|
|
13754
|
-
|
|
13754
|
+
M(e.$$.fragment, l), a = !1;
|
|
13755
13755
|
},
|
|
13756
13756
|
d(l) {
|
|
13757
13757
|
l && j(t), $(e);
|
|
@@ -13793,10 +13793,10 @@ function up(i) {
|
|
|
13793
13793
|
c & 6 && R(o, "transition-delay", l[2] ? l[1] + "ms" : "0ms", !1), c & 6 && R(r, "transition-delay", l[2] ? l[1] + "ms" : "0ms", !1), c & 1 && q(t, "unfolded", l[0]), c & 4 && q(t, "folded", l[2]);
|
|
13794
13794
|
},
|
|
13795
13795
|
i(l) {
|
|
13796
|
-
a || (
|
|
13796
|
+
a || (x(e.$$.fragment, l), a = !0);
|
|
13797
13797
|
},
|
|
13798
13798
|
o(l) {
|
|
13799
|
-
|
|
13799
|
+
M(e.$$.fragment, l), a = !1;
|
|
13800
13800
|
},
|
|
13801
13801
|
d(l) {
|
|
13802
13802
|
l && j(t), $(e);
|
|
@@ -13829,15 +13829,15 @@ function ir(i) {
|
|
|
13829
13829
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
13830
13830
|
},
|
|
13831
13831
|
p(o, s) {
|
|
13832
|
-
o[0].contentType !== Xe.Link ? n ? (n.p(o, s), s & 1 &&
|
|
13832
|
+
o[0].contentType !== Xe.Link ? n ? (n.p(o, s), s & 1 && x(n, 1)) : (n = or(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
13833
13833
|
n = null;
|
|
13834
13834
|
}), fe());
|
|
13835
13835
|
},
|
|
13836
13836
|
i(o) {
|
|
13837
|
-
e || (
|
|
13837
|
+
e || (x(n), e = !0);
|
|
13838
13838
|
},
|
|
13839
13839
|
o(o) {
|
|
13840
|
-
|
|
13840
|
+
M(n), e = !1;
|
|
13841
13841
|
},
|
|
13842
13842
|
d(o) {
|
|
13843
13843
|
n && n.d(o), o && j(t);
|
|
@@ -13860,15 +13860,15 @@ function or(i) {
|
|
|
13860
13860
|
},
|
|
13861
13861
|
p(d, f) {
|
|
13862
13862
|
let u = n;
|
|
13863
|
-
n = c(d), n === u ? l[n].p(d, f) : (ue(),
|
|
13863
|
+
n = c(d), n === u ? l[n].p(d, f) : (ue(), M(l[u], 1, 1, () => {
|
|
13864
13864
|
l[u] = null;
|
|
13865
|
-
}), fe(), o = l[n], o ? o.p(d, f) : (o = l[n] = a[n](d), o.c()),
|
|
13865
|
+
}), fe(), o = l[n], o ? o.p(d, f) : (o = l[n] = a[n](d), o.c()), x(o, 1), o.m(s.parentNode, s));
|
|
13866
13866
|
},
|
|
13867
13867
|
i(d) {
|
|
13868
|
-
r || (
|
|
13868
|
+
r || (x(o), r = !0);
|
|
13869
13869
|
},
|
|
13870
13870
|
o(d) {
|
|
13871
|
-
|
|
13871
|
+
M(o), r = !1;
|
|
13872
13872
|
},
|
|
13873
13873
|
d(d) {
|
|
13874
13874
|
d && j(t), d && j(e), l[n].d(d), d && j(s);
|
|
@@ -13894,10 +13894,10 @@ function pp(i) {
|
|
|
13894
13894
|
o & 1 && (s.unfolded = n[0].state.unfolded), o & 2 && (s.foldDelay = n[1]), t.$set(s);
|
|
13895
13895
|
},
|
|
13896
13896
|
i(n) {
|
|
13897
|
-
e || (
|
|
13897
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13898
13898
|
},
|
|
13899
13899
|
o(n) {
|
|
13900
|
-
|
|
13900
|
+
M(t.$$.fragment, n), e = !1;
|
|
13901
13901
|
},
|
|
13902
13902
|
d(n) {
|
|
13903
13903
|
$(t, n);
|
|
@@ -13924,10 +13924,10 @@ function gp(i) {
|
|
|
13924
13924
|
o & 1 && (s.iconUrl = n[0].style.point.iconUrl), o & 1 && (s.unfolded = n[0].state.unfolded), o & 2 && (s.foldDelay = n[1]), t.$set(s);
|
|
13925
13925
|
},
|
|
13926
13926
|
i(n) {
|
|
13927
|
-
e || (
|
|
13927
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
13928
13928
|
},
|
|
13929
13929
|
o(n) {
|
|
13930
|
-
|
|
13930
|
+
M(t.$$.fragment, n), e = !1;
|
|
13931
13931
|
},
|
|
13932
13932
|
d(n) {
|
|
13933
13933
|
$(t, n);
|
|
@@ -13946,15 +13946,15 @@ function Ap(i) {
|
|
|
13946
13946
|
},
|
|
13947
13947
|
p(a, [l]) {
|
|
13948
13948
|
var c, d, f;
|
|
13949
|
-
((c = a[0].pointTagStyle) == null ? void 0 : c.leftPercent) && ((d = a[0].pointTagStyle) == null ? void 0 : d.topPercent) && a[0].enabled !== !1 && a[0].state && ((f = a[0].temporaryState) == null ? void 0 : f.visible) !== !1 ? n ? (n.p(a, l), l & 1 &&
|
|
13949
|
+
((c = a[0].pointTagStyle) == null ? void 0 : c.leftPercent) && ((d = a[0].pointTagStyle) == null ? void 0 : d.topPercent) && a[0].enabled !== !1 && a[0].state && ((f = a[0].temporaryState) == null ? void 0 : f.visible) !== !1 ? n ? (n.p(a, l), l & 1 && x(n, 1)) : (n = ir(a), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
13950
13950
|
n = null;
|
|
13951
13951
|
}), fe());
|
|
13952
13952
|
},
|
|
13953
13953
|
i(a) {
|
|
13954
|
-
e || (
|
|
13954
|
+
e || (x(n), e = !0);
|
|
13955
13955
|
},
|
|
13956
13956
|
o(a) {
|
|
13957
|
-
|
|
13957
|
+
M(n), e = !1;
|
|
13958
13958
|
},
|
|
13959
13959
|
d(a) {
|
|
13960
13960
|
n && n.d(a), a && j(t);
|
|
@@ -14001,10 +14001,10 @@ function sr(i) {
|
|
|
14001
14001
|
o & 16 && (s.mediaStore = n[4]), o & 1 && (s.withAnimation = n[0]), o & 2 && (s.tag = ke(n[1])), o & 4 && (s.hooks = n[2]), o & 8 && (s.state = n[3]), o & 32 && (s.temporaryState = n[5]), t.$set(s);
|
|
14002
14002
|
},
|
|
14003
14003
|
i(n) {
|
|
14004
|
-
e || (
|
|
14004
|
+
e || (x(t.$$.fragment, n), e = !0);
|
|
14005
14005
|
},
|
|
14006
14006
|
o(n) {
|
|
14007
|
-
|
|
14007
|
+
M(t.$$.fragment, n), e = !1;
|
|
14008
14008
|
},
|
|
14009
14009
|
d(n) {
|
|
14010
14010
|
$(t, n);
|
|
@@ -14025,10 +14025,10 @@ function rr(i) {
|
|
|
14025
14025
|
a & 2 && (l.tag = r[1]), e.$set(l);
|
|
14026
14026
|
},
|
|
14027
14027
|
i(r) {
|
|
14028
|
-
n || (
|
|
14028
|
+
n || (x(e.$$.fragment, r), n = !0);
|
|
14029
14029
|
},
|
|
14030
14030
|
o(r) {
|
|
14031
|
-
|
|
14031
|
+
M(e.$$.fragment, r), n = !1;
|
|
14032
14032
|
},
|
|
14033
14033
|
d(r) {
|
|
14034
14034
|
r && j(t), $(e), o = !1, s();
|
|
@@ -14047,17 +14047,17 @@ function wp(i) {
|
|
|
14047
14047
|
},
|
|
14048
14048
|
p(c, [d]) {
|
|
14049
14049
|
var f, u;
|
|
14050
|
-
c[1].dimensionType === qe.Two ? s ? (s.p(c, d), d & 2 &&
|
|
14050
|
+
c[1].dimensionType === qe.Two ? s ? (s.p(c, d), d & 2 && x(s, 1)) : (s = sr(c), s.c(), x(s, 1), s.m(t, e)) : s && (ue(), M(s, 1, 1, () => {
|
|
14051
14051
|
s = null;
|
|
14052
|
-
}), fe()), c[1].pointType === We.PointTag && ((u = (f = c[1].style) == null ? void 0 : f.point) == null ? void 0 : u.style) !== "noPoint" ? r ? (r.p(c, d), d & 2 &&
|
|
14052
|
+
}), fe()), c[1].pointType === We.PointTag && ((u = (f = c[1].style) == null ? void 0 : f.point) == null ? void 0 : u.style) !== "noPoint" ? r ? (r.p(c, d), d & 2 && x(r, 1)) : (r = rr(c), r.c(), x(r, 1), r.m(t, null)) : r && (ue(), M(r, 1, 1, () => {
|
|
14053
14053
|
r = null;
|
|
14054
14054
|
}), fe()), (!o || d & 2 && n !== (n = c[1].id)) && b(t, "data-id", n), d & 1024 && q(t, "hide", c[10]), d & 64 && q(t, "unfolded", c[6]), d & 512 && R(t, "left", c[9], !1), d & 256 && R(t, "top", c[8], !1), d & 128 && R(t, "z-index", c[7], !1);
|
|
14055
14055
|
},
|
|
14056
14056
|
i(c) {
|
|
14057
|
-
o || (
|
|
14057
|
+
o || (x(s), x(r), o = !0);
|
|
14058
14058
|
},
|
|
14059
14059
|
o(c) {
|
|
14060
|
-
|
|
14060
|
+
M(s), M(r), o = !1;
|
|
14061
14061
|
},
|
|
14062
14062
|
d(c) {
|
|
14063
14063
|
c && j(t), s && s.d(), r && r.d();
|
|
@@ -14074,14 +14074,14 @@ function Cp(i, t, e) {
|
|
|
14074
14074
|
800
|
|
14075
14075
|
);
|
|
14076
14076
|
}
|
|
14077
|
-
const
|
|
14077
|
+
const C = (y) => {
|
|
14078
14078
|
v || f.emit("click", { event: y, target: "TagPoint", tag: d });
|
|
14079
14079
|
};
|
|
14080
14080
|
return i.$$set = (y) => {
|
|
14081
14081
|
"withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, f = y.hooks), "state" in y && e(3, u = y.state), "mediaStore" in y && e(4, m = y.mediaStore), "temporaryState" in y && e(5, p = y.temporaryState);
|
|
14082
14082
|
}, i.$$.update = () => {
|
|
14083
|
-
var y, I,
|
|
14084
|
-
i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (I = d.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(9, r = ((
|
|
14083
|
+
var y, I, k, w;
|
|
14084
|
+
i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (I = d.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(9, r = ((k = d.pointTagStyle) == null ? void 0 : k.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((w = d.pointTagStyle) == null ? void 0 : w.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 && A();
|
|
14085
14085
|
}, [
|
|
14086
14086
|
c,
|
|
14087
14087
|
d,
|
|
@@ -14094,7 +14094,7 @@ function Cp(i, t, e) {
|
|
|
14094
14094
|
a,
|
|
14095
14095
|
r,
|
|
14096
14096
|
o,
|
|
14097
|
-
|
|
14097
|
+
C,
|
|
14098
14098
|
n
|
|
14099
14099
|
];
|
|
14100
14100
|
}
|
|
@@ -14151,13 +14151,13 @@ function lr(i) {
|
|
|
14151
14151
|
i(a) {
|
|
14152
14152
|
if (!o) {
|
|
14153
14153
|
for (let l = 0; l < s.length; l += 1)
|
|
14154
|
-
|
|
14154
|
+
x(e[l]);
|
|
14155
14155
|
o = !0;
|
|
14156
14156
|
}
|
|
14157
14157
|
},
|
|
14158
14158
|
o(a) {
|
|
14159
14159
|
for (let l = 0; l < e.length; l += 1)
|
|
14160
|
-
|
|
14160
|
+
M(e[l]);
|
|
14161
14161
|
o = !1;
|
|
14162
14162
|
},
|
|
14163
14163
|
d(a) {
|
|
@@ -14208,10 +14208,10 @@ function cr(i, t) {
|
|
|
14208
14208
|
n.$set(d), c & 2 && q(e, "hide", !((f = t[6].pointTagStyle) != null && f.leftPercent) || !((u = t[6].pointTagStyle) != null && u.topPercent) || t[6].enabled === !1 || !t[6].state || ((m = t[6].temporaryState) == null ? void 0 : m.visible) === !1);
|
|
14209
14209
|
},
|
|
14210
14210
|
i(l) {
|
|
14211
|
-
s || (
|
|
14211
|
+
s || (x(n.$$.fragment, l), s = !0);
|
|
14212
14212
|
},
|
|
14213
14213
|
o(l) {
|
|
14214
|
-
|
|
14214
|
+
M(n.$$.fragment, l), s = !1;
|
|
14215
14215
|
},
|
|
14216
14216
|
d(l) {
|
|
14217
14217
|
l && j(e), $(n);
|
|
@@ -14228,15 +14228,15 @@ function Ip(i) {
|
|
|
14228
14228
|
n && n.m(o, s), T(o, t, s), e = !0;
|
|
14229
14229
|
},
|
|
14230
14230
|
p(o, [s]) {
|
|
14231
|
-
o[3].enabled ? n ? (n.p(o, s), s & 8 &&
|
|
14231
|
+
o[3].enabled ? n ? (n.p(o, s), s & 8 && x(n, 1)) : (n = lr(o), n.c(), x(n, 1), n.m(t.parentNode, t)) : n && (ue(), M(n, 1, 1, () => {
|
|
14232
14232
|
n = null;
|
|
14233
14233
|
}), fe());
|
|
14234
14234
|
},
|
|
14235
14235
|
i(o) {
|
|
14236
|
-
e || (
|
|
14236
|
+
e || (x(n), e = !0);
|
|
14237
14237
|
},
|
|
14238
14238
|
o(o) {
|
|
14239
|
-
|
|
14239
|
+
M(n), e = !1;
|
|
14240
14240
|
},
|
|
14241
14241
|
d(o) {
|
|
14242
14242
|
n && n.d(o), o && j(t);
|
|
@@ -14382,8 +14382,8 @@ class Sp extends Lp {
|
|
|
14382
14382
|
throw new Error(`getVisible(): observerPosition is ${g}`);
|
|
14383
14383
|
const v = vn(e.position).sub(g).normalize();
|
|
14384
14384
|
this.raycaster.set(g, v);
|
|
14385
|
-
const [A] = this.five.model.intersectRaycaster(this.raycaster),
|
|
14386
|
-
if (A && A.distance +
|
|
14385
|
+
const [A] = this.five.model.intersectRaycaster(this.raycaster), C = (p = (m = l.intersectRaycaster) == null ? void 0 : m.distanceAccuracy) != null ? p : 0.01;
|
|
14386
|
+
if (A && A.distance + C < c)
|
|
14387
14387
|
return !1;
|
|
14388
14388
|
}
|
|
14389
14389
|
return !(l.angleRange && e.dimensionType === qe.Three && bn(this.getAngle(e), l.angleRange) === !1);
|
|
@@ -16008,12 +16008,12 @@ class $p extends Hi {
|
|
|
16008
16008
|
if (this.rotations.length === 1)
|
|
16009
16009
|
return u.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
|
|
16010
16010
|
{
|
|
16011
|
-
const g = this.rotations[this.rotations.length - 1], v = this.rotations[this.rotations.length - 2], A = u.angleTo(v.vector),
|
|
16012
|
-
if (y === 0 ||
|
|
16011
|
+
const g = this.rotations[this.rotations.length - 1], v = this.rotations[this.rotations.length - 2], A = u.angleTo(v.vector), C = u.angleTo(g.vector), y = g.vector.angleTo(v.vector);
|
|
16012
|
+
if (y === 0 || C === 0 || A === 0)
|
|
16013
16013
|
return;
|
|
16014
|
-
if (A >
|
|
16014
|
+
if (A > C && A > y)
|
|
16015
16015
|
return g.direction;
|
|
16016
|
-
if (A < y &&
|
|
16016
|
+
if (A < y && C < y || A < C && C > y)
|
|
16017
16017
|
return !g.direction;
|
|
16018
16018
|
}
|
|
16019
16019
|
})();
|
|
@@ -16107,7 +16107,7 @@ class eg extends Hi {
|
|
|
16107
16107
|
this.scale(n), console.log("%c RectangleScaleController dragging", "color: #49de1b");
|
|
16108
16108
|
}
|
|
16109
16109
|
scale(e) {
|
|
16110
|
-
var H,
|
|
16110
|
+
var H, B;
|
|
16111
16111
|
if (!this.startInfo)
|
|
16112
16112
|
return;
|
|
16113
16113
|
const n = this.originObject3D, { startPoint: o, plane: s } = this.startInfo, r = this.helperObject3D.cornerPositions;
|
|
@@ -16117,33 +16117,33 @@ class eg extends Hi {
|
|
|
16117
16117
|
if (!a || Hp(a, this.camera.position))
|
|
16118
16118
|
return;
|
|
16119
16119
|
const l = new Z().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, f = new Z().subVectors(r[1], r[0]), u = new Z().subVectors(r[3], r[0]), m = (F) => {
|
|
16120
|
-
const
|
|
16120
|
+
const Y = new Z(0, 0, 0);
|
|
16121
16121
|
if (!this.startInfo)
|
|
16122
|
-
return
|
|
16123
|
-
const E = (F === "ew" ? f : u).clone(), S = c.clone().projectOnVector(E),
|
|
16124
|
-
if (
|
|
16125
|
-
return
|
|
16122
|
+
return Y;
|
|
16123
|
+
const E = (F === "ew" ? f : u).clone(), S = c.clone().projectOnVector(E), z = a.clone().projectOnVector(E), N = l.clone().projectOnVector(E);
|
|
16124
|
+
if (z.equals(S))
|
|
16125
|
+
return Y;
|
|
16126
16126
|
if (F === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
|
|
16127
|
-
const W = new Z().subVectors(
|
|
16127
|
+
const W = new Z().subVectors(z, N), U = W.x < 0 && E.x >= 0, ae = W.y < 0 && E.y >= 0, le = W.z < 0 && E.z >= 0;
|
|
16128
16128
|
this.startInfo.dragPointInCenterBottom = U || ae || le;
|
|
16129
16129
|
}
|
|
16130
16130
|
if (F === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
|
|
16131
|
-
const W = new Z().subVectors(
|
|
16131
|
+
const W = new Z().subVectors(z, N), U = W.x < 0 && E.x >= 0, ae = W.y < 0 && E.y >= 0, le = W.z < 0 && E.z >= 0;
|
|
16132
16132
|
this.startInfo.dragPointInCenterLeft = U || ae || le;
|
|
16133
16133
|
}
|
|
16134
|
-
const
|
|
16135
|
-
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee),
|
|
16134
|
+
const X = new Z().subVectors(z, S), ee = X.length();
|
|
16135
|
+
return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), Y) : X;
|
|
16136
16136
|
}, p = m("ew"), g = m("ns"), v = () => {
|
|
16137
16137
|
const F = p;
|
|
16138
|
-
this.helperObject3D.cornerPositions.forEach((
|
|
16138
|
+
this.helperObject3D.cornerPositions.forEach((Y, E) => {
|
|
16139
16139
|
var S;
|
|
16140
|
-
(S = this.startInfo) != null && S.dragPointInCenterLeft ? (E === 0 || E === 3) &&
|
|
16140
|
+
(S = this.startInfo) != null && S.dragPointInCenterLeft ? (E === 0 || E === 3) && Y.add(F) : (E === 1 || E === 2) && Y.add(F);
|
|
16141
16141
|
});
|
|
16142
16142
|
}, A = () => {
|
|
16143
16143
|
const F = g;
|
|
16144
|
-
this.helperObject3D.cornerPositions.forEach((
|
|
16144
|
+
this.helperObject3D.cornerPositions.forEach((Y, E) => {
|
|
16145
16145
|
var S;
|
|
16146
|
-
(S = this.startInfo) != null && S.dragPointInCenterBottom ? (E === 0 || E === 1) &&
|
|
16146
|
+
(S = this.startInfo) != null && S.dragPointInCenterBottom ? (E === 0 || E === 1) && Y.add(F) : (E === 2 || E === 3) && Y.add(F);
|
|
16147
16147
|
});
|
|
16148
16148
|
};
|
|
16149
16149
|
switch (d) {
|
|
@@ -16157,10 +16157,10 @@ class eg extends Hi {
|
|
|
16157
16157
|
case "nwse":
|
|
16158
16158
|
v(), A();
|
|
16159
16159
|
}
|
|
16160
|
-
const
|
|
16161
|
-
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(
|
|
16162
|
-
const
|
|
16163
|
-
n.applyMatrix4(D), (H = this.helperObject3D.css3DInstance) == null || H.css3DObject.applyMatrix4(D), (
|
|
16160
|
+
const C = new Z().subVectors(r[1], r[0]).length() / f.length(), y = new Z().subVectors(r[3], r[0]).length() / u.length(), I = new Z(C, y, 1), k = new P.Matrix4().scale(I);
|
|
16161
|
+
n.isCSS3DObjectPlus ? n.applyScaleMatrix4(k) : n.scale.applyMatrix4(k), o.position.copy(a);
|
|
16162
|
+
const w = new Z().addVectors(r[0], r[2]).divideScalar(2), L = new Z().subVectors(w, l), D = new P.Matrix4().setPosition(L);
|
|
16163
|
+
n.applyMatrix4(D), (H = this.helperObject3D.css3DInstance) == null || H.css3DObject.applyMatrix4(D), (B = this.helperObject3D.plane) == null || B.applyMatrix4(D), this.hooks.emit("scaleUpdate", { matrix4: k, helperOrigin: l }), this.hooks.emit("positionUpdate", { matrix4: D }), this.render();
|
|
16164
16164
|
}
|
|
16165
16165
|
dragEnd() {
|
|
16166
16166
|
!this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render(), console.log("%c RectangleScaleController dragEnd", "color: #e94e4e"));
|