@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 • 4.45 kB
JavaScript
;(self.webpackChunkUV=self.webpackChunkUV||[]).push([[6644],{6644(n,t,r){r.r(t),r.d(t,{ion_skeleton_text:()=>o});var e=r(5873),i=r(636),o=function(){function n(n){(0,e.r)(this,n),this.animated=!1}return n.prototype.calculateWidth=function(){if(void 0!==this.width)return{style:{width:this.width}}},n.prototype.render=function(){var n,t=this.animated&&e.i.getBoolean("animated",!0),r=(0,i.h)("ion-avatar",this.el)||(0,i.h)("ion-thumbnail",this.el),o=(0,e.f)(this);return(0,e.h)(e.H,Object.assign({class:(n={},n[o]=!0,n["skeleton-text-animated"]=t,n["in-media"]=r,n)},this.calculateWidth()),(0,e.h)("span",null," "))},Object.defineProperty(n.prototype,"el",{get:function(){return(0,e.d)(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n,"style",{get:function(){return":host{--background:rgba(var(--background-rgb,var(--ion-text-color-rgb,0,0,0)),0.065);border-radius:var(--border-radius,inherit);display:block;width:100%;height:inherit;margin-top:4px;margin-bottom:4px;background:var(--background);line-height:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}span{display:inline-block}:host(.in-media){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;height:100%}:host(.skeleton-text-animated){position:relative;background:-webkit-gradient(linear,left top,right top,color-stop(8%,rgba(var(--background-rgb,var(--ion-text-color-rgb,0,0,0)),.065)),color-stop(18%,rgba(var(--background-rgb,var(--ion-text-color-rgb,0,0,0)),.135)),color-stop(33%,rgba(var(--background-rgb,var(--ion-text-color-rgb,0,0,0)),.065)));background:linear-gradient(90deg,rgba(var(--background-rgb,var(--ion-text-color-rgb,0,0,0)),.065) 8%,rgba(var(--background-rgb,var(--ion-text-color-rgb,0,0,0)),.135) 18%,rgba(var(--background-rgb,var(--ion-text-color-rgb,0,0,0)),.065) 33%);background-size:800px 104px;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:shimmer;animation-name:shimmer;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}@keyframes shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}"},enumerable:!0,configurable:!0}),n}()},636(n,t,r){r.d(t,{c:()=>i,g:()=>o,h:()=>e,o:()=>u});var e=function(n,t){return null!==t.closest(n)},i=function(n){var t;return"string"==typeof n&&n.length>0?((t={"ion-color":!0})["ion-color-"+n]=!0,t):void 0},o=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},a=/^[a-z][a-z0-9+\-.]*:/,u=function(n,t,r){return e=void 0,i=void 0,u=function(){var e;return function(n,t){var r,e,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,e&&(i=2&o[0]?e.return:o[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,o[1])).done)return i;switch(e=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,e=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(n,a)}catch(n){o=[6,n],e=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}(this,(function(i){return null!=n&&"#"!==n[0]&&!a.test(n)&&(e=document.querySelector("ion-router"))?(null!=t&&t.preventDefault(),[2,e.push(n,r)]):[2,!1]}))},new((o=void 0)||(o=Promise))((function(n,t){function r(n){try{l(u.next(n))}catch(n){t(n)}}function a(n){try{l(u.throw(n))}catch(n){t(n)}}function l(t){t.done?n(t.value):new o((function(n){n(t.value)})).then(r,a)}l((u=u.apply(e,i||[])).next())}));var e,i,o,u}}}]);