@epigraph/solutions 1.11.1 → 1.11.2
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.
|
@@ -9620,7 +9620,7 @@ Arguments: [`+R+"]"}},a.fz.prototype={k(r){return"Unsupported operation: "+this.
|
|
|
9620
9620
|
${this.__renderBody()}
|
|
9621
9621
|
</div>
|
|
9622
9622
|
</epg-modal>
|
|
9623
|
-
`}};pd([le({attribute:!1})],th.prototype,"report");pd([bi()],th.prototype,"__activeTab");pd([bi()],th.prototype,"__gpuSnapshot");pd([bi()],th.prototype,"__validationProgress");pd([kt("#validationsModal")],th.prototype,"__modalRef");let p6=th;var g6=Object.defineProperty,ut=(n,e,t,i)=>{for(var s=void 0,l=n.length-1,h;l>=0;l--)(h=n[l])&&(s=h(e,t,s)||s);return s&&g6(e,t,s),s},kl=(n=>(n.NONE="",n.SKU="sku",n.SHOPIFY_VARIANT_ID="shopify_variant_id",n.ASIN="asin",n.UPC="upc",n.PRODUCT_VARIANT_UUID="product_variant_uuid",n))(kl||{});const lt=class au extends qR{constructor(){let e=ou.PRODUCTION;super("1.11.
|
|
9623
|
+
`}};pd([le({attribute:!1})],th.prototype,"report");pd([bi()],th.prototype,"__activeTab");pd([bi()],th.prototype,"__gpuSnapshot");pd([bi()],th.prototype,"__validationProgress");pd([kt("#validationsModal")],th.prototype,"__modalRef");let p6=th;var g6=Object.defineProperty,ut=(n,e,t,i)=>{for(var s=void 0,l=n.length-1,h;l>=0;l--)(h=n[l])&&(s=h(e,t,s)||s);return s&&g6(e,t,s),s},kl=(n=>(n.NONE="",n.SKU="sku",n.SHOPIFY_VARIANT_ID="shopify_variant_id",n.ASIN="asin",n.UPC="upc",n.PRODUCT_VARIANT_UUID="product_variant_uuid",n))(kl||{});const lt=class au extends qR{constructor(){let e=ou.PRODUCTION;super("1.11.2",e),this.isMac=/Mac/i.test(navigator.userAgent),this.epigraphWebsiteRedirectUrls={icon:"https://www.epigraph.us",modal:"https://www.epigraph.us"},this.sessionState="default",this.isAppReady=!1,this.sku=zt.sku.defaultValue.toString(),this.shopify_variant_id=zt.shopifyVariantId.defaultValue.toString(),this.upc=zt.upc.defaultValue.toString(),this.asin=zt.asin.defaultValue.toString(),this.product_variant_uuid=zt.productVariantUuid.defaultValue.toString(),this.customVersionId="",this.gaMeasurementId="",this.disableZoom=!1,this.modalView=!1,this.hide=!1,this.isLoading=!0,this.apiMode="production",this.debug=!1,this.showSettings=!1,this.dimensionsUnit=zt.dimensionsUnit.defaultValue.toString(),this.dimensionsUnitSymbol=zt.dimensionsUnitSymbol.defaultValue.toString(),this.areDimensionsActive=!1,this.areHotspotsActive=!1,this.variantSwitchMode=zt.variantSwitchMode.defaultValue.toString(),this.areCommentsActive=!1,this.isHelpVisible=!1,this.baseUrlOverride=zt.baseUrlOverride.defaultValue.toString(),this.cameraBoundsMultiplier=1,this.isPortraitOrientation=!1,this.didARAutoLaunch=!1,this.transparentBackground=!1,this.splashScreenLogo=zt.splashScreenLogo.defaultValue.toString(),this.splashScreenText=zt.splashScreenText.defaultValue.toString(),this.hideUi=!1,this.playInteractionPrompt=!1,this.featuresToEnable={viewer:!0,hotspots:!0,dimensions:!0,viewInYourSpace:!0,sceneManager:!0,comments:!1,debugManager:!1,validationsManager:!1},this._hasActiveHotspot=!1,this._isToolsetLargerThanTheLeftBottomQuadrant=!1,this._loadingProgress=0,this._loadTimeBegin=performance.now(),this._loggerContext="EPIGRAPH THREED CODE",this._epigraphAnalytics=new n2(null,null),this._identifier="",this._identifierType="",this._isDevEnv=!1,this._isStagingEnv=!1,this._productSettings=new V8,this._boundingSphereCenter=new ee,this._loaders=new wu,this._activeAnimations=new Map,this._animationFadeDurationInMiliseconds=1e3,this._isSceneInteractedWith=!1,this.__isLoadingForTheFirstTime=!0,this.__glbBlobUrl="",this.__usdzBlobUrl="",this.__hasSceneChanged=!1,this.__canvasSize={width:0,height:0},this.__raycaster=new Gv,this.__pointer=new Re,this.__viewStateGrid=new H1(40,190,0,12829635),this.__interactionPlayCount=0}static{this.webComponentName="epigraph-threed-core"}static setupWebComponent(){window.customElements.get(au.webComponentName)||window.customElements.define(au.webComponentName,au)}static{this.styles=[gt`
|
|
9624
9624
|
:host {
|
|
9625
9625
|
all: initial;
|
|
9626
9626
|
display: flex;
|
|
@@ -10358,7 +10358,7 @@ Arguments: [`+R+"]"}},a.fz.prototype={k(r){return"Unsupported operation: "+this.
|
|
|
10358
10358
|
<div id="appCanvasContainer" class="app-canvas-container">
|
|
10359
10359
|
<span id="cameraAimIndicator" class="camera-aim-indicator hide"></span>
|
|
10360
10360
|
</div>
|
|
10361
|
-
`:De}getWebComponentName(){return au.webComponentName}async _resolveIdentifierAndType(){this.sku?(this._identifierType="sku",this._identifier=this.sku):this.shopify_variant_id?(this._identifierType="shopify_variant_id",this._identifier=this.shopify_variant_id):this.upc?(this._identifierType="upc",this._identifier=this.upc):this.asin?(this._identifierType="asin",this._identifier=this.asin):this.product_variant_uuid&&(this._identifierType="product_variant_uuid",this._identifier=this.product_variant_uuid)}async _onAuthenticationFailed(e){window.epigraph.logger.error({title:"AUTHENTICATION FAILED: Expand for details...",details:e,contextOverride:this._loggerContext}),this.onLoadFailed(Py.MODULE_FAILED_ERRORS.AUTHENTICATION_FAILED,{errorCode:vk.AuthenticationFailedError,message:e})}async setupRenderEngine(){window.epigraph.logger.info({title:"Initiliazing Render Engine",contextOverride:this._loggerContext}),this._renderEngine=new qz(this);const{canvasHtmlElem:e}=await this._renderEngine.setup();this.appCanvasContainerElemRef.appendChild(e),new ResizeObserver(this.__onWebComponentResize.bind(this)).observe(this.appCanvasContainerElemRef),requestAnimationFrame(()=>{this.__onWebComponentResize()})}_showCustomViewInYourSpaceButton(){this._getSlottedElements(this.customViewInYourSpaceButtonSlotElem).forEach(t=>{const i=t;i.style.visibility="visible",i.style.transition="opacity 0.5s ease-in-out",i.style.opacity="1"})}_hideCustomViewInYourSpaceButton(){this._getSlottedElements(this.customViewInYourSpaceButtonSlotElem).forEach(t=>{const i=t,s=500;i.style.transition=`opacity ${s/1e3}s ease-in-out`,i.style.opacity="0",setTimeout(()=>i.style.visibility="hidden",s)})}_sendAnalyticsEventsOnModuleLoadStart(){const e=new t2(!1);this._epigraphAnalytics.sendEvent(e)}_sendAnalyticsEventsOnModuleLoadFinish(){const e=this.timeElapsedSinceLoadBegin,t=new i2(!1,e);this._epigraphAnalytics.sendEvent(t);const i=window.epigraph.isSessionWebGL2Compatible();let s;this.viewInYourSpaceManager.canLaunchAr()?s=i?ah.SUPPORT_TYPE.AR_WEBGL2:ah.SUPPORT_TYPE.AR:s=i?ah.SUPPORT_TYPE.QR_WEBGL2:ah.SUPPORT_TYPE.QR;const l=new ah(s);this._epigraphAnalytics.sendEvent(l)}_onNewExperienceLoadStart(){this.isLoading=!0,this._loadingProgress=0,this._hideCustomViewInYourSpaceButton(),this.renderEngine.pauseRendering(this.__isLoadingForTheFirstTime),this.__isLoadingForTheFirstTime&&this.showSplashScreen(),this.hotspotsManager?.activeHotspot&&this.hotspotsManager.closeActiveHotspot()}async _onNewExperienceLoadFinish(e){this.isLoading=!1,this._showCustomViewInYourSpaceButton();const t=e?"variant":"product";this._eventsManager.experienceUpdatedEvent.fire(),this._eventsManager.appReadyEvent.fire({loadType:t}),this._eventsManager.appReadyEventLegacy.fire({loadType:t}),this.renderEngine.unpauseRendering(),await this._onSceneHierarchyUpdate(),this.hideSplashScreen(),setTimeout(()=>{this._isSceneInteractedWith||(this.playInteractionPrompt=!0)},3e3),this._sendAnalyticsEventsOnModuleLoadFinish(),this.__isLoadingForTheFirstTime&&(this.__isLoadingForTheFirstTime=!1)}async _onSceneHierarchyUpdate(e=!1){if(this.sceneManager.recalculateSceneBounds(),this.featuresToEnable.hotspots&&this._repopulateHotspots(),e)return Promise.resolve([])}_renderAppManagers(){return de`
|
|
10361
|
+
`:De}getWebComponentName(){return au.webComponentName}async _resolveIdentifierAndType(){this.sku?(this._identifierType="sku",this._identifier=this.sku):this.shopify_variant_id?(this._identifierType="shopify_variant_id",this._identifier=this.shopify_variant_id):this.upc?(this._identifierType="upc",this._identifier=this.upc):this.asin?(this._identifierType="asin",this._identifier=this.asin):this.product_variant_uuid&&(this._identifierType="product_variant_uuid",this._identifier=this.product_variant_uuid)}async _onAuthenticationFailed(e){window.epigraph.logger.error({title:"AUTHENTICATION FAILED: Expand for details...",details:e,contextOverride:this._loggerContext}),this.onLoadFailed(Py.MODULE_FAILED_ERRORS.AUTHENTICATION_FAILED,{errorCode:vk.AuthenticationFailedError,message:e})}async setupRenderEngine(){window.epigraph.logger.info({title:"Initiliazing Render Engine",contextOverride:this._loggerContext}),this._renderEngine=new qz(this);const{canvasHtmlElem:e}=await this._renderEngine.setup();this.appCanvasContainerElemRef.appendChild(e),new ResizeObserver(this.__onWebComponentResize.bind(this)).observe(this.appCanvasContainerElemRef),requestAnimationFrame(()=>{this.__onWebComponentResize()})}_showCustomViewInYourSpaceButton(){this._getSlottedElements(this.customViewInYourSpaceButtonSlotElem).forEach(t=>{const i=t;i.style.visibility="visible",i.style.transition="opacity 0.5s ease-in-out",i.style.opacity="1"})}_hideCustomViewInYourSpaceButton(){this._getSlottedElements(this.customViewInYourSpaceButtonSlotElem).forEach(t=>{const i=t,s=500;i.style.transition=`opacity ${s/1e3}s ease-in-out`,i.style.opacity="0",setTimeout(()=>i.style.visibility="hidden",s)})}_sendAnalyticsEventsOnModuleLoadStart(){const e=new t2(!1);this._epigraphAnalytics.sendEvent(e)}_sendAnalyticsEventsOnModuleLoadFinish(){const e=this.timeElapsedSinceLoadBegin,t=new i2(!1,e);this._epigraphAnalytics.sendEvent(t);const i=window.epigraph.isSessionWebGL2Compatible();let s;this.viewInYourSpaceManager.canLaunchAr()?s=i?ah.SUPPORT_TYPE.AR_WEBGL2:ah.SUPPORT_TYPE.AR:s=i?ah.SUPPORT_TYPE.QR_WEBGL2:ah.SUPPORT_TYPE.QR;const l=new ah(s);this._epigraphAnalytics.sendEvent(l)}_onNewExperienceLoadStart(){this.isLoading=!0,this._loadTimeBegin=performance.now(),this._loadingProgress=0,this._hideCustomViewInYourSpaceButton(),this.renderEngine.pauseRendering(this.__isLoadingForTheFirstTime),this.__isLoadingForTheFirstTime&&this.showSplashScreen(),this.hotspotsManager?.activeHotspot&&this.hotspotsManager.closeActiveHotspot()}async _onNewExperienceLoadFinish(e){this.isLoading=!1,this._showCustomViewInYourSpaceButton();const t=e?"variant":"product";this._eventsManager.experienceUpdatedEvent.fire(),this._eventsManager.appReadyEvent.fire({loadType:t}),this._eventsManager.appReadyEventLegacy.fire({loadType:t}),this.renderEngine.unpauseRendering(),await this._onSceneHierarchyUpdate(),this.hideSplashScreen(),setTimeout(()=>{this._isSceneInteractedWith||(this.playInteractionPrompt=!0)},3e3),this._sendAnalyticsEventsOnModuleLoadFinish(),this.__isLoadingForTheFirstTime&&(this.__isLoadingForTheFirstTime=!1)}async _onSceneHierarchyUpdate(e=!1){if(this.sceneManager.recalculateSceneBounds(),this.featuresToEnable.hotspots&&this._repopulateHotspots(),e)return Promise.resolve([])}_renderAppManagers(){return de`
|
|
10362
10362
|
<div id="appManagersContainer" class="app-managers-container">
|
|
10363
10363
|
${this._renderDimensionsManager()}
|
|
10364
10364
|
|