Server IP : 192.158.238.246 / Your IP : 13.58.212.163 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/task/7779/cwd/plugins/gutenkit-blocks-addon/build/modules/visibility/ |
Upload File : |
(()=>{var e={6942:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.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";const e=window.wp.compose,t=window.wp.hooks,i=window.wp.i18n,r=window.wp.element;var o=n(6942),l=n.n(o);const s=window.ReactJSXRuntime,a=(0,e.createHigherOrderComponent)((e=>n=>{if(n?.blockName?.includes("gutenkit")&&"advanced"===n?.tabName){const{GkitPanelBody:o,GkitSwitcher:l}=window?.gutenkit?.components,{getAttributes:a,setAttributes:u,useDeviceList:c,useModuleStyles:d}=window?.gutenkit?.helpers,p=(0,t.applyFilters)("gutenkit.advancedControl.visibility.exclude",new Set([])),g=a(n?.clientId),k=(0,r.useCallback)((e=>{u(n?.clientId,e)}),[]),b=c();return d(n?.clientId,"visibilityModuleStyles",((e,t)=>{const{parseCSS:n}=window.gutenkit.helpers,i=e?.blockClass;return n([[],t=>[{selector:`.gutenkit-frontend :where(.${i})`,display:e[`commonBlockHide${t}`]?"none":null}]],t)})(g,b)),(0,s.jsxs)(e,{...n,children:[!p.has(n?.blockName)&&(0,s.jsx)(o,{title:(0,i.__)("Visibility","gutenkit-blocks-addon"),children:b&&b.map(((e,t,n)=>(0,s.jsx)(l,{label:(0,i.__)("Hide on "+e?.label,"gutenkit-blocks-addon"),value:g[`commonBlockHide${e?.slug}`],onChange:t=>k({[`commonBlockHide${e?.slug}`]:t}),help:n?.length-1===t?(0,i.__)("The changes will only become active on the live page and not during the editing process","gutenkit-blocks-addon"):null},t)))}),n.children]})}return(0,s.jsx)(e,{...n})}),"Settings");(0,t.addFilter)("gutenkit.tabs.after-tab","gutenkit.visibility.controls",a,5),(0,t.addFilter)("gutenkit.blockWrapper.attributes","gutenkit.visibility.attributes",((e,t)=>{const{useDeviceType:n}=window?.gutenkit?.helpers,i=`commonBlockHide${n()}`,r=!0===t?.[i];return{...e,className:l()(e.className,{"gkit-hide-editor":r})}}),10)})()})();