blablablocks-slider-block/build/slide/index.js
2026-07-09 08:42:45 +00:00

1 line
No EOL
1 KiB
JavaScript

(()=>{"use strict";const e=window.wp.blocks,s=window.wp.components,o=window.wp.data,n=window.wp.blockEditor,t=window.ReactJSXRuntime,r=JSON.parse('{"UU":"blablablocks/slide"}');(0,e.registerBlockType)(r.UU,{icon:(0,t.jsx)(s.SVG,{width:"800px",height:"800px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:{fill:"none"},children:(0,t.jsx)(s.Path,{d:"M8 21.25H16C17.66 21.25 19 19.91 19 18.25V5.75C19 4.09 17.66 2.75 16 2.75H8C6.34 2.75 5 4.09 5 5.75V18.25C5 19.91 6.34 21.25 8 21.25Z",stroke:"#292D32","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),edit:function({clientId:e}){const{hasChildBlocks:s}=(0,o.useSelect)((s=>{const{getBlockOrder:o}=s(n.store);return{hasChildBlocks:o(e).length>0}}),[e]),r=(0,n.useBlockProps)({className:"swiper-slide"}),i=(0,n.useInnerBlocksProps)(r,{renderAppender:s?void 0:n.InnerBlocks.ButtonBlockAppender});return(0,t.jsx)("div",{...i})},save:function(){return(0,t.jsx)("div",{...n.useBlockProps.save({className:"swiper-slide"}),children:(0,t.jsx)(n.InnerBlocks.Content,{})})}})})();