File Editor
Directories:
.. (Back)
Files:
x-menus.js
x-meta.js
x-validation.js
Create New File
Create
Edit File: x-meta.js
var tco;!function(){var t={8580:function(t,n,r){t.exports=r(3778)},1643:function(t,n,r){t.exports=r(9373)},991:function(t,n,r){r(7690);var e=r(5703);t.exports=e("Array").includes},8700:function(t,n,r){r(9076);var e=r(5703);t.exports=e("Array").indexOf},8557:function(t,n,r){var e=r(991),o=r(1631),i=Array.prototype,c=String.prototype;t.exports=function(t){var n=t.includes;return t===i||t instanceof Array&&n===i.includes?e:"string"==typeof t||t===c||t instanceof String&&n===c.includes?o:n}},4570:function(t,n,r){var e=r(8700),o=Array.prototype;t.exports=function(t){var n=t.indexOf;return t===o||t instanceof Array&&n===o.indexOf?e:n}},1631:function(t,n,r){r(1035);var e=r(5703);t.exports=e("String").includes},3916:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},8479:function(t){t.exports=function(){}},6059:function(t,n,r){var e=r(941);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},1692:function(t,n,r){var e=r(4529),o=r(3057),i=r(9413);t.exports=function(t){return function(n,r,c){var a,u=e(n),f=o(u.length),s=i(c,f);if(t&&r!=r){for(;f>s;)if((a=u[s++])!=a)return!0}else for(;f>s;s++)if((t||s in u)&&u[s]===r)return t||s||0;return!t&&-1}}},3894:function(t,n,r){var e=r(3916);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 0:return function(){return t.call(n)};case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},2532:function(t){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},7772:function(t,n,r){var e=r(9813)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,"/./"[t](n)}catch(t){}}return!1}},1887:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},5746:function(t,n,r){var e=r(5981);t.exports=!e((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},1333:function(t,n,r){var e=r(1899),o=r(941),i=e.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},5703:function(t,n,r){var e=r(4058);t.exports=function(t){return e[t+"Prototype"]}},6887:function(t,n,r){"use strict";var e=r(1899),o=r(9677).f,i=r(7252),c=r(4058),a=r(3894),u=r(9461),f=r(7457),s=function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n};t.exports=function(t,n){var r,p,l,d,v,x,y,b,h=t.target,g=t.global,m=t.stat,w=t.proto,_=g?e:m?e[h]:(e[h]||{}).prototype,O=g?c:c[h]||(c[h]={}),S=O.prototype;for(l in n)r=!i(g?l:h+(m?".":"#")+l,t.forced)&&_&&f(_,l),v=O[l],r&&(x=t.noTargetGet?(b=o(_,l))&&b.value:_[l]),d=r&&x?x:n[l],r&&typeof v==typeof d||(y=t.bind&&r?a(d,e):t.wrap&&r?s(d):w&&"function"==typeof d?a(Function.call,d):d,(t.sham||d&&d.sham||v&&v.sham)&&u(y,"sham",!0),O[l]=y,w&&(f(c,p=h+"Prototype")||u(c,p,{}),c[p][l]=d,t.real&&S&&!S[l]&&u(S,l,d)))}},5981:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1899:function(t,n,r){var e="object",o=function(t){return t&&t.Math==Math&&t};t.exports=o(typeof globalThis==e&&globalThis)||o(typeof window==e&&window)||o(typeof self==e&&self)||o(typeof r.g==e&&r.g)||Function("return this")()},7457:function(t){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},9461:function(t,n,r){var e=r(5746),o=r(5988),i=r(1887);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},2840:function(t,n,r){var e=r(5746),o=r(5981),i=r(1333);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:function(t,n,r){var e=r(5981),o=r(2532),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},7252:function(t,n,r){var e=r(5981),o=/#|\.prototype\./,i=function(t,n){var r=a[c(t)];return r==f||r!=u&&("function"==typeof n?e(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},941:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},2529:function(t){t.exports=!0},685:function(t,n,r){var e=r(941),o=r(2532),i=r(9813)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},2497:function(t,n,r){var e=r(5981);t.exports=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())}))},5988:function(t,n,r){var e=r(5746),o=r(2840),i=r(6059),c=r(6935),a=Object.defineProperty;n.f=e?a:function(t,n,r){if(i(t),n=c(n,!0),i(r),o)try{return a(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},9677:function(t,n,r){var e=r(5746),o=r(6760),i=r(1887),c=r(4529),a=r(6935),u=r(7457),f=r(2840),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=c(t),n=a(n,!0),f)try{return s(t,n)}catch(t){}if(u(t,n))return i(!o.f.call(t,n),t[n])}},6760:function(t,n){"use strict";var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!r.call({1:2},1);n.f=o?function(t){var n=e(this,t);return!!n&&n.enumerable}:r},4058:function(t){t.exports={}},8219:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},4911:function(t,n,r){var e=r(1899),o=r(9461);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},8726:function(t,n,r){var e=r(1899),o=r(4911),i=r(2529),c="__core-js_shared__",a=e[c]||o(c,{});(t.exports=function(t,n){return a[t]||(a[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},8915:function(t,n,r){"use strict";var e=r(5981);t.exports=function(t,n){var r=[][t];return!r||!e((function(){r.call(null,n||function(){throw 1},1)}))}},9413:function(t,n,r){var e=r(8459),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},4529:function(t,n,r){var e=r(7026),o=r(8219);t.exports=function(t){return e(o(t))}},8459:function(t){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},3057:function(t,n,r){var e=r(8459),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},6935:function(t,n,r){var e=r(941);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},9418:function(t){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},4813:function(t,n,r){var e=r(685),o=r(8219);t.exports=function(t,n,r){if(e(n))throw TypeError("String.prototype."+r+" doesn't accept regex");return String(o(t))}},9813:function(t,n,r){var e=r(1899),o=r(8726),i=r(9418),c=r(2497),a=e.Symbol,u=o("wks");t.exports=function(t){return u[t]||(u[t]=c&&a[t]||(c?a:i)("Symbol."+t))}},7690:function(t,n,r){"use strict";var e=r(6887),o=r(1692),i=r(8479),c=o(!0);e({target:"Array",proto:!0},{includes:function(t){return c(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},9076:function(t,n,r){"use strict";var e=r(6887),o=r(8915),i=r(1692)(!1),c=[].indexOf,a=!!c&&1/[1].indexOf(1,-0)<0,u=o("indexOf");e({target:"Array",proto:!0,forced:a||u},{indexOf:function(t){return a?c.apply(this,arguments)||0:i(this,t,arguments[1])}})},1035:function(t,n,r){"use strict";var e=r(6887),o=r(4813);e({target:"String",proto:!0,forced:!r(7772)("includes")},{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},3778:function(t,n,r){t.exports=r(8557)},9373:function(t,n,r){t.exports=r(4570)}},n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};!function(){"use strict";r.r(e);var t=r(8580),n=r.n(t),o=r(1643),i=r.n(o),c=window.jQuery,a=r.n(c);a()((function(){var t=window.wp,r=a()(document.body).hasClass("block-editor-page")&&t&&t.data&&t.data.subscribe;function e(t){a()("#x-meta-box-quote, #x-meta-box-link, #x-meta-box-video, #x-meta-box-audio").css("display","none"),t&&a()("#x-meta-box-".concat(t)).css("display","block")}var o=a()('#post-formats-select input[type=radio][name="post_format"]');o.length>0&&(e(a()('#post-formats-select input[type=radio][name="post_format"]:checked').val()),o.change((function(){e(a()(this).val())}))),r&&(e(),t.data.subscribe((function(){var n=t.data.select("core/editor").getEditedPostAttribute("format");n&&e(n)})));var c=["template-blank-7.php","template-blank-3.php","template-blank-8.php","template-blank-6.php"];function u(t){var r;a()("#x-meta-box-page-icon").toggle(0===i()(r=t||"").call(r,"template-blank")),a()("#x-meta-box-portfolio").toggle("template-layout-portfolio.php"===t),a()("#x-meta-box-slider-above, #x-meta-box-slider-below").toggle(!n()(c).call(c,t))}var f=a()("#page_template");if(f.length>0&&(u(f.val()),f.on("change",(function(){u(f.val())}))),r){u();var s="";t.data.subscribe((function(){var n=t.data.select("core/editor").getEditedPostAttribute("template");s!==n&&(u(n),s=n)}))}var p=a()("#_x_slider_above"),l=p.parents("tr").siblings();"Deactivated"===a()("#_x_slider_above option:selected").text()&&l.css("display","none"),p.change((function(){"Deactivated"===a()("#_x_slider_above option:selected").text()?l.css("display","none"):l.css("display","table-row")}));var d=a()("#_x_slider_below"),v=d.parents("tr").siblings();"Deactivated"===a()("#_x_slider_below option:selected").text()&&v.css("display","none"),d.change((function(){"Deactivated"===a()("#_x_slider_below option:selected").text()?v.css("display","none"):v.css("display","table-row")}));var x=a()("#x-meta-box-portfolio-item-video");a()('input[name*="_x_portfolio_media"][value="Video"]').is(":checked")||x.css("display","none"),a()('input[name*="_x_portfolio_media"]').change((function(){a()('input[name*="_x_portfolio_media"][value="Video"]').is(":checked")?x.css("display","block"):x.css("display","none")})),a()(".wp-color-picker").wpColorPicker()}))}(),(tco=void 0===tco?{}:tco).main=e}();
Save Changes
Rename File
Rename