PluginProbe
WP Ultimate Post Grid / trunk
WP Ultimate Post Grid vtrunk
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
wp-ultimate-post-grid / dist / blocks.js

blocks.js in WP Ultimate Post Grid trunk, at dist/blocks.js

4 lines 43.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 var WPUltimatePostGrid;!function(){var t={97676:function(t,e,r){var n=r(75277),o=r(28768),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},13350:function(t,e,r){"use strict";var n=r(91140).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},83875:function(t,e,r){var n=r(52786),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},20379:function(t,e,r){"use strict";var n=r(68671).forEach,o=r(54324)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},37190:function(t,e,r){var n=r(29580),o=r(32565),i=r(47046),a=function(t){return function(e,r,a){var c,u=n(e),l=i(u),s=o(a,l);if(t&&r!=r){for(;l>s;)if((c=u[s++])!=c)return!0}else for(;l>s;s++)if((t||s in u)&&u[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},68671:function(t,e,r){var n=r(98166),o=r(88697),i=r(78609),a=r(30744),c=r(47046),u=r(80150),l=o([].push),s=function(t){var e=1==t,r=2==t,o=3==t,s=4==t,f=6==t,p=7==t,d=5==t||f;return function(v,g,m,b){for(var y,h,w=a(v),x=i(w),E=n(g,m),S=c(x),P=0,O=b||u,R=e?O(v,S):r||p?O(v,0):void 0;S>P;P++)if((d||P in x)&&(h=E(y=x[P],P,w),t))if(e)R[P]=h;else if(h)switch(t){case 3:return!0;case 5:return y;case 6:return P;case 2:l(R,y)}else switch(t){case 4:return!1;case 7:l(R,y)}return f?-1:o||s?s:R}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},82091:function(t,e,r){var n=r(79044),o=r(52280),i=r(11197),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},54324:function(t,e,r){"use strict";var n=r(79044);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},58990:function(t,e,r){var n=r(32565),o=r(47046),i=r(35039),a=Array,c=Math.max;t.exports=function(t,e,r){for(var u=o(t),l=n(e,u),s=n(void 0===r?u:r,u),f=a(c(s-l,0)),p=0;l<s;l++,p++)i(f,p,t[l]);return f.length=p,f}},15629:function(t,e,r){var n=r(88697);t.exports=n([].slice)},30765:function(t,e,r){var n=r(71982),o=r(31536),i=r(52786),a=r(52280)("species"),c=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===c||n(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?c:e}},80150:function(t,e,r){var n=r(30765);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},79159:function(t,e,r){var n=r(88697),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},36994:function(t,e,r){var n=r(57301),o=r(75277),i=r(79159),a=r(52280)("toStringTag"),c=Object,u="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=c(t),a))?r:u?i(e):"Object"==(n=i(e))&&o(e.callee)?"Arguments":n}},73870:function(t,e,r){var n=r(24792),o=r(31561),i=r(66012),a=r(86385);t.exports=function(t,e,r){for(var c=o(e),u=a.f,l=i.f,s=0;s<c.length;s++){var f=c[s];n(t,f)||r&&n(r,f)||u(t,f,l(e,f))}}},45899:function(t,e,r){var n=r(7493),o=r(86385),i=r(69199);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},69199:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},35039:function(t,e,r){"use strict";var n=r(383),o=r(86385),i=r(69199);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},50403:function(t,e,r){var n=r(75277),o=r(86385),i=r(20833),a=r(62359);t.exports=function(t,e,r,c){c||(c={});var u=c.enumerable,l=void 0!==c.name?c.name:e;if(n(r)&&i(r,l,c),c.global)u?t[e]=r:a(e,r);else{try{c.unsafe?t[e]&&(u=!0):delete t[e]}catch(s){}u?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},62359:function(t,e,r){var n=r(98363),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},68308:function(t,e,r){var n=r(67290),o=r(24792),i=r(20127),a=r(86385).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},7493:function(t,e,r){var n=r(79044);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:function(t,e,r){var n=r(98363),o=r(52786),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},94758:function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},12848:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79189:function(t,e,r){var n=r(92750)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},82647:function(t,e,r){var n=r(22773);t.exports=n("navigator","userAgent")||""},11197:function(t,e,r){var n,o,i=r(98363),a=r(82647),c=i.process,u=i.Deno,l=c&&c.versions||u&&u.version,s=l&&l.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},48869:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:function(t,e,r){var n=r(98363),o=r(66012).f,i=r(45899),a=r(50403),c=r(62359),u=r(73870),l=r(86291);t.exports=function(t,e){var r,s,f,p,d,v=t.target,g=t.global,m=t.stat;if(r=g?n:m?n[v]||c(v,{}):(n[v]||{}).prototype)for(s in e){if(p=e[s],f=t.dontCallGetSet?(d=o(r,s))&&d.value:r[s],!l(g?s:v+(m?".":"#")+s,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),a(r,s,p,t)}}},79044:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},81492:function(t,e,r){"use strict";r(39275);var n=r(88697),o=r(50403),i=r(99749),a=r(79044),c=r(52280),u=r(45899),l=c("species"),s=RegExp.prototype;t.exports=function(t,e,r,f){var p=c(t),d=!a((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),v=d&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!d||!v||r){var g=n(/./[p]),m=e(p,""[t],(function(t,e,r,o,a){var c=n(t),u=e.exec;return u===i||u===s.exec?d&&!a?{done:!0,value:g(e,r,o)}:{done:!0,value:c(r,e,o)}:{done:!1}}));o(String.prototype,t,m[0]),o(s,p,m[1])}f&&u(s[p],"sham",!0)}},63530:function(t,e,r){var n=r(23996),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},98166:function(t,e,r){var n=r(88697),o=r(97676),i=r(23996),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},23996:function(t,e,r){var n=r(79044);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},79611:function(t,e,r){var n=r(23996),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},55316:function(t,e,r){var n=r(7493),o=r(24792),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,l=c&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:l}},88697:function(t,e,r){var n=r(23996),o=Function.prototype,i=o.bind,a=o.call,c=n&&i.bind(a,a);t.exports=n?function(t){return t&&c(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},22773:function(t,e,r){var n=r(98363),o=r(75277),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},97219:function(t,e,r){var n=r(97676);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},81373:function(t,e,r){var n=r(88697),o=r(30744),i=Math.floor,a=n("".charAt),c=n("".replace),u=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,f,p){var d=r+t.length,v=n.length,g=s;return void 0!==f&&(f=o(f),g=l),c(p,g,(function(o,c){var l;switch(a(c,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,d);case"<":l=f[u(c,1,-1)];break;default:var s=+c;if(0===s)return o;if(s>v){var p=i(s/10);return 0===p?o:p<=v?void 0===n[p-1]?a(c,1):n[p-1]+a(c,1):o}l=n[s-1]}return void 0===l?"":l}))}},98363:function(t,e,r){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 r.g&&r.g)||function(){return this}()||Function("return this")()},24792:function(t,e,r){var n=r(88697),o=r(30744),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},47505:function(t){t.exports={}},47055:function(t,e,r){var n=r(22773);t.exports=n("document","documentElement")},67548:function(t,e,r){var n=r(7493),o=r(79044),i=r(92750);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},78609:function(t,e,r){var n=r(88697),o=r(79044),i=r(79159),a=Object,c=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):a(t)}:a},56429:function(t,e,r){var n=r(88697),o=r(75277),i=r(49415),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},20821:function(t,e,r){var n,o,i,a=r(36830),c=r(98363),u=r(88697),l=r(52786),s=r(45899),f=r(24792),p=r(49415),d=r(50466),v=r(47505),g="Object already initialized",m=c.TypeError,b=c.WeakMap;if(a||p.state){var y=p.state||(p.state=new b),h=u(y.get),w=u(y.has),x=u(y.set);n=function(t,e){if(w(y,t))throw new m(g);return e.facade=t,x(y,t,e),e},o=function(t){return h(y,t)||{}},i=function(t){return w(y,t)}}else{var E=d("state");v[E]=!0,n=function(t,e){if(f(t,E))throw new m(g);return e.facade=t,s(t,E,e),e},o=function(t){return f(t,E)?t[E]:{}},i=function(t){return f(t,E)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!l(e)||(r=o(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return r}}}},71982:function(t,e,r){var n=r(79159);t.exports=Array.isArray||function(t){return"Array"==n(t)}},75277:function(t){t.exports=function(t){return"function"==typeof t}},31536:function(t,e,r){var n=r(88697),o=r(79044),i=r(75277),a=r(36994),c=r(22773),u=r(56429),l=function(){},s=[],f=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=n(p.exec),v=!p.exec(l),g=function(t){if(!i(t))return!1;try{return f(l,s,t),!0}catch(e){return!1}},m=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!d(p,u(t))}catch(e){return!0}};m.sham=!0,t.exports=!f||o((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?m:g},86291:function(t,e,r){var n=r(79044),o=r(75277),i=/#|\.prototype\./,a=function(t,e){var r=u[c(t)];return r==s||r!=l&&(o(e)?n(e):!!e)},c=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",s=a.POLYFILL="P";t.exports=a},52786:function(t,e,r){var n=r(75277);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},21178:function(t){t.exports=!1},66681:function(t,e,r){var n=r(22773),o=r(75277),i=r(32010),a=r(189),c=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,c(t))}},47046:function(t,e,r){var n=r(35108);t.exports=function(t){return n(t.length)}},20833:function(t,e,r){var n=r(79044),o=r(75277),i=r(24792),a=r(7493),c=r(55316).CONFIGURABLE,u=r(56429),l=r(20821),s=l.enforce,f=l.get,p=Object.defineProperty,d=a&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),g=t.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!i(t,"name")||c&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),d&&r&&i(r,"arity")&&t.length!==r.arity&&p(t,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=s(t);return i(n,"source")||(n.source=v.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return o(this)&&f(this).source||u(this)}),"toString")},78300:function(t){var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},60453:function(t,e,r){var n=r(3850);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},3850:function(t,e,r){var n=r(11197),o=r(79044);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},36830:function(t,e,r){var n=r(98363),o=r(75277),i=r(56429),a=n.WeakMap;t.exports=o(a)&&/native code/.test(i(a))},51569:function(t,e,r){var n,o=r(83875),i=r(17840),a=r(48869),c=r(47505),u=r(47055),l=r(92750),s=r(50466),f=s("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"</"+"script>"},v=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(o){}var t,e;g="undefined"!=typeof document?document.domain&&n?v(n):((e=l("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):v(n);for(var r=a.length;r--;)delete g.prototype[a[r]];return g()};c[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p.prototype=o(t),r=new p,p.prototype=null,r[f]=t):r=g(),void 0===e?r:i.f(r,e)}},17840:function(t,e,r){var n=r(7493),o=r(51010),i=r(86385),a=r(83875),c=r(29580),u=r(60667);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=c(e),o=u(e),l=o.length,s=0;l>s;)i.f(t,r=o[s++],n[r]);return t}},86385:function(t,e,r){var n=r(7493),o=r(67548),i=r(51010),a=r(83875),c=r(383),u=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=n?i?function(t,e,r){if(a(t),e=c(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&d in r&&!r.writable){var n=s(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:p in r?r.configurable:n.configurable,enumerable:f in r?r.enumerable:n.enumerable,writable:!1})}return l(t,e,r)}:l:function(t,e,r){if(a(t),e=c(e),a(r),o)try{return l(t,e,r)}catch(n){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},66012:function(t,e,r){var n=r(7493),o=r(79611),i=r(81513),a=r(69199),c=r(29580),u=r(383),l=r(24792),s=r(67548),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=c(t),e=u(e),s)try{return f(t,e)}catch(r){}if(l(t,e))return a(!o(i.f,t,e),t[e])}},74938:function(t,e,r){var n=r(79159),o=r(29580),i=r(87994).f,a=r(58990),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==n(t)?function(t){try{return i(t)}catch(e){return a(c)}}(t):i(o(t))}},87994:function(t,e,r){var n=r(18794),o=r(48869).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},89612:function(t,e){e.f=Object.getOwnPropertySymbols},32010:function(t,e,r){var n=r(88697);t.exports=n({}.isPrototypeOf)},18794:function(t,e,r){var n=r(88697),o=r(24792),i=r(29580),a=r(37190).indexOf,c=r(47505),u=n([].push);t.exports=function(t,e){var r,n=i(t),l=0,s=[];for(r in n)!o(c,r)&&o(n,r)&&u(s,r);for(;e.length>l;)o(n,r=e[l++])&&(~a(s,r)||u(s,r));return s}},60667:function(t,e,r){var n=r(18794),o=r(48869);t.exports=Object.keys||function(t){return n(t,o)}},81513:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},36699:function(t,e,r){"use strict";var n=r(57301),o=r(36994);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},17141:function(t,e,r){var n=r(79611),o=r(75277),i=r(52786),a=TypeError;t.exports=function(t,e){var r,c;if("string"===e&&o(r=t.toString)&&!i(c=n(r,t)))return c;if(o(r=t.valueOf)&&!i(c=n(r,t)))return c;if("string"!==e&&o(r=t.toString)&&!i(c=n(r,t)))return c;throw a("Can't convert object to primitive value")}},31561:function(t,e,r){var n=r(22773),o=r(88697),i=r(87994),a=r(89612),c=r(83875),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=a.f;return r?u(e,r(t)):e}},67290:function(t,e,r){var n=r(98363);t.exports=n},94088:function(t,e,r){var n=r(79611),o=r(83875),i=r(75277),a=r(79159),c=r(99749),u=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var l=n(r,t,e);return null!==l&&o(l),l}if("RegExp"===a(t))return n(c,t,e);throw u("RegExp#exec called on incompatible receiver")}},99749:function(t,e,r){"use strict";var n,o,i=r(79611),a=r(88697),c=r(28967),u=r(58083),l=r(97047),s=r(53580),f=r(51569),p=r(20821).get,d=r(41669),v=r(1638),g=s("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,b=m,y=a("".charAt),h=a("".indexOf),w=a("".replace),x=a("".slice),E=(o=/b*/g,i(m,n=/a/,"a"),i(m,o,"a"),0!==n.lastIndex||0!==o.lastIndex),S=l.BROKEN_CARET,P=void 0!==/()??/.exec("")[1];(E||P||S||d||v)&&(b=function(t){var e,r,n,o,a,l,s,d=this,v=p(d),O=c(t),R=v.raw;if(R)return R.lastIndex=d.lastIndex,e=i(b,R,O),d.lastIndex=R.lastIndex,e;var k=v.groups,j=S&&d.sticky,C=i(u,d),I=d.source,_=0,T=O;if(j&&(C=w(C,"y",""),-1===h(C,"g")&&(C+="g"),T=x(O,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(O,d.lastIndex-1))&&(I="(?: "+I+")",T=" "+T,_++),r=new RegExp("^(?:"+I+")",C)),P&&(r=new RegExp("^"+I+"$(?!\\s)",C)),E&&(n=d.lastIndex),o=i(m,j?r:d,T),j?o?(o.input=x(o.input,_),o[0]=x(o[0],_),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:E&&o&&(d.lastIndex=d.global?o.index+o[0].length:n),P&&o&&o.length>1&&i(g,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&k)for(o.groups=l=f(null),a=0;a<k.length;a++)l[(s=k[a])[0]]=o[s[1]];return o}),t.exports=b},58083:function(t,e,r){"use strict";var n=r(83875);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},97047:function(t,e,r){var n=r(79044),o=r(98363).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),c=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:a,UNSUPPORTED_Y:i}},41669:function(t,e,r){var n=r(79044),o=r(98363).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},1638:function(t,e,r){var n=r(79044),o=r(98363).RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},96411:function(t){var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},60878:function(t,e,r){var n=r(86385).f,o=r(24792),i=r(52280)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},50466:function(t,e,r){var n=r(53580),o=r(34524),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},49415:function(t,e,r){var n=r(98363),o=r(62359),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},53580:function(t,e,r){var n=r(21178),o=r(49415);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.0",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",source:"https://github.com/zloirock/core-js"})},91140:function(t,e,r){var n=r(88697),o=r(14229),i=r(28967),a=r(96411),c=n("".charAt),u=n("".charCodeAt),l=n("".slice),s=function(t){return function(e,r){var n,s,f=i(a(e)),p=o(r),d=f.length;return p<0||p>=d?t?"":void 0:(n=u(f,p))<55296||n>56319||p+1===d||(s=u(f,p+1))<56320||s>57343?t?c(f,p):n:t?l(f,p,p+2):s-56320+(n-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},68487:function(t,e,r){var n=r(55316).PROPER,o=r(79044),i=r(2569);t.exports=function(t){return o((function(){return!!i[t]()||"​�
2 ᠎"!=="​�
3 ᠎"[t]()||n&&i[t].name!==t}))}},10287:function(t,e,r){var n=r(88697),o=r(96411),i=r(28967),a=r(2569),c=n("".replace),u="["+a+"]",l=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),f=function(t){return function(e){var r=i(o(e));return 1&t&&(r=c(r,l,"")),2&t&&(r=c(r,s,"")),r}};t.exports={start:f(1),end:f(2),trim:f(3)}},60455:function(t,e,r){var n=r(79611),o=r(22773),i=r(52280),a=r(50403);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,c=i("toPrimitive");e&&!e[c]&&a(e,c,(function(t){return n(r,this)}),{arity:1})}},32565:function(t,e,r){var n=r(14229),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},29580:function(t,e,r){var n=r(78609),o=r(96411);t.exports=function(t){return n(o(t))}},14229:function(t,e,r){var n=r(78300);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},35108:function(t,e,r){var n=r(14229),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},30744:function(t,e,r){var n=r(96411),o=Object;t.exports=function(t){return o(n(t))}},21893:function(t,e,r){var n=r(79611),o=r(52786),i=r(66681),a=r(97219),c=r(17141),u=r(52280),l=TypeError,s=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=a(t,s);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},383:function(t,e,r){var n=r(21893),o=r(66681);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},57301:function(t,e,r){var n={};n[r(52280)("toStringTag")]="z",t.exports="[object z]"===String(n)},28967:function(t,e,r){var n=r(36994),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},28768:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},34524:function(t,e,r){var n=r(88697),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},189:function(t,e,r){var n=r(3850);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},51010:function(t,e,r){var n=r(7493),o=r(79044);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},20127:function(t,e,r){var n=r(52280);e.f=n},52280:function(t,e,r){var n=r(98363),o=r(53580),i=r(24792),a=r(34524),c=r(3850),u=r(189),l=o("wks"),s=n.Symbol,f=s&&s.for,p=u?s:s&&s.withoutSetter||a;t.exports=function(t){if(!i(l,t)||!c&&"string"!=typeof l[t]){var e="Symbol."+t;c&&i(s,t)?l[t]=s[t]:l[t]=u&&f?f(e):p(e)}return l[t]}},2569:function(t){t.exports="\t\n\v\f\r        �
4         \u2028\u2029\ufeff"},55862:function(t,e,r){"use strict";var n=r(19882),o=r(79044),i=r(71982),a=r(52786),c=r(30744),u=r(47046),l=r(94758),s=r(35039),f=r(80150),p=r(82091),d=r(52280),v=r(11197),g=d("isConcatSpreadable"),m=v>=51||!o((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),b=p("concat"),y=function(t){if(!a(t))return!1;var e=t[g];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!m||!b},{concat:function(t){var e,r,n,o,i,a=c(this),p=f(a,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(y(i=-1===e?a:arguments[e]))for(o=u(i),l(d+o),r=0;r<o;r++,d++)r in i&&s(p,d,i[r]);else l(d+1),s(p,d++,i);return p.length=d,p}})},19701:function(t,e,r){"use strict";var n=r(19882),o=r(68671).filter;n({target:"Array",proto:!0,forced:!r(82091)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},73749:function(t,e,r){var n=r(19882),o=r(22773),i=r(63530),a=r(79611),c=r(88697),u=r(79044),l=r(71982),s=r(75277),f=r(52786),p=r(66681),d=r(15629),v=r(3850),g=o("JSON","stringify"),m=c(/./.exec),b=c("".charAt),y=c("".charCodeAt),h=c("".replace),w=c(1..toString),x=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,P=!v||u((function(){var t=o("Symbol")();return"[null]"!=g([t])||"{}"!=g({a:t})||"{}"!=g(Object(t))})),O=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),R=function(t,e){var r=d(arguments),n=e;if((f(e)||void 0!==t)&&!p(t))return l(e)||(e=function(t,e){if(s(n)&&(e=a(n,this,t,e)),!p(e))return e}),r[1]=e,i(g,null,r)},k=function(t,e,r){var n=b(r,e-1),o=b(r,e+1);return m(E,t)&&!m(S,o)||m(S,t)&&!m(E,n)?"\\u"+w(y(t,0),16):t};g&&n({target:"JSON",stat:!0,arity:3,forced:P||O},{stringify:function(t,e,r){var n=d(arguments),o=i(P?R:g,null,n);return O&&"string"==typeof o?h(o,x,k):o}})},26425:function(t,e,r){var n=r(19882),o=r(7493),i=r(17840).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},3973:function(t,e,r){var n=r(19882),o=r(7493),i=r(86385).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},80238:function(t,e,r){var n=r(19882),o=r(79044),i=r(29580),a=r(66012).f,c=r(7493),u=o((function(){a(1)}));n({target:"Object",stat:!0,forced:!c||u,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},12938:function(t,e,r){var n=r(19882),o=r(7493),i=r(31561),a=r(29580),c=r(66012),u=r(35039);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),o=c.f,l=i(n),s={},f=0;l.length>f;)void 0!==(r=o(n,e=l[f++]))&&u(s,e,r);return s}})},45090:function(t,e,r){var n=r(19882),o=r(3850),i=r(79044),a=r(89612),c=r(30744);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(c(t)):[]}})},80044:function(t,e,r){var n=r(19882),o=r(30744),i=r(60667);n({target:"Object",stat:!0,forced:r(79044)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},10853:function(t,e,r){var n=r(57301),o=r(50403),i=r(36699);n||o(Object.prototype,"toString",i,{unsafe:!0})},39275:function(t,e,r){"use strict";var n=r(19882),o=r(99749);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},22321:function(t,e,r){"use strict";var n=r(63530),o=r(79611),i=r(88697),a=r(81492),c=r(79044),u=r(83875),l=r(75277),s=r(14229),f=r(35108),p=r(28967),d=r(96411),v=r(13350),g=r(97219),m=r(81373),b=r(94088),y=r(52280)("replace"),h=Math.max,w=Math.min,x=i([].concat),E=i([].push),S=i("".indexOf),P=i("".slice),O="$0"==="a".replace(/./,"$0"),R=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(t,e,r){var i=R?"$":"$0";return[function(t,r){var n=d(this),i=null==t?void 0:g(t,y);return i?o(i,t,n,r):o(e,p(n),t,r)},function(t,o){var a=u(this),c=p(t);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var d=r(e,a,c,o);if(d.done)return d.value}var g=l(o);g||(o=p(o));var y=a.global;if(y){var O=a.unicode;a.lastIndex=0}for(var R=[];;){var k=b(a,c);if(null===k)break;if(E(R,k),!y)break;""===p(k[0])&&(a.lastIndex=v(c,f(a.lastIndex),O))}for(var j,C="",I=0,_=0;_<R.length;_++){for(var T=p((k=R[_])[0]),G=h(w(s(k.index),c.length),0),F=[],D=1;D<k.length;D++)E(F,void 0===(j=k[D])?j:String(j));var L=k.groups;if(g){var A=x([T],F,G,c);void 0!==L&&E(A,L);var M=p(n(o,void 0,A))}else M=m(T,c,G,F,L,o);G>=I&&(C+=P(c,I,G)+M,I=G+T.length)}return C+P(c,I)}]}),!!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!O||R)},29897:function(t,e,r){"use strict";var n=r(19882),o=r(10287).trim;n({target:"String",proto:!0,forced:r(68487)("trim")},{trim:function(){return o(this)}})},37070:function(t,e,r){"use strict";var n=r(19882),o=r(98363),i=r(79611),a=r(88697),c=r(21178),u=r(7493),l=r(3850),s=r(79044),f=r(24792),p=r(32010),d=r(83875),v=r(29580),g=r(383),m=r(28967),b=r(69199),y=r(51569),h=r(60667),w=r(87994),x=r(74938),E=r(89612),S=r(66012),P=r(86385),O=r(17840),R=r(81513),k=r(50403),j=r(53580),C=r(50466),I=r(47505),_=r(34524),T=r(52280),G=r(20127),F=r(68308),D=r(60455),L=r(60878),A=r(20821),M=r(68671).forEach,B=C("hidden"),N="Symbol",U=A.set,W=A.getterFor(N),$=Object.prototype,V=o.Symbol,z=V&&V.prototype,H=o.TypeError,K=o.QObject,Y=S.f,q=P.f,J=x.f,X=R.f,Q=a([].push),Z=j("symbols"),tt=j("op-symbols"),et=j("wks"),rt=!K||!K.prototype||!K.prototype.findChild,nt=u&&s((function(){return 7!=y(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Y($,e);n&&delete $[e],q(t,e,r),n&&t!==$&&q($,e,n)}:q,ot=function(t,e){var r=Z[t]=y(z);return U(r,{type:N,tag:t,description:e}),u||(r.description=e),r},it=function(t,e,r){t===$&&it(tt,e,r),d(t);var n=g(e);return d(r),f(Z,n)?(r.enumerable?(f(t,B)&&t[B][n]&&(t[B][n]=!1),r=y(r,{enumerable:b(0,!1)})):(f(t,B)||q(t,B,b(1,{})),t[B][n]=!0),nt(t,n,r)):q(t,n,r)},at=function(t,e){d(t);var r=v(e),n=h(r).concat(st(r));return M(n,(function(e){u&&!i(ct,r,e)||it(t,e,r[e])})),t},ct=function(t){var e=g(t),r=i(X,this,e);return!(this===$&&f(Z,e)&&!f(tt,e))&&(!(r||!f(this,e)||!f(Z,e)||f(this,B)&&this[B][e])||r)},ut=function(t,e){var r=v(t),n=g(e);if(r!==$||!f(Z,n)||f(tt,n)){var o=Y(r,n);return!o||!f(Z,n)||f(r,B)&&r[B][n]||(o.enumerable=!0),o}},lt=function(t){var e=J(v(t)),r=[];return M(e,(function(t){f(Z,t)||f(I,t)||Q(r,t)})),r},st=function(t){var e=t===$,r=J(e?tt:v(t)),n=[];return M(r,(function(t){!f(Z,t)||e&&!f($,t)||Q(n,Z[t])})),n};l||(V=function(){if(p(z,this))throw H("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=_(t),r=function(t){this===$&&i(r,tt,t),f(this,B)&&f(this[B],e)&&(this[B][e]=!1),nt(this,e,b(1,t))};return u&&rt&&nt($,e,{configurable:!0,set:r}),ot(e,t)},k(z=V.prototype,"toString",(function(){return W(this).tag})),k(V,"withoutSetter",(function(t){return ot(_(t),t)})),R.f=ct,P.f=it,O.f=at,S.f=ut,w.f=x.f=lt,E.f=st,G.f=function(t){return ot(T(t),t)},u&&(q(z,"description",{configurable:!0,get:function(){return W(this).description}}),c||k($,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),M(h(et),(function(t){F(t)})),n({target:N,stat:!0,forced:!l},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(t,e){return void 0===e?y(t):at(y(t),e)},defineProperty:it,defineProperties:at,getOwnPropertyDescriptor:ut}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:lt}),D(),L(V,N),I[B]=!0},83086:function(t,e,r){var n=r(19882),o=r(22773),i=r(24792),a=r(28967),c=r(53580),u=r(60453),l=c("string-to-symbol-registry"),s=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(i(l,e))return l[e];var r=o("Symbol")(e);return l[e]=r,s[r]=e,r}})},26364:function(t,e,r){r(37070),r(83086),r(7484),r(73749),r(45090)},7484:function(t,e,r){var n=r(19882),o=r(24792),i=r(66681),a=r(28768),c=r(53580),u=r(60453),l=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw TypeError(a(t)+" is not a symbol");if(o(l,t))return l[t]}})},6208:function(t,e,r){var n=r(98363),o=r(12848),i=r(79189),a=r(20379),c=r(45899),u=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var l in o)o[l]&&u(n[l]&&n[l].prototype);u(i)}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}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.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n);r(39275),r(22321),r(29897),r(55862),r(80044);var t,e,o,i=wp.i18n.__,a=wp.components,c=(a.Button,a.PanelBody),u=a.TextareaControl,l=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r=[],n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];if(i){var a=t[i];a&&r.push("".concat(i,'="').concat(a,'"'))}}return r.join(e)},s=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"grid";return React.createElement(c,{title:i("grid"===r?"Dynamic Filters":"Default Filter Selections")},React.createElement("p",null,!wpupg_admin.addons.premium&&React.createElement("span",{style:{color:"darkred"}},"This feature is only available in WP Ultimate Post Grid Premium.",React.createElement("br",null)),"grid"===r?React.createElement("a",{href:"https://help.bootstrapped.ventures/article/238-limit-items-dynamically",target:"_blank"},"Learn More"):React.createElement("a",{href:"https://help.bootstrapped.ventures/article/247-default-filter-selections",target:"_blank"},"Learn More")),React.createElement(u,{value:t.dynamic,onChange:function(t){t=(t=(t=t.replace("\n"," ")).replace("\r"," ")).replace(" "," "),e({dynamic:t})}}))},f=wp.i18n.__,p=wp.blocks.registerBlockType,d=wp.components,v=d.Button,g=d.Disabled,m=d.PanelBody,b=d.ToolbarGroup,y=d.ToolbarButton,h=d.TextControl,w=wp.element.Fragment,x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t};wp.hasOwnProperty("blockEditor")?(t=wp.blockEditor.InspectorControls,e=wp.blockEditor.BlockControls,x=wp.blockEditor.useBlockProps||x):(t=wp.editor.InspectorControls,e=wp.editor.BlockControls),o=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,p("wp-ultimate-post-grid/grid-with-filters",{apiVersion:3,title:f("Grid with Filters"),description:f("Display an entire WP Ultimate Post Grid with filters. Take note that"),icon:"grid-view",keywords:["wpupg"],category:"wp-ultimate-post-grid",supports:{html:!1,align:!0},transforms:{from:[{type:"shortcode",tag:"wpupg-grid-with-filters",attributes:{id:{type:"string",shortcode:function(t){var e=t.named.id;return(void 0===e?"":e).replace("id","")}},dynamic:{type:"string",shortcode:function(t){var e=t.named;return delete e.id,delete e.align,l(e)}}}}]},edit:function(r){var n=r.attributes,i=r.setAttributes,a=r.className,c=x({className:a}),u=function(){WPUPG_Modal.open("select",{title:f("Insert Grid with Filters"),button:f("Insert"),fields:{grid:!0,filters:!1},insertCallback:function(t){i({id:""+t.grid,updated:Date.now()})}},!0)};return React.createElement("div",c,n.id?React.createElement(w,null,React.createElement(e,null,React.createElement(b,null,React.createElement(y,{icon:"edit",label:f("Change Grid"),onClick:u}))),React.createElement(t,null,React.createElement(m,{title:f("Grid Details")},React.createElement(h,{label:f("Grid ID"),value:n.id,disabled:!0})),s(n,i)),React.createElement(g,null,React.createElement("div",{style:{fontSize:10,textAlign:"center"}},f("(This is just a preview and will look different on the actual site)")),React.createElement(o,{block:"wp-ultimate-post-grid/grid-with-filters",attributes:n}))):React.createElement(w,null,React.createElement("h5",null,"WP Ultimate Post Grid - ",f("Grid with Filters")),React.createElement(v,{isPrimary:!0,isLarge:!0,onClick:u},f("Insert Existing Grid"))))},save:function(t){var e=t.attributes;if(e.id){var r=e.dynamic.trim();return'[wpupg-grid-with-filters id="'.concat(e.id,'"').concat(r?" ".concat(r):"","]")}return null}});var E,S,P,O=wp.i18n.__,R=wp.blocks.registerBlockType,k=wp.components,j=k.Button,C=k.Disabled,I=k.PanelBody,_=k.ToolbarGroup,T=k.ToolbarButton,G=k.TextControl,F=wp.element.Fragment,D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t};wp.hasOwnProperty("blockEditor")?(E=wp.blockEditor.InspectorControls,S=wp.blockEditor.BlockControls,D=wp.blockEditor.useBlockProps||D):(E=wp.editor.InspectorControls,S=wp.editor.BlockControls),P=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,R("wp-ultimate-post-grid/grid",{apiVersion:3,title:O("Grid"),description:O("Display a WP Ultimate Post Grid."),icon:"grid-view",keywords:["wpupg"],category:"wp-ultimate-post-grid",supports:{html:!1,align:!0},transforms:{from:[{type:"shortcode",tag:"wpupg-grid",attributes:{id:{type:"string",shortcode:function(t){var e=t.named.id;return(void 0===e?"":e).replace("id","")}},dynamic:{type:"string",shortcode:function(t){var e=t.named;return delete e.id,delete e.align,l(e)}}}}]},edit:function(t){var e=t.attributes,r=t.setAttributes,n=t.className,o=D({className:n}),i=function(){WPUPG_Modal.open("select",{title:O("Insert Grid"),button:O("Insert"),fields:{grid:!0,filters:!1},insertCallback:function(t){r({id:""+t.grid,updated:Date.now()})}},!0)};return React.createElement("div",o,e.id?React.createElement(F,null,React.createElement(S,null,React.createElement(_,null,React.createElement(T,{icon:"edit",label:O("Change Grid"),onClick:i}))),React.createElement(E,null,React.createElement(I,{title:O("Grid Details")},React.createElement(G,{label:O("Grid ID"),value:e.id,disabled:!0})),s(e,r)),React.createElement(C,null,React.createElement("div",{style:{fontSize:10,textAlign:"center"}},O("(This is just a preview and will look different on the actual site)")),React.createElement(P,{block:"wp-ultimate-post-grid/grid",attributes:e}))):React.createElement(F,null,React.createElement("h5",null,"WP Ultimate Post Grid - ",O("Grid")),React.createElement(j,{isPrimary:!0,isLarge:!0,onClick:i},O("Insert Existing Grid"))))},save:function(t){var e=t.attributes;if(e.id){var r=e.dynamic.trim();return'[wpupg-grid id="'.concat(e.id,'"').concat(r?" ".concat(r):"","]")}return null}});r(19701),r(10853);var L,A,M,B=wp.i18n.__,N=wp.blocks.registerBlockType,U=wp.components,W=U.Button,$=U.Disabled,V=U.PanelBody,z=U.ToolbarGroup,H=U.ToolbarButton,K=U.TextControl,Y=wp.element.Fragment,q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t};wp.hasOwnProperty("blockEditor")?(L=wp.blockEditor.InspectorControls,A=wp.blockEditor.BlockControls,q=wp.blockEditor.useBlockProps||q):(L=wp.editor.InspectorControls,A=wp.editor.BlockControls),M=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,N("wp-ultimate-post-grid/filter",{apiVersion:3,title:B("Grid Filter"),description:B("Display filter for a WP Ultimate Post Grid with filters."),icon:"grid-view",keywords:["wpupg"],category:"wp-ultimate-post-grid",supports:{html:!1,align:!0},transforms:{from:[{type:"shortcode",tag:"wpupg-filter",attributes:{id:{type:"string",shortcode:function(t){var e=t.named.id;return(void 0===e?"":e).replace("id","")}},filter:{type:"string",shortcode:function(t){var e=t.named.filter;return(void 0===e?"":e).replace("filter","")}},dynamic:{type:"string",shortcode:function(t){var e=t.named;return delete e.id,delete e.align,delete e.filter,l(e)}}}}]},edit:function(t){var e=t.attributes,r=t.setAttributes,n=t.className,o=q({className:n}),i=function(){WPUPG_Modal.open("select",{title:B("Insert Grid Filter"),button:B("Insert"),fields:{grid:!0,filter:!0},insertCallback:function(t){r({id:""+t.grid,filter:!0===t.filter?"":""+t.filter,updated:Date.now()})}},!0)};return React.createElement("div",o,e.id?React.createElement(Y,null,React.createElement(A,null,React.createElement(z,null,React.createElement(H,{icon:"edit",label:B("Change Filter"),onClick:i}))),React.createElement(L,null,React.createElement(V,{title:B("Filter Details")},React.createElement(K,{label:B("Grid ID"),value:e.id,disabled:!0}),React.createElement(K,{label:B("Filter ID"),value:e.filter?e.filter:B("All Filters"),disabled:!0})),s(e,r,"filter")),React.createElement($,null,React.createElement(M,{block:"wp-ultimate-post-grid/filter",attributes:e}))):React.createElement(Y,null,React.createElement("h5",null,"WP Ultimate Post Grid - ",B("Filter")),React.createElement(W,{isPrimary:!0,isLarge:!0,onClick:i},B("Insert Existing Filter"))))},save:function(t){var e=t.attributes;if(e.id){var r=e.dynamic.trim();return e.filter?'[wpupg-filter id="'.concat(e.id,'" filter="').concat(e.filter,'"').concat(r?" ".concat(r):"","]"):'[wpupg-filter id="'.concat(e.id,'"').concat(r?" ".concat(r):"","]")}return null}});r(3973),r(26364),r(80238),r(6208),r(12938),r(26425);function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function X(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){Q(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Z,tt=wp.i18n.__,et=wp.element.Fragment,rt=wp.editor||{},nt=wp.editPost||{},ot=rt.PluginSidebar||nt.PluginSidebar,it=rt.PluginSidebarMoreMenuItem||nt.PluginSidebarMoreMenuItem,at=wp.compose.compose,ct=wp.data,ut=ct.withSelect,lt=ct.withDispatch,st=wp.components,ft=st.Panel,pt=st.PanelBody,dt=st.Button,vt=st.withFocusReturn,gt=st.TextControl,mt=st.SelectControl,bt=wp.plugins.registerPlugin;Z=wp.hasOwnProperty("blockEditor")?wp.blockEditor.MediaUpload:wp.editor.MediaUpload,bt("wp-ultimate-post-grid",{render:at(ut((function(t,e){var r=t("core/editor").getEditedPostAttribute("meta");if(!r)return{};var n=r.wpupg_custom_link,o=n instanceof Array?n[0]:n,i=r.wpupg_custom_link_behaviour,a=i instanceof Array?i[0]:i,c=r.wpupg_custom_link_nofollow,u=c instanceof Array?c[0]:c,l=r.wpupg_custom_image,s=l instanceof Array?l[0]:l,f=r.wpupg_custom_image_id;return{meta:r,link:o,linkBehaviour:a,linkNofollow:u,image:s,imageId:f instanceof Array?f[0]:f}})),lt((function(t,e){var r=t("core/editor").editPost;return{onChangeMeta:function(t){var n=X(X({},e.meta),t);return r({meta:n})}}})),vt)((function(t){return React.createElement(et,null,React.createElement(it,{target:"sidebar-wp-ultimate-post-grid",icon:"grid-view"},"WP Ultimate Post Grid"),React.createElement(ot,{name:"sidebar-wp-ultimate-post-grid",title:"WP Ultimate Post Grid",icon:"grid-view"},React.createElement(ft,null,React.createElement(pt,{title:tt("Custom Grid Link")},React.createElement(gt,{label:tt("Custom Link URL"),value:t.link,onChange:function(e){return t.onChangeMeta({wpupg_custom_link:[e]})}}),React.createElement(mt,{label:tt("Custom Link Behaviour"),value:t.linkBehaviour,options:[{value:"default",label:tt("Use grid default")},{value:"_self",label:tt("Open in same tab")},{value:"_blank",label:tt("Open in new tab")},{value:"none",label:tt("Don't use links")}],onChange:function(e){return t.onChangeMeta({wpupg_custom_link_behaviour:[e]})}}),React.createElement(mt,{label:tt("Custom Link Nofollow"),value:t.linkNofollow,options:[{value:"default",label:tt("Use default from settings")},{value:"dofollow",label:tt("Use a regular dofollow link")},{value:"nofollow",label:tt('Add the rel="nofollow" attribute')}],onChange:function(e){return t.onChangeMeta({wpupg_custom_link_nofollow:[e]})}})),React.createElement(pt,{title:tt("Custom Grid Image")},React.createElement(gt,{label:tt("Custom Image URL"),value:t.image,onChange:function(e){return t.onChangeMeta({wpupg_custom_image:[e],wpupg_custom_image_id:[0]})}}),React.createElement(gt,{label:tt("Custom Image ID"),value:t.imageId?t.imageId:"",disabled:!0}),React.createElement(Z,{onSelect:function(e){t.onChangeMeta({wpupg_custom_image:[e.url],wpupg_custom_image_id:[e.id]})},type:"image",value:t.imageId,render:function(t){var e=t.open;return React.createElement(dt,{variant:"secondary",onClick:e},tt("Choose Image"))}}),t.image?React.createElement("img",{className:"wpupg-sidebar-custom-image-preview",src:t.image}):null))))}))})}(),(WPUltimatePostGrid=void 0===WPUltimatePostGrid?{}:WPUltimatePostGrid)["wp-ultimate-post-grid/dist/blocks"]=n}();