From 86fb394818f8f6f4dfa3a051d48c951bf75b2a4d Mon Sep 17 00:00:00 2001 From: Nick Diego Date: Tue, 24 Jan 2023 18:27:52 -0600 Subject: [PATCH] Fresh build. --- build/block-visibility-editor.asset.php | 2 +- build/block-visibility-editor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/block-visibility-editor.asset.php b/build/block-visibility-editor.asset.php index 2077091f..ac680a73 100644 --- a/build/block-visibility-editor.asset.php +++ b/build/block-visibility-editor.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives'), 'version' => '5b7f336ea03ebca305a2'); + array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives'), 'version' => '48870b57bedc0d7709fb'); diff --git a/build/block-visibility-editor.js b/build/block-visibility-editor.js index 093c4d07..1dbcc281 100644 --- a/build/block-visibility-editor.js +++ b/build/block-visibility-editor.js @@ -1,4 +1,4 @@ -(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";var i=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function a(e){return i.isMemo(e)?r:s[e.$$typeof]||o}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=r;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,b=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(b){var o=m(n);o&&o!==b&&e(t,o,i)}var r=u(n);d&&(r=r.concat(d(n)));for(var s=a(t),f=a(n),v=0;v{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,b=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case l:case s:case r:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case f:case a:return e;default:return t}}case o:return t}}}function E(e){return k(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=a,t.Element=i,t.ForwardRef=p,t.Fragment=l,t.Lazy=v,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=r,t.Suspense=m,t.isAsyncMode=function(e){return E(e)||k(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===l},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===f},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===r},t.isSuspense=function(e){return k(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===s||e===r||e===m||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===f||e.$$typeof===a||e.$$typeof===c||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===_||e.$$typeof===h)},t.typeOf=k},864:(e,t,n)=>{"use strict";e.exports=n(921)}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var l=t[i]={exports:{}};return e[i](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t"date_time"===e.settingSlug)))return!1;let i=[],o=!1;var l,s;if(t?(i=null!==(l=e.dateTime?.schedules)&&void 0!==l?l:[],o=null!==(s=e.dateTime?.hideOnSchedules)&&void 0!==s&&s):i=e?.scheduling?[e?.scheduling]:[],0===i.length)return!1;const a=[];i.forEach((e=>{var t,n,i;const l=null!==(t=e?.enable)&&void 0!==t&&t,s=null!==(n=e?.start)&&void 0!==n?n:"",c=null!==(i=e?.end)&&void 0!==i?i:"";let u=!0;l||(u=!1),o||!l||s||c||(u=!1),u=(0,r.applyFilters)("blockVisibility.hasDateTimeScheduleIndicator",u,e),l&&s&&c&&s>=c&&(u=!1),a.push(u)}));let c=a.includes(!0);return c=(0,r.applyFilters)("blockVisibility.hasDateTimeIndicator",c,e,t,n),c}function m(e,t,n){var i,o,l,s,a,c;if(t&&!e.hasOwnProperty("userRole"))return!1;const u=t?e.userRole:e,d=null!==(i=u?.visibilityByRole)&&void 0!==i?i:"public",p=null!==(o=u?.restrictedRoles)&&void 0!==o?o:[],m=null!==(l=u?.hideOnRestrictedRoles)&&void 0!==l&&l,b=null!==(s=u?.restrictedUsers)&&void 0!==s?s:[],f=null!==(a=u?.hideOnRestrictedUsers)&&void 0!==a&&a,v=null!==(c=u?.ruleSets)&&void 0!==c?c:[];let h=!0;return n.some((e=>"visibility_by_role"===e.settingSlug))&&d&&"public"!==d&&"all"!==d||(h=!1),"user-role"===d&&0===p.length&&m&&(h=!1),"users"===d&&0===b.length&&f&&(h=!1),"user-rule-sets"===d&&0===v.length&&(h=!1),h=(0,r.applyFilters)("blockVisibility.hasUserRoleIndicator",h,e,t,n),h}function b(e,t,n,i){var o,l;if(t&&!e.hasOwnProperty("screenSize"))return!1;const s=null!==(o=(t?e.screenSize:e)?.hideOnScreenSize)&&void 0!==o?o:{extraLarge:!1,large:!1,medium:!1,small:!1,extraSmall:!1},a=null!==(l=i?.visibility_controls?.screen_size?.controls)&&void 0!==l?l:{extra_large:!0,large:!0,medium:!0,small:!0,extra_small:!0},c=[!(!s.extraLarge||!a.extra_large),!(!s.large||!a.large),!(!s.medium||!a.medium),!(!s.small||!a.small),!(!s.extraSmall||!a.extra_small)];let u=!0;return n.some((e=>"screen_size"===e.settingSlug))&&c.includes(!0)||(u=!1),u=(0,r.applyFilters)("blockVisibility.hasScreenSizeIndicator",u,e,t,n,i),u}function f(e,t,n){var i,o,l;if(t&&!e.hasOwnProperty("queryString"))return!1;if(!n.some((e=>"query_string"===e.settingSlug)))return!1;const s=null!==(i=e?.queryString?.queryStringAny)&&void 0!==i?i:"",a=null!==(o=e?.queryString?.queryStringAll)&&void 0!==o?o:"",c=null!==(l=e?.queryString?.queryStringNot)&&void 0!==l?l:"";let u=!0;return s||a||c||(u=!1),u=(0,r.applyFilters)("blockVisibility.hasQueryStringIndicator",u,e,t,n),u}function v(e,t,n,i){var o,l;if(null===(o=i?.integrations?.acf?.active)||void 0===o||!o||!n.some((e=>"acf"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("acf"))return!1;let s=!0;return 0===(null!==(l=e?.acf?.ruleSets)&&void 0!==l?l:[]).length&&(s=!1),s=(0,r.applyFilters)("blockVisibility.hasACFIndicator",s,e,t,n,i),s}function h(e,t,n,i){var o,l,s,a,c,u;if(null===(o=i?.integrations?.wp_fusion?.active)||void 0===o||!o||!n.some((e=>"wp_fusion"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("wpFusion"))return!1;const d=null!==(l=e.hasOwnProperty("userRole"))&&void 0!==l&&l,p=null!==(s=e?.userRole?.visibilityByRole)&&void 0!==s?s:"public",m="public"===p||"logged-out"===p,b=null!==(a=e?.wpFusion?.tagsAny)&&void 0!==a?a:[],f=null!==(c=e?.wpFusion?.tagsAll)&&void 0!==c?c:[],v=null!==(u=e?.wpFusion?.tagsNot)&&void 0!==u?u:[];let h=!0;return(!d&&0===v.length||"public"===p&&0===v.length||"logged-out"===p)&&(h=!1),m||0!==b.length||0!==f.length||0!==v.length||(h=!1),h=(0,r.applyFilters)("blockVisibility.hasWPFusionIndicator",h,e,t,n,i),h}function g(e,t){if(!e||0===e.length)return!1;const n=e.disabled_blocks.includes(t),i=(0,s.getBlockSupport)(t,"blockVisibility",!1);return!(n||!i)}function y(e){const{data:t="fetching"}=(0,l.useSelect)((t=>{const{getEntityRecord:n}=t("core");return{data:n("block-visibility/v1",e)}}),[]);return t}function _(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||0===e.length)return!1;const o=e.plugin_settings,l=(0,i.has)(o,t);return l?o[t]:n}(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,t.createElement)(c.Path,{d:"M128 0c70.7 0 128 57.3 128 128s-57.3 128-128 128S0 198.7 0 128 57.3 0 128 0Zm0 67a95.67 95.67 0 0 0-88.56 59.65l-.44 1.09v.52l.47 1.19A95.67 95.67 0 0 0 128 189a95.67 95.67 0 0 0 88.56-59.65l.44-1.09v-.52l-.47-1.19A95.67 95.67 0 0 0 128 67Zm0 21a40 40 0 1 1 0 80 40 40 0 0 1 0-80Zm8 16a16 16 0 1 0 0 32 16 16 0 0 0 0-32Z"}));const k=(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M12 16c2.208 0 4-1.792 4-4s-1.792-4-4-4-4 1.792-4 4 1.792 4 4 4Zm0-1.5c-1.3796 0-2.5-1.1204-2.5-2.5s1.1204-2.5 2.5-2.5 2.5 1.1204 2.5 2.5-1.1204 2.5-2.5 2.5Z"}),(0,t.createElement)(c.Path,{d:"M12 16c2.208 0 4-1.792 4-4s-1.792-4-4-4-4 1.792-4 4 1.792 4 4 4Zm0-1.5c-1.3796 0-2.5-1.1204-2.5-2.5s1.1204-2.5 2.5-2.5 2.5 1.1204 2.5 2.5-1.1204 2.5-2.5 2.5Z"}),(0,t.createElement)(c.Path,{d:"M12 4.5c5 0 9.27 3.11 11 7.5-1.73 4.39-6 7.5-11 7.5S2.73 16.39 1 12c1.73-4.39 6-7.5 11-7.5Zm9.3474 7.5C19.6714 8.4585 16.0654 6.1071 12 6.1071c-4.0653 0-7.6714 2.3514-9.3474 5.8929 1.676 3.5415 5.282 5.8929 9.3474 5.8929 4.0653 0 7.6714-2.3514 9.3474-5.8929Z"})),E=(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M13.9709 15.481A3.9797 3.9797 0 0 1 12 16c-2.208 0-4-1.792-4-4a3.98 3.98 0 0 1 .4854-1.9106l1.1417 1.1222A2.4937 2.4937 0 0 0 9.5 12c0 1.3796 1.1204 2.5 2.5 2.5.2906 0 .5697-.0497.8292-.141l1.1417 1.122ZM15.8137 13.2094l-1.315-1.2926c-.0436-1.3279-1.1252-2.3955-2.4587-2.4165l-1.315-1.2925A3.9918 3.9918 0 0 1 12 8c2.208 0 4 1.792 4 4a3.994 3.994 0 0 1-.1863 1.2094Z"}),(0,t.createElement)(c.Path,{d:"M16.9542 18.4125C15.4477 19.1105 13.7696 19.5 12 19.5c-5 0-9.27-3.11-11-7.5.8355-2.1201 2.2634-3.9417 4.0798-5.2586l1.1408 1.1212C4.697 8.8849 3.454 10.3063 2.6526 12c1.676 3.5415 5.282 5.8929 9.3474 5.8929 1.3052 0 2.563-.2424 3.7249-.6887l1.2293 1.2083ZM19.4899 16.8186l-1.1243-1.105c1.2566-.9771 2.2857-2.2427 2.9818-3.7136-1.676-3.5415-5.282-5.8929-9.3474-5.8929-1.027 0-2.0246.15-2.9692.4315L7.7566 5.2862C9.0734 4.7784 10.504 4.5 12 4.5c5 0 9.27 3.11 11 7.5-.746 1.8932-1.9645 3.5483-3.5101 4.8186ZM2.7243 4.4261l16.5 16.2175a.75.75 0 0 0 1.0514-1.0697l-16.5-16.2175A.75.75 0 0 0 2.7243 4.426Z"})),S=((0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M12 3c4.9706 0 9 4.0294 9 9s-4.0294 9-9 9-9-4.0294-9-9 4.0294-9 9-9Zm0 1.595c-4.0897 0-7.405 3.3153-7.405 7.405 0 4.0897 3.3153 7.405 7.405 7.405 4.0897 0 7.405-3.3153 7.405-7.405 0-4.0897-3.3153-7.405-7.405-7.405Zm0 2.5063c.4066 0 .742.3042.7913.6974l.0062.1v3.7714l2.9563 2.9559a.7975.7975 0 0 1-1.0462 1.1991l-.0816-.0713-3.2213-3.2231-.0749-.0983-.0304-.051a.7931.7931 0 0 1-.0907-.2814l-.0062-.1V7.8987c0-.4404.357-.7974.7975-.7974Z"})),(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M5.05 0H24v18.95A5.05 5.05 0 0 1 18.95 24H0V5.05A5.05 5.05 0 0 1 5.05 0Z",fill:"#E55B10"}),(0,t.createElement)(c.Path,{d:"M19.58 9.79c0 .52-.43.95-.95.95h-7.58v7.58c0 .52-.42.94-.94.94h-.64a.95.95 0 0 1-.94-.94V9.47c0-.34.18-.64.45-.8a.95.95 0 0 1 .8-.46h8.85c.52 0 .95.42.95.95v.63Z",fill:"#FFFFFF"}),(0,t.createElement)(c.Path,{d:"M5.05 14.53c0-.53.43-.95.95-.95h7.58V6c0-.52.42-.95.95-.95h.63c.52 0 .95.43.95.95v8.84c0 .34-.19.64-.46.81a.95.95 0 0 1-.8.46H6a.95.95 0 0 1-.95-.95v-.63Z",fill:"#FFFFFF"}))),w=(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M19.2 0A4.8 4.8 0 0 1 24 4.8v14.4a4.8 4.8 0 0 1-4.8 4.8H4.8A4.8 4.8 0 0 1 0 19.2V4.8A4.8 4.8 0 0 1 4.8 0h14.4ZM6.89 7.2H5.11l-3.87 9.79-.04.11h2.46l.64-1.63h3.4l.65 1.63h2.45l-.05-.11-.14-.38a4.93 4.93 0 0 0 5.9-1.23l-.01 1.72h2.4v-3.6h3.75v-2.4H18.9V9.6h3.9V7.2h-6.3v1.72a4.94 4.94 0 0 0-8.36 1.43L6.89 7.2Zm5.86 2.28c1.14 0 2.12.72 2.5 1.73l.06.2 1.19-.01v1.8h-1.3a2.67 2.67 0 0 1-2.25 1.61l-.2.01a2.67 2.67 0 1 1 0-5.34ZM6 11.16l.9 2.26H5.1l.9-2.26Z",fill:"#5DE8BF"}));function C(e,t){var n,l;let s=[];if(!e||!t||0===e.length||0===t.length)return s;let a=function(){let e=[{label:(0,o.__)("Hide Block","block-visibility"),attributeSlug:"hideBlock",settingSlug:"hide_block"},{label:(0,o.__)("Date & Time","block-visibility"),attributeSlug:"dateTime",settingSlug:"date_time"},{label:(0,o.__)("User Role","block-visibility"),attributeSlug:"userRole",settingSlug:"visibility_by_role"},{label:(0,o.__)("Screen Size","block-visibility"),attributeSlug:"screenSize",settingSlug:"screen_size"},{label:(0,o.__)("Query String","block-visibility"),attributeSlug:"queryString",settingSlug:"query_string"},{label:(0,o.__)("Advanced Custom Fields","block-visibility"),type:"integration",attributeSlug:"acf",settingSlug:"acf",icon:w},{label:(0,o.__)("WP Fusion","block-visibility"),type:"integration",attributeSlug:"wpFusion",settingSlug:"wp_fusion",icon:S}];return e=(0,r.applyFilters)("blockVisibility.controls",e),e=(0,r.applyFilters)("blockVisibility.coreControls",e),e=(0,r.applyFilters)("blockVisibility.integrationControls",e),e.sort(((e,t)=>e.label.localeCompare(t.label))),e}();a.forEach((function(e){"integration"!==e.type||(e=>{let n=!1;var i;return t?.integrations&&(n=null!==(i=t?.integrations[e]?.active)&&void 0!==i&&i),n})(e.settingSlug)||(a=a.filter((t=>t.settingSlug!==e.settingSlug)))}));const c=null!==(n=e?.visibility_controls)&&void 0!==n?n:{};(0,i.isEmpty)(c)||a.forEach((function(e){var t;let n=!1;(0,i.has)(c,e.settingSlug)||(n=!0),(null===(t=c[e.settingSlug]?.enable)||void 0===t||t)&&(n=!0),n&&s.push(e)}));const u=null!==(l=e?.plugin_settings?.default_controls)&&void 0!==l?l:[];return s.forEach((function(e){u.includes(e.settingSlug)&&(e.isDefault=!0)})),s=(0,r.applyFilters)("blockVisibility.enabledControls",s,e,t),s}(0,r.addFilter)("editor.BlockListBlock","block-visibility/contextual-indicators",(function(n){return i=>{var o,l,s;const a=y("settings"),c=y("variables");if("fetching"===a)return(0,t.createElement)(n,i);const{name:u,attributes:k}=i,E=_(a,"enable_contextual_indicators"),S=g(a,u),w=C(a,c);if(!E||!S||0===w.length)return(0,t.createElement)(n,i);const{blockVisibility:O}=k,x=null!==(o=O?.hideBlock)&&void 0!==o&&o&&w.some((e=>"hide_block"===e.settingSlug)),M=null!==(l=O?.controlSets)&&void 0!==l&&l;let V=null!=O?O:{};M&&(V=0!==O.controlSets.length&&O.controlSets[0]?.controls?O.controlSets[0].controls:{});let R={"date-time":p(V,M,w),"user-role":m(V,M,w),"screen-size":b(V,M,w,a),"query-string":f(V,M,w),acf:v(V,M,w,c),"wp-fusion":h(V,M,w,c)};R=(0,r.applyFilters)("blockVisibility.contextualIndicatorActiveControls",R,O,V,M,w,c),R=(0,r.applyFilters)("blockVisibility.conditionalIndicatorActiveCoreControls",R,O,V,M,w,c),R=Object.keys(R).filter((e=>!0===R[e])),!c?.is_pro||null===(s=a?.visibility_controls?.general?.enable_local_controls)||void 0===s||s||(R=R.filter((e=>"hide-block"===e||"visibility-presets"===e))),R.sort();let P="";R.length>1?P="block-visibility__has-"+R.length+"-controls":0!==R.length&&(P="block-visibility__has-"+R.join("-"));let F=d()({"block-visibility__is-hidden":x},P);return F&&(F+=" block-visibility__has-visibility"),F=(0,r.applyFilters)("blockVisibility.contextualIndicatorClasses",F),F=(0,r.applyFilters)("blockVisibility.conditionalIndicatorClasses",F),(0,t.createElement)(n,e({},i,{className:F}))}}));const O=window.wp.blockEditor;function x(e,t){var n,i,o;let l=!0;if(null===(n=e?.plugin_settings?.enable_user_role_restrictions)||void 0===n||!n)return l;const r=null!==(i=e?.plugin_settings?.enabled_user_roles)&&void 0!==i?i:[];-1===r.indexOf("administrator")&&r.push("administrator");const s=null!==(o=t?.current_users_roles)&&void 0!==o?o:[];return l=0!==s.length&&s.every((e=>-1!==r.indexOf(e))),l}const M=(0,l.withSelect)((e=>{var t,n;const{getEntityRecord:i}=e("core"),{getBlocks:o,getBlockName:l,getSelectedBlockClientIds:r,getBlockAttributes:s,hasMultiSelection:a}=e("core/block-editor"),{getBlockType:c}=e("core/blocks"),u=!a(),d=r(),p=0===d.length?null:d[0],m=c(l(p)),b=s(p),f=null!==(t=i("block-visibility/v1","settings"))&&void 0!==t?t:"fetching";let v=null!==(n=i("block-visibility/v1","variables"))&&void 0!==n?n:"fetching";const h=o().filter((e=>"core/widget-area"===e.name));return"fetching"!==v&&(v={...v,isWidgetEditor:h.length>0}),{enableMenuItem:u,clientId:p,blockType:m,blockAttributes:b,settings:f,variables:v}}))((function(e){var n;const{flashBlock:r,updateBlockAttributes:s}=(0,l.useDispatch)("core/block-editor"),{createSuccessNotice:a}=(0,l.useDispatch)("core/notices"),{blockAttributes:u,blockType:d,clientId:p,enableMenuItem:m,globallyRestricted:b,settings:f,variables:v,widgetAreaRestricted:h}=e;if("fetching"===f||"fetching"===v)return null;if(!x(f,v))return null;if(!m||!d)return null;if(h.includes(d.name)&&v?.isWidgetEditor||b.includes(d.name))return null;const y=_(f,"enable_toolbar_controls"),S=g(f,d.name),w=C(f,v);if(!y||!S||!w.some((e=>"hide_block"===e.settingSlug)))return null;const{blockVisibility:M}=u,V=null!==(n=M?.hideBlock)&&void 0!==n&&n,R=V?k:E,P=V?(0,o.__)("Enable block","block-visibility"):(0,o.__)("Hide block","block-visibility"),F=d.title,I=V?(0,o.sprintf)( +(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";var i=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function a(e){return i.isMemo(e)?r:s[e.$$typeof]||o}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=r;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,b=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(b){var o=m(n);o&&o!==b&&e(t,o,i)}var r=u(n);d&&(r=r.concat(d(n)));for(var s=a(t),f=a(n),v=0;v{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,b=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,h=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case l:case s:case r:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case f:case a:return e;default:return t}}case o:return t}}}function E(e){return k(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=a,t.Element=i,t.ForwardRef=p,t.Fragment=l,t.Lazy=v,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=r,t.Suspense=m,t.isAsyncMode=function(e){return E(e)||k(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===l},t.isLazy=function(e){return k(e)===v},t.isMemo=function(e){return k(e)===f},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===r},t.isSuspense=function(e){return k(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===s||e===r||e===m||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===f||e.$$typeof===a||e.$$typeof===c||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===_||e.$$typeof===h)},t.typeOf=k},864:(e,t,n)=>{"use strict";e.exports=n(921)}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var l=t[i]={exports:{}};return e[i](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t"date_time"===e.settingSlug)))return!1;let i=[],o=!1;var l,s;if(t?(i=null!==(l=e.dateTime?.schedules)&&void 0!==l?l:[],o=null!==(s=e.dateTime?.hideOnSchedules)&&void 0!==s&&s):i=e?.scheduling?[e?.scheduling]:[],0===i.length)return!1;const a=[];i.forEach((e=>{var t,n,i;const l=null!==(t=e?.enable)&&void 0!==t&&t,s=null!==(n=e?.start)&&void 0!==n?n:"",c=null!==(i=e?.end)&&void 0!==i?i:"";let u=!0;l||(u=!1),o||!l||s||c||(u=!1),u=(0,r.applyFilters)("blockVisibility.hasDateTimeScheduleIndicator",u,e),l&&s&&c&&s>=c&&(u=!1),a.push(u)}));let c=a.includes(!0);return c=(0,r.applyFilters)("blockVisibility.hasDateTimeIndicator",c,e,t,n),c}function m(e,t,n){var i,o,l,s,a,c;if(t&&!e.hasOwnProperty("userRole"))return!1;const u=t?e.userRole:e,d=null!==(i=u?.visibilityByRole)&&void 0!==i?i:"public",p=null!==(o=u?.restrictedRoles)&&void 0!==o?o:[],m=null!==(l=u?.hideOnRestrictedRoles)&&void 0!==l&&l,b=null!==(s=u?.restrictedUsers)&&void 0!==s?s:[],f=null!==(a=u?.hideOnRestrictedUsers)&&void 0!==a&&a,v=null!==(c=u?.ruleSets)&&void 0!==c?c:[];let h=!0;return n.some((e=>"visibility_by_role"===e.settingSlug))&&d&&"public"!==d&&"all"!==d||(h=!1),"user-role"===d&&0===p.length&&m&&(h=!1),"users"===d&&0===b.length&&f&&(h=!1),"user-rule-sets"===d&&0===v.length&&(h=!1),h=(0,r.applyFilters)("blockVisibility.hasUserRoleIndicator",h,e,t,n),h}function b(e,t,n,i){var o,l;if(t&&!e.hasOwnProperty("screenSize"))return!1;const s=null!==(o=(t?e.screenSize:e)?.hideOnScreenSize)&&void 0!==o?o:{extraLarge:!1,large:!1,medium:!1,small:!1,extraSmall:!1},a=null!==(l=i?.visibility_controls?.screen_size?.controls)&&void 0!==l?l:{extra_large:!0,large:!0,medium:!0,small:!0,extra_small:!0},c=[!(!s.extraLarge||!a.extra_large),!(!s.large||!a.large),!(!s.medium||!a.medium),!(!s.small||!a.small),!(!s.extraSmall||!a.extra_small)];let u=!0;return n.some((e=>"screen_size"===e.settingSlug))&&c.includes(!0)||(u=!1),u=(0,r.applyFilters)("blockVisibility.hasScreenSizeIndicator",u,e,t,n,i),u}function f(e,t,n){var i,o,l;if(t&&!e.hasOwnProperty("queryString"))return!1;if(!n.some((e=>"query_string"===e.settingSlug)))return!1;const s=null!==(i=e?.queryString?.queryStringAny)&&void 0!==i?i:"",a=null!==(o=e?.queryString?.queryStringAll)&&void 0!==o?o:"",c=null!==(l=e?.queryString?.queryStringNot)&&void 0!==l?l:"";let u=!0;return s||a||c||(u=!1),u=(0,r.applyFilters)("blockVisibility.hasQueryStringIndicator",u,e,t,n),u}function v(e,t,n,i){var o,l;if(null===(o=i?.integrations?.acf?.active)||void 0===o||!o||!n.some((e=>"acf"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("acf"))return!1;let s=!0;return 0===(null!==(l=e?.acf?.ruleSets)&&void 0!==l?l:[]).length&&(s=!1),s=(0,r.applyFilters)("blockVisibility.hasACFIndicator",s,e,t,n,i),s}function h(e,t,n,i){var o,l,s,a,c,u;if(null===(o=i?.integrations?.wp_fusion?.active)||void 0===o||!o||!n.some((e=>"wp_fusion"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("wpFusion"))return!1;const d=null!==(l=e.hasOwnProperty("userRole"))&&void 0!==l&&l,p=null!==(s=e?.userRole?.visibilityByRole)&&void 0!==s?s:"public",m="public"===p||"logged-out"===p,b=null!==(a=e?.wpFusion?.tagsAny)&&void 0!==a?a:[],f=null!==(c=e?.wpFusion?.tagsAll)&&void 0!==c?c:[],v=null!==(u=e?.wpFusion?.tagsNot)&&void 0!==u?u:[];let h=!0;return(!d&&0===v.length||"public"===p&&0===v.length||"logged-out"===p)&&(h=!1),m||0!==b.length||0!==f.length||0!==v.length||(h=!1),h=(0,r.applyFilters)("blockVisibility.hasWPFusionIndicator",h,e,t,n,i),h}function g(e,t){if(!e||0===e.length)return!1;const n=e.disabled_blocks.includes(t),i=(0,s.getBlockSupport)(t,"blockVisibility",!1);return!(n||!i)}function y(e){const{data:t="fetching"}=(0,l.useSelect)((t=>{const{getEntityRecord:n}=t("core");return{data:n("block-visibility/v1",e)}}),[]);return t}function _(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||0===e.length)return!1;const o=e.plugin_settings,l=(0,i.has)(o,t);return l?o[t]:n}(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,t.createElement)(c.Path,{d:"M128 0c70.7 0 128 57.3 128 128s-57.3 128-128 128S0 198.7 0 128 57.3 0 128 0Zm0 67a95.67 95.67 0 0 0-88.56 59.65l-.44 1.09v.52l.47 1.19A95.67 95.67 0 0 0 128 189a95.67 95.67 0 0 0 88.56-59.65l.44-1.09v-.52l-.47-1.19A95.67 95.67 0 0 0 128 67Zm0 21a40 40 0 1 1 0 80 40 40 0 0 1 0-80Zm8 16a16 16 0 1 0 0 32 16 16 0 0 0 0-32Z"}));const k=(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M12 16c2.208 0 4-1.792 4-4s-1.792-4-4-4-4 1.792-4 4 1.792 4 4 4Zm0-1.5c-1.3796 0-2.5-1.1204-2.5-2.5s1.1204-2.5 2.5-2.5 2.5 1.1204 2.5 2.5-1.1204 2.5-2.5 2.5Z"}),(0,t.createElement)(c.Path,{d:"M12 16c2.208 0 4-1.792 4-4s-1.792-4-4-4-4 1.792-4 4 1.792 4 4 4Zm0-1.5c-1.3796 0-2.5-1.1204-2.5-2.5s1.1204-2.5 2.5-2.5 2.5 1.1204 2.5 2.5-1.1204 2.5-2.5 2.5Z"}),(0,t.createElement)(c.Path,{d:"M12 4.5c5 0 9.27 3.11 11 7.5-1.73 4.39-6 7.5-11 7.5S2.73 16.39 1 12c1.73-4.39 6-7.5 11-7.5Zm9.3474 7.5C19.6714 8.4585 16.0654 6.1071 12 6.1071c-4.0653 0-7.6714 2.3514-9.3474 5.8929 1.676 3.5415 5.282 5.8929 9.3474 5.8929 4.0653 0 7.6714-2.3514 9.3474-5.8929Z"})),E=(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M13.9709 15.481A3.9797 3.9797 0 0 1 12 16c-2.208 0-4-1.792-4-4a3.98 3.98 0 0 1 .4854-1.9106l1.1417 1.1222A2.4937 2.4937 0 0 0 9.5 12c0 1.3796 1.1204 2.5 2.5 2.5.2906 0 .5697-.0497.8292-.141l1.1417 1.122ZM15.8137 13.2094l-1.315-1.2926c-.0436-1.3279-1.1252-2.3955-2.4587-2.4165l-1.315-1.2925A3.9918 3.9918 0 0 1 12 8c2.208 0 4 1.792 4 4a3.994 3.994 0 0 1-.1863 1.2094Z"}),(0,t.createElement)(c.Path,{d:"M16.9542 18.4125C15.4477 19.1105 13.7696 19.5 12 19.5c-5 0-9.27-3.11-11-7.5.8355-2.1201 2.2634-3.9417 4.0798-5.2586l1.1408 1.1212C4.697 8.8849 3.454 10.3063 2.6526 12c1.676 3.5415 5.282 5.8929 9.3474 5.8929 1.3052 0 2.563-.2424 3.7249-.6887l1.2293 1.2083ZM19.4899 16.8186l-1.1243-1.105c1.2566-.9771 2.2857-2.2427 2.9818-3.7136-1.676-3.5415-5.282-5.8929-9.3474-5.8929-1.027 0-2.0246.15-2.9692.4315L7.7566 5.2862C9.0734 4.7784 10.504 4.5 12 4.5c5 0 9.27 3.11 11 7.5-.746 1.8932-1.9645 3.5483-3.5101 4.8186ZM2.7243 4.4261l16.5 16.2175a.75.75 0 0 0 1.0514-1.0697l-16.5-16.2175A.75.75 0 0 0 2.7243 4.426Z"})),S=((0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M12 3c4.9706 0 9 4.0294 9 9s-4.0294 9-9 9-9-4.0294-9-9 4.0294-9 9-9Zm0 1.595c-4.0897 0-7.405 3.3153-7.405 7.405 0 4.0897 3.3153 7.405 7.405 7.405 4.0897 0 7.405-3.3153 7.405-7.405 0-4.0897-3.3153-7.405-7.405-7.405Zm0 2.5063c.4066 0 .742.3042.7913.6974l.0062.1v3.7714l2.9563 2.9559a.7975.7975 0 0 1-1.0462 1.1991l-.0816-.0713-3.2213-3.2231-.0749-.0983-.0304-.051a.7931.7931 0 0 1-.0907-.2814l-.0062-.1V7.8987c0-.4404.357-.7974.7975-.7974Z"})),(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M5.05 0H24v18.95A5.05 5.05 0 0 1 18.95 24H0V5.05A5.05 5.05 0 0 1 5.05 0Z",fill:"#E55B10"}),(0,t.createElement)(c.Path,{d:"M19.58 9.79c0 .52-.43.95-.95.95h-7.58v7.58c0 .52-.42.94-.94.94h-.64a.95.95 0 0 1-.94-.94V9.47c0-.34.18-.64.45-.8a.95.95 0 0 1 .8-.46h8.85c.52 0 .95.42.95.95v.63Z",fill:"#FFFFFF"}),(0,t.createElement)(c.Path,{d:"M5.05 14.53c0-.53.43-.95.95-.95h7.58V6c0-.52.42-.95.95-.95h.63c.52 0 .95.43.95.95v8.84c0 .34-.19.64-.46.81a.95.95 0 0 1-.8.46H6a.95.95 0 0 1-.95-.95v-.63Z",fill:"#FFFFFF"}))),w=(0,t.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(c.Path,{d:"M19.2 0A4.8 4.8 0 0 1 24 4.8v14.4a4.8 4.8 0 0 1-4.8 4.8H4.8A4.8 4.8 0 0 1 0 19.2V4.8A4.8 4.8 0 0 1 4.8 0h14.4ZM6.89 7.2H5.11l-3.87 9.79-.04.11h2.46l.64-1.63h3.4l.65 1.63h2.45l-.05-.11-.14-.38a4.93 4.93 0 0 0 5.9-1.23l-.01 1.72h2.4v-3.6h3.75v-2.4H18.9V9.6h3.9V7.2h-6.3v1.72a4.94 4.94 0 0 0-8.36 1.43L6.89 7.2Zm5.86 2.28c1.14 0 2.12.72 2.5 1.73l.06.2 1.19-.01v1.8h-1.3a2.67 2.67 0 0 1-2.25 1.61l-.2.01a2.67 2.67 0 1 1 0-5.34ZM6 11.16l.9 2.26H5.1l.9-2.26Z",fill:"#5DE8BF"}));function C(e,t){var n,l;let s=[];if(!e||!t||0===e.length||0===t.length)return s;let a=function(){let e=[{label:(0,o.__)("Hide Block","block-visibility"),attributeSlug:"hideBlock",settingSlug:"hide_block"},{label:(0,o.__)("Date & Time","block-visibility"),attributeSlug:"dateTime",settingSlug:"date_time"},{label:(0,o.__)("User Role","block-visibility"),attributeSlug:"userRole",settingSlug:"visibility_by_role"},{label:(0,o.__)("Screen Size","block-visibility"),attributeSlug:"screenSize",settingSlug:"screen_size"},{label:(0,o.__)("Query String","block-visibility"),attributeSlug:"queryString",settingSlug:"query_string"},{label:(0,o.__)("Advanced Custom Fields","block-visibility"),type:"integration",attributeSlug:"acf",settingSlug:"acf",icon:w},{label:(0,o.__)("WP Fusion","block-visibility"),type:"integration",attributeSlug:"wpFusion",settingSlug:"wp_fusion",icon:S}];return e=(0,r.applyFilters)("blockVisibility.controls",e),e=(0,r.applyFilters)("blockVisibility.coreControls",e),e=(0,r.applyFilters)("blockVisibility.integrationControls",e),e.sort(((e,t)=>e.label.localeCompare(t.label))),e}();a.forEach((function(e){"integration"!==e.type||(e=>{let n=!1;var i;return t?.integrations&&(n=null!==(i=t?.integrations[e]?.active)&&void 0!==i&&i),n})(e.settingSlug)||(a=a.filter((t=>t.settingSlug!==e.settingSlug)))}));const c=null!==(n=e?.visibility_controls)&&void 0!==n?n:{};(0,i.isEmpty)(c)||a.forEach((function(e){var t;let n=!1;(0,i.has)(c,e.settingSlug)||(n=!0),(null===(t=c[e.settingSlug]?.enable)||void 0===t||t)&&(n=!0),n&&s.push(e)}));const u=null!==(l=e?.plugin_settings?.default_controls)&&void 0!==l?l:[];return s.forEach((function(e){u.includes(e.settingSlug)&&(e.isDefault=!0)})),s=(0,r.applyFilters)("blockVisibility.enabledControls",s,e,t),s}(0,r.addFilter)("editor.BlockListBlock","block-visibility/contextual-indicators",(function(n){return i=>{var o,l,s;const a=y("settings"),c=y("variables");if("fetching"===a)return(0,t.createElement)(n,i);const{name:u,attributes:k}=i,E=_(a,"enable_contextual_indicators"),S=g(a,u),w=C(a,c);if(!E||!S||0===w.length)return(0,t.createElement)(n,i);const{blockVisibility:O}=k,x=null!==(o=O?.hideBlock)&&void 0!==o&&o&&w.some((e=>"hide_block"===e.settingSlug)),M=null!==(l=O?.controlSets)&&void 0!==l&&l;let V=null!=O?O:{};M&&(V=0!==O.controlSets.length&&O.controlSets[0]?.controls?O.controlSets[0].controls:{});let R={"date-time":p(V,M,w),"user-role":m(V,M,w),"screen-size":b(V,M,w,a),"query-string":f(V,M,w),acf:v(V,M,w,c),"wp-fusion":h(V,M,w,c)};R=(0,r.applyFilters)("blockVisibility.contextualIndicatorActiveControls",R,O,V,M,w,c),R=(0,r.applyFilters)("blockVisibility.conditionalIndicatorActiveCoreControls",R,O,V,M,w,c),R=Object.keys(R).filter((e=>!0===R[e])),!c?.is_pro||null===(s=a?.visibility_controls?.general?.enable_local_controls)||void 0===s||s||(R=R.filter((e=>"hide-block"===e||"visibility-presets"===e))),R.sort();let P="";R.length>1?P="block-visibility__has-"+R.length+"-controls":0!==R.length&&(P="block-visibility__has-"+R.join("-"));let F=d()({"block-visibility__is-hidden":x},i?.className,P);return F&&(F+=" block-visibility__has-visibility"),F=(0,r.applyFilters)("blockVisibility.contextualIndicatorClasses",F),F=(0,r.applyFilters)("blockVisibility.conditionalIndicatorClasses",F),(0,t.createElement)(n,e({},i,{className:F}))}}));const O=window.wp.blockEditor;function x(e,t){var n,i,o;let l=!0;if(null===(n=e?.plugin_settings?.enable_user_role_restrictions)||void 0===n||!n)return l;const r=null!==(i=e?.plugin_settings?.enabled_user_roles)&&void 0!==i?i:[];-1===r.indexOf("administrator")&&r.push("administrator");const s=null!==(o=t?.current_users_roles)&&void 0!==o?o:[];return l=0!==s.length&&s.every((e=>-1!==r.indexOf(e))),l}const M=(0,l.withSelect)((e=>{var t,n;const{getEntityRecord:i}=e("core"),{getBlocks:o,getBlockName:l,getSelectedBlockClientIds:r,getBlockAttributes:s,hasMultiSelection:a}=e("core/block-editor"),{getBlockType:c}=e("core/blocks"),u=!a(),d=r(),p=0===d.length?null:d[0],m=c(l(p)),b=s(p),f=null!==(t=i("block-visibility/v1","settings"))&&void 0!==t?t:"fetching";let v=null!==(n=i("block-visibility/v1","variables"))&&void 0!==n?n:"fetching";const h=o().filter((e=>"core/widget-area"===e.name));return"fetching"!==v&&(v={...v,isWidgetEditor:h.length>0}),{enableMenuItem:u,clientId:p,blockType:m,blockAttributes:b,settings:f,variables:v}}))((function(e){var n;const{flashBlock:r,updateBlockAttributes:s}=(0,l.useDispatch)("core/block-editor"),{createSuccessNotice:a}=(0,l.useDispatch)("core/notices"),{blockAttributes:u,blockType:d,clientId:p,enableMenuItem:m,globallyRestricted:b,settings:f,variables:v,widgetAreaRestricted:h}=e;if("fetching"===f||"fetching"===v)return null;if(!x(f,v))return null;if(!m||!d)return null;if(h.includes(d.name)&&v?.isWidgetEditor||b.includes(d.name))return null;const y=_(f,"enable_toolbar_controls"),S=g(f,d.name),w=C(f,v);if(!y||!S||!w.some((e=>"hide_block"===e.settingSlug)))return null;const{blockVisibility:M}=u,V=null!==(n=M?.hideBlock)&&void 0!==n&&n,R=V?k:E,P=V?(0,o.__)("Enable block","block-visibility"):(0,o.__)("Hide block","block-visibility"),F=d.title,I=V?(0,o.sprintf)( // Translators: Name of the block being made visible, e.g. "Paragraph". (0,o.__)('"%s" is now visible.'),F):(0,o.sprintf)( // Translators: Name of the block being hidden, e.g. "Paragraph".