@epigraph/solutions 0.19.0-canary.5 → 0.19.0-canary.6
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.
|
@@ -8709,4 +8709,4 @@ void main() {
|
|
|
8709
8709
|
:host {
|
|
8710
8710
|
position: relative;
|
|
8711
8711
|
}
|
|
8712
|
-
`]}static setupWebComponent(){window.customElements.get(Ta.webComponentName)||window.customElements.define(Ta.webComponentName,Ta)}getWebComponentName(){return Ta.webComponentName}firstUpdated(){const e=this.parsedUrlParams.get(Ii.identifierType),t=this.parsedUrlParams.get(Ii.identifier);e&&e&&this.setAttribute(String(e),String(t)),super.firstUpdated()}async _fetchExperienceDataConfig(){const e=new x0(St.resolveNexusEndpoint(this.apiMode),window.location.href,window.epigraph.epigraphSessionId,this.solutionVersion,this.xPath);let t=null;switch(this._identifierType){case"sku":t=await e.getViewerBySku(this._identifier,this.customVersionId);break;case"shopify_variant_id":t=await e.getViewerByShopifyVariantId(this._identifier,this.customVersionId);break;case"upc":t=await e.getViewerByUpc(this._identifier,this.customVersionId);break;case"asin":t=await e.getViewerByAsin(this._identifier,this.customVersionId);break;case"product_variant_uuid":t=await e.getTourByUuid(this._identifier,this.customVersionId);break;default:return window.epigraph.logger.error({title:`Identifier type: '${this._identifierType}' not supported!`,contextOverride:this._loggerContext}),Promise.reject()}return t}};fH([Ut("#viewInYourSpaceButton")],BT.prototype,"viewInYourSpaceButtonElem");let PT=BT;class LT extends RT{constructor(e){super(e),this._appWcRef=e}showHotspots(){this._appWcRef.showHotspots()}hideHotspots(){this._appWcRef.hideHotspots()}toggleHotspots(){this._appWcRef.toggleHotspots()}updateHotspotsOrder(e){this._appWcRef.updateHotspotsOrder(e)}openHotspot({hotspotId:e,state:t,skipHotspotOpenEvent:i=!1}){this._appWcRef.openHotspot({hotspotId:e,state:t,skipHotspotOpenEvent:i})}closeActiveHotspot(){this._appWcRef.closeActiveHotspot()}setActiveHotspotState(e){this._appWcRef.setActiveHotspotState(e)}nextHotspot(){return this._appWcRef.nextHotspot()}previousHotspot(){return this._appWcRef.previousHotspot()}getActiveHotspot(){return this._appWcRef.getActiveHotspot()}areHotspotsVisible(){return this._appWcRef.areHotspotsVisible()}getAllHotspots(){return this._appWcRef.getAllHotspots()}getAllHotspotIds(){return this._appWcRef.getAllHotspotIds()}getHotspotById(e){return this._appWcRef.getHotspotById(e)}createHotspots(e){this._appWcRef.createHotspots(e)}updateHotspots(e){this._appWcRef.updateHotspots(e)}removeHotspots(e){this._appWcRef.removeHotspots(e)}}const pH={hideHotspotsOnStart:{name:"hide-hotspots-on-start"}};var mH=Object.defineProperty,gH=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,u;l>=0;l--)(u=o[l])&&(a=u(e,t,a)||a);return a&&mH(e,t,a),a};const DT=class Ia extends PT{constructor(){super(),this.featuresToEnable={viewer:!0,hotspots:!0,dimensions:!0,viewInYourSpace:!0,help:!0,sceneManager:!0},this.epigraphWebsiteRedirectUrls={icon:"https://www.epigraph.us/?utm_source=epigraph&utm_medium=experience&utm_campaign=powered-by&utm_id=powered-by-icon&utm_content=tour",modal:"https://www.epigraph.us/?utm_source=epigraph&utm_medium=experience&utm_campaign=powered-by&utm_id=powered-by-modal&utm_content=tour"},this.hideHotspotsOnStart=!1,this._loggerContext=Ia.webComponentName.toUpperCase(),window.epigraph.logger.info({title:`Initializing ${Ia.webComponentName}...`,contextOverride:this._loggerContext}),this.api=new LT(this)}static{this.webComponentName="epigraph-tour"}static{this.styles=[super.styles]}static setupWebComponent(){window.customElements.get(Ia.webComponentName)||window.customElements.define(Ia.webComponentName,Ia)}getWebComponentName(){return Ia.webComponentName}async _fetchExperienceDataConfig(){const e=new x0(St.resolveNexusEndpoint(this.apiMode),window.location.href,window.epigraph.epigraphSessionId,this.solutionVersion,this.xPath);let t=null;switch(this._identifierType){case"sku":t=await e.getTourBySku(this._identifier,this.customVersionId);break;case"shopify_variant_id":t=await e.getTourByShopifyVariantId(this._identifier,this.customVersionId);break;case"upc":t=await e.getTourByUpc(this._identifier,this.customVersionId);break;case"asin":t=await e.getTourByAsin(this._identifier,this.customVersionId);break;case"product_variant_uuid":t=await e.getTourByUuid(this._identifier,this.customVersionId);break;default:return window.epigraph.logger.error({title:`Identifier type: '${this._identifierType}' not supported!`,contextOverride:this._loggerContext}),Promise.reject()}return t}firstUpdated(){super.firstUpdated(),this.areHotspotsActive=!this.hideHotspotsOnStart}};gH([ue({type:Boolean,attribute:pH.hideHotspotsOnStart.name})],DT.prototype,"hideHotspotsOnStart");let NT=DT;class AH extends LT{constructor(e){super(e),this._appWcRef=e}}class Mr extends NT{constructor(){super(),this._loggerContext=Mr.webComponentName.toUpperCase(),window.epigraph.logger.info({title:`Initializing ${Mr.webComponentName}...`,contextOverride:this._loggerContext}),this.api=new AH(this)}static{this.webComponentName="epigraph-hotspot-tool"}static{this.styles=[super.styles]}static setupWebComponent(){window.customElements.get(Mr.webComponentName)||window.customElements.define(Mr.webComponentName,Mr)}getWebComponentName(){return Mr.webComponentName}}R_.setupWebComponent();hH.setupWebComponent();PT.setupWebComponent();NT.setupWebComponent();Mr.setupWebComponent();
|
|
8712
|
+
`]}static setupWebComponent(){window.customElements.get(Ta.webComponentName)||window.customElements.define(Ta.webComponentName,Ta)}getWebComponentName(){return Ta.webComponentName}firstUpdated(){const e=this.parsedUrlParams.get(Ii.identifierType),t=this.parsedUrlParams.get(Ii.identifier);e&&e&&this.setAttribute(String(e),String(t)),super.firstUpdated()}async _fetchExperienceDataConfig(){const e=new x0(St.resolveNexusEndpoint(this.apiMode),window.location.href,window.epigraph.epigraphSessionId,this.solutionVersion,this.xPath);let t=null;switch(this._identifierType){case"sku":t=await e.getViewerBySku(this._identifier,this.customVersionId);break;case"shopify_variant_id":t=await e.getViewerByShopifyVariantId(this._identifier,this.customVersionId);break;case"upc":t=await e.getViewerByUpc(this._identifier,this.customVersionId);break;case"asin":t=await e.getViewerByAsin(this._identifier,this.customVersionId);break;case"product_variant_uuid":t=await e.getTourByUuid(this._identifier,this.customVersionId);break;default:return window.epigraph.logger.error({title:`Identifier type: '${this._identifierType}' not supported!`,contextOverride:this._loggerContext}),Promise.reject()}return t}};fH([Ut("#viewInYourSpaceButton")],BT.prototype,"viewInYourSpaceButtonElem");let PT=BT;class LT extends RT{constructor(e){super(e),this._appWcRef=e}showHotspots(){this._appWcRef.showHotspots()}hideHotspots(){this._appWcRef.hideHotspots()}toggleHotspots(){this._appWcRef.toggleHotspots()}updateHotspotsOrder(e){this._appWcRef.updateHotspotsOrder(e)}openHotspot({hotspotId:e,state:t,skipHotspotOpenEvent:i=!1}){this._appWcRef.openHotspot({hotspotId:e,state:t,skipHotspotOpenEvent:i})}closeActiveHotspot(){this._appWcRef.closeActiveHotspot()}setActiveHotspotState(e){this._appWcRef.setActiveHotspotState(e)}nextHotspot(){return this._appWcRef.nextHotspot()}previousHotspot(){return this._appWcRef.previousHotspot()}getActiveHotspot(){return this._appWcRef.getActiveHotspot()}areHotspotsVisible(){return this._appWcRef.areHotspotsVisible()}getAllHotspots(){return this._appWcRef.getAllHotspots()}getAllHotspotIds(){return this._appWcRef.getAllHotspotIds()}getHotspotById(e){return this._appWcRef.getHotspotById(e)}createHotspots(e){this._appWcRef.createHotspots(e)}updateHotspots(e){this._appWcRef.updateHotspots(e)}removeHotspots(e){this._appWcRef.removeHotspots(e)}}const pH={hideHotspotsOnStart:{name:"hide-hotspots-on-start"}};var mH=Object.defineProperty,gH=(o,e,t,i)=>{for(var a=void 0,l=o.length-1,u;l>=0;l--)(u=o[l])&&(a=u(e,t,a)||a);return a&&mH(e,t,a),a};const DT=class Ia extends PT{constructor(){super(),this.featuresToEnable={viewer:!0,hotspots:!0,dimensions:!0,viewInYourSpace:!0,help:!0,sceneManager:!0},this.epigraphWebsiteRedirectUrls={icon:"https://www.epigraph.us/?utm_source=epigraph&utm_medium=experience&utm_campaign=powered-by&utm_id=powered-by-icon&utm_content=tour",modal:"https://www.epigraph.us/?utm_source=epigraph&utm_medium=experience&utm_campaign=powered-by&utm_id=powered-by-modal&utm_content=tour"},this.hideHotspotsOnStart=!1,this._loggerContext=Ia.webComponentName.toUpperCase(),window.epigraph.logger.info({title:`Initializing ${Ia.webComponentName}...`,contextOverride:this._loggerContext}),this.api=new LT(this)}static{this.webComponentName="epigraph-tour"}static{this.styles=[super.styles]}static setupWebComponent(){window.customElements.get(Ia.webComponentName)||window.customElements.define(Ia.webComponentName,Ia)}getWebComponentName(){return Ia.webComponentName}async _fetchExperienceDataConfig(){const e=new x0(St.resolveNexusEndpoint(this.apiMode),window.location.href,window.epigraph.epigraphSessionId,this.solutionVersion,this.xPath);let t=null;switch(this._identifierType){case"sku":t=await e.getTourBySku(this._identifier,this.customVersionId);break;case"shopify_variant_id":t=await e.getTourByShopifyVariantId(this._identifier,this.customVersionId);break;case"upc":t=await e.getTourByUpc(this._identifier,this.customVersionId);break;case"asin":t=await e.getTourByAsin(this._identifier,this.customVersionId);break;case"product_variant_uuid":t=await e.getTourByUuid(this._identifier,this.customVersionId);break;default:return window.epigraph.logger.error({title:`Identifier type: '${this._identifierType}' not supported!`,contextOverride:this._loggerContext}),Promise.reject()}return t}firstUpdated(){super.firstUpdated(),this.areHotspotsActive=!this.hideHotspotsOnStart}};gH([ue({type:Boolean,attribute:pH.hideHotspotsOnStart.name})],DT.prototype,"hideHotspotsOnStart");let NT=DT;class AH extends LT{constructor(e){super(e),this._appWcRef=e}addHotspot(e){this._appWcRef.hotspotsManager.addHotspot(e)}updateHotspot(e,t){this._appWcRef.hotspotsManager.updateHotspot(e,t)}removeHotspot(e){this._appWcRef.hotspotsManager.removeHotspot(e)}}class Mr extends NT{constructor(){super(),this._loggerContext=Mr.webComponentName.toUpperCase(),window.epigraph.logger.info({title:`Initializing ${Mr.webComponentName}...`,contextOverride:this._loggerContext}),this.api=new AH(this)}static{this.webComponentName="epigraph-hotspot-tool"}static{this.styles=[super.styles]}static setupWebComponent(){window.customElements.get(Mr.webComponentName)||window.customElements.define(Mr.webComponentName,Mr)}getWebComponentName(){return Mr.webComponentName}}R_.setupWebComponent();hH.setupWebComponent();PT.setupWebComponent();NT.setupWebComponent();Mr.setupWebComponent();
|