UNPKG

@huluvu424242/honey-slideshow

Version:

Text to Speech component wich is reading texts from DOM elements.

1 lines 2.28 kB
import{C as o,p as s,w as e,a as t,d as n,N as a,s as r}from"./p-4a369965.js";import{s as i,i as c}from"./p-a5836fd6.js";import{c as p,a as m,b as d,s as l}from"./p-343e47ca.js";const f="undefined"!=typeof Deno,_=!(f||"undefined"==typeof global||"function"!=typeof require||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),w=(f&&Deno,_?process:f&&Deno,_?process:f&&Deno,()=>o&&o.supports&&o.supports("color","var(--c)")?t():__sc_import_honey_slideshow("./p-a50735d6.js").then(()=>(s.o=e.__cssshim)?(!1).i():0)),u=()=>{s.o=e.__cssshim;const o=Array.from(n.querySelectorAll("script")).find(o=>RegExp(`/${a}(\\.esm)?\\.js($|\\?|#)`).test(o.src)||o.getAttribute("data-stencil-namespace")===a),r=o["data-opts"]||{};return"onbeforeload"in o&&!history.scrollRestoration?{then(){}}:(r.resourcesUrl=new URL(".",new URL(o.getAttribute("data-resources-url")||o.src,e.location.href)).href,g(r.resourcesUrl,o),e.customElements?t(r):__sc_import_honey_slideshow("./p-9105472a.js").then(()=>r))},g=(o,s)=>{const t="__sc_import_"+a.replace(/\s|-/g,"_");try{e[t]=Function("w","return import(w);//"+Math.random())}catch(r){const a=new Map;e[t]=r=>{const i=new URL(r,o).href;let c=a.get(i);if(!c){const o=n.createElement("script");o.type="module",o.crossOrigin=s.crossOrigin,o.src=URL.createObjectURL(new Blob([`import * as m from '${i}'; window.${t}.m = m;`],{type:"application/javascript"})),c=new Promise(s=>{o.onload=()=>{s(e[t].m),o.remove()}}),a.set(i,c),n.head.appendChild(o)}return c}}};let b;const j=()=>{const o=document,s=window,e=s.Ionic=s.Ionic||{};i(s);const t=Object.assign(Object.assign(Object.assign(Object.assign({},p(s)),{persistConfig:!1}),e.config),m(s));d.reset(t),d.getBoolean("persistConfig")&&l(s,t),e.config=d,e.mode=b=d.get("mode",o.documentElement.getAttribute("mode")||(c(s,"ios")?"ios":"md")),d.set("mode",b),o.documentElement.setAttribute("mode",b),o.documentElement.classList.add(b),d.getBoolean("_testing")&&d.set("animated",!1);const n=o=>o.tagName&&o.tagName.startsWith("ION-"),a=o=>["ios","md"].includes(o);r(o=>{for(;o;){const s=o.mode||o.getAttribute("mode");if(s){if(a(s))return s;n(o)&&console.warn('Invalid ionic mode: "'+s+'", expected: "ios" or "md"')}o=o.parentElement}return b})};export{w as a,j as g,u as p}