nextcloud/dist/comments-comments-app.js

3 lines
125 KiB
JavaScript
Raw Normal View History

/*! For license information please see comments-comments-app.js.LICENSE.txt */
(()=>{var r,e,o,a={23841:(r,e,o)=>{"use strict";var a=o(31352),s=o(77958),n=o(20144),i=o(64024),c=o(2324),l=o(25108);function u(r){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},u(r)}function p(r,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}function d(r){return function(r){if(Array.isArray(r)){for(var e=0,t=new Array(r.length);e<r.length;e++)t[e]=r[e];return t}}(r)||function(r){if(Symbol.iterator in Object(r)||"[object Arguments]"===Object.prototype.toString.call(r))return Array.from(r)}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function g(r,e){if(r===e)return!0;if("object"===u(r)){for(var t in r)if(!g(r[t],e[t]))return!1;return!0}return!1}var m=function(){function r(e,t,o){!function(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(t,o)}var e,t;return e=r,t=[{key:"createObserver",value:function(r,e){var t=this;if(this.observer&&this.destroyObserver(),!this.frozen){var o;if(this.options="function"==typeof(o=r)?{callback:o}:o,this.callback=function(r,e){t.options.callback(r,e),r&&t.options.once&&(t.frozen=!0,t.destroyObserver())},this.callback&&this.options.throttle){var a=(this.options.throttleOptions||{}).leading;this.callback=function(r,e){var t,o,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=function(n){for(var i=arguments.length,c=new Array(i>1?i-1:0),l=1;l<i;l++)c[l-1]=arguments[l];if(a=c,!t||n!==o){var u=s.leading;"function"==typeof u&&(u=u(n,o)),t&&n===o||!u||r.apply(void 0,[n].concat(d(a))),o=n,clearTimeout(t),t=setTimeout((function(){r.apply(void 0,[n].concat(d(a))),t=0}),e)}};return n._clear=function(){clearTimeout(t),t=null},n}(this.callback,this.options.throttle,{leading:function(r){return"both"===a||"visible"===a&&r||"hidden"===a&&!r}})}this.oldResult=void 0,this.observer=new IntersectionObserver((function(r){var e=r[0];if(r.length>1){var o=r.find((function(r){return r.isIntersecting}));o&&(e=o)}if(t.callback){var a=e.isIntersecting&&e.intersectionRatio>=t.threshold;if(a===t.oldResult)return;t.oldResult=a,t.callback(a,e)}}),this.options.intersection),e.context.$nextTick((function(){t.observer&&t.observer.observe(t.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&"number"==typeof this.options.intersection.threshold?this.options.intersection.threshold:0}}],t&&p(e.prototype,t),r}();function h(r,e,t){var o=e.value;if(o)if("undefined"==typeof IntersectionObserver)l.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var a=new m(r,o,t);r._vue_visibilityState=a}}function f(r){var e=r._vue_visibilityState;e&&(e.destroyObserver(),delete r._vue_visibilityState)}var b={bind:h,update:function(r,e,t){var o=e.value;if(!g(o,e.oldValue)){var a=r._vue_visibilityState;o?a?a.createObserver(o,t):h(r,{value:o},t):f(r)}},unbind:f},v={version:"1.0.0",install:function(r){r.directive("observe-visibility",b)}},y=null;"undefined"!=typeof window?y=window.Vue:void 0!==o.g&&(y=o.g.Vue),y&&y.use(v);const A=v;var w=o(22175),D=o(74628);const C={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var q=o(51900);const x=(0,q.Z)(C,(function(){var r=this,e=r._self._c;return e("span",r._b({staticClass:"material-design-icon refresh-icon",attrs:{"aria-hidden":!r.title,"aria-label":r.title,role:"img"},on:{click:function(e){return r.$emit("click",e)}}},"span",r.$attrs,!1),[e("svg"
//# sourceMappingURL=comments-comments-app.js.map?v=f38b193949400132c28b