var WPUltimatePostGrid;(WPUltimatePostGrid=void 0===WPUltimatePostGrid?{}:WPUltimatePostGrid)["wp-ultimate-post-grid/dist/blocks"]=function(){var t={46605:function(t,e,r){"use strict";r.r(e);r(55862),r(39275),r(22321),r(29897),r(85005),r(80044);var n,o,i,a=wp.i18n.__,c=wp.components,u=(c.Button,c.PanelBody),l=c.TextareaControl,s=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r=[],n=0,o=Object.keys(t);n2&&void 0!==arguments[2]?arguments[2]:"grid";return React.createElement(u,{title:a("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(l,{value:t.dynamic,onChange:function(t){t=(t=(t=t.replace("\n"," ")).replace("\r"," ")).replace(" "," "),e({dynamic:t})}}))},p=wp.i18n.__,d=wp.blocks.registerBlockType,g=wp.components,v=g.Button,m=g.Disabled,h=g.PanelBody,y=g.Toolbar,b=g.TextControl,w=wp.element.Fragment;wp.hasOwnProperty("blockEditor")?(n=wp.blockEditor.InspectorControls,o=wp.blockEditor.BlockControls):(n=wp.editor.InspectorControls,o=wp.editor.BlockControls),i=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,d("wp-ultimate-post-grid/grid-with-filters",{title:p("Grid with Filters"),description:p("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,s(e)}}}}]},edit:function(t){var e=t.attributes,r=t.setAttributes,a=t.className,c=function(){WPUPG_Modal.open("select",{title:p("Insert Grid with Filters"),button:p("Insert"),fields:{grid:!0,filters:!1},insertCallback:function(t){r({id:""+t.grid,updated:Date.now()})}},!0)};return React.createElement("div",{className:a},e.id?React.createElement(w,null,React.createElement(o,null,React.createElement(y,{controls:[{icon:"edit",title:p("Change Grid"),onClick:c}]})),React.createElement(n,null,React.createElement(h,{title:p("Grid Details")},React.createElement(b,{label:p("Grid ID"),value:e.id,disabled:!0})),f(e,r)),React.createElement(m,null,React.createElement("div",{style:{fontSize:10,textAlign:"center"}},p("(This is just a preview and will look different on the actual site)")),React.createElement(i,{block:"wp-ultimate-post-grid/grid-with-filters",attributes:e}))):React.createElement(w,null,React.createElement("h5",null,"WP Ultimate Post Grid - ",p("Grid with Filters")),React.createElement(v,{isPrimary:!0,isLarge:!0,onClick:c},p("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,x,S,P=wp.i18n.__,R=wp.blocks.registerBlockType,O=wp.components,k=O.Button,C=O.Disabled,j=O.PanelBody,_=O.Toolbar,T=O.TextControl,I=wp.element.Fragment;wp.hasOwnProperty("blockEditor")?(E=wp.blockEditor.InspectorControls,x=wp.blockEditor.BlockControls):(E=wp.editor.InspectorControls,x=wp.editor.BlockControls),S=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,R("wp-ultimate-post-grid/grid",{title:P("Grid"),description:P("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,s(e)}}}}]},edit:function(t){var e=t.attributes,r=t.setAttributes,n=t.className,o=function(){WPUPG_Modal.open("select",{title:P("Insert Grid"),button:P("Insert"),fields:{grid:!0,filters:!1},insertCallback:function(t){r({id:""+t.grid,updated:Date.now()})}},!0)};return React.createElement("div",{className:n},e.id?React.createElement(I,null,React.createElement(x,null,React.createElement(_,{controls:[{icon:"edit",title:P("Change Grid"),onClick:o}]})),React.createElement(E,null,React.createElement(j,{title:P("Grid Details")},React.createElement(T,{label:P("Grid ID"),value:e.id,disabled:!0})),f(e,r)),React.createElement(C,null,React.createElement("div",{style:{fontSize:10,textAlign:"center"}},P("(This is just a preview and will look different on the actual site)")),React.createElement(S,{block:"wp-ultimate-post-grid/grid",attributes:e}))):React.createElement(I,null,React.createElement("h5",null,"WP Ultimate Post Grid - ",P("Grid")),React.createElement(k,{isPrimary:!0,isLarge:!0,onClick:o},P("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);var A,L,G,D=wp.i18n.__,M=wp.blocks.registerBlockType,U=wp.components,F=U.Button,N=U.Disabled,B=U.PanelBody,W=U.Toolbar,$=U.TextControl,V=(U.SelectControl,wp.element.Fragment);wp.hasOwnProperty("blockEditor")?(A=wp.blockEditor.InspectorControls,L=wp.blockEditor.BlockControls):(A=wp.editor.InspectorControls,L=wp.editor.BlockControls),G=wp.hasOwnProperty("serverSideRender")?wp.serverSideRender:wp.components.ServerSideRender,M("wp-ultimate-post-grid/filter",{title:D("Grid Filter"),description:D("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,s(e)}}}}]},edit:function(t){var e=t.attributes,r=t.setAttributes,n=t.className,o=function(){WPUPG_Modal.open("select",{title:D("Insert Grid Filter"),button:D("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",{className:n},e.id?React.createElement(V,null,React.createElement(L,null,React.createElement(W,{controls:[{icon:"edit",title:D("Change Filter"),onClick:o}]})),React.createElement(A,null,React.createElement(B,{title:D("Filter Details")},React.createElement($,{label:D("Grid ID"),value:e.id,disabled:!0}),React.createElement($,{label:D("Filter ID"),value:e.filter?e.filter:D("All Filters"),disabled:!0})),f(e,r,"filter")),React.createElement(N,null,React.createElement(G,{block:"wp-ultimate-post-grid/filter",attributes:e}))):React.createElement(V,null,React.createElement("h5",null,"WP Ultimate Post Grid - ",D("Filter")),React.createElement(F,{isPrimary:!0,isLarge:!0,onClick:o},D("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(26364),r(61078),r(80238),r(12938),r(86125),r(6208);function z(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 K(t){for(var e=1;e1?arguments[1]:void 0)}},37190:function(t,e,r){var n=r(29580),o=r(35108),i=r(32565),a=function(t){return function(e,r,a){var c,u=n(e),l=o(u.length),s=i(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(78609),i=r(30744),a=r(35108),c=r(80150),u=[].push,l=function(t){var e=1==t,r=2==t,l=3==t,s=4==t,f=6==t,p=5==t||f;return function(d,g,v,m){for(var h,y,b=i(d),w=o(b),E=n(g,v,3),x=a(w.length),S=0,P=m||c,R=e?P(d,x):r?P(d,0):void 0;x>S;S++)if((p||S in w)&&(y=E(h=w[S],S,b),t))if(e)R[S]=y;else if(y)switch(t){case 3:return!0;case 5:return h;case 6:return S;case 2:u.call(R,h)}else if(s)return!1;return f?-1:l||s?s:R}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},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(){throw 1},1)}))}},5673:function(t,e,r){var n=r(7493),o=r(79044),i=r(40454),a=Object.defineProperty,c={},u=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var r=[][t],l=!!i(e,"ACCESSORS")&&e.ACCESSORS,s=i(e,0)?e[0]:u,f=i(e,1)?e[1]:void 0;return c[t]=!!r&&!o((function(){if(l&&!n)return!0;var t={length:-1};l?a(t,1,{enumerable:!0,get:u}):t[1]=1,r.call(t,s,f)}))}},80150:function(t,e,r){var n=r(52786),o=r(71982),i=r(52280)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},79159:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},73870:function(t,e,r){var n=r(40454),o=r(31561),i=r(66012),a=r(86385);t.exports=function(t,e){for(var r=o(e),c=a.f,u=i.f,l=0;l"+a+""}},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(21893),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}},68308:function(t,e,r){var n=r(67290),o=r(40454),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):{}}},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}},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=c&&c.versions,l=u&&u.v8;l?o=(n=l.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+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(35974),c=r(51621),u=r(73870),l=r(86291);t.exports=function(t,e){var r,s,f,p,d,g=t.target,v=t.global,m=t.stat;if(r=v?n:m?n[g]||c(g,{}):(n[g]||{}).prototype)for(s in e){if(p=e[s],f=t.noTargetGet?(d=o(r,s))&&d.value:r[s],!l(v?s:g+(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(35974),o=r(79044),i=r(52280),a=r(99749),c=r(45899),u=i("species"),l=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),s="$0"==="a".replace(/./,"$0"),f=i("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,f){var g=i(t),v=!o((function(){var e={};return e[g]=function(){return 7},7!=""[t](e)})),m=v&&!o((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[g]=/./[g]),r.exec=function(){return e=!0,null},r[g](""),!e}));if(!v||!m||"replace"===t&&(!l||!s||p)||"split"===t&&!d){var h=/./[g],y=r(g,""[t],(function(t,e,r,n,o){return e.exec===a?v&&!o?{done:!0,value:h.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],w=y[1];n(String.prototype,t,b),n(RegExp.prototype,g,2==e?function(t,e){return w.call(t,this,e)}:function(t){return w.call(t,this)})}f&&c(RegExp.prototype[g],"sham",!0)}},98166:function(t,e,r){var n=r(28641);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},22773:function(t,e,r){var n=r(67290),o=r(98363),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},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")()},40454:function(t){var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},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(79044),o=r(79159),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},56429:function(t,e,r){var n=r(49415),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},20821:function(t,e,r){var n,o,i,a=r(36830),c=r(98363),u=r(52786),l=r(45899),s=r(40454),f=r(50466),p=r(47505),d=c.WeakMap;if(a){var g=new d,v=g.get,m=g.has,h=g.set;n=function(t,e){return h.call(g,t,e),e},o=function(t){return v.call(g,t)||{}},i=function(t){return m.call(g,t)}}else{var y=f("state");p[y]=!0,n=function(t,e){return l(t,y,e),e},o=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}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(!u(e)||(r=o(e)).type!==t)throw TypeError("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)}},86291:function(t,e,r){var n=r(79044),o=/#|\.prototype\./,i=function(t,e){var r=c[a(t)];return r==l||r!=u&&("function"==typeof e?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i},52786:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},21178:function(t){t.exports=!1},3850:function(t,e,r){var n=r(79044);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},36830:function(t,e,r){var n=r(98363),o=r(56429),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},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"