File: /home/zeusxp5/chuair.org/wp-content/plugins/wd-framework/build/editor/index.js
!function(){var e,t={7820:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var o=window.wp.element,i=window.wp.i18n,l=window.wp.hooks,a=window.wp.compose,s=window.wp.blockEditor,c=window.wp.components,u=window.wp.plugins,d=window.wp.editPost,b=window.wp.data,m=n(4184),p=n.n(m),w=window.wp.primitives,f=(0,o.createElement)(w.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(w.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),h=(0,o.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(w.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"})),g=(0,o.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(w.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));const v=["core/columns"];(0,l.addFilter)("blocks.registerBlockType","webdevia-blocks/set-toolbar-attribute",((e,t)=>v.includes(t)?Object.assign({},e,{attributes:Object.assign({},e.attributes,{layoutDirection:{type:"string"}})}):e));const y=(0,a.createHigherOrderComponent)((e=>t=>{if(!v.includes(t.name))return(0,o.createElement)(e,t);const{attributes:n,setAttributes:r}=t,{layoutDirection:l}=n;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.BlockControls,{group:"block"},(0,o.createElement)(c.Toolbar,{label:"Options"},(0,o.createElement)(c.ToolbarDropdownMenu,{icon:f,label:(0,i.__)("Select layout direction","wd-framework"),controls:[{title:"Right",icon:h,onClick:()=>r({layoutDirection:"right"})},{title:"Left",icon:g,onClick:()=>r({layoutDirection:"left"})}]}))),(0,o.createElement)(e,t))}),"withToolbarButton");(0,l.addFilter)("editor.BlockEdit","webdevia-blocks/with-toolbar-button",y);const E=(0,a.createHigherOrderComponent)((e=>t=>{if(!v.includes(t.name))return(0,o.createElement)(e,t);const{attributes:n}=t,{layoutDirection:i}=n;return i&&"right"===i?(0,o.createElement)(e,r({},t,{className:"full-width-split__right"})):i&&"left"===i?(0,o.createElement)(e,r({},t,{className:"full-width-split__left"})):(0,o.createElement)(e,t)}),"withToolbarButtonProp");(0,l.addFilter)("editor.BlockListBlock","webdevia-blocks/with-toolbar-button-prop",E),(0,l.addFilter)("blocks.getSaveContent.extraProps","webdevia-blocks/save-toolbar-button-attribute",((e,t,n)=>{if(v.includes(t.name)){const{layoutDirection:t}=n;t&&"right"===t&&(e.className=p()(e.className,"full-width-split__right")),t&&"left"===t&&(e.className=p()(e.className,"full-width-split__left"))}return e})),(0,l.addFilter)("blocks.registerBlockType","wd-hide-on-mobile/add-attributes",(function(e){return"core/group"!==e.name?e:{...e,attributes:{...e.attributes,isHideOnMobile:{type:"boolean",default:!1}}}})),(0,l.addFilter)("editor.BlockEdit","wd-hide-on-mobile/add-inspector-controls",(function(e){return t=>{if("core/group"!==t.name)return(0,o.createElement)(e,t);const{attributes:n,setAttributes:r}=t,{isHideOnMobile:l}=n;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(e,t),(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)("div",{className:"enable-hide-on-mobile"},(0,o.createElement)(c.ToggleControl,{label:(0,i.__)("Hide on mobile","wd-hide-on-mobile"),checked:l,onChange:()=>{r({isHideOnMobile:!l})}}))))}})),(0,l.addFilter)("editor.BlockListBlock","wd-hide-on-mobile/add-classes",(function(e){return t=>{const{name:n,attributes:i}=t;if("core/group"!==n||!i?.isHideOnMobile)return(0,o.createElement)(e,t);const l=p()(t?.className,{"is-hide-on-mobile":i?.isHideOnMobile});return(0,o.createElement)(e,r({},t,{className:l}))}})),(0,u.registerPlugin)("custom-body-classes",{render:()=>{const e=(0,b.useSelect)((e=>e("core/editor").getEditedPostAttribute("meta")))||{},{editPost:t}=(0,b.useDispatch)("core/editor");return(0,o.createElement)(d.PluginDocumentSettingPanel,{title:"Body Classes",icon:"admin-generic",initialOpen:!0},(0,o.createElement)(c.TextControl,{label:"Custom Body Classes (CSV)",value:e._custom_body_classes||"",onChange:e=>t({meta:{_custom_body_classes:e}})}))}})},4184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&e.push(l)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=function(t,n,o,i){if(!n){var l=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],i=e[u][2];for(var a=!0,s=0;s<n.length;s++)(!1&i||l>=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[s])}))?n.splice(s--,1):(a=!1,i<l&&(l=i));if(a){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={9128:0,7136:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,l=n[0],a=n[1],s=n[2],c=0;if(l.some((function(t){return 0!==e[t]}))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var u=s(r)}for(t&&t(n);c<l.length;c++)i=l[c],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=self.webpackChunkwebdevia_blocks=self.webpackChunkwebdevia_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o=r.O(void 0,[7136],(function(){return r(7820)}));o=r.O(o)}();