PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 All 507 releases
jetpack / jetpack_vendor / automattic / jetpack-comments / build / admin.js

admin.js in Jetpack – WP Security, Backup, Speed, & Growth 16.3-beta, at jetpack_vendor/automattic/jetpack-comments/build/admin.js

1 lines 5.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{var e={};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const a=t[n]={exports:{}};return e[n].call(a.exports,a,a.exports,r),a.exports}r.m=e,r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{const e=Object.getPrototypeOf;let t;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}const a=Object.create(null);r.r(a);const i={};t=t||[null,e({}),e([]),e(e)];for(var c=2&o&&n;("object"==typeof c||"function"==typeof c)&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,r.d(a,i),a}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],a=t[n++],i=0===a?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:a};r.o(e,o)||Object.defineProperty(e,o,i)}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>(8===e?"editor":e)+".js?minify=false&ver="+{8:"d38c6f3db2ae2a646134",909:"257a660ba293b1a198eb"}[e],r.miniCssF=e=>"editor.css?minify=false&ver=ae479be0cfd951ab60a6",(()=>{if(!r.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;r.miniCssF=(e=r.miniCssF,t=>{var r="rtl"===document.dir,n=e(t);return r?n.replace(/\.css(?:$|\?)/,".rtl$&"):n})})(),r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="@automattic/jetpack-comments:";r.l=(n,o,a,i)=>{if(e[n])return void e[n].push(o);let c,s;if(void 0!==a){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==n||r.getAttribute("data-webpack")==t+a){c=r;break}}}c||(s=!0,c=document.createElement("script"),c.charset="utf-8",r.nc&&c.setAttribute("nonce",r.nc),c.setAttribute("data-webpack",t+a),c.src=n),e[n]=[o];const u=(t,r)=>{c.onerror=c.onload=null,clearTimeout(d);const o=e[n];if(delete e[n],c.parentNode?.removeChild(c),o?.forEach(e=>e(r)),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=u.bind(null,c.onerror),c.onload=u.bind(null,c.onload),s&&document.head.appendChild(c)}})(),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise((t,n)=>{var o=r.miniCssF(e),a=r.p+o;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(i=r[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===e||o===t))return i}var a=document.getElementsByTagName("style");for(n=0;n<a.length;n++){var i;if((o=(i=a[n]).getAttribute("data-href"))===e||o===t)return i}})(o,a))return t();((e,t,n,o,a)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",r.nc&&(i.nonce=r.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)o();else{var n=r&&r.type,c=r&&r.target&&r.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+n+": "+c+")");s.name="ChunkLoadError",s.code="CSS_CHUNK_LOAD_FAILED",s.type=n,s.request=c,i.parentNode&&i.parentNode.removeChild(i),a(s)}},i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,a,null,t,n)}),t={884:0};r.f.miniCss=(r,n)=>{t[r]?n.push(t[r]):0!==t[r]&&{8:1}[r]&&n.push(t[r]=e(r).then(()=>{t[r]=0},e=>{throw delete t[r],e}))}}})(),(()=>{const e={884:0};r.f.j=(t,n)=>{let o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{const a=new Promise((r,n)=>o=e[t]=[r,n]);n.push(o[2]=a);const i=new Error,c=n=>{if(r.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){const e=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",i.name="ChunkLoadError",i.type=e,i.request=r,i.event=n,o[1](i)}};r.l(r.p+r.u(t),c,"chunk-"+t,t)}};const t=(t,n)=>{let[o,a,i]=n;var c,s,l=0;if(o.some(t=>0!==e[t])){for(c in a)r.o(a,c)&&(r.m[c]=a[c]);if(i)i(r)}for(t&&t(n);l<o.length;l++)s=o[l],r.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=self.webpackChunk_automattic_jetpack_comments=self.webpackChunk_automattic_jetpack_comments||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();const n=document.querySelector("#content"),o=window.jetpackCommentsEditorLabels;if(n&&o){const e=document.createElement("div");e.className="jetpack-comments__box is-open",e.style.cssText="--jetpack-comments-pad: 12px; border: 1px solid #dcdcde; background: #fff";const t=e.appendChild(document.createElement("div"));t.className="jetpack-comments__editor",n.after(e);const a=document.querySelector("#qt_content_toolbar"),i=[n,a].filter(Boolean);i.forEach(e=>e.style.display="none");const c=()=>{e.remove(),i.forEach(e=>e.style.display="")};Promise.all([r.e(909),r.e(8)]).then(()=>r(69552)).then(({mountEditor:e})=>e(t,{initialContent:n.value,labels:o,focus:!1,placeholder:"",onChange:e=>n.value=e,onError:c})).catch(c)}})();