PageSourceSearch

https://www.siku.de/theme/90cb1092fdf35b49884e707d0a60130d/js/stor…front.spatial-ar-viewer-plugin.ts.09a738.js

js siku.de collected 2026-09-24 11:28:06 UTC 5,372 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[43177],{3177(t,e,r){r.r(e),r.d(e,{default:()=>n});var o=r(4335),s=r(6647);class n extends o.A{async init(){await (0,s.X)(),this.arSystem=new window.DIVEARPlugin.ARSystem,this.modelUrl=this.options.modelUrl,this.spatialArId=this.options.spatialArId,this.modelUrl&&(this.onReady(),this.el.addEventListener("click",()=>{this.startARViewAsync()}))}async startARViewAsync(){let t=this.el.querySelector("#ar-button-text"),e=this.autostartArModalButton?.querySelector("#ar-btn-open-session-text");try{if(!this.arSystem)throw Error("ARSystem not loaded");if(this.launchingAR)return;this.launchingAR=!0,t&&(t.textContent=this.options.snippets.launchingArView),e&&(e.textContent=this.options.snippets.launchingArView),await this.arSystem.launch(this.modelUrl,{arPlacement:this.options.arPlacement??"horizontal",arScale:"auto"})}catch(t){this.handleError(this.spatialArId,t)}finally{t&&(t.textContent=this.options.snippets.openArView),e&&(e.textContent=this.options.snippets.openArView),this.launchingAR=!1}}_getLocationSearch(){return window.location.search}onReady(){this.el.classList.add("spatial-ar-ready");let t=new URLSearchParams(this._getLocationSearch());t.has("autostartAr")&&this.spatialArId&&t.get("autostartAr")===this.spatialArId&&(window.autostartingARView||(window.autostartingARView=!0,this.showARAutostartModal(this.spatialArId),this.startARViewAsync()))}handleError(t,e){if(!(e instanceof window.DIVEARPlugin.ARError)){console.error("spatial-ar-viewer-plugin.ts: Spatial AR Viewer Plugin error:",e);return}let r=this.getARUnsupportedModal(t);if(!r){console.error("spatial-ar-viewer-plugin.ts: Twig structure error: ARUnsupportedModalTemplate not found in document");return}let o=r.querySelector("#ar-qr-modal-error-reason"),s=r.querySelector("#ar-qr-modal-error-solution");o||console.error('spatial-ar-viewer-plugin.ts: Twig structure error: "#ar-qr-modal-error-reason not found in ARUnsupportedModalTemplate'),s||console.error('spatial-ar-viewer-plugin.ts: Twig structure error: "#ar-qr-modal-error-solution not found in ARUnsupportedModalTemplate'),o&&s&&(e instanceof window.DIVEARPlugin.ARDesktopPlatformError?(o.textContent=this.options.snippets.arErrors.desktopNotSupported.reason,s.textContent=this.options.snippets.arErrors.desktopNotSupported.solution,console.error("spatial-ar-viewer-plugin.ts:","ErrorType: "+e.type,"ErrorMessage: "+e.message)):e instanceof window.DIVEARPlugin.ARQuickLookNotSafariError?(o.textContent=this.options.snippets.arErrors.notSafariOnIOS.reason,s.textContent=this.options.snippets.arErrors.notSafariOnIOS.solution,console.error("spatial-ar-viewer-plugin.ts:","ErrorType: "+e.type,"ErrorMessage: "+e.message)):e instanceof window.DIVEARPlugin.ARQuickLookVersionMismatchError?(o.textContent=this.options.snippets.arErrors.IOSVersionMismatch.reason,s.textContent=this.options.snippets.arErrors.IOSVersionMismatch.solution,console.error("spatial-ar-viewer-plugin.ts:","ErrorType: "+e.type,"ErrorMessage: "+e.message)):e instanceof window.DIVEARPlugin.ARQuickLookUnknownError?(o.textContent=this.options.snippets.arErrors.unknownIOSError.reason,s.textContent=this.options.snippets.arErrors.unknownIOSError.solution,console.error("spatial-ar-viewer-plugin.ts:","ErrorType: "+e.type,"ErrorMessage: "+e.message)):(o.textContent=this.options.snippets.arErrors.unknownARError.reason,s.textContent=this.options.snippets.arErrors.unknownARError.solution,console.error("spatial-ar-viewer-plugin.ts: Unknown DIVEARPlugin error:","ErrorType: "+e.type,"ErrorMessage: "+e.message)),this.showARUnsupportedModal(r))}showARUnsupportedModal(t){window.focusHandler.saveFocusState("spatial-ar-viewer");let e=()=>{window.focusHandler.resumeFocusState("spatial-ar-viewer"),r._element.removeEventListener("hidden.bs.modal",e)},r=new bootstrap.Modal(t);r._element.addEventListener("hidden.bs.modal",e),r.show()}getARUnsupportedModal(t){let e;return e=t?document.querySelector(`.ar-qr-modal [data-ar-model-id='${t}']`)?.closest(".ar-qr-modal"):document.querySelector(".ar-qr-modal"),e?.closest("body")?.appendChild(e),e}showARAutostartModal(t){let e=document.querySelector(".ar-qr-modal-open-session");if(!e)return;let r=e.querySelector(`[data-modal-open-ar-session-autostart='${t}']`);r&&(this.autostartArModalButton=r,this.autostartArModalButton.addEventListener("click",()=>{this.startARViewAsync()}),e.closest("body")?.appendChild(e),new bootstrap.Modal(e).show())}constructor(...t){super(...t),this.autostartArModalButton=null,this.arSystem=null,this.launchingAR=!1,this.modelUrl="",this.spatialArId=""}}},6647(t,e,r){r.d(e,{X:()=>o});async function o(){return(window.loadDiveUtil||(window.loadDiveUtil={promise:null}),window.DIVEClass||window.DIVEARPlugin||window.DIVEQuickViewPlugin||window.DIVEAnimationPlugin)?Promise.resolve():(window.loadDiveUtil.promise||(window.loadDiveUtil.promise=new Promise(t=>{let e=Promise.all([r.e(99451),r.e(86179),r.e(50209)]).then(r.bind(r,209));Promise.all([e,Promise.all([r.e(99451),r.e(86179),r.e(55399),r.e(20947),r.e(93772)]).then(r.bind(r,3772)),Promise.all([r.e(99451),r.e(86179),r.e(87411)]).then(r.bind(r,7411)),Promise.all([r.e(99451),r.e(95939)]).then(r.bind(r,5939))]).then(e=>{let[r,o,s,n]=e;window.DIVEClass=r.DIVE,window.DIVEARPlugin=o,window.DIVEQuickViewPlugin=s,window.DIVEAnimationPlugin=n,t()})})),window.loadDiveUtil.promise)}}}]);

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.