forked from mauricerenck/komments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 51.2 KB
/
index.js
1
(()=>{(function(){"use strict";var at=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"k-komments"},[r("k-list",{attrs:{"data-size":"medium"}},t._l(t.komments,function(s){return r("k-list-item",{key:s.title,attrs:{link:s.url+"#komments",info:""+s.author,text:s.title+" - "+s.komment,image:{ratio:"1/1",cover:!0,back:"pattern",url:s.image},target:"_self"}})}),1)],1)},lt=[];function S(t,e,r,s,i,n,a,o){var l=typeof t=="function"?t.options:t;e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),s&&(l.functional=!0),n&&(l._scopeId="data-v-"+n);var u;if(a?(u=function(m){m=m||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!m&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(m=__VUE_SSR_CONTEXT__),i&&i.call(this,m),m&&m._registeredComponents&&m._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=o?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var f=l.render;l.render=function(h,ee){return u.call(ee),f(h,ee)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,u):[u]}return{exports:t,options:l}}const ot={data(){return{komments:[]}},created(){this.load()},methods:{load(){this.$api.get("komments/queued").then(t=>{this.komments=t})}}},Ee={};var ct=S(ot,at,lt,!1,ht,null,null,null);function ht(t){for(let e in Ee)this[e]=Ee[e]}var ut=function(){return ct.exports}(),ft=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"k-spam-komments"},[r("k-list",{attrs:{"data-size":"medium"}},t._l(t.komments,function(s){return r("k-list-item",{key:s.title,attrs:{link:s.url+"#komments",info:""+s.author,text:s.title+" - "+s.komment,image:{ratio:"1/1",cover:!0,back:"pattern",url:s.image},target:"_self"}})}),1)],1)},mt=[];const pt={data(){return{komments:[]}},created(){this.load()},methods:{load(){this.$api.get("komments/spam").then(t=>{this.komments=t})}}},_e={};var dt=S(pt,ft,mt,!1,vt,null,null,null);function vt(t){for(let e in _e)this[e]=_e[e]}var $t=function(){return dt.exports}(),O={exports:{}};const Et="2.0.0",_t=256,gt=Number.MAX_SAFE_INTEGER||9007199254740991;var K={SEMVER_SPEC_VERSION:Et,MAX_LENGTH:_t,MAX_SAFE_INTEGER:gt,MAX_SAFE_COMPONENT_LENGTH:16},V=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:r}=K,s=V;e=t.exports={};const i=e.re=[],n=e.src=[],a=e.t={};let o=0;const l=(u,f,c)=>{const m=o++;s(m,f),a[u]=m,n[m]=f,i[m]=new RegExp(f,c?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${n[a.NUMERICIDENTIFIER]})\\.(${n[a.NUMERICIDENTIFIER]})\\.(${n[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${n[a.NUMERICIDENTIFIERLOOSE]})\\.(${n[a.NUMERICIDENTIFIERLOOSE]})\\.(${n[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${n[a.NUMERICIDENTIFIER]}|${n[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${n[a.NUMERICIDENTIFIERLOOSE]}|${n[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${n[a.PRERELEASEIDENTIFIER]}(?:\\.${n[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${n[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${n[a.BUILDIDENTIFIER]}(?:\\.${n[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${n[a.MAINVERSION]}${n[a.PRERELEASE]}?${n[a.BUILD]}?`),l("FULL",`^${n[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${n[a.MAINVERSIONLOOSE]}${n[a.PRERELEASELOOSE]}?${n[a.BUILD]}?`),l("LOOSE",`^${n[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${n[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${n[a.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${n[a.XRANGEIDENTIFIER]})(?:\\.(${n[a.XRANGEIDENTIFIER]})(?:\\.(${n[a.XRANGEIDENTIFIER]})(?:${n[a.PRERELEASE]})?${n[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${n[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[a.XRANGEIDENTIFIERLOOSE]})(?:${n[a.PRERELEASELOOSE]})?${n[a.BUILD]}?)?)?`),l("XRANGE",`^${n[a.GTLT]}\\s*${n[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${n[a.GTLT]}\\s*${n[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),l("COERCERTL",n[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${n[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",l("TILDE",`^${n[a.LONETILDE]}${n[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${n[a.LONETILDE]}${n[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${n[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",l("CARET",`^${n[a.LONECARET]}${n[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${n[a.LONECARET]}${n[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${n[a.GTLT]}\\s*(${n[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${n[a.GTLT]}\\s*(${n[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${n[a.GTLT]}\\s*(${n[a.LOOSEPLAIN]}|${n[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${n[a.XRANGEPLAIN]})\\s+-\\s+(${n[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${n[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})(O,O.exports);const Rt=["includePrerelease","loose","rtl"];var X=t=>t?typeof t!="object"?{loose:!0}:Rt.filter(e=>t[e]).reduce((e,r)=>(e[r]=!0,e),{}):{};const ge=/^[0-9]+$/,Re=(t,e)=>{const r=ge.test(t),s=ge.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1};var te={compareIdentifiers:Re,rcompareIdentifiers:(t,e)=>Re(e,t)};const U=V,{MAX_LENGTH:ye,MAX_SAFE_INTEGER:q}=K,{re:Ie,t:Ae}=O.exports,yt=X,{compareIdentifiers:P}=te;class R{constructor(e,r){if(r=yt(r),e instanceof R){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>ye)throw new TypeError(`version is longer than ${ye} characters`);U("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const s=e.trim().match(r.loose?Ie[Ae.LOOSE]:Ie[Ae.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>q||this.major<0)throw new TypeError("Invalid major version");if(this.minor>q||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>q||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const n=+i;if(n>=0&&n<q)return n}return i}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(U("SemVer.compare",this.version,this.options,e),!(e instanceof R)){if(typeof e=="string"&&e===this.version)return 0;e=new R(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof R||(e=new R(e,this.options)),P(this.major,e.major)||P(this.minor,e.minor)||P(this.patch,e.patch)}comparePre(e){if(e instanceof R||(e=new R(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{const s=this.prerelease[r],i=e.prerelease[r];if(U("prerelease compare",r,s,i),s===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(s===void 0)return-1;if(s===i)continue;return P(s,i)}while(++r)}compareBuild(e){e instanceof R||(e=new R(e,this.options));let r=0;do{const s=this.build[r],i=e.build[r];if(U("prerelease compare",r,s,i),s===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(s===void 0)return-1;if(s===i)continue;return P(s,i)}while(++r)}inc(e,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);s===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}var _=R;const{MAX_LENGTH:It}=K,{re:Se,t:Ne}=O.exports,Le=_,At=X;var k=(t,e)=>{if(e=At(e),t instanceof Le)return t;if(typeof t!="string"||t.length>It||!(e.loose?Se[Ne.LOOSE]:Se[Ne.FULL]).test(t))return null;try{return new Le(t,e)}catch{return null}};const St=k;var Nt=(t,e)=>{const r=St(t,e);return r?r.version:null};const Lt=k;var Ot=(t,e)=>{const r=Lt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};const wt=_;var Tt=(t,e,r,s)=>{typeof r=="string"&&(s=r,r=void 0);try{return new wt(t,r).inc(e,s).version}catch{return null}};const Oe=_;var y=(t,e,r)=>new Oe(t,r).compare(new Oe(e,r));const xt=y;var re=(t,e,r)=>xt(t,e,r)===0;const we=k,kt=re;var bt=(t,e)=>{if(kt(t,e))return null;{const r=we(t),s=we(e),i=r.prerelease.length||s.prerelease.length,n=i?"pre":"",a=i?"prerelease":"";for(const o in r)if((o==="major"||o==="minor"||o==="patch")&&r[o]!==s[o])return n+o;return a}};const Ct=_;var Pt=(t,e)=>new Ct(t,e).major;const Dt=_;var Gt=(t,e)=>new Dt(t,e).minor;const Ft=_;var jt=(t,e)=>new Ft(t,e).patch;const Mt=k;var Kt=(t,e)=>{const r=Mt(t,e);return r&&r.prerelease.length?r.prerelease:null};const Vt=y;var Xt=(t,e,r)=>Vt(e,t,r);const Ut=y;var qt=(t,e)=>Ut(t,e,!0);const Te=_;var se=(t,e,r)=>{const s=new Te(t,r),i=new Te(e,r);return s.compare(i)||s.compareBuild(i)};const Bt=se;var Ht=(t,e)=>t.sort((r,s)=>Bt(r,s,e));const Yt=se;var Zt=(t,e)=>t.sort((r,s)=>Yt(s,r,e));const zt=y;var B=(t,e,r)=>zt(t,e,r)>0;const Qt=y;var ne=(t,e,r)=>Qt(t,e,r)<0;const Wt=y;var xe=(t,e,r)=>Wt(t,e,r)!==0;const Jt=y;var ie=(t,e,r)=>Jt(t,e,r)>=0;const er=y;var ae=(t,e,r)=>er(t,e,r)<=0;const tr=re,rr=xe,sr=B,nr=ie,ir=ne,ar=ae;var ke=(t,e,r,s)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return tr(t,r,s);case"!=":return rr(t,r,s);case">":return sr(t,r,s);case">=":return nr(t,r,s);case"<":return ir(t,r,s);case"<=":return ar(t,r,s);default:throw new TypeError(`Invalid operator: ${e}`)}};const lr=_,or=k,{re:H,t:Y}=O.exports;var cr=(t,e)=>{if(t instanceof lr)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(H[Y.COERCE]);else{let s;for(;(s=H[Y.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||s.index+s[0].length!==r.index+r[0].length)&&(r=s),H[Y.COERCERTL].lastIndex=s.index+s[1].length+s[2].length;H[Y.COERCERTL].lastIndex=-1}return r===null?null:or(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)},hr=p;p.Node=w,p.create=p;function p(t){var e=this;if(e instanceof p||(e=new p),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,s=arguments.length;r<s;r++)e.push(arguments[r]);return e}p.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},p.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},p.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},p.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)fr(this,arguments[t]);return this.length},p.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)mr(this,arguments[t]);return this.length},p.prototype.pop=function(){if(!!this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},p.prototype.shift=function(){if(!!this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},p.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,s=0;r!==null;s++)t.call(e,r.value,s,this),r=r.next},p.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,s=this.length-1;r!==null;s--)t.call(e,r.value,s,this),r=r.prev},p.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value},p.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value},p.prototype.map=function(t,e){e=e||this;for(var r=new p,s=this.head;s!==null;)r.push(t.call(e,s.value,this)),s=s.next;return r},p.prototype.mapReverse=function(t,e){e=e||this;for(var r=new p,s=this.tail;s!==null;)r.push(t.call(e,s.value,this)),s=s.prev;return r},p.prototype.reduce=function(t,e){var r,s=this.head;if(arguments.length>1)r=e;else if(this.head)s=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;s!==null;i++)r=t(r,s.value,i),s=s.next;return r},p.prototype.reduceReverse=function(t,e){var r,s=this.tail;if(arguments.length>1)r=e;else if(this.tail)s=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;s!==null;i--)r=t(r,s.value,i),s=s.prev;return r},p.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t},p.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t},p.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var s=0,i=this.head;i!==null&&s<t;s++)i=i.next;for(;i!==null&&s<e;s++,i=i.next)r.push(i.value);return r},p.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var s=this.length,i=this.tail;i!==null&&s>e;s--)i=i.prev;for(;i!==null&&s>t;s--,i=i.prev)r.push(i.value);return r},p.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var s=0,i=this.head;i!==null&&s<t;s++)i=i.next;for(var n=[],s=0;i&&s<e;s++)n.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var s=0;s<r.length;s++)i=ur(this,i,r[s]);return n},p.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var s=r.prev;r.prev=r.next,r.next=s}return this.head=e,this.tail=t,this};function ur(t,e,r){var s=e===t.head?new w(r,null,e,t):new w(r,e,e.next,t);return s.next===null&&(t.tail=s),s.prev===null&&(t.head=s),t.length++,s}function fr(t,e){t.tail=new w(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function mr(t,e){t.head=new w(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function w(t,e,r,s){if(!(this instanceof w))return new w(t,e,r,s);this.list=s,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{require("./iterator.js")(p)}catch{}const pr=hr,T=Symbol("max"),N=Symbol("length"),b=Symbol("lengthCalculator"),D=Symbol("allowStale"),x=Symbol("maxAge"),L=Symbol("dispose"),be=Symbol("noDisposeOnSet"),v=Symbol("lruList"),I=Symbol("cache"),Ce=Symbol("updateAgeOnGet"),le=()=>1;class dr{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[T]=e.max||1/0;const r=e.length||le;if(this[b]=typeof r!="function"?le:r,this[D]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[x]=e.maxAge||0,this[L]=e.dispose,this[be]=e.noDisposeOnSet||!1,this[Ce]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[T]=e||1/0,G(this)}get max(){return this[T]}set allowStale(e){this[D]=!!e}get allowStale(){return this[D]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[x]=e,G(this)}get maxAge(){return this[x]}set lengthCalculator(e){typeof e!="function"&&(e=le),e!==this[b]&&(this[b]=e,this[N]=0,this[v].forEach(r=>{r.length=this[b](r.value,r.key),this[N]+=r.length})),G(this)}get lengthCalculator(){return this[b]}get length(){return this[N]}get itemCount(){return this[v].length}rforEach(e,r){r=r||this;for(let s=this[v].tail;s!==null;){const i=s.prev;Pe(this,e,s,r),s=i}}forEach(e,r){r=r||this;for(let s=this[v].head;s!==null;){const i=s.next;Pe(this,e,s,r),s=i}}keys(){return this[v].toArray().map(e=>e.key)}values(){return this[v].toArray().map(e=>e.value)}reset(){this[L]&&this[v]&&this[v].length&&this[v].forEach(e=>this[L](e.key,e.value)),this[I]=new Map,this[v]=new pr,this[N]=0}dump(){return this[v].map(e=>Z(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[v]}set(e,r,s){if(s=s||this[x],s&&typeof s!="number")throw new TypeError("maxAge must be a number");const i=s?Date.now():0,n=this[b](r,e);if(this[I].has(e)){if(n>this[T])return C(this,this[I].get(e)),!1;const l=this[I].get(e).value;return this[L]&&(this[be]||this[L](e,l.value)),l.now=i,l.maxAge=s,l.value=r,this[N]+=n-l.length,l.length=n,this.get(e),G(this),!0}const a=new vr(e,r,n,i,s);return a.length>this[T]?(this[L]&&this[L](e,r),!1):(this[N]+=a.length,this[v].unshift(a),this[I].set(e,this[v].head),G(this),!0)}has(e){if(!this[I].has(e))return!1;const r=this[I].get(e).value;return!Z(this,r)}get(e){return oe(this,e,!0)}peek(e){return oe(this,e,!1)}pop(){const e=this[v].tail;return e?(C(this,e),e.value):null}del(e){C(this,this[I].get(e))}load(e){this.reset();const r=Date.now();for(let s=e.length-1;s>=0;s--){const i=e[s],n=i.e||0;if(n===0)this.set(i.k,i.v);else{const a=n-r;a>0&&this.set(i.k,i.v,a)}}}prune(){this[I].forEach((e,r)=>oe(this,r,!1))}}const oe=(t,e,r)=>{const s=t[I].get(e);if(s){const i=s.value;if(Z(t,i)){if(C(t,s),!t[D])return}else r&&(t[Ce]&&(s.value.now=Date.now()),t[v].unshiftNode(s));return i.value}},Z=(t,e)=>{if(!e||!e.maxAge&&!t[x])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[x]&&r>t[x]},G=t=>{if(t[N]>t[T])for(let e=t[v].tail;t[N]>t[T]&&e!==null;){const r=e.prev;C(t,e),e=r}},C=(t,e)=>{if(e){const r=e.value;t[L]&&t[L](r.key,r.value),t[N]-=r.length,t[I].delete(r.key),t[v].removeNode(e)}};class vr{constructor(e,r,s,i,n){this.key=e,this.value=r,this.length=s,this.now=i,this.maxAge=n||0}}const Pe=(t,e,r,s)=>{let i=r.value;Z(t,i)&&(C(t,r),t[D]||(i=void 0)),i&&e.call(s,i.value,i.key,t)};var $r=dr;class F{constructor(e,r){if(r=_r(r),e instanceof F)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new F(e.raw,r);if(e instanceof ce)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const s=this.set[0];if(this.set=this.set.filter(i=>!Ge(i[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(const i of this.set)if(i.length===1&&Ar(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const s=`parseRange:${Object.keys(this.options).join(",")}:${e}`,i=De.get(s);if(i)return i;const n=this.options.loose,a=n?E[$.HYPHENRANGELOOSE]:E[$.HYPHENRANGE];e=e.replace(a,Cr(this.options.includePrerelease)),d("hyphen replace",e),e=e.replace(E[$.COMPARATORTRIM],Rr),d("comparator trim",e,E[$.COMPARATORTRIM]),e=e.replace(E[$.TILDETRIM],yr),e=e.replace(E[$.CARETTRIM],Ir),e=e.split(/\s+/).join(" ");const o=n?E[$.COMPARATORLOOSE]:E[$.COMPARATOR],l=e.split(" ").map(c=>Sr(c,this.options)).join(" ").split(/\s+/).map(c=>br(c,this.options)).filter(this.options.loose?c=>!!c.match(o):()=>!0).map(c=>new ce(c,this.options));l.length;const u=new Map;for(const c of l){if(Ge(c))return[c];u.set(c.value,c)}u.size>1&&u.has("")&&u.delete("");const f=[...u.values()];return De.set(s,f),f}intersects(e,r){if(!(e instanceof F))throw new TypeError("a Range is required");return this.set.some(s=>Fe(s,r)&&e.set.some(i=>Fe(i,r)&&s.every(n=>i.every(a=>n.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new gr(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Pr(this.set[r],e,this.options))return!0;return!1}}var A=F;const Er=$r,De=new Er({max:1e3}),_r=X,ce=Q,d=V,gr=_,{re:E,t:$,comparatorTrimReplace:Rr,tildeTrimReplace:yr,caretTrimReplace:Ir}=O.exports,Ge=t=>t.value==="<0.0.0-0",Ar=t=>t.value==="",Fe=(t,e)=>{let r=!0;const s=t.slice();let i=s.pop();for(;r&&s.length;)r=s.every(n=>i.intersects(n,e)),i=s.pop();return r},Sr=(t,e)=>(d("comp",t,e),t=Or(t,e),d("caret",t),t=Nr(t,e),d("tildes",t),t=Tr(t,e),d("xrange",t),t=kr(t,e),d("stars",t),t),g=t=>!t||t.toLowerCase()==="x"||t==="*",Nr=(t,e)=>t.trim().split(/\s+/).map(r=>Lr(r,e)).join(" "),Lr=(t,e)=>{const r=e.loose?E[$.TILDELOOSE]:E[$.TILDE];return t.replace(r,(s,i,n,a,o)=>{d("tilde",t,s,i,n,a,o);let l;return g(i)?l="":g(n)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:g(a)?l=`>=${i}.${n}.0 <${i}.${+n+1}.0-0`:o?(d("replaceTilde pr",o),l=`>=${i}.${n}.${a}-${o} <${i}.${+n+1}.0-0`):l=`>=${i}.${n}.${a} <${i}.${+n+1}.0-0`,d("tilde return",l),l})},Or=(t,e)=>t.trim().split(/\s+/).map(r=>wr(r,e)).join(" "),wr=(t,e)=>{d("caret",t,e);const r=e.loose?E[$.CARETLOOSE]:E[$.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(i,n,a,o,l)=>{d("caret",t,i,n,a,o,l);let u;return g(n)?u="":g(a)?u=`>=${n}.0.0${s} <${+n+1}.0.0-0`:g(o)?n==="0"?u=`>=${n}.${a}.0${s} <${n}.${+a+1}.0-0`:u=`>=${n}.${a}.0${s} <${+n+1}.0.0-0`:l?(d("replaceCaret pr",l),n==="0"?a==="0"?u=`>=${n}.${a}.${o}-${l} <${n}.${a}.${+o+1}-0`:u=`>=${n}.${a}.${o}-${l} <${n}.${+a+1}.0-0`:u=`>=${n}.${a}.${o}-${l} <${+n+1}.0.0-0`):(d("no pr"),n==="0"?a==="0"?u=`>=${n}.${a}.${o}${s} <${n}.${a}.${+o+1}-0`:u=`>=${n}.${a}.${o}${s} <${n}.${+a+1}.0-0`:u=`>=${n}.${a}.${o} <${+n+1}.0.0-0`),d("caret return",u),u})},Tr=(t,e)=>(d("replaceXRanges",t,e),t.split(/\s+/).map(r=>xr(r,e)).join(" ")),xr=(t,e)=>{t=t.trim();const r=e.loose?E[$.XRANGELOOSE]:E[$.XRANGE];return t.replace(r,(s,i,n,a,o,l)=>{d("xRange",t,s,i,n,a,o,l);const u=g(n),f=u||g(a),c=f||g(o),m=c;return i==="="&&m&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?s="<0.0.0-0":s="*":i&&m?(f&&(a=0),o=0,i===">"?(i=">=",f?(n=+n+1,a=0,o=0):(a=+a+1,o=0)):i==="<="&&(i="<",f?n=+n+1:a=+a+1),i==="<"&&(l="-0"),s=`${i+n}.${a}.${o}${l}`):f?s=`>=${n}.0.0${l} <${+n+1}.0.0-0`:c&&(s=`>=${n}.${a}.0${l} <${n}.${+a+1}.0-0`),d("xRange return",s),s})},kr=(t,e)=>(d("replaceStars",t,e),t.trim().replace(E[$.STAR],"")),br=(t,e)=>(d("replaceGTE0",t,e),t.trim().replace(E[e.includePrerelease?$.GTE0PRE:$.GTE0],"")),Cr=t=>(e,r,s,i,n,a,o,l,u,f,c,m,h)=>(g(s)?r="":g(i)?r=`>=${s}.0.0${t?"-0":""}`:g(n)?r=`>=${s}.${i}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,g(u)?l="":g(f)?l=`<${+u+1}.0.0-0`:g(c)?l=`<${u}.${+f+1}.0-0`:m?l=`<=${u}.${f}.${c}-${m}`:t?l=`<${u}.${f}.${+c+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),Pr=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let s=0;s<t.length;s++)if(d(t[s].semver),t[s].semver!==ce.ANY&&t[s].semver.prerelease.length>0){const i=t[s].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0},j=Symbol("SemVer ANY");class z{static get ANY(){return j}constructor(e,r){if(r=Dr(r),e instanceof z){if(e.loose===!!r.loose)return e;e=e.value}ue("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===j?this.value="":this.value=this.operator+this.semver.version,ue("comp",this)}parse(e){const r=this.options.loose?je[Me.COMPARATORLOOSE]:je[Me.COMPARATOR],s=e.match(r);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new Ke(s[2],this.options.loose):this.semver=j}toString(){return this.value}test(e){if(ue("Comparator.test",e,this.options.loose),this.semver===j||e===j)return!0;if(typeof e=="string")try{e=new Ke(e,this.options)}catch{return!1}return he(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof z))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Ve(e.value,r).test(this.value);if(e.operator==="")return e.value===""?!0:new Ve(this.value,r).test(e.semver);const s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),n=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=he(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=he(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return s||i||n&&a||o||l}}var Q=z;const Dr=X,{re:je,t:Me}=O.exports,he=ke,ue=V,Ke=_,Ve=A,Gr=A;var W=(t,e,r)=>{try{e=new Gr(e,r)}catch{return!1}return e.test(t)};const Fr=A;var jr=(t,e)=>new Fr(t,e).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));const Mr=_,Kr=A;var Vr=(t,e,r)=>{let s=null,i=null,n=null;try{n=new Kr(e,r)}catch{return null}return t.forEach(a=>{n.test(a)&&(!s||i.compare(a)===-1)&&(s=a,i=new Mr(s,r))}),s};const Xr=_,Ur=A;var qr=(t,e,r)=>{let s=null,i=null,n=null;try{n=new Ur(e,r)}catch{return null}return t.forEach(a=>{n.test(a)&&(!s||i.compare(a)===1)&&(s=a,i=new Xr(s,r))}),s};const fe=_,Br=A,Xe=B;var Hr=(t,e)=>{t=new Br(t,e);let r=new fe("0.0.0");if(t.test(r)||(r=new fe("0.0.0-0"),t.test(r)))return r;r=null;for(let s=0;s<t.set.length;++s){const i=t.set[s];let n=null;i.forEach(a=>{const o=new fe(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!n||Xe(o,n))&&(n=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),n&&(!r||Xe(r,n))&&(r=n)}return r&&t.test(r)?r:null};const Yr=A;var Zr=(t,e)=>{try{return new Yr(t,e).range||"*"}catch{return null}};const zr=_,Ue=Q,{ANY:Qr}=Ue,Wr=A,Jr=W,qe=B,Be=ne,es=ae,ts=ie;var me=(t,e,r,s)=>{t=new zr(t,s),e=new Wr(e,s);let i,n,a,o,l;switch(r){case">":i=qe,n=es,a=Be,o=">",l=">=";break;case"<":i=Be,n=ts,a=qe,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Jr(t,e,s))return!1;for(let u=0;u<e.set.length;++u){const f=e.set[u];let c=null,m=null;if(f.forEach(h=>{h.semver===Qr&&(h=new Ue(">=0.0.0")),c=c||h,m=m||h,i(h.semver,c.semver,s)?c=h:a(h.semver,m.semver,s)&&(m=h)}),c.operator===o||c.operator===l||(!m.operator||m.operator===o)&&n(t,m.semver))return!1;if(m.operator===l&&a(t,m.semver))return!1}return!0};const rs=me;var ss=(t,e,r)=>rs(t,e,">",r);const ns=me;var is=(t,e,r)=>ns(t,e,"<",r);const He=A;var as=(t,e,r)=>(t=new He(t,r),e=new He(e,r),t.intersects(e));const ls=W,os=y;var cs=(t,e,r)=>{const s=[];let i=null,n=null;const a=t.sort((f,c)=>os(f,c,r));for(const f of a)ls(f,e,r)?(n=f,i||(i=f)):(n&&s.push([i,n]),n=null,i=null);i&&s.push([i,null]);const o=[];for(const[f,c]of s)f===c?o.push(f):!c&&f===a[0]?o.push("*"):c?f===a[0]?o.push(`<=${c}`):o.push(`${f} - ${c}`):o.push(`>=${f}`);const l=o.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e};const Ye=A,J=Q,{ANY:pe}=J,M=W,de=y,hs=(t,e,r={})=>{if(t===e)return!0;t=new Ye(t,r),e=new Ye(e,r);let s=!1;e:for(const i of t.set){for(const n of e.set){const a=us(i,n,r);if(s=s||a!==null,a)continue e}if(s)return!1}return!0},us=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===pe){if(e.length===1&&e[0].semver===pe)return!0;r.includePrerelease?t=[new J(">=0.0.0-0")]:t=[new J(">=0.0.0")]}if(e.length===1&&e[0].semver===pe){if(r.includePrerelease)return!0;e=[new J(">=0.0.0")]}const s=new Set;let i,n;for(const h of t)h.operator===">"||h.operator===">="?i=Ze(i,h,r):h.operator==="<"||h.operator==="<="?n=ze(n,h,r):s.add(h.semver);if(s.size>1)return null;let a;if(i&&n){if(a=de(i.semver,n.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||n.operator!=="<="))return null}for(const h of s){if(i&&!M(h,String(i),r)||n&&!M(h,String(n),r))return null;for(const ee of e)if(!M(h,String(ee),r))return!1;return!0}let o,l,u,f,c=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;c&&c.prerelease.length===1&&n.operator==="<"&&c.prerelease[0]===0&&(c=!1);for(const h of e){if(f=f||h.operator===">"||h.operator===">=",u=u||h.operator==="<"||h.operator==="<=",i){if(m&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===m.major&&h.semver.minor===m.minor&&h.semver.patch===m.patch&&(m=!1),h.operator===">"||h.operator===">="){if(o=Ze(i,h,r),o===h&&o!==i)return!1}else if(i.operator===">="&&!M(i.semver,String(h),r))return!1}if(n){if(c&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===c.major&&h.semver.minor===c.minor&&h.semver.patch===c.patch&&(c=!1),h.operator==="<"||h.operator==="<="){if(l=ze(n,h,r),l===h&&l!==n)return!1}else if(n.operator==="<="&&!M(n.semver,String(h),r))return!1}if(!h.operator&&(n||i)&&a!==0)return!1}return!(i&&u&&!n&&a!==0||n&&f&&!i&&a!==0||m||c)},Ze=(t,e,r)=>{if(!t)return e;const s=de(t.semver,e.semver,r);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},ze=(t,e,r)=>{if(!t)return e;const s=de(t.semver,e.semver,r);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};var fs=hs;const ve=O.exports;var $e={re:ve.re,src:ve.src,tokens:ve.t,SEMVER_SPEC_VERSION:K.SEMVER_SPEC_VERSION,SemVer:_,compareIdentifiers:te.compareIdentifiers,rcompareIdentifiers:te.rcompareIdentifiers,parse:k,valid:Nt,clean:Ot,inc:Tt,diff:bt,major:Pt,minor:Gt,patch:jt,prerelease:Kt,compare:y,rcompare:Xt,compareLoose:qt,compareBuild:se,sort:Ht,rsort:Zt,gt:B,lt:ne,eq:re,neq:xe,gte:ie,lte:ae,cmp:ke,coerce:cr,Comparator:Q,Range:A,satisfies:W,toComparators:jr,maxSatisfying:Vr,minSatisfying:qr,minVersion:Hr,validRange:Zr,outside:me,gtr:ss,ltr:is,intersects:as,simplifyRange:cs,subset:fs},ms=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"k-support"},[t.hasError?r("div",{staticClass:"error"},[r("k-info-field",{attrs:{theme:"negative",label:"Ooops",text:"The current version could not be fetched. You may have reached an API limit"}})],1):r("div",{staticClass:"versionBox"},[t.hasVersionDiff?r("div",[r("h4",{staticClass:"update-available"},[t._v("There is an update available")]),r("h3",{staticClass:"version"},[t._v(t._s(this.releaseInfo))])]):r("div",[r("h4",[t._v("Your Komments plugin is up to date")])]),r("small",{staticClass:"align-center"},[t._v("Your installed version is "+t._s(this.version))])])])},ps=[],Un="";const ds={data(){return{version:"",releaseInfo:0,hasVersionDiff:!1,hasError:!1}},created(){this.load()},computed:{},methods:{load(){this.$api.get("komments/version").then(t=>{this.version=t.version}).then(()=>{fetch("https://repo.packagist.org/p/mauricerenck/komments.json",{method:"GET"}).then(t=>t.json()).then(t=>{t.status==="error"&&(this.hasError=!0),this.releaseInfo=this.version;const e=this.version;Object.keys(t.packages["mauricerenck/komments"]).sort().forEach(r=>{if(!$e.valid(r))return!1;$e.gt(r,e)&&(this.hasVersionDiff=$e.gt(r,e),this.releaseInfo=r.toString())})}).catch(t=>{console.log("catch",t),this.hasError=!0})})}}},Qe={};var vs=S(ds,ms,ps,!1,$s,null,null,null);function $s(t){for(let e in Qe)this[e]=Qe[e]}var Es=function(){return vs.exports}(),_s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("k-view",{staticClass:"k-kommentviews-view"},[r("k-header",[t._v("Komments")]),r("k-grid",{attrs:{gutter:"large"}},[r("k-column",{attrs:{width:"2/4"}},[r("k-headline-field",{attrs:{label:"In moderation"}}),r("QueuedKomments")],1),r("k-column",{attrs:{width:"1/4"}},[r("k-headline-field",{attrs:{label:"Marked as spam"}}),r("SpamKomments")],1),r("k-column",{attrs:{width:"1/4"}},[r("k-headline-field",{attrs:{label:"Plugin"}}),r("Support")],1)],1)],1)},gs=[];const Rs={components:{QueuedKomments:ut,SpamKomments:$t,Support:Es}},We={};var ys=S(Rs,_s,gs,!1,Is,null,null,null);function Is(t){for(let e in We)this[e]=We[e]}var As=function(){return ys.exports}(),Ss=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("k-inside",[r("k-view",{staticClass:"k-komments-view"},[r("k-header",[t._v("Komments")]),r("KommentVersion",{attrs:{version:t.version}}),r("k-grid",{attrs:{gutter:"medium"}},[r("k-column",{attrs:{width:"1/3"}}),r("k-column",{attrs:{width:"1/1"}},[t.kommentList.length===0?r("div",{staticClass:"so-empty"},[r("NoKomments"),r("div",[r("k-info-field",{attrs:{theme:"positive",text:"There are no comments waiting for moderation. Have a nice day!"}})],1)],1):r("k-grid",[r("k-column",{staticClass:"komment-list",attrs:{width:"1/3"}},[r("KommentList",{attrs:{queuedKomments:t.kommentList,onSelectKomment:t.selectKomment,selectedKomment:this.selectedKomment}})],1),r("k-column",{staticClass:"komment-details",attrs:{width:"2/3"}},[r("KommentDetails",{attrs:{komment:this.selectedKomment,onMarkAsSpam:this.onMarkAsSpam,onMarkAsVerified:this.onMarkAsVerified,onMarkAsPublished:this.onMarkAsPublished,onDelete:this.onDelete}})],1)],1)],1)],1)],1)],1)},Ns=[];const Ls={data(){return{selectedKomment:{},kommentList:[]}},props:{title:String,queuedKomments:Array,version:Object},created(){this.kommentList=this.queuedKomments,this.loadKomments(),this.kommentList[0]&&this.selectKomment(this.kommentList[0].id)},methods:{loadKomments(){this.$api.get("komments/queued").then(t=>{this.komments=t})},selectKomment(t){this.selectedKomment=this.queuedKomments.find(e=>e.id===t)},onMarkAsSpam(t){for(let e=0;e<this.kommentList.length;e++)this.kommentList[e].id===this.selectedKomment.id&&(this.kommentList[e].spamlevel=t?100:0,t&&(this.kommentList[e].verified=!1,this.kommentList[e].status=!1))},onMarkAsVerified(t){for(let e=0;e<this.kommentList.length;e++)this.kommentList[e].id===this.selectedKomment.id&&(this.kommentList[e].verified=t)},onMarkAsPublished(t){for(let e=0;e<this.kommentList.length;e++)this.kommentList[e].id===this.selectedKomment.id&&(this.kommentList[e].status=t)},onDelete(){this.kommentList=this.kommentList.filter(t=>t.id!==this.selectedKomment.id),this.selectedKomment=this.kommentList[0]}}},Je={};var Os=S(Ls,Ss,Ns,!1,ws,null,null,null);function ws(t){for(let e in Je)this[e]=Je[e]}var et=function(){return Os.exports}(),Ts=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"komment-moderation"},[t.komment.id?r("div",[r("k-grid",{attrs:{gutter:"medium"}},[r("k-column",{staticClass:"avatar",attrs:{width:"1/12"}},[t.komment.image?r("img",{attrs:{src:t.komment.image}}):t._e()]),r("k-column",{staticClass:"komment-info",attrs:{width:"11/12"}},[r("div",{staticClass:"author-short"},[r("strong",[t._v(t._s(t.komment.author))]),t.komment.authorUrl?r("k-link",{attrs:{to:t.komment.authorUrl,title:t.komment.authorUrl,target:"_blank"}},[r("k-icon",{attrs:{type:"url"}})],1):t._e()],1),r("div",{staticClass:"meta"},[t._v(t._s(t.komment.published))]),r("div",{staticClass:"meta"},[r("k-link",{attrs:{to:t.komment.url,title:t.komment.url}},[t._v(t._s(t.komment.title))])],1)])],1),r("div",{staticClass:"actions"},[r("k-bar",[r("template",{slot:"left"},[t.komment.status===!0?r("k-button",{staticClass:"publish",attrs:{theme:"positive",icon:"check"},on:{click:function(s){return t.publish(t.komment.slug,t.komment.id,!1)}}},[t._v(" Published ")]):t.komment.status===!1?r("k-button",{staticClass:"publish",attrs:{disabled:t.komment.spamlevel>0,icon:"protected"},on:{click:function(s){return t.publish(t.komment.slug,t.komment.id,!0)}}},[t._v(" Published ")]):r("k-button",{attrs:{icon:"clock",disabled:!0}},[t._v(" Published ")]),t.komment.verified===!0?r("k-button",{attrs:{theme:"positive",icon:"check"},on:{click:function(s){return t.markAsVerified(t.komment.slug,t.komment.id,!1)}}},[t._v(" Verified user ")]):t.komment.verified===!1?r("k-button",{attrs:{icon:"protected",disabled:t.komment.spamlevel>0},on:{click:function(s){return t.markAsVerified(t.komment.slug,t.komment.id,!0)}}},[t._v(" Verified user ")]):r("k-button",{attrs:{icon:"clock",disabled:!0}},[t._v(" Verified user ")]),t.komment.spamlevel===0?r("k-button",{attrs:{icon:"protected"},on:{click:function(s){return t.markAsSpam(t.komment.slug,t.komment.id,!0)}}},[t._v(" Marked as spam ")]):t.komment.spamlevel>0?r("k-button",{attrs:{theme:"negative",icon:"check"},on:{click:function(s){return t.markAsSpam(t.komment.slug,t.komment.id,!1)}}},[t._v(" Marked as spam ")]):r("k-button",{attrs:{icon:"clock",disabled:!0}},[t._v(" Marked as spam ")])],1),r("template",{slot:"right"},[r("k-button",{attrs:{theme:"negative",icon:"trash"},on:{click:function(s){return t.$refs.deleteDialog.open()}}},[t._v(" Delete ")]),r("k-dialog",{ref:"deleteDialog",attrs:{button:"Delete",theme:"negative",icon:"trash"},on:{submit:function(s){return t.deleteKomment(t.komment.slug,t.komment.id,t.$refs)}}},[r("k-text",[t._v(" Do you really want to delete the comment? This cannot be undone. ")])],1)],1)],2)],1),r("div",{staticClass:"text",domProps:{innerHTML:t._s(t.komment.komment)}})],1):t._e()])},xs=[],qn="";const ks={props:{komment:Object,onMarkAsSpam:Function,onMarkAsVerified:Function,onMarkAsPublished:Function,onDelete:Function},methods:{markAsSpam(t,e,r){this.komment.spamlevel=null,this.$api.post("komments/spam",{pageSlug:t,kommentId:e,isSpam:r}).then(()=>{this.onMarkAsSpam(r)})},markAsVerified(t,e,r){this.komment.verified=null,this.$api.post("komments/verify",{pageSlug:t,kommentId:e,isVerified:r}).then(()=>{this.onMarkAsVerified(r)})},publish(t,e,r){this.komment.status=null,this.$api.post("komments/publish",{pageSlug:t,kommentId:e,isPublished:r}).then(()=>{this.onMarkAsPublished(r)})},deleteKomment(t,e,r){this.$api.post("komments/delete",{pageSlug:t,kommentId:e}).then(()=>{this.onDelete(),r.deleteDialog.close()})},nl2br(t){return t.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1<br />$2")}}},tt={};var bs=S(ks,Ts,xs,!1,Cs,null,null,null);function Cs(t){for(let e in tt)this[e]=tt[e]}var Ps=function(){return bs.exports}(),Ds=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"komments-list"},[r("ul",t._l(t.queuedKomments,function(s,i){return r("li",{key:i,staticClass:"list-item",class:{active:t.selectedKomment.id===s.id,isSpam:s.spamlevel>0,isVerified:s.verified===!0},on:{click:function(n){return t.onSelectKomment(s.id)},keypress:function(n){return t.onSelectKomment(s.id)}}},[r("k-grid",[r("k-column",{staticClass:"avatar",attrs:{width:"2/12"}},[s.image?r("img",{attrs:{src:s.image}}):t._e()]),r("k-column",{attrs:{width:"10/12"}},[r("div",{staticClass:"komment-preview"},[r("div",{staticClass:"author"},[r("strong",[t._v(t._s(s.author))])]),r("div",{staticClass:"meta"},[t._v(t._s(s.published)+" - "+t._s(s.title))]),r("div",{staticClass:"status"},[s.status===!1?r("span",{staticClass:"badge",attrs:{alt:"pending",title:"pending"}},[t._v(" pending ")]):s.status===!0?r("span",{staticClass:"badge blue",attrs:{alt:"published",title:"published"}},[t._v(" published ")]):t._e(),s.verified===!0?r("span",{staticClass:"badge green",attrs:{alt:"Verified user",title:"Verified user"}},[t._v(" verified ")]):t._e(),s.spamlevel>0?r("span",{staticClass:"badge red",attrs:{alt:"Possible spam comment",title:"Possible spam comment"}},[t._v(" spam ")]):t._e()])])])],1)],1)}),0)])},Gs=[],Bn="";const Fs={props:{queuedKomments:Array,onSelectKomment:Function,selectedKomment:Object}},rt={};var js=S(Fs,Ds,Gs,!1,Ms,null,null,null);function Ms(t){for(let e in rt)this[e]=rt[e]}var Ks=function(){return js.exports}(),Vs=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"version-box"},[t.version.error?r("span",{staticClass:"error"},[r("k-info-field",{attrs:{theme:"negative",label:"Sorry",text:"The current version could not be fetched."}})],1):t.version.updateAvailable?r("span",{staticClass:"version"},[r("span",{staticClass:"update-available"},[t._v("Update to "+t._s(t.version.latest)+" available")]),t._v(" / "),r("span",[t._v("Your installed version is "+t._s(t.version.local)+" ")])]):t._e()])},Xs=[],Hn="";const Us={props:{version:Object}},st={};var qs=S(Us,Vs,Xs,!1,Bs,null,null,null);function Bs(t){for(let e in st)this[e]=st[e]}var Hs=function(){return qs.exports}(),Ys=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"kommentsPendingCounter"},[r("k-headline",[t._v(t._s(t.label))]),r("div",{staticClass:"count"},[t._v(t._s(t.queuedComments))])],1)},Zs=[],Yn="";const zs={props:{queuedComments:Number,label:String}},nt={};var Qs=S(zs,Ys,Zs,!1,Ws,null,null,null);function Ws(t){for(let e in nt)this[e]=nt[e]}var Js=function(){return Qs.exports}(),en=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("svg",{attrs:{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:"997.86122",height:"450.8081",viewBox:"0 0 997.86122 450.8081","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[r("rect",{attrs:{x:"871.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}}),r("polygon",{attrs:{points:"922.068 266.317 848.715 179.052 701.475 180.398 612.156 267.396 613.961 268.556 613.316 268.556 613.316 449.513 921.871 449.513 921.871 268.556 922.068 266.317",fill:"#f2f2f2"}}),r("polygon",{attrs:{points:"848.792 179.238 757.154 286.674 757.154 449.513 921.871 449.513 921.871 266.236 848.792 179.238",fill:"#e6e6e6"}}),r("rect",{attrs:{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}}),r("rect",{attrs:{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}}),r("rect",{attrs:{x:"823.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}}),r("rect",{attrs:{x:"823.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}}),r("rect",{attrs:{x:"673.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}}),r("rect",{attrs:{x:"673.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}}),r("rect",{attrs:{x:"633.99152",y:"181.55804",width:"30.15944",height:"104.39806",fill:"#f2f2f2"}}),r("polygon",{attrs:{points:"684.068 266.317 610.715 179.052 463.475 180.398 374.156 267.396 375.961 268.556 375.316 268.556 375.316 449.513 683.871 449.513 683.871 268.556 684.068 266.317",fill:"#f2f2f2"}}),r("polygon",{attrs:{points:"610.792 179.238 519.154 286.674 519.154 449.513 683.871 449.513 683.871 266.236 610.792 179.238",fill:"#e6e6e6"}}),r("rect",{attrs:{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#3f3d56"}}),r("rect",{attrs:{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#3f3d56"}}),r("rect",{attrs:{x:"585.27242",y:"359.46083",width:"33.6394",height:"29.73333",fill:"#fff"}}),r("rect",{attrs:{x:"585.27242",y:"307.99568",width:"33.6394",height:"29.26181",fill:"#fff"}}),r("rect",{attrs:{x:"435.77661",y:"351.57128",width:"33.6394",height:"29.73333",fill:"#fff"}}),r("rect",{attrs:{x:"435.77661",y:"300.10613",width:"33.6394",height:"29.26181",fill:"#fff"}}),r("rect",{attrs:{x:"380.1536",y:"91.46021",width:"40.30032",height:"139.50112",fill:"#f2f2f2"}}),r("polygon",{attrs:{points:"447.068 204.718 349.051 88.112 152.302 89.91 32.951 206.161 35.362 207.711 34.501 207.711 34.501 449.513 446.804 449.513 446.804 207.711 447.068 204.718",fill:"#f2f2f2"}}),r("polygon",{attrs:{points:"349.153 88.36 226.702 231.921 226.702 449.513 446.804 449.513 446.804 204.611 349.153 88.36",fill:"#e6e6e6"}}),r("rect",{attrs:{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#3f3d56"}}),r("rect",{attrs:{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#3f3d56"}}),r("rect",{attrs:{x:"315.05306",y:"329.18147",width:"44.95039",height:"39.73094",fill:"#fff"}}),r("rect",{attrs:{x:"315.05306",y:"260.41156",width:"44.95039",height:"39.10088",fill:"#fff"}}),r("rect",{attrs:{x:"115.29041",y:"318.63912",width:"44.95039",height:"39.73094",fill:"#fff"}}),r("rect",{attrs:{x:"115.29041",y:"249.8692",width:"44.95039",height:"39.10088",fill:"#fff"}}),r("rect",{attrs:{y:"448.61997",width:"963.95079",height:"2",fill:"#3f3d56"}}),r("ellipse",{attrs:{cx:"151.87223",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}}),r("path",{attrs:{d:"M255.62882,674.25425c-11.65458-69.92526-.11734-139.59789.00056-140.29293l2.267.384c-.11734.69167-11.58834,69.99825.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"#a8a8bf"}}),r("rect",{attrs:{x:"251.0257",y:"571.20214",width:"29.84136",height:"2.29972",transform:"translate(-339.58156 -31.50095) rotate(-28.1416)",fill:"#a8a8bf"}}),r("rect",{attrs:{x:"237.02319",y:"564.48509",width:"2.29972",height:"29.84239",transform:"translate(-486.12468 291.37147) rotate(-61.84204)",fill:"#a8a8bf"}}),r("ellipse",{attrs:{cx:"81.9552",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"#a8a8bf"}}),r("path",{attrs:{d:"M189.364,675.40405c-22.76459-136.58529-.22963-272.67316.00056-274.03181l2.267.384c-.22962,1.35528-22.69834,137.0771.00057,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("rect",{attrs:{x:"179.27648",y:"475.12522",width:"58.36761",height:"2.29972",transform:"translate(-301.0624 -69.97216) rotate(-28.1416)",fill:"#3f3d56"}}),r("rect",{attrs:{x:"152.98936",y:"460.88882",width:"2.29972",height:"58.36761",transform:"translate(-451.74248 170.111) rotate(-61.84258)",fill:"#3f3d56"}}),r("ellipse",{attrs:{cx:"216.75351",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"#a8a8bf"}}),r("path",{attrs:{d:"M326.9161,675.40405c-31.1399-186.83717-.3144-372.9922.00056-374.85051l2.267.384c-.3144,1.85494-31.07366,187.64393.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("rect",{attrs:{x:"312.69421",y:"401.83114",width:"79.87126",height:"2.29972",transform:"translate(-249.45002 -10.63875) rotate(-28.1416)",fill:"#3f3d56"}}),r("rect",{attrs:{x:"277.14586",y:"381.92603",width:"2.29972",height:"79.87126",transform:"translate(-326.03583 243.55793) rotate(-61.84329)",fill:"#3f3d56"}}),r("ellipse",{attrs:{cx:"871.02934",cy:"352.47204",rx:"29.09932",ry:"59.37437",fill:"#3f3d56"}}),r("path",{attrs:{d:"M969.41153,674.25425c11.65459-69.92526.11734-139.59789-.00056-140.29293l-2.267.384c.11733.69167,11.58833,69.99825-.00056,139.53164Z",transform:"translate(-101.06939 -224.59595)",fill:"#a8a8bf"}}),r("rect",{attrs:{x:"957.94412",y:"557.43132",width:"2.29972",height:"29.84136",transform:"translate(-99.02545 923.51928) rotate(-61.8584)",fill:"#a8a8bf"}}),r("rect",{attrs:{x:"971.94611",y:"578.25643",width:"29.84239",height:"2.29972",transform:"translate(-257.69773 309.6834) rotate(-28.15796)",fill:"#a8a8bf"}}),r("ellipse",{attrs:{cx:"940.94638",cy:"260.90342",rx:"56.91484",ry:"116.12927",fill:"#a8a8bf"}}),r("path",{attrs:{d:"M1035.67632,675.40405c22.76459-136.58529.22962-272.67316-.00056-274.03181l-2.267.384c.22962,1.35528,22.69834,137.0771-.00056,273.27052Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("rect",{attrs:{x:"1015.43021",y:"447.09128",width:"2.29972",height:"58.36761",transform:"translate(16.06635 923.44761) rotate(-61.8584)",fill:"#3f3d56"}}),r("rect",{attrs:{x:"1041.71733",y:"488.92276",width:"58.36761",height:"2.29972",transform:"translate(-205.59609 338.75568) rotate(-28.15742)",fill:"#3f3d56"}}),r("ellipse",{attrs:{cx:"806.14806",cy:"191.008",rx:"77.88347",ry:"158.91374",fill:"#a8a8bf"}}),r("path",{attrs:{d:"M898.12426,675.40405c31.1399-186.83717.31439-372.9922-.00056-374.85051l-2.267.384c.3144,1.85494,31.07365,187.64393-.00056,374.08922Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("rect",{attrs:{x:"871.26065",y:"363.04537",width:"2.29972",height:"79.87126",transform:"translate(4.52428 757.59634) rotate(-61.8584)",fill:"#3f3d56"}}),r("rect",{attrs:{x:"906.809",y:"420.7118",width:"79.87126",height:"2.29972",transform:"translate(-188.10195 272.08136) rotate(-28.15671)",fill:"#3f3d56"}}),r("path",{attrs:{d:"M690.67376,326.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,690.67376,326.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("path",{attrs:{d:"M465.67376,261.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,465.67376,261.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("path",{attrs:{d:"M832.67376,232.06186l9.20569-7.3628c-7.15149-.789-10.0899,3.11127-11.29248,6.19837-5.587-2.32-11.66919.72046-11.66919.72046l18.41889,6.6867A13.93792,13.93792,0,0,0,832.67376,232.06186Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("path",{attrs:{d:"M851.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,819.26034,674.648h45.94952A13.99045,13.99045,0,0,0,851.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("path",{attrs:{d:"M384.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,352.26034,674.648h45.94952A13.99045,13.99045,0,0,0,384.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("path",{attrs:{d:"M623.26034,661.648a13.91772,13.91772,0,0,0-6.96955,1.86975A14.98175,14.98175,0,0,0,591.26034,674.648h45.94952A13.99045,13.99045,0,0,0,623.26034,661.648Z",transform:"translate(-101.06939 -224.59595)",fill:"#3f3d56"}}),r("polygon",{attrs:{points:"471.759 404.228 339.191 404.228 339.191 408.504 359.866 408.504 359.866 449.13 364.142 449.13 364.142 408.504 444.669 408.504 444.669 449.13 448.946 449.13 448.946 408.504 471.759 408.504 471.759 404.228",fill:"#3f3d56"}}),r("rect",{attrs:{x:"339.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}}),r("rect",{attrs:{x:"339.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}}),r("rect",{attrs:{x:"339.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"}}),r("polygon",{attrs:{points:"678.759 404.228 546.191 404.228 546.191 408.504 566.866 408.504 566.866 449.13 571.142 449.13 571.142 408.504 651.669 408.504 651.669 449.13 655.946 449.13 655.946 408.504 678.759 408.504 678.759 404.228",fill:"#3f3d56"}}),r("rect",{attrs:{x:"546.45191",y:"391.43404",width:"132.56808",height:"4.27639",fill:"#3f3d56"}}),r("rect",{attrs:{x:"546.45191",y:"380.74306",width:"132.56808",height:"4.27639",fill:"#3f3d56"}}),r("rect",{attrs:{x:"546.45191",y:"370.05209",width:"132.56808",height:"4.27639",fill:"#3f3d56"}})])])},tn=[];const rn={props:{}},it={};var sn=S(rn,en,tn,!1,nn,null,null,null);function nn(t){for(let e in it)this[e]=it[e]}var an=function(){return sn.exports}();panel.plugin("mauricerenck/komments",{components:{"k-komments-view":et,KommentDetails:Ps,KommentList:Ks,KommentVersion:Hs,NoKomments:an},fields:{komments:et,kommentsPending:Js},views:{queuedKommments:{component:As,icon:"chat",label:"Komments"}}})})();})();