@tindtechnologies/universalviewer
Version:
The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎
1 lines • 2.54 kB
JavaScript
;(self.webpackChunkUV=self.webpackChunkUV||[]).push([[2678],{2678(n,t,r){r.r(t),r.d(t,{ion_text:()=>u});var e=r(5873),o=r(636),u=function(){function n(n){(0,e.r)(this,n)}return n.prototype.render=function(){var n,t=(0,e.f)(this);return(0,e.h)(e.H,{class:Object.assign(Object.assign({},(0,o.c)(this.color)),(n={},n[t]=!0,n))},(0,e.h)("slot",null))},Object.defineProperty(n,"style",{get:function(){return":host(.ion-color){color:var(--ion-color-base)}"},enumerable:!0,configurable:!0}),n}()},636(n,t,r){r.d(t,{c:()=>o,g:()=>u,h:()=>e,o:()=>c});var e=function(n,t){return null!==t.closest(n)},o=function(n){var t;return"string"==typeof n&&n.length>0?((t={"ion-color":!0})["ion-color-"+n]=!0,t):void 0},u=function(n){var t={};return function(n){return void 0!==n?(Array.isArray(n)?n:n.split(" ")).filter((function(n){return null!=n})).map((function(n){return n.trim()})).filter((function(n){return""!==n})):[]}(n).forEach((function(n){return t[n]=!0})),t},i=/^[a-z][a-z0-9+\-.]*:/,c=function(n,t,r){return e=void 0,o=void 0,c=function(){var e;return function(n,t){var r,e,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,e&&(o=2&u[0]?e.return:u[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,u[1])).done)return o;switch(e=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,e=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(n,i)}catch(n){u=[6,n],e=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}(this,(function(o){return null!=n&&"#"!==n[0]&&!i.test(n)&&(e=document.querySelector("ion-router"))?(null!=t&&t.preventDefault(),[2,e.push(n,r)]):[2,!1]}))},new((u=void 0)||(u=Promise))((function(n,t){function r(n){try{l(c.next(n))}catch(n){t(n)}}function i(n){try{l(c.throw(n))}catch(n){t(n)}}function l(t){t.done?n(t.value):new u((function(n){n(t.value)})).then(r,i)}l((c=c.apply(e,o||[])).next())}));var e,o,u,c}}}]);