UNPKG

@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 3.43 kB
"use strict";(self.webpackChunkUV=self.webpackChunkUV||[]).push([[2077],{2077(t,r,n){n.r(r),n.d(r,{ion_card_header:()=>i});var e=n(5873),o=n(636),i=function(){function t(t){(0,e.r)(this,t),this.translucent=!1}return t.prototype.render=function(){var t,r=(0,e.f)(this);return(0,e.h)(e.H,{class:Object.assign(Object.assign({},(0,o.c)(this.color)),(t={"card-header-translucent":this.translucent},t[r]=!0,t))},(0,e.h)("slot",null))},Object.defineProperty(t,"style",{get:function(){return":host{display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color) ::slotted(ion-card-subtitle),:host(.ion-color) ::slotted(ion-card-title){color:currentColor}:host{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:16px}@supports ((-webkit-margin-start:0) or (margin-inline-start:0)) or (-webkit-margin-start:0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}@supports ((-webkit-backdrop-filter:blur(0)) or (backdrop-filter:blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb,255,255,255),.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}"},enumerable:!0,configurable:!0}),t}()},636(t,r,n){n.d(r,{c:()=>o,g:()=>i,h:()=>e,o:()=>u});var e=function(t,r){return null!==r.closest(t)},o=function(t){var r;return"string"==typeof t&&t.length>0?((r={"ion-color":!0})["ion-color-"+t]=!0,r):void 0},i=function(t){var r={};return function(t){return void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter((function(t){return null!=t})).map((function(t){return t.trim()})).filter((function(t){return""!==t})):[]}(t).forEach((function(t){return r[t]=!0})),r},a=/^[a-z][a-z0-9+\-.]*:/,u=function(t,r,n){return e=void 0,o=void 0,u=function(){var e;return function(t,r){var n,e,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,e&&(o=2&i[0]?e.return:i[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,i[1])).done)return o;switch(e=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,e=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(t,a)}catch(t){i=[6,t],e=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}(this,(function(o){return null!=t&&"#"!==t[0]&&!a.test(t)&&(e=document.querySelector("ion-router"))?(null!=r&&r.preventDefault(),[2,e.push(t,n)]):[2,!1]}))},new((i=void 0)||(i=Promise))((function(t,r){function n(t){try{l(u.next(t))}catch(t){r(t)}}function a(t){try{l(u.throw(t))}catch(t){r(t)}}function l(r){r.done?t(r.value):new i((function(t){t(r.value)})).then(n,a)}l((u=u.apply(e,o||[])).next())}));var e,o,i,u}}}]);