aion-gql-webcomponents
Version:
AION Webcomponents using AION GraphQL
5 lines • 1.79 kB
JavaScript
/*!
* Built with http://stenciljs.com
* 2018-10-25T13:23:39
*/
!function(e,t,n,o,r,s,i,c,a,l,u,p,d,m){for(u=e[n]=e[n]||{},(p=t.createElement("style")).innerHTML="aion-blocks,aion-pay{visibility:hidden}.hydrated{visibility:inherit}",p.setAttribute("data-styles",""),d=t.head.querySelector("meta[charset]"),t.head.insertBefore(p,d?d.nextSibling:t.head.firstChild),function(e,t,n){(e["s-apps"]=e["s-apps"]||[]).push("AionGqlWebcomponents"),n.componentOnReady||(n.componentOnReady=function(){var t=this;function n(n){if(t.nodeName.indexOf("-")>0){for(var o=e["s-apps"],r=0,s=0;s<o.length;s++)if(e[o[s]].componentOnReady){if(e[o[s]].componentOnReady(t,n))return;r++}if(r<o.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,n])}n(null)}return e.Promise?new e.Promise(n):{then:n}})}(e,0,l),r=r||u.resourcesUrl,p=(d=t.querySelectorAll("script")).length-1;p>=0&&!(m=d[p]).src&&!m.hasAttribute("data-resources-url");p--);d=m.getAttribute("data-resources-url"),!r&&d&&(r=d),!r&&m.src&&(r=(d=m.src.split("/").slice(0,-1)).join("/")+(d.length?"/":"")+"aion-gql-webcomponents/"),p=t.createElement("script"),function(e,t,n,o){return!(t.search.indexOf("core=esm")>0)&&(!(!(t.search.indexOf("core=es5")>0||"file:"===t.protocol)&&e.customElements&&e.customElements.define&&e.fetch&&e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")&&"noModule"in n)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,p)?p.src=r+"aion-gql-webcomponents.y907uefy.js":(p.src=r+"aion-gql-webcomponents.37qkx98q.js",p.setAttribute("type","module"),p.setAttribute("crossorigin",!0)),p.setAttribute("data-resources-url",r),p.setAttribute("data-namespace","aion-gql-webcomponents"),t.head.appendChild(p)}(window,document,"AionGqlWebcomponents",0,0,0,0,0,0,HTMLElement.prototype);