%PDF- %PDF-
Direktori : /var/www/cwg/wp-content/plugins/codepress-admin-columns/assets/js/ |
Current File : //var/www/cwg/wp-content/plugins/codepress-admin-columns/assets/js/admin-general.js |
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=19)}([function(t,e){t.exports=jQuery},function(t,e){function n(t,e){if(!t)throw new Error(e||"AssertionError")}n.notEqual=function(t,e,i){n(t!=e,i)},n.notOk=function(t,e){n(!t,e)},n.equal=function(t,e,i){n(t==e,i)},n.ok=n,t.exports=n},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var i=function(){document.querySelectorAll("[data-ac-tip]").forEach((function(t){new o(t)}))},o=function(){function t(t,e){void 0===e&&(e=""),this.element=t,this.content=e||t.dataset.acTip,this.tip=s(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}(),s=function(t){var e=document.createElement("div");return e.classList.add("ac-tooltip"),e.innerHTML=t,e}},function(t,e,n){"use strict";var i=function(){function t(t){t&&(this.el=t,this.dialog=t.querySelector(".ac-modal__dialog"),this.initEvents())}return 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}();e.a=i},function(t,e,n){"use strict";var i=n(2),o=function(){function t(){this.init()}return t.prototype.init=function(){Object(i.b)()},t}();e.a=o},function(t,e,n){var i=n(6),o=n(7),s=n(1);function r(t){if(!(this instanceof r))return new r(t);this._name=t||"nanobus",this._starListeners=[],this._listeners={}}t.exports=r,r.prototype.emit=function(t){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.emit: eventName should be type string or symbol");for(var e=[],n=1,i=arguments.length;n<i;n++)e.push(arguments[n]);var r=o(this._name+"('"+t.toString()+"')"),u=this._listeners[t];return u&&u.length>0&&this._emit(this._listeners[t],e),this._starListeners.length>0&&this._emit(this._starListeners,t,e,r.uuid),r(),this},r.prototype.on=r.prototype.addListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.on: eventName should be type string or symbol"),s.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},r.prototype.prependListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependListener: eventName should be type string or symbol"),s.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},r.prototype.once=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.once: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.once: listener should be type function");var n=this;return this.on(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},r.prototype.prependOnceListener=function(t,e){s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.prependOnceListener: eventName should be type string or symbol"),s.equal(typeof e,"function","nanobus.prependOnceListener: listener should be type function");var n=this;return this.prependListener(t,(function i(){e.apply(n,arguments),n.removeListener(t,i)})),this},r.prototype.removeListener=function(t,e){return s.ok("string"==typeof t||"symbol"==typeof t,"nanobus.removeListener: eventName should be type string or symbol"),s.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?(i(t,n,1),!0):void 0}}},r.prototype.removeAllListeners=function(t){return t?"*"===t?this._starListeners=[]:this._listeners[t]=[]:(this._starListeners=[],this._listeners={}),this},r.prototype.listeners=function(t){var e="*"!==t?this._listeners[t]:this._starListeners,n=[];if(e)for(var i=e.length,o=0;o<i;o++)n.push(e[o]);return n},r.prototype._emit=function(t,e,n,i){if(void 0!==t&&0!==t.length){void 0===n&&(n=e,e=null),e&&(n=void 0!==i?[e].concat(n,i):[e].concat(n));for(var o=t.length,s=0;s<o;s++){var r=t[s];r.apply(r,n)}}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i,o=t.length;if(!(e>=o||0===n)){var s=o-(n=e+n>o?o-e:n);for(i=e;i<s;++i)t[i]=t[i+n];t.length=s}}},function(t,e,n){var i,o=n(8)(),s=n(1);r.disabled=!0;try{i=window.performance,r.disabled="true"===window.localStorage.DISABLE_NANOTIMING||!i.mark}catch(t){}function r(t){if(s.equal(typeof t,"string","nanotiming: name should be type string"),r.disabled)return u;var e=(1e4*i.now()).toFixed()%Number.MAX_SAFE_INTEGER,n="start-"+e+"-"+t;function c(s){var r="end-"+e+"-"+t;i.mark(r),o.push((function(){var o=null;try{var u=t+" ["+e+"]";i.measure(u,n,r),i.clearMarks(n),i.clearMarks(r)}catch(t){o=t}s&&s(o,t)}))}return i.mark(n),c.uuid=e,c}function u(t){t&&o.push((function(){t(new Error("nanotiming: performance API unavailable"))}))}t.exports=r},function(t,e,n){var i=n(1),o="undefined"!=typeof window;function s(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=[]}s.prototype.push=function(t){i.equal(typeof t,"function","nanoscheduler.push: cb should be type function"),this.queue.push(t),this.schedule()},s.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()}))}},s.prototype.setTimeout=function(t){setTimeout(t,0,{timeRemaining:function(){return 1}})},t.exports=function(){var t;return o?(window._nanoScheduler||(window._nanoScheduler=new s(!0)),t=window._nanoScheduler):t=new s,t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(3),o=function(){function t(){this.modals={},this.number=0,this.defaults={modal:i.a},this.initGlobalEvents()}return t.prototype.register=function(t,e){return void 0===e&&(e=""),e||(e="m"+this.number),this.modals[e]=t,this.number++,t},t.prototype.get=function(t){return this.modals.hasOwnProperty(t)?this.modals[t]:null},t.prototype.open=function(t){this.get(t)&&this.get(t).open()},t.prototype.close=function(t){this.get(t)&&this.get(t).close()},t.prototype.closeAll=function(){for(var t in this.modals)this.close(t)},t.prototype.initGlobalEvents=function(){var t=this;document.addEventListener("click",(function(e){var n=e.target;n.dataset.acModal&&(e.preventDefault(),t.open(n.dataset.acModal))}))},t}(),s=n(5),r=function(){return window.AdminColumns||(window.AdminColumns=window.AdminColumns||{},AdminColumns.events=s(),AdminColumns.Modals=new o),window.AdminColumns}},,function(t,e,n){var i,o; /*! * JavaScript Cookie v2.2.1 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */!function(s){if(void 0===(o="function"==typeof(i=s)?i.call(e,n,e,t):i)||(t.exports=o),!0,t.exports=s(),!!0){var r=window.Cookies,u=window.Cookies=s();u.noConflict=function(){return window.Cookies=r,u}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(i){function o(){}function s(e,n,s){if("undefined"!=typeof document){"number"==typeof(s=t({path:"/"},o.defaults,s)).expires&&(s.expires=new Date(1*new Date+864e5*s.expires)),s.expires=s.expires?s.expires.toUTCString():"";try{var r=JSON.stringify(n);/^[\{\[]/.test(r)&&(n=r)}catch(t){}n=i.write?i.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var u="";for(var c in s)s[c]&&(u+="; "+c,!0!==s[c]&&(u+="="+s[c].split(";")[0]));return document.cookie=e+"="+n+u}}function r(t,n){if("undefined"!=typeof document){for(var o={},s=document.cookie?document.cookie.split("; "):[],r=0;r<s.length;r++){var u=s[r].split("="),c=u.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var a=e(u[0]);if(c=(i.read||i)(c,a)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(o[a]=c,t===a)break}catch(t){}}return t?o[t]:o}}return o.set=s,o.get=function(t){return r(t,!1)},o.getJSON=function(t){return r(t,!0)},o.remove=function(e,n){s(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},,,,,,,,function(t,e,n){"use strict";n.r(e);var i=n(11),o=function(){function t(t){this.element=t,this.init()}return t.prototype.init=function(){var t=this;if(this.element.classList.contains("-closable")){var e=this.element.querySelector(".ac-section__header");if(e&&e.addEventListener("click",(function(){t.toggle()})),this.isStorable()){var n=i.get(this.getCookieKey());void 0!==n&&(1===parseInt(n)?this.open:this.close())}}},t.prototype.getCookieKey=function(){return"ac-section_"+this.getSectionId()},t.prototype.getSectionId=function(){return this.element.dataset.section},t.prototype.isStorable=function(){return void 0!==this.element.dataset.section},t.prototype.toggle=function(){this.isOpen()?this.close():this.open()},t.prototype.isOpen=function(){return!this.element.classList.contains("-closed")},t.prototype.open=function(){this.element.classList.remove("-closed"),this.isStorable()&&i.set(this.getCookieKey(),1)},t.prototype.close=function(){this.element.classList.add("-closed"),this.isStorable()&&i.set(this.getCookieKey(),0)},t}(),s=n(4),r=n(0),u=function(){function t(t){this.element=t,this.settings=this.getDefaults(),this.init(),this.setInitialized()}return t.prototype.setInitialized=function(){this.element.dataset.ac_pointer_initialized="1"},t.prototype.getDefaults=function(){return{width:this.element.getAttribute("data-width")?this.element.getAttribute("data-width"):250,noclick:!!this.element.getAttribute("data-noclick")&&this.element.getAttribute("data-noclick"),position:this.getPosition()}},t.prototype.isInitialized=function(){return this.element.dataset.hasOwnProperty("ac_pointer_initialized")},t.prototype.init=function(){this.isInitialized()||(r(this.element).pointer({content:this.getRelatedHTML(),position:this.settings.position,pointerWidth:this.settings.width,pointerClass:this.getPointerClass()}),this.initEvents())},t.prototype.getPosition=function(){var t={at:"left top",my:"right top",edge:"right"},e=this.element.getAttribute("data-pos"),n=this.element.getAttribute("data-pos_edge");return"right"===e&&(t={at:"right middle",my:"left middle",edge:"left"}),"right_bottom"===e&&(t={at:"right middle",my:"left bottom",edge:"none"}),"left"===e&&(t={at:"left middle",my:"right middle",edge:"right"}),n&&(t.edge=n),t},t.prototype.getPointerClass=function(){var t=["ac-wp-pointer","wp-pointer","wp-pointer-"+this.settings.position.edge];return this.settings.noclick&&t.push("noclick"),t.join(" ")},t.prototype.getRelatedHTML=function(){var t=document.getElementById(this.element.getAttribute("rel"));return t?t.innerHTML:""},t.prototype.initEvents=function(){var t=r(this.element);this.settings.noclick||t.click((function(){t.hasClass("open")?t.removeClass("open"):t.addClass("open")})),t.click((function(){t.pointer("open")})),t.mouseenter((function(){t.pointer("open"),setTimeout((function(){t.pointer("open")}),2)})),t.mouseleave((function(){setTimeout((function(){t.hasClass("open")||0!==r(".ac-wp-pointer.hover").length||t.pointer("close")}),1)})),t.on("close",(function(){setTimeout((function(){t.hasClass("open")||t.pointer("close")}))}))},t}(),c=function(){document.querySelectorAll(".ac-pointer").forEach((function(t){new u(t)})),r(".ac-wp-pointer").hover((function(){r(this).addClass("hover")}),(function(){r(this).removeClass("hover"),r(".ac-pointer").trigger("close")})).on("click",".close",(function(){r(".ac-pointer").removeClass("open")})),new s.a},a=n(9),l=n(0);Object(a.a)(),window.ac_pointers=c,l(document).ready((function(){c(),document.querySelectorAll(".ac-section").forEach((function(t){new o(t)}))}))}]);