芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/blocksy-companion/static/bundle/blocks/widgets-wrapper.js
!function(){"use strict";var e=window.wp.element,t=window.wp.i18n,n=window.wp.blocks,c=window.wp.blockEditor;function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(null==e)return{};var n,c,l=function(e,t){if(null==e)return{};var n,c,l={},r=Object.keys(e);for(c=0;c
=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c
=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var o=window.wp.components;function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function i(e){for(var t=1;t
1&&"core/heading"===d.innerBlocks[0].name,b=[["core/heading",{level:3,content:l.heading||"",fontSize:"medium",className:p?"":"widget-title"}]],w=["core/heading"];d.innerBlocks.find((function(e){return"core/heading"===e.name}))&&(w=[]),l.hasDescription&&(l.description&&b.push(["core/paragraph",{content:l.description,placeholder:"Description"}]),w.push("core/paragraph")),b.push([l.block,i({lock:{remove:!0}},l.blockAttrs)]);var f=(0,c.useBlockProps)({className:{"wp-block-blocksy-widgets-wrapper--collapsible":l.isCollapsible,"wp-block-blocksy-widgets-wrapper--expanded":l.defaultExpanded}});return(0,e.createElement)(React.Fragment,null,u?(0,e.createElement)(c.InspectorControls,null,(0,e.createElement)(o.PanelBody,null,(0,e.createElement)(o.ToggleControl,{label:(0,t.__)("Expandable Container","blocksy-companion"),checked:l.isCollapsible,onChange:function(){return a({isCollapsible:!l.isCollapsible})}}),l.isCollapsible?(0,e.createElement)(o.ToggleControl,{label:(0,t.__)("Expanded by Default","blocksy-companion"),checked:l.defaultExpanded,onChange:function(){return a({defaultExpanded:!l.defaultExpanded})}}):null)):null,(0,e.createElement)("div",f,(0,e.createElement)(c.InnerBlocks,{allowedBlocks:w,template:b})))};(0,window.wp.hooks.addFilter)("blockEditor.__unstableCanInsertBlockType","blocksy/widgets-wrapper",(function(e,t,n,c){var l=c.getBlock;if(0!==t.name.indexOf("blocksy/"))return e;if(!t.parent||!t.parent.includes("blocksy/widgets-wrapper"))return e;var r=l(n);return(!r||"blocksy/widgets-wrapper"!==r.name)&&e}),500),(0,n.registerBlockType)("blocksy/widgets-wrapper",{apiVersion:3,title:(0,t.__)("Widgets Wrapper","blocksy-companion"),icon:{src:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"wc-block-editor-components-block-icon"},(0,e.createElement)("path",{d:"M20 14.6c-.2-.3-.5-.6-.9-.8.1-1.2-.1-2.4-.6-3.5s-1.3-2.1-2.3-2.9c-.4-.3-.8-.5-1.3-.8 0-.6-.2-1.2-.5-1.6-.3-.5-.8-.9-1.4-1.1-1-.4-2.4-.1-3.2.8-.5.5-.8 1.2-.8 2-1 .4-1.8 1-2.5 1.8-.8 1-1.4 2.1-1.6 3.3-.1.6-.1 1.3-.1 2-.7.4-1.2 1-1.4 1.7-.3 1.2.1 2.4 1 3.2s2.3.8 3.3.2c.9.6 1.9 1.1 3 1.2.4.1.8.1 1.2.1.9 0 1.9-.2 2.7-.5.5-.2.9-.5 1.4-.8.2.1.4.2.7.3 1.1.3 2.4-.1 3.1-1 .1-.1.2-.3.3-.4v-.1c.7-.9.6-2.2-.1-3.1zm-9.6-8.1c0-.1 0-.2.1-.3 0 0 0-.1.1-.2 0-.1.1-.2.2-.3l.1-.1s.1-.1.1-.2h.1s.1 0 .1-.1c0 0 .1 0 .1-.1h.1c.1 0 .2-.1.3-.1h.7c.1 0 .1 0 .2.1.1 0 .1.1.2.1 0 0 .1 0 .1.1 0 0 .1 0 .1.1l.1.1.2.2v.1l.1.1s0 .1.1.1V7c0 .1 0 .2-.1.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.6.2.1.4.3.7.5l.2.1c.1.1.2.2.3.2.2.2.4.4.5.6l.1.1s0 .1.1.1c.1.1.2.2.2.3.1.2.3.4.4.7 0 .1.1.1.1.2v.1c0 .1.1.2.1.4.1.3.1.5.2.8v1.3c-.4 0-.8 0-1.1.1-1.2.4-2.1 1.6-2 2.9 0 .6.2 1.1.5 1.6zm1.7-3.3zm2.4 1.8v.2c0 .1 0 .2-.1.3v.1c0 .1 0 .1-.1.1 0 0-.1.1-.1.2l-.2.2-.1.1c-.1.1-.2.1-.3.2h-.1c-.1 0-.2.1-.3.1h-.7c-.1 0-.2-.1-.3-.2h-.1l-.1-.1-.1-.1c-.1-.1-.1-.2-.2-.3v-.2c0-.1-.1-.2-.1-.4v-.4c0-.1 0-.2.1-.3l.1-.2v-.1c0-.1.1-.2.2-.3l.1-.1.1-.1c.1-.1.2-.1.3-.2h.2c.1 0 .2-.1.3-.1H18.7c.1 0 .2.1.3.2l.1.1.2.2c.1.1.1.2.2.3v.2c0 .1.1.2.1.3v.1c-.4 0-.4.1-.4.2z"}))},category:"blocksy-blocks",isHidden:!0,edit:s,save:function(){return(0,e.createElement)(c.InnerBlocks.Content,null)},attributes:{heading:{type:"string",default:(0,t.__)("Socials","blocksy-companion")},block:{type:"string",default:"blocksy/socials"},hasDescription:{type:"boolean",default:!1},description:{type:"string",default:""},blockAttrs:{type:"object",default:{}},isCollapsible:{type:"boolean",default:!1},defaultExpanded:{type:"boolean",default:!0}},supports:{className:!1,spacing:{margin:!0,__experimentalDefaultControls:{margin:!0}}},variations:[]})}();