Changeset 3096856
- Timestamp:
- 06/03/2024 03:19:57 PM (22 months ago)
- Location:
- mindspun-responsive-blocks
- Files:
-
- 85 added
- 29 edited
-
tags/0.16.0 (added)
-
tags/0.16.0/blocks.php (added)
-
tags/0.16.0/dist (added)
-
tags/0.16.0/dist/buttons (added)
-
tags/0.16.0/dist/buttons/block.json (added)
-
tags/0.16.0/dist/buttons/editor.css (added)
-
tags/0.16.0/dist/buttons/index.asset.php (added)
-
tags/0.16.0/dist/buttons/index.js (added)
-
tags/0.16.0/dist/buttons/style.css (added)
-
tags/0.16.0/dist/container (added)
-
tags/0.16.0/dist/container/block.json (added)
-
tags/0.16.0/dist/container/editor.css (added)
-
tags/0.16.0/dist/container/index.asset.php (added)
-
tags/0.16.0/dist/container/index.js (added)
-
tags/0.16.0/dist/container/style.css (added)
-
tags/0.16.0/dist/grid (added)
-
tags/0.16.0/dist/grid/block.json (added)
-
tags/0.16.0/dist/grid/editor.css (added)
-
tags/0.16.0/dist/grid/index.asset.php (added)
-
tags/0.16.0/dist/grid/index.js (added)
-
tags/0.16.0/dist/grid/style.css (added)
-
tags/0.16.0/dist/heading (added)
-
tags/0.16.0/dist/heading/block.json (added)
-
tags/0.16.0/dist/heading/editor.css (added)
-
tags/0.16.0/dist/heading/index.asset.php (added)
-
tags/0.16.0/dist/heading/index.js (added)
-
tags/0.16.0/dist/heading/style.css (added)
-
tags/0.16.0/dist/image (added)
-
tags/0.16.0/dist/image/block.json (added)
-
tags/0.16.0/dist/image/editor.css (added)
-
tags/0.16.0/dist/image/index.asset.php (added)
-
tags/0.16.0/dist/image/index.js (added)
-
tags/0.16.0/dist/image/style.css (added)
-
tags/0.16.0/dist/link (added)
-
tags/0.16.0/dist/link/block.json (added)
-
tags/0.16.0/dist/link/index.asset.php (added)
-
tags/0.16.0/dist/link/index.js (added)
-
tags/0.16.0/dist/link/style.css (added)
-
tags/0.16.0/dist/mrblx.asset.php (added)
-
tags/0.16.0/dist/mrblx.css (added)
-
tags/0.16.0/dist/mrblx.js (added)
-
tags/0.16.0/dist/paragraph (added)
-
tags/0.16.0/dist/paragraph/block.json (added)
-
tags/0.16.0/dist/paragraph/editor.css (added)
-
tags/0.16.0/dist/paragraph/index.asset.php (added)
-
tags/0.16.0/dist/paragraph/index.js (added)
-
tags/0.16.0/dist/paragraph/style.css (added)
-
tags/0.16.0/dist/show (added)
-
tags/0.16.0/dist/show/block.json (added)
-
tags/0.16.0/dist/show/editor.css (added)
-
tags/0.16.0/dist/show/index.asset.php (added)
-
tags/0.16.0/dist/show/index.js (added)
-
tags/0.16.0/dist/show/style.css (added)
-
tags/0.16.0/dist/show/view.asset.php (added)
-
tags/0.16.0/dist/show/view.js (added)
-
tags/0.16.0/dist/style-mrblx.css (added)
-
tags/0.16.0/dist/tabs (added)
-
tags/0.16.0/dist/tabs/block.json (added)
-
tags/0.16.0/dist/tabs/editor.css (added)
-
tags/0.16.0/dist/tabs/index.asset.php (added)
-
tags/0.16.0/dist/tabs/index.js (added)
-
tags/0.16.0/dist/tabs/style.css (added)
-
tags/0.16.0/dist/tabs/view.asset.php (added)
-
tags/0.16.0/dist/tabs/view.js (added)
-
tags/0.16.0/includes (added)
-
tags/0.16.0/includes/CSSBuilder.php (added)
-
tags/0.16.0/includes/Property.php (added)
-
tags/0.16.0/readme.txt (added)
-
tags/0.16.0/vendor-prefixed (added)
-
tags/0.16.0/vendor-prefixed/autoload-classmap.php (added)
-
tags/0.16.0/vendor-prefixed/autoload.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Autoloader.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Facade.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Facades (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Facades/Globals.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Facades/Plugin.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Provider.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Providers (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Providers/GlobalsProvider.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Providers/PluginProvider.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Registry.php (added)
-
tags/0.16.0/vendor-prefixed/mindspun/wordpress-plugin-framework/src/Utils.php (added)
-
trunk/blocks.php (modified) (1 diff)
-
trunk/dist/buttons/block.json (modified) (1 diff)
-
trunk/dist/buttons/index.asset.php (modified) (1 diff)
-
trunk/dist/buttons/index.js (modified) (1 diff)
-
trunk/dist/container/block.json (modified) (1 diff)
-
trunk/dist/container/index.asset.php (modified) (1 diff)
-
trunk/dist/container/index.js (modified) (1 diff)
-
trunk/dist/grid/block.json (modified) (1 diff)
-
trunk/dist/grid/index.asset.php (modified) (1 diff)
-
trunk/dist/grid/index.js (modified) (1 diff)
-
trunk/dist/heading/block.json (modified) (1 diff)
-
trunk/dist/heading/index.asset.php (modified) (1 diff)
-
trunk/dist/heading/index.js (modified) (1 diff)
-
trunk/dist/image/block.json (modified) (1 diff)
-
trunk/dist/image/index.asset.php (modified) (1 diff)
-
trunk/dist/image/index.js (modified) (1 diff)
-
trunk/dist/link/block.json (modified) (1 diff)
-
trunk/dist/mrblx.asset.php (modified) (1 diff)
-
trunk/dist/mrblx.js (modified) (1 diff)
-
trunk/dist/paragraph/block.json (modified) (1 diff)
-
trunk/dist/paragraph/index.asset.php (modified) (1 diff)
-
trunk/dist/paragraph/index.js (modified) (1 diff)
-
trunk/dist/show/block.json (modified) (1 diff)
-
trunk/dist/show/index.asset.php (modified) (1 diff)
-
trunk/dist/show/index.js (modified) (1 diff)
-
trunk/dist/tabs/block.json (modified) (1 diff)
-
trunk/dist/tabs/index.asset.php (modified) (1 diff)
-
trunk/dist/tabs/index.js (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mindspun-responsive-blocks/trunk/blocks.php
r3093332 r3096856 5 5 * Requires at least: 6.2 6 6 * Requires PHP: 7.4 7 * Version: 0.1 5.27 * Version: 0.16.0 8 8 * Author: Mindspun 9 9 * Author URI: https://www.mindspun.com -
mindspun-responsive-blocks/trunk/dist/buttons/block.json
r3093332 r3096856 3 3 "apiVersion": 3, 4 4 "name": "mindspun/buttons", 5 "version": "0.1 5.2",5 "version": "0.16.0", 6 6 "title": "Buttons", 7 7 "category": "mindspun-responsive-blocks", -
mindspun-responsive-blocks/trunk/dist/buttons/index.asset.php
r3090370 r3096856 1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => ' 6a12541b6c99849fc892');1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => '3040b945fa736592531b'); -
mindspun-responsive-blocks/trunk/dist/buttons/index.js
r3090370 r3096856 1 (()=>{var t,e={115:(t,e,r)=>{"use strict";const o=window.wp.blocks, n=window.React,s=window.wp.primitives,l=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})),i=window.wp.blockEditor,a=window.mrblx,u=window.wp.components,b=window.wp.i18n,c=t=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)("div",{className:"wp-block-mindspun-buttons--controls"},(0,n.createElement)(a.ContainerContents,null,(0,n.createElement)(a.JustifyContentControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},options:["left","center","right","space-between"],isResponsive:!0}),(0,n.createElement)(u.ToggleControl,{label:(0,b.__)("Allow to wrap to multiple lines."),checked:void 0===t.attributes.style.flexWrap||"wrap"===t.attributes.style.flexWrap,onChange:e=>{const r={...t.attributes.style,flexWrap:e?void 0:"nowrap"};t.setAttributes({style:r})}}),(0,n.createElement)(a.ColorsGroup,{isResponsive:!0},(0,n.createElement)(a.BackgroundColorControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0,hideHeader:!0})),(0,n.createElement)(a.GapControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,n.createElement)(a.MarginControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,n.createElement)(a.PaddingControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})),(0,n.createElement)(a.ContainerControl,{title:"Custom CSS"},(0,n.createElement)(a.ContainerContents,null,(0,n.createElement)(a.CustomCSSControl,{blockId:t.attributes.blockId,attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}))))),(0,n.createElement)(i.InspectorAdvancedControls,null,(0,n.createElement)(a.BlockId,{attributes:t.attributes}))),m=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"}));var d=r(373),v=r.n(d);const p=(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),C=(0,n.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(s.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),y=t=>(0,n.createElement)(a.BorderControl,{label:"Border",attributes:{borderTop:t.attributes.borderTopHover,borderRight:t.attributes.borderRightHover,borderBottom:t.attributes.borderBottomHover,borderLeft:t.attributes.borderLeftHover,tabletBorderTop:t.attributes.tabletBorderTopHover,tabletBorderRight:t.attributes.tabletBorderRightHover,tabletBorderBottom:t.attributes.tabletBorderBottomHover,tabletBorderLeft:t.attributes.tabletBorderLeftHover,mobileBorderTop:t.attributes.mobileBorderTopHover,mobileBorderRight:t.attributes.mobileBorderRightHover,mobileBorderBottom:t.attributes.mobileBorderBottomHover,mobileBorderLeft:t.attributes.mobileBorderLeftHover},setAttributes:e=>{const r={...t.attributes,borderTopHover:e.borderTop,borderRightHover:e.borderRight,borderBottomHover:e.borderBottom,borderLeftHover:e.borderLeft,tabletBorderTopHover:e.tabletBorderTop,tabletBorderRightHover:e.tabletBorderRight,tabletBorderBottomHover:e.tabletBorderBottom,tabletBorderLeftHover:e.tabletBorderLeft,mobileBorderTopHover:e.mobileBorderTop,mobileBorderRightHover:e.mobileBorderRight,mobileBorderBottomHover:e.mobileBorderBottom,mobileBorderLeftHover:e.mobileBorderLeft};t.setAttributes(r)},isResponsive:!0,disableRadiusControl:!0}),E=t=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.ContainerContents,null,(0,n.createElement)(a.BaseControls,{attributes:t.attributes.style?t.attributes.style:{},setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},fontSize:{responsive:!0},fontAppearance:!0,letterCase:!0,margin:{responsive:!0},padding:{responsive:!0},border:{responsive:!0}}})),(0,n.createElement)(a.ContainerControl,{title:(0,b.__)("Hover")},(0,n.createElement)(a.ContainerContents,null,(0,n.createElement)(a.ColorsGroup,{isResponsive:!0},(0,n.createElement)(a.ColorControl,{label:"Color",attributes:{color:t.attributes.style.colorHover,tabletColor:t.attributes.style.tabletColorHover,mobileColor:t.attributes.style.mobileColorHover},setAttributes:e=>{const r={...t.attributes.style,colorHover:e.color,tabletColorHover:e.tabletColor,mobileColorHover:e.mobileColor};t.setAttributes({style:r})},isResponsive:!0,hideHeader:!0}),(0,n.createElement)(a.ColorControl,{label:"Background",attributes:{color:t.attributes.style.backgroundColorHover,tabletColor:t.attributes.style.tabletBackgroundColorHover,mobileColor:t.attributes.style.mobileBackgroundColorHover},setAttributes:e=>{const r={...t.attributes.style,backgroundColorHover:e.color,tabletBackgroundColorHover:e.tabletColor,mobileBackgroundColor:e.mobileColor};t.setAttributes({style:r})},isResponsive:!0,hideHeader:!0})),(0,n.createElement)(y,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})}}))),(0,n.createElement)(a.ContainerControl,{title:(0,b.__)("Custom CSS")},(0,n.createElement)(a.ContainerContents,null,(0,n.createElement)(a.CustomCSSControl,{blockId:t.attributes.blockId,attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})))),h=[{label:"Primary",value:"primary"},{label:"Outline",value:"outline"},{label:"Link",value:"link"}],g=t=>(0,n.createElement)("div",{className:"mrblx--button-variant-control"},(0,n.createElement)(a.ControlHeader,{title:(0,b.__)("Button Type")}),(0,n.createElement)(u.SelectControl,{value:t.attributes.variant,options:h,onChange:e=>t.setAttributes({variant:e}),__nextHasNoMarginBottom:!0})),f=t=>(0,n.createElement)("div",{className:"mrblx--custom-event-control"},(0,n.createElement)(u.TextControl,{label:(0,b.__)("Custom Event"),value:t.attributes.customEvent.type?t.attributes.customEvent.type:"",onChange:e=>{const r={...t.attributes.customEvent,type:e||void 0};t.setAttributes({customEvent:r})},help:(0,b.__)("The custom event type to be emitted when the button is clicked.")}),t.attributes.customEvent.type?(0,n.createElement)(u.TextControl,{label:(0,b.__)("Custom Event Detail"),value:t.attributes.customEvent.detail?t.attributes.customEvent.detail:"",onChange:e=>{const r={...t.attributes.customEvent,detail:e||null};t.setAttributes({customEvent:r})},help:(0,b.__)("The detail attribute included with the event.")}):null),B=t=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)("div",{className:"wp-block-mindspun-button--controls"},(0,n.createElement)(a.TabbedControl,null,(0,n.createElement)(a.TabbedContainer,{key:"General",icon:p},(0,n.createElement)(a.ContainerContents,null,(0,n.createElement)(g,{attributes:t.attributes,setAttributes:t.setAttributes}),(0,n.createElement)(a.WidthHeightControl,{label:(0,b.__)("Width"),propertyName:"width",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,n.createElement)("hr",null),(0,n.createElement)(a.LinkControl,{attributes:t.attributes.link,setAttributes:e=>{t.setAttributes({link:{...t.attributes.link,...e}})}}))),(0,n.createElement)(a.TabbedContainer,{key:"Style",icon:C},(0,n.createElement)(E,{attributes:t.attributes,setAttributes:t.setAttributes}))))),(0,n.createElement)(i.InspectorAdvancedControls,null,(0,n.createElement)(f,{attributes:t.attributes,setAttributes:t.setAttributes})));function w(t){let e=null;if(t&&t.type)if(t.detail){const r=t.detail.trim();e=`new CustomEvent('${t.type}',{detail:'${r}'})`}else e=`new CustomEvent('${t.type}')`;if(e)return`javascript:window.dispatchEvent(${e})`}function H(t){const e=t.link.rel?[...t.link.rel]:[];return t.link.target&&!e.includes("noopener")&&e.push("noopener"),e.length?e.join(" "):void 0}const k="mindspun/button";var A;A={name:k,title:"Button",description:"A single button in a button group.",parent:["mindspun/buttons"],attributes:{blockId:{type:"string"},fullWidth:{type:"boolean",default:!1},variant:{type:"string",default:"primary"},text:{type:"string"},link:{type:"object",default:{rel:["noopener"]}},customEvent:{type:"object",default:{}},style:{type:"object",default:{}}},usesContext:["mindspun/buttons"],edit:function(t){const e=(0,a.useBlockPropsWithId)(t,{className:v()(`variant-${t.attributes.variant}`,{"wp-element-button":"link"!==t.attributes.variant})});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(B,{...t}),(0,n.createElement)(a.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,n.createElement)(i.RichText,{...e,tagName:"a",onChange:e=>{t.setAttributes({text:e})},value:t.attributes.text,allowedFormats:[],placeholder:"Button"}))},save:function(t){const e=t.attributes.variant||"primary",r=a.useBlockPropsWithId.save(t,{className:v()(`variant-${e}`,{"wp-element-button":"link"!==e})});return(0,n.createElement)("a",{...r,href:t.attributes.link.href,target:t.attributes.link.target,rel:H(t.attributes),onClick:w(t.attributes.customEvent)},t.attributes.text)},icon:{foreground:"#005ffe",src:m}},(0,o.registerBlockType)(A.name,{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,category:"mindspun-responsive-blocks",textdomain:"mrblx",...A});const x=JSON.parse('{"UU":"mindspun/buttons"}'),R={foreground:"#005ffe",src:l};(0,o.registerBlockType)(x.UU,{edit:function(t){const e=(0,a.useBlockPropsWithId)(t),r=(0,i.useInnerBlocksProps)(e,{template:[[k]],allowedBlocks:[k]});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(c,{...t}),(0,n.createElement)(a.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,n.createElement)("div",{...r}))},save:function(t){const e=a.useBlockPropsWithId.save(t),r=i.useInnerBlocksProps.save(e);return(0,n.createElement)("div",{...r})},icon:R})},373:(t,e)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=l(t,s(r)))}return t}function s(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)o.call(t,r)&&t[r]&&(e=l(e,r));return e}function l(t,e){return e?t?t+" "+e:t+e:t}t.exports?(n.default=n,t.exports=n):void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var s=r[t]={exports:{}};return e[t](s,s.exports,o),s.exports}o.m=e,t=[],o.O=(e,r,n,s)=>{if(!r){var l=1/0;for(b=0;b<t.length;b++){for(var[r,n,s]=t[b],i=!0,a=0;a<r.length;a++)(!1&s||l>=s)&&Object.keys(o.O).every((t=>o.O[t](r[a])))?r.splice(a--,1):(i=!1,s<l&&(l=s));if(i){t.splice(b--,1);var u=n();void 0!==u&&(e=u)}}return e}s=s||0;for(var b=t.length;b>0&&t[b-1][2]>s;b--)t[b]=t[b-1];t[b]=[r,n,s]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={954:0,949:0};o.O.j=e=>0===t[e];var e=(e,r)=>{var n,s,[l,i,a]=r,u=0;if(l.some((e=>0!==t[e]))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(a)var b=a(o)}for(e&&e(r);u<l.length;u++)s=l[u],o.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return o.O(b)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var n=o.O(void 0,[949],(()=>o(115)));n=o.O(n)})();1 (()=>{var t,e={115:(t,e,r)=>{"use strict";const o=window.wp.blocks,s=window.React,l=window.wp.primitives,n=(0,s.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(l.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})),a=window.wp.blockEditor,i=window.mrblx,u=window.wp.components,b=window.wp.i18n,c=t=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(a.InspectorControls,null,(0,s.createElement)("div",{className:"wp-block-mindspun-buttons--controls"},(0,s.createElement)(i.ContainerContents,null,(0,s.createElement)(i.JustifyContentControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},options:["left","center","right","space-between"],isResponsive:!0}),(0,s.createElement)(u.ToggleControl,{label:(0,b.__)("Allow to wrap to multiple lines."),checked:void 0===t.attributes.style.flexWrap||"wrap"===t.attributes.style.flexWrap,onChange:e=>{const r={...t.attributes.style,flexWrap:e?void 0:"nowrap"};t.setAttributes({style:r})}}),(0,s.createElement)(i.ColorsGroup,{isResponsive:!0},(0,s.createElement)(i.BackgroundColorControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0,hideHeader:!0})),(0,s.createElement)(i.GapControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,s.createElement)(i.MarginControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,s.createElement)(i.PaddingControl,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})),(0,s.createElement)(i.ContainerControl,{title:"Custom CSS"},(0,s.createElement)(i.ContainerContents,null,(0,s.createElement)(i.CustomCSSControl,{blockId:t.attributes.blockId,attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}))))),(0,s.createElement)(a.InspectorAdvancedControls,null,(0,s.createElement)(i.BlockId,{attributes:t.attributes}),(0,s.createElement)(i.ViewAll,{attributes:t.attributes.style,onClear:()=>t.setAttributes({style:{}})}))),m=(0,s.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(l.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"}));var d=r(373),v=r.n(d);const p=(0,s.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(l.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),C=(0,s.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(l.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),y=t=>(0,s.createElement)(i.BorderControl,{label:"Border",attributes:{borderTop:t.attributes.borderTopHover,borderRight:t.attributes.borderRightHover,borderBottom:t.attributes.borderBottomHover,borderLeft:t.attributes.borderLeftHover,tabletBorderTop:t.attributes.tabletBorderTopHover,tabletBorderRight:t.attributes.tabletBorderRightHover,tabletBorderBottom:t.attributes.tabletBorderBottomHover,tabletBorderLeft:t.attributes.tabletBorderLeftHover,mobileBorderTop:t.attributes.mobileBorderTopHover,mobileBorderRight:t.attributes.mobileBorderRightHover,mobileBorderBottom:t.attributes.mobileBorderBottomHover,mobileBorderLeft:t.attributes.mobileBorderLeftHover},setAttributes:e=>{const r={...t.attributes,borderTopHover:e.borderTop,borderRightHover:e.borderRight,borderBottomHover:e.borderBottom,borderLeftHover:e.borderLeft,tabletBorderTopHover:e.tabletBorderTop,tabletBorderRightHover:e.tabletBorderRight,tabletBorderBottomHover:e.tabletBorderBottom,tabletBorderLeftHover:e.tabletBorderLeft,mobileBorderTopHover:e.mobileBorderTop,mobileBorderRightHover:e.mobileBorderRight,mobileBorderBottomHover:e.mobileBorderBottom,mobileBorderLeftHover:e.mobileBorderLeft};t.setAttributes(r)},isResponsive:!0,disableRadiusControl:!0}),E=t=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(i.ContainerContents,null,(0,s.createElement)(i.BaseControls,{attributes:t.attributes.style?t.attributes.style:{},setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},fontSize:{responsive:!0},fontAppearance:!0,letterCase:!0,margin:{responsive:!0},padding:{responsive:!0},border:{responsive:!0}}})),(0,s.createElement)(i.ContainerControl,{title:(0,b.__)("Hover")},(0,s.createElement)(i.ContainerContents,null,(0,s.createElement)(i.ColorsGroup,{isResponsive:!0},(0,s.createElement)(i.ColorControl,{label:"Color",attributes:{color:t.attributes.style.colorHover,tabletColor:t.attributes.style.tabletColorHover,mobileColor:t.attributes.style.mobileColorHover},setAttributes:e=>{const r={...t.attributes.style,colorHover:e.color,tabletColorHover:e.tabletColor,mobileColorHover:e.mobileColor};t.setAttributes({style:r})},isResponsive:!0,hideHeader:!0}),(0,s.createElement)(i.ColorControl,{label:"Background",attributes:{color:t.attributes.style.backgroundColorHover,tabletColor:t.attributes.style.tabletBackgroundColorHover,mobileColor:t.attributes.style.mobileBackgroundColorHover},setAttributes:e=>{const r={...t.attributes.style,backgroundColorHover:e.color,tabletBackgroundColorHover:e.tabletColor,mobileBackgroundColor:e.mobileColor};t.setAttributes({style:r})},isResponsive:!0,hideHeader:!0})),(0,s.createElement)(y,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})}}))),(0,s.createElement)(i.ContainerControl,{title:(0,b.__)("Custom CSS")},(0,s.createElement)(i.ContainerContents,null,(0,s.createElement)(i.CustomCSSControl,{blockId:t.attributes.blockId,attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})))),h=[{label:"Primary",value:"primary"},{label:"Outline",value:"outline"},{label:"Link",value:"link"}],g=t=>(0,s.createElement)("div",{className:"mrblx--button-variant-control"},(0,s.createElement)(i.ControlHeader,{title:(0,b.__)("Button Type")}),(0,s.createElement)(u.SelectControl,{value:t.attributes.variant,options:h,onChange:e=>t.setAttributes({variant:e}),__nextHasNoMarginBottom:!0})),f=t=>(0,s.createElement)("div",{className:"mrblx--custom-event-control"},(0,s.createElement)(u.TextControl,{label:(0,b.__)("Custom Event"),value:t.attributes.customEvent.type?t.attributes.customEvent.type:"",onChange:e=>{const r={...t.attributes.customEvent,type:e||void 0};t.setAttributes({customEvent:r})},help:(0,b.__)("The custom event type to be emitted when the button is clicked.")}),t.attributes.customEvent.type?(0,s.createElement)(u.TextControl,{label:(0,b.__)("Custom Event Detail"),value:t.attributes.customEvent.detail?t.attributes.customEvent.detail:"",onChange:e=>{const r={...t.attributes.customEvent,detail:e||null};t.setAttributes({customEvent:r})},help:(0,b.__)("The detail attribute included with the event.")}):null),B=t=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(a.InspectorControls,null,(0,s.createElement)("div",{className:"wp-block-mindspun-button--controls"},(0,s.createElement)(i.TabbedControl,null,(0,s.createElement)(i.TabbedContainer,{key:"General",icon:p},(0,s.createElement)(i.ContainerContents,null,(0,s.createElement)(g,{attributes:t.attributes,setAttributes:t.setAttributes}),(0,s.createElement)(i.WidthHeightControl,{label:(0,b.__)("Width"),propertyName:"width",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,s.createElement)("hr",null),(0,s.createElement)(i.LinkControl,{attributes:t.attributes.link,setAttributes:e=>{t.setAttributes({link:{...t.attributes.link,...e}})}}))),(0,s.createElement)(i.TabbedContainer,{key:"Style",icon:C},(0,s.createElement)(E,{attributes:t.attributes,setAttributes:t.setAttributes}))))),(0,s.createElement)(a.InspectorAdvancedControls,null,(0,s.createElement)(f,{attributes:t.attributes,setAttributes:t.setAttributes}),(0,s.createElement)(i.BlockId,{attributes:t.attributes}),(0,s.createElement)(i.ViewAll,{attributes:t.attributes.style,onClear:()=>t.setAttributes({style:{}})})));function w(t){let e=null;if(t&&t.type)if(t.detail){const r=t.detail.trim();e=`new CustomEvent('${t.type}',{detail:'${r}'})`}else e=`new CustomEvent('${t.type}')`;if(e)return`javascript:window.dispatchEvent(${e})`}function H(t){const e=t.link.rel?[...t.link.rel]:[];return t.link.target&&!e.includes("noopener")&&e.push("noopener"),e.length?e.join(" "):void 0}const k="mindspun/button";var A;A={name:k,title:"Button",description:"A single button in a button group.",parent:["mindspun/buttons"],attributes:{blockId:{type:"string"},fullWidth:{type:"boolean",default:!1},variant:{type:"string",default:"primary"},text:{type:"string"},link:{type:"object",default:{rel:["noopener"]}},customEvent:{type:"object",default:{}},style:{type:"object",default:{}}},usesContext:["mindspun/buttons"],edit:function(t){const e=(0,i.useBlockPropsWithId)(t,{className:v()(`variant-${t.attributes.variant}`,{"wp-element-button":"link"!==t.attributes.variant})});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(B,{...t}),(0,s.createElement)(i.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,s.createElement)(a.RichText,{...e,tagName:"a",onChange:e=>{t.setAttributes({text:e})},value:t.attributes.text,allowedFormats:[],placeholder:"Button"}))},save:function(t){const e=t.attributes.variant||"primary",r=i.useBlockPropsWithId.save(t,{className:v()(`variant-${e}`,{"wp-element-button":"link"!==e})});return(0,s.createElement)("a",{...r,href:t.attributes.link.href,target:t.attributes.link.target,rel:H(t.attributes),onClick:w(t.attributes.customEvent)},t.attributes.text)},icon:{foreground:"#005ffe",src:m}},(0,o.registerBlockType)(A.name,{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,category:"mindspun-responsive-blocks",textdomain:"mrblx",...A});const x=JSON.parse('{"UU":"mindspun/buttons"}'),R={foreground:"#005ffe",src:n};(0,o.registerBlockType)(x.UU,{edit:function(t){const e=(0,i.useBlockPropsWithId)(t),r=(0,a.useInnerBlocksProps)(e,{template:[[k]],allowedBlocks:[k]});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(c,{...t}),(0,s.createElement)(i.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,s.createElement)("div",{...r}))},save:function(t){const e=i.useBlockPropsWithId.save(t),r=a.useInnerBlocksProps.save(e);return(0,s.createElement)("div",{...r})},icon:R})},373:(t,e)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function s(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=n(t,l(r)))}return t}function l(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return s.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)o.call(t,r)&&t[r]&&(e=n(e,r));return e}function n(t,e){return e?t?t+" "+e:t+e:t}t.exports?(s.default=s,t.exports=s):void 0===(r=function(){return s}.apply(e,[]))||(t.exports=r)}()}},r={};function o(t){var s=r[t];if(void 0!==s)return s.exports;var l=r[t]={exports:{}};return e[t](l,l.exports,o),l.exports}o.m=e,t=[],o.O=(e,r,s,l)=>{if(!r){var n=1/0;for(b=0;b<t.length;b++){for(var[r,s,l]=t[b],a=!0,i=0;i<r.length;i++)(!1&l||n>=l)&&Object.keys(o.O).every((t=>o.O[t](r[i])))?r.splice(i--,1):(a=!1,l<n&&(n=l));if(a){t.splice(b--,1);var u=s();void 0!==u&&(e=u)}}return e}l=l||0;for(var b=t.length;b>0&&t[b-1][2]>l;b--)t[b]=t[b-1];t[b]=[r,s,l]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={954:0,949:0};o.O.j=e=>0===t[e];var e=(e,r)=>{var s,l,[n,a,i]=r,u=0;if(n.some((e=>0!==t[e]))){for(s in a)o.o(a,s)&&(o.m[s]=a[s]);if(i)var b=i(o)}for(e&&e(r);u<n.length;u++)l=n[u],o.o(t,l)&&t[l]&&t[l][0](),t[l]=0;return o.O(b)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var s=o.O(void 0,[949],(()=>o(115)));s=o.O(s)})(); -
mindspun-responsive-blocks/trunk/dist/container/block.json
r3093332 r3096856 3 3 "apiVersion": 3, 4 4 "name": "mindspun/container", 5 "version": "0.1 5.2",5 "version": "0.16.0", 6 6 "title": "Container", 7 7 "category": "mindspun-responsive-blocks", -
mindspun-responsive-blocks/trunk/dist/container/index.asset.php
r3090370 r3096856 1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' 9621f910246c41d8efa9');1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '349eab476f8c945c08e5'); -
mindspun-responsive-blocks/trunk/dist/container/index.js
r3090370 r3096856 1 (()=>{var e,t={937:(e,t,l)=>{"use strict";const a=/([\p{Ll}\d])(\p{Lu})/gu,n=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,i=/(\d)\p{Ll}|(\p{L})\d/u,o=/[^\p{L}\d]+/giu,r="$1\0$2",s="";function u(e){let t=e.trim();t=t.replace(a,r).replace(n,r),t=t.replace(o,"\0");let l=0,i=t.length;for(;"\0"===t.charAt(l);)l++;if(l===i)return[];for(;"\0"===t.charAt(i-1);)i--;return t.slice(l,i).split(/\0/g)}function c(e){const t=u(e);for(let e=0;e<t.length;e++){const l=t[e],a=i.exec(l);if(a){const n=a.index+(a[1]??a[2]).length;t.splice(e,1,l.slice(0,n),l.slice(n))}}return t}function b(e,t){const[l,a,n]=function(e,t={}){const l=t.split??(t.separateNumbers?c:u),a=t.prefixCharacters??s,n=t.suffixCharacters??s;let i=0,o=e.length;for(;i<e.length;){const t=e.charAt(i);if(!a.includes(t))break;i++}for(;o>i;){const t=o-1,l=e.charAt(t);if(!n.includes(l))break;o=t}return[e.slice(0,i),l(e.slice(i,o)),e.slice(o)]}(e,t),i=(r=t?.locale,!1===r?e=>e.toLowerCase():e=>e.toLocaleLowerCase(r)),o=function(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}(t?.locale);var r;return l+a.map(function(e,t){return l=>`${t(l[0])}${e(l.slice(1))}`}(i,o)).join(t?.delimiter??" ")+n}const v=window.wp.blocks,d=window.React,m=window.wp.primitives,p=(0,d.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(m.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"}));var f=l(373),h=l.n(f);const C=window.wp.blockEditor,y=window.wp.element,g=window.mrblx,E=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(m.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),w=(0,d.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(m.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),A=window.wp.components,x=window.wp.i18n,T=[{label:"Default",value:"default"},{label:"Block",value:"block"},{label:"Flex",value:"flex"},{label:"Inline",value:"inline"},{label:"Inline Block",value:"inline-block"},{label:"Inline Flex",value:"inline-flex"},{label:"Table",value:"table"},{label:"Table Row",value:"table-row"},{label:"Table Cell",value:"table-cell"},{label:"None",value:"none"}];function _(e,t){switch(t){case"Tablet":return void 0!==e.tabletDisplay;case"Mobile":return void 0!==e.mobileDisplay}return void 0!==e.display}function k(e){return"default"!==e?e:void 0}const D=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--display-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Display"),isResponsive:!0,onClear:_(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletDisplay:void 0});break;case"Mobile":e.setAttributes({mobileDisplay:void 0});break;default:e.setAttributes({display:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.display?e.attributes.display:"default",options:T,onChange:t=>e.setAttributes({display:k(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletDisplay?e.attributes.tabletDisplay:"default",options:T,onChange:t=>e.setAttributes({tabletDisplay:k(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileDisplay?e.attributes.mobileDisplay:"default",options:T,onChange:t=>e.setAttributes({mobileDisplay:k(t)}),__nextHasNoMarginBottom:!0})))};function M(e,t){return(0,g.propertyName)(e,!0,t)}function S(e,t){return 0===e[M("flexBasis",t)]&&1===e[M("flexGrow",t)]&&1===e[M("flexShrink",t)]?"fill":1===e[M("flexGrow",t)]?"grow":1===e[M("flexShrink",t)]?"shrink":"default"}function H(e,t){switch(e){case"fill":return{[M("flexGrow",t)]:1,[M("flexShrink",t)]:1,[M("flexBasis",t)]:0};case"grow":return{[M("flexGrow",t)]:1,[M("flexShrink",t)]:void 0,[M("flexBasis",t)]:void 0};case"shrink":return{[M("flexGrow",t)]:void 0,[M("flexShrink",t)]:1,[M("flexBasis",t)]:void 0}}return{[M("flexGrow",t)]:void 0,[M("flexShrink",t)]:void 0,[M("flexBasis",t)]:void 0}}const B=[{label:"Default",value:"default"},{label:"Fill",value:"fill"},{label:"Grow",value:"grow"},{label:"Shrink",value:"shrink"}];function L(e,t){switch(t){case"Tablet":return void 0!==e.tabletFlexGrow||e.tabletFlexShrink||e.tabletFlexBasis;case"Mobile":return void 0!==e.mobileFlexGrow||e.mobileFlexShrink||e.mobileFlexBasis}return void 0!==e.flexGrow||void 0!==e.flexShrink||void 0!==e.flexBasis}const N=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--flex-sizing-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Sizing"),isResponsive:!0,onClear:L(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletFlexGrow:void 0,tabletFlexShrink:void 0,tabletFlexBasis:void 0});break;case"Mobile":e.setAttributes({mobileFlexGrow:void 0,mobileFlexShrink:void 0,mobileFlexBasis:void 0});break;default:e.setAttributes({flexGrow:void 0,flexShrink:void 0,flexBasis:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:S(e.attributes,"Desktop"),options:B,onChange:t=>e.setAttributes(H(t,"Desktop")),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:S(e.attributes,"Tablet"),options:B,onChange:t=>e.setAttributes(H(t,"Tablet")),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:S(e.attributes,"Mobile"),options:B,onChange:t=>e.setAttributes(H(t,"Mobile")),__nextHasNoMarginBottom:!0})))}, F=[{label:"Default",value:"default"},{label:"Hidden",value:"hidden"},{label:"Auto",value:"auto"},{label:"Scroll",value:"scroll"}];function V(e,t){switch(t){case"Tablet":return void 0!==e.tabletOverflowX||void 0!==e.tabletOverflowY;case"Mobile":return void 0!==e.mobileOverflowX||void 0!==e.mobileOverflowY}return void 0!==e.overflowX||void 0!==e.overflowY}function R(e){return"default"!==e?e:void 0}function O(e){return"default"!==e?e:void 0}const P=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--overflow-control"},(0,d.createElement)(g.ControlHeader,{isResponsive:!0,onClear:V(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletOverflowX:void 0,tabletOverflowY:void 0});break;case"Mobile":e.setAttributes({mobileOverflowX:void 0,mobileOverflowY:void 0});break;default:e.setAttributes({overflowX:void 0,overflowY:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Horizontal (X)"),value:e.attributes.overflowX?e.attributes.overflowX:"default",options:F,onChange:t=>e.setAttributes({overflowX:R(t)}),__nextHasNoMarginBottom:!0}),(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Vertical (Y)"),value:e.attributes.overflowY?e.attributes.overflowY:"default",options:F,onChange:t=>e.setAttributes({overflowY:O(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Horizontal (X)"),value:e.attributes.tabletOverflowX?e.attributes.tabletOverflowX:"default",options:F,onChange:t=>e.setAttributes({tabletOverflowX:R(t)}),__nextHasNoMarginBottom:!0}),(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Vertical (Y)"),value:e.attributes.tabletOverflowY?e.attributes.tabletOverflowY:"default",options:F,onChange:t=>e.setAttributes({tabletOverflowY:O(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Horizontal (X)"),value:e.attributes.mobileOverflowX?e.attributes.mobileOverflowX:"default",options:F,onChange:t=>e.setAttributes({mobileOverflowX:R(t)}),__nextHasNoMarginBottom:!0}),(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Vertical (Y)"),value:e.attributes.mobileOverflowY?e.attributes.mobileOverflowY:"default",options:F,onChange:t=>e.setAttributes({mobileOverflowY:O(t)}),__nextHasNoMarginBottom:!0})))},I=window.wp.data;function G(e){e=void 0===e||e;const{deviceType:t}=(0,I.useSelect)((t=>{if(!e)return{deviceType:"Desktop"};const l=t("core/editor");if(l&&l.getDeviceType)return{deviceType:l.getDeviceType()};const a=t("core/edit-post");return{deviceType:a?a.__experimentalGetPreviewDeviceType():"Desktop"}}),[e]);return t}function X(e,t="px"){if(void 0===e)return[void 0,t];if(0===e)return[0,t];if("0"===(e=e.toString().trim()))return[0,t];if("auto"===e)return[void 0,t];const l=e.match(/^(-)?(\d*\.?\d*)(px|%|em|rem|vw|vh)?$/);if(!l)return[0,t];const a=l[1]?-1:1,n=parseFloat(l[2]);return isNaN(n)?[void 0,l[3]]:[a*n,l[3]]}function Y(e,t){return void 0===e||0===e?e:`${e}${t}`}const z=e=>{const[t,l]=X(e.value),[a,n]=(0,y.useState)(l),i=e.ranges[a||"px"]||e.ranges.px;return(0,d.createElement)("div",{className:"mrblx--unit-range-control"},(0,d.createElement)(A.__experimentalUnitControl,{units:e.units,onChange:function(t){const[l,a]=X(t);e.onChange(Y(l,a))},onUnitChange:function(l){l=l||"px";const a=e.ranges[l]||e.ranges.px;n(l),e.onChange(void 0!==t?Y(t>a.max?a.max:t,l):void 0)},isUnitSelectTabbable:!0,value:e.value}),(0,d.createElement)(A.RangeControl,{max:i.max,min:i.min,onBlur:function(){},onChange:function(t){e.onChange(Y(t,a))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:i.step,withInputField:!1,value:t}))};z.defaultProps={units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"}],ranges:{px:{min:0,max:100,step:1},"%":{min:0,max:100,step:1},em:{min:0,max:10,step:.01},rem:{min:0,max:10,step:.01}}};const W=z,j=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(m.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),J=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},(0,d.createElement)(m.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})),U=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(m.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),$=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(m.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})),Z=e=>(0,d.createElement)(A.Button,{isSmall:!0,icon:e.isLinked?U:$,onClick:()=>e.onLinkedChange(!e.isLinked),variant:"tertiary",label:e.isLinked?"Unlinked":"Linked",showTooltip:!0}),q=e=>{const t=G(),l=function(){const e=(0,I.useDispatch)("core/editor"),t=(0,I.useDispatch)("core/edit-post");return l=>{e.setDeviceType?e.setDeviceType(l):t.__experimentalSetPreviewDeviceType(l)}}();return(0,d.createElement)("div",{className:"mrblx--control-header"},(0,d.createElement)("label",null,e.title,e.hint&&(0,d.createElement)("span",null,e.hint)),!!e.onExpand&&(0,d.createElement)(A.Button,{key:"expand",icon:"fullscreen-alt",isSmall:!0,onClick:e.onExpand?e.onExpand:void 0,label:(0,x.__)("Expand"),showTooltip:!0}),!!e.isResponsive&&(0,d.createElement)(A.ButtonGroup,null,(0,d.createElement)(A.Button,{key:"desktop",icon:"desktop",isSmall:!0,label:(0,x.__)("Desktop"),showTooltip:!0,isPressed:"Desktop"===t,onClick:()=>l("Desktop")}),(0,d.createElement)(A.Button,{key:"tablet",icon:"tablet",isSmall:!0,label:(0,x.__)("Tablet"),showTooltip:!0,isPressed:"Tablet"===t,onClick:()=>l("Tablet")}),(0,d.createElement)(A.Button,{key:"mobile",icon:"smartphone",isSmall:!0,label:(0,x.__)("Mobile"),showTooltip:!0,isPressed:"Mobile"===t,onClick:()=>l("Mobile")})),void 0!==e.isAdvanced&&e.onAdvancedChange&&(0,d.createElement)(A.Button,{key:"slider",icon:J,isSmall:!0,isPressed:e.isAdvanced,onClick:()=>e.onAdvancedChange(!e.isAdvanced),label:e.isAdvanced?(0,x.__)("Use size preset"):(0,x.__)("Set custom size"),showTooltip:!0}),void 0!==e.isLinked&&e.onLinkedChange&&(0,d.createElement)(Z,{isLinked:e.isLinked,onLinkedChange:e.onLinkedChange}),!!e.onClear&&(0,d.createElement)(A.Button,{key:"clear",icon:j,isSmall:!0,onClick:e.onClear,label:(0,x.__)("Reset"),showTooltip:!0}))};function K(e,t,l,a,n=void 0){return n?"AUTO":e?"MIXED":t?"":"0px"===l||0===l?"0":l?`${l}${a}`:"∅"}function Q(e,t){if(0===e)return 0;if("em"===t)switch(e){case.25:return 1;case.5:return 2;case 1:return 3;case 1.5:return 4;case 3:return 5}return 2.5}const ee=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:0},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0}],te=e=>{const[t,l]=X(e.value),a="auto"===e.value;return(0,d.createElement)(d.Fragment,null,e.title&&(0,d.createElement)(q,{title:e.title,hint:K(e.isMixed,e.isAdvanced,t,l,a),isAdvanced:e.isAdvanced,onAdvancedChange:e.onAdvancedChange,isLinked:e.isLinked,onLinkedChange:e.onLinkedChange,onClear:void 0!==t?e.onClear:void 0}),e.isAdvanced?(0,d.createElement)(d.Fragment,null,a?null:(0,d.createElement)(W,{onChange:t=>e.onChange(function(e,t){return 0===e||void 0===e?e:function(e){return"number"==typeof e||void 0!==e&&/^-?\d+$/.test(e)}(e)?`${e}${t}`:e}(t,l)),value:e.value,units:ee}),e.allowAuto?(0,d.createElement)(A.CheckboxControl,{label:"auto",checked:a,onChange:t=>{e.onChange(t?"auto":void 0)}}):null):(0,d.createElement)(A.RangeControl,{max:5,min:0,step:1,onBlur:function(){},onChange:function(t){e.onChange(function(e){switch(e){case 0:return 0;case 1:return".25em";case 2:return".5em";case 3:return"1em";case 4:return"1.5em";case 5:return"3em"}}(t))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},withInputField:!1,value:Q(t,l)}))},le=e=>(0,d.createElement)(te,{title:e.label,value:e.value,onChange:e.onChange,onClear:function(){e.onChange(void 0)},isAdvanced:e.isAdvanced}),ae=[{label:"Default",value:"default"},{label:"Static",value:"static"},{label:"Relative",value:"relative"},{label:"Absolute",value:"absolute"},{label:"Fixed",value:"fixed"},{label:"Sticky",value:"sticky"}],ne=e=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(A.SelectControl,{value:e.attributes.position?e.attributes.position:"default",options:ae,onChange:t=>{e.setAttributes({position:"default"!==t?t:void 0})}}),(0,d.createElement)(le,{label:(0,x.__)("top"),value:e.attributes.top,onChange:t=>e.setAttributes({top:t}),isAdvanced:!!e.isAdvanced}),(0,d.createElement)(le,{label:(0,x.__)("right"),value:e.attributes.right,onChange:t=>e.setAttributes({right:t}),isAdvanced:!!e.isAdvanced}),(0,d.createElement)(le,{label:(0,x.__)("bottom"),value:e.attributes.bottom,onChange:t=>e.setAttributes({bottom:t}),isAdvanced:!!e.isAdvanced}),(0,d.createElement)(le,{label:(0,x.__)("left"),value:e.attributes.left,onChange:t=>e.setAttributes({left:t}),isAdvanced:!!e.isAdvanced})),ie=e=>{const t=G(e.isResponsive),[l,a]=(0,y.useState)(!1);return(0,d.createElement)("div",{className:"mrblx--position-control"},(0,d.createElement)(q,{title:e.label||(0,x.__)("position"),isResponsive:e.isResponsive,isAdvanced:l,onAdvancedChange:a}),"Desktop"===t&&(0,d.createElement)(ne,{attributes:e.attributes,setAttributes:t=>{e.setAttributes({...e.attributes,...t})}}),"Tablet"===t&&(0,d.createElement)(ne,{attributes:{position:e.attributes.tabletPosition,top:e.attributes.tabletTop,right:e.attributes.tabletRight,bottom:e.attributes.tabletBottom,left:e.attributes.tabletLeft},setAttributes:t=>{e.setAttributes({...e.attributes,tabletPosition:t.position,tabletTop:t.top,tabletRight:t.right,tabletBottom:t.bottom,tabletLeft:t.left})}}),"Mobile"===t&&(0,d.createElement)(ne,{attributes:{position:e.attributes.mobilePosition,top:e.attributes.mobileTop,right:e.attributes.mobileRight,bottom:e.attributes.mobileBottom,left:e.attributes.mobileLeft},setAttributes:t=>{e.setAttributes({...e.attributes,mobilePosition:t.position,mobileTop:t.top,mobileRight:t.right,mobileBottom:t.bottom,mobileLeft:t.left})}}))},oe=e=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.BaseControls,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},margin:{responsive:!0},padding:{responsive:!0}}}),(0,d.createElement)("hr",null),(0,d.createElement)(g.BackgroundImageControl,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})}}),(0,d.createElement)("hr",null),(0,d.createElement)(g.BorderControl,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})}})),(0,d.createElement)(g.ContainerControl,{title:"Width"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.WidthHeightControl,{label:"Width",propertyName:"width",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,d.createElement)(g.WidthHeightControl,{label:"Min Width",propertyName:"minWidth",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,d.createElement)(g.WidthHeightControl,{label:"Max Width",propertyName:"maxWidth",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,d.createElement)(g.ContainerControl,{title:"Height"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.WidthHeightControl,{label:"Height",propertyName:"height",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,d.createElement)(g.WidthHeightControl,{label:"Min Height",propertyName:"minHeight",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,d.createElement)(g.WidthHeightControl,{label:"Max Height",propertyName:"maxHeight",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,d.createElement)(g.ContainerControl,{title:"Position"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(ie,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,d.createElement)(g.ContainerControl,{title:"Overflow"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(P,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})}}))),(0,d.createElement)(g.ContainerControl,{title:"Box Shadow"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.BoxShadowControl,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,d.createElement)(g.ContainerControl,{title:"Custom CSS"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))),re=[{label:"Default",value:"default"},{label:"Baseline",value:"baseline"},{label:"Top",value:"top"},{label:"Middle",value:"middle"},{label:"Bottom",value:"bottom"}];function se(e,t){switch(t){case"Tablet":return void 0!==e.tabletVerticalAlign;case"Mobile":return void 0!==e.mobileVerticalAlign}return void 0!==e.verticalAlign}function ue(e){return"default"!==e?e:void 0}const ce=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("hr",null),(0,d.createElement)("div",{className:"mrblx--table-cell-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Vertical Align"),isResponsive:!0,onClear:se(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletVerticalAlign:void 0});break;case"Mobile":e.setAttributes({mobileVerticalAlign:void 0});break;default:e.setAttributes({verticalAlign:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.verticalAlign?e.attributes.verticalAlign:"default",options:re,onChange:t=>e.setAttributes({verticalAlign:ue(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletVerticalAlign?e.attributes.tabletVerticalAlign:"default",options:re,onChange:t=>e.setAttributes({tabletVerticalAlign:ue(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileVerticalAlign?e.attributes.mobileVerticalAlign:"default",options:re,onChange:t=>e.setAttributes({mobileVerticalAlign:ue(t)}),__nextHasNoMarginBottom:!0}))))},be=[{label:"Default",value:"default"},{label:"Row",value:"row"},{label:"Row-Reverse",value:"row-reverse"},{label:"Column",value:"column"},{label:"Column-Reverse",value:"column-reverse"}];function ve(e,t){switch(t){case"Tablet":return void 0!==e.tabletFlexDirection;case"Mobile":return void 0!==e.mobileFlexDirection}return void 0!==e.flexDirection}function de(e){return"default"!==e?e:void 0}const me=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--flex-direction-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Flex Direction"),isResponsive:!0,onClear:ve(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletFlexDirection:void 0});break;case"Mobile":e.setAttributes({mobileFlexDirection:void 0});break;default:e.setAttributes({flexDirection:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.flexDirection?e.attributes.flexDirection:"default",options:be,onChange:t=>e.setAttributes({flexDirection:de(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletFlexDirection?e.attributes.tabletFlexDirection:"default",options:be,onChange:t=>e.setAttributes({tabletFlexDirection:de(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileFlexDirection?e.attributes.mobileFlexDirection:"default",options:be,onChange:t=>e.setAttributes({mobileFlexDirection:de(t)}),__nextHasNoMarginBottom:!0})))},pe=[{label:"Default",value:"default"},{label:"Start",value:"start"},{label:"End",value:"end"},{label:"Center",value:"center"},{label:"Between",value:"space-between"},{label:"Around",value:"space-around"},{label:"Evenly",value:"space-evenly"}];function fe(e,t){switch(t){case"Tablet":return void 0!==e.tabletJustifyContent;case"Mobile":return void 0!==e.mobileJustifyContent}return void 0!==e.justifyContent}function he(e){return"default"!==e?e:void 0}const Ce=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--justify-content-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Justify Content"),isResponsive:!0,onClear:fe(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletJustifyContent:void 0});break;case"Mobile":e.setAttributes({mobileJustifyContent:void 0});break;default:e.setAttributes({justifyContent:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.justifyContent?e.attributes.justifyContent:"default",options:pe,onChange:t=>e.setAttributes({justifyContent:he(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletJustifyContent?e.attributes.tabletJustifyContent:"default",options:pe,onChange:t=>e.setAttributes({tabletJustifyContent:he(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileJustifyContent?e.attributes.mobileJustifyContent:"default",options:pe,onChange:t=>e.setAttributes({mobileJustifyContent:he(t)}),__nextHasNoMarginBottom:!0})))},ye=[{label:"Default",value:"default"},{label:"Start",value:"start"},{label:"End",value:"end"},{label:"Center",value:"center"},{label:"Baseline",value:"baseline"},{label:"Stretch",value:"stretch"}];function ge(e,t){switch(t){case"Tablet":return void 0!==e.tabletAlignItems;case"Mobile":return void 0!==e.mobileAlignItems}return void 0!==e.alignItems}function Ee(e){return"default"!==e?e:void 0}const we=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--align-items-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Align Items"),isResponsive:!0,onClear:ge(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletAlignItems:void 0});break;case"Mobile":e.setAttributes({mobileAlignItems:void 0});break;default:e.setAttributes({alignItems:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.alignItems?e.attributes.alignItems:"default",options:ye,onChange:t=>e.setAttributes({alignItems:Ee(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletAlignItems?e.attributes.tabletAlignItems:"default",options:ye,onChange:t=>e.setAttributes({tabletAlignItems:Ee(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileAlignItems?e.attributes.mobileAlignItems:"default",options:ye,onChange:t=>e.setAttributes({mobileAlignItems:Ee(t)}),__nextHasNoMarginBottom:!0})))},Ae=e=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(me,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}),(0,d.createElement)(Ce,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}),(0,d.createElement)(we,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}})),xe=[{label:"Default",value:"default"},{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"}];function Te(e,t){switch(t){case"Tablet":return void 0!==e.tabletTableLayout;case"Mobile":return void 0!==e.mobileTableLayout}return void 0!==e.tableLayout}function _e(e){return"default"!==e?e:void 0}const ke=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("hr",null),(0,d.createElement)("div",{className:"mrblx--table-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Table Layout"),isResponsive:!0,onClear:Te(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletTableLayout:void 0});break;case"Mobile":e.setAttributes({mobileTableLayout:void 0});break;default:e.setAttributes({tableLayout:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tableLayout?e.attributes.tableLayout:"default",options:xe,onChange:t=>e.setAttributes({tableLayout:_e(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletTableLayout?e.attributes.tabletTableLayout:"default",options:xe,onChange:t=>e.setAttributes({tabletTableLayout:_e(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileTableLayout?e.attributes.mobileTableLayout:"default",options:xe,onChange:t=>e.setAttributes({mobileTableLayout:_e(t)}),__nextHasNoMarginBottom:!0}))))},De=[{label:"Default <div>",value:"div"},{label:"<section>",value:"section"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<table>",value:"table"},{label:"<tr>",value:"tr"},{label:"<th>",value:"th"},{label:"<td>",value:"td"},{label:"<thead>",value:"thead"},{label:"<tfoot>",value:"tfoot"}],Me=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)(d.Fragment,null,(0,d.createElement)(C.InspectorControls,null,(0,d.createElement)("div",{className:"wp-block-mindspun-container--controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},(0,d.createElement)(g.TabbedControl,null,(0,d.createElement)(g.TabbedContainer,{key:"Layout",icon:E},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(A.SelectControl,{label:(0,x.__)("HTML Tag"),value:e.attributes.tagName?e.attributes.tagName:"div",options:De,onChange:t=>e.setAttributes({tagName:t}),__nextHasNoMarginBottom:!0}),(0,d.createElement)(D,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}),function(e,t){const l=["flex","inline-flex"];switch(t){case"Tablet":return l.includes(e.attributes.style.tabletDisplay);case"Mobile":return l.includes(e.attributes.style.mobileDisplay)}return l.includes(e.attributes.style.display)}(e,t)?(0,d.createElement)(Ae,{...e}):null,function(e){return"table"===e.attributes.tagName}(e)?(0,d.createElement)(ke,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}):null,function(e,t){const l=["inline","inline-block","table-cell"];switch(t){case"Tablet":return l.includes(e.attributes.style.tabletDisplay);case"Mobile":return l.includes(e.attributes.style.mobileDisplay)}return l.includes(e.attributes.style.display)}(e,t)?(0,d.createElement)(ce,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}):null,(0,d.createElement)("hr",null),(0,d.createElement)(N,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}))),(0,d.createElement)(g.TabbedContainer,{key:"Style",icon:w},(0,d.createElement)(oe,{attributes:e.attributes,setAttributes:e.setAttributes}))))),(0,d.createElement)(C.InspectorAdvancedControls,null,(0,d.createElement)(g.BlockId,{attributes:e.attributes})))},Se=JSON.parse('{"UU":"mindspun/container"}');(0,v.registerBlockType)(Se.UU,{edit:function(e){const[t,l]=(0,y.useState)(!1),a=(0,g.useBlockPropsWithId)(e,{className:h()({"mrblx--focused":t})}),n=(0,C.useInnerBlocksProps)(a),i=e.attributes.tagName||"div";return(0,d.createElement)(d.Fragment,null,(0,d.createElement)(Me,{...e,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)}),(0,d.createElement)(g.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,d.createElement)(i,{...n}))},save:function(e){const t=g.useBlockPropsWithId.save(e),l=C.useInnerBlocksProps.save(t),a=e.attributes.tagName||"div";return(0,d.createElement)(a,{...l})},icon:{foreground:"#005ffe",src:p},__experimentalLabel:e=>{if(!e.tagName||"div"===e.tagName)return"Container";switch(e.tagName){case"thead":return"Table Header";case"tfoot":return"Table Footer";case"tr":return"Table Row";case"th":return"Table Header Cell";case"td":return"Table Cell"}return b(e.tagName)}})},373:(e,t)=>{var l;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var l=arguments[t];l&&(e=o(e,i(l)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var l in e)a.call(e,l)&&e[l]&&(t=o(t,l));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},l={};function a(e){var n=l[e];if(void 0!==n)return n.exports;var i=l[e]={exports:{}};return t[e](i,i.exports,a),i.exports}a.m=t,e=[],a.O=(t,l,n,i)=>{if(!l){var o=1/0;for(c=0;c<e.length;c++){for(var[l,n,i]=e[c],r=!0,s=0;s<l.length;s++)(!1&i||o>=i)&&Object.keys(a.O).every((e=>a.O[e](l[s])))?l.splice(s--,1):(r=!1,i<o&&(o=i));if(r){e.splice(c--,1);var u=n();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[l,n,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={216:0,519:0};a.O.j=t=>0===e[t];var t=(t,l)=>{var n,i,[o,r,s]=l,u=0;if(o.some((t=>0!==e[t]))){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(s)var c=s(a)}for(t&&t(l);u<o.length;u++)i=o[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(c)},l=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var n=a.O(void 0,[519],(()=>a(937)));n=a.O(n)})();1 (()=>{var e,t={937:(e,t,l)=>{"use strict";const a=/([\p{Ll}\d])(\p{Lu})/gu,n=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,i=/(\d)\p{Ll}|(\p{L})\d/u,o=/[^\p{L}\d]+/giu,r="$1\0$2",s="";function u(e){let t=e.trim();t=t.replace(a,r).replace(n,r),t=t.replace(o,"\0");let l=0,i=t.length;for(;"\0"===t.charAt(l);)l++;if(l===i)return[];for(;"\0"===t.charAt(i-1);)i--;return t.slice(l,i).split(/\0/g)}function c(e){const t=u(e);for(let e=0;e<t.length;e++){const l=t[e],a=i.exec(l);if(a){const n=a.index+(a[1]??a[2]).length;t.splice(e,1,l.slice(0,n),l.slice(n))}}return t}function b(e,t){const[l,a,n]=function(e,t={}){const l=t.split??(t.separateNumbers?c:u),a=t.prefixCharacters??s,n=t.suffixCharacters??s;let i=0,o=e.length;for(;i<e.length;){const t=e.charAt(i);if(!a.includes(t))break;i++}for(;o>i;){const t=o-1,l=e.charAt(t);if(!n.includes(l))break;o=t}return[e.slice(0,i),l(e.slice(i,o)),e.slice(o)]}(e,t),i=(r=t?.locale,!1===r?e=>e.toLowerCase():e=>e.toLocaleLowerCase(r)),o=function(e){return!1===e?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}(t?.locale);var r;return l+a.map(function(e,t){return l=>`${t(l[0])}${e(l.slice(1))}`}(i,o)).join(t?.delimiter??" ")+n}const v=window.wp.blocks,d=window.React,m=window.wp.primitives,p=(0,d.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(m.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"}));var f=l(373),h=l.n(f);const C=window.wp.blockEditor,y=window.wp.element,g=window.mrblx,E=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(m.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),w=(0,d.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,d.createElement)(m.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"})),A=window.wp.components,x=window.wp.i18n,T=[{label:"Default",value:"default"},{label:"Block",value:"block"},{label:"Flex",value:"flex"},{label:"Inline",value:"inline"},{label:"Inline Block",value:"inline-block"},{label:"Inline Flex",value:"inline-flex"},{label:"Table",value:"table"},{label:"Table Row",value:"table-row"},{label:"Table Cell",value:"table-cell"},{label:"None",value:"none"}];function _(e,t){switch(t){case"Tablet":return void 0!==e.tabletDisplay;case"Mobile":return void 0!==e.mobileDisplay}return void 0!==e.display}function k(e){return"default"!==e?e:void 0}const D=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--display-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Display"),isResponsive:!0,onClear:_(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletDisplay:void 0});break;case"Mobile":e.setAttributes({mobileDisplay:void 0});break;default:e.setAttributes({display:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.display?e.attributes.display:"default",options:T,onChange:t=>e.setAttributes({display:k(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletDisplay?e.attributes.tabletDisplay:"default",options:T,onChange:t=>e.setAttributes({tabletDisplay:k(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileDisplay?e.attributes.mobileDisplay:"default",options:T,onChange:t=>e.setAttributes({mobileDisplay:k(t)}),__nextHasNoMarginBottom:!0})))};function M(e,t){return(0,g.propertyName)(e,!0,t)}function S(e,t){return 0===e[M("flexBasis",t)]&&1===e[M("flexGrow",t)]&&1===e[M("flexShrink",t)]?"fill":1===e[M("flexGrow",t)]?"grow":1===e[M("flexShrink",t)]?"shrink":"default"}function H(e,t){switch(e){case"fill":return{[M("flexGrow",t)]:1,[M("flexShrink",t)]:1,[M("flexBasis",t)]:0};case"grow":return{[M("flexGrow",t)]:1,[M("flexShrink",t)]:void 0,[M("flexBasis",t)]:void 0};case"shrink":return{[M("flexGrow",t)]:void 0,[M("flexShrink",t)]:1,[M("flexBasis",t)]:void 0}}return{[M("flexGrow",t)]:void 0,[M("flexShrink",t)]:void 0,[M("flexBasis",t)]:void 0}}const B=[{label:"Default",value:"default"},{label:"Fill",value:"fill"},{label:"Grow",value:"grow"},{label:"Shrink",value:"shrink"}];function L(e,t){switch(t){case"Tablet":return void 0!==e.tabletFlexGrow||e.tabletFlexShrink||e.tabletFlexBasis;case"Mobile":return void 0!==e.mobileFlexGrow||e.mobileFlexShrink||e.mobileFlexBasis}return void 0!==e.flexGrow||void 0!==e.flexShrink||void 0!==e.flexBasis}const N=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--flex-sizing-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Sizing"),isResponsive:!0,onClear:L(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletFlexGrow:void 0,tabletFlexShrink:void 0,tabletFlexBasis:void 0});break;case"Mobile":e.setAttributes({mobileFlexGrow:void 0,mobileFlexShrink:void 0,mobileFlexBasis:void 0});break;default:e.setAttributes({flexGrow:void 0,flexShrink:void 0,flexBasis:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:S(e.attributes,"Desktop"),options:B,onChange:t=>e.setAttributes(H(t,"Desktop")),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:S(e.attributes,"Tablet"),options:B,onChange:t=>e.setAttributes(H(t,"Tablet")),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:S(e.attributes,"Mobile"),options:B,onChange:t=>e.setAttributes(H(t,"Mobile")),__nextHasNoMarginBottom:!0})))},V=[{label:"Default",value:"default"},{label:"Hidden",value:"hidden"},{label:"Auto",value:"auto"},{label:"Scroll",value:"scroll"}];function F(e,t){switch(t){case"Tablet":return void 0!==e.tabletOverflowX||void 0!==e.tabletOverflowY;case"Mobile":return void 0!==e.mobileOverflowX||void 0!==e.mobileOverflowY}return void 0!==e.overflowX||void 0!==e.overflowY}function R(e){return"default"!==e?e:void 0}function O(e){return"default"!==e?e:void 0}const P=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--overflow-control"},(0,d.createElement)(g.ControlHeader,{isResponsive:!0,onClear:F(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletOverflowX:void 0,tabletOverflowY:void 0});break;case"Mobile":e.setAttributes({mobileOverflowX:void 0,mobileOverflowY:void 0});break;default:e.setAttributes({overflowX:void 0,overflowY:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Horizontal (X)"),value:e.attributes.overflowX?e.attributes.overflowX:"default",options:V,onChange:t=>e.setAttributes({overflowX:R(t)}),__nextHasNoMarginBottom:!0}),(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Vertical (Y)"),value:e.attributes.overflowY?e.attributes.overflowY:"default",options:V,onChange:t=>e.setAttributes({overflowY:O(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Horizontal (X)"),value:e.attributes.tabletOverflowX?e.attributes.tabletOverflowX:"default",options:V,onChange:t=>e.setAttributes({tabletOverflowX:R(t)}),__nextHasNoMarginBottom:!0}),(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Vertical (Y)"),value:e.attributes.tabletOverflowY?e.attributes.tabletOverflowY:"default",options:V,onChange:t=>e.setAttributes({tabletOverflowY:O(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Horizontal (X)"),value:e.attributes.mobileOverflowX?e.attributes.mobileOverflowX:"default",options:V,onChange:t=>e.setAttributes({mobileOverflowX:R(t)}),__nextHasNoMarginBottom:!0}),(0,d.createElement)(A.SelectControl,{label:(0,x.__)("Vertical (Y)"),value:e.attributes.mobileOverflowY?e.attributes.mobileOverflowY:"default",options:V,onChange:t=>e.setAttributes({mobileOverflowY:O(t)}),__nextHasNoMarginBottom:!0})))},I=window.wp.data;function G(e){e=void 0===e||e;const{deviceType:t}=(0,I.useSelect)((t=>{if(!e)return{deviceType:"Desktop"};const l=t("core/editor");if(l&&l.getDeviceType)return{deviceType:l.getDeviceType()};const a=t("core/edit-post");return{deviceType:a?a.__experimentalGetPreviewDeviceType():"Desktop"}}),[e]);return t}function X(e,t="px"){if(void 0===e)return[void 0,t];if(0===e)return[0,t];if("0"===(e=e.toString().trim()))return[0,t];if("auto"===e)return[void 0,t];const l=e.match(/^(-)?(\d*\.?\d*)(px|%|em|rem|vw|vh)?$/);if(!l)return[0,t];const a=l[1]?-1:1,n=parseFloat(l[2]);return isNaN(n)?[void 0,l[3]]:[a*n,l[3]]}function Y(e,t){return void 0===e||0===e?e:`${e}${t}`}const z=e=>{const[t,l]=X(e.value),[a,n]=(0,y.useState)(l),i=e.ranges[a||"px"]||e.ranges.px;return(0,d.createElement)("div",{className:"mrblx--unit-range-control"},(0,d.createElement)(A.__experimentalUnitControl,{units:e.units,onChange:function(t){const[l,a]=X(t);e.onChange(Y(l,a))},onUnitChange:function(l){l=l||"px";const a=e.ranges[l]||e.ranges.px;n(l),e.onChange(void 0!==t?Y(t>a.max?a.max:t,l):void 0)},isUnitSelectTabbable:!0,value:e.value}),(0,d.createElement)(A.RangeControl,{max:i.max,min:i.min,onBlur:function(){},onChange:function(t){e.onChange(Y(t,a))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:i.step,withInputField:!1,value:t}))};z.defaultProps={units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"}],ranges:{px:{min:0,max:100,step:1},"%":{min:0,max:100,step:1},em:{min:0,max:10,step:.01},rem:{min:0,max:10,step:.01}}};const W=z,j=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(m.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),J=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},(0,d.createElement)(m.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})),U=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(m.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),$=(0,d.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,d.createElement)(m.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})),Z=e=>(0,d.createElement)(A.Button,{isSmall:!0,icon:e.isLinked?U:$,onClick:()=>e.onLinkedChange(!e.isLinked),variant:"tertiary",label:e.isLinked?"Unlinked":"Linked",showTooltip:!0}),q=e=>{const t=G(),l=function(){const e=(0,I.useDispatch)("core/editor"),t=(0,I.useDispatch)("core/edit-post");return l=>{e.setDeviceType?e.setDeviceType(l):t.__experimentalSetPreviewDeviceType(l)}}();return(0,d.createElement)("div",{className:"mrblx--control-header"},(0,d.createElement)("label",null,e.title,e.hint&&(0,d.createElement)("span",null,e.hint)),!!e.onExpand&&(0,d.createElement)(A.Button,{key:"expand",icon:"fullscreen-alt",isSmall:!0,onClick:e.onExpand?e.onExpand:void 0,label:(0,x.__)("Expand"),showTooltip:!0}),!!e.isResponsive&&(0,d.createElement)(A.ButtonGroup,null,(0,d.createElement)(A.Button,{key:"desktop",icon:"desktop",isSmall:!0,label:(0,x.__)("Desktop"),showTooltip:!0,isPressed:"Desktop"===t,onClick:()=>l("Desktop")}),(0,d.createElement)(A.Button,{key:"tablet",icon:"tablet",isSmall:!0,label:(0,x.__)("Tablet"),showTooltip:!0,isPressed:"Tablet"===t,onClick:()=>l("Tablet")}),(0,d.createElement)(A.Button,{key:"mobile",icon:"smartphone",isSmall:!0,label:(0,x.__)("Mobile"),showTooltip:!0,isPressed:"Mobile"===t,onClick:()=>l("Mobile")})),void 0!==e.isAdvanced&&e.onAdvancedChange&&(0,d.createElement)(A.Button,{key:"slider",icon:J,isSmall:!0,isPressed:e.isAdvanced,onClick:()=>e.onAdvancedChange(!e.isAdvanced),label:e.isAdvanced?(0,x.__)("Use size preset"):(0,x.__)("Set custom size"),showTooltip:!0}),void 0!==e.isLinked&&e.onLinkedChange&&(0,d.createElement)(Z,{isLinked:e.isLinked,onLinkedChange:e.onLinkedChange}),!!e.onClear&&(0,d.createElement)(A.Button,{key:"clear",icon:j,isSmall:!0,onClick:e.onClear,label:(0,x.__)("Reset"),showTooltip:!0}))};function K(e,t,l,a,n=void 0){return n?"AUTO":e?"MIXED":t?"":"0px"===l||0===l?"0":l?`${l}${a}`:"∅"}function Q(e,t){if(0===e)return 0;if("em"===t)switch(e){case.25:return 1;case.5:return 2;case 1:return 3;case 1.5:return 4;case 3:return 5}return 2.5}const ee=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:0},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0}],te=e=>{const[t,l]=X(e.value),a="auto"===e.value;return(0,d.createElement)(d.Fragment,null,e.title&&(0,d.createElement)(q,{title:e.title,hint:K(e.isMixed,e.isAdvanced,t,l,a),isAdvanced:e.isAdvanced,onAdvancedChange:e.onAdvancedChange,isLinked:e.isLinked,onLinkedChange:e.onLinkedChange,onClear:void 0!==t?e.onClear:void 0}),e.isAdvanced?(0,d.createElement)(d.Fragment,null,a?null:(0,d.createElement)(W,{onChange:t=>e.onChange(function(e,t){return 0===e||void 0===e?e:function(e){return"number"==typeof e||void 0!==e&&/^-?\d+$/.test(e)}(e)?`${e}${t}`:e}(t,l)),value:e.value,units:ee}),e.allowAuto?(0,d.createElement)(A.CheckboxControl,{label:"auto",checked:a,onChange:t=>{e.onChange(t?"auto":void 0)}}):null):(0,d.createElement)(A.RangeControl,{max:5,min:0,step:1,onBlur:function(){},onChange:function(t){e.onChange(function(e){switch(e){case 0:return 0;case 1:return".25em";case 2:return".5em";case 3:return"1em";case 4:return"1.5em";case 5:return"3em"}}(t))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},withInputField:!1,value:Q(t,l)}))},le=e=>(0,d.createElement)(te,{title:e.label,value:e.value,onChange:e.onChange,onClear:function(){e.onChange(void 0)},isAdvanced:e.isAdvanced}),ae=[{label:"Default",value:"default"},{label:"Static",value:"static"},{label:"Relative",value:"relative"},{label:"Absolute",value:"absolute"},{label:"Fixed",value:"fixed"},{label:"Sticky",value:"sticky"}],ne=e=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(A.SelectControl,{value:e.attributes.position?e.attributes.position:"default",options:ae,onChange:t=>{e.setAttributes({position:"default"!==t?t:void 0})}}),(0,d.createElement)(le,{label:(0,x.__)("top"),value:e.attributes.top,onChange:t=>e.setAttributes({top:t}),isAdvanced:!!e.isAdvanced}),(0,d.createElement)(le,{label:(0,x.__)("right"),value:e.attributes.right,onChange:t=>e.setAttributes({right:t}),isAdvanced:!!e.isAdvanced}),(0,d.createElement)(le,{label:(0,x.__)("bottom"),value:e.attributes.bottom,onChange:t=>e.setAttributes({bottom:t}),isAdvanced:!!e.isAdvanced}),(0,d.createElement)(le,{label:(0,x.__)("left"),value:e.attributes.left,onChange:t=>e.setAttributes({left:t}),isAdvanced:!!e.isAdvanced})),ie=e=>{const t=G(e.isResponsive),[l,a]=(0,y.useState)(!1);return(0,d.createElement)("div",{className:"mrblx--position-control"},(0,d.createElement)(q,{title:e.label||(0,x.__)("position"),isResponsive:e.isResponsive,isAdvanced:l,onAdvancedChange:a}),"Desktop"===t&&(0,d.createElement)(ne,{attributes:e.attributes,setAttributes:t=>{e.setAttributes({...e.attributes,...t})}}),"Tablet"===t&&(0,d.createElement)(ne,{attributes:{position:e.attributes.tabletPosition,top:e.attributes.tabletTop,right:e.attributes.tabletRight,bottom:e.attributes.tabletBottom,left:e.attributes.tabletLeft},setAttributes:t=>{e.setAttributes({...e.attributes,tabletPosition:t.position,tabletTop:t.top,tabletRight:t.right,tabletBottom:t.bottom,tabletLeft:t.left})}}),"Mobile"===t&&(0,d.createElement)(ne,{attributes:{position:e.attributes.mobilePosition,top:e.attributes.mobileTop,right:e.attributes.mobileRight,bottom:e.attributes.mobileBottom,left:e.attributes.mobileLeft},setAttributes:t=>{e.setAttributes({...e.attributes,mobilePosition:t.position,mobileTop:t.top,mobileRight:t.right,mobileBottom:t.bottom,mobileLeft:t.left})}}))},oe=e=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.BaseControls,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},margin:{responsive:!0},padding:{responsive:!0}}}),(0,d.createElement)("hr",null),(0,d.createElement)(g.BackgroundImageControl,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})}}),(0,d.createElement)("hr",null),(0,d.createElement)(g.BorderControl,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})}})),(0,d.createElement)(g.ContainerControl,{title:"Width"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.WidthHeightControl,{label:"Width",propertyName:"width",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,d.createElement)(g.WidthHeightControl,{label:"Min Width",propertyName:"minWidth",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,d.createElement)(g.WidthHeightControl,{label:"Max Width",propertyName:"maxWidth",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,d.createElement)(g.ContainerControl,{title:"Height"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.WidthHeightControl,{label:"Height",propertyName:"height",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,d.createElement)(g.WidthHeightControl,{label:"Min Height",propertyName:"minHeight",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,d.createElement)(g.WidthHeightControl,{label:"Max Height",propertyName:"maxHeight",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,d.createElement)(g.ContainerControl,{title:"Position"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(ie,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,d.createElement)(g.ContainerControl,{title:"Overflow"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(P,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})}}))),(0,d.createElement)(g.ContainerControl,{title:"Box Shadow"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.BoxShadowControl,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,d.createElement)(g.ContainerControl,{title:"Custom CSS"},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(g.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))),re=[{label:"Default",value:"default"},{label:"Baseline",value:"baseline"},{label:"Top",value:"top"},{label:"Middle",value:"middle"},{label:"Bottom",value:"bottom"}];function se(e,t){switch(t){case"Tablet":return void 0!==e.tabletVerticalAlign;case"Mobile":return void 0!==e.mobileVerticalAlign}return void 0!==e.verticalAlign}function ue(e){return"default"!==e?e:void 0}const ce=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("hr",null),(0,d.createElement)("div",{className:"mrblx--table-cell-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Vertical Align"),isResponsive:!0,onClear:se(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletVerticalAlign:void 0});break;case"Mobile":e.setAttributes({mobileVerticalAlign:void 0});break;default:e.setAttributes({verticalAlign:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.verticalAlign?e.attributes.verticalAlign:"default",options:re,onChange:t=>e.setAttributes({verticalAlign:ue(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletVerticalAlign?e.attributes.tabletVerticalAlign:"default",options:re,onChange:t=>e.setAttributes({tabletVerticalAlign:ue(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileVerticalAlign?e.attributes.mobileVerticalAlign:"default",options:re,onChange:t=>e.setAttributes({mobileVerticalAlign:ue(t)}),__nextHasNoMarginBottom:!0}))))},be=[{label:"Default",value:"default"},{label:"Row",value:"row"},{label:"Row-Reverse",value:"row-reverse"},{label:"Column",value:"column"},{label:"Column-Reverse",value:"column-reverse"}];function ve(e,t){switch(t){case"Tablet":return void 0!==e.tabletFlexDirection;case"Mobile":return void 0!==e.mobileFlexDirection}return void 0!==e.flexDirection}function de(e){return"default"!==e?e:void 0}const me=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--flex-direction-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Flex Direction"),isResponsive:!0,onClear:ve(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletFlexDirection:void 0});break;case"Mobile":e.setAttributes({mobileFlexDirection:void 0});break;default:e.setAttributes({flexDirection:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.flexDirection?e.attributes.flexDirection:"default",options:be,onChange:t=>e.setAttributes({flexDirection:de(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletFlexDirection?e.attributes.tabletFlexDirection:"default",options:be,onChange:t=>e.setAttributes({tabletFlexDirection:de(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileFlexDirection?e.attributes.mobileFlexDirection:"default",options:be,onChange:t=>e.setAttributes({mobileFlexDirection:de(t)}),__nextHasNoMarginBottom:!0})))},pe=[{label:"Default",value:"default"},{label:"Start",value:"start"},{label:"End",value:"end"},{label:"Center",value:"center"},{label:"Between",value:"space-between"},{label:"Around",value:"space-around"},{label:"Evenly",value:"space-evenly"}];function fe(e,t){switch(t){case"Tablet":return void 0!==e.tabletJustifyContent;case"Mobile":return void 0!==e.mobileJustifyContent}return void 0!==e.justifyContent}function he(e){return"default"!==e?e:void 0}const Ce=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--justify-content-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Justify Content"),isResponsive:!0,onClear:fe(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletJustifyContent:void 0});break;case"Mobile":e.setAttributes({mobileJustifyContent:void 0});break;default:e.setAttributes({justifyContent:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.justifyContent?e.attributes.justifyContent:"default",options:pe,onChange:t=>e.setAttributes({justifyContent:he(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletJustifyContent?e.attributes.tabletJustifyContent:"default",options:pe,onChange:t=>e.setAttributes({tabletJustifyContent:he(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileJustifyContent?e.attributes.mobileJustifyContent:"default",options:pe,onChange:t=>e.setAttributes({mobileJustifyContent:he(t)}),__nextHasNoMarginBottom:!0})))},ye=[{label:"Default",value:"default"},{label:"Start",value:"start"},{label:"End",value:"end"},{label:"Center",value:"center"},{label:"Baseline",value:"baseline"},{label:"Stretch",value:"stretch"}];function ge(e,t){switch(t){case"Tablet":return void 0!==e.tabletAlignItems;case"Mobile":return void 0!==e.mobileAlignItems}return void 0!==e.alignItems}function Ee(e){return"default"!==e?e:void 0}const we=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)("div",{className:"mrblx--align-items-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Align Items"),isResponsive:!0,onClear:ge(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletAlignItems:void 0});break;case"Mobile":e.setAttributes({mobileAlignItems:void 0});break;default:e.setAttributes({alignItems:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.alignItems?e.attributes.alignItems:"default",options:ye,onChange:t=>e.setAttributes({alignItems:Ee(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletAlignItems?e.attributes.tabletAlignItems:"default",options:ye,onChange:t=>e.setAttributes({tabletAlignItems:Ee(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileAlignItems?e.attributes.mobileAlignItems:"default",options:ye,onChange:t=>e.setAttributes({mobileAlignItems:Ee(t)}),__nextHasNoMarginBottom:!0})))},Ae=e=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(me,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}),(0,d.createElement)(Ce,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}),(0,d.createElement)(we,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}})),xe=[{label:"Default",value:"default"},{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"}];function Te(e,t){switch(t){case"Tablet":return void 0!==e.tabletTableLayout;case"Mobile":return void 0!==e.mobileTableLayout}return void 0!==e.tableLayout}function _e(e){return"default"!==e?e:void 0}const ke=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)(d.Fragment,null,(0,d.createElement)("hr",null),(0,d.createElement)("div",{className:"mrblx--table-control"},(0,d.createElement)(g.ControlHeader,{title:(0,x.__)("Table Layout"),isResponsive:!0,onClear:Te(e.attributes,t)?function(){switch(t){case"Tablet":e.setAttributes({tabletTableLayout:void 0});break;case"Mobile":e.setAttributes({mobileTableLayout:void 0});break;default:e.setAttributes({tableLayout:void 0})}}:void 0}),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Desktop"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tableLayout?e.attributes.tableLayout:"default",options:xe,onChange:t=>e.setAttributes({tableLayout:_e(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Tablet"},(0,d.createElement)(A.SelectControl,{value:e.attributes.tabletTableLayout?e.attributes.tabletTableLayout:"default",options:xe,onChange:t=>e.setAttributes({tabletTableLayout:_e(t)}),__nextHasNoMarginBottom:!0})),(0,d.createElement)(g.DeviceTypeContainer,{deviceType:"Mobile"},(0,d.createElement)(A.SelectControl,{value:e.attributes.mobileTableLayout?e.attributes.mobileTableLayout:"default",options:xe,onChange:t=>e.setAttributes({mobileTableLayout:_e(t)}),__nextHasNoMarginBottom:!0}))))},De=[{label:"Default <div>",value:"div"},{label:"<section>",value:"section"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<table>",value:"table"},{label:"<tr>",value:"tr"},{label:"<th>",value:"th"},{label:"<td>",value:"td"},{label:"<thead>",value:"thead"},{label:"<tfoot>",value:"tfoot"}],Me=e=>{const t=(0,g.useGetPreviewDeviceType)();return(0,d.createElement)(d.Fragment,null,(0,d.createElement)(C.InspectorControls,null,(0,d.createElement)("div",{className:"wp-block-mindspun-container--controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},(0,d.createElement)(g.TabbedControl,null,(0,d.createElement)(g.TabbedContainer,{key:"Layout",icon:E},(0,d.createElement)(g.ContainerContents,null,(0,d.createElement)(A.SelectControl,{label:(0,x.__)("HTML Tag"),value:e.attributes.tagName?e.attributes.tagName:"div",options:De,onChange:t=>e.setAttributes({tagName:t}),__nextHasNoMarginBottom:!0}),(0,d.createElement)(D,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}),function(e,t){const l=["flex","inline-flex"];switch(t){case"Tablet":return l.includes(e.attributes.style.tabletDisplay);case"Mobile":return l.includes(e.attributes.style.mobileDisplay)}return l.includes(e.attributes.style.display)}(e,t)?(0,d.createElement)(Ae,{...e}):null,function(e){return"table"===e.attributes.tagName}(e)?(0,d.createElement)(ke,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}):null,function(e,t){const l=["inline","inline-block","table-cell"];switch(t){case"Tablet":return l.includes(e.attributes.style.tabletDisplay);case"Mobile":return l.includes(e.attributes.style.mobileDisplay)}return l.includes(e.attributes.style.display)}(e,t)?(0,d.createElement)(ce,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}):null,(0,d.createElement)("hr",null),(0,d.createElement)(N,{attributes:e.attributes.style,setAttributes:t=>{const l={...e.attributes.style,...t};e.setAttributes({style:l})}}))),(0,d.createElement)(g.TabbedContainer,{key:"Style",icon:w},(0,d.createElement)(oe,{attributes:e.attributes,setAttributes:e.setAttributes}))))),(0,d.createElement)(C.InspectorAdvancedControls,null,(0,d.createElement)(g.BlockId,{attributes:e.attributes}),(0,d.createElement)(g.ViewAll,{attributes:e.attributes.style,onClear:()=>e.setAttributes({style:{}})})))},Se=JSON.parse('{"UU":"mindspun/container"}');(0,v.registerBlockType)(Se.UU,{edit:function(e){const[t,l]=(0,y.useState)(!1),a=(0,g.useBlockPropsWithId)(e,{className:h()({"mrblx--focused":t})}),n=(0,C.useInnerBlocksProps)(a),i=e.attributes.tagName||"div";return(0,d.createElement)(d.Fragment,null,(0,d.createElement)(Me,{...e,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)}),(0,d.createElement)(g.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,d.createElement)(i,{...n}))},save:function(e){const t=g.useBlockPropsWithId.save(e),l=C.useInnerBlocksProps.save(t),a=e.attributes.tagName||"div";return(0,d.createElement)(a,{...l})},icon:{foreground:"#005ffe",src:p},__experimentalLabel:e=>{if(!e.tagName||"div"===e.tagName)return"Container";switch(e.tagName){case"thead":return"Table Header";case"tfoot":return"Table Footer";case"tr":return"Table Row";case"th":return"Table Header Cell";case"td":return"Table Cell"}return b(e.tagName)}})},373:(e,t)=>{var l;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var l=arguments[t];l&&(e=o(e,i(l)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var l in e)a.call(e,l)&&e[l]&&(t=o(t,l));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(l=function(){return n}.apply(t,[]))||(e.exports=l)}()}},l={};function a(e){var n=l[e];if(void 0!==n)return n.exports;var i=l[e]={exports:{}};return t[e](i,i.exports,a),i.exports}a.m=t,e=[],a.O=(t,l,n,i)=>{if(!l){var o=1/0;for(c=0;c<e.length;c++){for(var[l,n,i]=e[c],r=!0,s=0;s<l.length;s++)(!1&i||o>=i)&&Object.keys(a.O).every((e=>a.O[e](l[s])))?l.splice(s--,1):(r=!1,i<o&&(o=i));if(r){e.splice(c--,1);var u=n();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[l,n,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={216:0,519:0};a.O.j=t=>0===e[t];var t=(t,l)=>{var n,i,[o,r,s]=l,u=0;if(o.some((t=>0!==e[t]))){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(s)var c=s(a)}for(t&&t(l);u<o.length;u++)i=o[u],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(c)},l=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var n=a.O(void 0,[519],(()=>a(937)));n=a.O(n)})(); -
mindspun-responsive-blocks/trunk/dist/grid/block.json
r3093332 r3096856 3 3 "apiVersion": 3, 4 4 "name": "mindspun/grid", 5 "version": "0.1 5.2",5 "version": "0.16.0", 6 6 "title": "Grid", 7 7 "category": "mindspun-responsive-blocks", -
mindspun-responsive-blocks/trunk/dist/grid/index.asset.php
r3090237 r3096856 1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' 5d168ddc639cbfd55753');1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '4e5274a5ab58bc3d5f75'); -
mindspun-responsive-blocks/trunk/dist/grid/index.js
r3090237 r3096856 1 (()=>{var e,t={413:(e,t,n)=>{"use strict";const r=window.wp.blocks,l=window.React,o=window.wp.primitives,i=(0,l.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(o.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})),s=window.wp.blockEditor,a=window.wp.element,c=window.mrblx,u=e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(s.InspectorControls,null,(0,l.createElement)("div",{className:"wp-block-mindspun-grid--controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},(0,l.createElement)(c.ContainerControl,{title:"Width"},(0,l.createElement)(c.ContainerContents,null,(0,l.createElement)(c.WidthHeightControl,{label:"Width",propertyName:"width",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,l.createElement)(c.WidthHeightControl,{label:"Min Width",propertyName:"minWidth",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,l.createElement)(c.WidthHeightControl,{label:"Max Width",propertyName:"maxWidth",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,l.createElement)(c.ContainerControl,{title:"Custom CSS"},(0,l.createElement)(c.ContainerContents,null,(0,l.createElement)(c.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))))),(0,l.createElement)(s.InspectorAdvancedControls,null,(0,l.createElement)(c.BlockId,{attributes:e.attributes}) ));var d=n(373),p=n.n(d);function m(e,t=!1){return p()({"mrblx--focused":t})}const C=window.wp.data;function b(e,t){if(e.clientId===t)return!0;for(const n of e.innerBlocks)if(b(n,t))return!0;return!1}function h(e){const{selectedBlock:t,block:n}=(0,C.useSelect)((t=>{const n=t(s.store);return{selectedBlock:n.getSelectedBlock(),block:n.getBlock(e)}}),[e]);return!(!t||!n)&&b(n,t.clientId)}function v(e){return(0,C.useSelect)((t=>t(s.store).getBlock(e)),[e])}const g=window.wp.i18n,f=window.wp.components,w=[{name:"two_column",title:"Two Columns",description:"Two default columns",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 13.5H6C5.72386 13.5 5.5 13.7239 5.5 14V33C5.5 33.2761 5.72386 33.5 6 33.5H20C20.2761 33.5 20.5 33.2761 20.5 33V14C20.5 13.7239 20.2761 13.5 20 13.5ZM6 12C4.89543 12 4 12.8954 4 14V33C4 34.1046 4.89543 35 6 35H20C21.1046 35 22 34.1046 22 33V14C22 12.8954 21.1046 12 20 12H6Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M42 13.5H28C27.7239 13.5 27.5 13.7239 27.5 14V33C27.5 33.2761 27.7239 33.5 28 33.5H42C42.2761 33.5 42.5 33.2761 42.5 33V14C42.5 13.7239 42.2761 13.5 42 13.5ZM28 12C26.8954 12 26 12.8954 26 14V33C26 34.1046 26.8954 35 28 35H42C43.1046 35 44 34.1046 44 33V14C44 12.8954 43.1046 12 42 12H28Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{},[["mindspun/paragraph",{content:"col",style:{textAlign:"center"}}]]],["mindspun/grid-col",{},[["mindspun/paragraph",{content:"col",style:{textAlign:"center"}}]]]]]]},{name:"wide_left",title:"Wide left column",description:"Two columns with the right column fitted to content.",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 13.5H6C5.72386 13.5 5.5 13.7239 5.5 14V33C5.5 33.2761 5.72386 33.5 6 33.5H27C27.2761 33.5 27.5 33.2761 27.5 33V14C27.5 13.7239 27.2761 13.5 27 13.5ZM6 12C4.89543 12 4 12.8954 4 14V33C4 34.1046 4.89543 35 6 35H27C28.1046 35 29 34.1046 29 33V14C29 12.8954 28.1046 12 27 12H6Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{d:"M32 14C32 12.8954 32.8954 12 34 12H42C43.1046 12 44 12.8954 44 14V33C44 34.1046 43.1046 35 42 35H34C32.8954 35 32 34.1046 32 33V14Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M42 13.5H34C33.7239 13.5 33.5 13.7239 33.5 14V33C33.5 33.2761 33.7239 33.5 34 33.5H42C42.2761 33.5 42.5 33.2761 42.5 33V14C42.5 13.7239 42.2761 13.5 42 13.5ZM34 12C32.8954 12 32 12.8954 32 14V33C32 34.1046 32.8954 35 34 35H42C43.1046 35 44 34.1046 44 33V14C44 12.8954 43.1046 12 42 12H34Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{},[["mindspun/paragraph",{content:"col",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"auto"}},[["mindspun/paragraph",{content:"fitted",style:{textAlign:"center"}}]]]]]]},{name:"wide_right",title:"Wide right column",description:"Two columns with the left column fitted to content.",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M42 13.5H21C20.7239 13.5 20.5 13.7239 20.5 14V33C20.5 33.2761 20.7239 33.5 21 33.5H42C42.2761 33.5 42.5 33.2761 42.5 33V14C42.5 13.7239 42.2761 13.5 42 13.5ZM21 12C19.8954 12 19 12.8954 19 14V33C19 34.1046 19.8954 35 21 35H42C43.1046 35 44 34.1046 44 33V14C44 12.8954 43.1046 12 42 12H21Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{d:"M4 14C4 12.8954 4.89543 12 6 12H14C15.1046 12 16 12.8954 16 14V33C16 34.1046 15.1046 35 14 35H6C4.89543 35 4 34.1046 4 33V14Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 13.5H6C5.72386 13.5 5.5 13.7239 5.5 14V33C5.5 33.2761 5.72386 33.5 6 33.5H14C14.2761 33.5 14.5 33.2761 14.5 33V14C14.5 13.7239 14.2761 13.5 14 13.5ZM6 12C4.89543 12 4 12.8954 4 14V33C4 34.1046 4.89543 35 6 35H14C15.1046 35 16 34.1046 16 33V14C16 12.8954 15.1046 12 14 12H6Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{colspan:{desktop:"auto"}},[["mindspun/paragraph",{content:"fitted",style:{textAlign:"center"}}]]],["mindspun/grid-col",{},[["mindspun/paragraph",{content:"col",style:{textAlign:"center"}}]]]]]]},{name:"three_columns",title:"Three columns",description:"Three equal columns",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 13.5H5C4.72386 13.5 4.5 13.7239 4.5 14V33C4.5 33.2761 4.72386 33.5 5 33.5H13C13.2761 33.5 13.5 33.2761 13.5 33V14C13.5 13.7239 13.2761 13.5 13 13.5ZM5 12C3.89543 12 3 12.8954 3 14V33C3 34.1046 3.89543 35 5 35H13C14.1046 35 15 34.1046 15 33V14C15 12.8954 14.1046 12 13 12H5Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 13.5H20C19.7239 13.5 19.5 13.7239 19.5 14V33C19.5 33.2761 19.7239 33.5 20 33.5H28C28.2761 33.5 28.5 33.2761 28.5 33V14C28.5 13.7239 28.2761 13.5 28 13.5ZM20 12C18.8954 12 18 12.8954 18 14V33C18 34.1046 18.8954 35 20 35H28C29.1046 35 30 34.1046 30 33V14C30 12.8954 29.1046 12 28 12H20Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 13.5H35C34.7239 13.5 34.5 13.7239 34.5 14V33C34.5 33.2761 34.7239 33.5 35 33.5H43C43.2761 33.5 43.5 33.2761 43.5 33V14C43.5 13.7239 43.2761 13.5 43 13.5ZM35 12C33.8954 12 33 12.8954 33 14V33C33 34.1046 33.8954 35 35 35H43C44.1046 35 45 34.1046 45 33V14C45 12.8954 44.1046 12 43 12H35Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{colspan:{desktop:"4"}},[["mindspun/paragraph",{content:"4",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"4"}},[["mindspun/paragraph",{content:"4",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"4"}},[["mindspun/paragraph",{content:"4",style:{textAlign:"center"}}]]]]]]},{name:"four_columns",title:"Four columns",description:"Four equal columns",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 13.5H5C4.72386 13.5 4.5 13.7239 4.5 14V33C4.5 33.2761 4.72386 33.5 5 33.5H10C10.2761 33.5 10.5 33.2761 10.5 33V14C10.5 13.7239 10.2761 13.5 10 13.5ZM5 12C3.89543 12 3 12.8954 3 14V33C3 34.1046 3.89543 35 5 35H10C11.1046 35 12 34.1046 12 33V14C12 12.8954 11.1046 12 10 12H5Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 13.5H16C15.7239 13.5 15.5 13.7239 15.5 14V33C15.5 33.2761 15.7239 33.5 16 33.5H21C21.2761 33.5 21.5 33.2761 21.5 33V14C21.5 13.7239 21.2761 13.5 21 13.5ZM16 12C14.8954 12 14 12.8954 14 14V33C14 34.1046 14.8954 35 16 35H21C22.1046 35 23 34.1046 23 33V14C23 12.8954 22.1046 12 21 12H16Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M32 13.5H27C26.7239 13.5 26.5 13.7239 26.5 14V33C26.5 33.2761 26.7239 33.5 27 33.5H32C32.2761 33.5 32.5 33.2761 32.5 33V14C32.5 13.7239 32.2761 13.5 32 13.5ZM27 12C25.8954 12 25 12.8954 25 14V33C25 34.1046 25.8954 35 27 35H32C33.1046 35 34 34.1046 34 33V14C34 12.8954 33.1046 12 32 12H27Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 13.5H38C37.7239 13.5 37.5 13.7239 37.5 14V33C37.5 33.2761 37.7239 33.5 38 33.5H43C43.2761 33.5 43.5 33.2761 43.5 33V14C43.5 13.7239 43.2761 13.5 43 13.5ZM38 12C36.8954 12 36 12.8954 36 14V33C36 34.1046 36.8954 35 38 35H43C44.1046 35 45 34.1046 45 33V14C45 12.8954 44.1046 12 43 12H38Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{colspan:{desktop:"3"}},[["mindspun/paragraph",{content:"3",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"3"}},[["mindspun/paragraph",{content:"3",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"3"}},[["mindspun/paragraph",{content:"3",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"3"}},[["mindspun/paragraph",{content:"3",style:{textAlign:"center"}}]]]]]]}],k=e=>{const t=(0,c.useBlockPropsWithId)(e),n=v(e.clientId),{replaceInnerBlocks:o}=(0,C.useDispatch)("core/block-editor");return(0,l.createElement)("div",{...t},(0,l.createElement)(s.__experimentalBlockVariationPicker,{icon:i,label:(0,g.__)("Grid"),variations:w,onSelect:function(t){n&&o(e.clientId,(0,r.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))}}))},E=JSON.parse('{"UU":"mindspun/grid"}'),y=(0,l.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(o.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})),V=e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(s.InspectorControls,null,(0,l.createElement)("div",{className:"wp-block-mindspun-grid--controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},(0,l.createElement)(c.ContainerContents,null,(0,l.createElement)(c.GapControl,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))));(0,r.registerBlockType)("mindspun/grid-row",{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,title:"Grid Row",category:"mindspun-responsive-blocks",description:"A row in the grid layout",textdomain:"mrblx",parent:["mindspun/grid"],attributes:{blockId:{type:"string"},style:{type:"object",default:{}}},usesContext:["mindspun/grid"],edit:function(e){const t=(0,c.useBlockPropsWithId)(e),n=(0,s.useInnerBlocksProps)(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(V,{...e}),(0,l.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,l.createElement)("div",{...n}))},save:function(e){const t=c.useBlockPropsWithId.save(e),n=s.useInnerBlocksProps.save(t);return(0,l.createElement)("div",{...n})},icon:{foreground:"#005ffe",src:y}});const H=(0,l.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(o.Path,{d:"M16 11.2h-3.2V8h-1.6v3.2H8v1.6h3.2V16h1.6v-3.2H16z"}));function x(e){return e&&"auto"!==e?parseInt(e):12}function M(e){return e&&"default"!==e?"auto"===e?"auto":`${e}/12`:""}function B(e,t){switch(t){case"Tablet":return M(e.tablet);case"Mobile":return M(e.mobile)}return M(e.desktop)}function I(e){return e?"auto"===e||"default"===e?e:"fixed":"inherit"}function A(e){return"fixed"===e?"12":"auto"===e||"default"===e?e:void 0}function P(e){return e&&"auto"!==e&&"default"!==e}function Z(e){const t=["default"!==e.desktop?`mrblx-col-${e.desktop}`:"mrblx-col"];return e.tablet&&t.push("default"!==e.tablet?`mrblx-col-tablet-${e.tablet}`:"mrblx-col-tablet"),e.mobile&&t.push("default"!==e.mobile?`mrblx-col-mobile-${e.mobile}`:"mrblx-col-mobile"),t.join(" ")}const S=[{label:(0,g.__)("Inherit"),value:"inherit"},{label:(0,g.__)("Default"),value:"default"},{label:(0,g.__)("Fit to Content"),value:"auto"},{label:(0,g.__)("Fixed"),value:"fixed"}],_=e=>{const t=(0,c.useGetPreviewDeviceType)();return(0,l.createElement)("div",{className:"mrblx--colspan-control"},(0,l.createElement)(c.ControlHeader,{title:(0,g.__)("Column span"),hint:B(e.attributes,t),isResponsive:!0}),(0,l.createElement)(c.DeviceTypeContainer,{deviceType:"Desktop"},(0,l.createElement)(f.RadioControl,{selected:I(e.attributes.desktop),options:S.filter((e=>"inherit"!==e.value)),onChange:t=>{e.setAttributes({desktop:A(t)})}}),P(e.attributes.desktop)&&(0,l.createElement)(f.RangeControl,{value:x(e.attributes.desktop),onChange:t=>{e.setAttributes({desktop:t?t.toString():void 0})},min:1,max:12,showTooltip:!0,withInputField:!1})),(0,l.createElement)(c.DeviceTypeContainer,{deviceType:"Tablet"},(0,l.createElement)(f.RadioControl,{selected:I(e.attributes.tablet),options:S,onChange:t=>{e.setAttributes({tablet:A(t)})}}),P(e.attributes.tablet)&&(0,l.createElement)(f.RangeControl,{value:x(e.attributes.tablet),onChange:t=>{e.setAttributes({tablet:t?t.toString():void 0})},min:1,max:12,showTooltip:!0,withInputField:!1})),(0,l.createElement)(c.DeviceTypeContainer,{deviceType:"Mobile"},(0,l.createElement)(f.RadioControl,{selected:I(e.attributes.mobile),options:S,onChange:t=>{e.setAttributes({mobile:A(t)})}}),P(e.attributes.mobile)&&(0,l.createElement)(f.RangeControl,{value:x(e.attributes.mobile),onChange:t=>{e.setAttributes({mobile:t?t.toString():void 0})},min:1,max:12,showTooltip:!0,withInputField:!1})))},T=e=>(0,l.createElement)(s.InspectorControls,null,(0,l.createElement)(c.ContainerContents,null,(0,l.createElement)(_,{attributes:e.attributes.colspan,setAttributes:t=>{e.setAttributes({colspan:{...e.attributes.colspan,...t}})}}),(0,l.createElement)(c.BaseControls,{attributes:e.attributes.style?e.attributes.style:{},setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},options:{padding:{responsive:!0}}})));(0,r.registerBlockType)("mindspun/grid-col",{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,title:"Grid Column",category:"mindspun-responsive-blocks",description:"A single column of a grid row.",textdomain:"mrblx",parent:["mindspun/grid-row"],attributes:{blockId:{type:"string"},colspan:{type:"object",default:{desktop:"default"}},style:{type:"object",default:{}}},usesContext:["mindspun/grid"],edit:function(e){const t=(0,c.useBlockPropsWithId)(e,{className:Z(e.attributes.colspan)}),n=(0,s.useInnerBlocksProps)(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(T,{...e}),(0,l.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,l.createElement)("div",{...n}))},save:function(e){const t=c.useBlockPropsWithId.save(e,{className:Z(e.attributes.colspan)}),n=s.useInnerBlocksProps.save(t);return(0,l.createElement)("div",{...n})},icon:{foreground:"#005ffe",src:H}});const W={foreground:"#005ffe",src:i};(0,r.registerBlockType)(E.UU,{edit:function(e){const t=v(e.clientId),n=h(e.clientId),[r,o]=(0,a.useState)(!1),i=(0,c.useBlockPropsWithId)(e,{className:m(e.attributes,r||n)}),d=(0,s.useInnerBlocksProps)(i);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(u,{...e,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1)}),(0,l.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),function(e){return e&&e.innerBlocks&&e.innerBlocks.length>0}(t)?(0,l.createElement)("div",{...d}):(0,l.createElement)(k,{...e}))},save:function(e){const t=c.useBlockPropsWithId.save(e),n=s.useInnerBlocksProps.save(t);return(0,l.createElement)("div",{...n})},icon:W})},373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(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 l.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)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(n=function(){return l}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var l=n[e];if(void 0!==l)return l.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,l,o)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,l,o]=e[u],s=!0,a=0;a<n.length;a++)(!1&o||i>=o)&&Object.keys(r.O).every((e=>r.O[e](n[a])))?n.splice(a--,1):(s=!1,o<i&&(i=o));if(s){e.splice(u--,1);var c=l();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,l,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={163:0,442:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var l,o,[i,s,a]=n,c=0;if(i.some((t=>0!==e[t]))){for(l in s)r.o(s,l)&&(r.m[l]=s[l]);if(a)var u=a(r)}for(t&&t(n);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=r.O(void 0,[442],(()=>r(413)));l=r.O(l)})();1 (()=>{var e,t={413:(e,t,n)=>{"use strict";const r=window.wp.blocks,l=window.React,o=window.wp.primitives,i=(0,l.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(o.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})),s=window.wp.blockEditor,a=window.wp.element,c=window.mrblx,u=e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(s.InspectorControls,null,(0,l.createElement)("div",{className:"wp-block-mindspun-grid--controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},(0,l.createElement)(c.ContainerControl,{title:"Width"},(0,l.createElement)(c.ContainerContents,null,(0,l.createElement)(c.WidthHeightControl,{label:"Width",propertyName:"width",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,l.createElement)(c.WidthHeightControl,{label:"Min Width",propertyName:"minWidth",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}),(0,l.createElement)(c.WidthHeightControl,{label:"Max Width",propertyName:"maxWidth",attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))),(0,l.createElement)(c.ContainerControl,{title:"Custom CSS"},(0,l.createElement)(c.ContainerContents,null,(0,l.createElement)(c.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0}))))),(0,l.createElement)(s.InspectorAdvancedControls,null,(0,l.createElement)(c.BlockId,{attributes:e.attributes}),(0,l.createElement)(c.ViewAll,{attributes:e.attributes.style,onClear:()=>e.setAttributes({style:{}})})));var d=n(373),p=n.n(d);function m(e,t=!1){return p()({"mrblx--focused":t})}const C=window.wp.data;function b(e,t){if(e.clientId===t)return!0;for(const n of e.innerBlocks)if(b(n,t))return!0;return!1}function v(e){const{selectedBlock:t,block:n}=(0,C.useSelect)((t=>{const n=t(s.store);return{selectedBlock:n.getSelectedBlock(),block:n.getBlock(e)}}),[e]);return!(!t||!n)&&b(n,t.clientId)}function h(e){return(0,C.useSelect)((t=>t(s.store).getBlock(e)),[e])}const g=window.wp.i18n,f=window.wp.components,w=[{name:"two_column",title:"Two Columns",description:"Two default columns",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M20 13.5H6C5.72386 13.5 5.5 13.7239 5.5 14V33C5.5 33.2761 5.72386 33.5 6 33.5H20C20.2761 33.5 20.5 33.2761 20.5 33V14C20.5 13.7239 20.2761 13.5 20 13.5ZM6 12C4.89543 12 4 12.8954 4 14V33C4 34.1046 4.89543 35 6 35H20C21.1046 35 22 34.1046 22 33V14C22 12.8954 21.1046 12 20 12H6Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M42 13.5H28C27.7239 13.5 27.5 13.7239 27.5 14V33C27.5 33.2761 27.7239 33.5 28 33.5H42C42.2761 33.5 42.5 33.2761 42.5 33V14C42.5 13.7239 42.2761 13.5 42 13.5ZM28 12C26.8954 12 26 12.8954 26 14V33C26 34.1046 26.8954 35 28 35H42C43.1046 35 44 34.1046 44 33V14C44 12.8954 43.1046 12 42 12H28Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{},[["mindspun/paragraph",{content:"col",style:{textAlign:"center"}}]]],["mindspun/grid-col",{},[["mindspun/paragraph",{content:"col",style:{textAlign:"center"}}]]]]]]},{name:"wide_left",title:"Wide left column",description:"Two columns with the right column fitted to content.",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 13.5H6C5.72386 13.5 5.5 13.7239 5.5 14V33C5.5 33.2761 5.72386 33.5 6 33.5H27C27.2761 33.5 27.5 33.2761 27.5 33V14C27.5 13.7239 27.2761 13.5 27 13.5ZM6 12C4.89543 12 4 12.8954 4 14V33C4 34.1046 4.89543 35 6 35H27C28.1046 35 29 34.1046 29 33V14C29 12.8954 28.1046 12 27 12H6Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{d:"M32 14C32 12.8954 32.8954 12 34 12H42C43.1046 12 44 12.8954 44 14V33C44 34.1046 43.1046 35 42 35H34C32.8954 35 32 34.1046 32 33V14Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M42 13.5H34C33.7239 13.5 33.5 13.7239 33.5 14V33C33.5 33.2761 33.7239 33.5 34 33.5H42C42.2761 33.5 42.5 33.2761 42.5 33V14C42.5 13.7239 42.2761 13.5 42 13.5ZM34 12C32.8954 12 32 12.8954 32 14V33C32 34.1046 32.8954 35 34 35H42C43.1046 35 44 34.1046 44 33V14C44 12.8954 43.1046 12 42 12H34Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{},[["mindspun/paragraph",{content:"col",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"auto"}},[["mindspun/paragraph",{content:"fitted",style:{textAlign:"center"}}]]]]]]},{name:"wide_right",title:"Wide right column",description:"Two columns with the left column fitted to content.",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M42 13.5H21C20.7239 13.5 20.5 13.7239 20.5 14V33C20.5 33.2761 20.7239 33.5 21 33.5H42C42.2761 33.5 42.5 33.2761 42.5 33V14C42.5 13.7239 42.2761 13.5 42 13.5ZM21 12C19.8954 12 19 12.8954 19 14V33C19 34.1046 19.8954 35 21 35H42C43.1046 35 44 34.1046 44 33V14C44 12.8954 43.1046 12 42 12H21Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{d:"M4 14C4 12.8954 4.89543 12 6 12H14C15.1046 12 16 12.8954 16 14V33C16 34.1046 15.1046 35 14 35H6C4.89543 35 4 34.1046 4 33V14Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 13.5H6C5.72386 13.5 5.5 13.7239 5.5 14V33C5.5 33.2761 5.72386 33.5 6 33.5H14C14.2761 33.5 14.5 33.2761 14.5 33V14C14.5 13.7239 14.2761 13.5 14 13.5ZM6 12C4.89543 12 4 12.8954 4 14V33C4 34.1046 4.89543 35 6 35H14C15.1046 35 16 34.1046 16 33V14C16 12.8954 15.1046 12 14 12H6Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{colspan:{desktop:"auto"}},[["mindspun/paragraph",{content:"fitted",style:{textAlign:"center"}}]]],["mindspun/grid-col",{},[["mindspun/paragraph",{content:"col",style:{textAlign:"center"}}]]]]]]},{name:"three_columns",title:"Three columns",description:"Three equal columns",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13 13.5H5C4.72386 13.5 4.5 13.7239 4.5 14V33C4.5 33.2761 4.72386 33.5 5 33.5H13C13.2761 33.5 13.5 33.2761 13.5 33V14C13.5 13.7239 13.2761 13.5 13 13.5ZM5 12C3.89543 12 3 12.8954 3 14V33C3 34.1046 3.89543 35 5 35H13C14.1046 35 15 34.1046 15 33V14C15 12.8954 14.1046 12 13 12H5Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28 13.5H20C19.7239 13.5 19.5 13.7239 19.5 14V33C19.5 33.2761 19.7239 33.5 20 33.5H28C28.2761 33.5 28.5 33.2761 28.5 33V14C28.5 13.7239 28.2761 13.5 28 13.5ZM20 12C18.8954 12 18 12.8954 18 14V33C18 34.1046 18.8954 35 20 35H28C29.1046 35 30 34.1046 30 33V14C30 12.8954 29.1046 12 28 12H20Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 13.5H35C34.7239 13.5 34.5 13.7239 34.5 14V33C34.5 33.2761 34.7239 33.5 35 33.5H43C43.2761 33.5 43.5 33.2761 43.5 33V14C43.5 13.7239 43.2761 13.5 43 13.5ZM35 12C33.8954 12 33 12.8954 33 14V33C33 34.1046 33.8954 35 35 35H43C44.1046 35 45 34.1046 45 33V14C45 12.8954 44.1046 12 43 12H35Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{colspan:{desktop:"4"}},[["mindspun/paragraph",{content:"4",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"4"}},[["mindspun/paragraph",{content:"4",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"4"}},[["mindspun/paragraph",{content:"4",style:{textAlign:"center"}}]]]]]]},{name:"four_columns",title:"Four columns",description:"Four equal columns",scope:["block"],icon:()=>(0,l.createElement)(f.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 13.5H5C4.72386 13.5 4.5 13.7239 4.5 14V33C4.5 33.2761 4.72386 33.5 5 33.5H10C10.2761 33.5 10.5 33.2761 10.5 33V14C10.5 13.7239 10.2761 13.5 10 13.5ZM5 12C3.89543 12 3 12.8954 3 14V33C3 34.1046 3.89543 35 5 35H10C11.1046 35 12 34.1046 12 33V14C12 12.8954 11.1046 12 10 12H5Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 13.5H16C15.7239 13.5 15.5 13.7239 15.5 14V33C15.5 33.2761 15.7239 33.5 16 33.5H21C21.2761 33.5 21.5 33.2761 21.5 33V14C21.5 13.7239 21.2761 13.5 21 13.5ZM16 12C14.8954 12 14 12.8954 14 14V33C14 34.1046 14.8954 35 16 35H21C22.1046 35 23 34.1046 23 33V14C23 12.8954 22.1046 12 21 12H16Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M32 13.5H27C26.7239 13.5 26.5 13.7239 26.5 14V33C26.5 33.2761 26.7239 33.5 27 33.5H32C32.2761 33.5 32.5 33.2761 32.5 33V14C32.5 13.7239 32.2761 13.5 32 13.5ZM27 12C25.8954 12 25 12.8954 25 14V33C25 34.1046 25.8954 35 27 35H32C33.1046 35 34 34.1046 34 33V14C34 12.8954 33.1046 12 32 12H27Z",fill:"currentColor"}),(0,l.createElement)(f.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 13.5H38C37.7239 13.5 37.5 13.7239 37.5 14V33C37.5 33.2761 37.7239 33.5 38 33.5H43C43.2761 33.5 43.5 33.2761 43.5 33V14C43.5 13.7239 43.2761 13.5 43 13.5ZM38 12C36.8954 12 36 12.8954 36 14V33C36 34.1046 36.8954 35 38 35H43C44.1046 35 45 34.1046 45 33V14C45 12.8954 44.1046 12 43 12H38Z",fill:"currentColor"})),innerBlocks:[["mindspun/grid-row",{},[["mindspun/grid-col",{colspan:{desktop:"3"}},[["mindspun/paragraph",{content:"3",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"3"}},[["mindspun/paragraph",{content:"3",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"3"}},[["mindspun/paragraph",{content:"3",style:{textAlign:"center"}}]]],["mindspun/grid-col",{colspan:{desktop:"3"}},[["mindspun/paragraph",{content:"3",style:{textAlign:"center"}}]]]]]]}],E=e=>{const t=(0,c.useBlockPropsWithId)(e),n=h(e.clientId),{replaceInnerBlocks:o}=(0,C.useDispatch)("core/block-editor");return(0,l.createElement)("div",{...t},(0,l.createElement)(s.__experimentalBlockVariationPicker,{icon:i,label:(0,g.__)("Grid"),variations:w,onSelect:function(t){n&&o(e.clientId,(0,r.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))}}))},k=JSON.parse('{"UU":"mindspun/grid"}'),y=(0,l.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(o.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})),V=e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(s.InspectorControls,null,(0,l.createElement)("div",{className:"wp-block-mindspun-grid--controls",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},(0,l.createElement)(c.ContainerContents,null,(0,l.createElement)(c.GapControl,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))),(0,l.createElement)(s.InspectorAdvancedControls,null,(0,l.createElement)(c.BlockId,{attributes:e.attributes}),(0,l.createElement)(c.ViewAll,{attributes:e.attributes.style,onClear:()=>e.setAttributes({style:{}})})));(0,r.registerBlockType)("mindspun/grid-row",{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,title:"Grid Row",category:"mindspun-responsive-blocks",description:"A row in the grid layout",textdomain:"mrblx",parent:["mindspun/grid"],attributes:{blockId:{type:"string"},style:{type:"object",default:{}}},usesContext:["mindspun/grid"],edit:function(e){const t=(0,c.useBlockPropsWithId)(e),n=(0,s.useInnerBlocksProps)(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(V,{...e}),(0,l.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,l.createElement)("div",{...n}))},save:function(e){const t=c.useBlockPropsWithId.save(e),n=s.useInnerBlocksProps.save(t);return(0,l.createElement)("div",{...n})},icon:{foreground:"#005ffe",src:y}});const H=(0,l.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(o.Path,{d:"M16 11.2h-3.2V8h-1.6v3.2H8v1.6h3.2V16h1.6v-3.2H16z"}));function x(e){return e&&"auto"!==e?parseInt(e):12}function A(e){return e&&"default"!==e?"auto"===e?"auto":`${e}/12`:""}function I(e,t){switch(t){case"Tablet":return A(e.tablet);case"Mobile":return A(e.mobile)}return A(e.desktop)}function B(e){return e?"auto"===e||"default"===e?e:"fixed":"inherit"}function M(e){return"fixed"===e?"12":"auto"===e||"default"===e?e:void 0}function P(e){return e&&"auto"!==e&&"default"!==e}function Z(e){const t=["default"!==e.desktop?`mrblx-col-${e.desktop}`:"mrblx-col"];return e.tablet&&t.push("default"!==e.tablet?`mrblx-col-tablet-${e.tablet}`:"mrblx-col-tablet"),e.mobile&&t.push("default"!==e.mobile?`mrblx-col-mobile-${e.mobile}`:"mrblx-col-mobile"),t.join(" ")}const S=[{label:(0,g.__)("Inherit"),value:"inherit"},{label:(0,g.__)("Default"),value:"default"},{label:(0,g.__)("Fit to Content"),value:"auto"},{label:(0,g.__)("Fixed"),value:"fixed"}],_=e=>{const t=(0,c.useGetPreviewDeviceType)();return(0,l.createElement)("div",{className:"mrblx--colspan-control"},(0,l.createElement)(c.ControlHeader,{title:(0,g.__)("Column span"),hint:I(e.attributes,t),isResponsive:!0}),(0,l.createElement)(c.DeviceTypeContainer,{deviceType:"Desktop"},(0,l.createElement)(f.RadioControl,{selected:B(e.attributes.desktop),options:S.filter((e=>"inherit"!==e.value)),onChange:t=>{e.setAttributes({desktop:M(t)})}}),P(e.attributes.desktop)&&(0,l.createElement)(f.RangeControl,{value:x(e.attributes.desktop),onChange:t=>{e.setAttributes({desktop:t?t.toString():void 0})},min:1,max:12,showTooltip:!0,withInputField:!1})),(0,l.createElement)(c.DeviceTypeContainer,{deviceType:"Tablet"},(0,l.createElement)(f.RadioControl,{selected:B(e.attributes.tablet),options:S,onChange:t=>{e.setAttributes({tablet:M(t)})}}),P(e.attributes.tablet)&&(0,l.createElement)(f.RangeControl,{value:x(e.attributes.tablet),onChange:t=>{e.setAttributes({tablet:t?t.toString():void 0})},min:1,max:12,showTooltip:!0,withInputField:!1})),(0,l.createElement)(c.DeviceTypeContainer,{deviceType:"Mobile"},(0,l.createElement)(f.RadioControl,{selected:B(e.attributes.mobile),options:S,onChange:t=>{e.setAttributes({mobile:M(t)})}}),P(e.attributes.mobile)&&(0,l.createElement)(f.RangeControl,{value:x(e.attributes.mobile),onChange:t=>{e.setAttributes({mobile:t?t.toString():void 0})},min:1,max:12,showTooltip:!0,withInputField:!1})))},T=e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(s.InspectorControls,null,(0,l.createElement)(c.ContainerContents,null,(0,l.createElement)(_,{attributes:e.attributes.colspan,setAttributes:t=>{e.setAttributes({colspan:{...e.attributes.colspan,...t}})}}),(0,l.createElement)(c.BaseControls,{attributes:e.attributes.style?e.attributes.style:{},setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},options:{padding:{responsive:!0}}}))),(0,l.createElement)(s.InspectorAdvancedControls,null,(0,l.createElement)(c.BlockId,{attributes:e.attributes}),(0,l.createElement)(c.ViewAll,{attributes:e.attributes.style,onClear:()=>e.setAttributes({style:{}})})));(0,r.registerBlockType)("mindspun/grid-col",{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,title:"Grid Column",category:"mindspun-responsive-blocks",description:"A single column of a grid row.",textdomain:"mrblx",parent:["mindspun/grid-row"],attributes:{blockId:{type:"string"},colspan:{type:"object",default:{desktop:"default"}},style:{type:"object",default:{}}},usesContext:["mindspun/grid"],edit:function(e){const t=(0,c.useBlockPropsWithId)(e,{className:Z(e.attributes.colspan)}),n=(0,s.useInnerBlocksProps)(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(T,{...e}),(0,l.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,l.createElement)("div",{...n}))},save:function(e){const t=c.useBlockPropsWithId.save(e,{className:Z(e.attributes.colspan)}),n=s.useInnerBlocksProps.save(t);return(0,l.createElement)("div",{...n})},icon:{foreground:"#005ffe",src:H}});const W={foreground:"#005ffe",src:i};(0,r.registerBlockType)(k.UU,{edit:function(e){const t=h(e.clientId),n=v(e.clientId),[r,o]=(0,a.useState)(!1),i=(0,c.useBlockPropsWithId)(e,{className:m(e.attributes,r||n)}),d=(0,s.useInnerBlocksProps)(i);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(u,{...e,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1)}),(0,l.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),function(e){return e&&e.innerBlocks&&e.innerBlocks.length>0}(t)?(0,l.createElement)("div",{...d}):(0,l.createElement)(E,{...e}))},save:function(e){const t=c.useBlockPropsWithId.save(e),n=s.useInnerBlocksProps.save(t);return(0,l.createElement)("div",{...n})},icon:W})},373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(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 l.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)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(n=function(){return l}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var l=n[e];if(void 0!==l)return l.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,l,o)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,l,o]=e[u],s=!0,a=0;a<n.length;a++)(!1&o||i>=o)&&Object.keys(r.O).every((e=>r.O[e](n[a])))?n.splice(a--,1):(s=!1,o<i&&(i=o));if(s){e.splice(u--,1);var c=l();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,l,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={163:0,442:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var l,o,[i,s,a]=n,c=0;if(i.some((t=>0!==e[t]))){for(l in s)r.o(s,l)&&(r.m[l]=s[l]);if(a)var u=a(r)}for(t&&t(n);c<i.length;c++)o=i[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var l=r.O(void 0,[442],(()=>r(413)));l=r.O(l)})(); -
mindspun-responsive-blocks/trunk/dist/heading/block.json
r3093332 r3096856 3 3 "apiVersion": 3, 4 4 "name": "mindspun/heading", 5 "version": "0.1 5.2",5 "version": "0.16.0", 6 6 "title": "Heading", 7 7 "category": "mindspun-responsive-blocks", -
mindspun-responsive-blocks/trunk/dist/heading/index.asset.php
r3090237 r3096856 1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-primitives'), 'version' => ' 20979e25a6a3d36509c5');1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-primitives'), 'version' => '55fdb604d9ab68774843'); -
mindspun-responsive-blocks/trunk/dist/heading/index.js
r3090237 r3096856 1 (()=>{"use strict";var e,t={751:()=>{const e=window.wp.blocks,t=window.React,r=window.wp.primitives,n=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})),a=window.wp.blockEditor,o=window.mrblx,s=e=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(a.InspectorControls,null,(0,t.createElement)(o.ContainerContents,null,(0,t.createElement)(o.BaseControls,{attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},textAlign:{responsive:!0},fontSize:{responsive:!0},letterCase:!0,fontAppearance:!0,margin:{responsive:!0},padding:{responsive:!0}}},(0,t.createElement)(o.HeadingTagControl,{tagName:e.attributes.tagName,onChange:t=>e.setAttributes({tagName:t})}))),(0,t.createElement)(o.ContainerControl,{title:"Custom CSS"},(0,t.createElement)(o.ContainerContents,null,(0,t.createElement)(o.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))),(0,t.createElement)(a.InspectorAdvancedControls,null,(0,t.createElement)(o.BlockId,{attributes:e.attributes}))),i=JSON.parse('{"UU":"mindspun/heading"}'),l={foreground:"#005ffe",src:n};(0,e.registerBlockType)(i.UU,{edit:function(e){const r=(0,o.useBlockPropsWithId)(e),n=e.attributes.tagName?e.attributes.tagName:"h2";return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(s,{...e}),(0,t.createElement)(o.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,t.createElement)(a.RichText,{...r,tagName:n,onChange:t=>{e.setAttributes({content:t})},value:e.attributes.content,allowedFormats:["core/bold","core/italic","core/link"],placeholder:"Heading..."}))},save:function(e){const r=e.attributes.tagName?e.attributes.tagName:"h2";return(0,t.createElement)(a.RichText.Content,{...o.useBlockPropsWithId.save(e),tagName:r,value:e.attributes.content})},icon:l})}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,r,a,o)=>{if(!r){var s=1/0;for(u=0;u<e.length;u++){for(var[r,a,o]=e[u],i=!0,l=0;l<r.length;l++)(!1&o||s>=o)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(i=!1,o<s&&(s=o));if(i){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,a,o]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={327:0,920:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[s,i,l]=r,c=0;if(s.some((t=>0!==e[t]))){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(l)var u=l(n)}for(t&&t(r);c<s.length;c++)o=s[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(u)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=n.O(void 0,[920],(()=>n(751)));a=n.O(a)})();1 (()=>{"use strict";var t,e={751:()=>{const t=window.wp.blocks,e=window.React,r=window.wp.primitives,n=(0,e.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(r.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})),a=window.wp.blockEditor,s=window.mrblx,o=t=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.InspectorControls,null,(0,e.createElement)(s.ContainerContents,null,(0,e.createElement)(s.BaseControls,{attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},textAlign:{responsive:!0},fontSize:{responsive:!0},letterCase:!0,fontAppearance:!0,margin:{responsive:!0},padding:{responsive:!0}}},(0,e.createElement)(s.HeadingTagControl,{tagName:t.attributes.tagName,onChange:e=>t.setAttributes({tagName:e})}))),(0,e.createElement)(s.ContainerControl,{title:"Custom CSS"},(0,e.createElement)(s.ContainerContents,null,(0,e.createElement)(s.CustomCSSControl,{blockId:t.attributes.blockId,attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})))),(0,e.createElement)(a.InspectorAdvancedControls,null,(0,e.createElement)(s.BlockId,{attributes:t.attributes}),(0,e.createElement)(s.ViewAll,{attributes:t.attributes.style,onClear:()=>t.setAttributes({style:{}})}))),l=JSON.parse('{"UU":"mindspun/heading"}'),i={foreground:"#005ffe",src:n};(0,t.registerBlockType)(l.UU,{edit:function(t){const r=(0,s.useBlockPropsWithId)(t),n=t.attributes.tagName?t.attributes.tagName:"h2";return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o,{...t}),(0,e.createElement)(s.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,e.createElement)(a.RichText,{...r,tagName:n,onChange:e=>{t.setAttributes({content:e})},value:t.attributes.content,allowedFormats:["core/bold","core/italic","core/link"],placeholder:"Heading..."}))},save:function(t){const r=t.attributes.tagName?t.attributes.tagName:"h2";return(0,e.createElement)(a.RichText.Content,{...s.useBlockPropsWithId.save(t),tagName:r,value:t.attributes.content})},icon:i})}},r={};function n(t){var a=r[t];if(void 0!==a)return a.exports;var s=r[t]={exports:{}};return e[t](s,s.exports,n),s.exports}n.m=e,t=[],n.O=(e,r,a,s)=>{if(!r){var o=1/0;for(u=0;u<t.length;u++){for(var[r,a,s]=t[u],l=!0,i=0;i<r.length;i++)(!1&s||o>=s)&&Object.keys(n.O).every((t=>n.O[t](r[i])))?r.splice(i--,1):(l=!1,s<o&&(o=s));if(l){t.splice(u--,1);var c=a();void 0!==c&&(e=c)}}return e}s=s||0;for(var u=t.length;u>0&&t[u-1][2]>s;u--)t[u]=t[u-1];t[u]=[r,a,s]},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={327:0,920:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var a,s,[o,l,i]=r,c=0;if(o.some((e=>0!==t[e]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(i)var u=i(n)}for(e&&e(r);c<o.length;c++)s=o[c],n.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return n.O(u)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var a=n.O(void 0,[920],(()=>n(751)));a=n.O(a)})(); -
mindspun-responsive-blocks/trunk/dist/image/block.json
r3093332 r3096856 3 3 "apiVersion": 3, 4 4 "name": "mindspun/image", 5 "version": "0.1 5.2",5 "version": "0.16.0", 6 6 "title": "Image", 7 7 "category": "mindspun-responsive-blocks", -
mindspun-responsive-blocks/trunk/dist/image/index.asset.php
r3090237 r3096856 1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp- primitives'), 'version' => '2aae47c90cc476d70201');1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => 'b6736b9c09e9863dcb85'); -
mindspun-responsive-blocks/trunk/dist/image/index.js
r3090237 r3096856 1 (()=>{var t,e={ 328:(t,e,r)=>{"use strict";const i=window.wp.blocks,n=window.React,l=window.wp.primitives,o=(0,n.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),s=window.mrblx,a=window.wp.blockEditor,u=t=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(a.InspectorControls,null,(0,n.createElement)(s.ContainerContents,null,(0,n.createElement)(s.MediaControl,{attributes:t.attributes.media,setAttributes:e=>{t.setAttributes({media:{...t.attributes.media,...e}})},isResponsive:!0}),(0,n.createElement)(s.WidthHeightControl,{label:"Width",propertyName:"width",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,n.createElement)(s.WidthHeightControl,{label:"Max Width",propertyName:"maxWidth",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,n.createElement)(s.BaseControls,{attributes:t.attributes.style?t.attributes.style:{},setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},options:{margin:{responsive:!0}}})),(0,n.createElement)(s.ContainerControl,{title:"Custom CSS"},(0,n.createElement)(s.ContainerContents,null,(0,n.createElement)(s.CustomCSSControl,{blockId:t.attributes.blockId,attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})))),(0,n.createElement)(a.InspectorAdvancedControls,null,(0,n.createElement)(s.BlockId,{attributes:t.attributes})));var c=r(373),b=r.n(c);function d(t,e){return(0,s.propertyName)(t,!0,e)}function m(t){return void 0===t||t}function p(t,e){const r=[];for(const i of t){if(i.width>=e){i.width=e,r.push(i);break}r.push(i)}return r.length>0&&(r[r.length-1].width=e),r}function h(t,e){const r=[],i=t[d("sizes",e)];if(i)for(const t in i)r.push(i[t]);switch(r.sort(((t,e)=>t.width-e.width)),e){case"Tablet":return p(r,1024);case"Mobile":return p(r,480)}return r}function f(t){return b()([m(t.showOn)?"mrblx--d-block":"mrblx--d-none"],[m(t.tabletShowOn)?"mrblx--d-tablet-block":"mrblx--d-tablet-none"],[m(t.mobileShowOn)?"mrblx--d-mobile-block":"mrblx--d-mobile-none"])}const w=t=>{const{media:e,...r}=t,i=function(t){const e=function(t){return t.url?"Desktop":t.tabletUrl?"Tablet":t.mobileUrl?"Mobile":void 0}(t);return void 0===e?null:{id:t[d("id",e)],alt:t[d("alt",e)],url:t[d("url",e)],width:t[d("width",e)],height:t[d("height",e)]}}(e);if(!i)return null;const l={};return(0,n.createElement)(n.Fragment,null,e.mobileUrl&&h(e,"Mobile").map((t=>(l[t.width]=!0,(0,n.createElement)("source",{key:t.width,srcSet:t.url,media:`(max-width: ${t.width}px)`})))),e.tabletUrl&&h(e,"Tablet").map((t=>l[t.width]?null:(0,n.createElement)("source",{key:t.width,srcSet:t.url,media:`(max-width: ${t.width}px)`}))).filter((t=>null!==t)),(0,n.createElement)("img",{className:`wp-image-${i.id}`,id:i.id,alt:i.alt||"",src:i.url,width:i.width,height:i.height}))},v=JSON.parse('{"UU":"mindspun/image"}'),g={foreground:"#005ffe",src:o};(0,i.registerBlockType)(v.UU,{edit:function(t){const e=(0,s.useBlockPropsWithId)(t,{className:f(t.attributes.media)});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(u,{...t}),(0,n.createElement)(s.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,n.createElement)("picture",{...e},function(t){return!t.attributes.media.url&&!t.attributes.media.tabletUrl&&!t.attributes.media.mobileUrl}(t)?(0,n.createElement)("img",{alt:"Not found",src:"https://getmindspun.github.io/public/blocks/no-image-256x256.png",width:256,height:256}):(0,n.createElement)(w,{media:t.attributes.media})))},save:function(t){const e=s.useBlockPropsWithId.save(t,{className:f(t.attributes.media)});return(0,n.createElement)("picture",{...e},(0,n.createElement)(w,{media:t.attributes.media}))},icon:g})},373:(t,e)=>{var r;!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=o(t,l(r)))}return t}function l(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)i.call(t,r)&&t[r]&&(e=o(e,r));return e}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(n.default=n,t.exports=n):void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var l=r[t]={exports:{}};return e[t](l,l.exports,i),l.exports}i.m=e,t=[],i.O=(e,r,n,l)=>{if(!r){var o=1/0;for(c=0;c<t.length;c++){for(var[r,n,l]=t[c],s=!0,a=0;a<r.length;a++)(!1&l||o>=l)&&Object.keys(i.O).every((t=>i.O[t](r[a])))?r.splice(a--,1):(s=!1,l<o&&(o=l));if(s){t.splice(c--,1);var u=n();void 0!==u&&(e=u)}}return e}l=l||0;for(var c=t.length;c>0&&t[c-1][2]>l;c--)t[c]=t[c-1];t[c]=[r,n,l]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={414:0,585:0};i.O.j=e=>0===t[e];var e=(e,r)=>{var n,l,[o,s,a]=r,u=0;if(o.some((e=>0!==t[e]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(a)var c=a(i)}for(e&&e(r);u<o.length;u++)l=o[u],i.o(t,l)&&t[l]&&t[l][0](),t[l]=0;return i.O(c)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var n=i.O(void 0,[585],(()=>i(328)));n=i.O(n)})();1 (()=>{var t,e={868:(t,e,r)=>{"use strict";const i=window.wp.blocks,n=window.React,l=window.wp.primitives,a=(0,n.createElement)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(l.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),s=window.mrblx,o=window.wp.blockEditor,u=window.wp.components,c=window.wp.i18n,b=t=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(o.InspectorControls,null,(0,n.createElement)(s.ContainerContents,null,(0,n.createElement)(s.MediaControl,{attributes:t.attributes.media,setAttributes:e=>{t.setAttributes({media:{...t.attributes.media,...e}})},isResponsive:!0}),t.attributes.media?.url?(0,n.createElement)(u.TextareaControl,{label:(0,c.__)("Alternative Text"),value:t.attributes.media.alt?t.attributes.media.alt:"",onChange:e=>{const r={...t.attributes.media,alt:e};t.setAttributes({media:r})}}):null,(0,n.createElement)(s.WidthHeightControl,{label:"Width",propertyName:"width",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,n.createElement)(s.WidthHeightControl,{label:"Max Width",propertyName:"maxWidth",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,n.createElement)(s.BaseControls,{attributes:t.attributes.style?t.attributes.style:{},setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},options:{margin:{responsive:!0}}})),(0,n.createElement)(s.ContainerControl,{title:"Custom CSS"},(0,n.createElement)(s.ContainerContents,null,(0,n.createElement)(s.CustomCSSControl,{blockId:t.attributes.blockId,attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})))),(0,n.createElement)(o.InspectorAdvancedControls,null,(0,n.createElement)(s.BlockId,{attributes:t.attributes}),(0,n.createElement)(s.ViewAll,{attributes:t.attributes.style,onClear:()=>t.setAttributes({style:{}})})));var d=r(373),m=r.n(d);function p(t,e){return(0,s.propertyName)(t,!0,e)}function h(t){return void 0===t||t}function w(t,e){const r=[];for(const i of t){if(i.width>=e){i.width=e,r.push(i);break}r.push(i)}return r.length>0&&(r[r.length-1].width=e),r}function f(t,e){const r=[],i=t[p("sizes",e)];if(i)for(const t in i)r.push(i[t]);switch(r.sort(((t,e)=>t.width-e.width)),e){case"Tablet":return w(r,1024);case"Mobile":return w(r,480)}return r}function v(t){return m()([h(t.showOn)?"mrblx--d-block":"mrblx--d-none"],[h(t.tabletShowOn)?"mrblx--d-tablet-block":"mrblx--d-tablet-none"],[h(t.mobileShowOn)?"mrblx--d-mobile-block":"mrblx--d-mobile-none"])}const g=t=>{const{media:e,...r}=t,i=function(t){const e=function(t){return t.url?"Desktop":t.tabletUrl?"Tablet":t.mobileUrl?"Mobile":void 0}(t);return void 0===e?null:{id:t[p("id",e)],alt:t[p("alt",e)],url:t[p("url",e)],width:t[p("width",e)],height:t[p("height",e)]}}(e);if(!i)return null;const l={};return(0,n.createElement)(n.Fragment,null,e.mobileUrl&&f(e,"Mobile").map((t=>(l[t.width]=!0,(0,n.createElement)("source",{key:t.width,srcSet:t.url,media:`(max-width: ${t.width}px)`})))),e.tabletUrl&&f(e,"Tablet").map((t=>l[t.width]?null:(0,n.createElement)("source",{key:t.width,srcSet:t.url,media:`(max-width: ${t.width}px)`}))).filter((t=>null!==t)),(0,n.createElement)("img",{className:`wp-image-${i.id}`,id:i.id,alt:i.alt||"",src:i.url,width:i.width,height:i.height}))},y=JSON.parse('{"UU":"mindspun/image"}'),E={foreground:"#005ffe",src:a};(0,i.registerBlockType)(y.UU,{edit:function(t){const e=(0,s.useBlockPropsWithId)(t,{className:v(t.attributes.media)});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(b,{...t}),(0,n.createElement)(s.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,n.createElement)("picture",{...e},function(t){return!t.attributes.media.url&&!t.attributes.media.tabletUrl&&!t.attributes.media.mobileUrl}(t)?(0,n.createElement)("img",{alt:"Not found",src:"https://getmindspun.github.io/public/blocks/no-image-256x256.png",width:256,height:256}):(0,n.createElement)(g,{media:t.attributes.media})))},save:function(t){const e=s.useBlockPropsWithId.save(t,{className:v(t.attributes.media)});return(0,n.createElement)("picture",{...e},(0,n.createElement)(g,{media:t.attributes.media}))},icon:E})},373:(t,e)=>{var r;!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=a(t,l(r)))}return t}function l(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)i.call(t,r)&&t[r]&&(e=a(e,r));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(n.default=n,t.exports=n):void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var l=r[t]={exports:{}};return e[t](l,l.exports,i),l.exports}i.m=e,t=[],i.O=(e,r,n,l)=>{if(!r){var a=1/0;for(c=0;c<t.length;c++){for(var[r,n,l]=t[c],s=!0,o=0;o<r.length;o++)(!1&l||a>=l)&&Object.keys(i.O).every((t=>i.O[t](r[o])))?r.splice(o--,1):(s=!1,l<a&&(a=l));if(s){t.splice(c--,1);var u=n();void 0!==u&&(e=u)}}return e}l=l||0;for(var c=t.length;c>0&&t[c-1][2]>l;c--)t[c]=t[c-1];t[c]=[r,n,l]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={414:0,585:0};i.O.j=e=>0===t[e];var e=(e,r)=>{var n,l,[a,s,o]=r,u=0;if(a.some((e=>0!==t[e]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(o)var c=o(i)}for(e&&e(r);u<a.length;u++)l=a[u],i.o(t,l)&&t[l]&&t[l][0](),t[l]=0;return i.O(c)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var n=i.O(void 0,[585],(()=>i(868)));n=i.O(n)})(); -
mindspun-responsive-blocks/trunk/dist/link/block.json
r3093332 r3096856 3 3 "apiVersion": 3, 4 4 "name": "mindspun/link-group", 5 "version": "0.1 5.2",5 "version": "0.16.0", 6 6 "title": "Link Group", 7 7 "category": "mindspun-responsive-blocks", -
mindspun-responsive-blocks/trunk/dist/mrblx.asset.php
r3093332 r3096856 1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-codemirror', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '4 0860089092b798d1a88');1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-block-editor', 'wp-codemirror', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '4408bdab97bfddfd9993'); -
mindspun-responsive-blocks/trunk/dist/mrblx.js
r3093332 r3096856 1 var mrblx;(()=>{var t,e={ 698:(t,e,n)=>{"use strict";n.r(e),n.d(e,{BackgroundColorControl:()=>ut,BackgroundImageControl:()=>mt,BaseControls:()=>So,BlockAlignControl:()=>wt,BlockId:()=>u,BorderControl:()=>oe,BorderRadiusControl:()=>ee,BoxShadowControl:()=>ve,CSSBuilder:()=>Y,ClearButton:()=>c,ColorControl:()=>st,ColorsGroup:()=>b,ContainerContents:()=>_,ContainerControl:()=>he,ControlGroup:()=>To,ControlHeader:()=>L,CustomCSSControl:()=>Re,DeviceTypeContainer:()=>M,FontAppearanceControl:()=>Te,FontSizeControl:()=>Ie,GapControl:()=>Je,HeadingTagControl:()=>qe,JustifyContentControl:()=>ln,LetterCaseControl:()=>vn,LinkControl:()=>hn,ListStyleTypeControl:()=>mn,MarginControl:()=>Ln,MediaControl:()=>En,PaddingControl:()=>qn,Portal:()=>z,StylePortalClientId:()=>Q,TabbedContainer:()=>tt,TabbedControl:()=>fo,TextAlignControl:()=>to,UnitRangeControl:()=>Vt,VerticalAlignControl:()=>co,WidthHeightControl:()=>Ro,buildCSS:()=>$,propertyName:()=>K,useBlockId:()=>j,useBlockPropsWithId:()=>R,useBlockState:()=>w,useGetPreviewDeviceType:()=>x,useMobile:()=>m,useSetPreviewDeviceType:()=>y});const o=window.wp.data;var i=function(){return i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)};if(!window.mrblxStore){var r={blockIds:{},controlStates:{}},a=(0,o.createReduxStore)("mrblx/block-data",{reducer:function(t,e){var n,o;switch(void 0===t&&(t=r),e.type){case"SET_BLOCK_ID":return i(i({},t),{blockIds:i(i({},t.blockIds),(n={},n[e.blockId]=e.clientId,n))});case"SET_CONTROL_STATE":return i(i({},t),{controlStates:i(i({},t.controlStates),(o={},o[e.key]=e.value,o))});default:return t}},actions:{setBlockId:function(t,e){return{type:"SET_BLOCK_ID",blockId:t,clientId:e}},setControlState:function(t,e){return{type:"SET_CONTROL_STATE",key:t,value:e}}},selectors:{checkBlockId:function(t,e,n){return!e||!t.blockIds.hasOwnProperty(e)||t.blockIds[e]===n},getControlState:function(t,e){return t.controlStates[e]}}});(0,o.register)(a),window.mrblxStore=a}var s=n(85);const l=window.wp.i18n,u=function(t){return(0,s.jsxs)("div",{className:"mrblx--block-id",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mrblx-label",children:[(0,l.__)("block id"),":"]}),(0,s.jsx)("div",{children:(0,s.jsxs)("strong",{children:["mrblx-",t.attributes.blockId]})})]}),(0,s.jsx)("div",{children:(0,s.jsx)("small",{children:(0,l.__)("This block has a persistent block ID and may be referenced in an anchor tag.")})})]})},d=window.wp.components,c=function(t){return(0,s.jsx)("div",{className:"mrblx--clear-button",children:(0,s.jsx)(d.Button,{variant:"tertiary",onClick:t.onClick,children:"Clear"})})},b=function(t){return(0,s.jsxs)("div",{className:"mrblx--colors-group",children:[t.isResponsive&&(0,s.jsx)(L,{isResponsive:!0}),(0,s.jsx)("div",{className:"mrblx-colors",children:t.children})]})};var v=n(609);const f=window.wp.primitives,p=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),h=window.wp.element;var g=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a};function m(){var t=g((0,h.useState)(window.innerWidth<650),2),e=t[0],n=t[1];return(0,h.useEffect)((function(){window.addEventListener("resize",(function(){window.innerWidth<650?n(!0):n(!1)}))})),e}function x(t){return t=void 0===t||t,(0,o.useSelect)((function(e){if(!t)return{deviceType:"Desktop"};var n=e("core/editor");if(n&&n.getDeviceType)return{deviceType:n.getDeviceType()};var o=e("core/edit-post");return{deviceType:o?o.__experimentalGetPreviewDeviceType():"Desktop"}}),[t]).deviceType}function y(){var t=(0,o.useDispatch)("core/editor"),e=(0,o.useDispatch)("core/edit-post");return function(n){t.setDeviceType?t.setDeviceType(n):e.__experimentalSetPreviewDeviceType(n)}}var C={};function j(t,e){var n=(0,o.useSelect)((function(t){return{checkBlockId:t("mrblx/block-data").checkBlockId}}),[]).checkBlockId,i=(0,o.useDispatch)("mrblx/block-data").setBlockId,r=(0,o.useSelect)((function(t){var e=t("core/editor").getCurrentPostId();return null!==e?e.toString().replace(/\/+/g,"--"):"0"}),[]),a="".concat(r,"_").concat(e.substring(2,9));return t&&r===function(t){if(t){var e=t.split("_");if(2===e.length)return e[0]}return null}(t)&&n(t,e)||(t=function(t){C[t]||(C[t]=0);var e=++C[t];return"".concat(t).concat(e)}(a)),i(t,e),t}const A=window.wp.blockEditor;function R(t,e){var n=j(t.attributes.blockId,t.clientId),o=(0,A.useBlockProps)(e);return o["data-mrblx-id"]="".concat(n),(0,h.useEffect)((function(){n!==t.attributes.blockId&&t.setAttributes({blockId:n})}),[n,t,t.attributes.blockId]),o}function w(t){var e=(0,o.useDispatch)("mrblx/block-data");return[(0,o.useSelect)((function(e){return{controlState:e("mrblx/block-data").getControlState(t)}}),[t]).controlState,(0,h.useCallback)((function(n){e.setControlState(t,n)}),[e,t])]}R.save=function(t,e){var n=A.useBlockProps.save(e);return t.attributes.blockId&&(n.id="mrblx-".concat(t.attributes.blockId)),n};const B=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})}),k=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),S=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})),T=function(t){return(0,s.jsx)(d.Button,{isSmall:!0,icon:t.isLinked?k:S,onClick:function(){return t.onLinkedChange(!t.isLinked)},variant:"tertiary",label:t.isLinked?"Unlinked":"Linked",showTooltip:!0})},L=function(t){var e=x(),n=y();return(0,s.jsxs)("div",{className:"mrblx--control-header",children:[(0,s.jsxs)("label",{children:[t.title,t.hint&&(0,s.jsx)("span",{children:t.hint})]}),!!t.onExpand&&(0,s.jsx)(d.Button,{icon:"fullscreen-alt",isSmall:!0,onClick:t.onExpand?t.onExpand:void 0,label:(0,l.__)("Expand"),showTooltip:!0},"expand"),!!t.isResponsive&&(0,s.jsxs)(d.ButtonGroup,{children:[(0,s.jsx)(d.Button,{icon:"desktop",isSmall:!0,label:(0,l.__)("Desktop"),showTooltip:!0,isPressed:"Desktop"===e,onClick:function(){return n("Desktop")}},"desktop"),(0,s.jsx)(d.Button,{icon:"tablet",isSmall:!0,label:(0,l.__)("Tablet"),showTooltip:!0,isPressed:"Tablet"===e,onClick:function(){return n("Tablet")}},"tablet"),(0,s.jsx)(d.Button,{icon:"smartphone",isSmall:!0,label:(0,l.__)("Mobile"),showTooltip:!0,isPressed:"Mobile"===e,onClick:function(){return n("Mobile")}},"mobile")]}),void 0!==t.isAdvanced&&t.onAdvancedChange&&(0,s.jsx)(d.Button,{icon:B,isSmall:!0,isPressed:t.isAdvanced,onClick:function(){return t.onAdvancedChange(!t.isAdvanced)},label:t.isAdvanced?(0,l.__)("Use size preset"):(0,l.__)("Set custom size"),showTooltip:!0},"slider"),void 0!==t.isLinked&&t.onLinkedChange&&(0,s.jsx)(T,{isLinked:t.isLinked,onLinkedChange:t.onLinkedChange}),!!t.onClear&&(0,s.jsx)(d.Button,{icon:p,isSmall:!0,onClick:t.onClear,label:(0,l.__)("Reset"),showTooltip:!0},"clear")]})},_=function(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mrblx--container-contents",children:t.children}),t.showDivider&&(0,s.jsx)("div",{className:"mrblx--divider"})]})},M=function(t){return x().toLowerCase()!==t.deviceType.toLowerCase()?null:(0,s.jsx)(s.Fragment,{children:t.children})},P=window.ReactDOM;var O=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a};const z=function(t){var e,n,o=t.selector?t.selector:"head",i=t.tagName?t.tagName:"div",r=document.querySelector(o),a=document.createElement(i);if(t.id&&a.setAttribute("id",t.id),t.data)try{for(var s=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(t.data)),l=s.next();!l.done;l=s.next()){var u=O(l.value,2),d=u[0],c=u[1];a.setAttribute("data-".concat(d),c)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return(0,h.useEffect)((function(){if(r)return r.appendChild(a),function(){r.removeChild(a)}}),[a,r]),(0,P.createPortal)(t.children,a)},I=/([\p{Ll}\d])(\p{Lu})/gu,E=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,N=/(\d)\p{Ll}|(\p{L})\d/u,H=/[^\p{L}\d]+/giu,V="$1\0$2",F="";function D(t){let e=t.trim();e=e.replace(I,V).replace(E,V),e=e.replace(H,"\0");let n=0,o=e.length;for(;"\0"===e.charAt(n);)n++;if(n===o)return[];for(;"\0"===e.charAt(o-1);)o--;return e.slice(n,o).split(/\0/g)}function G(t){const e=D(t);for(let t=0;t<e.length;t++){const n=e[t],o=N.exec(n);if(o){const i=o.index+(o[1]??o[2]).length;e.splice(t,1,n.slice(0,i),n.slice(i))}}return e}function W(t,e){const[n,o,i]=function(t,e={}){const n=e.split??(e.separateNumbers?G:D),o=e.prefixCharacters??F,i=e.suffixCharacters??F;let r=0,a=t.length;for(;r<t.length;){const e=t.charAt(r);if(!o.includes(e))break;r++}for(;a>r;){const e=a-1,n=t.charAt(e);if(!i.includes(n))break;a=e}return[t.slice(0,r),n(t.slice(r,a)),t.slice(a)]}(t,e);return n+o.map((r=e?.locale,!1===r?t=>t.toLowerCase():t=>t.toLocaleLowerCase(r))).join(e?.delimiter??" ")+i;var r}function U(t,e){return W(t,{delimiter:"-",...e})}var X=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},Z=["accentColor","alignItems","backgroundColor","backgroundImage","backgroundSize","borderBottom","borderBottomLeftRadius","borderBottomRightRadius","borderLeft","borderRight","borderTop","borderTopLeftRadius","borderTopRightRadius","bottom","boxShadow","color","customCSS","display","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","fontSize","fontStyle","fontWeight","gap","height","justifyContent","lineHeight","listStyleType","left","margin","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","position","overflowX","overflowY","right","tableLayout","textAlign","textTransform","top","verticalAlign","whiteSpace","width"],q=function(){function t(t){this.device="desktop",this.hover=!1,this.name=t,this.parse()}return t.lcfirst=function(t){return t[0].toLowerCase()+t.slice(1)},t.prototype.parse=function(){this.name.startsWith("tablet")?(this.name=t.lcfirst(this.name.slice(6)),this.device="tablet"):this.name.startsWith("mobile")&&(this.name=t.lcfirst(this.name.slice(6)),this.device="mobile"),this.name.endsWith("Hover")&&(this.name=this.name.substring(0,this.name.length-5),this.hover=!0)},t}(),Y=function(){function t(){this.state={desktop:{},desktopHover:{},tablet:{},tabletHover:{},mobile:{},mobileHover:{}}}return t.prototype.stateName=function(t){switch(t.device){case"mobile":return t.hover?"mobileHover":"mobile";case"tablet":return t.hover?"tabletHover":"tablet"}return t.hover?"desktopHover":"desktop"},t.prototype.addProperty=function(t,e){var n=new q(t);Z.includes(n.name)&&void 0!==e&&(this.state[this.stateName(n)][n.name]=e)},t.prototype.addAttributes=function(t){var e,n;try{for(var o=X(Object.entries(t)),i=o.next();!i.done;i=o.next()){var r=J(i.value,2),a=r[0],s=r[1];this.addProperty(a,s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}},t.prototype.ruleset=function(t,e,n,o){var i,r;void 0===n&&(n=null),void 0===o&&(o=!1);var a=[];try{for(var s=X(Object.entries(e)),l=s.next();!l.done;l=s.next()){var u=J(l.value,2),d=u[0],c=u[1];if("customCSS"!==d){var b=U(d);a.push("".concat(b,":").concat(c))}}}catch(t){i={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}if(0===a.length)return"";var v="#".concat(t);return n&&(v+=" ".concat(n)),o&&(v+=":hover"),a.length>0?"".concat(v,"{").concat(a.join(";"),"}"):""},t.isEmpty=function(t){return 0===Object.keys(t).length},t.prototype.toCSS=function(e,n){void 0===n&&(n={});var o,i=[];return t.isEmpty(this.state.desktop)||((o=this.ruleset(e,this.state.desktop,n.selector))&&i.push(o),this.state.desktop.customCSS&&i.push(this.state.desktop.customCSS)),t.isEmpty(this.state.desktopHover)||i.push(this.ruleset(e,this.state.desktopHover,n.selector,!0)),t.isEmpty(this.state.tablet)||((o=this.ruleset(e,this.state.tablet,n.selector))&&i.push("@media (max-width:1024px){".concat(o,"}")),this.state.tablet.customCSS&&i.push("@media (max-width:1024px){".concat(this.state.tablet.customCSS,"}"))),t.isEmpty(this.state.tabletHover)||i.push("@media (max-width:1024px){"+this.ruleset(e,this.state.tabletHover,n.selector,!0)+"}"),t.isEmpty(this.state.mobile)||((o=this.ruleset(e,this.state.mobile,n.selector))&&i.push("@media (max-width:480px){".concat(o,"}")),this.state.mobile.customCSS&&i.push("@media (max-width:480px){".concat(this.state.mobile.customCSS,"}"))),t.isEmpty(this.state.mobileHover)||i.push("@media (max-width:480px){"+this.ruleset(e,this.state.mobileHover,n.selector,!0)+"}"),i.join("\n")},t}();function $(t,e,n){void 0===n&&(n={});var o=new Y;return o.addAttributes(e),o.toCSS(t,n)}function K(t,e,n){if(e)switch(n=n.toLowerCase()){case"tablet":case"mobile":return n+t.charAt(0).toUpperCase()+t.substring(1)}return t}const Q=function(t){var e=x(),n=document.querySelector('iframe[name="editor-canvas"]'),o=$("block-".concat(t.clientId),t.attributes,{selector:t.selector});return(0,h.useEffect)((function(){if(n&&o){var e=n.contentDocument;if(e){var i=e.createElement("style");return i.setAttribute("data-client-id",t.clientId),i.innerHTML=o,e.head.appendChild(i),function(){e.head.removeChild(i)}}}}),[e,n,t.clientId,t.attributes,o]),o?(0,s.jsx)(z,{selector:"head",tagName:"style",data:{"client-id":t.clientId},children:o}):null},tt=function(t){return(0,s.jsx)("div",{className:"mrblx--tabbed-container",children:t.children})},et=function(t){return(0,s.jsxs)(d.Button,{className:"mrblx--color-display",onClick:t.onClick,children:[(0,s.jsx)(d.ColorIndicator,{colorValue:t.colorValue}),t.title]})};const nt=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),n=e[0],i=e[1],r=m(),a=(0,o.useSelect)((function(t){var e=t("core/block-editor");return e?e.getSettings().colors:[]}),[]),l=r?"bottom-start":"left-start",u=r?-36:20;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(et,{colorValue:t.value,title:t.label,onClick:function(){return i(!n)}}),n&&(0,s.jsx)(d.Popover,{onClose:function(){i(!1)},placement:t.placement?t.placement:l,offset:u,children:(0,s.jsx)("div",{className:"mrblx--popover",children:(0,s.jsx)(d.ColorPalette,{colors:a,value:t.value,onChange:t.onChange})})})]})};var ot=function(){return ot=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ot.apply(this,arguments)};const it=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(nt,{label:t.label,value:t.attributes.color,onChange:function(e){t.setAttributes(ot(ot({},t.attributes),{color:e}))},placement:t.placement}),"Tablet"===e&&(0,s.jsx)(nt,{label:t.label,value:t.attributes.tabletColor,onChange:function(e){t.setAttributes(ot(ot({},t.attributes),{tabletColor:e}))},placement:t.placement}),"Mobile"===e&&(0,s.jsx)(nt,{label:t.label,value:t.attributes.mobileColor,onChange:function(e){t.setAttributes(ot(ot({},t.attributes),{mobileColor:e}))},placement:t.placement})]})};var rt=function(){return rt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},rt.apply(this,arguments)},at=function(t){return(0,s.jsxs)("div",{className:"mrblx--color-control",children:[t.isResponsive&&!t.hideHeader&&(0,s.jsx)(L,{isResponsive:!0}),t.isResponsive?(0,s.jsx)(it,rt({},t,{label:t.label})):(0,s.jsx)(nt,{label:t.label?t.label:at.defaultProps.label,value:t.attributes.color,onChange:function(e){t.setAttributes(rt(rt({},t.attributes),{color:e}))},placement:t.placement})]})};at.defaultProps={label:(0,l.__)("Color")};const st=at;var lt=function(t){return(0,s.jsx)(st,{label:t.label,attributes:{color:t.attributes.backgroundColor,tabletColor:t.attributes.tabletBackgroundColor,mobileColor:t.attributes.mobileBackgroundColor},setAttributes:function(e){t.setAttributes({backgroundColor:e.color,tabletBackgroundColor:e.tabletColor,mobileBackgroundColor:e.mobileColor})},isResponsive:t.isResponsive,placement:t.placement,hideHeader:t.hideHeader})};lt.defaultProps={label:(0,l.__)("Background")};const ut=lt;function dt(t){if(t&&!t.startsWith("url("))return"url(".concat(t,")")}function ct(t){if(t&&"none"!==t)return t.startsWith("url(")&&(t=t.substring(4)),t.endsWith(")")&&(t=t.substring(0,t.length-1)),t}function bt(t){return void 0===t||t}function vt(t,e){switch(e){case"Mobile":return"none"!==t.mobileBackgroundImage&&!!(t.mobileBackgroundImage||t.tabletBackgroundImage&&"none"!==t.tabletBackgroundImage||t.backgroundImage&&"none"!==t.backgroundImage);case"Tablet":return!!(t.tabletBackgroundImage||t.backgroundImage&&"none"!==t.backgroundImage)}return!(!t.backgroundImage||"none"===t.backgroundImage)}var ft=[{label:"Default",value:"default"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"Auto",value:"auto"}];const pt=function(t){return(0,s.jsx)("div",{className:"mrblx--background-size-control",children:(0,s.jsx)(d.SelectControl,{label:(0,l.__)("Background size"),value:t.value?t.value:"default",options:ft,onChange:function(e){return t.onChange("default"!==(n=e)?n:void 0);var n},__nextHasNoMarginBottom:!0})})};var ht=function(){return ht=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ht.apply(this,arguments)};function gt(t,e){if(t)return"string"==typeof t?t:t[e]}const mt=function(t){var e,n=x(),o=void 0!==t.label?t.label:"Background Image",i={url:ct((e=t.attributes).backgroundImage),showOn:"none"!==e.backgroundImage,tabletUrl:ct(e.tabletBackgroundImage),tabletShowOn:"none"!==e.tabletBackgroundImage,mobileUrl:ct(e.mobileBackgroundImage),mobileShowOn:"none"!==e.mobileBackgroundImage};return(0,s.jsxs)("div",{className:"mrblx--background-image-control",children:[(0,s.jsx)(En,{title:o,attributes:i,setAttributes:function(e){var n=function(t,e){var n=bt(e.showOn)?dt(e.url):"none",o=bt(e.tabletShowOn)?dt(e.tabletUrl):"none",i=bt(e.mobileShowOn)?dt(e.mobileUrl):"none";return{backgroundImage:n,backgroundSize:n&&"none"!==n?t.backgroundSize:void 0,tabletBackgroundImage:o,tabletBackgroundSize:o&&"none"!==o?t.tabletBackgroundSize:void 0,mobileBackgroundImage:i,mobileBackgroundSize:i&&"none"!==i?t.mobileBackgroundSize:void 0}}(t.attributes,ht(ht({},i),e));t.setAttributes(ht(ht({},t.attributes),n))},help:gt(t.help,"desktop"),isResponsive:t.isResponsive}),vt(t.attributes,n)&&(0,s.jsx)(pt,{value:t.attributes[K("backgroundSize",t.isResponsive,n)],onChange:function(e){var o;t.setAttributes(((o={})[K("backgroundSize",t.isResponsive,n)]=e,o))}})]})};var xt=function(t){return(0,s.jsxs)(d.ButtonGroup,{children:[t.options.includes("left")&&(0,s.jsx)(d.Button,{icon:"align-left",label:(0,l.__)("Align left"),showTooltip:!0,isPressed:"left"===t.blockAlign,onClick:function(){var e="left"!==t.blockAlign?"left":void 0;t.onChange(e)}},"left"),t.options.includes("center")&&(0,s.jsx)(d.Button,{icon:"align-center",label:(0,l.__)("Align center"),showTooltip:!0,isPressed:"center"===t.blockAlign,onClick:function(){var e="center"!==t.blockAlign?"center":void 0;t.onChange(e)}},"center"),t.options.includes("right")&&(0,s.jsx)(d.Button,{icon:"align-right",label:(0,l.__)("Align right"),showTooltip:!0,isPressed:"right"===t.blockAlign,onClick:function(){var e="right"!==t.blockAlign?"right":void 0;t.onChange(e)}},"right"),t.options.includes("wide")&&(0,s.jsx)(d.Button,{icon:"align-wide",label:(0,l.__)("Align wide"),showTooltip:!0,isPressed:"wide"===t.blockAlign,onClick:function(){var e="wide"!==t.blockAlign?"wide":void 0;t.onChange(e)}},"wide"),t.options.includes("full")&&(0,s.jsx)(d.Button,{icon:"align-full-width",label:(0,l.__)("Align full width"),showTooltip:!0,isPressed:"full"===t.blockAlign,onClick:function(){var e="full"!==t.blockAlign?"full":void 0;t.onChange(e)}},"full")]})};xt.defaultProps={label:(0,l.__)("Block Align"),options:["left","center","right","wide","full"]};const yt=xt;var Ct=function(){return Ct=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ct.apply(this,arguments)};const jt=function(t){var e=x(),n=t.options?t.options:["left","center","right","wide","full"];return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(yt,{blockAlign:t.attributes.blockAlign,onChange:function(e){t.setAttributes(Ct(Ct({},t.attributes),{blockAlign:e}))},options:n}),"Tablet"===e&&(0,s.jsx)(yt,{blockAlign:t.attributes.tabletBlockAlign,onChange:function(e){t.setAttributes(Ct(Ct({},t.attributes),{tabletBlockAlign:e}))},options:n}),"Mobile"===e&&(0,s.jsx)(yt,{blockAlign:t.attributes.mobileBlockAlign,onChange:function(e){t.setAttributes(Ct(Ct({},t.attributes),{mobileBlockAlign:e}))},options:n})]})};var At=function(){return At=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},At.apply(this,arguments)},Rt=function(t){return(0,s.jsxs)("div",{className:"mrblx--block-align-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)(jt,At({},t)):(0,s.jsx)(yt,{label:t.label,options:t.options,blockAlign:t.attributes.blockAlign,onChange:function(e){t.setAttributes(At(At({},t.attributes),{blockAlign:e}))}})]})};Rt.defaultProps={label:(0,l.__)("Block Align"),options:["left","center","right","wide","full"]};const wt=Rt;var Bt=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],kt={style:void 0,color:void 0,width:void 0};function St(t){var e=(t=t||kt).width?[t.width]:[];e.push(t.style?t.style:"none"),t.color&&e.push(t.color);var n=e.join(" ");if("none"!==n)return n&&"none"!==n?n:void 0}function Tt(t){if(!t||Number.isInteger(t))return kt;var e=t.split(" ");if(e.length>3)return kt;var n=function(t){var e,n;try{for(var o=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Bt),i=o.next();!i.done;i=o.next()){var r=i.value,a=t.indexOf(r);if(-1!==a)return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return-1}(e);if(-1===n||2===n)return kt;var o={style:e[n],color:void 0,width:"0px"};return 0===n?e.length>1&&(o.color=e[1]):1===n&&(o.width=e[0],e.length>2&&(o.color=e[2])),o}function Lt(t,e){return t?"MIXED":"0px"===e?"0":void 0!==e?e.toString():"∅"}function _t(t){return t.borderTopRightRadius===t.borderBottomRightRadius&&t.borderTopRightRadius===t.borderBottomLeftRadius&&t.borderTopRightRadius===t.borderTopLeftRadius}function Mt(t,e){switch(e){case"Tablet":return void 0!==t.tabletBorderTop||void 0!==t.tabletBorderRight||void 0!==t.tabletBorderBottom||void 0!==t.tabletBorderLeft;case"Mobile":return void 0!==t.mobileBorderTop||void 0!==t.mobileBorderRight||void 0!==t.mobileBorderBottom||void 0!==t.mobileBorderLeft}return void 0!==t.borderTop||void 0!==t.borderLeft||void 0!==t.borderBottom||void 0!==t.borderRight}const Pt=function(t){var e={top:Tt(t.attributes.borderTop),right:Tt(t.attributes.borderRight),bottom:Tt(t.attributes.borderBottom),left:Tt(t.attributes.borderLeft)};return(0,s.jsx)(d.__experimentalBorderBoxControl,{onChange:function(e){if(e)if(e.top||e.right||e.bottom||e.left){var n=e;t.setAttributes({borderTop:St(n.top),borderRight:St(n.right),borderBottom:St(n.bottom),borderLeft:St(n.left)})}else{var o=St(e);t.setAttributes({borderTop:o,borderRight:o,borderBottom:o,borderLeft:o})}else t.setAttributes({borderTop:void 0,borderRight:void 0,borderBottom:void 0,borderLeft:void 0})},value:e})},Ot=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Pt,{attributes:t.attributes,setAttributes:function(e){return t.setAttributes(e)}}),"Tablet"===e&&(0,s.jsx)(Pt,{attributes:{borderTop:t.attributes.tabletBorderTop,borderRight:t.attributes.tabletBorderRight,borderBottom:t.attributes.tabletBorderBottom,borderLeft:t.attributes.tabletBorderLeft},setAttributes:function(e){return t.setAttributes({tabletBorderTop:e.borderTop,tabletBorderRight:e.borderRight,tabletBorderBottom:e.borderBottom,tabletBorderLeft:e.borderLeft})}}),"Mobile"===e&&(0,s.jsx)(Pt,{attributes:{borderTop:t.attributes.mobileBorderTop,borderRight:t.attributes.mobileBorderRight,borderBottom:t.attributes.mobileBorderBottom,borderLeft:t.attributes.mobileBorderLeft},setAttributes:function(e){return t.setAttributes({mobileBorderTop:e.borderTop,mobileBorderRight:e.borderRight,mobileBorderBottom:e.borderBottom,mobileBorderLeft:e.borderLeft})}})]})};function zt(t){return"number"==typeof t||void 0!==t&&/^-?\d+$/.test(t)}function It(t,e){if(void 0===e&&(e="px"),void 0===t)return[void 0,e];if(0===t)return[0,e];if("0"===(t=t.toString().trim()))return[0,e];if("auto"===t)return[void 0,e];var n=t.match(/^(-)?(\d*\.?\d*)(px|%|em|rem|vw|vh)?$/);if(!n)return[0,e];var o=n[1]?-1:1,i=parseFloat(n[2]);return isNaN(i)?[void 0,n[3]]:[o*i,n[3]]}var Et=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a};function Nt(t,e){return void 0===t||0===t?t:"".concat(t).concat(e)}var Ht=function(t){var e=Et(It(t.value),2),n=e[0],o=e[1],i=Et((0,h.useState)(o),2),r=i[0],a=i[1],l=t.ranges[r||"px"]||t.ranges.px;return(0,s.jsxs)("div",{className:"mrblx--unit-range-control",children:[(0,s.jsx)(d.__experimentalUnitControl,{units:t.units,onChange:function(e){var n=Et(It(e),2),o=n[0],i=n[1];t.onChange(Nt(o,i))},onUnitChange:function(e){e=e||"px";var o=t.ranges[e]||t.ranges.px;a(e),t.onChange(void 0!==n?Nt(n>o.max?o.max:n,e):void 0)},isUnitSelectTabbable:!0,value:t.value}),(0,s.jsx)(d.RangeControl,{max:l.max,min:l.min,onBlur:function(){},onChange:function(e){t.onChange(Nt(e,r))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:l.step,withInputField:!1,value:n})]})};Ht.defaultProps={units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"}],ranges:{px:{min:0,max:100,step:1},"%":{min:0,max:100,step:1},em:{min:0,max:10,step:.01},rem:{min:0,max:10,step:.01}}};const Vt=Ht;var Ft=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:0}];function Dt(t,e){return void 0!==t?t:"%"===e?50:5}var Gt=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(It(t.value),2),n=e[0],o=e[1];return(0,s.jsxs)(s.Fragment,{children:[!!t.title&&(0,s.jsx)(L,{title:t.title,hint:Lt(t.isMixed,t.value),isAdvanced:t.isAdvanced,isLinked:t.isLinked,onClear:t.onClear}),t.isAdvanced?(0,s.jsx)(Vt,{onChange:function(e){return t.onChange(function(t,e){return 0===t||void 0===t?t:zt(t)?"".concat(t).concat(e):t}(e,o))},value:t.value,units:Ft}):(0,s.jsx)(d.RangeControl,{max:"%"===o?100:10,min:0,onBlur:function(){},onChange:function(e){return function(e){t.onChange(function(t,e){return 0===t||void 0===t?t:"".concat(t).concat(e)}(e,o))}(e)},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:1,withInputField:!1,value:Dt(n,o)})]})};Gt.defaultProps={isMixed:!1};const Wt=Gt;var Ut=function(){return Ut=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ut.apply(this,arguments)};function Xt(t){return t.substring(6,t.length-6).replace(/pR|mR|pL|mL/,(function(t){return"".concat(t.charAt(0)," ").concat(t.charAt(1).toLowerCase())}))}const Jt=function(t){return(0,s.jsx)(s.Fragment,{children:["borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius"].map((function(e){var n=t.attributes[e];return(0,s.jsx)(Wt,{title:Xt(e),value:n,onChange:function(n){var o;t.setAttributes(Ut(Ut({},t.attributes),((o={})[e]=n,o)))},onClear:void 0!==n?function(){var n;t.setAttributes(Ut(Ut({},t.attributes),((n={})[e]=void 0,n)))}:void 0,isAdvanced:t.isAdvanced},e)}))})};var Zt=function(){return Zt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Zt.apply(this,arguments)},qt=function(t){return(0,s.jsx)(s.Fragment,{children:t.isLinked?(0,s.jsx)(Wt,{title:t.label,value:_t(t.attributes)?t.attributes.borderTopLeftRadius:void 0,onChange:function(e){!e||"number"!=typeof e&&parseInt(e).toString()!==e||(e+="px"),t.setAttributes(Zt(Zt({},t.attributes),{borderTopRightRadius:e,borderTopLeftRadius:e,borderBottomRightRadius:e,borderBottomLeftRadius:e}))},isAdvanced:t.isAdvanced}):(0,s.jsx)(Jt,{label:t.label,attributes:t.attributes,setAttributes:t.setAttributes,isAdvanced:t.isAdvanced})})};qt.defaultProps={disableUnlink:!1};const Yt=qt,$t=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Yt,{attributes:{borderTopLeftRadius:t.attributes.borderTopLeftRadius,borderBottomLeftRadius:t.attributes.borderBottomLeftRadius,borderTopRightRadius:t.attributes.borderTopRightRadius,borderBottomRightRadius:t.attributes.borderBottomRightRadius},setAttributes:function(e){return t.setAttributes({borderTopLeftRadius:e.borderTopLeftRadius,borderBottomLeftRadius:e.borderBottomLeftRadius,borderTopRightRadius:e.borderTopRightRadius,borderBottomRightRadius:e.borderBottomRightRadius})},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Tablet"===e&&(0,s.jsx)(Yt,{attributes:{borderTopLeftRadius:t.attributes.tabletBorderTopLeftRadius,borderBottomLeftRadius:t.attributes.tabletBorderBottomLeftRadius,borderTopRightRadius:t.attributes.tabletBorderTopRightRadius,borderBottomRightRadius:t.attributes.tabletBorderBottomRightRadius},setAttributes:function(e){return t.setAttributes({tabletBorderTopLeftRadius:e.borderTopLeftRadius,tabletBorderBottomLeftRadius:e.borderBottomLeftRadius,tabletBorderTopRightRadius:e.borderTopRightRadius,tabletBorderBottomRightRadius:e.borderBottomRightRadius})},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Mobile"===e&&(0,s.jsx)(Yt,{attributes:{borderTopLeftRadius:t.attributes.mobileBorderTopLeftRadius,borderBottomLeftRadius:t.attributes.mobileBorderBottomLeftRadius,borderTopRightRadius:t.attributes.mobileBorderTopRightRadius,borderBottomRightRadius:t.attributes.mobileBorderBottomRightRadius},setAttributes:function(e){return t.setAttributes({mobileBorderTopLeftRadius:e.borderTopLeftRadius,mobileBorderBottomLeftRadius:e.borderBottomLeftRadius,mobileBorderTopRightRadius:e.borderTopRightRadius,mobileBorderBottomRightRadius:e.borderBottomRightRadius})},isAdvanced:t.isAdvanced,isLinked:t.isLinked})]})};var Kt=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a};function Qt(t,e,n){if(e)switch(n){case"Tablet":return void 0!==t.tabletBorderTopRightRadius||void 0!==t.tabletBorderBottomRightRadius||void 0!==t.tabletBorderTopLeftRadius||void 0!==t.tabletBorderBottomLeftRadius;case"Mobile":return void 0!==t.mobileBorderTopRightRadius||void 0!==t.mobileBorderBottomRightRadius||void 0!==t.mobileBorderTopLeftRadius||void 0!==t.mobileBorderBottomLeftRadius}return void 0!==t.borderTopRightRadius||void 0!==t.borderBottomRightRadius||void 0!==t.borderTopLeftRadius||void 0!==t.borderBottomLeftRadius}var te=function(t){var e=x(),n=Kt((0,h.useState)(!1),2),o=n[0],i=n[1],r=Kt((0,h.useState)(!0),2),a=r[0],l=r[1],u=function(t,e,n){if(e)switch(n){case"Tablet":return t.tabletBorderTopRightRadius!==t.tabletBorderBottomRightRadius||t.tabletBorderTopRightRadius!==t.tabletBorderBottomLeftRadius||t.tabletBorderTopRightRadius!==t.tabletBorderTopLeftRadius;case"Mobile":return t.mobileBorderTopRightRadius!==t.mobileBorderBottomRightRadius||t.mobileBorderTopRightRadius!==t.mobileBorderBottomLeftRadius||t.mobileBorderTopRightRadius!==t.mobileBorderTopLeftRadius}return!_t(t)}(t.attributes,!!t.isResponsive,e);return(0,s.jsxs)("div",{className:"mrblx--border-radius-control",children:[(0,s.jsx)(L,{title:t.label,hint:a?Lt(u,t.attributes.borderTopRightRadius):"",isAdvanced:o,onAdvancedChange:i,isLinked:a,onLinkedChange:t.isLinkable?l:void 0,onClear:Qt(t.attributes,!!t.isResponsive,e)?function(){"Tablet"===e?t.setAttributes({tabletBorderTopRightRadius:void 0,tabletBorderTopLeftRadius:void 0,tabletBorderBottomRightRadius:void 0,tabletBorderBottomLeftRadius:void 0}):"Mobile"===e?t.setAttributes({mobileBorderTopRightRadius:void 0,mobileBorderTopLeftRadius:void 0,mobileBorderBottomRightRadius:void 0,mobileBorderBottomLeftRadius:void 0}):t.setAttributes({borderTopRightRadius:void 0,borderTopLeftRadius:void 0,borderBottomRightRadius:void 0,borderBottomLeftRadius:void 0})}:void 0,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)($t,{attributes:t.attributes,setAttributes:function(e){return t.setAttributes(e)},isLinked:a,isAdvanced:o}):(0,s.jsx)(Yt,{attributes:t.attributes,setAttributes:function(e){return t.setAttributes(e)},isLinked:a,isAdvanced:o})]})};te.defaultProps={label:(0,l.__)("Border Radius"),isLinkable:!0};const ee=te;var ne=function(){return ne=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ne.apply(this,arguments)};const oe=function(t){var e=x(!!t.isResponsive);return(0,s.jsxs)("div",{className:"mrblx--border-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive,onClear:Mt(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletBorderTop:void 0,tabletBorderRight:void 0,tabletBorderBottom:void 0,tabletBorderLeft:void 0}):"Mobile"===e?t.setAttributes({mobileBorderTop:void 0,mobileBorderRight:void 0,mobileBorderBottom:void 0,mobileBorderLeft:void 0}):t.setAttributes({borderTop:void 0,borderRight:void 0,borderBottom:void 0,borderLeft:void 0})}:void 0}),t.isResponsive?(0,s.jsx)(Ot,ne({},t)):(0,s.jsx)(Pt,{attributes:t.attributes,setAttributes:t.setAttributes}),!t.disableRadiusControl&&(0,s.jsx)(ee,{attributes:t.attributes,setAttributes:t.setAttributes})]})};function ie(t,e){return K("boxShadow",t,e)}function re(t){var e,n;try{for(var o=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(["px","em","rem","%"]),i=o.next();!i.done;i=o.next()){var r=i.value;if(t.endsWith(r))return!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return"0"===t}function ae(t){return"0"!==t?t:0}function se(t){return 0===t?"0":t?t.toString():void 0}function le(t){var e=[];return t.inset&&e.push("inset"),e.push(t.offsetX,t.offsetY),void 0!==t.blurRadius&&e.push(t.blurRadius),void 0!==t.spreadRadius&&e.push(t.spreadRadius),void 0!==t.color&&e.push(t.color),e.join(" ")}const ue=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(It(t.value),2),n=e[0],o=e[1];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L,{title:t.label,hint:se(t.value)}),(0,s.jsx)(d.RangeControl,{max:128,min:-128,onBlur:function(){},onChange:function(e){t.onChange("".concat(e).concat(o))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:1,withInputField:t.isAdvanced,value:n||0})]})};var de=[{value:"px",label:"px"}],ce={px:{min:0,max:25,step:1}};const be=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(It(t.value),2),n=e[0],o=e[1];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L,{title:t.label,hint:se(t.value)}),t.isAdvanced?(0,s.jsx)(Vt,{value:t.value,onChange:t.onChange,units:de,ranges:ce}):(0,s.jsx)(d.RangeControl,{max:25,min:0,onBlur:function(){},onChange:function(e){t.onChange("".concat(e).concat(o))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:1,withInputField:t.isAdvanced,value:n||0})]})};const ve=function(t){var e=x(),n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),o=n[0],i=n[1],r=t.attributes[ie(t.isResponsive,e)],a=function(t){var e={offsetX:0,offsetY:0,blurRadius:void 0,spreadRadius:void 0,color:void 0,inset:!1};if(!t||"none"===t)return e;var n=t.split(" ");if("inset"===n[0]&&(e.inset=!0,n.shift()),n.length<2)return e;e.offsetX=ae(n.shift()),e.offsetY=ae(n.shift());var o=n.shift();return void 0===o?e:re(o)?(e.blurRadius=ae(o),void 0===(o=n.shift())?e:re(o)?(e.spreadRadius=ae(o),e.color=n.shift(),e):(e.color=o,e)):(e.color=o,e)}(r);return(0,s.jsxs)("div",{className:"mrblx--box-shadow-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive,onClear:void 0!==r?function(){var n;t.setAttributes(((n={})[ie(t.isResponsive,e)]=void 0,n))}:void 0,isAdvanced:o,onAdvancedChange:i}),("Desktop"===e||void 0===t.attributes.boxShadow)&&(0,s.jsx)(d.ToggleControl,{label:(0,l.__)("Enable Box Shadow"),checked:void 0!==r,onChange:function(n){var o;t.setAttributes(((o={})[ie(t.isResponsive,e)]=n?"5px 5px 10px #ccc":void 0,o))}}),void 0!==t.attributes.boxShadow&&(0,s.jsxs)(s.Fragment,{children:["Desktop"!==e&&(0,s.jsx)(d.ToggleControl,{label:(0,l.__)("Show on ")+e,checked:"none"!==t.attributes[ie(t.isResponsive,e)],onChange:function(n){var o;t.setAttributes(((o={})[ie(t.isResponsive,e)]=n?void 0:"none",o))}}),"none"!==t.attributes[ie(t.isResponsive,e)]&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.ToggleControl,{label:(0,l.__)("Enable Inset"),checked:a.inset,onChange:function(n){var o;a.inset=n,t.setAttributes(((o={})[ie(t.isResponsive,e)]=le(a),o))}}),(0,s.jsx)(st,{label:(0,l.__)("Color"),attributes:{color:a.color},setAttributes:function(n){var o;a.color=n.color,t.setAttributes(((o={})[ie(t.isResponsive,e)]=le(a),o))}}),(0,s.jsx)(ue,{label:(0,l.__)("Offset-X"),value:a.offsetX,onChange:function(n){var o;a.offsetX=n,t.setAttributes(((o={})[ie(t.isResponsive,e)]=le(a),o))},isAdvanced:o}),(0,s.jsx)(ue,{label:(0,l.__)("Offset-Y"),value:a.offsetY,onChange:function(n){var o;a.offsetY=n,t.setAttributes(((o={})[ie(t.isResponsive,e)]=le(a),o))},isAdvanced:o}),(0,s.jsx)(be,{label:(0,l.__)("Blur Radius"),value:a.blurRadius,onChange:function(n){var o;a.blurRadius=n,t.setAttributes(((o={})[ie(t.isResponsive,e)]=le(a),o))},isAdvanced:o}),(0,s.jsx)(be,{label:(0,l.__)("Spread Radius"),value:a.spreadRadius,onChange:function(n){var o;a.spreadRadius=n,void 0===a.blurRadius&&(a.blurRadius=0),t.setAttributes(((o={})[ie(t.isResponsive,e)]=le(a),o))},isAdvanced:o})]})]})]})},fe=(0,v.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,v.createElement)(f.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),pe=(0,v.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,v.createElement)(f.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const he=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!!t.initialOpen&&t.initialOpen),2),n=e[0],o=e[1],i=t.headingTag?t.headingTag:"h2";return(0,s.jsxs)("div",{onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,children:[(0,s.jsx)("div",{className:"mrblx--container-control",onClick:function(){return o(!n)},role:"presentation",children:(0,s.jsx)(i,{children:(0,s.jsx)(d.Button,{icon:n?fe:pe,children:t.title})})}),n&&t.children]})};function ge(t,e){return K("customCSS",t,e)}function me(t,e,n){return void 0!==t[ge(e,n)]}const xe=window.wp.CodeMirror;var ye=n.n(xe);const Ce=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(null),2),n=e[0],o=e[1],i=(0,h.useCallback)((function(e){if(e){var i=n;i||(i=ye()(e,{value:t.value||"",mode:"css",lineNumbers:!0,viewportMargin:1/0}),o(i),i.focus()),i.getDoc().on("change",(function(e,n){var o=e.getValue();t.value!==o&&"setValue"!==n.origin&&t.onChange(e.getValue())}))}}),[n,t]);return(0,h.useEffect)((function(){var e=null==n?void 0:n.getDoc();e&&e.getValue()!==t.value&&e.setValue(t.value||"")}),[n,t.value]),(0,s.jsx)("div",{ref:i})},je=function(t){var e=t.attributes[ge(t.isResponsive,t.deviceType)],n="#mrblx-".concat(t.blockId,', *[data-mrblx-id="').concat(t.blockId,'"]');return(0,s.jsxs)("div",{children:[(0,s.jsx)(Ce,{value:e,onChange:function(e){var n,o=ge(t.isResponsive,t.deviceType);t.setAttributes(((n={})[o]=e,n))}}),(0,s.jsx)(M,{deviceType:"Desktop",children:(0,s.jsxs)("small",{children:[(0,l.__)("CSS added here should be scoped to the block, meaning each selector should begin with "),(0,s.jsxs)("em",{children:[n,"."]})]})}),(0,s.jsx)(M,{deviceType:"Tablet",children:(0,s.jsx)("small",{children:(0,l.__)("This CSS will automatically be wrapped in a media query to limit it to tablet devices and smaller.")})}),(0,s.jsx)(M,{deviceType:"Mobile",children:(0,s.jsx)("small",{children:(0,l.__)("This CSS will automatically be wrapped in a media query to limit it to mobile devices.")})})]})};var Ae=function(){return Ae=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ae.apply(this,arguments)};const Re=function(t){var e=x(),n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),o=n[0],i=n[1],r=(0,l.__)("Custom CSS")+("Desktop"!==e?" (".concat(e,")"):"");return(0,s.jsxs)("div",{className:"mrblx--custom-css-control",children:[o&&(0,s.jsx)(d.Modal,{focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,overlayClassName:"mrblx--custom-css-control--modal",title:r,onRequestClose:function(){i(!1)},children:(0,s.jsx)(je,Ae({},t,{deviceType:e}))}),(0,s.jsx)(L,{onClear:me(t.attributes,t.isResponsive,e)?function(){var n;t.setAttributes(((n={})[ge(t.isResponsive,e)]=void 0,n))}:void 0,onExpand:function(){return i(!0)},isResponsive:t.isResponsive}),(0,s.jsx)("div",{style:{maxWidth:"250px"},children:(0,s.jsx)(je,Ae({},t,{deviceType:e}))})]})};var we={Default:{fontWeight:void 0,fontStyle:void 0},Thin:{fontWeight:100,fontStyle:"normal"},"Extra Light":{fontWeight:200,fontStyle:"normal"},Light:{fontWeight:300,fontStyle:"normal"},Regular:{fontWeight:400,fontStyle:"normal"},Medium:{fontWeight:500,fontStyle:"normal"},"Semi Bold":{fontWeight:600,fontStyle:"normal"},Bold:{fontWeight:700,fontStyle:"normal"},"Extra Bold":{fontWeight:800,fontStyle:"normal"},Black:{fontWeight:900,fontStyle:"normal"},"Thin Italic":{fontWeight:100,fontStyle:"italic"},"Extra Light Italic":{fontWeight:200,fontStyle:"italic"},"Light Italic":{fontWeight:300,fontStyle:"italic"},"Regular Italic":{fontWeight:400,fontStyle:"italic"},"Medium Italic":{fontWeight:500,fontStyle:"italic"},"Semi Bold Italic":{fontWeight:600,fontStyle:"italic"},"Bold Italic":{fontWeight:700,fontStyle:"italic"},"Extra Bold Italic":{fontWeight:800,fontStyle:"italic"},"Black Italic":{fontWeight:900,fontStyle:"italic"}};function Be(){var t=[];for(var e in we){var n=we[e];t.push({key:e,name:e,style:n})}return t}var ke=Be();function Se(t,e){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(ke),r=i.next();!r.done;r=i.next()){var a=r.value;if(a.style.fontWeight===t&&a.style.fontStyle===e)return a}}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return ke[0]}const Te=function(t){return(0,s.jsxs)("div",{className:"mrblx--font-appearance-control",children:[(0,s.jsx)(L,{title:"Appearance",onClear:void 0!==t.attributes.fontWeight||void 0!==t.attributes.fontStyle?function(){t.setAttributes({fontStyle:void 0,fontWeight:void 0})}:void 0}),(0,s.jsx)(d.CustomSelectControl,{label:void 0,options:Be(),onChange:function(e){var n;return n=e.selectedItem,void t.setAttributes({fontStyle:n.style.fontStyle,fontWeight:n.style.fontWeight})},value:Se(t.attributes.fontWeight,t.attributes.fontStyle),__nextUnconstrainedWidth:!0})]})};var Le=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function _e(t,e){var n=t.fontSize;switch(e){case"Tablet":n=t.tabletFontSize;break;case"Mobile":n=t.mobileFontSize}return"0px"===n?"0":void 0!==n?n.toString():"∅"}function Me(t,e){switch(e){case"Tablet":return void 0!==t.tabletFontSize;case"Mobile":return void 0!==t.mobileFontSize}return void 0!==t.fontSize}const Pe=function(t){var e=function(t,e){var n,o;try{for(var i=Le(e),r=i.next();!r.done;r=i.next()){var a=r.value;if(t===a.fontSize)return a.name}}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}}(t.fontSize,t.fontSizes);return(0,s.jsx)(s.Fragment,{children:t.isAdvanced?(0,s.jsx)(Vt,{value:t.fontSize,onChange:t.onChange}):(0,s.jsx)(d.ButtonGroup,{children:t.fontSizes.map((function(n){return(0,s.jsx)(d.Button,{label:n.name,showTooltip:!0,isPressed:e===n.name,onClick:function(){var o=e!==n.name?function(t,e){var n,o;try{for(var i=Le(e),r=i.next();!r.done;r=i.next()){var a=r.value;if(t===a.name)return a.fontSize}}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}}(n.name,t.fontSizes):void 0;t.onChange(o)},children:n.name},n.name)}))})})};var Oe=[{name:"XS",fontSize:".875rem"},{name:"S",fontSize:"1rem"},{name:"M",fontSize:"1.125rem"},{name:"L",fontSize:"1.75rem"},{name:"XL",fontSize:"2.25rem"},{name:"XXL",fontSize:"3rem"}],ze=function(t){var e=x(t.isResponsive),n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),o=n[0],i=n[1],r=t.fontSizes&&t.fontSizes.length>0?t.fontSizes:Oe;return(0,s.jsxs)("div",{className:"mrblx--font-size-control",children:[(0,s.jsx)(L,{title:t.label,hint:_e(t.attributes,e),isResponsive:t.isResponsive,isAdvanced:o,onAdvancedChange:i,onClear:Me(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletFontSize:void 0}):"Mobile"===e?t.setAttributes({mobileFontSize:void 0}):t.setAttributes({fontSize:void 0})}:void 0}),"Desktop"===e&&(0,s.jsx)(Pe,{fontSize:t.attributes.fontSize,onChange:function(e){t.setAttributes({fontSize:e})},fontSizes:r,isAdvanced:o}),"Tablet"===e&&(0,s.jsx)(Pe,{fontSize:t.attributes.tabletFontSize,onChange:function(e){t.setAttributes({tabletFontSize:e})},fontSizes:r,isAdvanced:o}),"Mobile"===e&&(0,s.jsx)(Pe,{fontSize:t.attributes.mobileFontSize,onChange:function(e){t.setAttributes({mobileFontSize:e})},fontSizes:r,isAdvanced:o})]})};ze.defaultProps={label:"Font Size"};const Ie=ze;function Ee(t,e){var n=t.gap;switch(e){case"Tablet":n=t.tabletGap;break;case"Mobile":n=t.mobileGap}return"0px"===n?"0":void 0!==n?n.toString():"∅"}function Ne(t,e){switch(e){case"Tablet":return void 0!==t.tabletGap;case"Mobile":return void 0!==t.mobileGap}return void 0!==t.gap}function He(t,e,n,o,i){return void 0===i&&(i=void 0),i?"AUTO":t?"MIXED":e?"":"0px"===n||0===n?"0":n?"".concat(n).concat(o):"∅"}function Ve(t,e){if(0===t)return 0;if("em"===e)switch(t){case.25:return 1;case.5:return 2;case 1:return 3;case 1.5:return 4;case 3:return 5}return 2.5}var Fe=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:0},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0}];const De=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(It(t.value),2),n=e[0],o=e[1],i="auto"===t.value;return(0,s.jsxs)(s.Fragment,{children:[t.title&&(0,s.jsx)(L,{title:t.title,hint:He(t.isMixed,t.isAdvanced,n,o,i),isAdvanced:t.isAdvanced,onAdvancedChange:t.onAdvancedChange,isLinked:t.isLinked,onLinkedChange:t.onLinkedChange,onClear:void 0!==n?t.onClear:void 0}),t.isAdvanced?(0,s.jsxs)(s.Fragment,{children:[i?null:(0,s.jsx)(Vt,{onChange:function(e){return t.onChange(function(t,e){return 0===t||void 0===t?t:zt(t)?"".concat(t).concat(e):t}(e,o))},value:t.value,units:Fe}),t.allowAuto?(0,s.jsx)(d.CheckboxControl,{label:"auto",checked:i,onChange:function(e){t.onChange(e?"auto":void 0)}}):null]}):(0,s.jsx)(d.RangeControl,{max:5,min:0,step:1,onBlur:function(){},onChange:function(e){t.onChange(function(t){switch(t){case 0:return 0;case 1:return".25em";case 2:return".5em";case 3:return"1em";case 4:return"1.5em";case 5:return"3em"}}(e))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},withInputField:!1,value:Ve(n,o)})]})},Ge=function(t){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(De,{value:t.gap,onChange:t.onChange,onClear:void 0!==t.gap?function(){t.onChange(void 0)}:void 0,isAdvanced:t.isAdvanced})})},We=function(t){var e=x(!!t.isResponsive);return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Ge,{gap:t.attributes.gap,onChange:function(e){t.setAttributes({gap:e})},isAdvanced:t.isAdvanced}),"Tablet"===e&&(0,s.jsx)(Ge,{gap:t.attributes.tabletGap,onChange:function(e){t.setAttributes({tabletGap:e})},isAdvanced:t.isAdvanced}),"Mobile"===e&&(0,s.jsx)(Ge,{gap:t.attributes.mobileGap,onChange:function(e){t.setAttributes({mobileGap:e})},isAdvanced:t.isAdvanced})]})};var Ue=function(){return Ue=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ue.apply(this,arguments)},Xe=function(t){var e=x(!!t.isResponsive),n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),o=n[0],i=n[1];return(0,s.jsxs)("div",{className:"mrblx--gap-control",children:[(0,s.jsx)(L,{title:t.label,hint:Ee(t.attributes,e),isAdvanced:o,onAdvancedChange:i,isResponsive:t.isResponsive,onClear:Ne(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletGap:void 0}):"Mobile"===e?t.setAttributes({mobileGap:void 0}):t.setAttributes({gap:void 0})}:void 0}),t.isResponsive?(0,s.jsx)(We,Ue({},t,{isAdvanced:o})):(0,s.jsx)(Ge,{gap:t.attributes.gap,onChange:function(e){t.setAttributes({gap:e})},isAdvanced:o})]})};Xe.defaultProps={label:(0,l.__)("Gap")};const Je=Xe;var Ze=function(t){return(0,s.jsx)("div",{className:"mrblx--heading-tag-control",children:(0,s.jsxs)(d.__experimentalToggleGroupControl,{label:t.label,value:t.tagName||"h2",isBlock:!0,onChange:function(e){return t.onChange(e)},children:[(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h1",label:"H1"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h2",label:"H2"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h3",label:"H3"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h4",label:"H4"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h5",label:"H5"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h6",label:"H6"})]})})};Ze.defaultProps={label:(0,l.__)("Tag"),tagName:"h2"};const qe=Ze,Ye=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),$e=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),Ke=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Qe=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),tn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"}));var en=function(t){return(0,s.jsxs)(d.ButtonGroup,{children:[t.options.includes("left")&&(0,s.jsx)(d.Button,{icon:Ye,label:(0,l.__)("Justify left"),showTooltip:!0,isPressed:"left"===t.justifyContent,onClick:function(){var e="left"!==t.justifyContent?"left":void 0;t.onChange(e)}},"left"),t.options.includes("center")&&(0,s.jsx)(d.Button,{icon:$e,label:(0,l.__)("Justify center"),showTooltip:!0,isPressed:"center"===t.justifyContent,onClick:function(){var e="center"!==t.justifyContent?"center":void 0;t.onChange(e)}},"center"),t.options.includes("right")&&(0,s.jsx)(d.Button,{icon:Ke,label:(0,l.__)("Justify right"),showTooltip:!0,isPressed:"right"===t.justifyContent,onClick:function(){var e="right"!==t.justifyContent?"right":void 0;t.onChange(e)}},"right"),t.options.includes("space-between")&&(0,s.jsx)(d.Button,{icon:Qe,label:(0,l.__)("Justify with space between"),showTooltip:!0,isPressed:"space-between"===t.justifyContent,onClick:function(){var e="space-between"!==t.justifyContent?"space-between":void 0;t.onChange(e)}},"space-between"),t.options.includes("stretch")&&(0,s.jsx)(d.Button,{icon:tn,label:(0,l.__)("Justify stretch"),showTooltip:!0,isPressed:"stretch"===t.justifyContent,onClick:function(){var e="stretch"!==t.justifyContent?"stretch":void 0;t.onChange(e)}},"stretch")]})};en.defaultProps={label:(0,l.__)("Justify Content"),options:["left","center","right","space-between","stretch"]};const nn=en;var on=function(){return on=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},on.apply(this,arguments)};const rn=function(t){var e=x(),n=t.options?t.options:["left","center","right","wide","full"];return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(nn,{justifyContent:t.attributes.justifyContent,onChange:function(e){t.setAttributes(on(on({},t.attributes),{justifyContent:e}))},options:n}),"Tablet"===e&&(0,s.jsx)(nn,{justifyContent:t.attributes.tabletJustifyContent,onChange:function(e){t.setAttributes(on(on({},t.attributes),{tabletJustifyContent:e}))},options:n}),"Mobile"===e&&(0,s.jsx)(nn,{justifyContent:t.attributes.mobileJustifyContent,onChange:function(e){t.setAttributes(on(on({},t.attributes),{mobileJustifyContent:e}))},options:n})]})};var an=function(){return an=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},an.apply(this,arguments)},sn=function(t){return(0,s.jsxs)("div",{className:"mrblx--justify-content-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)(rn,an({},t)):(0,s.jsx)(nn,{label:t.label,options:t.options,justifyContent:t.attributes.justifyContent,onChange:function(e){t.setAttributes(an(an({},t.attributes),{justifyContent:e}))}})]})};sn.defaultProps={label:(0,l.__)("Justify Content"),options:["left","center","right","space-between","stretch"]};const ln=sn,un=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M7 11.5h10V13H7z"})),dn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),cn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),bn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),vn=function(t){return(0,s.jsxs)("div",{className:"mrblx--letter-case-control",children:[(0,s.jsx)(L,{title:"Letter Case"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(d.Button,{icon:un,describedBy:"None",isPressed:"none"===t.textTransform,onClick:function(){return t.onChange("none"!==t.textTransform?"none":void 0)}}),(0,s.jsx)(d.Button,{icon:dn,describedBy:"Uppercase",isPressed:"uppercase"===t.textTransform,onClick:function(){return t.onChange("uppercase"!==t.textTransform?"uppercase":void 0)}}),(0,s.jsx)(d.Button,{icon:cn,describedBy:"Lowercase",isPressed:"lowercase"===t.textTransform,onClick:function(){return t.onChange("lowercase"!==t.textTransform?"lowercase":void 0)}}),(0,s.jsx)(d.Button,{icon:bn,describedBy:"Capitalize",isPressed:"capitalize"===t.textTransform,onClick:function(){return t.onChange("capitalize"!==t.textTransform?"capitalize":void 0)}})]})]})};var fn=[{label:"No Opener",value:"noopener"},{label:"No Follow",value:"nofollow"},{label:"Sponsored",value:"sponsored"},{label:"User Generated Content",value:"ugc"}];const pn=function(t){return(0,s.jsxs)("div",{className:"mrblx--rel-control",children:[(0,s.jsx)(L,{title:(0,l.__)("rel Tag")}),(0,s.jsx)(d.SelectControl,{multiple:!0,value:t.value,options:fn,onChange:t.onChange,__nextHasNoMarginBottom:!0})]})},hn=function(t){var e=t.attributes.rel?t.attributes.rel:[];return(0,s.jsxs)("div",{className:"mrblx--link-control",children:[(0,s.jsx)(d.TextControl,{label:(0,l.__)("Link"),value:t.attributes.href?t.attributes.href:"",onChange:function(e){return t.setAttributes({href:e||void 0})},help:(0,l.__)("Opens this page when clicked.")}),(0,s.jsx)(d.ToggleControl,{label:(0,l.__)("Open in new tab."),checked:"_blank"===t.attributes.target,onChange:function(e){t.setAttributes({target:e?"_blank":void 0})}}),(0,s.jsx)(pn,{value:e,onChange:function(e){t.setAttributes({rel:e})}})]})};var gn=[{key:"default",name:"Default"},{key:"none",name:"None"},{key:"disc",name:"Disc",className:"mrblx--disk"},{key:"circle",name:"Circle",className:"mrblx--circle"},{key:"square",name:"Square",className:"mrblx--square"}];const mn=function(t){return(0,s.jsx)("div",{className:"mrblx--list-style-type-control",children:(0,s.jsx)(d.CustomSelectControl,{label:t.label,options:gn,onChange:function(e){var n;(n=e.selectedItem)&&"default"!==n.key?t.onChange(n.key):t.onChange(void 0)},value:(e=t.value,e?gn.find((function(t){return t.key===e})):gn[0])})});var e};var xn=function(){return xn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},xn.apply(this,arguments)};const yn=function(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(De,{title:"top",value:t.attributes.marginTop,onChange:function(e){return t.setAttributes(xn(xn({},t.attributes),{marginTop:e}))},onClear:void 0!==t.attributes.marginTop?function(){return t.setAttributes(xn(xn({},t.attributes),{marginTop:void 0}))}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0},"top"),(0,s.jsx)(De,{title:"right",value:t.attributes.marginRight,onChange:function(e){return t.setAttributes(xn(xn({},t.attributes),{marginRight:e}))},onClear:void 0!==t.attributes.marginRight?function(){return t.setAttributes(xn(xn({},t.attributes),{marginRight:void 0}))}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0},"right"),(0,s.jsx)(De,{title:"bottom",value:t.attributes.marginBottom,onChange:function(e){return t.setAttributes(xn(xn({},t.attributes),{marginBottom:e}))},onClear:void 0!==t.attributes.marginBottom?function(){return t.setAttributes(xn(xn({},t.attributes),{marginBottom:void 0}))}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0},"bottom"),(0,s.jsx)(De,{title:"left",value:t.attributes.marginLeft,onChange:function(e){return t.setAttributes(xn(xn({},t.attributes),{marginLeft:e}))},onClear:void 0!==t.attributes.marginLeft?function(){return t.setAttributes(xn(xn({},t.attributes),{marginLeft:void 0}))}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0},"left")]})};function Cn(t){return t.marginTop===t.marginBottom&&t.marginTop===t.marginRight&&t.marginTop===t.marginLeft}function jn(t,e){if(function(t,e){switch(e){case"Tablet":return t.tabletMarginTop!==t.tabletMarginBottom||t.tabletMarginTop!==t.tabletMarginLeft||t.tabletMarginTop!==t.tabletMarginRight;case"Mobile":return t.mobileMarginTop!==t.mobileMarginBottom||t.mobileMarginTop!==t.mobileMarginLeft||t.mobileMarginTop!==t.mobileMarginRight}return!Cn(t)}(t,e))return"MIXED";var n=t.marginTop;switch(e){case"Tablet":n=t.tabletMarginTop;break;case"Mobile":n=t.mobileMarginTop}return"0px"===n?"0":void 0!==n?n.toString():"∅"}function An(t,e){switch(e){case"Tablet":return void 0!==t.tabletMarginTop||void 0!==t.tabletMarginRight||void 0!==t.tabletMarginBottom||void 0!==t.tabletMarginLeft;case"Mobile":return void 0!==t.mobileMarginTop||void 0!==t.mobileMarginRight||void 0!==t.mobileMarginBottom||void 0!==t.mobileMarginLeft}return void 0!==t.marginTop||void 0!==t.marginLeft||void 0!==t.marginBottom||void 0!==t.marginRight}const Rn=function(t){var e=!(t.attributes.marginTop===t.attributes.marginRight&&t.attributes.marginTop===t.attributes.marginBottom&&t.attributes.marginTop===t.attributes.marginLeft);return(0,s.jsx)(s.Fragment,{children:t.isLinked?(0,s.jsx)(De,{value:Cn(t.attributes)?t.attributes.marginTop:void 0,onChange:function(e){t.setAttributes({marginTop:e,marginRight:e,marginBottom:e,marginLeft:e})},onClear:e||void 0!==t.attributes.marginTop?function(){var e;e={},t.setAttributes({marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left})}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0}):(0,s.jsx)(yn,{title:"Margin",attributes:t.attributes,setAttributes:t.setAttributes,isLinked:t.isLinked,isAdvanced:t.isAdvanced})})};var wn=function(){return wn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},wn.apply(this,arguments)};const Bn=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Rn,{attributes:t.attributes,setAttributes:function(e){t.setAttributes(wn(wn({},t.attributes),e))},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Tablet"===e&&(0,s.jsx)(Rn,{attributes:{marginTop:t.attributes.tabletMarginTop,marginRight:t.attributes.tabletMarginRight,marginBottom:t.attributes.tabletMarginBottom,marginLeft:t.attributes.tabletMarginLeft},setAttributes:function(e){return t.setAttributes(wn(wn({},t.attributes),{tabletMarginTop:e.marginTop,tabletMarginRight:e.marginRight,tabletMarginBottom:e.marginBottom,tabletMarginLeft:e.marginLeft}))},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Mobile"===e&&(0,s.jsx)(Rn,{attributes:{marginTop:t.attributes.mobileMarginTop,marginRight:t.attributes.mobileMarginRight,marginBottom:t.attributes.mobileMarginBottom,marginLeft:t.attributes.mobileMarginLeft},setAttributes:function(e){return t.setAttributes(wn(wn({},t.attributes),{mobileMarginTop:e.marginTop,mobileMarginRight:e.marginRight,mobileMarginBottom:e.marginBottom,mobileMarginLeft:e.marginLeft}))},isAdvanced:t.isAdvanced,isLinked:t.isLinked})]})};var kn=function(){return kn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},kn.apply(this,arguments)},Sn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},Tn=function(t){var e=x(!!t.isResponsive),n=Sn((0,h.useState)(!0),2),o=n[0],i=n[1],r=Sn((0,h.useState)(!1),2),a=r[0],l=r[1];return(0,s.jsxs)("div",{className:"mrblx--margin-control",children:[(0,s.jsx)(L,{title:t.label,hint:o?jn(t.attributes,e):"",isLinked:o,onLinkedChange:i,isAdvanced:a,onAdvancedChange:l,isResponsive:t.isResponsive,onClear:An(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletMarginTop:void 0,tabletMarginRight:void 0,tabletMarginBottom:void 0,tabletMarginLeft:void 0}):"Mobile"===e?t.setAttributes({mobileMarginTop:void 0,mobileMarginRight:void 0,mobileMarginBottom:void 0,mobileMarginLeft:void 0}):t.setAttributes({marginTop:void 0,marginRight:void 0,marginBottom:void 0,marginLeft:void 0})}:void 0}),t.isResponsive?(0,s.jsx)(Bn,kn({},t,{isAdvanced:a,isLinked:o})):(0,s.jsx)(Rn,{attributes:t.attributes,setAttributes:t.setAttributes,isAdvanced:a,isLinked:o})]})};Tn.defaultProps={label:(0,l.__)("Margin")};const Ln=Tn;function Mn(t,e,n){return K(t,e,n)}function Pn(t,e,n){return void 0!==t[Mn("url",e,n)]}function On(t,e,n){var o=t[Mn("showOn",e,n)];return void 0===o||!!o}function zn(t,e,n){return!!e&&!!(t.url||t.tabletUrl||t.mobileUrl)}var In=function(t){var e,n,o=x(),i=function(e){var n,i;e&&e.url?t.setAttributes(((i={})[Mn("url",t.isResponsive,o)]=e.url,i[Mn("id",t.isResponsive,o)]=e.id,i[Mn("alt",t.isResponsive,o)]=e.alt,i[Mn("width",t.isResponsive,o)]=e.width,i[Mn("height",t.isResponsive,o)]=e.height,i[Mn("sizes",t.isResponsive,o)]=e.sizes,i)):t.setAttributes(((n={})[Mn("url",t.isResponsive,o)]=void 0,n[Mn("id",t.isResponsive,o)]=void 0,n[Mn("alt",t.isResponsive,o)]=void 0,n[Mn("width",t.isResponsive,o)]=void 0,n[Mn("height",t.isResponsive,o)]=void 0,n[Mn("sizes",t.isResponsive,o)]=void 0,n))};return(0,s.jsxs)("div",{className:"mrblx--media-control",children:[(0,s.jsx)(L,{title:t.title,onClear:Pn(t.attributes,t.isResponsive,o)?function(){i(null)}:void 0,isResponsive:t.isResponsive}),t.attributes[Mn("url",t.isResponsive,o)]?(0,s.jsx)("div",{className:"mrblx--filename",children:(e=t.attributes[Mn("url",t.isResponsive,o)]||"",void 0===n&&(n="/"),(e=e.substring(e.lastIndexOf(n)+1)).endsWith(")")&&(e=e.substring(0,e.length-1)),e)}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.MediaPlaceholder,{labels:{title:""},accept:"image/*",allowedTypes:["image"],onSelect:function(t){return i(t)},multiple:!1,onHTMLDrop:function(){}}),!!t.help&&(0,s.jsx)("small",{children:t.help})]}),zn(t.attributes,t.isResponsive)&&(0,s.jsx)(d.ToggleControl,{label:"Show on ".concat(t.isResponsive?o:"Desktop"),checked:On(t.attributes,t.isResponsive,o),onChange:function(e){var n;t.setAttributes(((n={})[Mn("showOn",t.isResponsive,o)]=e,n))}})]})};In.defaultProps={isResponsive:!1};const En=In;var Nn=function(){return Nn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Nn.apply(this,arguments)};const Hn=function(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(De,{title:"top",value:t.attributes.paddingTop,onChange:function(e){return t.setAttributes(Nn(Nn({},t.attributes),{paddingTop:e}))},onClear:void 0!==t.attributes.paddingTop?function(){return t.setAttributes(Nn(Nn({},t.attributes),{paddingTop:void 0}))}:void 0,isAdvanced:t.isAdvanced},"top"),(0,s.jsx)(De,{title:"right",value:t.attributes.paddingRight,onChange:function(e){return t.setAttributes(Nn(Nn({},t.attributes),{paddingRight:e}))},onClear:void 0!==t.attributes.paddingRight?function(){return t.setAttributes(Nn(Nn({},t.attributes),{paddingRight:void 0}))}:void 0,isAdvanced:t.isAdvanced},"right"),(0,s.jsx)(De,{title:"bottom",value:t.attributes.paddingBottom,onChange:function(e){return t.setAttributes(Nn(Nn({},t.attributes),{paddingBottom:e}))},onClear:void 0!==t.attributes.paddingBottom?function(){return t.setAttributes(Nn(Nn({},t.attributes),{paddingBottom:void 0}))}:void 0,isAdvanced:t.isAdvanced},"bottom"),(0,s.jsx)(De,{title:"left",value:t.attributes.paddingLeft,onChange:function(e){return t.setAttributes(Nn(Nn({},t.attributes),{paddingLeft:e}))},onClear:void 0!==t.attributes.paddingLeft?function(){return t.setAttributes(Nn(Nn({},t.attributes),{paddingLeft:void 0}))}:void 0,isAdvanced:t.isAdvanced},"left")]})};function Vn(t){return t.paddingTop===t.paddingBottom&&t.paddingTop===t.paddingRight&&t.paddingTop===t.paddingLeft}function Fn(t,e){if(function(t,e){switch(e){case"Tablet":return t.tabletPaddingTop!==t.tabletPaddingBottom||t.tabletPaddingTop!==t.tabletPaddingLeft||t.tabletPaddingTop!==t.tabletPaddingRight;case"Mobile":return t.mobilePaddingTop!==t.mobilePaddingBottom||t.mobilePaddingTop!==t.mobilePaddingLeft||t.mobilePaddingTop!==t.mobilePaddingRight}return!Vn(t)}(t,e))return"MIXED";var n=t.paddingTop;switch(e){case"Tablet":n=t.tabletPaddingTop;break;case"Mobile":n=t.mobilePaddingTop}return"0px"===n?"0":void 0!==n?n.toString():"∅"}function Dn(t,e){switch(e){case"Tablet":return void 0!==t.tabletPaddingTop||void 0!==t.tabletPaddingRight||void 0!==t.tabletPaddingBottom||void 0!==t.tabletPaddingLeft;case"Mobile":return void 0!==t.mobilePaddingTop||void 0!==t.mobilePaddingRight||void 0!==t.mobilePaddingBottom||void 0!==t.mobilePaddingLeft}return void 0!==t.paddingTop||void 0!==t.paddingLeft||void 0!==t.paddingBottom||void 0!==t.paddingRight}const Gn=function(t){return(0,s.jsx)(s.Fragment,{children:t.isLinked?(0,s.jsx)(De,{value:Vn(t.attributes)?t.attributes.paddingTop:void 0,onChange:function(e){t.setAttributes({paddingTop:e,paddingRight:e,paddingBottom:e,paddingLeft:e})},onClear:(e=t.attributes,void 0!==e.paddingTop||void 0!==e.paddingRight||void 0!==e.paddingBottom||void 0!==e.paddingLeft?function(){var e;e={},t.setAttributes({paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left})}:void 0),isAdvanced:t.isAdvanced}):(0,s.jsx)(Hn,{title:"Padding",attributes:t.attributes,setAttributes:t.setAttributes,isLinked:t.isLinked,isAdvanced:t.isAdvanced})});var e};var Wn=function(){return Wn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Wn.apply(this,arguments)};const Un=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Gn,{attributes:t.attributes,setAttributes:function(e){t.setAttributes(Wn(Wn({},t.attributes),e))},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Tablet"===e&&(0,s.jsx)(Gn,{attributes:{paddingTop:t.attributes.tabletPaddingTop,paddingRight:t.attributes.tabletPaddingRight,paddingBottom:t.attributes.tabletPaddingBottom,paddingLeft:t.attributes.tabletPaddingLeft},setAttributes:function(e){return t.setAttributes(Wn(Wn({},t.attributes),{tabletPaddingTop:e.paddingTop,tabletPaddingRight:e.paddingRight,tabletPaddingBottom:e.paddingBottom,tabletPaddingLeft:e.paddingLeft}))},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Mobile"===e&&(0,s.jsx)(Gn,{attributes:{paddingTop:t.attributes.mobilePaddingTop,paddingRight:t.attributes.mobilePaddingRight,paddingBottom:t.attributes.mobilePaddingBottom,paddingLeft:t.attributes.mobilePaddingLeft},setAttributes:function(e){return t.setAttributes(Wn(Wn({},t.attributes),{mobilePaddingTop:e.paddingTop,mobilePaddingRight:e.paddingRight,mobilePaddingBottom:e.paddingBottom,mobilePaddingLeft:e.paddingLeft}))},isAdvanced:t.isAdvanced,isLinked:t.isLinked})]})};var Xn=function(){return Xn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Xn.apply(this,arguments)},Jn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},Zn=function(t){var e=x(!!t.isResponsive),n=Jn((0,h.useState)(!0),2),o=n[0],i=n[1],r=Jn((0,h.useState)(!1),2),a=r[0],l=r[1];return(0,s.jsxs)("div",{className:"mrblx--padding-control",children:[(0,s.jsx)(L,{title:t.label,hint:o?Fn(t.attributes,e):"",isLinked:o,onLinkedChange:i,isAdvanced:a,onAdvancedChange:l,isResponsive:t.isResponsive,onClear:Dn(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletPaddingTop:void 0,tabletPaddingRight:void 0,tabletPaddingBottom:void 0,tabletPaddingLeft:void 0}):"Mobile"===e?t.setAttributes({mobilePaddingTop:void 0,mobilePaddingRight:void 0,mobilePaddingBottom:void 0,mobilePaddingLeft:void 0}):t.setAttributes({paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0})}:void 0}),t.isResponsive?(0,s.jsx)(Un,Xn({},t,{isAdvanced:a,isLinked:o})):(0,s.jsx)(Gn,{attributes:t.attributes,setAttributes:t.setAttributes,isAdvanced:a,isLinked:o})]})};Zn.defaultProps={label:(0,l.__)("Padding")};const qn=Zn,Yn=function(t){return(0,s.jsxs)(d.ButtonGroup,{children:[(0,s.jsx)(d.Button,{icon:"editor-alignleft",label:(0,l.__)("Align left"),showTooltip:!0,isPressed:"left"===t.textAlign,onClick:function(){var e="left"!==t.textAlign?"left":void 0;t.onChange(e)}},"left"),(0,s.jsx)(d.Button,{icon:"editor-aligncenter",label:(0,l.__)("Align center"),showTooltip:!0,isPressed:"center"===t.textAlign,onClick:function(){var e="center"!==t.textAlign?"center":void 0;t.onChange(e)}},"center"),(0,s.jsx)(d.Button,{icon:"editor-alignright",label:(0,l.__)("Align right"),showTooltip:!0,isPressed:"right"===t.textAlign,onClick:function(){var e="right"!==t.textAlign?"right":void 0;t.onChange(e)}},"right")]})},$n=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Yn,{textAlign:t.attributes.textAlign,onChange:function(e){t.setAttributes({textAlign:e})}}),"Tablet"===e&&(0,s.jsx)(Yn,{textAlign:t.attributes.tabletTextAlign,onChange:function(e){t.setAttributes({tabletTextAlign:e})}}),"Mobile"===e&&(0,s.jsx)(Yn,{textAlign:t.attributes.mobileTextAlign,onChange:function(e){t.setAttributes({mobileTextAlign:e})}})]})};var Kn=function(){return Kn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Kn.apply(this,arguments)},Qn=function(t){return(0,s.jsxs)("div",{className:"mrblx--text-align-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)($n,Kn({},t)):(0,s.jsx)(Yn,{label:t.label,textAlign:t.attributes.textAlign,onChange:function(e){t.setAttributes(Kn(Kn({},t.attributes),{textAlign:e}))}})]})};Qn.defaultProps={label:(0,l.__)("Text Align")};const to=Qn,eo=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})}),no=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})}),oo=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})}),io=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})}),ro=function(t){return(0,s.jsxs)(d.ButtonGroup,{children:[t.options.includes("top")&&(0,s.jsx)(d.Button,{icon:eo,label:(0,l.__)("Align top"),showTooltip:!0,isPressed:"top"===t.verticalAlign,onClick:function(){var e="top"!==t.verticalAlign?"top":void 0;t.onChange(e)}},"top"),t.options.includes("middle")&&(0,s.jsx)(d.Button,{icon:oo,label:(0,l.__)("Align middle"),showTooltip:!0,isPressed:"middle"===t.verticalAlign,onClick:function(){var e="middle"!==t.verticalAlign?"middle":void 0;t.onChange(e)}},"middle"),t.options.includes("bottom")&&(0,s.jsx)(d.Button,{icon:no,label:(0,l.__)("Align bottom"),showTooltip:!0,isPressed:"bottom"===t.verticalAlign,onClick:function(){var e="bottom"!==t.verticalAlign?"bottom":void 0;t.onChange(e)}},"bottom"),t.options.includes("stretch")&&(0,s.jsx)(d.Button,{icon:io,label:(0,l.__)("Stretch to fill"),showTooltip:!0,isPressed:"stretch"===t.verticalAlign,onClick:function(){var e="stretch"!==t.verticalAlign?"stretch":void 0;t.onChange(e)}},"stretch")]})};var ao=function(){return ao=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ao.apply(this,arguments)};const so=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(ro,{verticalAlign:t.attributes.verticalAlign,onChange:function(e){t.setAttributes(ao(ao({},t.attributes),{verticalAlign:e}))},options:t.options}),"Tablet"===e&&(0,s.jsx)(ro,{verticalAlign:t.attributes.tabletVerticalAlign,onChange:function(e){t.setAttributes(ao(ao({},t.attributes),{tabletVerticalAlign:e}))},options:t.options}),"Mobile"===e&&(0,s.jsx)(ro,{verticalAlign:t.attributes.mobileVerticalAlign,onChange:function(e){t.setAttributes(ao(ao({},t.attributes),{mobileVerticalAlign:e}))},options:t.options})]})};var lo=function(){return lo=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lo.apply(this,arguments)},uo=function(t){return(0,s.jsxs)("div",{className:"mrblx--vertical-align-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)(so,lo({},t)):(0,s.jsx)(ro,{label:t.label,options:t.options,verticalAlign:t.attributes.verticalAlign,onChange:function(e){t.setAttributes(lo(lo({},t.attributes),{verticalAlign:e}))}})]})};uo.defaultProps={label:(0,l.__)("Vertical Align"),options:["top","middle","bottom","stretch"]};const co=uo;var bo=n(373),vo=n.n(bo);const fo=function(t){var e=t.name?t.name:"tab",n=Array.isArray(t.children)?t.children:[t.children],o=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(w(e),2),i=o[0],r=o[1],a=function(t,e){for(var n=0;n<e.length;n++)if((e[n].key?e[n].key:n)===t)return n;return 0}(i,n);return(0,s.jsxs)("div",{className:"mrblx--tabbed-control",children:[(0,s.jsx)("div",{className:"mrblx--tabbed-header",children:n.map((function(e,n){var o=e.key?e.key:n,i=vo()("mrblx--tab",{"mrblx--tab-active":n===a});return(0,s.jsx)("div",{className:i,children:(0,s.jsx)(d.Button,{icon:e.props.icon,onClick:function(){r(o),t.onSelect&&t.onSelect(o)},children:e.props.icon?e.key:o})},o)}))}),n[a]]})};function po(t,e,n){return K(t,e,n)}function ho(t,e,n,o){return t[po(e,n,o)]}function go(t,e,n,o){var i;return(i={})[po(e,n,o)]=t,i}function mo(t,e,n,o,i){if(i)return"";var r=ho(t,e,n,o);return 0===r?"0":r?"".concat(r):"∅"}function xo(t,e,n,o){return void 0!==ho(t,e,n,o)}var yo=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},Co=[{value:"%",label:"%",default:0},{value:"px",label:"px",default:0},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:0},{value:"vh",label:"vh",default:0}],jo={px:{min:16,max:512,step:1},"%":{min:0,max:100,step:1},em:{min:0,max:10,step:.01},rem:{min:0,max:10,step:.01},vw:{min:0,max:100,step:1},vh:{min:0,max:100,step:1}};function Ao(t,e){return 0===t||"%"===e&&void 0!==t?t:50}const Ro=function(t){var e=x(),n=yo(It(ho(t.attributes,t.propertyName,t.isResponsive,e),"%"),2),o=n[0],i=n[1],r=yo((0,h.useState)(!1),2),a=r[0],l=r[1];function u(n){t.setAttributes(go(n?"".concat(n,"%"):n,t.propertyName,t.isResponsive,e))}return(0,s.jsxs)("div",{className:"mrblx--width-height-control",children:[(0,s.jsx)(L,{title:t.label,hint:mo(t.attributes,t.propertyName,t.isResponsive,e,a),isAdvanced:a,onAdvancedChange:l,isResponsive:t.isResponsive,onClear:xo(t.attributes,t.propertyName,t.isResponsive,e)?function(){u(void 0)}:void 0}),a?(0,s.jsx)(Vt,{onChange:function(n){n=zt(n)?"".concat(n).concat(i):n,t.setAttributes(go(n,t.propertyName,t.isResponsive,e))},value:ho(t.attributes,t.propertyName,t.isResponsive,e),units:Co,ranges:jo}):(0,s.jsx)(d.RangeControl,{max:jo[i].max,min:jo[i].min,step:1,onBlur:function(){},onChange:u,onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},withInputField:!1,value:Ao(o,i)})]})};var wo={color:!0,backgroundColor:!0,fontSize:!0,textAlign:!0,fontAppearance:!0,letterCase:!0,margin:!0,padding:!0,border:!0};function Bo(t){return!(!t||!t.responsive)}function ko(t,e,n){if(n.color||n.backgroundColor){var o=Bo(n.color)||Bo(n.backgroundColor);return(0,s.jsxs)(b,{isResponsive:o,children:[n.color&&(0,s.jsx)(st,{label:"Color",attributes:t,setAttributes:e,isResponsive:o,hideHeader:!0}),n.backgroundColor&&(0,s.jsx)(st,{label:"Background",attributes:{color:t.backgroundColor,tabletColor:t.tabletBackgroundColor,mobileColor:t.mobileBackgroundColor},setAttributes:function(t){e({backgroundColor:t.color,tabletBackgroundColor:t.tabletColor,mobileBackgroundColor:t.mobileColor})},isResponsive:o,hideHeader:!0})]})}}const So=function(t){var e,n,o=t.options?t.options:wo;return(0,s.jsxs)("div",{className:"mrblx--base-controls",children:[t.children,ko(t.attributes,t.setAttributes,o),o.textAlign&&(0,s.jsx)(to,{label:(e=o.textAlign,n="Text Align",void 0===n&&(n=void 0),e.label?e.label:n),attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:Bo(o.textAlign)}),o.fontSize&&(0,s.jsx)(Ie,{attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:Bo(o.fontSize)}),o.fontAppearance&&(0,s.jsx)(Te,{attributes:t.attributes,setAttributes:t.setAttributes}),o.letterCase&&(0,s.jsx)(vn,{textTransform:t.attributes.textTransform,onChange:function(e){t.setAttributes({textTransform:e})}}),o.margin&&(0,s.jsx)(Ln,{attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:Bo(o.margin)}),o.padding&&(0,s.jsx)(qn,{attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:Bo(o.padding)}),o.border&&(0,s.jsx)(oe,{label:"Border",attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:Bo(o.border),disableRadiusControl:o.border.disableRadiusControl})]})},To=function(t){return(0,s.jsx)(he,{title:t.title,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,initialOpen:t.initialOpen,children:(0,s.jsx)(_,{showDivider:!0,children:(0,s.jsx)(So,{attributes:t.attributes,setAttributes:t.setAttributes,options:t.options,children:t.children})})})}},335:(t,e,n)=>{"use strict";var o=n(609),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var o,r={},u=null,d=null;for(o in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(d=e.ref),e)a.call(e,o)&&!l.hasOwnProperty(o)&&(r[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===r[o]&&(r[o]=e[o]);return{$$typeof:i,type:t,key:u,ref:d,props:r,_owner:s.current}}e.Fragment=r,e.jsx=u,e.jsxs=u},85:(t,e,n)=>{"use strict";t.exports=n(335)},609:t=>{"use strict";t.exports=window.React},373:(t,e)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,r(n)))}return t}function r(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)o.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()}},n={};function o(t){var i=n[t];if(void 0!==i)return i.exports;var r=n[t]={exports:{}};return e[t](r,r.exports,o),r.exports}o.m=e,t=[],o.O=(e,n,i,r)=>{if(!n){var a=1/0;for(d=0;d<t.length;d++){for(var[n,i,r]=t[d],s=!0,l=0;l<n.length;l++)(!1&r||a>=r)&&Object.keys(o.O).every((t=>o.O[t](n[l])))?n.splice(l--,1):(s=!1,r<a&&(a=r));if(s){t.splice(d--,1);var u=i();void 0!==u&&(e=u)}}return e}r=r||0;for(var d=t.length;d>0&&t[d-1][2]>r;d--)t[d]=t[d-1];t[d]=[n,i,r]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={584:0,439:0};o.O.j=e=>0===t[e];var e=(e,n)=>{var i,r,[a,s,l]=n,u=0;if(a.some((e=>0!==t[e]))){for(i in s)o.o(s,i)&&(o.m[i]=s[i]);if(l)var d=l(o)}for(e&&e(n);u<a.length;u++)r=a[u],o.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return o.O(d)},n=self.webpackChunkmrblx=self.webpackChunkmrblx||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var i=o.O(void 0,[439],(()=>o(698)));i=o.O(i),mrblx=i})();1 var mrblx;(()=>{var t,e={479:(t,e,n)=>{"use strict";n.r(e),n.d(e,{BackgroundColorControl:()=>dt,BackgroundImageControl:()=>xt,BaseControls:()=>To,BlockAlignControl:()=>Bt,BlockId:()=>u,BorderControl:()=>ie,BorderRadiusControl:()=>ne,BoxShadowControl:()=>fe,CSSBuilder:()=>Y,ClearButton:()=>c,ColorControl:()=>lt,ColorsGroup:()=>b,ContainerContents:()=>_,ContainerControl:()=>ge,ControlGroup:()=>Lo,ControlHeader:()=>L,CustomCSSControl:()=>we,DeviceTypeContainer:()=>M,FontAppearanceControl:()=>Le,FontSizeControl:()=>Ee,GapControl:()=>Ze,HeadingTagControl:()=>Ye,JustifyContentControl:()=>un,LetterCaseControl:()=>fn,LinkControl:()=>gn,ListStyleTypeControl:()=>xn,MarginControl:()=>Mn,MediaControl:()=>Nn,PaddingControl:()=>Yn,Portal:()=>z,StylePortalClientId:()=>Q,TabbedContainer:()=>tt,TabbedControl:()=>po,TextAlignControl:()=>eo,UnitRangeControl:()=>Ft,VerticalAlignControl:()=>bo,ViewAll:()=>et,WidthHeightControl:()=>wo,buildCSS:()=>$,propertyName:()=>K,useBlockId:()=>j,useBlockPropsWithId:()=>R,useBlockState:()=>w,useGetPreviewDeviceType:()=>x,useMobile:()=>m,useSetPreviewDeviceType:()=>y});const o=window.wp.data;var i=function(){return i=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)};if(!window.mrblxStore){var r={blockIds:{},controlStates:{}},a=(0,o.createReduxStore)("mrblx/block-data",{reducer:function(t,e){var n,o;switch(void 0===t&&(t=r),e.type){case"SET_BLOCK_ID":return i(i({},t),{blockIds:i(i({},t.blockIds),(n={},n[e.blockId]=e.clientId,n))});case"SET_CONTROL_STATE":return i(i({},t),{controlStates:i(i({},t.controlStates),(o={},o[e.key]=e.value,o))});default:return t}},actions:{setBlockId:function(t,e){return{type:"SET_BLOCK_ID",blockId:t,clientId:e}},setControlState:function(t,e){return{type:"SET_CONTROL_STATE",key:t,value:e}}},selectors:{checkBlockId:function(t,e,n){return!e||!t.blockIds.hasOwnProperty(e)||t.blockIds[e]===n},getControlState:function(t,e){return t.controlStates[e]}}});(0,o.register)(a),window.mrblxStore=a}var s=n(85);const l=window.wp.i18n,u=function(t){return(0,s.jsxs)("div",{className:"mrblx--block-id",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mrblx-label",children:[(0,l.__)("block id"),":"]}),(0,s.jsx)("div",{children:(0,s.jsxs)("strong",{children:["mrblx-",t.attributes.blockId]})})]}),(0,s.jsx)("div",{children:(0,s.jsx)("small",{children:(0,l.__)("This block has a persistent block ID and may be referenced in an anchor tag.")})})]})},d=window.wp.components,c=function(t){return(0,s.jsx)("div",{className:"mrblx--clear-button",children:(0,s.jsx)(d.Button,{variant:"tertiary",onClick:t.onClick,children:"Clear"})})},b=function(t){return(0,s.jsxs)("div",{className:"mrblx--colors-group",children:[t.isResponsive&&(0,s.jsx)(L,{isResponsive:!0}),(0,s.jsx)("div",{className:"mrblx-colors",children:t.children})]})};var v=n(609);const f=window.wp.primitives,p=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),h=window.wp.element;var g=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a};function m(){var t=g((0,h.useState)(window.innerWidth<650),2),e=t[0],n=t[1];return(0,h.useEffect)((function(){window.addEventListener("resize",(function(){window.innerWidth<650?n(!0):n(!1)}))})),e}function x(t){return t=void 0===t||t,(0,o.useSelect)((function(e){if(!t)return{deviceType:"Desktop"};var n=e("core/editor");if(n&&n.getDeviceType)return{deviceType:n.getDeviceType()};var o=e("core/edit-post");return{deviceType:o?o.__experimentalGetPreviewDeviceType():"Desktop"}}),[t]).deviceType}function y(){var t=(0,o.useDispatch)("core/editor"),e=(0,o.useDispatch)("core/edit-post");return function(n){t.setDeviceType?t.setDeviceType(n):e.__experimentalSetPreviewDeviceType(n)}}var C={};function j(t,e){var n=(0,o.useSelect)((function(t){return{checkBlockId:t("mrblx/block-data").checkBlockId}}),[]).checkBlockId,i=(0,o.useDispatch)("mrblx/block-data").setBlockId,r=(0,o.useSelect)((function(t){var e=t("core/editor").getCurrentPostId();return null!==e?e.toString().replace(/\/+/g,"--"):"0"}),[]),a="".concat(r,"_").concat(e.substring(2,9));return t&&r===function(t){if(t){var e=t.split("_");if(2===e.length)return e[0]}return null}(t)&&n(t,e)||(t=function(t){C[t]||(C[t]=0);var e=++C[t];return"".concat(t).concat(e)}(a)),i(t,e),t}const A=window.wp.blockEditor;function R(t,e){var n=j(t.attributes.blockId,t.clientId),o=(0,A.useBlockProps)(e);return o["data-mrblx-id"]="".concat(n),(0,h.useEffect)((function(){n!==t.attributes.blockId&&t.setAttributes({blockId:n})}),[n,t,t.attributes.blockId]),o}function w(t){var e=(0,o.useDispatch)("mrblx/block-data");return[(0,o.useSelect)((function(e){return{controlState:e("mrblx/block-data").getControlState(t)}}),[t]).controlState,(0,h.useCallback)((function(n){e.setControlState(t,n)}),[e,t])]}R.save=function(t,e){var n=A.useBlockProps.save(e);return t.attributes.blockId&&(n.id="mrblx-".concat(t.attributes.blockId)),n};const B=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})}),k=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})),S=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})),T=function(t){return(0,s.jsx)(d.Button,{isSmall:!0,icon:t.isLinked?k:S,onClick:function(){return t.onLinkedChange(!t.isLinked)},variant:"tertiary",label:t.isLinked?"Unlinked":"Linked",showTooltip:!0})},L=function(t){var e=x(),n=y();return(0,s.jsxs)("div",{className:"mrblx--control-header",children:[(0,s.jsxs)("label",{children:[t.title,t.hint&&(0,s.jsx)("span",{children:t.hint})]}),!!t.onExpand&&(0,s.jsx)(d.Button,{icon:"fullscreen-alt",isSmall:!0,onClick:t.onExpand?t.onExpand:void 0,label:(0,l.__)("Expand"),showTooltip:!0},"expand"),!!t.isResponsive&&(0,s.jsxs)(d.ButtonGroup,{children:[(0,s.jsx)(d.Button,{icon:"desktop",isSmall:!0,label:(0,l.__)("Desktop"),showTooltip:!0,isPressed:"Desktop"===e,onClick:function(){return n("Desktop")}},"desktop"),(0,s.jsx)(d.Button,{icon:"tablet",isSmall:!0,label:(0,l.__)("Tablet"),showTooltip:!0,isPressed:"Tablet"===e,onClick:function(){return n("Tablet")}},"tablet"),(0,s.jsx)(d.Button,{icon:"smartphone",isSmall:!0,label:(0,l.__)("Mobile"),showTooltip:!0,isPressed:"Mobile"===e,onClick:function(){return n("Mobile")}},"mobile")]}),void 0!==t.isAdvanced&&t.onAdvancedChange&&(0,s.jsx)(d.Button,{icon:B,isSmall:!0,isPressed:t.isAdvanced,onClick:function(){return t.onAdvancedChange(!t.isAdvanced)},label:t.isAdvanced?(0,l.__)("Use size preset"):(0,l.__)("Set custom size"),showTooltip:!0},"slider"),void 0!==t.isLinked&&t.onLinkedChange&&(0,s.jsx)(T,{isLinked:t.isLinked,onLinkedChange:t.onLinkedChange}),!!t.onClear&&(0,s.jsx)(d.Button,{icon:p,isSmall:!0,onClick:t.onClear,label:(0,l.__)("Reset"),showTooltip:!0},"clear")]})},_=function(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mrblx--container-contents",children:t.children}),t.showDivider&&(0,s.jsx)("div",{className:"mrblx--divider"})]})},M=function(t){return x().toLowerCase()!==t.deviceType.toLowerCase()?null:(0,s.jsx)(s.Fragment,{children:t.children})},P=window.ReactDOM;var O=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a};const z=function(t){var e,n,o=t.selector?t.selector:"head",i=t.tagName?t.tagName:"div",r=document.querySelector(o),a=document.createElement(i);if(t.id&&a.setAttribute("id",t.id),t.data)try{for(var s=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(t.data)),l=s.next();!l.done;l=s.next()){var u=O(l.value,2),d=u[0],c=u[1];a.setAttribute("data-".concat(d),c)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return(0,h.useEffect)((function(){if(r)return r.appendChild(a),function(){r.removeChild(a)}}),[a,r]),(0,P.createPortal)(t.children,a)},I=/([\p{Ll}\d])(\p{Lu})/gu,E=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,N=/(\d)\p{Ll}|(\p{L})\d/u,H=/[^\p{L}\d]+/giu,V="$1\0$2",F="";function D(t){let e=t.trim();e=e.replace(I,V).replace(E,V),e=e.replace(H,"\0");let n=0,o=e.length;for(;"\0"===e.charAt(n);)n++;if(n===o)return[];for(;"\0"===e.charAt(o-1);)o--;return e.slice(n,o).split(/\0/g)}function G(t){const e=D(t);for(let t=0;t<e.length;t++){const n=e[t],o=N.exec(n);if(o){const i=o.index+(o[1]??o[2]).length;e.splice(t,1,n.slice(0,i),n.slice(i))}}return e}function W(t,e){const[n,o,i]=function(t,e={}){const n=e.split??(e.separateNumbers?G:D),o=e.prefixCharacters??F,i=e.suffixCharacters??F;let r=0,a=t.length;for(;r<t.length;){const e=t.charAt(r);if(!o.includes(e))break;r++}for(;a>r;){const e=a-1,n=t.charAt(e);if(!i.includes(n))break;a=e}return[t.slice(0,r),n(t.slice(r,a)),t.slice(a)]}(t,e);return n+o.map((r=e?.locale,!1===r?t=>t.toLowerCase():t=>t.toLocaleLowerCase(r))).join(e?.delimiter??" ")+i;var r}function U(t,e){return W(t,{delimiter:"-",...e})}var X=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},Z=["accentColor","alignItems","backgroundColor","backgroundImage","backgroundSize","borderBottom","borderBottomLeftRadius","borderBottomRightRadius","borderLeft","borderRight","borderTop","borderTopLeftRadius","borderTopRightRadius","bottom","boxShadow","color","customCSS","display","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","fontSize","fontStyle","fontWeight","gap","height","justifyContent","lineHeight","listStyleType","left","margin","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","position","overflowX","overflowY","right","tableLayout","textAlign","textTransform","top","verticalAlign","whiteSpace","width"],q=function(){function t(t){this.device="desktop",this.hover=!1,this.name=t,this.parse()}return t.lcfirst=function(t){return t[0].toLowerCase()+t.slice(1)},t.prototype.parse=function(){this.name.startsWith("tablet")?(this.name=t.lcfirst(this.name.slice(6)),this.device="tablet"):this.name.startsWith("mobile")&&(this.name=t.lcfirst(this.name.slice(6)),this.device="mobile"),this.name.endsWith("Hover")&&(this.name=this.name.substring(0,this.name.length-5),this.hover=!0)},t}(),Y=function(){function t(){this.state={desktop:{},desktopHover:{},tablet:{},tabletHover:{},mobile:{},mobileHover:{}}}return t.prototype.stateName=function(t){switch(t.device){case"mobile":return t.hover?"mobileHover":"mobile";case"tablet":return t.hover?"tabletHover":"tablet"}return t.hover?"desktopHover":"desktop"},t.prototype.addProperty=function(t,e){var n=new q(t);Z.includes(n.name)&&void 0!==e&&(this.state[this.stateName(n)][n.name]=e)},t.prototype.addAttributes=function(t){var e,n;try{for(var o=X(Object.entries(t)),i=o.next();!i.done;i=o.next()){var r=J(i.value,2),a=r[0],s=r[1];this.addProperty(a,s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}},t.prototype.ruleset=function(t,e,n,o){var i,r;void 0===n&&(n=null),void 0===o&&(o=!1);var a=[];try{for(var s=X(Object.entries(e)),l=s.next();!l.done;l=s.next()){var u=J(l.value,2),d=u[0],c=u[1];if("customCSS"!==d){var b=U(d);a.push("".concat(b,":").concat(c))}}}catch(t){i={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}if(0===a.length)return"";var v="#".concat(t);return n&&(v+=" ".concat(n)),o&&(v+=":hover"),a.length>0?"".concat(v,"{").concat(a.join(";"),"}"):""},t.isEmpty=function(t){return 0===Object.keys(t).length},t.prototype.toCSS=function(e,n){void 0===n&&(n={});var o,i=[];return t.isEmpty(this.state.desktop)||((o=this.ruleset(e,this.state.desktop,n.selector))&&i.push(o),this.state.desktop.customCSS&&i.push(this.state.desktop.customCSS)),t.isEmpty(this.state.desktopHover)||i.push(this.ruleset(e,this.state.desktopHover,n.selector,!0)),t.isEmpty(this.state.tablet)||((o=this.ruleset(e,this.state.tablet,n.selector))&&i.push("@media (max-width:1024px){".concat(o,"}")),this.state.tablet.customCSS&&i.push("@media (max-width:1024px){".concat(this.state.tablet.customCSS,"}"))),t.isEmpty(this.state.tabletHover)||i.push("@media (max-width:1024px){"+this.ruleset(e,this.state.tabletHover,n.selector,!0)+"}"),t.isEmpty(this.state.mobile)||((o=this.ruleset(e,this.state.mobile,n.selector))&&i.push("@media (max-width:480px){".concat(o,"}")),this.state.mobile.customCSS&&i.push("@media (max-width:480px){".concat(this.state.mobile.customCSS,"}"))),t.isEmpty(this.state.mobileHover)||i.push("@media (max-width:480px){"+this.ruleset(e,this.state.mobileHover,n.selector,!0)+"}"),i.join("\n")},t}();function $(t,e,n){void 0===n&&(n={});var o=new Y;return o.addAttributes(e),o.toCSS(t,n)}function K(t,e,n){if(e)switch(n=n.toLowerCase()){case"tablet":case"mobile":return n+t.charAt(0).toUpperCase()+t.substring(1)}return t}const Q=function(t){var e=x(),n=document.querySelector('iframe[name="editor-canvas"]'),o=$("block-".concat(t.clientId),t.attributes,{selector:t.selector});return(0,h.useEffect)((function(){if(n&&o){var e=n.contentDocument;if(e){var i=e.createElement("style");return i.setAttribute("data-client-id",t.clientId),i.innerHTML=o,e.head.appendChild(i),function(){e.head.removeChild(i)}}}}),[e,n,t.clientId,t.attributes,o]),o?(0,s.jsx)(z,{selector:"head",tagName:"style",data:{"client-id":t.clientId},children:o}):null},tt=function(t){return(0,s.jsx)("div",{className:"mrblx--tabbed-container",children:t.children})};const et=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),n=e[0],o=e[1],i=Object.keys(t.attributes).length>0?t.attributes:{},r=JSON.stringify(i,null,4);return(0,s.jsxs)("div",{className:"mrblx--view-all",children:[(0,s.jsx)(d.Button,{variant:"link",onClick:function(){return o(!n)},children:(0,l.__)("View All")}),n&&(0,s.jsxs)(d.Modal,{focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,overlayClassName:"mrblx--view-all--modal",title:(0,l.__)("CSS Properties"),onRequestClose:function(){o(!1)},children:[(0,s.jsx)("pre",{children:r}),t.onClear?(0,s.jsx)(d.Button,{variant:"link",onClick:function(){return t.onClear()},children:(0,l.__)("Clear All")}):null]})]})},nt=function(t){return(0,s.jsxs)(d.Button,{className:"mrblx--color-display",onClick:t.onClick,children:[(0,s.jsx)(d.ColorIndicator,{colorValue:t.colorValue}),t.title]})};const ot=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),n=e[0],i=e[1],r=m(),a=(0,o.useSelect)((function(t){var e=t("core/block-editor");return e?e.getSettings().colors:[]}),[]),l=r?"bottom-start":"left-start",u=r?-36:20;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nt,{colorValue:t.value,title:t.label,onClick:function(){return i(!n)}}),n&&(0,s.jsx)(d.Popover,{onClose:function(){i(!1)},placement:t.placement?t.placement:l,offset:u,children:(0,s.jsx)("div",{className:"mrblx--popover",children:(0,s.jsx)(d.ColorPalette,{colors:a,value:t.value,onChange:t.onChange})})})]})};var it=function(){return it=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},it.apply(this,arguments)};const rt=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(ot,{label:t.label,value:t.attributes.color,onChange:function(e){t.setAttributes(it(it({},t.attributes),{color:e}))},placement:t.placement}),"Tablet"===e&&(0,s.jsx)(ot,{label:t.label,value:t.attributes.tabletColor,onChange:function(e){t.setAttributes(it(it({},t.attributes),{tabletColor:e}))},placement:t.placement}),"Mobile"===e&&(0,s.jsx)(ot,{label:t.label,value:t.attributes.mobileColor,onChange:function(e){t.setAttributes(it(it({},t.attributes),{mobileColor:e}))},placement:t.placement})]})};var at=function(){return at=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},at.apply(this,arguments)},st=function(t){return(0,s.jsxs)("div",{className:"mrblx--color-control",children:[t.isResponsive&&!t.hideHeader&&(0,s.jsx)(L,{isResponsive:!0}),t.isResponsive?(0,s.jsx)(rt,at({},t,{label:t.label})):(0,s.jsx)(ot,{label:t.label?t.label:st.defaultProps.label,value:t.attributes.color,onChange:function(e){t.setAttributes(at(at({},t.attributes),{color:e}))},placement:t.placement})]})};st.defaultProps={label:(0,l.__)("Color")};const lt=st;var ut=function(t){return(0,s.jsx)(lt,{label:t.label,attributes:{color:t.attributes.backgroundColor,tabletColor:t.attributes.tabletBackgroundColor,mobileColor:t.attributes.mobileBackgroundColor},setAttributes:function(e){t.setAttributes({backgroundColor:e.color,tabletBackgroundColor:e.tabletColor,mobileBackgroundColor:e.mobileColor})},isResponsive:t.isResponsive,placement:t.placement,hideHeader:t.hideHeader})};ut.defaultProps={label:(0,l.__)("Background")};const dt=ut;function ct(t){if(t&&!t.startsWith("url("))return"url(".concat(t,")")}function bt(t){if(t&&"none"!==t)return t.startsWith("url(")&&(t=t.substring(4)),t.endsWith(")")&&(t=t.substring(0,t.length-1)),t}function vt(t){return void 0===t||t}function ft(t,e){switch(e){case"Mobile":return"none"!==t.mobileBackgroundImage&&!!(t.mobileBackgroundImage||t.tabletBackgroundImage&&"none"!==t.tabletBackgroundImage||t.backgroundImage&&"none"!==t.backgroundImage);case"Tablet":return!!(t.tabletBackgroundImage||t.backgroundImage&&"none"!==t.backgroundImage)}return!(!t.backgroundImage||"none"===t.backgroundImage)}var pt=[{label:"Default",value:"default"},{label:"Cover",value:"cover"},{label:"Contain",value:"contain"},{label:"Auto",value:"auto"}];const ht=function(t){return(0,s.jsx)("div",{className:"mrblx--background-size-control",children:(0,s.jsx)(d.SelectControl,{label:(0,l.__)("Background size"),value:t.value?t.value:"default",options:pt,onChange:function(e){return t.onChange("default"!==(n=e)?n:void 0);var n},__nextHasNoMarginBottom:!0})})};var gt=function(){return gt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},gt.apply(this,arguments)};function mt(t,e){if(t)return"string"==typeof t?t:t[e]}const xt=function(t){var e,n=x(),o=void 0!==t.label?t.label:"Background Image",i={url:bt((e=t.attributes).backgroundImage),showOn:"none"!==e.backgroundImage,tabletUrl:bt(e.tabletBackgroundImage),tabletShowOn:"none"!==e.tabletBackgroundImage,mobileUrl:bt(e.mobileBackgroundImage),mobileShowOn:"none"!==e.mobileBackgroundImage};return(0,s.jsxs)("div",{className:"mrblx--background-image-control",children:[(0,s.jsx)(Nn,{title:o,attributes:i,setAttributes:function(e){var n=function(t,e){var n=vt(e.showOn)?ct(e.url):"none",o=vt(e.tabletShowOn)?ct(e.tabletUrl):"none",i=vt(e.mobileShowOn)?ct(e.mobileUrl):"none";return{backgroundImage:n,backgroundSize:n&&"none"!==n?t.backgroundSize:void 0,tabletBackgroundImage:o,tabletBackgroundSize:o&&"none"!==o?t.tabletBackgroundSize:void 0,mobileBackgroundImage:i,mobileBackgroundSize:i&&"none"!==i?t.mobileBackgroundSize:void 0}}(t.attributes,gt(gt({},i),e));t.setAttributes(gt(gt({},t.attributes),n))},help:mt(t.help,"desktop"),isResponsive:t.isResponsive}),ft(t.attributes,n)&&(0,s.jsx)(ht,{value:t.attributes[K("backgroundSize",t.isResponsive,n)],onChange:function(e){var o;t.setAttributes(((o={})[K("backgroundSize",t.isResponsive,n)]=e,o))}})]})};var yt=function(t){return(0,s.jsxs)(d.ButtonGroup,{children:[t.options.includes("left")&&(0,s.jsx)(d.Button,{icon:"align-left",label:(0,l.__)("Align left"),showTooltip:!0,isPressed:"left"===t.blockAlign,onClick:function(){var e="left"!==t.blockAlign?"left":void 0;t.onChange(e)}},"left"),t.options.includes("center")&&(0,s.jsx)(d.Button,{icon:"align-center",label:(0,l.__)("Align center"),showTooltip:!0,isPressed:"center"===t.blockAlign,onClick:function(){var e="center"!==t.blockAlign?"center":void 0;t.onChange(e)}},"center"),t.options.includes("right")&&(0,s.jsx)(d.Button,{icon:"align-right",label:(0,l.__)("Align right"),showTooltip:!0,isPressed:"right"===t.blockAlign,onClick:function(){var e="right"!==t.blockAlign?"right":void 0;t.onChange(e)}},"right"),t.options.includes("wide")&&(0,s.jsx)(d.Button,{icon:"align-wide",label:(0,l.__)("Align wide"),showTooltip:!0,isPressed:"wide"===t.blockAlign,onClick:function(){var e="wide"!==t.blockAlign?"wide":void 0;t.onChange(e)}},"wide"),t.options.includes("full")&&(0,s.jsx)(d.Button,{icon:"align-full-width",label:(0,l.__)("Align full width"),showTooltip:!0,isPressed:"full"===t.blockAlign,onClick:function(){var e="full"!==t.blockAlign?"full":void 0;t.onChange(e)}},"full")]})};yt.defaultProps={label:(0,l.__)("Block Align"),options:["left","center","right","wide","full"]};const Ct=yt;var jt=function(){return jt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},jt.apply(this,arguments)};const At=function(t){var e=x(),n=t.options?t.options:["left","center","right","wide","full"];return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Ct,{blockAlign:t.attributes.blockAlign,onChange:function(e){t.setAttributes(jt(jt({},t.attributes),{blockAlign:e}))},options:n}),"Tablet"===e&&(0,s.jsx)(Ct,{blockAlign:t.attributes.tabletBlockAlign,onChange:function(e){t.setAttributes(jt(jt({},t.attributes),{tabletBlockAlign:e}))},options:n}),"Mobile"===e&&(0,s.jsx)(Ct,{blockAlign:t.attributes.mobileBlockAlign,onChange:function(e){t.setAttributes(jt(jt({},t.attributes),{mobileBlockAlign:e}))},options:n})]})};var Rt=function(){return Rt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Rt.apply(this,arguments)},wt=function(t){return(0,s.jsxs)("div",{className:"mrblx--block-align-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)(At,Rt({},t)):(0,s.jsx)(Ct,{label:t.label,options:t.options,blockAlign:t.attributes.blockAlign,onChange:function(e){t.setAttributes(Rt(Rt({},t.attributes),{blockAlign:e}))}})]})};wt.defaultProps={label:(0,l.__)("Block Align"),options:["left","center","right","wide","full"]};const Bt=wt;var kt=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],St={style:void 0,color:void 0,width:void 0};function Tt(t){var e=(t=t||St).width?[t.width]:[];e.push(t.style?t.style:"none"),t.color&&e.push(t.color);var n=e.join(" ");if("none"!==n)return n&&"none"!==n?n:void 0}function Lt(t){if(!t||Number.isInteger(t))return St;var e=t.split(" ");if(e.length>3)return St;var n=function(t){var e,n;try{for(var o=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(kt),i=o.next();!i.done;i=o.next()){var r=i.value,a=t.indexOf(r);if(-1!==a)return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return-1}(e);if(-1===n||2===n)return St;var o={style:e[n],color:void 0,width:"0px"};return 0===n?e.length>1&&(o.color=e[1]):1===n&&(o.width=e[0],e.length>2&&(o.color=e[2])),o}function _t(t,e){return t?"MIXED":"0px"===e?"0":void 0!==e?e.toString():"∅"}function Mt(t){return t.borderTopRightRadius===t.borderBottomRightRadius&&t.borderTopRightRadius===t.borderBottomLeftRadius&&t.borderTopRightRadius===t.borderTopLeftRadius}function Pt(t,e){switch(e){case"Tablet":return void 0!==t.tabletBorderTop||void 0!==t.tabletBorderRight||void 0!==t.tabletBorderBottom||void 0!==t.tabletBorderLeft;case"Mobile":return void 0!==t.mobileBorderTop||void 0!==t.mobileBorderRight||void 0!==t.mobileBorderBottom||void 0!==t.mobileBorderLeft}return void 0!==t.borderTop||void 0!==t.borderLeft||void 0!==t.borderBottom||void 0!==t.borderRight}const Ot=function(t){var e={top:Lt(t.attributes.borderTop),right:Lt(t.attributes.borderRight),bottom:Lt(t.attributes.borderBottom),left:Lt(t.attributes.borderLeft)};return(0,s.jsx)(d.__experimentalBorderBoxControl,{onChange:function(e){if(e)if(e.top||e.right||e.bottom||e.left){var n=e;t.setAttributes({borderTop:Tt(n.top),borderRight:Tt(n.right),borderBottom:Tt(n.bottom),borderLeft:Tt(n.left)})}else{var o=Tt(e);t.setAttributes({borderTop:o,borderRight:o,borderBottom:o,borderLeft:o})}else t.setAttributes({borderTop:void 0,borderRight:void 0,borderBottom:void 0,borderLeft:void 0})},value:e})},zt=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Ot,{attributes:t.attributes,setAttributes:function(e){return t.setAttributes(e)}}),"Tablet"===e&&(0,s.jsx)(Ot,{attributes:{borderTop:t.attributes.tabletBorderTop,borderRight:t.attributes.tabletBorderRight,borderBottom:t.attributes.tabletBorderBottom,borderLeft:t.attributes.tabletBorderLeft},setAttributes:function(e){return t.setAttributes({tabletBorderTop:e.borderTop,tabletBorderRight:e.borderRight,tabletBorderBottom:e.borderBottom,tabletBorderLeft:e.borderLeft})}}),"Mobile"===e&&(0,s.jsx)(Ot,{attributes:{borderTop:t.attributes.mobileBorderTop,borderRight:t.attributes.mobileBorderRight,borderBottom:t.attributes.mobileBorderBottom,borderLeft:t.attributes.mobileBorderLeft},setAttributes:function(e){return t.setAttributes({mobileBorderTop:e.borderTop,mobileBorderRight:e.borderRight,mobileBorderBottom:e.borderBottom,mobileBorderLeft:e.borderLeft})}})]})};function It(t){return"number"==typeof t||void 0!==t&&/^-?\d+$/.test(t)}function Et(t,e){if(void 0===e&&(e="px"),void 0===t)return[void 0,e];if(0===t)return[0,e];if("0"===(t=t.toString().trim()))return[0,e];if("auto"===t)return[void 0,e];var n=t.match(/^(-)?(\d*\.?\d*)(px|%|em|rem|vw|vh)?$/);if(!n)return[0,e];var o=n[1]?-1:1,i=parseFloat(n[2]);return isNaN(i)?[void 0,n[3]]:[o*i,n[3]]}var Nt=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a};function Ht(t,e){return void 0===t||0===t?t:"".concat(t).concat(e)}var Vt=function(t){var e=Nt(Et(t.value),2),n=e[0],o=e[1],i=Nt((0,h.useState)(o),2),r=i[0],a=i[1],l=t.ranges[r||"px"]||t.ranges.px;return(0,s.jsxs)("div",{className:"mrblx--unit-range-control",children:[(0,s.jsx)(d.__experimentalUnitControl,{units:t.units,onChange:function(e){var n=Nt(Et(e),2),o=n[0],i=n[1];t.onChange(Ht(o,i))},onUnitChange:function(e){e=e||"px";var o=t.ranges[e]||t.ranges.px;a(e),t.onChange(void 0!==n?Ht(n>o.max?o.max:n,e):void 0)},isUnitSelectTabbable:!0,value:t.value}),(0,s.jsx)(d.RangeControl,{max:l.max,min:l.min,onBlur:function(){},onChange:function(e){t.onChange(Ht(e,r))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:l.step,withInputField:!1,value:n})]})};Vt.defaultProps={units:[{value:"px",label:"px"},{value:"%",label:"%"},{value:"em",label:"em"}],ranges:{px:{min:0,max:100,step:1},"%":{min:0,max:100,step:1},em:{min:0,max:10,step:.01},rem:{min:0,max:10,step:.01}}};const Ft=Vt;var Dt=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:0}];function Gt(t,e){return void 0!==t?t:"%"===e?50:5}var Wt=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(Et(t.value),2),n=e[0],o=e[1];return(0,s.jsxs)(s.Fragment,{children:[!!t.title&&(0,s.jsx)(L,{title:t.title,hint:_t(t.isMixed,t.value),isAdvanced:t.isAdvanced,isLinked:t.isLinked,onClear:t.onClear}),t.isAdvanced?(0,s.jsx)(Ft,{onChange:function(e){return t.onChange(function(t,e){return 0===t||void 0===t?t:It(t)?"".concat(t).concat(e):t}(e,o))},value:t.value,units:Dt}):(0,s.jsx)(d.RangeControl,{max:"%"===o?100:10,min:0,onBlur:function(){},onChange:function(e){return function(e){t.onChange(function(t,e){return 0===t||void 0===t?t:"".concat(t).concat(e)}(e,o))}(e)},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:1,withInputField:!1,value:Gt(n,o)})]})};Wt.defaultProps={isMixed:!1};const Ut=Wt;var Xt=function(){return Xt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Xt.apply(this,arguments)};function Jt(t){return t.substring(6,t.length-6).replace(/pR|mR|pL|mL/,(function(t){return"".concat(t.charAt(0)," ").concat(t.charAt(1).toLowerCase())}))}const Zt=function(t){return(0,s.jsx)(s.Fragment,{children:["borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius"].map((function(e){var n=t.attributes[e];return(0,s.jsx)(Ut,{title:Jt(e),value:n,onChange:function(n){var o;t.setAttributes(Xt(Xt({},t.attributes),((o={})[e]=n,o)))},onClear:void 0!==n?function(){var n;t.setAttributes(Xt(Xt({},t.attributes),((n={})[e]=void 0,n)))}:void 0,isAdvanced:t.isAdvanced},e)}))})};var qt=function(){return qt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},qt.apply(this,arguments)},Yt=function(t){return(0,s.jsx)(s.Fragment,{children:t.isLinked?(0,s.jsx)(Ut,{title:t.label,value:Mt(t.attributes)?t.attributes.borderTopLeftRadius:void 0,onChange:function(e){!e||"number"!=typeof e&&parseInt(e).toString()!==e||(e+="px"),t.setAttributes(qt(qt({},t.attributes),{borderTopRightRadius:e,borderTopLeftRadius:e,borderBottomRightRadius:e,borderBottomLeftRadius:e}))},isAdvanced:t.isAdvanced}):(0,s.jsx)(Zt,{label:t.label,attributes:t.attributes,setAttributes:t.setAttributes,isAdvanced:t.isAdvanced})})};Yt.defaultProps={disableUnlink:!1};const $t=Yt,Kt=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)($t,{attributes:{borderTopLeftRadius:t.attributes.borderTopLeftRadius,borderBottomLeftRadius:t.attributes.borderBottomLeftRadius,borderTopRightRadius:t.attributes.borderTopRightRadius,borderBottomRightRadius:t.attributes.borderBottomRightRadius},setAttributes:function(e){return t.setAttributes({borderTopLeftRadius:e.borderTopLeftRadius,borderBottomLeftRadius:e.borderBottomLeftRadius,borderTopRightRadius:e.borderTopRightRadius,borderBottomRightRadius:e.borderBottomRightRadius})},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Tablet"===e&&(0,s.jsx)($t,{attributes:{borderTopLeftRadius:t.attributes.tabletBorderTopLeftRadius,borderBottomLeftRadius:t.attributes.tabletBorderBottomLeftRadius,borderTopRightRadius:t.attributes.tabletBorderTopRightRadius,borderBottomRightRadius:t.attributes.tabletBorderBottomRightRadius},setAttributes:function(e){return t.setAttributes({tabletBorderTopLeftRadius:e.borderTopLeftRadius,tabletBorderBottomLeftRadius:e.borderBottomLeftRadius,tabletBorderTopRightRadius:e.borderTopRightRadius,tabletBorderBottomRightRadius:e.borderBottomRightRadius})},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Mobile"===e&&(0,s.jsx)($t,{attributes:{borderTopLeftRadius:t.attributes.mobileBorderTopLeftRadius,borderBottomLeftRadius:t.attributes.mobileBorderBottomLeftRadius,borderTopRightRadius:t.attributes.mobileBorderTopRightRadius,borderBottomRightRadius:t.attributes.mobileBorderBottomRightRadius},setAttributes:function(e){return t.setAttributes({mobileBorderTopLeftRadius:e.borderTopLeftRadius,mobileBorderBottomLeftRadius:e.borderBottomLeftRadius,mobileBorderTopRightRadius:e.borderTopRightRadius,mobileBorderBottomRightRadius:e.borderBottomRightRadius})},isAdvanced:t.isAdvanced,isLinked:t.isLinked})]})};var Qt=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a};function te(t,e,n){if(e)switch(n){case"Tablet":return void 0!==t.tabletBorderTopRightRadius||void 0!==t.tabletBorderBottomRightRadius||void 0!==t.tabletBorderTopLeftRadius||void 0!==t.tabletBorderBottomLeftRadius;case"Mobile":return void 0!==t.mobileBorderTopRightRadius||void 0!==t.mobileBorderBottomRightRadius||void 0!==t.mobileBorderTopLeftRadius||void 0!==t.mobileBorderBottomLeftRadius}return void 0!==t.borderTopRightRadius||void 0!==t.borderBottomRightRadius||void 0!==t.borderTopLeftRadius||void 0!==t.borderBottomLeftRadius}var ee=function(t){var e=x(),n=Qt((0,h.useState)(!1),2),o=n[0],i=n[1],r=Qt((0,h.useState)(!0),2),a=r[0],l=r[1],u=function(t,e,n){if(e)switch(n){case"Tablet":return t.tabletBorderTopRightRadius!==t.tabletBorderBottomRightRadius||t.tabletBorderTopRightRadius!==t.tabletBorderBottomLeftRadius||t.tabletBorderTopRightRadius!==t.tabletBorderTopLeftRadius;case"Mobile":return t.mobileBorderTopRightRadius!==t.mobileBorderBottomRightRadius||t.mobileBorderTopRightRadius!==t.mobileBorderBottomLeftRadius||t.mobileBorderTopRightRadius!==t.mobileBorderTopLeftRadius}return!Mt(t)}(t.attributes,!!t.isResponsive,e);return(0,s.jsxs)("div",{className:"mrblx--border-radius-control",children:[(0,s.jsx)(L,{title:t.label,hint:a?_t(u,t.attributes.borderTopRightRadius):"",isAdvanced:o,onAdvancedChange:i,isLinked:a,onLinkedChange:t.isLinkable?l:void 0,onClear:te(t.attributes,!!t.isResponsive,e)?function(){"Tablet"===e?t.setAttributes({tabletBorderTopRightRadius:void 0,tabletBorderTopLeftRadius:void 0,tabletBorderBottomRightRadius:void 0,tabletBorderBottomLeftRadius:void 0}):"Mobile"===e?t.setAttributes({mobileBorderTopRightRadius:void 0,mobileBorderTopLeftRadius:void 0,mobileBorderBottomRightRadius:void 0,mobileBorderBottomLeftRadius:void 0}):t.setAttributes({borderTopRightRadius:void 0,borderTopLeftRadius:void 0,borderBottomRightRadius:void 0,borderBottomLeftRadius:void 0})}:void 0,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)(Kt,{attributes:t.attributes,setAttributes:function(e){return t.setAttributes(e)},isLinked:a,isAdvanced:o}):(0,s.jsx)($t,{attributes:t.attributes,setAttributes:function(e){return t.setAttributes(e)},isLinked:a,isAdvanced:o})]})};ee.defaultProps={label:(0,l.__)("Border Radius"),isLinkable:!0};const ne=ee;var oe=function(){return oe=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},oe.apply(this,arguments)};const ie=function(t){var e=x(!!t.isResponsive);return(0,s.jsxs)("div",{className:"mrblx--border-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive,onClear:Pt(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletBorderTop:void 0,tabletBorderRight:void 0,tabletBorderBottom:void 0,tabletBorderLeft:void 0}):"Mobile"===e?t.setAttributes({mobileBorderTop:void 0,mobileBorderRight:void 0,mobileBorderBottom:void 0,mobileBorderLeft:void 0}):t.setAttributes({borderTop:void 0,borderRight:void 0,borderBottom:void 0,borderLeft:void 0})}:void 0}),t.isResponsive?(0,s.jsx)(zt,oe({},t)):(0,s.jsx)(Ot,{attributes:t.attributes,setAttributes:t.setAttributes}),!t.disableRadiusControl&&(0,s.jsx)(ne,{attributes:t.attributes,setAttributes:t.setAttributes})]})};function re(t,e){return K("boxShadow",t,e)}function ae(t){var e,n;try{for(var o=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(["px","em","rem","%"]),i=o.next();!i.done;i=o.next()){var r=i.value;if(t.endsWith(r))return!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return"0"===t}function se(t){return"0"!==t?t:0}function le(t){return 0===t?"0":t?t.toString():void 0}function ue(t){var e=[];return t.inset&&e.push("inset"),e.push(t.offsetX,t.offsetY),void 0!==t.blurRadius&&e.push(t.blurRadius),void 0!==t.spreadRadius&&e.push(t.spreadRadius),void 0!==t.color&&e.push(t.color),e.join(" ")}const de=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(Et(t.value),2),n=e[0],o=e[1];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L,{title:t.label,hint:le(t.value)}),(0,s.jsx)(d.RangeControl,{max:128,min:-128,onBlur:function(){},onChange:function(e){t.onChange("".concat(e).concat(o))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:1,withInputField:t.isAdvanced,value:n||0})]})};var ce=[{value:"px",label:"px"}],be={px:{min:0,max:25,step:1}};const ve=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(Et(t.value),2),n=e[0],o=e[1];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L,{title:t.label,hint:le(t.value)}),t.isAdvanced?(0,s.jsx)(Ft,{value:t.value,onChange:t.onChange,units:ce,ranges:be}):(0,s.jsx)(d.RangeControl,{max:25,min:0,onBlur:function(){},onChange:function(e){t.onChange("".concat(e).concat(o))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},step:1,withInputField:t.isAdvanced,value:n||0})]})};const fe=function(t){var e=x(),n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),o=n[0],i=n[1],r=t.attributes[re(t.isResponsive,e)],a=function(t){var e={offsetX:0,offsetY:0,blurRadius:void 0,spreadRadius:void 0,color:void 0,inset:!1};if(!t||"none"===t)return e;var n=t.split(" ");if("inset"===n[0]&&(e.inset=!0,n.shift()),n.length<2)return e;e.offsetX=se(n.shift()),e.offsetY=se(n.shift());var o=n.shift();return void 0===o?e:ae(o)?(e.blurRadius=se(o),void 0===(o=n.shift())?e:ae(o)?(e.spreadRadius=se(o),e.color=n.shift(),e):(e.color=o,e)):(e.color=o,e)}(r);return(0,s.jsxs)("div",{className:"mrblx--box-shadow-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive,onClear:void 0!==r?function(){var n;t.setAttributes(((n={})[re(t.isResponsive,e)]=void 0,n))}:void 0,isAdvanced:o,onAdvancedChange:i}),("Desktop"===e||void 0===t.attributes.boxShadow)&&(0,s.jsx)(d.ToggleControl,{label:(0,l.__)("Enable Box Shadow"),checked:void 0!==r,onChange:function(n){var o;t.setAttributes(((o={})[re(t.isResponsive,e)]=n?"5px 5px 10px #ccc":void 0,o))}}),void 0!==t.attributes.boxShadow&&(0,s.jsxs)(s.Fragment,{children:["Desktop"!==e&&(0,s.jsx)(d.ToggleControl,{label:(0,l.__)("Show on ")+e,checked:"none"!==t.attributes[re(t.isResponsive,e)],onChange:function(n){var o;t.setAttributes(((o={})[re(t.isResponsive,e)]=n?void 0:"none",o))}}),"none"!==t.attributes[re(t.isResponsive,e)]&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.ToggleControl,{label:(0,l.__)("Enable Inset"),checked:a.inset,onChange:function(n){var o;a.inset=n,t.setAttributes(((o={})[re(t.isResponsive,e)]=ue(a),o))}}),(0,s.jsx)(lt,{label:(0,l.__)("Color"),attributes:{color:a.color},setAttributes:function(n){var o;a.color=n.color,t.setAttributes(((o={})[re(t.isResponsive,e)]=ue(a),o))}}),(0,s.jsx)(de,{label:(0,l.__)("Offset-X"),value:a.offsetX,onChange:function(n){var o;a.offsetX=n,t.setAttributes(((o={})[re(t.isResponsive,e)]=ue(a),o))},isAdvanced:o}),(0,s.jsx)(de,{label:(0,l.__)("Offset-Y"),value:a.offsetY,onChange:function(n){var o;a.offsetY=n,t.setAttributes(((o={})[re(t.isResponsive,e)]=ue(a),o))},isAdvanced:o}),(0,s.jsx)(ve,{label:(0,l.__)("Blur Radius"),value:a.blurRadius,onChange:function(n){var o;a.blurRadius=n,t.setAttributes(((o={})[re(t.isResponsive,e)]=ue(a),o))},isAdvanced:o}),(0,s.jsx)(ve,{label:(0,l.__)("Spread Radius"),value:a.spreadRadius,onChange:function(n){var o;a.spreadRadius=n,void 0===a.blurRadius&&(a.blurRadius=0),t.setAttributes(((o={})[re(t.isResponsive,e)]=ue(a),o))},isAdvanced:o})]})]})]})},pe=(0,v.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,v.createElement)(f.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),he=(0,v.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,v.createElement)(f.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const ge=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!!t.initialOpen&&t.initialOpen),2),n=e[0],o=e[1],i=t.headingTag?t.headingTag:"h2";return(0,s.jsxs)("div",{onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,children:[(0,s.jsx)("div",{className:"mrblx--container-control",onClick:function(){return o(!n)},role:"presentation",children:(0,s.jsx)(i,{children:(0,s.jsx)(d.Button,{icon:n?pe:he,children:t.title})})}),n&&t.children]})};function me(t,e){return K("customCSS",t,e)}function xe(t,e,n){return void 0!==t[me(e,n)]}const ye=window.wp.CodeMirror;var Ce=n.n(ye);const je=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(null),2),n=e[0],o=e[1],i=(0,h.useCallback)((function(e){if(e){var i=n;i||(i=Ce()(e,{value:t.value||"",mode:"css",lineNumbers:!0,viewportMargin:1/0}),o(i),i.focus()),i.getDoc().on("change",(function(e,n){var o=e.getValue();t.value!==o&&"setValue"!==n.origin&&t.onChange(e.getValue())}))}}),[n,t]);return(0,h.useEffect)((function(){var e=null==n?void 0:n.getDoc();e&&e.getValue()!==t.value&&e.setValue(t.value||"")}),[n,t.value]),(0,s.jsx)("div",{ref:i})},Ae=function(t){var e=t.attributes[me(t.isResponsive,t.deviceType)],n="#mrblx-".concat(t.blockId,', *[data-mrblx-id="').concat(t.blockId,'"]');return(0,s.jsxs)("div",{children:[(0,s.jsx)(je,{value:e,onChange:function(e){var n,o=me(t.isResponsive,t.deviceType);t.setAttributes(((n={})[o]=e,n))}}),(0,s.jsx)(M,{deviceType:"Desktop",children:(0,s.jsxs)("small",{children:[(0,l.__)("CSS added here should be scoped to the block, meaning each selector should begin with "),(0,s.jsxs)("em",{children:[n,"."]})]})}),(0,s.jsx)(M,{deviceType:"Tablet",children:(0,s.jsx)("small",{children:(0,l.__)("This CSS will automatically be wrapped in a media query to limit it to tablet devices and smaller.")})}),(0,s.jsx)(M,{deviceType:"Mobile",children:(0,s.jsx)("small",{children:(0,l.__)("This CSS will automatically be wrapped in a media query to limit it to mobile devices.")})})]})};var Re=function(){return Re=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Re.apply(this,arguments)};const we=function(t){var e=x(),n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),o=n[0],i=n[1],r=(0,l.__)("Custom CSS")+("Desktop"!==e?" (".concat(e,")"):"");return(0,s.jsxs)("div",{className:"mrblx--custom-css-control",children:[o&&(0,s.jsx)(d.Modal,{focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,overlayClassName:"mrblx--custom-css-control--modal",title:r,onRequestClose:function(){i(!1)},children:(0,s.jsx)(Ae,Re({},t,{deviceType:e}))}),(0,s.jsx)(L,{onClear:xe(t.attributes,t.isResponsive,e)?function(){var n;t.setAttributes(((n={})[me(t.isResponsive,e)]=void 0,n))}:void 0,onExpand:function(){return i(!0)},isResponsive:t.isResponsive}),(0,s.jsx)("div",{style:{maxWidth:"250px"},children:(0,s.jsx)(Ae,Re({},t,{deviceType:e}))})]})};var Be={Default:{fontWeight:void 0,fontStyle:void 0},Thin:{fontWeight:100,fontStyle:"normal"},"Extra Light":{fontWeight:200,fontStyle:"normal"},Light:{fontWeight:300,fontStyle:"normal"},Regular:{fontWeight:400,fontStyle:"normal"},Medium:{fontWeight:500,fontStyle:"normal"},"Semi Bold":{fontWeight:600,fontStyle:"normal"},Bold:{fontWeight:700,fontStyle:"normal"},"Extra Bold":{fontWeight:800,fontStyle:"normal"},Black:{fontWeight:900,fontStyle:"normal"},"Thin Italic":{fontWeight:100,fontStyle:"italic"},"Extra Light Italic":{fontWeight:200,fontStyle:"italic"},"Light Italic":{fontWeight:300,fontStyle:"italic"},"Regular Italic":{fontWeight:400,fontStyle:"italic"},"Medium Italic":{fontWeight:500,fontStyle:"italic"},"Semi Bold Italic":{fontWeight:600,fontStyle:"italic"},"Bold Italic":{fontWeight:700,fontStyle:"italic"},"Extra Bold Italic":{fontWeight:800,fontStyle:"italic"},"Black Italic":{fontWeight:900,fontStyle:"italic"}};function ke(){var t=[];for(var e in Be){var n=Be[e];t.push({key:e,name:e,style:n})}return t}var Se=ke();function Te(t,e){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Se),r=i.next();!r.done;r=i.next()){var a=r.value;if(a.style.fontWeight===t&&a.style.fontStyle===e)return a}}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return Se[0]}const Le=function(t){return(0,s.jsxs)("div",{className:"mrblx--font-appearance-control",children:[(0,s.jsx)(L,{title:"Appearance",onClear:void 0!==t.attributes.fontWeight||void 0!==t.attributes.fontStyle?function(){t.setAttributes({fontStyle:void 0,fontWeight:void 0})}:void 0}),(0,s.jsx)(d.CustomSelectControl,{label:void 0,options:ke(),onChange:function(e){var n;return n=e.selectedItem,void t.setAttributes({fontStyle:n.style.fontStyle,fontWeight:n.style.fontWeight})},value:Te(t.attributes.fontWeight,t.attributes.fontStyle),__nextUnconstrainedWidth:!0})]})};var _e=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Me(t,e){var n=t.fontSize;switch(e){case"Tablet":n=t.tabletFontSize;break;case"Mobile":n=t.mobileFontSize}return"0px"===n?"0":void 0!==n?n.toString():"∅"}function Pe(t,e){switch(e){case"Tablet":return void 0!==t.tabletFontSize;case"Mobile":return void 0!==t.mobileFontSize}return void 0!==t.fontSize}const Oe=function(t){var e=function(t,e){var n,o;try{for(var i=_e(e),r=i.next();!r.done;r=i.next()){var a=r.value;if(t===a.fontSize)return a.name}}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}}(t.fontSize,t.fontSizes);return(0,s.jsx)(s.Fragment,{children:t.isAdvanced?(0,s.jsx)(Ft,{value:t.fontSize,onChange:t.onChange}):(0,s.jsx)(d.ButtonGroup,{children:t.fontSizes.map((function(n){return(0,s.jsx)(d.Button,{label:n.name,showTooltip:!0,isPressed:e===n.name,onClick:function(){var o=e!==n.name?function(t,e){var n,o;try{for(var i=_e(e),r=i.next();!r.done;r=i.next()){var a=r.value;if(t===a.name)return a.fontSize}}catch(t){n={error:t}}finally{try{r&&!r.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}}(n.name,t.fontSizes):void 0;t.onChange(o)},children:n.name},n.name)}))})})};var ze=[{name:"XS",fontSize:".875rem"},{name:"S",fontSize:"1rem"},{name:"M",fontSize:"1.125rem"},{name:"L",fontSize:"1.75rem"},{name:"XL",fontSize:"2.25rem"},{name:"XXL",fontSize:"3rem"}],Ie=function(t){var e=x(t.isResponsive),n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),o=n[0],i=n[1],r=t.fontSizes&&t.fontSizes.length>0?t.fontSizes:ze;return(0,s.jsxs)("div",{className:"mrblx--font-size-control",children:[(0,s.jsx)(L,{title:t.label,hint:Me(t.attributes,e),isResponsive:t.isResponsive,isAdvanced:o,onAdvancedChange:i,onClear:Pe(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletFontSize:void 0}):"Mobile"===e?t.setAttributes({mobileFontSize:void 0}):t.setAttributes({fontSize:void 0})}:void 0}),"Desktop"===e&&(0,s.jsx)(Oe,{fontSize:t.attributes.fontSize,onChange:function(e){t.setAttributes({fontSize:e})},fontSizes:r,isAdvanced:o}),"Tablet"===e&&(0,s.jsx)(Oe,{fontSize:t.attributes.tabletFontSize,onChange:function(e){t.setAttributes({tabletFontSize:e})},fontSizes:r,isAdvanced:o}),"Mobile"===e&&(0,s.jsx)(Oe,{fontSize:t.attributes.mobileFontSize,onChange:function(e){t.setAttributes({mobileFontSize:e})},fontSizes:r,isAdvanced:o})]})};Ie.defaultProps={label:"Font Size"};const Ee=Ie;function Ne(t,e){var n=t.gap;switch(e){case"Tablet":n=t.tabletGap;break;case"Mobile":n=t.mobileGap}return"0px"===n?"0":void 0!==n?n.toString():"∅"}function He(t,e){switch(e){case"Tablet":return void 0!==t.tabletGap;case"Mobile":return void 0!==t.mobileGap}return void 0!==t.gap}function Ve(t,e,n,o,i){return void 0===i&&(i=void 0),i?"AUTO":t?"MIXED":e?"":"0px"===n||0===n?"0":n?"".concat(n).concat(o):"∅"}function Fe(t,e){if(0===t)return 0;if("em"===e)switch(t){case.25:return 1;case.5:return 2;case 1:return 3;case 1.5:return 4;case 3:return 5}return 2.5}var De=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:0},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0}];const Ge=function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(Et(t.value),2),n=e[0],o=e[1],i="auto"===t.value;return(0,s.jsxs)(s.Fragment,{children:[t.title&&(0,s.jsx)(L,{title:t.title,hint:Ve(t.isMixed,t.isAdvanced,n,o,i),isAdvanced:t.isAdvanced,onAdvancedChange:t.onAdvancedChange,isLinked:t.isLinked,onLinkedChange:t.onLinkedChange,onClear:void 0!==n?t.onClear:void 0}),t.isAdvanced?(0,s.jsxs)(s.Fragment,{children:[i?null:(0,s.jsx)(Ft,{onChange:function(e){return t.onChange(function(t,e){return 0===t||void 0===t?t:It(t)?"".concat(t).concat(e):t}(e,o))},value:t.value,units:De}),t.allowAuto?(0,s.jsx)(d.CheckboxControl,{label:"auto",checked:i,onChange:function(e){t.onChange(e?"auto":void 0)}}):null]}):(0,s.jsx)(d.RangeControl,{max:5,min:0,step:1,onBlur:function(){},onChange:function(e){t.onChange(function(t){switch(t){case 0:return 0;case 1:return".25em";case 2:return".5em";case 3:return"1em";case 4:return"1.5em";case 5:return"3em"}}(e))},onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},withInputField:!1,value:Fe(n,o)})]})},We=function(t){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(Ge,{value:t.gap,onChange:t.onChange,onClear:void 0!==t.gap?function(){t.onChange(void 0)}:void 0,isAdvanced:t.isAdvanced})})},Ue=function(t){var e=x(!!t.isResponsive);return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(We,{gap:t.attributes.gap,onChange:function(e){t.setAttributes({gap:e})},isAdvanced:t.isAdvanced}),"Tablet"===e&&(0,s.jsx)(We,{gap:t.attributes.tabletGap,onChange:function(e){t.setAttributes({tabletGap:e})},isAdvanced:t.isAdvanced}),"Mobile"===e&&(0,s.jsx)(We,{gap:t.attributes.mobileGap,onChange:function(e){t.setAttributes({mobileGap:e})},isAdvanced:t.isAdvanced})]})};var Xe=function(){return Xe=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Xe.apply(this,arguments)},Je=function(t){var e=x(!!t.isResponsive),n=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}((0,h.useState)(!1),2),o=n[0],i=n[1];return(0,s.jsxs)("div",{className:"mrblx--gap-control",children:[(0,s.jsx)(L,{title:t.label,hint:Ne(t.attributes,e),isAdvanced:o,onAdvancedChange:i,isResponsive:t.isResponsive,onClear:He(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletGap:void 0}):"Mobile"===e?t.setAttributes({mobileGap:void 0}):t.setAttributes({gap:void 0})}:void 0}),t.isResponsive?(0,s.jsx)(Ue,Xe({},t,{isAdvanced:o})):(0,s.jsx)(We,{gap:t.attributes.gap,onChange:function(e){t.setAttributes({gap:e})},isAdvanced:o})]})};Je.defaultProps={label:(0,l.__)("Gap")};const Ze=Je;var qe=function(t){return(0,s.jsx)("div",{className:"mrblx--heading-tag-control",children:(0,s.jsxs)(d.__experimentalToggleGroupControl,{label:t.label,value:t.tagName||"h2",isBlock:!0,onChange:function(e){return t.onChange(e)},children:[(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h1",label:"H1"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h2",label:"H2"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h3",label:"H3"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h4",label:"H4"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h5",label:"H5"}),(0,s.jsx)(d.__experimentalToggleGroupControlOption,{value:"h6",label:"H6"})]})})};qe.defaultProps={label:(0,l.__)("Tag"),tagName:"h2"};const Ye=qe,$e=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),Ke=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})),Qe=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),tn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"})),en=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"}));var nn=function(t){return(0,s.jsxs)(d.ButtonGroup,{children:[t.options.includes("left")&&(0,s.jsx)(d.Button,{icon:$e,label:(0,l.__)("Justify left"),showTooltip:!0,isPressed:"left"===t.justifyContent,onClick:function(){var e="left"!==t.justifyContent?"left":void 0;t.onChange(e)}},"left"),t.options.includes("center")&&(0,s.jsx)(d.Button,{icon:Ke,label:(0,l.__)("Justify center"),showTooltip:!0,isPressed:"center"===t.justifyContent,onClick:function(){var e="center"!==t.justifyContent?"center":void 0;t.onChange(e)}},"center"),t.options.includes("right")&&(0,s.jsx)(d.Button,{icon:Qe,label:(0,l.__)("Justify right"),showTooltip:!0,isPressed:"right"===t.justifyContent,onClick:function(){var e="right"!==t.justifyContent?"right":void 0;t.onChange(e)}},"right"),t.options.includes("space-between")&&(0,s.jsx)(d.Button,{icon:tn,label:(0,l.__)("Justify with space between"),showTooltip:!0,isPressed:"space-between"===t.justifyContent,onClick:function(){var e="space-between"!==t.justifyContent?"space-between":void 0;t.onChange(e)}},"space-between"),t.options.includes("stretch")&&(0,s.jsx)(d.Button,{icon:en,label:(0,l.__)("Justify stretch"),showTooltip:!0,isPressed:"stretch"===t.justifyContent,onClick:function(){var e="stretch"!==t.justifyContent?"stretch":void 0;t.onChange(e)}},"stretch")]})};nn.defaultProps={label:(0,l.__)("Justify Content"),options:["left","center","right","space-between","stretch"]};const on=nn;var rn=function(){return rn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},rn.apply(this,arguments)};const an=function(t){var e=x(),n=t.options?t.options:["left","center","right","wide","full"];return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(on,{justifyContent:t.attributes.justifyContent,onChange:function(e){t.setAttributes(rn(rn({},t.attributes),{justifyContent:e}))},options:n}),"Tablet"===e&&(0,s.jsx)(on,{justifyContent:t.attributes.tabletJustifyContent,onChange:function(e){t.setAttributes(rn(rn({},t.attributes),{tabletJustifyContent:e}))},options:n}),"Mobile"===e&&(0,s.jsx)(on,{justifyContent:t.attributes.mobileJustifyContent,onChange:function(e){t.setAttributes(rn(rn({},t.attributes),{mobileJustifyContent:e}))},options:n})]})};var sn=function(){return sn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},sn.apply(this,arguments)},ln=function(t){return(0,s.jsxs)("div",{className:"mrblx--justify-content-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)(an,sn({},t)):(0,s.jsx)(on,{label:t.label,options:t.options,justifyContent:t.attributes.justifyContent,onChange:function(e){t.setAttributes(sn(sn({},t.attributes),{justifyContent:e}))}})]})};ln.defaultProps={label:(0,l.__)("Justify Content"),options:["left","center","right","space-between","stretch"]};const un=ln,dn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M7 11.5h10V13H7z"})),cn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"})),bn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"})),vn=(0,v.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(f.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"})),fn=function(t){return(0,s.jsxs)("div",{className:"mrblx--letter-case-control",children:[(0,s.jsx)(L,{title:"Letter Case"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(d.Button,{icon:dn,describedBy:"None",isPressed:"none"===t.textTransform,onClick:function(){return t.onChange("none"!==t.textTransform?"none":void 0)}}),(0,s.jsx)(d.Button,{icon:cn,describedBy:"Uppercase",isPressed:"uppercase"===t.textTransform,onClick:function(){return t.onChange("uppercase"!==t.textTransform?"uppercase":void 0)}}),(0,s.jsx)(d.Button,{icon:bn,describedBy:"Lowercase",isPressed:"lowercase"===t.textTransform,onClick:function(){return t.onChange("lowercase"!==t.textTransform?"lowercase":void 0)}}),(0,s.jsx)(d.Button,{icon:vn,describedBy:"Capitalize",isPressed:"capitalize"===t.textTransform,onClick:function(){return t.onChange("capitalize"!==t.textTransform?"capitalize":void 0)}})]})]})};var pn=[{label:"No Opener",value:"noopener"},{label:"No Follow",value:"nofollow"},{label:"Sponsored",value:"sponsored"},{label:"User Generated Content",value:"ugc"}];const hn=function(t){return(0,s.jsxs)("div",{className:"mrblx--rel-control",children:[(0,s.jsx)(L,{title:(0,l.__)("rel Tag")}),(0,s.jsx)(d.SelectControl,{multiple:!0,value:t.value,options:pn,onChange:t.onChange,__nextHasNoMarginBottom:!0})]})},gn=function(t){var e=t.attributes.rel?t.attributes.rel:[];return(0,s.jsxs)("div",{className:"mrblx--link-control",children:[(0,s.jsx)(d.TextControl,{label:(0,l.__)("Link"),value:t.attributes.href?t.attributes.href:"",onChange:function(e){return t.setAttributes({href:e||void 0})},help:(0,l.__)("Opens this page when clicked.")}),(0,s.jsx)(d.ToggleControl,{label:(0,l.__)("Open in new tab."),checked:"_blank"===t.attributes.target,onChange:function(e){t.setAttributes({target:e?"_blank":void 0})}}),(0,s.jsx)(hn,{value:e,onChange:function(e){t.setAttributes({rel:e})}})]})};var mn=[{key:"default",name:"Default"},{key:"none",name:"None"},{key:"disc",name:"Disc",className:"mrblx--disk"},{key:"circle",name:"Circle",className:"mrblx--circle"},{key:"square",name:"Square",className:"mrblx--square"}];const xn=function(t){return(0,s.jsx)("div",{className:"mrblx--list-style-type-control",children:(0,s.jsx)(d.CustomSelectControl,{label:t.label,options:mn,onChange:function(e){var n;(n=e.selectedItem)&&"default"!==n.key?t.onChange(n.key):t.onChange(void 0)},value:(e=t.value,e?mn.find((function(t){return t.key===e})):mn[0])})});var e};var yn=function(){return yn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},yn.apply(this,arguments)};const Cn=function(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ge,{title:"top",value:t.attributes.marginTop,onChange:function(e){return t.setAttributes(yn(yn({},t.attributes),{marginTop:e}))},onClear:void 0!==t.attributes.marginTop?function(){return t.setAttributes(yn(yn({},t.attributes),{marginTop:void 0}))}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0},"top"),(0,s.jsx)(Ge,{title:"right",value:t.attributes.marginRight,onChange:function(e){return t.setAttributes(yn(yn({},t.attributes),{marginRight:e}))},onClear:void 0!==t.attributes.marginRight?function(){return t.setAttributes(yn(yn({},t.attributes),{marginRight:void 0}))}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0},"right"),(0,s.jsx)(Ge,{title:"bottom",value:t.attributes.marginBottom,onChange:function(e){return t.setAttributes(yn(yn({},t.attributes),{marginBottom:e}))},onClear:void 0!==t.attributes.marginBottom?function(){return t.setAttributes(yn(yn({},t.attributes),{marginBottom:void 0}))}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0},"bottom"),(0,s.jsx)(Ge,{title:"left",value:t.attributes.marginLeft,onChange:function(e){return t.setAttributes(yn(yn({},t.attributes),{marginLeft:e}))},onClear:void 0!==t.attributes.marginLeft?function(){return t.setAttributes(yn(yn({},t.attributes),{marginLeft:void 0}))}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0},"left")]})};function jn(t){return t.marginTop===t.marginBottom&&t.marginTop===t.marginRight&&t.marginTop===t.marginLeft}function An(t,e){if(function(t,e){switch(e){case"Tablet":return t.tabletMarginTop!==t.tabletMarginBottom||t.tabletMarginTop!==t.tabletMarginLeft||t.tabletMarginTop!==t.tabletMarginRight;case"Mobile":return t.mobileMarginTop!==t.mobileMarginBottom||t.mobileMarginTop!==t.mobileMarginLeft||t.mobileMarginTop!==t.mobileMarginRight}return!jn(t)}(t,e))return"MIXED";var n=t.marginTop;switch(e){case"Tablet":n=t.tabletMarginTop;break;case"Mobile":n=t.mobileMarginTop}return"0px"===n?"0":void 0!==n?n.toString():"∅"}function Rn(t,e){switch(e){case"Tablet":return void 0!==t.tabletMarginTop||void 0!==t.tabletMarginRight||void 0!==t.tabletMarginBottom||void 0!==t.tabletMarginLeft;case"Mobile":return void 0!==t.mobileMarginTop||void 0!==t.mobileMarginRight||void 0!==t.mobileMarginBottom||void 0!==t.mobileMarginLeft}return void 0!==t.marginTop||void 0!==t.marginLeft||void 0!==t.marginBottom||void 0!==t.marginRight}const wn=function(t){var e=!(t.attributes.marginTop===t.attributes.marginRight&&t.attributes.marginTop===t.attributes.marginBottom&&t.attributes.marginTop===t.attributes.marginLeft);return(0,s.jsx)(s.Fragment,{children:t.isLinked?(0,s.jsx)(Ge,{value:jn(t.attributes)?t.attributes.marginTop:void 0,onChange:function(e){t.setAttributes({marginTop:e,marginRight:e,marginBottom:e,marginLeft:e})},onClear:e||void 0!==t.attributes.marginTop?function(){var e;e={},t.setAttributes({marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left})}:void 0,isAdvanced:t.isAdvanced,allowAuto:!0}):(0,s.jsx)(Cn,{title:"Margin",attributes:t.attributes,setAttributes:t.setAttributes,isLinked:t.isLinked,isAdvanced:t.isAdvanced})})};var Bn=function(){return Bn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Bn.apply(this,arguments)};const kn=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(wn,{attributes:t.attributes,setAttributes:function(e){t.setAttributes(Bn(Bn({},t.attributes),e))},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Tablet"===e&&(0,s.jsx)(wn,{attributes:{marginTop:t.attributes.tabletMarginTop,marginRight:t.attributes.tabletMarginRight,marginBottom:t.attributes.tabletMarginBottom,marginLeft:t.attributes.tabletMarginLeft},setAttributes:function(e){return t.setAttributes(Bn(Bn({},t.attributes),{tabletMarginTop:e.marginTop,tabletMarginRight:e.marginRight,tabletMarginBottom:e.marginBottom,tabletMarginLeft:e.marginLeft}))},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Mobile"===e&&(0,s.jsx)(wn,{attributes:{marginTop:t.attributes.mobileMarginTop,marginRight:t.attributes.mobileMarginRight,marginBottom:t.attributes.mobileMarginBottom,marginLeft:t.attributes.mobileMarginLeft},setAttributes:function(e){return t.setAttributes(Bn(Bn({},t.attributes),{mobileMarginTop:e.marginTop,mobileMarginRight:e.marginRight,mobileMarginBottom:e.marginBottom,mobileMarginLeft:e.marginLeft}))},isAdvanced:t.isAdvanced,isLinked:t.isLinked})]})};var Sn=function(){return Sn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Sn.apply(this,arguments)},Tn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},Ln=function(t){var e=x(!!t.isResponsive),n=Tn((0,h.useState)(!0),2),o=n[0],i=n[1],r=Tn((0,h.useState)(!1),2),a=r[0],l=r[1];return(0,s.jsxs)("div",{className:"mrblx--margin-control",children:[(0,s.jsx)(L,{title:t.label,hint:o?An(t.attributes,e):"",isLinked:o,onLinkedChange:i,isAdvanced:a,onAdvancedChange:l,isResponsive:t.isResponsive,onClear:Rn(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletMarginTop:void 0,tabletMarginRight:void 0,tabletMarginBottom:void 0,tabletMarginLeft:void 0}):"Mobile"===e?t.setAttributes({mobileMarginTop:void 0,mobileMarginRight:void 0,mobileMarginBottom:void 0,mobileMarginLeft:void 0}):t.setAttributes({marginTop:void 0,marginRight:void 0,marginBottom:void 0,marginLeft:void 0})}:void 0}),t.isResponsive?(0,s.jsx)(kn,Sn({},t,{isAdvanced:a,isLinked:o})):(0,s.jsx)(wn,{attributes:t.attributes,setAttributes:t.setAttributes,isAdvanced:a,isLinked:o})]})};Ln.defaultProps={label:(0,l.__)("Margin")};const Mn=Ln;function Pn(t,e,n){return K(t,e,n)}function On(t,e,n){return void 0!==t[Pn("url",e,n)]}function zn(t,e,n){var o=t[Pn("showOn",e,n)];return void 0===o||!!o}function In(t,e,n){return!!e&&!!(t.url||t.tabletUrl||t.mobileUrl)}var En=function(t){var e,n,o=x(),i=function(e){var n,i;e&&e.url?t.setAttributes(((i={})[Pn("url",t.isResponsive,o)]=e.url,i[Pn("id",t.isResponsive,o)]=e.id,i[Pn("alt",t.isResponsive,o)]=e.alt,i[Pn("width",t.isResponsive,o)]=e.width,i[Pn("height",t.isResponsive,o)]=e.height,i[Pn("sizes",t.isResponsive,o)]=e.sizes,i)):t.setAttributes(((n={})[Pn("url",t.isResponsive,o)]=void 0,n[Pn("id",t.isResponsive,o)]=void 0,n[Pn("alt",t.isResponsive,o)]=void 0,n[Pn("width",t.isResponsive,o)]=void 0,n[Pn("height",t.isResponsive,o)]=void 0,n[Pn("sizes",t.isResponsive,o)]=void 0,n))};return(0,s.jsxs)("div",{className:"mrblx--media-control",children:[(0,s.jsx)(L,{title:t.title,onClear:On(t.attributes,t.isResponsive,o)?function(){i(null)}:void 0,isResponsive:t.isResponsive}),t.attributes[Pn("url",t.isResponsive,o)]?(0,s.jsx)("div",{className:"mrblx--filename",children:(e=t.attributes[Pn("url",t.isResponsive,o)]||"",void 0===n&&(n="/"),(e=e.substring(e.lastIndexOf(n)+1)).endsWith(")")&&(e=e.substring(0,e.length-1)),e)}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.MediaPlaceholder,{labels:{title:""},accept:"image/*",allowedTypes:["image"],onSelect:function(t){return i(t)},multiple:!1,onHTMLDrop:function(){}}),!!t.help&&(0,s.jsx)("small",{children:t.help})]}),In(t.attributes,t.isResponsive)&&(0,s.jsx)(d.ToggleControl,{label:"Show on ".concat(t.isResponsive?o:"Desktop"),checked:zn(t.attributes,t.isResponsive,o),onChange:function(e){var n;t.setAttributes(((n={})[Pn("showOn",t.isResponsive,o)]=e,n))}})]})};En.defaultProps={isResponsive:!1};const Nn=En;var Hn=function(){return Hn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Hn.apply(this,arguments)};const Vn=function(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ge,{title:"top",value:t.attributes.paddingTop,onChange:function(e){return t.setAttributes(Hn(Hn({},t.attributes),{paddingTop:e}))},onClear:void 0!==t.attributes.paddingTop?function(){return t.setAttributes(Hn(Hn({},t.attributes),{paddingTop:void 0}))}:void 0,isAdvanced:t.isAdvanced},"top"),(0,s.jsx)(Ge,{title:"right",value:t.attributes.paddingRight,onChange:function(e){return t.setAttributes(Hn(Hn({},t.attributes),{paddingRight:e}))},onClear:void 0!==t.attributes.paddingRight?function(){return t.setAttributes(Hn(Hn({},t.attributes),{paddingRight:void 0}))}:void 0,isAdvanced:t.isAdvanced},"right"),(0,s.jsx)(Ge,{title:"bottom",value:t.attributes.paddingBottom,onChange:function(e){return t.setAttributes(Hn(Hn({},t.attributes),{paddingBottom:e}))},onClear:void 0!==t.attributes.paddingBottom?function(){return t.setAttributes(Hn(Hn({},t.attributes),{paddingBottom:void 0}))}:void 0,isAdvanced:t.isAdvanced},"bottom"),(0,s.jsx)(Ge,{title:"left",value:t.attributes.paddingLeft,onChange:function(e){return t.setAttributes(Hn(Hn({},t.attributes),{paddingLeft:e}))},onClear:void 0!==t.attributes.paddingLeft?function(){return t.setAttributes(Hn(Hn({},t.attributes),{paddingLeft:void 0}))}:void 0,isAdvanced:t.isAdvanced},"left")]})};function Fn(t){return t.paddingTop===t.paddingBottom&&t.paddingTop===t.paddingRight&&t.paddingTop===t.paddingLeft}function Dn(t,e){if(function(t,e){switch(e){case"Tablet":return t.tabletPaddingTop!==t.tabletPaddingBottom||t.tabletPaddingTop!==t.tabletPaddingLeft||t.tabletPaddingTop!==t.tabletPaddingRight;case"Mobile":return t.mobilePaddingTop!==t.mobilePaddingBottom||t.mobilePaddingTop!==t.mobilePaddingLeft||t.mobilePaddingTop!==t.mobilePaddingRight}return!Fn(t)}(t,e))return"MIXED";var n=t.paddingTop;switch(e){case"Tablet":n=t.tabletPaddingTop;break;case"Mobile":n=t.mobilePaddingTop}return"0px"===n?"0":void 0!==n?n.toString():"∅"}function Gn(t,e){switch(e){case"Tablet":return void 0!==t.tabletPaddingTop||void 0!==t.tabletPaddingRight||void 0!==t.tabletPaddingBottom||void 0!==t.tabletPaddingLeft;case"Mobile":return void 0!==t.mobilePaddingTop||void 0!==t.mobilePaddingRight||void 0!==t.mobilePaddingBottom||void 0!==t.mobilePaddingLeft}return void 0!==t.paddingTop||void 0!==t.paddingLeft||void 0!==t.paddingBottom||void 0!==t.paddingRight}const Wn=function(t){return(0,s.jsx)(s.Fragment,{children:t.isLinked?(0,s.jsx)(Ge,{value:Fn(t.attributes)?t.attributes.paddingTop:void 0,onChange:function(e){t.setAttributes({paddingTop:e,paddingRight:e,paddingBottom:e,paddingLeft:e})},onClear:(e=t.attributes,void 0!==e.paddingTop||void 0!==e.paddingRight||void 0!==e.paddingBottom||void 0!==e.paddingLeft?function(){var e;e={},t.setAttributes({paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left})}:void 0),isAdvanced:t.isAdvanced}):(0,s.jsx)(Vn,{title:"Padding",attributes:t.attributes,setAttributes:t.setAttributes,isLinked:t.isLinked,isAdvanced:t.isAdvanced})});var e};var Un=function(){return Un=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Un.apply(this,arguments)};const Xn=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(Wn,{attributes:t.attributes,setAttributes:function(e){t.setAttributes(Un(Un({},t.attributes),e))},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Tablet"===e&&(0,s.jsx)(Wn,{attributes:{paddingTop:t.attributes.tabletPaddingTop,paddingRight:t.attributes.tabletPaddingRight,paddingBottom:t.attributes.tabletPaddingBottom,paddingLeft:t.attributes.tabletPaddingLeft},setAttributes:function(e){return t.setAttributes(Un(Un({},t.attributes),{tabletPaddingTop:e.paddingTop,tabletPaddingRight:e.paddingRight,tabletPaddingBottom:e.paddingBottom,tabletPaddingLeft:e.paddingLeft}))},isAdvanced:t.isAdvanced,isLinked:t.isLinked}),"Mobile"===e&&(0,s.jsx)(Wn,{attributes:{paddingTop:t.attributes.mobilePaddingTop,paddingRight:t.attributes.mobilePaddingRight,paddingBottom:t.attributes.mobilePaddingBottom,paddingLeft:t.attributes.mobilePaddingLeft},setAttributes:function(e){return t.setAttributes(Un(Un({},t.attributes),{mobilePaddingTop:e.paddingTop,mobilePaddingRight:e.paddingRight,mobilePaddingBottom:e.paddingBottom,mobilePaddingLeft:e.paddingLeft}))},isAdvanced:t.isAdvanced,isLinked:t.isLinked})]})};var Jn=function(){return Jn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Jn.apply(this,arguments)},Zn=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},qn=function(t){var e=x(!!t.isResponsive),n=Zn((0,h.useState)(!0),2),o=n[0],i=n[1],r=Zn((0,h.useState)(!1),2),a=r[0],l=r[1];return(0,s.jsxs)("div",{className:"mrblx--padding-control",children:[(0,s.jsx)(L,{title:t.label,hint:o?Dn(t.attributes,e):"",isLinked:o,onLinkedChange:i,isAdvanced:a,onAdvancedChange:l,isResponsive:t.isResponsive,onClear:Gn(t.attributes,e)?function(){"Tablet"===e?t.setAttributes({tabletPaddingTop:void 0,tabletPaddingRight:void 0,tabletPaddingBottom:void 0,tabletPaddingLeft:void 0}):"Mobile"===e?t.setAttributes({mobilePaddingTop:void 0,mobilePaddingRight:void 0,mobilePaddingBottom:void 0,mobilePaddingLeft:void 0}):t.setAttributes({paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0})}:void 0}),t.isResponsive?(0,s.jsx)(Xn,Jn({},t,{isAdvanced:a,isLinked:o})):(0,s.jsx)(Wn,{attributes:t.attributes,setAttributes:t.setAttributes,isAdvanced:a,isLinked:o})]})};qn.defaultProps={label:(0,l.__)("Padding")};const Yn=qn,$n=function(t){return(0,s.jsxs)(d.ButtonGroup,{children:[(0,s.jsx)(d.Button,{icon:"editor-alignleft",label:(0,l.__)("Align left"),showTooltip:!0,isPressed:"left"===t.textAlign,onClick:function(){var e="left"!==t.textAlign?"left":void 0;t.onChange(e)}},"left"),(0,s.jsx)(d.Button,{icon:"editor-aligncenter",label:(0,l.__)("Align center"),showTooltip:!0,isPressed:"center"===t.textAlign,onClick:function(){var e="center"!==t.textAlign?"center":void 0;t.onChange(e)}},"center"),(0,s.jsx)(d.Button,{icon:"editor-alignright",label:(0,l.__)("Align right"),showTooltip:!0,isPressed:"right"===t.textAlign,onClick:function(){var e="right"!==t.textAlign?"right":void 0;t.onChange(e)}},"right")]})},Kn=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)($n,{textAlign:t.attributes.textAlign,onChange:function(e){t.setAttributes({textAlign:e})}}),"Tablet"===e&&(0,s.jsx)($n,{textAlign:t.attributes.tabletTextAlign,onChange:function(e){t.setAttributes({tabletTextAlign:e})}}),"Mobile"===e&&(0,s.jsx)($n,{textAlign:t.attributes.mobileTextAlign,onChange:function(e){t.setAttributes({mobileTextAlign:e})}})]})};var Qn=function(){return Qn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Qn.apply(this,arguments)},to=function(t){return(0,s.jsxs)("div",{className:"mrblx--text-align-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)(Kn,Qn({},t)):(0,s.jsx)($n,{label:t.label,textAlign:t.attributes.textAlign,onChange:function(e){t.setAttributes(Qn(Qn({},t.attributes),{textAlign:e}))}})]})};to.defaultProps={label:(0,l.__)("Text Align")};const eo=to,no=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})}),oo=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})}),io=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})}),ro=(0,s.jsx)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:(0,s.jsx)(f.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})}),ao=function(t){return(0,s.jsxs)(d.ButtonGroup,{children:[t.options.includes("top")&&(0,s.jsx)(d.Button,{icon:no,label:(0,l.__)("Align top"),showTooltip:!0,isPressed:"top"===t.verticalAlign,onClick:function(){var e="top"!==t.verticalAlign?"top":void 0;t.onChange(e)}},"top"),t.options.includes("middle")&&(0,s.jsx)(d.Button,{icon:io,label:(0,l.__)("Align middle"),showTooltip:!0,isPressed:"middle"===t.verticalAlign,onClick:function(){var e="middle"!==t.verticalAlign?"middle":void 0;t.onChange(e)}},"middle"),t.options.includes("bottom")&&(0,s.jsx)(d.Button,{icon:oo,label:(0,l.__)("Align bottom"),showTooltip:!0,isPressed:"bottom"===t.verticalAlign,onClick:function(){var e="bottom"!==t.verticalAlign?"bottom":void 0;t.onChange(e)}},"bottom"),t.options.includes("stretch")&&(0,s.jsx)(d.Button,{icon:ro,label:(0,l.__)("Stretch to fill"),showTooltip:!0,isPressed:"stretch"===t.verticalAlign,onClick:function(){var e="stretch"!==t.verticalAlign?"stretch":void 0;t.onChange(e)}},"stretch")]})};var so=function(){return so=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},so.apply(this,arguments)};const lo=function(t){var e=x();return(0,s.jsxs)(s.Fragment,{children:["Desktop"===e&&(0,s.jsx)(ao,{verticalAlign:t.attributes.verticalAlign,onChange:function(e){t.setAttributes(so(so({},t.attributes),{verticalAlign:e}))},options:t.options}),"Tablet"===e&&(0,s.jsx)(ao,{verticalAlign:t.attributes.tabletVerticalAlign,onChange:function(e){t.setAttributes(so(so({},t.attributes),{tabletVerticalAlign:e}))},options:t.options}),"Mobile"===e&&(0,s.jsx)(ao,{verticalAlign:t.attributes.mobileVerticalAlign,onChange:function(e){t.setAttributes(so(so({},t.attributes),{mobileVerticalAlign:e}))},options:t.options})]})};var uo=function(){return uo=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},uo.apply(this,arguments)},co=function(t){return(0,s.jsxs)("div",{className:"mrblx--vertical-align-control",children:[(0,s.jsx)(L,{title:t.label,isResponsive:t.isResponsive}),t.isResponsive?(0,s.jsx)(lo,uo({},t)):(0,s.jsx)(ao,{label:t.label,options:t.options,verticalAlign:t.attributes.verticalAlign,onChange:function(e){t.setAttributes(uo(uo({},t.attributes),{verticalAlign:e}))}})]})};co.defaultProps={label:(0,l.__)("Vertical Align"),options:["top","middle","bottom","stretch"]};const bo=co;var vo=n(373),fo=n.n(vo);const po=function(t){var e=t.name?t.name:"tab",n=Array.isArray(t.children)?t.children:[t.children],o=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}(w(e),2),i=o[0],r=o[1],a=function(t,e){for(var n=0;n<e.length;n++)if((e[n].key?e[n].key:n)===t)return n;return 0}(i,n);return(0,s.jsxs)("div",{className:"mrblx--tabbed-control",children:[(0,s.jsx)("div",{className:"mrblx--tabbed-header",children:n.map((function(e,n){var o=e.key?e.key:n,i=fo()("mrblx--tab",{"mrblx--tab-active":n===a});return(0,s.jsx)("div",{className:i,children:(0,s.jsx)(d.Button,{icon:e.props.icon,onClick:function(){r(o),t.onSelect&&t.onSelect(o)},children:e.props.icon?e.key:o})},o)}))}),n[a]]})};function ho(t,e,n){return K(t,e,n)}function go(t,e,n,o){return t[ho(e,n,o)]}function mo(t,e,n,o){var i;return(i={})[ho(e,n,o)]=t,i}function xo(t,e,n,o,i){if(i)return"";var r=go(t,e,n,o);return 0===r?"0":r?"".concat(r):"∅"}function yo(t,e,n,o){return void 0!==go(t,e,n,o)}var Co=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,i,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a},jo=[{value:"%",label:"%",default:0},{value:"px",label:"px",default:0},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:0},{value:"vh",label:"vh",default:0}],Ao={px:{min:16,max:512,step:1},"%":{min:0,max:100,step:1},em:{min:0,max:10,step:.01},rem:{min:0,max:10,step:.01},vw:{min:0,max:100,step:1},vh:{min:0,max:100,step:1}};function Ro(t,e){return 0===t||"%"===e&&void 0!==t?t:50}const wo=function(t){var e=x(),n=Co(Et(go(t.attributes,t.propertyName,t.isResponsive,e),"%"),2),o=n[0],i=n[1],r=Co((0,h.useState)(!1),2),a=r[0],l=r[1];function u(n){t.setAttributes(mo(n?"".concat(n,"%"):n,t.propertyName,t.isResponsive,e))}return(0,s.jsxs)("div",{className:"mrblx--width-height-control",children:[(0,s.jsx)(L,{title:t.label,hint:xo(t.attributes,t.propertyName,t.isResponsive,e,a),isAdvanced:a,onAdvancedChange:l,isResponsive:t.isResponsive,onClear:yo(t.attributes,t.propertyName,t.isResponsive,e)?function(){u(void 0)}:void 0}),a?(0,s.jsx)(Ft,{onChange:function(n){n=It(n)?"".concat(n).concat(i):n,t.setAttributes(mo(n,t.propertyName,t.isResponsive,e))},value:go(t.attributes,t.propertyName,t.isResponsive,e),units:jo,ranges:Ao}):(0,s.jsx)(d.RangeControl,{max:Ao[i].max,min:Ao[i].min,step:1,onBlur:function(){},onChange:u,onFocus:function(){},onMouseLeave:function(){},onMouseMove:function(){},withInputField:!1,value:Ro(o,i)})]})};var Bo={color:!0,backgroundColor:!0,fontSize:!0,textAlign:!0,fontAppearance:!0,letterCase:!0,margin:!0,padding:!0,border:!0};function ko(t){return!(!t||!t.responsive)}function So(t,e,n){if(n.color||n.backgroundColor){var o=ko(n.color)||ko(n.backgroundColor);return(0,s.jsxs)(b,{isResponsive:o,children:[n.color&&(0,s.jsx)(lt,{label:"Color",attributes:t,setAttributes:e,isResponsive:o,hideHeader:!0}),n.backgroundColor&&(0,s.jsx)(lt,{label:"Background",attributes:{color:t.backgroundColor,tabletColor:t.tabletBackgroundColor,mobileColor:t.mobileBackgroundColor},setAttributes:function(t){e({backgroundColor:t.color,tabletBackgroundColor:t.tabletColor,mobileBackgroundColor:t.mobileColor})},isResponsive:o,hideHeader:!0})]})}}const To=function(t){var e,n,o=t.options?t.options:Bo;return(0,s.jsxs)("div",{className:"mrblx--base-controls",children:[t.children,So(t.attributes,t.setAttributes,o),o.textAlign&&(0,s.jsx)(eo,{label:(e=o.textAlign,n="Text Align",void 0===n&&(n=void 0),e.label?e.label:n),attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:ko(o.textAlign)}),o.fontSize&&(0,s.jsx)(Ee,{attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:ko(o.fontSize)}),o.fontAppearance&&(0,s.jsx)(Le,{attributes:t.attributes,setAttributes:t.setAttributes}),o.letterCase&&(0,s.jsx)(fn,{textTransform:t.attributes.textTransform,onChange:function(e){t.setAttributes({textTransform:e})}}),o.margin&&(0,s.jsx)(Mn,{attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:ko(o.margin)}),o.padding&&(0,s.jsx)(Yn,{attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:ko(o.padding)}),o.border&&(0,s.jsx)(ie,{label:"Border",attributes:t.attributes,setAttributes:t.setAttributes,isResponsive:ko(o.border),disableRadiusControl:o.border.disableRadiusControl})]})},Lo=function(t){return(0,s.jsx)(ge,{title:t.title,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,initialOpen:t.initialOpen,children:(0,s.jsx)(_,{showDivider:!0,children:(0,s.jsx)(To,{attributes:t.attributes,setAttributes:t.setAttributes,options:t.options,children:t.children})})})}},335:(t,e,n)=>{"use strict";var o=n(609),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,n){var o,r={},u=null,d=null;for(o in void 0!==n&&(u=""+n),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(d=e.ref),e)a.call(e,o)&&!l.hasOwnProperty(o)&&(r[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps)void 0===r[o]&&(r[o]=e[o]);return{$$typeof:i,type:t,key:u,ref:d,props:r,_owner:s.current}}e.Fragment=r,e.jsx=u,e.jsxs=u},85:(t,e,n)=>{"use strict";t.exports=n(335)},609:t=>{"use strict";t.exports=window.React},373:(t,e)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,r(n)))}return t}function r(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)o.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()}},n={};function o(t){var i=n[t];if(void 0!==i)return i.exports;var r=n[t]={exports:{}};return e[t](r,r.exports,o),r.exports}o.m=e,t=[],o.O=(e,n,i,r)=>{if(!n){var a=1/0;for(d=0;d<t.length;d++){for(var[n,i,r]=t[d],s=!0,l=0;l<n.length;l++)(!1&r||a>=r)&&Object.keys(o.O).every((t=>o.O[t](n[l])))?n.splice(l--,1):(s=!1,r<a&&(a=r));if(s){t.splice(d--,1);var u=i();void 0!==u&&(e=u)}}return e}r=r||0;for(var d=t.length;d>0&&t[d-1][2]>r;d--)t[d]=t[d-1];t[d]=[n,i,r]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={584:0,439:0};o.O.j=e=>0===t[e];var e=(e,n)=>{var i,r,[a,s,l]=n,u=0;if(a.some((e=>0!==t[e]))){for(i in s)o.o(s,i)&&(o.m[i]=s[i]);if(l)var d=l(o)}for(e&&e(n);u<a.length;u++)r=a[u],o.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return o.O(d)},n=self.webpackChunkmrblx=self.webpackChunkmrblx||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var i=o.O(void 0,[439],(()=>o(479)));i=o.O(i),mrblx=i})(); -
mindspun-responsive-blocks/trunk/dist/paragraph/block.json
r3093332 r3096856 3 3 "apiVersion": 3, 4 4 "name": "mindspun/paragraph", 5 "version": "0.1 5.2",5 "version": "0.16.0", 6 6 "title": "Paragraph", 7 7 "category": "mindspun-responsive-blocks", -
mindspun-responsive-blocks/trunk/dist/paragraph/index.asset.php
r3090237 r3096856 1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-primitives'), 'version' => ' 2fefa9293477e5a941c1');1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-primitives'), 'version' => 'e5cef6fb450b6d3f3540'); -
mindspun-responsive-blocks/trunk/dist/paragraph/index.js
r3090237 r3096856 1 (()=>{"use strict";var e,t={711:()=>{const e=window.wp.blocks,t=window.React,r=window.wp.primitives,n=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),o=window.wp.blockEditor,s=window.mrblx,l=e=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(o.InspectorControls,null,(0,t.createElement)(s.ContainerContents,null,(0,t.createElement)(s.BaseControls,{attributes:e.attributes.style?e.attributes.style:{},setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},textAlign:{responsive:!0},fontSize:{responsive:!0},letterCase:!0,fontAppearance:!0,margin:{responsive:!0},padding:{responsive:!0}}})),(0,t.createElement)(s.ContainerControl,{title:"Custom CSS"},(0,t.createElement)(s.ContainerContents,null,(0,t.createElement)(s.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))),(0,t.createElement)(o.InspectorAdvancedControls,null,(0,t.createElement)(s.BlockId,{attributes:e.attributes}) )),i=JSON.parse('{"UU":"mindspun/paragraph"}'),a={foreground:"#005ffe",src:n};(0,e.registerBlockType)(i.UU,{edit:function(e){const r=(0,s.useBlockPropsWithId)(e);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(l,{...e}),(0,t.createElement)(s.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,t.createElement)(o.RichText,{identifier:"content",...r,tagName:"p",onChange:t=>{e.setAttributes({content:t})},value:e.attributes.content,allowedFormats:["core/bold","core/italic","core/link"],placeholder:"Enter text..."}))},save:function(e){return(0,t.createElement)(o.RichText.Content,{...s.useBlockPropsWithId.save(e),tagName:"p",value:e.attributes.content})},icon:a})}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.m=t,e=[],n.O=(t,r,o,s)=>{if(!r){var l=1/0;for(u=0;u<e.length;u++){for(var[r,o,s]=e[u],i=!0,a=0;a<r.length;a++)(!1&s||l>=s)&&Object.keys(n.O).every((e=>n.O[e](r[a])))?r.splice(a--,1):(i=!1,s<l&&(l=s));if(i){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[r,o,s]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={187:0,332:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,s,[l,i,a]=r,c=0;if(l.some((t=>0!==e[t]))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(a)var u=a(n)}for(t&&t(r);c<l.length;c++)s=l[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(u)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o=n.O(void 0,[332],(()=>n(711)));o=n.O(o)})();1 (()=>{"use strict";var e,t={711:()=>{const e=window.wp.blocks,t=window.React,r=window.wp.primitives,n=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),o=window.wp.blockEditor,s=window.mrblx,l=e=>(0,t.createElement)(t.Fragment,null,(0,t.createElement)(o.InspectorControls,null,(0,t.createElement)(s.ContainerContents,null,(0,t.createElement)(s.BaseControls,{attributes:e.attributes.style?e.attributes.style:{},setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},textAlign:{responsive:!0},fontSize:{responsive:!0},letterCase:!0,fontAppearance:!0,margin:{responsive:!0},padding:{responsive:!0}}})),(0,t.createElement)(s.ContainerControl,{title:"Custom CSS"},(0,t.createElement)(s.ContainerContents,null,(0,t.createElement)(s.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))),(0,t.createElement)(o.InspectorAdvancedControls,null,(0,t.createElement)(s.BlockId,{attributes:e.attributes}),(0,t.createElement)(s.ViewAll,{attributes:e.attributes.style,onClear:()=>e.setAttributes({style:{}})}))),i=JSON.parse('{"UU":"mindspun/paragraph"}'),a={foreground:"#005ffe",src:n};(0,e.registerBlockType)(i.UU,{edit:function(e){const r=(0,s.useBlockPropsWithId)(e);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(l,{...e}),(0,t.createElement)(s.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.style}),(0,t.createElement)(o.RichText,{identifier:"content",...r,tagName:"p",onChange:t=>{e.setAttributes({content:t})},value:e.attributes.content,allowedFormats:["core/bold","core/italic","core/link"],placeholder:"Enter text..."}))},save:function(e){return(0,t.createElement)(o.RichText.Content,{...s.useBlockPropsWithId.save(e),tagName:"p",value:e.attributes.content})},icon:a})}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.m=t,e=[],n.O=(t,r,o,s)=>{if(!r){var l=1/0;for(u=0;u<e.length;u++){for(var[r,o,s]=e[u],i=!0,a=0;a<r.length;a++)(!1&s||l>=s)&&Object.keys(n.O).every((e=>n.O[e](r[a])))?r.splice(a--,1):(i=!1,s<l&&(l=s));if(i){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[r,o,s]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={187:0,332:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,s,[l,i,a]=r,c=0;if(l.some((t=>0!==e[t]))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(a)var u=a(n)}for(t&&t(r);c<l.length;c++)s=l[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.O(u)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o=n.O(void 0,[332],(()=>n(711)));o=n.O(o)})(); -
mindspun-responsive-blocks/trunk/dist/show/block.json
r3093332 r3096856 3 3 "apiVersion": 3, 4 4 "name": "mindspun/show-hide", 5 "version": "0.1 5.2",5 "version": "0.16.0", 6 6 "title": "Show/Hide", 7 7 "category": "mindspun-responsive-blocks", -
mindspun-responsive-blocks/trunk/dist/show/index.asset.php
r3090237 r3096856 1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => ' 45d77b409e9310ceae72');1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '142b1c1811603973fabf'); -
mindspun-responsive-blocks/trunk/dist/show/index.js
r3090237 r3096856 1 (()=>{var t,e={563:(t,e,n)=>{"use strict";const r=window.wp.blocks,o=window.React,i=window.wp.components,l=window.wp.blockEditor,s=window.wp.element,a=window.wp.data,u=window.wp.i18n,c=window.mrblx,d=[{label:"None",value:"none"},{label:"Flip Right",value:"flip-right"},{label:"Flip Left",value:"flip-left"},{label:"Flip Up",value:"flip-up"},{label:"Flip Down",value:"flip-down"},{label:"Slide Right",value:"slide-right"},{label:"Slide Left",value:"slide-left"},{label:"Slide Up",value:"slide-up"},{label:"Slide Down",value:"slide-down"}],p=t=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorControls,null,(0,o.createElement)("div",{className:"wp-block-mindspun-show-hide--controls"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)(i.SelectControl,{label:(0,u.__)("Transition"),value:t.attributes.transition,options:d,onChange:e=>t.setAttributes({transition:e}),__nextHasNoMarginBottom:!0}),(0,o.createElement)(c.WidthHeightControl,{label:"Height",propertyName:"height",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,o.createElement)(c.WidthHeightControl,{label:"Width",propertyName:"width",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})))),(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(i.TextControl,{label:(0,u.__)("Event Type"),value:t.attributes.eventType?t.attributes.eventType:"mrblx.show",onChange:e=>{t.setAttributes({eventType:e})},help:(0,u.__)("The custom event that shows a given inner block.")}),(0,o.createElement)(i.__experimentalNumberControl,{label:(0,u.__)("Transition Duration"),value:t.attributes.transitionDuration?t.attributes.transitionDuration:.8,onChange:e=>{const n=e?parseFloat(e):null;t.setAttributes({transitionDuration:n||null})},isShiftStepEnabled:!0,shiftStep:.1,help:(0,u.__)("How long the transition should take to complete, measured in seconds.")}) )),m=window.wp.primitives,b=(0,o.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(m.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),h=t=>(0,o.createElement)(l.InspectorControls,null,(0,o.createElement)("div",{className:"wp-block-mindspun-tab--controls"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)("div",{className:"mrblx--tab-controls"},(0,o.createElement)(i.TextControl,{label:(0,u.__)("Event Target"),value:t.attributes.target?t.attributes.target:"",onChange:e=>{t.setAttributes({target:e})},help:(0,u.__)("The custom event target to show this block. If not specified, the target defaults to the block ID: ")+`mrblx-${t.attributes.blockId}`})))));var f=n(373),g=n.n(f);const v="mindspun/show-hide-inner";var C;function w(t){const e=`mrblx-${t}`;return[["mindspun/show-hide-inner",{target:`${e}-x1`},[["mindspun/container",{style:{backgroundColor:"#005FFE",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",paddingTop:"1em",paddingRight:"1em",paddingBottom:"1em",paddingLeft:"1em"}},[["mindspun/paragraph",{content:"Inner Block 1",style:{textAlign:"center",fontSize:"1.75rem",color:"#fff",marginBottom:".25em"}}],["mindspun/buttons",{style:{justifyContent:"center"}},[["mindspun/button",{text:"Show #2",customEvent:{type:"mrblx.show",detail:`${e}-x2`},style:{backgroundColor:"#FF000D"}}],["mindspun/button",{text:"Show #3",customEvent:{type:"mrblx.show",detail:`${e}-x3`},style:{backgroundColor:"#0ADD08"}}]]]]]]],["mindspun/show-hide-inner",{target:`${e}-x2`},[["mindspun/container",{style:{backgroundColor:"#FF000D",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",paddingTop:"1em",paddingRight:"1em",paddingBottom:"1em",paddingLeft:"1em"}},[["mindspun/paragraph",{content:"Inner Block 2",style:{textAlign:"center",fontSize:"1.75rem",color:"#fff",marginBottom:".25em"}}],["mindspun/buttons",{style:{justifyContent:"center"}},[["mindspun/button",{text:"Show #1",customEvent:{type:"mrblx.show",detail:`${e}-x1`},style:{backgroundColor:"#005FFE"}}],["mindspun/button",{text:"Show #3",customEvent:{type:"mrblx.show",detail:`${e}-x3`},style:{backgroundColor:"#0ADD08"}}]]]]]]],["mindspun/show-hide-inner",{target:`${e}-x3`},[["mindspun/container",{style:{backgroundColor:"#0ADD08",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",paddingTop:"1em",paddingRight:"1em",paddingBottom:"1em",paddingLeft:"1em"}},[["mindspun/paragraph",{content:"Inner Block 3",style:{textAlign:"center",fontSize:"1.75rem",color:"#fff",marginBottom:".25em"}}],["mindspun/buttons",{style:{justifyContent:"center"}},[["mindspun/button",{text:"Show #1",customEvent:{type:"mrblx.show",detail:`${e}-x1`},style:{backgroundColor:"#005FFE"}}],["mindspun/button",{text:"Show #2",customEvent:{type:"mrblx.show",detail:`${e}-x2`},style:{backgroundColor:"#FF000D"}}]]]]]]]]}C={name:v,title:"Inner Block",description:"A block that can be conditionally shown or hidden.",parent:["mindspun/show-hide"],attributes:{blockId:{type:"string"},target:{type:"string"},isDefault:{type:"boolean",default:!0}},edit:function(t){const e=(n=t.clientId,(0,a.useSelect)((t=>{const e=t("core/block-editor").getSelectedBlock();if(e?.clientId===n)return!0;if(e){const r=t("core/block-editor").getBlockParents(e.clientId);for(const t of r)if(t===n)return!0}return!1}),[n]));var n;const r=g()({"mrblx--default":t.attributes.isDefault,"mrblx--active":e}),i=(0,c.useBlockPropsWithId)(t,{className:r}),u=(0,l.useInnerBlocksProps)(i);return(0,s.useEffect)((()=>{t.setAttributes({isDefault:!!t.attributes.blockId&&t.context["mindspun/defaultBlockId"]===t.attributes.blockId})}),[t]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(h,{...t}),(0,o.createElement)("div",{...u}))},save:function(t){const e=g()({"mrblx--show":t.attributes.isDefault}),n=c.useBlockPropsWithId.save(t,{className:e}),r=l.useInnerBlocksProps.save(n);return(0,o.createElement)("div",{...r,"data-target":t.attributes.target?t.attributes.target:void 0})},icon:{foreground:"#005ffe",src:b},usesContext:["mindspun/defaultBlockId"]},(0,r.registerBlockType)(C.name,{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,category:"mindspun-responsive-blocks",textdomain:"mrblx",...C});const y=JSON.parse('{"UU":"mindspun/show-hide"}');(0,r.registerBlockType)(y.UU,{edit:function(t){const e=(0,c.useBlockPropsWithId)(t),n=(r=t.clientId,(0,a.useSelect)((t=>{const e=t("core/block-editor").getBlock(r);return e&&e.innerBlocks.length>0?e.innerBlocks[0].attributes.blockId:null}),[r]));var r;(0,s.useEffect)((()=>{t.setAttributes({defaultBlockId:n||""})}),[n,t]);const i=(0,l.useInnerBlocksProps)({},{allowedBlocks:[v],template:w(t.attributes.blockId)});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p,{...t}),(0,o.createElement)(c.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,o.createElement)("div",{...e},(0,o.createElement)("div",{...i})))},save:function(t){const e=c.useBlockPropsWithId.save(t,{className:g()({[`mrblx--transition-${t.attributes.transition}`]:!!t.attributes.transition&&"none"!==t.attributes.transition})}),n=l.useInnerBlocksProps.save();return(0,o.createElement)("div",{...e,"data-transition-duration":t.attributes.transitionDuration?`${t.attributes.transitionDuration}s`:void 0,"data-event-type":t.attributes.eventType?t.attributes.eventType:void 0},(0,o.createElement)("div",{...n}))},icon:{foreground:"#005ffe",src:()=>(0,o.createElement)(i.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1238 24.1395C8.30113 24.4476 8.5412 24.8481 8.84217 25.3141C9.57763 26.4529 10.6669 27.9675 12.0815 29.4764C14.938 32.5234 18.9434 35.3651 23.9116 35.3651C28.8798 35.3651 32.8852 32.5234 35.7417 29.4764C37.1563 27.9675 38.2456 26.4529 38.9811 25.3141C39.282 24.8481 39.5221 24.4476 39.6994 24.1395C39.5221 23.8315 39.282 23.431 38.9811 22.9649C38.2456 21.8262 37.1563 20.3115 35.7417 18.8026C32.8852 15.7557 28.8798 12.9139 23.9116 12.9139C18.9434 12.9139 14.938 15.7557 12.0815 18.8026C10.6669 20.3115 9.57763 21.8262 8.84217 22.9649C8.5412 23.431 8.30113 23.8315 8.1238 24.1395ZM41.4093 24.1395C42.7509 23.4687 42.7507 23.4682 42.7504 23.4676L42.7497 23.4663L42.7479 23.4627L42.7425 23.4521L42.7247 23.4172C42.7097 23.388 42.6884 23.347 42.6609 23.295C42.6059 23.1911 42.526 23.0431 42.4215 22.8573C42.2126 22.486 41.9049 21.9624 41.5012 21.3374C40.6957 20.0901 39.4983 18.4233 37.9303 16.7508C34.8218 13.435 30.0783 9.91394 23.9116 9.91394C17.7449 9.91394 13.0015 13.435 9.89289 16.7508C8.32492 18.4233 7.12758 20.0901 6.32205 21.3374C5.91836 21.9624 5.61062 22.486 5.40173 22.8573C5.29722 23.0431 5.21729 23.1911 5.1623 23.295C5.1348 23.347 5.11352 23.388 5.09851 23.4172L5.08069 23.4521L5.07532 23.4627L5.07283 23.4676C5.07255 23.4682 5.0723 23.4687 6.41394 24.1395L5.0723 23.4687C4.86115 23.891 4.86115 24.3881 5.0723 24.8103L6.41394 24.1395C5.0723 24.8103 5.07255 24.8109 5.07283 24.8114L5.07532 24.8163L5.08069 24.827L5.09851 24.8619C5.11352 24.8911 5.1348 24.932 5.1623 24.984C5.21729 25.0879 5.29722 25.2359 5.40173 25.4217C5.61062 25.7931 5.91836 26.3166 6.32205 26.9417C7.12758 28.1889 8.32492 29.8557 9.89289 31.5282C13.0015 34.844 17.7449 38.3651 23.9116 38.3651C30.0783 38.3651 34.8218 34.844 37.9303 31.5282C39.4983 29.8557 40.6957 28.1889 41.5012 26.9417C41.9049 26.3166 42.2126 25.7931 42.4215 25.4217C42.526 25.2359 42.6059 25.0879 42.6609 24.984C42.6884 24.932 42.7097 24.8911 42.7247 24.8619L42.7425 24.827L42.7479 24.8163L42.7497 24.8128L42.7504 24.8114C42.7507 24.8109 42.7509 24.8103 41.4093 24.1395ZM41.4093 24.1395L42.7509 24.8103C42.9621 24.3881 42.9621 23.891 42.7509 23.4687L41.4093 24.1395Z",fill:"currentColor"}),(0,o.createElement)(i.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.9116 20.8674C22.1045 20.8674 20.6395 22.3324 20.6395 24.1395C20.6395 25.9467 22.1045 27.4116 23.9116 27.4116C25.7187 27.4116 27.1837 25.9467 27.1837 24.1395C27.1837 22.3324 25.7187 20.8674 23.9116 20.8674ZM17.6395 24.1395C17.6395 20.6755 20.4476 17.8674 23.9116 17.8674C27.3756 17.8674 30.1837 20.6755 30.1837 24.1395C30.1837 27.6035 27.3756 30.4116 23.9116 30.4116C20.4476 30.4116 17.6395 27.6035 17.6395 24.1395Z",fill:"currentColor","fill-opacity":"0.8"}))}})},373:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=l(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=l(e,n));return e}function l(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.m=e,t=[],r.O=(e,n,o,i)=>{if(!n){var l=1/0;for(c=0;c<t.length;c++){for(var[n,o,i]=t[c],s=!0,a=0;a<n.length;a++)(!1&i||l>=i)&&Object.keys(r.O).every((t=>r.O[t](n[a])))?n.splice(a--,1):(s=!1,i<l&&(l=i));if(s){t.splice(c--,1);var u=o();void 0!==u&&(e=u)}}return e}i=i||0;for(var c=t.length;c>0&&t[c-1][2]>i;c--)t[c]=t[c-1];t[c]=[n,o,i]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={692:0,289:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,i,[l,s,a]=n,u=0;if(l.some((e=>0!==t[e]))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(a)var c=a(r)}for(e&&e(n);u<l.length;u++)i=l[u],r.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return r.O(c)},n=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var o=r.O(void 0,[289],(()=>r(563)));o=r.O(o)})();1 (()=>{var t,e={563:(t,e,n)=>{"use strict";const r=window.wp.blocks,o=window.React,i=window.wp.components,l=window.wp.blockEditor,s=window.wp.element,a=window.wp.data,u=window.wp.i18n,c=window.mrblx,d=[{label:"None",value:"none"},{label:"Flip Right",value:"flip-right"},{label:"Flip Left",value:"flip-left"},{label:"Flip Up",value:"flip-up"},{label:"Flip Down",value:"flip-down"},{label:"Slide Right",value:"slide-right"},{label:"Slide Left",value:"slide-left"},{label:"Slide Up",value:"slide-up"},{label:"Slide Down",value:"slide-down"}],p=t=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorControls,null,(0,o.createElement)("div",{className:"wp-block-mindspun-show-hide--controls"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)(i.SelectControl,{label:(0,u.__)("Transition"),value:t.attributes.transition,options:d,onChange:e=>t.setAttributes({transition:e}),__nextHasNoMarginBottom:!0}),(0,o.createElement)(c.WidthHeightControl,{label:"Height",propertyName:"height",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0}),(0,o.createElement)(c.WidthHeightControl,{label:"Width",propertyName:"width",attributes:t.attributes.style,setAttributes:e=>{t.setAttributes({style:{...t.attributes.style,...e}})},isResponsive:!0})))),(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(i.TextControl,{label:(0,u.__)("Event Type"),value:t.attributes.eventType?t.attributes.eventType:"mrblx.show",onChange:e=>{t.setAttributes({eventType:e})},help:(0,u.__)("The custom event that shows a given inner block.")}),(0,o.createElement)(i.__experimentalNumberControl,{label:(0,u.__)("Transition Duration"),value:t.attributes.transitionDuration?t.attributes.transitionDuration:.8,onChange:e=>{const n=e?parseFloat(e):null;t.setAttributes({transitionDuration:n||null})},isShiftStepEnabled:!0,shiftStep:.1,help:(0,u.__)("How long the transition should take to complete, measured in seconds.")}),(0,o.createElement)(c.BlockId,{attributes:t.attributes}),(0,o.createElement)(c.ViewAll,{attributes:t.attributes.style,onClear:()=>t.setAttributes({style:{}})}))),m=window.wp.primitives,b=(0,o.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(m.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),h=t=>(0,o.createElement)(l.InspectorControls,null,(0,o.createElement)("div",{className:"wp-block-mindspun-tab--controls"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)("div",{className:"mrblx--tab-controls"},(0,o.createElement)(i.TextControl,{label:(0,u.__)("Event Target"),value:t.attributes.target?t.attributes.target:"",onChange:e=>{t.setAttributes({target:e})},help:(0,u.__)("The custom event target to show this block. If not specified, the target defaults to the block ID: ")+`mrblx-${t.attributes.blockId}`})))));var f=n(373),g=n.n(f);const v="mindspun/show-hide-inner";var C;function w(t){const e=`mrblx-${t}`;return[["mindspun/show-hide-inner",{target:`${e}-x1`},[["mindspun/container",{style:{backgroundColor:"#005FFE",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",paddingTop:"1em",paddingRight:"1em",paddingBottom:"1em",paddingLeft:"1em"}},[["mindspun/paragraph",{content:"Inner Block 1",style:{textAlign:"center",fontSize:"1.75rem",color:"#fff",marginBottom:".25em"}}],["mindspun/buttons",{style:{justifyContent:"center"}},[["mindspun/button",{text:"Show #2",customEvent:{type:"mrblx.show",detail:`${e}-x2`},style:{backgroundColor:"#FF000D"}}],["mindspun/button",{text:"Show #3",customEvent:{type:"mrblx.show",detail:`${e}-x3`},style:{backgroundColor:"#0ADD08"}}]]]]]]],["mindspun/show-hide-inner",{target:`${e}-x2`},[["mindspun/container",{style:{backgroundColor:"#FF000D",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",paddingTop:"1em",paddingRight:"1em",paddingBottom:"1em",paddingLeft:"1em"}},[["mindspun/paragraph",{content:"Inner Block 2",style:{textAlign:"center",fontSize:"1.75rem",color:"#fff",marginBottom:".25em"}}],["mindspun/buttons",{style:{justifyContent:"center"}},[["mindspun/button",{text:"Show #1",customEvent:{type:"mrblx.show",detail:`${e}-x1`},style:{backgroundColor:"#005FFE"}}],["mindspun/button",{text:"Show #3",customEvent:{type:"mrblx.show",detail:`${e}-x3`},style:{backgroundColor:"#0ADD08"}}]]]]]]],["mindspun/show-hide-inner",{target:`${e}-x3`},[["mindspun/container",{style:{backgroundColor:"#0ADD08",display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",paddingTop:"1em",paddingRight:"1em",paddingBottom:"1em",paddingLeft:"1em"}},[["mindspun/paragraph",{content:"Inner Block 3",style:{textAlign:"center",fontSize:"1.75rem",color:"#fff",marginBottom:".25em"}}],["mindspun/buttons",{style:{justifyContent:"center"}},[["mindspun/button",{text:"Show #1",customEvent:{type:"mrblx.show",detail:`${e}-x1`},style:{backgroundColor:"#005FFE"}}],["mindspun/button",{text:"Show #2",customEvent:{type:"mrblx.show",detail:`${e}-x2`},style:{backgroundColor:"#FF000D"}}]]]]]]]]}C={name:v,title:"Inner Block",description:"A block that can be conditionally shown or hidden.",parent:["mindspun/show-hide"],attributes:{blockId:{type:"string"},target:{type:"string"},isDefault:{type:"boolean",default:!0}},edit:function(t){const e=(n=t.clientId,(0,a.useSelect)((t=>{const e=t("core/block-editor").getSelectedBlock();if(e?.clientId===n)return!0;if(e){const r=t("core/block-editor").getBlockParents(e.clientId);for(const t of r)if(t===n)return!0}return!1}),[n]));var n;const r=g()({"mrblx--default":t.attributes.isDefault,"mrblx--active":e}),i=(0,c.useBlockPropsWithId)(t,{className:r}),u=(0,l.useInnerBlocksProps)(i);return(0,s.useEffect)((()=>{t.setAttributes({isDefault:!!t.attributes.blockId&&t.context["mindspun/defaultBlockId"]===t.attributes.blockId})}),[t]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(h,{...t}),(0,o.createElement)("div",{...u}))},save:function(t){const e=g()({"mrblx--show":t.attributes.isDefault}),n=c.useBlockPropsWithId.save(t,{className:e}),r=l.useInnerBlocksProps.save(n);return(0,o.createElement)("div",{...r,"data-target":t.attributes.target?t.attributes.target:void 0})},icon:{foreground:"#005ffe",src:b},usesContext:["mindspun/defaultBlockId"]},(0,r.registerBlockType)(C.name,{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,category:"mindspun-responsive-blocks",textdomain:"mrblx",...C});const y=JSON.parse('{"UU":"mindspun/show-hide"}');(0,r.registerBlockType)(y.UU,{edit:function(t){const e=(0,c.useBlockPropsWithId)(t),n=(r=t.clientId,(0,a.useSelect)((t=>{const e=t("core/block-editor").getBlock(r);return e&&e.innerBlocks.length>0?e.innerBlocks[0].attributes.blockId:null}),[r]));var r;(0,s.useEffect)((()=>{t.setAttributes({defaultBlockId:n||""})}),[n,t]);const i=(0,l.useInnerBlocksProps)({},{allowedBlocks:[v],template:w(t.attributes.blockId)});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p,{...t}),(0,o.createElement)(c.StylePortalClientId,{clientId:t.clientId,attributes:t.attributes.style}),(0,o.createElement)("div",{...e},(0,o.createElement)("div",{...i})))},save:function(t){const e=c.useBlockPropsWithId.save(t,{className:g()({[`mrblx--transition-${t.attributes.transition}`]:!!t.attributes.transition&&"none"!==t.attributes.transition})}),n=l.useInnerBlocksProps.save();return(0,o.createElement)("div",{...e,"data-transition-duration":t.attributes.transitionDuration?`${t.attributes.transitionDuration}s`:void 0,"data-event-type":t.attributes.eventType?t.attributes.eventType:void 0},(0,o.createElement)("div",{...n}))},icon:{foreground:"#005ffe",src:()=>(0,o.createElement)(i.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(i.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1238 24.1395C8.30113 24.4476 8.5412 24.8481 8.84217 25.3141C9.57763 26.4529 10.6669 27.9675 12.0815 29.4764C14.938 32.5234 18.9434 35.3651 23.9116 35.3651C28.8798 35.3651 32.8852 32.5234 35.7417 29.4764C37.1563 27.9675 38.2456 26.4529 38.9811 25.3141C39.282 24.8481 39.5221 24.4476 39.6994 24.1395C39.5221 23.8315 39.282 23.431 38.9811 22.9649C38.2456 21.8262 37.1563 20.3115 35.7417 18.8026C32.8852 15.7557 28.8798 12.9139 23.9116 12.9139C18.9434 12.9139 14.938 15.7557 12.0815 18.8026C10.6669 20.3115 9.57763 21.8262 8.84217 22.9649C8.5412 23.431 8.30113 23.8315 8.1238 24.1395ZM41.4093 24.1395C42.7509 23.4687 42.7507 23.4682 42.7504 23.4676L42.7497 23.4663L42.7479 23.4627L42.7425 23.4521L42.7247 23.4172C42.7097 23.388 42.6884 23.347 42.6609 23.295C42.6059 23.1911 42.526 23.0431 42.4215 22.8573C42.2126 22.486 41.9049 21.9624 41.5012 21.3374C40.6957 20.0901 39.4983 18.4233 37.9303 16.7508C34.8218 13.435 30.0783 9.91394 23.9116 9.91394C17.7449 9.91394 13.0015 13.435 9.89289 16.7508C8.32492 18.4233 7.12758 20.0901 6.32205 21.3374C5.91836 21.9624 5.61062 22.486 5.40173 22.8573C5.29722 23.0431 5.21729 23.1911 5.1623 23.295C5.1348 23.347 5.11352 23.388 5.09851 23.4172L5.08069 23.4521L5.07532 23.4627L5.07283 23.4676C5.07255 23.4682 5.0723 23.4687 6.41394 24.1395L5.0723 23.4687C4.86115 23.891 4.86115 24.3881 5.0723 24.8103L6.41394 24.1395C5.0723 24.8103 5.07255 24.8109 5.07283 24.8114L5.07532 24.8163L5.08069 24.827L5.09851 24.8619C5.11352 24.8911 5.1348 24.932 5.1623 24.984C5.21729 25.0879 5.29722 25.2359 5.40173 25.4217C5.61062 25.7931 5.91836 26.3166 6.32205 26.9417C7.12758 28.1889 8.32492 29.8557 9.89289 31.5282C13.0015 34.844 17.7449 38.3651 23.9116 38.3651C30.0783 38.3651 34.8218 34.844 37.9303 31.5282C39.4983 29.8557 40.6957 28.1889 41.5012 26.9417C41.9049 26.3166 42.2126 25.7931 42.4215 25.4217C42.526 25.2359 42.6059 25.0879 42.6609 24.984C42.6884 24.932 42.7097 24.8911 42.7247 24.8619L42.7425 24.827L42.7479 24.8163L42.7497 24.8128L42.7504 24.8114C42.7507 24.8109 42.7509 24.8103 41.4093 24.1395ZM41.4093 24.1395L42.7509 24.8103C42.9621 24.3881 42.9621 23.891 42.7509 23.4687L41.4093 24.1395Z",fill:"currentColor"}),(0,o.createElement)(i.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.9116 20.8674C22.1045 20.8674 20.6395 22.3324 20.6395 24.1395C20.6395 25.9467 22.1045 27.4116 23.9116 27.4116C25.7187 27.4116 27.1837 25.9467 27.1837 24.1395C27.1837 22.3324 25.7187 20.8674 23.9116 20.8674ZM17.6395 24.1395C17.6395 20.6755 20.4476 17.8674 23.9116 17.8674C27.3756 17.8674 30.1837 20.6755 30.1837 24.1395C30.1837 27.6035 27.3756 30.4116 23.9116 30.4116C20.4476 30.4116 17.6395 27.6035 17.6395 24.1395Z",fill:"currentColor","fill-opacity":"0.8"}))}})},373:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=l(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=l(e,n));return e}function l(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.m=e,t=[],r.O=(e,n,o,i)=>{if(!n){var l=1/0;for(c=0;c<t.length;c++){for(var[n,o,i]=t[c],s=!0,a=0;a<n.length;a++)(!1&i||l>=i)&&Object.keys(r.O).every((t=>r.O[t](n[a])))?n.splice(a--,1):(s=!1,i<l&&(l=i));if(s){t.splice(c--,1);var u=o();void 0!==u&&(e=u)}}return e}i=i||0;for(var c=t.length;c>0&&t[c-1][2]>i;c--)t[c]=t[c-1];t[c]=[n,o,i]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={692:0,289:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,i,[l,s,a]=n,u=0;if(l.some((e=>0!==t[e]))){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(a)var c=a(r)}for(e&&e(n);u<l.length;u++)i=l[u],r.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return r.O(c)},n=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var o=r.O(void 0,[289],(()=>r(563)));o=r.O(o)})(); -
mindspun-responsive-blocks/trunk/dist/tabs/block.json
r3093332 r3096856 54 54 "mindspun/tabs": "labels" 55 55 }, 56 "version": "0.1 5.2",56 "version": "0.16.0", 57 57 "supports": { 58 58 "className": true -
mindspun-responsive-blocks/trunk/dist/tabs/index.asset.php
r3090237 r3096856 1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element' ), 'version' => 'bab4bbd88313fa1d47d5');1 <?php return array('dependencies' => array('@mindspun/mrblx', 'react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '4474e566aac7d93e974e'); -
mindspun-responsive-blocks/trunk/dist/tabs/index.js
r3090237 r3096856 1 (()=>{var e,t={ 552:(e,t,r)=>{"use strict";const o=window.wp.blocks,n=JSON.parse('{"UU":"mindspun/tabs"}'),l=window.React,a=window.wp.blockEditor,i=window.wp.data,s=window.wp.element,b=window.mrblx;var c=r(373),u=r.n(c);const d=e=>{const t=u()("mrblx--tabs",{[`mrblx--block-align-${e.attributes.header.blockAlign}`]:void 0!==e.attributes.header.blockAlign,[`mrblx--tablet-block-align-${e.attributes.header.tabletBlockAlign}`]:void 0!==e.attributes.header.tabletBlockAlign,[`mrblx--block-align-${e.attributes.header.mobileBlockAlign}`]:void 0!==e.attributes.header.mobileBlockAlign,"stack-on-mobile":e.attributes.stackOnMobile});return(0,l.createElement)(l.Fragment,null,e.setAttributes&&(0,l.createElement)(b.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.header,selector:".mrblx--tabs"}),(0,l.createElement)("ul",{className:t},e.children))},m=e=>{const t=u()({"mrblx--tab":!0,"mrblx--tab--active":e.isActive});return(0,l.createElement)("li",{className:t,onClick:e.onClick,"data-block-id":e.blockId,role:"presentation"},(0,l.createElement)("button",{role:"tab"},e.label))},p=window.wp.components,v=e=>(0,l.createElement)(b.ContainerControl,{title:"Tabs"},(0,l.createElement)(b.TabbedControl,null,(0,l.createElement)(b.TabbedContainer,{key:"Default"},(0,l.createElement)(b.ContainerContents,null,(0,l.createElement)(b.BaseControls,{attributes:e.attributes.tab,setAttributes:t=>{e.setAttributes({tab:{...e.attributes.tab,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},margin:{responsive:!0},padding:{responsive:!0},border:{responsive:!0},fontSize:{responsive:!0}}}))),(0,l.createElement)(b.TabbedContainer,{key:"Active"},(0,l.createElement)(b.ContainerContents,null,(0,l.createElement)(b.BaseControls,{attributes:e.attributes.activeTab,setAttributes:t=>{e.setAttributes({activeTab:{...e.attributes.activeTab,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},margin:{responsive:!0},padding:{responsive:!0},border:{responsive:!0},fontSize:{responsive:!0}}}))),(0,l.createElement)(b.TabbedContainer,{key:"Hover"},(0,l.createElement)(b.ContainerContents,null,(0,l.createElement)(b.BaseControls,{attributes:{color:e.attributes.tab.colorHover,tabletColor:e.attributes.tab.tabletColorHover,mobileColor:e.attributes.tab.mobileColorHover,backgroundColor:e.attributes.tab.backgroundColorHover,tabletBackgroundColor:e.attributes.tab.tabletBackgroundColorHover,mobileBackgroundColor:e.attributes.tab.mobileBackgroundColorHover},setAttributes:t=>{e.setAttributes({tab:{...e.attributes.tab,colorHover:t.color,tabletColorHover:t.tabletColor,mobileColorHover:t.mobileColor,backgroundColorHover:t.backgroundColor,tabletBackgroundColorHover:t.tabletBackgroundColor,mobileBackgroundColorHover:t.mobileBackgroundColor}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0}}}))))),k=e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(a.InspectorControls,null,(0,l.createElement)(v,{attributes:e.attributes,setAttributes:e.setAttributes}),(0,l.createElement)(b.ControlGroup,{title:"Header",attributes:e.attributes.header,setAttributes:t=>{e.setAttributes({header:{...e.attributes.header,...t}})},options:{backgroundColor:!0,padding:!0,margin:!0,border:!0}},(0,l.createElement)(b.BlockAlignControl,{attributes:e.attributes.header,setAttributes:t=>{e.setAttributes({header:{...e.attributes.header,...t}})}}),(0,l.createElement)(p.ToggleControl,{label:"Stack Vertically on Mobile",checked:e.attributes.stackOnMobile,onChange:t=>{e.setAttributes({stackOnMobile:t})}})),(0,l.createElement)(b.ControlGroup,{title:"Content",attributes:e.attributes.content,setAttributes:t=>{e.setAttributes({content:{...e.attributes.content,...t}})},options:{color:!0,backgroundColor:!0,padding:!0,margin:!0,border:!0}}),(0,l.createElement)(b.ContainerControl,{title:"Custom CSS"},(0,l.createElement)(b.ContainerContents,null,(0,l.createElement)(b.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))),(0,l.createElement)(a.InspectorAdvancedControls,null,(0,l.createElement)(b.BlockId,{attributes:e.attributes}))),g=e=>(0,l.createElement)(a.InspectorControls,null,(0,l.createElement)("div",{className:"wp-block-mindspun-tab--controls"},(0,l.createElement)(b.ContainerContents,null,(0,l.createElement)("div",{className:"mrblx--tab-controls"},(0,l.createElement)(b.ControlHeader,{title:"Title"}),(0,l.createElement)("input",{type:"text",value:e.attributes.label,onChange:t=>{return r=t.target.value,void e.setAttributes({label:r});var r}})))));function C(e,t){const r=Object.keys(t);return!!(e&&r&&r.length>0)&&e===t[r[0]]}const f="mindspun/tab";var E;E={name:f,title:"Tab",description:"A single tab in a tabbed container.",parent:["mindspun/tabs"],attributes:{blockId:{type:"string"},label:{type:"string",default:"Tab"},isDefault:{type:"boolean"}},usesContext:["mindspun/tabs"],edit:function(e){const t=(0,b.useBlockPropsWithId)(e),r=(0,a.useInnerBlocksProps)(t);return(0,s.useEffect)((()=>{e.setAttributes({isDefault:C(e.attributes.blockId,e.context["mindspun/tabs"])})}),[e]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(g,{...e}),(0,l.createElement)("div",{...r,role:"tabpanel",tabIndex:0}))},save:function(e){const t=u()({"mrblx--tab-panel--active":e.attributes.isDefault}),r=b.useBlockPropsWithId.save(e,{className:t}),o=a.useInnerBlocksProps.save(r);return(0,l.createElement)("div",{...o,role:"tabpanel"})},icon:{foreground:"#005ffe",src:()=>(0,l.createElement)(p.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(p.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.325 3.325H8.675V7.325H21.675V21.675H1.325V3.325ZM2.675 4.675V20.325H20.325V8.675H7.325V4.675H2.675Z",fill:"currentColor"}),(0,l.createElement)(p.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 13.675H5V12.325H18V13.675ZM16 17.175H5V15.825H16V17.175Z",fill:"currentColor"}))}},(0,o.registerBlockType)(E.name,{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,category:"mindspun-responsive-blocks",textdomain:"mrblx",...E});(0,o.registerBlockType)(n.UU,{edit:function(e){const t=(r=e.clientId,(0,i.useSelect)((e=>{const t=e("core/block-editor").getBlock(r);return t?t.innerBlocks:[]}),[r]));var r;const[o,n]=(0,s.useState)(null);(0,s.useEffect)((()=>{!o&&e.attributes.blockId&&t.length>0&&n(t[0].attributes.blockId)}),[o,e.attributes.blockId,t]),(0,s.useEffect)((()=>{const r=function(e){const t={};for(const r of e)t[r.attributes.label]=r.attributes.blockId;return t}(t);var o,n;o=r,n=e.attributes.labels,JSON.stringify(o)!==JSON.stringify(n)&&e.setAttributes({labels:r})}),[t,e]);const c=(0,b.useBlockPropsWithId)(e),{children:u,...p}=(0,a.useInnerBlocksProps)(c,{allowedBlocks:[f],template:[["mindspun/tab",{label:"Tab 1"},[["core/paragraph",{},[]]]],["mindspun/tab",{label:"Tab 2"},[["core/paragraph",{},[]]]],["mindspun/tab",{label:"Tab 3"},[["core/paragraph",{},[]]]]]});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(k,{...e}),(0,l.createElement)("style",null,(v=o)?`div[data-mrblx-id="${v}"]{display:block !important}`:""),(0,l.createElement)("div",{...p},(0,l.createElement)(d,{...e},(0,l.createElement)(b.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.tab,selector:".mrblx--tab:not(.mrblx--tab--active)"}),(0,l.createElement)(b.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.activeTab,selector:".mrblx--tab--active"}),(0,l.createElement)(b.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.content,selector:".wp-block-mindspun-tab"}),t.map(((e,t)=>{const r=e.attributes.blockId,a=r===o||!o&&0===t;return(0,l.createElement)(m,{key:t,blockId:r,label:e.attributes.label,isActive:a,onClick:()=>n(r)})}))),u));var v},save:function(e){const t=b.useBlockPropsWithId.save(e),r=a.useInnerBlocksProps.save({className:"mrblx--tab-contents"});return(0,l.createElement)("div",{...t},(0,l.createElement)(d,{...e},Object.keys(e.attributes.labels||[]).map(((t,r)=>{const o=e.attributes.labels[t];return(0,l.createElement)(m,{key:t,blockId:o,label:t,isActive:0===r})}))),(0,l.createElement)("div",{...r}))},icon:{foreground:"#005ffe",src:()=>(0,l.createElement)(p.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(p.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 3H9.35V4H19.35V7H22.35V21.35H2V3ZM18 7V5.35H14.35V7H18ZM13 7V5.35H9.35V7H13ZM8 4.35H3.35V20H21V8.35H8V4.35ZM18.675 13.35H5.675V12H18.675V13.35ZM16.675 16.85H5.675V15.5H16.675V16.85Z",fill:"currentColor"}))}})},373:(e,t)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,l(r)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)o.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.m=t,e=[],o.O=(t,r,n,l)=>{if(!r){var a=1/0;for(c=0;c<e.length;c++){for(var[r,n,l]=e[c],i=!0,s=0;s<r.length;s++)(!1&l||a>=l)&&Object.keys(o.O).every((e=>o.O[e](r[s])))?r.splice(s--,1):(i=!1,l<a&&(a=l));if(i){e.splice(c--,1);var b=n();void 0!==b&&(t=b)}}return t}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[r,n,l]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={575:0,238:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,l,[a,i,s]=r,b=0;if(a.some((t=>0!==e[t]))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(s)var c=s(o)}for(t&&t(r);b<a.length;b++)l=a[b],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(c)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[238],(()=>o(552)));n=o.O(n)})();1 (()=>{var e,t={685:(e,t,r)=>{"use strict";const l=window.wp.blocks,n=JSON.parse('{"UU":"mindspun/tabs"}'),o=window.React,a=window.wp.blockEditor,s=window.wp.data,i=window.wp.element,c=window.mrblx;var b=r(373),u=r.n(b);const d=e=>{const t=u()("mrblx--tabs",{[`mrblx--block-align-${e.attributes.header.blockAlign}`]:void 0!==e.attributes.header.blockAlign,[`mrblx--tablet-block-align-${e.attributes.header.tabletBlockAlign}`]:void 0!==e.attributes.header.tabletBlockAlign,[`mrblx--block-align-${e.attributes.header.mobileBlockAlign}`]:void 0!==e.attributes.header.mobileBlockAlign,"stack-on-mobile":e.attributes.stackOnMobile});return(0,o.createElement)(o.Fragment,null,e.setAttributes&&(0,o.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.header,selector:".mrblx--tabs"}),(0,o.createElement)("ul",{className:t},e.children))},m=e=>{const t=u()({"mrblx--tab":!0,"mrblx--tab--active":e.isActive});return(0,o.createElement)("li",{className:t,onClick:e.onClick,"data-block-id":e.blockId,role:"presentation"},(0,o.createElement)("button",{role:"tab"},e.label))},p=window.wp.components,v=e=>(0,o.createElement)(c.ContainerControl,{title:"Tabs"},(0,o.createElement)(c.TabbedControl,null,(0,o.createElement)(c.TabbedContainer,{key:"Default"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)(c.BaseControls,{attributes:e.attributes.tab,setAttributes:t=>{e.setAttributes({tab:{...e.attributes.tab,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},margin:{responsive:!0},padding:{responsive:!0},border:{responsive:!0},fontSize:{responsive:!0}}}))),(0,o.createElement)(c.TabbedContainer,{key:"Active"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)(c.BaseControls,{attributes:e.attributes.activeTab,setAttributes:t=>{e.setAttributes({activeTab:{...e.attributes.activeTab,...t}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0},margin:{responsive:!0},padding:{responsive:!0},border:{responsive:!0},fontSize:{responsive:!0}}}))),(0,o.createElement)(c.TabbedContainer,{key:"Hover"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)(c.BaseControls,{attributes:{color:e.attributes.tab.colorHover,tabletColor:e.attributes.tab.tabletColorHover,mobileColor:e.attributes.tab.mobileColorHover,backgroundColor:e.attributes.tab.backgroundColorHover,tabletBackgroundColor:e.attributes.tab.tabletBackgroundColorHover,mobileBackgroundColor:e.attributes.tab.mobileBackgroundColorHover},setAttributes:t=>{e.setAttributes({tab:{...e.attributes.tab,colorHover:t.color,tabletColorHover:t.tabletColor,mobileColorHover:t.mobileColor,backgroundColorHover:t.backgroundColor,tabletBackgroundColorHover:t.tabletBackgroundColor,mobileBackgroundColorHover:t.mobileBackgroundColor}})},options:{color:{responsive:!0},backgroundColor:{responsive:!0}}}))))),k=window.wp.i18n,C=e=>{const[t,r]=(0,i.useState)(!1),l=Object.keys(e.attributes).length>0?e.attributes:{},n=JSON.stringify(l,null,4);return(0,o.createElement)("div",{className:"mrblx--view-all"},(0,o.createElement)(p.Button,{variant:"link",onClick:()=>r(!t)},(0,k.__)("View All")),t&&(0,o.createElement)(p.Modal,{focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,overlayClassName:"mrblx--view-all--modal",title:(0,k.__)("CSS Properties"),onRequestClose:()=>{r(!1)}},(0,o.createElement)("pre",null,n),e.onClear?(0,o.createElement)(p.Button,{variant:"link",onClick:()=>e.onClear()},(0,k.__)("Clear All")):null))},g=e=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(a.InspectorControls,null,(0,o.createElement)(v,{attributes:e.attributes,setAttributes:e.setAttributes}),(0,o.createElement)(c.ControlGroup,{title:"Header",attributes:e.attributes.header,setAttributes:t=>{e.setAttributes({header:{...e.attributes.header,...t}})},options:{backgroundColor:!0,padding:!0,margin:!0,border:!0}},(0,o.createElement)(c.BlockAlignControl,{attributes:e.attributes.header,setAttributes:t=>{e.setAttributes({header:{...e.attributes.header,...t}})}}),(0,o.createElement)(p.ToggleControl,{label:"Stack Vertically on Mobile",checked:e.attributes.stackOnMobile,onChange:t=>{e.setAttributes({stackOnMobile:t})}})),(0,o.createElement)(c.ControlGroup,{title:"Content",attributes:e.attributes.content,setAttributes:t=>{e.setAttributes({content:{...e.attributes.content,...t}})},options:{color:!0,backgroundColor:!0,padding:!0,margin:!0,border:!0}}),(0,o.createElement)(c.ContainerControl,{title:"Custom CSS"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)(c.CustomCSSControl,{blockId:e.attributes.blockId,attributes:e.attributes.style,setAttributes:t=>{e.setAttributes({style:{...e.attributes.style,...t}})},isResponsive:!0})))),(0,o.createElement)(a.InspectorAdvancedControls,null,(0,o.createElement)(c.BlockId,{attributes:e.attributes}),(0,o.createElement)(C,{attributes:e.attributes.style,onClear:()=>e.setAttributes({style:{}})}))),E=e=>(0,o.createElement)(a.InspectorControls,null,(0,o.createElement)("div",{className:"wp-block-mindspun-tab--controls"},(0,o.createElement)(c.ContainerContents,null,(0,o.createElement)("div",{className:"mrblx--tab-controls"},(0,o.createElement)(c.ControlHeader,{title:"Title"}),(0,o.createElement)("input",{type:"text",value:e.attributes.label,onChange:t=>{return r=t.target.value,void e.setAttributes({label:r});var r}})))));function f(e,t){const r=Object.keys(t);return!!(e&&r&&r.length>0)&&e===t[r[0]]}const h="mindspun/tab";var y;y={name:h,title:"Tab",description:"A single tab in a tabbed container.",parent:["mindspun/tabs"],attributes:{blockId:{type:"string"},label:{type:"string",default:"Tab"},isDefault:{type:"boolean"}},usesContext:["mindspun/tabs"],edit:function(e){const t=(0,c.useBlockPropsWithId)(e),r=(0,a.useInnerBlocksProps)(t);return(0,i.useEffect)((()=>{e.setAttributes({isDefault:f(e.attributes.blockId,e.context["mindspun/tabs"])})}),[e]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(E,{...e}),(0,o.createElement)("div",{...r,role:"tabpanel",tabIndex:0}))},save:function(e){const t=u()({"mrblx--tab-panel--active":e.attributes.isDefault}),r=c.useBlockPropsWithId.save(e,{className:t}),l=a.useInnerBlocksProps.save(r);return(0,o.createElement)("div",{...l,role:"tabpanel"})},icon:{foreground:"#005ffe",src:()=>(0,o.createElement)(p.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(p.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.325 3.325H8.675V7.325H21.675V21.675H1.325V3.325ZM2.675 4.675V20.325H20.325V8.675H7.325V4.675H2.675Z",fill:"currentColor"}),(0,o.createElement)(p.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 13.675H5V12.325H18V13.675ZM16 17.175H5V15.825H16V17.175Z",fill:"currentColor"}))}},(0,l.registerBlockType)(y.name,{$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,category:"mindspun-responsive-blocks",textdomain:"mrblx",...y});(0,l.registerBlockType)(n.UU,{edit:function(e){const t=(r=e.clientId,(0,s.useSelect)((e=>{const t=e("core/block-editor").getBlock(r);return t?t.innerBlocks:[]}),[r]));var r;const[l,n]=(0,i.useState)(null);(0,i.useEffect)((()=>{!l&&e.attributes.blockId&&t.length>0&&n(t[0].attributes.blockId)}),[l,e.attributes.blockId,t]),(0,i.useEffect)((()=>{const r=function(e){const t={};for(const r of e)t[r.attributes.label]=r.attributes.blockId;return t}(t);var l,n;l=r,n=e.attributes.labels,JSON.stringify(l)!==JSON.stringify(n)&&e.setAttributes({labels:r})}),[t,e]);const b=(0,c.useBlockPropsWithId)(e),{children:u,...p}=(0,a.useInnerBlocksProps)(b,{allowedBlocks:[h],template:[["mindspun/tab",{label:"Tab 1"},[["core/paragraph",{},[]]]],["mindspun/tab",{label:"Tab 2"},[["core/paragraph",{},[]]]],["mindspun/tab",{label:"Tab 3"},[["core/paragraph",{},[]]]]]});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(g,{...e}),(0,o.createElement)("style",null,(v=l)?`div[data-mrblx-id="${v}"]{display:block !important}`:""),(0,o.createElement)("div",{...p},(0,o.createElement)(d,{...e},(0,o.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.tab,selector:".mrblx--tab:not(.mrblx--tab--active)"}),(0,o.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.activeTab,selector:".mrblx--tab--active"}),(0,o.createElement)(c.StylePortalClientId,{clientId:e.clientId,attributes:e.attributes.content,selector:".wp-block-mindspun-tab"}),t.map(((e,t)=>{const r=e.attributes.blockId,a=r===l||!l&&0===t;return(0,o.createElement)(m,{key:t,blockId:r,label:e.attributes.label,isActive:a,onClick:()=>n(r)})}))),u));var v},save:function(e){const t=c.useBlockPropsWithId.save(e),r=a.useInnerBlocksProps.save({className:"mrblx--tab-contents"});return(0,o.createElement)("div",{...t},(0,o.createElement)(d,{...e},Object.keys(e.attributes.labels||[]).map(((t,r)=>{const l=e.attributes.labels[t];return(0,o.createElement)(m,{key:t,blockId:l,label:t,isActive:0===r})}))),(0,o.createElement)("div",{...r}))},icon:{foreground:"#005ffe",src:()=>(0,o.createElement)(p.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(p.Path,{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 3H9.35V4H19.35V7H22.35V21.35H2V3ZM18 7V5.35H14.35V7H18ZM13 7V5.35H9.35V7H13ZM8 4.35H3.35V20H21V8.35H8V4.35ZM18.675 13.35H5.675V12H18.675V13.35ZM16.675 16.85H5.675V15.5H16.675V16.85Z",fill:"currentColor"}))}})},373:(e,t)=>{var r;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)l.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()}},r={};function l(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,l),o.exports}l.m=t,e=[],l.O=(t,r,n,o)=>{if(!r){var a=1/0;for(b=0;b<e.length;b++){for(var[r,n,o]=e[b],s=!0,i=0;i<r.length;i++)(!1&o||a>=o)&&Object.keys(l.O).every((e=>l.O[e](r[i])))?r.splice(i--,1):(s=!1,o<a&&(a=o));if(s){e.splice(b--,1);var c=n();void 0!==c&&(t=c)}}return t}o=o||0;for(var b=e.length;b>0&&e[b-1][2]>o;b--)e[b]=e[b-1];e[b]=[r,n,o]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={575:0,238:0};l.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[a,s,i]=r,c=0;if(a.some((t=>0!==e[t]))){for(n in s)l.o(s,n)&&(l.m[n]=s[n]);if(i)var b=i(l)}for(t&&t(r);c<a.length;c++)o=a[c],l.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return l.O(b)},r=globalThis.webpackChunk_mindspun_block_library=globalThis.webpackChunk_mindspun_block_library||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=l.O(void 0,[238],(()=>l(685)));n=l.O(n)})(); -
mindspun-responsive-blocks/trunk/readme.txt
r3093332 r3096856 5 5 Requires at least: 6.2 6 6 Tested up to: 6.5 7 Stable tag: 0.1 5.27 Stable tag: 0.16.0 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 73 73 74 74 == Changelog == 75 = 0.16.0 = 76 Release Date: Jun 3rd, 2024 77 * Add a view all/clear all advanced component and add it to all parent blocks. 78 * Add alt text controls to the Image block. 79 * Update the storybook store for setDeviceType/getDeviceType. 80 75 81 = 0.15.2 = 76 82 * Only set the id for a block when the blockId attribute is defined in useBlockPropsWithId.save() … … 83 89 84 90 = 0.15.0 = 91 Release Date: May 20th, 2024 85 92 * Add the Show/Hide block with custom control events. 86 93 * Add table and other tags to the container plus associated controls. … … 96 103 97 104 = 0.14.0 = 98 Release Date: Ma y 21st, 2024105 Release Date: Mar 2nd, 2024 99 106 * Build improvements. 100 107 * Fix the spacing values in the container display controls.
Note: See TracChangeset
for help on using the changeset viewer.