PluginProbe
WP Ultimate Post Grid / 3.4.0
WP Ultimate Post Grid v3.4.0
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | dist/admin.js +1 -1 2.8.23.4.0 View file →
@@ -1 +1 @@
1 -!function(t){var e={};function o(n){if(e[n])return e[n].exports;var u=e[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,o),u.l=!0,u.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)o.d(n,u,function(e){return t[e]}.bind(null,u));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=7)}({0:function(t,e){t.exports=window.jQuery},7:function(t,e,o){"use strict";o.r(e);o(8)},8:function(t,e,o){(function(t){t(document).ready(function(e){t("#wpupg_add_custom_image").on("click",function(e){e.preventDefault();var o=t(this),n=o.parents("#wpupg_form_post").find("#wpupg_custom_image"),u=o.parents("#wpupg_form_post").find("#wpupg_custom_image_id");if("function"==typeof wp.media)var i=wp.media({title:"Insert Media",button:{text:"Set Custom Image"},multiple:!1}).on("select",function(){var t=i.state().get("selection").first().toJSON();n.val(t.url),u.val(t.id)}).open()}),t("#wpupg_custom_image").on("keyup change",function(){t(this).siblings("#wpupg_custom_image_id").val("")}),t(".term-custom-image").on("click","#wpupg_custom_image_button.button-add",function(e){if("function"==typeof wp.media)var o=wp.media({title:wpupg_admin_post.text_add_grid_image,button:{text:wpupg_admin_post.text_add_grid_image},multiple:!1}).on("select",function(){var e=o.state().get("selection").first().toJSON();t("#wpupg_custom_image_img").attr("src",e.url),t("#wpupg_custom_image").val(e.id),t("#wpupg_custom_image_button").removeClass("button-add").addClass("button-remove").val(wpupg_admin_post.text_remove_grid_image)}).open()}),t(".term-custom-image").on("click","#wpupg_custom_image_button.button-remove",function(e){t("#wpupg_custom_image_img").attr("src",""),t("#wpupg_custom_image").val(""),t("#wpupg_custom_image_button").removeClass("button-remove").addClass("button-add").val(wpupg_admin_post.text_add_grid_image)})})}).call(this,o(0))}});
1 +var WPUltimatePostGrid="object"==typeof WPUltimatePostGrid?WPUltimatePostGrid:{};WPUltimatePostGrid.admin=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},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=927)}({113:function(t,e){t.exports=!1},114:function(t,e){t.exports={}},116:function(t,e,n){var r=n(15),o=n(62),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},12:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(85))},122:function(t,e,n){var r=n(138),o=n(139),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},130:function(t,e,n){var r=n(12),o=n(34);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},131:function(t,e,n){var r=n(183),o=n(140).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},132:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},137:function(t,e,n){var r=n(162),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},138:function(t,e,n){var r=n(113),o=n(162);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},139:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},14:function(t,e,n){var r=n(12),o=n(70).f,i=n(34),u=n(61),c=n(130),a=n(186),f=n(165);t.exports=function(t,e){var n,s,l,p,m,v=t.target,g=t.global,d=t.stat;if(n=g?r:d?r[v]||c(v,{}):(r[v]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(m=o(n,s))&&m.value:n[s],!f(g?s:v+(d?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,s,p,t)}}},140:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},149:function(t,e,n){var r=n(12),o=n(23),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},15:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},154:function(t,e){e.f=Object.getOwnPropertySymbols},161:function(t,e,n){var r=n(22),o=n(15),i=n(149);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},162:function(t,e,n){var r=n(12),o=n(130),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},163:function(t,e,n){var r=n(12);t.exports=r},164:function(t,e,n){var r=n(28),o=n(55),i=n(184),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},165:function(t,e,n){var r=n(15),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},182:function(t,e,n){var r=n(73),o=n(131),i=n(154),u=n(25);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},183:function(t,e,n){var r=n(24),o=n(28),i=n(164).indexOf,u=n(114);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},184:function(t,e,n){var r=n(96),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},186:function(t,e,n){var r=n(24),o=n(182),i=n(70),u=n(29);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||c(t,s,a(e,s))}}},22:function(t,e,n){var r=n(15);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},23:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},24:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},241:function(t,e,n){var r=n(12),o=n(137),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},25:function(t,e,n){var r=n(23);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},28:function(t,e,n){var r=n(116),o=n(63);t.exports=function(t){return r(o(t))}},29:function(t,e,n){var r=n(22),o=n(161),i=n(25),u=n(94),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e,!0),i(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},3:function(t,e,n){"use strict";function r(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wpupg_admin.translations.hasOwnProperty(t)?wpupg_admin.translations[t]:t}n.d(e,"a",(function(){return r}))},34:function(t,e,n){var r=n(22),o=n(29),i=n(89);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},55:function(t,e,n){var r=n(96),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},61:function(t,e,n){var r=n(12),o=n(34),i=n(24),u=n(130),c=n(137),a=n(95),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var a=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),s(n).source=l.join("string"==typeof e?e:"")),t!==r?(a?!p&&t[e]&&(f=!0):delete t[e],f?t[e]=n:o(t,e,n)):f?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},62:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},63:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},70:function(t,e,n){var r=n(22),o=n(132),i=n(89),u=n(28),c=n(94),a=n(24),f=n(161),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=u(t),e=c(e,!0),f)try{return s(t,e)}catch(n){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},73:function(t,e,n){var r=n(163),o=n(12),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},845:function(t,e){},846:function(t,e){},847:function(t,e,n){"use strict";n(14)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},848:function(t,e){},85:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}t.exports=n},89:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},927:function(t,e,n){"use strict";n.r(e);n(845),n(846),n(847),n(848);var r,o=n(3),i={elems:{},initPost:function(t){this.elems={container:t,imageButton:t.querySelector("#wpupg_add_custom_image"),imageRemoveButton:!1,imageUrl:t.querySelector("#wpupg_custom_image"),imageId:t.querySelector("#wpupg_custom_image_id"),imagePreview:!1},this.addEventListeners()},initTerm:function(t){this.elems={container:t,imageButton:t.querySelector("#wpupg_add_custom_image"),imageRemoveButton:t.querySelector("#wpupg_remove_custom_image"),imageUrl:t.querySelector("#wpupg_custom_image_url"),imageId:t.querySelector("#wpupg_custom_image"),imagePreview:t.querySelector("#wpupg_custom_image_img")},this.addEventListeners()},addEventListeners:function(){var t=this;this.elems.imageButton.addEventListener("click",(function(e){if(e.preventDefault(),"function"==typeof wp.media){var n=wp.media({title:Object(o.a)("Insert Media"),button:{text:Object(o.a)("Set Custom Image")},multiple:!1});n.on("select",(function(){var e=n.state().get("selection").first().toJSON();t.elems.imageUrl.value=e.url,t.elems.imageId.value=e.id,t.elems.imagePreview&&(t.elems.imagePreview.src=e.url),t.elems.imageRemoveButton&&(t.elems.imageButton.style.display="none",t.elems.imageRemoveButton.style.display="block")})).open()}})),this.elems.imageRemoveButton&&this.elems.imageRemoveButton.addEventListener("click",(function(e){t.elems.imageId.value="",t.elems.imageRemoveButton.style.display="none",t.elems.imageButton.style.display="block",t.elems.imagePreview&&(t.elems.imagePreview.src="")})),this.elems.imageUrl.addEventListener("keyup",(function(){t.elems.imageId.value=""})),this.elems.imageUrl.addEventListener("change",(function(){t.elems.imageId.value=""}))}};r=function(){var t=document.querySelector("#wpupg_meta_box_post");t&&i.initPost(t);var e=document.querySelector("#wpupg_meta_box_term");e&&i.initTerm(e)},"loading"!=document.readyState?r():document.addEventListener("DOMContentLoaded",r)},94:function(t,e,n){var r=n(23);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},95:function(t,e,n){var r,o,i,u=n(241),c=n(12),a=n(23),f=n(34),s=n(24),l=n(122),p=n(114),m=c.WeakMap;if(u){var v=new m,g=v.get,d=v.has,y=v.set;r=function(t,e){return y.call(v,t,e),e},o=function(t){return g.call(v,t)||{}},i=function(t){return d.call(v,t)}}else{var h=l("state");p[h]=!0,r=function(t,e){return f(t,h,e),e},o=function(t){return s(t,h)?t[h]:{}},i=function(t){return s(t,h)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},96:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}}});