PageSourceSearch

https://studio.onirix.com/399.e38813ce8d2fe80d.js

js onirix.com collected 2026-10-02 03:28:35 UTC 29,400 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkonirix=self.webpackChunkonirix||[]).push([[399],{18399:(de,j,E)=>{E.d(j,{K:()=>ae});var C=E(10467),i=E(54438),W=E(48520),k=E(8125),H=E(64848),B=E(81233),K=E(26389),L=E(45312),$=E(45205);function l(){return l=Object.assign?Object.assign.bind():function(c){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(c[n]=e[n])}return c},l.apply(this,arguments)}let R;const F=new Uint8Array(16);function Y(){if(!R&&(R=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!R))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return R(F)}const d=[];for(let c=0;c<256;++c)d.push((c+256).toString(16).slice(1));var m={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function x(c,r,e){if(m.randomUUID&&!r&&!c)return m.randomUUID();const n=(c=c||{}).random||(c.rng||Y)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,r){e=e||0;for(let t=0;t<16;++t)r[e+t]=n[t];return r}return function(t,o=0){return d[t[o+0]]+d[t[o+1]]+d[t[o+2]]+d[t[o+3]]+"-"+d[t[o+4]]+d[t[o+5]]+"-"+d[t[o+6]]+d[t[o+7]]+"-"+d[t[o+8]]+d[t[o+9]]+"-"+d[t[o+10]]+d[t[o+11]]+d[t[o+12]]+d[t[o+13]]+d[t[o+14]]+d[t[o+15]]}(n)}var D={READY:"READY",SCENE_LOAD_START:"SCENE_LOAD_START",SCENE_LOAD_END:"SCENE_LOAD_END",SCENE_LOST:"SCENE_LOST",SCENE_RADIUS_ENTER:"SCENE_RADIUS_ENTER",SCENE_RADIUS_EXIT:"SCENE_RADIUS_EXIT",ELEMENT_CLICK:"ELEMENT_CLICK",OPEN_MARKERS_PANEL:"OPEN_MARKERS_PANEL",CLOSE_MARKERS_PANEL:"CLOSE_MARKERS_PANEL",MAP_READY:"MAP_READY",SCENE_LOCATION_CLICK:"SCENE_LOCATION_CLICK",BACK_TO_MAP:"BACK_TO_MAP",ON_TOUCH_START:"ON_TOUCH_START",ON_TOUCH_END:"ON_TOUCH_END",ON_POSE:"ON_POSE",SCENE_CLICK:"SCENE_CLICK",ON_SCENE_TOUCH_START:"ON_SCENE_TOUCH_START",ON_SCENE_TOUCH_END:"ON_SCENE_TOUCH_END",SESSION_ENDED:"SESSION_ENDED",SCENE_DETECTED:"SCENE_DETECTED",LAZY_LOAD_END:"LAZY_LOAD_END",NAVIGATION_STARTED:"NAVIGATION_STARTED",NAVIGATION_COMPLETED:"NAVIGATION_COMPLETED",NAVIGATION_CANCELLED:"NAVIGATION_CANCELLED"},s={ENABLE_ELEMENT:"ENABLE_ELEMENT",DISABLE_ELEMENT:"DISABLE_ELEMENT",TOGGLE_ELEMENT:"TOGGLE_ELEMENT",ENABLE_ALL:"ENABLE_ALL",DISABLE_ALL:"DISABLE_ALL",PLAY:"PLAY",PAUSE:"PAUSE",STOP:"STOP",TRANSLATE_ELEMENT:"TRANSLATE_ELEMENT",ROTATE_ELEMENT:"ROTATE_ELEMENT",SCALE_ELEMENT:"SCALE_ELEMENT",SET_ELEMENT_POSITION:"SET_ELEMENT_POSITION",SET_ELEMENT_ROTATION:"SET_ELEMENT_ROTATION",SET_ELEMENT_SCALE:"SET_ELEMENT_SCALE",PLAY_ANIMATION:"PLAY_ANIMATION",STOP_ANIMATION:"STOP_ANIMATION",SET_LABEL_TEXT:"SET_LABEL_TEXT",RESET_SCENES:"RESET_SCENES",PLAY_PAUSE:"PLAY_PAUSE",SET_CAMERA_RIG_TRANSFORM:"SET_CAMERA_RIG_TRANSFORM",SET_CAMERA_RIG_POSITION:"SET_CAMERA_RIG_POSITION",SET_CAMERA_RIG_ROTATION:"SET_CAMERA_RIG_ROTATION",SET_CAMERA_RIG_QUATERNION:"SET_CAMERA_RIG_QUATERNION",DISABLE_CAMERA_CONTROLS:"DISABLE_CAMERA_CONTROLS",LOAD_ELEMENT:"LOAD_ELEMENT",CREATE_ELEMENT:"CREATE_ELEMENT",SET_VARIANT:"SET_VARIANT",CAPTURE_SCREEN_FRAME:"CAPTURE_SCREEN_FRAME",START_SCREEN_CAPTURE:"START_SCREEN_CAPTURE",STOP_SCREEN_CAPTURE:"STOP_SCREEN_CAPTURE",GET_ASSET_IMAGE:"GET_ASSET_IMAGE",LOAD_SURFACE_PLACEHOLDER:"LOAD_SURFACE_PLACEHOLDER",SET_TRANSFORM_CONTROLS_ALLOWLIST:"SET_TRANSFORM_CONTROLS_ALLOWLIST",SET_TRANSFORM_CONTROLS_BLOCKLIST:"SET_TRANSFORM_CONTROLS_BLOCKLIST",SET_SCREEN_CAPTURE_OVERLAY:"SET_SCREEN_CAPTURE_OVERLAY",CLEAR_SCREEN_CAPTURE_OVERLAY:"CLEAR_SCREEN_CAPTURE_OVERLAY",GET_METADATA:"GET_METADATA",LOAD_SCENE:"LOAD_SCENE",HIGHTLIGHT_PIECE:"HIGHTLIGHT_PIECE",SET_OPACITY:"SET_OPACITY",INIT_NAVIGATION:"INIT_NAVIGATION",CANCEL_NAVIGATION:"CANCEL_NAVIGATION",HIGHLIGHT_NODES:"HIGHLIGHT_NODES",HIGHLIGHT_ELEMENT_NODE:"HIGHLIGHT_ELEMENT_NODE",CLEAR_HIGHLIGHT_NODES:"CLEAR_HIGHLIGHT_NODES",SET_PROPERTIES:"SET_PROPERTIES"},u={NONE:0,FADE:1,GROW:2,GROW_X:3,GROW_Y:4,GROW_Z:5,BOUNCE:6,TRANSLATION:7},N="v1",b="studio",z=function(){function c(){this.eventListeners={},this.eventListenersCount=0}var r=c.prototype;return r.addEventListener=function(e,n){this.eventListeners[e]||(this.eventListeners[e]=[]);var t=this.eventListenersCount++;return this.eventListeners[e].push({id:t,func:n}),t},r.triggerEvent=function(e,n){this.eventListeners[e]&&this.eventListeners[e].map(function(t){return t.func(n)})},r.removeEventListener=function(e){for(var n=0,t=Object.keys(this.eventListeners);n<t.length;n++)for(var o=t[n],_=0;_<o.length;_++)if(o[_].id===e){o.splice(_,1);break}},c}(),v=function(){function c(e){this.iframe=e,this.targetWindow=e?e.contentWindow:window,this.id=x(),this.eventManager=new z,this.onMessageReceived=this.onMessageReceived.bind(this),this.pendingActions=new Map}
1var r=c.prototype;return r.connect=function(){try{var e=function(){n.origin.match(/\.onirix\.com$/)||(n.iframe?console.warn("The Onirix Embed SDK is trying to connect to the origin `"+n.origin+"`, but that is not a recognised Onirix origin. The iframe provided to the Onirix Embed SDK constructor is not pointing to an Onirix Experience."):console.warn("The Onirix Embed SDK is trying to connect to the origin `"+n.origin+"`, but that is not a recognised Onirix origin. You may need to provide an iframe in the Onirix Embed SDK constructor."));var o=new Promise(function(_,a){n.onConnect=_});return window.addEventListener("message",n.onMessageReceived),n.sendHandshake(),Promise.resolve(o).then(function(){})},n=this;try{n.origin=n.targetWindow.location.origin}catch{n.origin=new URL(n.iframe.src).origin}var t=function(){if("null"===n.origin)return Promise.resolve(new Promise(function(o){return n.iframe.addEventListener("load",o,{once:!0})})).then(function(){n.origin=new URL(n.iframe.src).origin})}();return Promise.resolve(t&&t.then?t.then(e):e())}catch(o){return Promise.reject(o)}},r.disconnect=function(){try{var e=this;return e.sendDisconnect(),window.removeEventListener("message",e.onMessageReceived),e.pendingActions.clear(),Promise.resolve()}catch(n){return Promise.reject(n)}},r.sendMessage=function(e,n){e=l({oxEmbedSdk:N,source:this.id,destination:b},e),this.targetWindow.postMessage(e,this.origin,n??[])},r.sendHandshake=function(){this.targetWindow.postMessage({oxEmbedSdk:N,source:this.id,destination:b,type:"HANDSHAKE"},this.origin)},r.sendDisconnect=function(){this.sendMessage({type:"DISCONNECT"})},r.triggerAction=function(e,n,t){var o=this,_=x(),a=new Error,p=new Promise(function(O,A){o.pendingActions.set(_,{resolve:O,reject:function(g){var S,T=null!=(S=g?.message)?S:g;a.message=T,A(g)}})});return this.sendMessage({type:"TRIGGER_ACTION",thread:_,action:e,args:n},t),p},r.onMessageReceived=function(e){var n;if(e.origin===this.origin){var t=e.data;if(t.oxEmbedSdk===N&&t.destination===this.id)switch(t.type){case"CONNECT":null==(n=this.onConnect)||n.call(this),this.onConnect=void 0;break;case"RAISE_EVENT":this.eventManager.triggerEvent(t.event,t.args);break;case"REJECT_ACTION":this.onActionRejected(t.thread,t.error);break;case"RESOLVE_ACTION":this.onActionResolved(t.thread,t.value)}}},r.onActionResolved=function(e,n){var t=this.pendingActions.get(e);t?(t.resolve(n),this.pendingActions.delete(e)):console.warn("[Embed SDK] Resolving an already resolved action: "+e)},r.onActionRejected=function(e,n){var t=this.pendingActions.get(e);t?(t.reject(new Error(n)),this.pendingActions.delete(e)):console.warn("[Embed SDK] Rejecting an already resolved action: "+e)},r.subscribe=function(e,n){if(!(e in D))throw new Error('event "'+e+'" does not exists');return this.eventManager.addEventListener(e,n)},r.unsubscribe=function(e){this.eventManager.removeEventListener(e)},r.enable=function(e,n,t){void 0===n&&(n=u.NONE),void 0===t&&(t=void 0);var o=this._buildTransitionParamsForEnableDisableOrToggle(n,t);return this.triggerAction(s.ENABLE_ELEMENT,l({oid:e,transition:o.type},o.params))},r.disable=function(e,n,t){void 0===n&&(n=u.NONE),void 0===t&&(t=void 0);var o=this._buildTransitionParamsForEnableDisableOrToggle(n,t);return this.triggerAction(s.DISABLE_ELEMENT,l({oid:e,transition:o.type},o.params))},r.toggle=function(e,n,t){void 0===n&&(n=u.NONE),void 0===t&&(t=void 0);var o=this._buildTransitionParamsForEnableDisableOrToggle(n,t);return this.triggerAction(s.TOGGLE_ELEMENT,l({oid:e,transition:o.type},o.params))},r._buildTransitionParams=function(e,n){var t,o,_;return void 0===n&&(n=void 0),"number"==typeof e&&(e={type:e}),e.type=null!=(t=e.type)?t:u.NONE,e.time=null!=(o=null!=(_=e.time)?_:n)?o:1,e},r._buildTransitionParamsForEnableDisableOrToggle=function(e,n){var t=this._buildTransitionParams(e,n),o=t.type;return delete(t=l({},t)).type,{type:o,params:t}},r.enableAll=function(){return this.triggerAction(s.ENABLE_ALL)},r.disableAll=function(){return this.triggerAction(s.DISABLE_ALL)},r.play=function(e){return this.triggerAction(s.PLAY,{oid:e})},r.pause=function(e){return this.triggerAction(s.PAUSE,{oid:e})},r.stop=function(e){return this.triggerAction(s.STOP,{oid:e})},r.playPause=function(e){return this.triggerAction(s.PLAY_PAUSE,{oid:e})},r.translate=function(e,n,t,o,_,a){return this.triggerAction(s.TRANSLATE_ELEMENT,{oid:e,x:n,y:t,z:o,time:_,loop:a})},r.translateToPosition=function(e,n,t,o,_,a){return this.triggerAction(s.SET_ELEMENT_POSITION,{oid:e,target:{x:n,y:t,z:o},time:_,lookAt:a})},r.translateToElement=function(e,n,t,o,_){return this.triggerAction(s.SET_ELEMENT_POSITION,{oid:e,target:n,time:t,lookAt:o,loop:_})},r.rotate=function(e,n,t,o,_,a){return this.triggerAction(s.ROTATE_ELEMENT,{oid:e,x:n,y:t,z:o,time:_,loop:a})},r.rotateTo=function(e,n,t,o,_){return this.triggerAction(s.SET_ELEMENT_ROTATION,{oid:e,x:n,y:t,z:o,time:_})},r.rotateToQuaternion=function(e,n,t,o,_,a){return this.triggerAction(s.SET_ELEMENT_ROTATION,{oid:e,x:n,y:t,z:o,w:_,time:a})},r.scale=function(e,n,t,o,_,a){return this.triggerAction(s.SCALE_ELEMENT,{oid:e,x:n,y:t,z:o,time:_,loop:a})},r.playAnimation=function(e,n,t,o,_){return void 0===o&&(o=!1),void 0===_&&(_=void 0),this.triggerAction(s.PLAY_ANIMATION,{oid:e,animation:n,time:_,loop:t,autoStop:o})},r.stopAnimation=function(e,n){return this.triggerAction(s.STOP_ANIMATION,{oid:e,animation:n})},r.setLabelText=function(e,n){return this.triggerAction(s.SET_LABEL_TEXT,{oid:e,text:n})},r.resetScenes=function(){return this.triggerAction(s.RESET_SCENES,{})},r.setCameraRigTransform=function(e){return this.triggerAction(s.SET_CAMERA_RIG_TRANSFORM,{matrix:e.flat()})},r.setCameraRigPosition=function(e,n,t){return this.triggerAction(s.SET_CAMERA_RIG_POSITION,{x:e,y:n,z:t})},r.setCameraRigRotation=function(e,n,t){return this.triggerAction(s.SET_CAMERA_RIG_ROTATION,{x:e,y:n,z:t})},r.setCameraRigQuaternion=function(e,n,t,o){return this.triggerAction(s.SET_CAMERA_RIG_QUATERNION,{x:e,y:n,z:t,w:o})},r.disableCameraControls=function(){return this.triggerAction(s.DISABLE_CAMERA_CONTROLS,{})},r.loadElement=function(e,n,t){void 0===t&&(t={});var o=this._buildTransitionParamsForCreateElementOrLoadElement(t,n);return this.triggerAction(s.LOAD_ELEMENT,l({},n,{transition:o,oid:e}))},r.createElement=function(e,n,t){void 0===t&&(t={});var o=this._buildTransitionParamsForCreateElementOrLoadElement(t,n);return this.triggerAction(s.CREATE_ELEMENT,l({},n,{transition:o,newOid:e}))},r._buildTransitionParamsForCreateElementOrLoadElement=function(e,n){var t,o=this._buildTransitionParams(null!=(t=n?.transition)?t:{});null!=n&&n.sound&&(o.sound=n.sound),null!=n&&n.time&&(o.time=n.time);var _=this._buildTransitionParams(e),a=l({},o,_);return a.type=_.type!==u.NONE?_.type:o.type,a},r.setVariant=function(e,n){return this.triggerAction(s.SET_VARIANT,{oid:e,variant:n})},r.captureScreenFrame=function(){return this.triggerAction(s.CAPTURE_SCREEN_FRAME,{})},r.startScreenCapture=function(){return this.triggerAction(s.START_SCREEN_CAPTURE,{})},r.stopScreenCapture=function(){return this.triggerAction(s.STOP_SCREEN_CAPTURE,{})},r.setScreenCaptureOverlay=function(e,n,t,o,_,a,p,O,A){try{var g,S,T,P,G=function(){return Promise.resolve(createImageBitmap(e,g,S,T,P)).then(function(h){return Ee.triggerAction(s.SET_SCREEN_CAPTURE_OVERLAY,{source:h,x:a,y:p,width:O,height:A},[h])})},Ee=this;void 0===a&&void 0===p?(g=0,S=0,a=n,p=t):(g=n,S=t);var f=function(){if(void 0===O&&void 0===A){var h=function(){A=_,void 0!==(O=o)&&void 0!==A||(O=T,A=P)},M=function(){if(e instanceof VideoFrame)T=e.displayWidth-g,P=e.displayHeight-S;else{var w=function(){if(e instanceof Blob)return Promise.resolve(createImageBitmap(e)).then(function(V){T=V.width-g,P=V.height-S});T=e.width-g,P=e.height-S}();if(w&&w.then)return w.then(function(){})}}();
1return M&&M.then?M.then(h):h()}T=o,P=_}();return Promise.resolve(f&&f.then?f.then(G):G())}catch(h){return Promise.reject(h)}},r.clearScreenCaptureOverlay=function(){return this.triggerAction(s.CLEAR_SCREEN_CAPTURE_OVERLAY,{})},r.getAssetImage=function(e,n){return void 0===n&&(n=!0),this.triggerAction(s.GET_ASSET_IMAGE,{assetOid:e,thumb:n})},r.loadSurfacePlaceholder=function(e){return this.triggerAction(s.LOAD_SURFACE_PLACEHOLDER,{placeholderUrl:e})},r.setTransformControlsAllowlist=function(e){if(!(e&&e[Symbol.iterator]||void 0===e))throw new Error("`allowlist` must be an iterable or `undefined`.");return void 0===e||e instanceof Set||(e=new Set(e)),this.triggerAction(s.SET_TRANSFORM_CONTROLS_ALLOWLIST,{allowlist:e})},r.setTransformControlsBlocklist=function(e){if(!(e&&e[Symbol.iterator]||void 0===e))throw new Error("`blocklist` must be an iterable or `undefined`.");return void 0===e||e instanceof Set||(e=new Set(e)),this.triggerAction(s.SET_TRANSFORM_CONTROLS_BLOCKLIST,{blocklist:e})},r.getMetadata=function(e,n){if("string"!=typeof e)throw new Error("expected OID to be a `string`, but got a `"+typeof e+"` instead");if(!("number"==typeof n||"string"==typeof n||Array.isArray(n)||"object"==typeof n&&n instanceof RegExp))throw new Error("expected metadata query to be an `Array`, `string`, `number` or `RegExp`, but got a `"+typeof n+"` instead");if(Array.isArray(n)&&n.some(function(_){return"number"==typeof n||"string"!=typeof _&&!("object"==typeof _&&_ instanceof RegExp)})){var t=n.map(function(_){return typeof _}).filter(function(_){return"string"!==_}),o="["+Array.from(new Set(t)).join(", ")+"]";throw new Error("expected metadata query to be an `Array` of `string`, `number` or `RegExp`, but got types such as `"+o+"`")}return this.triggerAction(s.GET_METADATA,{oid:e,query:n})},r.loadScene=function(e){if("string"!=typeof e)throw new Error("expected the scene OID to be a `string`, but got a `"+typeof e+"`");return this.triggerAction(s.LOAD_SCENE,{sceneOid:e})},r.highlightBIMPieces=function(e,n){return this.triggerAction(s.HIGHTLIGHT_PIECE,{enable:e,params:n})},r.setOpacity=function(e,n,t){if(void 0===t&&(t=0),n<0||n>1)throw new Error("Opacity must be between 0 and 1.");return this.triggerAction(s.SET_OPACITY,{oid:e,opacity:n,time:t})},r.initNavigation=function(e,n,t){return void 0===t&&(t=!1),this.triggerAction(s.INIT_NAVIGATION,{destination:e,origin:n,fullRoute:t})},r.cancelNavigation=function(){return this.triggerAction(s.CANCEL_NAVIGATION)},r.enableHighlightNodes=function(e,n){return this.triggerAction(s.HIGHLIGHT_NODES,{enable:e,params:n})},r.highlightElementNode=function(e,n){return this.triggerAction(s.HIGHLIGHT_ELEMENT_NODE,{oid:e,name:n})},r.clearHighlightNodes=function(){return this.triggerAction(s.CLEAR_HIGHLIGHT_NODES)},r.setProperties=function(e,n){return this.triggerAction(s.SET_PROPERTIES,{oid:e,params:n})},c}();v.Events=D,v.Actions=s,v.Transitions=u,v.Sounds={SUCCESS:"success",SCORE:"score",SWEEP:"sweep",INTERFACE_ZOOM:"interface zoom",SWIPE:"swipe",FINGER_TAP:"finger_tap",SPRINT_JUMP:"sprint_jump",CINEMATIC_HIT:"cinematic_hit",POP:"pop",GLITCH:"glitch",BLOOP:"bloop",IMPACT:"impact"};var I=E(93207),y=E(7786),Q=E(345),U=E(60177),Z=E(27521),J=E(4697),q=E(55088),ee=E(91023),ne=E(88320);const te=["webarFrame"],ie=c=>({"ox-preview-3d--injected":c}),X=c=>({"ox-inactive":c}),oe=(c,r)=>({"ox-preview-3d__backdrop--closed":c,"ox-preview-3d__backdrop--opened":r}),re=c=>({"ox-preview-3d__wrapper--phone":c}),_e=c=>({"ox-preview-3d__iframe--hidden":c});function se(c,r){if(1&c){const e=i.RV6();i.j41(0,"span",23),i.bIt("click",function(t){i.eBV(e);const o=i.XpG();return i.Njj(o.toggleSceneList(t))}),i.nrm(1,"ox-close-animated",24),i.j41(2,"span",25),i.pXf(3,2),i.k0s()()}if(2&c){const e=i.XpG();i.R7$(),i.Y8G("open",e.sceneListOpened)}}function ce(c,r){if(1&c){const e=i.RV6();i.j41(0,"a",26),i.bIt("click",function(){i.eBV(e);const t=i.XpG();return i.Njj(t.openInNewTab())}),i.nrm(1,"svg-icon",27),i.k0s()}}let ae=(()=>{class c{onDocumentKeyDown(e){e.stopPropagation(),"Escape"==e.key&&this.closePreview()}constructor(e,n,t,o,_,a,p,O){this.router=e,this.route=n,this.projectService=t,this.projectManager=o,this.sanitizer=_,this.messagesManager=a,this.analyticsService=p,this.targetService=O,this.close=new i.bkB,this.url="about:blank",this.safeUrl=this.sanitizer.bypassSecurityTrustResourceUrl("about:blank"),this.sceneListOpened=!1,this.isNewTab=!0,this.embedSDK=null,this.embedSDKListener=null,this.onSceneLoadEnd=this.onSceneLoadEnd.bind(this)}ngAfterViewInit(){var e=this;return(0,C.A)(function*(){if(e.isNewTab){const n=e.route.snapshot.paramMap.get("oid");if(n)try{e.project=yield(0,I.s)(e.projectService.getProject(n));const t=e.route.snapshot.queryParamMap.get("scene");e.loadScenes(t),yield e.loadURL()}catch(t){e.messagesManager.notifyStudioError(t),e.router.navigate([""])}else e.router.navigate([""])}else yield e.loadURL()})()}ngOnDestroy(){this.destroyEmbedSDK()}loadProps(e){var n=this;return(0,C.A)(function*(){n.isNewTab=!1,n.project=e.project,n.loadScenes(e.sceneOid)})()}loadScenes(e){var n=this;return(0,C.A)(function*(){n.scenes=yield(0,I.s)(n.targetService.getTargets(n.project.oid)),n.selectedScene=n.scenes.find(t=>t.oid===e)})()}loadURL(){var e=this;return(0,C.A)(function*(){null==e.previewToken&&(e.previewToken=yield(0,I.s)(e.projectService.getPreviewToken(e.project.oid))),e.url=e.projectManager.getWebArForcePreviewUrl(e.project,e.previewToken,e.selectedScene?.oid),e.allowedOrigins=[L.c.playerUrl],e.safeUrl=e.sanitizer.bypassSecurityTrustResourceUrl(e.url)})()}initializeEmbedSDK(){this.webarFrame?.nativeElement&&(this.embedSDK=new v(this.webarFrame.nativeElement,L.c.clientUrl),this.embedSDK.connect(),this.embedSDKListener=this.embedSDK.subscribe(v.Events.SCENE_LOAD_END,this.onSceneLoadEnd))}destroyEmbedSDK(){this.embedSDK&&(this.embedSDK.unsubscribe(this.embedSDKListener),this.embedSDK.disconnect(),this.embedSDKListener=null,this.embedSDK=null)}onMessage(e){if(this.allowedOrigins.includes(e.origin))switch(e.data){case"ox-preview-init":this.initializeEmbedSDK();break;case"ox-preview-beforeunload":this.onFrameUnload()}}onFrameUnload(){this.destroyEmbedSDK()}onViewportChange(e){this.closeSceneList(),this.phoneMode=e,this.analyticsService.sendEvent($.c.PREVIEW3D_TOGGLE_VIEWPORT,{projectOid:this.project.oid,viewport:this.phoneMode?"Phone":"Desktop"})}resetPreview(){this.closeSceneList(),this.webarFrame.nativeElement.src=this.url}toggleSceneList(e){e.stopPropagation(),this.sceneListOpened=!this.sceneListOpened}onSelectionChanged(e){this.closeSceneList(),this.selectedScene=e,this.loadURL()}closeSceneList(){this.sceneListOpened=!1}closePreview(){var e=this;return(0,C.A)(function*(){e.isNewTab?window.close():e.close.emit()})()}openInNewTab(){var e=this;return(0,C.A)(function*(){let n;e.selectedScene&&(n={queryParams:{scene:e.selectedScene?.oid}});const t=e.router.serializeUrl(e.router.createUrlTree([`/preview3D/${e.project.oid}`],n));window.open(t,"_blank"),e.closePreview()})()}onSceneLoadEnd(e){const n=e.oid,t=this.scenes.find(o=>o.oid===n);t&&(this.selectedScene=t,this.url=this.projectManager.getWebArForcePreviewUrl(this.project,this.previewToken,this.selectedScene.oid)
1)}static{this.\u0275fac=function(n){return new(n||c)(i.rXU(y.Ix),i.rXU(y.nX),i.rXU(B.T),i.rXU(k.f),i.rXU(Q.up),i.rXU(W.q),i.rXU(H.c),i.rXU(K.t))}}static{this.\u0275cmp=i.VBU({type:c,selectors:[["ox-preview-3d"]],viewQuery:function(n,t){if(1&n&&i.GBs(te,5),2&n){let o;i.mGM(o=i.lsd())&&(t.webarFrame=o.first)}},hostBindings:function(n,t){1&n&&i.bIt("keydown",function(_){return t.onDocumentKeyDown(_)},!1,i.EBC)("message",function(_){return t.onMessage(_)},!1,i.tSv)},decls:25,vars:29,consts:()=>{let e,n,t,o,_,a,p;return e="Laptop",n="Phone",t="Open in new tab",o="Reset preview",_="Close",a="3D Viewer",p="Scene list",[["webarFrame",""],a,p,[1,"ox-preview-3d",3,"ngClass"],[1,"ox-preview-3d__header",3,"click"],[1,"ox-preview-3d__left"],["src","assets/images/icons/icon-3d-preview.svg"],[3,"click",4,"ngIf"],[1,"ox-preview-3d__switch"],["src","assets/images/icons/icons-general-laptop.svg","title",e,3,"ngClass"],[3,"onChange"],["src","assets/images/icons/icons-general-phone.svg","title",n,3,"ngClass"],[1,"ox-preview-3d__right"],["oxTitle",t,3,"click",4,"ngIf"],["title",o,3,"click"],["src","assets/images/icons/icons-general-clear-all.svg"],["t
1itle",_,1,"ox-preview-3d__close",3,"click"],["src","assets/images/icons/close-white.svg"],[1,"ox-preview-3d__left-sidebar"],[3,"selectionChanged","opened","scenes","project","selection","canCreate","canUpdate","canDelete"],[1,"ox-preview-3d__backdrop",3,"click","ngClass"],[1,"ox-preview-3d__wrapper",3,"ngClass"],["allow","web-share;autoplay;fullscreen;geolocation;xr-spatial-tracking;",1,"ox-preview-3d__iframe",3,"ngClass","src"],[3,"click"],[3,"open"],[1,"ox-scene-list"],["oxTitle",t,3,"click"],["src","assets/images/icons/icons-new-tab.svg"]]},template:function(n,t){if(1&n){const o=i.RV6();i.j41(0,"section",3)(1,"header",4),i.bIt("click",function(){return i.eBV(o),i.Njj(t.closeSceneList())}),i.j41(2,"div",5)(3,"h1"),i.nrm(4,"svg-icon",6),i.j41(5,"span"),i.pXf(6,1),i.k0s()(),i.DNE(7,se,4,1,"span",7),i.k0s(),i.j41(8,"div",8),i.nrm(9,"svg-icon",9),i.j41(10,"ox-inputSwitch",10),i.bIt("onChange",function(a){return i.eBV(o),i.Njj(t.onViewportChange(a))}),i.k0s(),i.nrm(11,"svg-icon",11),i.k0s(),i.j41(12,"div",12),i.DNE(13,ce,2,0,"a",13),i.j41(14,"span",14),i.bIt("click",function(){return i.eBV(o),i.Njj(t.resetPreview())}),i.nrm(15,"svg-icon",15),i.k0s(),i.j41(16,"a",16),i.bIt("click",function(){return i.eBV(o),i.Njj(t.closePreview())}),i.nrm(17,"svg-icon",17),i.k0s()()(),i.j41(18,"div",18)(19,"ox-scene-list",19),i.bIt("selectionChanged",function(a){return i.eBV(o),i.Njj(t.onSelectionChanged(a))}),i.k0s()(),i.j41(20,"div",20),i.bIt("click",function(){return i.eBV(o),i.Njj(t.closeSceneList())}),i.k0s(),i.j41(21,"div",21),i.nrm(22,"iframe",22,0),i.k0s(),i.nrm(24,"footer"),i.k0s()}2&n&&(i.Y8G("ngClass",i.eq3(16,ie,!t.isNewTab)),i.R7$(7),i.Y8G("ngIf",(null==t.project?null:t.project.scenesCounter)>1),i.R7$(2),i.Y8G("ngClass",i.eq3(18,X,t.phoneMode)),i.R7$(2),i.Y8G("ngClass",i.eq3(20,X,!t.phoneMode)),i.R7$(2),i.Y8G("ngIf",!t.isNewTab),i.R7$(6),i.Y8G("opened",t.sceneListOpened)("scenes",t.scenes)("project",t.project)("selection",t.selectedScene)("canCreate",!1)("canU
1pdate",!1)("canDelete",!1),i.R7$(),i.Y8G("ngClass",i.l_i(22,oe,!t.sceneListOpened,t.sceneListOpened)),i.R7$(),i.Y8G("ngClass",i.eq3(25,re,t.phoneMode)),i.R7$(),i.Y8G("ngClass",i.eq3(27,_e,null==t.url))("src",t.safeUrl,i.f$h))},dependencies:[U.YU,U.bT,Z.r,J.$,q.DM,ee.Y,ne.p],styles:[".ox-preview-3d[_ngcontent-%COMP%]{height:100vh;width:100vw;display:flex;flex-direction:column}.ox-preview-3d.ox-preview-3d--injected[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:6}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]{height:30px;width:calc(100% - 40px);padding:10px 20px;display:flex;align-items:center;justify-content:space-between;background-color:var(--color-core-dark02);color:var(--color-core-white);font-size:12px;line-height:18px;font-weight:600}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__switch[_ngcontent-%COMP%]{display:flex;align-items:center}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__switch[_ngcontent-%COMP%]     svg-icon.ox-inactive svg g, .ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__switch[_ngcontent-%COMP%]     svg-icon.ox-inactive svg path{opacity:.6}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__switch[_ngcontent-%COMP%]     svg-icon svg{width:20px;height:20px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__switch[_ngcontent-%COMP%]     svg-icon svg g, .ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__switch[_ngcontent-%COMP%]     svg-icon svg path{opacity:1}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__switch[_ngcontent-%COMP%]     ox-inputswitch .switch{margin:0 10px;background-color:transparent;border:1px solid var(--color-core-white);width:34px;height:16px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__switch[_ngcontent-%COMP%]     ox-inputswitch .switch:after{top:2px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%]{display:flex;align-items:center;width:300px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{cursor:pointer;display:flex;flex-direction:row;align-items:center}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:first-child){margin-left:10px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:first-child){margin-left:20px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   ox-close-animated[_ngcontent-%COMP%]     div{display:block;bottom:0}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{cursor:default;font-size:14px;font-weight:700;line-height:1.14}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%]     svg-icon svg{width:20px;height:20px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%]     svg-icon svg g, .ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__left[_ngcontent-%COMP%]     svg-icon svg path{f
1ill:var(--color-core-white)}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:right;width:300px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__right[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__right[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__right[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){padding-left:20px;margin-left:20px;border-left:1px solid rgba(242,241,243,.1490196078)}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__right[_ngcontent-%COMP%]     svg-icon svg{width:20px;height:20px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__right[_ngcontent-%COMP%]     svg-icon svg g, .ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__header[_ngcontent-%COMP%]   .ox-preview-3d__right[_ngcontent-%COMP%]     svg-icon svg path{f
1ill:var(--color-core-white)}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__wrapper[_ngcontent-%COMP%]{width:100%;height:calc(100% - 50px);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background-color:var(--color-core-dark01)}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__wrapper[_ngcontent-%COMP%]   .ox-preview-3d__iframe[_ngcontent-%COMP%]{width:100%;height:100%;border-width:0;border-radius:0;transition:width .2s,height .2s,border-radius .2s}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__wrapper[_ngcontent-%COMP%]   .ox-preview-3d__iframe.ox-preview-3d__iframe--hidden[_ngcontent-%COMP%]{display:none}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__wrapper.ox-preview-3d__wrapper--phone[_ngcontent-%COMP%]   .ox-preview-3d__iframe[_ngcontent-%COMP%]{height:640px;width:376px;border-radius:14px}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__left-sidebar[_ngcontent-%COMP%]{position:absolute;top:50px;left:0;z-index:1;height:calc(100% - 50px)}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__backdrop[_ngcontent-%COMP%]{position:absolute;inset:50px 0 0;background-color:#070508;transition:opacity .2s}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__backdrop.ox-preview-3d__backdrop--closed[_ngcontent-%COMP%]{pointer-events:none;opacity:0}.ox-preview-3d[_ngcontent-%COMP%]   .ox-preview-3d__backdrop.ox-preview-3d__backdrop--opened[_ngcontent-%COMP%]{opacity:.88}.ox-preview-3d[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{display:none;height:50px;background-color:var(--color-core-white)}"]})}}return c})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.