UNPKG

bottom-sheet

Version:

Bottom Sheet implemented as a Vanilla Web Component

1 lines 1.71 kB
!function(e,t,r,o,s,n,i,c,u,a,l,h,d,m){for(l=e.BottomSheet=e.BottomSheet||{},(h=t.createElement("style")).innerHTML=u+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),d=t.head.querySelector("meta[charset]"),t.head.insertBefore(h,d?d.nextSibling:t.head.firstChild),function(e,t,r){(e["s-apps"]=e["s-apps"]||[]).push("BottomSheet"),r.componentOnReady||(r.componentOnReady=function(){var t=this;function r(r){if(t.nodeName.indexOf("-")>0){for(var o=e["s-apps"],s=0,n=0;n<o.length;n++)if(e[o[n]].componentOnReady){if(e[o[n]].componentOnReady(t,r))return;s++}if(s<o.length)return void(e["s-cr"]=e["s-cr"]||[]).push([t,r])}r(null)}return e.Promise?new e.Promise(r):{then:r}})}(e,0,a),s=s||l.resourcesUrl,h=(d=t.querySelectorAll("script")).length-1;h>=0&&!(m=d[h]).src&&!m.hasAttribute("data-resources-url");h--);d=m.getAttribute("data-resources-url"),!s&&d&&(s=d),!s&&m.src&&(s=(d=m.src.split("/").slice(0,-1)).join("/")+(d.length?"/":"")+"bottom-sheet/"),h=t.createElement("script"),function(e,t,r,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 r)||function(e){try{return new Function('import("")'),!1}catch(e){}return!0}())}(e,e.location,h)?h.src=s+"bottom-sheet.poi4surx.js":(h.src=s+"bottom-sheet.v4q8t1bm.js",h.setAttribute("type","module"),h.setAttribute("crossorigin",!0)),h.setAttribute("data-resources-url",s),h.setAttribute("data-namespace","bottom-sheet"),t.head.appendChild(h)}(window,document,0,0,0,0,0,0,"bottom-sheet,bottom-sheet-indicator,bottom-sheet-screen",HTMLElement.prototype);