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QAAOC,YAElCQ,gBACAC,yBE/GHyB,qBAAuB,IAAsD,IAArD,SAAE5H,EAAF,SAAYqB,GAAyC,EACtF,MAAMJ,EAAyB,CAC3BwE,MAAO,EACPC,OAAQ,GAGN7H,EAA8B,CAChC8E,EAAG,EACHD,EAAG,GAWDtB,QAAU,KACZ,MAAM,MAAEqE,EAAF,OAASC,EAAT,EAAiB/C,EAAjB,EAAoBD,GATC,MAC3B,MAAM,MAAE+C,EAAF,OAASC,EAAT,EAAiB/C,EAAjB,EAAoBD,GAAM1C,EAASvD,QAASoL,wBAIlD,MAAO,CAAEpC,MAHYgC,KAAKK,MAAMrC,GAGFC,OAFR+B,KAAKK,MAAMpC,GAEoB/C,IAAGD,MAIxBqF,GAChClK,EAAS8E,EAAIA,EACb9E,EAAS6E,EAAIA,EAETzB,EAAWwE,QAAUA,GAASxE,EAAWyE,SAAWA,IACpDzE,EAAWwE,MAAQA,EACnBxE,EAAWyE,OAASA,EACpBrE,EAASJ,KASjB,OALA,SAAU,KACDjB,EAASvD,SACd2E,aAGG,CAAEH,aAAYpD,WAAUuD,W,iECzC/B4G,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOtM,GAAI,24CAA44C,KAEr7C,QAAeoM,EAAwBG,Y,iECJnCH,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOtM,GAAI,0ZAA2Z,KAEpc,QAAeoM,EAAwBG,Y,iECJnCH,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOtM,GAAI,ssEAAusE,KAEhvE,QAAeoM,EAAwBG","sources":["webpack://frontend-setup/./src/components/atoms/label/label.tsx","webpack://frontend-setup/./src/components/atoms/marker/marker.tsx","webpack://frontend-setup/./src/features/virtual-tour/constants/pointer-events.ts","webpack://frontend-setup/./src/features/virtual-tour/virtual-tour.tsx","webpack://frontend-setup/./src/features/virtual-tour/components/vr-tour-krpano-view/vr-tour-krpano-view.tsx","webpack://frontend-setup/./src/features/virtual-tour/utilities/interactive-image/element-from-pointer.tsx","webpack://frontend-setup/./src/features/virtual-tour/components/vr-tour-image-view/vr-tour-image-view.tsx","webpack://frontend-setup/./src/features/virtual-tour/utilities/hooks/use-image-pointers.ts","webpack://frontend-setup/./src/features/virtual-tour/components/virtual-tour-wrapper.tsx","webpack://frontend-setup/./src/features/virtual-tour/store/store.ts","webpack://frontend-setup/./src/features/virtual-tour/utilities/hooks/use-mouse-position.ts","webpack://frontend-setup/./src/features/virtual-tour/utilities/interactive-image/image-swap.tsx","webpack://frontend-setup/./src/features/virtual-tour/utilities/hooks/use-panning-image.ts","webpack://frontend-setup/./src/features/virtual-tour/utilities/interactive-image/image-resize.ts","webpack://frontend-setup/./src/features/virtual-tour/utilities/hooks/use-resizing-viewport.ts","webpack://frontend-setup/./src/features/virtual-tour/components/vr-tour-image-view/vr-tour-image-view.scss","webpack://frontend-setup/./src/features/virtual-tour/components/vr-tour-krpano-view/vr-tour-krpano-view.scss","webpack://frontend-setup/./src/features/virtual-tour/virtual-tour.scss"],"sourcesContent":["import { h } from '@atomify/jsx';\nimport { StatusColor } from '@source/utilities/api-formatters';\n\nexport interface LabelProps {\n classes?: string;\n color?: string; // Color class\n formattedStatusColor?: StatusColor; // FormattedStatusColor\n text: string | Text;\n highlighted?: boolean;\n}\n\nconst formattedStatusColorClass: { [key in StatusColor]: string } = {\n green: 'label--positive',\n orange: 'label--attention',\n grey: '',\n purple: 'label--progression',\n red: 'label--urgent',\n};\n\nconst Label = (data: LabelProps) => {\n let color = data.color ? `label--${data.color}` : '';\n\n if (data.formattedStatusColor) {\n color = formattedStatusColorClass[data.formattedStatusColor];\n }\n\n let className = 'c-label';\n className += ` ${color}`;\n if (data.classes) className += ` ${data.classes}`;\n if (data.highlighted) className += ` is-highlighted`;\n\n return {data.text};\n};\n\nexport { Label };\n","import { h } from '@atomify/jsx';\nimport { Label } from '@atoms/label/label';\n\nimport { BPDFunctionalSvg } from '../svg/svg';\n\ntype MarkerVariant =\n | 'eye'\n | '360'\n | 'entrance'\n | 'exit'\n | 'stair'\n | 'generic'\n | 'number'\n | 'house'\n | string;\n\ninterface MarkerGenericProps {\n variant: MarkerVariant;\n icon?: string;\n element?: string;\n url?: string | null;\n onClick?: Function;\n eyeDirection?: string | null;\n tooltip?: string | null;\n classes?: string;\n style?: Object;\n size?: 'small' | 'large';\n}\n\ninterface MarkerBaseProps extends MarkerGenericProps {\n pin?: boolean;\n children?: ChildNode[];\n}\n\ninterface MarkerProps extends MarkerGenericProps {\n number?: string | number;\n}\n\nconst MarkerBase = (data: MarkerBaseProps) => {\n const attributes: { [key: string]: any } = {\n class: `c-marker marker--${data.variant} marker--${data.size || 'large'}`,\n };\n\n if (data.url) attributes.href = data.url;\n if (data.pin) attributes.class += ' marker--pin';\n if (data.classes) attributes.class += ` ${data.classes}`;\n if (data.eyeDirection)\n attributes.class += ` marker--direction-${data.eyeDirection.toLowerCase()}`;\n if (data.onClick) attributes.onClick = data.onClick;\n if (data.style) attributes.style = data.style;\n\n const Tag = data.url ? 'a' : data.element || 'button';\n\n return (\n \n {data.pin && (\n
\n \n
\n )}\n \n {data.children && data.children}\n {data.icon && }\n {data.tooltip && \n
\n );\n};\n\nconst Marker = (data: MarkerProps) => {\n switch (data.variant) {\n case 'eye':\n return (\n \n \n \n \n \n );\n case '360':\n return 360°;\n case 'entrance':\n return ;\n case 'exit':\n return ;\n case 'stair':\n return ;\n case 'generic':\n return ;\n case 'number':\n return {data.number || ''};\n }\n};\n\nexport { Marker, MarkerProps, MarkerVariant };\n","export const virtualView3dPointerEvents = {\n REQUEST_2D_SCENE: 'virtual-view::request2dScene',\n};\n\nexport const virtualView2dPointerEvents = {\n LABEL_FOCUS: 'virtual-view::cnLabelFocus',\n LABEL_HOVER: 'virtual-view::cnLabelHover',\n};\n","import {\n Component,\n defineElement,\n FC,\n useBindMethod,\n useElement,\n useListen,\n useProp,\n} from '@atomify/hooks';\nimport { h } from '@atomify/jsx';\nimport { useStore } from '@atomify/kit';\nimport { ButtonSquare } from '@atoms/button-square/button-square';\nimport { virtualView3dPointerEvents } from '@features/virtual-tour/constants';\nimport {\n getViewInStore,\n popView,\n pushView,\n VirtualTourState,\n virtualTourStore,\n} from '@features/virtual-tour/store';\nimport {\n VirtualTourMinimap,\n VirtualTourPointer,\n VirtualView,\n VRTourImageInterface,\n VRTourKRPanoInterface,\n VRTourPointerFilter,\n} from '@features/virtual-tour/types';\nimport { krpanoEmittedEvents } from '@molecules/krpano/constants';\nimport { getPrefixedUrl } from '@utilities/get-prefixed-url';\nimport { useStylesheet } from '@utilities/hooks';\n\nimport style from './virtual-tour.scss';\n\nconst KRPANO_GO_BACK_HOOK = 'krpano-go-back-button';\nconst KRPANO_ZOOM_IN_HOOK = 'krpano-zoom-in-button';\nconst KRPANO_ZOOM_OUT_HOOK = 'krpano-zoom-out-button';\nconst MINIMAP_CONTAINER_HOOK = 'virtual-tour-minimap-container';\n\nconst VIRTUAL_TOUR_2D = 'virtual-tour--2d';\nconst VIRTUAL_TOUR_3D = 'virtual-tour--3d';\nconst VIRTUAL_TOUR_MINIMAP = 'virtual-tour--has-minimap';\n\nconst warn = (data: any) => console.warn('[virtual-tour]: Missing view data >>>> ', data);\n\nexport interface VirtualTourElement extends Component {\n focusPointer: (isHighlighted: VRTourPointerFilter) => void;\n setMinimap: (minimap: VirtualTourMinimap, currentView: VirtualView) => void;\n}\n\nconst VirtualTour: FC = ({ element }) => {\n useStylesheet(style);\n const [onMissingData] = useProp<(sceneId: string) => void>('onMissingData', warn);\n const [onClose] = useProp('onClose', null);\n const [pointerHighlighted] = useProp('pointerHighlighted', null);\n\n const [vrStore, subscribe] = useStore(virtualTourStore);\n\n const krPanoContainer = useElement('vr-tour-krpano-view');\n const imageContainer = useElement('vr-tour-image-view');\n\n const goBackButton = useElement(`[js-hook-${KRPANO_GO_BACK_HOOK}]`);\n const zoomInButton = useElement(`[js-hook-${KRPANO_ZOOM_IN_HOOK}]`);\n const zoomOutButton = useElement(`[js-hook-${KRPANO_ZOOM_OUT_HOOK}]`);\n\n const minimapContainer = useElement(`[js-hook-${MINIMAP_CONTAINER_HOOK}]`);\n\n subscribe(\n async ({ [element.id]: { viewStack, currentView, minimap } }) => {\n if (!viewStack.length || !currentView) return;\n\n currentViewType = currentView.type;\n\n if (currentViewType === '3d') {\n element.classList.remove(VIRTUAL_TOUR_2D);\n element.classList.add(VIRTUAL_TOUR_3D);\n } else {\n element.classList.remove(VIRTUAL_TOUR_3D);\n element.classList.add(VIRTUAL_TOUR_2D);\n }\n element.classList[minimap ? 'add' : 'remove'](VIRTUAL_TOUR_MINIMAP);\n minimap && setMinimap(minimap, currentView);\n\n if (viewStack.length === 1) {\n goBackButton.current!.setAttribute('disabled', 'true');\n } else {\n goBackButton.current!.removeAttribute('disabled');\n }\n },\n [element.id],\n );\n\n function onPointerClick(pointer: VirtualTourPointer) {\n if (!pointer.sceneId) return;\n const viewInStore = getViewInStore(element.id, pointer.sceneId);\n const isSameScene = viewInStore?.id === vrStore[element.id].currentView?.id;\n\n if (viewInStore) {\n !isSameScene && pushView(element.id, pointer.sceneId);\n return;\n }\n\n onMissingData(pointer.sceneId);\n }\n\n useBindMethod('focusPointer', (isHighlighted: VRTourPointerFilter) => {\n imageContainer.current?.highlightPointers(isHighlighted);\n });\n\n let krpanoBackDisabled = true;\n let currentViewType: '2d' | '3d';\n\n useListen(document, virtualView3dPointerEvents.REQUEST_2D_SCENE, (e) => {\n if (e.detail.tourId !== element.id) return;\n pushView(element.id, e.detail.sceneId);\n });\n\n useListen(krPanoContainer, krpanoEmittedEvents.TOGGLE_GO_BACK, (e) => {\n const { viewStack } = vrStore[`${element.id}`];\n krpanoBackDisabled = e.detail.disabled;\n\n if (viewStack.length === 1 && krpanoBackDisabled) {\n goBackButton.current!.setAttribute('disabled', 'true');\n } else {\n goBackButton.current!.removeAttribute('disabled');\n }\n });\n\n useListen(krPanoContainer, krpanoEmittedEvents.TOGGLE_ZOOM_IN, (e) => {\n if (e.detail.disabled) {\n zoomInButton.current!.setAttribute('disabled', 'true');\n } else {\n zoomInButton.current!.removeAttribute('disabled');\n }\n });\n\n useListen(krPanoContainer, krpanoEmittedEvents.TOGGLE_ZOOM_OUT, (e) => {\n if (e.detail.disabled) {\n zoomOutButton.current!.setAttribute('disabled', 'true');\n } else {\n zoomOutButton.current!.removeAttribute('disabled');\n }\n });\n\n const onBack = () => {\n if (currentViewType == '2d' || krpanoBackDisabled) popView(element.id);\n else krPanoContainer.current?.goBack();\n };\n const onZoomIn = () => krPanoContainer.current?.zoomIn();\n const onZoomOut = () => krPanoContainer.current?.zoomOut();\n\n function setMinimap(minimap: VirtualTourMinimap, currentView: VirtualView) {\n if (!minimapContainer.current) return;\n minimapContainer.current.innerHTML = '';\n\n minimapContainer.current.append(\n
\n \n {minimap.pointers.map((p) => (\n onPointerClick(p)}\n />\n ))}\n
,\n );\n }\n\n useBindMethod('setMinimap', setMinimap);\n\n return (\n
\n \n \n
\n
\n
\n \n {onClose && (\n \n )}\n \n \n
\n
\n \n );\n};\n\nVirtualTour.props = {\n onMissingData: {\n type: Function,\n },\n onClose: {\n type: Function,\n },\n pointerHighlighted: {\n type: Function,\n },\n};\n\ndefineElement('virtual-tour', VirtualTour);\n","import { defineElement, FC, onDidLoad, useBindMethod, useElement, useProp } from '@atomify/hooks';\nimport { h } from '@atomify/jsx';\nimport { useStore } from '@atomify/kit';\nimport { VirtualTourState, virtualTourStore } from '@features/virtual-tour/store';\nimport { VRTourKRPanoInterface } from '@features/virtual-tour/types/view';\nimport { KrpanoElement } from '@molecules/krpano';\nimport { updateSelectedPano } from '@store/krpano';\nimport { useStylesheet } from '@utilities/hooks';\n\nimport style from './vr-tour-krpano-view.scss';\n\nconst SCENE_PREFIX = 'scene_';\n\nconst VRTourKRPanoView: FC = () => {\n const [krpanoId] = useProp('krpanoId');\n const [vrTourId] = useProp('vrTourId');\n const krpano = useElement('bpd-krpano');\n const [vrStore, subscribe] = useStore(virtualTourStore);\n\n useStylesheet(style);\n\n onDidLoad(() => {\n handleView(vrStore);\n });\n\n subscribe(handleView, [vrTourId]);\n\n function handleView(state: VirtualTourState) {\n const currentView = state[vrTourId]?.currentView;\n\n if (currentView?.type === '3d') {\n const sceneId = !currentView.apartmentBuildingId\n ? SCENE_PREFIX + currentView.id\n : undefined;\n updateSelectedPano(vrTourId, currentView.source, sceneId);\n }\n }\n\n const goBack = () => krpano.current?.goBack();\n const zoomIn = () => krpano.current?.zoomIn();\n const zoomOut = () => krpano.current?.zoomOut();\n\n useBindMethod('zoomIn', zoomIn);\n useBindMethod('zoomOut', zoomOut);\n useBindMethod('goBack', goBack);\n\n return (\n
\n \n
\n );\n};\n\nVRTourKRPanoView.props = {\n krpanoId: {\n type: String,\n required: true,\n reflectToAttr: true,\n },\n vrTourId: {\n type: String,\n required: true,\n },\n};\n\ndefineElement('vr-tour-krpano-view', VRTourKRPanoView);\n","import { h } from '@atomify/jsx';\nimport { Label } from '@atoms/label/label';\nimport { Marker } from '@atoms/marker/marker';\nimport { VirtualTourPointer } from '@features/virtual-tour/types';\n\nexport const elementFromPointer = (\n pointer: VirtualTourPointer,\n onPointerClick: (pointer: VirtualTourPointer) => void,\n onPointerHover: (id: string, active: boolean) => void,\n): Element => {\n if (pointer.type === 'text') {\n return (\n \n