From 18cf58bd1bf7eb21e061f2353010c4567b92dee5 Mon Sep 17 00:00:00 2001 From: Nick Diego Date: Sun, 31 Mar 2024 15:41:24 -0500 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 e2d4f5e..db7cdda 100644 --- a/build/block-visibility-editor.asset.php +++ b/build/block-visibility-editor.asset.php @@ -1 +1 @@ - array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '5c9d3870d0cae11c8788'); + array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-date', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '7925c713ec6b5d12fd5e'); diff --git a/build/block-visibility-editor.js b/build/block-visibility-editor.js index 481fb5d..a802ede 100644 --- a/build/block-visibility-editor.js +++ b/build/block-visibility-editor.js @@ -1,4 +1,4 @@ -!function(){var e={184:function(e,t){var l;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||(o[l]=e[l]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(o[l]=e[l])}return o}(e,a),i=o.default.Children.only(t);return o.default.cloneElement(i,c(c({},l),{},{onClick:this.onClick}))}}])&&u(t.prototype,l),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.default.PureComponent);t.CopyToClipboard=m,v(m,"defaultProps",{onCopy:void 0,options:void 0})},855:function(e,t,l){"use strict";var i=l(300).CopyToClipboard;i.CopyToClipboard=i,e.exports=i},921:function(e,t){"use strict";var l="function"==typeof Symbol&&Symbol.for,i=l?Symbol.for("react.element"):60103,o=l?Symbol.for("react.portal"):60106,n=l?Symbol.for("react.fragment"):60107,a=l?Symbol.for("react.strict_mode"):60108,s=l?Symbol.for("react.profiler"):60114,r=l?Symbol.for("react.provider"):60109,c=l?Symbol.for("react.context"):60110,u=l?Symbol.for("react.async_mode"):60111,d=l?Symbol.for("react.concurrent_mode"):60111,p=l?Symbol.for("react.forward_ref"):60112,b=l?Symbol.for("react.suspense"):60113,v=l?Symbol.for("react.suspense_list"):60120,m=l?Symbol.for("react.memo"):60115,y=l?Symbol.for("react.lazy"):60116,h=l?Symbol.for("react.block"):60121,f=l?Symbol.for("react.fundamental"):60117,g=l?Symbol.for("react.responder"):60118,_=l?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 n:case s:case a:case b:return e;default:switch(e=e&&e.$$typeof){case c:case p:case y:case m:case r: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=r,t.Element=i,t.ForwardRef=p,t.Fragment=n,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=b,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)===r},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)===n},t.isLazy=function(e){return k(e)===y},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===d||e===s||e===a||e===b||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===r||e.$$typeof===c||e.$$typeof===p||e.$$typeof===f||e.$$typeof===g||e.$$typeof===_||e.$$typeof===h)},t.typeOf=k},864:function(e,t,l){"use strict";e.exports=l(921)},742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,l=[],i=0;i"acf"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("acf"))return!1;let a=!0;return 0===(null!==(n=e?.acf?.ruleSets)&&void 0!==n?n:[]).length&&(a=!1),a}function m(e,t,l){var i;if(t&&!e.hasOwnProperty("browserDevice"))return!1;if(!l.some((e=>"browser_device"===e.settingSlug)))return!1;let o=!0;return 0===(null!==(i=e?.browserDevice?.ruleSets)&&void 0!==i?i:[]).length&&(o=!1),o}function y(e,t,l){var i;if(t&&!e.hasOwnProperty("cookie"))return!1;if(!l.some((e=>"cookie"===e.settingSlug)))return!1;let o=!0;return 0===(null!==(i=e?.cookie?.ruleSets)&&void 0!==i?i:[]).length&&(o=!1),o}function h(e,t,l){if(t&&!e.hasOwnProperty("dateTime"))return!1;if(!l.some((e=>"date_time"===e.settingSlug)))return!1;let i=[],o=!1;var n,a;if(t?(i=null!==(n=e.dateTime?.schedules)&&void 0!==n?n:[],o=null!==(a=e.dateTime?.hideOnSchedules)&&void 0!==a&&a):i=e?.scheduling?[e?.scheduling]:[],0===i.length)return!1;const s=[];return i.forEach((e=>{var t,l,i,n,a;const r=null!==(t=e?.enable)&&void 0!==t&&t,c=null!==(l=e?.start)&&void 0!==l?l:"",u=null!==(i=e?.end)&&void 0!==i?i:"",d=null!==(n=e?.dayOfWeek?.enable)&&void 0!==n&&n,p=null!==(a=e?.timeOfDay?.enable)&&void 0!==a&&a;let b=!0;r||(b=!1),o||!r||c||u||d||p||(b=!1),r&&c&&u&&c>=u&&(b=!1),s.push(b)})),s.includes(!0)}function f(e,t,l,i){var o,n;if(null===(o=i?.integrations?.edd?.active)||void 0===o||!o||!l.some((e=>"edd"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("edd"))return!1;let a=!0;return 0===(null!==(n=e?.edd?.ruleSets)&&void 0!==n?n:[]).length&&(a=!1),a}function g(e,t,l){var i;if(t&&!e.hasOwnProperty("location"))return!1;if(!l.some((e=>"location"===e.settingSlug)))return!1;let o=!0;return 0===(null!==(i=e?.location?.ruleSets)&&void 0!==i?i:[]).length&&(o=!1),o}function _(e,t,l){var i;if(t&&!e.hasOwnProperty("metadata"))return!1;if(!l.some((e=>"metadata"===e.settingSlug)))return!1;let o=!0;return 0===(null!==(i=e?.metadata?.ruleSets)&&void 0!==i?i:[]).length&&(o=!1),o}function k(e,t,l){var i,o,n;if(t&&!e.hasOwnProperty("queryString"))return!1;if(!l.some((e=>"query_string"===e.settingSlug)))return!1;const a=null!==(i=e?.queryString?.queryStringAny)&&void 0!==i?i:"",s=null!==(o=e?.queryString?.queryStringAll)&&void 0!==o?o:"",r=null!==(n=e?.queryString?.queryStringNot)&&void 0!==n?n:"";let c=!0;return a||s||r||(c=!1),c}function E(e,t,l){var i,o;if(t&&!e.hasOwnProperty("referralSource"))return!1;if(!l.some((e=>"referral_source"===e.settingSlug)))return!1;const n=null!==(i=e?.referralSource?.contains)&&void 0!==i?i:"",a=null!==(o=e?.referralSource?.doesNotContain)&&void 0!==o?o:"";let s=!0;return n||a||(s=!1),s}function S(e,t,l,i){var o,n;if(t&&!e.hasOwnProperty("screenSize"))return!1;const a=t?e.screenSize:e,s=null!==(o=a?.hideOnScreenSize)&&void 0!==o?o:{extraLarge:!1,large:!1,medium:!1,small:!1,extraSmall:!1},r=null!==(n=i?.visibility_controls?.screen_size?.controls)&&void 0!==n?n:{extra_large:!0,large:!0,medium:!0,small:!0,extra_small:!0},c=[!(!s.extraLarge||!r.extra_large),!(!s.large||!r.large),!(!s.medium||!r.medium),!(!s.small||!r.small),!(!s.extraSmall||!r.extra_small)];let u=!0;return l.some((e=>"screen_size"===e.settingSlug))&&c.includes(!0)||(u=!1),u}function w(e,t,l){var i,o;if(t&&!e.hasOwnProperty("urlPath"))return!1;if(!l.some((e=>"url_path"===e.settingSlug)))return!1;const n=null!==(i=e?.urlPath?.contains)&&void 0!==i?i:"",a=null!==(o=e?.urlPath?.doesNotContain)&&void 0!==o?o:"";let s=!0;return n||a||(s=!1),s}function C(e,t,l){var i,o,n,a,s,r;if(t&&!e.hasOwnProperty("userRole"))return!1;const c=t?e.userRole:e,u=null!==(i=c?.visibilityByRole)&&void 0!==i?i:"public",d=null!==(o=c?.restrictedRoles)&&void 0!==o?o:[],p=null!==(n=c?.hideOnRestrictedRoles)&&void 0!==n&&n,b=null!==(a=c?.restrictedUsers)&&void 0!==a?a:[],v=null!==(s=c?.hideOnRestrictedUsers)&&void 0!==s&&s,m=null!==(r=c?.ruleSets)&&void 0!==r?r:[];let y=!0;return l.some((e=>"visibility_by_role"===e.settingSlug))&&u&&"public"!==u&&"all"!==u||(y=!1),"user-role"===u&&0===d.length&&p&&(y=!1),"users"===u&&0===b.length&&v&&(y=!1),"user-rule-sets"===u&&0===m.length&&(y=!1),y}function T(e,t){var l;return!!t.some((e=>"visibility_presets"===e.settingSlug))&&0!==(null!==(l=e?.visibilityPresets?.presets)&&void 0!==l?l:[]).length}function O(e,t,l,i){var o,n;if(null===(o=i?.integrations?.woocommerce?.active)||void 0===o||!o||!l.some((e=>"woocommerce"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("woocommerce"))return!1;let a=!0;return 0===(null!==(n=e?.woocommerce?.ruleSets)&&void 0!==n?n:[]).length&&(a=!1),a}function F(e,t,l,i){var o,n,a,s,r,c;if(null===(o=i?.integrations?.wp_fusion?.active)||void 0===o||!o||!l.some((e=>"wp_fusion"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("wpFusion"))return!1;const u=null!==(n=e.hasOwnProperty("userRole"))&&void 0!==n&&n,d=null!==(a=e?.userRole?.visibilityByRole)&&void 0!==a?a:"public",p="public"===d||"logged-out"===d,b=null!==(s=e?.wpFusion?.tagsAny)&&void 0!==s?s:[],v=null!==(r=e?.wpFusion?.tagsAll)&&void 0!==r?r:[],m=null!==(c=e?.wpFusion?.tagsNot)&&void 0!==c?c:[];let y=!0;return(!u&&0===m.length||"public"===d&&0===m.length||"logged-out"===d)&&(y=!1),p||0!==b.length||0!==v.length||0!==m.length||(y=!1),y}function P(e,t){if(!e||0===e.length)return!1;const l=e.disabled_blocks.includes(t),i=(0,r.getBlockSupport)(t,"blockVisibility",!1);return!(l||!i)}function N(e,t){let l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||0===e.length)return!1;const o=e.plugin_settings;return(0,i.has)(o,t)?o[t]:l}(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,t.createElement)(u.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 x=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(u.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)(u.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)(u.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"})),A=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(u.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)(u.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"})),V=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.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"})),R=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.Path,{d:"M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})),M=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.Path,{d:"M20 19c0 1.1046-.8954 2-2 2H6c-1.1046 0-2-.8954-2-2V5c0-1.1046.8954-2 2-2h12c1.1046 0 2 .8954 2 2v14ZM18.5 8.5V5a.5002.5002 0 0 0-.4101-.492L18 4.5H6a.5002.5002 0 0 0-.492.4101L5.5 5v3.5h13Zm0 5.5v-4h-13v4h13Zm0 5v-3.5h-13V19c0 .2455.1769.4496.4101.492L6 19.5h12a.5002.5002 0 0 0 .492-.4101L18.5 19Z"})),I=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.Path,{d:"M19 4c1.1046 0 2 .8954 2 2v12c0 1.1046-.8954 2-2 2H5c-1.1046 0-2-.8954-2-2V6c0-1.1046.8954-2 2-2h14ZM8.5 5.5H5a.5002.5002 0 0 0-.492.4101L4.5 6v12c0 .2455.1769.4496.4101.492L5 18.5h3.5v-13Zm5.5 0h-4v13h4v-13Zm5 0h-3.5v13H19a.5002.5002 0 0 0 .492-.4101L19.5 18V6a.5002.5002 0 0 0-.4101-.492L19 5.5Z"})),D=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.Path,{d:"M12 0a11.96 11.96 0 0 1 12 12 11.96 11.96 0 0 1-12 12A11.96 11.96 0 0 1 0 12 11.96 11.96 0 0 1 12 0Zm.69 13.9H11.4v.92l-.13.03c-.3.1-.57.22-.79.38-.22.17-.4.37-.51.6-.12.23-.19.48-.19.76 0 .32.09.6.26.85.16.24.38.44.67.6.2.13.43.24.68.33l.27.09c.24.08.43.16.58.24.13.07.21.14.26.2.04.06.06.13.06.21 0 .1-.03.17-.08.24a.56.56 0 0 1-.25.17c-.14.05-.3.07-.52.08a3.2 3.2 0 0 1-1.37-.33l-.3-.15-.41 1.37.2.1c.13.08.3.14.49.2s.4.1.62.14l.23.03.23.01v.87h1.29v-.98l.06-.02c.33-.1.6-.24.83-.42a1.76 1.76 0 0 0 .68-1.38 1.64 1.64 0 0 0-.83-1.46c-.2-.13-.45-.26-.73-.36l-.22-.08c-.27-.1-.48-.18-.64-.26a.9.9 0 0 1-.3-.2.27.27 0 0 1-.06-.19c0-.05.02-.1.06-.16a.48.48 0 0 1 .21-.15c.12-.05.28-.08.48-.08a2.9 2.9 0 0 1 1.12.24l.28.13.44-1.32-.21-.11a2.9 2.9 0 0 0-.67-.23l-.18-.03-.18-.02-.14-.02v-.85ZM12 1.67A10.32 10.32 0 0 0 1.68 11.9L6.4 7.17 8 8.75l-3.47 3.47h14.94L16 8.75l1.59-1.58 4.73 4.73A10.32 10.32 0 0 0 12 1.68Zm0 .48c.81 0 1.48.48 1.48 1.08V5.5h2.92L12 10.13 7.6 5.5h2.92V3.24c0-.6.67-1.08 1.48-1.08Z",fill:"#000"})),L=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.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.4Zm-.51 4h-.15c-.45.04-.8.27-1.02.74-.97 1.87-1.65 4.9-2.05 9.12a32.67 32.67 0 0 1-1.48-5.68c-.17-.97-.59-1.44-1.27-1.39-.46.03-.85.37-1.16 1l-3.4 6.91C7.6 12.3 7.07 9.36 6.6 5.9c-.1-.87-.55-1.26-1.35-1.2-.43.04-.76.2-.97.52-.22.3-.31.68-.25 1.1.91 6.23 1.77 10.42 2.56 12.6.3.8.67 1.17 1.08 1.14.66-.05 1.43-1.01 2.35-2.89a319.4 319.4 0 0 1 2.23-4.77c.84 3.13 1.99 5.49 3.43 7.06.4.45.82.65 1.22.62.36-.04.64-.24.83-.6.15-.32.21-.68.18-1.1a33 33 0 0 1 .44-6.31c.4-2.79.9-4.8 1.5-6 .13-.24.17-.49.16-.79-.03-.38-.19-.7-.48-.94a1.3 1.3 0 0 0-.98-.33Z",fill:"#683FA6"})),H=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(u.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)(u.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)(u.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"})),B=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(u.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 U(e,t){var l,n;let a=[];if(!e||!t||0===e.length||0===t.length)return a;let r=function(){let e=[{label:(0,o.__)("Hide Block","block-visibility"),attributeSlug:"hideBlock",settingSlug:"hide_block"},{label:(0,o.__)("Browser & Device","block-visibility"),attributeSlug:"browserDevice",settingSlug:"browser_device"},{label:(0,o.__)("Cookie","block-visibility"),attributeSlug:"cookie",settingSlug:"cookie"},{label:(0,o.__)("Date & Time","block-visibility"),attributeSlug:"dateTime",settingSlug:"date_time"},{label:(0,o.__)("Location","block-visibility"),attributeSlug:"location",settingSlug:"location"},{label:(0,o.__)("Metadata","block-visibility"),attributeSlug:"metadata",settingSlug:"metadata"},{label:(0,o.__)("Query String","block-visibility"),attributeSlug:"queryString",settingSlug:"query_string"},{label:(0,o.__)("Referral Source","block-visibility"),attributeSlug:"referralSource",settingSlug:"referral_source"},{label:(0,o.__)("Screen Size","block-visibility"),attributeSlug:"screenSize",settingSlug:"screen_size"},{label:(0,o.__)("URL Path","block-visibility"),attributeSlug:"urlPath",settingSlug:"url_path"},{label:(0,o.__)("User Role","block-visibility"),attributeSlug:"userRole",settingSlug:"visibility_by_role"},{label:(0,o.__)("Visibility Presets","block-visibility"),attributeSlug:"visibilityPresets",settingSlug:"visibility_presets"},{label:(0,o.__)("Advanced Custom Fields","block-visibility"),type:"integration",attributeSlug:"acf",settingSlug:"acf",icon:B},{label:(0,o.__)("Easy Digital Downloads","block-visibility"),type:"integration",attributeSlug:"edd",settingSlug:"edd",icon:D},{label:(0,o.__)("WooCommerce","block-visibility"),type:"integration",attributeSlug:"woocommerce",settingSlug:"woocommerce",icon:L},{label:(0,o.__)("WP Fusion","block-visibility"),type:"integration",attributeSlug:"wpFusion",settingSlug:"wp_fusion",icon:H}];return e=(0,s.applyFilters)("blockVisibility.controls",e),e=(0,s.applyFilters)("blockVisibility.coreControls",e),e=(0,s.applyFilters)("blockVisibility.integrationControls",e),e=e.filter(((e,t,l)=>t===l.findIndex((t=>t.attributeSlug===e.attributeSlug&&t.settingSlug===e.settingSlug)))),e.sort(((e,t)=>e.label.localeCompare(t.label))),e}();r.forEach((function(e){"integration"!==e.type||(e=>{let l=!1;var i;return t?.integrations&&(l=null!==(i=t?.integrations[e]?.active)&&void 0!==i&&i),l})(e.settingSlug)||(r=r.filter((t=>t.settingSlug!==e.settingSlug)))}));const c=null!==(l=e?.visibility_controls)&&void 0!==l?l:{};(0,i.isEmpty)(c)||r.forEach((function(e){var t;let l=!1;(0,i.has)(c,e.settingSlug)||(l=!0),(null===(t=c[e.settingSlug]?.enable)||void 0===t||t)&&(l=!0),l&&a.push(e)}));const u=null!==(n=e?.plugin_settings?.default_controls)&&void 0!==n?n:[];return a.forEach((function(e){u.includes(e.settingSlug)&&(e.isDefault=!0)})),a=(0,s.applyFilters)("blockVisibility.enabledControls",a,e,t),a}(0,s.addFilter)("editor.BlockListBlock","block-visibility/contextual-indicators",(function(l){return i=>{var o,n,r;const c=(0,a.useEntityRecord)("block-visibility/v1","settings"),u=(0,a.useEntityRecord)("block-visibility/v1","variables");if(!c.hasResolved)return(0,t.createElement)(l,i);const{name:d,attributes:p}=i,x=c.record,A=u.record,V=N(x,"enable_contextual_indicators"),R=P(x,d),M=U(x,A);if(!V||!R||0===M.length)return(0,t.createElement)(l,i);const{blockVisibility:I}=p,D=null!==(o=I?.hideBlock)&&void 0!==o&&o&&M.some((e=>"hide_block"===e.settingSlug)),L=null!==(n=I?.controlSets)&&void 0!==n&&n;let H=null!=I?I:{};L&&(H=0!==I.controlSets.length&&I.controlSets[0]?.controls?I.controlSets[0].controls:{});let B={acf:v(H,L,M,A),"browser-device":m(H,L,M),cookie:y(H,L,M),"date-time":h(H,L,M),edd:f(H,L,M,A),location:g(H,L,M),metadata:_(H,L,M),"query-string":k(H,L,M),"referral-source":E(H,L,M),"screen-size":S(H,L,M,x),"url-path":w(H,L,M),"user-role":C(H,L,M),"visibility-presets":T(I,M),woocommerce:O(H,L,M,A),"wp-fusion":F(H,L,M,A)};B=(0,s.applyFilters)("blockVisibility.contextualIndicatorActiveControls",B,I,H,L,M,A),B=(0,s.applyFilters)("blockVisibility.conditionalIndicatorActiveCoreControls",B,I,H,L,M,A),B=Object.keys(B).filter((e=>!0===B[e])),null===(r=x?.visibility_controls?.general?.enable_local_controls)||void 0===r||r||(B=B.filter((e=>"hide-block"===e||"visibility-presets"===e))),B.sort();let j="";B.length>1?j="block-visibility__has-"+B.length+"-controls":0!==B.length&&(j="block-visibility__has-"+B.join("-"));let q=b()({"block-visibility__is-hidden":D},j);q&&(q+=" block-visibility__has-visibility"),q=(0,s.applyFilters)("blockVisibility.contextualIndicatorClasses",q,B,H,M,A),q=(0,s.applyFilters)("blockVisibility.conditionalIndicatorClasses",q);const z=b()(i?.className,q);return(0,t.createElement)(l,e({},i,{className:z}))}}));var j=window.wp.blockEditor;function q(e,t){var l,i,o;let n=!0;if(null===(l=e?.plugin_settings?.enable_user_role_restrictions)||void 0===l||!l)return n;const a=null!==(i=t?.current_users_roles)&&void 0!==i?i:[],s=null!==(o=e?.plugin_settings?.enabled_user_roles)&&void 0!==o?o:[],r=[...new Set([...s,"administrator","super-admin"])];return n=0!==a.length&&a.every((e=>-1!==r.indexOf(e))),n}var z=(0,n.withSelect)((e=>{const{getBlockName:t,getSelectedBlockClientIds:l,getBlockAttributes:i,hasMultiSelection:o}=e("core/block-editor"),{getBlockType:n}=e("core/blocks"),a=!o(),s=l(),r=0===s.length?null:s[0];return{enableMenuItem:a,clientId:r,blockType:n(t(r)),blockAttributes:i(r)}}))((function(e){var l;const{flashBlock:s,updateBlockAttributes:r}=(0,n.useDispatch)("core/block-editor"),{createSuccessNotice:c}=(0,n.useDispatch)("core/notices"),{blockAttributes:d,blockType:p,clientId:b,enableMenuItem:v,globallyRestricted:m,widgetAreaRestricted:y}=e,h=(0,a.useEntityRecord)("block-visibility/v1","settings"),f=(0,a.useEntityRecord)("block-visibility/v1","variables");if(!h.hasResolved||!f.hasResolved)return null;const g=h.record,{getBlocks:_}=(0,n.select)("core/block-editor"),k=_().filter((e=>"core/widget-area"===e.name)),E={...f.record,isWidgetEditor:k.length>0};if(!q(g,E))return null;if(!v||!p)return null;if(y.includes(p.name)&&E?.isWidgetEditor||m.includes(p.name))return null;const S=N(g,"enable_toolbar_controls"),w=P(g,p.name),C=U(g,E);if(!S||!w||!C.some((e=>"hide_block"===e.settingSlug)))return null;const{blockVisibility:T}=d,O=null!==(l=T?.hideBlock)&&void 0!==l&&l,F=O?x:A,V=O?(0,o.__)("Enable block","block-visibility"):(0,o.__)("Hide block","block-visibility"),R=p.title,M=O?(0,o.sprintf)( +!function(){var e={184:function(e,t){var l;!function(){"use strict";var i={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||(o[l]=e[l]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(o[l]=e[l])}return o}(e,a),i=o.default.Children.only(t);return o.default.cloneElement(i,c(c({},l),{},{onClick:this.onClick}))}}])&&u(t.prototype,l),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.default.PureComponent);t.CopyToClipboard=m,v(m,"defaultProps",{onCopy:void 0,options:void 0})},855:function(e,t,l){"use strict";var i=l(300).CopyToClipboard;i.CopyToClipboard=i,e.exports=i},921:function(e,t){"use strict";var l="function"==typeof Symbol&&Symbol.for,i=l?Symbol.for("react.element"):60103,o=l?Symbol.for("react.portal"):60106,n=l?Symbol.for("react.fragment"):60107,a=l?Symbol.for("react.strict_mode"):60108,s=l?Symbol.for("react.profiler"):60114,r=l?Symbol.for("react.provider"):60109,c=l?Symbol.for("react.context"):60110,u=l?Symbol.for("react.async_mode"):60111,d=l?Symbol.for("react.concurrent_mode"):60111,p=l?Symbol.for("react.forward_ref"):60112,b=l?Symbol.for("react.suspense"):60113,v=l?Symbol.for("react.suspense_list"):60120,m=l?Symbol.for("react.memo"):60115,y=l?Symbol.for("react.lazy"):60116,h=l?Symbol.for("react.block"):60121,f=l?Symbol.for("react.fundamental"):60117,g=l?Symbol.for("react.responder"):60118,_=l?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 n:case s:case a:case b:return e;default:switch(e=e&&e.$$typeof){case c:case p:case y:case m:case r: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=r,t.Element=i,t.ForwardRef=p,t.Fragment=n,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=b,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)===r},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)===n},t.isLazy=function(e){return k(e)===y},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===d||e===s||e===a||e===b||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===r||e.$$typeof===c||e.$$typeof===p||e.$$typeof===f||e.$$typeof===g||e.$$typeof===_||e.$$typeof===h)},t.typeOf=k},864:function(e,t,l){"use strict";e.exports=l(921)},742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,l=[],i=0;i"acf"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("acf"))return!1;let a=!0;return 0===(null!==(n=e?.acf?.ruleSets)&&void 0!==n?n:[]).length&&(a=!1),a}function m(e,t,l){var i;if(t&&!e.hasOwnProperty("browserDevice"))return!1;if(!l.some((e=>"browser_device"===e.settingSlug)))return!1;let o=!0;return 0===(null!==(i=e?.browserDevice?.ruleSets)&&void 0!==i?i:[]).length&&(o=!1),o}function y(e,t,l){var i;if(t&&!e.hasOwnProperty("cookie"))return!1;if(!l.some((e=>"cookie"===e.settingSlug)))return!1;let o=!0;return 0===(null!==(i=e?.cookie?.ruleSets)&&void 0!==i?i:[]).length&&(o=!1),o}function h(e,t,l){if(t&&!e.hasOwnProperty("dateTime"))return!1;if(!l.some((e=>"date_time"===e.settingSlug)))return!1;let i=[],o=!1;var n,a;if(t?(i=null!==(n=e.dateTime?.schedules)&&void 0!==n?n:[],o=null!==(a=e.dateTime?.hideOnSchedules)&&void 0!==a&&a):i=e?.scheduling?[e?.scheduling]:[],0===i.length)return!1;const s=[];return i.forEach((e=>{var t,l,i,n,a;const r=null!==(t=e?.enable)&&void 0!==t&&t,c=null!==(l=e?.start)&&void 0!==l?l:"",u=null!==(i=e?.end)&&void 0!==i?i:"",d=null!==(n=e?.dayOfWeek?.enable)&&void 0!==n&&n,p=null!==(a=e?.timeOfDay?.enable)&&void 0!==a&&a;let b=!0;r||(b=!1),o||!r||c||u||d||p||(b=!1),s.push(b)})),s.includes(!0)}function f(e,t,l,i){var o,n;if(null===(o=i?.integrations?.edd?.active)||void 0===o||!o||!l.some((e=>"edd"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("edd"))return!1;let a=!0;return 0===(null!==(n=e?.edd?.ruleSets)&&void 0!==n?n:[]).length&&(a=!1),a}function g(e,t,l){var i;if(t&&!e.hasOwnProperty("location"))return!1;if(!l.some((e=>"location"===e.settingSlug)))return!1;let o=!0;return 0===(null!==(i=e?.location?.ruleSets)&&void 0!==i?i:[]).length&&(o=!1),o}function _(e,t,l){var i;if(t&&!e.hasOwnProperty("metadata"))return!1;if(!l.some((e=>"metadata"===e.settingSlug)))return!1;let o=!0;return 0===(null!==(i=e?.metadata?.ruleSets)&&void 0!==i?i:[]).length&&(o=!1),o}function k(e,t,l){var i,o,n;if(t&&!e.hasOwnProperty("queryString"))return!1;if(!l.some((e=>"query_string"===e.settingSlug)))return!1;const a=null!==(i=e?.queryString?.queryStringAny)&&void 0!==i?i:"",s=null!==(o=e?.queryString?.queryStringAll)&&void 0!==o?o:"",r=null!==(n=e?.queryString?.queryStringNot)&&void 0!==n?n:"";let c=!0;return a||s||r||(c=!1),c}function E(e,t,l){var i,o;if(t&&!e.hasOwnProperty("referralSource"))return!1;if(!l.some((e=>"referral_source"===e.settingSlug)))return!1;const n=null!==(i=e?.referralSource?.contains)&&void 0!==i?i:"",a=null!==(o=e?.referralSource?.doesNotContain)&&void 0!==o?o:"";let s=!0;return n||a||(s=!1),s}function S(e,t,l,i){var o,n;if(t&&!e.hasOwnProperty("screenSize"))return!1;const a=t?e.screenSize:e,s=null!==(o=a?.hideOnScreenSize)&&void 0!==o?o:{extraLarge:!1,large:!1,medium:!1,small:!1,extraSmall:!1},r=null!==(n=i?.visibility_controls?.screen_size?.controls)&&void 0!==n?n:{extra_large:!0,large:!0,medium:!0,small:!0,extra_small:!0},c=[!(!s.extraLarge||!r.extra_large),!(!s.large||!r.large),!(!s.medium||!r.medium),!(!s.small||!r.small),!(!s.extraSmall||!r.extra_small)];let u=!0;return l.some((e=>"screen_size"===e.settingSlug))&&c.includes(!0)||(u=!1),u}function w(e,t,l){var i,o;if(t&&!e.hasOwnProperty("urlPath"))return!1;if(!l.some((e=>"url_path"===e.settingSlug)))return!1;const n=null!==(i=e?.urlPath?.contains)&&void 0!==i?i:"",a=null!==(o=e?.urlPath?.doesNotContain)&&void 0!==o?o:"";let s=!0;return n||a||(s=!1),s}function C(e,t,l){var i,o,n,a,s,r;if(t&&!e.hasOwnProperty("userRole"))return!1;const c=t?e.userRole:e,u=null!==(i=c?.visibilityByRole)&&void 0!==i?i:"public",d=null!==(o=c?.restrictedRoles)&&void 0!==o?o:[],p=null!==(n=c?.hideOnRestrictedRoles)&&void 0!==n&&n,b=null!==(a=c?.restrictedUsers)&&void 0!==a?a:[],v=null!==(s=c?.hideOnRestrictedUsers)&&void 0!==s&&s,m=null!==(r=c?.ruleSets)&&void 0!==r?r:[];let y=!0;return l.some((e=>"visibility_by_role"===e.settingSlug))&&u&&"public"!==u&&"all"!==u||(y=!1),"user-role"===u&&0===d.length&&p&&(y=!1),"users"===u&&0===b.length&&v&&(y=!1),"user-rule-sets"===u&&0===m.length&&(y=!1),y}function T(e,t){var l;return!!t.some((e=>"visibility_presets"===e.settingSlug))&&0!==(null!==(l=e?.visibilityPresets?.presets)&&void 0!==l?l:[]).length}function O(e,t,l,i){var o,n;if(null===(o=i?.integrations?.woocommerce?.active)||void 0===o||!o||!l.some((e=>"woocommerce"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("woocommerce"))return!1;let a=!0;return 0===(null!==(n=e?.woocommerce?.ruleSets)&&void 0!==n?n:[]).length&&(a=!1),a}function F(e,t,l,i){var o,n,a,s,r,c;if(null===(o=i?.integrations?.wp_fusion?.active)||void 0===o||!o||!l.some((e=>"wp_fusion"===e.settingSlug)))return!1;if(t&&!e.hasOwnProperty("wpFusion"))return!1;const u=null!==(n=e.hasOwnProperty("userRole"))&&void 0!==n&&n,d=null!==(a=e?.userRole?.visibilityByRole)&&void 0!==a?a:"public",p="public"===d||"logged-out"===d,b=null!==(s=e?.wpFusion?.tagsAny)&&void 0!==s?s:[],v=null!==(r=e?.wpFusion?.tagsAll)&&void 0!==r?r:[],m=null!==(c=e?.wpFusion?.tagsNot)&&void 0!==c?c:[];let y=!0;return(!u&&0===m.length||"public"===d&&0===m.length||"logged-out"===d)&&(y=!1),p||0!==b.length||0!==v.length||0!==m.length||(y=!1),y}function P(e,t){if(!e||0===e.length)return!1;const l=e.disabled_blocks.includes(t),i=(0,r.getBlockSupport)(t,"blockVisibility",!1);return!(l||!i)}function N(e,t){let l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||0===e.length)return!1;const o=e.plugin_settings;return(0,i.has)(o,t)?o[t]:l}(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},(0,t.createElement)(u.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 x=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(u.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)(u.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)(u.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"})),A=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(u.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)(u.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"})),V=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.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"})),R=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.Path,{d:"M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z"})),M=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.Path,{d:"M20 19c0 1.1046-.8954 2-2 2H6c-1.1046 0-2-.8954-2-2V5c0-1.1046.8954-2 2-2h12c1.1046 0 2 .8954 2 2v14ZM18.5 8.5V5a.5002.5002 0 0 0-.4101-.492L18 4.5H6a.5002.5002 0 0 0-.492.4101L5.5 5v3.5h13Zm0 5.5v-4h-13v4h13Zm0 5v-3.5h-13V19c0 .2455.1769.4496.4101.492L6 19.5h12a.5002.5002 0 0 0 .492-.4101L18.5 19Z"})),I=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.Path,{d:"M19 4c1.1046 0 2 .8954 2 2v12c0 1.1046-.8954 2-2 2H5c-1.1046 0-2-.8954-2-2V6c0-1.1046.8954-2 2-2h14ZM8.5 5.5H5a.5002.5002 0 0 0-.492.4101L4.5 6v12c0 .2455.1769.4496.4101.492L5 18.5h3.5v-13Zm5.5 0h-4v13h4v-13Zm5 0h-3.5v13H19a.5002.5002 0 0 0 .492-.4101L19.5 18V6a.5002.5002 0 0 0-.4101-.492L19 5.5Z"})),D=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.Path,{d:"M12 0a11.96 11.96 0 0 1 12 12 11.96 11.96 0 0 1-12 12A11.96 11.96 0 0 1 0 12 11.96 11.96 0 0 1 12 0Zm.69 13.9H11.4v.92l-.13.03c-.3.1-.57.22-.79.38-.22.17-.4.37-.51.6-.12.23-.19.48-.19.76 0 .32.09.6.26.85.16.24.38.44.67.6.2.13.43.24.68.33l.27.09c.24.08.43.16.58.24.13.07.21.14.26.2.04.06.06.13.06.21 0 .1-.03.17-.08.24a.56.56 0 0 1-.25.17c-.14.05-.3.07-.52.08a3.2 3.2 0 0 1-1.37-.33l-.3-.15-.41 1.37.2.1c.13.08.3.14.49.2s.4.1.62.14l.23.03.23.01v.87h1.29v-.98l.06-.02c.33-.1.6-.24.83-.42a1.76 1.76 0 0 0 .68-1.38 1.64 1.64 0 0 0-.83-1.46c-.2-.13-.45-.26-.73-.36l-.22-.08c-.27-.1-.48-.18-.64-.26a.9.9 0 0 1-.3-.2.27.27 0 0 1-.06-.19c0-.05.02-.1.06-.16a.48.48 0 0 1 .21-.15c.12-.05.28-.08.48-.08a2.9 2.9 0 0 1 1.12.24l.28.13.44-1.32-.21-.11a2.9 2.9 0 0 0-.67-.23l-.18-.03-.18-.02-.14-.02v-.85ZM12 1.67A10.32 10.32 0 0 0 1.68 11.9L6.4 7.17 8 8.75l-3.47 3.47h14.94L16 8.75l1.59-1.58 4.73 4.73A10.32 10.32 0 0 0 12 1.68Zm0 .48c.81 0 1.48.48 1.48 1.08V5.5h2.92L12 10.13 7.6 5.5h2.92V3.24c0-.6.67-1.08 1.48-1.08Z",fill:"#000"})),L=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24"},(0,t.createElement)(u.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.4Zm-.51 4h-.15c-.45.04-.8.27-1.02.74-.97 1.87-1.65 4.9-2.05 9.12a32.67 32.67 0 0 1-1.48-5.68c-.17-.97-.59-1.44-1.27-1.39-.46.03-.85.37-1.16 1l-3.4 6.91C7.6 12.3 7.07 9.36 6.6 5.9c-.1-.87-.55-1.26-1.35-1.2-.43.04-.76.2-.97.52-.22.3-.31.68-.25 1.1.91 6.23 1.77 10.42 2.56 12.6.3.8.67 1.17 1.08 1.14.66-.05 1.43-1.01 2.35-2.89a319.4 319.4 0 0 1 2.23-4.77c.84 3.13 1.99 5.49 3.43 7.06.4.45.82.65 1.22.62.36-.04.64-.24.83-.6.15-.32.21-.68.18-1.1a33 33 0 0 1 .44-6.31c.4-2.79.9-4.8 1.5-6 .13-.24.17-.49.16-.79-.03-.38-.19-.7-.48-.94a1.3 1.3 0 0 0-.98-.33Z",fill:"#683FA6"})),H=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(u.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)(u.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)(u.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"})),B=(0,t.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(u.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 U(e,t){var l,n;let a=[];if(!e||!t||0===e.length||0===t.length)return a;let r=function(){let e=[{label:(0,o.__)("Hide Block","block-visibility"),attributeSlug:"hideBlock",settingSlug:"hide_block"},{label:(0,o.__)("Browser & Device","block-visibility"),attributeSlug:"browserDevice",settingSlug:"browser_device"},{label:(0,o.__)("Cookie","block-visibility"),attributeSlug:"cookie",settingSlug:"cookie"},{label:(0,o.__)("Date & Time","block-visibility"),attributeSlug:"dateTime",settingSlug:"date_time"},{label:(0,o.__)("Location","block-visibility"),attributeSlug:"location",settingSlug:"location"},{label:(0,o.__)("Metadata","block-visibility"),attributeSlug:"metadata",settingSlug:"metadata"},{label:(0,o.__)("Query String","block-visibility"),attributeSlug:"queryString",settingSlug:"query_string"},{label:(0,o.__)("Referral Source","block-visibility"),attributeSlug:"referralSource",settingSlug:"referral_source"},{label:(0,o.__)("Screen Size","block-visibility"),attributeSlug:"screenSize",settingSlug:"screen_size"},{label:(0,o.__)("URL Path","block-visibility"),attributeSlug:"urlPath",settingSlug:"url_path"},{label:(0,o.__)("User Role","block-visibility"),attributeSlug:"userRole",settingSlug:"visibility_by_role"},{label:(0,o.__)("Visibility Presets","block-visibility"),attributeSlug:"visibilityPresets",settingSlug:"visibility_presets"},{label:(0,o.__)("Advanced Custom Fields","block-visibility"),type:"integration",attributeSlug:"acf",settingSlug:"acf",icon:B},{label:(0,o.__)("Easy Digital Downloads","block-visibility"),type:"integration",attributeSlug:"edd",settingSlug:"edd",icon:D},{label:(0,o.__)("WooCommerce","block-visibility"),type:"integration",attributeSlug:"woocommerce",settingSlug:"woocommerce",icon:L},{label:(0,o.__)("WP Fusion","block-visibility"),type:"integration",attributeSlug:"wpFusion",settingSlug:"wp_fusion",icon:H}];return e=(0,s.applyFilters)("blockVisibility.controls",e),e=(0,s.applyFilters)("blockVisibility.coreControls",e),e=(0,s.applyFilters)("blockVisibility.integrationControls",e),e=e.filter(((e,t,l)=>t===l.findIndex((t=>t.attributeSlug===e.attributeSlug&&t.settingSlug===e.settingSlug)))),e.sort(((e,t)=>e.label.localeCompare(t.label))),e}();r.forEach((function(e){"integration"!==e.type||(e=>{let l=!1;var i;return t?.integrations&&(l=null!==(i=t?.integrations[e]?.active)&&void 0!==i&&i),l})(e.settingSlug)||(r=r.filter((t=>t.settingSlug!==e.settingSlug)))}));const c=null!==(l=e?.visibility_controls)&&void 0!==l?l:{};(0,i.isEmpty)(c)||r.forEach((function(e){var t;let l=!1;(0,i.has)(c,e.settingSlug)||(l=!0),(null===(t=c[e.settingSlug]?.enable)||void 0===t||t)&&(l=!0),l&&a.push(e)}));const u=null!==(n=e?.plugin_settings?.default_controls)&&void 0!==n?n:[];return a.forEach((function(e){u.includes(e.settingSlug)&&(e.isDefault=!0)})),a=(0,s.applyFilters)("blockVisibility.enabledControls",a,e,t),a}(0,s.addFilter)("editor.BlockListBlock","block-visibility/contextual-indicators",(function(l){return i=>{var o,n,r;const c=(0,a.useEntityRecord)("block-visibility/v1","settings"),u=(0,a.useEntityRecord)("block-visibility/v1","variables");if(!c.hasResolved)return(0,t.createElement)(l,i);const{name:d,attributes:p}=i,x=c.record,A=u.record,V=N(x,"enable_contextual_indicators"),R=P(x,d),M=U(x,A);if(!V||!R||0===M.length)return(0,t.createElement)(l,i);const{blockVisibility:I}=p,D=null!==(o=I?.hideBlock)&&void 0!==o&&o&&M.some((e=>"hide_block"===e.settingSlug)),L=null!==(n=I?.controlSets)&&void 0!==n&&n;let H=null!=I?I:{};L&&(H=0!==I.controlSets.length&&I.controlSets[0]?.controls?I.controlSets[0].controls:{});let B={acf:v(H,L,M,A),"browser-device":m(H,L,M),cookie:y(H,L,M),"date-time":h(H,L,M),edd:f(H,L,M,A),location:g(H,L,M),metadata:_(H,L,M),"query-string":k(H,L,M),"referral-source":E(H,L,M),"screen-size":S(H,L,M,x),"url-path":w(H,L,M),"user-role":C(H,L,M),"visibility-presets":T(I,M),woocommerce:O(H,L,M,A),"wp-fusion":F(H,L,M,A)};B=(0,s.applyFilters)("blockVisibility.contextualIndicatorActiveControls",B,I,H,L,M,A),B=(0,s.applyFilters)("blockVisibility.conditionalIndicatorActiveCoreControls",B,I,H,L,M,A),B=Object.keys(B).filter((e=>!0===B[e])),null===(r=x?.visibility_controls?.general?.enable_local_controls)||void 0===r||r||(B=B.filter((e=>"hide-block"===e||"visibility-presets"===e))),B.sort();let j="";B.length>1?j="block-visibility__has-"+B.length+"-controls":0!==B.length&&(j="block-visibility__has-"+B.join("-"));let q=b()({"block-visibility__is-hidden":D},j);q&&(q+=" block-visibility__has-visibility"),q=(0,s.applyFilters)("blockVisibility.contextualIndicatorClasses",q,B,H,M,A),q=(0,s.applyFilters)("blockVisibility.conditionalIndicatorClasses",q);const z=b()(i?.className,q);return(0,t.createElement)(l,e({},i,{className:z}))}}));var j=window.wp.blockEditor;function q(e,t){var l,i,o;let n=!0;if(null===(l=e?.plugin_settings?.enable_user_role_restrictions)||void 0===l||!l)return n;const a=null!==(i=t?.current_users_roles)&&void 0!==i?i:[],s=null!==(o=e?.plugin_settings?.enabled_user_roles)&&void 0!==o?o:[],r=[...new Set([...s,"administrator","super-admin"])];return n=0!==a.length&&a.every((e=>-1!==r.indexOf(e))),n}var z=(0,n.withSelect)((e=>{const{getBlockName:t,getSelectedBlockClientIds:l,getBlockAttributes:i,hasMultiSelection:o}=e("core/block-editor"),{getBlockType:n}=e("core/blocks"),a=!o(),s=l(),r=0===s.length?null:s[0];return{enableMenuItem:a,clientId:r,blockType:n(t(r)),blockAttributes:i(r)}}))((function(e){var l;const{flashBlock:s,updateBlockAttributes:r}=(0,n.useDispatch)("core/block-editor"),{createSuccessNotice:c}=(0,n.useDispatch)("core/notices"),{blockAttributes:d,blockType:p,clientId:b,enableMenuItem:v,globallyRestricted:m,widgetAreaRestricted:y}=e,h=(0,a.useEntityRecord)("block-visibility/v1","settings"),f=(0,a.useEntityRecord)("block-visibility/v1","variables");if(!h.hasResolved||!f.hasResolved)return null;const g=h.record,{getBlocks:_}=(0,n.select)("core/block-editor"),k=_().filter((e=>"core/widget-area"===e.name)),E={...f.record,isWidgetEditor:k.length>0};if(!q(g,E))return null;if(!v||!p)return null;if(y.includes(p.name)&&E?.isWidgetEditor||m.includes(p.name))return null;const S=N(g,"enable_toolbar_controls"),w=P(g,p.name),C=U(g,E);if(!S||!w||!C.some((e=>"hide_block"===e.settingSlug)))return null;const{blockVisibility:T}=d,O=null!==(l=T?.hideBlock)&&void 0!==l&&l,F=O?x:A,V=O?(0,o.__)("Enable block","block-visibility"):(0,o.__)("Hide block","block-visibility"),R=p.title,M=O?(0,o.sprintf)( // Translators: Name of the block being made visible, e.g. "Paragraph". (0,o.__)('"%s" is now visible.'),R):(0,o.sprintf)( // Translators: Name of the block being hidden, e.g. "Paragraph".