%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/knwn/wp-content/plugins/admin-columns-pro/assets/editing/js/
Upload File :
Create Path :
Current File : /var/www/knwn/wp-content/plugins/admin-columns-pro/assets/editing/js/table.js

/*! For license information please see table.js.LICENSE.txt */
(()=>{var t={968:t=>{function e(t,e){if(!t)throw new Error(e||"AssertionError")}e.notEqual=function(t,n,r){e(t!=n,r)},e.notOk=function(t,n){e(!t,n)},e.equal=function(t,n,r){e(t==n,r)},e.ok=e,t.exports=e},821:(t,e,n)=>{var r=n(250),o=n(715),i=n(968);function s(t){if(!(this instanceof s))return new s(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=s,s.prototype.emit=function(t){i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,r=arguments.length;n<r;n++)e.push(arguments[n]);var s=o(this._name+"('"+t.toString()+"')"),a=this._listeners[t];return a&&a.length>0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,s.uuid),s(),this},s.prototype.on=s.prototype.addListener=function(t,e){return i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.on: listener should be type function"),"*"===t?this._starListeners.push(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)),this},s.prototype.prependListener=function(t,e){return i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.prependListener: listener should be type function"),"*"===t?this._starListeners.unshift(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].unshift(e)),this},s.prototype.once=function(t,e){i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function r(){e.apply(n,arguments),n.removeListener(t,r)})),this},s.prototype.prependOnceListener=function(t,e){i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function r(){e.apply(n,arguments),n.removeListener(t,r)})),this},s.prototype.removeListener=function(t,e){return i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.removeListener: listener should be type function"),"*"===t?(this._starListeners=this._starListeners.slice(),n(this._starListeners,e)):(void 0!==this._listeners[t]&&(this._listeners[t]=this._listeners[t].slice()),n(this._listeners[t],e));function n(t,e){if(t){var n=t.indexOf(e);return-1!==n?(r(t,n,1),!0):void 0}}},s.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},s.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var r=e.length,o=0;o<r;o++)n.push(e[o]);return n},s.prototype._emit=function(t,e,n,r){if(void 0!==t&&0!==t.length){void 0===n&&(n=e,e=null),e&&(n=void 0!==r?[e].concat(n,r):[e].concat(n));for(var o=t.length,i=0;i<o;i++){var s=t[i];s.apply(s,n)}}}},706:(t,e,n)=>{var r=n(968),o="undefined"!=typeof window;function i(t){this.hasWindow=t,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}i.prototype.push=function(t){r.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},i.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var t=this;this.method((function(e){for(;t.queue.length&&e.timeRemaining()>0;)t.queue.shift()(e);t.scheduled=!1,t.queue.length&&t.schedule()}))}},i.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return o?(window._nanoScheduler||(window._nanoScheduler=new i(!0)),t=window._nanoScheduler):t=new i,t}},715:(t,e,n)=>{var r,o=n(706)(),i=n(968);s.disabled=!0;try{r=window.performance,s.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(t){}function s(t){if(i.equal(typeof t,"string","nanotiming: name should be type string"),s.disabled)return a;var e=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function l(i){var s="end-"+e+"-"+t;r.mark(s),o.push((function(){var o=null;try{var a=t+" ["+e+"]";r.measure(a,n,s),r.clearMarks(n),r.clearMarks(s)}catch(t){o=t}i&&i(o,t)}))}return r.mark(n),l.uuid=e,l}function a(t){t&&o.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=s},250:t=>{"use strict";t.exports=function(t,e,n){var r,o=t.length;if(!(e>=o||0===n)){var i=o-(n=e+n>o?o-e:n);for(r=e;r<i;++r)t[r]=t[r+n];t.length=i}}},564:(t,e,n)=>{t.exports=n(698)},484:(t,e,n)=>{"use strict";var r=n(81),o=n(796),i=n(25),s=n(565),a=n(704),l=n(967),u=n(67),c=n(753);t.exports=function(t){return new Promise((function(e,n){var p=t.data,d=t.headers;r.isFormData(p)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+m)}var y=a(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),s(y,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:t,request:f};o(e,n,i),f=null}},f.onabort=function(){f&&(n(c("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(c("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var g=(t.withCredentials||u(y))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;g&&(d[t.xsrfHeaderName]=g)}if("setRequestHeader"in f&&r.forEach(d,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete d[e]:f.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),n(t),f=null)})),p||(p=null),f.send(p)}))}},698:(t,e,n)=>{"use strict";var r=n(81),o=n(756),i=n(382),s=n(36);function a(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var l=a(n(46));l.Axios=i,l.create=function(t){return a(s(l.defaults,t))},l.Cancel=n(256),l.CancelToken=n(185),l.isCancel=n(911),l.all=function(t){return Promise.all(t)},l.spread=n(331),l.isAxiosError=n(783),t.exports=l,t.exports.default=l},256:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},185:(t,e,n)=>{"use strict";var r=n(256);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},911:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},382:(t,e,n)=>{"use strict";var r=n(81),o=n(565),i=n(705),s=n(734),a=n(36);function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[s,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(a(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(a(r||{},{method:t,url:e,data:n}))}})),t.exports=l},705:(t,e,n)=>{"use strict";var r=n(81);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},704:(t,e,n)=>{"use strict";var r=n(990),o=n(495);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},753:(t,e,n)=>{"use strict";var r=n(762);t.exports=function(t,e,n,o,i){var s=new Error(t);return r(s,e,n,o,i)}},734:(t,e,n)=>{"use strict";var r=n(81),o=n(943),i=n(911),s=n(46);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||s.adapter)(t).then((function(e){return a(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(a(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},762:t=>{"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},36:(t,e,n)=>{"use strict";var r=n(81);t.exports=function(t,e){e=e||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function l(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function u(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=l(void 0,t[o])):n[o]=l(t[o],e[o])}r.forEach(o,(function(t){r.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),r.forEach(i,u),r.forEach(s,(function(o){r.isUndefined(e[o])?r.isUndefined(t[o])||(n[o]=l(void 0,t[o])):n[o]=l(void 0,e[o])})),r.forEach(a,(function(r){r in e?n[r]=l(t[r],e[r]):r in t&&(n[r]=l(void 0,t[r]))}));var c=o.concat(i).concat(s).concat(a),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return r.forEach(p,u),n}},796:(t,e,n)=>{"use strict";var r=n(753);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},943:(t,e,n)=>{"use strict";var r=n(81);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},46:(t,e,n)=>{"use strict";var r=n(81),o=n(273),i={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,l={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=n(484)),a),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(i)})),t.exports=l},756:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},565:(t,e,n)=>{"use strict";var r=n(81);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var s=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),s.push(o(e)+"="+o(t))})))})),i=s.join("&")}if(i){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},495:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},25:(t,e,n)=>{"use strict";var r=n(81);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,s){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},990:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},783:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},67:(t,e,n)=>{"use strict";var r=n(81);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},273:(t,e,n)=>{"use strict";var r=n(81);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},967:(t,e,n)=>{"use strict";var r=n(81),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,s={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(s[e]&&o.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([n]):s[e]?s[e]+", "+n:n}})),s):s}},331:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},81:(t,e,n)=>{"use strict";var r=n(756),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===o.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!s(t)&&null!==t.constructor&&!s(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:l,isUndefined:s,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:u,isStream:function(t){return a(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){var e={};function n(n,r){l(e[r])&&l(n)?e[r]=t(e[r],n):l(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return e},extend:function(t,e,n){return c(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},513:t=>{function e(t,e){if(!t)throw new Error(e||"AssertionError")}e.notEqual=function(t,n,r){e(t!=n,r)},e.notOk=function(t,n){e(!t,n)},e.equal=function(t,n,r){e(t==n,r)},e.ok=e,t.exports=e},891:(t,e,n)=>{var r=n(212),o=n(595),i=n(513);function s(t){if(!(this instanceof s))return new s(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=s,s.prototype.emit=function(t){i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,r=arguments.length;n<r;n++)e.push(arguments[n]);var s=o(this._name+"('"+t.toString()+"')"),a=this._listeners[t];return a&&a.length>0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,s.uuid),s(),this},s.prototype.on=s.prototype.addListener=function(t,e){return i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.on: listener should be type function"),"*"===t?this._starListeners.push(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)),this},s.prototype.prependListener=function(t,e){return i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.prependListener: listener should be type function"),"*"===t?this._starListeners.unshift(e):(this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].unshift(e)),this},s.prototype.once=function(t,e){i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function r(){e.apply(n,arguments),n.removeListener(t,r)})),this},s.prototype.prependOnceListener=function(t,e){i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function r(){e.apply(n,arguments),n.removeListener(t,r)})),this},s.prototype.removeListener=function(t,e){return i.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),i.equal(typeof e,"function","nanobus.removeListener: listener should be type function"),"*"===t?(this._starListeners=this._starListeners.slice(),n(this._starListeners,e)):(void 0!==this._listeners[t]&&(this._listeners[t]=this._listeners[t].slice()),n(this._listeners[t],e));function n(t,e){if(t){var n=t.indexOf(e);return-1!==n?(r(t,n,1),!0):void 0}}},s.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},s.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var r=e.length,o=0;o<r;o++)n.push(e[o]);return n},s.prototype._emit=function(t,e,n,r){if(void 0!==t&&0!==t.length){void 0===n&&(n=e,e=null),e&&(n=void 0!==r?[e].concat(n,r):[e].concat(n));for(var o=t.length,i=0;i<o;i++){var s=t[i];s.apply(s,n)}}}},746:(t,e,n)=>{var r=n(513),o="undefined"!=typeof window;function i(t){this.hasWindow=t,this.hasIdle=this.hasWindow&&window.requestIdleCallback,this.method=this.hasIdle?window.requestIdleCallback.bind(window):this.setTimeout,this.scheduled=!1,this.queue=[]}i.prototype.push=function(t){r.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},i.prototype.schedule=function(){if(!this.scheduled){this.scheduled=!0;var t=this;this.method((function(e){for(;t.queue.length&&e.timeRemaining()>0;)t.queue.shift()(e);t.scheduled=!1,t.queue.length&&t.schedule()}))}},i.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return o?(window._nanoScheduler||(window._nanoScheduler=new i(!0)),t=window._nanoScheduler):t=new i,t}},595:(t,e,n)=>{var r,o=n(746)(),i=n(513);s.disabled=!0;try{r=window.performance,s.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!r.mark}catch(t){}function s(t){if(i.equal(typeof t,"string","nanotiming: name should be type string"),s.disabled)return a;var e=(1e4*r.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function l(i){var s="end-"+e+"-"+t;r.mark(s),o.push((function(){var o=null;try{var a=t+" ["+e+"]";r.measure(a,n,s),r.clearMarks(n),r.clearMarks(s)}catch(t){o=t}i&&i(o,t)}))}return r.mark(n),l.uuid=e,l}function a(t){t&&o.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=s},212:t=>{"use strict";t.exports=function(t,e,n){var r,o=t.length;if(!(e>=o||0===n)){var i=o-(n=e+n>o?o-e:n);for(r=e;r<i;++r)t[r]=t[r+n];t.length=i}}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=function(){function t(){}return t.prototype.input=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n={});var r=document.createElement("input");return r.name=t,e&&(r.value=e),n=Object.assign({},{type:"text"},n),this.setHtmlAttributes(r,n),r},t.prototype.textarea=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n={});var r=document.createElement("textarea");return r.name=t,this.setHtmlAttributes(r,n),r},t.prototype.checkbox=function(t,e,n){var r=document.createElement("label");return r.classList.add("input__checkbox"),r.innerHTML='<input type="checkbox" name="'+t+'" class="input__checkbox__input" value="'+e+'"><span class="input__checkbox__label">'+n+"</span>",r},t.prototype.setHtmlAttributes=function(t,e){Object.keys(e).forEach((function(n){return t.setAttribute(n,e[n])}))},t.prototype.inputGroup=function(t,e){return'\n\t\t<div class="input__group">\n\t\t\t<label>'+t+'</label>\n\t\t\t<div class="input__controlgroup">'+e+"</div>\n\t\t</div>\n\t\t"},t}();var e=function(){function e(){this.form=new t,this.element=o(),this.setError("")}return e.prototype.setTemplate=function(t){var e=this.getElement().querySelector(".aceditable__form__inputs");return e.innerHTML="",e.insertAdjacentHTML("afterbegin",t),this},e.prototype.getElement=function(){return this.element},e.prototype.setError=function(t){var e=this.getElement().querySelector(".aceditable__form__error");return t?(e.innerHTML=t,e.style.display="block"):e.style.display="none",this},e.prototype.getFormHelper=function(){return this.form},e.prototype.addClass=function(t){return this.element.classList.add(t),this},e.prototype.setSubmitButton=function(t){this.element.querySelector("[data-submit]").innerHTML=t},e.prototype.showButtons=function(t){return void 0===t&&(t=!0),this.element.querySelector(".aceditable__form__controls").style.display=t?"block":"none",this},e}();const r=e;var o=function(){var t=document.createElement("div");return t.classList.add("aceditable"),t.innerHTML='\t\t\n\t\t\t<div class="aceditable__content">\n\t\t\t\t<form class="aceditable__form" autocomplete="off">\n\t\t\t\t\t<div class="aceditable__form__inputs">\n\t\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="aceditable__form__controls">\n\t\t\t\t\t\t<button data-submit="" class="button aceditable__button -primary"><span class="dashicons dashicons-yes"></span></button>\n\t\t\t\t\t\t<button data-cancel="" class="button aceditable__button"><span class="dashicons dashicons-no"></span></button>\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t\t<div class="aceditable__form__error"></div>\n\t\t\t</div>\n\t\t\t<div class="aceditable__spinner spinner"></div>\n\t\t',t},i=n(891),s=n.n(i),a=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n.reduce((function(t,e){return t&&t[e]}),t);return void 0!==o?o:e},l=function(t,e){return void 0===t?e:t},u=function(t,e){var n=e;return"object"==typeof t&&Object.keys(t).forEach((function(e){var r=t[e];void 0===n&&(n={}),"object"==typeof r?(n.hasOwnProperty(e)||(n[e]=Array.isArray(r)?[]:{}),n[e]=u(r,n[e])):n[e]=r})),n};const c=function(){function t(t){this.isInit=!1,this.template=new r,this.settings=u(t,this.getDefaults()),this.Events=new(s())}return t.prototype.close=function(){return this.removeElement(),this.Events.emit("close",this),this},t.prototype.focus=function(){},t.prototype.get=function(){return this.element=this.template.getElement(),this.beforeRender(),this.render(),this.valueToInput(this.settings.value),this.initEvents(),this.element},t.prototype.render=function(){},t.prototype.getEditableTemplate=function(){return this.template},t.prototype.toggle=function(t){return this.element.querySelectorAll("input, select, textarea, button").forEach((function(e){return e.disabled=!1===t})),this.disabled=!1===t,this},t.prototype.disable=function(){return this.toggle(!1)},t.prototype.enable=function(){return this.toggle(!0)},t.prototype.beforeRender=function(){this.template.setTemplate(this.getTemplate()).addClass("-"+this.getEditableType()).setError("").showButtons(!this.settings.hasOwnProperty("showbuttons")||!1!==this.settings.showbuttons)},t.prototype.save=function(){!this.disabled&&this.validate()&&this.Events.emit("save",this)},t.prototype.initEvents=function(){var t=this;this.isInit||(this.getElement().addEventListener("click",(function(t){return t.stopPropagation()})),this.getElement().querySelector("button[data-submit]").addEventListener("click",(function(e){e.preventDefault(),t.save()})),this.getElement().querySelector("button[data-cancel]").addEventListener("click",(function(e){e.preventDefault(),t.close()})),this.getElement().querySelector("form").addEventListener("submit",(function(e){e.preventDefault(),t.save()})),this.isInit=!0)},t.prototype.getArg=function(t,e){return void 0===e&&(e=null),a(this.settings,e,t.split("."))},t.prototype.removeElement=function(){this.getElement()&&this.getElement().remove()},t.prototype.toggleLoading=function(t){void 0===t&&(t=!0),this.getElement()&&(t?this.getElement().classList.add("-loading"):this.getElement().classList.remove("-loading"))},t.prototype.setValue=function(t){return this.settings.value=t,this},t.prototype.setObjectId=function(t){return this.settings.object_id=t,this},t.prototype.getObjectId=function(){return!!this.settings.hasOwnProperty("object_id")&&this.settings.object_id},t.prototype.setError=function(t){this.template.setError(t)},t.prototype.getElement=function(){return this.element},t.prototype.validate=function(){var t=this.getElement().querySelector("form");return!!this.getElement().querySelector("form").checkValidity()||(t.reportValidity(),!1)},t.prototype.getDefaults=function(){return{title:!1,showbuttons:!0,mode:"inline"}},t}();var p,d=(p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},p(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.getEditableType=function(){return"checkbox"},e.prototype.focus=function(){var t=this.getElement().querySelector("form input[type=checkbox]");t&&t.focus({preventScroll:!0})},e.prototype.render=function(){var t=this,e=this.getElement().querySelector(".input__group.-checkbox");Object.keys(this.settings.options).forEach((function(n){var r=t.settings.options[n];e.insertAdjacentHTML("beforeend",t.getEditableTemplate().getFormHelper().checkbox("option[]",r.value,r.text).outerHTML)}))},e.prototype.valueToInput=function(t){var e=this;Array.isArray(t)&&t.forEach((function(t){var n=e.getElement().querySelector('input[value="'+t+'"]');n&&(n.checked=!0)}))},e.prototype.getValue=function(){var t=[];return this.getElement().querySelectorAll("form input[type=checkbox]:checked").forEach((function(e){return t.push(e.value)})),t},e.prototype.getTemplate=function(){return'<div class="input__group -checkbox"></div>'},e.prototype.getDefaults=function(){var e=t.prototype.getDefaults.call(this);return e.options=[],e},e}(c);const h=f;var m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getEditableType=function(){return"color"},e.prototype.focus=function(){this.getElement().querySelector("button").focus({preventScroll:!0})},e.prototype.valueToInput=function(t){var e=this.getElement().querySelector("input");t&&e&&(e.value=t),jQuery(e).wpColorPicker()},e.prototype.getValue=function(){return this.getElement().querySelector("input").value},e.prototype.getTemplate=function(){return this.getEditableTemplate().getFormHelper().input("color").outerHTML},e}(c);var g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g(e,t),e.prototype.getEditableType=function(){return"date"},e.prototype.focus=function(){},e.prototype.render=function(){var t=this,e=this,n=jQuery(this.getElement().querySelector("[name=date]"));document.body.classList.add("ac-jqui"),n.prop("readonly",!0).datepicker({dateFormat:"yy-mm-dd",changeYear:!0,firstDay:this.settings.weekstart,showButtonPanel:!0,onSelect:function(){t.settings.showbuttons||e.save()},beforeShow:function(t,n){setTimeout((function(){var t=n.dpDiv.get(0);t.style.position="relative",t.style.left=0,t.style.top=0,e.getElement().querySelector(".input__date").append(t)}),0)}}).on("click",(function(){n.prop("readonly",!1)})).on("blur",(function(){n.prop("readonly",!0)}))},e.prototype.valueToInput=function(t){var e=this;t&&8===t.length&&(t=_(t),setTimeout((function(){jQuery(e.getElement().querySelector("[name=date]")).val(t).datepicker("show")}),0))},e.prototype.getValue=function(){return this.getElement().querySelector("[name=date]").value},e.prototype.getTemplate=function(){return"\n\t\t\t"+this.getEditableTemplate().getFormHelper().input("date","",{placeholder:"yyyy-mm-dd",autocomplete:"nope"}).outerHTML+'\n\t\t\t<div class="input__date"></div>\n\t\t'},e.prototype.getDefaults=function(){var e=t.prototype.getDefaults.call(this);return e.weekstart=1,e},e}(c);const b=v;var _=function(t){return[(t=[t.slice(0,4),"-",t.slice(4)].join("")).slice(0,7),"-",t.slice(7)].join("")},E=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.getEditableType=function(){return"datetime"},e.prototype.render=function(){document.body.classList.add("ac-jqui"),e.createSelectHours(this.getHourElement(),this.getArg("timeformat",null)),e.createSelectIncementalOptions(this.getMinutesElement()),e.createSelectIncementalOptions(this.getSecondsElement()),jQuery(this.getDateElement()).datepicker({dateFormat:"yy-mm-dd",changeYear:!0,showButtonPanel:!0,firstDay:this.getArg("weekstart",1)})},e.prototype.close=function(){return document.body.classList.remove("ac-jqui"),t.prototype.close.call(this)},e.prototype.focus=function(){this.getDateElement().focus({preventScroll:!0})},e.prototype.valueToInput=function(t){if(t){var e=new Date(t.replace(/-/g,"/"));isNaN(e.getTime())||(this.getDateElement().value=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2),this.getHourElement().value=("0"+e.getHours()).slice(-2),this.getMinutesElement().value=("0"+e.getMinutes()).slice(-2),this.getSecondsElement().value=("0"+e.getSeconds()).slice(-2))}},e.prototype.getValue=function(){var t=this.getDateElement().value,e=this.getHourElement().value,n=this.getMinutesElement().value,r=this.getSecondsElement().value;return!!(t&&e&&n&&r)&&t+" "+e+":"+n+":"+r},e.prototype.getTemplate=function(){return"\n\t\t\t"+this.getEditableTemplate().getFormHelper().input("date","",{placeholder:"yyyy-mm-dd",autocomplete:"nope"}).outerHTML+'\n\t\t\t<div class="input__time">\n\t\t\t\t<select name="time_hours"></select>\t\t\t\t\n\t\t\t\t<select name="time_minutes"></select>\t\t\t\t\n\t\t\t\t<select name="time_seconds"></select>\t\t\t\t\n\t\t\t</div>\n\t\t'},e.prototype.getDateElement=function(){return this.getElement().querySelector("[name=date]")},e.prototype.getHourElement=function(){return this.getElement().querySelector("[name=time_hours]")},e.prototype.getMinutesElement=function(){return this.getElement().querySelector("[name=time_minutes]")},e.prototype.getSecondsElement=function(){return this.getElement().querySelector("[name=time_seconds]")},e.prototype.getDefaults=function(){return Object.assign(t.prototype.getDefaults.call(this),{weekstart:1,showbuttons:!0})},e.createSelectHours=function(t,n){for(var r=0;r<24;r++){var o=document.createElement("option"),i=("0"+r.toString()).slice(-2);o.setAttribute("value",i),o.text=12===n?e.formatAMPM(parseInt(i)):i,t.append(o)}},e.formatAMPM=function(t){var e=t>=12?"pm":"am";return(t=(t%=12)||12)+" "+e},e.createSelectIncementalOptions=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=60);for(var r=e;r<n;r++){var o=document.createElement("option"),i=("0"+r).slice(-2);o.setAttribute("value",i),o.text=i,t.append(o)}},e}(c);const S=w;var C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C(e,t),e.prototype.getEditableType=function(){return"text"},e.prototype.render=function(){this.getElement().classList.add("-input-"+a(this.settings,"text",["html_attributes","type"]))},e.prototype.focus=function(){this.getElement().querySelector("input").focus({preventScroll:!0})},e.prototype.valueToInput=function(t){t&&(this.getElement().querySelector("input").value=t)},e.prototype.getValue=function(){return this.getElement().querySelector("input").value},e.prototype.getTemplate=function(){return this.getEditableTemplate().getFormHelper().input("input",null,this.settings.html_attributes).outerHTML},e}(c);var O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return O(e,t),e.prototype.getEditableType=function(){return"textarea"},e.prototype.focus=function(){this.getElement().querySelector("textarea").focus({preventScroll:!0})},e.prototype.valueToInput=function(t){var e=this.getElement().querySelector("textarea");setTimeout((function(){e.focus(),e.setSelectionRange(0,0)}),0),t&&(e.value=t)},e.prototype.getValue=function(){return this.getElement().querySelector("textarea").value},e.prototype.getTemplate=function(){return this.getEditableTemplate().getFormHelper().textarea("text",null,this.settings.html_attributes).outerHTML},e.prototype.getDefaults=function(){return Object.assign(t.prototype.getDefaults.call(this),{html_attributes:{rows:6}})},e}(c);var A=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A(e,t),e.prototype.getEditableType=function(){return"togglable"},e.prototype.render=function(){var t=this.settings.options,n=this.getFirstInput(),r=this.getSecondInput();n.value=t[0].value,r.value=t[1].value,n.parentElement.querySelector(".toggle__label").innerHTML=t[0].label,r.parentElement.querySelector(".toggle__label").innerHTML=t[1].label,e.getTrueValues().includes(t[0].label.toString().toLowerCase())?(n.parentElement.querySelector(".toggle__label").innerHTML=e.getDefaultTrueLabel(),r.parentElement.querySelector(".toggle__label").innerHTML=e.getDefaultFalseLabel()):e.getFalseValues().includes(t[0].label.toString().toLowerCase())&&(n.parentElement.querySelector(".toggle__label").innerHTML=e.getDefaultFalseLabel(),r.parentElement.querySelector(".toggle__label").innerHTML=e.getDefaultTrueLabel())},e.prototype.valueToInput=function(t){if(!this.settings.showbuttons&&null!==t){var e=!1,n=this.getFirstInput(),r=this.getSecondInput();n.value.toString()===t.toString()&&(r.checked=!0,e=!0),r.value.toString()===t.toString()&&(n.checked=!0,e=!0),e||(this.getTrueInput().checked=!0),this.save(),this.close()}},e.prototype.getTrueInput=function(){return e.getTrueValues().includes(this.settings.options[0].value.toString().toLowerCase())?this.getFirstInput():this.getSecondInput()},e.prototype.getFirstInput=function(){return this.getElement().querySelector("input[data-o1]")},e.prototype.getSecondInput=function(){return this.getElement().querySelector("input[data-o2]")},e.prototype.getValue=function(){return this.getElement().querySelector("input:checked").value},e.getTrueValues=function(){return["true","yes","1","on"]},e.getFalseValues=function(){return["","0","no","false","off"]},e.getDefaultTrueLabel=function(){return'<span class="dashicons dashicons-yes"></span>'},e.getDefaultFalseLabel=function(){return'<span class="dashicons dashicons-no"></span>'},e.prototype.getTemplate=function(){return'\n\t\t<label >\n\t\t\t<input type="radio" name="toggle" data-o1>\n\t\t\t<span class="toggle__label"></span>\n\t\t</label>\n\t\t<label data-false>\n\t\t\t<input type="radio" name="toggle" data-o2>\n\t\t\t<span class="toggle__label"></span>\n\t\t</label>'},e}(c);var j=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getEditableType=function(){return"fullname"},e.prototype.focus=function(){this.getFirstNameElement().focus({preventScroll:!0})},e.prototype.render=function(){this.getFirstNameElement().placeholder=this.getArg("placeholder_first_name",""),this.getLastNameElement().placeholder=this.getArg("placeholder_first_name","")},e.prototype.valueToInput=function(t){this.getFirstNameElement().value=l(t.first_name,""),this.getLastNameElement().value=l(t.last_name,"")},e.prototype.getValue=function(){return{first_name:this.getFirstNameElement().value,last_name:this.getLastNameElement().value}},e.prototype.getTemplate=function(){return'\n\t\t\t<div class="aceditable__form__inputs">\n\t\t\t\t<div class="input__group">\n\t\t\t\t<input name="first_name" type="text" placeholder="First name">\n\t\t\t\t<input name="last_name" type="text" placeholder="Last name">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t'},e.prototype.getFirstNameElement=function(){return this.getElement().querySelector('[name="first_name"]')},e.prototype.getLastNameElement=function(){return this.getElement().querySelector('[name="last_name"]')},e}(c);var P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.prototype.getEditableType=function(){return"select"},e.prototype.focus=function(){this.getElement().querySelector("select").focus({preventScroll:!0})},e.prototype.render=function(){var t=this,e=this.getElement().querySelector("select");Object.keys(this.settings.options).forEach((function(n){var r=t.settings.options[n];e.append(new Option(r.label,r.value))}))},e.prototype.getSelectElement=function(){return this.getElement().querySelector('select[name="value"]')},e.prototype.valueToInput=function(t){t&&(this.getSelectElement().value=t)},e.prototype.getValue=function(){return this.getSelectElement().value},e.prototype.getTemplate=function(){return'<select name="value"></select>'},e}(c);var I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=ACP_Editing.i18n.replace_with,M=ACP_Editing.i18n.add,N=ACP_Editing.i18n.remove,R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.prototype.getEditableType=function(){return"select2"},e.prototype.focus=function(){jQuery(this.getSelectBox()).ac_select2("open")},e.prototype.render=function(){this.getObjectId()&&(this.getElement().querySelector(".acs2").dataset.objectId=this.getObjectId()),this.settings.showbuttons||(this.getElement().querySelector(".aceditable__form__controls").style.display="none")},e.prototype.getSelectBox=function(){return this.getElement().querySelector(".acs2")},e.prototype.close=function(){return jQuery(this.getElement().querySelector(".acs2")).ac_select2("close"),t.prototype.close.call(this)},e.prototype.valueToInput=function(t){var e=this,n=jQuery(this.getElement().querySelector(".acs2"));n.ac_select2(this.settings.select2),t&&function(t,e){void 0===e&&(e=!0);var n=[];return Object.keys(t).forEach((function(e){n.push(new Option(t[e],e,!0,!0))})),e&&n.sort((function(t,e){return t.label.localeCompare(e.label)})),n}(t,!0).forEach((function(t){return n.append(t).trigger("change")})),this.settings.showbuttons||n.on("change",(function(){e.save()}))},e.prototype.getTemplate=function(){return'<select class="acs2"></select>'},e}(c),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.prototype.getValue=function(){return this.getElement().querySelector("select.acs2").value},e}(R),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.prototype.getValue=function(){var t=this.getElement().querySelectorAll("select.acs2 option:checked");return Array.from(t).map((function(t){return t.value}))},e}(R),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.getElement().querySelector(".aceditable__form__inputs").insertAdjacentHTML("afterbegin",F)},e.prototype.getTypeElement=function(){return this.getElement().querySelector("[name=method]")},e.prototype.getValue=function(){return{value:t.prototype.getValue.call(this),method:this.getTypeElement().value}},e}(V),F='\n\t<div class="input__group -type -strategy">\n        <select class="type" name="method">\n            <option value="replace">'+D+'..</option>\n            <option value="add">'+M+'..</option>\n            <option value="remove">'+N+"..</option>\n        </select>\n\t</div>\n",U=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.render=function(){var e=this;t.prototype.render.call(this),jQuery(this.getSelectElement()).ac_select2(this.settings.select2).ac_select2("focus"),this.settings.showbuttons||(this.getElement().querySelectorAll(".aceditable__form__controls").forEach((function(t){return t.style.display="none"})),jQuery(this.getSelectElement()).on("change",(function(){e.save()})))},e.prototype.close=function(){return jQuery(this.getSelectElement()).ac_select2("close"),t.prototype.close.call(this)},e.prototype.valueToInput=function(t){jQuery(this.getSelectElement()).val(t).change()},e}(q),Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.valueToInput=function(t){jQuery(this.getSelectElement()).val(t).change()},e.prototype.getValue=function(){var t=this.getSelectElement().querySelectorAll("option:checked");return Array.from(t).map((function(t){return t.value}))},e}(W),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return U(e,t),e.prototype.render=function(){t.prototype.render.call(this),this.getElement().querySelector(".aceditable__form__inputs").insertAdjacentHTML("afterbegin",F)},e.prototype.getValue=function(){return{value:t.prototype.getValue.call(this),method:this.getElement().querySelector("[name=method]").value}},e}(Q),J=function(){function t(t,e){void 0===e&&(e=""),this.element=t,this.content=e||t.dataset.acTip,this.tip=Y(this.content),this.initEvents()}return t.prototype.initEvents=function(){var t=this;"1"!==this.element.dataset.acTooltipInit&&(this.element.dataset.acTooltipInit="1",document.body.appendChild(this.tip),this.element.addEventListener("mouseenter",(function(){var e=document.body.getBoundingClientRect(),n=t.element.getBoundingClientRect();t.tip.style.left=n.left-e.left+t.element.offsetWidth/2+"px",t.tip.style.top=n.top-e.top+t.element.offsetHeight+"px",t.tip.classList.add("hover")})),this.element.addEventListener("mouseleave",(function(){t.tip.classList.remove("hover")})))},t}(),Y=function(t){var e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e},G=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G(e,t),e.prototype.getEditableType=function(){return"media"},e.prototype.render=function(){this.library=wp.media({multiple:this.settings.multiple,library:this.settings.library,title:this.settings.title}),this.displaySaveButton(!1),this.currentValues=[],this._addEvents()},e.prototype.valueToInput=function(t){t&&(this.currentValues=Array.isArray(t)?t:[t]),this.getArg("showbuttons",!0)||this.library.open()},e.prototype.getValue=function(){return this.getArg("multiple",!0)?this.currentValues:this.currentValues[0]},e.prototype.getTemplate=function(){return'\n\t\t<a href="#" class="wplib button">Select</a>\n\t\t<div class="aceditable__selected"></div>'},e.prototype._addEvents=function(){var t=this;this.getElement().querySelector(".wplib").addEventListener("click",(function(e){e.preventDefault(),t.library.open()})),this.library.on("open",(function(){var e=t.library.state().get("selection"),n=t.currentValues;n&&!t.settings.disableSelection&&n.forEach((function(t){var n=wp.media.attachment(t);n.fetch(),e.add(n?[n]:[])}))})),this.library.on("select",(function(){var e=t.library.state().get("selection").toJSON(),n=[];e.forEach((function(t){n.push(t.id.toString())})),t.currentValues=n,t.settings.showbuttons||(t.save(),t.close()),t.SetImagesFromSelection(t.library.state().get("selection").models),t.displayLibraryButton(!1),t.displaySaveButton(!0)})),this.library.on("close",(function(){t.settings.showbuttons||setTimeout((function(){return t.close()}),0)}))},e.prototype.displaySaveButton=function(t){this.getElement().querySelector(".aceditable__form__controls").style.display=t?"inline-block":"none"},e.prototype.displayLibraryButton=function(t){void 0===t&&(t=!0),this.getElement().querySelector(".wplib").style.display=t?"inline-block":"none"},e.prototype.SetImagesFromSelection=function(t){var n=this,r=this.getElement().querySelector(".aceditable__selected");0!==t.length&&t.forEach((function(t){var o=document.createElement("div"),i="image"===t.attributes.type?e.getImageElement(t):e.getFileElement(t);i&&(o.append(i),o.append(e.getInfoElement(t)),o.classList.add("aceditable__selected__item"),new J(o,o.querySelector(".aceditable__selected__item__info").innerHTML),i.addEventListener("click",(function(t){t.preventDefault(),n.library.open()})),r.append(o))}))},e.getInfoElement=function(t){var e=document.createElement("div");return e.classList.add("aceditable__selected__item__info"),e.innerHTML="\n\t\t\t<div>"+t.attributes.title+"</div>\n\t\t\t<div>"+t.attributes.filename+"</div>\n\t\t\t<div>ID: "+t.attributes.id+"</div>\n\t\t",e},e.getImageElement=function(t){var e=document.createElement("img"),n=t.attributes.url;return t.attributes.sizes.hasOwnProperty("thumbnail")&&(n=t.attributes.sizes.thumbnail.url),e.setAttribute("src",n),e.classList.add("image"),e},e.getFileElement=function(t){var e=document.createElement("img");return e.setAttribute("src",t.attributes.icon),e.classList.add("file"),e},e.prototype.getDefaults=function(){return Object.assign(t.prototype.getDefaults.call(this),{title:"Media",multiple:!0,disableSelection:!1,library:{uploadedTo:!0}})},e}(c);var $=function(t){return K.create(t)},K=function(){function t(t){this.element=t instanceof HTMLElement?t:document.createElement(t)}return t.create=function(e){return new t(e)},t.prototype.addId=function(t){return this.element.id=t,this},t.prototype.addClass=function(t){return this.element.classList.add(t),this},t.prototype.addClasses=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.forEach((function(e){return t.addClass(e)})),this},t.prototype.setAttribute=function(t,e){return this.element.setAttribute(t,e),this},t.prototype.setAttributes=function(t){var e=this;return Object.keys(t).forEach((function(n){return e.setAttribute(n,t[n])})),this},t.prototype.addHtml=function(t){return this.element.innerHTML=t,this},t.prototype.append=function(t){return this.element.appendChild(t),this},t.prototype.appendSelfTo=function(t){return t.append(this.element),this},t.prototype.css=function(t,e){return this.element.style[t]=e,this},t.prototype.insertAfter=function(t){try{this.element.parentElement.insertBefore(t,this.element.nextElementSibling)}catch(t){console.error("Not able to insert element after current node",this.element)}},t.prototype.insertSelfBefore=function(t){try{t.parentElement.insertBefore(this.element,t)}catch(t){console.error("Not able to insert element before current node",this.element)}return this},t.prototype.insertBefore=function(t){try{this.element.parentElement.insertBefore(t,this.element)}catch(t){console.error("Not able to insert element before current node",this.element)}return this},t.prototype.addEventListener=function(t,e){return this.element.addEventListener(t,e),this},t.prototype.addEventListeners=function(t,e){var n=this;return t.forEach((function(t){return n.addEventListener(t,e)})),this},t}();const Z=K;var tt=function(t,e){e.parentNode.insertBefore(t,e.nextSibling)},et=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.getEditableType=function(){return"multi_input"},e.prototype.focus=function(){var t=this.getElement().querySelector("form input, form textarea");t&&t.focus({preventScroll:!0})},e.prototype.getSubType=function(){return this.getArg("subtype")},e.prototype.valueToInput=function(t){var e=this;(!t||Array.isArray(t)&&0===t.length)&&(t=[""]),t.forEach((function(t){var n=e.createSingleInput(t);e.getElement().querySelector(".acp-ie-multi-container").append(n)}))},e.prototype.createSingleInput=function(t){var e=this.settings.subtype,n=document.createElement("div"),r="textarea"===e?this.getEditableTemplate().getFormHelper().textarea("input",t):this.getEditableTemplate().getFormHelper().input("input",t,{type:this.getSubType()});return r.value=t,n.classList.add("single-input"),n.append(r),n.append(this.createControls()),n},e.prototype.determineControls=function(){var t=this.getElement().querySelectorAll(".single-input").length;this.getElement().querySelectorAll(".single-input__control.-remove").forEach((function(e){e.style.display=t>1?"inline-block":"none"}))},e.prototype.createControls=function(){var t=this,e=document.createElement("div");return e.classList.add("single-input__controls"),e.innerHTML='\n\t\t\t<span class="single-input__control -add">\n\t\t\t\t<span class="dashicons dashicons-plus"></span>\n\t\t\t</span>\n\t\t\t<span class="single-input__control -remove">\n\t\t\t\t<span class="dashicons dashicons-minus"></span>\n\t\t\t</span>\n\t\t',e.querySelector(".-add").addEventListener("click",(function(e){return t.eventNewRow(e.target)})),e.querySelector(".-remove").addEventListener("click",(function(e){e.target.closest(".single-input").remove(),t.determineControls()})),setTimeout((function(){t.determineControls()}),0),e},e.prototype.eventNewRow=function(t){var e=t.closest(".single-input");e&&tt(this.createSingleInput(""),e)},e.prototype.getValue=function(){var t=[];return this.getElement().querySelectorAll(".single-input input, .single-input textarea").forEach((function(e){t.push(e.value)})),t},e.prototype.getTemplate=function(){return'<div class="acp-ie-multi-container"></div>'},e.prototype.getDefaults=function(){return Object.assign(t.prototype.getDefaults.call(this),{subtype:"text"})},e}(c);var rt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ot="ac-edit-popper-wrapper",it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rt(e,t),e.prototype.getEditableType=function(){return"wysiwyg"},e.prototype.render=function(){var t=this,e=this.getEditorId();jQuery(this.getElement().querySelector("textarea")).attr("id",e),this.getElement().addEventListener("click",(function(t){return t.preventDefault()})),setTimeout((function(){var n=t.getEditorSettings(),r=t.getElement().closest(".ac-edit-popper"),o=t.getElement().closest(".ac-modal.-bulkedit");r&&(r.classList.add("-full"),t.wrapPopper()),o&&(o.classList.add("-wysiwyg"),n.tinymce.height="300px"),wp.editor.initialize(e,n)}))},e.prototype.wrapPopper=function(){var t=document.createElement("div"),e=this.getElement().closest(".ac-edit-popper");t.classList.add(ot),document.body.append(t),t.appendChild(e)},e.prototype.removePopperwrap=function(){document.querySelectorAll("."+ot).forEach((function(t){return t.remove()}))},e.prototype.getEditorSettings=function(){var t=Object.assign({},wp.editor.getDefaultSettings());return t.tinymce.toolbar1="formatselect,bold,italic,bullist,numlist,blockquote,alignleft,alignright,aligncenter,link,unlink,wp_add_media,wp_more,fullscreen,wp_adv",t.tinymce.toolbar2="strikethrough,hr,forecolor,pastetext,removeformat,charmap,undo,redo",t.tinymce.width="100%",t.quicktags=!0,t.mediaButtons=!0,t},e.prototype.close=function(){return this.id=null,this.removePopperwrap(),t.prototype.close.call(this)},e.prototype.getEditorId=function(){return this.id||(this.id="acp_"+Math.floor(1e4*Math.random())+"_"+Math.floor(1e4*Math.random())+"_"+Math.floor(1e4*Math.random())),this.id},e.prototype.valueToInput=function(t){var e=this.getElement().querySelector("textarea");t&&e&&(e.value=t)},e.prototype.getValue=function(){var t=this.getEditorId();return wp.editor.getContent(t)},e.prototype.getTemplate=function(){return"<textarea></textarea>"},e}(c);const st=it;var at=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return at(e,t),e.prototype.getEditableType=function(){return"select"},e.prototype.close=function(){return jQuery(this.getElement().querySelector(".acs2")).ac_select2("close"),t.prototype.close.call(this)},e.prototype.valueToInput=function(t){var e=this;this.getRemoteData().done((function(n){var r=e.settings.select2;r.data=n.data.results,jQuery(e.getElement().querySelector(".acs2")).ac_select2(r).val(t).trigger("change")}))},e.prototype.getRemoteData=function(){var t=this.getObjectId();return jQuery.ajax({url:ajaxurl,dataType:"json",method:"get",data:{action:"acp_editing_request",method:this.settings.mode+"-select-values",layout:AC.layout,column:this.settings.column,item_id:t||null,list_screen:AC.list_screen,_ajax_nonce:AC.ajax_nonce}})},e.prototype.getValue=function(){return this.getElement().querySelector("select.acs2").value},e.prototype.getTemplate=function(){return'<select class="acs2"></select>'},e.prototype.getDefaults=function(){var e=t.prototype.getDefaults.call(this);return e.showbuttons=!0,e},e}(c);const ut=lt;var ct=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pt=ACP_Editing.i18n.replace_with,dt=ACP_Editing.i18n.operators.add,ft=ACP_Editing.i18n.operators.subtract,ht=ACP_Editing.i18n.operators.multiply,mt=ACP_Editing.i18n.operators.divide,yt="replace";const gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ct(e,t),e.prototype.render=function(){var t=this;this.initValidationAttributes(),this.getValueInput().addEventListener("blur",(function(){t.initValidationAttributes()}))},e.prototype.focus=function(){this.getElement().querySelector("input").focus()},e.prototype.getEditableType=function(){return"number"},e.prototype.valueToInput=function(t){t&&(this.getElement().querySelector("input").value=t)},e.prototype.getValueInput=function(){return this.getElement().querySelector('[name="value"]')},e.prototype.getComputationSelect=function(){return this.getElement().querySelector("[name=computation_type]")},e.prototype.getComputationType=function(){return this.getComputationSelect().value},e.prototype.initValidationAttributes=function(){var t=this.getComputationType();this.getValueInput().required=t!==yt},e.prototype.getValue=function(){return{allow_negative:!0,value:this.getValueInput().value,computation_type:this.getComputationType()}},e.prototype.getTemplate=function(){var t=this.getEditableTemplate().getFormHelper().input("value",null,this.settings.html_attributes).outerHTML;return'\n            <div class="input__group -type -strategy">\n                <select class="type" name="computation_type">\n                    <option value="replace">'+pt+'..</option>\n                    <option value="add">'+dt+'..</option>\n                    <option value="subtract">'+ft+'..</option>\n                    <option value="multiply">'+ht+'..</option>\n                    <option value="divide">'+mt+"..</option>\n                </select>\n                "+t+"\n            </div>\n        "},e}(c),vt=function(){function t(t){this.services=t,this.editables={},this.initEditables()}return t.prototype.initEditables=function(){this.editables._abstract=c,this.editables.text=T,this.editables.textarea=L,this.editables.number=T,this.editables.number_extended=gt,this.editables.checklist=h,this.editables.color=y,this.editables.select=q,this.editables.select2=W,this.editables.select2_multiple=Q,this.editables.select2_multiple_strategy=z,this.editables.select2_ajax=H,this.editables.select2_ajax_multiple=V,this.editables.select2_ajax_strategy=B,this.editables.select2_remote=ut,this.editables.date=b,this.editables.fullname=k,this.editables.date_time=S,this.editables.toggle=x,this.editables.wp_library=X,this.editables.multi_input=nt,this.editables.wysiwyg=st,this.services.emitEvent("Editing.Editables.Ready",this)},t.prototype.registerEditable=function(t,e){return this.editables[t]=e,this},t.prototype.get=function(t){return this.editables.hasOwnProperty(t)?this.editables[t]:null},t.prototype.abstract=function(){return this.get("_abstract")},t}(),bt=function(){function t(){}return t.prototype.escapeRegex=function(t){return function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(t)},t}();var _t="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Et=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(_t&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),wt=_t&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),Et))}};function St(t){return t&&"[object Function]"==={}.toString.call(t)}function Ct(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function Tt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function Ot(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Ct(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?t:Ot(Tt(t))}function Lt(t){return t&&t.referenceNode?t.referenceNode:t}var At=_t&&!(!window.MSInputMethodContext||!document.documentMode),xt=_t&&/MSIE 10/.test(navigator.userAgent);function jt(t){return 11===t?At:10===t?xt:At||xt}function kt(t){if(!t)return document.documentElement;for(var e=jt(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ct(n,"position")?kt(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Pt(t){return null!==t.parentNode?Pt(t.parentNode):t}function qt(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,o=n?e:t,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var s,a,l=i.commonAncestorContainer;if(t!==l&&e!==l||r.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&kt(s.firstElementChild)!==s?kt(l):l;var u=Pt(t);return u.host?qt(u.host,e):qt(t,Pt(e).host)}function It(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var o=t.ownerDocument.documentElement,i=t.ownerDocument.scrollingElement||o;return i[n]}return t[n]}function Dt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=It(e,"top"),o=It(e,"left"),i=n?-1:1;return t.top+=r*i,t.bottom+=r*i,t.left+=o*i,t.right+=o*i,t}function Mt(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function Nt(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],jt(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function Rt(t){var e=t.body,n=t.documentElement,r=jt(10)&&getComputedStyle(n);return{height:Nt("Height",e,n,r),width:Nt("Width",e,n,r)}}var Ht=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Vt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Bt=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Ft=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function Ut(t){return Ft({},t,{right:t.left+t.width,bottom:t.top+t.height})}function Wt(t){var e={};try{if(jt(10)){e=t.getBoundingClientRect();var n=It(t,"top"),r=It(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?Rt(t.ownerDocument):{},s=i.width||t.clientWidth||o.width,a=i.height||t.clientHeight||o.height,l=t.offsetWidth-s,u=t.offsetHeight-a;if(l||u){var c=Ct(t);l-=Mt(c,"x"),u-=Mt(c,"y"),o.width-=l,o.height-=u}return Ut(o)}function Qt(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=jt(10),o="HTML"===e.nodeName,i=Wt(t),s=Wt(e),a=Ot(t),l=Ct(e),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=Ut({top:i.top-s.top-u,left:i.left-s.left-c,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var d=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);p.top-=u-d,p.bottom-=u-d,p.left-=c-f,p.right-=c-f,p.marginTop=d,p.marginLeft=f}return(r&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(p=Dt(p,e)),p}function zt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=Qt(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:It(n),a=e?0:It(n,"left"),l={top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:i};return Ut(l)}function Jt(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===Ct(t,"position"))return!0;var n=Tt(t);return!!n&&Jt(n)}function Yt(t){if(!t||!t.parentElement||jt())return document.documentElement;for(var e=t.parentElement;e&&"none"===Ct(e,"transform");)e=e.parentElement;return e||document.documentElement}function Gt(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},s=o?Yt(t):qt(t,Lt(e));if("viewport"===r)i=zt(s,o);else{var a=void 0;"scrollParent"===r?"BODY"===(a=Ot(Tt(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===r?t.ownerDocument.documentElement:r;var l=Qt(a,s,o);if("HTML"!==a.nodeName||Jt(s))i=l;else{var u=Rt(t.ownerDocument),c=u.height,p=u.width;i.top+=l.top-l.marginTop,i.bottom=c+l.top,i.left+=l.left-l.marginLeft,i.right=p+l.left}}var d="number"==typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function Xt(t){return t.width*t.height}function $t(t,e,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=Gt(n,r,i,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return Ft({key:t},a[t],{area:Xt(a[t])})})).sort((function(t,e){return e.area-t.area})),u=l.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,p=t.split("-")[1];return c+(p?"-"+p:"")}function Kt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Yt(e):qt(e,Lt(n));return Qt(n,o,r)}function Zt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function te(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function ee(t,e,n){n=n.split("-")[0];var r=Zt(t),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),s=i?"top":"left",a=i?"left":"top",l=i?"height":"width",u=i?"width":"height";return o[s]=e[s]+e[l]/2-r[l]/2,o[a]=n===a?e[a]-r[u]:e[te(a)],o}function ne(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function re(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t.name===n}));var r=ne(t,(function(t){return t.name===n}));return t.indexOf(r)}(t,0,n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&St(n)&&(e.offsets.popper=Ut(e.offsets.popper),e.offsets.reference=Ut(e.offsets.reference),e=n(e,t))})),e}function oe(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Kt(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=$t(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=ee(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=re(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function ie(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function se(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var o=e[r],i=o?""+o+n:t;if(void 0!==document.body.style[i])return i}return null}function ae(){return this.state.isDestroyed=!0,ie(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[se("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function le(t){var e=t.ownerDocument;return e?e.defaultView:window}function ue(t,e,n,r){var o="BODY"===t.nodeName,i=o?t.ownerDocument.defaultView:t;i.addEventListener(e,n,{passive:!0}),o||ue(Ot(i.parentNode),e,n,r),r.push(i)}function ce(t,e,n,r){n.updateBound=r,le(t).addEventListener("resize",n.updateBound,{passive:!0});var o=Ot(t);return ue(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function pe(){this.state.eventsEnabled||(this.state=ce(this.reference,this.options,this.state,this.scheduleUpdate))}function de(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,le(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function fe(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function he(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&fe(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var me=_t&&/Firefox/i.test(navigator.userAgent);function ye(t,e,n){var r=ne(t,(function(t){return t.name===e})),o=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!o){var i="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var ge=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ve=ge.slice(3);function be(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ve.indexOf(t),r=ve.slice(n+1).concat(ve.slice(0,n));return e?r.reverse():r}var _e={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var o=t.offsets,i=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",u=a?"width":"height",c={start:Bt({},l,i[l]),end:Bt({},l,i[l]+i[u]-s[u])};t.offsets.popper=Ft({},s,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,r=e.offset,o=t.placement,i=t.offsets,s=i.popper,a=i.reference,l=o.split("-")[0];return n=fe(+r)?[+r,0]:function(t,e,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(ne(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return u=u.map((function(t,r){var o=(1===r?!i:i)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],s=o[2];return i?0===s.indexOf("%")?Ut("%p"===s?n:r)[e]/100*i:"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:t}(t,o,e,n)}))})),u.forEach((function(t,e){t.forEach((function(n,r){fe(n)&&(o[e]+=n*("-"===t[r-1]?-1:1))}))})),o}(r,s,a,l),"left"===l?(s.top+=n[0],s.left-=n[1]):"right"===l?(s.top+=n[0],s.left+=n[1]):"top"===l?(s.left+=n[0],s.top-=n[1]):"bottom"===l&&(s.left+=n[0],s.top+=n[1]),t.popper=s,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||kt(t.instance.popper);t.instance.reference===n&&(n=kt(n));var r=se("transform"),o=t.instance.popper.style,i=o.top,s=o.left,a=o[r];o.top="",o.left="",o[r]="";var l=Gt(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=i,o.left=s,o[r]=a,e.boundaries=l;var u=e.priority,c=t.offsets.popper,p={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),Bt({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(r=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),Bt({},n,r)}};return u.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=Ft({},c,p[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,o=t.placement.split("-")[0],i=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]<i(r[l])&&(t.offsets.popper[l]=i(r[l])-n[u]),n[l]>i(r[a])&&(t.offsets.popper[l]=i(r[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!ye(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],i=t.offsets,s=i.popper,a=i.reference,l=-1!==["left","right"].indexOf(o),u=l?"height":"width",c=l?"Top":"Left",p=c.toLowerCase(),d=l?"left":"top",f=l?"bottom":"right",h=Zt(r)[u];a[f]-h<s[p]&&(t.offsets.popper[p]-=s[p]-(a[f]-h)),a[p]+h>s[f]&&(t.offsets.popper[p]+=a[p]+h-s[f]),t.offsets.popper=Ut(t.offsets.popper);var m=a[p]+a[u]/2-h/2,y=Ct(t.instance.popper),g=parseFloat(y["margin"+c]),v=parseFloat(y["border"+c+"Width"]),b=m-t.offsets.popper[p]-g-v;return b=Math.max(Math.min(s[u]-h,b),0),t.arrowElement=r,t.offsets.arrow=(Bt(n={},p,Math.round(b)),Bt(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(ie(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Gt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=te(r),i=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case"flip":s=[r,o];break;case"clockwise":s=be(r);break;case"counterclockwise":s=be(r,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(r!==a||s.length===l+1)return t;r=t.placement.split("-")[0],o=te(r);var u=t.offsets.popper,c=t.offsets.reference,p=Math.floor,d="left"===r&&p(u.right)>p(c.left)||"right"===r&&p(u.left)<p(c.right)||"top"===r&&p(u.bottom)>p(c.top)||"bottom"===r&&p(u.top)<p(c.bottom),f=p(u.left)<p(n.left),h=p(u.right)>p(n.right),m=p(u.top)<p(n.top),y=p(u.bottom)>p(n.bottom),g="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&y,v=-1!==["top","bottom"].indexOf(r),b=!!e.flipVariations&&(v&&"start"===i&&f||v&&"end"===i&&h||!v&&"start"===i&&m||!v&&"end"===i&&y),_=!!e.flipVariationsByContent&&(v&&"start"===i&&h||v&&"end"===i&&f||!v&&"start"===i&&y||!v&&"end"===i&&m),E=b||_;(d||g||E)&&(t.flipped=!0,(d||g)&&(r=s[l+1]),E&&(i=function(t){return"end"===t?"start":"start"===t?"end":t}(i)),t.placement=r+(i?"-"+i:""),t.offsets.popper=Ft({},t.offsets.popper,ee(t.instance.popper,t.offsets.reference,t.placement)),t=re(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,o=r.popper,i=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=i[n]-(a?o[s?"width":"height"]:0),t.placement=te(e),t.offsets.popper=Ut(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!ye(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=ne(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,o=t.offsets.popper,i=ne(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s,a,l=void 0!==i?i:e.gpuAcceleration,u=kt(t.instance.popper),c=Wt(u),p={position:o.position},d=function(t,e){var n=t.offsets,r=n.popper,o=n.reference,i=Math.round,s=Math.floor,a=function(t){return t},l=i(o.width),u=i(r.width),c=-1!==["left","right"].indexOf(t.placement),p=-1!==t.placement.indexOf("-"),d=e?c||p||l%2==u%2?i:s:a,f=e?i:a;return{left:d(l%2==1&&u%2==1&&!p&&e?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:d(r.right)}}(t,window.devicePixelRatio<2||!me),f="bottom"===n?"top":"bottom",h="right"===r?"left":"right",m=se("transform");if(a="bottom"===f?"HTML"===u.nodeName?-u.clientHeight+d.bottom:-c.height+d.bottom:d.top,s="right"===h?"HTML"===u.nodeName?-u.clientWidth+d.right:-c.width+d.right:d.left,l&&m)p[m]="translate3d("+s+"px, "+a+"px, 0)",p[f]=0,p[h]=0,p.willChange="transform";else{var y="bottom"===f?-1:1,g="right"===h?-1:1;p[f]=a*y,p[h]=s*g,p.willChange=f+", "+h}var v={"x-placement":t.placement};return t.attributes=Ft({},v,t.attributes),t.styles=Ft({},p,t.styles),t.arrowStyles=Ft({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return he(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&he(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,o){var i=Kt(o,e,t,n.positionFixed),s=$t(n.placement,i,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),he(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Ee={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:_e},we=function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ht(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=wt(this.update.bind(this)),this.options=Ft({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ft({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){r.options.modifiers[e]=Ft({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return Ft({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&St(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Vt(t,[{key:"update",value:function(){return oe.call(this)}},{key:"destroy",value:function(){return ae.call(this)}},{key:"enableEventListeners",value:function(){return pe.call(this)}},{key:"disableEventListeners",value:function(){return de.call(this)}}]),t}();we.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,we.placements=ge,we.Defaults=Ee;const Se=we;var Ce=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/{(\d)}/g,(function(t,n){return e[Number(n)]}))},Te="acp_editing_request",Oe="inline-values",Le="bulk",Ae="bulkEditable",xe="inlineEditable",je="dataStorage",ke=n(564),Pe=n.n(ke),qe=function(t,e){return void 0===e&&(e=null),e||(e=new FormData),Object.keys(t).forEach((function(n){Ie(e,t[n],n)})),e},Ie=function(t,e,n){if(void 0===n&&(n=null),!e||"object"!=typeof e||e instanceof Date||e instanceof File){var r=null==e?"":e;t.append(n,r)}else Object.keys(e).forEach((function(r){Ie(t,e[r],n?n+"["+r+"]":r)}))},De=function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t};const Me=function(){function t(){this.clear()}return t.prototype.getErrors=function(){return this.data.filter((function(t){return"failed"===t.status}))},t.prototype.getNotEditable=function(){return this.data.filter((function(t){return"not_editable"===t.status}))},t.prototype.hasError=function(){return this.getErrors().length>0},t.prototype.hasNotEditable=function(){return this.getNotEditable().length>0},t.prototype.add=function(t){this.data=De(De([],this.data),t)},t.prototype.clear=function(){return this.data=[],this},t}();var Ne=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re={ERROR:Ce(ACP_Editing.i18n.bulk_edit.feedback.error,'<span  class="ac-bulk-log__status__count"><span data-errors-count>0</span> errors</span>'),NOT_EDITABLE:Ce(ACP_Editing.i18n.bulk_edit.feedback.error,'<span  class="ac-bulk-log__status__count -medium"><span data-errors-count>0</span> unmodifiable items</span>'),SHOW_ITEMS:ACP_Editing.i18n.bulk_edit.feedback.show_items,HIDE_ITEMS:ACP_Editing.i18n.bulk_edit.feedback.hide_items,NOT_EDITABLE_FOUND:ACP_Editing.i18n.bulk_edit.feedback.not_editable_found},He=function(){function t(t,e){var n=this;this.items=t,this.element=Z.create("div").addClass("bulk-log").addHtml(Fe(e)).element,this.addItems(t),this.element.querySelector("[data-errors-count]").innerHTML=t.length.toString(),this.element.querySelector("[data-toggle-errors]").addEventListener("click",(function(){n.toggleItems()}))}return t.prototype.toggleItems=function(){var t=this.element.querySelector("[data-toggle-errors]"),e=this.element.querySelector("[data-log-items]"),n="-visible";e.classList.contains(n)?(e.classList.remove(n),t.innerHTML=Re.SHOW_ITEMS):(e.classList.add(n),t.innerHTML=Re.HIDE_ITEMS)},t}(),Ve=function(t){function e(e){return t.call(this,e,Re.ERROR)||this}return Ne(e,t),e.prototype.addItems=function(t){var e=this.element.querySelector("[data-log-items]");t.forEach((function(t){e.append(Z.create("div").addHtml("ID: "+t.id+" - "+t.error).element)}))},e}(He),Be=function(t){function e(e){return t.call(this,e,Re.NOT_EDITABLE)||this}return Ne(e,t),e.prototype.addItems=function(t){var e=t.map((function(t){return t.id})).join(", ");this.element.querySelector("[data-log-items]").innerHTML=Re.NOT_EDITABLE_FOUND+"<br>ID: "+e},e}(He),Fe=function(t){return'\n     <div class="ac-bulk-log">\n        <div class="ac-bulk-log__status">\n            <span>'+t+"</span>\n            <a data-toggle-errors>"+Re.SHOW_ITEMS+'</a>\n        </div>\n        <div class="ac-bulk-log__items" data-log-items>\n        \n        </div>\n     </div>\n    '},Ue={FINISHED:ACP_Editing.i18n.bulk_edit.feedback.finished,UPDATING:ACP_Editing.i18n.bulk_edit.feedback.updating,PROCESSED:Ce(ACP_Editing.i18n.bulk_edit.feedback.processed,"<span data-processed>0</span>","<span data-total-items></span>"),FAIL:ACP_Editing.i18n.bulk_edit.feedback.failure,DONE:ACP_Editing.i18n.done,DONE_DESELECT:ACP_Editing.i18n.bulk_edit.selecting.done_deselect,CANCEL:ACP_Editing.i18n.cancel,ERROR:Ce(ACP_Editing.i18n.bulk_edit.feedback.error,"<span data-errors>0</span>")};const We=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.logger=new Me,this.events=new(s()),this.column=t,this.value=e,this.items=n,this.totalNumber=Array.isArray(n)?n.length:n,this.numberProcessed=0,this.perPage=ACP_Editing.bulk_edit.updated_rows_per_iteration,this.processAll=r,this.isCanceled=!1,this.isFinished=!1,this.timer={seconds:0,minutes:0},this.element=Je(),this.startTimer(),this.prepareJob(),this.attachCancelEvent(),this.updateTotal(),this.updatePercentage(0)}return t.prototype.getElement=function(){return this.element},t.prototype.prepareJob=function(t){var e=this;if(void 0===t&&(t=1),!this.processAll)return this.runJob();1===t&&(this.items=[]),jQuery.ajax({url:window.location.href,method:"get",data:{ac_action:"get_editable_rows",ac_page:t,_ajax_nonce:AC.ajax_nonce}}).done((function(n){if(n.hasOwnProperty("success")&&n.success&&n.data.hasOwnProperty("editable_rows")){if(e.items=[].concat(e.items,n.data.editable_rows),e.totalNumber=e.items.length,n.data.rows_per_iteration===n.data.editable_rows.length)return e.updateTotal(),void e.prepareJob(t+1);e.updateTotal(),e.runJob()}}))},t.prototype.runJob=function(){var t=this;if(!this.isCanceled){var e=this,n=e.items.splice(0,e.perPage);0!==n.length?this.startUpdateThread(n).then((function(n){if(n.data.success){var r=n.data.data.total;e.numberProcessed+=r,t.updateProcessed(e.numberProcessed),t.logger.add(n.data.data.results),r>0&&!e.isCanceled?e.runJob():e.onComplete()}})):e.onComplete()}},t.prototype.startUpdateThread=function(t){return Pe().post(ajaxurl,qe({action:Te,method:"bulk-save",list_screen:AC.list_screen,layout:AC.layout,column:this.column.name,ids:t,value:this.value,_ajax_nonce:AC.ajax_nonce}))},t.prototype.attachCancelEvent=function(){var t=this;this.element.querySelectorAll("[data-close]").forEach((function(e){e.addEventListener("click",(function(){t.isFinished?(e.remove(),t.events.emit("close",{})):(t.isCanceled=!0,t.onComplete())}))}))},t.prototype.updateTotal=function(){this.element.querySelector("[data-total-items]").innerHTML=this.totalNumber.toString()},t.prototype.updateProcessed=function(t){this.element.querySelector("[data-processed]").innerHTML=t.toString();var e=Math.round(t/this.totalNumber*100);this.updatePercentage(e)},t.prototype.updatePercentage=function(t){this.element.querySelector("[data-percentage]").innerHTML=t+"%",this.element.querySelector("[data-status-percentage]").style.width=t+"%"},t.prototype.onComplete=function(){if(this.isCanceled||(this.element.querySelector(".acp-be-progress__process").innerHTML=Ce(Ue.FINISHED,this.totalNumber)+' (100%) <span class="dashicons dashicons-yes"></span>'),this.element.querySelector("[data-close]").innerHTML=Ue.DONE,this.element.querySelector("[data-close]").classList.add("button-primary"),this.element.querySelector("[data-status-percentage]").classList.add("-finished"),this.isFinished=!0,this.stopTimer(),this.canDismiss=!1,this.addDeselectDoneButton(),this.logger.hasError()){var t=new Ve(this.logger.getErrors());this.element.querySelector("[data-status-percentage]").classList.add("-error"),this.element.querySelector(".errors").append(t.element)}this.logger.hasNotEditable()&&(t=new Be(this.logger.getNotEditable()),this.element.querySelector("[data-status-percentage]").classList.add("-error"),this.element.querySelector(".errors").append(t.element)),this.events.emit("finished")},t.prototype.addDeselectDoneButton=function(){var t=this,e=Qe();e.addEventListener("click",(function(e){e.preventDefault(),AC_SERVICES.getService("Table").getElement().querySelectorAll(".check-column input[type=checkbox]:checked").forEach((function(t){t.checked=!1,t.dispatchEvent(new Event("change"))})),t.events.emit("close")})),this.element.append(e)},t.prototype.startTimer=function(){var t=this;this.addSecond(),this.timerInterval=window.setInterval((function(){t.addSecond()}),1e3)},t.prototype.stopTimer=function(){clearInterval(this.timerInterval)},t.prototype.addSecond=function(){var t=this.element.querySelector("[data-timer]");this.timer.seconds++,this.timer.seconds>=60&&(this.timer.seconds=0,this.timer.minutes++),t.textContent=(this.timer.minutes?this.timer.minutes>9?this.timer.minutes:"0"+this.timer.minutes:"00")+":"+(this.timer.seconds>9?this.timer.seconds:"0"+this.timer.seconds)},t}();var Qe=function(){var t=document.createElement("button");return t.classList.add("button","done-deselect"),t.innerText=Ue.DONE_DESELECT,t.dataset.close="true",t},ze='\n\t\t<div class="acp-be-progress">\n\t\t\t<div class="acp-be-progress__timer" data-timer></div>\n\t\t\t<div class="acp-be-progress__process">'+Ue.PROCESSED+' (<span data-percentage></span>)</div>\n\t\t</div>\n\n\t\t<div class="acp-be-statusbar">\n\t\t\t<div class="acp-be-statusbar__progress" data-status-percentage></div>\n\t\t</div>\n\n\t\t<div class="errors">\n\t\t\t\n\t\t</div>\n\n\t\t<button data-close class="button">Cancel</button>\n',Je=function(){var t=document.createElement("div");return t.classList.add("acp-be-processing"),t.innerHTML=ze,t},Ye="acp-be-editrow",Ge=ACP_Editing.i18n.bulk_edit.bulk_edit,Xe=function(){function t(t){this.BulkEdit=t,this.Table=t.Table,this.Middleware=t.Middleware,this.events=new(s())}return t.prototype.add=function(){var t=this.Table.getElement().getElementsByTagName("thead")[0].children[0].children,e=document.createElement("tr");e.classList.add(Ye);for(var n=0;n<t.length;n++){var r=t[n],o=this.Table.Columns.get(r.id),i=document.createElement("td");if(i.classList.add("column-"+r.id),"cb"!==r.id&&o&&o.hasService(Ae)){if(null===o.getService(Ae)){e.appendChild(i);continue}i.innerHTML='<button class="button" data-name="'+r.id+'">'+Ge+"</button>",this.initEvents(i)}e.appendChild(i)}return this.Table.getElement().querySelector("tbody").insertAdjacentElement("afterbegin",e),this.refresh(),e},t.prototype.remove=function(){this.Table.getElement().querySelectorAll(".acp-be-editrow").forEach((function(t){return t.remove()}))},t.prototype.initEvents=function(t){var e=this;t.querySelector("button").addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.events.emit("click",{name:t.target.dataset.name})}),!0)},t.prototype.onButtonClick=function(t){this.events.addListener("click",t)},t.prototype.getRow=function(){return this.Table.getElement().querySelector(".acp-be-editrow")},t.prototype.refresh=function(){for(var t=this.Table.getElement().getElementsByTagName("thead")[0].children[0].children,e=0;e<t.length;e++){var n=t[e],r=this.getRow().querySelector(".column-"+n.id);r&&(n.classList.contains("hidden")?r.classList.add("hidden"):r.classList.remove("hidden"))}},t}();const $e=Xe;var Ke={SELECTED:ACP_Editing.i18n.bulk_edit.selecting.selected,SELECTALL:ACP_Editing.i18n.bulk_edit.selecting.select_all},Ze="acp-be-noticerow";const tn=function(){function t(t){this.Table=t}return t.prototype.addNotice=function(){var t=this;this.createNotice(),this.createNoticeRow(),this.refreshNoticeRow(),document.querySelectorAll(".hide-column-tog").forEach((function(e){e.addEventListener("click",(function(){t.refreshNoticeRow()}))}))},t.prototype.removeNotice=function(){var t=this.Table.getElement().querySelector(".acp-be-noticerow");t&&t.remove()},t.prototype.createNotice=function(){var t=document.createElement("div");t.classList.add("acp-be-notice");var e=document.createElement("p"),n=Ce(Ke.SELECTED+" ","<span data-acp-be-count></span>");e.insertAdjacentHTML("beforeend",n),t.append(e),this.notice=t},t.prototype.createSelectAll=function(t){if(document.querySelector(".ac-be-selectall"))return document.querySelector(".ac-be-selectall");if(!1!==t&&"all"!==t||(t=""),!this.notice)return null;var e=document.createElement("a");return e.innerHTML=Ce(Ke.SELECTALL,t),e.classList.add("ac-be-selectall"),this.notice.querySelector("p").append(e),e},t.prototype.createNoticeRow=function(){var t=document.createElement("tr"),e=document.createElement("td"),n=this.Table.getElement().querySelector("thead tr").children.length;return t.append(e),t.classList.add(Ze),e.setAttribute("colspan",n.toString()),e.append(this.notice),this.Table.getElement().querySelector("tbody").insertAdjacentElement("afterbegin",t),t},t.prototype.refreshNoticeRow=function(){var t=this.Table.getElement().firstElementChild.firstElementChild.querySelectorAll("td,th"),e=0;t.forEach((function(t){t.classList.contains("hidden")||e++})),this.Table.getElement().querySelector(".acp-be-noticerow td").setAttribute("colspan",e.toString())},t}(),en=function(){function t(t){t&&(this.el=t,this.dialog=t.querySelector(".ac-modal__dialog"),this.initEvents())}return t.prototype.getElement=function(){return this.el},t.prototype.initEvents=function(){var t=this,e=this;document.addEventListener("keydown",(function(e){var n=e.key;t.isOpen()&&"Escape"===n&&t.close()}));var n=this.el.querySelectorAll('[data-dismiss="modal"], .ac-modal__dialog__close');n.length>0&&n.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault(),e.close()}))})),this.el.addEventListener("click",(function(t){t.target.classList.contains("ac-modal")&&e.close()}))},t.prototype.isOpen=function(){return this.el.classList.contains("-active")},t.prototype.close=function(){this.onClose(),this.el.classList.remove("-active")},t.prototype.open=function(){var t=this;setTimeout((function(){t.onOpen(),t.el.removeAttribute("style"),t.el.classList.add("-active")}))},t.prototype.destroy=function(){this.el.remove()},t.prototype.onClose=function(){},t.prototype.onOpen=function(){},t}();var nn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const rn=function(t){function e(e){var n=t.call(this,on())||this;return n.canDismiss=!0,n.Editable=e,n.events=new(s()),n.hideProcess(),n.setEditable(n.Editable.get()),n}return nn(e,t),e.prototype.close=function(){this.canDismiss&&(t.prototype.close.call(this),this.events.emit("close"))},e.prototype.setTotal=function(t){this.el.querySelectorAll("[data-total] ").forEach((function(e){e.innerHTML=t}))},e.prototype.setEditable=function(t){this.el.querySelector("[data-editable]").append(t)},e.prototype.setTitle=function(t){this.el.querySelector("[data-title]").innerHTML=t},e.prototype.setProcess=function(t){var e=this.el.querySelector("[data-process]");this.el.querySelector(".ac-modal__dialog__content.-info").style.display="none",e.innerHTML="",e.append(t),e.style.display="block",this.canDismiss=!1,this.toggleCloseButton(!1)},e.prototype.setCanDismiss=function(t){this.canDismiss=t},e.prototype.toggleCloseButton=function(t){this.el.querySelector(".ac-modal__dialog__close").style.display=t?"block":"none"},e.prototype.hideProcess=function(){this.el.querySelector("[data-process]").style.display="none"},e}(en);var on=function(){var t=document.createElement("div");return t.classList.add("ac-modal"),t.classList.add("-bulkedit"),t.innerHTML='\n\t\t\t\t<div class="ac-modal__dialog">\n\t\t\t\t\t<div class="ac-modal__dialog__header">\n\t\t\t\t\t\t<span data-title></span>\n\t\t\t\t\t\t<button class="ac-modal__dialog__close">\n\t\t\t\t\t\t\t<span class="dashicons dashicons-no"></span>\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="ac-modal__dialog__content -editable" data-editable></div>\n\t\t\t\t\t<div class="ac-modal__dialog__content -info">\n\t\t\t\t\t\t<span class="acp-be-warning__icon dashicons dashicons-info"></span><em>This will affect <strong><span data-total="">12.500</span> entries</strong></em> \n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="ac-modal__dialog__content -process" data-process>\n\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="ac-modal__dialog__content -log">\n\t\t\t\t\t    <div data-log></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t',document.body.appendChild(t),t},sn=Ce(ACP_Editing.i18n.bulk_edit.form.update_values,"<span data-acp-be-count>0</span>"),an=ACP_Editing.i18n.bulk_edit.form.are_you_sure,ln=ACP_Editing.i18n.bulk_edit.form.yes_update,un=ACP_Editing.i18n.cancel,cn={total_count:ACP_Editing.bulk_edit.total_items},pn=function(){function t(t,e,n,r){this.Table=t,this.Editables=e,this.Middleware=n,this.Notice=new tn(this.Table),this.EditRow=new $e(this),this.TableUpdate=r,this.isAllSelected=!1,this.confirmed=!1,this.init()}return t.prototype.init=function(){this.addTableEvents(),this.initButtonClick()},t.prototype.setConfirmed=function(t){return this.confirmed=t,this},t.prototype.isConfirmed=function(){return!(!ACP_Editing.bulk_edit.hasOwnProperty("show_confirmation")||ACP_Editing.bulk_edit.show_confirmation)||this.confirmed},t.prototype.onSave=function(t,e){var n=this;if(this.isConfirmed()){var r=new We(e,t.getValue(),this.getItemsToProcess(),this.isAllSelected);this.EditableModal.setProcess(r.getElement()),this.Editable.disable(),t.getElement().querySelector(".aceditable__form__controls [data-submit]").style.display="none",r.events.addListener("close",(function(){n.EditableModal.close()})),r.events.addListener("finished",(function(){n.TableUpdate.updateSelectedCells(e.name,t.getValue()),n.EditableModal&&(n.EditableModal.setCanDismiss(!0),n.EditableModal.toggleCloseButton(!0))}))}else this.confirm(t)},t.prototype.initButtonClick=function(){var t=this;this.EditRow.onButtonClick((function(e){var n=t.Table.Columns.get(e.name),r=t.Middleware.getBulkEditable(n),o=r.getEditable();if(t.setConfirmed(!1),o&&!t.EditableModal){var i=r.getArgs();i.showbuttons=!0;var s=new o(i),a=new rn(s);s.getEditableTemplate().setSubmitButton("Update"),a.setTitle("Bulk Edit “"+n.label+"”"),a.setTotal(t.getSelectedCount()),a.open(),t.EditableModal=a,t.Editable=s,t.updateCount(),s.Events.addListener("save",(function(e){t.onSave(e,n)})),a.events.addListener("close",(function(){t.destroyEditable(),t.EditableModal=null}))}}))},t.prototype.destroyEditable=function(){this.removeConfirm(),this.Editable.close(),this.EditableModal.destroy()},t.prototype.confirm=function(t){var e=this;this.removeConfirm();var n=document.createElement("div");n.classList.add("acp-be-confirm"),n.innerHTML='\n\t\t\t<span class="acp-be-confirm__caret"></span>\n\t\t\t<em class="acp-be-confirm__info">'+sn+'</em>\n\t\t\t<div class="acp-be-confirm__controls"><strong>'+an+'</strong> <a data-confirm class="acp-be-confirm__controls__link -confirm">'+ln+'</a> <a data-cancel class="acp-be-confirm__controls__link -cancel">'+un+"</a></div>\n\t\t",document.body.append(n),new Se(t.getEditableTemplate().getElement().querySelector("[data-submit]"),n,{modifiers:{preventOverflow:{enabled:!1},hide:{enabled:!1},arrow:{element:".acp-be-confirm__caret"}}}),this.confirmElement=n,this.setConfirmed(!1),this.updateCount();var r=this.EditableModal.el.querySelector(".ac-modal__dialog"),o=n.querySelector("[data-confirm]"),i=n.querySelector("[data-cancel]");r.addEventListener("keypress",(function(n){"Enter"===n.key&&document.querySelectorAll(".acp-be-confirm").length>0&&(e.setConfirmed(!0),e.removeConfirm(),t.save())})),o.addEventListener("click",(function(){e.setConfirmed(!0),e.removeConfirm(),t.save()})),i.addEventListener("click",(function(){e.setConfirmed(!1),e.removeConfirm()}))},t.prototype.addTableEvents=function(){var t=this;this.Table.getElement().querySelectorAll(".check-column input[type=checkbox]").forEach((function(e){e.addEventListener("change",(function(){t.isAllSelected=!1,setTimeout((function(){if(t.Table.Selection.getCount()>1?t.toggleEditRows(!0):t.toggleEditRows(!1),t.Table.Selection.isAllSelected()&&cn.total_count&&t.Table.Selection.getCount()<cn.total_count){var e=t.Notice.createSelectAll(cn.total_count);cn.total_count=cn.total_count?cn.total_count:"all",e&&(e.style.display="inline",e.addEventListener("click",(function(){e.style.display="none",t.isAllSelected=!0,t.updateCount()})))}t.updateCount()}))}))})),this.Table.getElement().addEventListener("scroll",(function(){var e=t.Table.getElement(),n=e.querySelector(".acp-be-noticerow .acp-be-notice p");n&&(n.style.left=document.body.classList.contains("acp-overflow-table")?e.scrollLeft+"px":"0")}))},t.prototype.toggleEditRows=function(t){void 0===t&&(t=!0),this.Notice.removeNotice(),this.EditRow.remove(),t&&(this.Notice.addNotice(),this.EditRow.add())},t.prototype.getSelectedCount=function(){var t=this.Table.Selection.getCount();return this.isAllSelected&&(t="all"),t},t.prototype.updateCount=function(){var t=this;document.querySelectorAll("[data-acp-be-count]").forEach((function(e){e.innerHTML=t.getSelectedCount()}))},t.prototype.getItemsToProcess=function(){return this.isAllSelected?[]:this.Table.Selection.getIDs()},t.prototype.removeConfirm=function(){this.confirmElement&&this.confirmElement.remove()},t}();const dn=pn,fn=function(){function t(t){this.name=t.column_name,this.id=t.id,this.current_revision=0,this.revisions=[t.value],this.formattedValue=t.formatted_value?t.formatted_value:t.value}return t.prototype.getFormattedValue=function(){return this.formattedValue},t.prototype.setCurrentRevision=function(t){return this.current_revision=t,this},t.prototype.getCurrentRevision=function(){return this.current_revision},t.prototype.getValue=function(){return this.revisions[this.getCurrentRevision()]},t.prototype.storeRevision=function(t){for(var e=this.revisions.length-this.getCurrentRevision()-1,n=0;n<e;n++)this.revisions.pop();return this.revisions.push(t),this.setCurrentRevision(this.getCurrentRevision()+1),this},t.prototype.save=function(){return jQuery.ajax({url:ajaxurl,data:{action:Te,method:"inline-save",list_screen:AC.list_screen,layout:AC.layout,column:this.name,id:this.id,value:this.getValue(),_ajax_nonce:AC.ajax_nonce},method:"POST",dataType:"json"})},t.prototype.undo=function(){return this.prev()},t.prototype.redo=function(){return this.next()},t.prototype.prev=function(){var t=this.getCurrentRevision();return 0!==t&&(this.setCurrentRevision(t-1),!0)},t.prototype.next=function(){var t=this.getCurrentRevision();return t!==this.revisions.length-1&&(this.setCurrentRevision(t+1),!0)},t.prototype.getRevisions=function(){return this.revisions},t}();function hn(t){return Pe().post(ajaxurl,qe({action:Te,method:Oe,ids:t,list_screen:AC.list_screen,layout:AC.layout,_ajax_nonce:AC.ajax_nonce}))}var mn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yn=function(){function t(t){this.EditCell=t,this.Cell=this.EditCell.Cell,this.reset()}return t.prototype.reset=function(){this.Cell.getElement().querySelectorAll(".acp-ie-controls__items").forEach((function(t){return t.remove()}))},t.prototype.isRevisioningEnabled=function(){return!this.Cell.getSettings().getService(xe).hasOwnProperty("disable_revisioning")},t.prototype.render=function(){var e=t.createContainer(),n=this.Cell.getElement().querySelector(".acp-ie-value");this.Cell.getElement().appendChild(e),n&&tt(e,n),t.appendButton(this.renderEdit(),e),this.isRevisioningEnabled()&&(t.appendButton(this.renderUndo(),e),t.appendButton(this.renderRedo(),e)),t.appendButton(this.renderClear(),e)},t.createContainer=function(){var t=document.createElement("div");return t.classList.add("acp-ie-controls"),t},t.appendButton=function(t,e){t&&e.appendChild(t)},t.prototype.renderEdit=function(){var e=this,n=t.createButtonElement(ACP_Editing.i18n.edit,"-edit");return n.insertAdjacentHTML("beforeend",'<span class="dashicons dashicons-edit"></span>'),n.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.EditCell.openEditable()})),n},t.prototype.renderUndo=function(){var e=this;if(0===this.Cell.getService(je).current_revision)return null;var n=t.createButtonElement(ACP_Editing.i18n.undo,"-undo");return n.insertAdjacentHTML("beforeend",'<span class="dashicons dashicons-undo"></span>'),n.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.EditCell.undo()})),n},t.prototype.renderRedo=function(){var e=this,n=this.Cell.getService(je);if(!(n.current_revision>=n.getRevisions().length-1)){var r=t.createButtonElement(ACP_Editing.i18n.redo,"-redo");return r.insertAdjacentHTML("beforeend",'<span class="dashicons dashicons-redo"></span>'),r.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.EditCell.redo()})),r}},t.prototype.renderClear=function(){var e=this,n=this.Cell.getService(je);if(this.Cell.getSettings().getService(xe).clear_button&&n.getValue()&&("object"!=typeof n.getValue()||0!==n.getValue().length)){var r=t.createButtonElement(ACP_Editing.i18n.delete,"-clear");return r.insertAdjacentHTML("beforeend",'<span class="dashicons dashicons-no-alt"></span>'),r.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e.EditCell.clear()})),r}},t.createButtonElement=function(t,e){var n=document.createElement("button");return n.classList.add("acp-ie-controls__item"),n.classList.add(e),n.setAttribute("title",t),n.tabIndex=0,n},t}(),gn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mn(e,t),e.prototype.render=function(){this.wrapImages()},e.prototype.wrapImages=function(){var t=this.Cell.getElement().querySelectorAll(".ac-image"),e=this.Cell.getElement().querySelector(".acp-ie-controls");t&&(t.forEach((function(t){var e=t.dataset.mediaId,n=document.createElement("div"),r=document.createElement("div");r.classList.add("acp-ie-image-controls"),n.dataset.mediaId=e,n.classList.add("acp-ie-image-item"),t.parentNode.insertBefore(n,t),n.appendChild(t),n.appendChild(r)})),this.Cell.getSettings().getService(xe).multiple?(this.addSingleImageDelete(),e.classList.add("-multiple")):(this.moveActions(),e.classList.add("-single")))},e.prototype.addSingleImageDelete=function(){var t=this,e=this.Cell.getElement().querySelectorAll(".acp-ie-image-item");e&&e.forEach((function(e){var n=e.querySelector(".acp-ie-image-controls"),r=t.renderDelete();n.append(r)}))},e.prototype.moveActions=function(){var t=this.Cell.getElement().querySelector(".acp-ie-controls"),e=this.Cell.getElement().querySelector(".acp-ie-image-controls");t&&e&&(t.querySelectorAll(".acp-ie-controls__item").forEach((function(t){e.append(t)})),e.classList.add("-single"))},e.prototype.renderDelete=function(){var t=this,n=this,r=e.createButtonElement(ACP_Editing.i18n.delete,"-delete");return r.insertAdjacentHTML("beforeend",'<span class="dashicons dashicons-no-alt"></span>'),r.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var r=e.target.closest(".acp-ie-image-item"),o=n.Cell.getService(je).getValue();o=Array.isArray(o)?o.filter((function(t){return parseInt(t)!==parseInt(r.dataset.mediaId)})):"",t.EditCell.saveValue(o)})),r},e}(yn);function vn(t,e){var n=document.createElement("tr");e=e.replace(/\./g,"\\."),n.innerHTML=t;var r=n.querySelector("td.column-"+e);if(r){var o=r.querySelectorAll(".row-actions");return o&&o.forEach((function(t){t.remove()})),r.innerHTML}return""}var bn=n(821),_n=n.n(bn);const En=function(){function t(){this.services={},this.events=new(_n()),this.$=$}return t.prototype.registerService=function(t,e){return this.services[t]=e,this},t.prototype.getService=function(t){return this.hasService(t)?this.services[t]:null},t.prototype.hasService=function(t){return this.services.hasOwnProperty(t)},t.prototype.addListener=function(t,e){this.events.addListener(t,e)},t.prototype.emitEvent=function(t,e){this.events.emit(t,e)},t}();var wn="acp-ie-editable",Sn="acp-ie-value",Cn=function(){function t(t,e,n,r){this.EditableConstructor=r,this.InlineEdit=t,this.Cell=e,this.Middleware=n,this.wrapCellContent(),this.attachEditable(),this.insertControls(),this.attachEvents()}return t.prototype.getDataStorage=function(){return this.Cell.getService(je)},t.prototype.getEditableSettings=function(){return this.Cell.getSettings().getService(xe)},t.prototype.attachEditable=function(){var t=this;if(this.Cell.hasService(je)&&!this.Editable){var e=this.getDataStorage().getFormattedValue();null!==e&&(this.Editable=new this.EditableConstructor(this.Middleware.getArgs()),this.Editable.setValue(e),this.Cell.getObjectID()&&this.Editable.setObjectId(this.Cell.getObjectID()),this.Editable.Events.addListener("save",(function(e){t.saveValue(e.getValue())})),this.Editable.Events.addListener("close",(function(){t.setFocusOnRelatedCell(),On.destroy(),t.destroyPopper()})))}},t.prototype.setFocusOnRelatedCell=function(){var t=this.Cell.getElement().querySelector(".-edit");t&&(this.Cell.getElement().closest("tr").classList.add("forced-focus"),t.focus(),this.Cell.getElement().closest("tr").classList.remove("forced-focus"))},t.prototype.attachEvents=function(){var t=this;this.Cell.events.addListener("setValue",(function(){t.afterSetValue()})),this.getTargetElement().addEventListener("click",(function(e){t.InlineEdit.isEnabled()&&"A"!==e.target.tagName&&(e.preventDefault(),e.stopPropagation(),t.openEditable())})),document.addEventListener("ACP_InlineEditing_Close",(function(){t.Popper&&t.Editable.close()}))},t.prototype.saveValue=function(t){var e=this;this.Editable.toggleLoading(!0),this.getDataStorage().storeRevision(t).save().done((function(t){if(!t.success)return e.Editable.toggleLoading(!1),void e.Editable.setError(t.data.message);e.setValue(t.data),e.Editable.setValue(t.data.value).close(),e.Editable.toggleLoading(!1);var n={column:e.Cell.getName(),item:e.Cell.getObjectID(),value:t.data.value};document.dispatchEvent(new CustomEvent("ACP_InlineEditing_After_Save",{detail:n}))}))},t.prototype.openEditable=function(){var t=this;this.InlineEdit.closeOpenEditables();var e=this.getPopperContainer();e.append(this.Editable.get()),this.popper=new Se(this.getTargetElement(),e,{modifiers:{arrow:{element:".ac-edit-popper__caret"}}}),this.InlineEdit.openEditable(this.Editable),On.bind(),setTimeout((function(){return t.Editable.focus()}),200)},t.prototype.wrapCellContent=function(){var t=this,e=this.getEditableSettings(),n=document.createElement("span");for(this.Cell.getElement().classList.add(wn,"acp-ie-editable--"+e.type),n.classList.add(Sn);this.Cell.getElement().firstChild;)n.appendChild(this.Cell.getElement().firstChild);this.Cell.getElement().append(n);var r=n.querySelectorAll(".row-actions");return r&&r.forEach((function(e){t.Cell.getElement().appendChild(e)})),n},t.prototype.undo=function(){var t=this;this.getDataStorage().undo()&&this.getDataStorage().save().done((function(e){t.setValue(e.data),t.Editable.setValue(e.data.value)}))},t.prototype.redo=function(){var t=this;this.getDataStorage().redo()&&this.getDataStorage().save().done((function(e){t.setValue(e.data),t.Editable.setValue(e.data.value)}))},t.prototype.clear=function(){var t=this;this.getDataStorage().storeRevision("").save().done((function(e){t.setValue(e.data),t.Editable.setValue(e.data.value)}))},t.prototype.setCellValue=function(t){this.Cell.setValue(t)},t.prototype.setValue=function(t){var e,n=this,r=t.display_value;r?this.Cell.setValue(r):(this.getTargetElement().style.backgroundColor="#f2f093",(e=[t.id],Pe().post(window.location.href,qe({ac_action:"get_table_rows",ac_ids:e,_ajax_nonce:AC.ajax_nonce}))).then((function(e){e.data.data.table_rows&&n.setCellValue(vn(e.data.data.table_rows[t.id],n.Cell.getSettings().name))})))},t.prototype.valueUpdateVisual=function(){var t=this.getTargetElement();t&&(t.style.animation="acp-value-highlight .9s")},t.prototype.getTargetElement=function(){return this.Cell.getElement().querySelector(".acp-ie-value")},t.prototype.insertControls=function(){new yn(this).render(),this.Middleware.hasMediaActions()&&new gn(this).render(),this.moveActions()},t.prototype.moveActions=function(){var t=this.getEditableSettings();if(t.hasOwnProperty("js")&&t.js.hasOwnProperty("selector")){var e=this.Cell.getElement().querySelector(t.js.selector),n=this.Cell.getElement().querySelector(".acp-ie-controls");tt(n,e)}},t.prototype.afterSetValue=function(){this.wrapCellContent(),this.valueUpdateVisual(),this.insertControls(),this.Cell.getElement().dispatchEvent(new CustomEvent("ACP_InlineEditing_After_SetValue")),(window.AC_SERVICES||(window.AC_SERVICES=new En),window.AC_SERVICES).emitEvent("Edit.Inline.setValue",{cell:this})},t.prototype.destroyPopper=function(){document.querySelectorAll(".ac-edit-popper").forEach((function(t){t.remove()})),this.popper&&this.popper.destroy()},t.prototype.getPopperContainer=function(){return Ln()},t}();const Tn=Cn;var On=function(){function t(){}return t.bind=function(){document.addEventListener("keyup",t.escapeEvent),document.addEventListener("click",t.clickEvent),document.querySelectorAll(".select2-container--acs2").forEach((function(t){t.addEventListener("click",(function(t){t.stopPropagation()}))}))},t.destroy=function(){document.removeEventListener("keyup",t.escapeEvent),document.removeEventListener("click",t.clickEvent)},t.escapeEvent=function(t){"Escape"===t.key&&document.dispatchEvent(new CustomEvent("ACP_InlineEditing_Close"))},t.clickEvent=function(e){e.target!==document.body&&(t.checkInvalidParentClasses(e.target)||document.dispatchEvent(new CustomEvent("ACP_InlineEditing_Close")))},t.checkInvalidParentClasses=function(e){var n=!1;return["mce-container","wp-editor-wrap","media-modal","select2-container","ui-datepicker","ui-datepicker-header","ui-datepicker-buttonpane"].map((function(t){e.classList.contains(t)&&(n=!0)})),!!n||!!e.parentElement&&t.checkInvalidParentClasses(e.parentElement)},t}(),Ln=function(){var t=document.createElement("div");return t.classList.add("ac-edit-popper"),t.insertAdjacentHTML("afterbegin",'<span class="ac-edit-popper__caret">'),document.body.append(t),t},An=function(t){var e=t.split(/[_,\-]+/);return parseInt(e[e.length-1])},xn=function(){function t(t,e,n,r,o){this.Editables=e,this.Table=t,this.Middleware=n,this.enabled=r,this.version=o,this.initialized=!1,this.openEditables=[],this.setTableClass(),this.addEvents(),this.initCells(),this.setInputState()}return t.prototype.isEnabled=function(){return this.enabled},t.prototype.getVersion=function(){return this.version},t.prototype.enable=function(){this.enabled=!0,this.storePreference(),this.setTableClass(),this.initCells(),this.setInputState()},t.prototype.setInputState=function(){var t=this;document.querySelectorAll("#acp-enable-editing").forEach((function(e){return e.checked=t.isEnabled()}))},t.prototype.disable=function(){this.enabled=!1,this.storePreference(),this.setTableClass()},t.prototype.setInitialised=function(t){return void 0===t&&(t=!0),this.initialized=t,this},t.prototype.isInitialised=function(){return this.initialized},t.prototype.setTableClass=function(){var t=this.Table.getElement();t.classList.add("acp-ie-table","acp-ie-table--"+this.getVersion()),this.isEnabled()?(t.classList.add("acp-ie-enabled"),t.classList.remove("acp-ie-disabled")):(t.classList.add("acp-ie-disabled"),t.classList.remove("acp-ie-enabled"))},t.prototype.initCell=function(t){var e=t.getSettings(),n=e.getService(xe);if(e&&n&&n.type&&!t.hasService("IEdit")){var r=this.Middleware.getInlineEditable(e),o=r.getEditable();o&&t.getService(je)&&t.setService("IEdit",new Tn(this,t,r,o))}},t.prototype.initRow=function(t){var e=this;hn([t]).then((function(t){t.data.data.editable_values.forEach((function(t){var n=e.Table.Cells.get(t.id,t.column_name);n.hasService("dataStorage")||n.setService("dataStorage",new fn({column_name:n.getName(),id:n.getObjectID()})),e.initCell(n),n.hasService("IEdit")&&n.getService("IEdit").hasOwnProperty("Editable")&&n.getService("IEdit").Editable.setValue(t.value)}))}))},t.prototype.updateRowCells=function(t){var e=this;Object.keys(this.Table.Columns.getColumns()).forEach((function(n){var r=e.Table.Cells.get(function(t){if(t.classList.contains("no-items"))return 0;var e,n=An(t.id);if(!n){var r=t.querySelector(".check-column input[type=checkbox]");r&&(n=An(r.id))}if(!n){var o=t.parentElement.querySelector(".edit a");if(o){var i=o.getAttribute("href");i&&(n=parseInt((e=i).includes("?")?new URLSearchParams(e.split("?")[1]).get("id"):null))}}return t.dataset.id=n.toString(),n}(t),n);r&&(r.setElement(function(t,e){return t.querySelector("td.column-"+e)}(t,n)),r.hasService("IEdit")&&r.getService("IEdit").afterSetValue())}))},t.prototype.openEditable=function(t){this.openEditables.push(t)},t.prototype.closeOpenEditables=function(){this.openEditables.forEach((function(t){t.close()})),this.openEditables=[]},t.prototype.initCells=function(){var t=this;!this.isInitialised()&&this.isEnabled()&&(this.Table.Cells.getAll().forEach((function(e){return t.initCell(e)})),this.setInitialised())},t.prototype.storePreference=function(){var t;t=this.isEnabled(),Pe().post(ajaxurl,qe({action:Te,method:"edit-state",value:t?1:0,list_screen:AC.list_screen,layout:AC.layout,_ajax_nonce:AC.ajax_nonce}))},t.prototype.addEvents=function(){var t=this;document.querySelectorAll("#acp-enable-editing").forEach((function(e){e.addEventListener("change",(function(){return e.checked?t.enable():t.disable()}))})),document.addEventListener("ACP_InlineEditing_Close",(function(){return t.closeOpenEditables()})),jQuery(this.Table.getElement()).on("updated","tr",(function(e){return t.updateRowCells(e.target)})),document.addEventListener("keydown",(function(e){"Escape"!==e.key&&"Esc"!==e.key||t.closeOpenEditables()}),!0)},t}();const jn=xn;const kn=function(){function t(t){this.Table=t}return t.prototype.updateSelectedCells=function(t,e){var n=this;void 0===e&&(e="");var r=this.Table.Selection.getIDs();0!==r.length&&this.getRows(r).done((function(r){if(r.hasOwnProperty("data")&&r.data.hasOwnProperty("table_rows")){var o=r.data.table_rows;Object.keys(o).forEach((function(e){n.Table.Cells.get(parseInt(e),t).setValue(vn(o[e],t))})),n.updateSelectedEditingCells(t,o,e)}}))},t.prototype.updateSelectedEditingCells=function(t,e,n){var r=this,o=this.Table.Selection.getIDs();0!==o.length&&jQuery.ajax({url:ajaxurl,method:"post",data:{action:Te,method:Oe,ids:o,column:t,list_screen:AC.list_screen,layout:AC.layout,_ajax_nonce:AC.ajax_nonce}}).done((function(o){o.data.editable_values.forEach((function(o){if(o.column_name===t){var i=r.Table.Cells.get(o.id,t),s=i.getService("IEdit");i.setValue(vn(e[o.id],o.column_name)),s&&(i.getService(je).storeRevision(n),s.Editable.setValue(o.value))}}))}))},t.prototype.getRows=function(t){return jQuery.ajax({url:window.location.href,method:"post",data:{ac_action:"get_table_rows",ac_ids:t,_ajax_nonce:AC.ajax_nonce}})},t}();var Pn=function(){function t(t,e,n,r){this.Editables=t,this.settings=e,this.column=n,this.mode=r,this.args={mode:r},this.map()}return t.prototype.getEditable=function(){return null},t.prototype.getArgs=function(){return this.args},t.prototype.hasMediaActions=function(){return!1},t.prototype.map=function(){},t}();const qn=Pn;var In=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.getEditable=function(){return this.Editables.get("text")},e.prototype.map=function(){return this.mapHTMLAttributes(this.settings),this.args},e.prototype.mapHTMLAttributes=function(t){var e={};t.hasOwnProperty("required")&&(e.required=t.required),t.hasOwnProperty("placeholder")&&null!==t.placeholder&&(e.placeholder=t.placeholder),t.hasOwnProperty("range_max")&&(e.max=t.range_max),t.hasOwnProperty("range_min")&&(e.min=t.range_min),t.hasOwnProperty("range_step")&&(e.step=t.range_step),t.hasOwnProperty("maxlength")&&(e.maxlength=t.maxlength),t.hasOwnProperty("rows")&&(e.rows=t.rows),this.args.html_attributes=e},e}(qn),Mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.map=function(){return t.prototype.map.call(this),this.args.html_attributes.type="email",this.args},e}(Dn),Nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.map=function(){return t.prototype.map.call(this),this.args.html_attributes.type="number",this.args},e}(Dn),Rn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.map=function(){return t.prototype.map.call(this),this.args.html_attributes.type="url",this.args},e}(Dn),Hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.getEditable=function(){return this.Editables.get("textarea")},e}(Dn),Vn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.map=function(){return t.prototype.map.call(this),this.args.html_attributes.type="number",this.args.html_attributes.step="any",this.args},e}(Dn),Bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.map=function(){return t.prototype.map.call(this),this.args.html_attributes.type="password",this.args},e}(Dn),Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.getEditable=function(){return this.Editables.get("color")},e}(qn),Un=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.getEditable=function(){return this.Editables.get("wysiwyg")},e.prototype.map=function(){return this.args},e}(qn),Wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.getEditable=function(){return this.Editables.get("date")},e.prototype.map=function(){return this.args.showbuttons=!1,this.args},e}(qn),Qn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.map=function(){return this.args.timeformat=this.settings.timeformat,this.args},e.prototype.getEditable=function(){return this.Editables.get("date_time")},e}(qn),zn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.map=function(){return this.args.options=function(t){var e=[];if(void 0===t)return e;for(var n=0;n<t.length;n++){var r=void 0;if(void 0!==t[n].options)for(var o in r={text:t[n].label,children:[]},t[n].options)t[n].options.hasOwnProperty(o)&&r.children.push({value:t[n].options[o].value,id:t[n].options[o].value,text:t[n].options[o].label});else r={value:t[n].value,id:t[n].value,text:t[n].label};e.push(r)}return e}(this.settings.options),this.args},e.prototype.getEditable=function(){return this.Editables.get("checklist")},e}(qn),Jn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.getEditable=function(){return this.Editables.get("select")},e.prototype.map=function(){return this.args.options=this.settings.options,this.args},e}(qn),Yn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return In(e,t),e.prototype.getEditable=function(){return this.Editables.get("toggle")},e.prototype.map=function(){return this.args.options=this.settings.options,this.args.showbuttons=!1,this.args},e.prototype.flattenOptionArray=function(t){var e=[];return t.forEach((function(t){e.push(t.label)})),e},e}(qn),Gn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gn(e,t),e.prototype.getEditable=function(){var t,e;return 1==(!0===this.args.ajax)?this.settings.multiple?(null===(t=this.settings)||void 0===t?void 0:t.has_methods)?this.Editables.get("select2_ajax_strategy"):this.Editables.get("select2_ajax_multiple"):this.Editables.get("select2_ajax"):this.settings.multiple?(null===(e=this.settings)||void 0===e?void 0:e.has_methods)?this.Editables.get("select2_multiple_strategy"):this.Editables.get("select2_multiple"):this.Editables.get("select2")},e.prototype.map=function(){this.args.select2={width:320,theme:"acs2",escapeMarkup:function(t){return jQuery("<div>"+t+"</div>").text()}},this.settings.ajax_populate?(this.args.select2.ajax=this.mapAjax(),this.args.ajax=!0):this.args.options=this.settings.options,this.settings.multiple&&(this.args.select2.multiple=!0,this.args.select2.closeOnSelect=!1),this.settings.tags&&(this.args.select2.tags=!0)},e.prototype.mapAjax=function(){var t=this.column.name,e=this.mode===Le?"bulk-select-values":"inline-select-values";return{url:ajaxurl,dataType:"json",delay:500,data:function(n){var r={action:Te,method:e,layout:AC.layout,searchterm:n.term,page:n.page,column:t,list_screen:AC.list_screen,_ajax_nonce:AC.ajax_nonce};return this[0].dataset.hasOwnProperty("objectId")&&(r.item_id=this[0].dataset.objectId),r},processResults:function(t){return t.success?t.data:{results:[]}}}},e}(qn);var $n=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Kn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $n(e,t),e.prototype.getEditable=function(){return this.Editables.get("select2_remote")},e.prototype.map=function(){this.args.column=this.column.name,this.args.select2={width:320,theme:"acs2",escapeMarkup:function(t){return jQuery("<div>"+t+"</div>").text()}}},e}(qn);var Zn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.getEditable=function(){return this.Editables.get("taxonomy")},e}(Xn);var er=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const nr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return er(e,t),e.prototype.getEditable=function(){return this.Editables.get("wp_library")},e.prototype.map=function(){return this.args.showbuttons=!1,this.args.multiple=!(!this.settings.hasOwnProperty("multiple")||!this.settings.multiple),this.settings.hasOwnProperty("attachment")&&this.settings.attachment.hasOwnProperty("library")&&(this.args.library=this.settings.attachment.library),this.args},e.prototype.hasMediaActions=function(){return!0},e}(qn);var rr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rr(e,t),e.prototype.getEditable=function(){return this.Editables.get("multi_input")},e.prototype.map=function(){return this.args.subtype=this.settings.subtype,this.args},e}(qn);var ir=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ir(e,t),e.prototype.getEditable=function(){return this.Editables.get("fullname")},e.prototype.map=function(){return this.args.placeholder_first_name=this.settings.placeholder_first_name,this.args.placeholder_last_name=this.settings.placeholder_last_name,this.args},e}(qn);var ar=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ar(e,t),e.prototype.getEditable=function(){return this.Editables.get("number_extended")},e.prototype.map=function(){return this.mapHTMLAttributes(this.settings),this.args},e.prototype.mapHTMLAttributes=function(t){var e={type:"number"};t.hasOwnProperty("range_max")&&(e.max=t.range_max),t.hasOwnProperty("range_min")&&(e.min=t.range_min),t.hasOwnProperty("range_step")&&(e.step=t.range_step),this.args.html_attributes=e},e}(qn);const ur=lr;var cr=function(){function t(t,e){this.services=e,this.Editables=t,this.middleWareClasses={_abstract:qn,default:Dn,text:Dn,url:Rn,number:Nn,number_extended:ur,password:Bn,email:Mn,checklist:zn,color:Fn,select:Jn,select2_dropdown:Xn,select2_remote:Kn,date:Wn,date_time:Qn,textarea:Hn,togglable:Yn,attachment:nr,media:nr,float:Vn,multi_input:or,types_multi_input:or,taxonomy:tr,wysiwyg:Un,fullname:sr},this.services.emitEvent("Editing.Middleware.Ready",this)}return t.prototype.register=function(t,e){return this.middleWareClasses[t]=e,this},t.prototype.getClass=function(t){return this.middleWareClasses.hasOwnProperty(t)?this.middleWareClasses[t]:this.middleWareClasses.default},t.prototype.getInlineEditable=function(t){var e=t.getService(xe),n=e.type;return new(this.middleWareClasses.hasOwnProperty(n)?this.middleWareClasses[n]:this.middleWareClasses.default)(this.Editables,e,t,"inline")},t.prototype.getBulkEditable=function(t){var e=t.getService(Ae),n=e.type;return new(this.middleWareClasses.hasOwnProperty(n)?this.middleWareClasses[n]:this.middleWareClasses.default)(this.Editables,e,t,Le)},t}();const pr=cr,dr=function(){function t(){this.services={}}return t.prototype.registerService=function(t,e){return this.services[t]=e,this},t.prototype.getService=function(t){return this.hasService(t)?this.services[t]:null},t.prototype.hasService=function(t){return this.services.hasOwnProperty(t)},t}();AC_SERVICES.addListener("Table.Ready",(function(t){var e=t.table;if(AC.hasOwnProperty("layout")&&null!==AC.layout){var n,r;n=t.table.Columns,r=ACP_Editing_Columns,Object.keys(r).forEach((function(t){n.get(t).setService("inlineEditable",r[t].inline_edit),n.get(t).setService("bulkEditable",r[t].bulk_edit)}));var o=new dr,i=new vt(AC_SERVICES),s=new pr(i,AC_SERVICES),a=new kn(e);AC_SERVICES.registerService("Editing",o),o.registerService("Editables",i).registerService("Helper",new bt).registerService("TableUpdate",a),fr("bulk_edit")&&o.registerService("BulkEdit",new dn(e,i,s,a)),fr("inline_edit")?hn(e.getIdsFromTable()).then((function(t){t.data.success&&(function(t,e){e.forEach((function(e){var n=t.get(e.id,e.column_name),r=n.getSettings().getService(xe);null!==r&&(r.hasOwnProperty("store_values")&&!1===r.store_values&&(e.formatted_value=e.value,e.value="object"==typeof e?Object.keys(e.value):""),function(t){return!(!t.hasOwnProperty("store_single_value")||!t.store_single_value)||"select2_dropdown"===t.type&&(!t.hasOwnProperty("multiple")||!1===t.multiple)}(r)&&(e.formatted_value=e.value,e.value=Object.keys(e.value)[0]),n.setService("dataStorage",new fn(e)))}))}(e.Cells,t.data.data.editable_values),o.registerService("InlineEdit",new jn(e,i,s,ACP_Editing.inline_edit.active||ACP_Editing.inline_edit.persistent,ACP_Editing.inline_edit.version)))})):document.querySelectorAll(".ac-table-button.-toggle.-iedit").forEach((function(t){return t.remove()}))}}));var fr=function(t){for(var e=ACP_Editing_Columns,n=0,r=Object.keys(e);n<r.length;n++){var o=e[r[n]];if(o.hasOwnProperty(t)&&null!==o[t])return!0}return!1}})()})();

Zerion Mini Shell 1.0