1import BaseMedia from"element.base-media";export class ModelMedia extends BaseMedia{getPlayerTarget(){return new Promise(resolve=>{this.setAttribute("loaded",""),window.Shopify.loadFeatures([{name:"shopify-xr",version:"1.0",onLoad:this.setupShopifyXr.bind(this)},{name:"model-viewer-ui",version:"1.0",onLoad:()=>{const modelViewerUi=this.setupModelViewerUi();resolve(modelViewerUi)}}])})}playerHandler(target,prop){target[prop]()}async setupShopifyXr(){window.ShopifyXR?window.ShopifyXR.setupXRElements():document.addEventListener("shopify_xr_initialized",this.setupShopifyXr.bind(this))}setupModelViewerUi(){const modelViewer=this.querySelector("model-viewer");return modelViewer.addEventListener("shopify_model_viewer_ui_toggle_play",()=>{this.setAttribute("playing","")}),modelViewer.addEventListener("shopify_model_viewer_ui_toggle_pause",()=>{this.removeAttribute("playing")}),new window.Shopify.ModelViewerUI(modelViewer,{focusOnPlay:!1})}}customElements.define("model-media",ModelMedia); 2//# sourceMappingURL=/cdn/shop/t/45/assets/element.model.js.map?v=101001098341450788491758902221
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.